client/game/kkr.dll/lifted-0093.c (752211B)
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_36146630(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(0x36146630u); 17 18 L_36146630: 19 goto L_36146640; /* 0x36146630: jmp 0x36146640 */ 20 L_36146640: 21 MEM32(0x3630DA08) = 0x361B57A8u; /* 0x36146640: mov dword ptr [0x3630da08], 0x361b57a8 */ 22 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614664A: ret */ 23 RECOMP_REGS_OUT(); 24 } 25 26 void sub_36146640(void) { 27 int _fpu_cmp = 0; 28 uint32_t _cf = 0; 29 int _df = 1; 30 uint32_t _flag_k = FK_NONE; 31 uint32_t _flag_a = 0, _flag_b = 0; 32 uint32_t _itail_tgt = 0; 33 RECOMP_REGS_LOCALS 34 RECOMP_ENTER(0x36146640u); 35 36 L_36146640: 37 MEM32(0x3630DA08) = 0x361B57A8u; /* 0x36146640: mov dword ptr [0x3630da08], 0x361b57a8 */ 38 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614664A: ret */ 39 RECOMP_REGS_OUT(); 40 } 41 42 void sub_36146650(void) { 43 int _fpu_cmp = 0; 44 uint32_t _cf = 0; 45 int _df = 1; 46 uint32_t _flag_k = FK_NONE; 47 uint32_t _flag_a = 0, _flag_b = 0; 48 uint32_t _itail_tgt = 0; 49 RECOMP_REGS_LOCALS 50 RECOMP_ENTER(0x36146650u); 51 52 L_36146650: 53 goto L_36146660; /* 0x36146650: jmp 0x36146660 */ 54 L_36146660: 55 MEM32(0x3630D9F0) = 0x361B57E0u; /* 0x36146660: mov dword ptr [0x3630d9f0], 0x361b57e0 */ 56 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614666A: ret */ 57 RECOMP_REGS_OUT(); 58 } 59 60 void sub_36146660(void) { 61 int _fpu_cmp = 0; 62 uint32_t _cf = 0; 63 int _df = 1; 64 uint32_t _flag_k = FK_NONE; 65 uint32_t _flag_a = 0, _flag_b = 0; 66 uint32_t _itail_tgt = 0; 67 RECOMP_REGS_LOCALS 68 RECOMP_ENTER(0x36146660u); 69 70 L_36146660: 71 MEM32(0x3630D9F0) = 0x361B57E0u; /* 0x36146660: mov dword ptr [0x3630d9f0], 0x361b57e0 */ 72 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614666A: ret */ 73 RECOMP_REGS_OUT(); 74 } 75 76 void sub_36146670(void) { 77 int _fpu_cmp = 0; 78 uint32_t _cf = 0; 79 int _df = 1; 80 uint32_t _flag_k = FK_NONE; 81 uint32_t _flag_a = 0, _flag_b = 0; 82 uint32_t _itail_tgt = 0; 83 RECOMP_REGS_LOCALS 84 RECOMP_ENTER(0x36146670u); 85 86 L_36146670: 87 goto L_36146680; /* 0x36146670: jmp 0x36146680 */ 88 L_36146680: 89 MEM32(0x3630D9E0) = 0x361B5814u; /* 0x36146680: mov dword ptr [0x3630d9e0], 0x361b5814 */ 90 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614668A: ret */ 91 RECOMP_REGS_OUT(); 92 } 93 94 void sub_36146680(void) { 95 int _fpu_cmp = 0; 96 uint32_t _cf = 0; 97 int _df = 1; 98 uint32_t _flag_k = FK_NONE; 99 uint32_t _flag_a = 0, _flag_b = 0; 100 uint32_t _itail_tgt = 0; 101 RECOMP_REGS_LOCALS 102 RECOMP_ENTER(0x36146680u); 103 104 L_36146680: 105 MEM32(0x3630D9E0) = 0x361B5814u; /* 0x36146680: mov dword ptr [0x3630d9e0], 0x361b5814 */ 106 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614668A: ret */ 107 RECOMP_REGS_OUT(); 108 } 109 110 void sub_36146690(void) { 111 int _fpu_cmp = 0; 112 uint32_t _cf = 0; 113 int _df = 1; 114 uint32_t _flag_k = FK_NONE; 115 uint32_t _flag_a = 0, _flag_b = 0; 116 uint32_t _itail_tgt = 0; 117 RECOMP_REGS_LOCALS 118 RECOMP_ENTER(0x36146690u); 119 120 L_36146690: 121 goto L_361466A0; /* 0x36146690: jmp 0x361466a0 */ 122 L_361466A0: 123 MEM32(0x3630DA10) = 0x361B5850u; /* 0x361466A0: mov dword ptr [0x3630da10], 0x361b5850 */ 124 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361466AA: ret */ 125 RECOMP_REGS_OUT(); 126 } 127 128 void sub_361466A0(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(0x361466A0u); 137 138 L_361466A0: 139 MEM32(0x3630DA10) = 0x361B5850u; /* 0x361466A0: mov dword ptr [0x3630da10], 0x361b5850 */ 140 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361466AA: ret */ 141 RECOMP_REGS_OUT(); 142 } 143 144 void sub_361466B0(void) { 145 int _fpu_cmp = 0; 146 uint32_t _cf = 0; 147 int _df = 1; 148 uint32_t _flag_k = FK_NONE; 149 uint32_t _flag_a = 0, _flag_b = 0; 150 uint32_t _itail_tgt = 0; 151 RECOMP_REGS_LOCALS 152 RECOMP_ENTER(0x361466B0u); 153 154 L_361466B0: 155 goto L_361466C0; /* 0x361466B0: jmp 0x361466c0 */ 156 L_361466C0: 157 MEM32(0x3630D9FC) = 0x361B5888u; /* 0x361466C0: mov dword ptr [0x3630d9fc], 0x361b5888 */ 158 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361466CA: ret */ 159 RECOMP_REGS_OUT(); 160 } 161 162 void sub_361466C0(void) { 163 int _fpu_cmp = 0; 164 uint32_t _cf = 0; 165 int _df = 1; 166 uint32_t _flag_k = FK_NONE; 167 uint32_t _flag_a = 0, _flag_b = 0; 168 uint32_t _itail_tgt = 0; 169 RECOMP_REGS_LOCALS 170 RECOMP_ENTER(0x361466C0u); 171 172 L_361466C0: 173 MEM32(0x3630D9FC) = 0x361B5888u; /* 0x361466C0: mov dword ptr [0x3630d9fc], 0x361b5888 */ 174 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361466CA: ret */ 175 RECOMP_REGS_OUT(); 176 } 177 178 void sub_361466D0(void) { 179 int _fpu_cmp = 0; 180 uint32_t _cf = 0; 181 int _df = 1; 182 uint32_t _flag_k = FK_NONE; 183 uint32_t _flag_a = 0, _flag_b = 0; 184 uint32_t _itail_tgt = 0; 185 RECOMP_REGS_LOCALS 186 RECOMP_ENTER(0x361466D0u); 187 188 L_361466D0: 189 goto L_361466E0; /* 0x361466D0: jmp 0x361466e0 */ 190 L_361466E0: 191 MEM32(0x3630D9E8) = 0x361B5908u; /* 0x361466E0: mov dword ptr [0x3630d9e8], 0x361b5908 */ 192 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361466EA: ret */ 193 RECOMP_REGS_OUT(); 194 } 195 196 void sub_361466E0(void) { 197 int _fpu_cmp = 0; 198 uint32_t _cf = 0; 199 int _df = 1; 200 uint32_t _flag_k = FK_NONE; 201 uint32_t _flag_a = 0, _flag_b = 0; 202 uint32_t _itail_tgt = 0; 203 RECOMP_REGS_LOCALS 204 RECOMP_ENTER(0x361466E0u); 205 206 L_361466E0: 207 MEM32(0x3630D9E8) = 0x361B5908u; /* 0x361466E0: mov dword ptr [0x3630d9e8], 0x361b5908 */ 208 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361466EA: ret */ 209 RECOMP_REGS_OUT(); 210 } 211 212 void sub_361466F0(void) { 213 int _fpu_cmp = 0; 214 uint32_t _cf = 0; 215 int _df = 1; 216 uint32_t _flag_k = FK_NONE; 217 uint32_t _flag_a = 0, _flag_b = 0; 218 uint32_t _itail_tgt = 0; 219 RECOMP_REGS_LOCALS 220 RECOMP_ENTER(0x361466F0u); 221 222 L_361466F0: 223 goto L_36146700; /* 0x361466F0: jmp 0x36146700 */ 224 L_36146700: 225 MEM32(0x3630D9DC) = 0x361B5944u; /* 0x36146700: mov dword ptr [0x3630d9dc], 0x361b5944 */ 226 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614670A: ret */ 227 RECOMP_REGS_OUT(); 228 } 229 230 void sub_36146700(void) { 231 int _fpu_cmp = 0; 232 uint32_t _cf = 0; 233 int _df = 1; 234 uint32_t _flag_k = FK_NONE; 235 uint32_t _flag_a = 0, _flag_b = 0; 236 uint32_t _itail_tgt = 0; 237 RECOMP_REGS_LOCALS 238 RECOMP_ENTER(0x36146700u); 239 240 L_36146700: 241 MEM32(0x3630D9DC) = 0x361B5944u; /* 0x36146700: mov dword ptr [0x3630d9dc], 0x361b5944 */ 242 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614670A: ret */ 243 RECOMP_REGS_OUT(); 244 } 245 246 void sub_36146710(void) { 247 int _fpu_cmp = 0; 248 uint32_t _cf = 0; 249 int _df = 1; 250 uint32_t _flag_k = FK_NONE; 251 uint32_t _flag_a = 0, _flag_b = 0; 252 uint32_t _itail_tgt = 0; 253 RECOMP_REGS_LOCALS 254 RECOMP_ENTER(0x36146710u); 255 256 L_36146710: 257 goto L_36146720; /* 0x36146710: jmp 0x36146720 */ 258 L_36146720: 259 MEM32(0x3630DA04) = 0x361B5978u; /* 0x36146720: mov dword ptr [0x3630da04], 0x361b5978 */ 260 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614672A: ret */ 261 RECOMP_REGS_OUT(); 262 } 263 264 void sub_36146720(void) { 265 int _fpu_cmp = 0; 266 uint32_t _cf = 0; 267 int _df = 1; 268 uint32_t _flag_k = FK_NONE; 269 uint32_t _flag_a = 0, _flag_b = 0; 270 uint32_t _itail_tgt = 0; 271 RECOMP_REGS_LOCALS 272 RECOMP_ENTER(0x36146720u); 273 274 L_36146720: 275 MEM32(0x3630DA04) = 0x361B5978u; /* 0x36146720: mov dword ptr [0x3630da04], 0x361b5978 */ 276 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614672A: ret */ 277 RECOMP_REGS_OUT(); 278 } 279 280 void sub_36146730(void) { 281 int _fpu_cmp = 0; 282 uint32_t _cf = 0; 283 int _df = 1; 284 uint32_t _flag_k = FK_NONE; 285 uint32_t _flag_a = 0, _flag_b = 0; 286 uint32_t _itail_tgt = 0; 287 RECOMP_REGS_LOCALS 288 RECOMP_ENTER(0x36146730u); 289 290 L_36146730: 291 goto L_36146740; /* 0x36146730: jmp 0x36146740 */ 292 L_36146740: 293 MEM32(0x3630D9D8) = 0x361B59ACu; /* 0x36146740: mov dword ptr [0x3630d9d8], 0x361b59ac */ 294 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614674A: ret */ 295 RECOMP_REGS_OUT(); 296 } 297 298 void sub_36146740(void) { 299 int _fpu_cmp = 0; 300 uint32_t _cf = 0; 301 int _df = 1; 302 uint32_t _flag_k = FK_NONE; 303 uint32_t _flag_a = 0, _flag_b = 0; 304 uint32_t _itail_tgt = 0; 305 RECOMP_REGS_LOCALS 306 RECOMP_ENTER(0x36146740u); 307 308 L_36146740: 309 MEM32(0x3630D9D8) = 0x361B59ACu; /* 0x36146740: mov dword ptr [0x3630d9d8], 0x361b59ac */ 310 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614674A: ret */ 311 RECOMP_REGS_OUT(); 312 } 313 314 void sub_36146750(void) { 315 int _fpu_cmp = 0; 316 uint32_t _cf = 0; 317 int _df = 1; 318 uint32_t _flag_k = FK_NONE; 319 uint32_t _flag_a = 0, _flag_b = 0; 320 uint32_t _itail_tgt = 0; 321 RECOMP_REGS_LOCALS 322 RECOMP_ENTER(0x36146750u); 323 324 L_36146750: 325 PUSH32(esp, ebp); /* 0x36146750: push ebp */ 326 ebp = esp; /* 0x36146751: mov ebp, esp */ 327 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 329 esp = esp - 0x10u; /* 0x36146753: sub esp, 0x10 */ 330 _flag_k = FK_CMP; 331 PUSH32(esp, esi); /* 0x36146756: push esi */ 332 esi = MEM32(ebp + 0x8); /* 0x36146757: mov esi, dword ptr [ebp + 8] */ 333 eax = esi + 0x10; /* 0x3614675A: lea eax, [esi + 0x10] */ 334 ecx = ebp + (-0x8); /* 0x3614675D: lea ecx, [ebp - 8] */ 335 /* cmp ecx, eax */ /* 0x36146760: cmp ecx, eax */ 336 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 338 _flag_k = FK_CMP; 339 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614676F; /* 0x36146762: je 0x3614676f */ 340 L_36146764: 341 edx = MEM32(eax); /* 0x36146764: mov edx, dword ptr [eax] */ 342 eax = MEM32(eax + 0x4); /* 0x36146766: mov eax, dword ptr [eax + 4] */ 343 MEM32(ebp + (-0x8)) = edx; /* 0x36146769: mov dword ptr [ebp - 8], edx */ 344 MEM32(ebp + (-0x4)) = eax; /* 0x3614676C: mov dword ptr [ebp - 4], eax */ 345 L_3614676F: 346 ecx = MEM32(ebp + (-0x4)); /* 0x3614676F: mov ecx, dword ptr [ebp - 4] */ 347 edx = ebp + (-0x8); /* 0x36146772: lea edx, [ebp - 8] */ 348 PUSH32(esp, edx); /* 0x36146775: push edx */ 349 MEM32(ebp + (-0x10)) = 0x000F4241u; /* 0x36146776: mov dword ptr [ebp - 0x10], 0xf4241 */ 350 MEM32(ebp + (-0xC)) = ecx; /* 0x3614677D: mov dword ptr [ebp - 0xc], ecx */ 351 RECOMP_ICALL(MEM32(0x3616FD7C)); /* 0x36146780: call dword ptr [0x3616fd7c] */ 352 RECOMP_FLAGS_IN(); 353 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 355 esp = esp + 4; /* 0x36146786: add esp, 4 */ 356 _flag_k = FK_ADD; 357 /* test eax, eax */ /* 0x36146789: test eax, eax */ 358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 359 _cf = 0; 360 _flag_k = FK_TEST; 361 if (TEST_Z(_flag_a, _flag_b)) goto L_36146796; /* 0x3614678B: je 0x36146796 */ 362 L_3614678D: 363 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 364 eax = 0; /* 0x3614678D: xor eax, eax */ 365 _cf = 0; 366 _flag_k = FK_TEST; 367 esi = POP32_VAL(esp); /* 0x3614678F: pop esi */ 368 esp = ebp; /* 0x36146790: mov esp, ebp */ 369 ebp = POP32_VAL(esp); /* 0x36146792: pop ebp */ 370 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146793: ret 4 */ 371 L_36146796: 372 eax = ebp + (-0x10); /* 0x36146796: lea eax, [ebp - 0x10] */ 373 PUSH32(esp, eax); /* 0x36146799: push eax */ 374 PUSH32(esp, esi); /* 0x3614679A: push esi */ 375 RECOMP_ICALL(0x3614CCC0u); /* 0x3614679B: call 0x3614ccc0 */ /* not lifted */ 376 RECOMP_FLAGS_IN(); 377 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 378 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 379 esp = esp + 8; /* 0x361467A0: add esp, 8 */ 380 _flag_k = FK_ADD; 381 esi = POP32_VAL(esp); /* 0x361467A3: pop esi */ 382 esp = ebp; /* 0x361467A4: mov esp, ebp */ 383 ebp = POP32_VAL(esp); /* 0x361467A6: pop ebp */ 384 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361467A7: ret 4 */ 385 RECOMP_REGS_OUT(); 386 } 387 388 void sub_361467B0(void) { 389 int _fpu_cmp = 0; 390 uint32_t _cf = 0; 391 int _df = 1; 392 uint32_t _flag_k = FK_NONE; 393 uint32_t _flag_a = 0, _flag_b = 0; 394 uint32_t _itail_tgt = 0; 395 RECOMP_REGS_LOCALS 396 RECOMP_ENTER(0x361467B0u); 397 398 L_361467B0: 399 PUSH32(esp, ebp); /* 0x361467B0: push ebp */ 400 ebp = esp; /* 0x361467B1: mov ebp, esp */ 401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 403 esp = esp - 0x18u; /* 0x361467B3: sub esp, 0x18 */ 404 _flag_k = FK_CMP; 405 PUSH32(esp, ebx); /* 0x361467B6: push ebx */ 406 PUSH32(esp, esi); /* 0x361467B7: push esi */ 407 PUSH32(esp, edi); /* 0x361467B8: push edi */ 408 RECOMP_ICALL(MEM32(0x3616FE1C)); /* 0x361467B9: call dword ptr [0x3616fe1c] */ 409 RECOMP_FLAGS_IN(); 410 ecx = eax; /* 0x361467BF: mov ecx, eax */ 411 RECOMP_ICALL(MEM32(0x3616FE18)); /* 0x361467C1: call dword ptr [0x3616fe18] */ 412 RECOMP_FLAGS_IN(); 413 PUSH32(esp, 1); /* 0x361467C7: push 1 */ 414 PUSH32(esp, 0x361B66A0u); /* 0x361467C9: push 0x361b66a0 */ 415 PUSH32(esp, 0x361B6680u); /* 0x361467CE: push 0x361b6680 */ 416 esi = eax; /* 0x361467D3: mov esi, eax */ 417 eax = MEM32(ebp + 0x8); /* 0x361467D5: mov eax, dword ptr [ebp + 8] */ 418 PUSH32(esp, 0); /* 0x361467D8: push 0 */ 419 PUSH32(esp, eax); /* 0x361467DA: push eax */ 420 RECOMP_ICALL(0x3615FD86u); /* 0x361467DB: call 0x3615fd86 */ /* not lifted */ 421 RECOMP_FLAGS_IN(); 422 edi = eax; /* 0x361467E0: mov edi, eax */ 423 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 425 esp = esp + 0x14u; /* 0x361467E2: add esp, 0x14 */ 426 _flag_k = FK_ADD; 427 ecx = edi; /* 0x361467E5: mov ecx, edi */ 428 RECOMP_ICALL(MEM32(0x36170040)); /* 0x361467E7: call dword ptr [0x36170040] */ 429 RECOMP_FLAGS_IN(); 430 PUSH32(esp, 0); /* 0x361467ED: push 0 */ 431 PUSH32(esp, 0x362E6E08u); /* 0x361467EF: push 0x362e6e08 */ 432 MEM32(ebp + 0x8) = eax; /* 0x361467F4: mov dword ptr [ebp + 8], eax */ 433 eax = MEM32(eax + 0x4); /* 0x361467F7: mov eax, dword ptr [eax + 4] */ 434 PUSH32(esp, 0x361B6528u); /* 0x361467FA: push 0x361b6528 */ 435 MEM32(ebp + (-0x4)) = eax; /* 0x361467FF: mov dword ptr [ebp - 4], eax */ 436 PUSH32(esp, 0); /* 0x36146802: push 0 */ 437 eax = ebp + (-0x8); /* 0x36146804: lea eax, [ebp - 8] */ 438 MEM32(ebp + (-0x8)) = 0x000F425Du; /* 0x36146807: mov dword ptr [ebp - 8], 0xf425d */ 439 edx = MEM32(esi); /* 0x3614680E: mov edx, dword ptr [esi] */ 440 PUSH32(esp, eax); /* 0x36146810: push eax */ 441 ecx = esi; /* 0x36146811: mov ecx, esi */ 442 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36146813: call dword ptr [edx + 8] */ 443 RECOMP_FLAGS_IN(); 444 PUSH32(esp, eax); /* 0x36146816: push eax */ 445 RECOMP_ICALL(0x3615FD86u); /* 0x36146817: call 0x3615fd86 */ /* not lifted */ 446 RECOMP_FLAGS_IN(); 447 ebx = eax; /* 0x3614681C: mov ebx, eax */ 448 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 449 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 450 esp = esp + 0x14u; /* 0x3614681E: add esp, 0x14 */ 451 _flag_k = FK_ADD; 452 /* test ebx, ebx */ /* 0x36146821: test ebx, ebx */ 453 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 454 _cf = 0; 455 _flag_k = FK_TEST; 456 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146830; /* 0x36146823: jne 0x36146830 */ 457 L_36146825: 458 edi = POP32_VAL(esp); /* 0x36146825: pop edi */ 459 esi = POP32_VAL(esp); /* 0x36146826: pop esi */ 460 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 461 SET_LO8(eax, 0); /* 0x36146827: xor al, al */ 462 _cf = 0; 463 _flag_k = FK_NARROW(FK_TEST, 24); 464 ebx = POP32_VAL(esp); /* 0x36146829: pop ebx */ 465 esp = ebp; /* 0x3614682A: mov esp, ebp */ 466 ebp = POP32_VAL(esp); /* 0x3614682C: pop ebp */ 467 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614682D: ret 4 */ 468 L_36146830: 469 PUSH32(esp, ebx); /* 0x36146830: push ebx */ 470 ecx = edi; /* 0x36146831: mov ecx, edi */ 471 RECOMP_ICALL(0x3614CE40u); /* 0x36146833: call 0x3614ce40 */ /* not lifted */ 472 RECOMP_FLAGS_IN(); 473 ecx = ebx; /* 0x36146838: mov ecx, ebx */ 474 RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x3614683A: call dword ptr [0x3616fb14] */ 475 RECOMP_FLAGS_IN(); 476 ecx = MEM32(ebp + 0x8); /* 0x36146840: mov ecx, dword ptr [ebp + 8] */ 477 eax = MEM32(ecx + 0x4); /* 0x36146843: mov eax, dword ptr [ecx + 4] */ 478 PUSH32(esp, 0); /* 0x36146846: push 0 */ 479 PUSH32(esp, 0x362E3D98u); /* 0x36146848: push 0x362e3d98 */ 480 PUSH32(esp, 0x361B6528u); /* 0x3614684D: push 0x361b6528 */ 481 MEM32(ebp + (-0xC)) = eax; /* 0x36146852: mov dword ptr [ebp - 0xc], eax */ 482 PUSH32(esp, 0); /* 0x36146855: push 0 */ 483 eax = ebp + (-0x10); /* 0x36146857: lea eax, [ebp - 0x10] */ 484 MEM32(ebp + (-0x10)) = 0x000F424Eu; /* 0x3614685A: mov dword ptr [ebp - 0x10], 0xf424e */ 485 edx = MEM32(esi); /* 0x36146861: mov edx, dword ptr [esi] */ 486 PUSH32(esp, eax); /* 0x36146863: push eax */ 487 ecx = esi; /* 0x36146864: mov ecx, esi */ 488 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36146866: call dword ptr [edx + 8] */ 489 RECOMP_FLAGS_IN(); 490 PUSH32(esp, eax); /* 0x36146869: push eax */ 491 RECOMP_ICALL(0x3615FD86u); /* 0x3614686A: call 0x3615fd86 */ /* not lifted */ 492 RECOMP_FLAGS_IN(); 493 ebx = eax; /* 0x3614686F: mov ebx, eax */ 494 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 495 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 496 esp = esp + 0x14u; /* 0x36146871: add esp, 0x14 */ 497 _flag_k = FK_ADD; 498 /* test ebx, ebx */ /* 0x36146874: test ebx, ebx */ 499 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 500 _cf = 0; 501 _flag_k = FK_TEST; 502 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146883; /* 0x36146876: jne 0x36146883 */ 503 L_36146878: 504 edi = POP32_VAL(esp); /* 0x36146878: pop edi */ 505 esi = POP32_VAL(esp); /* 0x36146879: pop esi */ 506 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 507 SET_LO8(eax, 0); /* 0x3614687A: xor al, al */ 508 _cf = 0; 509 _flag_k = FK_NARROW(FK_TEST, 24); 510 ebx = POP32_VAL(esp); /* 0x3614687C: pop ebx */ 511 esp = ebp; /* 0x3614687D: mov esp, ebp */ 512 ebp = POP32_VAL(esp); /* 0x3614687F: pop ebp */ 513 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146880: ret 4 */ 514 L_36146883: 515 PUSH32(esp, ebx); /* 0x36146883: push ebx */ 516 ecx = edi; /* 0x36146884: mov ecx, edi */ 517 RECOMP_ICALL(0x3614CE80u); /* 0x36146886: call 0x3614ce80 */ /* not lifted */ 518 RECOMP_FLAGS_IN(); 519 ecx = ebx; /* 0x3614688B: mov ecx, ebx */ 520 ebx = MEM32(0x3616FB14); /* 0x3614688D: mov ebx, dword ptr [0x3616fb14] */ 521 RECOMP_ICALL(ebx); /* 0x36146893: call ebx */ 522 RECOMP_FLAGS_IN(); 523 ecx = MEM32(ebp + 0x8); /* 0x36146895: mov ecx, dword ptr [ebp + 8] */ 524 eax = MEM32(ecx + 0x4); /* 0x36146898: mov eax, dword ptr [ecx + 4] */ 525 PUSH32(esp, 0); /* 0x3614689B: push 0 */ 526 PUSH32(esp, 0x362E6E60u); /* 0x3614689D: push 0x362e6e60 */ 527 PUSH32(esp, 0x361B6528u); /* 0x361468A2: push 0x361b6528 */ 528 MEM32(ebp + (-0x14)) = eax; /* 0x361468A7: mov dword ptr [ebp - 0x14], eax */ 529 PUSH32(esp, 0); /* 0x361468AA: push 0 */ 530 eax = ebp + (-0x18); /* 0x361468AC: lea eax, [ebp - 0x18] */ 531 MEM32(ebp + (-0x18)) = 0x000F4248u; /* 0x361468AF: mov dword ptr [ebp - 0x18], 0xf4248 */ 532 edx = MEM32(esi); /* 0x361468B6: mov edx, dword ptr [esi] */ 533 PUSH32(esp, eax); /* 0x361468B8: push eax */ 534 ecx = esi; /* 0x361468B9: mov ecx, esi */ 535 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x361468BB: call dword ptr [edx + 8] */ 536 RECOMP_FLAGS_IN(); 537 PUSH32(esp, eax); /* 0x361468BE: push eax */ 538 RECOMP_ICALL(0x3615FD86u); /* 0x361468BF: call 0x3615fd86 */ /* not lifted */ 539 RECOMP_FLAGS_IN(); 540 esi = eax; /* 0x361468C4: mov esi, eax */ 541 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 543 esp = esp + 0x14u; /* 0x361468C6: add esp, 0x14 */ 544 _flag_k = FK_ADD; 545 /* test esi, esi */ /* 0x361468C9: test esi, esi */ 546 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 547 _cf = 0; 548 _flag_k = FK_TEST; 549 if (TEST_Z(_flag_a, _flag_b)) goto L_361468D9; /* 0x361468CB: je 0x361468d9 */ 550 L_361468CD: 551 PUSH32(esp, esi); /* 0x361468CD: push esi */ 552 ecx = edi; /* 0x361468CE: mov ecx, edi */ 553 RECOMP_ICALL(0x3614DEE0u); /* 0x361468D0: call 0x3614dee0 */ /* not lifted */ 554 RECOMP_FLAGS_IN(); 555 ecx = esi; /* 0x361468D5: mov ecx, esi */ 556 RECOMP_ICALL(ebx); /* 0x361468D7: call ebx */ 557 RECOMP_FLAGS_IN(); 558 L_361468D9: 559 edi = POP32_VAL(esp); /* 0x361468D9: pop edi */ 560 esi = POP32_VAL(esp); /* 0x361468DA: pop esi */ 561 SET_LO8(eax, 1); /* 0x361468DB: mov al, 1 */ 562 ebx = POP32_VAL(esp); /* 0x361468DD: pop ebx */ 563 esp = ebp; /* 0x361468DE: mov esp, ebp */ 564 ebp = POP32_VAL(esp); /* 0x361468E0: pop ebp */ 565 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361468E1: ret 4 */ 566 RECOMP_REGS_OUT(); 567 } 568 569 void sub_361468F0(void) { 570 int _fpu_cmp = 0; 571 uint32_t _cf = 0; 572 int _df = 1; 573 uint32_t _flag_k = FK_NONE; 574 uint32_t _flag_a = 0, _flag_b = 0; 575 uint32_t _itail_tgt = 0; 576 RECOMP_REGS_LOCALS 577 RECOMP_ENTER(0x361468F0u); 578 579 L_361468F0: 580 RECOMP_ICALL(0x36146900u); /* 0x361468F0: call 0x36146900 */ /* not lifted */ 581 RECOMP_FLAGS_IN(); 582 goto L_36146910; /* 0x361468F5: jmp 0x36146910 */ 583 L_36146910: 584 PUSH32(esp, 0x36146920u); /* 0x36146910: push 0x36146920 */ 585 RECOMP_ICALL(0x3615FEB2u); /* 0x36146915: call 0x3615feb2 */ /* not lifted */ 586 RECOMP_FLAGS_IN(); 587 ecx = POP32_VAL(esp); /* 0x3614691A: pop ecx */ 588 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614691B: ret */ 589 RECOMP_REGS_OUT(); 590 } 591 592 void sub_36146900(void) { 593 int _fpu_cmp = 0; 594 uint32_t _cf = 0; 595 int _df = 1; 596 uint32_t _flag_k = FK_NONE; 597 uint32_t _flag_a = 0, _flag_b = 0; 598 uint32_t _itail_tgt = 0; 599 RECOMP_REGS_LOCALS 600 RECOMP_ENTER(0x36146900u); 601 602 L_36146900: 603 ecx = 0x3630DA31u; /* 0x36146900: mov ecx, 0x3630da31 */ 604 L_36146905: 605 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 606 { RECOMP_REGS_OUT(); return; } /* end of function */ 607 _ljump: 608 switch (_itail_tgt) { 609 case 0x36146900u: goto L_36146900; 610 case 0x36146905u: goto L_36146905; 611 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 612 } 613 RECOMP_REGS_OUT(); 614 } 615 616 void sub_36146910(void) { 617 int _fpu_cmp = 0; 618 uint32_t _cf = 0; 619 int _df = 1; 620 uint32_t _flag_k = FK_NONE; 621 uint32_t _flag_a = 0, _flag_b = 0; 622 uint32_t _itail_tgt = 0; 623 RECOMP_REGS_LOCALS 624 RECOMP_ENTER(0x36146910u); 625 626 L_36146910: 627 PUSH32(esp, 0x36146920u); /* 0x36146910: push 0x36146920 */ 628 RECOMP_ICALL(0x3615FEB2u); /* 0x36146915: call 0x3615feb2 */ /* not lifted */ 629 RECOMP_FLAGS_IN(); 630 ecx = POP32_VAL(esp); /* 0x3614691A: pop ecx */ 631 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614691B: ret */ 632 RECOMP_REGS_OUT(); 633 } 634 635 void sub_36146920(void) { 636 int _fpu_cmp = 0; 637 uint32_t _cf = 0; 638 int _df = 1; 639 uint32_t _flag_k = FK_NONE; 640 uint32_t _flag_a = 0, _flag_b = 0; 641 uint32_t _itail_tgt = 0; 642 RECOMP_REGS_LOCALS 643 RECOMP_ENTER(0x36146920u); 644 645 L_36146920: 646 ecx = 0x3630DA31u; /* 0x36146920: mov ecx, 0x3630da31 */ 647 L_36146925: 648 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 649 { RECOMP_REGS_OUT(); return; } /* end of function */ 650 _ljump: 651 switch (_itail_tgt) { 652 case 0x36146920u: goto L_36146920; 653 case 0x36146925u: goto L_36146925; 654 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 655 } 656 RECOMP_REGS_OUT(); 657 } 658 659 void sub_36146930(void) { 660 int _fpu_cmp = 0; 661 uint32_t _cf = 0; 662 int _df = 1; 663 uint32_t _flag_k = FK_NONE; 664 uint32_t _flag_a = 0, _flag_b = 0; 665 uint32_t _itail_tgt = 0; 666 RECOMP_REGS_LOCALS 667 RECOMP_ENTER(0x36146930u); 668 669 L_36146930: 670 RECOMP_ICALL(0x36146940u); /* 0x36146930: call 0x36146940 */ /* not lifted */ 671 RECOMP_FLAGS_IN(); 672 goto L_36146950; /* 0x36146935: jmp 0x36146950 */ 673 L_36146950: 674 PUSH32(esp, 0x36146960u); /* 0x36146950: push 0x36146960 */ 675 RECOMP_ICALL(0x3615FEB2u); /* 0x36146955: call 0x3615feb2 */ /* not lifted */ 676 RECOMP_FLAGS_IN(); 677 ecx = POP32_VAL(esp); /* 0x3614695A: pop ecx */ 678 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614695B: ret */ 679 RECOMP_REGS_OUT(); 680 } 681 682 void sub_36146940(void) { 683 int _fpu_cmp = 0; 684 uint32_t _cf = 0; 685 int _df = 1; 686 uint32_t _flag_k = FK_NONE; 687 uint32_t _flag_a = 0, _flag_b = 0; 688 uint32_t _itail_tgt = 0; 689 RECOMP_REGS_LOCALS 690 RECOMP_ENTER(0x36146940u); 691 692 L_36146940: 693 ecx = 0x3630DA30u; /* 0x36146940: mov ecx, 0x3630da30 */ 694 L_36146945: 695 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 696 { RECOMP_REGS_OUT(); return; } /* end of function */ 697 _ljump: 698 switch (_itail_tgt) { 699 case 0x36146940u: goto L_36146940; 700 case 0x36146945u: goto L_36146945; 701 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 702 } 703 RECOMP_REGS_OUT(); 704 } 705 706 void sub_36146950(void) { 707 int _fpu_cmp = 0; 708 uint32_t _cf = 0; 709 int _df = 1; 710 uint32_t _flag_k = FK_NONE; 711 uint32_t _flag_a = 0, _flag_b = 0; 712 uint32_t _itail_tgt = 0; 713 RECOMP_REGS_LOCALS 714 RECOMP_ENTER(0x36146950u); 715 716 L_36146950: 717 PUSH32(esp, 0x36146960u); /* 0x36146950: push 0x36146960 */ 718 RECOMP_ICALL(0x3615FEB2u); /* 0x36146955: call 0x3615feb2 */ /* not lifted */ 719 RECOMP_FLAGS_IN(); 720 ecx = POP32_VAL(esp); /* 0x3614695A: pop ecx */ 721 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614695B: ret */ 722 RECOMP_REGS_OUT(); 723 } 724 725 void sub_36146960(void) { 726 int _fpu_cmp = 0; 727 uint32_t _cf = 0; 728 int _df = 1; 729 uint32_t _flag_k = FK_NONE; 730 uint32_t _flag_a = 0, _flag_b = 0; 731 uint32_t _itail_tgt = 0; 732 RECOMP_REGS_LOCALS 733 RECOMP_ENTER(0x36146960u); 734 735 L_36146960: 736 ecx = 0x3630DA30u; /* 0x36146960: mov ecx, 0x3630da30 */ 737 L_36146965: 738 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 739 { RECOMP_REGS_OUT(); return; } /* end of function */ 740 _ljump: 741 switch (_itail_tgt) { 742 case 0x36146960u: goto L_36146960; 743 case 0x36146965u: goto L_36146965; 744 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 745 } 746 RECOMP_REGS_OUT(); 747 } 748 749 void sub_36146970(void) { 750 int _fpu_cmp = 0; 751 uint32_t _cf = 0; 752 int _df = 1; 753 uint32_t _flag_k = FK_NONE; 754 uint32_t _flag_a = 0, _flag_b = 0; 755 uint32_t _itail_tgt = 0; 756 RECOMP_REGS_LOCALS 757 RECOMP_ENTER(0x36146970u); 758 759 L_36146970: 760 goto L_36146980; /* 0x36146970: jmp 0x36146980 */ 761 L_36146980: 762 MEM32(0x3630DA18) = 0x361B2FF4u; /* 0x36146980: mov dword ptr [0x3630da18], 0x361b2ff4 */ 763 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614698A: ret */ 764 RECOMP_REGS_OUT(); 765 } 766 767 void sub_36146980(void) { 768 int _fpu_cmp = 0; 769 uint32_t _cf = 0; 770 int _df = 1; 771 uint32_t _flag_k = FK_NONE; 772 uint32_t _flag_a = 0, _flag_b = 0; 773 uint32_t _itail_tgt = 0; 774 RECOMP_REGS_LOCALS 775 RECOMP_ENTER(0x36146980u); 776 777 L_36146980: 778 MEM32(0x3630DA18) = 0x361B2FF4u; /* 0x36146980: mov dword ptr [0x3630da18], 0x361b2ff4 */ 779 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614698A: ret */ 780 RECOMP_REGS_OUT(); 781 } 782 783 void sub_36146990(void) { 784 int _fpu_cmp = 0; 785 uint32_t _cf = 0; 786 int _df = 1; 787 uint32_t _flag_k = FK_NONE; 788 uint32_t _flag_a = 0, _flag_b = 0; 789 uint32_t _itail_tgt = 0; 790 RECOMP_REGS_LOCALS 791 RECOMP_ENTER(0x36146990u); 792 793 L_36146990: 794 goto L_361469A0; /* 0x36146990: jmp 0x361469a0 */ 795 L_361469A0: 796 MEM32(0x3630DA3C) = 0x361B3028u; /* 0x361469A0: mov dword ptr [0x3630da3c], 0x361b3028 */ 797 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361469AA: ret */ 798 RECOMP_REGS_OUT(); 799 } 800 801 void sub_361469A0(void) { 802 int _fpu_cmp = 0; 803 uint32_t _cf = 0; 804 int _df = 1; 805 uint32_t _flag_k = FK_NONE; 806 uint32_t _flag_a = 0, _flag_b = 0; 807 uint32_t _itail_tgt = 0; 808 RECOMP_REGS_LOCALS 809 RECOMP_ENTER(0x361469A0u); 810 811 L_361469A0: 812 MEM32(0x3630DA3C) = 0x361B3028u; /* 0x361469A0: mov dword ptr [0x3630da3c], 0x361b3028 */ 813 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361469AA: ret */ 814 RECOMP_REGS_OUT(); 815 } 816 817 void sub_361469B0(void) { 818 int _fpu_cmp = 0; 819 uint32_t _cf = 0; 820 int _df = 1; 821 uint32_t _flag_k = FK_NONE; 822 uint32_t _flag_a = 0, _flag_b = 0; 823 uint32_t _itail_tgt = 0; 824 RECOMP_REGS_LOCALS 825 RECOMP_ENTER(0x361469B0u); 826 827 L_361469B0: 828 goto L_361469C0; /* 0x361469B0: jmp 0x361469c0 */ 829 L_361469C0: 830 MEM32(0x3630DA38) = 0x361B3064u; /* 0x361469C0: mov dword ptr [0x3630da38], 0x361b3064 */ 831 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361469CA: ret */ 832 RECOMP_REGS_OUT(); 833 } 834 835 void sub_361469C0(void) { 836 int _fpu_cmp = 0; 837 uint32_t _cf = 0; 838 int _df = 1; 839 uint32_t _flag_k = FK_NONE; 840 uint32_t _flag_a = 0, _flag_b = 0; 841 uint32_t _itail_tgt = 0; 842 RECOMP_REGS_LOCALS 843 RECOMP_ENTER(0x361469C0u); 844 845 L_361469C0: 846 MEM32(0x3630DA38) = 0x361B3064u; /* 0x361469C0: mov dword ptr [0x3630da38], 0x361b3064 */ 847 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361469CA: ret */ 848 RECOMP_REGS_OUT(); 849 } 850 851 void sub_361469D0(void) { 852 int _fpu_cmp = 0; 853 uint32_t _cf = 0; 854 int _df = 1; 855 uint32_t _flag_k = FK_NONE; 856 uint32_t _flag_a = 0, _flag_b = 0; 857 uint32_t _itail_tgt = 0; 858 RECOMP_REGS_LOCALS 859 RECOMP_ENTER(0x361469D0u); 860 861 L_361469D0: 862 goto L_361469E0; /* 0x361469D0: jmp 0x361469e0 */ 863 L_361469E0: 864 MEM32(0x3630DA58) = 0x361B3098u; /* 0x361469E0: mov dword ptr [0x3630da58], 0x361b3098 */ 865 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361469EA: ret */ 866 RECOMP_REGS_OUT(); 867 } 868 869 void sub_361469E0(void) { 870 int _fpu_cmp = 0; 871 uint32_t _cf = 0; 872 int _df = 1; 873 uint32_t _flag_k = FK_NONE; 874 uint32_t _flag_a = 0, _flag_b = 0; 875 uint32_t _itail_tgt = 0; 876 RECOMP_REGS_LOCALS 877 RECOMP_ENTER(0x361469E0u); 878 879 L_361469E0: 880 MEM32(0x3630DA58) = 0x361B3098u; /* 0x361469E0: mov dword ptr [0x3630da58], 0x361b3098 */ 881 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361469EA: ret */ 882 RECOMP_REGS_OUT(); 883 } 884 885 void sub_361469F0(void) { 886 int _fpu_cmp = 0; 887 uint32_t _cf = 0; 888 int _df = 1; 889 uint32_t _flag_k = FK_NONE; 890 uint32_t _flag_a = 0, _flag_b = 0; 891 uint32_t _itail_tgt = 0; 892 RECOMP_REGS_LOCALS 893 RECOMP_ENTER(0x361469F0u); 894 895 L_361469F0: 896 goto L_36146A00; /* 0x361469F0: jmp 0x36146a00 */ 897 L_36146A00: 898 MEM32(0x3630DA28) = 0x361B30CCu; /* 0x36146A00: mov dword ptr [0x3630da28], 0x361b30cc */ 899 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A0A: ret */ 900 RECOMP_REGS_OUT(); 901 } 902 903 void sub_36146A00(void) { 904 int _fpu_cmp = 0; 905 uint32_t _cf = 0; 906 int _df = 1; 907 uint32_t _flag_k = FK_NONE; 908 uint32_t _flag_a = 0, _flag_b = 0; 909 uint32_t _itail_tgt = 0; 910 RECOMP_REGS_LOCALS 911 RECOMP_ENTER(0x36146A00u); 912 913 L_36146A00: 914 MEM32(0x3630DA28) = 0x361B30CCu; /* 0x36146A00: mov dword ptr [0x3630da28], 0x361b30cc */ 915 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A0A: ret */ 916 RECOMP_REGS_OUT(); 917 } 918 919 void sub_36146A10(void) { 920 int _fpu_cmp = 0; 921 uint32_t _cf = 0; 922 int _df = 1; 923 uint32_t _flag_k = FK_NONE; 924 uint32_t _flag_a = 0, _flag_b = 0; 925 uint32_t _itail_tgt = 0; 926 RECOMP_REGS_LOCALS 927 RECOMP_ENTER(0x36146A10u); 928 929 L_36146A10: 930 goto L_36146A20; /* 0x36146A10: jmp 0x36146a20 */ 931 L_36146A20: 932 MEM32(0x3630DA50) = 0x361B3100u; /* 0x36146A20: mov dword ptr [0x3630da50], 0x361b3100 */ 933 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A2A: ret */ 934 RECOMP_REGS_OUT(); 935 } 936 937 void sub_36146A20(void) { 938 int _fpu_cmp = 0; 939 uint32_t _cf = 0; 940 int _df = 1; 941 uint32_t _flag_k = FK_NONE; 942 uint32_t _flag_a = 0, _flag_b = 0; 943 uint32_t _itail_tgt = 0; 944 RECOMP_REGS_LOCALS 945 RECOMP_ENTER(0x36146A20u); 946 947 L_36146A20: 948 MEM32(0x3630DA50) = 0x361B3100u; /* 0x36146A20: mov dword ptr [0x3630da50], 0x361b3100 */ 949 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A2A: ret */ 950 RECOMP_REGS_OUT(); 951 } 952 953 void sub_36146A30(void) { 954 int _fpu_cmp = 0; 955 uint32_t _cf = 0; 956 int _df = 1; 957 uint32_t _flag_k = FK_NONE; 958 uint32_t _flag_a = 0, _flag_b = 0; 959 uint32_t _itail_tgt = 0; 960 RECOMP_REGS_LOCALS 961 RECOMP_ENTER(0x36146A30u); 962 963 L_36146A30: 964 goto L_36146A40; /* 0x36146A30: jmp 0x36146a40 */ 965 L_36146A40: 966 MEM32(0x3630DA44) = 0x361B3138u; /* 0x36146A40: mov dword ptr [0x3630da44], 0x361b3138 */ 967 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A4A: ret */ 968 RECOMP_REGS_OUT(); 969 } 970 971 void sub_36146A40(void) { 972 int _fpu_cmp = 0; 973 uint32_t _cf = 0; 974 int _df = 1; 975 uint32_t _flag_k = FK_NONE; 976 uint32_t _flag_a = 0, _flag_b = 0; 977 uint32_t _itail_tgt = 0; 978 RECOMP_REGS_LOCALS 979 RECOMP_ENTER(0x36146A40u); 980 981 L_36146A40: 982 MEM32(0x3630DA44) = 0x361B3138u; /* 0x36146A40: mov dword ptr [0x3630da44], 0x361b3138 */ 983 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A4A: ret */ 984 RECOMP_REGS_OUT(); 985 } 986 987 void sub_36146A50(void) { 988 int _fpu_cmp = 0; 989 uint32_t _cf = 0; 990 int _df = 1; 991 uint32_t _flag_k = FK_NONE; 992 uint32_t _flag_a = 0, _flag_b = 0; 993 uint32_t _itail_tgt = 0; 994 RECOMP_REGS_LOCALS 995 RECOMP_ENTER(0x36146A50u); 996 997 L_36146A50: 998 goto L_36146A60; /* 0x36146A50: jmp 0x36146a60 */ 999 L_36146A60: 1000 MEM32(0x3630DA4C) = 0x361B57A8u; /* 0x36146A60: mov dword ptr [0x3630da4c], 0x361b57a8 */ 1001 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A6A: ret */ 1002 RECOMP_REGS_OUT(); 1003 } 1004 1005 void sub_36146A60(void) { 1006 int _fpu_cmp = 0; 1007 uint32_t _cf = 0; 1008 int _df = 1; 1009 uint32_t _flag_k = FK_NONE; 1010 uint32_t _flag_a = 0, _flag_b = 0; 1011 uint32_t _itail_tgt = 0; 1012 RECOMP_REGS_LOCALS 1013 RECOMP_ENTER(0x36146A60u); 1014 1015 L_36146A60: 1016 MEM32(0x3630DA4C) = 0x361B57A8u; /* 0x36146A60: mov dword ptr [0x3630da4c], 0x361b57a8 */ 1017 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A6A: ret */ 1018 RECOMP_REGS_OUT(); 1019 } 1020 1021 void sub_36146A70(void) { 1022 int _fpu_cmp = 0; 1023 uint32_t _cf = 0; 1024 int _df = 1; 1025 uint32_t _flag_k = FK_NONE; 1026 uint32_t _flag_a = 0, _flag_b = 0; 1027 uint32_t _itail_tgt = 0; 1028 RECOMP_REGS_LOCALS 1029 RECOMP_ENTER(0x36146A70u); 1030 1031 L_36146A70: 1032 goto L_36146A80; /* 0x36146A70: jmp 0x36146a80 */ 1033 L_36146A80: 1034 MEM32(0x3630DA34) = 0x361B57E0u; /* 0x36146A80: mov dword ptr [0x3630da34], 0x361b57e0 */ 1035 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A8A: ret */ 1036 RECOMP_REGS_OUT(); 1037 } 1038 1039 void sub_36146A80(void) { 1040 int _fpu_cmp = 0; 1041 uint32_t _cf = 0; 1042 int _df = 1; 1043 uint32_t _flag_k = FK_NONE; 1044 uint32_t _flag_a = 0, _flag_b = 0; 1045 uint32_t _itail_tgt = 0; 1046 RECOMP_REGS_LOCALS 1047 RECOMP_ENTER(0x36146A80u); 1048 1049 L_36146A80: 1050 MEM32(0x3630DA34) = 0x361B57E0u; /* 0x36146A80: mov dword ptr [0x3630da34], 0x361b57e0 */ 1051 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146A8A: ret */ 1052 RECOMP_REGS_OUT(); 1053 } 1054 1055 void sub_36146A90(void) { 1056 int _fpu_cmp = 0; 1057 uint32_t _cf = 0; 1058 int _df = 1; 1059 uint32_t _flag_k = FK_NONE; 1060 uint32_t _flag_a = 0, _flag_b = 0; 1061 uint32_t _itail_tgt = 0; 1062 RECOMP_REGS_LOCALS 1063 RECOMP_ENTER(0x36146A90u); 1064 1065 L_36146A90: 1066 goto L_36146AA0; /* 0x36146A90: jmp 0x36146aa0 */ 1067 L_36146AA0: 1068 MEM32(0x3630DA24) = 0x361B5814u; /* 0x36146AA0: mov dword ptr [0x3630da24], 0x361b5814 */ 1069 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146AAA: ret */ 1070 RECOMP_REGS_OUT(); 1071 } 1072 1073 void sub_36146AA0(void) { 1074 int _fpu_cmp = 0; 1075 uint32_t _cf = 0; 1076 int _df = 1; 1077 uint32_t _flag_k = FK_NONE; 1078 uint32_t _flag_a = 0, _flag_b = 0; 1079 uint32_t _itail_tgt = 0; 1080 RECOMP_REGS_LOCALS 1081 RECOMP_ENTER(0x36146AA0u); 1082 1083 L_36146AA0: 1084 MEM32(0x3630DA24) = 0x361B5814u; /* 0x36146AA0: mov dword ptr [0x3630da24], 0x361b5814 */ 1085 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146AAA: ret */ 1086 RECOMP_REGS_OUT(); 1087 } 1088 1089 void sub_36146AB0(void) { 1090 int _fpu_cmp = 0; 1091 uint32_t _cf = 0; 1092 int _df = 1; 1093 uint32_t _flag_k = FK_NONE; 1094 uint32_t _flag_a = 0, _flag_b = 0; 1095 uint32_t _itail_tgt = 0; 1096 RECOMP_REGS_LOCALS 1097 RECOMP_ENTER(0x36146AB0u); 1098 1099 L_36146AB0: 1100 goto L_36146AC0; /* 0x36146AB0: jmp 0x36146ac0 */ 1101 L_36146AC0: 1102 MEM32(0x3630DA54) = 0x361B5850u; /* 0x36146AC0: mov dword ptr [0x3630da54], 0x361b5850 */ 1103 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146ACA: ret */ 1104 RECOMP_REGS_OUT(); 1105 } 1106 1107 void sub_36146AC0(void) { 1108 int _fpu_cmp = 0; 1109 uint32_t _cf = 0; 1110 int _df = 1; 1111 uint32_t _flag_k = FK_NONE; 1112 uint32_t _flag_a = 0, _flag_b = 0; 1113 uint32_t _itail_tgt = 0; 1114 RECOMP_REGS_LOCALS 1115 RECOMP_ENTER(0x36146AC0u); 1116 1117 L_36146AC0: 1118 MEM32(0x3630DA54) = 0x361B5850u; /* 0x36146AC0: mov dword ptr [0x3630da54], 0x361b5850 */ 1119 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146ACA: ret */ 1120 RECOMP_REGS_OUT(); 1121 } 1122 1123 void sub_36146AD0(void) { 1124 int _fpu_cmp = 0; 1125 uint32_t _cf = 0; 1126 int _df = 1; 1127 uint32_t _flag_k = FK_NONE; 1128 uint32_t _flag_a = 0, _flag_b = 0; 1129 uint32_t _itail_tgt = 0; 1130 RECOMP_REGS_LOCALS 1131 RECOMP_ENTER(0x36146AD0u); 1132 1133 L_36146AD0: 1134 goto L_36146AE0; /* 0x36146AD0: jmp 0x36146ae0 */ 1135 L_36146AE0: 1136 MEM32(0x3630DA40) = 0x361B5888u; /* 0x36146AE0: mov dword ptr [0x3630da40], 0x361b5888 */ 1137 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146AEA: ret */ 1138 RECOMP_REGS_OUT(); 1139 } 1140 1141 void sub_36146AE0(void) { 1142 int _fpu_cmp = 0; 1143 uint32_t _cf = 0; 1144 int _df = 1; 1145 uint32_t _flag_k = FK_NONE; 1146 uint32_t _flag_a = 0, _flag_b = 0; 1147 uint32_t _itail_tgt = 0; 1148 RECOMP_REGS_LOCALS 1149 RECOMP_ENTER(0x36146AE0u); 1150 1151 L_36146AE0: 1152 MEM32(0x3630DA40) = 0x361B5888u; /* 0x36146AE0: mov dword ptr [0x3630da40], 0x361b5888 */ 1153 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146AEA: ret */ 1154 RECOMP_REGS_OUT(); 1155 } 1156 1157 void sub_36146AF0(void) { 1158 int _fpu_cmp = 0; 1159 uint32_t _cf = 0; 1160 int _df = 1; 1161 uint32_t _flag_k = FK_NONE; 1162 uint32_t _flag_a = 0, _flag_b = 0; 1163 uint32_t _itail_tgt = 0; 1164 RECOMP_REGS_LOCALS 1165 RECOMP_ENTER(0x36146AF0u); 1166 1167 L_36146AF0: 1168 goto L_36146B00; /* 0x36146AF0: jmp 0x36146b00 */ 1169 L_36146B00: 1170 MEM32(0x3630DA2C) = 0x361B5908u; /* 0x36146B00: mov dword ptr [0x3630da2c], 0x361b5908 */ 1171 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146B0A: ret */ 1172 RECOMP_REGS_OUT(); 1173 } 1174 1175 void sub_36146B00(void) { 1176 int _fpu_cmp = 0; 1177 uint32_t _cf = 0; 1178 int _df = 1; 1179 uint32_t _flag_k = FK_NONE; 1180 uint32_t _flag_a = 0, _flag_b = 0; 1181 uint32_t _itail_tgt = 0; 1182 RECOMP_REGS_LOCALS 1183 RECOMP_ENTER(0x36146B00u); 1184 1185 L_36146B00: 1186 MEM32(0x3630DA2C) = 0x361B5908u; /* 0x36146B00: mov dword ptr [0x3630da2c], 0x361b5908 */ 1187 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146B0A: ret */ 1188 RECOMP_REGS_OUT(); 1189 } 1190 1191 void sub_36146B10(void) { 1192 int _fpu_cmp = 0; 1193 uint32_t _cf = 0; 1194 int _df = 1; 1195 uint32_t _flag_k = FK_NONE; 1196 uint32_t _flag_a = 0, _flag_b = 0; 1197 uint32_t _itail_tgt = 0; 1198 RECOMP_REGS_LOCALS 1199 RECOMP_ENTER(0x36146B10u); 1200 1201 L_36146B10: 1202 goto L_36146B20; /* 0x36146B10: jmp 0x36146b20 */ 1203 L_36146B20: 1204 MEM32(0x3630DA20) = 0x361B5944u; /* 0x36146B20: mov dword ptr [0x3630da20], 0x361b5944 */ 1205 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146B2A: ret */ 1206 RECOMP_REGS_OUT(); 1207 } 1208 1209 void sub_36146B20(void) { 1210 int _fpu_cmp = 0; 1211 uint32_t _cf = 0; 1212 int _df = 1; 1213 uint32_t _flag_k = FK_NONE; 1214 uint32_t _flag_a = 0, _flag_b = 0; 1215 uint32_t _itail_tgt = 0; 1216 RECOMP_REGS_LOCALS 1217 RECOMP_ENTER(0x36146B20u); 1218 1219 L_36146B20: 1220 MEM32(0x3630DA20) = 0x361B5944u; /* 0x36146B20: mov dword ptr [0x3630da20], 0x361b5944 */ 1221 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146B2A: ret */ 1222 RECOMP_REGS_OUT(); 1223 } 1224 1225 void sub_36146B30(void) { 1226 int _fpu_cmp = 0; 1227 uint32_t _cf = 0; 1228 int _df = 1; 1229 uint32_t _flag_k = FK_NONE; 1230 uint32_t _flag_a = 0, _flag_b = 0; 1231 uint32_t _itail_tgt = 0; 1232 RECOMP_REGS_LOCALS 1233 RECOMP_ENTER(0x36146B30u); 1234 1235 L_36146B30: 1236 goto L_36146B40; /* 0x36146B30: jmp 0x36146b40 */ 1237 L_36146B40: 1238 MEM32(0x3630DA48) = 0x361B5978u; /* 0x36146B40: mov dword ptr [0x3630da48], 0x361b5978 */ 1239 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146B4A: ret */ 1240 RECOMP_REGS_OUT(); 1241 } 1242 1243 void sub_36146B40(void) { 1244 int _fpu_cmp = 0; 1245 uint32_t _cf = 0; 1246 int _df = 1; 1247 uint32_t _flag_k = FK_NONE; 1248 uint32_t _flag_a = 0, _flag_b = 0; 1249 uint32_t _itail_tgt = 0; 1250 RECOMP_REGS_LOCALS 1251 RECOMP_ENTER(0x36146B40u); 1252 1253 L_36146B40: 1254 MEM32(0x3630DA48) = 0x361B5978u; /* 0x36146B40: mov dword ptr [0x3630da48], 0x361b5978 */ 1255 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146B4A: ret */ 1256 RECOMP_REGS_OUT(); 1257 } 1258 1259 void sub_36146B50(void) { 1260 int _fpu_cmp = 0; 1261 uint32_t _cf = 0; 1262 int _df = 1; 1263 uint32_t _flag_k = FK_NONE; 1264 uint32_t _flag_a = 0, _flag_b = 0; 1265 uint32_t _itail_tgt = 0; 1266 RECOMP_REGS_LOCALS 1267 RECOMP_ENTER(0x36146B50u); 1268 1269 L_36146B50: 1270 goto L_36146B60; /* 0x36146B50: jmp 0x36146b60 */ 1271 L_36146B60: 1272 MEM32(0x3630DA1C) = 0x361B59ACu; /* 0x36146B60: mov dword ptr [0x3630da1c], 0x361b59ac */ 1273 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146B6A: ret */ 1274 RECOMP_REGS_OUT(); 1275 } 1276 1277 void sub_36146B60(void) { 1278 int _fpu_cmp = 0; 1279 uint32_t _cf = 0; 1280 int _df = 1; 1281 uint32_t _flag_k = FK_NONE; 1282 uint32_t _flag_a = 0, _flag_b = 0; 1283 uint32_t _itail_tgt = 0; 1284 RECOMP_REGS_LOCALS 1285 RECOMP_ENTER(0x36146B60u); 1286 1287 L_36146B60: 1288 MEM32(0x3630DA1C) = 0x361B59ACu; /* 0x36146B60: mov dword ptr [0x3630da1c], 0x361b59ac */ 1289 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36146B6A: ret */ 1290 RECOMP_REGS_OUT(); 1291 } 1292 1293 void sub_36146B70(void) { 1294 int _fpu_cmp = 0; 1295 uint32_t _cf = 0; 1296 int _df = 1; 1297 uint32_t _flag_k = FK_NONE; 1298 uint32_t _flag_a = 0, _flag_b = 0; 1299 uint32_t _itail_tgt = 0; 1300 RECOMP_REGS_LOCALS 1301 RECOMP_ENTER(0x36146B70u); 1302 1303 L_36146B70: 1304 PUSH32(esp, ebp); /* 0x36146B70: push ebp */ 1305 ebp = esp; /* 0x36146B71: mov ebp, esp */ 1306 PUSH32(esp, esi); /* 0x36146B73: push esi */ 1307 esi = ecx; /* 0x36146B74: mov esi, ecx */ 1308 RECOMP_ICALL(0x3615BB60u); /* 0x36146B76: call 0x3615bb60 */ /* not lifted */ 1309 RECOMP_FLAGS_IN(); 1310 ecx = MEM32(ebp + 0x8); /* 0x36146B7B: mov ecx, dword ptr [ebp + 8] */ 1311 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1312 eax = 0; /* 0x36146B7E: xor eax, eax */ 1313 _cf = 0; 1314 _flag_k = FK_TEST; 1315 MEM32(esi + 0x8) = eax; /* 0x36146B80: mov dword ptr [esi + 8], eax */ 1316 MEM32(esi + 0xC) = eax; /* 0x36146B83: mov dword ptr [esi + 0xc], eax */ 1317 eax = 0x000F4241u; /* 0x36146B86: mov eax, 0xf4241 */ 1318 MEM32(esi + 0x8) = eax; /* 0x36146B8B: mov dword ptr [esi + 8], eax */ 1319 MEM32(esi) = 0x36178868u; /* 0x36146B8E: mov dword ptr [esi], 0x36178868 */ 1320 MEM32(esi + 0xC) = ecx; /* 0x36146B94: mov dword ptr [esi + 0xc], ecx */ 1321 eax = esi; /* 0x36146B97: mov eax, esi */ 1322 esi = POP32_VAL(esp); /* 0x36146B99: pop esi */ 1323 ebp = POP32_VAL(esp); /* 0x36146B9A: pop ebp */ 1324 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146B9B: ret 4 */ 1325 RECOMP_REGS_OUT(); 1326 } 1327 1328 void sub_36146BA0(void) { 1329 int _fpu_cmp = 0; 1330 uint32_t _cf = 0; 1331 int _df = 1; 1332 uint32_t _flag_k = FK_NONE; 1333 uint32_t _flag_a = 0, _flag_b = 0; 1334 uint32_t _itail_tgt = 0; 1335 RECOMP_REGS_LOCALS 1336 RECOMP_ENTER(0x36146BA0u); 1337 1338 L_36146BA0: 1339 PUSH32(esp, ebp); /* 0x36146BA0: push ebp */ 1340 ebp = esp; /* 0x36146BA1: mov ebp, esp */ 1341 PUSH32(esp, 0xFFFFFFFFu); /* 0x36146BA3: push -1 */ 1342 PUSH32(esp, 0x3616D01Bu); /* 0x36146BA5: push 0x3616d01b */ 1343 eax = MEM32(FS_BASE + (0)); /* 0x36146BAA: mov eax, dword ptr fs:[0] */ 1344 PUSH32(esp, eax); /* 0x36146BB0: push eax */ 1345 MEM32(FS_BASE + (0)) = esp; /* 0x36146BB1: mov dword ptr fs:[0], esp */ 1346 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 1347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1348 esp = esp - 0x28u; /* 0x36146BB8: sub esp, 0x28 */ 1349 _flag_k = FK_CMP; 1350 PUSH32(esp, ebx); /* 0x36146BBB: push ebx */ 1351 PUSH32(esp, esi); /* 0x36146BBC: push esi */ 1352 esi = MEM32(ebp + 0x8); /* 0x36146BBD: mov esi, dword ptr [ebp + 8] */ 1353 ebx = ecx; /* 0x36146BC0: mov ebx, ecx */ 1354 eax = esi + 0x10; /* 0x36146BC2: lea eax, [esi + 0x10] */ 1355 ecx = ebp + (-0x24); /* 0x36146BC5: lea ecx, [ebp - 0x24] */ 1356 /* cmp ecx, eax */ /* 0x36146BC8: cmp ecx, eax */ 1357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1359 _flag_k = FK_CMP; 1360 PUSH32(esp, edi); /* 0x36146BCA: push edi */ 1361 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146BD8; /* 0x36146BCB: je 0x36146bd8 */ 1362 L_36146BCD: 1363 edx = MEM32(eax); /* 0x36146BCD: mov edx, dword ptr [eax] */ 1364 eax = MEM32(eax + 0x4); /* 0x36146BCF: mov eax, dword ptr [eax + 4] */ 1365 MEM32(ebp + (-0x24)) = edx; /* 0x36146BD2: mov dword ptr [ebp - 0x24], edx */ 1366 MEM32(ebp + (-0x20)) = eax; /* 0x36146BD5: mov dword ptr [ebp - 0x20], eax */ 1367 L_36146BD8: 1368 edi = MEM32(esi + 0x4); /* 0x36146BD8: mov edi, dword ptr [esi + 4] */ 1369 ecx = ebp + (-0x24); /* 0x36146BDB: lea ecx, [ebp - 0x24] */ 1370 PUSH32(esp, ecx); /* 0x36146BDE: push ecx */ 1371 RECOMP_ICALL(MEM32(0x3616FD7C)); /* 0x36146BDF: call dword ptr [0x3616fd7c] */ 1372 RECOMP_FLAGS_IN(); 1373 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1375 esp = esp + 4; /* 0x36146BE5: add esp, 4 */ 1376 _flag_k = FK_ADD; 1377 /* test eax, eax */ /* 0x36146BE8: test eax, eax */ 1378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1379 _cf = 0; 1380 _flag_k = FK_TEST; 1381 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146F16; /* 0x36146BEA: jne 0x36146f16 */ 1382 L_36146BF0: 1383 edx = ebp + (-0x2C); /* 0x36146BF0: lea edx, [ebp - 0x2c] */ 1384 PUSH32(esp, edx); /* 0x36146BF3: push edx */ 1385 PUSH32(esp, esi); /* 0x36146BF4: push esi */ 1386 MEM32(ebp + (-0x2C)) = 0x000F4241u; /* 0x36146BF5: mov dword ptr [ebp - 0x2c], 0xf4241 */ 1387 MEM32(ebp + (-0x28)) = edi; /* 0x36146BFC: mov dword ptr [ebp - 0x28], edi */ 1388 RECOMP_ICALL(0x3614CCC0u); /* 0x36146BFF: call 0x3614ccc0 */ /* not lifted */ 1389 RECOMP_FLAGS_IN(); 1390 edi = eax; /* 0x36146C04: mov edi, eax */ 1391 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1392 esi = 0; /* 0x36146C06: xor esi, esi */ 1393 _cf = 0; 1394 _flag_k = FK_TEST; 1395 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1396 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1397 esp = esp + 8; /* 0x36146C08: add esp, 8 */ 1398 _flag_k = FK_ADD; 1399 /* cmp edi, esi */ /* 0x36146C0B: cmp edi, esi */ 1400 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1402 _flag_k = FK_CMP; 1403 MEM32(ebp + (-0x1C)) = edi; /* 0x36146C0D: mov dword ptr [ebp - 0x1c], edi */ 1404 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146F16; /* 0x36146C10: je 0x36146f16 */ 1405 L_36146C16: 1406 PUSH32(esp, 0x24u); /* 0x36146C16: push 0x24 */ 1407 RECOMP_ICALL(0x3615FD6Au); /* 0x36146C18: call 0x3615fd6a */ /* not lifted */ 1408 RECOMP_FLAGS_IN(); 1409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1410 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1411 esp = esp + 4; /* 0x36146C1D: add esp, 4 */ 1412 _flag_k = FK_ADD; 1413 MEM32(ebp + 0x8) = eax; /* 0x36146C20: mov dword ptr [ebp + 8], eax */ 1414 /* cmp eax, esi */ /* 0x36146C23: cmp eax, esi */ 1415 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1417 _flag_k = FK_CMP; 1418 MEM32(ebp + (-0x4)) = esi; /* 0x36146C25: mov dword ptr [ebp - 4], esi */ 1419 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146C45; /* 0x36146C28: je 0x36146c45 */ 1420 L_36146C2A: 1421 ecx = ebp + (-0x34); /* 0x36146C2A: lea ecx, [ebp - 0x34] */ 1422 PUSH32(esp, ecx); /* 0x36146C2D: push ecx */ 1423 ecx = eax; /* 0x36146C2E: mov ecx, eax */ 1424 MEM32(ebp + (-0x34)) = 0xC77Du; /* 0x36146C30: mov dword ptr [ebp - 0x34], 0xc77d */ 1425 MEM32(ebp + (-0x30)) = 1; /* 0x36146C37: mov dword ptr [ebp - 0x30], 1 */ 1426 RECOMP_ICALL(0x36150600u); /* 0x36146C3E: call 0x36150600 */ /* not lifted */ 1427 RECOMP_FLAGS_IN(); 1428 esi = eax; /* 0x36146C43: mov esi, eax */ 1429 L_36146C45: 1430 eax = MEM32(ebx + 0x10); /* 0x36146C45: mov eax, dword ptr [ebx + 0x10] */ 1431 edx = MEM32(esi); /* 0x36146C48: mov edx, dword ptr [esi] */ 1432 PUSH32(esp, eax); /* 0x36146C4A: push eax */ 1433 ecx = esi; /* 0x36146C4B: mov ecx, esi */ 1434 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36146C4D: mov dword ptr [ebp - 4], 0xffffffff */ 1435 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36146C54: call dword ptr [edx + 0xc] */ 1436 RECOMP_FLAGS_IN(); 1437 ebx = MEM32(edi + 0xE0); /* 0x36146C57: mov ebx, dword ptr [edi + 0xe0] */ 1438 ecx = esi; /* 0x36146C5D: mov ecx, esi */ 1439 MEM32(ebp + (-0x18)) = ebx; /* 0x36146C5F: mov dword ptr [ebp - 0x18], ebx */ 1440 RECOMP_ICALL(0x36150690u); /* 0x36146C62: call 0x36150690 */ /* not lifted */ 1441 RECOMP_FLAGS_IN(); 1442 edi = eax + 0x4; /* 0x36146C67: lea edi, [eax + 4] */ 1443 esi = ebx + 0x4; /* 0x36146C6A: lea esi, [ebx + 4] */ 1444 /* cmp esi, edi */ /* 0x36146C6D: cmp esi, edi */ 1445 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1447 _flag_k = FK_CMP; 1448 MEM32(ebp + (-0x14)) = eax; /* 0x36146C6F: mov dword ptr [ebp - 0x14], eax */ 1449 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146EF4; /* 0x36146C72: je 0x36146ef4 */ 1450 L_36146C78: 1451 ebx = MEM32(edi + 0x4); /* 0x36146C78: mov ebx, dword ptr [edi + 4] */ 1452 /* test ebx, ebx */ /* 0x36146C7B: test ebx, ebx */ 1453 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1454 _cf = 0; 1455 _flag_k = FK_TEST; 1456 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146C84; /* 0x36146C7D: jne 0x36146c84 */ 1457 L_36146C7F: 1458 MEM32(ebp + 0x8) = ebx; /* 0x36146C7F: mov dword ptr [ebp + 8], ebx */ 1459 goto L_36146C9D; /* 0x36146C82: jmp 0x36146c9d */ 1460 L_36146C84: 1461 ecx = MEM32(edi + 0x8); /* 0x36146C84: mov ecx, dword ptr [edi + 8] */ 1462 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1464 ecx = ecx - ebx; /* 0x36146C87: sub ecx, ebx */ 1465 _flag_k = FK_CMP; 1466 eax = 0x2AAAAAABu; /* 0x36146C89: mov eax, 0x2aaaaaab */ 1467 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36146C8E: imul ecx */ 1468 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1469 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1470 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36146C90: sar edx, 2 */ 1471 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1472 edx = (uint32_t)((int32_t)edx >> 2u); 1473 ecx = edx; /* 0x36146C93: mov ecx, edx */ 1474 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36146C95: shr ecx, 0x1f */ 1475 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1476 ecx = ecx >> 31u; /* 0x36146C95: shr ecx, 0x1f */ 1477 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1478 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1479 edx = edx + ecx; /* 0x36146C98: add edx, ecx */ 1480 _flag_k = FK_ADD; 1481 MEM32(ebp + 0x8) = edx; /* 0x36146C9A: mov dword ptr [ebp + 8], edx */ 1482 L_36146C9D: 1483 ecx = MEM32(esi + 0x4); /* 0x36146C9D: mov ecx, dword ptr [esi + 4] */ 1484 /* test ecx, ecx */ /* 0x36146CA0: test ecx, ecx */ 1485 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1486 _cf = 0; 1487 _flag_k = FK_TEST; 1488 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146CA8; /* 0x36146CA2: jne 0x36146ca8 */ 1489 L_36146CA4: 1490 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1491 edx = 0; /* 0x36146CA4: xor edx, edx */ 1492 _cf = 0; 1493 _flag_k = FK_TEST; 1494 goto L_36146CBE; /* 0x36146CA6: jmp 0x36146cbe */ 1495 L_36146CA8: 1496 edx = MEM32(esi + 0x8); /* 0x36146CA8: mov edx, dword ptr [esi + 8] */ 1497 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1499 edx = edx - ecx; /* 0x36146CAB: sub edx, ecx */ 1500 _flag_k = FK_CMP; 1501 eax = 0x2AAAAAABu; /* 0x36146CAD: mov eax, 0x2aaaaaab */ 1502 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36146CB2: imul edx */ 1503 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1504 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1505 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36146CB4: sar edx, 2 */ 1506 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1507 edx = (uint32_t)((int32_t)edx >> 2u); 1508 eax = edx; /* 0x36146CB7: mov eax, edx */ 1509 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36146CB9: shr eax, 0x1f */ 1510 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1511 eax = eax >> 31u; /* 0x36146CB9: shr eax, 0x1f */ 1512 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1514 edx = edx + eax; /* 0x36146CBC: add edx, eax */ 1515 _flag_k = FK_ADD; 1516 L_36146CBE: 1517 /* cmp MEM32(ebp + 0x8), edx */ /* 0x36146CBE: cmp dword ptr [ebp + 8], edx */ 1518 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(edx); 1519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1520 _flag_k = FK_CMP; 1521 if (CMP_A(_flag_a, _flag_b)) goto L_36146D89; /* 0x36146CC1: ja 0x36146d89 */ 1522 L_36146CC7: 1523 eax = MEM32(edi + 0x8); /* 0x36146CC7: mov eax, dword ptr [edi + 8] */ 1524 /* cmp ebx, eax */ /* 0x36146CCA: cmp ebx, eax */ 1525 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1527 _flag_k = FK_CMP; 1528 MEM32(ebp + (-0x10)) = eax; /* 0x36146CCC: mov dword ptr [ebp - 0x10], eax */ 1529 MEM32(ebp + 0x8) = ecx; /* 0x36146CCF: mov dword ptr [ebp + 8], ecx */ 1530 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146CEF; /* 0x36146CD2: je 0x36146cef */ 1531 L_36146CD4: 1532 PUSH32(esp, ebx); /* 0x36146CD4: push ebx */ 1533 RECOMP_ICALL(0x36147190u); /* 0x36146CD5: call 0x36147190 */ /* not lifted */ 1534 RECOMP_FLAGS_IN(); 1535 edx = MEM32(ebp + 0x8); /* 0x36146CDA: mov edx, dword ptr [ebp + 8] */ 1536 eax = MEM32(ebp + (-0x10)); /* 0x36146CDD: mov eax, dword ptr [ebp - 0x10] */ 1537 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 1538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1539 edx = edx + 0x18u; /* 0x36146CE0: add edx, 0x18 */ 1540 _flag_k = FK_ADD; 1541 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x18u); 1542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1543 ebx = ebx + 0x18u; /* 0x36146CE3: add ebx, 0x18 */ 1544 _flag_k = FK_ADD; 1545 /* cmp ebx, eax */ /* 0x36146CE6: cmp ebx, eax */ 1546 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1548 _flag_k = FK_CMP; 1549 MEM32(ebp + 0x8) = edx; /* 0x36146CE8: mov dword ptr [ebp + 8], edx */ 1550 ecx = edx; /* 0x36146CEB: mov ecx, edx */ 1551 RECOMP_BACKEDGE(); 1552 if (CMP_NE(_flag_a, _flag_b)) goto L_36146CD4; /* 0x36146CED: jne 0x36146cd4 */ 1553 L_36146CEF: 1554 eax = MEM32(esi + 0x8); /* 0x36146CEF: mov eax, dword ptr [esi + 8] */ 1555 /* cmp ecx, eax */ /* 0x36146CF2: cmp ecx, eax */ 1556 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1558 _flag_k = FK_CMP; 1559 MEM32(ebp + 0x8) = eax; /* 0x36146CF4: mov dword ptr [ebp + 8], eax */ 1560 ebx = ecx; /* 0x36146CF7: mov ebx, ecx */ 1561 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146D0E; /* 0x36146CF9: je 0x36146d0e */ 1562 L_36146CFB: 1563 PUSH32(esp, 0); /* 0x36146CFB: push 0 */ 1564 ecx = ebx; /* 0x36146CFD: mov ecx, ebx */ 1565 RECOMP_ICALL(0x361473B0u); /* 0x36146CFF: call 0x361473b0 */ /* not lifted */ 1566 RECOMP_FLAGS_IN(); 1567 eax = MEM32(ebp + 0x8); /* 0x36146D04: mov eax, dword ptr [ebp + 8] */ 1568 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x18u); 1569 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1570 ebx = ebx + 0x18u; /* 0x36146D07: add ebx, 0x18 */ 1571 _flag_k = FK_ADD; 1572 /* cmp ebx, eax */ /* 0x36146D0A: cmp ebx, eax */ 1573 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1575 _flag_k = FK_CMP; 1576 RECOMP_BACKEDGE(); 1577 if (CMP_NE(_flag_a, _flag_b)) goto L_36146CFB; /* 0x36146D0C: jne 0x36146cfb */ 1578 L_36146D0E: 1579 eax = MEM32(edi + 0x4); /* 0x36146D0E: mov eax, dword ptr [edi + 4] */ 1580 /* test eax, eax */ /* 0x36146D11: test eax, eax */ 1581 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1582 _cf = 0; 1583 _flag_k = FK_TEST; 1584 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146D45; /* 0x36146D13: jne 0x36146d45 */ 1585 L_36146D15: 1586 eax = MEM32(esi + 0x4); /* 0x36146D15: mov eax, dword ptr [esi + 4] */ 1587 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1588 edx = 0; /* 0x36146D18: xor edx, edx */ 1589 _cf = 0; 1590 _flag_k = FK_TEST; 1591 edx = edx + edx * 2; /* 0x36146D1A: lea edx, [edx + edx*2] */ 1592 ecx = eax + edx * 8; /* 0x36146D1D: lea ecx, [eax + edx*8] */ 1593 edx = MEM32(ebp + (-0x14)); /* 0x36146D20: mov edx, dword ptr [ebp - 0x14] */ 1594 MEM32(esi + 0x8) = ecx; /* 0x36146D23: mov dword ptr [esi + 8], ecx */ 1595 eax = MEM32(edx + 0x14); /* 0x36146D26: mov eax, dword ptr [edx + 0x14] */ 1596 ecx = MEM32(ebp + (-0x18)); /* 0x36146D29: mov ecx, dword ptr [ebp - 0x18] */ 1597 edi = POP32_VAL(esp); /* 0x36146D2C: pop edi */ 1598 esi = POP32_VAL(esp); /* 0x36146D2D: pop esi */ 1599 MEM32(ecx + 0x14) = eax; /* 0x36146D2E: mov dword ptr [ecx + 0x14], eax */ 1600 eax = MEM32(ebp + (-0x1C)); /* 0x36146D31: mov eax, dword ptr [ebp - 0x1c] */ 1601 ebx = POP32_VAL(esp); /* 0x36146D34: pop ebx */ 1602 ecx = MEM32(ebp + (-0xC)); /* 0x36146D35: mov ecx, dword ptr [ebp - 0xc] */ 1603 MEM32(FS_BASE + (0)) = ecx; /* 0x36146D38: mov dword ptr fs:[0], ecx */ 1604 esp = ebp; /* 0x36146D3F: mov esp, ebp */ 1605 ebp = POP32_VAL(esp); /* 0x36146D41: pop ebp */ 1606 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146D42: ret 4 */ 1607 L_36146D45: 1608 edi = MEM32(edi + 0x8); /* 0x36146D45: mov edi, dword ptr [edi + 8] */ 1609 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1611 edi = edi - eax; /* 0x36146D48: sub edi, eax */ 1612 _flag_k = FK_CMP; 1613 eax = 0x2AAAAAABu; /* 0x36146D4A: mov eax, 0x2aaaaaab */ 1614 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edi); /* 0x36146D4F: imul edi */ 1615 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1616 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1617 eax = MEM32(esi + 0x4); /* 0x36146D51: mov eax, dword ptr [esi + 4] */ 1618 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36146D54: sar edx, 2 */ 1619 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1620 edx = (uint32_t)((int32_t)edx >> 2u); 1621 ecx = edx; /* 0x36146D57: mov ecx, edx */ 1622 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36146D59: shr ecx, 0x1f */ 1623 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1624 ecx = ecx >> 31u; /* 0x36146D59: shr ecx, 0x1f */ 1625 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1626 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1627 edx = edx + ecx; /* 0x36146D5C: add edx, ecx */ 1628 _flag_k = FK_ADD; 1629 edx = edx + edx * 2; /* 0x36146D5E: lea edx, [edx + edx*2] */ 1630 ecx = eax + edx * 8; /* 0x36146D61: lea ecx, [eax + edx*8] */ 1631 edx = MEM32(ebp + (-0x14)); /* 0x36146D64: mov edx, dword ptr [ebp - 0x14] */ 1632 MEM32(esi + 0x8) = ecx; /* 0x36146D67: mov dword ptr [esi + 8], ecx */ 1633 eax = MEM32(edx + 0x14); /* 0x36146D6A: mov eax, dword ptr [edx + 0x14] */ 1634 ecx = MEM32(ebp + (-0x18)); /* 0x36146D6D: mov ecx, dword ptr [ebp - 0x18] */ 1635 edi = POP32_VAL(esp); /* 0x36146D70: pop edi */ 1636 esi = POP32_VAL(esp); /* 0x36146D71: pop esi */ 1637 MEM32(ecx + 0x14) = eax; /* 0x36146D72: mov dword ptr [ecx + 0x14], eax */ 1638 eax = MEM32(ebp + (-0x1C)); /* 0x36146D75: mov eax, dword ptr [ebp - 0x1c] */ 1639 ebx = POP32_VAL(esp); /* 0x36146D78: pop ebx */ 1640 ecx = MEM32(ebp + (-0xC)); /* 0x36146D79: mov ecx, dword ptr [ebp - 0xc] */ 1641 MEM32(FS_BASE + (0)) = ecx; /* 0x36146D7C: mov dword ptr fs:[0], ecx */ 1642 esp = ebp; /* 0x36146D83: mov esp, ebp */ 1643 ebp = POP32_VAL(esp); /* 0x36146D85: pop ebp */ 1644 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146D86: ret 4 */ 1645 L_36146D89: 1646 /* test ebx, ebx */ /* 0x36146D89: test ebx, ebx */ 1647 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1648 _cf = 0; 1649 _flag_k = FK_TEST; 1650 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146D92; /* 0x36146D8B: jne 0x36146d92 */ 1651 L_36146D8D: 1652 MEM32(ebp + 0x8) = ebx; /* 0x36146D8D: mov dword ptr [ebp + 8], ebx */ 1653 goto L_36146DAB; /* 0x36146D90: jmp 0x36146dab */ 1654 L_36146D92: 1655 edx = MEM32(edi + 0x8); /* 0x36146D92: mov edx, dword ptr [edi + 8] */ 1656 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 1657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1658 edx = edx - ebx; /* 0x36146D95: sub edx, ebx */ 1659 _flag_k = FK_CMP; 1660 eax = 0x2AAAAAABu; /* 0x36146D97: mov eax, 0x2aaaaaab */ 1661 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36146D9C: imul edx */ 1662 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1663 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1664 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36146D9E: sar edx, 2 */ 1665 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1666 edx = (uint32_t)((int32_t)edx >> 2u); 1667 eax = edx; /* 0x36146DA1: mov eax, edx */ 1668 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36146DA3: shr eax, 0x1f */ 1669 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1670 eax = eax >> 31u; /* 0x36146DA3: shr eax, 0x1f */ 1671 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1673 edx = edx + eax; /* 0x36146DA6: add edx, eax */ 1674 _flag_k = FK_ADD; 1675 MEM32(ebp + 0x8) = edx; /* 0x36146DA8: mov dword ptr [ebp + 8], edx */ 1676 L_36146DAB: 1677 /* test ecx, ecx */ /* 0x36146DAB: test ecx, ecx */ 1678 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1679 _cf = 0; 1680 _flag_k = FK_TEST; 1681 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146DB3; /* 0x36146DAD: jne 0x36146db3 */ 1682 L_36146DAF: 1683 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1684 edx = 0; /* 0x36146DAF: xor edx, edx */ 1685 _cf = 0; 1686 _flag_k = FK_TEST; 1687 goto L_36146DC9; /* 0x36146DB1: jmp 0x36146dc9 */ 1688 L_36146DB3: 1689 edx = MEM32(esi + 0xC); /* 0x36146DB3: mov edx, dword ptr [esi + 0xc] */ 1690 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1692 edx = edx - ecx; /* 0x36146DB6: sub edx, ecx */ 1693 _flag_k = FK_CMP; 1694 eax = 0x2AAAAAABu; /* 0x36146DB8: mov eax, 0x2aaaaaab */ 1695 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36146DBD: imul edx */ 1696 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1697 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1698 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36146DBF: sar edx, 2 */ 1699 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1700 edx = (uint32_t)((int32_t)edx >> 2u); 1701 eax = edx; /* 0x36146DC2: mov eax, edx */ 1702 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36146DC4: shr eax, 0x1f */ 1703 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1704 eax = eax >> 31u; /* 0x36146DC4: shr eax, 0x1f */ 1705 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1706 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1707 edx = edx + eax; /* 0x36146DC7: add edx, eax */ 1708 _flag_k = FK_ADD; 1709 L_36146DC9: 1710 /* cmp MEM32(ebp + 0x8), edx */ /* 0x36146DC9: cmp dword ptr [ebp + 8], edx */ 1711 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(edx); 1712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1713 _flag_k = FK_CMP; 1714 if (CMP_A(_flag_a, _flag_b)) goto L_36146EA7; /* 0x36146DCC: ja 0x36146ea7 */ 1715 L_36146DD2: 1716 /* test ecx, ecx */ /* 0x36146DD2: test ecx, ecx */ 1717 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1718 _cf = 0; 1719 _flag_k = FK_TEST; 1720 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146DDA; /* 0x36146DD4: jne 0x36146dda */ 1721 L_36146DD6: 1722 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1723 edx = 0; /* 0x36146DD6: xor edx, edx */ 1724 _cf = 0; 1725 _flag_k = FK_TEST; 1726 goto L_36146DF0; /* 0x36146DD8: jmp 0x36146df0 */ 1727 L_36146DDA: 1728 edx = MEM32(esi + 0x8); /* 0x36146DDA: mov edx, dword ptr [esi + 8] */ 1729 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1731 edx = edx - ecx; /* 0x36146DDD: sub edx, ecx */ 1732 _flag_k = FK_CMP; 1733 eax = 0x2AAAAAABu; /* 0x36146DDF: mov eax, 0x2aaaaaab */ 1734 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36146DE4: imul edx */ 1735 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1736 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1737 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36146DE6: sar edx, 2 */ 1738 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1739 edx = (uint32_t)((int32_t)edx >> 2u); 1740 eax = edx; /* 0x36146DE9: mov eax, edx */ 1741 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36146DEB: shr eax, 0x1f */ 1742 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1743 eax = eax >> 31u; /* 0x36146DEB: shr eax, 0x1f */ 1744 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1746 edx = edx + eax; /* 0x36146DEE: add edx, eax */ 1747 _flag_k = FK_ADD; 1748 L_36146DF0: 1749 edx = edx + edx * 2; /* 0x36146DF0: lea edx, [edx + edx*2] */ 1750 eax = ebx + edx * 8; /* 0x36146DF3: lea eax, [ebx + edx*8] */ 1751 /* cmp ebx, eax */ /* 0x36146DF6: cmp ebx, eax */ 1752 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1754 _flag_k = FK_CMP; 1755 MEM32(ebp + (-0x10)) = eax; /* 0x36146DF8: mov dword ptr [ebp - 0x10], eax */ 1756 MEM32(ebp + 0x8) = ecx; /* 0x36146DFB: mov dword ptr [ebp + 8], ecx */ 1757 if (CMP_EQ(_flag_a, _flag_b)) goto L_36146E1C; /* 0x36146DFE: je 0x36146e1c */ 1758 L_36146E00: 1759 ecx = MEM32(ebp + 0x8); /* 0x36146E00: mov ecx, dword ptr [ebp + 8] */ 1760 PUSH32(esp, ebx); /* 0x36146E03: push ebx */ 1761 RECOMP_ICALL(0x36147190u); /* 0x36146E04: call 0x36147190 */ /* not lifted */ 1762 RECOMP_FLAGS_IN(); 1763 edx = MEM32(ebp + 0x8); /* 0x36146E09: mov edx, dword ptr [ebp + 8] */ 1764 eax = MEM32(ebp + (-0x10)); /* 0x36146E0C: mov eax, dword ptr [ebp - 0x10] */ 1765 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 1766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1767 edx = edx + 0x18u; /* 0x36146E0F: add edx, 0x18 */ 1768 _flag_k = FK_ADD; 1769 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x18u); 1770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1771 ebx = ebx + 0x18u; /* 0x36146E12: add ebx, 0x18 */ 1772 _flag_k = FK_ADD; 1773 /* cmp ebx, eax */ /* 0x36146E15: cmp ebx, eax */ 1774 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1776 _flag_k = FK_CMP; 1777 MEM32(ebp + 0x8) = edx; /* 0x36146E17: mov dword ptr [ebp + 8], edx */ 1778 RECOMP_BACKEDGE(); 1779 if (CMP_NE(_flag_a, _flag_b)) goto L_36146E00; /* 0x36146E1A: jne 0x36146e00 */ 1780 L_36146E1C: 1781 ecx = MEM32(esi + 0x8); /* 0x36146E1C: mov ecx, dword ptr [esi + 8] */ 1782 edx = MEM32(edi + 0x8); /* 0x36146E1F: mov edx, dword ptr [edi + 8] */ 1783 PUSH32(esp, ecx); /* 0x36146E22: push ecx */ 1784 PUSH32(esp, edx); /* 0x36146E23: push edx */ 1785 PUSH32(esp, eax); /* 0x36146E24: push eax */ 1786 ecx = esi; /* 0x36146E25: mov ecx, esi */ 1787 RECOMP_ICALL(0x36147080u); /* 0x36146E27: call 0x36147080 */ /* not lifted */ 1788 RECOMP_FLAGS_IN(); 1789 eax = MEM32(edi + 0x4); /* 0x36146E2C: mov eax, dword ptr [edi + 4] */ 1790 /* test eax, eax */ /* 0x36146E2F: test eax, eax */ 1791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1792 _cf = 0; 1793 _flag_k = FK_TEST; 1794 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146E63; /* 0x36146E31: jne 0x36146e63 */ 1795 L_36146E33: 1796 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1797 edx = 0; /* 0x36146E33: xor edx, edx */ 1798 _cf = 0; 1799 _flag_k = FK_TEST; 1800 ecx = edx + edx * 2; /* 0x36146E35: lea ecx, [edx + edx*2] */ 1801 edx = MEM32(esi + 0x4); /* 0x36146E38: mov edx, dword ptr [esi + 4] */ 1802 eax = edx + ecx * 8; /* 0x36146E3B: lea eax, [edx + ecx*8] */ 1803 edx = MEM32(ebp + (-0x14)); /* 0x36146E3E: mov edx, dword ptr [ebp - 0x14] */ 1804 ecx = MEM32(ebp + (-0x18)); /* 0x36146E41: mov ecx, dword ptr [ebp - 0x18] */ 1805 MEM32(esi + 0x8) = eax; /* 0x36146E44: mov dword ptr [esi + 8], eax */ 1806 eax = MEM32(edx + 0x14); /* 0x36146E47: mov eax, dword ptr [edx + 0x14] */ 1807 edi = POP32_VAL(esp); /* 0x36146E4A: pop edi */ 1808 esi = POP32_VAL(esp); /* 0x36146E4B: pop esi */ 1809 MEM32(ecx + 0x14) = eax; /* 0x36146E4C: mov dword ptr [ecx + 0x14], eax */ 1810 eax = MEM32(ebp + (-0x1C)); /* 0x36146E4F: mov eax, dword ptr [ebp - 0x1c] */ 1811 ebx = POP32_VAL(esp); /* 0x36146E52: pop ebx */ 1812 ecx = MEM32(ebp + (-0xC)); /* 0x36146E53: mov ecx, dword ptr [ebp - 0xc] */ 1813 MEM32(FS_BASE + (0)) = ecx; /* 0x36146E56: mov dword ptr fs:[0], ecx */ 1814 esp = ebp; /* 0x36146E5D: mov esp, ebp */ 1815 ebp = POP32_VAL(esp); /* 0x36146E5F: pop ebp */ 1816 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146E60: ret 4 */ 1817 L_36146E63: 1818 edi = MEM32(edi + 0x8); /* 0x36146E63: mov edi, dword ptr [edi + 8] */ 1819 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1821 edi = edi - eax; /* 0x36146E66: sub edi, eax */ 1822 _flag_k = FK_CMP; 1823 eax = 0x2AAAAAABu; /* 0x36146E68: mov eax, 0x2aaaaaab */ 1824 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edi); /* 0x36146E6D: imul edi */ 1825 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1826 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1827 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36146E6F: sar edx, 2 */ 1828 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1829 edx = (uint32_t)((int32_t)edx >> 2u); 1830 eax = edx; /* 0x36146E72: mov eax, edx */ 1831 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36146E74: shr eax, 0x1f */ 1832 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1833 eax = eax >> 31u; /* 0x36146E74: shr eax, 0x1f */ 1834 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1835 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1836 edx = edx + eax; /* 0x36146E77: add edx, eax */ 1837 _flag_k = FK_ADD; 1838 ecx = edx + edx * 2; /* 0x36146E79: lea ecx, [edx + edx*2] */ 1839 edx = MEM32(esi + 0x4); /* 0x36146E7C: mov edx, dword ptr [esi + 4] */ 1840 eax = edx + ecx * 8; /* 0x36146E7F: lea eax, [edx + ecx*8] */ 1841 edx = MEM32(ebp + (-0x14)); /* 0x36146E82: mov edx, dword ptr [ebp - 0x14] */ 1842 ecx = MEM32(ebp + (-0x18)); /* 0x36146E85: mov ecx, dword ptr [ebp - 0x18] */ 1843 MEM32(esi + 0x8) = eax; /* 0x36146E88: mov dword ptr [esi + 8], eax */ 1844 eax = MEM32(edx + 0x14); /* 0x36146E8B: mov eax, dword ptr [edx + 0x14] */ 1845 edi = POP32_VAL(esp); /* 0x36146E8E: pop edi */ 1846 esi = POP32_VAL(esp); /* 0x36146E8F: pop esi */ 1847 MEM32(ecx + 0x14) = eax; /* 0x36146E90: mov dword ptr [ecx + 0x14], eax */ 1848 eax = MEM32(ebp + (-0x1C)); /* 0x36146E93: mov eax, dword ptr [ebp - 0x1c] */ 1849 ebx = POP32_VAL(esp); /* 0x36146E96: pop ebx */ 1850 ecx = MEM32(ebp + (-0xC)); /* 0x36146E97: mov ecx, dword ptr [ebp - 0xc] */ 1851 MEM32(FS_BASE + (0)) = ecx; /* 0x36146E9A: mov dword ptr fs:[0], ecx */ 1852 esp = ebp; /* 0x36146EA1: mov esp, ebp */ 1853 ebp = POP32_VAL(esp); /* 0x36146EA3: pop ebp */ 1854 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146EA4: ret 4 */ 1855 L_36146EA7: 1856 edx = MEM32(esi + 0x8); /* 0x36146EA7: mov edx, dword ptr [esi + 8] */ 1857 PUSH32(esp, edx); /* 0x36146EAA: push edx */ 1858 PUSH32(esp, ecx); /* 0x36146EAB: push ecx */ 1859 ecx = esi; /* 0x36146EAC: mov ecx, esi */ 1860 RECOMP_ICALL(0x36147050u); /* 0x36146EAE: call 0x36147050 */ /* not lifted */ 1861 RECOMP_FLAGS_IN(); 1862 eax = MEM32(esi + 0x4); /* 0x36146EB3: mov eax, dword ptr [esi + 4] */ 1863 PUSH32(esp, eax); /* 0x36146EB6: push eax */ 1864 RECOMP_ICALL(0x3615FCC4u); /* 0x36146EB7: call 0x3615fcc4 */ /* not lifted */ 1865 RECOMP_FLAGS_IN(); 1866 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1868 esp = esp + 4; /* 0x36146EBC: add esp, 4 */ 1869 _flag_k = FK_ADD; 1870 ecx = edi; /* 0x36146EBF: mov ecx, edi */ 1871 RECOMP_ICALL(0x36147020u); /* 0x36146EC1: call 0x36147020 */ /* not lifted */ 1872 RECOMP_FLAGS_IN(); 1873 /* test eax, eax */ /* 0x36146EC6: test eax, eax */ 1874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1875 _cf = 0; 1876 _flag_k = FK_TEST; 1877 if (TEST_NS(_flag_a, _flag_b)) goto L_36146ECC; /* 0x36146EC8: jge 0x36146ecc */ 1878 L_36146ECA: 1879 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1880 eax = 0; /* 0x36146ECA: xor eax, eax */ 1881 _cf = 0; 1882 _flag_k = FK_TEST; 1883 L_36146ECC: 1884 ecx = eax + eax * 2; /* 0x36146ECC: lea ecx, [eax + eax*2] */ 1885 if (3u) _cf = (((ecx) >> 29) & 1u); /* 0x36146ECF: shl ecx, 3 */ 1886 if (3u) { _flag_a = recomp_flags_pack((ecx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1887 ecx = ecx << 3u; /* 0x36146ECF: shl ecx, 3 */ 1888 PUSH32(esp, ecx); /* 0x36146ED2: push ecx */ 1889 RECOMP_ICALL(0x3615FD6Au); /* 0x36146ED3: call 0x3615fd6a */ /* not lifted */ 1890 RECOMP_FLAGS_IN(); 1891 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1892 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1893 esp = esp + 4; /* 0x36146ED8: add esp, 4 */ 1894 _flag_k = FK_ADD; 1895 MEM32(esi + 0x4) = eax; /* 0x36146EDB: mov dword ptr [esi + 4], eax */ 1896 ecx = MEM32(edi + 0x8); /* 0x36146EDE: mov ecx, dword ptr [edi + 8] */ 1897 edi = MEM32(edi + 0x4); /* 0x36146EE1: mov edi, dword ptr [edi + 4] */ 1898 PUSH32(esp, eax); /* 0x36146EE4: push eax */ 1899 PUSH32(esp, ecx); /* 0x36146EE5: push ecx */ 1900 PUSH32(esp, edi); /* 0x36146EE6: push edi */ 1901 ecx = esi; /* 0x36146EE7: mov ecx, esi */ 1902 RECOMP_ICALL(0x36147080u); /* 0x36146EE9: call 0x36147080 */ /* not lifted */ 1903 RECOMP_FLAGS_IN(); 1904 MEM32(esi + 0x8) = eax; /* 0x36146EEE: mov dword ptr [esi + 8], eax */ 1905 MEM32(esi + 0xC) = eax; /* 0x36146EF1: mov dword ptr [esi + 0xc], eax */ 1906 L_36146EF4: 1907 edx = MEM32(ebp + (-0x14)); /* 0x36146EF4: mov edx, dword ptr [ebp - 0x14] */ 1908 eax = MEM32(edx + 0x14); /* 0x36146EF7: mov eax, dword ptr [edx + 0x14] */ 1909 ecx = MEM32(ebp + (-0x18)); /* 0x36146EFA: mov ecx, dword ptr [ebp - 0x18] */ 1910 edi = POP32_VAL(esp); /* 0x36146EFD: pop edi */ 1911 esi = POP32_VAL(esp); /* 0x36146EFE: pop esi */ 1912 MEM32(ecx + 0x14) = eax; /* 0x36146EFF: mov dword ptr [ecx + 0x14], eax */ 1913 eax = MEM32(ebp + (-0x1C)); /* 0x36146F02: mov eax, dword ptr [ebp - 0x1c] */ 1914 ebx = POP32_VAL(esp); /* 0x36146F05: pop ebx */ 1915 ecx = MEM32(ebp + (-0xC)); /* 0x36146F06: mov ecx, dword ptr [ebp - 0xc] */ 1916 MEM32(FS_BASE + (0)) = ecx; /* 0x36146F09: mov dword ptr fs:[0], ecx */ 1917 esp = ebp; /* 0x36146F10: mov esp, ebp */ 1918 ebp = POP32_VAL(esp); /* 0x36146F12: pop ebp */ 1919 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146F13: ret 4 */ 1920 L_36146F16: 1921 ecx = MEM32(ebp + (-0xC)); /* 0x36146F16: mov ecx, dword ptr [ebp - 0xc] */ 1922 edi = POP32_VAL(esp); /* 0x36146F19: pop edi */ 1923 esi = POP32_VAL(esp); /* 0x36146F1A: pop esi */ 1924 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1925 eax = 0; /* 0x36146F1B: xor eax, eax */ 1926 _cf = 0; 1927 _flag_k = FK_TEST; 1928 ebx = POP32_VAL(esp); /* 0x36146F1D: pop ebx */ 1929 MEM32(FS_BASE + (0)) = ecx; /* 0x36146F1E: mov dword ptr fs:[0], ecx */ 1930 esp = ebp; /* 0x36146F25: mov esp, ebp */ 1931 ebp = POP32_VAL(esp); /* 0x36146F27: pop ebp */ 1932 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146F28: ret 4 */ 1933 RECOMP_REGS_OUT(); 1934 } 1935 1936 void sub_36146F30(void) { 1937 int _fpu_cmp = 0; 1938 uint32_t _cf = 0; 1939 int _df = 1; 1940 uint32_t _flag_k = FK_NONE; 1941 uint32_t _flag_a = 0, _flag_b = 0; 1942 uint32_t _itail_tgt = 0; 1943 RECOMP_REGS_LOCALS 1944 RECOMP_ENTER(0x36146F30u); 1945 1946 L_36146F30: 1947 PUSH32(esp, ebp); /* 0x36146F30: push ebp */ 1948 ebp = esp; /* 0x36146F31: mov ebp, esp */ 1949 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1951 esp = esp - 0x10u; /* 0x36146F33: sub esp, 0x10 */ 1952 _flag_k = FK_CMP; 1953 PUSH32(esp, ebx); /* 0x36146F36: push ebx */ 1954 PUSH32(esp, esi); /* 0x36146F37: push esi */ 1955 PUSH32(esp, edi); /* 0x36146F38: push edi */ 1956 RECOMP_ICALL(MEM32(0x3616FE1C)); /* 0x36146F39: call dword ptr [0x3616fe1c] */ 1957 RECOMP_FLAGS_IN(); 1958 ecx = eax; /* 0x36146F3F: mov ecx, eax */ 1959 RECOMP_ICALL(MEM32(0x3616FE18)); /* 0x36146F41: call dword ptr [0x3616fe18] */ 1960 RECOMP_FLAGS_IN(); 1961 PUSH32(esp, 1); /* 0x36146F47: push 1 */ 1962 PUSH32(esp, 0x361B66A0u); /* 0x36146F49: push 0x361b66a0 */ 1963 PUSH32(esp, 0x361B6680u); /* 0x36146F4E: push 0x361b6680 */ 1964 esi = eax; /* 0x36146F53: mov esi, eax */ 1965 eax = MEM32(ebp + 0x8); /* 0x36146F55: mov eax, dword ptr [ebp + 8] */ 1966 PUSH32(esp, 0); /* 0x36146F58: push 0 */ 1967 PUSH32(esp, eax); /* 0x36146F5A: push eax */ 1968 RECOMP_ICALL(0x3615FD86u); /* 0x36146F5B: call 0x3615fd86 */ /* not lifted */ 1969 RECOMP_FLAGS_IN(); 1970 ebx = eax; /* 0x36146F60: mov ebx, eax */ 1971 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1973 esp = esp + 0x14u; /* 0x36146F62: add esp, 0x14 */ 1974 _flag_k = FK_ADD; 1975 ecx = ebx; /* 0x36146F65: mov ecx, ebx */ 1976 RECOMP_ICALL(MEM32(0x36170040)); /* 0x36146F67: call dword ptr [0x36170040] */ 1977 RECOMP_FLAGS_IN(); 1978 PUSH32(esp, 0); /* 0x36146F6D: push 0 */ 1979 PUSH32(esp, 0x362E6E08u); /* 0x36146F6F: push 0x362e6e08 */ 1980 MEM32(ebp + 0x8) = eax; /* 0x36146F74: mov dword ptr [ebp + 8], eax */ 1981 eax = MEM32(eax + 0x4); /* 0x36146F77: mov eax, dword ptr [eax + 4] */ 1982 PUSH32(esp, 0x361B6528u); /* 0x36146F7A: push 0x361b6528 */ 1983 MEM32(ebp + (-0x4)) = eax; /* 0x36146F7F: mov dword ptr [ebp - 4], eax */ 1984 PUSH32(esp, 0); /* 0x36146F82: push 0 */ 1985 eax = ebp + (-0x8); /* 0x36146F84: lea eax, [ebp - 8] */ 1986 MEM32(ebp + (-0x8)) = 0x000F425Du; /* 0x36146F87: mov dword ptr [ebp - 8], 0xf425d */ 1987 edx = MEM32(esi); /* 0x36146F8E: mov edx, dword ptr [esi] */ 1988 PUSH32(esp, eax); /* 0x36146F90: push eax */ 1989 ecx = esi; /* 0x36146F91: mov ecx, esi */ 1990 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36146F93: call dword ptr [edx + 8] */ 1991 RECOMP_FLAGS_IN(); 1992 PUSH32(esp, eax); /* 0x36146F96: push eax */ 1993 RECOMP_ICALL(0x3615FD86u); /* 0x36146F97: call 0x3615fd86 */ /* not lifted */ 1994 RECOMP_FLAGS_IN(); 1995 edi = eax; /* 0x36146F9C: mov edi, eax */ 1996 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1997 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1998 esp = esp + 0x14u; /* 0x36146F9E: add esp, 0x14 */ 1999 _flag_k = FK_ADD; 2000 /* test edi, edi */ /* 0x36146FA1: test edi, edi */ 2001 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2002 _cf = 0; 2003 _flag_k = FK_TEST; 2004 if (TEST_NZ(_flag_a, _flag_b)) goto L_36146FB0; /* 0x36146FA3: jne 0x36146fb0 */ 2005 L_36146FA5: 2006 edi = POP32_VAL(esp); /* 0x36146FA5: pop edi */ 2007 esi = POP32_VAL(esp); /* 0x36146FA6: pop esi */ 2008 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2009 SET_LO8(eax, 0); /* 0x36146FA7: xor al, al */ 2010 _cf = 0; 2011 _flag_k = FK_NARROW(FK_TEST, 24); 2012 ebx = POP32_VAL(esp); /* 0x36146FA9: pop ebx */ 2013 esp = ebp; /* 0x36146FAA: mov esp, ebp */ 2014 ebp = POP32_VAL(esp); /* 0x36146FAC: pop ebp */ 2015 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36146FAD: ret 4 */ 2016 L_36146FB0: 2017 PUSH32(esp, edi); /* 0x36146FB0: push edi */ 2018 ecx = ebx; /* 0x36146FB1: mov ecx, ebx */ 2019 RECOMP_ICALL(0x3614CE40u); /* 0x36146FB3: call 0x3614ce40 */ /* not lifted */ 2020 RECOMP_FLAGS_IN(); 2021 ecx = edi; /* 0x36146FB8: mov ecx, edi */ 2022 edi = MEM32(0x3616FB14); /* 0x36146FBA: mov edi, dword ptr [0x3616fb14] */ 2023 RECOMP_ICALL(edi); /* 0x36146FC0: call edi */ 2024 RECOMP_FLAGS_IN(); 2025 ecx = MEM32(ebp + 0x8); /* 0x36146FC2: mov ecx, dword ptr [ebp + 8] */ 2026 eax = MEM32(ecx + 0x4); /* 0x36146FC5: mov eax, dword ptr [ecx + 4] */ 2027 PUSH32(esp, 0); /* 0x36146FC8: push 0 */ 2028 PUSH32(esp, 0x362E3D98u); /* 0x36146FCA: push 0x362e3d98 */ 2029 PUSH32(esp, 0x361B6528u); /* 0x36146FCF: push 0x361b6528 */ 2030 MEM32(ebp + (-0xC)) = eax; /* 0x36146FD4: mov dword ptr [ebp - 0xc], eax */ 2031 PUSH32(esp, 0); /* 0x36146FD7: push 0 */ 2032 eax = ebp + (-0x10); /* 0x36146FD9: lea eax, [ebp - 0x10] */ 2033 MEM32(ebp + (-0x10)) = 0x000F424Eu; /* 0x36146FDC: mov dword ptr [ebp - 0x10], 0xf424e */ 2034 edx = MEM32(esi); /* 0x36146FE3: mov edx, dword ptr [esi] */ 2035 PUSH32(esp, eax); /* 0x36146FE5: push eax */ 2036 ecx = esi; /* 0x36146FE6: mov ecx, esi */ 2037 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36146FE8: call dword ptr [edx + 8] */ 2038 RECOMP_FLAGS_IN(); 2039 PUSH32(esp, eax); /* 0x36146FEB: push eax */ 2040 RECOMP_ICALL(0x3615FD86u); /* 0x36146FEC: call 0x3615fd86 */ /* not lifted */ 2041 RECOMP_FLAGS_IN(); 2042 esi = eax; /* 0x36146FF1: mov esi, eax */ 2043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2044 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2045 esp = esp + 0x14u; /* 0x36146FF3: add esp, 0x14 */ 2046 _flag_k = FK_ADD; 2047 /* test esi, esi */ /* 0x36146FF6: test esi, esi */ 2048 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2049 _cf = 0; 2050 _flag_k = FK_TEST; 2051 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147005; /* 0x36146FF8: jne 0x36147005 */ 2052 L_36146FFA: 2053 edi = POP32_VAL(esp); /* 0x36146FFA: pop edi */ 2054 esi = POP32_VAL(esp); /* 0x36146FFB: pop esi */ 2055 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2056 SET_LO8(eax, 0); /* 0x36146FFC: xor al, al */ 2057 _cf = 0; 2058 _flag_k = FK_NARROW(FK_TEST, 24); 2059 ebx = POP32_VAL(esp); /* 0x36146FFE: pop ebx */ 2060 esp = ebp; /* 0x36146FFF: mov esp, ebp */ 2061 ebp = POP32_VAL(esp); /* 0x36147001: pop ebp */ 2062 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36147002: ret 4 */ 2063 L_36147005: 2064 PUSH32(esp, esi); /* 0x36147005: push esi */ 2065 ecx = ebx; /* 0x36147006: mov ecx, ebx */ 2066 RECOMP_ICALL(0x3614CE80u); /* 0x36147008: call 0x3614ce80 */ /* not lifted */ 2067 RECOMP_FLAGS_IN(); 2068 ecx = esi; /* 0x3614700D: mov ecx, esi */ 2069 RECOMP_ICALL(edi); /* 0x3614700F: call edi */ 2070 RECOMP_FLAGS_IN(); 2071 edi = POP32_VAL(esp); /* 0x36147011: pop edi */ 2072 esi = POP32_VAL(esp); /* 0x36147012: pop esi */ 2073 SET_LO8(eax, 1); /* 0x36147013: mov al, 1 */ 2074 ebx = POP32_VAL(esp); /* 0x36147015: pop ebx */ 2075 esp = ebp; /* 0x36147016: mov esp, ebp */ 2076 ebp = POP32_VAL(esp); /* 0x36147018: pop ebp */ 2077 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36147019: ret 4 */ 2078 RECOMP_REGS_OUT(); 2079 } 2080 2081 void sub_36147020(void) { 2082 int _fpu_cmp = 0; 2083 uint32_t _cf = 0; 2084 int _df = 1; 2085 uint32_t _flag_k = FK_NONE; 2086 uint32_t _flag_a = 0, _flag_b = 0; 2087 uint32_t _itail_tgt = 0; 2088 RECOMP_REGS_LOCALS 2089 RECOMP_ENTER(0x36147020u); 2090 2091 L_36147020: 2092 eax = MEM32(ecx + 0x4); /* 0x36147020: mov eax, dword ptr [ecx + 4] */ 2093 /* test eax, eax */ /* 0x36147023: test eax, eax */ 2094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2095 _cf = 0; 2096 _flag_k = FK_TEST; 2097 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147028; /* 0x36147025: jne 0x36147028 */ 2098 L_36147027: 2099 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36147027: ret */ 2100 L_36147028: 2101 ecx = MEM32(ecx + 0x8); /* 0x36147028: mov ecx, dword ptr [ecx + 8] */ 2102 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2104 ecx = ecx - eax; /* 0x3614702B: sub ecx, eax */ 2105 _flag_k = FK_CMP; 2106 eax = 0x2AAAAAABu; /* 0x3614702D: mov eax, 0x2aaaaaab */ 2107 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36147032: imul ecx */ 2108 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2109 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2110 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36147034: sar edx, 2 */ 2111 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2112 edx = (uint32_t)((int32_t)edx >> 2u); 2113 eax = edx; /* 0x36147037: mov eax, edx */ 2114 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36147039: shr eax, 0x1f */ 2115 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2116 eax = eax >> 31u; /* 0x36147039: shr eax, 0x1f */ 2117 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2119 edx = edx + eax; /* 0x3614703C: add edx, eax */ 2120 _flag_k = FK_ADD; 2121 eax = edx; /* 0x3614703E: mov eax, edx */ 2122 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36147040: ret */ 2123 RECOMP_REGS_OUT(); 2124 } 2125 2126 void sub_36147050(void) { 2127 int _fpu_cmp = 0; 2128 uint32_t _cf = 0; 2129 int _df = 1; 2130 uint32_t _flag_k = FK_NONE; 2131 uint32_t _flag_a = 0, _flag_b = 0; 2132 uint32_t _itail_tgt = 0; 2133 RECOMP_REGS_LOCALS 2134 RECOMP_ENTER(0x36147050u); 2135 2136 L_36147050: 2137 PUSH32(esp, ebp); /* 0x36147050: push ebp */ 2138 ebp = esp; /* 0x36147051: mov ebp, esp */ 2139 PUSH32(esp, esi); /* 0x36147053: push esi */ 2140 esi = MEM32(ebp + 0x8); /* 0x36147054: mov esi, dword ptr [ebp + 8] */ 2141 PUSH32(esp, edi); /* 0x36147057: push edi */ 2142 edi = MEM32(ebp + 0xC); /* 0x36147058: mov edi, dword ptr [ebp + 0xc] */ 2143 /* cmp esi, edi */ /* 0x3614705B: cmp esi, edi */ 2144 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2146 _flag_k = FK_CMP; 2147 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614706D; /* 0x3614705D: je 0x3614706d */ 2148 L_3614705F: 2149 ecx = esi; /* 0x3614705F: mov ecx, esi */ 2150 RECOMP_ICALL(0x36140470u); /* 0x36147061: call 0x36140470 */ /* not lifted */ 2151 RECOMP_FLAGS_IN(); 2152 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x18u); 2153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2154 esi = esi + 0x18u; /* 0x36147066: add esi, 0x18 */ 2155 _flag_k = FK_ADD; 2156 /* cmp esi, edi */ /* 0x36147069: cmp esi, edi */ 2157 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2159 _flag_k = FK_CMP; 2160 RECOMP_BACKEDGE(); 2161 if (CMP_NE(_flag_a, _flag_b)) goto L_3614705F; /* 0x3614706B: jne 0x3614705f */ 2162 L_3614706D: 2163 edi = POP32_VAL(esp); /* 0x3614706D: pop edi */ 2164 esi = POP32_VAL(esp); /* 0x3614706E: pop esi */ 2165 ebp = POP32_VAL(esp); /* 0x3614706F: pop ebp */ 2166 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36147070: ret 8 */ 2167 RECOMP_REGS_OUT(); 2168 } 2169 2170 void sub_36147080(void) { 2171 int _fpu_cmp = 0; 2172 uint32_t _cf = 0; 2173 int _df = 1; 2174 uint32_t _flag_k = FK_NONE; 2175 uint32_t _flag_a = 0, _flag_b = 0; 2176 uint32_t _itail_tgt = 0; 2177 RECOMP_REGS_LOCALS 2178 RECOMP_ENTER(0x36147080u); 2179 2180 L_36147080: 2181 PUSH32(esp, ebp); /* 0x36147080: push ebp */ 2182 ebp = esp; /* 0x36147081: mov ebp, esp */ 2183 PUSH32(esp, ebx); /* 0x36147083: push ebx */ 2184 ebx = MEM32(ebp + 0xC); /* 0x36147084: mov ebx, dword ptr [ebp + 0xc] */ 2185 PUSH32(esp, esi); /* 0x36147087: push esi */ 2186 esi = MEM32(ebp + 0x8); /* 0x36147088: mov esi, dword ptr [ebp + 8] */ 2187 /* cmp esi, ebx */ /* 0x3614708B: cmp esi, ebx */ 2188 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2190 _flag_k = FK_CMP; 2191 if (CMP_EQ(_flag_a, _flag_b)) goto L_361470B0; /* 0x3614708D: je 0x361470b0 */ 2192 L_3614708F: 2193 PUSH32(esp, edi); /* 0x3614708F: push edi */ 2194 edi = MEM32(ebp + 0x10); /* 0x36147090: mov edi, dword ptr [ebp + 0x10] */ 2195 L_36147093: 2196 PUSH32(esp, esi); /* 0x36147093: push esi */ 2197 PUSH32(esp, edi); /* 0x36147094: push edi */ 2198 RECOMP_ICALL(0x361470C0u); /* 0x36147095: call 0x361470c0 */ /* not lifted */ 2199 RECOMP_FLAGS_IN(); 2200 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x18u); 2201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2202 esi = esi + 0x18u; /* 0x3614709A: add esi, 0x18 */ 2203 _flag_k = FK_ADD; 2204 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2205 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2206 esp = esp + 8; /* 0x3614709D: add esp, 8 */ 2207 _flag_k = FK_ADD; 2208 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u); 2209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2210 edi = edi + 0x18u; /* 0x361470A0: add edi, 0x18 */ 2211 _flag_k = FK_ADD; 2212 /* cmp esi, ebx */ /* 0x361470A3: cmp esi, ebx */ 2213 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2215 _flag_k = FK_CMP; 2216 RECOMP_BACKEDGE(); 2217 if (CMP_NE(_flag_a, _flag_b)) goto L_36147093; /* 0x361470A5: jne 0x36147093 */ 2218 L_361470A7: 2219 eax = edi; /* 0x361470A7: mov eax, edi */ 2220 edi = POP32_VAL(esp); /* 0x361470A9: pop edi */ 2221 esi = POP32_VAL(esp); /* 0x361470AA: pop esi */ 2222 ebx = POP32_VAL(esp); /* 0x361470AB: pop ebx */ 2223 ebp = POP32_VAL(esp); /* 0x361470AC: pop ebp */ 2224 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361470AD: ret 0xc */ 2225 L_361470B0: 2226 eax = MEM32(ebp + 0x10); /* 0x361470B0: mov eax, dword ptr [ebp + 0x10] */ 2227 esi = POP32_VAL(esp); /* 0x361470B3: pop esi */ 2228 ebx = POP32_VAL(esp); /* 0x361470B4: pop ebx */ 2229 ebp = POP32_VAL(esp); /* 0x361470B5: pop ebp */ 2230 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361470B6: ret 0xc */ 2231 RECOMP_REGS_OUT(); 2232 } 2233 2234 void sub_361470C0(void) { 2235 int _fpu_cmp = 0; 2236 uint32_t _cf = 0; 2237 int _df = 1; 2238 uint32_t _flag_k = FK_NONE; 2239 uint32_t _flag_a = 0, _flag_b = 0; 2240 uint32_t _itail_tgt = 0; 2241 RECOMP_REGS_LOCALS 2242 RECOMP_ENTER(0x361470C0u); 2243 2244 L_361470C0: 2245 PUSH32(esp, ebp); /* 0x361470C0: push ebp */ 2246 ebp = esp; /* 0x361470C1: mov ebp, esp */ 2247 PUSH32(esp, 0xFFFFFFFFu); /* 0x361470C3: push -1 */ 2248 PUSH32(esp, 0x3616D041u); /* 0x361470C5: push 0x3616d041 */ 2249 eax = MEM32(FS_BASE + (0)); /* 0x361470CA: mov eax, dword ptr fs:[0] */ 2250 PUSH32(esp, eax); /* 0x361470D0: push eax */ 2251 MEM32(FS_BASE + (0)) = esp; /* 0x361470D1: mov dword ptr fs:[0], esp */ 2252 PUSH32(esp, ecx); /* 0x361470D8: push ecx */ 2253 PUSH32(esp, edi); /* 0x361470D9: push edi */ 2254 edi = MEM32(ebp + 0x8); /* 0x361470DA: mov edi, dword ptr [ebp + 8] */ 2255 MEM32(ebp + (-0x10)) = edi; /* 0x361470DD: mov dword ptr [ebp - 0x10], edi */ 2256 /* test edi, edi */ /* 0x361470E0: test edi, edi */ 2257 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2258 _cf = 0; 2259 _flag_k = FK_TEST; 2260 MEM32(ebp + (-0x4)) = 0; /* 0x361470E2: mov dword ptr [ebp - 4], 0 */ 2261 if (TEST_Z(_flag_a, _flag_b)) goto L_3614717D; /* 0x361470E9: je 0x3614717d */ 2262 L_361470EF: 2263 PUSH32(esp, esi); /* 0x361470EF: push esi */ 2264 esi = MEM32(ebp + 0xC); /* 0x361470F0: mov esi, dword ptr [ebp + 0xc] */ 2265 eax = MEM32(esi); /* 0x361470F3: mov eax, dword ptr [esi] */ 2266 MEM32(edi) = eax; /* 0x361470F5: mov dword ptr [edi], eax */ 2267 SET_LO8(ecx, MEM8(esi + 0x4)); /* 0x361470F7: mov cl, byte ptr [esi + 4] */ 2268 MEM8(edi + 0x4) = (uint8_t)(LO8(ecx)); /* 0x361470FA: mov byte ptr [edi + 4], cl */ 2269 eax = MEM32(esi + 0x8); /* 0x361470FD: mov eax, dword ptr [esi + 8] */ 2270 /* test eax, eax */ /* 0x36147100: test eax, eax */ 2271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2272 _cf = 0; 2273 _flag_k = FK_TEST; 2274 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147108; /* 0x36147102: jne 0x36147108 */ 2275 L_36147104: 2276 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2277 edx = 0; /* 0x36147104: xor edx, edx */ 2278 _cf = 0; 2279 _flag_k = FK_TEST; 2280 goto L_3614711D; /* 0x36147106: jmp 0x3614711d */ 2281 L_36147108: 2282 ecx = MEM32(esi + 0xC); /* 0x36147108: mov ecx, dword ptr [esi + 0xc] */ 2283 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2285 ecx = ecx - eax; /* 0x3614710B: sub ecx, eax */ 2286 _flag_k = FK_CMP; 2287 eax = 0x2AAAAAABu; /* 0x3614710D: mov eax, 0x2aaaaaab */ 2288 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36147112: imul ecx */ 2289 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2290 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2291 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36147114: sar edx, 1 */ 2292 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2293 edx = (uint32_t)((int32_t)edx >> 1u); 2294 eax = edx; /* 0x36147116: mov eax, edx */ 2295 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36147118: shr eax, 0x1f */ 2296 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2297 eax = eax >> 31u; /* 0x36147118: shr eax, 0x1f */ 2298 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2300 edx = edx + eax; /* 0x3614711B: add edx, eax */ 2301 _flag_k = FK_ADD; 2302 L_3614711D: 2303 /* test edx, edx */ /* 0x3614711D: test edx, edx */ 2304 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2305 _cf = 0; 2306 _flag_k = FK_TEST; 2307 eax = edx; /* 0x3614711F: mov eax, edx */ 2308 if (TEST_NS(_flag_a, _flag_b)) goto L_36147125; /* 0x36147121: jge 0x36147125 */ 2309 L_36147123: 2310 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2311 eax = 0; /* 0x36147123: xor eax, eax */ 2312 _cf = 0; 2313 _flag_k = FK_TEST; 2314 L_36147125: 2315 ecx = eax + eax * 2; /* 0x36147125: lea ecx, [eax + eax*2] */ 2316 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x36147128: shl ecx, 2 */ 2317 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2318 ecx = ecx << 2u; /* 0x36147128: shl ecx, 2 */ 2319 PUSH32(esp, ecx); /* 0x3614712B: push ecx */ 2320 RECOMP_ICALL(0x3615FD6Au); /* 0x3614712C: call 0x3615fd6a */ /* not lifted */ 2321 RECOMP_FLAGS_IN(); 2322 MEM32(edi + 0x8) = eax; /* 0x36147131: mov dword ptr [edi + 8], eax */ 2323 edx = MEM32(esi + 0xC); /* 0x36147134: mov edx, dword ptr [esi + 0xc] */ 2324 ecx = eax; /* 0x36147137: mov ecx, eax */ 2325 eax = MEM32(esi + 0x8); /* 0x36147139: mov eax, dword ptr [esi + 8] */ 2326 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2328 esp = esp + 4; /* 0x3614713C: add esp, 4 */ 2329 _flag_k = FK_ADD; 2330 /* cmp eax, edx */ /* 0x3614713F: cmp eax, edx */ 2331 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2333 _flag_k = FK_CMP; 2334 MEM32(ebp + 0xC) = edx; /* 0x36147141: mov dword ptr [ebp + 0xc], edx */ 2335 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147170; /* 0x36147144: je 0x36147170 */ 2336 L_36147146: 2337 PUSH32(esp, ebx); /* 0x36147146: push ebx */ 2338 L_36147147: 2339 /* test ecx, ecx */ /* 0x36147147: test ecx, ecx */ 2340 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2341 _cf = 0; 2342 _flag_k = FK_TEST; 2343 if (TEST_Z(_flag_a, _flag_b)) goto L_36147165; /* 0x36147149: je 0x36147165 */ 2344 L_3614714B: 2345 edx = eax; /* 0x3614714B: mov edx, eax */ 2346 ebx = MEM32(edx); /* 0x3614714D: mov ebx, dword ptr [edx] */ 2347 edi = ecx; /* 0x3614714F: mov edi, ecx */ 2348 MEM32(edi) = ebx; /* 0x36147151: mov dword ptr [edi], ebx */ 2349 ebx = MEM32(edx + 0x4); /* 0x36147153: mov ebx, dword ptr [edx + 4] */ 2350 MEM32(edi + 0x4) = ebx; /* 0x36147156: mov dword ptr [edi + 4], ebx */ 2351 edx = MEM32(edx + 0x8); /* 0x36147159: mov edx, dword ptr [edx + 8] */ 2352 MEM32(edi + 0x8) = edx; /* 0x3614715C: mov dword ptr [edi + 8], edx */ 2353 edi = MEM32(ebp + 0x8); /* 0x3614715F: mov edi, dword ptr [ebp + 8] */ 2354 edx = MEM32(ebp + 0xC); /* 0x36147162: mov edx, dword ptr [ebp + 0xc] */ 2355 L_36147165: 2356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 2357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2358 eax = eax + 0xCu; /* 0x36147165: add eax, 0xc */ 2359 _flag_k = FK_ADD; 2360 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 2361 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2362 ecx = ecx + 0xCu; /* 0x36147168: add ecx, 0xc */ 2363 _flag_k = FK_ADD; 2364 /* cmp eax, edx */ /* 0x3614716B: cmp eax, edx */ 2365 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2367 _flag_k = FK_CMP; 2368 RECOMP_BACKEDGE(); 2369 if (CMP_NE(_flag_a, _flag_b)) goto L_36147147; /* 0x3614716D: jne 0x36147147 */ 2370 L_3614716F: 2371 ebx = POP32_VAL(esp); /* 0x3614716F: pop ebx */ 2372 L_36147170: 2373 MEM32(edi + 0xC) = ecx; /* 0x36147170: mov dword ptr [edi + 0xc], ecx */ 2374 MEM32(edi + 0x10) = ecx; /* 0x36147173: mov dword ptr [edi + 0x10], ecx */ 2375 eax = MEM32(esi + 0x14); /* 0x36147176: mov eax, dword ptr [esi + 0x14] */ 2376 MEM32(edi + 0x14) = eax; /* 0x36147179: mov dword ptr [edi + 0x14], eax */ 2377 esi = POP32_VAL(esp); /* 0x3614717C: pop esi */ 2378 L_3614717D: 2379 ecx = MEM32(ebp + (-0xC)); /* 0x3614717D: mov ecx, dword ptr [ebp - 0xc] */ 2380 edi = POP32_VAL(esp); /* 0x36147180: pop edi */ 2381 MEM32(FS_BASE + (0)) = ecx; /* 0x36147181: mov dword ptr fs:[0], ecx */ 2382 esp = ebp; /* 0x36147188: mov esp, ebp */ 2383 ebp = POP32_VAL(esp); /* 0x3614718A: pop ebp */ 2384 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614718B: ret */ 2385 RECOMP_REGS_OUT(); 2386 } 2387 2388 void sub_36147190(void) { 2389 int _fpu_cmp = 0; 2390 uint32_t _cf = 0; 2391 int _df = 1; 2392 uint32_t _flag_k = FK_NONE; 2393 uint32_t _flag_a = 0, _flag_b = 0; 2394 uint32_t _itail_tgt = 0; 2395 RECOMP_REGS_LOCALS 2396 RECOMP_ENTER(0x36147190u); 2397 2398 L_36147190: 2399 PUSH32(esp, ebp); /* 0x36147190: push ebp */ 2400 ebp = esp; /* 0x36147191: mov ebp, esp */ 2401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2403 esp = esp - 8; /* 0x36147193: sub esp, 8 */ 2404 _flag_k = FK_CMP; 2405 PUSH32(esp, ebx); /* 0x36147196: push ebx */ 2406 PUSH32(esp, esi); /* 0x36147197: push esi */ 2407 esi = MEM32(ebp + 0x8); /* 0x36147198: mov esi, dword ptr [ebp + 8] */ 2408 eax = ecx; /* 0x3614719B: mov eax, ecx */ 2409 ecx = MEM32(esi); /* 0x3614719D: mov ecx, dword ptr [esi] */ 2410 PUSH32(esp, edi); /* 0x3614719F: push edi */ 2411 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2413 esi = esi + 4; /* 0x361471A0: add esi, 4 */ 2414 _flag_k = FK_ADD; 2415 edi = eax + 0x4; /* 0x361471A3: lea edi, [eax + 4] */ 2416 /* cmp edi, esi */ /* 0x361471A6: cmp edi, esi */ 2417 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 2418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2419 _flag_k = FK_CMP; 2420 MEM32(ebp + (-0x4)) = eax; /* 0x361471A8: mov dword ptr [ebp - 4], eax */ 2421 MEM32(eax) = ecx; /* 0x361471AB: mov dword ptr [eax], ecx */ 2422 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614738F; /* 0x361471AD: je 0x3614738f */ 2423 L_361471B3: 2424 ebx = MEM32(esi + 0x4); /* 0x361471B3: mov ebx, dword ptr [esi + 4] */ 2425 /* test ebx, ebx */ /* 0x361471B6: test ebx, ebx */ 2426 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2427 _cf = 0; 2428 _flag_k = FK_TEST; 2429 if (TEST_NZ(_flag_a, _flag_b)) goto L_361471BF; /* 0x361471B8: jne 0x361471bf */ 2430 L_361471BA: 2431 MEM32(ebp + (-0x8)) = ebx; /* 0x361471BA: mov dword ptr [ebp - 8], ebx */ 2432 goto L_361471D7; /* 0x361471BD: jmp 0x361471d7 */ 2433 L_361471BF: 2434 ecx = MEM32(esi + 0x8); /* 0x361471BF: mov ecx, dword ptr [esi + 8] */ 2435 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2437 ecx = ecx - ebx; /* 0x361471C2: sub ecx, ebx */ 2438 _flag_k = FK_CMP; 2439 eax = 0x2AAAAAABu; /* 0x361471C4: mov eax, 0x2aaaaaab */ 2440 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x361471C9: imul ecx */ 2441 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2442 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2443 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361471CB: sar edx, 1 */ 2444 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2445 edx = (uint32_t)((int32_t)edx >> 1u); 2446 eax = edx; /* 0x361471CD: mov eax, edx */ 2447 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361471CF: shr eax, 0x1f */ 2448 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2449 eax = eax >> 31u; /* 0x361471CF: shr eax, 0x1f */ 2450 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2452 edx = edx + eax; /* 0x361471D2: add edx, eax */ 2453 _flag_k = FK_ADD; 2454 MEM32(ebp + (-0x8)) = edx; /* 0x361471D4: mov dword ptr [ebp - 8], edx */ 2455 L_361471D7: 2456 ecx = MEM32(edi + 0x4); /* 0x361471D7: mov ecx, dword ptr [edi + 4] */ 2457 /* test ecx, ecx */ /* 0x361471DA: test ecx, ecx */ 2458 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2459 _cf = 0; 2460 _flag_k = FK_TEST; 2461 if (TEST_NZ(_flag_a, _flag_b)) goto L_361471E2; /* 0x361471DC: jne 0x361471e2 */ 2462 L_361471DE: 2463 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2464 edx = 0; /* 0x361471DE: xor edx, edx */ 2465 _cf = 0; 2466 _flag_k = FK_TEST; 2467 goto L_361471F7; /* 0x361471E0: jmp 0x361471f7 */ 2468 L_361471E2: 2469 edx = MEM32(edi + 0x8); /* 0x361471E2: mov edx, dword ptr [edi + 8] */ 2470 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2472 edx = edx - ecx; /* 0x361471E5: sub edx, ecx */ 2473 _flag_k = FK_CMP; 2474 eax = 0x2AAAAAABu; /* 0x361471E7: mov eax, 0x2aaaaaab */ 2475 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361471EC: imul edx */ 2476 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2477 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2478 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361471EE: sar edx, 1 */ 2479 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2480 edx = (uint32_t)((int32_t)edx >> 1u); 2481 eax = edx; /* 0x361471F0: mov eax, edx */ 2482 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361471F2: shr eax, 0x1f */ 2483 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2484 eax = eax >> 31u; /* 0x361471F2: shr eax, 0x1f */ 2485 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2487 edx = edx + eax; /* 0x361471F5: add edx, eax */ 2488 _flag_k = FK_ADD; 2489 L_361471F7: 2490 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x361471F7: cmp dword ptr [ebp - 8], edx */ 2491 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 2492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2493 _flag_k = FK_CMP; 2494 if (CMP_A(_flag_a, _flag_b)) goto L_3614723B; /* 0x361471FA: ja 0x3614723b */ 2495 L_361471FC: 2496 edx = MEM32(esi + 0x8); /* 0x361471FC: mov edx, dword ptr [esi + 8] */ 2497 eax = ebx; /* 0x361471FF: mov eax, ebx */ 2498 /* cmp eax, edx */ /* 0x36147201: cmp eax, edx */ 2499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2501 _flag_k = FK_CMP; 2502 MEM32(ebp + (-0x8)) = edx; /* 0x36147203: mov dword ptr [ebp - 8], edx */ 2503 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147229; /* 0x36147206: je 0x36147229 */ 2504 L_36147208: 2505 edx = eax; /* 0x36147208: mov edx, eax */ 2506 ebx = MEM32(edx); /* 0x3614720A: mov ebx, dword ptr [edx] */ 2507 edi = ecx; /* 0x3614720C: mov edi, ecx */ 2508 MEM32(edi) = ebx; /* 0x3614720E: mov dword ptr [edi], ebx */ 2509 ebx = MEM32(edx + 0x4); /* 0x36147210: mov ebx, dword ptr [edx + 4] */ 2510 MEM32(edi + 0x4) = ebx; /* 0x36147213: mov dword ptr [edi + 4], ebx */ 2511 edx = MEM32(edx + 0x8); /* 0x36147216: mov edx, dword ptr [edx + 8] */ 2512 MEM32(edi + 0x8) = edx; /* 0x36147219: mov dword ptr [edi + 8], edx */ 2513 edx = MEM32(ebp + (-0x8)); /* 0x3614721C: mov edx, dword ptr [ebp - 8] */ 2514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 2515 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2516 eax = eax + 0xCu; /* 0x3614721F: add eax, 0xc */ 2517 _flag_k = FK_ADD; 2518 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 2519 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2520 ecx = ecx + 0xCu; /* 0x36147222: add ecx, 0xc */ 2521 _flag_k = FK_ADD; 2522 /* cmp eax, edx */ /* 0x36147225: cmp eax, edx */ 2523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2525 _flag_k = FK_CMP; 2526 RECOMP_BACKEDGE(); 2527 if (CMP_NE(_flag_a, _flag_b)) goto L_36147208; /* 0x36147227: jne 0x36147208 */ 2528 L_36147229: 2529 eax = MEM32(esi + 0x4); /* 0x36147229: mov eax, dword ptr [esi + 4] */ 2530 /* test eax, eax */ /* 0x3614722C: test eax, eax */ 2531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2532 _cf = 0; 2533 _flag_k = FK_TEST; 2534 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147307; /* 0x3614722E: jne 0x36147307 */ 2535 L_36147234: 2536 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2537 edx = 0; /* 0x36147234: xor edx, edx */ 2538 _cf = 0; 2539 _flag_k = FK_TEST; 2540 goto L_3614731C; /* 0x36147236: jmp 0x3614731c */ 2541 L_3614723B: 2542 /* test ebx, ebx */ /* 0x3614723B: test ebx, ebx */ 2543 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2544 _cf = 0; 2545 _flag_k = FK_TEST; 2546 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147244; /* 0x3614723D: jne 0x36147244 */ 2547 L_3614723F: 2548 MEM32(ebp + (-0x8)) = ebx; /* 0x3614723F: mov dword ptr [ebp - 8], ebx */ 2549 goto L_3614725C; /* 0x36147242: jmp 0x3614725c */ 2550 L_36147244: 2551 edx = MEM32(esi + 0x8); /* 0x36147244: mov edx, dword ptr [esi + 8] */ 2552 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 2553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2554 edx = edx - ebx; /* 0x36147247: sub edx, ebx */ 2555 _flag_k = FK_CMP; 2556 eax = 0x2AAAAAABu; /* 0x36147249: mov eax, 0x2aaaaaab */ 2557 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614724E: imul edx */ 2558 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2559 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2560 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36147250: sar edx, 1 */ 2561 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2562 edx = (uint32_t)((int32_t)edx >> 1u); 2563 eax = edx; /* 0x36147252: mov eax, edx */ 2564 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36147254: shr eax, 0x1f */ 2565 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2566 eax = eax >> 31u; /* 0x36147254: shr eax, 0x1f */ 2567 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2568 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2569 edx = edx + eax; /* 0x36147257: add edx, eax */ 2570 _flag_k = FK_ADD; 2571 MEM32(ebp + (-0x8)) = edx; /* 0x36147259: mov dword ptr [ebp - 8], edx */ 2572 L_3614725C: 2573 /* test ecx, ecx */ /* 0x3614725C: test ecx, ecx */ 2574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2575 _cf = 0; 2576 _flag_k = FK_TEST; 2577 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147264; /* 0x3614725E: jne 0x36147264 */ 2578 L_36147260: 2579 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2580 edx = 0; /* 0x36147260: xor edx, edx */ 2581 _cf = 0; 2582 _flag_k = FK_TEST; 2583 goto L_36147279; /* 0x36147262: jmp 0x36147279 */ 2584 L_36147264: 2585 edx = MEM32(edi + 0xC); /* 0x36147264: mov edx, dword ptr [edi + 0xc] */ 2586 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2588 edx = edx - ecx; /* 0x36147267: sub edx, ecx */ 2589 _flag_k = FK_CMP; 2590 eax = 0x2AAAAAABu; /* 0x36147269: mov eax, 0x2aaaaaab */ 2591 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614726E: imul edx */ 2592 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2593 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2594 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36147270: sar edx, 1 */ 2595 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2596 edx = (uint32_t)((int32_t)edx >> 1u); 2597 eax = edx; /* 0x36147272: mov eax, edx */ 2598 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36147274: shr eax, 0x1f */ 2599 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2600 eax = eax >> 31u; /* 0x36147274: shr eax, 0x1f */ 2601 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2602 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2603 edx = edx + eax; /* 0x36147277: add edx, eax */ 2604 _flag_k = FK_ADD; 2605 L_36147279: 2606 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x36147279: cmp dword ptr [ebp - 8], edx */ 2607 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 2608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2609 _flag_k = FK_CMP; 2610 if (CMP_A(_flag_a, _flag_b)) goto L_36147330; /* 0x3614727C: ja 0x36147330 */ 2611 L_36147282: 2612 /* test ecx, ecx */ /* 0x36147282: test ecx, ecx */ 2613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2614 _cf = 0; 2615 _flag_k = FK_TEST; 2616 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614728A; /* 0x36147284: jne 0x3614728a */ 2617 L_36147286: 2618 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2619 edx = 0; /* 0x36147286: xor edx, edx */ 2620 _cf = 0; 2621 _flag_k = FK_TEST; 2622 goto L_3614729F; /* 0x36147288: jmp 0x3614729f */ 2623 L_3614728A: 2624 edi = MEM32(edi + 0x8); /* 0x3614728A: mov edi, dword ptr [edi + 8] */ 2625 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2627 edi = edi - ecx; /* 0x3614728D: sub edi, ecx */ 2628 _flag_k = FK_CMP; 2629 eax = 0x2AAAAAABu; /* 0x3614728F: mov eax, 0x2aaaaaab */ 2630 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edi); /* 0x36147294: imul edi */ 2631 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2632 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2633 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36147296: sar edx, 1 */ 2634 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2635 edx = (uint32_t)((int32_t)edx >> 1u); 2636 eax = edx; /* 0x36147298: mov eax, edx */ 2637 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3614729A: shr eax, 0x1f */ 2638 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2639 eax = eax >> 31u; /* 0x3614729A: shr eax, 0x1f */ 2640 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2642 edx = edx + eax; /* 0x3614729D: add edx, eax */ 2643 _flag_k = FK_ADD; 2644 L_3614729F: 2645 edx = edx + edx * 2; /* 0x3614729F: lea edx, [edx + edx*2] */ 2646 edx = ebx + edx * 4; /* 0x361472A2: lea edx, [ebx + edx*4] */ 2647 eax = ebx; /* 0x361472A5: mov eax, ebx */ 2648 /* cmp eax, edx */ /* 0x361472A7: cmp eax, edx */ 2649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2651 _flag_k = FK_CMP; 2652 MEM32(ebp + (-0x8)) = ecx; /* 0x361472A9: mov dword ptr [ebp - 8], ecx */ 2653 if (CMP_EQ(_flag_a, _flag_b)) goto L_361472D0; /* 0x361472AC: je 0x361472d0 */ 2654 L_361472AE: 2655 edi = eax; /* 0x361472AE: mov edi, eax */ 2656 ebx = MEM32(edi); /* 0x361472B0: mov ebx, dword ptr [edi] */ 2657 MEM32(ecx) = ebx; /* 0x361472B2: mov dword ptr [ecx], ebx */ 2658 ebx = MEM32(edi + 0x4); /* 0x361472B4: mov ebx, dword ptr [edi + 4] */ 2659 MEM32(ecx + 0x4) = ebx; /* 0x361472B7: mov dword ptr [ecx + 4], ebx */ 2660 edi = MEM32(edi + 0x8); /* 0x361472BA: mov edi, dword ptr [edi + 8] */ 2661 MEM32(ecx + 0x8) = edi; /* 0x361472BD: mov dword ptr [ecx + 8], edi */ 2662 ecx = MEM32(ebp + (-0x8)); /* 0x361472C0: mov ecx, dword ptr [ebp - 8] */ 2663 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 2664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2665 ecx = ecx + 0xCu; /* 0x361472C3: add ecx, 0xc */ 2666 _flag_k = FK_ADD; 2667 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 2668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2669 eax = eax + 0xCu; /* 0x361472C6: add eax, 0xc */ 2670 _flag_k = FK_ADD; 2671 /* cmp eax, edx */ /* 0x361472C9: cmp eax, edx */ 2672 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2674 _flag_k = FK_CMP; 2675 MEM32(ebp + (-0x8)) = ecx; /* 0x361472CB: mov dword ptr [ebp - 8], ecx */ 2676 RECOMP_BACKEDGE(); 2677 if (CMP_NE(_flag_a, _flag_b)) goto L_361472AE; /* 0x361472CE: jne 0x361472ae */ 2678 L_361472D0: 2679 eax = MEM32(esi + 0x8); /* 0x361472D0: mov eax, dword ptr [esi + 8] */ 2680 ecx = MEM32(ebp + (-0x4)); /* 0x361472D3: mov ecx, dword ptr [ebp - 4] */ 2681 ebx = MEM32(ecx + 0xC); /* 0x361472D6: mov ebx, dword ptr [ecx + 0xc] */ 2682 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2684 ecx = ecx + 4; /* 0x361472D9: add ecx, 4 */ 2685 _flag_k = FK_ADD; 2686 /* cmp edx, eax */ /* 0x361472DC: cmp edx, eax */ 2687 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2689 _flag_k = FK_CMP; 2690 MEM32(ebp + (-0x8)) = eax; /* 0x361472DE: mov dword ptr [ebp - 8], eax */ 2691 edi = edx; /* 0x361472E1: mov edi, edx */ 2692 if (CMP_EQ(_flag_a, _flag_b)) goto L_361472FC; /* 0x361472E3: je 0x361472fc */ 2693 L_361472E5: 2694 PUSH32(esp, edi); /* 0x361472E5: push edi */ 2695 PUSH32(esp, ebx); /* 0x361472E6: push ebx */ 2696 RECOMP_ICALL(0x361473E0u); /* 0x361472E7: call 0x361473e0 */ /* not lifted */ 2697 RECOMP_FLAGS_IN(); 2698 eax = MEM32(ebp + (-0x8)); /* 0x361472EC: mov eax, dword ptr [ebp - 8] */ 2699 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 2700 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2701 edi = edi + 0xCu; /* 0x361472EF: add edi, 0xc */ 2702 _flag_k = FK_ADD; 2703 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2705 esp = esp + 8; /* 0x361472F2: add esp, 8 */ 2706 _flag_k = FK_ADD; 2707 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 2708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2709 ebx = ebx + 0xCu; /* 0x361472F5: add ebx, 0xc */ 2710 _flag_k = FK_ADD; 2711 /* cmp edi, eax */ /* 0x361472F8: cmp edi, eax */ 2712 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2714 _flag_k = FK_CMP; 2715 RECOMP_BACKEDGE(); 2716 if (CMP_NE(_flag_a, _flag_b)) goto L_361472E5; /* 0x361472FA: jne 0x361472e5 */ 2717 L_361472FC: 2718 eax = MEM32(esi + 0x4); /* 0x361472FC: mov eax, dword ptr [esi + 4] */ 2719 /* test eax, eax */ /* 0x361472FF: test eax, eax */ 2720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2721 _cf = 0; 2722 _flag_k = FK_TEST; 2723 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147307; /* 0x36147301: jne 0x36147307 */ 2724 L_36147303: 2725 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2726 edx = 0; /* 0x36147303: xor edx, edx */ 2727 _cf = 0; 2728 _flag_k = FK_TEST; 2729 goto L_3614731C; /* 0x36147305: jmp 0x3614731c */ 2730 L_36147307: 2731 esi = MEM32(esi + 0x8); /* 0x36147307: mov esi, dword ptr [esi + 8] */ 2732 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2734 esi = esi - eax; /* 0x3614730A: sub esi, eax */ 2735 _flag_k = FK_CMP; 2736 eax = 0x2AAAAAABu; /* 0x3614730C: mov eax, 0x2aaaaaab */ 2737 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(esi); /* 0x36147311: imul esi */ 2738 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2739 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2740 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36147313: sar edx, 1 */ 2741 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2742 edx = (uint32_t)((int32_t)edx >> 1u); 2743 eax = edx; /* 0x36147315: mov eax, edx */ 2744 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36147317: shr eax, 0x1f */ 2745 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2746 eax = eax >> 31u; /* 0x36147317: shr eax, 0x1f */ 2747 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2749 edx = edx + eax; /* 0x3614731A: add edx, eax */ 2750 _flag_k = FK_ADD; 2751 L_3614731C: 2752 ecx = edx + edx * 2; /* 0x3614731C: lea ecx, [edx + edx*2] */ 2753 edx = MEM32(ebp + (-0x4)); /* 0x3614731F: mov edx, dword ptr [ebp - 4] */ 2754 eax = edx + 0x4; /* 0x36147322: lea eax, [edx + 4] */ 2755 edx = MEM32(eax + 0x4); /* 0x36147325: mov edx, dword ptr [eax + 4] */ 2756 ecx = edx + ecx * 4; /* 0x36147328: lea ecx, [edx + ecx*4] */ 2757 MEM32(eax + 0x8) = ecx; /* 0x3614732B: mov dword ptr [eax + 8], ecx */ 2758 goto L_3614738C; /* 0x3614732E: jmp 0x3614738c */ 2759 L_36147330: 2760 PUSH32(esp, ecx); /* 0x36147330: push ecx */ 2761 MEM32(ebp + (-0x8)) = ecx; /* 0x36147331: mov dword ptr [ebp - 8], ecx */ 2762 RECOMP_ICALL(0x3615FCC4u); /* 0x36147334: call 0x3615fcc4 */ /* not lifted */ 2763 RECOMP_FLAGS_IN(); 2764 eax = MEM32(esi + 0x4); /* 0x36147339: mov eax, dword ptr [esi + 4] */ 2765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2767 esp = esp + 4; /* 0x3614733C: add esp, 4 */ 2768 _flag_k = FK_ADD; 2769 /* test eax, eax */ /* 0x3614733F: test eax, eax */ 2770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2771 _cf = 0; 2772 _flag_k = FK_TEST; 2773 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147347; /* 0x36147341: jne 0x36147347 */ 2774 L_36147343: 2775 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2776 edx = 0; /* 0x36147343: xor edx, edx */ 2777 _cf = 0; 2778 _flag_k = FK_TEST; 2779 goto L_3614735C; /* 0x36147345: jmp 0x3614735c */ 2780 L_36147347: 2781 ecx = MEM32(esi + 0x8); /* 0x36147347: mov ecx, dword ptr [esi + 8] */ 2782 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2784 ecx = ecx - eax; /* 0x3614734A: sub ecx, eax */ 2785 _flag_k = FK_CMP; 2786 eax = 0x2AAAAAABu; /* 0x3614734C: mov eax, 0x2aaaaaab */ 2787 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36147351: imul ecx */ 2788 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2789 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2790 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36147353: sar edx, 1 */ 2791 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2792 edx = (uint32_t)((int32_t)edx >> 1u); 2793 eax = edx; /* 0x36147355: mov eax, edx */ 2794 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36147357: shr eax, 0x1f */ 2795 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2796 eax = eax >> 31u; /* 0x36147357: shr eax, 0x1f */ 2797 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2799 edx = edx + eax; /* 0x3614735A: add edx, eax */ 2800 _flag_k = FK_ADD; 2801 L_3614735C: 2802 /* test edx, edx */ /* 0x3614735C: test edx, edx */ 2803 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2804 _cf = 0; 2805 _flag_k = FK_TEST; 2806 eax = edx; /* 0x3614735E: mov eax, edx */ 2807 if (TEST_NS(_flag_a, _flag_b)) goto L_36147364; /* 0x36147360: jge 0x36147364 */ 2808 L_36147362: 2809 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2810 eax = 0; /* 0x36147362: xor eax, eax */ 2811 _cf = 0; 2812 _flag_k = FK_TEST; 2813 L_36147364: 2814 ecx = eax + eax * 2; /* 0x36147364: lea ecx, [eax + eax*2] */ 2815 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x36147367: shl ecx, 2 */ 2816 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2817 ecx = ecx << 2u; /* 0x36147367: shl ecx, 2 */ 2818 PUSH32(esp, ecx); /* 0x3614736A: push ecx */ 2819 RECOMP_ICALL(0x3615FD6Au); /* 0x3614736B: call 0x3615fd6a */ /* not lifted */ 2820 RECOMP_FLAGS_IN(); 2821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2823 esp = esp + 4; /* 0x36147370: add esp, 4 */ 2824 _flag_k = FK_ADD; 2825 MEM32(edi + 0x4) = eax; /* 0x36147373: mov dword ptr [edi + 4], eax */ 2826 ecx = MEM32(esi + 0x8); /* 0x36147376: mov ecx, dword ptr [esi + 8] */ 2827 esi = MEM32(esi + 0x4); /* 0x36147379: mov esi, dword ptr [esi + 4] */ 2828 PUSH32(esp, eax); /* 0x3614737C: push eax */ 2829 PUSH32(esp, ecx); /* 0x3614737D: push ecx */ 2830 PUSH32(esp, esi); /* 0x3614737E: push esi */ 2831 ecx = edi; /* 0x3614737F: mov ecx, edi */ 2832 RECOMP_ICALL(0x3606C710u); /* 0x36147381: call 0x3606c710 */ /* not lifted */ 2833 RECOMP_FLAGS_IN(); 2834 MEM32(edi + 0x8) = eax; /* 0x36147386: mov dword ptr [edi + 8], eax */ 2835 MEM32(edi + 0xC) = eax; /* 0x36147389: mov dword ptr [edi + 0xc], eax */ 2836 L_3614738C: 2837 eax = MEM32(ebp + (-0x4)); /* 0x3614738C: mov eax, dword ptr [ebp - 4] */ 2838 L_3614738F: 2839 edx = MEM32(ebp + 0x8); /* 0x3614738F: mov edx, dword ptr [ebp + 8] */ 2840 ecx = MEM32(edx + 0x14); /* 0x36147392: mov ecx, dword ptr [edx + 0x14] */ 2841 edi = POP32_VAL(esp); /* 0x36147395: pop edi */ 2842 esi = POP32_VAL(esp); /* 0x36147396: pop esi */ 2843 MEM32(eax + 0x14) = ecx; /* 0x36147397: mov dword ptr [eax + 0x14], ecx */ 2844 ebx = POP32_VAL(esp); /* 0x3614739A: pop ebx */ 2845 esp = ebp; /* 0x3614739B: mov esp, ebp */ 2846 ebp = POP32_VAL(esp); /* 0x3614739D: pop ebp */ 2847 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614739E: ret 4 */ 2848 RECOMP_REGS_OUT(); 2849 } 2850 2851 void sub_3614731C(void) { 2852 int _fpu_cmp = 0; 2853 uint32_t _cf = 0; 2854 int _df = 1; 2855 uint32_t _flag_k = FK_NONE; 2856 uint32_t _flag_a = 0, _flag_b = 0; 2857 uint32_t _itail_tgt = 0; 2858 RECOMP_REGS_LOCALS 2859 RECOMP_ENTER(0x3614731Cu); 2860 2861 L_3614731C: 2862 ecx = edx + edx * 2; /* 0x3614731C: lea ecx, [edx + edx*2] */ 2863 edx = MEM32(ebp + (-0x4)); /* 0x3614731F: mov edx, dword ptr [ebp - 4] */ 2864 eax = edx + 0x4; /* 0x36147322: lea eax, [edx + 4] */ 2865 edx = MEM32(eax + 0x4); /* 0x36147325: mov edx, dword ptr [eax + 4] */ 2866 ecx = edx + ecx * 4; /* 0x36147328: lea ecx, [edx + ecx*4] */ 2867 MEM32(eax + 0x8) = ecx; /* 0x3614732B: mov dword ptr [eax + 8], ecx */ 2868 goto L_3614738C; /* 0x3614732E: jmp 0x3614738c */ 2869 L_3614738C: 2870 eax = MEM32(ebp + (-0x4)); /* 0x3614738C: mov eax, dword ptr [ebp - 4] */ 2871 edx = MEM32(ebp + 0x8); /* 0x3614738F: mov edx, dword ptr [ebp + 8] */ 2872 ecx = MEM32(edx + 0x14); /* 0x36147392: mov ecx, dword ptr [edx + 0x14] */ 2873 edi = POP32_VAL(esp); /* 0x36147395: pop edi */ 2874 esi = POP32_VAL(esp); /* 0x36147396: pop esi */ 2875 MEM32(eax + 0x14) = ecx; /* 0x36147397: mov dword ptr [eax + 0x14], ecx */ 2876 ebx = POP32_VAL(esp); /* 0x3614739A: pop ebx */ 2877 esp = ebp; /* 0x3614739B: mov esp, ebp */ 2878 ebp = POP32_VAL(esp); /* 0x3614739D: pop ebp */ 2879 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614739E: ret 4 */ 2880 RECOMP_REGS_OUT(); 2881 } 2882 2883 void sub_3614738C(void) { 2884 int _fpu_cmp = 0; 2885 uint32_t _cf = 0; 2886 int _df = 1; 2887 uint32_t _flag_k = FK_NONE; 2888 uint32_t _flag_a = 0, _flag_b = 0; 2889 uint32_t _itail_tgt = 0; 2890 RECOMP_REGS_LOCALS 2891 RECOMP_ENTER(0x3614738Cu); 2892 2893 L_3614738C: 2894 eax = MEM32(ebp + (-0x4)); /* 0x3614738C: mov eax, dword ptr [ebp - 4] */ 2895 edx = MEM32(ebp + 0x8); /* 0x3614738F: mov edx, dword ptr [ebp + 8] */ 2896 ecx = MEM32(edx + 0x14); /* 0x36147392: mov ecx, dword ptr [edx + 0x14] */ 2897 edi = POP32_VAL(esp); /* 0x36147395: pop edi */ 2898 esi = POP32_VAL(esp); /* 0x36147396: pop esi */ 2899 MEM32(eax + 0x14) = ecx; /* 0x36147397: mov dword ptr [eax + 0x14], ecx */ 2900 ebx = POP32_VAL(esp); /* 0x3614739A: pop ebx */ 2901 esp = ebp; /* 0x3614739B: mov esp, ebp */ 2902 ebp = POP32_VAL(esp); /* 0x3614739D: pop ebp */ 2903 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614739E: ret 4 */ 2904 RECOMP_REGS_OUT(); 2905 } 2906 2907 void sub_361473B0(void) { 2908 int _fpu_cmp = 0; 2909 uint32_t _cf = 0; 2910 int _df = 1; 2911 uint32_t _flag_k = FK_NONE; 2912 uint32_t _flag_a = 0, _flag_b = 0; 2913 uint32_t _itail_tgt = 0; 2914 RECOMP_REGS_LOCALS 2915 RECOMP_ENTER(0x361473B0u); 2916 2917 L_361473B0: 2918 PUSH32(esp, ebp); /* 0x361473B0: push ebp */ 2919 ebp = esp; /* 0x361473B1: mov ebp, esp */ 2920 PUSH32(esp, esi); /* 0x361473B3: push esi */ 2921 esi = ecx; /* 0x361473B4: mov esi, ecx */ 2922 RECOMP_ICALL(0x36140470u); /* 0x361473B6: call 0x36140470 */ /* not lifted */ 2923 RECOMP_FLAGS_IN(); 2924 /* test MEM8(ebp + 0x8), 1 */ /* 0x361473BB: test byte ptr [ebp + 8], 1 */ 2925 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2926 _cf = 0; 2927 _flag_k = FK_NARROW(FK_TEST, 24); 2928 if (TEST_Z(_flag_a, _flag_b)) goto L_361473CA; /* 0x361473BF: je 0x361473ca */ 2929 L_361473C1: 2930 PUSH32(esp, esi); /* 0x361473C1: push esi */ 2931 RECOMP_ICALL(0x3615FCC4u); /* 0x361473C2: call 0x3615fcc4 */ /* not lifted */ 2932 RECOMP_FLAGS_IN(); 2933 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2935 esp = esp + 4; /* 0x361473C7: add esp, 4 */ 2936 _flag_k = FK_ADD; 2937 L_361473CA: 2938 eax = esi; /* 0x361473CA: mov eax, esi */ 2939 esi = POP32_VAL(esp); /* 0x361473CC: pop esi */ 2940 ebp = POP32_VAL(esp); /* 0x361473CD: pop ebp */ 2941 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361473CE: ret 4 */ 2942 RECOMP_REGS_OUT(); 2943 } 2944 2945 void sub_361473E0(void) { 2946 int _fpu_cmp = 0; 2947 uint32_t _cf = 0; 2948 int _df = 1; 2949 uint32_t _flag_k = FK_NONE; 2950 uint32_t _flag_a = 0, _flag_b = 0; 2951 uint32_t _itail_tgt = 0; 2952 RECOMP_REGS_LOCALS 2953 RECOMP_ENTER(0x361473E0u); 2954 2955 L_361473E0: 2956 PUSH32(esp, ebp); /* 0x361473E0: push ebp */ 2957 ebp = esp; /* 0x361473E1: mov ebp, esp */ 2958 eax = MEM32(ebp + 0x8); /* 0x361473E3: mov eax, dword ptr [ebp + 8] */ 2959 /* test eax, eax */ /* 0x361473E6: test eax, eax */ 2960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2961 _cf = 0; 2962 _flag_k = FK_TEST; 2963 if (TEST_Z(_flag_a, _flag_b)) goto L_361473FD; /* 0x361473E8: je 0x361473fd */ 2964 L_361473EA: 2965 ecx = MEM32(ebp + 0xC); /* 0x361473EA: mov ecx, dword ptr [ebp + 0xc] */ 2966 edx = MEM32(ecx); /* 0x361473ED: mov edx, dword ptr [ecx] */ 2967 MEM32(eax) = edx; /* 0x361473EF: mov dword ptr [eax], edx */ 2968 edx = MEM32(ecx + 0x4); /* 0x361473F1: mov edx, dword ptr [ecx + 4] */ 2969 MEM32(eax + 0x4) = edx; /* 0x361473F4: mov dword ptr [eax + 4], edx */ 2970 ecx = MEM32(ecx + 0x8); /* 0x361473F7: mov ecx, dword ptr [ecx + 8] */ 2971 MEM32(eax + 0x8) = ecx; /* 0x361473FA: mov dword ptr [eax + 8], ecx */ 2972 L_361473FD: 2973 ebp = POP32_VAL(esp); /* 0x361473FD: pop ebp */ 2974 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361473FE: ret */ 2975 RECOMP_REGS_OUT(); 2976 } 2977 2978 void sub_36147400(void) { 2979 int _fpu_cmp = 0; 2980 uint32_t _cf = 0; 2981 int _df = 1; 2982 uint32_t _flag_k = FK_NONE; 2983 uint32_t _flag_a = 0, _flag_b = 0; 2984 uint32_t _itail_tgt = 0; 2985 RECOMP_REGS_LOCALS 2986 RECOMP_ENTER(0x36147400u); 2987 2988 L_36147400: 2989 PUSH32(esp, ebp); /* 0x36147400: push ebp */ 2990 ebp = esp; /* 0x36147401: mov ebp, esp */ 2991 PUSH32(esp, 0xFFFFFFFFu); /* 0x36147403: push -1 */ 2992 PUSH32(esp, 0x3616D06Eu); /* 0x36147405: push 0x3616d06e */ 2993 eax = MEM32(FS_BASE + (0)); /* 0x3614740A: mov eax, dword ptr fs:[0] */ 2994 PUSH32(esp, eax); /* 0x36147410: push eax */ 2995 MEM32(FS_BASE + (0)) = esp; /* 0x36147411: mov dword ptr fs:[0], esp */ 2996 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2998 esp = esp - 0xCu; /* 0x36147418: sub esp, 0xc */ 2999 _flag_k = FK_CMP; 3000 PUSH32(esp, ebx); /* 0x3614741B: push ebx */ 3001 PUSH32(esp, esi); /* 0x3614741C: push esi */ 3002 esi = ecx; /* 0x3614741D: mov esi, ecx */ 3003 PUSH32(esp, edi); /* 0x3614741F: push edi */ 3004 MEM32(ebp + (-0x14)) = esi; /* 0x36147420: mov dword ptr [ebp - 0x14], esi */ 3005 RECOMP_ICALL(0x3615BB60u); /* 0x36147423: call 0x3615bb60 */ /* not lifted */ 3006 RECOMP_FLAGS_IN(); 3007 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3008 ebx = 0; /* 0x36147428: xor ebx, ebx */ 3009 _cf = 0; 3010 _flag_k = FK_TEST; 3011 MEM32(esi + 0x8) = ebx; /* 0x3614742A: mov dword ptr [esi + 8], ebx */ 3012 MEM32(esi + 0xC) = ebx; /* 0x3614742D: mov dword ptr [esi + 0xc], ebx */ 3013 MEM32(esi + 0x10) = ebx; /* 0x36147430: mov dword ptr [esi + 0x10], ebx */ 3014 MEM32(esi + 0x14) = ebx; /* 0x36147433: mov dword ptr [esi + 0x14], ebx */ 3015 MEM32(esi + 0x18) = ebx; /* 0x36147436: mov dword ptr [esi + 0x18], ebx */ 3016 MEM32(esi + 0x1C) = ebx; /* 0x36147439: mov dword ptr [esi + 0x1c], ebx */ 3017 MEM32(esi + 0x20) = ebx; /* 0x3614743C: mov dword ptr [esi + 0x20], ebx */ 3018 MEM32(esi + 0x24) = ebx; /* 0x3614743F: mov dword ptr [esi + 0x24], ebx */ 3019 MEM32(esi + 0x28) = ebx; /* 0x36147442: mov dword ptr [esi + 0x28], ebx */ 3020 MEM32(esi + 0x74) = ebx; /* 0x36147445: mov dword ptr [esi + 0x74], ebx */ 3021 MEM32(esi + 0x78) = ebx; /* 0x36147448: mov dword ptr [esi + 0x78], ebx */ 3022 MEM32(esi + 0x7C) = ebx; /* 0x3614744B: mov dword ptr [esi + 0x7c], ebx */ 3023 MEM32(esi + 0x80) = ebx; /* 0x3614744E: mov dword ptr [esi + 0x80], ebx */ 3024 PUSH32(esp, 0x10u); /* 0x36147454: push 0x10 */ 3025 MEM32(ebp + (-0x4)) = ebx; /* 0x36147456: mov dword ptr [ebp - 4], ebx */ 3026 MEM32(esi + 0x84) = ebx; /* 0x36147459: mov dword ptr [esi + 0x84], ebx */ 3027 MEM32(esi + 0x88) = ebx; /* 0x3614745F: mov dword ptr [esi + 0x88], ebx */ 3028 MEM32(esi) = 0x3617887Cu; /* 0x36147465: mov dword ptr [esi], 0x3617887c */ 3029 RECOMP_ICALL(0x3615FD6Au); /* 0x3614746B: call 0x3615fd6a */ /* not lifted */ 3030 RECOMP_FLAGS_IN(); 3031 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3032 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3033 esp = esp + 4; /* 0x36147470: add esp, 4 */ 3034 _flag_k = FK_ADD; 3035 /* cmp eax, ebx */ /* 0x36147473: cmp eax, ebx */ 3036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3038 _flag_k = FK_CMP; 3039 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147487; /* 0x36147475: je 0x36147487 */ 3040 L_36147477: 3041 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36147477: mov cl, byte ptr [ebp - 0xd] */ 3042 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3614747A: mov byte ptr [eax], cl */ 3043 MEM32(eax + 0x4) = ebx; /* 0x3614747C: mov dword ptr [eax + 4], ebx */ 3044 MEM32(eax + 0x8) = ebx; /* 0x3614747F: mov dword ptr [eax + 8], ebx */ 3045 MEM32(eax + 0xC) = ebx; /* 0x36147482: mov dword ptr [eax + 0xc], ebx */ 3046 goto L_36147489; /* 0x36147485: jmp 0x36147489 */ 3047 L_36147487: 3048 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3049 eax = 0; /* 0x36147487: xor eax, eax */ 3050 _cf = 0; 3051 _flag_k = FK_TEST; 3052 L_36147489: 3053 PUSH32(esp, 0x10u); /* 0x36147489: push 0x10 */ 3054 MEM32(esi + 0x8) = eax; /* 0x3614748B: mov dword ptr [esi + 8], eax */ 3055 RECOMP_ICALL(0x3615FD6Au); /* 0x3614748E: call 0x3615fd6a */ /* not lifted */ 3056 RECOMP_FLAGS_IN(); 3057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3059 esp = esp + 4; /* 0x36147493: add esp, 4 */ 3060 _flag_k = FK_ADD; 3061 /* cmp eax, ebx */ /* 0x36147496: cmp eax, ebx */ 3062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3064 _flag_k = FK_CMP; 3065 if (CMP_EQ(_flag_a, _flag_b)) goto L_361474AA; /* 0x36147498: je 0x361474aa */ 3066 L_3614749A: 3067 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3614749A: mov dl, byte ptr [ebp - 0xd] */ 3068 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3614749D: mov byte ptr [eax], dl */ 3069 MEM32(eax + 0x4) = ebx; /* 0x3614749F: mov dword ptr [eax + 4], ebx */ 3070 MEM32(eax + 0x8) = ebx; /* 0x361474A2: mov dword ptr [eax + 8], ebx */ 3071 MEM32(eax + 0xC) = ebx; /* 0x361474A5: mov dword ptr [eax + 0xc], ebx */ 3072 goto L_361474AC; /* 0x361474A8: jmp 0x361474ac */ 3073 L_361474AA: 3074 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3075 eax = 0; /* 0x361474AA: xor eax, eax */ 3076 _cf = 0; 3077 _flag_k = FK_TEST; 3078 L_361474AC: 3079 PUSH32(esp, 0x10u); /* 0x361474AC: push 0x10 */ 3080 MEM32(esi + 0xC) = eax; /* 0x361474AE: mov dword ptr [esi + 0xc], eax */ 3081 RECOMP_ICALL(0x3615FD6Au); /* 0x361474B1: call 0x3615fd6a */ /* not lifted */ 3082 RECOMP_FLAGS_IN(); 3083 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3084 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3085 esp = esp + 4; /* 0x361474B6: add esp, 4 */ 3086 _flag_k = FK_ADD; 3087 /* cmp eax, ebx */ /* 0x361474B9: cmp eax, ebx */ 3088 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3090 _flag_k = FK_CMP; 3091 if (CMP_EQ(_flag_a, _flag_b)) goto L_361474CD; /* 0x361474BB: je 0x361474cd */ 3092 L_361474BD: 3093 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x361474BD: mov cl, byte ptr [ebp - 0xd] */ 3094 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x361474C0: mov byte ptr [eax], cl */ 3095 MEM32(eax + 0x4) = ebx; /* 0x361474C2: mov dword ptr [eax + 4], ebx */ 3096 MEM32(eax + 0x8) = ebx; /* 0x361474C5: mov dword ptr [eax + 8], ebx */ 3097 MEM32(eax + 0xC) = ebx; /* 0x361474C8: mov dword ptr [eax + 0xc], ebx */ 3098 goto L_361474CF; /* 0x361474CB: jmp 0x361474cf */ 3099 L_361474CD: 3100 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3101 eax = 0; /* 0x361474CD: xor eax, eax */ 3102 _cf = 0; 3103 _flag_k = FK_TEST; 3104 L_361474CF: 3105 PUSH32(esp, 0x10u); /* 0x361474CF: push 0x10 */ 3106 MEM32(esi + 0x10) = eax; /* 0x361474D1: mov dword ptr [esi + 0x10], eax */ 3107 RECOMP_ICALL(0x3615FD6Au); /* 0x361474D4: call 0x3615fd6a */ /* not lifted */ 3108 RECOMP_FLAGS_IN(); 3109 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3110 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3111 esp = esp + 4; /* 0x361474D9: add esp, 4 */ 3112 _flag_k = FK_ADD; 3113 /* cmp eax, ebx */ /* 0x361474DC: cmp eax, ebx */ 3114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3116 _flag_k = FK_CMP; 3117 if (CMP_EQ(_flag_a, _flag_b)) goto L_361474F0; /* 0x361474DE: je 0x361474f0 */ 3118 L_361474E0: 3119 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x361474E0: mov dl, byte ptr [ebp - 0xd] */ 3120 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x361474E3: mov byte ptr [eax], dl */ 3121 MEM32(eax + 0x4) = ebx; /* 0x361474E5: mov dword ptr [eax + 4], ebx */ 3122 MEM32(eax + 0x8) = ebx; /* 0x361474E8: mov dword ptr [eax + 8], ebx */ 3123 MEM32(eax + 0xC) = ebx; /* 0x361474EB: mov dword ptr [eax + 0xc], ebx */ 3124 goto L_361474F2; /* 0x361474EE: jmp 0x361474f2 */ 3125 L_361474F0: 3126 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3127 eax = 0; /* 0x361474F0: xor eax, eax */ 3128 _cf = 0; 3129 _flag_k = FK_TEST; 3130 L_361474F2: 3131 PUSH32(esp, 0x20u); /* 0x361474F2: push 0x20 */ 3132 MEM32(esi + 0x14) = eax; /* 0x361474F4: mov dword ptr [esi + 0x14], eax */ 3133 RECOMP_ICALL(0x3615FD6Au); /* 0x361474F7: call 0x3615fd6a */ /* not lifted */ 3134 RECOMP_FLAGS_IN(); 3135 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3136 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3137 esp = esp + 4; /* 0x361474FC: add esp, 4 */ 3138 _flag_k = FK_ADD; 3139 MEM32(ebp + (-0x18)) = eax; /* 0x361474FF: mov dword ptr [ebp - 0x18], eax */ 3140 /* cmp eax, ebx */ /* 0x36147502: cmp eax, ebx */ 3141 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3143 _flag_k = FK_CMP; 3144 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36147504: mov byte ptr [ebp - 4], 1 */ 3145 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147513; /* 0x36147508: je 0x36147513 */ 3146 L_3614750A: 3147 ecx = eax; /* 0x3614750A: mov ecx, eax */ 3148 RECOMP_ICALL(0x36008FB0u); /* 0x3614750C: call 0x36008fb0 */ /* not lifted */ 3149 RECOMP_FLAGS_IN(); 3150 goto L_36147515; /* 0x36147511: jmp 0x36147515 */ 3151 L_36147513: 3152 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3153 eax = 0; /* 0x36147513: xor eax, eax */ 3154 _cf = 0; 3155 _flag_k = FK_TEST; 3156 L_36147515: 3157 PUSH32(esp, 0x14u); /* 0x36147515: push 0x14 */ 3158 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36147517: mov byte ptr [ebp - 4], bl */ 3159 MEM32(esi + 0x20) = eax; /* 0x3614751A: mov dword ptr [esi + 0x20], eax */ 3160 RECOMP_ICALL(0x3615FD6Au); /* 0x3614751D: call 0x3615fd6a */ /* not lifted */ 3161 RECOMP_FLAGS_IN(); 3162 edi = eax; /* 0x36147522: mov edi, eax */ 3163 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3165 esp = esp + 4; /* 0x36147524: add esp, 4 */ 3166 _flag_k = FK_ADD; 3167 MEM32(ebp + (-0x18)) = edi; /* 0x36147527: mov dword ptr [ebp - 0x18], edi */ 3168 /* cmp edi, ebx */ /* 0x3614752A: cmp edi, ebx */ 3169 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3171 _flag_k = FK_CMP; 3172 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3614752C: mov byte ptr [ebp - 4], 2 */ 3173 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147578; /* 0x36147530: je 0x36147578 */ 3174 L_36147532: 3175 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36147532: mov cl, byte ptr [ebp - 0xd] */ 3176 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36147535: mov al, byte ptr [ebp - 0xd] */ 3177 PUSH32(esp, 1); /* 0x36147538: push 1 */ 3178 MEM8(edi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3614753A: mov byte ptr [edi + 1], cl */ 3179 PUSH32(esp, ebx); /* 0x3614753D: push ebx */ 3180 ecx = edi; /* 0x3614753E: mov ecx, edi */ 3181 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x36147540: mov byte ptr [edi], al */ 3182 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x36147542: mov byte ptr [edi + 0xc], bl */ 3183 RECOMP_ICALL(0x3608AA20u); /* 0x36147545: call 0x3608aa20 */ /* not lifted */ 3184 RECOMP_FLAGS_IN(); 3185 MEM32(edi + 0x8) = eax; /* 0x3614754A: mov dword ptr [edi + 8], eax */ 3186 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x3614754D: mov byte ptr [eax + 0x15], 1 */ 3187 edx = MEM32(edi + 0x8); /* 0x36147551: mov edx, dword ptr [edi + 8] */ 3188 MEM32(edx) = ebx; /* 0x36147554: mov dword ptr [edx], ebx */ 3189 eax = MEM32(edi + 0x8); /* 0x36147556: mov eax, dword ptr [edi + 8] */ 3190 MEM32(eax + 0x8) = ebx; /* 0x36147559: mov dword ptr [eax + 8], ebx */ 3191 ecx = MEM32(edi + 0x8); /* 0x3614755C: mov ecx, dword ptr [edi + 8] */ 3192 PUSH32(esp, ebx); /* 0x3614755F: push ebx */ 3193 PUSH32(esp, ecx); /* 0x36147560: push ecx */ 3194 ecx = edi; /* 0x36147561: mov ecx, edi */ 3195 RECOMP_ICALL(0x3608AA20u); /* 0x36147563: call 0x3608aa20 */ /* not lifted */ 3196 RECOMP_FLAGS_IN(); 3197 MEM32(edi + 0x4) = eax; /* 0x36147568: mov dword ptr [edi + 4], eax */ 3198 MEM32(eax) = eax; /* 0x3614756B: mov dword ptr [eax], eax */ 3199 eax = MEM32(edi + 0x4); /* 0x3614756D: mov eax, dword ptr [edi + 4] */ 3200 MEM32(eax + 0x8) = eax; /* 0x36147570: mov dword ptr [eax + 8], eax */ 3201 MEM32(edi + 0x10) = ebx; /* 0x36147573: mov dword ptr [edi + 0x10], ebx */ 3202 goto L_3614757A; /* 0x36147576: jmp 0x3614757a */ 3203 L_36147578: 3204 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3205 edi = 0; /* 0x36147578: xor edi, edi */ 3206 _cf = 0; 3207 _flag_k = FK_TEST; 3208 L_3614757A: 3209 MEM32(esi + 0x88) = edi; /* 0x3614757A: mov dword ptr [esi + 0x88], edi */ 3210 edx = 0xFFFFFFBFu; /* 0x36147580: mov edx, 0xffffffbf */ 3211 edi = 0xFFFFFFC0u; /* 0x36147585: mov edi, 0xffffffc0 */ 3212 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 3213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3214 edx = edx - esi; /* 0x3614758A: sub edx, esi */ 3215 _flag_k = FK_CMP; 3216 MEM32(esi + 0x2C) = ebx; /* 0x3614758C: mov dword ptr [esi + 0x2c], ebx */ 3217 MEM32(esi + 0x30) = ebx; /* 0x3614758F: mov dword ptr [esi + 0x30], ebx */ 3218 MEM32(esi + 0x34) = ebx; /* 0x36147592: mov dword ptr [esi + 0x34], ebx */ 3219 MEM32(esi + 0x38) = ebx; /* 0x36147595: mov dword ptr [esi + 0x38], ebx */ 3220 MEM32(esi + 0x3C) = ebx; /* 0x36147598: mov dword ptr [esi + 0x3c], ebx */ 3221 MEM8(esi + 0x5A) = (uint8_t)(LO8(ebx)); /* 0x3614759B: mov byte ptr [esi + 0x5a], bl */ 3222 MEM8(esi + 0x40) = (uint8_t)(LO8(ebx)); /* 0x3614759E: mov byte ptr [esi + 0x40], bl */ 3223 eax = esi + 0x41; /* 0x361475A1: lea eax, [esi + 0x41] */ 3224 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 3225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3226 edi = edi - esi; /* 0x361475A4: sub edi, esi */ 3227 _flag_k = FK_CMP; 3228 L_361475A6: 3229 ecx = edx + eax; /* 0x361475A6: lea ecx, [edx + eax] */ 3230 MEM8(eax + 0x1A) = (uint8_t)(1); /* 0x361475A9: mov byte ptr [eax + 0x1a], 1 */ 3231 ebx = 1; /* 0x361475AD: mov ebx, 1 */ 3232 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((ebx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x361475B2: shl ebx, cl */ 3233 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((ebx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3234 ebx = ebx << ((LO8(ecx)) & 31); /* 0x361475B2: shl ebx, cl */ 3235 MEM8(eax) = (uint8_t)(1); /* 0x361475B4: mov byte ptr [eax], 1 */ 3236 ecx = MEM32(esi + 0x74); /* 0x361475B7: mov ecx, dword ptr [esi + 0x74] */ 3237 _flag_a = (uint32_t)((ecx | ebx)); _flag_b = (uint32_t)((ecx | ebx)); 3238 ecx = ecx | ebx; /* 0x361475BA: or ecx, ebx */ 3239 _cf = 0; 3240 _flag_k = FK_TEST; 3241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3242 eax = eax + 1; /* 0x361475BC: inc eax */ 3243 _flag_k = FK_INC; 3244 MEM32(esi + 0x74) = ecx; /* 0x361475BD: mov dword ptr [esi + 0x74], ecx */ 3245 ecx = edi + eax; /* 0x361475C0: lea ecx, [edi + eax] */ 3246 /* cmp ecx, 0x1Au */ /* 0x361475C3: cmp ecx, 0x1a */ 3247 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Au); 3248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3249 _flag_k = FK_CMP; 3250 RECOMP_BACKEDGE(); 3251 if (CMP_B(_flag_a, _flag_b)) goto L_361475A6; /* 0x361475C6: jb 0x361475a6 */ 3252 L_361475C8: 3253 ecx = MEM32(ebp + (-0xC)); /* 0x361475C8: mov ecx, dword ptr [ebp - 0xc] */ 3254 edi = POP32_VAL(esp); /* 0x361475CB: pop edi */ 3255 eax = esi; /* 0x361475CC: mov eax, esi */ 3256 esi = POP32_VAL(esp); /* 0x361475CE: pop esi */ 3257 ebx = POP32_VAL(esp); /* 0x361475CF: pop ebx */ 3258 MEM32(FS_BASE + (0)) = ecx; /* 0x361475D0: mov dword ptr fs:[0], ecx */ 3259 esp = ebp; /* 0x361475D7: mov esp, ebp */ 3260 ebp = POP32_VAL(esp); /* 0x361475D9: pop ebp */ 3261 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361475DA: ret */ 3262 RECOMP_REGS_OUT(); 3263 } 3264 3265 void sub_361475E0(void) { 3266 int _fpu_cmp = 0; 3267 uint32_t _cf = 0; 3268 int _df = 1; 3269 uint32_t _flag_k = FK_NONE; 3270 uint32_t _flag_a = 0, _flag_b = 0; 3271 uint32_t _itail_tgt = 0; 3272 RECOMP_REGS_LOCALS 3273 RECOMP_ENTER(0x361475E0u); 3274 3275 L_361475E0: 3276 PUSH32(esp, ebp); /* 0x361475E0: push ebp */ 3277 ebp = esp; /* 0x361475E1: mov ebp, esp */ 3278 PUSH32(esp, esi); /* 0x361475E3: push esi */ 3279 esi = ecx; /* 0x361475E4: mov esi, ecx */ 3280 RECOMP_ICALL(0x36147610u); /* 0x361475E6: call 0x36147610 */ /* not lifted */ 3281 RECOMP_FLAGS_IN(); 3282 /* test MEM8(ebp + 0x8), 1 */ /* 0x361475EB: test byte ptr [ebp + 8], 1 */ 3283 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 3284 _cf = 0; 3285 _flag_k = FK_NARROW(FK_TEST, 24); 3286 if (TEST_Z(_flag_a, _flag_b)) goto L_361475FA; /* 0x361475EF: je 0x361475fa */ 3287 L_361475F1: 3288 PUSH32(esp, esi); /* 0x361475F1: push esi */ 3289 RECOMP_ICALL(0x3615FCC4u); /* 0x361475F2: call 0x3615fcc4 */ /* not lifted */ 3290 RECOMP_FLAGS_IN(); 3291 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3293 esp = esp + 4; /* 0x361475F7: add esp, 4 */ 3294 _flag_k = FK_ADD; 3295 L_361475FA: 3296 eax = esi; /* 0x361475FA: mov eax, esi */ 3297 esi = POP32_VAL(esp); /* 0x361475FC: pop esi */ 3298 ebp = POP32_VAL(esp); /* 0x361475FD: pop ebp */ 3299 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361475FE: ret 4 */ 3300 RECOMP_REGS_OUT(); 3301 } 3302 3303 void sub_36147610(void) { 3304 int _fpu_cmp = 0; 3305 uint32_t _cf = 0; 3306 int _df = 1; 3307 uint32_t _flag_k = FK_NONE; 3308 uint32_t _flag_a = 0, _flag_b = 0; 3309 uint32_t _itail_tgt = 0; 3310 RECOMP_REGS_LOCALS 3311 RECOMP_ENTER(0x36147610u); 3312 3313 L_36147610: 3314 PUSH32(esp, ebp); /* 0x36147610: push ebp */ 3315 ebp = esp; /* 0x36147611: mov ebp, esp */ 3316 PUSH32(esp, 0xFFFFFFFFu); /* 0x36147613: push -1 */ 3317 PUSH32(esp, 0x3616D088u); /* 0x36147615: push 0x3616d088 */ 3318 eax = MEM32(FS_BASE + (0)); /* 0x3614761A: mov eax, dword ptr fs:[0] */ 3319 PUSH32(esp, eax); /* 0x36147620: push eax */ 3320 MEM32(FS_BASE + (0)) = esp; /* 0x36147621: mov dword ptr fs:[0], esp */ 3321 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3323 esp = esp - 0x10u; /* 0x36147628: sub esp, 0x10 */ 3324 _flag_k = FK_CMP; 3325 PUSH32(esp, ebx); /* 0x3614762B: push ebx */ 3326 PUSH32(esp, esi); /* 0x3614762C: push esi */ 3327 PUSH32(esp, edi); /* 0x3614762D: push edi */ 3328 edi = ecx; /* 0x3614762E: mov edi, ecx */ 3329 MEM32(ebp + (-0x18)) = edi; /* 0x36147630: mov dword ptr [ebp - 0x18], edi */ 3330 MEM32(edi) = 0x3617887Cu; /* 0x36147633: mov dword ptr [edi], 0x3617887c */ 3331 esi = MEM32(edi + 0x8); /* 0x36147639: mov esi, dword ptr [edi + 8] */ 3332 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3333 ebx = 0; /* 0x3614763C: xor ebx, ebx */ 3334 _cf = 0; 3335 _flag_k = FK_TEST; 3336 /* cmp esi, ebx */ /* 0x3614763E: cmp esi, ebx */ 3337 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3339 _flag_k = FK_CMP; 3340 MEM32(ebp + (-0x4)) = ebx; /* 0x36147640: mov dword ptr [ebp - 4], ebx */ 3341 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147658; /* 0x36147643: je 0x36147658 */ 3342 L_36147645: 3343 PUSH32(esp, 1); /* 0x36147645: push 1 */ 3344 ecx = esi; /* 0x36147647: mov ecx, esi */ 3345 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36147649: call dword ptr [0x3616f100] */ 3346 RECOMP_FLAGS_IN(); 3347 PUSH32(esp, esi); /* 0x3614764F: push esi */ 3348 RECOMP_ICALL(0x3615FCC4u); /* 0x36147650: call 0x3615fcc4 */ /* not lifted */ 3349 RECOMP_FLAGS_IN(); 3350 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3352 esp = esp + 4; /* 0x36147655: add esp, 4 */ 3353 _flag_k = FK_ADD; 3354 L_36147658: 3355 esi = MEM32(edi + 0xC); /* 0x36147658: mov esi, dword ptr [edi + 0xc] */ 3356 /* cmp esi, ebx */ /* 0x3614765B: cmp esi, ebx */ 3357 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3359 _flag_k = FK_CMP; 3360 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147672; /* 0x3614765D: je 0x36147672 */ 3361 L_3614765F: 3362 PUSH32(esp, 1); /* 0x3614765F: push 1 */ 3363 ecx = esi; /* 0x36147661: mov ecx, esi */ 3364 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36147663: call dword ptr [0x3616f100] */ 3365 RECOMP_FLAGS_IN(); 3366 PUSH32(esp, esi); /* 0x36147669: push esi */ 3367 RECOMP_ICALL(0x3615FCC4u); /* 0x3614766A: call 0x3615fcc4 */ /* not lifted */ 3368 RECOMP_FLAGS_IN(); 3369 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3371 esp = esp + 4; /* 0x3614766F: add esp, 4 */ 3372 _flag_k = FK_ADD; 3373 L_36147672: 3374 esi = MEM32(edi + 0x10); /* 0x36147672: mov esi, dword ptr [edi + 0x10] */ 3375 /* cmp esi, ebx */ /* 0x36147675: cmp esi, ebx */ 3376 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3378 _flag_k = FK_CMP; 3379 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614768C; /* 0x36147677: je 0x3614768c */ 3380 L_36147679: 3381 PUSH32(esp, 1); /* 0x36147679: push 1 */ 3382 ecx = esi; /* 0x3614767B: mov ecx, esi */ 3383 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3614767D: call dword ptr [0x3616f100] */ 3384 RECOMP_FLAGS_IN(); 3385 PUSH32(esp, esi); /* 0x36147683: push esi */ 3386 RECOMP_ICALL(0x3615FCC4u); /* 0x36147684: call 0x3615fcc4 */ /* not lifted */ 3387 RECOMP_FLAGS_IN(); 3388 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3389 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3390 esp = esp + 4; /* 0x36147689: add esp, 4 */ 3391 _flag_k = FK_ADD; 3392 L_3614768C: 3393 esi = MEM32(edi + 0x14); /* 0x3614768C: mov esi, dword ptr [edi + 0x14] */ 3394 /* cmp esi, ebx */ /* 0x3614768F: cmp esi, ebx */ 3395 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3397 _flag_k = FK_CMP; 3398 if (CMP_EQ(_flag_a, _flag_b)) goto L_361476A6; /* 0x36147691: je 0x361476a6 */ 3399 L_36147693: 3400 PUSH32(esp, 1); /* 0x36147693: push 1 */ 3401 ecx = esi; /* 0x36147695: mov ecx, esi */ 3402 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36147697: call dword ptr [0x3616f100] */ 3403 RECOMP_FLAGS_IN(); 3404 PUSH32(esp, esi); /* 0x3614769D: push esi */ 3405 RECOMP_ICALL(0x3615FCC4u); /* 0x3614769E: call 0x3615fcc4 */ /* not lifted */ 3406 RECOMP_FLAGS_IN(); 3407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3409 esp = esp + 4; /* 0x361476A3: add esp, 4 */ 3410 _flag_k = FK_ADD; 3411 L_361476A6: 3412 esi = MEM32(edi + 0x20); /* 0x361476A6: mov esi, dword ptr [edi + 0x20] */ 3413 /* cmp esi, ebx */ /* 0x361476A9: cmp esi, ebx */ 3414 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3416 _flag_k = FK_CMP; 3417 MEM32(edi + 0x8) = ebx; /* 0x361476AB: mov dword ptr [edi + 8], ebx */ 3418 MEM32(edi + 0xC) = ebx; /* 0x361476AE: mov dword ptr [edi + 0xc], ebx */ 3419 MEM32(edi + 0x10) = ebx; /* 0x361476B1: mov dword ptr [edi + 0x10], ebx */ 3420 MEM32(edi + 0x14) = ebx; /* 0x361476B4: mov dword ptr [edi + 0x14], ebx */ 3421 if (CMP_EQ(_flag_a, _flag_b)) goto L_361476C9; /* 0x361476B7: je 0x361476c9 */ 3422 L_361476B9: 3423 ecx = esi; /* 0x361476B9: mov ecx, esi */ 3424 RECOMP_ICALL(0x360E2940u); /* 0x361476BB: call 0x360e2940 */ /* not lifted */ 3425 RECOMP_FLAGS_IN(); 3426 PUSH32(esp, esi); /* 0x361476C0: push esi */ 3427 RECOMP_ICALL(0x3615FCC4u); /* 0x361476C1: call 0x3615fcc4 */ /* not lifted */ 3428 RECOMP_FLAGS_IN(); 3429 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3431 esp = esp + 4; /* 0x361476C6: add esp, 4 */ 3432 _flag_k = FK_ADD; 3433 L_361476C9: 3434 ecx = MEM32(edi + 0x84); /* 0x361476C9: mov ecx, dword ptr [edi + 0x84] */ 3435 /* cmp ecx, ebx */ /* 0x361476CF: cmp ecx, ebx */ 3436 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3438 _flag_k = FK_CMP; 3439 MEM32(edi + 0x20) = ebx; /* 0x361476D1: mov dword ptr [edi + 0x20], ebx */ 3440 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614778B; /* 0x361476D4: je 0x3614778b */ 3441 L_361476DA: 3442 eax = MEM32(ecx + 0x4); /* 0x361476DA: mov eax, dword ptr [ecx + 4] */ 3443 eax = MEM32(eax); /* 0x361476DD: mov eax, dword ptr [eax] */ 3444 MEM32(ebp + (-0x10)) = eax; /* 0x361476DF: mov dword ptr [ebp - 0x10], eax */ 3445 ecx = MEM32(ecx + 0x4); /* 0x361476E2: mov ecx, dword ptr [ecx + 4] */ 3446 /* cmp ecx, eax */ /* 0x361476E5: cmp ecx, eax */ 3447 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3449 _flag_k = FK_CMP; 3450 MEM32(ebp + (-0x14)) = ecx; /* 0x361476E7: mov dword ptr [ebp - 0x14], ecx */ 3451 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147745; /* 0x361476EA: je 0x36147745 */ 3452 L_361476EC: 3453 edi = MEM32(eax + 0x10); /* 0x361476EC: mov edi, dword ptr [eax + 0x10] */ 3454 esi = MEM32(edi + 0x4); /* 0x361476EF: mov esi, dword ptr [edi + 4] */ 3455 ebx = MEM32(edi + 0x8); /* 0x361476F2: mov ebx, dword ptr [edi + 8] */ 3456 /* cmp ebx, esi */ /* 0x361476F5: cmp ebx, esi */ 3457 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 3458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3459 _flag_k = FK_CMP; 3460 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614770C; /* 0x361476F7: je 0x3614770c */ 3461 L_361476F9: 3462 ecx = MEM32(esi); /* 0x361476F9: mov ecx, dword ptr [esi] */ 3463 /* test ecx, ecx */ /* 0x361476FB: test ecx, ecx */ 3464 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3465 _cf = 0; 3466 _flag_k = FK_TEST; 3467 if (TEST_Z(_flag_a, _flag_b)) goto L_36147705; /* 0x361476FD: je 0x36147705 */ 3468 L_361476FF: 3469 eax = MEM32(ecx); /* 0x361476FF: mov eax, dword ptr [ecx] */ 3470 PUSH32(esp, 1); /* 0x36147701: push 1 */ 3471 RECOMP_ICALL(MEM32(eax)); /* 0x36147703: call dword ptr [eax] */ 3472 RECOMP_FLAGS_IN(); 3473 L_36147705: 3474 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 3475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3476 esi = esi + 4; /* 0x36147705: add esi, 4 */ 3477 _flag_k = FK_ADD; 3478 /* cmp esi, ebx */ /* 0x36147708: cmp esi, ebx */ 3479 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3481 _flag_k = FK_CMP; 3482 RECOMP_BACKEDGE(); 3483 if (CMP_NE(_flag_a, _flag_b)) goto L_361476F9; /* 0x3614770A: jne 0x361476f9 */ 3484 L_3614770C: 3485 /* test edi, edi */ /* 0x3614770C: test edi, edi */ 3486 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3487 _cf = 0; 3488 _flag_k = FK_TEST; 3489 if (TEST_Z(_flag_a, _flag_b)) goto L_36147730; /* 0x3614770E: je 0x36147730 */ 3490 L_36147710: 3491 eax = MEM32(edi + 0x4); /* 0x36147710: mov eax, dword ptr [edi + 4] */ 3492 PUSH32(esp, eax); /* 0x36147713: push eax */ 3493 MEM32(ebp + (-0x1C)) = eax; /* 0x36147714: mov dword ptr [ebp - 0x1c], eax */ 3494 RECOMP_ICALL(0x3615FCC4u); /* 0x36147717: call 0x3615fcc4 */ /* not lifted */ 3495 RECOMP_FLAGS_IN(); 3496 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3497 eax = 0; /* 0x3614771C: xor eax, eax */ 3498 _cf = 0; 3499 _flag_k = FK_TEST; 3500 PUSH32(esp, edi); /* 0x3614771E: push edi */ 3501 MEM32(edi + 0x4) = eax; /* 0x3614771F: mov dword ptr [edi + 4], eax */ 3502 MEM32(edi + 0x8) = eax; /* 0x36147722: mov dword ptr [edi + 8], eax */ 3503 MEM32(edi + 0xC) = eax; /* 0x36147725: mov dword ptr [edi + 0xc], eax */ 3504 RECOMP_ICALL(0x3615FCC4u); /* 0x36147728: call 0x3615fcc4 */ /* not lifted */ 3505 RECOMP_FLAGS_IN(); 3506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3508 esp = esp + 8; /* 0x3614772D: add esp, 8 */ 3509 _flag_k = FK_ADD; 3510 L_36147730: 3511 ecx = ebp + (-0x10); /* 0x36147730: lea ecx, [ebp - 0x10] */ 3512 RECOMP_ICALL(0x36064140u); /* 0x36147733: call 0x36064140 */ /* not lifted */ 3513 RECOMP_FLAGS_IN(); 3514 eax = MEM32(ebp + (-0x10)); /* 0x36147738: mov eax, dword ptr [ebp - 0x10] */ 3515 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x3614773B: cmp dword ptr [ebp - 0x14], eax */ 3516 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 3517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3518 _flag_k = FK_CMP; 3519 RECOMP_BACKEDGE(); 3520 if (CMP_NE(_flag_a, _flag_b)) goto L_361476EC; /* 0x3614773E: jne 0x361476ec */ 3521 L_36147740: 3522 edi = MEM32(ebp + (-0x18)); /* 0x36147740: mov edi, dword ptr [ebp - 0x18] */ 3523 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3524 ebx = 0; /* 0x36147743: xor ebx, ebx */ 3525 _cf = 0; 3526 _flag_k = FK_TEST; 3527 L_36147745: 3528 esi = MEM32(edi + 0x84); /* 0x36147745: mov esi, dword ptr [edi + 0x84] */ 3529 /* cmp esi, ebx */ /* 0x3614774B: cmp esi, ebx */ 3530 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3532 _flag_k = FK_CMP; 3533 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147785; /* 0x3614774D: je 0x36147785 */ 3534 L_3614774F: 3535 eax = MEM32(esi + 0x4); /* 0x3614774F: mov eax, dword ptr [esi + 4] */ 3536 ecx = MEM32(eax); /* 0x36147752: mov ecx, dword ptr [eax] */ 3537 PUSH32(esp, eax); /* 0x36147754: push eax */ 3538 PUSH32(esp, ecx); /* 0x36147755: push ecx */ 3539 ecx = ebp + (-0x1C); /* 0x36147756: lea ecx, [ebp - 0x1c] */ 3540 PUSH32(esp, ecx); /* 0x36147759: push ecx */ 3541 ecx = esi; /* 0x3614775A: mov ecx, esi */ 3542 RECOMP_ICALL(0x36148140u); /* 0x3614775C: call 0x36148140 */ /* not lifted */ 3543 RECOMP_FLAGS_IN(); 3544 eax = MEM32(esi + 0x4); /* 0x36147761: mov eax, dword ptr [esi + 4] */ 3545 PUSH32(esp, eax); /* 0x36147764: push eax */ 3546 RECOMP_ICALL(0x3615FCC4u); /* 0x36147765: call 0x3615fcc4 */ /* not lifted */ 3547 RECOMP_FLAGS_IN(); 3548 eax = MEM32(esi + 0x8); /* 0x3614776A: mov eax, dword ptr [esi + 8] */ 3549 PUSH32(esp, eax); /* 0x3614776D: push eax */ 3550 MEM32(esi + 0x4) = ebx; /* 0x3614776E: mov dword ptr [esi + 4], ebx */ 3551 MEM32(esi + 0x10) = ebx; /* 0x36147771: mov dword ptr [esi + 0x10], ebx */ 3552 RECOMP_ICALL(0x3615FCC4u); /* 0x36147774: call 0x3615fcc4 */ /* not lifted */ 3553 RECOMP_FLAGS_IN(); 3554 PUSH32(esp, esi); /* 0x36147779: push esi */ 3555 MEM32(esi + 0x8) = ebx; /* 0x3614777A: mov dword ptr [esi + 8], ebx */ 3556 RECOMP_ICALL(0x3615FCC4u); /* 0x3614777D: call 0x3615fcc4 */ /* not lifted */ 3557 RECOMP_FLAGS_IN(); 3558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3560 esp = esp + 0xCu; /* 0x36147782: add esp, 0xc */ 3561 _flag_k = FK_ADD; 3562 L_36147785: 3563 MEM32(edi + 0x84) = ebx; /* 0x36147785: mov dword ptr [edi + 0x84], ebx */ 3564 L_3614778B: 3565 esi = MEM32(edi + 0x88); /* 0x3614778B: mov esi, dword ptr [edi + 0x88] */ 3566 /* cmp esi, ebx */ /* 0x36147791: cmp esi, ebx */ 3567 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3569 _flag_k = FK_CMP; 3570 if (CMP_EQ(_flag_a, _flag_b)) goto L_361477CB; /* 0x36147793: je 0x361477cb */ 3571 L_36147795: 3572 eax = MEM32(esi + 0x4); /* 0x36147795: mov eax, dword ptr [esi + 4] */ 3573 ecx = MEM32(eax); /* 0x36147798: mov ecx, dword ptr [eax] */ 3574 PUSH32(esp, eax); /* 0x3614779A: push eax */ 3575 PUSH32(esp, ecx); /* 0x3614779B: push ecx */ 3576 edx = ebp + (-0x1C); /* 0x3614779C: lea edx, [ebp - 0x1c] */ 3577 PUSH32(esp, edx); /* 0x3614779F: push edx */ 3578 ecx = esi; /* 0x361477A0: mov ecx, esi */ 3579 RECOMP_ICALL(0x36148090u); /* 0x361477A2: call 0x36148090 */ /* not lifted */ 3580 RECOMP_FLAGS_IN(); 3581 eax = MEM32(esi + 0x4); /* 0x361477A7: mov eax, dword ptr [esi + 4] */ 3582 PUSH32(esp, eax); /* 0x361477AA: push eax */ 3583 RECOMP_ICALL(0x3615FCC4u); /* 0x361477AB: call 0x3615fcc4 */ /* not lifted */ 3584 RECOMP_FLAGS_IN(); 3585 eax = MEM32(esi + 0x8); /* 0x361477B0: mov eax, dword ptr [esi + 8] */ 3586 PUSH32(esp, eax); /* 0x361477B3: push eax */ 3587 MEM32(esi + 0x4) = ebx; /* 0x361477B4: mov dword ptr [esi + 4], ebx */ 3588 MEM32(esi + 0x10) = ebx; /* 0x361477B7: mov dword ptr [esi + 0x10], ebx */ 3589 RECOMP_ICALL(0x3615FCC4u); /* 0x361477BA: call 0x3615fcc4 */ /* not lifted */ 3590 RECOMP_FLAGS_IN(); 3591 PUSH32(esp, esi); /* 0x361477BF: push esi */ 3592 MEM32(esi + 0x8) = ebx; /* 0x361477C0: mov dword ptr [esi + 8], ebx */ 3593 RECOMP_ICALL(0x3615FCC4u); /* 0x361477C3: call 0x3615fcc4 */ /* not lifted */ 3594 RECOMP_FLAGS_IN(); 3595 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3597 esp = esp + 0xCu; /* 0x361477C8: add esp, 0xc */ 3598 _flag_k = FK_ADD; 3599 L_361477CB: 3600 ecx = edi; /* 0x361477CB: mov ecx, edi */ 3601 MEM32(edi + 0x88) = ebx; /* 0x361477CD: mov dword ptr [edi + 0x88], ebx */ 3602 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361477D3: mov dword ptr [ebp - 4], 0xffffffff */ 3603 RECOMP_ICALL(0x3615BBA0u); /* 0x361477DA: call 0x3615bba0 */ /* not lifted */ 3604 RECOMP_FLAGS_IN(); 3605 ecx = MEM32(ebp + (-0xC)); /* 0x361477DF: mov ecx, dword ptr [ebp - 0xc] */ 3606 edi = POP32_VAL(esp); /* 0x361477E2: pop edi */ 3607 esi = POP32_VAL(esp); /* 0x361477E3: pop esi */ 3608 ebx = POP32_VAL(esp); /* 0x361477E4: pop ebx */ 3609 MEM32(FS_BASE + (0)) = ecx; /* 0x361477E5: mov dword ptr fs:[0], ecx */ 3610 esp = ebp; /* 0x361477EC: mov esp, ebp */ 3611 ebp = POP32_VAL(esp); /* 0x361477EE: pop ebp */ 3612 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361477EF: ret */ 3613 RECOMP_REGS_OUT(); 3614 } 3615 3616 void sub_361477F0(void) { 3617 int _fpu_cmp = 0; 3618 uint32_t _cf = 0; 3619 int _df = 1; 3620 uint32_t _flag_k = FK_NONE; 3621 uint32_t _flag_a = 0, _flag_b = 0; 3622 uint32_t _itail_tgt = 0; 3623 RECOMP_REGS_LOCALS 3624 RECOMP_ENTER(0x361477F0u); 3625 3626 L_361477F0: 3627 PUSH32(esp, ebp); /* 0x361477F0: push ebp */ 3628 ebp = esp; /* 0x361477F1: mov ebp, esp */ 3629 eax = MEM32(ebp + 0x8); /* 0x361477F3: mov eax, dword ptr [ebp + 8] */ 3630 PUSH32(esp, eax); /* 0x361477F6: push eax */ 3631 RECOMP_ICALL(0x36147810u); /* 0x361477F7: call 0x36147810 */ /* not lifted */ 3632 RECOMP_FLAGS_IN(); 3633 /* test eax, eax */ /* 0x361477FC: test eax, eax */ 3634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3635 _cf = 0; 3636 _flag_k = FK_TEST; 3637 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361477FE: setne al */ 3638 ebp = POP32_VAL(esp); /* 0x36147801: pop ebp */ 3639 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36147802: ret 4 */ 3640 RECOMP_REGS_OUT(); 3641 } 3642 3643 void sub_36147810(void) { 3644 int _fpu_cmp = 0; 3645 uint32_t _cf = 0; 3646 int _df = 1; 3647 uint32_t _flag_k = FK_NONE; 3648 uint32_t _flag_a = 0, _flag_b = 0; 3649 uint32_t _itail_tgt = 0; 3650 RECOMP_REGS_LOCALS 3651 RECOMP_ENTER(0x36147810u); 3652 3653 L_36147810: 3654 PUSH32(esp, ebp); /* 0x36147810: push ebp */ 3655 ebp = esp; /* 0x36147811: mov ebp, esp */ 3656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3658 esp = esp - 8; /* 0x36147813: sub esp, 8 */ 3659 _flag_k = FK_CMP; 3660 PUSH32(esp, ebx); /* 0x36147816: push ebx */ 3661 PUSH32(esp, esi); /* 0x36147817: push esi */ 3662 PUSH32(esp, edi); /* 0x36147818: push edi */ 3663 edi = ecx; /* 0x36147819: mov edi, ecx */ 3664 esi = MEM32(edi + 0x84); /* 0x3614781B: mov esi, dword ptr [edi + 0x84] */ 3665 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3666 ebx = 0; /* 0x36147821: xor ebx, ebx */ 3667 _cf = 0; 3668 _flag_k = FK_TEST; 3669 /* test esi, esi */ /* 0x36147823: test esi, esi */ 3670 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3671 _cf = 0; 3672 _flag_k = FK_TEST; 3673 if (TEST_Z(_flag_a, _flag_b)) goto L_36147868; /* 0x36147825: je 0x36147868 */ 3674 L_36147827: 3675 eax = ebp + 0x8; /* 0x36147827: lea eax, [ebp + 8] */ 3676 PUSH32(esp, eax); /* 0x3614782A: push eax */ 3677 ecx = esi; /* 0x3614782B: mov ecx, esi */ 3678 RECOMP_ICALL(0x36076670u); /* 0x3614782D: call 0x36076670 */ /* not lifted */ 3679 RECOMP_FLAGS_IN(); 3680 esi = MEM32(esi + 0x4); /* 0x36147832: mov esi, dword ptr [esi + 4] */ 3681 /* cmp eax, esi */ /* 0x36147835: cmp eax, esi */ 3682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3684 _flag_k = FK_CMP; 3685 MEM32(ebp + (-0x4)) = eax; /* 0x36147837: mov dword ptr [ebp - 4], eax */ 3686 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147849; /* 0x3614783A: je 0x36147849 */ 3687 L_3614783C: 3688 ecx = MEM32(ebp + 0x8); /* 0x3614783C: mov ecx, dword ptr [ebp + 8] */ 3689 /* cmp ecx, MEM32(eax + 0xC) */ /* 0x3614783F: cmp ecx, dword ptr [eax + 0xc] */ 3690 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 3691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3692 _flag_k = FK_CMP; 3693 if (CMP_L(_flag_a, _flag_b)) goto L_36147849; /* 0x36147842: jl 0x36147849 */ 3694 L_36147844: 3695 eax = ebp + (-0x4); /* 0x36147844: lea eax, [ebp - 4] */ 3696 goto L_3614784F; /* 0x36147847: jmp 0x3614784f */ 3697 L_36147849: 3698 MEM32(ebp + (-0x8)) = esi; /* 0x36147849: mov dword ptr [ebp - 8], esi */ 3699 eax = ebp + (-0x8); /* 0x3614784C: lea eax, [ebp - 8] */ 3700 L_3614784F: 3701 edx = MEM32(edi + 0x84); /* 0x3614784F: mov edx, dword ptr [edi + 0x84] */ 3702 eax = MEM32(eax); /* 0x36147855: mov eax, dword ptr [eax] */ 3703 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36147857: cmp eax, dword ptr [edx + 4] */ 3704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3706 _flag_k = FK_CMP; 3707 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147868; /* 0x3614785A: je 0x36147868 */ 3708 L_3614785C: 3709 eax = MEM32(eax + 0x10); /* 0x3614785C: mov eax, dword ptr [eax + 0x10] */ 3710 edi = POP32_VAL(esp); /* 0x3614785F: pop edi */ 3711 esi = POP32_VAL(esp); /* 0x36147860: pop esi */ 3712 ebx = POP32_VAL(esp); /* 0x36147861: pop ebx */ 3713 esp = ebp; /* 0x36147862: mov esp, ebp */ 3714 ebp = POP32_VAL(esp); /* 0x36147864: pop ebp */ 3715 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36147865: ret 4 */ 3716 L_36147868: 3717 edi = POP32_VAL(esp); /* 0x36147868: pop edi */ 3718 esi = POP32_VAL(esp); /* 0x36147869: pop esi */ 3719 eax = ebx; /* 0x3614786A: mov eax, ebx */ 3720 ebx = POP32_VAL(esp); /* 0x3614786C: pop ebx */ 3721 esp = ebp; /* 0x3614786D: mov esp, ebp */ 3722 ebp = POP32_VAL(esp); /* 0x3614786F: pop ebp */ 3723 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36147870: ret 4 */ 3724 RECOMP_REGS_OUT(); 3725 } 3726 3727 void sub_36147880(void) { 3728 int _fpu_cmp = 0; 3729 uint32_t _cf = 0; 3730 int _df = 1; 3731 uint32_t _flag_k = FK_NONE; 3732 uint32_t _flag_a = 0, _flag_b = 0; 3733 uint32_t _itail_tgt = 0; 3734 RECOMP_REGS_LOCALS 3735 RECOMP_ENTER(0x36147880u); 3736 3737 L_36147880: 3738 PUSH32(esp, ebp); /* 0x36147880: push ebp */ 3739 ebp = esp; /* 0x36147881: mov ebp, esp */ 3740 PUSH32(esp, 0xFFFFFFFFu); /* 0x36147883: push -1 */ 3741 PUSH32(esp, 0x3616D0ABu); /* 0x36147885: push 0x3616d0ab */ 3742 eax = MEM32(FS_BASE + (0)); /* 0x3614788A: mov eax, dword ptr fs:[0] */ 3743 PUSH32(esp, eax); /* 0x36147890: push eax */ 3744 MEM32(FS_BASE + (0)) = esp; /* 0x36147891: mov dword ptr fs:[0], esp */ 3745 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 3746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3747 esp = esp - 0x34u; /* 0x36147898: sub esp, 0x34 */ 3748 _flag_k = FK_CMP; 3749 PUSH32(esp, ebx); /* 0x3614789B: push ebx */ 3750 PUSH32(esp, esi); /* 0x3614789C: push esi */ 3751 PUSH32(esp, edi); /* 0x3614789D: push edi */ 3752 edi = ecx; /* 0x3614789E: mov edi, ecx */ 3753 eax = MEM32(edi + 0x84); /* 0x361478A0: mov eax, dword ptr [edi + 0x84] */ 3754 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3755 ebx = 0; /* 0x361478A6: xor ebx, ebx */ 3756 _cf = 0; 3757 _flag_k = FK_TEST; 3758 /* cmp eax, ebx */ /* 0x361478A8: cmp eax, ebx */ 3759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3761 _flag_k = FK_CMP; 3762 if (CMP_NE(_flag_a, _flag_b)) goto L_361478E8; /* 0x361478AA: jne 0x361478e8 */ 3763 L_361478AC: 3764 PUSH32(esp, 0x14u); /* 0x361478AC: push 0x14 */ 3765 RECOMP_ICALL(0x3615FD6Au); /* 0x361478AE: call 0x3615fd6a */ /* not lifted */ 3766 RECOMP_FLAGS_IN(); 3767 esi = eax; /* 0x361478B3: mov esi, eax */ 3768 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3770 esp = esp + 4; /* 0x361478B5: add esp, 4 */ 3771 _flag_k = FK_ADD; 3772 MEM32(ebp + (-0x14)) = esi; /* 0x361478B8: mov dword ptr [ebp - 0x14], esi */ 3773 /* cmp esi, ebx */ /* 0x361478BB: cmp esi, ebx */ 3774 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3776 _flag_k = FK_CMP; 3777 MEM32(ebp + (-0x4)) = ebx; /* 0x361478BD: mov dword ptr [ebp - 4], ebx */ 3778 if (CMP_EQ(_flag_a, _flag_b)) goto L_361478D9; /* 0x361478C0: je 0x361478d9 */ 3779 L_361478C2: 3780 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x361478C2: mov al, byte ptr [ebp + 0xb] */ 3781 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x361478C5: mov byte ptr [esi], al */ 3782 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x361478C7: mov cl, byte ptr [ebp + 0xb] */ 3783 MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x361478CA: mov byte ptr [esi + 1], cl */ 3784 ecx = esi; /* 0x361478CD: mov ecx, esi */ 3785 MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x361478CF: mov byte ptr [esi + 0xc], bl */ 3786 RECOMP_ICALL(0x36068320u); /* 0x361478D2: call 0x36068320 */ /* not lifted */ 3787 RECOMP_FLAGS_IN(); 3788 goto L_361478DB; /* 0x361478D7: jmp 0x361478db */ 3789 L_361478D9: 3790 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3791 esi = 0; /* 0x361478D9: xor esi, esi */ 3792 _cf = 0; 3793 _flag_k = FK_TEST; 3794 L_361478DB: 3795 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361478DB: mov dword ptr [ebp - 4], 0xffffffff */ 3796 MEM32(edi + 0x84) = esi; /* 0x361478E2: mov dword ptr [edi + 0x84], esi */ 3797 L_361478E8: 3798 edx = MEM32(ebp + 0x8); /* 0x361478E8: mov edx, dword ptr [ebp + 8] */ 3799 eax = MEM32(edx + 0x10); /* 0x361478EB: mov eax, dword ptr [edx + 0x10] */ 3800 ecx = MEM32(edi + 0x84); /* 0x361478EE: mov ecx, dword ptr [edi + 0x84] */ 3801 edx = ebp + (-0x10); /* 0x361478F4: lea edx, [ebp - 0x10] */ 3802 MEM32(ebp + (-0x10)) = eax; /* 0x361478F7: mov dword ptr [ebp - 0x10], eax */ 3803 PUSH32(esp, edx); /* 0x361478FA: push edx */ 3804 eax = ebp + (-0x14); /* 0x361478FB: lea eax, [ebp - 0x14] */ 3805 PUSH32(esp, eax); /* 0x361478FE: push eax */ 3806 RECOMP_ICALL(0x36052340u); /* 0x361478FF: call 0x36052340 */ /* not lifted */ 3807 RECOMP_FLAGS_IN(); 3808 ecx = MEM32(edi + 0x84); /* 0x36147904: mov ecx, dword ptr [edi + 0x84] */ 3809 eax = MEM32(eax); /* 0x3614790A: mov eax, dword ptr [eax] */ 3810 /* cmp MEM32(ecx + 0x4), eax */ /* 0x3614790C: cmp dword ptr [ecx + 4], eax */ 3811 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(eax); 3812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3813 _flag_k = FK_CMP; 3814 if (CMP_NE(_flag_a, _flag_b)) goto L_3614797B; /* 0x3614790F: jne 0x3614797b */ 3815 L_36147911: 3816 PUSH32(esp, 0x10u); /* 0x36147911: push 0x10 */ 3817 RECOMP_ICALL(0x3615FD6Au); /* 0x36147913: call 0x3615fd6a */ /* not lifted */ 3818 RECOMP_FLAGS_IN(); 3819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3821 esp = esp + 4; /* 0x36147918: add esp, 4 */ 3822 _flag_k = FK_ADD; 3823 /* cmp eax, ebx */ /* 0x3614791B: cmp eax, ebx */ 3824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3826 _flag_k = FK_CMP; 3827 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147931; /* 0x3614791D: je 0x36147931 */ 3828 L_3614791F: 3829 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3614791F: mov dl, byte ptr [ebp + 0xb] */ 3830 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x36147922: mov byte ptr [eax], dl */ 3831 MEM32(eax + 0x4) = ebx; /* 0x36147924: mov dword ptr [eax + 4], ebx */ 3832 MEM32(eax + 0x8) = ebx; /* 0x36147927: mov dword ptr [eax + 8], ebx */ 3833 MEM32(eax + 0xC) = ebx; /* 0x3614792A: mov dword ptr [eax + 0xc], ebx */ 3834 esi = eax; /* 0x3614792D: mov esi, eax */ 3835 goto L_36147933; /* 0x3614792F: jmp 0x36147933 */ 3836 L_36147931: 3837 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3838 esi = 0; /* 0x36147931: xor esi, esi */ 3839 _cf = 0; 3840 _flag_k = FK_TEST; 3841 L_36147933: 3842 eax = MEM32(ebp + (-0x10)); /* 0x36147933: mov eax, dword ptr [ebp - 0x10] */ 3843 ecx = MEM32(edi + 0x84); /* 0x36147936: mov ecx, dword ptr [edi + 0x84] */ 3844 edx = ebp + (-0x20); /* 0x3614793C: lea edx, [ebp - 0x20] */ 3845 MEM32(ebp + (-0x20)) = eax; /* 0x3614793F: mov dword ptr [ebp - 0x20], eax */ 3846 PUSH32(esp, edx); /* 0x36147942: push edx */ 3847 eax = ebp + (-0x30); /* 0x36147943: lea eax, [ebp - 0x30] */ 3848 PUSH32(esp, eax); /* 0x36147946: push eax */ 3849 MEM32(ebp + (-0x1C)) = ebx; /* 0x36147947: mov dword ptr [ebp - 0x1c], ebx */ 3850 RECOMP_ICALL(0x3603E790u); /* 0x3614794A: call 0x3603e790 */ /* not lifted */ 3851 RECOMP_FLAGS_IN(); 3852 ecx = MEM32(eax); /* 0x3614794F: mov ecx, dword ptr [eax] */ 3853 MEM32(ebp + (-0x18)) = ecx; /* 0x36147951: mov dword ptr [ebp - 0x18], ecx */ 3854 edx = MEM32(eax + 0x4); /* 0x36147954: mov edx, dword ptr [eax + 4] */ 3855 eax = ebp + (-0x14); /* 0x36147957: lea eax, [ebp - 0x14] */ 3856 PUSH32(esp, eax); /* 0x3614795A: push eax */ 3857 ecx = ebp + (-0x18); /* 0x3614795B: lea ecx, [ebp - 0x18] */ 3858 PUSH32(esp, ecx); /* 0x3614795E: push ecx */ 3859 ecx = ebp + (-0x38); /* 0x3614795F: lea ecx, [ebp - 0x38] */ 3860 MEM32(ebp + (-0x14)) = edx; /* 0x36147962: mov dword ptr [ebp - 0x14], edx */ 3861 RECOMP_ICALL(0x3614FCB0u); /* 0x36147965: call 0x3614fcb0 */ /* not lifted */ 3862 RECOMP_FLAGS_IN(); 3863 edx = eax; /* 0x3614796A: mov edx, eax */ 3864 eax = MEM32(edx); /* 0x3614796C: mov eax, dword ptr [edx] */ 3865 ecx = MEM32(edx + 0x4); /* 0x3614796E: mov ecx, dword ptr [edx + 4] */ 3866 MEM32(ebp + (-0x24)) = ecx; /* 0x36147971: mov dword ptr [ebp - 0x24], ecx */ 3867 MEM32(eax + 0x10) = esi; /* 0x36147974: mov dword ptr [eax + 0x10], esi */ 3868 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3869 ebx = 0; /* 0x36147977: xor ebx, ebx */ 3870 _cf = 0; 3871 _flag_k = FK_TEST; 3872 goto L_3614797E; /* 0x36147979: jmp 0x3614797e */ 3873 L_3614797B: 3874 esi = MEM32(eax + 0x10); /* 0x3614797B: mov esi, dword ptr [eax + 0x10] */ 3875 L_3614797E: 3876 eax = MEM32(esi + 0x8); /* 0x3614797E: mov eax, dword ptr [esi + 8] */ 3877 edx = ebp + 0x8; /* 0x36147981: lea edx, [ebp + 8] */ 3878 PUSH32(esp, edx); /* 0x36147984: push edx */ 3879 PUSH32(esp, 1); /* 0x36147985: push 1 */ 3880 PUSH32(esp, eax); /* 0x36147987: push eax */ 3881 ecx = esi; /* 0x36147988: mov ecx, esi */ 3882 RECOMP_ICALL(0x3610ED70u); /* 0x3614798A: call 0x3610ed70 */ /* not lifted */ 3883 RECOMP_FLAGS_IN(); 3884 esi = MEM32(ebp + 0xC); /* 0x3614798F: mov esi, dword ptr [ebp + 0xc] */ 3885 /* cmp esi, ebx */ /* 0x36147992: cmp esi, ebx */ 3886 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3888 _flag_k = FK_CMP; 3889 if (CMP_L(_flag_a, _flag_b)) goto L_361479C1; /* 0x36147994: jl 0x361479c1 */ 3890 L_36147996: 3891 ecx = MEM32(ebp + 0x8); /* 0x36147996: mov ecx, dword ptr [ebp + 8] */ 3892 edi = MEM32(edi + 0x88); /* 0x36147999: mov edi, dword ptr [edi + 0x88] */ 3893 edx = ebp + (-0x28); /* 0x3614799F: lea edx, [ebp - 0x28] */ 3894 PUSH32(esp, edx); /* 0x361479A2: push edx */ 3895 eax = ebp + (-0x40); /* 0x361479A3: lea eax, [ebp - 0x40] */ 3896 MEM32(ebp + (-0x28)) = ecx; /* 0x361479A6: mov dword ptr [ebp - 0x28], ecx */ 3897 PUSH32(esp, eax); /* 0x361479A9: push eax */ 3898 ecx = edi; /* 0x361479AA: mov ecx, edi */ 3899 MEM32(ebp + (-0x24)) = ebx; /* 0x361479AC: mov dword ptr [ebp - 0x24], ebx */ 3900 RECOMP_ICALL(0x361481F0u); /* 0x361479AF: call 0x361481f0 */ /* not lifted */ 3901 RECOMP_FLAGS_IN(); 3902 ecx = eax; /* 0x361479B4: mov ecx, eax */ 3903 eax = MEM32(ecx); /* 0x361479B6: mov eax, dword ptr [ecx] */ 3904 edx = MEM32(ecx + 0x4); /* 0x361479B8: mov edx, dword ptr [ecx + 4] */ 3905 MEM32(ebp + (-0x34)) = edx; /* 0x361479BB: mov dword ptr [ebp - 0x34], edx */ 3906 MEM32(eax + 0x10) = esi; /* 0x361479BE: mov dword ptr [eax + 0x10], esi */ 3907 L_361479C1: 3908 ecx = MEM32(ebp + (-0xC)); /* 0x361479C1: mov ecx, dword ptr [ebp - 0xc] */ 3909 edi = POP32_VAL(esp); /* 0x361479C4: pop edi */ 3910 esi = POP32_VAL(esp); /* 0x361479C5: pop esi */ 3911 ebx = POP32_VAL(esp); /* 0x361479C6: pop ebx */ 3912 MEM32(FS_BASE + (0)) = ecx; /* 0x361479C7: mov dword ptr fs:[0], ecx */ 3913 esp = ebp; /* 0x361479CE: mov esp, ebp */ 3914 ebp = POP32_VAL(esp); /* 0x361479D0: pop ebp */ 3915 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361479D1: ret 8 */ 3916 RECOMP_REGS_OUT(); 3917 } 3918 3919 void sub_361479E0(void) { 3920 int _fpu_cmp = 0; 3921 uint32_t _cf = 0; 3922 int _df = 1; 3923 uint32_t _flag_k = FK_NONE; 3924 uint32_t _flag_a = 0, _flag_b = 0; 3925 uint32_t _itail_tgt = 0; 3926 RECOMP_REGS_LOCALS 3927 RECOMP_ENTER(0x361479E0u); 3928 3929 L_361479E0: 3930 PUSH32(esp, ebp); /* 0x361479E0: push ebp */ 3931 ebp = esp; /* 0x361479E1: mov ebp, esp */ 3932 PUSH32(esp, 0xFFFFFFFFu); /* 0x361479E3: push -1 */ 3933 PUSH32(esp, 0x3616D0C0u); /* 0x361479E5: push 0x3616d0c0 */ 3934 eax = MEM32(FS_BASE + (0)); /* 0x361479EA: mov eax, dword ptr fs:[0] */ 3935 PUSH32(esp, eax); /* 0x361479F0: push eax */ 3936 MEM32(FS_BASE + (0)) = esp; /* 0x361479F1: mov dword ptr fs:[0], esp */ 3937 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x80u); 3938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3939 esp = esp - 0x80u; /* 0x361479F8: sub esp, 0x80 */ 3940 _flag_k = FK_CMP; 3941 PUSH32(esp, ebx); /* 0x361479FE: push ebx */ 3942 PUSH32(esp, esi); /* 0x361479FF: push esi */ 3943 esi = MEM32(ebp + 0x8); /* 0x36147A00: mov esi, dword ptr [ebp + 8] */ 3944 PUSH32(esp, edi); /* 0x36147A03: push edi */ 3945 edi = MEM32(0x3616FAC8); /* 0x36147A04: mov edi, dword ptr [0x3616fac8] */ 3946 eax = ebp + (-0x34); /* 0x36147A0A: lea eax, [ebp - 0x34] */ 3947 MEM32(ebp + (-0x10)) = esp; /* 0x36147A0D: mov dword ptr [ebp - 0x10], esp */ 3948 PUSH32(esp, eax); /* 0x36147A10: push eax */ 3949 ecx = esi; /* 0x36147A11: mov ecx, esi */ 3950 RECOMP_ICALL(edi); /* 0x36147A13: call edi */ 3951 RECOMP_FLAGS_IN(); 3952 eax = MEM32(ebp + (-0x34)); /* 0x36147A15: mov eax, dword ptr [ebp - 0x34] */ 3953 /* cmp LO16(eax), 4 */ /* 0x36147A18: cmp ax, 4 */ 3954 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(4) << 16; 3955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3956 _flag_k = FK_NARROW(FK_CMP, 16); 3957 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147A4F; /* 0x36147A1C: je 0x36147a4f */ 3958 L_36147A1E: 3959 PUSH32(esp, 4); /* 0x36147A1E: push 4 */ 3960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 3961 eax = eax & 0xFFFFu; /* 0x36147A20: and eax, 0xffff */ 3962 _cf = 0; 3963 _flag_k = FK_TEST; 3964 PUSH32(esp, eax); /* 0x36147A25: push eax */ 3965 PUSH32(esp, 0x362E73B4u); /* 0x36147A26: push 0x362e73b4 */ 3966 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147A2B: call dword ptr [0x3616f18c] */ 3967 RECOMP_FLAGS_IN(); 3968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3970 esp = esp + 0xCu; /* 0x36147A31: add esp, 0xc */ 3971 _flag_k = FK_ADD; 3972 PUSH32(esp, 0x362E7388u); /* 0x36147A34: push 0x362e7388 */ 3973 ecx = ebp + (-0x4C); /* 0x36147A39: lea ecx, [ebp - 0x4c] */ 3974 RECOMP_ICALL(0x36008EF0u); /* 0x36147A3C: call 0x36008ef0 */ /* not lifted */ 3975 RECOMP_FLAGS_IN(); 3976 PUSH32(esp, 0x36184170u); /* 0x36147A41: push 0x36184170 */ 3977 ecx = ebp + (-0x4C); /* 0x36147A46: lea ecx, [ebp - 0x4c] */ 3978 PUSH32(esp, ecx); /* 0x36147A49: push ecx */ 3979 RECOMP_ICALL(0x3615FD70u); /* 0x36147A4A: call 0x3615fd70 */ /* not lifted */ 3980 RECOMP_FLAGS_IN(); 3981 L_36147A4F: 3982 edx = ebp + (-0x28); /* 0x36147A4F: lea edx, [ebp - 0x28] */ 3983 PUSH32(esp, edx); /* 0x36147A52: push edx */ 3984 ecx = esi; /* 0x36147A53: mov ecx, esi */ 3985 RECOMP_ICALL(edi); /* 0x36147A55: call edi */ 3986 RECOMP_FLAGS_IN(); 3987 eax = MEM32(ebp + (-0x28)); /* 0x36147A57: mov eax, dword ptr [ebp - 0x28] */ 3988 /* cmp LO16(eax), 4 */ /* 0x36147A5A: cmp ax, 4 */ 3989 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(4) << 16; 3990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3991 _flag_k = FK_NARROW(FK_CMP, 16); 3992 if (CMP_A(_flag_a, _flag_b)) goto L_36147A8F; /* 0x36147A5E: ja 0x36147a8f */ 3993 L_36147A60: 3994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 3995 eax = eax & 0xFFFFu; /* 0x36147A60: and eax, 0xffff */ 3996 _cf = 0; 3997 _flag_k = FK_TEST; 3998 PUSH32(esp, eax); /* 0x36147A65: push eax */ 3999 PUSH32(esp, 0x362E7340u); /* 0x36147A66: push 0x362e7340 */ 4000 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147A6B: call dword ptr [0x3616f18c] */ 4001 RECOMP_FLAGS_IN(); 4002 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4004 esp = esp + 8; /* 0x36147A71: add esp, 8 */ 4005 _flag_k = FK_ADD; 4006 PUSH32(esp, 0x362E7310u); /* 0x36147A74: push 0x362e7310 */ 4007 ecx = ebp + (-0x54); /* 0x36147A79: lea ecx, [ebp - 0x54] */ 4008 RECOMP_ICALL(0x36008EF0u); /* 0x36147A7C: call 0x36008ef0 */ /* not lifted */ 4009 RECOMP_FLAGS_IN(); 4010 PUSH32(esp, 0x36184170u); /* 0x36147A81: push 0x36184170 */ 4011 eax = ebp + (-0x54); /* 0x36147A86: lea eax, [ebp - 0x54] */ 4012 PUSH32(esp, eax); /* 0x36147A89: push eax */ 4013 RECOMP_ICALL(0x3615FD70u); /* 0x36147A8A: call 0x3615fd70 */ /* not lifted */ 4014 RECOMP_FLAGS_IN(); 4015 L_36147A8F: 4016 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 4017 eax = eax & 0xFFFFu; /* 0x36147A8F: and eax, 0xffff */ 4018 _cf = 0; 4019 _flag_k = FK_TEST; 4020 PUSH32(esp, eax); /* 0x36147A94: push eax */ 4021 RECOMP_ICALL(0x3615FD6Au); /* 0x36147A95: call 0x3615fd6a */ /* not lifted */ 4022 RECOMP_FLAGS_IN(); 4023 ecx = MEM32(ebp + (-0x28)); /* 0x36147A9A: mov ecx, dword ptr [ebp - 0x28] */ 4024 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4025 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4026 esp = esp + 4; /* 0x36147A9D: add esp, 4 */ 4027 _flag_k = FK_ADD; 4028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 4029 ecx = ecx & 0xFFFFu; /* 0x36147AA0: and ecx, 0xffff */ 4030 _cf = 0; 4031 _flag_k = FK_TEST; 4032 edi = eax; /* 0x36147AA6: mov edi, eax */ 4033 PUSH32(esp, ecx); /* 0x36147AA8: push ecx */ 4034 PUSH32(esp, edi); /* 0x36147AA9: push edi */ 4035 ecx = esi; /* 0x36147AAA: mov ecx, esi */ 4036 MEM32(ebp + (-0x20)) = edi; /* 0x36147AAC: mov dword ptr [ebp - 0x20], edi */ 4037 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x36147AAF: call dword ptr [0x3616fac4] */ 4038 RECOMP_FLAGS_IN(); 4039 ebx = MEM32(ebp + 0xC); /* 0x36147AB5: mov ebx, dword ptr [ebp + 0xc] */ 4040 edx = MEM32(ebx + 0x8); /* 0x36147AB8: mov edx, dword ptr [ebx + 8] */ 4041 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4042 ecx = ecx | 0xFFFFFFFFu; /* 0x36147ABB: or ecx, 0xffffffff */ 4043 _cf = 0; 4044 _flag_k = FK_TEST; 4045 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4046 eax = 0; /* 0x36147ABE: xor eax, eax */ 4047 _cf = 0; 4048 _flag_k = FK_TEST; 4049 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; } /* 0x36147AC0: repne scasb al, byte ptr es:[edi] */ 4050 ecx = ~ecx; /* 0x36147AC2: not ecx */ 4051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4052 ecx = ecx - 1; /* 0x36147AC4: dec ecx */ 4053 _flag_k = FK_DEC; 4054 edi = ecx; /* 0x36147AC5: mov edi, ecx */ 4055 PUSH32(esp, 1); /* 0x36147AC7: push 1 */ 4056 PUSH32(esp, edi); /* 0x36147AC9: push edi */ 4057 ecx = edx; /* 0x36147ACA: mov ecx, edx */ 4058 MEM32(ebp + (-0x14)) = edx; /* 0x36147ACC: mov dword ptr [ebp - 0x14], edx */ 4059 MEM32(ebp + (-0x2C)) = edi; /* 0x36147ACF: mov dword ptr [ebp - 0x2c], edi */ 4060 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36147AD2: call dword ptr [0x3616f00c] */ 4061 RECOMP_FLAGS_IN(); 4062 /* test LO8(eax), LO8(eax) */ /* 0x36147AD8: test al, al */ 4063 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4064 _cf = 0; 4065 _flag_k = FK_NARROW(FK_TEST, 24); 4066 if (TEST_Z(_flag_a, _flag_b)) goto L_36147B05; /* 0x36147ADA: je 0x36147b05 */ 4067 L_36147ADC: 4068 edx = MEM32(ebp + (-0x14)); /* 0x36147ADC: mov edx, dword ptr [ebp - 0x14] */ 4069 eax = MEM32(edx + 0x4); /* 0x36147ADF: mov eax, dword ptr [edx + 4] */ 4070 esi = MEM32(ebp + (-0x20)); /* 0x36147AE2: mov esi, dword ptr [ebp - 0x20] */ 4071 ecx = edi; /* 0x36147AE5: mov ecx, edi */ 4072 edi = eax; /* 0x36147AE7: mov edi, eax */ 4073 eax = ecx; /* 0x36147AE9: mov eax, ecx */ 4074 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36147AEB: shr ecx, 2 */ 4075 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4076 ecx = ecx >> 2u; /* 0x36147AEB: shr ecx, 2 */ 4077 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36147AEE: 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; } 4078 ecx = eax; /* 0x36147AF0: mov ecx, eax */ 4079 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4080 ecx = ecx & 3; /* 0x36147AF2: and ecx, 3 */ 4081 _cf = 0; 4082 _flag_k = FK_TEST; 4083 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36147AF5: 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; } 4084 ecx = eax; /* 0x36147AF7: mov ecx, eax */ 4085 PUSH32(esp, ecx); /* 0x36147AF9: push ecx */ 4086 ecx = edx; /* 0x36147AFA: mov ecx, edx */ 4087 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36147AFC: call dword ptr [0x3616f044] */ 4088 RECOMP_FLAGS_IN(); 4089 esi = MEM32(ebp + 0x8); /* 0x36147B02: mov esi, dword ptr [ebp + 8] */ 4090 L_36147B05: 4091 edx = MEM32(ebx + 0x8); /* 0x36147B05: mov edx, dword ptr [ebx + 8] */ 4092 eax = MEM32(edx + 0x8); /* 0x36147B08: mov eax, dword ptr [edx + 8] */ 4093 ecx = MEM32(ebp + (-0x20)); /* 0x36147B0B: mov ecx, dword ptr [ebp - 0x20] */ 4094 edx = MEM32(ebx + 0x10); /* 0x36147B0E: mov edx, dword ptr [ebx + 0x10] */ 4095 edi = eax + ecx + 0x1; /* 0x36147B11: lea edi, [eax + ecx + 1] */ 4096 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4097 ecx = ecx | 0xFFFFFFFFu; /* 0x36147B15: or ecx, 0xffffffff */ 4098 _cf = 0; 4099 _flag_k = FK_TEST; 4100 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4101 eax = 0; /* 0x36147B18: xor eax, eax */ 4102 _cf = 0; 4103 _flag_k = FK_TEST; 4104 MEM32(ebp + (-0x14)) = edi; /* 0x36147B1A: mov dword ptr [ebp - 0x14], edi */ 4105 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; } /* 0x36147B1D: repne scasb al, byte ptr es:[edi] */ 4106 ecx = ~ecx; /* 0x36147B1F: not ecx */ 4107 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4108 ecx = ecx - 1; /* 0x36147B21: dec ecx */ 4109 _flag_k = FK_DEC; 4110 edi = ecx; /* 0x36147B22: mov edi, ecx */ 4111 PUSH32(esp, 1); /* 0x36147B24: push 1 */ 4112 PUSH32(esp, edi); /* 0x36147B26: push edi */ 4113 ecx = edx; /* 0x36147B27: mov ecx, edx */ 4114 MEM32(ebp + (-0x2C)) = edx; /* 0x36147B29: mov dword ptr [ebp - 0x2c], edx */ 4115 MEM32(ebp + (-0x38)) = edi; /* 0x36147B2C: mov dword ptr [ebp - 0x38], edi */ 4116 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36147B2F: call dword ptr [0x3616f00c] */ 4117 RECOMP_FLAGS_IN(); 4118 /* test LO8(eax), LO8(eax) */ /* 0x36147B35: test al, al */ 4119 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4120 _cf = 0; 4121 _flag_k = FK_NARROW(FK_TEST, 24); 4122 if (TEST_Z(_flag_a, _flag_b)) goto L_36147B62; /* 0x36147B37: je 0x36147b62 */ 4123 L_36147B39: 4124 edx = MEM32(ebp + (-0x2C)); /* 0x36147B39: mov edx, dword ptr [ebp - 0x2c] */ 4125 eax = MEM32(edx + 0x4); /* 0x36147B3C: mov eax, dword ptr [edx + 4] */ 4126 esi = MEM32(ebp + (-0x14)); /* 0x36147B3F: mov esi, dword ptr [ebp - 0x14] */ 4127 ecx = edi; /* 0x36147B42: mov ecx, edi */ 4128 edi = eax; /* 0x36147B44: mov edi, eax */ 4129 eax = ecx; /* 0x36147B46: mov eax, ecx */ 4130 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36147B48: shr ecx, 2 */ 4131 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4132 ecx = ecx >> 2u; /* 0x36147B48: shr ecx, 2 */ 4133 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36147B4B: 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; } 4134 ecx = eax; /* 0x36147B4D: mov ecx, eax */ 4135 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4136 ecx = ecx & 3; /* 0x36147B4F: and ecx, 3 */ 4137 _cf = 0; 4138 _flag_k = FK_TEST; 4139 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36147B52: 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; } 4140 ecx = eax; /* 0x36147B54: mov ecx, eax */ 4141 PUSH32(esp, ecx); /* 0x36147B56: push ecx */ 4142 ecx = edx; /* 0x36147B57: mov ecx, edx */ 4143 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36147B59: call dword ptr [0x3616f044] */ 4144 RECOMP_FLAGS_IN(); 4145 esi = MEM32(ebp + 0x8); /* 0x36147B5F: mov esi, dword ptr [ebp + 8] */ 4146 L_36147B62: 4147 edx = MEM32(ebx + 0x10); /* 0x36147B62: mov edx, dword ptr [ebx + 0x10] */ 4148 eax = MEM32(edx + 0x8); /* 0x36147B65: mov eax, dword ptr [edx + 8] */ 4149 ecx = MEM32(ebp + (-0x14)); /* 0x36147B68: mov ecx, dword ptr [ebp - 0x14] */ 4150 edx = MEM32(ebx + 0xC); /* 0x36147B6B: mov edx, dword ptr [ebx + 0xc] */ 4151 edi = ecx + eax + 0x1; /* 0x36147B6E: lea edi, [ecx + eax + 1] */ 4152 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4153 ecx = ecx | 0xFFFFFFFFu; /* 0x36147B72: or ecx, 0xffffffff */ 4154 _cf = 0; 4155 _flag_k = FK_TEST; 4156 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4157 eax = 0; /* 0x36147B75: xor eax, eax */ 4158 _cf = 0; 4159 _flag_k = FK_TEST; 4160 MEM32(ebp + (-0x14)) = edi; /* 0x36147B77: mov dword ptr [ebp - 0x14], edi */ 4161 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; } /* 0x36147B7A: repne scasb al, byte ptr es:[edi] */ 4162 ecx = ~ecx; /* 0x36147B7C: not ecx */ 4163 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4164 ecx = ecx - 1; /* 0x36147B7E: dec ecx */ 4165 _flag_k = FK_DEC; 4166 edi = ecx; /* 0x36147B7F: mov edi, ecx */ 4167 PUSH32(esp, 1); /* 0x36147B81: push 1 */ 4168 PUSH32(esp, edi); /* 0x36147B83: push edi */ 4169 ecx = edx; /* 0x36147B84: mov ecx, edx */ 4170 MEM32(ebp + (-0x2C)) = edx; /* 0x36147B86: mov dword ptr [ebp - 0x2c], edx */ 4171 MEM32(ebp + (-0x38)) = edi; /* 0x36147B89: mov dword ptr [ebp - 0x38], edi */ 4172 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36147B8C: call dword ptr [0x3616f00c] */ 4173 RECOMP_FLAGS_IN(); 4174 /* test LO8(eax), LO8(eax) */ /* 0x36147B92: test al, al */ 4175 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4176 _cf = 0; 4177 _flag_k = FK_NARROW(FK_TEST, 24); 4178 if (TEST_Z(_flag_a, _flag_b)) goto L_36147BBF; /* 0x36147B94: je 0x36147bbf */ 4179 L_36147B96: 4180 edx = MEM32(ebp + (-0x2C)); /* 0x36147B96: mov edx, dword ptr [ebp - 0x2c] */ 4181 eax = MEM32(edx + 0x4); /* 0x36147B99: mov eax, dword ptr [edx + 4] */ 4182 esi = MEM32(ebp + (-0x14)); /* 0x36147B9C: mov esi, dword ptr [ebp - 0x14] */ 4183 ecx = edi; /* 0x36147B9F: mov ecx, edi */ 4184 edi = eax; /* 0x36147BA1: mov edi, eax */ 4185 eax = ecx; /* 0x36147BA3: mov eax, ecx */ 4186 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36147BA5: shr ecx, 2 */ 4187 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4188 ecx = ecx >> 2u; /* 0x36147BA5: shr ecx, 2 */ 4189 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36147BA8: 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; } 4190 ecx = eax; /* 0x36147BAA: mov ecx, eax */ 4191 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4192 ecx = ecx & 3; /* 0x36147BAC: and ecx, 3 */ 4193 _cf = 0; 4194 _flag_k = FK_TEST; 4195 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36147BAF: 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; } 4196 ecx = eax; /* 0x36147BB1: mov ecx, eax */ 4197 PUSH32(esp, ecx); /* 0x36147BB3: push ecx */ 4198 ecx = edx; /* 0x36147BB4: mov ecx, edx */ 4199 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36147BB6: call dword ptr [0x3616f044] */ 4200 RECOMP_FLAGS_IN(); 4201 esi = MEM32(ebp + 0x8); /* 0x36147BBC: mov esi, dword ptr [ebp + 8] */ 4202 L_36147BBF: 4203 edx = MEM32(ebx + 0xC); /* 0x36147BBF: mov edx, dword ptr [ebx + 0xc] */ 4204 eax = MEM32(edx + 0x8); /* 0x36147BC2: mov eax, dword ptr [edx + 8] */ 4205 ecx = MEM32(ebp + (-0x14)); /* 0x36147BC5: mov ecx, dword ptr [ebp - 0x14] */ 4206 edx = MEM32(ebx + 0x14); /* 0x36147BC8: mov edx, dword ptr [ebx + 0x14] */ 4207 edi = ecx + eax + 0x1; /* 0x36147BCB: lea edi, [ecx + eax + 1] */ 4208 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4209 ecx = ecx | 0xFFFFFFFFu; /* 0x36147BCF: or ecx, 0xffffffff */ 4210 _cf = 0; 4211 _flag_k = FK_TEST; 4212 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4213 eax = 0; /* 0x36147BD2: xor eax, eax */ 4214 _cf = 0; 4215 _flag_k = FK_TEST; 4216 MEM32(ebp + (-0x14)) = edi; /* 0x36147BD4: mov dword ptr [ebp - 0x14], edi */ 4217 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; } /* 0x36147BD7: repne scasb al, byte ptr es:[edi] */ 4218 ecx = ~ecx; /* 0x36147BD9: not ecx */ 4219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4220 ecx = ecx - 1; /* 0x36147BDB: dec ecx */ 4221 _flag_k = FK_DEC; 4222 edi = ecx; /* 0x36147BDC: mov edi, ecx */ 4223 PUSH32(esp, 1); /* 0x36147BDE: push 1 */ 4224 PUSH32(esp, edi); /* 0x36147BE0: push edi */ 4225 ecx = edx; /* 0x36147BE1: mov ecx, edx */ 4226 MEM32(ebp + (-0x2C)) = edx; /* 0x36147BE3: mov dword ptr [ebp - 0x2c], edx */ 4227 MEM32(ebp + (-0x38)) = edi; /* 0x36147BE6: mov dword ptr [ebp - 0x38], edi */ 4228 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36147BE9: call dword ptr [0x3616f00c] */ 4229 RECOMP_FLAGS_IN(); 4230 /* test LO8(eax), LO8(eax) */ /* 0x36147BEF: test al, al */ 4231 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4232 _cf = 0; 4233 _flag_k = FK_NARROW(FK_TEST, 24); 4234 if (TEST_Z(_flag_a, _flag_b)) goto L_36147C1E; /* 0x36147BF1: je 0x36147c1e */ 4235 L_36147BF3: 4236 edx = MEM32(ebp + (-0x2C)); /* 0x36147BF3: mov edx, dword ptr [ebp - 0x2c] */ 4237 eax = MEM32(edx + 0x4); /* 0x36147BF6: mov eax, dword ptr [edx + 4] */ 4238 esi = MEM32(ebp + (-0x14)); /* 0x36147BF9: mov esi, dword ptr [ebp - 0x14] */ 4239 ecx = edi; /* 0x36147BFC: mov ecx, edi */ 4240 edi = eax; /* 0x36147BFE: mov edi, eax */ 4241 eax = ecx; /* 0x36147C00: mov eax, ecx */ 4242 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36147C02: shr ecx, 2 */ 4243 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4244 ecx = ecx >> 2u; /* 0x36147C02: shr ecx, 2 */ 4245 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36147C05: 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; } 4246 ecx = eax; /* 0x36147C07: mov ecx, eax */ 4247 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4248 ecx = ecx & 3; /* 0x36147C09: and ecx, 3 */ 4249 _cf = 0; 4250 _flag_k = FK_TEST; 4251 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36147C0C: 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; } 4252 esi = MEM32(ebp + 0x8); /* 0x36147C0E: mov esi, dword ptr [ebp + 8] */ 4253 ecx = edx; /* 0x36147C11: mov ecx, edx */ 4254 edx = MEM32(ecx + 0x4); /* 0x36147C13: mov edx, dword ptr [ecx + 4] */ 4255 MEM32(ecx + 0x8) = eax; /* 0x36147C16: mov dword ptr [ecx + 8], eax */ 4256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4258 eax = eax + edx; /* 0x36147C19: add eax, edx */ 4259 _flag_k = FK_ADD; 4260 MEM8(eax) = (uint8_t)(0); /* 0x36147C1B: mov byte ptr [eax], 0 */ 4261 L_36147C1E: 4262 ecx = MEM32(ebp + (-0x20)); /* 0x36147C1E: mov ecx, dword ptr [ebp - 0x20] */ 4263 PUSH32(esp, ecx); /* 0x36147C21: push ecx */ 4264 RECOMP_ICALL(0x3615FCC4u); /* 0x36147C22: call 0x3615fcc4 */ /* not lifted */ 4265 RECOMP_FLAGS_IN(); 4266 edx = MEM32(ebx + 0x20); /* 0x36147C27: mov edx, dword ptr [ebx + 0x20] */ 4267 PUSH32(esp, edx); /* 0x36147C2A: push edx */ 4268 PUSH32(esp, esi); /* 0x36147C2B: push esi */ 4269 RECOMP_ICALL(0x360090C0u); /* 0x36147C2C: call 0x360090c0 */ /* not lifted */ 4270 RECOMP_FLAGS_IN(); 4271 edi = MEM32(0x3616FAE0); /* 0x36147C31: mov edi, dword ptr [0x3616fae0] */ 4272 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4274 esp = esp + 0xCu; /* 0x36147C37: add esp, 0xc */ 4275 _flag_k = FK_ADD; 4276 eax = ebp + (-0x3C); /* 0x36147C3A: lea eax, [ebp - 0x3c] */ 4277 PUSH32(esp, eax); /* 0x36147C3D: push eax */ 4278 ecx = esi; /* 0x36147C3E: mov ecx, esi */ 4279 RECOMP_ICALL(edi); /* 0x36147C40: call edi */ 4280 RECOMP_FLAGS_IN(); 4281 ecx = ebp + (-0x24); /* 0x36147C42: lea ecx, [ebp - 0x24] */ 4282 PUSH32(esp, ecx); /* 0x36147C45: push ecx */ 4283 ecx = eax; /* 0x36147C46: mov ecx, eax */ 4284 RECOMP_ICALL(edi); /* 0x36147C48: call edi */ 4285 RECOMP_FLAGS_IN(); 4286 edx = MEM32(ebp + (-0x3C)); /* 0x36147C4A: mov edx, dword ptr [ebp - 0x3c] */ 4287 /* cmp LO8(edx), 0x64u */ /* 0x36147C4D: cmp dl, 0x64 */ 4288 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0x64u) << 24; 4289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4290 _flag_k = FK_NARROW(FK_CMP, 24); 4291 eax = MEM32(ebp + (-0x24)); /* 0x36147C50: mov eax, dword ptr [ebp - 0x24] */ 4292 if (CMP_A(_flag_a, _flag_b)) goto L_3614804B; /* 0x36147C53: ja 0x3614804b */ 4293 L_36147C59: 4294 /* cmp LO8(eax), 0x64u */ /* 0x36147C59: cmp al, 0x64 */ 4295 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x64u) << 24; 4296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4297 _flag_k = FK_NARROW(FK_CMP, 24); 4298 if (CMP_A(_flag_a, _flag_b)) goto L_3614804B; /* 0x36147C5B: ja 0x3614804b */ 4299 L_36147C61: 4300 ecx = edx; /* 0x36147C61: mov ecx, edx */ 4301 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 4302 eax = eax & 0xFFu; /* 0x36147C63: and eax, 0xff */ 4303 _cf = 0; 4304 _flag_k = FK_TEST; 4305 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 4306 ecx = ecx & 0xFFu; /* 0x36147C68: and ecx, 0xff */ 4307 _cf = 0; 4308 _flag_k = FK_TEST; 4309 edi = ecx + eax; /* 0x36147C6E: lea edi, [ecx + eax] */ 4310 /* cmp edi, 0x64u */ /* 0x36147C71: cmp edi, 0x64 */ 4311 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x64u); 4312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4313 _flag_k = FK_CMP; 4314 if (CMP_G(_flag_a, _flag_b)) goto L_36148048; /* 0x36147C74: jg 0x36148048 */ 4315 L_36147C7A: 4316 edi = MEM32(0x3616FAC8); /* 0x36147C7A: mov edi, dword ptr [0x3616fac8] */ 4317 edx = ebp + (-0x40); /* 0x36147C80: lea edx, [ebp - 0x40] */ 4318 MEM32(ebx + 0x24) = ecx; /* 0x36147C83: mov dword ptr [ebx + 0x24], ecx */ 4319 PUSH32(esp, edx); /* 0x36147C86: push edx */ 4320 ecx = esi; /* 0x36147C87: mov ecx, esi */ 4321 MEM32(ebx + 0x28) = eax; /* 0x36147C89: mov dword ptr [ebx + 0x28], eax */ 4322 RECOMP_ICALL(edi); /* 0x36147C8C: call edi */ 4323 RECOMP_FLAGS_IN(); 4324 ecx = ebp + (-0x30); /* 0x36147C8E: lea ecx, [ebp - 0x30] */ 4325 PUSH32(esp, ecx); /* 0x36147C91: push ecx */ 4326 ecx = eax; /* 0x36147C92: mov ecx, eax */ 4327 RECOMP_ICALL(edi); /* 0x36147C94: call edi */ 4328 RECOMP_FLAGS_IN(); 4329 eax = MEM32(ebp + (-0x40)); /* 0x36147C96: mov eax, dword ptr [ebp - 0x40] */ 4330 /* test LO16(eax), LO16(eax) */ /* 0x36147C99: test ax, ax */ 4331 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 4332 _cf = 0; 4333 _flag_k = FK_NARROW(FK_TEST, 16); 4334 if (TEST_Z(_flag_a, _flag_b)) goto L_36148009; /* 0x36147C9C: jbe 0x36148009 */ 4335 L_36147CA2: 4336 /* cmp LO16(eax), 0x200u */ /* 0x36147CA2: cmp ax, 0x200 */ 4337 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x200u) << 16; 4338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4339 _flag_k = FK_NARROW(FK_CMP, 16); 4340 if (CMP_AE(_flag_a, _flag_b)) goto L_36148009; /* 0x36147CA6: jae 0x36148009 */ 4341 L_36147CAC: 4342 ecx = MEM32(ebp + (-0x30)); /* 0x36147CAC: mov ecx, dword ptr [ebp - 0x30] */ 4343 /* test LO16(ecx), LO16(ecx) */ /* 0x36147CAF: test cx, cx */ 4344 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 4345 _cf = 0; 4346 _flag_k = FK_NARROW(FK_TEST, 16); 4347 if (TEST_Z(_flag_a, _flag_b)) goto L_3614800C; /* 0x36147CB2: jbe 0x3614800c */ 4348 L_36147CB8: 4349 /* cmp LO16(ecx), 0x200u */ /* 0x36147CB8: cmp cx, 0x200 */ 4350 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(0x200u) << 16; 4351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4352 _flag_k = FK_NARROW(FK_CMP, 16); 4353 if (CMP_AE(_flag_a, _flag_b)) goto L_3614800C; /* 0x36147CBD: jae 0x3614800c */ 4354 L_36147CC3: 4355 /* cmp LO16(eax), LO16(ecx) */ /* 0x36147CC3: cmp ax, cx */ 4356 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 4357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4358 _flag_k = FK_NARROW(FK_CMP, 16); 4359 if (CMP_A(_flag_a, _flag_b)) goto L_3614800C; /* 0x36147CC6: ja 0x3614800c */ 4360 L_36147CCC: 4361 edi = MEM32(0x3616FA8C); /* 0x36147CCC: mov edi, dword ptr [0x3616fa8c] */ 4362 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 4363 ecx = ecx & 0xFFFFu; /* 0x36147CD2: and ecx, 0xffff */ 4364 _cf = 0; 4365 _flag_k = FK_TEST; 4366 edx = ebx + 0x2C; /* 0x36147CD8: lea edx, [ebx + 0x2c] */ 4367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 4368 eax = eax & 0xFFFFu; /* 0x36147CDB: and eax, 0xffff */ 4369 _cf = 0; 4370 _flag_k = FK_TEST; 4371 MEM32(ebx + 0x1C) = ecx; /* 0x36147CE0: mov dword ptr [ebx + 0x1c], ecx */ 4372 PUSH32(esp, edx); /* 0x36147CE3: push edx */ 4373 ecx = esi; /* 0x36147CE4: mov ecx, esi */ 4374 MEM32(ebx + 0x18) = eax; /* 0x36147CE6: mov dword ptr [ebx + 0x18], eax */ 4375 RECOMP_ICALL(edi); /* 0x36147CE9: call edi */ 4376 RECOMP_FLAGS_IN(); 4377 ecx = ebx + 0x30; /* 0x36147CEB: lea ecx, [ebx + 0x30] */ 4378 PUSH32(esp, ecx); /* 0x36147CEE: push ecx */ 4379 ecx = eax; /* 0x36147CEF: mov ecx, eax */ 4380 RECOMP_ICALL(edi); /* 0x36147CF1: call edi */ 4381 RECOMP_FLAGS_IN(); 4382 edx = ebx + 0x34; /* 0x36147CF3: lea edx, [ebx + 0x34] */ 4383 PUSH32(esp, edx); /* 0x36147CF6: push edx */ 4384 ecx = eax; /* 0x36147CF7: mov ecx, eax */ 4385 RECOMP_ICALL(edi); /* 0x36147CF9: call edi */ 4386 RECOMP_FLAGS_IN(); 4387 ecx = ebx + 0x38; /* 0x36147CFB: lea ecx, [ebx + 0x38] */ 4388 PUSH32(esp, ecx); /* 0x36147CFE: push ecx */ 4389 ecx = eax; /* 0x36147CFF: mov ecx, eax */ 4390 RECOMP_ICALL(edi); /* 0x36147D01: call edi */ 4391 RECOMP_FLAGS_IN(); 4392 edx = ebx + 0x3C; /* 0x36147D03: lea edx, [ebx + 0x3c] */ 4393 PUSH32(esp, edx); /* 0x36147D06: push edx */ 4394 ecx = eax; /* 0x36147D07: mov ecx, eax */ 4395 RECOMP_ICALL(edi); /* 0x36147D09: call edi */ 4396 RECOMP_FLAGS_IN(); 4397 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4398 eax = eax | 0xFFFFFFFFu; /* 0x36147D0B: or eax, 0xffffffff */ 4399 _cf = 0; 4400 _flag_k = FK_TEST; 4401 MEM32(ebp + (-0x1C)) = eax; /* 0x36147D0E: mov dword ptr [ebp - 0x1c], eax */ 4402 MEM32(ebp + (-0x18)) = eax; /* 0x36147D11: mov dword ptr [ebp - 0x18], eax */ 4403 eax = ebp + (-0x1C); /* 0x36147D14: lea eax, [ebp - 0x1c] */ 4404 PUSH32(esp, eax); /* 0x36147D17: push eax */ 4405 ecx = esi; /* 0x36147D18: mov ecx, esi */ 4406 RECOMP_ICALL(edi); /* 0x36147D1A: call edi */ 4407 RECOMP_FLAGS_IN(); 4408 ecx = ebp + (-0x18); /* 0x36147D1C: lea ecx, [ebp - 0x18] */ 4409 PUSH32(esp, ecx); /* 0x36147D1F: push ecx */ 4410 ecx = eax; /* 0x36147D20: mov ecx, eax */ 4411 RECOMP_ICALL(edi); /* 0x36147D22: call edi */ 4412 RECOMP_FLAGS_IN(); 4413 ecx = MEM32(ebp + (-0x18)); /* 0x36147D24: mov ecx, dword ptr [ebp - 0x18] */ 4414 eax = MEM32(ebp + (-0x1C)); /* 0x36147D27: mov eax, dword ptr [ebp - 0x1c] */ 4415 edx = ecx; /* 0x36147D2A: mov edx, ecx */ 4416 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4417 edx = edx & eax; /* 0x36147D2C: and edx, eax */ 4418 _cf = 0; 4419 _flag_k = FK_TEST; 4420 /* cmp edx, eax */ /* 0x36147D2E: cmp edx, eax */ 4421 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4423 _flag_k = FK_CMP; 4424 if (CMP_EQ(_flag_a, _flag_b)) goto L_36147D6E; /* 0x36147D30: je 0x36147d6e */ 4425 L_36147D32: 4426 ebx = MEM32(ebx + 0x8); /* 0x36147D32: mov ebx, dword ptr [ebx + 8] */ 4427 edx = MEM32(ebx + 0x4); /* 0x36147D35: mov edx, dword ptr [ebx + 4] */ 4428 /* test edx, edx */ /* 0x36147D38: test edx, edx */ 4429 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4430 _cf = 0; 4431 _flag_k = FK_TEST; 4432 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147D42; /* 0x36147D3A: jne 0x36147d42 */ 4433 L_36147D3C: 4434 edx = MEM32(0x3616F10C); /* 0x36147D3C: mov edx, dword ptr [0x3616f10c] */ 4435 L_36147D42: 4436 PUSH32(esp, ecx); /* 0x36147D42: push ecx */ 4437 PUSH32(esp, eax); /* 0x36147D43: push eax */ 4438 PUSH32(esp, edx); /* 0x36147D44: push edx */ 4439 PUSH32(esp, 0x362E726Cu); /* 0x36147D45: push 0x362e726c */ 4440 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147D4A: call dword ptr [0x3616f18c] */ 4441 RECOMP_FLAGS_IN(); 4442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4443 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4444 esp = esp + 0x10u; /* 0x36147D50: add esp, 0x10 */ 4445 _flag_k = FK_ADD; 4446 PUSH32(esp, 0x362E723Cu); /* 0x36147D53: push 0x362e723c */ 4447 ecx = ebp + (-0x5C); /* 0x36147D58: lea ecx, [ebp - 0x5c] */ 4448 RECOMP_ICALL(0x36008EF0u); /* 0x36147D5B: call 0x36008ef0 */ /* not lifted */ 4449 RECOMP_FLAGS_IN(); 4450 PUSH32(esp, 0x36184170u); /* 0x36147D60: push 0x36184170 */ 4451 eax = ebp + (-0x5C); /* 0x36147D65: lea eax, [ebp - 0x5c] */ 4452 PUSH32(esp, eax); /* 0x36147D68: push eax */ 4453 RECOMP_ICALL(0x3615FD70u); /* 0x36147D69: call 0x3615fd70 */ /* not lifted */ 4454 RECOMP_FLAGS_IN(); 4455 L_36147D6E: 4456 edx = ebx + 0x5B; /* 0x36147D6E: lea edx, [ebx + 0x5b] */ 4457 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4458 edi = 0; /* 0x36147D71: xor edi, edi */ 4459 _cf = 0; 4460 _flag_k = FK_TEST; 4461 L_36147D73: 4462 ecx = edi; /* 0x36147D73: mov ecx, edi */ 4463 eax = 1; /* 0x36147D75: mov eax, 1 */ 4464 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((eax) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x36147D7A: shl eax, cl */ 4465 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((eax << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4466 eax = eax << ((LO8(ecx)) & 31); /* 0x36147D7A: shl eax, cl */ 4467 ecx = MEM32(ebp + (-0x1C)); /* 0x36147D7C: mov ecx, dword ptr [ebp - 0x1c] */ 4468 /* test ecx, eax */ /* 0x36147D7F: test ecx, eax */ 4469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4470 _cf = 0; 4471 _flag_k = FK_TEST; 4472 ecx = MEM32(ebp + (-0x18)); /* 0x36147D81: mov ecx, dword ptr [ebp - 0x18] */ 4473 MEM8(ebp + 0xB) = (uint8_t)((TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36147D84: setne byte ptr [ebp + 0xb] */ 4474 /* test ecx, eax */ /* 0x36147D88: test ecx, eax */ 4475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4476 _cf = 0; 4477 _flag_k = FK_TEST; 4478 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36147D8A: mov cl, byte ptr [ebp + 0xb] */ 4479 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36147D8D: setne al */ 4480 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4481 edi = edi + 1; /* 0x36147D90: inc edi */ 4482 _flag_k = FK_INC; 4483 MEM8(edx + (-0x1A)) = (uint8_t)(LO8(ecx)); /* 0x36147D91: mov byte ptr [edx - 0x1a], cl */ 4484 MEM8(edx) = (uint8_t)(LO8(eax)); /* 0x36147D94: mov byte ptr [edx], al */ 4485 eax = edi + 0x1; /* 0x36147D96: lea eax, [edi + 1] */ 4486 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4487 edx = edx + 1; /* 0x36147D99: inc edx */ 4488 _flag_k = FK_INC; 4489 /* cmp eax, 0x1Au */ /* 0x36147D9A: cmp eax, 0x1a */ 4490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Au); 4491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4492 _flag_k = FK_CMP; 4493 RECOMP_BACKEDGE(); 4494 if (CMP_L(_flag_a, _flag_b)) goto L_36147D73; /* 0x36147D9D: jl 0x36147d73 */ 4495 L_36147D9F: 4496 ecx = MEM32(ebp + (-0x18)); /* 0x36147D9F: mov ecx, dword ptr [ebp - 0x18] */ 4497 edi = ebx + 0x78; /* 0x36147DA2: lea edi, [ebx + 0x78] */ 4498 edx = edi + 0x8; /* 0x36147DA5: lea edx, [edi + 8] */ 4499 PUSH32(esp, edx); /* 0x36147DA8: push edx */ 4500 eax = edi + 0x4; /* 0x36147DA9: lea eax, [edi + 4] */ 4501 PUSH32(esp, eax); /* 0x36147DAC: push eax */ 4502 MEM32(ebx + 0x74) = ecx; /* 0x36147DAD: mov dword ptr [ebx + 0x74], ecx */ 4503 PUSH32(esp, edi); /* 0x36147DB0: push edi */ 4504 ecx = esi; /* 0x36147DB1: mov ecx, esi */ 4505 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x36147DB3: call dword ptr [0x3616fad0] */ 4506 RECOMP_FLAGS_IN(); 4507 ecx = eax; /* 0x36147DB9: mov ecx, eax */ 4508 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x36147DBB: call dword ptr [0x3616fad0] */ 4509 RECOMP_FLAGS_IN(); 4510 ecx = eax; /* 0x36147DC1: mov ecx, eax */ 4511 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x36147DC3: call dword ptr [0x3616fad0] */ 4512 RECOMP_FLAGS_IN(); 4513 fp_push(*(float*)&MEM32(edi)); /* 0x36147DC9: fld dword ptr [edi] */ 4514 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36147DCB: fcomp dword ptr [0x3617040c] */ 4515 fp_pop(); 4516 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36147DD1: fnstsw ax */ 4517 /* test HI8(eax), 0x41u */ /* 0x36147DD3: test ah, 0x41 */ 4518 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4519 _cf = 0; 4520 _flag_k = FK_NARROW(FK_TEST, 24); 4521 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147FC2; /* 0x36147DD6: jne 0x36147fc2 */ 4522 L_36147DDC: 4523 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147DDC: fld dword ptr [ebx + 0x7c] */ 4524 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36147DDF: fcomp dword ptr [0x3617040c] */ 4525 fp_pop(); 4526 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36147DE5: fnstsw ax */ 4527 /* test HI8(eax), 1 */ /* 0x36147DE7: test ah, 1 */ 4528 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4529 _cf = 0; 4530 _flag_k = FK_NARROW(FK_TEST, 24); 4531 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147FC2; /* 0x36147DEA: jne 0x36147fc2 */ 4532 L_36147DF0: 4533 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147DF0: fld dword ptr [ebx + 0x80] */ 4534 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36147DF6: fcomp dword ptr [0x3617040c] */ 4535 fp_pop(); 4536 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36147DFC: fnstsw ax */ 4537 /* test HI8(eax), 0x41u */ /* 0x36147DFE: test ah, 0x41 */ 4538 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4539 _cf = 0; 4540 _flag_k = FK_NARROW(FK_TEST, 24); 4541 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147FC2; /* 0x36147E01: jne 0x36147fc2 */ 4542 L_36147E07: 4543 ecx = MEM32(ebp + (-0x1C)); /* 0x36147E07: mov ecx, dword ptr [ebp - 0x1c] */ 4544 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4545 edi = 0; /* 0x36147E0A: xor edi, edi */ 4546 _cf = 0; 4547 _flag_k = FK_TEST; 4548 MEM32(ebp + (-0x44)) = ecx; /* 0x36147E0C: mov dword ptr [ebp - 0x44], ecx */ 4549 MEM32(ebp + (-0x20)) = edi; /* 0x36147E0F: mov dword ptr [ebp - 0x20], edi */ 4550 L_36147E12: 4551 /* cmp MEM32(ebp + (-0x20)), 2 */ /* 0x36147E12: cmp dword ptr [ebp - 0x20], 2 */ 4552 _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(2); 4553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4554 _flag_k = FK_CMP; 4555 if (CMP_GE(_flag_a, _flag_b)) goto L_36147EA6; /* 0x36147E16: jge 0x36147ea6 */ 4556 L_36147E1C: 4557 edx = ebp + (-0x38); /* 0x36147E1C: lea edx, [ebp - 0x38] */ 4558 PUSH32(esp, edx); /* 0x36147E1F: push edx */ 4559 ecx = esi; /* 0x36147E20: mov ecx, esi */ 4560 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36147E22: call dword ptr [0x3616fae0] */ 4561 RECOMP_FLAGS_IN(); 4562 MEM32(ebp + 0x8) = edi; /* 0x36147E28: mov dword ptr [ebp + 8], edi */ 4563 L_36147E2B: 4564 eax = MEM32(ebp + (-0x38)); /* 0x36147E2B: mov eax, dword ptr [ebp - 0x38] */ 4565 ecx = MEM32(ebp + 0x8); /* 0x36147E2E: mov ecx, dword ptr [ebp + 8] */ 4566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 4567 eax = eax & 0xFFu; /* 0x36147E31: and eax, 0xff */ 4568 _cf = 0; 4569 _flag_k = FK_TEST; 4570 /* cmp ecx, eax */ /* 0x36147E36: cmp ecx, eax */ 4571 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4573 _flag_k = FK_CMP; 4574 if (CMP_AE(_flag_a, _flag_b)) goto L_36147E9E; /* 0x36147E38: jae 0x36147e9e */ 4575 L_36147E3A: 4576 PUSH32(esp, esi); /* 0x36147E3A: push esi */ 4577 ecx = ebp + (-0x44); /* 0x36147E3B: lea ecx, [ebp - 0x44] */ 4578 MEM32(ebp + (-0x4)) = edi; /* 0x36147E3E: mov dword ptr [ebp - 4], edi */ 4579 RECOMP_ICALL(0x360F69D0u); /* 0x36147E41: call 0x360f69d0 */ /* not lifted */ 4580 RECOMP_FLAGS_IN(); 4581 ecx = ebp + (-0x2C); /* 0x36147E46: lea ecx, [ebp - 0x2c] */ 4582 PUSH32(esp, ecx); /* 0x36147E49: push ecx */ 4583 ecx = esi; /* 0x36147E4A: mov ecx, esi */ 4584 edi = eax; /* 0x36147E4C: mov edi, eax */ 4585 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36147E4E: mov dword ptr [ebp - 4], 0xffffffff */ 4586 RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x36147E55: call dword ptr [0x3616fac8] */ 4587 RECOMP_FLAGS_IN(); 4588 edx = MEM32(ebp + (-0x2C)); /* 0x36147E5B: mov edx, dword ptr [ebp - 0x2c] */ 4589 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 4590 edx = edx & 0xFFFFu; /* 0x36147E5E: and edx, 0xffff */ 4591 _cf = 0; 4592 _flag_k = FK_TEST; 4593 PUSH32(esp, edx); /* 0x36147E64: push edx */ 4594 PUSH32(esp, edi); /* 0x36147E65: push edi */ 4595 ecx = ebx; /* 0x36147E66: mov ecx, ebx */ 4596 RECOMP_ICALL(0x36147880u); /* 0x36147E68: call 0x36147880 */ /* not lifted */ 4597 RECOMP_FLAGS_IN(); 4598 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1); 4599 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + 1; /* 0x36147E6D: inc dword ptr [ebp + 8] */ 4600 _flag_k = FK_INC; 4601 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4602 edi = 0; /* 0x36147E70: xor edi, edi */ 4603 _cf = 0; 4604 _flag_k = FK_TEST; 4605 RECOMP_BACKEDGE(); 4606 goto L_36147E2B; /* 0x36147E72: jmp 0x36147e2b */ 4607 L_36147E9E: 4608 _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(1); 4609 MEM32(ebp + (-0x20)) = MEM32(ebp + (-0x20)) + 1; /* 0x36147E9E: inc dword ptr [ebp - 0x20] */ 4610 _flag_k = FK_INC; 4611 RECOMP_BACKEDGE(); 4612 goto L_36147E12; /* 0x36147EA1: jmp 0x36147e12 */ 4613 L_36147EA6: 4614 ecx = MEM32(ebx + 0x8); /* 0x36147EA6: mov ecx, dword ptr [ebx + 8] */ 4615 /* cmp MEM32(ecx + 0x8), edi */ /* 0x36147EA9: cmp dword ptr [ecx + 8], edi */ 4616 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(edi); 4617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4618 _flag_k = FK_CMP; 4619 if (CMP_NE(_flag_a, _flag_b)) goto L_36147EF6; /* 0x36147EAC: jne 0x36147ef6 */ 4620 L_36147EAE: 4621 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147EAE: fld dword ptr [ebx + 0x80] */ 4622 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4624 esp = esp - 8; /* 0x36147EB4: sub esp, 8 */ 4625 _flag_k = FK_CMP; 4626 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147EB7: fstp qword ptr [esp] */ 4627 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4629 esp = esp - 8; /* 0x36147EBA: sub esp, 8 */ 4630 _flag_k = FK_CMP; 4631 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147EBD: fld dword ptr [ebx + 0x7c] */ 4632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4634 esp = esp - 8; /* 0x36147EC0: sub esp, 8 */ 4635 _flag_k = FK_CMP; 4636 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36147EC3: fstp qword ptr [esp + 8] */ 4637 fp_push(*(float*)&MEM32(ebx + 0x78)); /* 0x36147EC7: fld dword ptr [ebx + 0x78] */ 4638 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147ECA: fstp qword ptr [esp] */ 4639 PUSH32(esp, 0x362E71CCu); /* 0x36147ECD: push 0x362e71cc */ 4640 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147ED2: call dword ptr [0x3616f18c] */ 4641 RECOMP_FLAGS_IN(); 4642 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 4643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4644 esp = esp + 0x1Cu; /* 0x36147ED8: add esp, 0x1c */ 4645 _flag_k = FK_ADD; 4646 PUSH32(esp, 0x362E71A0u); /* 0x36147EDB: push 0x362e71a0 */ 4647 ecx = ebp + (-0x64); /* 0x36147EE0: lea ecx, [ebp - 0x64] */ 4648 RECOMP_ICALL(0x36008EF0u); /* 0x36147EE3: call 0x36008ef0 */ /* not lifted */ 4649 RECOMP_FLAGS_IN(); 4650 PUSH32(esp, 0x36184170u); /* 0x36147EE8: push 0x36184170 */ 4651 edx = ebp + (-0x64); /* 0x36147EED: lea edx, [ebp - 0x64] */ 4652 PUSH32(esp, edx); /* 0x36147EF0: push edx */ 4653 RECOMP_ICALL(0x3615FD70u); /* 0x36147EF1: call 0x3615fd70 */ /* not lifted */ 4654 RECOMP_FLAGS_IN(); 4655 L_36147EF6: 4656 /* cmp MEM32(ebp + (-0x18)), edi */ /* 0x36147EF6: cmp dword ptr [ebp - 0x18], edi */ 4657 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(edi); 4658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4659 _flag_k = FK_CMP; 4660 if (CMP_NE(_flag_a, _flag_b)) goto L_36147F5B; /* 0x36147EF9: jne 0x36147f5b */ 4661 L_36147EFB: 4662 PUSH32(esp, 2); /* 0x36147EFB: push 2 */ 4663 ecx = ebx; /* 0x36147EFD: mov ecx, ebx */ 4664 RECOMP_ICALL(0x361477F0u); /* 0x36147EFF: call 0x361477f0 */ /* not lifted */ 4665 RECOMP_FLAGS_IN(); 4666 /* test LO8(eax), LO8(eax) */ /* 0x36147F04: test al, al */ 4667 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4668 _cf = 0; 4669 _flag_k = FK_NARROW(FK_TEST, 24); 4670 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147F22; /* 0x36147F06: jne 0x36147f22 */ 4671 L_36147F08: 4672 PUSH32(esp, 3); /* 0x36147F08: push 3 */ 4673 ecx = ebx; /* 0x36147F0A: mov ecx, ebx */ 4674 RECOMP_ICALL(0x361477F0u); /* 0x36147F0C: call 0x361477f0 */ /* not lifted */ 4675 RECOMP_FLAGS_IN(); 4676 /* test LO8(eax), LO8(eax) */ /* 0x36147F11: test al, al */ 4677 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4678 _cf = 0; 4679 _flag_k = FK_NARROW(FK_TEST, 24); 4680 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147F22; /* 0x36147F13: jne 0x36147f22 */ 4681 L_36147F15: 4682 PUSH32(esp, 4); /* 0x36147F15: push 4 */ 4683 ecx = ebx; /* 0x36147F17: mov ecx, ebx */ 4684 RECOMP_ICALL(0x361477F0u); /* 0x36147F19: call 0x361477f0 */ /* not lifted */ 4685 RECOMP_FLAGS_IN(); 4686 /* test LO8(eax), LO8(eax) */ /* 0x36147F1E: test al, al */ 4687 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4688 _cf = 0; 4689 _flag_k = FK_NARROW(FK_TEST, 24); 4690 if (TEST_Z(_flag_a, _flag_b)) goto L_36147F5B; /* 0x36147F20: je 0x36147f5b */ 4691 L_36147F22: 4692 ebx = MEM32(ebx + 0x8); /* 0x36147F22: mov ebx, dword ptr [ebx + 8] */ 4693 eax = MEM32(ebx + 0x4); /* 0x36147F25: mov eax, dword ptr [ebx + 4] */ 4694 /* cmp eax, edi */ /* 0x36147F28: cmp eax, edi */ 4695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4697 _flag_k = FK_CMP; 4698 if (CMP_NE(_flag_a, _flag_b)) goto L_36147F31; /* 0x36147F2A: jne 0x36147f31 */ 4699 L_36147F2C: 4700 eax = MEM32(0x3616F10C); /* 0x36147F2C: mov eax, dword ptr [0x3616f10c] */ 4701 L_36147F31: 4702 PUSH32(esp, eax); /* 0x36147F31: push eax */ 4703 PUSH32(esp, 0x362E7134u); /* 0x36147F32: push 0x362e7134 */ 4704 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147F37: call dword ptr [0x3616f18c] */ 4705 RECOMP_FLAGS_IN(); 4706 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4708 esp = esp + 8; /* 0x36147F3D: add esp, 8 */ 4709 _flag_k = FK_ADD; 4710 PUSH32(esp, 0x362E70DCu); /* 0x36147F40: push 0x362e70dc */ 4711 ecx = ebp + (-0x6C); /* 0x36147F45: lea ecx, [ebp - 0x6c] */ 4712 RECOMP_ICALL(0x36008EF0u); /* 0x36147F48: call 0x36008ef0 */ /* not lifted */ 4713 RECOMP_FLAGS_IN(); 4714 PUSH32(esp, 0x36184170u); /* 0x36147F4D: push 0x36184170 */ 4715 eax = ebp + (-0x6C); /* 0x36147F52: lea eax, [ebp - 0x6c] */ 4716 PUSH32(esp, eax); /* 0x36147F55: push eax */ 4717 RECOMP_ICALL(0x3615FD70u); /* 0x36147F56: call 0x3615fd70 */ /* not lifted */ 4718 RECOMP_FLAGS_IN(); 4719 L_36147F5B: 4720 ecx = esi; /* 0x36147F5B: mov ecx, esi */ 4721 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36147F5D: call dword ptr [0x3616fadc] */ 4722 RECOMP_FLAGS_IN(); 4723 /* test eax, eax */ /* 0x36147F63: test eax, eax */ 4724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4725 _cf = 0; 4726 _flag_k = FK_TEST; 4727 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147FAF; /* 0x36147F65: jne 0x36147faf */ 4728 L_36147F67: 4729 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147F67: fld dword ptr [ebx + 0x80] */ 4730 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4732 esp = esp - 8; /* 0x36147F6D: sub esp, 8 */ 4733 _flag_k = FK_CMP; 4734 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147F70: fstp qword ptr [esp] */ 4735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4737 esp = esp - 8; /* 0x36147F73: sub esp, 8 */ 4738 _flag_k = FK_CMP; 4739 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147F76: fld dword ptr [ebx + 0x7c] */ 4740 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4742 esp = esp - 8; /* 0x36147F79: sub esp, 8 */ 4743 _flag_k = FK_CMP; 4744 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36147F7C: fstp qword ptr [esp + 8] */ 4745 fp_push(*(float*)&MEM32(ebx + 0x78)); /* 0x36147F80: fld dword ptr [ebx + 0x78] */ 4746 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147F83: fstp qword ptr [esp] */ 4747 PUSH32(esp, 0x362E7078u); /* 0x36147F86: push 0x362e7078 */ 4748 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147F8B: call dword ptr [0x3616f18c] */ 4749 RECOMP_FLAGS_IN(); 4750 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 4751 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4752 esp = esp + 0x1Cu; /* 0x36147F91: add esp, 0x1c */ 4753 _flag_k = FK_ADD; 4754 PUSH32(esp, 0x362E7050u); /* 0x36147F94: push 0x362e7050 */ 4755 ecx = ebp + (-0x74); /* 0x36147F99: lea ecx, [ebp - 0x74] */ 4756 RECOMP_ICALL(0x36008EF0u); /* 0x36147F9C: call 0x36008ef0 */ /* not lifted */ 4757 RECOMP_FLAGS_IN(); 4758 PUSH32(esp, 0x36184170u); /* 0x36147FA1: push 0x36184170 */ 4759 ecx = ebp + (-0x74); /* 0x36147FA6: lea ecx, [ebp - 0x74] */ 4760 PUSH32(esp, ecx); /* 0x36147FA9: push ecx */ 4761 RECOMP_ICALL(0x3615FD70u); /* 0x36147FAA: call 0x3615fd70 */ /* not lifted */ 4762 RECOMP_FLAGS_IN(); 4763 L_36147FAF: 4764 ecx = MEM32(ebp + (-0xC)); /* 0x36147FAF: mov ecx, dword ptr [ebp - 0xc] */ 4765 edi = POP32_VAL(esp); /* 0x36147FB2: pop edi */ 4766 eax = esi; /* 0x36147FB3: mov eax, esi */ 4767 esi = POP32_VAL(esp); /* 0x36147FB5: pop esi */ 4768 MEM32(FS_BASE + (0)) = ecx; /* 0x36147FB6: mov dword ptr fs:[0], ecx */ 4769 ebx = POP32_VAL(esp); /* 0x36147FBD: pop ebx */ 4770 esp = ebp; /* 0x36147FBE: mov esp, ebp */ 4771 ebp = POP32_VAL(esp); /* 0x36147FC0: pop ebp */ 4772 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36147FC1: ret */ 4773 L_36147FC2: 4774 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147FC2: fld dword ptr [ebx + 0x80] */ 4775 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4777 esp = esp - 8; /* 0x36147FC8: sub esp, 8 */ 4778 _flag_k = FK_CMP; 4779 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147FCB: fstp qword ptr [esp] */ 4780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4782 esp = esp - 8; /* 0x36147FCE: sub esp, 8 */ 4783 _flag_k = FK_CMP; 4784 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147FD1: fld dword ptr [ebx + 0x7c] */ 4785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4787 esp = esp - 8; /* 0x36147FD4: sub esp, 8 */ 4788 _flag_k = FK_CMP; 4789 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36147FD7: fstp qword ptr [esp + 8] */ 4790 fp_push(*(float*)&MEM32(edi)); /* 0x36147FDB: fld dword ptr [edi] */ 4791 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147FDD: fstp qword ptr [esp] */ 4792 PUSH32(esp, 0x362E7008u); /* 0x36147FE0: push 0x362e7008 */ 4793 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147FE5: call dword ptr [0x3616f18c] */ 4794 RECOMP_FLAGS_IN(); 4795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 4796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4797 esp = esp + 0x1Cu; /* 0x36147FEB: add esp, 0x1c */ 4798 _flag_k = FK_ADD; 4799 PUSH32(esp, 0x362E6FDCu); /* 0x36147FEE: push 0x362e6fdc */ 4800 ecx = ebp + (-0x7C); /* 0x36147FF3: lea ecx, [ebp - 0x7c] */ 4801 RECOMP_ICALL(0x36008EF0u); /* 0x36147FF6: call 0x36008ef0 */ /* not lifted */ 4802 RECOMP_FLAGS_IN(); 4803 PUSH32(esp, 0x36184170u); /* 0x36147FFB: push 0x36184170 */ 4804 edx = ebp + (-0x7C); /* 0x36148000: lea edx, [ebp - 0x7c] */ 4805 PUSH32(esp, edx); /* 0x36148003: push edx */ 4806 RECOMP_ICALL(0x3615FD70u); /* 0x36148004: call 0x3615fd70 */ /* not lifted */ 4807 RECOMP_FLAGS_IN(); 4808 L_36148009: 4809 ecx = MEM32(ebp + (-0x30)); /* 0x36148009: mov ecx, dword ptr [ebp - 0x30] */ 4810 L_3614800C: 4811 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 4812 ecx = ecx & 0xFFFFu; /* 0x3614800C: and ecx, 0xffff */ 4813 _cf = 0; 4814 _flag_k = FK_TEST; 4815 PUSH32(esp, ecx); /* 0x36148012: push ecx */ 4816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 4817 eax = eax & 0xFFFFu; /* 0x36148013: and eax, 0xffff */ 4818 _cf = 0; 4819 _flag_k = FK_TEST; 4820 PUSH32(esp, eax); /* 0x36148018: push eax */ 4821 PUSH32(esp, 0x362E6F84u); /* 0x36148019: push 0x362e6f84 */ 4822 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614801E: call dword ptr [0x3616f18c] */ 4823 RECOMP_FLAGS_IN(); 4824 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4825 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4826 esp = esp + 0xCu; /* 0x36148024: add esp, 0xc */ 4827 _flag_k = FK_ADD; 4828 PUSH32(esp, 0x362E6F54u); /* 0x36148027: push 0x362e6f54 */ 4829 ecx = ebp + (-0x84); /* 0x3614802C: lea ecx, [ebp - 0x84] */ 4830 RECOMP_ICALL(0x36008EF0u); /* 0x36148032: call 0x36008ef0 */ /* not lifted */ 4831 RECOMP_FLAGS_IN(); 4832 PUSH32(esp, 0x36184170u); /* 0x36148037: push 0x36184170 */ 4833 eax = ebp + (-0x84); /* 0x3614803C: lea eax, [ebp - 0x84] */ 4834 PUSH32(esp, eax); /* 0x36148042: push eax */ 4835 RECOMP_ICALL(0x3615FD70u); /* 0x36148043: call 0x3615fd70 */ /* not lifted */ 4836 RECOMP_FLAGS_IN(); 4837 L_36148048: 4838 eax = MEM32(ebp + (-0x24)); /* 0x36148048: mov eax, dword ptr [ebp - 0x24] */ 4839 L_3614804B: 4840 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 4841 eax = eax & 0xFFu; /* 0x3614804B: and eax, 0xff */ 4842 _cf = 0; 4843 _flag_k = FK_TEST; 4844 PUSH32(esp, eax); /* 0x36148050: push eax */ 4845 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 4846 edx = edx & 0xFFu; /* 0x36148051: and edx, 0xff */ 4847 _cf = 0; 4848 _flag_k = FK_TEST; 4849 PUSH32(esp, edx); /* 0x36148057: push edx */ 4850 PUSH32(esp, 0x362E6F00u); /* 0x36148058: push 0x362e6f00 */ 4851 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614805D: call dword ptr [0x3616f18c] */ 4852 RECOMP_FLAGS_IN(); 4853 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4854 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4855 esp = esp + 0xCu; /* 0x36148063: add esp, 0xc */ 4856 _flag_k = FK_ADD; 4857 PUSH32(esp, 0x362E6ED4u); /* 0x36148066: push 0x362e6ed4 */ 4858 ecx = ebp + (-0x8C); /* 0x3614806B: lea ecx, [ebp - 0x8c] */ 4859 RECOMP_ICALL(0x36008EF0u); /* 0x36148071: call 0x36008ef0 */ /* not lifted */ 4860 RECOMP_FLAGS_IN(); 4861 PUSH32(esp, 0x36184170u); /* 0x36148076: push 0x36184170 */ 4862 ecx = ebp + (-0x8C); /* 0x3614807B: lea ecx, [ebp - 0x8c] */ 4863 PUSH32(esp, ecx); /* 0x36148081: push ecx */ 4864 RECOMP_ICALL(0x3615FD70u); /* 0x36148082: call 0x3615fd70 */ /* not lifted */ 4865 RECOMP_FLAGS_IN(); 4866 /* nop */ /* 0x36148087: nop */ 4867 /* nop */ /* 0x36148088: nop */ 4868 /* nop */ /* 0x36148089: nop */ 4869 /* nop */ /* 0x3614808A: nop */ 4870 /* nop */ /* 0x3614808B: nop */ 4871 /* nop */ /* 0x3614808C: nop */ 4872 /* nop */ /* 0x3614808D: nop */ 4873 /* nop */ /* 0x3614808E: nop */ 4874 /* nop */ /* 0x3614808F: nop */ 4875 PUSH32(esp, ebp); /* 0x36148090: push ebp */ 4876 ebp = esp; /* 0x36148091: mov ebp, esp */ 4877 PUSH32(esp, ebx); /* 0x36148093: push ebx */ 4878 ebx = MEM32(ebp + 0x10); /* 0x36148094: mov ebx, dword ptr [ebp + 0x10] */ 4879 PUSH32(esp, esi); /* 0x36148097: push esi */ 4880 esi = ecx; /* 0x36148098: mov esi, ecx */ 4881 eax = MEM32(esi + 0x10); /* 0x3614809A: mov eax, dword ptr [esi + 0x10] */ 4882 /* test eax, eax */ /* 0x3614809D: test eax, eax */ 4883 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4884 _cf = 0; 4885 _flag_k = FK_TEST; 4886 ecx = MEM32(ebp + 0xC); /* 0x3614809F: mov ecx, dword ptr [ebp + 0xc] */ 4887 PUSH32(esp, edi); /* 0x361480A2: push edi */ 4888 if (TEST_Z(_flag_a, _flag_b)) goto L_36148105; /* 0x361480A3: je 0x36148105 */ 4889 L_361480A5: 4890 eax = MEM32(esi + 0x4); /* 0x361480A5: mov eax, dword ptr [esi + 4] */ 4891 /* cmp ecx, MEM32(eax) */ /* 0x361480A8: cmp ecx, dword ptr [eax] */ 4892 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 4893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4894 _flag_k = FK_CMP; 4895 if (CMP_NE(_flag_a, _flag_b)) goto L_36148105; /* 0x361480AA: jne 0x36148105 */ 4896 L_361480AC: 4897 /* cmp ebx, eax */ /* 0x361480AC: cmp ebx, eax */ 4898 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4900 _flag_k = FK_CMP; 4901 if (CMP_NE(_flag_a, _flag_b)) goto L_36148105; /* 0x361480AE: jne 0x36148105 */ 4902 L_361480B0: 4903 ebx = MEM32(eax + 0x4); /* 0x361480B0: mov ebx, dword ptr [eax + 4] */ 4904 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x361480B3: cmp ebx, dword ptr [esi + 8] */ 4905 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4907 _flag_k = FK_CMP; 4908 edi = ebx; /* 0x361480B6: mov edi, ebx */ 4909 if (CMP_EQ(_flag_a, _flag_b)) goto L_361480D9; /* 0x361480B8: je 0x361480d9 */ 4910 L_361480BA: 4911 eax = MEM32(edi + 0x8); /* 0x361480BA: mov eax, dword ptr [edi + 8] */ 4912 PUSH32(esp, eax); /* 0x361480BD: push eax */ 4913 ecx = esi; /* 0x361480BE: mov ecx, esi */ 4914 RECOMP_ICALL(0x36148440u); /* 0x361480C0: call 0x36148440 */ /* not lifted */ 4915 RECOMP_FLAGS_IN(); 4916 edi = MEM32(edi); /* 0x361480C5: mov edi, dword ptr [edi] */ 4917 PUSH32(esp, ebx); /* 0x361480C7: push ebx */ 4918 RECOMP_ICALL(0x3615FCC4u); /* 0x361480C8: call 0x3615fcc4 */ /* not lifted */ 4919 RECOMP_FLAGS_IN(); 4920 eax = MEM32(esi + 0x8); /* 0x361480CD: mov eax, dword ptr [esi + 8] */ 4921 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4923 esp = esp + 4; /* 0x361480D0: add esp, 4 */ 4924 _flag_k = FK_ADD; 4925 /* cmp edi, eax */ /* 0x361480D3: cmp edi, eax */ 4926 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4928 _flag_k = FK_CMP; 4929 ebx = edi; /* 0x361480D5: mov ebx, edi */ 4930 RECOMP_BACKEDGE(); 4931 if (CMP_NE(_flag_a, _flag_b)) goto L_361480BA; /* 0x361480D7: jne 0x361480ba */ 4932 L_361480D9: 4933 ecx = MEM32(esi + 0x4); /* 0x361480D9: mov ecx, dword ptr [esi + 4] */ 4934 edx = MEM32(esi + 0x8); /* 0x361480DC: mov edx, dword ptr [esi + 8] */ 4935 MEM32(ecx + 0x4) = edx; /* 0x361480DF: mov dword ptr [ecx + 4], edx */ 4936 eax = MEM32(esi + 0x4); /* 0x361480E2: mov eax, dword ptr [esi + 4] */ 4937 MEM32(esi + 0x10) = 0; /* 0x361480E5: mov dword ptr [esi + 0x10], 0 */ 4938 MEM32(eax) = eax; /* 0x361480EC: mov dword ptr [eax], eax */ 4939 eax = MEM32(esi + 0x4); /* 0x361480EE: mov eax, dword ptr [esi + 4] */ 4940 MEM32(eax + 0x8) = eax; /* 0x361480F1: mov dword ptr [eax + 8], eax */ 4941 eax = MEM32(esi + 0x4); /* 0x361480F4: mov eax, dword ptr [esi + 4] */ 4942 ecx = MEM32(eax); /* 0x361480F7: mov ecx, dword ptr [eax] */ 4943 eax = MEM32(ebp + 0x8); /* 0x361480F9: mov eax, dword ptr [ebp + 8] */ 4944 edi = POP32_VAL(esp); /* 0x361480FC: pop edi */ 4945 esi = POP32_VAL(esp); /* 0x361480FD: pop esi */ 4946 MEM32(eax) = ecx; /* 0x361480FE: mov dword ptr [eax], ecx */ 4947 ebx = POP32_VAL(esp); /* 0x36148100: pop ebx */ 4948 ebp = POP32_VAL(esp); /* 0x36148101: pop ebp */ 4949 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36148102: ret 0xc */ 4950 L_36148105: 4951 /* cmp ecx, ebx */ /* 0x36148105: cmp ecx, ebx */ 4952 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4954 _flag_k = FK_CMP; 4955 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148126; /* 0x36148107: je 0x36148126 */ 4956 L_36148109: 4957 edi = ecx; /* 0x36148109: mov edi, ecx */ 4958 ecx = ebp + 0xC; /* 0x3614810B: lea ecx, [ebp + 0xc] */ 4959 RECOMP_ICALL(0x36064140u); /* 0x3614810E: call 0x36064140 */ /* not lifted */ 4960 RECOMP_FLAGS_IN(); 4961 PUSH32(esp, edi); /* 0x36148113: push edi */ 4962 ecx = ebp + 0x10; /* 0x36148114: lea ecx, [ebp + 0x10] */ 4963 PUSH32(esp, ecx); /* 0x36148117: push ecx */ 4964 ecx = esi; /* 0x36148118: mov ecx, esi */ 4965 RECOMP_ICALL(0x360588E0u); /* 0x3614811A: call 0x360588e0 */ /* not lifted */ 4966 RECOMP_FLAGS_IN(); 4967 ecx = MEM32(ebp + 0xC); /* 0x3614811F: mov ecx, dword ptr [ebp + 0xc] */ 4968 /* cmp ecx, ebx */ /* 0x36148122: cmp ecx, ebx */ 4969 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4971 _flag_k = FK_CMP; 4972 RECOMP_BACKEDGE(); 4973 if (CMP_NE(_flag_a, _flag_b)) goto L_36148109; /* 0x36148124: jne 0x36148109 */ 4974 L_36148126: 4975 eax = MEM32(ebp + 0x8); /* 0x36148126: mov eax, dword ptr [ebp + 8] */ 4976 edi = POP32_VAL(esp); /* 0x36148129: pop edi */ 4977 esi = POP32_VAL(esp); /* 0x3614812A: pop esi */ 4978 MEM32(eax) = ecx; /* 0x3614812B: mov dword ptr [eax], ecx */ 4979 ebx = POP32_VAL(esp); /* 0x3614812D: pop ebx */ 4980 ebp = POP32_VAL(esp); /* 0x3614812E: pop ebp */ 4981 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614812F: ret 0xc */ 4982 RECOMP_REGS_OUT(); 4983 } 4984 4985 void sub_36147E12(void) { 4986 int _fpu_cmp = 0; 4987 uint32_t _cf = 0; 4988 int _df = 1; 4989 uint32_t _flag_k = FK_NONE; 4990 uint32_t _flag_a = 0, _flag_b = 0; 4991 uint32_t _itail_tgt = 0; 4992 RECOMP_REGS_LOCALS 4993 RECOMP_ENTER(0x36147E12u); 4994 4995 L_36147E12: 4996 /* cmp MEM32(ebp + (-0x20)), 2 */ /* 0x36147E12: cmp dword ptr [ebp - 0x20], 2 */ 4997 _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(2); 4998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4999 _flag_k = FK_CMP; 5000 if (CMP_GE(_flag_a, _flag_b)) goto L_36147EA6; /* 0x36147E16: jge 0x36147ea6 */ 5001 L_36147E1C: 5002 edx = ebp + (-0x38); /* 0x36147E1C: lea edx, [ebp - 0x38] */ 5003 PUSH32(esp, edx); /* 0x36147E1F: push edx */ 5004 ecx = esi; /* 0x36147E20: mov ecx, esi */ 5005 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36147E22: call dword ptr [0x3616fae0] */ 5006 RECOMP_FLAGS_IN(); 5007 MEM32(ebp + 0x8) = edi; /* 0x36147E28: mov dword ptr [ebp + 8], edi */ 5008 L_36147E2B: 5009 eax = MEM32(ebp + (-0x38)); /* 0x36147E2B: mov eax, dword ptr [ebp - 0x38] */ 5010 ecx = MEM32(ebp + 0x8); /* 0x36147E2E: mov ecx, dword ptr [ebp + 8] */ 5011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 5012 eax = eax & 0xFFu; /* 0x36147E31: and eax, 0xff */ 5013 _cf = 0; 5014 _flag_k = FK_TEST; 5015 /* cmp ecx, eax */ /* 0x36147E36: cmp ecx, eax */ 5016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5018 _flag_k = FK_CMP; 5019 if (CMP_AE(_flag_a, _flag_b)) goto L_36147E9E; /* 0x36147E38: jae 0x36147e9e */ 5020 L_36147E3A: 5021 PUSH32(esp, esi); /* 0x36147E3A: push esi */ 5022 ecx = ebp + (-0x44); /* 0x36147E3B: lea ecx, [ebp - 0x44] */ 5023 MEM32(ebp + (-0x4)) = edi; /* 0x36147E3E: mov dword ptr [ebp - 4], edi */ 5024 RECOMP_ICALL(0x360F69D0u); /* 0x36147E41: call 0x360f69d0 */ /* not lifted */ 5025 RECOMP_FLAGS_IN(); 5026 ecx = ebp + (-0x2C); /* 0x36147E46: lea ecx, [ebp - 0x2c] */ 5027 PUSH32(esp, ecx); /* 0x36147E49: push ecx */ 5028 ecx = esi; /* 0x36147E4A: mov ecx, esi */ 5029 edi = eax; /* 0x36147E4C: mov edi, eax */ 5030 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36147E4E: mov dword ptr [ebp - 4], 0xffffffff */ 5031 RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x36147E55: call dword ptr [0x3616fac8] */ 5032 RECOMP_FLAGS_IN(); 5033 edx = MEM32(ebp + (-0x2C)); /* 0x36147E5B: mov edx, dword ptr [ebp - 0x2c] */ 5034 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 5035 edx = edx & 0xFFFFu; /* 0x36147E5E: and edx, 0xffff */ 5036 _cf = 0; 5037 _flag_k = FK_TEST; 5038 PUSH32(esp, edx); /* 0x36147E64: push edx */ 5039 PUSH32(esp, edi); /* 0x36147E65: push edi */ 5040 ecx = ebx; /* 0x36147E66: mov ecx, ebx */ 5041 RECOMP_ICALL(0x36147880u); /* 0x36147E68: call 0x36147880 */ /* not lifted */ 5042 RECOMP_FLAGS_IN(); 5043 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1); 5044 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + 1; /* 0x36147E6D: inc dword ptr [ebp + 8] */ 5045 _flag_k = FK_INC; 5046 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5047 edi = 0; /* 0x36147E70: xor edi, edi */ 5048 _cf = 0; 5049 _flag_k = FK_TEST; 5050 RECOMP_BACKEDGE(); 5051 goto L_36147E2B; /* 0x36147E72: jmp 0x36147e2b */ 5052 L_36147E9E: 5053 _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(1); 5054 MEM32(ebp + (-0x20)) = MEM32(ebp + (-0x20)) + 1; /* 0x36147E9E: inc dword ptr [ebp - 0x20] */ 5055 _flag_k = FK_INC; 5056 RECOMP_BACKEDGE(); 5057 goto L_36147E12; /* 0x36147EA1: jmp 0x36147e12 */ 5058 L_36147EA6: 5059 ecx = MEM32(ebx + 0x8); /* 0x36147EA6: mov ecx, dword ptr [ebx + 8] */ 5060 /* cmp MEM32(ecx + 0x8), edi */ /* 0x36147EA9: cmp dword ptr [ecx + 8], edi */ 5061 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(edi); 5062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5063 _flag_k = FK_CMP; 5064 if (CMP_NE(_flag_a, _flag_b)) goto L_36147EF6; /* 0x36147EAC: jne 0x36147ef6 */ 5065 L_36147EAE: 5066 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147EAE: fld dword ptr [ebx + 0x80] */ 5067 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5069 esp = esp - 8; /* 0x36147EB4: sub esp, 8 */ 5070 _flag_k = FK_CMP; 5071 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147EB7: fstp qword ptr [esp] */ 5072 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5074 esp = esp - 8; /* 0x36147EBA: sub esp, 8 */ 5075 _flag_k = FK_CMP; 5076 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147EBD: fld dword ptr [ebx + 0x7c] */ 5077 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5079 esp = esp - 8; /* 0x36147EC0: sub esp, 8 */ 5080 _flag_k = FK_CMP; 5081 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36147EC3: fstp qword ptr [esp + 8] */ 5082 fp_push(*(float*)&MEM32(ebx + 0x78)); /* 0x36147EC7: fld dword ptr [ebx + 0x78] */ 5083 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147ECA: fstp qword ptr [esp] */ 5084 PUSH32(esp, 0x362E71CCu); /* 0x36147ECD: push 0x362e71cc */ 5085 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147ED2: call dword ptr [0x3616f18c] */ 5086 RECOMP_FLAGS_IN(); 5087 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5088 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5089 esp = esp + 0x1Cu; /* 0x36147ED8: add esp, 0x1c */ 5090 _flag_k = FK_ADD; 5091 PUSH32(esp, 0x362E71A0u); /* 0x36147EDB: push 0x362e71a0 */ 5092 ecx = ebp + (-0x64); /* 0x36147EE0: lea ecx, [ebp - 0x64] */ 5093 RECOMP_ICALL(0x36008EF0u); /* 0x36147EE3: call 0x36008ef0 */ /* not lifted */ 5094 RECOMP_FLAGS_IN(); 5095 PUSH32(esp, 0x36184170u); /* 0x36147EE8: push 0x36184170 */ 5096 edx = ebp + (-0x64); /* 0x36147EED: lea edx, [ebp - 0x64] */ 5097 PUSH32(esp, edx); /* 0x36147EF0: push edx */ 5098 RECOMP_ICALL(0x3615FD70u); /* 0x36147EF1: call 0x3615fd70 */ /* not lifted */ 5099 RECOMP_FLAGS_IN(); 5100 L_36147EF6: 5101 /* cmp MEM32(ebp + (-0x18)), edi */ /* 0x36147EF6: cmp dword ptr [ebp - 0x18], edi */ 5102 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(edi); 5103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5104 _flag_k = FK_CMP; 5105 if (CMP_NE(_flag_a, _flag_b)) goto L_36147F5B; /* 0x36147EF9: jne 0x36147f5b */ 5106 L_36147EFB: 5107 PUSH32(esp, 2); /* 0x36147EFB: push 2 */ 5108 ecx = ebx; /* 0x36147EFD: mov ecx, ebx */ 5109 RECOMP_ICALL(0x361477F0u); /* 0x36147EFF: call 0x361477f0 */ /* not lifted */ 5110 RECOMP_FLAGS_IN(); 5111 /* test LO8(eax), LO8(eax) */ /* 0x36147F04: test al, al */ 5112 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5113 _cf = 0; 5114 _flag_k = FK_NARROW(FK_TEST, 24); 5115 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147F22; /* 0x36147F06: jne 0x36147f22 */ 5116 L_36147F08: 5117 PUSH32(esp, 3); /* 0x36147F08: push 3 */ 5118 ecx = ebx; /* 0x36147F0A: mov ecx, ebx */ 5119 RECOMP_ICALL(0x361477F0u); /* 0x36147F0C: call 0x361477f0 */ /* not lifted */ 5120 RECOMP_FLAGS_IN(); 5121 /* test LO8(eax), LO8(eax) */ /* 0x36147F11: test al, al */ 5122 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5123 _cf = 0; 5124 _flag_k = FK_NARROW(FK_TEST, 24); 5125 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147F22; /* 0x36147F13: jne 0x36147f22 */ 5126 L_36147F15: 5127 PUSH32(esp, 4); /* 0x36147F15: push 4 */ 5128 ecx = ebx; /* 0x36147F17: mov ecx, ebx */ 5129 RECOMP_ICALL(0x361477F0u); /* 0x36147F19: call 0x361477f0 */ /* not lifted */ 5130 RECOMP_FLAGS_IN(); 5131 /* test LO8(eax), LO8(eax) */ /* 0x36147F1E: test al, al */ 5132 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5133 _cf = 0; 5134 _flag_k = FK_NARROW(FK_TEST, 24); 5135 if (TEST_Z(_flag_a, _flag_b)) goto L_36147F5B; /* 0x36147F20: je 0x36147f5b */ 5136 L_36147F22: 5137 ebx = MEM32(ebx + 0x8); /* 0x36147F22: mov ebx, dword ptr [ebx + 8] */ 5138 eax = MEM32(ebx + 0x4); /* 0x36147F25: mov eax, dword ptr [ebx + 4] */ 5139 /* cmp eax, edi */ /* 0x36147F28: cmp eax, edi */ 5140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5142 _flag_k = FK_CMP; 5143 if (CMP_NE(_flag_a, _flag_b)) goto L_36147F31; /* 0x36147F2A: jne 0x36147f31 */ 5144 L_36147F2C: 5145 eax = MEM32(0x3616F10C); /* 0x36147F2C: mov eax, dword ptr [0x3616f10c] */ 5146 L_36147F31: 5147 PUSH32(esp, eax); /* 0x36147F31: push eax */ 5148 PUSH32(esp, 0x362E7134u); /* 0x36147F32: push 0x362e7134 */ 5149 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147F37: call dword ptr [0x3616f18c] */ 5150 RECOMP_FLAGS_IN(); 5151 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5152 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5153 esp = esp + 8; /* 0x36147F3D: add esp, 8 */ 5154 _flag_k = FK_ADD; 5155 PUSH32(esp, 0x362E70DCu); /* 0x36147F40: push 0x362e70dc */ 5156 ecx = ebp + (-0x6C); /* 0x36147F45: lea ecx, [ebp - 0x6c] */ 5157 RECOMP_ICALL(0x36008EF0u); /* 0x36147F48: call 0x36008ef0 */ /* not lifted */ 5158 RECOMP_FLAGS_IN(); 5159 PUSH32(esp, 0x36184170u); /* 0x36147F4D: push 0x36184170 */ 5160 eax = ebp + (-0x6C); /* 0x36147F52: lea eax, [ebp - 0x6c] */ 5161 PUSH32(esp, eax); /* 0x36147F55: push eax */ 5162 RECOMP_ICALL(0x3615FD70u); /* 0x36147F56: call 0x3615fd70 */ /* not lifted */ 5163 RECOMP_FLAGS_IN(); 5164 L_36147F5B: 5165 ecx = esi; /* 0x36147F5B: mov ecx, esi */ 5166 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36147F5D: call dword ptr [0x3616fadc] */ 5167 RECOMP_FLAGS_IN(); 5168 /* test eax, eax */ /* 0x36147F63: test eax, eax */ 5169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5170 _cf = 0; 5171 _flag_k = FK_TEST; 5172 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147FAF; /* 0x36147F65: jne 0x36147faf */ 5173 L_36147F67: 5174 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147F67: fld dword ptr [ebx + 0x80] */ 5175 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5177 esp = esp - 8; /* 0x36147F6D: sub esp, 8 */ 5178 _flag_k = FK_CMP; 5179 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147F70: fstp qword ptr [esp] */ 5180 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5182 esp = esp - 8; /* 0x36147F73: sub esp, 8 */ 5183 _flag_k = FK_CMP; 5184 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147F76: fld dword ptr [ebx + 0x7c] */ 5185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5187 esp = esp - 8; /* 0x36147F79: sub esp, 8 */ 5188 _flag_k = FK_CMP; 5189 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36147F7C: fstp qword ptr [esp + 8] */ 5190 fp_push(*(float*)&MEM32(ebx + 0x78)); /* 0x36147F80: fld dword ptr [ebx + 0x78] */ 5191 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147F83: fstp qword ptr [esp] */ 5192 PUSH32(esp, 0x362E7078u); /* 0x36147F86: push 0x362e7078 */ 5193 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147F8B: call dword ptr [0x3616f18c] */ 5194 RECOMP_FLAGS_IN(); 5195 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5197 esp = esp + 0x1Cu; /* 0x36147F91: add esp, 0x1c */ 5198 _flag_k = FK_ADD; 5199 PUSH32(esp, 0x362E7050u); /* 0x36147F94: push 0x362e7050 */ 5200 ecx = ebp + (-0x74); /* 0x36147F99: lea ecx, [ebp - 0x74] */ 5201 RECOMP_ICALL(0x36008EF0u); /* 0x36147F9C: call 0x36008ef0 */ /* not lifted */ 5202 RECOMP_FLAGS_IN(); 5203 PUSH32(esp, 0x36184170u); /* 0x36147FA1: push 0x36184170 */ 5204 ecx = ebp + (-0x74); /* 0x36147FA6: lea ecx, [ebp - 0x74] */ 5205 PUSH32(esp, ecx); /* 0x36147FA9: push ecx */ 5206 RECOMP_ICALL(0x3615FD70u); /* 0x36147FAA: call 0x3615fd70 */ /* not lifted */ 5207 RECOMP_FLAGS_IN(); 5208 L_36147FAF: 5209 ecx = MEM32(ebp + (-0xC)); /* 0x36147FAF: mov ecx, dword ptr [ebp - 0xc] */ 5210 edi = POP32_VAL(esp); /* 0x36147FB2: pop edi */ 5211 eax = esi; /* 0x36147FB3: mov eax, esi */ 5212 esi = POP32_VAL(esp); /* 0x36147FB5: pop esi */ 5213 MEM32(FS_BASE + (0)) = ecx; /* 0x36147FB6: mov dword ptr fs:[0], ecx */ 5214 ebx = POP32_VAL(esp); /* 0x36147FBD: pop ebx */ 5215 esp = ebp; /* 0x36147FBE: mov esp, ebp */ 5216 ebp = POP32_VAL(esp); /* 0x36147FC0: pop ebp */ 5217 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36147FC1: ret */ 5218 RECOMP_REGS_OUT(); 5219 } 5220 5221 void sub_36147E2B(void) { 5222 int _fpu_cmp = 0; 5223 uint32_t _cf = 0; 5224 int _df = 1; 5225 uint32_t _flag_k = FK_NONE; 5226 uint32_t _flag_a = 0, _flag_b = 0; 5227 uint32_t _itail_tgt = 0; 5228 RECOMP_REGS_LOCALS 5229 RECOMP_ENTER(0x36147E2Bu); 5230 5231 goto L_36147E2B; 5232 L_36147E12: 5233 /* cmp MEM32(ebp + (-0x20)), 2 */ /* 0x36147E12: cmp dword ptr [ebp - 0x20], 2 */ 5234 _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(2); 5235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5236 _flag_k = FK_CMP; 5237 if (CMP_GE(_flag_a, _flag_b)) goto L_36147EA6; /* 0x36147E16: jge 0x36147ea6 */ 5238 L_36147E1C: 5239 edx = ebp + (-0x38); /* 0x36147E1C: lea edx, [ebp - 0x38] */ 5240 PUSH32(esp, edx); /* 0x36147E1F: push edx */ 5241 ecx = esi; /* 0x36147E20: mov ecx, esi */ 5242 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36147E22: call dword ptr [0x3616fae0] */ 5243 RECOMP_FLAGS_IN(); 5244 MEM32(ebp + 0x8) = edi; /* 0x36147E28: mov dword ptr [ebp + 8], edi */ 5245 L_36147E2B: 5246 eax = MEM32(ebp + (-0x38)); /* 0x36147E2B: mov eax, dword ptr [ebp - 0x38] */ 5247 ecx = MEM32(ebp + 0x8); /* 0x36147E2E: mov ecx, dword ptr [ebp + 8] */ 5248 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 5249 eax = eax & 0xFFu; /* 0x36147E31: and eax, 0xff */ 5250 _cf = 0; 5251 _flag_k = FK_TEST; 5252 /* cmp ecx, eax */ /* 0x36147E36: cmp ecx, eax */ 5253 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5255 _flag_k = FK_CMP; 5256 if (CMP_AE(_flag_a, _flag_b)) goto L_36147E9E; /* 0x36147E38: jae 0x36147e9e */ 5257 L_36147E3A: 5258 PUSH32(esp, esi); /* 0x36147E3A: push esi */ 5259 ecx = ebp + (-0x44); /* 0x36147E3B: lea ecx, [ebp - 0x44] */ 5260 MEM32(ebp + (-0x4)) = edi; /* 0x36147E3E: mov dword ptr [ebp - 4], edi */ 5261 RECOMP_ICALL(0x360F69D0u); /* 0x36147E41: call 0x360f69d0 */ /* not lifted */ 5262 RECOMP_FLAGS_IN(); 5263 ecx = ebp + (-0x2C); /* 0x36147E46: lea ecx, [ebp - 0x2c] */ 5264 PUSH32(esp, ecx); /* 0x36147E49: push ecx */ 5265 ecx = esi; /* 0x36147E4A: mov ecx, esi */ 5266 edi = eax; /* 0x36147E4C: mov edi, eax */ 5267 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36147E4E: mov dword ptr [ebp - 4], 0xffffffff */ 5268 RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x36147E55: call dword ptr [0x3616fac8] */ 5269 RECOMP_FLAGS_IN(); 5270 edx = MEM32(ebp + (-0x2C)); /* 0x36147E5B: mov edx, dword ptr [ebp - 0x2c] */ 5271 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 5272 edx = edx & 0xFFFFu; /* 0x36147E5E: and edx, 0xffff */ 5273 _cf = 0; 5274 _flag_k = FK_TEST; 5275 PUSH32(esp, edx); /* 0x36147E64: push edx */ 5276 PUSH32(esp, edi); /* 0x36147E65: push edi */ 5277 ecx = ebx; /* 0x36147E66: mov ecx, ebx */ 5278 RECOMP_ICALL(0x36147880u); /* 0x36147E68: call 0x36147880 */ /* not lifted */ 5279 RECOMP_FLAGS_IN(); 5280 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1); 5281 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + 1; /* 0x36147E6D: inc dword ptr [ebp + 8] */ 5282 _flag_k = FK_INC; 5283 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5284 edi = 0; /* 0x36147E70: xor edi, edi */ 5285 _cf = 0; 5286 _flag_k = FK_TEST; 5287 RECOMP_BACKEDGE(); 5288 goto L_36147E2B; /* 0x36147E72: jmp 0x36147e2b */ 5289 L_36147E9E: 5290 _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(1); 5291 MEM32(ebp + (-0x20)) = MEM32(ebp + (-0x20)) + 1; /* 0x36147E9E: inc dword ptr [ebp - 0x20] */ 5292 _flag_k = FK_INC; 5293 RECOMP_BACKEDGE(); 5294 goto L_36147E12; /* 0x36147EA1: jmp 0x36147e12 */ 5295 L_36147EA6: 5296 ecx = MEM32(ebx + 0x8); /* 0x36147EA6: mov ecx, dword ptr [ebx + 8] */ 5297 /* cmp MEM32(ecx + 0x8), edi */ /* 0x36147EA9: cmp dword ptr [ecx + 8], edi */ 5298 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(edi); 5299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5300 _flag_k = FK_CMP; 5301 if (CMP_NE(_flag_a, _flag_b)) goto L_36147EF6; /* 0x36147EAC: jne 0x36147ef6 */ 5302 L_36147EAE: 5303 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147EAE: fld dword ptr [ebx + 0x80] */ 5304 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5306 esp = esp - 8; /* 0x36147EB4: sub esp, 8 */ 5307 _flag_k = FK_CMP; 5308 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147EB7: fstp qword ptr [esp] */ 5309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5311 esp = esp - 8; /* 0x36147EBA: sub esp, 8 */ 5312 _flag_k = FK_CMP; 5313 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147EBD: fld dword ptr [ebx + 0x7c] */ 5314 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5316 esp = esp - 8; /* 0x36147EC0: sub esp, 8 */ 5317 _flag_k = FK_CMP; 5318 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36147EC3: fstp qword ptr [esp + 8] */ 5319 fp_push(*(float*)&MEM32(ebx + 0x78)); /* 0x36147EC7: fld dword ptr [ebx + 0x78] */ 5320 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147ECA: fstp qword ptr [esp] */ 5321 PUSH32(esp, 0x362E71CCu); /* 0x36147ECD: push 0x362e71cc */ 5322 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147ED2: call dword ptr [0x3616f18c] */ 5323 RECOMP_FLAGS_IN(); 5324 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5326 esp = esp + 0x1Cu; /* 0x36147ED8: add esp, 0x1c */ 5327 _flag_k = FK_ADD; 5328 PUSH32(esp, 0x362E71A0u); /* 0x36147EDB: push 0x362e71a0 */ 5329 ecx = ebp + (-0x64); /* 0x36147EE0: lea ecx, [ebp - 0x64] */ 5330 RECOMP_ICALL(0x36008EF0u); /* 0x36147EE3: call 0x36008ef0 */ /* not lifted */ 5331 RECOMP_FLAGS_IN(); 5332 PUSH32(esp, 0x36184170u); /* 0x36147EE8: push 0x36184170 */ 5333 edx = ebp + (-0x64); /* 0x36147EED: lea edx, [ebp - 0x64] */ 5334 PUSH32(esp, edx); /* 0x36147EF0: push edx */ 5335 RECOMP_ICALL(0x3615FD70u); /* 0x36147EF1: call 0x3615fd70 */ /* not lifted */ 5336 RECOMP_FLAGS_IN(); 5337 L_36147EF6: 5338 /* cmp MEM32(ebp + (-0x18)), edi */ /* 0x36147EF6: cmp dword ptr [ebp - 0x18], edi */ 5339 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(edi); 5340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5341 _flag_k = FK_CMP; 5342 if (CMP_NE(_flag_a, _flag_b)) goto L_36147F5B; /* 0x36147EF9: jne 0x36147f5b */ 5343 L_36147EFB: 5344 PUSH32(esp, 2); /* 0x36147EFB: push 2 */ 5345 ecx = ebx; /* 0x36147EFD: mov ecx, ebx */ 5346 RECOMP_ICALL(0x361477F0u); /* 0x36147EFF: call 0x361477f0 */ /* not lifted */ 5347 RECOMP_FLAGS_IN(); 5348 /* test LO8(eax), LO8(eax) */ /* 0x36147F04: test al, al */ 5349 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5350 _cf = 0; 5351 _flag_k = FK_NARROW(FK_TEST, 24); 5352 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147F22; /* 0x36147F06: jne 0x36147f22 */ 5353 L_36147F08: 5354 PUSH32(esp, 3); /* 0x36147F08: push 3 */ 5355 ecx = ebx; /* 0x36147F0A: mov ecx, ebx */ 5356 RECOMP_ICALL(0x361477F0u); /* 0x36147F0C: call 0x361477f0 */ /* not lifted */ 5357 RECOMP_FLAGS_IN(); 5358 /* test LO8(eax), LO8(eax) */ /* 0x36147F11: test al, al */ 5359 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5360 _cf = 0; 5361 _flag_k = FK_NARROW(FK_TEST, 24); 5362 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147F22; /* 0x36147F13: jne 0x36147f22 */ 5363 L_36147F15: 5364 PUSH32(esp, 4); /* 0x36147F15: push 4 */ 5365 ecx = ebx; /* 0x36147F17: mov ecx, ebx */ 5366 RECOMP_ICALL(0x361477F0u); /* 0x36147F19: call 0x361477f0 */ /* not lifted */ 5367 RECOMP_FLAGS_IN(); 5368 /* test LO8(eax), LO8(eax) */ /* 0x36147F1E: test al, al */ 5369 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5370 _cf = 0; 5371 _flag_k = FK_NARROW(FK_TEST, 24); 5372 if (TEST_Z(_flag_a, _flag_b)) goto L_36147F5B; /* 0x36147F20: je 0x36147f5b */ 5373 L_36147F22: 5374 ebx = MEM32(ebx + 0x8); /* 0x36147F22: mov ebx, dword ptr [ebx + 8] */ 5375 eax = MEM32(ebx + 0x4); /* 0x36147F25: mov eax, dword ptr [ebx + 4] */ 5376 /* cmp eax, edi */ /* 0x36147F28: cmp eax, edi */ 5377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5379 _flag_k = FK_CMP; 5380 if (CMP_NE(_flag_a, _flag_b)) goto L_36147F31; /* 0x36147F2A: jne 0x36147f31 */ 5381 L_36147F2C: 5382 eax = MEM32(0x3616F10C); /* 0x36147F2C: mov eax, dword ptr [0x3616f10c] */ 5383 L_36147F31: 5384 PUSH32(esp, eax); /* 0x36147F31: push eax */ 5385 PUSH32(esp, 0x362E7134u); /* 0x36147F32: push 0x362e7134 */ 5386 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147F37: call dword ptr [0x3616f18c] */ 5387 RECOMP_FLAGS_IN(); 5388 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5389 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5390 esp = esp + 8; /* 0x36147F3D: add esp, 8 */ 5391 _flag_k = FK_ADD; 5392 PUSH32(esp, 0x362E70DCu); /* 0x36147F40: push 0x362e70dc */ 5393 ecx = ebp + (-0x6C); /* 0x36147F45: lea ecx, [ebp - 0x6c] */ 5394 RECOMP_ICALL(0x36008EF0u); /* 0x36147F48: call 0x36008ef0 */ /* not lifted */ 5395 RECOMP_FLAGS_IN(); 5396 PUSH32(esp, 0x36184170u); /* 0x36147F4D: push 0x36184170 */ 5397 eax = ebp + (-0x6C); /* 0x36147F52: lea eax, [ebp - 0x6c] */ 5398 PUSH32(esp, eax); /* 0x36147F55: push eax */ 5399 RECOMP_ICALL(0x3615FD70u); /* 0x36147F56: call 0x3615fd70 */ /* not lifted */ 5400 RECOMP_FLAGS_IN(); 5401 L_36147F5B: 5402 ecx = esi; /* 0x36147F5B: mov ecx, esi */ 5403 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36147F5D: call dword ptr [0x3616fadc] */ 5404 RECOMP_FLAGS_IN(); 5405 /* test eax, eax */ /* 0x36147F63: test eax, eax */ 5406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5407 _cf = 0; 5408 _flag_k = FK_TEST; 5409 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147FAF; /* 0x36147F65: jne 0x36147faf */ 5410 L_36147F67: 5411 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147F67: fld dword ptr [ebx + 0x80] */ 5412 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5414 esp = esp - 8; /* 0x36147F6D: sub esp, 8 */ 5415 _flag_k = FK_CMP; 5416 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147F70: fstp qword ptr [esp] */ 5417 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5419 esp = esp - 8; /* 0x36147F73: sub esp, 8 */ 5420 _flag_k = FK_CMP; 5421 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147F76: fld dword ptr [ebx + 0x7c] */ 5422 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5424 esp = esp - 8; /* 0x36147F79: sub esp, 8 */ 5425 _flag_k = FK_CMP; 5426 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36147F7C: fstp qword ptr [esp + 8] */ 5427 fp_push(*(float*)&MEM32(ebx + 0x78)); /* 0x36147F80: fld dword ptr [ebx + 0x78] */ 5428 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147F83: fstp qword ptr [esp] */ 5429 PUSH32(esp, 0x362E7078u); /* 0x36147F86: push 0x362e7078 */ 5430 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147F8B: call dword ptr [0x3616f18c] */ 5431 RECOMP_FLAGS_IN(); 5432 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5434 esp = esp + 0x1Cu; /* 0x36147F91: add esp, 0x1c */ 5435 _flag_k = FK_ADD; 5436 PUSH32(esp, 0x362E7050u); /* 0x36147F94: push 0x362e7050 */ 5437 ecx = ebp + (-0x74); /* 0x36147F99: lea ecx, [ebp - 0x74] */ 5438 RECOMP_ICALL(0x36008EF0u); /* 0x36147F9C: call 0x36008ef0 */ /* not lifted */ 5439 RECOMP_FLAGS_IN(); 5440 PUSH32(esp, 0x36184170u); /* 0x36147FA1: push 0x36184170 */ 5441 ecx = ebp + (-0x74); /* 0x36147FA6: lea ecx, [ebp - 0x74] */ 5442 PUSH32(esp, ecx); /* 0x36147FA9: push ecx */ 5443 RECOMP_ICALL(0x3615FD70u); /* 0x36147FAA: call 0x3615fd70 */ /* not lifted */ 5444 RECOMP_FLAGS_IN(); 5445 L_36147FAF: 5446 ecx = MEM32(ebp + (-0xC)); /* 0x36147FAF: mov ecx, dword ptr [ebp - 0xc] */ 5447 edi = POP32_VAL(esp); /* 0x36147FB2: pop edi */ 5448 eax = esi; /* 0x36147FB3: mov eax, esi */ 5449 esi = POP32_VAL(esp); /* 0x36147FB5: pop esi */ 5450 MEM32(FS_BASE + (0)) = ecx; /* 0x36147FB6: mov dword ptr fs:[0], ecx */ 5451 ebx = POP32_VAL(esp); /* 0x36147FBD: pop ebx */ 5452 esp = ebp; /* 0x36147FBE: mov esp, ebp */ 5453 ebp = POP32_VAL(esp); /* 0x36147FC0: pop ebp */ 5454 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36147FC1: ret */ 5455 RECOMP_REGS_OUT(); 5456 } 5457 5458 void sub_36147E74(void) { 5459 int _fpu_cmp = 0; 5460 uint32_t _cf = 0; 5461 int _df = 1; 5462 uint32_t _flag_k = FK_NONE; 5463 uint32_t _flag_a = 0, _flag_b = 0; 5464 uint32_t _itail_tgt = 0; 5465 RECOMP_REGS_LOCALS 5466 RECOMP_ENTER(0x36147E74u); 5467 5468 goto L_36147E74; 5469 L_36147E12: 5470 /* cmp MEM32(ebp + (-0x20)), 2 */ /* 0x36147E12: cmp dword ptr [ebp - 0x20], 2 */ 5471 _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(2); 5472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5473 _flag_k = FK_CMP; 5474 if (CMP_GE(_flag_a, _flag_b)) goto L_36147EA6; /* 0x36147E16: jge 0x36147ea6 */ 5475 L_36147E1C: 5476 edx = ebp + (-0x38); /* 0x36147E1C: lea edx, [ebp - 0x38] */ 5477 PUSH32(esp, edx); /* 0x36147E1F: push edx */ 5478 ecx = esi; /* 0x36147E20: mov ecx, esi */ 5479 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36147E22: call dword ptr [0x3616fae0] */ 5480 RECOMP_FLAGS_IN(); 5481 MEM32(ebp + 0x8) = edi; /* 0x36147E28: mov dword ptr [ebp + 8], edi */ 5482 L_36147E2B: 5483 eax = MEM32(ebp + (-0x38)); /* 0x36147E2B: mov eax, dword ptr [ebp - 0x38] */ 5484 ecx = MEM32(ebp + 0x8); /* 0x36147E2E: mov ecx, dword ptr [ebp + 8] */ 5485 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 5486 eax = eax & 0xFFu; /* 0x36147E31: and eax, 0xff */ 5487 _cf = 0; 5488 _flag_k = FK_TEST; 5489 /* cmp ecx, eax */ /* 0x36147E36: cmp ecx, eax */ 5490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5492 _flag_k = FK_CMP; 5493 if (CMP_AE(_flag_a, _flag_b)) goto L_36147E9E; /* 0x36147E38: jae 0x36147e9e */ 5494 L_36147E3A: 5495 PUSH32(esp, esi); /* 0x36147E3A: push esi */ 5496 ecx = ebp + (-0x44); /* 0x36147E3B: lea ecx, [ebp - 0x44] */ 5497 MEM32(ebp + (-0x4)) = edi; /* 0x36147E3E: mov dword ptr [ebp - 4], edi */ 5498 RECOMP_ICALL(0x360F69D0u); /* 0x36147E41: call 0x360f69d0 */ /* not lifted */ 5499 RECOMP_FLAGS_IN(); 5500 ecx = ebp + (-0x2C); /* 0x36147E46: lea ecx, [ebp - 0x2c] */ 5501 PUSH32(esp, ecx); /* 0x36147E49: push ecx */ 5502 ecx = esi; /* 0x36147E4A: mov ecx, esi */ 5503 edi = eax; /* 0x36147E4C: mov edi, eax */ 5504 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36147E4E: mov dword ptr [ebp - 4], 0xffffffff */ 5505 RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x36147E55: call dword ptr [0x3616fac8] */ 5506 RECOMP_FLAGS_IN(); 5507 edx = MEM32(ebp + (-0x2C)); /* 0x36147E5B: mov edx, dword ptr [ebp - 0x2c] */ 5508 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 5509 edx = edx & 0xFFFFu; /* 0x36147E5E: and edx, 0xffff */ 5510 _cf = 0; 5511 _flag_k = FK_TEST; 5512 PUSH32(esp, edx); /* 0x36147E64: push edx */ 5513 PUSH32(esp, edi); /* 0x36147E65: push edi */ 5514 ecx = ebx; /* 0x36147E66: mov ecx, ebx */ 5515 RECOMP_ICALL(0x36147880u); /* 0x36147E68: call 0x36147880 */ /* not lifted */ 5516 RECOMP_FLAGS_IN(); 5517 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1); 5518 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + 1; /* 0x36147E6D: inc dword ptr [ebp + 8] */ 5519 _flag_k = FK_INC; 5520 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5521 edi = 0; /* 0x36147E70: xor edi, edi */ 5522 _cf = 0; 5523 _flag_k = FK_TEST; 5524 RECOMP_BACKEDGE(); 5525 goto L_36147E2B; /* 0x36147E72: jmp 0x36147e2b */ 5526 L_36147E74: 5527 eax = MEM32(ebp + 0xC); /* 0x36147E74: mov eax, dword ptr [ebp + 0xc] */ 5528 eax = MEM32(eax + 0x8); /* 0x36147E77: mov eax, dword ptr [eax + 8] */ 5529 eax = MEM32(eax + 0x4); /* 0x36147E7A: mov eax, dword ptr [eax + 4] */ 5530 /* test eax, eax */ /* 0x36147E7D: test eax, eax */ 5531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5532 _cf = 0; 5533 _flag_k = FK_TEST; 5534 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147E86; /* 0x36147E7F: jne 0x36147e86 */ 5535 L_36147E81: 5536 eax = MEM32(0x3616F10C); /* 0x36147E81: mov eax, dword ptr [0x3616f10c] */ 5537 L_36147E86: 5538 PUSH32(esp, eax); /* 0x36147E86: push eax */ 5539 PUSH32(esp, 0x362E7218u); /* 0x36147E87: push 0x362e7218 */ 5540 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147E8C: call dword ptr [0x3616f18c] */ 5541 RECOMP_FLAGS_IN(); 5542 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5544 esp = esp + 8; /* 0x36147E92: add esp, 8 */ 5545 _flag_k = FK_ADD; 5546 PUSH32(esp, 0); /* 0x36147E95: push 0 */ 5547 PUSH32(esp, 0); /* 0x36147E97: push 0 */ 5548 RECOMP_ICALL(0x3615FD70u); /* 0x36147E99: call 0x3615fd70 */ /* not lifted */ 5549 RECOMP_FLAGS_IN(); 5550 L_36147E9E: 5551 _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(1); 5552 MEM32(ebp + (-0x20)) = MEM32(ebp + (-0x20)) + 1; /* 0x36147E9E: inc dword ptr [ebp - 0x20] */ 5553 _flag_k = FK_INC; 5554 RECOMP_BACKEDGE(); 5555 goto L_36147E12; /* 0x36147EA1: jmp 0x36147e12 */ 5556 L_36147EA6: 5557 ecx = MEM32(ebx + 0x8); /* 0x36147EA6: mov ecx, dword ptr [ebx + 8] */ 5558 /* cmp MEM32(ecx + 0x8), edi */ /* 0x36147EA9: cmp dword ptr [ecx + 8], edi */ 5559 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(edi); 5560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5561 _flag_k = FK_CMP; 5562 if (CMP_NE(_flag_a, _flag_b)) goto L_36147EF6; /* 0x36147EAC: jne 0x36147ef6 */ 5563 L_36147EAE: 5564 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147EAE: fld dword ptr [ebx + 0x80] */ 5565 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5567 esp = esp - 8; /* 0x36147EB4: sub esp, 8 */ 5568 _flag_k = FK_CMP; 5569 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147EB7: fstp qword ptr [esp] */ 5570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5572 esp = esp - 8; /* 0x36147EBA: sub esp, 8 */ 5573 _flag_k = FK_CMP; 5574 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147EBD: fld dword ptr [ebx + 0x7c] */ 5575 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5577 esp = esp - 8; /* 0x36147EC0: sub esp, 8 */ 5578 _flag_k = FK_CMP; 5579 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36147EC3: fstp qword ptr [esp + 8] */ 5580 fp_push(*(float*)&MEM32(ebx + 0x78)); /* 0x36147EC7: fld dword ptr [ebx + 0x78] */ 5581 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147ECA: fstp qword ptr [esp] */ 5582 PUSH32(esp, 0x362E71CCu); /* 0x36147ECD: push 0x362e71cc */ 5583 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147ED2: call dword ptr [0x3616f18c] */ 5584 RECOMP_FLAGS_IN(); 5585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5587 esp = esp + 0x1Cu; /* 0x36147ED8: add esp, 0x1c */ 5588 _flag_k = FK_ADD; 5589 PUSH32(esp, 0x362E71A0u); /* 0x36147EDB: push 0x362e71a0 */ 5590 ecx = ebp + (-0x64); /* 0x36147EE0: lea ecx, [ebp - 0x64] */ 5591 RECOMP_ICALL(0x36008EF0u); /* 0x36147EE3: call 0x36008ef0 */ /* not lifted */ 5592 RECOMP_FLAGS_IN(); 5593 PUSH32(esp, 0x36184170u); /* 0x36147EE8: push 0x36184170 */ 5594 edx = ebp + (-0x64); /* 0x36147EED: lea edx, [ebp - 0x64] */ 5595 PUSH32(esp, edx); /* 0x36147EF0: push edx */ 5596 RECOMP_ICALL(0x3615FD70u); /* 0x36147EF1: call 0x3615fd70 */ /* not lifted */ 5597 RECOMP_FLAGS_IN(); 5598 L_36147EF6: 5599 /* cmp MEM32(ebp + (-0x18)), edi */ /* 0x36147EF6: cmp dword ptr [ebp - 0x18], edi */ 5600 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(edi); 5601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5602 _flag_k = FK_CMP; 5603 if (CMP_NE(_flag_a, _flag_b)) goto L_36147F5B; /* 0x36147EF9: jne 0x36147f5b */ 5604 L_36147EFB: 5605 PUSH32(esp, 2); /* 0x36147EFB: push 2 */ 5606 ecx = ebx; /* 0x36147EFD: mov ecx, ebx */ 5607 RECOMP_ICALL(0x361477F0u); /* 0x36147EFF: call 0x361477f0 */ /* not lifted */ 5608 RECOMP_FLAGS_IN(); 5609 /* test LO8(eax), LO8(eax) */ /* 0x36147F04: test al, al */ 5610 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5611 _cf = 0; 5612 _flag_k = FK_NARROW(FK_TEST, 24); 5613 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147F22; /* 0x36147F06: jne 0x36147f22 */ 5614 L_36147F08: 5615 PUSH32(esp, 3); /* 0x36147F08: push 3 */ 5616 ecx = ebx; /* 0x36147F0A: mov ecx, ebx */ 5617 RECOMP_ICALL(0x361477F0u); /* 0x36147F0C: call 0x361477f0 */ /* not lifted */ 5618 RECOMP_FLAGS_IN(); 5619 /* test LO8(eax), LO8(eax) */ /* 0x36147F11: test al, al */ 5620 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5621 _cf = 0; 5622 _flag_k = FK_NARROW(FK_TEST, 24); 5623 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147F22; /* 0x36147F13: jne 0x36147f22 */ 5624 L_36147F15: 5625 PUSH32(esp, 4); /* 0x36147F15: push 4 */ 5626 ecx = ebx; /* 0x36147F17: mov ecx, ebx */ 5627 RECOMP_ICALL(0x361477F0u); /* 0x36147F19: call 0x361477f0 */ /* not lifted */ 5628 RECOMP_FLAGS_IN(); 5629 /* test LO8(eax), LO8(eax) */ /* 0x36147F1E: test al, al */ 5630 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5631 _cf = 0; 5632 _flag_k = FK_NARROW(FK_TEST, 24); 5633 if (TEST_Z(_flag_a, _flag_b)) goto L_36147F5B; /* 0x36147F20: je 0x36147f5b */ 5634 L_36147F22: 5635 ebx = MEM32(ebx + 0x8); /* 0x36147F22: mov ebx, dword ptr [ebx + 8] */ 5636 eax = MEM32(ebx + 0x4); /* 0x36147F25: mov eax, dword ptr [ebx + 4] */ 5637 /* cmp eax, edi */ /* 0x36147F28: cmp eax, edi */ 5638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5640 _flag_k = FK_CMP; 5641 if (CMP_NE(_flag_a, _flag_b)) goto L_36147F31; /* 0x36147F2A: jne 0x36147f31 */ 5642 L_36147F2C: 5643 eax = MEM32(0x3616F10C); /* 0x36147F2C: mov eax, dword ptr [0x3616f10c] */ 5644 L_36147F31: 5645 PUSH32(esp, eax); /* 0x36147F31: push eax */ 5646 PUSH32(esp, 0x362E7134u); /* 0x36147F32: push 0x362e7134 */ 5647 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147F37: call dword ptr [0x3616f18c] */ 5648 RECOMP_FLAGS_IN(); 5649 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5650 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5651 esp = esp + 8; /* 0x36147F3D: add esp, 8 */ 5652 _flag_k = FK_ADD; 5653 PUSH32(esp, 0x362E70DCu); /* 0x36147F40: push 0x362e70dc */ 5654 ecx = ebp + (-0x6C); /* 0x36147F45: lea ecx, [ebp - 0x6c] */ 5655 RECOMP_ICALL(0x36008EF0u); /* 0x36147F48: call 0x36008ef0 */ /* not lifted */ 5656 RECOMP_FLAGS_IN(); 5657 PUSH32(esp, 0x36184170u); /* 0x36147F4D: push 0x36184170 */ 5658 eax = ebp + (-0x6C); /* 0x36147F52: lea eax, [ebp - 0x6c] */ 5659 PUSH32(esp, eax); /* 0x36147F55: push eax */ 5660 RECOMP_ICALL(0x3615FD70u); /* 0x36147F56: call 0x3615fd70 */ /* not lifted */ 5661 RECOMP_FLAGS_IN(); 5662 L_36147F5B: 5663 ecx = esi; /* 0x36147F5B: mov ecx, esi */ 5664 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36147F5D: call dword ptr [0x3616fadc] */ 5665 RECOMP_FLAGS_IN(); 5666 /* test eax, eax */ /* 0x36147F63: test eax, eax */ 5667 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5668 _cf = 0; 5669 _flag_k = FK_TEST; 5670 if (TEST_NZ(_flag_a, _flag_b)) goto L_36147FAF; /* 0x36147F65: jne 0x36147faf */ 5671 L_36147F67: 5672 fp_push(*(float*)&MEM32(ebx + 0x80)); /* 0x36147F67: fld dword ptr [ebx + 0x80] */ 5673 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5675 esp = esp - 8; /* 0x36147F6D: sub esp, 8 */ 5676 _flag_k = FK_CMP; 5677 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147F70: fstp qword ptr [esp] */ 5678 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5680 esp = esp - 8; /* 0x36147F73: sub esp, 8 */ 5681 _flag_k = FK_CMP; 5682 fp_push(*(float*)&MEM32(ebx + 0x7C)); /* 0x36147F76: fld dword ptr [ebx + 0x7c] */ 5683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5685 esp = esp - 8; /* 0x36147F79: sub esp, 8 */ 5686 _flag_k = FK_CMP; 5687 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36147F7C: fstp qword ptr [esp + 8] */ 5688 fp_push(*(float*)&MEM32(ebx + 0x78)); /* 0x36147F80: fld dword ptr [ebx + 0x78] */ 5689 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36147F83: fstp qword ptr [esp] */ 5690 PUSH32(esp, 0x362E7078u); /* 0x36147F86: push 0x362e7078 */ 5691 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36147F8B: call dword ptr [0x3616f18c] */ 5692 RECOMP_FLAGS_IN(); 5693 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5694 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5695 esp = esp + 0x1Cu; /* 0x36147F91: add esp, 0x1c */ 5696 _flag_k = FK_ADD; 5697 PUSH32(esp, 0x362E7050u); /* 0x36147F94: push 0x362e7050 */ 5698 ecx = ebp + (-0x74); /* 0x36147F99: lea ecx, [ebp - 0x74] */ 5699 RECOMP_ICALL(0x36008EF0u); /* 0x36147F9C: call 0x36008ef0 */ /* not lifted */ 5700 RECOMP_FLAGS_IN(); 5701 PUSH32(esp, 0x36184170u); /* 0x36147FA1: push 0x36184170 */ 5702 ecx = ebp + (-0x74); /* 0x36147FA6: lea ecx, [ebp - 0x74] */ 5703 PUSH32(esp, ecx); /* 0x36147FA9: push ecx */ 5704 RECOMP_ICALL(0x3615FD70u); /* 0x36147FAA: call 0x3615fd70 */ /* not lifted */ 5705 RECOMP_FLAGS_IN(); 5706 L_36147FAF: 5707 ecx = MEM32(ebp + (-0xC)); /* 0x36147FAF: mov ecx, dword ptr [ebp - 0xc] */ 5708 edi = POP32_VAL(esp); /* 0x36147FB2: pop edi */ 5709 eax = esi; /* 0x36147FB3: mov eax, esi */ 5710 esi = POP32_VAL(esp); /* 0x36147FB5: pop esi */ 5711 MEM32(FS_BASE + (0)) = ecx; /* 0x36147FB6: mov dword ptr fs:[0], ecx */ 5712 ebx = POP32_VAL(esp); /* 0x36147FBD: pop ebx */ 5713 esp = ebp; /* 0x36147FBE: mov esp, ebp */ 5714 ebp = POP32_VAL(esp); /* 0x36147FC0: pop ebp */ 5715 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36147FC1: ret */ 5716 RECOMP_REGS_OUT(); 5717 } 5718 5719 void sub_36148090(void) { 5720 int _fpu_cmp = 0; 5721 uint32_t _cf = 0; 5722 int _df = 1; 5723 uint32_t _flag_k = FK_NONE; 5724 uint32_t _flag_a = 0, _flag_b = 0; 5725 uint32_t _itail_tgt = 0; 5726 RECOMP_REGS_LOCALS 5727 RECOMP_ENTER(0x36148090u); 5728 5729 L_36148090: 5730 PUSH32(esp, ebp); /* 0x36148090: push ebp */ 5731 ebp = esp; /* 0x36148091: mov ebp, esp */ 5732 PUSH32(esp, ebx); /* 0x36148093: push ebx */ 5733 ebx = MEM32(ebp + 0x10); /* 0x36148094: mov ebx, dword ptr [ebp + 0x10] */ 5734 PUSH32(esp, esi); /* 0x36148097: push esi */ 5735 esi = ecx; /* 0x36148098: mov esi, ecx */ 5736 eax = MEM32(esi + 0x10); /* 0x3614809A: mov eax, dword ptr [esi + 0x10] */ 5737 /* test eax, eax */ /* 0x3614809D: test eax, eax */ 5738 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5739 _cf = 0; 5740 _flag_k = FK_TEST; 5741 ecx = MEM32(ebp + 0xC); /* 0x3614809F: mov ecx, dword ptr [ebp + 0xc] */ 5742 PUSH32(esp, edi); /* 0x361480A2: push edi */ 5743 if (TEST_Z(_flag_a, _flag_b)) goto L_36148105; /* 0x361480A3: je 0x36148105 */ 5744 L_361480A5: 5745 eax = MEM32(esi + 0x4); /* 0x361480A5: mov eax, dword ptr [esi + 4] */ 5746 /* cmp ecx, MEM32(eax) */ /* 0x361480A8: cmp ecx, dword ptr [eax] */ 5747 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 5748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5749 _flag_k = FK_CMP; 5750 if (CMP_NE(_flag_a, _flag_b)) goto L_36148105; /* 0x361480AA: jne 0x36148105 */ 5751 L_361480AC: 5752 /* cmp ebx, eax */ /* 0x361480AC: cmp ebx, eax */ 5753 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 5754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5755 _flag_k = FK_CMP; 5756 if (CMP_NE(_flag_a, _flag_b)) goto L_36148105; /* 0x361480AE: jne 0x36148105 */ 5757 L_361480B0: 5758 ebx = MEM32(eax + 0x4); /* 0x361480B0: mov ebx, dword ptr [eax + 4] */ 5759 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x361480B3: cmp ebx, dword ptr [esi + 8] */ 5760 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5762 _flag_k = FK_CMP; 5763 edi = ebx; /* 0x361480B6: mov edi, ebx */ 5764 if (CMP_EQ(_flag_a, _flag_b)) goto L_361480D9; /* 0x361480B8: je 0x361480d9 */ 5765 L_361480BA: 5766 eax = MEM32(edi + 0x8); /* 0x361480BA: mov eax, dword ptr [edi + 8] */ 5767 PUSH32(esp, eax); /* 0x361480BD: push eax */ 5768 ecx = esi; /* 0x361480BE: mov ecx, esi */ 5769 RECOMP_ICALL(0x36148440u); /* 0x361480C0: call 0x36148440 */ /* not lifted */ 5770 RECOMP_FLAGS_IN(); 5771 edi = MEM32(edi); /* 0x361480C5: mov edi, dword ptr [edi] */ 5772 PUSH32(esp, ebx); /* 0x361480C7: push ebx */ 5773 RECOMP_ICALL(0x3615FCC4u); /* 0x361480C8: call 0x3615fcc4 */ /* not lifted */ 5774 RECOMP_FLAGS_IN(); 5775 eax = MEM32(esi + 0x8); /* 0x361480CD: mov eax, dword ptr [esi + 8] */ 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; /* 0x361480D0: add esp, 4 */ 5779 _flag_k = FK_ADD; 5780 /* cmp edi, eax */ /* 0x361480D3: cmp edi, eax */ 5781 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5783 _flag_k = FK_CMP; 5784 ebx = edi; /* 0x361480D5: mov ebx, edi */ 5785 RECOMP_BACKEDGE(); 5786 if (CMP_NE(_flag_a, _flag_b)) goto L_361480BA; /* 0x361480D7: jne 0x361480ba */ 5787 L_361480D9: 5788 ecx = MEM32(esi + 0x4); /* 0x361480D9: mov ecx, dword ptr [esi + 4] */ 5789 edx = MEM32(esi + 0x8); /* 0x361480DC: mov edx, dword ptr [esi + 8] */ 5790 MEM32(ecx + 0x4) = edx; /* 0x361480DF: mov dword ptr [ecx + 4], edx */ 5791 eax = MEM32(esi + 0x4); /* 0x361480E2: mov eax, dword ptr [esi + 4] */ 5792 MEM32(esi + 0x10) = 0; /* 0x361480E5: mov dword ptr [esi + 0x10], 0 */ 5793 MEM32(eax) = eax; /* 0x361480EC: mov dword ptr [eax], eax */ 5794 eax = MEM32(esi + 0x4); /* 0x361480EE: mov eax, dword ptr [esi + 4] */ 5795 MEM32(eax + 0x8) = eax; /* 0x361480F1: mov dword ptr [eax + 8], eax */ 5796 eax = MEM32(esi + 0x4); /* 0x361480F4: mov eax, dword ptr [esi + 4] */ 5797 ecx = MEM32(eax); /* 0x361480F7: mov ecx, dword ptr [eax] */ 5798 eax = MEM32(ebp + 0x8); /* 0x361480F9: mov eax, dword ptr [ebp + 8] */ 5799 edi = POP32_VAL(esp); /* 0x361480FC: pop edi */ 5800 esi = POP32_VAL(esp); /* 0x361480FD: pop esi */ 5801 MEM32(eax) = ecx; /* 0x361480FE: mov dword ptr [eax], ecx */ 5802 ebx = POP32_VAL(esp); /* 0x36148100: pop ebx */ 5803 ebp = POP32_VAL(esp); /* 0x36148101: pop ebp */ 5804 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36148102: ret 0xc */ 5805 L_36148105: 5806 /* cmp ecx, ebx */ /* 0x36148105: cmp ecx, ebx */ 5807 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5809 _flag_k = FK_CMP; 5810 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148126; /* 0x36148107: je 0x36148126 */ 5811 L_36148109: 5812 edi = ecx; /* 0x36148109: mov edi, ecx */ 5813 ecx = ebp + 0xC; /* 0x3614810B: lea ecx, [ebp + 0xc] */ 5814 RECOMP_ICALL(0x36064140u); /* 0x3614810E: call 0x36064140 */ /* not lifted */ 5815 RECOMP_FLAGS_IN(); 5816 PUSH32(esp, edi); /* 0x36148113: push edi */ 5817 ecx = ebp + 0x10; /* 0x36148114: lea ecx, [ebp + 0x10] */ 5818 PUSH32(esp, ecx); /* 0x36148117: push ecx */ 5819 ecx = esi; /* 0x36148118: mov ecx, esi */ 5820 RECOMP_ICALL(0x360588E0u); /* 0x3614811A: call 0x360588e0 */ /* not lifted */ 5821 RECOMP_FLAGS_IN(); 5822 ecx = MEM32(ebp + 0xC); /* 0x3614811F: mov ecx, dword ptr [ebp + 0xc] */ 5823 /* cmp ecx, ebx */ /* 0x36148122: cmp ecx, ebx */ 5824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5826 _flag_k = FK_CMP; 5827 RECOMP_BACKEDGE(); 5828 if (CMP_NE(_flag_a, _flag_b)) goto L_36148109; /* 0x36148124: jne 0x36148109 */ 5829 L_36148126: 5830 eax = MEM32(ebp + 0x8); /* 0x36148126: mov eax, dword ptr [ebp + 8] */ 5831 edi = POP32_VAL(esp); /* 0x36148129: pop edi */ 5832 esi = POP32_VAL(esp); /* 0x3614812A: pop esi */ 5833 MEM32(eax) = ecx; /* 0x3614812B: mov dword ptr [eax], ecx */ 5834 ebx = POP32_VAL(esp); /* 0x3614812D: pop ebx */ 5835 ebp = POP32_VAL(esp); /* 0x3614812E: pop ebp */ 5836 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614812F: ret 0xc */ 5837 RECOMP_REGS_OUT(); 5838 } 5839 5840 void sub_36148140(void) { 5841 int _fpu_cmp = 0; 5842 uint32_t _cf = 0; 5843 int _df = 1; 5844 uint32_t _flag_k = FK_NONE; 5845 uint32_t _flag_a = 0, _flag_b = 0; 5846 uint32_t _itail_tgt = 0; 5847 RECOMP_REGS_LOCALS 5848 RECOMP_ENTER(0x36148140u); 5849 5850 L_36148140: 5851 PUSH32(esp, ebp); /* 0x36148140: push ebp */ 5852 ebp = esp; /* 0x36148141: mov ebp, esp */ 5853 PUSH32(esp, ebx); /* 0x36148143: push ebx */ 5854 ebx = MEM32(ebp + 0x10); /* 0x36148144: mov ebx, dword ptr [ebp + 0x10] */ 5855 PUSH32(esp, esi); /* 0x36148147: push esi */ 5856 esi = ecx; /* 0x36148148: mov esi, ecx */ 5857 eax = MEM32(esi + 0x10); /* 0x3614814A: mov eax, dword ptr [esi + 0x10] */ 5858 /* test eax, eax */ /* 0x3614814D: test eax, eax */ 5859 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5860 _cf = 0; 5861 _flag_k = FK_TEST; 5862 ecx = MEM32(ebp + 0xC); /* 0x3614814F: mov ecx, dword ptr [ebp + 0xc] */ 5863 PUSH32(esp, edi); /* 0x36148152: push edi */ 5864 if (TEST_Z(_flag_a, _flag_b)) goto L_361481B5; /* 0x36148153: je 0x361481b5 */ 5865 L_36148155: 5866 eax = MEM32(esi + 0x4); /* 0x36148155: mov eax, dword ptr [esi + 4] */ 5867 /* cmp ecx, MEM32(eax) */ /* 0x36148158: cmp ecx, dword ptr [eax] */ 5868 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 5869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5870 _flag_k = FK_CMP; 5871 if (CMP_NE(_flag_a, _flag_b)) goto L_361481B5; /* 0x3614815A: jne 0x361481b5 */ 5872 L_3614815C: 5873 /* cmp ebx, eax */ /* 0x3614815C: cmp ebx, eax */ 5874 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 5875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5876 _flag_k = FK_CMP; 5877 if (CMP_NE(_flag_a, _flag_b)) goto L_361481B5; /* 0x3614815E: jne 0x361481b5 */ 5878 L_36148160: 5879 ebx = MEM32(eax + 0x4); /* 0x36148160: mov ebx, dword ptr [eax + 4] */ 5880 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36148163: cmp ebx, dword ptr [esi + 8] */ 5881 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5883 _flag_k = FK_CMP; 5884 edi = ebx; /* 0x36148166: mov edi, ebx */ 5885 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148189; /* 0x36148168: je 0x36148189 */ 5886 L_3614816A: 5887 eax = MEM32(edi + 0x8); /* 0x3614816A: mov eax, dword ptr [edi + 8] */ 5888 PUSH32(esp, eax); /* 0x3614816D: push eax */ 5889 ecx = esi; /* 0x3614816E: mov ecx, esi */ 5890 RECOMP_ICALL(0x36148480u); /* 0x36148170: call 0x36148480 */ /* not lifted */ 5891 RECOMP_FLAGS_IN(); 5892 edi = MEM32(edi); /* 0x36148175: mov edi, dword ptr [edi] */ 5893 PUSH32(esp, ebx); /* 0x36148177: push ebx */ 5894 RECOMP_ICALL(0x3615FCC4u); /* 0x36148178: call 0x3615fcc4 */ /* not lifted */ 5895 RECOMP_FLAGS_IN(); 5896 eax = MEM32(esi + 0x8); /* 0x3614817D: mov eax, dword ptr [esi + 8] */ 5897 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5899 esp = esp + 4; /* 0x36148180: add esp, 4 */ 5900 _flag_k = FK_ADD; 5901 /* cmp edi, eax */ /* 0x36148183: cmp edi, eax */ 5902 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5904 _flag_k = FK_CMP; 5905 ebx = edi; /* 0x36148185: mov ebx, edi */ 5906 RECOMP_BACKEDGE(); 5907 if (CMP_NE(_flag_a, _flag_b)) goto L_3614816A; /* 0x36148187: jne 0x3614816a */ 5908 L_36148189: 5909 ecx = MEM32(esi + 0x4); /* 0x36148189: mov ecx, dword ptr [esi + 4] */ 5910 edx = MEM32(esi + 0x8); /* 0x3614818C: mov edx, dword ptr [esi + 8] */ 5911 MEM32(ecx + 0x4) = edx; /* 0x3614818F: mov dword ptr [ecx + 4], edx */ 5912 eax = MEM32(esi + 0x4); /* 0x36148192: mov eax, dword ptr [esi + 4] */ 5913 MEM32(esi + 0x10) = 0; /* 0x36148195: mov dword ptr [esi + 0x10], 0 */ 5914 MEM32(eax) = eax; /* 0x3614819C: mov dword ptr [eax], eax */ 5915 eax = MEM32(esi + 0x4); /* 0x3614819E: mov eax, dword ptr [esi + 4] */ 5916 MEM32(eax + 0x8) = eax; /* 0x361481A1: mov dword ptr [eax + 8], eax */ 5917 eax = MEM32(esi + 0x4); /* 0x361481A4: mov eax, dword ptr [esi + 4] */ 5918 ecx = MEM32(eax); /* 0x361481A7: mov ecx, dword ptr [eax] */ 5919 eax = MEM32(ebp + 0x8); /* 0x361481A9: mov eax, dword ptr [ebp + 8] */ 5920 edi = POP32_VAL(esp); /* 0x361481AC: pop edi */ 5921 esi = POP32_VAL(esp); /* 0x361481AD: pop esi */ 5922 MEM32(eax) = ecx; /* 0x361481AE: mov dword ptr [eax], ecx */ 5923 ebx = POP32_VAL(esp); /* 0x361481B0: pop ebx */ 5924 ebp = POP32_VAL(esp); /* 0x361481B1: pop ebp */ 5925 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361481B2: ret 0xc */ 5926 L_361481B5: 5927 /* cmp ecx, ebx */ /* 0x361481B5: cmp ecx, ebx */ 5928 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5930 _flag_k = FK_CMP; 5931 if (CMP_EQ(_flag_a, _flag_b)) goto L_361481D6; /* 0x361481B7: je 0x361481d6 */ 5932 L_361481B9: 5933 edi = ecx; /* 0x361481B9: mov edi, ecx */ 5934 ecx = ebp + 0xC; /* 0x361481BB: lea ecx, [ebp + 0xc] */ 5935 RECOMP_ICALL(0x36064140u); /* 0x361481BE: call 0x36064140 */ /* not lifted */ 5936 RECOMP_FLAGS_IN(); 5937 PUSH32(esp, edi); /* 0x361481C3: push edi */ 5938 ecx = ebp + 0x10; /* 0x361481C4: lea ecx, [ebp + 0x10] */ 5939 PUSH32(esp, ecx); /* 0x361481C7: push ecx */ 5940 ecx = esi; /* 0x361481C8: mov ecx, esi */ 5941 RECOMP_ICALL(0x360588E0u); /* 0x361481CA: call 0x360588e0 */ /* not lifted */ 5942 RECOMP_FLAGS_IN(); 5943 ecx = MEM32(ebp + 0xC); /* 0x361481CF: mov ecx, dword ptr [ebp + 0xc] */ 5944 /* cmp ecx, ebx */ /* 0x361481D2: cmp ecx, ebx */ 5945 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5947 _flag_k = FK_CMP; 5948 RECOMP_BACKEDGE(); 5949 if (CMP_NE(_flag_a, _flag_b)) goto L_361481B9; /* 0x361481D4: jne 0x361481b9 */ 5950 L_361481D6: 5951 eax = MEM32(ebp + 0x8); /* 0x361481D6: mov eax, dword ptr [ebp + 8] */ 5952 edi = POP32_VAL(esp); /* 0x361481D9: pop edi */ 5953 esi = POP32_VAL(esp); /* 0x361481DA: pop esi */ 5954 MEM32(eax) = ecx; /* 0x361481DB: mov dword ptr [eax], ecx */ 5955 ebx = POP32_VAL(esp); /* 0x361481DD: pop ebx */ 5956 ebp = POP32_VAL(esp); /* 0x361481DE: pop ebp */ 5957 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361481DF: ret 0xc */ 5958 RECOMP_REGS_OUT(); 5959 } 5960 5961 void sub_361481F0(void) { 5962 int _fpu_cmp = 0; 5963 uint32_t _cf = 0; 5964 int _df = 1; 5965 uint32_t _flag_k = FK_NONE; 5966 uint32_t _flag_a = 0, _flag_b = 0; 5967 uint32_t _itail_tgt = 0; 5968 RECOMP_REGS_LOCALS 5969 RECOMP_ENTER(0x361481F0u); 5970 5971 L_361481F0: 5972 PUSH32(esp, ebp); /* 0x361481F0: push ebp */ 5973 ebp = esp; /* 0x361481F1: mov ebp, esp */ 5974 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5976 esp = esp - 0xCu; /* 0x361481F3: sub esp, 0xc */ 5977 _flag_k = FK_CMP; 5978 PUSH32(esp, ebx); /* 0x361481F6: push ebx */ 5979 PUSH32(esp, esi); /* 0x361481F7: push esi */ 5980 PUSH32(esp, edi); /* 0x361481F8: push edi */ 5981 edi = ecx; /* 0x361481F9: mov edi, ecx */ 5982 ecx = MEM32(edi + 0x4); /* 0x361481FB: mov ecx, dword ptr [edi + 4] */ 5983 ebx = MEM32(ecx + 0x4); /* 0x361481FE: mov ebx, dword ptr [ecx + 4] */ 5984 edx = MEM32(edi + 0x8); /* 0x36148201: mov edx, dword ptr [edi + 8] */ 5985 /* cmp ebx, edx */ /* 0x36148204: cmp ebx, edx */ 5986 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 5987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5988 _flag_k = FK_CMP; 5989 esi = ecx; /* 0x36148206: mov esi, ecx */ 5990 SET_LO8(eax, 1); /* 0x36148208: mov al, 1 */ 5991 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614822E; /* 0x3614820A: je 0x3614822e */ 5992 L_3614820C: 5993 eax = MEM32(ebp + 0xC); /* 0x3614820C: mov eax, dword ptr [ebp + 0xc] */ 5994 eax = MEM32(eax); /* 0x3614820F: mov eax, dword ptr [eax] */ 5995 MEM32(ebp + (-0x8)) = eax; /* 0x36148211: mov dword ptr [ebp - 8], eax */ 5996 L_36148214: 5997 eax = MEM32(ebp + (-0x8)); /* 0x36148214: mov eax, dword ptr [ebp - 8] */ 5998 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x36148217: cmp eax, dword ptr [ebx + 0xc] */ 5999 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 6000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6001 _flag_k = FK_CMP; 6002 esi = ebx; /* 0x3614821A: mov esi, ebx */ 6003 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3614821C: setb al */ 6004 /* test LO8(eax), LO8(eax) */ /* 0x3614821F: test al, al */ 6005 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6006 _cf = 0; 6007 _flag_k = FK_NARROW(FK_TEST, 24); 6008 if (TEST_Z(_flag_a, _flag_b)) goto L_36148227; /* 0x36148221: je 0x36148227 */ 6009 L_36148223: 6010 ebx = MEM32(ebx); /* 0x36148223: mov ebx, dword ptr [ebx] */ 6011 goto L_3614822A; /* 0x36148225: jmp 0x3614822a */ 6012 L_36148227: 6013 ebx = MEM32(ebx + 0x8); /* 0x36148227: mov ebx, dword ptr [ebx + 8] */ 6014 L_3614822A: 6015 /* cmp ebx, edx */ /* 0x3614822A: cmp ebx, edx */ 6016 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 6017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6018 _flag_k = FK_CMP; 6019 RECOMP_BACKEDGE(); 6020 if (CMP_NE(_flag_a, _flag_b)) goto L_36148214; /* 0x3614822C: jne 0x36148214 */ 6021 L_3614822E: 6022 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x3614822E: mov dl, byte ptr [edi + 0xc] */ 6023 /* test LO8(edx), LO8(edx) */ /* 0x36148231: test dl, dl */ 6024 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6025 _cf = 0; 6026 _flag_k = FK_NARROW(FK_TEST, 24); 6027 if (TEST_Z(_flag_a, _flag_b)) goto L_361483A9; /* 0x36148233: je 0x361483a9 */ 6028 L_36148239: 6029 PUSH32(esp, 0); /* 0x36148239: push 0 */ 6030 PUSH32(esp, esi); /* 0x3614823B: push esi */ 6031 ecx = edi; /* 0x3614823C: mov ecx, edi */ 6032 RECOMP_ICALL(0x3608AA20u); /* 0x3614823E: call 0x3608aa20 */ /* not lifted */ 6033 RECOMP_FLAGS_IN(); 6034 ecx = MEM32(edi + 0x8); /* 0x36148243: mov ecx, dword ptr [edi + 8] */ 6035 MEM32(eax) = ecx; /* 0x36148246: mov dword ptr [eax], ecx */ 6036 edx = MEM32(edi + 0x8); /* 0x36148248: mov edx, dword ptr [edi + 8] */ 6037 ecx = MEM32(ebp + 0xC); /* 0x3614824B: mov ecx, dword ptr [ebp + 0xc] */ 6038 MEM32(ebp + (-0x4)) = eax; /* 0x3614824E: mov dword ptr [ebp - 4], eax */ 6039 MEM32(eax + 0x8) = edx; /* 0x36148251: mov dword ptr [eax + 8], edx */ 6040 PUSH32(esp, ecx); /* 0x36148254: push ecx */ 6041 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 6042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6043 eax = eax + 0xCu; /* 0x36148255: add eax, 0xc */ 6044 _flag_k = FK_ADD; 6045 PUSH32(esp, eax); /* 0x36148258: push eax */ 6046 RECOMP_ICALL(0x36059750u); /* 0x36148259: call 0x36059750 */ /* not lifted */ 6047 RECOMP_FLAGS_IN(); 6048 ecx = MEM32(edi + 0x10); /* 0x3614825E: mov ecx, dword ptr [edi + 0x10] */ 6049 eax = MEM32(edi + 0x4); /* 0x36148261: mov eax, dword ptr [edi + 4] */ 6050 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6052 esp = esp + 8; /* 0x36148264: add esp, 8 */ 6053 _flag_k = FK_ADD; 6054 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6055 ecx = ecx + 1; /* 0x36148267: inc ecx */ 6056 _flag_k = FK_INC; 6057 /* cmp esi, eax */ /* 0x36148268: cmp esi, eax */ 6058 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6060 _flag_k = FK_CMP; 6061 MEM32(edi + 0x10) = ecx; /* 0x3614826A: mov dword ptr [edi + 0x10], ecx */ 6062 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148291; /* 0x3614826D: je 0x36148291 */ 6063 L_3614826F: 6064 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3614826F: cmp ebx, dword ptr [edi + 8] */ 6065 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6067 _flag_k = FK_CMP; 6068 if (CMP_NE(_flag_a, _flag_b)) goto L_36148291; /* 0x36148272: jne 0x36148291 */ 6069 L_36148274: 6070 edx = MEM32(ebp + 0xC); /* 0x36148274: mov edx, dword ptr [ebp + 0xc] */ 6071 eax = MEM32(edx); /* 0x36148277: mov eax, dword ptr [edx] */ 6072 /* cmp eax, MEM32(esi + 0xC) */ /* 0x36148279: cmp eax, dword ptr [esi + 0xc] */ 6073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 6074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6075 _flag_k = FK_CMP; 6076 if (CMP_B(_flag_a, _flag_b)) goto L_36148291; /* 0x3614827C: jb 0x36148291 */ 6077 L_3614827E: 6078 ebx = MEM32(ebp + (-0x4)); /* 0x3614827E: mov ebx, dword ptr [ebp - 4] */ 6079 MEM32(esi + 0x8) = ebx; /* 0x36148281: mov dword ptr [esi + 8], ebx */ 6080 eax = MEM32(edi + 0x4); /* 0x36148284: mov eax, dword ptr [edi + 4] */ 6081 /* cmp esi, MEM32(eax + 0x8) */ /* 0x36148287: cmp esi, dword ptr [eax + 8] */ 6082 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6084 _flag_k = FK_CMP; 6085 if (CMP_NE(_flag_a, _flag_b)) goto L_361482B4; /* 0x3614828A: jne 0x361482b4 */ 6086 L_3614828C: 6087 MEM32(eax + 0x8) = ebx; /* 0x3614828C: mov dword ptr [eax + 8], ebx */ 6088 goto L_361482B4; /* 0x3614828F: jmp 0x361482b4 */ 6089 L_36148291: 6090 ecx = MEM32(ebp + (-0x4)); /* 0x36148291: mov ecx, dword ptr [ebp - 4] */ 6091 MEM32(esi) = ecx; /* 0x36148294: mov dword ptr [esi], ecx */ 6092 eax = MEM32(edi + 0x4); /* 0x36148296: mov eax, dword ptr [edi + 4] */ 6093 /* cmp esi, eax */ /* 0x36148299: cmp esi, eax */ 6094 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6096 _flag_k = FK_CMP; 6097 if (CMP_NE(_flag_a, _flag_b)) goto L_361482A8; /* 0x3614829B: jne 0x361482a8 */ 6098 L_3614829D: 6099 MEM32(eax + 0x4) = ecx; /* 0x3614829D: mov dword ptr [eax + 4], ecx */ 6100 edx = MEM32(edi + 0x4); /* 0x361482A0: mov edx, dword ptr [edi + 4] */ 6101 MEM32(edx + 0x8) = ecx; /* 0x361482A3: mov dword ptr [edx + 8], ecx */ 6102 goto L_361482B1; /* 0x361482A6: jmp 0x361482b1 */ 6103 L_361482A8: 6104 /* cmp esi, MEM32(eax) */ /* 0x361482A8: cmp esi, dword ptr [eax] */ 6105 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 6106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6107 _flag_k = FK_CMP; 6108 if (CMP_NE(_flag_a, _flag_b)) goto L_361482B1; /* 0x361482AA: jne 0x361482b1 */ 6109 L_361482AC: 6110 ecx = MEM32(ebp + (-0x4)); /* 0x361482AC: mov ecx, dword ptr [ebp - 4] */ 6111 MEM32(eax) = ecx; /* 0x361482AF: mov dword ptr [eax], ecx */ 6112 L_361482B1: 6113 ebx = MEM32(ebp + (-0x4)); /* 0x361482B1: mov ebx, dword ptr [ebp - 4] */ 6114 L_361482B4: 6115 edx = MEM32(edi + 0x4); /* 0x361482B4: mov edx, dword ptr [edi + 4] */ 6116 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x361482B7: cmp ebx, dword ptr [edx + 4] */ 6117 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6119 _flag_k = FK_CMP; 6120 esi = ebx; /* 0x361482BA: mov esi, ebx */ 6121 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148387; /* 0x361482BC: je 0x36148387 */ 6122 L_361482C2: 6123 eax = MEM32(esi + 0x4); /* 0x361482C2: mov eax, dword ptr [esi + 4] */ 6124 SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x361482C5: mov cl, byte ptr [eax + 0x14] */ 6125 /* test LO8(ecx), LO8(ecx) */ /* 0x361482C8: test cl, cl */ 6126 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6127 _cf = 0; 6128 _flag_k = FK_NARROW(FK_TEST, 24); 6129 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148387; /* 0x361482CA: jne 0x36148387 */ 6130 L_361482D0: 6131 edx = MEM32(eax + 0x4); /* 0x361482D0: mov edx, dword ptr [eax + 4] */ 6132 ecx = MEM32(edx); /* 0x361482D3: mov ecx, dword ptr [edx] */ 6133 /* cmp eax, ecx */ /* 0x361482D5: cmp eax, ecx */ 6134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6136 _flag_k = FK_CMP; 6137 if (CMP_NE(_flag_a, _flag_b)) goto L_3614832D; /* 0x361482D7: jne 0x3614832d */ 6138 L_361482D9: 6139 ecx = MEM32(edx + 0x8); /* 0x361482D9: mov ecx, dword ptr [edx + 8] */ 6140 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x361482DC: mov dl, byte ptr [ecx + 0x14] */ 6141 /* test LO8(edx), LO8(edx) */ /* 0x361482DF: test dl, dl */ 6142 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6143 _cf = 0; 6144 _flag_k = FK_NARROW(FK_TEST, 24); 6145 if (TEST_NZ(_flag_a, _flag_b)) goto L_361482FD; /* 0x361482E1: jne 0x361482fd */ 6146 L_361482E3: 6147 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x361482E3: mov byte ptr [eax + 0x14], 1 */ 6148 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x361482E7: mov byte ptr [ecx + 0x14], 1 */ 6149 eax = MEM32(esi + 0x4); /* 0x361482EB: mov eax, dword ptr [esi + 4] */ 6150 ecx = MEM32(eax + 0x4); /* 0x361482EE: mov ecx, dword ptr [eax + 4] */ 6151 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x361482F1: mov byte ptr [ecx + 0x14], 0 */ 6152 edx = MEM32(esi + 0x4); /* 0x361482F5: mov edx, dword ptr [esi + 4] */ 6153 esi = MEM32(edx + 0x4); /* 0x361482F8: mov esi, dword ptr [edx + 4] */ 6154 goto L_3614837B; /* 0x361482FB: jmp 0x3614837b */ 6155 L_361482FD: 6156 /* cmp esi, MEM32(eax + 0x8) */ /* 0x361482FD: cmp esi, dword ptr [eax + 8] */ 6157 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6159 _flag_k = FK_CMP; 6160 if (CMP_NE(_flag_a, _flag_b)) goto L_3614830C; /* 0x36148300: jne 0x3614830c */ 6161 L_36148302: 6162 esi = eax; /* 0x36148302: mov esi, eax */ 6163 PUSH32(esp, esi); /* 0x36148304: push esi */ 6164 ecx = edi; /* 0x36148305: mov ecx, edi */ 6165 RECOMP_ICALL(0x36096920u); /* 0x36148307: call 0x36096920 */ /* not lifted */ 6166 RECOMP_FLAGS_IN(); 6167 L_3614830C: 6168 eax = MEM32(esi + 0x4); /* 0x3614830C: mov eax, dword ptr [esi + 4] */ 6169 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3614830F: mov byte ptr [eax + 0x14], 1 */ 6170 ecx = MEM32(esi + 0x4); /* 0x36148313: mov ecx, dword ptr [esi + 4] */ 6171 edx = MEM32(ecx + 0x4); /* 0x36148316: mov edx, dword ptr [ecx + 4] */ 6172 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x36148319: mov byte ptr [edx + 0x14], 0 */ 6173 eax = MEM32(esi + 0x4); /* 0x3614831D: mov eax, dword ptr [esi + 4] */ 6174 ecx = MEM32(eax + 0x4); /* 0x36148320: mov ecx, dword ptr [eax + 4] */ 6175 PUSH32(esp, ecx); /* 0x36148323: push ecx */ 6176 ecx = edi; /* 0x36148324: mov ecx, edi */ 6177 RECOMP_ICALL(0x360B4260u); /* 0x36148326: call 0x360b4260 */ /* not lifted */ 6178 RECOMP_FLAGS_IN(); 6179 goto L_3614837B; /* 0x3614832B: jmp 0x3614837b */ 6180 L_3614832D: 6181 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3614832D: mov dl, byte ptr [ecx + 0x14] */ 6182 /* test LO8(edx), LO8(edx) */ /* 0x36148330: test dl, dl */ 6183 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6184 _cf = 0; 6185 _flag_k = FK_NARROW(FK_TEST, 24); 6186 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614834E; /* 0x36148332: jne 0x3614834e */ 6187 L_36148334: 6188 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x36148334: mov byte ptr [eax + 0x14], 1 */ 6189 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x36148338: mov byte ptr [ecx + 0x14], 1 */ 6190 edx = MEM32(esi + 0x4); /* 0x3614833C: mov edx, dword ptr [esi + 4] */ 6191 eax = MEM32(edx + 0x4); /* 0x3614833F: mov eax, dword ptr [edx + 4] */ 6192 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x36148342: mov byte ptr [eax + 0x14], 0 */ 6193 ecx = MEM32(esi + 0x4); /* 0x36148346: mov ecx, dword ptr [esi + 4] */ 6194 esi = MEM32(ecx + 0x4); /* 0x36148349: mov esi, dword ptr [ecx + 4] */ 6195 goto L_3614837B; /* 0x3614834C: jmp 0x3614837b */ 6196 L_3614834E: 6197 /* cmp esi, MEM32(eax) */ /* 0x3614834E: cmp esi, dword ptr [eax] */ 6198 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 6199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6200 _flag_k = FK_CMP; 6201 if (CMP_NE(_flag_a, _flag_b)) goto L_3614835C; /* 0x36148350: jne 0x3614835c */ 6202 L_36148352: 6203 esi = eax; /* 0x36148352: mov esi, eax */ 6204 PUSH32(esp, esi); /* 0x36148354: push esi */ 6205 ecx = edi; /* 0x36148355: mov ecx, edi */ 6206 RECOMP_ICALL(0x360B4260u); /* 0x36148357: call 0x360b4260 */ /* not lifted */ 6207 RECOMP_FLAGS_IN(); 6208 L_3614835C: 6209 edx = MEM32(esi + 0x4); /* 0x3614835C: mov edx, dword ptr [esi + 4] */ 6210 MEM8(edx + 0x14) = (uint8_t)(1); /* 0x3614835F: mov byte ptr [edx + 0x14], 1 */ 6211 eax = MEM32(esi + 0x4); /* 0x36148363: mov eax, dword ptr [esi + 4] */ 6212 ecx = MEM32(eax + 0x4); /* 0x36148366: mov ecx, dword ptr [eax + 4] */ 6213 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36148369: mov byte ptr [ecx + 0x14], 0 */ 6214 edx = MEM32(esi + 0x4); /* 0x3614836D: mov edx, dword ptr [esi + 4] */ 6215 eax = MEM32(edx + 0x4); /* 0x36148370: mov eax, dword ptr [edx + 4] */ 6216 PUSH32(esp, eax); /* 0x36148373: push eax */ 6217 ecx = edi; /* 0x36148374: mov ecx, edi */ 6218 RECOMP_ICALL(0x36096920u); /* 0x36148376: call 0x36096920 */ /* not lifted */ 6219 RECOMP_FLAGS_IN(); 6220 L_3614837B: 6221 ecx = MEM32(edi + 0x4); /* 0x3614837B: mov ecx, dword ptr [edi + 4] */ 6222 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3614837E: cmp esi, dword ptr [ecx + 4] */ 6223 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6225 _flag_k = FK_CMP; 6226 RECOMP_BACKEDGE(); 6227 if (CMP_NE(_flag_a, _flag_b)) goto L_361482C2; /* 0x36148381: jne 0x361482c2 */ 6228 L_36148387: 6229 edx = MEM32(edi + 0x4); /* 0x36148387: mov edx, dword ptr [edi + 4] */ 6230 eax = MEM32(edx + 0x4); /* 0x3614838A: mov eax, dword ptr [edx + 4] */ 6231 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x3614838D: mov byte ptr [eax + 0x14], 1 */ 6232 eax = MEM32(ebp + 0x8); /* 0x36148391: mov eax, dword ptr [ebp + 8] */ 6233 edi = POP32_VAL(esp); /* 0x36148394: pop edi */ 6234 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x36148395: mov byte ptr [ebp - 8], 1 */ 6235 ecx = MEM32(ebp + (-0x8)); /* 0x36148399: mov ecx, dword ptr [ebp - 8] */ 6236 MEM32(eax) = ebx; /* 0x3614839C: mov dword ptr [eax], ebx */ 6237 esi = POP32_VAL(esp); /* 0x3614839E: pop esi */ 6238 MEM32(eax + 0x4) = ecx; /* 0x3614839F: mov dword ptr [eax + 4], ecx */ 6239 ebx = POP32_VAL(esp); /* 0x361483A2: pop ebx */ 6240 esp = ebp; /* 0x361483A3: mov esp, ebp */ 6241 ebp = POP32_VAL(esp); /* 0x361483A5: pop ebp */ 6242 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361483A6: ret 8 */ 6243 L_361483A9: 6244 /* test LO8(eax), LO8(eax) */ /* 0x361483A9: test al, al */ 6245 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6246 _cf = 0; 6247 _flag_k = FK_NARROW(FK_TEST, 24); 6248 edx = esi; /* 0x361483AB: mov edx, esi */ 6249 MEM32(ebp + (-0x8)) = edx; /* 0x361483AD: mov dword ptr [ebp - 8], edx */ 6250 if (TEST_Z(_flag_a, _flag_b)) goto L_361483EC; /* 0x361483B0: je 0x361483ec */ 6251 L_361483B2: 6252 /* cmp esi, MEM32(ecx) */ /* 0x361483B2: cmp esi, dword ptr [ecx] */ 6253 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 6254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6255 _flag_k = FK_CMP; 6256 if (CMP_NE(_flag_a, _flag_b)) goto L_361483E1; /* 0x361483B4: jne 0x361483e1 */ 6257 L_361483B6: 6258 edx = MEM32(ebp + 0xC); /* 0x361483B6: mov edx, dword ptr [ebp + 0xc] */ 6259 PUSH32(esp, edx); /* 0x361483B9: push edx */ 6260 PUSH32(esp, esi); /* 0x361483BA: push esi */ 6261 PUSH32(esp, ebx); /* 0x361483BB: push ebx */ 6262 eax = ebp + 0xC; /* 0x361483BC: lea eax, [ebp + 0xc] */ 6263 PUSH32(esp, eax); /* 0x361483BF: push eax */ 6264 ecx = edi; /* 0x361483C0: mov ecx, edi */ 6265 RECOMP_ICALL(0x360641F0u); /* 0x361483C2: call 0x360641f0 */ /* not lifted */ 6266 RECOMP_FLAGS_IN(); 6267 ecx = MEM32(eax); /* 0x361483C7: mov ecx, dword ptr [eax] */ 6268 eax = MEM32(ebp + 0x8); /* 0x361483C9: mov eax, dword ptr [ebp + 8] */ 6269 edi = POP32_VAL(esp); /* 0x361483CC: pop edi */ 6270 MEM32(eax) = ecx; /* 0x361483CD: mov dword ptr [eax], ecx */ 6271 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x361483CF: mov byte ptr [ebp - 8], 1 */ 6272 ecx = MEM32(ebp + (-0x8)); /* 0x361483D3: mov ecx, dword ptr [ebp - 8] */ 6273 esi = POP32_VAL(esp); /* 0x361483D6: pop esi */ 6274 MEM32(eax + 0x4) = ecx; /* 0x361483D7: mov dword ptr [eax + 4], ecx */ 6275 ebx = POP32_VAL(esp); /* 0x361483DA: pop ebx */ 6276 esp = ebp; /* 0x361483DB: mov esp, ebp */ 6277 ebp = POP32_VAL(esp); /* 0x361483DD: pop ebp */ 6278 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361483DE: ret 8 */ 6279 L_361483E1: 6280 ecx = ebp + (-0x8); /* 0x361483E1: lea ecx, [ebp - 8] */ 6281 RECOMP_ICALL(0x3614FCD0u); /* 0x361483E4: call 0x3614fcd0 */ /* not lifted */ 6282 RECOMP_FLAGS_IN(); 6283 edx = MEM32(ebp + (-0x8)); /* 0x361483E9: mov edx, dword ptr [ebp - 8] */ 6284 L_361483EC: 6285 ecx = MEM32(edx + 0xC); /* 0x361483EC: mov ecx, dword ptr [edx + 0xc] */ 6286 eax = MEM32(ebp + 0xC); /* 0x361483EF: mov eax, dword ptr [ebp + 0xc] */ 6287 /* cmp ecx, MEM32(eax) */ /* 0x361483F2: cmp ecx, dword ptr [eax] */ 6288 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 6289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6290 _flag_k = FK_CMP; 6291 if (CMP_AE(_flag_a, _flag_b)) goto L_3614841E; /* 0x361483F4: jae 0x3614841e */ 6292 L_361483F6: 6293 PUSH32(esp, eax); /* 0x361483F6: push eax */ 6294 PUSH32(esp, esi); /* 0x361483F7: push esi */ 6295 PUSH32(esp, ebx); /* 0x361483F8: push ebx */ 6296 edx = ebp + 0xC; /* 0x361483F9: lea edx, [ebp + 0xc] */ 6297 PUSH32(esp, edx); /* 0x361483FC: push edx */ 6298 ecx = edi; /* 0x361483FD: mov ecx, edi */ 6299 RECOMP_ICALL(0x360641F0u); /* 0x361483FF: call 0x360641f0 */ /* not lifted */ 6300 RECOMP_FLAGS_IN(); 6301 ecx = MEM32(eax); /* 0x36148404: mov ecx, dword ptr [eax] */ 6302 eax = MEM32(ebp + 0x8); /* 0x36148406: mov eax, dword ptr [ebp + 8] */ 6303 edi = POP32_VAL(esp); /* 0x36148409: pop edi */ 6304 MEM32(eax) = ecx; /* 0x3614840A: mov dword ptr [eax], ecx */ 6305 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3614840C: mov byte ptr [ebp - 8], 1 */ 6306 ecx = MEM32(ebp + (-0x8)); /* 0x36148410: mov ecx, dword ptr [ebp - 8] */ 6307 esi = POP32_VAL(esp); /* 0x36148413: pop esi */ 6308 MEM32(eax + 0x4) = ecx; /* 0x36148414: mov dword ptr [eax + 4], ecx */ 6309 ebx = POP32_VAL(esp); /* 0x36148417: pop ebx */ 6310 esp = ebp; /* 0x36148418: mov esp, ebp */ 6311 ebp = POP32_VAL(esp); /* 0x3614841A: pop ebp */ 6312 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614841B: ret 8 */ 6313 L_3614841E: 6314 eax = MEM32(ebp + 0x8); /* 0x3614841E: mov eax, dword ptr [ebp + 8] */ 6315 edi = POP32_VAL(esp); /* 0x36148421: pop edi */ 6316 MEM32(eax) = edx; /* 0x36148422: mov dword ptr [eax], edx */ 6317 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x36148424: mov byte ptr [ebp - 8], 0 */ 6318 edx = MEM32(ebp + (-0x8)); /* 0x36148428: mov edx, dword ptr [ebp - 8] */ 6319 esi = POP32_VAL(esp); /* 0x3614842B: pop esi */ 6320 MEM32(eax + 0x4) = edx; /* 0x3614842C: mov dword ptr [eax + 4], edx */ 6321 ebx = POP32_VAL(esp); /* 0x3614842F: pop ebx */ 6322 esp = ebp; /* 0x36148430: mov esp, ebp */ 6323 ebp = POP32_VAL(esp); /* 0x36148432: pop ebp */ 6324 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36148433: ret 8 */ 6325 RECOMP_REGS_OUT(); 6326 } 6327 6328 void sub_36148440(void) { 6329 int _fpu_cmp = 0; 6330 uint32_t _cf = 0; 6331 int _df = 1; 6332 uint32_t _flag_k = FK_NONE; 6333 uint32_t _flag_a = 0, _flag_b = 0; 6334 uint32_t _itail_tgt = 0; 6335 RECOMP_REGS_LOCALS 6336 RECOMP_ENTER(0x36148440u); 6337 6338 L_36148440: 6339 PUSH32(esp, ebp); /* 0x36148440: push ebp */ 6340 ebp = esp; /* 0x36148441: mov ebp, esp */ 6341 PUSH32(esp, ebx); /* 0x36148443: push ebx */ 6342 PUSH32(esp, esi); /* 0x36148444: push esi */ 6343 ebx = ecx; /* 0x36148445: mov ebx, ecx */ 6344 eax = MEM32(ebx + 0x8); /* 0x36148447: mov eax, dword ptr [ebx + 8] */ 6345 PUSH32(esp, edi); /* 0x3614844A: push edi */ 6346 edi = MEM32(ebp + 0x8); /* 0x3614844B: mov edi, dword ptr [ebp + 8] */ 6347 /* cmp edi, eax */ /* 0x3614844E: cmp edi, eax */ 6348 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6350 _flag_k = FK_CMP; 6351 esi = edi; /* 0x36148450: mov esi, edi */ 6352 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148473; /* 0x36148452: je 0x36148473 */ 6353 L_36148454: 6354 eax = MEM32(esi + 0x8); /* 0x36148454: mov eax, dword ptr [esi + 8] */ 6355 PUSH32(esp, eax); /* 0x36148457: push eax */ 6356 ecx = ebx; /* 0x36148458: mov ecx, ebx */ 6357 RECOMP_ICALL(0x36148440u); /* 0x3614845A: call 0x36148440 */ /* not lifted */ 6358 RECOMP_FLAGS_IN(); 6359 esi = MEM32(esi); /* 0x3614845F: mov esi, dword ptr [esi] */ 6360 PUSH32(esp, edi); /* 0x36148461: push edi */ 6361 RECOMP_ICALL(0x3615FCC4u); /* 0x36148462: call 0x3615fcc4 */ /* not lifted */ 6362 RECOMP_FLAGS_IN(); 6363 eax = MEM32(ebx + 0x8); /* 0x36148467: mov eax, dword ptr [ebx + 8] */ 6364 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6366 esp = esp + 4; /* 0x3614846A: add esp, 4 */ 6367 _flag_k = FK_ADD; 6368 /* cmp esi, eax */ /* 0x3614846D: cmp esi, eax */ 6369 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6371 _flag_k = FK_CMP; 6372 edi = esi; /* 0x3614846F: mov edi, esi */ 6373 RECOMP_BACKEDGE(); 6374 if (CMP_NE(_flag_a, _flag_b)) goto L_36148454; /* 0x36148471: jne 0x36148454 */ 6375 L_36148473: 6376 edi = POP32_VAL(esp); /* 0x36148473: pop edi */ 6377 esi = POP32_VAL(esp); /* 0x36148474: pop esi */ 6378 ebx = POP32_VAL(esp); /* 0x36148475: pop ebx */ 6379 ebp = POP32_VAL(esp); /* 0x36148476: pop ebp */ 6380 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36148477: ret 4 */ 6381 RECOMP_REGS_OUT(); 6382 } 6383 6384 void sub_36148480(void) { 6385 int _fpu_cmp = 0; 6386 uint32_t _cf = 0; 6387 int _df = 1; 6388 uint32_t _flag_k = FK_NONE; 6389 uint32_t _flag_a = 0, _flag_b = 0; 6390 uint32_t _itail_tgt = 0; 6391 RECOMP_REGS_LOCALS 6392 RECOMP_ENTER(0x36148480u); 6393 6394 L_36148480: 6395 PUSH32(esp, ebp); /* 0x36148480: push ebp */ 6396 ebp = esp; /* 0x36148481: mov ebp, esp */ 6397 PUSH32(esp, ebx); /* 0x36148483: push ebx */ 6398 PUSH32(esp, esi); /* 0x36148484: push esi */ 6399 ebx = ecx; /* 0x36148485: mov ebx, ecx */ 6400 eax = MEM32(ebx + 0x8); /* 0x36148487: mov eax, dword ptr [ebx + 8] */ 6401 PUSH32(esp, edi); /* 0x3614848A: push edi */ 6402 edi = MEM32(ebp + 0x8); /* 0x3614848B: mov edi, dword ptr [ebp + 8] */ 6403 /* cmp edi, eax */ /* 0x3614848E: cmp edi, eax */ 6404 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6406 _flag_k = FK_CMP; 6407 esi = edi; /* 0x36148490: mov esi, edi */ 6408 if (CMP_EQ(_flag_a, _flag_b)) goto L_361484B3; /* 0x36148492: je 0x361484b3 */ 6409 L_36148494: 6410 eax = MEM32(esi + 0x8); /* 0x36148494: mov eax, dword ptr [esi + 8] */ 6411 PUSH32(esp, eax); /* 0x36148497: push eax */ 6412 ecx = ebx; /* 0x36148498: mov ecx, ebx */ 6413 RECOMP_ICALL(0x36148480u); /* 0x3614849A: call 0x36148480 */ /* not lifted */ 6414 RECOMP_FLAGS_IN(); 6415 esi = MEM32(esi); /* 0x3614849F: mov esi, dword ptr [esi] */ 6416 PUSH32(esp, edi); /* 0x361484A1: push edi */ 6417 RECOMP_ICALL(0x3615FCC4u); /* 0x361484A2: call 0x3615fcc4 */ /* not lifted */ 6418 RECOMP_FLAGS_IN(); 6419 eax = MEM32(ebx + 0x8); /* 0x361484A7: mov eax, dword ptr [ebx + 8] */ 6420 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6421 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6422 esp = esp + 4; /* 0x361484AA: add esp, 4 */ 6423 _flag_k = FK_ADD; 6424 /* cmp esi, eax */ /* 0x361484AD: cmp esi, eax */ 6425 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6427 _flag_k = FK_CMP; 6428 edi = esi; /* 0x361484AF: mov edi, esi */ 6429 RECOMP_BACKEDGE(); 6430 if (CMP_NE(_flag_a, _flag_b)) goto L_36148494; /* 0x361484B1: jne 0x36148494 */ 6431 L_361484B3: 6432 edi = POP32_VAL(esp); /* 0x361484B3: pop edi */ 6433 esi = POP32_VAL(esp); /* 0x361484B4: pop esi */ 6434 ebx = POP32_VAL(esp); /* 0x361484B5: pop ebx */ 6435 ebp = POP32_VAL(esp); /* 0x361484B6: pop ebp */ 6436 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361484B7: ret 4 */ 6437 RECOMP_REGS_OUT(); 6438 } 6439 6440 void sub_361484C0(void) { 6441 int _fpu_cmp = 0; 6442 uint32_t _cf = 0; 6443 int _df = 1; 6444 uint32_t _flag_k = FK_NONE; 6445 uint32_t _flag_a = 0, _flag_b = 0; 6446 uint32_t _itail_tgt = 0; 6447 RECOMP_REGS_LOCALS 6448 RECOMP_ENTER(0x361484C0u); 6449 6450 L_361484C0: 6451 eax = ecx; /* 0x361484C0: mov eax, ecx */ 6452 MEM32(eax + 0x4) = 0; /* 0x361484C2: mov dword ptr [eax + 4], 0 */ 6453 MEM32(eax) = 0x36178884u; /* 0x361484C9: mov dword ptr [eax], 0x36178884 */ 6454 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361484CF: ret */ 6455 RECOMP_REGS_OUT(); 6456 } 6457 6458 void sub_361484D0(void) { 6459 int _fpu_cmp = 0; 6460 uint32_t _cf = 0; 6461 int _df = 1; 6462 uint32_t _flag_k = FK_NONE; 6463 uint32_t _flag_a = 0, _flag_b = 0; 6464 uint32_t _itail_tgt = 0; 6465 RECOMP_REGS_LOCALS 6466 RECOMP_ENTER(0x361484D0u); 6467 6468 L_361484D0: 6469 PUSH32(esp, ebp); /* 0x361484D0: push ebp */ 6470 ebp = esp; /* 0x361484D1: mov ebp, esp */ 6471 PUSH32(esp, esi); /* 0x361484D3: push esi */ 6472 esi = ecx; /* 0x361484D4: mov esi, ecx */ 6473 RECOMP_ICALL(0x36148500u); /* 0x361484D6: call 0x36148500 */ /* not lifted */ 6474 RECOMP_FLAGS_IN(); 6475 /* test MEM8(ebp + 0x8), 1 */ /* 0x361484DB: test byte ptr [ebp + 8], 1 */ 6476 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6477 _cf = 0; 6478 _flag_k = FK_NARROW(FK_TEST, 24); 6479 if (TEST_Z(_flag_a, _flag_b)) goto L_361484EA; /* 0x361484DF: je 0x361484ea */ 6480 L_361484E1: 6481 PUSH32(esp, esi); /* 0x361484E1: push esi */ 6482 RECOMP_ICALL(0x3615FCC4u); /* 0x361484E2: call 0x3615fcc4 */ /* not lifted */ 6483 RECOMP_FLAGS_IN(); 6484 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6486 esp = esp + 4; /* 0x361484E7: add esp, 4 */ 6487 _flag_k = FK_ADD; 6488 L_361484EA: 6489 eax = esi; /* 0x361484EA: mov eax, esi */ 6490 esi = POP32_VAL(esp); /* 0x361484EC: pop esi */ 6491 ebp = POP32_VAL(esp); /* 0x361484ED: pop ebp */ 6492 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361484EE: ret 4 */ 6493 RECOMP_REGS_OUT(); 6494 } 6495 6496 void sub_36148500(void) { 6497 int _fpu_cmp = 0; 6498 uint32_t _cf = 0; 6499 int _df = 1; 6500 uint32_t _flag_k = FK_NONE; 6501 uint32_t _flag_a = 0, _flag_b = 0; 6502 uint32_t _itail_tgt = 0; 6503 RECOMP_REGS_LOCALS 6504 RECOMP_ENTER(0x36148500u); 6505 6506 L_36148500: 6507 PUSH32(esp, esi); /* 0x36148500: push esi */ 6508 esi = ecx; /* 0x36148501: mov esi, ecx */ 6509 PUSH32(esp, edi); /* 0x36148503: push edi */ 6510 edi = MEM32(esi + 0x4); /* 0x36148504: mov edi, dword ptr [esi + 4] */ 6511 /* test edi, edi */ /* 0x36148507: test edi, edi */ 6512 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6513 _cf = 0; 6514 _flag_k = FK_TEST; 6515 MEM32(esi) = 0x36178884u; /* 0x36148509: mov dword ptr [esi], 0x36178884 */ 6516 if (TEST_Z(_flag_a, _flag_b)) goto L_36148521; /* 0x3614850F: je 0x36148521 */ 6517 L_36148511: 6518 ecx = edi; /* 0x36148511: mov ecx, edi */ 6519 RECOMP_ICALL(0x36148AC0u); /* 0x36148513: call 0x36148ac0 */ /* not lifted */ 6520 RECOMP_FLAGS_IN(); 6521 PUSH32(esp, edi); /* 0x36148518: push edi */ 6522 RECOMP_ICALL(0x3615FCC4u); /* 0x36148519: call 0x3615fcc4 */ /* not lifted */ 6523 RECOMP_FLAGS_IN(); 6524 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6526 esp = esp + 4; /* 0x3614851E: add esp, 4 */ 6527 _flag_k = FK_ADD; 6528 L_36148521: 6529 edi = POP32_VAL(esp); /* 0x36148521: pop edi */ 6530 MEM32(esi + 0x4) = 0; /* 0x36148522: mov dword ptr [esi + 4], 0 */ 6531 esi = POP32_VAL(esp); /* 0x36148529: pop esi */ 6532 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614852A: ret */ 6533 RECOMP_REGS_OUT(); 6534 } 6535 6536 void sub_36148530(void) { 6537 int _fpu_cmp = 0; 6538 uint32_t _cf = 0; 6539 int _df = 1; 6540 uint32_t _flag_k = FK_NONE; 6541 uint32_t _flag_a = 0, _flag_b = 0; 6542 uint32_t _itail_tgt = 0; 6543 RECOMP_REGS_LOCALS 6544 RECOMP_ENTER(0x36148530u); 6545 6546 L_36148530: 6547 eax = MEM32(ecx + 0x4); /* 0x36148530: mov eax, dword ptr [ecx + 4] */ 6548 eax = MEM32(eax); /* 0x36148533: mov eax, dword ptr [eax] */ 6549 eax = MEM32(eax + 0x4); /* 0x36148535: mov eax, dword ptr [eax + 4] */ 6550 /* test eax, eax */ /* 0x36148538: test eax, eax */ 6551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6552 _cf = 0; 6553 _flag_k = FK_TEST; 6554 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148541; /* 0x3614853A: jne 0x36148541 */ 6555 L_3614853C: 6556 eax = MEM32(0x3616F10C); /* 0x3614853C: mov eax, dword ptr [0x3616f10c] */ 6557 L_36148541: 6558 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36148541: ret */ 6559 RECOMP_REGS_OUT(); 6560 } 6561 6562 void sub_36148550(void) { 6563 int _fpu_cmp = 0; 6564 uint32_t _cf = 0; 6565 int _df = 1; 6566 uint32_t _flag_k = FK_NONE; 6567 uint32_t _flag_a = 0, _flag_b = 0; 6568 uint32_t _itail_tgt = 0; 6569 RECOMP_REGS_LOCALS 6570 RECOMP_ENTER(0x36148550u); 6571 6572 L_36148550: 6573 eax = MEM32(ecx + 0x4); /* 0x36148550: mov eax, dword ptr [ecx + 4] */ 6574 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 6575 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6576 eax = eax + 0x10u; /* 0x36148553: add eax, 0x10 */ 6577 _flag_k = FK_ADD; 6578 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36148556: ret */ 6579 RECOMP_REGS_OUT(); 6580 } 6581 6582 void sub_36148560(void) { 6583 int _fpu_cmp = 0; 6584 uint32_t _cf = 0; 6585 int _df = 1; 6586 uint32_t _flag_k = FK_NONE; 6587 uint32_t _flag_a = 0, _flag_b = 0; 6588 uint32_t _itail_tgt = 0; 6589 RECOMP_REGS_LOCALS 6590 RECOMP_ENTER(0x36148560u); 6591 6592 L_36148560: 6593 eax = MEM32(ecx + 0x4); /* 0x36148560: mov eax, dword ptr [ecx + 4] */ 6594 eax = MEM32(eax + 0x5C); /* 0x36148563: mov eax, dword ptr [eax + 0x5c] */ 6595 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36148566: ret */ 6596 RECOMP_REGS_OUT(); 6597 } 6598 6599 void sub_36148570(void) { 6600 int _fpu_cmp = 0; 6601 uint32_t _cf = 0; 6602 int _df = 1; 6603 uint32_t _flag_k = FK_NONE; 6604 uint32_t _flag_a = 0, _flag_b = 0; 6605 uint32_t _itail_tgt = 0; 6606 RECOMP_REGS_LOCALS 6607 RECOMP_ENTER(0x36148570u); 6608 6609 L_36148570: 6610 PUSH32(esp, ebp); /* 0x36148570: push ebp */ 6611 ebp = esp; /* 0x36148571: mov ebp, esp */ 6612 PUSH32(esp, ecx); /* 0x36148573: push ecx */ 6613 PUSH32(esp, esi); /* 0x36148574: push esi */ 6614 esi = ecx; /* 0x36148575: mov esi, ecx */ 6615 PUSH32(esp, edi); /* 0x36148577: push edi */ 6616 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6617 edi = 0; /* 0x36148578: xor edi, edi */ 6618 _cf = 0; 6619 _flag_k = FK_TEST; 6620 MEM32(esi) = edi; /* 0x3614857A: mov dword ptr [esi], edi */ 6621 MEM32(esi + 0x4) = edi; /* 0x3614857C: mov dword ptr [esi + 4], edi */ 6622 MEM32(esi + 0x8) = edi; /* 0x3614857F: mov dword ptr [esi + 8], edi */ 6623 MEM32(esi + 0xC) = edi; /* 0x36148582: mov dword ptr [esi + 0xc], edi */ 6624 PUSH32(esp, 0x10u); /* 0x36148585: push 0x10 */ 6625 MEM32(esi + 0x34) = edi; /* 0x36148587: mov dword ptr [esi + 0x34], edi */ 6626 MEM32(esi + 0x38) = edi; /* 0x3614858A: mov dword ptr [esi + 0x38], edi */ 6627 MEM32(esi + 0x3C) = edi; /* 0x3614858D: mov dword ptr [esi + 0x3c], edi */ 6628 MEM32(esi + 0x40) = edi; /* 0x36148590: mov dword ptr [esi + 0x40], edi */ 6629 MEM32(esi + 0x44) = edi; /* 0x36148593: mov dword ptr [esi + 0x44], edi */ 6630 MEM32(esi + 0x48) = 0xBF800000u; /* 0x36148596: mov dword ptr [esi + 0x48], 0xbf800000 */ 6631 MEM32(esi + 0x4C) = 1; /* 0x3614859D: mov dword ptr [esi + 0x4c], 1 */ 6632 MEM32(esi + 0x50) = edi; /* 0x361485A4: mov dword ptr [esi + 0x50], edi */ 6633 MEM32(esi + 0x54) = edi; /* 0x361485A7: mov dword ptr [esi + 0x54], edi */ 6634 MEM32(esi + 0x58) = edi; /* 0x361485AA: mov dword ptr [esi + 0x58], edi */ 6635 MEM32(esi + 0x5C) = edi; /* 0x361485AD: mov dword ptr [esi + 0x5c], edi */ 6636 MEM32(esi + 0x60) = edi; /* 0x361485B0: mov dword ptr [esi + 0x60], edi */ 6637 RECOMP_ICALL(0x3615FD6Au); /* 0x361485B3: call 0x3615fd6a */ /* not lifted */ 6638 RECOMP_FLAGS_IN(); 6639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6641 esp = esp + 4; /* 0x361485B8: add esp, 4 */ 6642 _flag_k = FK_ADD; 6643 /* cmp eax, edi */ /* 0x361485BB: cmp eax, edi */ 6644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6646 _flag_k = FK_CMP; 6647 if (CMP_EQ(_flag_a, _flag_b)) goto L_361485CF; /* 0x361485BD: je 0x361485cf */ 6648 L_361485BF: 6649 SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x361485BF: mov cl, byte ptr [ebp - 1] */ 6650 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x361485C2: mov byte ptr [eax], cl */ 6651 MEM32(eax + 0x4) = edi; /* 0x361485C4: mov dword ptr [eax + 4], edi */ 6652 MEM32(eax + 0x8) = edi; /* 0x361485C7: mov dword ptr [eax + 8], edi */ 6653 MEM32(eax + 0xC) = edi; /* 0x361485CA: mov dword ptr [eax + 0xc], edi */ 6654 goto L_361485D1; /* 0x361485CD: jmp 0x361485d1 */ 6655 L_361485CF: 6656 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6657 eax = 0; /* 0x361485CF: xor eax, eax */ 6658 _cf = 0; 6659 _flag_k = FK_TEST; 6660 L_361485D1: 6661 PUSH32(esp, 0x10u); /* 0x361485D1: push 0x10 */ 6662 MEM32(esi) = eax; /* 0x361485D3: mov dword ptr [esi], eax */ 6663 RECOMP_ICALL(0x3615FD6Au); /* 0x361485D5: call 0x3615fd6a */ /* not lifted */ 6664 RECOMP_FLAGS_IN(); 6665 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6667 esp = esp + 4; /* 0x361485DA: add esp, 4 */ 6668 _flag_k = FK_ADD; 6669 /* cmp eax, edi */ /* 0x361485DD: cmp eax, edi */ 6670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6672 _flag_k = FK_CMP; 6673 if (CMP_EQ(_flag_a, _flag_b)) goto L_361485F1; /* 0x361485DF: je 0x361485f1 */ 6674 L_361485E1: 6675 SET_LO8(edx, MEM8(ebp + (-0x1))); /* 0x361485E1: mov dl, byte ptr [ebp - 1] */ 6676 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x361485E4: mov byte ptr [eax], dl */ 6677 MEM32(eax + 0x4) = edi; /* 0x361485E6: mov dword ptr [eax + 4], edi */ 6678 MEM32(eax + 0x8) = edi; /* 0x361485E9: mov dword ptr [eax + 8], edi */ 6679 MEM32(eax + 0xC) = edi; /* 0x361485EC: mov dword ptr [eax + 0xc], edi */ 6680 goto L_361485F3; /* 0x361485EF: jmp 0x361485f3 */ 6681 L_361485F1: 6682 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6683 eax = 0; /* 0x361485F1: xor eax, eax */ 6684 _cf = 0; 6685 _flag_k = FK_TEST; 6686 L_361485F3: 6687 PUSH32(esp, 0x10u); /* 0x361485F3: push 0x10 */ 6688 MEM32(esi + 0x50) = eax; /* 0x361485F5: mov dword ptr [esi + 0x50], eax */ 6689 RECOMP_ICALL(0x3615FD6Au); /* 0x361485F8: call 0x3615fd6a */ /* not lifted */ 6690 RECOMP_FLAGS_IN(); 6691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6693 esp = esp + 4; /* 0x361485FD: add esp, 4 */ 6694 _flag_k = FK_ADD; 6695 /* cmp eax, edi */ /* 0x36148600: cmp eax, edi */ 6696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6698 _flag_k = FK_CMP; 6699 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148614; /* 0x36148602: je 0x36148614 */ 6700 L_36148604: 6701 SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x36148604: mov cl, byte ptr [ebp - 1] */ 6702 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x36148607: mov byte ptr [eax], cl */ 6703 MEM32(eax + 0x4) = edi; /* 0x36148609: mov dword ptr [eax + 4], edi */ 6704 MEM32(eax + 0x8) = edi; /* 0x3614860C: mov dword ptr [eax + 8], edi */ 6705 MEM32(eax + 0xC) = edi; /* 0x3614860F: mov dword ptr [eax + 0xc], edi */ 6706 goto L_36148616; /* 0x36148612: jmp 0x36148616 */ 6707 L_36148614: 6708 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6709 eax = 0; /* 0x36148614: xor eax, eax */ 6710 _cf = 0; 6711 _flag_k = FK_TEST; 6712 L_36148616: 6713 PUSH32(esp, 0x10u); /* 0x36148616: push 0x10 */ 6714 MEM32(esi + 0x54) = eax; /* 0x36148618: mov dword ptr [esi + 0x54], eax */ 6715 RECOMP_ICALL(0x3615FD6Au); /* 0x3614861B: call 0x3615fd6a */ /* not lifted */ 6716 RECOMP_FLAGS_IN(); 6717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6719 esp = esp + 4; /* 0x36148620: add esp, 4 */ 6720 _flag_k = FK_ADD; 6721 /* cmp eax, edi */ /* 0x36148623: cmp eax, edi */ 6722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6724 _flag_k = FK_CMP; 6725 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148637; /* 0x36148625: je 0x36148637 */ 6726 L_36148627: 6727 SET_LO8(edx, MEM8(ebp + (-0x1))); /* 0x36148627: mov dl, byte ptr [ebp - 1] */ 6728 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3614862A: mov byte ptr [eax], dl */ 6729 MEM32(eax + 0x4) = edi; /* 0x3614862C: mov dword ptr [eax + 4], edi */ 6730 MEM32(eax + 0x8) = edi; /* 0x3614862F: mov dword ptr [eax + 8], edi */ 6731 MEM32(eax + 0xC) = edi; /* 0x36148632: mov dword ptr [eax + 0xc], edi */ 6732 goto L_36148639; /* 0x36148635: jmp 0x36148639 */ 6733 L_36148637: 6734 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6735 eax = 0; /* 0x36148637: xor eax, eax */ 6736 _cf = 0; 6737 _flag_k = FK_TEST; 6738 L_36148639: 6739 PUSH32(esp, 0x10u); /* 0x36148639: push 0x10 */ 6740 MEM32(esi + 0x58) = eax; /* 0x3614863B: mov dword ptr [esi + 0x58], eax */ 6741 RECOMP_ICALL(0x3615FD6Au); /* 0x3614863E: call 0x3615fd6a */ /* not lifted */ 6742 RECOMP_FLAGS_IN(); 6743 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6745 esp = esp + 4; /* 0x36148643: add esp, 4 */ 6746 _flag_k = FK_ADD; 6747 /* cmp eax, edi */ /* 0x36148646: cmp eax, edi */ 6748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6750 _flag_k = FK_CMP; 6751 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614865A; /* 0x36148648: je 0x3614865a */ 6752 L_3614864A: 6753 SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x3614864A: mov cl, byte ptr [ebp - 1] */ 6754 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3614864D: mov byte ptr [eax], cl */ 6755 MEM32(eax + 0x4) = edi; /* 0x3614864F: mov dword ptr [eax + 4], edi */ 6756 MEM32(eax + 0x8) = edi; /* 0x36148652: mov dword ptr [eax + 8], edi */ 6757 MEM32(eax + 0xC) = edi; /* 0x36148655: mov dword ptr [eax + 0xc], edi */ 6758 goto L_3614865C; /* 0x36148658: jmp 0x3614865c */ 6759 L_3614865A: 6760 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6761 eax = 0; /* 0x3614865A: xor eax, eax */ 6762 _cf = 0; 6763 _flag_k = FK_TEST; 6764 L_3614865C: 6765 MEM32(esi + 0x10) = edi; /* 0x3614865C: mov dword ptr [esi + 0x10], edi */ 6766 MEM32(esi + 0x14) = edi; /* 0x3614865F: mov dword ptr [esi + 0x14], edi */ 6767 MEM32(esi + 0x18) = edi; /* 0x36148662: mov dword ptr [esi + 0x18], edi */ 6768 MEM32(esi + 0x1C) = edi; /* 0x36148665: mov dword ptr [esi + 0x1c], edi */ 6769 MEM32(esi + 0x20) = edi; /* 0x36148668: mov dword ptr [esi + 0x20], edi */ 6770 MEM32(esi + 0x24) = edi; /* 0x3614866B: mov dword ptr [esi + 0x24], edi */ 6771 MEM32(esi + 0x28) = edi; /* 0x3614866E: mov dword ptr [esi + 0x28], edi */ 6772 MEM32(esi + 0x2C) = edi; /* 0x36148671: mov dword ptr [esi + 0x2c], edi */ 6773 MEM32(esi + 0x30) = edi; /* 0x36148674: mov dword ptr [esi + 0x30], edi */ 6774 MEM32(esi + 0x5C) = eax; /* 0x36148677: mov dword ptr [esi + 0x5c], eax */ 6775 edi = POP32_VAL(esp); /* 0x3614867A: pop edi */ 6776 eax = esi; /* 0x3614867B: mov eax, esi */ 6777 esi = POP32_VAL(esp); /* 0x3614867D: pop esi */ 6778 esp = ebp; /* 0x3614867E: mov esp, ebp */ 6779 ebp = POP32_VAL(esp); /* 0x36148680: pop ebp */ 6780 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36148681: ret */ 6781 RECOMP_REGS_OUT(); 6782 } 6783 6784 void sub_36148690(void) { 6785 int _fpu_cmp = 0; 6786 uint32_t _cf = 0; 6787 int _df = 1; 6788 uint32_t _flag_k = FK_NONE; 6789 uint32_t _flag_a = 0, _flag_b = 0; 6790 uint32_t _itail_tgt = 0; 6791 RECOMP_REGS_LOCALS 6792 RECOMP_ENTER(0x36148690u); 6793 6794 L_36148690: 6795 PUSH32(esp, ebp); /* 0x36148690: push ebp */ 6796 ebp = esp; /* 0x36148691: mov ebp, esp */ 6797 PUSH32(esp, 0xFFFFFFFFu); /* 0x36148693: push -1 */ 6798 PUSH32(esp, 0x3616D0DBu); /* 0x36148695: push 0x3616d0db */ 6799 eax = MEM32(FS_BASE + (0)); /* 0x3614869A: mov eax, dword ptr fs:[0] */ 6800 PUSH32(esp, eax); /* 0x361486A0: push eax */ 6801 MEM32(FS_BASE + (0)) = esp; /* 0x361486A1: mov dword ptr fs:[0], esp */ 6802 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6804 esp = esp - 0x14u; /* 0x361486A8: sub esp, 0x14 */ 6805 _flag_k = FK_CMP; 6806 PUSH32(esp, ebx); /* 0x361486AB: push ebx */ 6807 ebx = ecx; /* 0x361486AC: mov ebx, ecx */ 6808 PUSH32(esp, esi); /* 0x361486AE: push esi */ 6809 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6810 esi = 0; /* 0x361486AF: xor esi, esi */ 6811 _cf = 0; 6812 _flag_k = FK_TEST; 6813 MEM32(ebx) = esi; /* 0x361486B1: mov dword ptr [ebx], esi */ 6814 PUSH32(esp, edi); /* 0x361486B3: push edi */ 6815 edi = MEM32(ebp + 0x8); /* 0x361486B4: mov edi, dword ptr [ebp + 8] */ 6816 eax = edi + 0x4; /* 0x361486B7: lea eax, [edi + 4] */ 6817 edx = MEM32(eax); /* 0x361486BA: mov edx, dword ptr [eax] */ 6818 ecx = ebx + 0x4; /* 0x361486BC: lea ecx, [ebx + 4] */ 6819 MEM32(ecx) = edx; /* 0x361486BF: mov dword ptr [ecx], edx */ 6820 edx = MEM32(eax + 0x4); /* 0x361486C1: mov edx, dword ptr [eax + 4] */ 6821 MEM32(ecx + 0x4) = edx; /* 0x361486C4: mov dword ptr [ecx + 4], edx */ 6822 eax = MEM32(eax + 0x8); /* 0x361486C7: mov eax, dword ptr [eax + 8] */ 6823 MEM32(ecx + 0x8) = eax; /* 0x361486CA: mov dword ptr [ecx + 8], eax */ 6824 ecx = MEM32(edi + 0x34); /* 0x361486CD: mov ecx, dword ptr [edi + 0x34] */ 6825 MEM32(ebx + 0x34) = ecx; /* 0x361486D0: mov dword ptr [ebx + 0x34], ecx */ 6826 edx = MEM32(edi + 0x38); /* 0x361486D3: mov edx, dword ptr [edi + 0x38] */ 6827 MEM32(ebx + 0x38) = edx; /* 0x361486D6: mov dword ptr [ebx + 0x38], edx */ 6828 eax = MEM32(edi + 0x3C); /* 0x361486D9: mov eax, dword ptr [edi + 0x3c] */ 6829 MEM32(ebx + 0x3C) = eax; /* 0x361486DC: mov dword ptr [ebx + 0x3c], eax */ 6830 ecx = MEM32(edi + 0x40); /* 0x361486DF: mov ecx, dword ptr [edi + 0x40] */ 6831 MEM32(ebx + 0x40) = ecx; /* 0x361486E2: mov dword ptr [ebx + 0x40], ecx */ 6832 edx = MEM32(edi + 0x44); /* 0x361486E5: mov edx, dword ptr [edi + 0x44] */ 6833 MEM32(ebx + 0x44) = edx; /* 0x361486E8: mov dword ptr [ebx + 0x44], edx */ 6834 eax = MEM32(edi + 0x48); /* 0x361486EB: mov eax, dword ptr [edi + 0x48] */ 6835 MEM32(ebx + 0x48) = eax; /* 0x361486EE: mov dword ptr [ebx + 0x48], eax */ 6836 ecx = MEM32(edi + 0x4C); /* 0x361486F1: mov ecx, dword ptr [edi + 0x4c] */ 6837 PUSH32(esp, 0x10u); /* 0x361486F4: push 0x10 */ 6838 MEM32(ebp + (-0x18)) = ebx; /* 0x361486F6: mov dword ptr [ebp - 0x18], ebx */ 6839 MEM32(ebx + 0x4C) = ecx; /* 0x361486F9: mov dword ptr [ebx + 0x4c], ecx */ 6840 MEM32(ebx + 0x50) = esi; /* 0x361486FC: mov dword ptr [ebx + 0x50], esi */ 6841 MEM32(ebx + 0x54) = esi; /* 0x361486FF: mov dword ptr [ebx + 0x54], esi */ 6842 MEM32(ebx + 0x58) = esi; /* 0x36148702: mov dword ptr [ebx + 0x58], esi */ 6843 MEM32(ebx + 0x5C) = esi; /* 0x36148705: mov dword ptr [ebx + 0x5c], esi */ 6844 MEM32(ebx + 0x60) = esi; /* 0x36148708: mov dword ptr [ebx + 0x60], esi */ 6845 RECOMP_ICALL(0x3615FD6Au); /* 0x3614870B: call 0x3615fd6a */ /* not lifted */ 6846 RECOMP_FLAGS_IN(); 6847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6849 esp = esp + 4; /* 0x36148710: add esp, 4 */ 6850 _flag_k = FK_ADD; 6851 MEM32(ebp + (-0x14)) = eax; /* 0x36148713: mov dword ptr [ebp - 0x14], eax */ 6852 /* cmp eax, esi */ /* 0x36148716: cmp eax, esi */ 6853 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6855 _flag_k = FK_CMP; 6856 MEM32(ebp + (-0x4)) = esi; /* 0x36148718: mov dword ptr [ebp - 4], esi */ 6857 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614874A; /* 0x3614871B: je 0x3614874a */ 6858 L_3614871D: 6859 ecx = MEM32(edi); /* 0x3614871D: mov ecx, dword ptr [edi] */ 6860 SET_LO8(edx, MEM8(ecx)); /* 0x3614871F: mov dl, byte ptr [ecx] */ 6861 MEM32(ebp + (-0x10)) = ecx; /* 0x36148721: mov dword ptr [ebp - 0x10], ecx */ 6862 PUSH32(esp, esi); /* 0x36148724: push esi */ 6863 ecx = eax; /* 0x36148725: mov ecx, eax */ 6864 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x36148727: mov byte ptr [eax], dl */ 6865 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36148729: call dword ptr [0x3616f100] */ 6866 RECOMP_FLAGS_IN(); 6867 eax = MEM32(0x3616F010); /* 0x3614872F: mov eax, dword ptr [0x3616f010] */ 6868 ecx = MEM32(eax); /* 0x36148734: mov ecx, dword ptr [eax] */ 6869 edx = MEM32(ebp + (-0x10)); /* 0x36148736: mov edx, dword ptr [ebp - 0x10] */ 6870 PUSH32(esp, ecx); /* 0x36148739: push ecx */ 6871 ecx = MEM32(ebp + (-0x14)); /* 0x3614873A: mov ecx, dword ptr [ebp - 0x14] */ 6872 PUSH32(esp, esi); /* 0x3614873D: push esi */ 6873 PUSH32(esp, edx); /* 0x3614873E: push edx */ 6874 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x3614873F: call dword ptr [0x3616f024] */ 6875 RECOMP_FLAGS_IN(); 6876 eax = MEM32(ebp + (-0x14)); /* 0x36148745: mov eax, dword ptr [ebp - 0x14] */ 6877 goto L_3614874C; /* 0x36148748: jmp 0x3614874c */ 6878 L_3614874A: 6879 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6880 eax = 0; /* 0x3614874A: xor eax, eax */ 6881 _cf = 0; 6882 _flag_k = FK_TEST; 6883 L_3614874C: 6884 PUSH32(esp, 0x10u); /* 0x3614874C: push 0x10 */ 6885 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3614874E: mov dword ptr [ebp - 4], 0xffffffff */ 6886 MEM32(ebx) = eax; /* 0x36148755: mov dword ptr [ebx], eax */ 6887 RECOMP_ICALL(0x3615FD6Au); /* 0x36148757: call 0x3615fd6a */ /* not lifted */ 6888 RECOMP_FLAGS_IN(); 6889 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6890 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6891 esp = esp + 4; /* 0x3614875C: add esp, 4 */ 6892 _flag_k = FK_ADD; 6893 /* cmp eax, esi */ /* 0x3614875F: cmp eax, esi */ 6894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6896 _flag_k = FK_CMP; 6897 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148773; /* 0x36148761: je 0x36148773 */ 6898 L_36148763: 6899 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36148763: mov cl, byte ptr [ebp + 0xb] */ 6900 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x36148766: mov byte ptr [eax], cl */ 6901 MEM32(eax + 0x4) = esi; /* 0x36148768: mov dword ptr [eax + 4], esi */ 6902 MEM32(eax + 0x8) = esi; /* 0x3614876B: mov dword ptr [eax + 8], esi */ 6903 MEM32(eax + 0xC) = esi; /* 0x3614876E: mov dword ptr [eax + 0xc], esi */ 6904 goto L_36148775; /* 0x36148771: jmp 0x36148775 */ 6905 L_36148773: 6906 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6907 eax = 0; /* 0x36148773: xor eax, eax */ 6908 _cf = 0; 6909 _flag_k = FK_TEST; 6910 L_36148775: 6911 PUSH32(esp, 0x10u); /* 0x36148775: push 0x10 */ 6912 MEM32(ebx + 0x50) = eax; /* 0x36148777: mov dword ptr [ebx + 0x50], eax */ 6913 RECOMP_ICALL(0x3615FD6Au); /* 0x3614877A: call 0x3615fd6a */ /* not lifted */ 6914 RECOMP_FLAGS_IN(); 6915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6917 esp = esp + 4; /* 0x3614877F: add esp, 4 */ 6918 _flag_k = FK_ADD; 6919 /* cmp eax, esi */ /* 0x36148782: cmp eax, esi */ 6920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6922 _flag_k = FK_CMP; 6923 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148796; /* 0x36148784: je 0x36148796 */ 6924 L_36148786: 6925 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36148786: mov dl, byte ptr [ebp + 0xb] */ 6926 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x36148789: mov byte ptr [eax], dl */ 6927 MEM32(eax + 0x4) = esi; /* 0x3614878B: mov dword ptr [eax + 4], esi */ 6928 MEM32(eax + 0x8) = esi; /* 0x3614878E: mov dword ptr [eax + 8], esi */ 6929 MEM32(eax + 0xC) = esi; /* 0x36148791: mov dword ptr [eax + 0xc], esi */ 6930 goto L_36148798; /* 0x36148794: jmp 0x36148798 */ 6931 L_36148796: 6932 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6933 eax = 0; /* 0x36148796: xor eax, eax */ 6934 _cf = 0; 6935 _flag_k = FK_TEST; 6936 L_36148798: 6937 PUSH32(esp, 0x10u); /* 0x36148798: push 0x10 */ 6938 MEM32(ebx + 0x54) = eax; /* 0x3614879A: mov dword ptr [ebx + 0x54], eax */ 6939 RECOMP_ICALL(0x3615FD6Au); /* 0x3614879D: call 0x3615fd6a */ /* not lifted */ 6940 RECOMP_FLAGS_IN(); 6941 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6943 esp = esp + 4; /* 0x361487A2: add esp, 4 */ 6944 _flag_k = FK_ADD; 6945 /* cmp eax, esi */ /* 0x361487A5: cmp eax, esi */ 6946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6948 _flag_k = FK_CMP; 6949 if (CMP_EQ(_flag_a, _flag_b)) goto L_361487B9; /* 0x361487A7: je 0x361487b9 */ 6950 L_361487A9: 6951 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x361487A9: mov cl, byte ptr [ebp + 0xb] */ 6952 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x361487AC: mov byte ptr [eax], cl */ 6953 MEM32(eax + 0x4) = esi; /* 0x361487AE: mov dword ptr [eax + 4], esi */ 6954 MEM32(eax + 0x8) = esi; /* 0x361487B1: mov dword ptr [eax + 8], esi */ 6955 MEM32(eax + 0xC) = esi; /* 0x361487B4: mov dword ptr [eax + 0xc], esi */ 6956 goto L_361487BB; /* 0x361487B7: jmp 0x361487bb */ 6957 L_361487B9: 6958 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6959 eax = 0; /* 0x361487B9: xor eax, eax */ 6960 _cf = 0; 6961 _flag_k = FK_TEST; 6962 L_361487BB: 6963 PUSH32(esp, 0x10u); /* 0x361487BB: push 0x10 */ 6964 MEM32(ebx + 0x58) = eax; /* 0x361487BD: mov dword ptr [ebx + 0x58], eax */ 6965 RECOMP_ICALL(0x3615FD6Au); /* 0x361487C0: call 0x3615fd6a */ /* not lifted */ 6966 RECOMP_FLAGS_IN(); 6967 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6969 esp = esp + 4; /* 0x361487C5: add esp, 4 */ 6970 _flag_k = FK_ADD; 6971 /* cmp eax, esi */ /* 0x361487C8: cmp eax, esi */ 6972 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6974 _flag_k = FK_CMP; 6975 if (CMP_EQ(_flag_a, _flag_b)) goto L_361487DC; /* 0x361487CA: je 0x361487dc */ 6976 L_361487CC: 6977 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x361487CC: mov dl, byte ptr [ebp + 0xb] */ 6978 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x361487CF: mov byte ptr [eax], dl */ 6979 MEM32(eax + 0x4) = esi; /* 0x361487D1: mov dword ptr [eax + 4], esi */ 6980 MEM32(eax + 0x8) = esi; /* 0x361487D4: mov dword ptr [eax + 8], esi */ 6981 MEM32(eax + 0xC) = esi; /* 0x361487D7: mov dword ptr [eax + 0xc], esi */ 6982 goto L_361487DE; /* 0x361487DA: jmp 0x361487de */ 6983 L_361487DC: 6984 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6985 eax = 0; /* 0x361487DC: xor eax, eax */ 6986 _cf = 0; 6987 _flag_k = FK_TEST; 6988 L_361487DE: 6989 esi = MEM32(ebx + 0x50); /* 0x361487DE: mov esi, dword ptr [ebx + 0x50] */ 6990 MEM32(ebx + 0x5C) = eax; /* 0x361487E1: mov dword ptr [ebx + 0x5c], eax */ 6991 ecx = MEM32(edi + 0x50); /* 0x361487E4: mov ecx, dword ptr [edi + 0x50] */ 6992 /* cmp esi, ecx */ /* 0x361487E7: cmp esi, ecx */ 6993 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6995 _flag_k = FK_CMP; 6996 MEM32(ebp + (-0x14)) = ecx; /* 0x361487E9: mov dword ptr [ebp - 0x14], ecx */ 6997 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614893D; /* 0x361487EC: je 0x3614893d */ 6998 L_361487F2: 6999 eax = MEM32(ecx + 0x4); /* 0x361487F2: mov eax, dword ptr [ecx + 4] */ 7000 /* test eax, eax */ /* 0x361487F5: test eax, eax */ 7001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7002 _cf = 0; 7003 _flag_k = FK_TEST; 7004 MEM32(ebp + (-0x1C)) = eax; /* 0x361487F7: mov dword ptr [ebp - 0x1c], eax */ 7005 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148801; /* 0x361487FA: jne 0x36148801 */ 7006 L_361487FC: 7007 MEM32(ebp + (-0x10)) = eax; /* 0x361487FC: mov dword ptr [ebp - 0x10], eax */ 7008 goto L_3614881A; /* 0x361487FF: jmp 0x3614881a */ 7009 L_36148801: 7010 edx = MEM32(ecx + 0x8); /* 0x36148801: mov edx, dword ptr [ecx + 8] */ 7011 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7013 edx = edx - eax; /* 0x36148804: sub edx, eax */ 7014 _flag_k = FK_CMP; 7015 eax = 0x66666667u; /* 0x36148806: mov eax, 0x66666667 */ 7016 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614880B: imul edx */ 7017 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7018 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7019 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614880D: sar edx, 3 */ 7020 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7021 edx = (uint32_t)((int32_t)edx >> 3u); 7022 eax = edx; /* 0x36148810: mov eax, edx */ 7023 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36148812: shr eax, 0x1f */ 7024 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7025 eax = eax >> 31u; /* 0x36148812: shr eax, 0x1f */ 7026 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7028 edx = edx + eax; /* 0x36148815: add edx, eax */ 7029 _flag_k = FK_ADD; 7030 MEM32(ebp + (-0x10)) = edx; /* 0x36148817: mov dword ptr [ebp - 0x10], edx */ 7031 L_3614881A: 7032 edi = MEM32(esi + 0x4); /* 0x3614881A: mov edi, dword ptr [esi + 4] */ 7033 /* test edi, edi */ /* 0x3614881D: test edi, edi */ 7034 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7035 _cf = 0; 7036 _flag_k = FK_TEST; 7037 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148825; /* 0x3614881F: jne 0x36148825 */ 7038 L_36148821: 7039 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7040 edx = 0; /* 0x36148821: xor edx, edx */ 7041 _cf = 0; 7042 _flag_k = FK_TEST; 7043 goto L_3614883B; /* 0x36148823: jmp 0x3614883b */ 7044 L_36148825: 7045 edx = MEM32(esi + 0x8); /* 0x36148825: mov edx, dword ptr [esi + 8] */ 7046 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 7047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7048 edx = edx - edi; /* 0x36148828: sub edx, edi */ 7049 _flag_k = FK_CMP; 7050 eax = 0x66666667u; /* 0x3614882A: mov eax, 0x66666667 */ 7051 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614882F: imul edx */ 7052 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7053 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7054 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36148831: sar edx, 3 */ 7055 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7056 edx = (uint32_t)((int32_t)edx >> 3u); 7057 eax = edx; /* 0x36148834: mov eax, edx */ 7058 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36148836: shr eax, 0x1f */ 7059 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7060 eax = eax >> 31u; /* 0x36148836: shr eax, 0x1f */ 7061 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7063 edx = edx + eax; /* 0x36148839: add edx, eax */ 7064 _flag_k = FK_ADD; 7065 L_3614883B: 7066 /* cmp MEM32(ebp + (-0x10)), edx */ /* 0x3614883B: cmp dword ptr [ebp - 0x10], edx */ 7067 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(edx); 7068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7069 _flag_k = FK_CMP; 7070 if (CMP_A(_flag_a, _flag_b)) goto L_36148880; /* 0x3614883E: ja 0x36148880 */ 7071 L_36148840: 7072 ecx = MEM32(ecx + 0x8); /* 0x36148840: mov ecx, dword ptr [ecx + 8] */ 7073 MEM32(ebp + (-0x10)) = edi; /* 0x36148843: mov dword ptr [ebp - 0x10], edi */ 7074 edi = MEM32(ebp + (-0x1C)); /* 0x36148846: mov edi, dword ptr [ebp - 0x1c] */ 7075 /* cmp edi, ecx */ /* 0x36148849: cmp edi, ecx */ 7076 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 7077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7078 _flag_k = FK_CMP; 7079 MEM32(ebp + (-0x20)) = ecx; /* 0x3614884B: mov dword ptr [ebp - 0x20], ecx */ 7080 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614886C; /* 0x3614884E: je 0x3614886c */ 7081 L_36148850: 7082 ecx = MEM32(ebp + (-0x10)); /* 0x36148850: mov ecx, dword ptr [ebp - 0x10] */ 7083 PUSH32(esp, edi); /* 0x36148853: push edi */ 7084 RECOMP_ICALL(0x3602F7E0u); /* 0x36148854: call 0x3602f7e0 */ /* not lifted */ 7085 RECOMP_FLAGS_IN(); 7086 edx = MEM32(ebp + (-0x10)); /* 0x36148859: mov edx, dword ptr [ebp - 0x10] */ 7087 eax = MEM32(ebp + (-0x20)); /* 0x3614885C: mov eax, dword ptr [ebp - 0x20] */ 7088 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 7089 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7090 edx = edx + 0x14u; /* 0x3614885F: add edx, 0x14 */ 7091 _flag_k = FK_ADD; 7092 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 7093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7094 edi = edi + 0x14u; /* 0x36148862: add edi, 0x14 */ 7095 _flag_k = FK_ADD; 7096 /* cmp edi, eax */ /* 0x36148865: cmp edi, eax */ 7097 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7099 _flag_k = FK_CMP; 7100 MEM32(ebp + (-0x10)) = edx; /* 0x36148867: mov dword ptr [ebp - 0x10], edx */ 7101 RECOMP_BACKEDGE(); 7102 if (CMP_NE(_flag_a, _flag_b)) goto L_36148850; /* 0x3614886A: jne 0x36148850 */ 7103 L_3614886C: 7104 ecx = MEM32(esi + 0x8); /* 0x3614886C: mov ecx, dword ptr [esi + 8] */ 7105 edx = MEM32(ebp + (-0x10)); /* 0x3614886F: mov edx, dword ptr [ebp - 0x10] */ 7106 PUSH32(esp, ecx); /* 0x36148872: push ecx */ 7107 PUSH32(esp, edx); /* 0x36148873: push edx */ 7108 ecx = esi; /* 0x36148874: mov ecx, esi */ 7109 RECOMP_ICALL(0x36149DF0u); /* 0x36148876: call 0x36149df0 */ /* not lifted */ 7110 RECOMP_FLAGS_IN(); 7111 ecx = MEM32(ebp + (-0x14)); /* 0x3614887B: mov ecx, dword ptr [ebp - 0x14] */ 7112 goto L_361488D4; /* 0x3614887E: jmp 0x361488d4 */ 7113 L_36148880: 7114 RECOMP_ICALL(0x36149DC0u); /* 0x36148880: call 0x36149dc0 */ /* not lifted */ 7115 RECOMP_FLAGS_IN(); 7116 ecx = esi; /* 0x36148885: mov ecx, esi */ 7117 edi = eax; /* 0x36148887: mov edi, eax */ 7118 RECOMP_ICALL(0x36149D90u); /* 0x36148889: call 0x36149d90 */ /* not lifted */ 7119 RECOMP_FLAGS_IN(); 7120 /* cmp edi, eax */ /* 0x3614888E: cmp edi, eax */ 7121 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7123 _flag_k = FK_CMP; 7124 if (CMP_A(_flag_a, _flag_b)) goto L_361488E7; /* 0x36148890: ja 0x361488e7 */ 7125 L_36148892: 7126 edi = MEM32(ebp + (-0x14)); /* 0x36148892: mov edi, dword ptr [ebp - 0x14] */ 7127 eax = MEM32(edi + 0x4); /* 0x36148895: mov eax, dword ptr [edi + 4] */ 7128 ecx = esi; /* 0x36148898: mov ecx, esi */ 7129 MEM32(ebp + (-0x20)) = eax; /* 0x3614889A: mov dword ptr [ebp - 0x20], eax */ 7130 RECOMP_ICALL(0x36149DC0u); /* 0x3614889D: call 0x36149dc0 */ /* not lifted */ 7131 RECOMP_FLAGS_IN(); 7132 edx = MEM32(ebp + (-0x20)); /* 0x361488A2: mov edx, dword ptr [ebp - 0x20] */ 7133 ecx = eax + eax * 4; /* 0x361488A5: lea ecx, [eax + eax*4] */ 7134 eax = edx + ecx * 4; /* 0x361488A8: lea eax, [edx + ecx*4] */ 7135 ecx = MEM32(esi + 0x4); /* 0x361488AB: mov ecx, dword ptr [esi + 4] */ 7136 edx = MEM32(edi + 0x4); /* 0x361488AE: mov edx, dword ptr [edi + 4] */ 7137 PUSH32(esp, ecx); /* 0x361488B1: push ecx */ 7138 PUSH32(esp, eax); /* 0x361488B2: push eax */ 7139 PUSH32(esp, edx); /* 0x361488B3: push edx */ 7140 MEM32(ebp + (-0x20)) = eax; /* 0x361488B4: mov dword ptr [ebp - 0x20], eax */ 7141 RECOMP_ICALL(0x3614A220u); /* 0x361488B7: call 0x3614a220 */ /* not lifted */ 7142 RECOMP_FLAGS_IN(); 7143 eax = MEM32(esi + 0x8); /* 0x361488BC: mov eax, dword ptr [esi + 8] */ 7144 ecx = MEM32(edi + 0x8); /* 0x361488BF: mov ecx, dword ptr [edi + 8] */ 7145 edx = MEM32(ebp + (-0x20)); /* 0x361488C2: mov edx, dword ptr [ebp - 0x20] */ 7146 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7148 esp = esp + 0xCu; /* 0x361488C5: add esp, 0xc */ 7149 _flag_k = FK_ADD; 7150 PUSH32(esp, eax); /* 0x361488C8: push eax */ 7151 PUSH32(esp, ecx); /* 0x361488C9: push ecx */ 7152 PUSH32(esp, edx); /* 0x361488CA: push edx */ 7153 ecx = esi; /* 0x361488CB: mov ecx, esi */ 7154 RECOMP_ICALL(0x36149E20u); /* 0x361488CD: call 0x36149e20 */ /* not lifted */ 7155 RECOMP_FLAGS_IN(); 7156 ecx = edi; /* 0x361488D2: mov ecx, edi */ 7157 L_361488D4: 7158 RECOMP_ICALL(0x36149DC0u); /* 0x361488D4: call 0x36149dc0 */ /* not lifted */ 7159 RECOMP_FLAGS_IN(); 7160 ecx = MEM32(esi + 0x4); /* 0x361488D9: mov ecx, dword ptr [esi + 4] */ 7161 eax = eax + eax * 4; /* 0x361488DC: lea eax, [eax + eax*4] */ 7162 edx = ecx + eax * 4; /* 0x361488DF: lea edx, [ecx + eax*4] */ 7163 MEM32(esi + 0x8) = edx; /* 0x361488E2: mov dword ptr [esi + 8], edx */ 7164 goto L_3614893A; /* 0x361488E5: jmp 0x3614893a */ 7165 L_361488E7: 7166 eax = MEM32(esi + 0x8); /* 0x361488E7: mov eax, dword ptr [esi + 8] */ 7167 ecx = MEM32(esi + 0x4); /* 0x361488EA: mov ecx, dword ptr [esi + 4] */ 7168 PUSH32(esp, eax); /* 0x361488ED: push eax */ 7169 PUSH32(esp, ecx); /* 0x361488EE: push ecx */ 7170 ecx = esi; /* 0x361488EF: mov ecx, esi */ 7171 RECOMP_ICALL(0x36149DF0u); /* 0x361488F1: call 0x36149df0 */ /* not lifted */ 7172 RECOMP_FLAGS_IN(); 7173 edx = MEM32(esi + 0x4); /* 0x361488F6: mov edx, dword ptr [esi + 4] */ 7174 PUSH32(esp, edx); /* 0x361488F9: push edx */ 7175 RECOMP_ICALL(0x3615FCC4u); /* 0x361488FA: call 0x3615fcc4 */ /* not lifted */ 7176 RECOMP_FLAGS_IN(); 7177 edi = MEM32(ebp + (-0x14)); /* 0x361488FF: mov edi, dword ptr [ebp - 0x14] */ 7178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7180 esp = esp + 4; /* 0x36148902: add esp, 4 */ 7181 _flag_k = FK_ADD; 7182 ecx = edi; /* 0x36148905: mov ecx, edi */ 7183 RECOMP_ICALL(0x36149DC0u); /* 0x36148907: call 0x36149dc0 */ /* not lifted */ 7184 RECOMP_FLAGS_IN(); 7185 /* test eax, eax */ /* 0x3614890C: test eax, eax */ 7186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7187 _cf = 0; 7188 _flag_k = FK_TEST; 7189 if (TEST_NS(_flag_a, _flag_b)) goto L_36148912; /* 0x3614890E: jge 0x36148912 */ 7190 L_36148910: 7191 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7192 eax = 0; /* 0x36148910: xor eax, eax */ 7193 _cf = 0; 7194 _flag_k = FK_TEST; 7195 L_36148912: 7196 eax = eax + eax * 4; /* 0x36148912: lea eax, [eax + eax*4] */ 7197 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x36148915: shl eax, 2 */ 7198 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7199 eax = eax << 2u; /* 0x36148915: shl eax, 2 */ 7200 PUSH32(esp, eax); /* 0x36148918: push eax */ 7201 RECOMP_ICALL(0x3615FD6Au); /* 0x36148919: call 0x3615fd6a */ /* not lifted */ 7202 RECOMP_FLAGS_IN(); 7203 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7204 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7205 esp = esp + 4; /* 0x3614891E: add esp, 4 */ 7206 _flag_k = FK_ADD; 7207 MEM32(esi + 0x4) = eax; /* 0x36148921: mov dword ptr [esi + 4], eax */ 7208 ecx = MEM32(edi + 0x8); /* 0x36148924: mov ecx, dword ptr [edi + 8] */ 7209 edi = MEM32(edi + 0x4); /* 0x36148927: mov edi, dword ptr [edi + 4] */ 7210 PUSH32(esp, eax); /* 0x3614892A: push eax */ 7211 PUSH32(esp, ecx); /* 0x3614892B: push ecx */ 7212 PUSH32(esp, edi); /* 0x3614892C: push edi */ 7213 ecx = esi; /* 0x3614892D: mov ecx, esi */ 7214 RECOMP_ICALL(0x36149E20u); /* 0x3614892F: call 0x36149e20 */ /* not lifted */ 7215 RECOMP_FLAGS_IN(); 7216 MEM32(esi + 0x8) = eax; /* 0x36148934: mov dword ptr [esi + 8], eax */ 7217 MEM32(esi + 0xC) = eax; /* 0x36148937: mov dword ptr [esi + 0xc], eax */ 7218 L_3614893A: 7219 edi = MEM32(ebp + 0x8); /* 0x3614893A: mov edi, dword ptr [ebp + 8] */ 7220 L_3614893D: 7221 edi = MEM32(edi + 0x54); /* 0x3614893D: mov edi, dword ptr [edi + 0x54] */ 7222 esi = MEM32(ebx + 0x54); /* 0x36148940: mov esi, dword ptr [ebx + 0x54] */ 7223 /* cmp esi, edi */ /* 0x36148943: cmp esi, edi */ 7224 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 7225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7226 _flag_k = FK_CMP; 7227 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148A50; /* 0x36148945: je 0x36148a50 */ 7228 L_3614894B: 7229 ecx = edi; /* 0x3614894B: mov ecx, edi */ 7230 RECOMP_ICALL(0x36149E90u); /* 0x3614894D: call 0x36149e90 */ /* not lifted */ 7231 RECOMP_FLAGS_IN(); 7232 ecx = esi; /* 0x36148952: mov ecx, esi */ 7233 ebx = eax; /* 0x36148954: mov ebx, eax */ 7234 RECOMP_ICALL(0x36149E90u); /* 0x36148956: call 0x36149e90 */ /* not lifted */ 7235 RECOMP_FLAGS_IN(); 7236 /* cmp ebx, eax */ /* 0x3614895B: cmp ebx, eax */ 7237 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7239 _flag_k = FK_CMP; 7240 if (CMP_A(_flag_a, _flag_b)) goto L_3614899A; /* 0x3614895D: ja 0x3614899a */ 7241 L_3614895F: 7242 edx = MEM32(esi + 0x4); /* 0x3614895F: mov edx, dword ptr [esi + 4] */ 7243 eax = MEM32(edi + 0x8); /* 0x36148962: mov eax, dword ptr [edi + 8] */ 7244 ecx = MEM32(edi + 0x4); /* 0x36148965: mov ecx, dword ptr [edi + 4] */ 7245 PUSH32(esp, edx); /* 0x36148968: push edx */ 7246 PUSH32(esp, eax); /* 0x36148969: push eax */ 7247 PUSH32(esp, ecx); /* 0x3614896A: push ecx */ 7248 RECOMP_ICALL(0x3614A260u); /* 0x3614896B: call 0x3614a260 */ /* not lifted */ 7249 RECOMP_FLAGS_IN(); 7250 ecx = MEM32(esi + 0x8); /* 0x36148970: mov ecx, dword ptr [esi + 8] */ 7251 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7253 esp = esp + 0xCu; /* 0x36148973: add esp, 0xc */ 7254 _flag_k = FK_ADD; 7255 PUSH32(esp, ecx); /* 0x36148976: push ecx */ 7256 PUSH32(esp, eax); /* 0x36148977: push eax */ 7257 ecx = esi; /* 0x36148978: mov ecx, esi */ 7258 RECOMP_ICALL(0x36149EC0u); /* 0x3614897A: call 0x36149ec0 */ /* not lifted */ 7259 RECOMP_FLAGS_IN(); 7260 ecx = edi; /* 0x3614897F: mov ecx, edi */ 7261 RECOMP_ICALL(0x36149E90u); /* 0x36148981: call 0x36149e90 */ /* not lifted */ 7262 RECOMP_FLAGS_IN(); 7263 eax = eax + eax * 2; /* 0x36148986: lea eax, [eax + eax*2] */ 7264 edx = eax + eax * 4; /* 0x36148989: lea edx, [eax + eax*4] */ 7265 eax = MEM32(esi + 0x4); /* 0x3614898C: mov eax, dword ptr [esi + 4] */ 7266 ecx = eax + edx * 4; /* 0x3614898F: lea ecx, [eax + edx*4] */ 7267 MEM32(esi + 0x8) = ecx; /* 0x36148992: mov dword ptr [esi + 8], ecx */ 7268 goto L_36148A4D; /* 0x36148995: jmp 0x36148a4d */ 7269 L_3614899A: 7270 ecx = edi; /* 0x3614899A: mov ecx, edi */ 7271 RECOMP_ICALL(0x36149E90u); /* 0x3614899C: call 0x36149e90 */ /* not lifted */ 7272 RECOMP_FLAGS_IN(); 7273 ecx = esi; /* 0x361489A1: mov ecx, esi */ 7274 ebx = eax; /* 0x361489A3: mov ebx, eax */ 7275 RECOMP_ICALL(0x36149E60u); /* 0x361489A5: call 0x36149e60 */ /* not lifted */ 7276 RECOMP_FLAGS_IN(); 7277 /* cmp ebx, eax */ /* 0x361489AA: cmp ebx, eax */ 7278 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7280 _flag_k = FK_CMP; 7281 if (CMP_A(_flag_a, _flag_b)) goto L_361489FA; /* 0x361489AC: ja 0x361489fa */ 7282 L_361489AE: 7283 ebx = MEM32(edi + 0x4); /* 0x361489AE: mov ebx, dword ptr [edi + 4] */ 7284 ecx = esi; /* 0x361489B1: mov ecx, esi */ 7285 RECOMP_ICALL(0x36149E90u); /* 0x361489B3: call 0x36149e90 */ /* not lifted */ 7286 RECOMP_FLAGS_IN(); 7287 ecx = MEM32(edi + 0x4); /* 0x361489B8: mov ecx, dword ptr [edi + 4] */ 7288 eax = eax + eax * 2; /* 0x361489BB: lea eax, [eax + eax*2] */ 7289 edx = eax + eax * 4; /* 0x361489BE: lea edx, [eax + eax*4] */ 7290 eax = MEM32(esi + 0x4); /* 0x361489C1: mov eax, dword ptr [esi + 4] */ 7291 PUSH32(esp, eax); /* 0x361489C4: push eax */ 7292 ebx = ebx + edx * 4; /* 0x361489C5: lea ebx, [ebx + edx*4] */ 7293 PUSH32(esp, ebx); /* 0x361489C8: push ebx */ 7294 PUSH32(esp, ecx); /* 0x361489C9: push ecx */ 7295 RECOMP_ICALL(0x3614A260u); /* 0x361489CA: call 0x3614a260 */ /* not lifted */ 7296 RECOMP_FLAGS_IN(); 7297 edx = MEM32(esi + 0x8); /* 0x361489CF: mov edx, dword ptr [esi + 8] */ 7298 eax = MEM32(edi + 0x8); /* 0x361489D2: mov eax, dword ptr [edi + 8] */ 7299 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7300 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7301 esp = esp + 0xCu; /* 0x361489D5: add esp, 0xc */ 7302 _flag_k = FK_ADD; 7303 PUSH32(esp, edx); /* 0x361489D8: push edx */ 7304 PUSH32(esp, eax); /* 0x361489D9: push eax */ 7305 PUSH32(esp, ebx); /* 0x361489DA: push ebx */ 7306 ecx = esi; /* 0x361489DB: mov ecx, esi */ 7307 RECOMP_ICALL(0x36149EF0u); /* 0x361489DD: call 0x36149ef0 */ /* not lifted */ 7308 RECOMP_FLAGS_IN(); 7309 ecx = edi; /* 0x361489E2: mov ecx, edi */ 7310 RECOMP_ICALL(0x36149E90u); /* 0x361489E4: call 0x36149e90 */ /* not lifted */ 7311 RECOMP_FLAGS_IN(); 7312 edx = MEM32(esi + 0x4); /* 0x361489E9: mov edx, dword ptr [esi + 4] */ 7313 eax = eax + eax * 2; /* 0x361489EC: lea eax, [eax + eax*2] */ 7314 ecx = eax + eax * 4; /* 0x361489EF: lea ecx, [eax + eax*4] */ 7315 eax = edx + ecx * 4; /* 0x361489F2: lea eax, [edx + ecx*4] */ 7316 MEM32(esi + 0x8) = eax; /* 0x361489F5: mov dword ptr [esi + 8], eax */ 7317 goto L_36148A4D; /* 0x361489F8: jmp 0x36148a4d */ 7318 L_361489FA: 7319 ecx = MEM32(esi + 0x8); /* 0x361489FA: mov ecx, dword ptr [esi + 8] */ 7320 edx = MEM32(esi + 0x4); /* 0x361489FD: mov edx, dword ptr [esi + 4] */ 7321 PUSH32(esp, ecx); /* 0x36148A00: push ecx */ 7322 PUSH32(esp, edx); /* 0x36148A01: push edx */ 7323 ecx = esi; /* 0x36148A02: mov ecx, esi */ 7324 RECOMP_ICALL(0x36149EC0u); /* 0x36148A04: call 0x36149ec0 */ /* not lifted */ 7325 RECOMP_FLAGS_IN(); 7326 eax = MEM32(esi + 0x4); /* 0x36148A09: mov eax, dword ptr [esi + 4] */ 7327 PUSH32(esp, eax); /* 0x36148A0C: push eax */ 7328 RECOMP_ICALL(0x3615FCC4u); /* 0x36148A0D: call 0x3615fcc4 */ /* not lifted */ 7329 RECOMP_FLAGS_IN(); 7330 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7332 esp = esp + 4; /* 0x36148A12: add esp, 4 */ 7333 _flag_k = FK_ADD; 7334 ecx = edi; /* 0x36148A15: mov ecx, edi */ 7335 RECOMP_ICALL(0x36149E90u); /* 0x36148A17: call 0x36149e90 */ /* not lifted */ 7336 RECOMP_FLAGS_IN(); 7337 /* test eax, eax */ /* 0x36148A1C: test eax, eax */ 7338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7339 _cf = 0; 7340 _flag_k = FK_TEST; 7341 if (TEST_NS(_flag_a, _flag_b)) goto L_36148A22; /* 0x36148A1E: jge 0x36148a22 */ 7342 L_36148A20: 7343 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7344 eax = 0; /* 0x36148A20: xor eax, eax */ 7345 _cf = 0; 7346 _flag_k = FK_TEST; 7347 L_36148A22: 7348 eax = eax + eax * 2; /* 0x36148A22: lea eax, [eax + eax*2] */ 7349 ecx = eax + eax * 4; /* 0x36148A25: lea ecx, [eax + eax*4] */ 7350 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x36148A28: shl ecx, 2 */ 7351 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7352 ecx = ecx << 2u; /* 0x36148A28: shl ecx, 2 */ 7353 PUSH32(esp, ecx); /* 0x36148A2B: push ecx */ 7354 RECOMP_ICALL(0x3615FD6Au); /* 0x36148A2C: call 0x3615fd6a */ /* not lifted */ 7355 RECOMP_FLAGS_IN(); 7356 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7358 esp = esp + 4; /* 0x36148A31: add esp, 4 */ 7359 _flag_k = FK_ADD; 7360 MEM32(esi + 0x4) = eax; /* 0x36148A34: mov dword ptr [esi + 4], eax */ 7361 ecx = MEM32(edi + 0x8); /* 0x36148A37: mov ecx, dword ptr [edi + 8] */ 7362 edi = MEM32(edi + 0x4); /* 0x36148A3A: mov edi, dword ptr [edi + 4] */ 7363 PUSH32(esp, eax); /* 0x36148A3D: push eax */ 7364 PUSH32(esp, ecx); /* 0x36148A3E: push ecx */ 7365 PUSH32(esp, edi); /* 0x36148A3F: push edi */ 7366 ecx = esi; /* 0x36148A40: mov ecx, esi */ 7367 RECOMP_ICALL(0x36149EF0u); /* 0x36148A42: call 0x36149ef0 */ /* not lifted */ 7368 RECOMP_FLAGS_IN(); 7369 MEM32(esi + 0x8) = eax; /* 0x36148A47: mov dword ptr [esi + 8], eax */ 7370 MEM32(esi + 0xC) = eax; /* 0x36148A4A: mov dword ptr [esi + 0xc], eax */ 7371 L_36148A4D: 7372 ebx = MEM32(ebp + (-0x18)); /* 0x36148A4D: mov ebx, dword ptr [ebp - 0x18] */ 7373 L_36148A50: 7374 esi = MEM32(ebp + 0x8); /* 0x36148A50: mov esi, dword ptr [ebp + 8] */ 7375 edx = MEM32(esi + 0x58); /* 0x36148A53: mov edx, dword ptr [esi + 0x58] */ 7376 ecx = MEM32(ebx + 0x58); /* 0x36148A56: mov ecx, dword ptr [ebx + 0x58] */ 7377 PUSH32(esp, edx); /* 0x36148A59: push edx */ 7378 RECOMP_ICALL(0x36149A30u); /* 0x36148A5A: call 0x36149a30 */ /* not lifted */ 7379 RECOMP_FLAGS_IN(); 7380 eax = MEM32(esi + 0x5C); /* 0x36148A5F: mov eax, dword ptr [esi + 0x5c] */ 7381 ecx = MEM32(ebx + 0x5C); /* 0x36148A62: mov ecx, dword ptr [ebx + 0x5c] */ 7382 PUSH32(esp, eax); /* 0x36148A65: push eax */ 7383 RECOMP_ICALL(0x36149C00u); /* 0x36148A66: call 0x36149c00 */ /* not lifted */ 7384 RECOMP_FLAGS_IN(); 7385 ecx = MEM32(esi + 0x10); /* 0x36148A6B: mov ecx, dword ptr [esi + 0x10] */ 7386 MEM32(ebx + 0x10) = ecx; /* 0x36148A6E: mov dword ptr [ebx + 0x10], ecx */ 7387 edx = MEM32(esi + 0x14); /* 0x36148A71: mov edx, dword ptr [esi + 0x14] */ 7388 MEM32(ebx + 0x14) = edx; /* 0x36148A74: mov dword ptr [ebx + 0x14], edx */ 7389 eax = MEM32(esi + 0x18); /* 0x36148A77: mov eax, dword ptr [esi + 0x18] */ 7390 MEM32(ebx + 0x18) = eax; /* 0x36148A7A: mov dword ptr [ebx + 0x18], eax */ 7391 ecx = MEM32(esi + 0x1C); /* 0x36148A7D: mov ecx, dword ptr [esi + 0x1c] */ 7392 MEM32(ebx + 0x1C) = ecx; /* 0x36148A80: mov dword ptr [ebx + 0x1c], ecx */ 7393 edx = MEM32(esi + 0x20); /* 0x36148A83: mov edx, dword ptr [esi + 0x20] */ 7394 MEM32(ebx + 0x20) = edx; /* 0x36148A86: mov dword ptr [ebx + 0x20], edx */ 7395 eax = MEM32(esi + 0x24); /* 0x36148A89: mov eax, dword ptr [esi + 0x24] */ 7396 MEM32(ebx + 0x24) = eax; /* 0x36148A8C: mov dword ptr [ebx + 0x24], eax */ 7397 ecx = MEM32(esi + 0x28); /* 0x36148A8F: mov ecx, dword ptr [esi + 0x28] */ 7398 MEM32(ebx + 0x28) = ecx; /* 0x36148A92: mov dword ptr [ebx + 0x28], ecx */ 7399 edx = MEM32(esi + 0x2C); /* 0x36148A95: mov edx, dword ptr [esi + 0x2c] */ 7400 ecx = MEM32(ebp + (-0xC)); /* 0x36148A98: mov ecx, dword ptr [ebp - 0xc] */ 7401 MEM32(ebx + 0x2C) = edx; /* 0x36148A9B: mov dword ptr [ebx + 0x2c], edx */ 7402 eax = MEM32(esi + 0x30); /* 0x36148A9E: mov eax, dword ptr [esi + 0x30] */ 7403 edi = POP32_VAL(esp); /* 0x36148AA1: pop edi */ 7404 MEM32(ebx + 0x30) = eax; /* 0x36148AA2: mov dword ptr [ebx + 0x30], eax */ 7405 esi = POP32_VAL(esp); /* 0x36148AA5: pop esi */ 7406 eax = ebx; /* 0x36148AA6: mov eax, ebx */ 7407 ebx = POP32_VAL(esp); /* 0x36148AA8: pop ebx */ 7408 MEM32(FS_BASE + (0)) = ecx; /* 0x36148AA9: mov dword ptr fs:[0], ecx */ 7409 esp = ebp; /* 0x36148AB0: mov esp, ebp */ 7410 ebp = POP32_VAL(esp); /* 0x36148AB2: pop ebp */ 7411 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36148AB3: ret 4 */ 7412 RECOMP_REGS_OUT(); 7413 } 7414 7415 void sub_36148A4D(void) { 7416 int _fpu_cmp = 0; 7417 uint32_t _cf = 0; 7418 int _df = 1; 7419 uint32_t _flag_k = FK_NONE; 7420 uint32_t _flag_a = 0, _flag_b = 0; 7421 uint32_t _itail_tgt = 0; 7422 RECOMP_REGS_LOCALS 7423 RECOMP_ENTER(0x36148A4Du); 7424 7425 L_36148A4D: 7426 ebx = MEM32(ebp + (-0x18)); /* 0x36148A4D: mov ebx, dword ptr [ebp - 0x18] */ 7427 esi = MEM32(ebp + 0x8); /* 0x36148A50: mov esi, dword ptr [ebp + 8] */ 7428 edx = MEM32(esi + 0x58); /* 0x36148A53: mov edx, dword ptr [esi + 0x58] */ 7429 ecx = MEM32(ebx + 0x58); /* 0x36148A56: mov ecx, dword ptr [ebx + 0x58] */ 7430 PUSH32(esp, edx); /* 0x36148A59: push edx */ 7431 RECOMP_ICALL(0x36149A30u); /* 0x36148A5A: call 0x36149a30 */ /* not lifted */ 7432 RECOMP_FLAGS_IN(); 7433 eax = MEM32(esi + 0x5C); /* 0x36148A5F: mov eax, dword ptr [esi + 0x5c] */ 7434 ecx = MEM32(ebx + 0x5C); /* 0x36148A62: mov ecx, dword ptr [ebx + 0x5c] */ 7435 PUSH32(esp, eax); /* 0x36148A65: push eax */ 7436 RECOMP_ICALL(0x36149C00u); /* 0x36148A66: call 0x36149c00 */ /* not lifted */ 7437 RECOMP_FLAGS_IN(); 7438 ecx = MEM32(esi + 0x10); /* 0x36148A6B: mov ecx, dword ptr [esi + 0x10] */ 7439 MEM32(ebx + 0x10) = ecx; /* 0x36148A6E: mov dword ptr [ebx + 0x10], ecx */ 7440 edx = MEM32(esi + 0x14); /* 0x36148A71: mov edx, dword ptr [esi + 0x14] */ 7441 MEM32(ebx + 0x14) = edx; /* 0x36148A74: mov dword ptr [ebx + 0x14], edx */ 7442 eax = MEM32(esi + 0x18); /* 0x36148A77: mov eax, dword ptr [esi + 0x18] */ 7443 MEM32(ebx + 0x18) = eax; /* 0x36148A7A: mov dword ptr [ebx + 0x18], eax */ 7444 ecx = MEM32(esi + 0x1C); /* 0x36148A7D: mov ecx, dword ptr [esi + 0x1c] */ 7445 MEM32(ebx + 0x1C) = ecx; /* 0x36148A80: mov dword ptr [ebx + 0x1c], ecx */ 7446 edx = MEM32(esi + 0x20); /* 0x36148A83: mov edx, dword ptr [esi + 0x20] */ 7447 MEM32(ebx + 0x20) = edx; /* 0x36148A86: mov dword ptr [ebx + 0x20], edx */ 7448 eax = MEM32(esi + 0x24); /* 0x36148A89: mov eax, dword ptr [esi + 0x24] */ 7449 MEM32(ebx + 0x24) = eax; /* 0x36148A8C: mov dword ptr [ebx + 0x24], eax */ 7450 ecx = MEM32(esi + 0x28); /* 0x36148A8F: mov ecx, dword ptr [esi + 0x28] */ 7451 MEM32(ebx + 0x28) = ecx; /* 0x36148A92: mov dword ptr [ebx + 0x28], ecx */ 7452 edx = MEM32(esi + 0x2C); /* 0x36148A95: mov edx, dword ptr [esi + 0x2c] */ 7453 ecx = MEM32(ebp + (-0xC)); /* 0x36148A98: mov ecx, dword ptr [ebp - 0xc] */ 7454 MEM32(ebx + 0x2C) = edx; /* 0x36148A9B: mov dword ptr [ebx + 0x2c], edx */ 7455 eax = MEM32(esi + 0x30); /* 0x36148A9E: mov eax, dword ptr [esi + 0x30] */ 7456 edi = POP32_VAL(esp); /* 0x36148AA1: pop edi */ 7457 MEM32(ebx + 0x30) = eax; /* 0x36148AA2: mov dword ptr [ebx + 0x30], eax */ 7458 esi = POP32_VAL(esp); /* 0x36148AA5: pop esi */ 7459 eax = ebx; /* 0x36148AA6: mov eax, ebx */ 7460 ebx = POP32_VAL(esp); /* 0x36148AA8: pop ebx */ 7461 MEM32(FS_BASE + (0)) = ecx; /* 0x36148AA9: mov dword ptr fs:[0], ecx */ 7462 esp = ebp; /* 0x36148AB0: mov esp, ebp */ 7463 ebp = POP32_VAL(esp); /* 0x36148AB2: pop ebp */ 7464 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36148AB3: ret 4 */ 7465 RECOMP_REGS_OUT(); 7466 } 7467 7468 void sub_36148AC0(void) { 7469 int _fpu_cmp = 0; 7470 uint32_t _cf = 0; 7471 int _df = 1; 7472 uint32_t _flag_k = FK_NONE; 7473 uint32_t _flag_a = 0, _flag_b = 0; 7474 uint32_t _itail_tgt = 0; 7475 RECOMP_REGS_LOCALS 7476 RECOMP_ENTER(0x36148AC0u); 7477 7478 L_36148AC0: 7479 PUSH32(esp, ebp); /* 0x36148AC0: push ebp */ 7480 ebp = esp; /* 0x36148AC1: mov ebp, esp */ 7481 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7483 esp = esp - 8; /* 0x36148AC3: sub esp, 8 */ 7484 _flag_k = FK_CMP; 7485 PUSH32(esp, ebx); /* 0x36148AC6: push ebx */ 7486 PUSH32(esp, esi); /* 0x36148AC7: push esi */ 7487 esi = MEM32(ecx); /* 0x36148AC8: mov esi, dword ptr [ecx] */ 7488 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7489 ebx = 0; /* 0x36148ACA: xor ebx, ebx */ 7490 _cf = 0; 7491 _flag_k = FK_TEST; 7492 /* cmp esi, ebx */ /* 0x36148ACC: cmp esi, ebx */ 7493 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 7494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7495 _flag_k = FK_CMP; 7496 MEM32(ebp + (-0x4)) = ecx; /* 0x36148ACE: mov dword ptr [ebp - 4], ecx */ 7497 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148B0B; /* 0x36148AD1: je 0x36148b0b */ 7498 L_36148AD3: 7499 eax = MEM32(esi + 0x4); /* 0x36148AD3: mov eax, dword ptr [esi + 4] */ 7500 /* cmp eax, ebx */ /* 0x36148AD6: cmp eax, ebx */ 7501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7503 _flag_k = FK_CMP; 7504 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148AF6; /* 0x36148AD8: je 0x36148af6 */ 7505 L_36148ADA: 7506 ecx = eax + (-0x1); /* 0x36148ADA: lea ecx, [eax - 1] */ 7507 SET_LO8(eax, MEM8(ecx)); /* 0x36148ADD: mov al, byte ptr [ecx] */ 7508 /* cmp LO8(eax), LO8(ebx) */ /* 0x36148ADF: cmp al, bl */ 7509 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7511 _flag_k = FK_NARROW(FK_CMP, 24); 7512 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148AED; /* 0x36148AE1: je 0x36148aed */ 7513 L_36148AE3: 7514 /* cmp LO8(eax), 0xFFu */ /* 0x36148AE3: cmp al, 0xff */ 7515 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 7516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7517 _flag_k = FK_NARROW(FK_CMP, 24); 7518 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148AED; /* 0x36148AE5: je 0x36148aed */ 7519 L_36148AE7: 7520 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7521 SET_LO8(eax, LO8(eax) - 1); /* 0x36148AE7: dec al */ 7522 _flag_k = FK_NARROW(FK_DEC, 24); 7523 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36148AE9: mov byte ptr [ecx], al */ 7524 goto L_36148AF6; /* 0x36148AEB: jmp 0x36148af6 */ 7525 L_36148AED: 7526 PUSH32(esp, ecx); /* 0x36148AED: push ecx */ 7527 RECOMP_ICALL(0x3615FCC4u); /* 0x36148AEE: call 0x3615fcc4 */ /* not lifted */ 7528 RECOMP_FLAGS_IN(); 7529 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7531 esp = esp + 4; /* 0x36148AF3: add esp, 4 */ 7532 _flag_k = FK_ADD; 7533 L_36148AF6: 7534 PUSH32(esp, esi); /* 0x36148AF6: push esi */ 7535 MEM32(esi + 0x4) = ebx; /* 0x36148AF7: mov dword ptr [esi + 4], ebx */ 7536 MEM32(esi + 0x8) = ebx; /* 0x36148AFA: mov dword ptr [esi + 8], ebx */ 7537 MEM32(esi + 0xC) = ebx; /* 0x36148AFD: mov dword ptr [esi + 0xc], ebx */ 7538 RECOMP_ICALL(0x3615FCC4u); /* 0x36148B00: call 0x3615fcc4 */ /* not lifted */ 7539 RECOMP_FLAGS_IN(); 7540 ecx = MEM32(ebp + (-0x4)); /* 0x36148B05: mov ecx, dword ptr [ebp - 4] */ 7541 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7543 esp = esp + 4; /* 0x36148B08: add esp, 4 */ 7544 _flag_k = FK_ADD; 7545 L_36148B0B: 7546 PUSH32(esp, edi); /* 0x36148B0B: push edi */ 7547 edi = MEM32(ecx + 0x50); /* 0x36148B0C: mov edi, dword ptr [ecx + 0x50] */ 7548 /* cmp edi, ebx */ /* 0x36148B0F: cmp edi, ebx */ 7549 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 7550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7551 _flag_k = FK_CMP; 7552 MEM32(ecx) = ebx; /* 0x36148B11: mov dword ptr [ecx], ebx */ 7553 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148B51; /* 0x36148B13: je 0x36148b51 */ 7554 L_36148B15: 7555 eax = MEM32(edi + 0x8); /* 0x36148B15: mov eax, dword ptr [edi + 8] */ 7556 esi = MEM32(edi + 0x4); /* 0x36148B18: mov esi, dword ptr [edi + 4] */ 7557 /* cmp esi, eax */ /* 0x36148B1B: cmp esi, eax */ 7558 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7560 _flag_k = FK_CMP; 7561 MEM32(ebp + (-0x8)) = eax; /* 0x36148B1D: mov dword ptr [ebp - 8], eax */ 7562 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148B33; /* 0x36148B20: je 0x36148b33 */ 7563 L_36148B22: 7564 eax = MEM32(esi); /* 0x36148B22: mov eax, dword ptr [esi] */ 7565 PUSH32(esp, ebx); /* 0x36148B24: push ebx */ 7566 ecx = esi; /* 0x36148B25: mov ecx, esi */ 7567 RECOMP_ICALL(MEM32(eax)); /* 0x36148B27: call dword ptr [eax] */ 7568 RECOMP_FLAGS_IN(); 7569 eax = MEM32(ebp + (-0x8)); /* 0x36148B29: mov eax, dword ptr [ebp - 8] */ 7570 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 7571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7572 esi = esi + 0x14u; /* 0x36148B2C: add esi, 0x14 */ 7573 _flag_k = FK_ADD; 7574 /* cmp esi, eax */ /* 0x36148B2F: cmp esi, eax */ 7575 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7577 _flag_k = FK_CMP; 7578 RECOMP_BACKEDGE(); 7579 if (CMP_NE(_flag_a, _flag_b)) goto L_36148B22; /* 0x36148B31: jne 0x36148b22 */ 7580 L_36148B33: 7581 ecx = MEM32(edi + 0x4); /* 0x36148B33: mov ecx, dword ptr [edi + 4] */ 7582 PUSH32(esp, ecx); /* 0x36148B36: push ecx */ 7583 RECOMP_ICALL(0x3615FCC4u); /* 0x36148B37: call 0x3615fcc4 */ /* not lifted */ 7584 RECOMP_FLAGS_IN(); 7585 PUSH32(esp, edi); /* 0x36148B3C: push edi */ 7586 MEM32(edi + 0x4) = ebx; /* 0x36148B3D: mov dword ptr [edi + 4], ebx */ 7587 MEM32(edi + 0x8) = ebx; /* 0x36148B40: mov dword ptr [edi + 8], ebx */ 7588 MEM32(edi + 0xC) = ebx; /* 0x36148B43: mov dword ptr [edi + 0xc], ebx */ 7589 RECOMP_ICALL(0x3615FCC4u); /* 0x36148B46: call 0x3615fcc4 */ /* not lifted */ 7590 RECOMP_FLAGS_IN(); 7591 ecx = MEM32(ebp + (-0x4)); /* 0x36148B4B: mov ecx, dword ptr [ebp - 4] */ 7592 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7594 esp = esp + 8; /* 0x36148B4E: add esp, 8 */ 7595 _flag_k = FK_ADD; 7596 L_36148B51: 7597 edi = MEM32(ecx + 0x54); /* 0x36148B51: mov edi, dword ptr [ecx + 0x54] */ 7598 /* cmp edi, ebx */ /* 0x36148B54: cmp edi, ebx */ 7599 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 7600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7601 _flag_k = FK_CMP; 7602 MEM32(ecx + 0x50) = ebx; /* 0x36148B56: mov dword ptr [ecx + 0x50], ebx */ 7603 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148B97; /* 0x36148B59: je 0x36148b97 */ 7604 L_36148B5B: 7605 eax = MEM32(edi + 0x8); /* 0x36148B5B: mov eax, dword ptr [edi + 8] */ 7606 esi = MEM32(edi + 0x4); /* 0x36148B5E: mov esi, dword ptr [edi + 4] */ 7607 /* cmp esi, eax */ /* 0x36148B61: cmp esi, eax */ 7608 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7610 _flag_k = FK_CMP; 7611 MEM32(ebp + (-0x8)) = eax; /* 0x36148B63: mov dword ptr [ebp - 8], eax */ 7612 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148B79; /* 0x36148B66: je 0x36148b79 */ 7613 L_36148B68: 7614 edx = MEM32(esi); /* 0x36148B68: mov edx, dword ptr [esi] */ 7615 PUSH32(esp, ebx); /* 0x36148B6A: push ebx */ 7616 ecx = esi; /* 0x36148B6B: mov ecx, esi */ 7617 RECOMP_ICALL(MEM32(edx)); /* 0x36148B6D: call dword ptr [edx] */ 7618 RECOMP_FLAGS_IN(); 7619 eax = MEM32(ebp + (-0x8)); /* 0x36148B6F: mov eax, dword ptr [ebp - 8] */ 7620 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu); 7621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7622 esi = esi + 0x3Cu; /* 0x36148B72: add esi, 0x3c */ 7623 _flag_k = FK_ADD; 7624 /* cmp esi, eax */ /* 0x36148B75: cmp esi, eax */ 7625 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7627 _flag_k = FK_CMP; 7628 RECOMP_BACKEDGE(); 7629 if (CMP_NE(_flag_a, _flag_b)) goto L_36148B68; /* 0x36148B77: jne 0x36148b68 */ 7630 L_36148B79: 7631 eax = MEM32(edi + 0x4); /* 0x36148B79: mov eax, dword ptr [edi + 4] */ 7632 PUSH32(esp, eax); /* 0x36148B7C: push eax */ 7633 RECOMP_ICALL(0x3615FCC4u); /* 0x36148B7D: call 0x3615fcc4 */ /* not lifted */ 7634 RECOMP_FLAGS_IN(); 7635 PUSH32(esp, edi); /* 0x36148B82: push edi */ 7636 MEM32(edi + 0x4) = ebx; /* 0x36148B83: mov dword ptr [edi + 4], ebx */ 7637 MEM32(edi + 0x8) = ebx; /* 0x36148B86: mov dword ptr [edi + 8], ebx */ 7638 MEM32(edi + 0xC) = ebx; /* 0x36148B89: mov dword ptr [edi + 0xc], ebx */ 7639 RECOMP_ICALL(0x3615FCC4u); /* 0x36148B8C: call 0x3615fcc4 */ /* not lifted */ 7640 RECOMP_FLAGS_IN(); 7641 ecx = MEM32(ebp + (-0x4)); /* 0x36148B91: mov ecx, dword ptr [ebp - 4] */ 7642 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7644 esp = esp + 8; /* 0x36148B94: add esp, 8 */ 7645 _flag_k = FK_ADD; 7646 L_36148B97: 7647 esi = MEM32(ecx + 0x58); /* 0x36148B97: mov esi, dword ptr [ecx + 0x58] */ 7648 /* cmp esi, ebx */ /* 0x36148B9A: cmp esi, ebx */ 7649 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 7650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7651 _flag_k = FK_CMP; 7652 MEM32(ecx + 0x54) = ebx; /* 0x36148B9C: mov dword ptr [ecx + 0x54], ebx */ 7653 edi = POP32_VAL(esp); /* 0x36148B9F: pop edi */ 7654 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148BC3; /* 0x36148BA0: je 0x36148bc3 */ 7655 L_36148BA2: 7656 eax = MEM32(esi + 0x4); /* 0x36148BA2: mov eax, dword ptr [esi + 4] */ 7657 PUSH32(esp, eax); /* 0x36148BA5: push eax */ 7658 MEM32(ebp + (-0x8)) = eax; /* 0x36148BA6: mov dword ptr [ebp - 8], eax */ 7659 RECOMP_ICALL(0x3615FCC4u); /* 0x36148BA9: call 0x3615fcc4 */ /* not lifted */ 7660 RECOMP_FLAGS_IN(); 7661 PUSH32(esp, esi); /* 0x36148BAE: push esi */ 7662 MEM32(esi + 0x4) = ebx; /* 0x36148BAF: mov dword ptr [esi + 4], ebx */ 7663 MEM32(esi + 0x8) = ebx; /* 0x36148BB2: mov dword ptr [esi + 8], ebx */ 7664 MEM32(esi + 0xC) = ebx; /* 0x36148BB5: mov dword ptr [esi + 0xc], ebx */ 7665 RECOMP_ICALL(0x3615FCC4u); /* 0x36148BB8: call 0x3615fcc4 */ /* not lifted */ 7666 RECOMP_FLAGS_IN(); 7667 ecx = MEM32(ebp + (-0x4)); /* 0x36148BBD: mov ecx, dword ptr [ebp - 4] */ 7668 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7670 esp = esp + 8; /* 0x36148BC0: add esp, 8 */ 7671 _flag_k = FK_ADD; 7672 L_36148BC3: 7673 esi = MEM32(ecx + 0x5C); /* 0x36148BC3: mov esi, dword ptr [ecx + 0x5c] */ 7674 /* cmp esi, ebx */ /* 0x36148BC6: cmp esi, ebx */ 7675 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 7676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7677 _flag_k = FK_CMP; 7678 MEM32(ecx + 0x58) = ebx; /* 0x36148BC8: mov dword ptr [ecx + 0x58], ebx */ 7679 if (CMP_EQ(_flag_a, _flag_b)) goto L_36148BEE; /* 0x36148BCB: je 0x36148bee */ 7680 L_36148BCD: 7681 eax = MEM32(esi + 0x4); /* 0x36148BCD: mov eax, dword ptr [esi + 4] */ 7682 PUSH32(esp, eax); /* 0x36148BD0: push eax */ 7683 MEM32(ebp + (-0x8)) = eax; /* 0x36148BD1: mov dword ptr [ebp - 8], eax */ 7684 RECOMP_ICALL(0x3615FCC4u); /* 0x36148BD4: call 0x3615fcc4 */ /* not lifted */ 7685 RECOMP_FLAGS_IN(); 7686 PUSH32(esp, esi); /* 0x36148BD9: push esi */ 7687 MEM32(esi + 0x4) = ebx; /* 0x36148BDA: mov dword ptr [esi + 4], ebx */ 7688 MEM32(esi + 0x8) = ebx; /* 0x36148BDD: mov dword ptr [esi + 8], ebx */ 7689 MEM32(esi + 0xC) = ebx; /* 0x36148BE0: mov dword ptr [esi + 0xc], ebx */ 7690 RECOMP_ICALL(0x3615FCC4u); /* 0x36148BE3: call 0x3615fcc4 */ /* not lifted */ 7691 RECOMP_FLAGS_IN(); 7692 ecx = MEM32(ebp + (-0x4)); /* 0x36148BE8: mov ecx, dword ptr [ebp - 4] */ 7693 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7694 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7695 esp = esp + 8; /* 0x36148BEB: add esp, 8 */ 7696 _flag_k = FK_ADD; 7697 L_36148BEE: 7698 esi = POP32_VAL(esp); /* 0x36148BEE: pop esi */ 7699 MEM32(ecx + 0x5C) = ebx; /* 0x36148BEF: mov dword ptr [ecx + 0x5c], ebx */ 7700 ebx = POP32_VAL(esp); /* 0x36148BF2: pop ebx */ 7701 esp = ebp; /* 0x36148BF3: mov esp, ebp */ 7702 ebp = POP32_VAL(esp); /* 0x36148BF5: pop ebp */ 7703 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36148BF6: ret */ 7704 RECOMP_REGS_OUT(); 7705 } 7706 7707 void sub_36148C00(void) { 7708 int _fpu_cmp = 0; 7709 uint32_t _cf = 0; 7710 int _df = 1; 7711 uint32_t _flag_k = FK_NONE; 7712 uint32_t _flag_a = 0, _flag_b = 0; 7713 uint32_t _itail_tgt = 0; 7714 RECOMP_REGS_LOCALS 7715 RECOMP_ENTER(0x36148C00u); 7716 7717 L_36148C00: 7718 PUSH32(esp, ebp); /* 0x36148C00: push ebp */ 7719 ebp = esp; /* 0x36148C01: mov ebp, esp */ 7720 PUSH32(esp, 0xFFFFFFFFu); /* 0x36148C03: push -1 */ 7721 PUSH32(esp, 0x3616D106u); /* 0x36148C05: push 0x3616d106 */ 7722 eax = MEM32(FS_BASE + (0)); /* 0x36148C0A: mov eax, dword ptr fs:[0] */ 7723 PUSH32(esp, eax); /* 0x36148C10: push eax */ 7724 MEM32(FS_BASE + (0)) = esp; /* 0x36148C11: mov dword ptr fs:[0], esp */ 7725 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA8u); 7726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7727 esp = esp - 0xA8u; /* 0x36148C18: sub esp, 0xa8 */ 7728 _flag_k = FK_CMP; 7729 PUSH32(esp, ebx); /* 0x36148C1E: push ebx */ 7730 ebx = MEM32(ebp + 0xC); /* 0x36148C1F: mov ebx, dword ptr [ebp + 0xc] */ 7731 PUSH32(esp, esi); /* 0x36148C22: push esi */ 7732 PUSH32(esp, edi); /* 0x36148C23: push edi */ 7733 edi = MEM32(0x3616FAD0); /* 0x36148C24: mov edi, dword ptr [0x3616fad0] */ 7734 eax = ebx + 0xC; /* 0x36148C2A: lea eax, [ebx + 0xc] */ 7735 ecx = ebx + 0x8; /* 0x36148C2D: lea ecx, [ebx + 8] */ 7736 PUSH32(esp, eax); /* 0x36148C30: push eax */ 7737 PUSH32(esp, ecx); /* 0x36148C31: push ecx */ 7738 esi = ebx + 0x4; /* 0x36148C32: lea esi, [ebx + 4] */ 7739 MEM32(ebp + (-0x14)) = ecx; /* 0x36148C35: mov dword ptr [ebp - 0x14], ecx */ 7740 ecx = MEM32(ebp + 0x8); /* 0x36148C38: mov ecx, dword ptr [ebp + 8] */ 7741 PUSH32(esp, esi); /* 0x36148C3B: push esi */ 7742 MEM32(ebp + (-0x10)) = eax; /* 0x36148C3C: mov dword ptr [ebp - 0x10], eax */ 7743 MEM32(ebp + (-0x18)) = esi; /* 0x36148C3F: mov dword ptr [ebp - 0x18], esi */ 7744 RECOMP_ICALL(edi); /* 0x36148C42: call edi */ 7745 RECOMP_FLAGS_IN(); 7746 ecx = eax; /* 0x36148C44: mov ecx, eax */ 7747 RECOMP_ICALL(edi); /* 0x36148C46: call edi */ 7748 RECOMP_FLAGS_IN(); 7749 ecx = eax; /* 0x36148C48: mov ecx, eax */ 7750 RECOMP_ICALL(edi); /* 0x36148C4A: call edi */ 7751 RECOMP_FLAGS_IN(); 7752 fp_push(*(float*)&MEM32(esi)); /* 0x36148C4C: fld dword ptr [esi] */ 7753 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36148C4E: fcomp dword ptr [0x3617040c] */ 7754 fp_pop(); 7755 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36148C54: fnstsw ax */ 7756 /* test HI8(eax), 1 */ /* 0x36148C56: test ah, 1 */ 7757 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7758 _cf = 0; 7759 _flag_k = FK_NARROW(FK_TEST, 24); 7760 if (TEST_NZ(_flag_a, _flag_b)) goto L_361499E2; /* 0x36148C59: jne 0x361499e2 */ 7761 L_36148C5F: 7762 eax = MEM32(ebp + (-0x14)); /* 0x36148C5F: mov eax, dword ptr [ebp - 0x14] */ 7763 fp_push(*(float*)&MEM32(eax)); /* 0x36148C62: fld dword ptr [eax] */ 7764 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36148C64: fcomp dword ptr [0x3617040c] */ 7765 fp_pop(); 7766 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36148C6A: fnstsw ax */ 7767 /* test HI8(eax), 1 */ /* 0x36148C6C: test ah, 1 */ 7768 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7769 _cf = 0; 7770 _flag_k = FK_NARROW(FK_TEST, 24); 7771 if (TEST_NZ(_flag_a, _flag_b)) goto L_361499E2; /* 0x36148C6F: jne 0x361499e2 */ 7772 L_36148C75: 7773 ecx = MEM32(ebp + (-0x10)); /* 0x36148C75: mov ecx, dword ptr [ebp - 0x10] */ 7774 fp_push(*(float*)&MEM32(ecx)); /* 0x36148C78: fld dword ptr [ecx] */ 7775 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36148C7A: fcomp dword ptr [0x3617040c] */ 7776 fp_pop(); 7777 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36148C80: fnstsw ax */ 7778 /* test HI8(eax), 1 */ /* 0x36148C82: test ah, 1 */ 7779 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7780 _cf = 0; 7781 _flag_k = FK_NARROW(FK_TEST, 24); 7782 if (TEST_NZ(_flag_a, _flag_b)) goto L_361499E2; /* 0x36148C85: jne 0x361499e2 */ 7783 L_36148C8B: 7784 /* cmp MEM32(ebx + 0x60), 6 */ /* 0x36148C8B: cmp dword ptr [ebx + 0x60], 6 */ 7785 _flag_a = (uint32_t)(MEM32(ebx + 0x60)); _flag_b = (uint32_t)(6); 7786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7787 _flag_k = FK_CMP; 7788 esi = MEM32(0x3616FAC8); /* 0x36148C8F: mov esi, dword ptr [0x3616fac8] */ 7789 if (CMP_L(_flag_a, _flag_b)) goto L_36148D5E; /* 0x36148C95: jl 0x36148d5e */ 7790 L_36148C9B: 7791 edx = MEM32(ebx); /* 0x36148C9B: mov edx, dword ptr [ebx] */ 7792 ecx = MEM32(ebp + 0x8); /* 0x36148C9D: mov ecx, dword ptr [ebp + 8] */ 7793 eax = ebp + (-0x20); /* 0x36148CA0: lea eax, [ebp - 0x20] */ 7794 PUSH32(esp, eax); /* 0x36148CA3: push eax */ 7795 MEM32(ebp + (-0x28)) = edx; /* 0x36148CA4: mov dword ptr [ebp - 0x28], edx */ 7796 MEM32(ebp + (-0x20)) = 0; /* 0x36148CA7: mov dword ptr [ebp - 0x20], 0 */ 7797 RECOMP_ICALL(esi); /* 0x36148CAE: call esi */ 7798 RECOMP_FLAGS_IN(); 7799 eax = MEM32(ebp + (-0x20)); /* 0x36148CB0: mov eax, dword ptr [ebp - 0x20] */ 7800 /* test LO16(eax), LO16(eax) */ /* 0x36148CB3: test ax, ax */ 7801 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 7802 _cf = 0; 7803 _flag_k = FK_NARROW(FK_TEST, 16); 7804 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148CD5; /* 0x36148CB6: jne 0x36148cd5 */ 7805 L_36148CB8: 7806 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7807 ecx = ecx | 0xFFFFFFFFu; /* 0x36148CB8: or ecx, 0xffffffff */ 7808 _cf = 0; 7809 _flag_k = FK_TEST; 7810 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7811 eax = 0; /* 0x36148CBB: xor eax, eax */ 7812 _cf = 0; 7813 _flag_k = FK_TEST; 7814 edi = 0x363033BCu; /* 0x36148CBD: mov edi, 0x363033bc */ 7815 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; } /* 0x36148CC2: repne scasb al, byte ptr es:[edi] */ 7816 ecx = ~ecx; /* 0x36148CC4: not ecx */ 7817 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7818 ecx = ecx - 1; /* 0x36148CC6: dec ecx */ 7819 _flag_k = FK_DEC; 7820 PUSH32(esp, ecx); /* 0x36148CC7: push ecx */ 7821 ecx = MEM32(ebp + (-0x28)); /* 0x36148CC8: mov ecx, dword ptr [ebp - 0x28] */ 7822 PUSH32(esp, 0x363033BCu); /* 0x36148CCB: push 0x363033bc */ 7823 goto L_36148D90; /* 0x36148CD0: jmp 0x36148d90 */ 7824 L_36148CD5: 7825 /* cmp LO16(eax), 0x8000u */ /* 0x36148CD5: cmp ax, 0x8000 */ 7826 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x8000u) << 16; 7827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7828 _flag_k = FK_NARROW(FK_CMP, 16); 7829 if (CMP_AE(_flag_a, _flag_b)) goto L_36148D33; /* 0x36148CD9: jae 0x36148d33 */ 7830 L_36148CDB: 7831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 7832 eax = eax & 0xFFFFu; /* 0x36148CDB: and eax, 0xffff */ 7833 _cf = 0; 7834 _flag_k = FK_TEST; 7835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7836 eax = eax + 1; /* 0x36148CE0: inc eax */ 7837 _flag_k = FK_INC; 7838 PUSH32(esp, eax); /* 0x36148CE1: push eax */ 7839 RECOMP_ICALL(0x3615FD6Au); /* 0x36148CE2: call 0x3615fd6a */ /* not lifted */ 7840 RECOMP_FLAGS_IN(); 7841 ecx = MEM32(ebp + (-0x20)); /* 0x36148CE7: mov ecx, dword ptr [ebp - 0x20] */ 7842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7844 esp = esp + 4; /* 0x36148CEA: add esp, 4 */ 7845 _flag_k = FK_ADD; 7846 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 7847 ecx = ecx & 0xFFFFu; /* 0x36148CED: and ecx, 0xffff */ 7848 _cf = 0; 7849 _flag_k = FK_TEST; 7850 edi = eax; /* 0x36148CF3: mov edi, eax */ 7851 PUSH32(esp, ecx); /* 0x36148CF5: push ecx */ 7852 ecx = MEM32(ebp + 0x8); /* 0x36148CF6: mov ecx, dword ptr [ebp + 8] */ 7853 PUSH32(esp, edi); /* 0x36148CF9: push edi */ 7854 MEM32(ebp + (-0x14)) = edi; /* 0x36148CFA: mov dword ptr [ebp - 0x14], edi */ 7855 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x36148CFD: call dword ptr [0x3616fac4] */ 7856 RECOMP_FLAGS_IN(); 7857 edx = MEM32(ebp + (-0x20)); /* 0x36148D03: mov edx, dword ptr [ebp - 0x20] */ 7858 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 7859 edx = edx & 0xFFFFu; /* 0x36148D06: and edx, 0xffff */ 7860 _cf = 0; 7861 _flag_k = FK_TEST; 7862 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7863 ecx = ecx | 0xFFFFFFFFu; /* 0x36148D0C: or ecx, 0xffffffff */ 7864 _cf = 0; 7865 _flag_k = FK_TEST; 7866 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7867 eax = 0; /* 0x36148D0F: xor eax, eax */ 7868 _cf = 0; 7869 _flag_k = FK_TEST; 7870 MEM8(edx + edi) = (uint8_t)(0); /* 0x36148D11: mov byte ptr [edx + edi], 0 */ 7871 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; } /* 0x36148D15: repne scasb al, byte ptr es:[edi] */ 7872 edi = MEM32(ebp + (-0x14)); /* 0x36148D17: mov edi, dword ptr [ebp - 0x14] */ 7873 ecx = ~ecx; /* 0x36148D1A: not ecx */ 7874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7875 ecx = ecx - 1; /* 0x36148D1C: dec ecx */ 7876 _flag_k = FK_DEC; 7877 PUSH32(esp, ecx); /* 0x36148D1D: push ecx */ 7878 ecx = MEM32(ebp + (-0x28)); /* 0x36148D1E: mov ecx, dword ptr [ebp - 0x28] */ 7879 PUSH32(esp, edi); /* 0x36148D21: push edi */ 7880 RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36148D22: call dword ptr [0x3616f014] */ 7881 RECOMP_FLAGS_IN(); 7882 PUSH32(esp, edi); /* 0x36148D28: push edi */ 7883 RECOMP_ICALL(0x3615FCC4u); /* 0x36148D29: call 0x3615fcc4 */ /* not lifted */ 7884 RECOMP_FLAGS_IN(); 7885 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7887 esp = esp + 4; /* 0x36148D2E: add esp, 4 */ 7888 _flag_k = FK_ADD; 7889 goto L_36148D96; /* 0x36148D31: jmp 0x36148d96 */ 7890 L_36148D33: 7891 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7892 ecx = ecx | 0xFFFFFFFFu; /* 0x36148D33: or ecx, 0xffffffff */ 7893 _cf = 0; 7894 _flag_k = FK_TEST; 7895 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7896 eax = 0; /* 0x36148D36: xor eax, eax */ 7897 _cf = 0; 7898 _flag_k = FK_TEST; 7899 edi = 0x363033BCu; /* 0x36148D38: mov edi, 0x363033bc */ 7900 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; } /* 0x36148D3D: repne scasb al, byte ptr es:[edi] */ 7901 ecx = ~ecx; /* 0x36148D3F: not ecx */ 7902 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7903 ecx = ecx - 1; /* 0x36148D41: dec ecx */ 7904 _flag_k = FK_DEC; 7905 PUSH32(esp, ecx); /* 0x36148D42: push ecx */ 7906 ecx = MEM32(ebp + (-0x28)); /* 0x36148D43: mov ecx, dword ptr [ebp - 0x28] */ 7907 PUSH32(esp, 0x363033BCu); /* 0x36148D46: push 0x363033bc */ 7908 RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36148D4B: call dword ptr [0x3616f014] */ 7909 RECOMP_FLAGS_IN(); 7910 ecx = MEM32(ebp + 0x8); /* 0x36148D51: mov ecx, dword ptr [ebp + 8] */ 7911 PUSH32(esp, 4); /* 0x36148D54: push 4 */ 7912 RECOMP_ICALL(MEM32(0x3616FAE4)); /* 0x36148D56: call dword ptr [0x3616fae4] */ 7913 RECOMP_FLAGS_IN(); 7914 goto L_36148D96; /* 0x36148D5C: jmp 0x36148d96 */ 7915 L_36148D5E: 7916 ecx = MEM32(ebp + 0x8); /* 0x36148D5E: mov ecx, dword ptr [ebp + 8] */ 7917 PUSH32(esp, 0x20u); /* 0x36148D61: push 0x20 */ 7918 eax = ebp + (-0x94); /* 0x36148D63: lea eax, [ebp - 0x94] */ 7919 PUSH32(esp, eax); /* 0x36148D69: push eax */ 7920 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x36148D6A: call dword ptr [0x3616fac4] */ 7921 RECOMP_FLAGS_IN(); 7922 edx = MEM32(ebx); /* 0x36148D70: mov edx, dword ptr [ebx] */ 7923 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7924 ecx = ecx | 0xFFFFFFFFu; /* 0x36148D72: or ecx, 0xffffffff */ 7925 _cf = 0; 7926 _flag_k = FK_TEST; 7927 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7928 eax = 0; /* 0x36148D75: xor eax, eax */ 7929 _cf = 0; 7930 _flag_k = FK_TEST; 7931 edi = ebp + (-0x94); /* 0x36148D77: lea edi, [ebp - 0x94] */ 7932 MEM8(ebp + (-0x74)) = (uint8_t)(0); /* 0x36148D7D: mov byte ptr [ebp - 0x74], 0 */ 7933 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; } /* 0x36148D81: repne scasb al, byte ptr es:[edi] */ 7934 ecx = ~ecx; /* 0x36148D83: not ecx */ 7935 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7936 ecx = ecx - 1; /* 0x36148D85: dec ecx */ 7937 _flag_k = FK_DEC; 7938 PUSH32(esp, ecx); /* 0x36148D86: push ecx */ 7939 ecx = ebp + (-0x94); /* 0x36148D87: lea ecx, [ebp - 0x94] */ 7940 PUSH32(esp, ecx); /* 0x36148D8D: push ecx */ 7941 ecx = edx; /* 0x36148D8E: mov ecx, edx */ 7942 L_36148D90: 7943 RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36148D90: call dword ptr [0x3616f014] */ 7944 RECOMP_FLAGS_IN(); 7945 L_36148D96: 7946 eax = MEM32(ebx); /* 0x36148D96: mov eax, dword ptr [ebx] */ 7947 ecx = MEM32(eax + 0x8); /* 0x36148D98: mov ecx, dword ptr [eax + 8] */ 7948 /* test ecx, ecx */ /* 0x36148D9B: test ecx, ecx */ 7949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7950 _cf = 0; 7951 _flag_k = FK_TEST; 7952 if (TEST_Z(_flag_a, _flag_b)) goto L_36149996; /* 0x36148D9D: je 0x36149996 */ 7953 L_36148DA3: 7954 /* cmp ecx, 0x40u */ /* 0x36148DA3: cmp ecx, 0x40 */ 7955 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 7956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7957 _flag_k = FK_CMP; 7958 if (CMP_A(_flag_a, _flag_b)) goto L_36149996; /* 0x36148DA6: ja 0x36149996 */ 7959 L_36148DAC: 7960 edi = MEM32(ebp + 0x8); /* 0x36148DAC: mov edi, dword ptr [ebp + 8] */ 7961 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7962 edx = 0; /* 0x36148DAF: xor edx, edx */ 7963 _cf = 0; 7964 _flag_k = FK_TEST; 7965 MEM32(ebp + (-0x3E)) = edx; /* 0x36148DB1: mov dword ptr [ebp - 0x3e], edx */ 7966 MEM32(ebp + (-0x3A)) = edx; /* 0x36148DB4: mov dword ptr [ebp - 0x3a], edx */ 7967 eax = ebp + (-0x40); /* 0x36148DB7: lea eax, [ebp - 0x40] */ 7968 MEM32(ebp + (-0x36)) = edx; /* 0x36148DBA: mov dword ptr [ebp - 0x36], edx */ 7969 PUSH32(esp, eax); /* 0x36148DBD: push eax */ 7970 ecx = edi; /* 0x36148DBE: mov ecx, edi */ 7971 MEM16(ebp + (-0x40)) = (uint16_t)(0); /* 0x36148DC0: mov word ptr [ebp - 0x40], 0 */ 7972 MEM32(ebp + (-0x32)) = edx; /* 0x36148DC6: mov dword ptr [ebp - 0x32], edx */ 7973 RECOMP_ICALL(esi); /* 0x36148DC9: call esi */ 7974 RECOMP_FLAGS_IN(); 7975 ecx = ebp + (-0x3E); /* 0x36148DCB: lea ecx, [ebp - 0x3e] */ 7976 PUSH32(esp, ecx); /* 0x36148DCE: push ecx */ 7977 ecx = eax; /* 0x36148DCF: mov ecx, eax */ 7978 RECOMP_ICALL(esi); /* 0x36148DD1: call esi */ 7979 RECOMP_FLAGS_IN(); 7980 edx = ebp + (-0x3C); /* 0x36148DD3: lea edx, [ebp - 0x3c] */ 7981 PUSH32(esp, edx); /* 0x36148DD6: push edx */ 7982 ecx = eax; /* 0x36148DD7: mov ecx, eax */ 7983 RECOMP_ICALL(esi); /* 0x36148DD9: call esi */ 7984 RECOMP_FLAGS_IN(); 7985 ecx = ebp + (-0x3A); /* 0x36148DDB: lea ecx, [ebp - 0x3a] */ 7986 PUSH32(esp, ecx); /* 0x36148DDE: push ecx */ 7987 ecx = eax; /* 0x36148DDF: mov ecx, eax */ 7988 RECOMP_ICALL(esi); /* 0x36148DE1: call esi */ 7989 RECOMP_FLAGS_IN(); 7990 edx = ebp + (-0x38); /* 0x36148DE3: lea edx, [ebp - 0x38] */ 7991 PUSH32(esp, edx); /* 0x36148DE6: push edx */ 7992 ecx = eax; /* 0x36148DE7: mov ecx, eax */ 7993 RECOMP_ICALL(esi); /* 0x36148DE9: call esi */ 7994 RECOMP_FLAGS_IN(); 7995 ecx = ebp + (-0x36); /* 0x36148DEB: lea ecx, [ebp - 0x36] */ 7996 PUSH32(esp, ecx); /* 0x36148DEE: push ecx */ 7997 ecx = eax; /* 0x36148DEF: mov ecx, eax */ 7998 RECOMP_ICALL(esi); /* 0x36148DF1: call esi */ 7999 RECOMP_FLAGS_IN(); 8000 edx = ebp + (-0x34); /* 0x36148DF3: lea edx, [ebp - 0x34] */ 8001 PUSH32(esp, edx); /* 0x36148DF6: push edx */ 8002 ecx = eax; /* 0x36148DF7: mov ecx, eax */ 8003 RECOMP_ICALL(esi); /* 0x36148DF9: call esi */ 8004 RECOMP_FLAGS_IN(); 8005 ecx = ebp + (-0x32); /* 0x36148DFB: lea ecx, [ebp - 0x32] */ 8006 PUSH32(esp, ecx); /* 0x36148DFE: push ecx */ 8007 ecx = eax; /* 0x36148DFF: mov ecx, eax */ 8008 RECOMP_ICALL(esi); /* 0x36148E01: call esi */ 8009 RECOMP_FLAGS_IN(); 8010 edx = ebp + (-0x30); /* 0x36148E03: lea edx, [ebp - 0x30] */ 8011 PUSH32(esp, edx); /* 0x36148E06: push edx */ 8012 ecx = eax; /* 0x36148E07: mov ecx, eax */ 8013 RECOMP_ICALL(esi); /* 0x36148E09: call esi */ 8014 RECOMP_FLAGS_IN(); 8015 eax = MEM32(ebp + (-0x40)); /* 0x36148E0B: mov eax, dword ptr [ebp - 0x40] */ 8016 ecx = MEM32(ebp + (-0x3E)); /* 0x36148E0E: mov ecx, dword ptr [ebp - 0x3e] */ 8017 edx = MEM32(ebp + (-0x3C)); /* 0x36148E11: mov edx, dword ptr [ebp - 0x3c] */ 8018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 8019 eax = eax & 0xFFFFu; /* 0x36148E14: and eax, 0xffff */ 8020 _cf = 0; 8021 _flag_k = FK_TEST; 8022 MEM32(ebx + 0x10) = eax; /* 0x36148E19: mov dword ptr [ebx + 0x10], eax */ 8023 eax = MEM32(ebp + (-0x3A)); /* 0x36148E1C: mov eax, dword ptr [ebp - 0x3a] */ 8024 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 8025 ecx = ecx & 0xFFFFu; /* 0x36148E1F: and ecx, 0xffff */ 8026 _cf = 0; 8027 _flag_k = FK_TEST; 8028 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 8029 edx = edx & 0xFFFFu; /* 0x36148E25: and edx, 0xffff */ 8030 _cf = 0; 8031 _flag_k = FK_TEST; 8032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 8033 eax = eax & 0xFFFFu; /* 0x36148E2B: and eax, 0xffff */ 8034 _cf = 0; 8035 _flag_k = FK_TEST; 8036 MEM32(ebx + 0x14) = ecx; /* 0x36148E30: mov dword ptr [ebx + 0x14], ecx */ 8037 ecx = MEM32(ebp + (-0x38)); /* 0x36148E33: mov ecx, dword ptr [ebp - 0x38] */ 8038 MEM32(ebx + 0x18) = edx; /* 0x36148E36: mov dword ptr [ebx + 0x18], edx */ 8039 edx = MEM32(ebp + (-0x36)); /* 0x36148E39: mov edx, dword ptr [ebp - 0x36] */ 8040 MEM32(ebx + 0x1C) = eax; /* 0x36148E3C: mov dword ptr [ebx + 0x1c], eax */ 8041 eax = MEM32(ebp + (-0x34)); /* 0x36148E3F: mov eax, dword ptr [ebp - 0x34] */ 8042 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 8043 ecx = ecx & 0xFFFFu; /* 0x36148E42: and ecx, 0xffff */ 8044 _cf = 0; 8045 _flag_k = FK_TEST; 8046 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 8047 edx = edx & 0xFFFFu; /* 0x36148E48: and edx, 0xffff */ 8048 _cf = 0; 8049 _flag_k = FK_TEST; 8050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 8051 eax = eax & 0xFFFFu; /* 0x36148E4E: and eax, 0xffff */ 8052 _cf = 0; 8053 _flag_k = FK_TEST; 8054 MEM32(ebx + 0x20) = ecx; /* 0x36148E53: mov dword ptr [ebx + 0x20], ecx */ 8055 ecx = MEM32(ebp + (-0x32)); /* 0x36148E56: mov ecx, dword ptr [ebp - 0x32] */ 8056 MEM32(ebx + 0x24) = edx; /* 0x36148E59: mov dword ptr [ebx + 0x24], edx */ 8057 edx = MEM32(ebp + (-0x30)); /* 0x36148E5C: mov edx, dword ptr [ebp - 0x30] */ 8058 MEM32(ebx + 0x28) = eax; /* 0x36148E5F: mov dword ptr [ebx + 0x28], eax */ 8059 eax = MEM32(ebx + 0x60); /* 0x36148E62: mov eax, dword ptr [ebx + 0x60] */ 8060 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 8061 ecx = ecx & 0xFFFFu; /* 0x36148E65: and ecx, 0xffff */ 8062 _cf = 0; 8063 _flag_k = FK_TEST; 8064 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 8065 edx = edx & 0xFFFFu; /* 0x36148E6B: and edx, 0xffff */ 8066 _cf = 0; 8067 _flag_k = FK_TEST; 8068 /* cmp eax, 6 */ /* 0x36148E71: cmp eax, 6 */ 8069 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 8070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8071 _flag_k = FK_CMP; 8072 MEM32(ebx + 0x2C) = ecx; /* 0x36148E74: mov dword ptr [ebx + 0x2c], ecx */ 8073 MEM32(ebx + 0x30) = edx; /* 0x36148E77: mov dword ptr [ebx + 0x30], edx */ 8074 if (CMP_GE(_flag_a, _flag_b)) goto L_36148EDC; /* 0x36148E7A: jge 0x36148edc */ 8075 L_36148E7C: 8076 eax = ebp + (-0x22); /* 0x36148E7C: lea eax, [ebp - 0x22] */ 8077 PUSH32(esp, eax); /* 0x36148E7F: push eax */ 8078 ecx = edi; /* 0x36148E80: mov ecx, edi */ 8079 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148E82: call dword ptr [0x3616fae0] */ 8080 RECOMP_FLAGS_IN(); 8081 ecx = ebp + (-0x21); /* 0x36148E88: lea ecx, [ebp - 0x21] */ 8082 PUSH32(esp, ecx); /* 0x36148E8B: push ecx */ 8083 ecx = eax; /* 0x36148E8C: mov ecx, eax */ 8084 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148E8E: call dword ptr [0x3616fae0] */ 8085 RECOMP_FLAGS_IN(); 8086 edx = ebp + (-0x25); /* 0x36148E94: lea edx, [ebp - 0x25] */ 8087 PUSH32(esp, edx); /* 0x36148E97: push edx */ 8088 ecx = eax; /* 0x36148E98: mov ecx, eax */ 8089 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148E9A: call dword ptr [0x3616fae0] */ 8090 RECOMP_FLAGS_IN(); 8091 ecx = ebp + (-0x1D); /* 0x36148EA0: lea ecx, [ebp - 0x1d] */ 8092 PUSH32(esp, ecx); /* 0x36148EA3: push ecx */ 8093 ecx = eax; /* 0x36148EA4: mov ecx, eax */ 8094 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148EA6: call dword ptr [0x3616fae0] */ 8095 RECOMP_FLAGS_IN(); 8096 /* cmp MEM32(ebx + 0x60), 6 */ /* 0x36148EAC: cmp dword ptr [ebx + 0x60], 6 */ 8097 _flag_a = (uint32_t)(MEM32(ebx + 0x60)); _flag_b = (uint32_t)(6); 8098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8099 _flag_k = FK_CMP; 8100 if (CMP_GE(_flag_a, _flag_b)) goto L_36148EDC; /* 0x36148EB0: jge 0x36148edc */ 8101 L_36148EB2: 8102 edx = ebp + (-0x21); /* 0x36148EB2: lea edx, [ebp - 0x21] */ 8103 PUSH32(esp, edx); /* 0x36148EB5: push edx */ 8104 ecx = edi; /* 0x36148EB6: mov ecx, edi */ 8105 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148EB8: call dword ptr [0x3616fae0] */ 8106 RECOMP_FLAGS_IN(); 8107 ecx = ebp + (-0x22); /* 0x36148EBE: lea ecx, [ebp - 0x22] */ 8108 PUSH32(esp, ecx); /* 0x36148EC1: push ecx */ 8109 ecx = eax; /* 0x36148EC2: mov ecx, eax */ 8110 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148EC4: call dword ptr [0x3616fae0] */ 8111 RECOMP_FLAGS_IN(); 8112 SET_LO16(ecx, (uint32_t)MEM8(ebp + (-0x21))); /* 0x36148ECA: movzx cx, byte ptr [ebp - 0x21] */ 8113 SET_LO16(eax, (uint32_t)MEM8(ebp + (-0x22))); /* 0x36148ECF: movzx ax, byte ptr [ebp - 0x22] */ 8114 MEM32(ebp + (-0x54)) = ecx; /* 0x36148ED4: mov dword ptr [ebp - 0x54], ecx */ 8115 MEM32(ebp + (-0x58)) = eax; /* 0x36148ED7: mov dword ptr [ebp - 0x58], eax */ 8116 goto L_36148EF2; /* 0x36148EDA: jmp 0x36148ef2 */ 8117 L_36148EDC: 8118 edx = ebp + (-0x54); /* 0x36148EDC: lea edx, [ebp - 0x54] */ 8119 PUSH32(esp, edx); /* 0x36148EDF: push edx */ 8120 ecx = edi; /* 0x36148EE0: mov ecx, edi */ 8121 RECOMP_ICALL(esi); /* 0x36148EE2: call esi */ 8122 RECOMP_FLAGS_IN(); 8123 ecx = ebp + (-0x58); /* 0x36148EE4: lea ecx, [ebp - 0x58] */ 8124 PUSH32(esp, ecx); /* 0x36148EE7: push ecx */ 8125 ecx = eax; /* 0x36148EE8: mov ecx, eax */ 8126 RECOMP_ICALL(esi); /* 0x36148EEA: call esi */ 8127 RECOMP_FLAGS_IN(); 8128 eax = MEM32(ebp + (-0x58)); /* 0x36148EEC: mov eax, dword ptr [ebp - 0x58] */ 8129 ecx = MEM32(ebp + (-0x54)); /* 0x36148EEF: mov ecx, dword ptr [ebp - 0x54] */ 8130 L_36148EF2: 8131 /* cmp LO16(ecx), 0x400u */ /* 0x36148EF2: cmp cx, 0x400 */ 8132 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 8133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8134 _flag_k = FK_NARROW(FK_CMP, 16); 8135 if (CMP_A(_flag_a, _flag_b)) goto L_36149950; /* 0x36148EF7: ja 0x36149950 */ 8136 L_36148EFD: 8137 /* cmp LO16(eax), 0x400u */ /* 0x36148EFD: cmp ax, 0x400 */ 8138 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 8139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8140 _flag_k = FK_NARROW(FK_CMP, 16); 8141 if (CMP_A(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F01: ja 0x36149950 */ 8142 L_36148F07: 8143 /* cmp LO16(ecx), LO16(eax) */ /* 0x36148F07: cmp cx, ax */ 8144 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 8145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8146 _flag_k = FK_NARROW(FK_CMP, 16); 8147 if (CMP_A(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F0A: ja 0x36149950 */ 8148 L_36148F10: 8149 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F10: test cx, cx */ 8150 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 8151 _cf = 0; 8152 _flag_k = FK_NARROW(FK_TEST, 16); 8153 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148F20; /* 0x36148F13: jne 0x36148f20 */ 8154 L_36148F15: 8155 /* test LO16(eax), LO16(eax) */ /* 0x36148F15: test ax, ax */ 8156 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 8157 _cf = 0; 8158 _flag_k = FK_NARROW(FK_TEST, 16); 8159 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F18: jne 0x36149950 */ 8160 L_36148F1E: 8161 goto L_36148F29; /* 0x36148F1E: jmp 0x36148f29 */ 8162 L_36148F20: 8163 /* test LO16(eax), LO16(eax) */ /* 0x36148F20: test ax, ax */ 8164 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 8165 _cf = 0; 8166 _flag_k = FK_NARROW(FK_TEST, 16); 8167 if (TEST_Z(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F23: je 0x36149950 */ 8168 L_36148F29: 8169 edx = MEM32(ebx + 0x60); /* 0x36148F29: mov edx, dword ptr [ebx + 0x60] */ 8170 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 8171 ecx = ecx & 0xFFFFu; /* 0x36148F2C: and ecx, 0xffff */ 8172 _cf = 0; 8173 _flag_k = FK_TEST; 8174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 8175 eax = eax & 0xFFFFu; /* 0x36148F32: and eax, 0xffff */ 8176 _cf = 0; 8177 _flag_k = FK_TEST; 8178 MEM32(ebx + 0x34) = ecx; /* 0x36148F37: mov dword ptr [ebx + 0x34], ecx */ 8179 MEM32(ebx + 0x38) = eax; /* 0x36148F3A: mov dword ptr [ebx + 0x38], eax */ 8180 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8181 eax = 0; /* 0x36148F3D: xor eax, eax */ 8182 _cf = 0; 8183 _flag_k = FK_TEST; 8184 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8185 ecx = 0; /* 0x36148F3F: xor ecx, ecx */ 8186 _cf = 0; 8187 _flag_k = FK_TEST; 8188 /* cmp edx, 6 */ /* 0x36148F41: cmp edx, 6 */ 8189 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(6); 8190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8191 _flag_k = FK_CMP; 8192 MEM32(ebp + (-0x60)) = eax; /* 0x36148F44: mov dword ptr [ebp - 0x60], eax */ 8193 MEM32(ebp + (-0x68)) = ecx; /* 0x36148F47: mov dword ptr [ebp - 0x68], ecx */ 8194 if (CMP_L(_flag_a, _flag_b)) goto L_36148F99; /* 0x36148F4A: jl 0x36148f99 */ 8195 L_36148F4C: 8196 edx = ebp + (-0x60); /* 0x36148F4C: lea edx, [ebp - 0x60] */ 8197 PUSH32(esp, edx); /* 0x36148F4F: push edx */ 8198 ecx = edi; /* 0x36148F50: mov ecx, edi */ 8199 RECOMP_ICALL(esi); /* 0x36148F52: call esi */ 8200 RECOMP_FLAGS_IN(); 8201 ecx = ebp + (-0x68); /* 0x36148F54: lea ecx, [ebp - 0x68] */ 8202 PUSH32(esp, ecx); /* 0x36148F57: push ecx */ 8203 ecx = eax; /* 0x36148F58: mov ecx, eax */ 8204 RECOMP_ICALL(esi); /* 0x36148F5A: call esi */ 8205 RECOMP_FLAGS_IN(); 8206 eax = MEM32(ebp + (-0x60)); /* 0x36148F5C: mov eax, dword ptr [ebp - 0x60] */ 8207 /* cmp LO16(eax), 0x400u */ /* 0x36148F5F: cmp ax, 0x400 */ 8208 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 8209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8210 _flag_k = FK_NARROW(FK_CMP, 16); 8211 ecx = MEM32(ebp + (-0x68)); /* 0x36148F63: mov ecx, dword ptr [ebp - 0x68] */ 8212 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F66: ja 0x3614990a */ 8213 L_36148F6C: 8214 /* cmp LO16(ecx), 0x400u */ /* 0x36148F6C: cmp cx, 0x400 */ 8215 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 8216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8217 _flag_k = FK_NARROW(FK_CMP, 16); 8218 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F71: ja 0x3614990a */ 8219 L_36148F77: 8220 /* cmp LO16(eax), LO16(ecx) */ /* 0x36148F77: cmp ax, cx */ 8221 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 8222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8223 _flag_k = FK_NARROW(FK_CMP, 16); 8224 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F7A: ja 0x3614990a */ 8225 L_36148F80: 8226 /* test LO16(eax), LO16(eax) */ /* 0x36148F80: test ax, ax */ 8227 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 8228 _cf = 0; 8229 _flag_k = FK_NARROW(FK_TEST, 16); 8230 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148F90; /* 0x36148F83: jne 0x36148f90 */ 8231 L_36148F85: 8232 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F85: test cx, cx */ 8233 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 8234 _cf = 0; 8235 _flag_k = FK_NARROW(FK_TEST, 16); 8236 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F88: jne 0x3614990a */ 8237 L_36148F8E: 8238 goto L_36148F99; /* 0x36148F8E: jmp 0x36148f99 */ 8239 L_36148F90: 8240 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F90: test cx, cx */ 8241 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 8242 _cf = 0; 8243 _flag_k = FK_NARROW(FK_TEST, 16); 8244 if (TEST_Z(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F93: je 0x3614990a */ 8245 L_36148F99: 8246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 8247 eax = eax & 0xFFFFu; /* 0x36148F99: and eax, 0xffff */ 8248 _cf = 0; 8249 _flag_k = FK_TEST; 8250 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 8251 ecx = ecx & 0xFFFFu; /* 0x36148F9E: and ecx, 0xffff */ 8252 _cf = 0; 8253 _flag_k = FK_TEST; 8254 edx = ebp + (-0x5C); /* 0x36148FA4: lea edx, [ebp - 0x5c] */ 8255 MEM32(ebx + 0x3C) = eax; /* 0x36148FA7: mov dword ptr [ebx + 0x3c], eax */ 8256 PUSH32(esp, edx); /* 0x36148FAA: push edx */ 8257 eax = ebp + (-0x6C); /* 0x36148FAB: lea eax, [ebp - 0x6c] */ 8258 MEM32(ebx + 0x40) = ecx; /* 0x36148FAE: mov dword ptr [ebx + 0x40], ecx */ 8259 PUSH32(esp, eax); /* 0x36148FB1: push eax */ 8260 ecx = edi; /* 0x36148FB2: mov ecx, edi */ 8261 MEM32(ebp + (-0x84)) = 0; /* 0x36148FB4: mov dword ptr [ebp - 0x84], 0 */ 8262 MEM32(ebp + (-0x80)) = 1; /* 0x36148FBE: mov dword ptr [ebp - 0x80], 1 */ 8263 MEM32(ebp + (-0x7C)) = 2; /* 0x36148FC5: mov dword ptr [ebp - 0x7c], 2 */ 8264 MEM32(ebp + (-0x78)) = 3; /* 0x36148FCC: mov dword ptr [ebp - 0x78], 3 */ 8265 MEM32(ebp + (-0x74)) = 4; /* 0x36148FD3: mov dword ptr [ebp - 0x74], 4 */ 8266 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FDA: call dword ptr [0x3616fae0] */ 8267 RECOMP_FLAGS_IN(); 8268 ecx = eax; /* 0x36148FE0: mov ecx, eax */ 8269 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36148FE2: call dword ptr [0x3616fa8c] */ 8270 RECOMP_FLAGS_IN(); 8271 ecx = ebp + (-0x70); /* 0x36148FE8: lea ecx, [ebp - 0x70] */ 8272 PUSH32(esp, ecx); /* 0x36148FEB: push ecx */ 8273 ecx = eax; /* 0x36148FEC: mov ecx, eax */ 8274 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FEE: call dword ptr [0x3616fae0] */ 8275 RECOMP_FLAGS_IN(); 8276 edx = ebp + (-0x48); /* 0x36148FF4: lea edx, [ebp - 0x48] */ 8277 PUSH32(esp, edx); /* 0x36148FF7: push edx */ 8278 ecx = eax; /* 0x36148FF8: mov ecx, eax */ 8279 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FFA: call dword ptr [0x3616fae0] */ 8280 RECOMP_FLAGS_IN(); 8281 eax = MEM32(ebp + (-0x6C)); /* 0x36149000: mov eax, dword ptr [ebp - 0x6c] */ 8282 /* cmp LO8(eax), 0x64u */ /* 0x36149003: cmp al, 0x64 */ 8283 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x64u) << 24; 8284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8285 _flag_k = FK_NARROW(FK_CMP, 24); 8286 if (CMP_BE(_flag_a, _flag_b)) goto L_36149046; /* 0x36149005: jbe 0x36149046 */ 8287 L_36149007: 8288 ebx = MEM32(ebx); /* 0x36149007: mov ebx, dword ptr [ebx] */ 8289 ecx = MEM32(ebx + 0x4); /* 0x36149009: mov ecx, dword ptr [ebx + 4] */ 8290 /* test ecx, ecx */ /* 0x3614900C: test ecx, ecx */ 8291 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8292 _cf = 0; 8293 _flag_k = FK_TEST; 8294 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149016; /* 0x3614900E: jne 0x36149016 */ 8295 L_36149010: 8296 ecx = MEM32(0x3616F10C); /* 0x36149010: mov ecx, dword ptr [0x3616f10c] */ 8297 L_36149016: 8298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 8299 eax = eax & 0xFFu; /* 0x36149016: and eax, 0xff */ 8300 _cf = 0; 8301 _flag_k = FK_TEST; 8302 PUSH32(esp, eax); /* 0x3614901B: push eax */ 8303 PUSH32(esp, ecx); /* 0x3614901C: push ecx */ 8304 PUSH32(esp, 0x362E7720u); /* 0x3614901D: push 0x362e7720 */ 8305 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149022: call dword ptr [0x3616f18c] */ 8306 RECOMP_FLAGS_IN(); 8307 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8308 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8309 esp = esp + 0xCu; /* 0x36149028: add esp, 0xc */ 8310 _flag_k = FK_ADD; 8311 PUSH32(esp, 0x362E7700u); /* 0x3614902B: push 0x362e7700 */ 8312 ecx = ebp + (-0x1C); /* 0x36149030: lea ecx, [ebp - 0x1c] */ 8313 RECOMP_ICALL(0x36008EF0u); /* 0x36149033: call 0x36008ef0 */ /* not lifted */ 8314 RECOMP_FLAGS_IN(); 8315 PUSH32(esp, 0x36184170u); /* 0x36149038: push 0x36184170 */ 8316 eax = ebp + (-0x1C); /* 0x3614903D: lea eax, [ebp - 0x1c] */ 8317 PUSH32(esp, eax); /* 0x36149040: push eax */ 8318 RECOMP_ICALL(0x3615FD70u); /* 0x36149041: call 0x3615fd70 */ /* not lifted */ 8319 RECOMP_FLAGS_IN(); 8320 L_36149046: 8321 ecx = MEM32(ebp + (-0x5C)); /* 0x36149046: mov ecx, dword ptr [ebp - 0x5c] */ 8322 /* cmp ecx, 0xFFFFFFFFu */ /* 0x36149049: cmp ecx, -1 */ 8323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 8324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8325 _flag_k = FK_CMP; 8326 if (CMP_GE(_flag_a, _flag_b)) goto L_36149087; /* 0x3614904C: jge 0x36149087 */ 8327 L_3614904E: 8328 ebx = MEM32(ebx); /* 0x3614904E: mov ebx, dword ptr [ebx] */ 8329 eax = MEM32(ebx + 0x4); /* 0x36149050: mov eax, dword ptr [ebx + 4] */ 8330 /* test eax, eax */ /* 0x36149053: test eax, eax */ 8331 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8332 _cf = 0; 8333 _flag_k = FK_TEST; 8334 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614905C; /* 0x36149055: jne 0x3614905c */ 8335 L_36149057: 8336 eax = MEM32(0x3616F10C); /* 0x36149057: mov eax, dword ptr [0x3616f10c] */ 8337 L_3614905C: 8338 PUSH32(esp, ecx); /* 0x3614905C: push ecx */ 8339 PUSH32(esp, eax); /* 0x3614905D: push eax */ 8340 PUSH32(esp, 0x362E76ACu); /* 0x3614905E: push 0x362e76ac */ 8341 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149063: call dword ptr [0x3616f18c] */ 8342 RECOMP_FLAGS_IN(); 8343 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8345 esp = esp + 0xCu; /* 0x36149069: add esp, 0xc */ 8346 _flag_k = FK_ADD; 8347 PUSH32(esp, 0x362E7700u); /* 0x3614906C: push 0x362e7700 */ 8348 ecx = ebp + (-0x1C); /* 0x36149071: lea ecx, [ebp - 0x1c] */ 8349 RECOMP_ICALL(0x36008EF0u); /* 0x36149074: call 0x36008ef0 */ /* not lifted */ 8350 RECOMP_FLAGS_IN(); 8351 PUSH32(esp, 0x36184170u); /* 0x36149079: push 0x36184170 */ 8352 ecx = ebp + (-0x1C); /* 0x3614907E: lea ecx, [ebp - 0x1c] */ 8353 PUSH32(esp, ecx); /* 0x36149081: push ecx */ 8354 RECOMP_ICALL(0x3615FD70u); /* 0x36149082: call 0x3615fd70 */ /* not lifted */ 8355 RECOMP_FLAGS_IN(); 8356 L_36149087: 8357 ecx = MEM32(ebp + (-0x70)); /* 0x36149087: mov ecx, dword ptr [ebp - 0x70] */ 8358 /* cmp LO8(ecx), 5 */ /* 0x3614908A: cmp cl, 5 */ 8359 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(5) << 24; 8360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8361 _flag_k = FK_NARROW(FK_CMP, 24); 8362 if (CMP_B(_flag_a, _flag_b)) goto L_361490D0; /* 0x3614908D: jb 0x361490d0 */ 8363 L_3614908F: 8364 ebx = MEM32(ebx); /* 0x3614908F: mov ebx, dword ptr [ebx] */ 8365 eax = MEM32(ebx + 0x4); /* 0x36149091: mov eax, dword ptr [ebx + 4] */ 8366 /* test eax, eax */ /* 0x36149094: test eax, eax */ 8367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8368 _cf = 0; 8369 _flag_k = FK_TEST; 8370 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614909D; /* 0x36149096: jne 0x3614909d */ 8371 L_36149098: 8372 eax = MEM32(0x3616F10C); /* 0x36149098: mov eax, dword ptr [0x3616f10c] */ 8373 L_3614909D: 8374 PUSH32(esp, 5); /* 0x3614909D: push 5 */ 8375 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 8376 ecx = ecx & 0xFFu; /* 0x3614909F: and ecx, 0xff */ 8377 _cf = 0; 8378 _flag_k = FK_TEST; 8379 PUSH32(esp, ecx); /* 0x361490A5: push ecx */ 8380 PUSH32(esp, eax); /* 0x361490A6: push eax */ 8381 PUSH32(esp, 0x362E7654u); /* 0x361490A7: push 0x362e7654 */ 8382 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361490AC: call dword ptr [0x3616f18c] */ 8383 RECOMP_FLAGS_IN(); 8384 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8386 esp = esp + 0x10u; /* 0x361490B2: add esp, 0x10 */ 8387 _flag_k = FK_ADD; 8388 PUSH32(esp, 0x362E7700u); /* 0x361490B5: push 0x362e7700 */ 8389 ecx = ebp + (-0x1C); /* 0x361490BA: lea ecx, [ebp - 0x1c] */ 8390 RECOMP_ICALL(0x36008EF0u); /* 0x361490BD: call 0x36008ef0 */ /* not lifted */ 8391 RECOMP_FLAGS_IN(); 8392 PUSH32(esp, 0x36184170u); /* 0x361490C2: push 0x36184170 */ 8393 edx = ebp + (-0x1C); /* 0x361490C7: lea edx, [ebp - 0x1c] */ 8394 PUSH32(esp, edx); /* 0x361490CA: push edx */ 8395 RECOMP_ICALL(0x3615FD70u); /* 0x361490CB: call 0x3615fd70 */ /* not lifted */ 8396 RECOMP_FLAGS_IN(); 8397 L_361490D0: 8398 fp_push((double)(int32_t)MEM32(ebp + (-0x5C))); /* 0x361490D0: fild dword ptr [ebp - 0x5c] */ 8399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 8400 eax = eax & 0xFFu; /* 0x361490D3: and eax, 0xff */ 8401 _cf = 0; 8402 _flag_k = FK_TEST; 8403 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 8404 ecx = ecx & 0xFFu; /* 0x361490D8: and ecx, 0xff */ 8405 _cf = 0; 8406 _flag_k = FK_TEST; 8407 MEM32(ebx + 0x44) = eax; /* 0x361490DE: mov dword ptr [ebx + 0x44], eax */ 8408 eax = MEM32(ebp + ecx * 4 + (-0x84)); /* 0x361490E1: mov eax, dword ptr [ebp + ecx*4 - 0x84] */ 8409 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x48) = _v; } /* 0x361490E8: fstp dword ptr [ebx + 0x48] */ 8410 MEM32(ebx + 0x4C) = eax; /* 0x361490EB: mov dword ptr [ebx + 0x4c], eax */ 8411 /* cmp MEM32(ebx + 0x60), 6 */ /* 0x361490EE: cmp dword ptr [ebx + 0x60], 6 */ 8412 _flag_a = (uint32_t)(MEM32(ebx + 0x60)); _flag_b = (uint32_t)(6); 8413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8414 _flag_k = FK_CMP; 8415 MEM8(ebp + (-0x44)) = (uint8_t)(0); /* 0x361490F2: mov byte ptr [ebp - 0x44], 0 */ 8416 if (CMP_GE(_flag_a, _flag_b)) goto L_36149104; /* 0x361490F6: jge 0x36149104 */ 8417 L_361490F8: 8418 ecx = ebp + (-0x44); /* 0x361490F8: lea ecx, [ebp - 0x44] */ 8419 PUSH32(esp, ecx); /* 0x361490FB: push ecx */ 8420 ecx = edi; /* 0x361490FC: mov ecx, edi */ 8421 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x361490FE: call dword ptr [0x3616fae0] */ 8422 RECOMP_FLAGS_IN(); 8423 L_36149104: 8424 edx = ebp + (-0x64); /* 0x36149104: lea edx, [ebp - 0x64] */ 8425 PUSH32(esp, edx); /* 0x36149107: push edx */ 8426 ecx = edi; /* 0x36149108: mov ecx, edi */ 8427 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x3614910A: call dword ptr [0x3616fae0] */ 8428 RECOMP_FLAGS_IN(); 8429 ecx = ebp + (-0x4C); /* 0x36149110: lea ecx, [ebp - 0x4c] */ 8430 PUSH32(esp, ecx); /* 0x36149113: push ecx */ 8431 ecx = eax; /* 0x36149114: mov ecx, eax */ 8432 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149116: call dword ptr [0x3616fae0] */ 8433 RECOMP_FLAGS_IN(); 8434 edx = ebp + (-0x50); /* 0x3614911C: lea edx, [ebp - 0x50] */ 8435 PUSH32(esp, edx); /* 0x3614911F: push edx */ 8436 ecx = eax; /* 0x36149120: mov ecx, eax */ 8437 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149122: call dword ptr [0x3616fae0] */ 8438 RECOMP_FLAGS_IN(); 8439 SET_LO8(eax, MEM8(ebp + (-0x48))); /* 0x36149128: mov al, byte ptr [ebp - 0x48] */ 8440 /* test LO8(eax), LO8(eax) */ /* 0x3614912B: test al, al */ 8441 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8442 _cf = 0; 8443 _flag_k = FK_NARROW(FK_TEST, 24); 8444 MEM32(ebp + (-0x20)) = 0; /* 0x3614912D: mov dword ptr [ebp - 0x20], 0 */ 8445 if (TEST_Z(_flag_a, _flag_b)) goto L_36149189; /* 0x36149134: jbe 0x36149189 */ 8446 L_36149136: 8447 eax = ebp + (-0x10); /* 0x36149136: lea eax, [ebp - 0x10] */ 8448 PUSH32(esp, eax); /* 0x36149139: push eax */ 8449 PUSH32(esp, edi); /* 0x3614913A: push edi */ 8450 MEM32(ebp + (-0x10)) = 0; /* 0x3614913B: mov dword ptr [ebp - 0x10], 0 */ 8451 RECOMP_ICALL(0x360F44D0u); /* 0x36149142: call 0x360f44d0 */ /* not lifted */ 8452 RECOMP_FLAGS_IN(); 8453 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8454 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8455 esp = esp + 8; /* 0x36149147: add esp, 8 */ 8456 _flag_k = FK_ADD; 8457 ecx = ebp + (-0x14); /* 0x3614914A: lea ecx, [ebp - 0x14] */ 8458 PUSH32(esp, ecx); /* 0x3614914D: push ecx */ 8459 ecx = eax; /* 0x3614914E: mov ecx, eax */ 8460 RECOMP_ICALL(esi); /* 0x36149150: call esi */ 8461 RECOMP_FLAGS_IN(); 8462 edx = MEM32(ebp + (-0x10)); /* 0x36149152: mov edx, dword ptr [ebp - 0x10] */ 8463 eax = MEM32(ebp + (-0x14)); /* 0x36149155: mov eax, dword ptr [ebp - 0x14] */ 8464 ecx = MEM32(ebx + 0x58); /* 0x36149158: mov ecx, dword ptr [ebx + 0x58] */ 8465 MEM32(ebp + (-0x1C)) = edx; /* 0x3614915B: mov dword ptr [ebp - 0x1c], edx */ 8466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 8467 eax = eax & 0xFFFFu; /* 0x3614915E: and eax, 0xffff */ 8468 _cf = 0; 8469 _flag_k = FK_TEST; 8470 edx = ebp + (-0x1C); /* 0x36149163: lea edx, [ebp - 0x1c] */ 8471 PUSH32(esp, edx); /* 0x36149166: push edx */ 8472 MEM32(ebp + (-0x18)) = eax; /* 0x36149167: mov dword ptr [ebp - 0x18], eax */ 8473 eax = MEM32(ecx + 0x8); /* 0x3614916A: mov eax, dword ptr [ecx + 8] */ 8474 PUSH32(esp, 1); /* 0x3614916D: push 1 */ 8475 PUSH32(esp, eax); /* 0x3614916F: push eax */ 8476 RECOMP_ICALL(0x36149F30u); /* 0x36149170: call 0x36149f30 */ /* not lifted */ 8477 RECOMP_FLAGS_IN(); 8478 eax = MEM32(ebp + (-0x20)); /* 0x36149175: mov eax, dword ptr [ebp - 0x20] */ 8479 ecx = MEM32(ebp + (-0x48)); /* 0x36149178: mov ecx, dword ptr [ebp - 0x48] */ 8480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8481 eax = eax + 1; /* 0x3614917B: inc eax */ 8482 _flag_k = FK_INC; 8483 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 8484 ecx = ecx & 0xFFu; /* 0x3614917C: and ecx, 0xff */ 8485 _cf = 0; 8486 _flag_k = FK_TEST; 8487 /* cmp eax, ecx */ /* 0x36149182: cmp eax, ecx */ 8488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8490 _flag_k = FK_CMP; 8491 MEM32(ebp + (-0x20)) = eax; /* 0x36149184: mov dword ptr [ebp - 0x20], eax */ 8492 RECOMP_BACKEDGE(); 8493 if (CMP_L(_flag_a, _flag_b)) goto L_36149136; /* 0x36149187: jl 0x36149136 */ 8494 L_36149189: 8495 SET_LO8(eax, MEM8(ebp + (-0x44))); /* 0x36149189: mov al, byte ptr [ebp - 0x44] */ 8496 /* test LO8(eax), LO8(eax) */ /* 0x3614918C: test al, al */ 8497 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8498 _cf = 0; 8499 _flag_k = FK_NARROW(FK_TEST, 24); 8500 MEM32(ebp + (-0x10)) = 0; /* 0x3614918E: mov dword ptr [ebp - 0x10], 0 */ 8501 if (TEST_Z(_flag_a, _flag_b)) goto L_361491C7; /* 0x36149195: jbe 0x361491c7 */ 8502 L_36149197: 8503 edx = ebp + (-0x14); /* 0x36149197: lea edx, [ebp - 0x14] */ 8504 PUSH32(esp, edx); /* 0x3614919A: push edx */ 8505 PUSH32(esp, edi); /* 0x3614919B: push edi */ 8506 MEM32(ebp + (-0x14)) = 0; /* 0x3614919C: mov dword ptr [ebp - 0x14], 0 */ 8507 RECOMP_ICALL(0x360F44D0u); /* 0x361491A3: call 0x360f44d0 */ /* not lifted */ 8508 RECOMP_FLAGS_IN(); 8509 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8511 esp = esp + 8; /* 0x361491A8: add esp, 8 */ 8512 _flag_k = FK_ADD; 8513 ecx = ebp + (-0x1E); /* 0x361491AB: lea ecx, [ebp - 0x1e] */ 8514 PUSH32(esp, ecx); /* 0x361491AE: push ecx */ 8515 ecx = eax; /* 0x361491AF: mov ecx, eax */ 8516 RECOMP_ICALL(esi); /* 0x361491B1: call esi */ 8517 RECOMP_FLAGS_IN(); 8518 eax = MEM32(ebp + (-0x10)); /* 0x361491B3: mov eax, dword ptr [ebp - 0x10] */ 8519 edx = MEM32(ebp + (-0x44)); /* 0x361491B6: mov edx, dword ptr [ebp - 0x44] */ 8520 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8521 eax = eax + 1; /* 0x361491B9: inc eax */ 8522 _flag_k = FK_INC; 8523 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 8524 edx = edx & 0xFFu; /* 0x361491BA: and edx, 0xff */ 8525 _cf = 0; 8526 _flag_k = FK_TEST; 8527 /* cmp eax, edx */ /* 0x361491C0: cmp eax, edx */ 8528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8530 _flag_k = FK_CMP; 8531 MEM32(ebp + (-0x10)) = eax; /* 0x361491C2: mov dword ptr [ebp - 0x10], eax */ 8532 RECOMP_BACKEDGE(); 8533 if (CMP_L(_flag_a, _flag_b)) goto L_36149197; /* 0x361491C5: jl 0x36149197 */ 8534 L_361491C7: 8535 SET_LO8(eax, MEM8(ebp + (-0x64))); /* 0x361491C7: mov al, byte ptr [ebp - 0x64] */ 8536 /* test LO8(eax), LO8(eax) */ /* 0x361491CA: test al, al */ 8537 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8538 _cf = 0; 8539 _flag_k = FK_NARROW(FK_TEST, 24); 8540 MEM32(ebp + (-0x14)) = 0; /* 0x361491CC: mov dword ptr [ebp - 0x14], 0 */ 8541 if (TEST_Z(_flag_a, _flag_b)) goto L_361494B8; /* 0x361491D3: jbe 0x361494b8 */ 8542 L_361491D9: 8543 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 8544 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 8545 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 8546 PUSH32(esp, eax); /* 0x361491E5: push eax */ 8547 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 8548 RECOMP_FLAGS_IN(); 8549 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 8550 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 8551 ecx = eax; /* 0x361491EC: mov ecx, eax */ 8552 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 8553 RECOMP_FLAGS_IN(); 8554 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 8555 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 8556 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 8557 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8559 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 8560 _flag_k = FK_CMP; 8561 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 8562 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8563 edx = (uint32_t)((int32_t)edx >> 1u); 8564 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 8565 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8567 _flag_k = FK_CMP; 8568 edi = eax; /* 0x36149200: mov edi, eax */ 8569 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 8570 L_36149208: 8571 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 8572 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 8573 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8574 _cf = 0; 8575 _flag_k = FK_TEST; 8576 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 8577 L_3614920F: 8578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8580 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 8581 _flag_k = FK_CMP; 8582 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 8583 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8584 eax = (uint32_t)((int32_t)eax >> 1u); 8585 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 8586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8588 _flag_k = FK_CMP; 8589 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 8590 L_36149218: 8591 ecx = esi; /* 0x36149218: mov ecx, esi */ 8592 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 8593 RECOMP_FLAGS_IN(); 8594 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 8595 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 8596 L_36149224: 8597 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 8598 L_3614922B: 8599 ecx = esi; /* 0x3614922B: mov ecx, esi */ 8600 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 8601 RECOMP_FLAGS_IN(); 8602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 8603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8604 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 8605 _flag_k = FK_ADD; 8606 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 8607 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 8608 L_3614923A: 8609 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8610 eax = 0; /* 0x3614923A: xor eax, eax */ 8611 _cf = 0; 8612 _flag_k = FK_TEST; 8613 L_3614923C: 8614 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8615 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8616 eax = eax + eax; /* 0x3614923C: add eax, eax */ 8617 _flag_k = FK_ADD; 8618 PUSH32(esp, eax); /* 0x3614923E: push eax */ 8619 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 8620 RECOMP_FLAGS_IN(); 8621 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 8622 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8624 esp = esp + 4; /* 0x36149247: add esp, 4 */ 8625 _flag_k = FK_ADD; 8626 PUSH32(esp, eax); /* 0x3614924A: push eax */ 8627 PUSH32(esp, edi); /* 0x3614924B: push edi */ 8628 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 8629 ecx = esi; /* 0x3614924D: mov ecx, esi */ 8630 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 8631 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 8632 RECOMP_FLAGS_IN(); 8633 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 8634 PUSH32(esp, edx); /* 0x3614925A: push edx */ 8635 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 8636 PUSH32(esp, eax); /* 0x3614925D: push eax */ 8637 ecx = esi; /* 0x3614925E: mov ecx, esi */ 8638 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 8639 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 8640 RECOMP_FLAGS_IN(); 8641 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 8642 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 8643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8645 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 8646 _flag_k = FK_ADD; 8647 PUSH32(esp, eax); /* 0x36149271: push eax */ 8648 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 8649 PUSH32(esp, edi); /* 0x36149273: push edi */ 8650 ecx = esi; /* 0x36149274: mov ecx, esi */ 8651 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 8652 RECOMP_FLAGS_IN(); 8653 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 8654 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 8655 PUSH32(esp, edx); /* 0x36149281: push edx */ 8656 PUSH32(esp, eax); /* 0x36149282: push eax */ 8657 ecx = esi; /* 0x36149283: mov ecx, esi */ 8658 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 8659 RECOMP_FLAGS_IN(); 8660 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 8661 PUSH32(esp, eax); /* 0x3614928D: push eax */ 8662 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 8663 RECOMP_FLAGS_IN(); 8664 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 8665 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 8666 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 8667 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8669 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 8670 _flag_k = FK_ADD; 8671 ecx = esi; /* 0x3614929F: mov ecx, esi */ 8672 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 8673 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 8674 RECOMP_FLAGS_IN(); 8675 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 8676 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 8677 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 8678 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 8679 L_361492B8: 8680 ecx = eax; /* 0x361492B8: mov ecx, eax */ 8681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8683 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 8684 _flag_k = FK_CMP; 8685 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 8686 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8687 ecx = (uint32_t)((int32_t)ecx >> 1u); 8688 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 8689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8691 _flag_k = FK_CMP; 8692 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 8693 L_361492C3: 8694 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 8695 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 8696 PUSH32(esp, eax); /* 0x361492C7: push eax */ 8697 PUSH32(esp, edi); /* 0x361492C8: push edi */ 8698 ecx = esi; /* 0x361492C9: mov ecx, esi */ 8699 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 8700 RECOMP_FLAGS_IN(); 8701 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 8702 ecx = eax; /* 0x361492D3: mov ecx, eax */ 8703 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 8704 PUSH32(esp, edx); /* 0x361492D8: push edx */ 8705 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8707 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 8708 _flag_k = FK_CMP; 8709 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 8710 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8711 ecx = (uint32_t)((int32_t)ecx >> 1u); 8712 edx = 1; /* 0x361492DD: mov edx, 1 */ 8713 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8715 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 8716 _flag_k = FK_CMP; 8717 PUSH32(esp, edx); /* 0x361492E4: push edx */ 8718 PUSH32(esp, eax); /* 0x361492E5: push eax */ 8719 ecx = esi; /* 0x361492E6: mov ecx, esi */ 8720 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 8721 RECOMP_FLAGS_IN(); 8722 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 8723 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 8724 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8726 _flag_k = FK_CMP; 8727 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 8728 L_361492F4: 8729 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 8730 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 8731 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 8732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8733 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 8734 _flag_k = FK_ADD; 8735 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 8736 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8738 _flag_k = FK_CMP; 8739 RECOMP_BACKEDGE(); 8740 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 8741 L_36149302: 8742 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 8743 L_36149304: 8744 PUSH32(esp, eax); /* 0x36149304: push eax */ 8745 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 8746 PUSH32(esp, eax); /* 0x36149308: push eax */ 8747 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 8748 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 8749 ecx = esi; /* 0x3614930D: mov ecx, esi */ 8750 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 8751 RECOMP_FLAGS_IN(); 8752 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 8753 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 8754 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 8755 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8757 _flag_k = FK_CMP; 8758 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 8759 L_3614931E: 8760 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 8761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8763 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 8764 _flag_k = FK_CMP; 8765 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 8766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8767 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 8768 _flag_k = FK_CMP; 8769 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 8770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8772 _flag_k = FK_CMP; 8773 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 8774 RECOMP_BACKEDGE(); 8775 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 8776 L_3614932F: 8777 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 8778 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 8779 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8781 _flag_k = FK_CMP; 8782 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 8783 L_36149336: 8784 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 8785 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 8786 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 8787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8788 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 8789 _flag_k = FK_ADD; 8790 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 8791 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8793 _flag_k = FK_CMP; 8794 RECOMP_BACKEDGE(); 8795 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 8796 L_36149344: 8797 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 8798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8799 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 8800 _flag_k = FK_ADD; 8801 L_36149348: 8802 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 8803 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 8804 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 8805 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8807 edx = edx - eax; /* 0x36149351: sub edx, eax */ 8808 _flag_k = FK_CMP; 8809 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 8810 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8811 edx = (uint32_t)((int32_t)edx >> 1u); 8812 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 8813 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8815 _flag_k = FK_CMP; 8816 edi = eax; /* 0x36149358: mov edi, eax */ 8817 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 8818 L_36149360: 8819 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 8820 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 8821 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8822 _cf = 0; 8823 _flag_k = FK_TEST; 8824 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 8825 L_36149367: 8826 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8828 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 8829 _flag_k = FK_CMP; 8830 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 8831 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8832 eax = (uint32_t)((int32_t)eax >> 1u); 8833 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 8834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8836 _flag_k = FK_CMP; 8837 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 8838 L_36149370: 8839 ecx = esi; /* 0x36149370: mov ecx, esi */ 8840 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 8841 RECOMP_FLAGS_IN(); 8842 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 8843 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 8844 L_3614937C: 8845 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 8846 L_36149383: 8847 ecx = esi; /* 0x36149383: mov ecx, esi */ 8848 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 8849 RECOMP_FLAGS_IN(); 8850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 8851 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8852 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 8853 _flag_k = FK_ADD; 8854 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 8855 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 8856 L_36149392: 8857 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8858 eax = 0; /* 0x36149392: xor eax, eax */ 8859 _cf = 0; 8860 _flag_k = FK_TEST; 8861 L_36149394: 8862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8864 eax = eax + eax; /* 0x36149394: add eax, eax */ 8865 _flag_k = FK_ADD; 8866 PUSH32(esp, eax); /* 0x36149396: push eax */ 8867 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 8868 RECOMP_FLAGS_IN(); 8869 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 8870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8872 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 8873 _flag_k = FK_ADD; 8874 PUSH32(esp, eax); /* 0x361493A2: push eax */ 8875 PUSH32(esp, edi); /* 0x361493A3: push edi */ 8876 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 8877 ecx = esi; /* 0x361493A5: mov ecx, esi */ 8878 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 8879 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 8880 RECOMP_FLAGS_IN(); 8881 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 8882 PUSH32(esp, edx); /* 0x361493B2: push edx */ 8883 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 8884 PUSH32(esp, eax); /* 0x361493B5: push eax */ 8885 ecx = esi; /* 0x361493B6: mov ecx, esi */ 8886 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 8887 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 8888 RECOMP_FLAGS_IN(); 8889 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 8890 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 8891 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8892 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8893 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 8894 _flag_k = FK_ADD; 8895 PUSH32(esp, eax); /* 0x361493C9: push eax */ 8896 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 8897 PUSH32(esp, edi); /* 0x361493CB: push edi */ 8898 ecx = esi; /* 0x361493CC: mov ecx, esi */ 8899 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 8900 RECOMP_FLAGS_IN(); 8901 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 8902 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 8903 PUSH32(esp, edx); /* 0x361493D9: push edx */ 8904 PUSH32(esp, eax); /* 0x361493DA: push eax */ 8905 ecx = esi; /* 0x361493DB: mov ecx, esi */ 8906 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 8907 RECOMP_FLAGS_IN(); 8908 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 8909 PUSH32(esp, eax); /* 0x361493E5: push eax */ 8910 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 8911 RECOMP_FLAGS_IN(); 8912 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 8913 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 8914 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 8915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8917 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 8918 _flag_k = FK_ADD; 8919 ecx = esi; /* 0x361493F7: mov ecx, esi */ 8920 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 8921 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 8922 RECOMP_FLAGS_IN(); 8923 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 8924 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 8925 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 8926 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 8927 L_36149410: 8928 ecx = eax; /* 0x36149410: mov ecx, eax */ 8929 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8931 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 8932 _flag_k = FK_CMP; 8933 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 8934 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8935 ecx = (uint32_t)((int32_t)ecx >> 1u); 8936 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 8937 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8939 _flag_k = FK_CMP; 8940 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 8941 L_3614941B: 8942 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 8943 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 8944 PUSH32(esp, eax); /* 0x3614941F: push eax */ 8945 PUSH32(esp, edi); /* 0x36149420: push edi */ 8946 ecx = esi; /* 0x36149421: mov ecx, esi */ 8947 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 8948 RECOMP_FLAGS_IN(); 8949 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 8950 ecx = eax; /* 0x3614942B: mov ecx, eax */ 8951 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 8952 PUSH32(esp, edx); /* 0x36149430: push edx */ 8953 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8955 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 8956 _flag_k = FK_CMP; 8957 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 8958 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8959 ecx = (uint32_t)((int32_t)ecx >> 1u); 8960 edx = 1; /* 0x36149435: mov edx, 1 */ 8961 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8963 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 8964 _flag_k = FK_CMP; 8965 PUSH32(esp, edx); /* 0x3614943C: push edx */ 8966 PUSH32(esp, eax); /* 0x3614943D: push eax */ 8967 ecx = esi; /* 0x3614943E: mov ecx, esi */ 8968 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 8969 RECOMP_FLAGS_IN(); 8970 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 8971 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 8972 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8974 _flag_k = FK_CMP; 8975 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 8976 L_3614944C: 8977 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 8978 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 8979 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 8980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8981 edi = edi + 2; /* 0x36149453: add edi, 2 */ 8982 _flag_k = FK_ADD; 8983 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 8984 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8986 _flag_k = FK_CMP; 8987 RECOMP_BACKEDGE(); 8988 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 8989 L_3614945A: 8990 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 8991 L_3614945C: 8992 PUSH32(esp, eax); /* 0x3614945C: push eax */ 8993 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 8994 PUSH32(esp, eax); /* 0x36149460: push eax */ 8995 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 8996 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 8997 ecx = esi; /* 0x36149465: mov ecx, esi */ 8998 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 8999 RECOMP_FLAGS_IN(); 9000 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 9001 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 9002 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 9003 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9005 _flag_k = FK_CMP; 9006 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 9007 L_36149476: 9008 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 9009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 9010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9011 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 9012 _flag_k = FK_CMP; 9013 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 9014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9015 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 9016 _flag_k = FK_CMP; 9017 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 9018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9020 _flag_k = FK_CMP; 9021 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 9022 RECOMP_BACKEDGE(); 9023 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 9024 L_36149487: 9025 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 9026 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 9027 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9029 _flag_k = FK_CMP; 9030 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 9031 L_3614948E: 9032 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 9033 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 9034 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 9035 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9036 edi = edi + 2; /* 0x36149495: add edi, 2 */ 9037 _flag_k = FK_ADD; 9038 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 9039 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9041 _flag_k = FK_CMP; 9042 RECOMP_BACKEDGE(); 9043 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 9044 L_3614949C: 9045 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 9046 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9047 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 9048 _flag_k = FK_ADD; 9049 L_361494A0: 9050 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 9051 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 9052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9053 eax = eax + 1; /* 0x361494A6: inc eax */ 9054 _flag_k = FK_INC; 9055 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 9056 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 9057 _cf = 0; 9058 _flag_k = FK_TEST; 9059 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 9060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9062 _flag_k = FK_CMP; 9063 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 9064 RECOMP_BACKEDGE(); 9065 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 9066 L_361494B8: 9067 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 9068 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 9069 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9070 _cf = 0; 9071 _flag_k = FK_NARROW(FK_TEST, 24); 9072 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 9073 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 9074 L_361494CA: 9075 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 9076 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 9077 RECOMP_FLAGS_IN(); 9078 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 9079 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 9080 PUSH32(esp, eax); /* 0x361494DE: push eax */ 9081 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 9082 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 9083 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 9084 RECOMP_FLAGS_IN(); 9085 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 9086 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 9087 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 9088 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9090 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 9091 _flag_k = FK_CMP; 9092 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 9093 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 9094 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9095 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9096 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 9097 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9098 edx = (uint32_t)((int32_t)edx >> 3u); 9099 eax = edx; /* 0x36149501: mov eax, edx */ 9100 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 9101 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9102 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 9103 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9105 edx = edx + eax; /* 0x36149506: add edx, eax */ 9106 _flag_k = FK_ADD; 9107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9109 esp = esp + 8; /* 0x36149508: add esp, 8 */ 9110 _flag_k = FK_ADD; 9111 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 9112 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9114 _flag_k = FK_CMP; 9115 edi = ecx; /* 0x3614950E: mov edi, ecx */ 9116 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 9117 L_36149516: 9118 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 9119 /* test eax, eax */ /* 0x36149519: test eax, eax */ 9120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9121 _cf = 0; 9122 _flag_k = FK_TEST; 9123 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 9124 L_3614951D: 9125 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9127 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 9128 _flag_k = FK_CMP; 9129 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 9130 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 9131 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9132 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9133 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 9134 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9135 edx = (uint32_t)((int32_t)edx >> 3u); 9136 ecx = edx; /* 0x36149529: mov ecx, edx */ 9137 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 9138 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9139 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 9140 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9141 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9142 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 9143 _flag_k = FK_ADD; 9144 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 9145 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9147 _flag_k = FK_CMP; 9148 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 9149 L_36149535: 9150 ecx = esi; /* 0x36149535: mov ecx, esi */ 9151 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 9152 RECOMP_FLAGS_IN(); 9153 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 9154 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 9155 L_36149541: 9156 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 9157 L_36149548: 9158 ecx = esi; /* 0x36149548: mov ecx, esi */ 9159 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 9160 RECOMP_FLAGS_IN(); 9161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 9162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9163 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 9164 _flag_k = FK_ADD; 9165 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 9166 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 9167 L_36149557: 9168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9169 eax = 0; /* 0x36149557: xor eax, eax */ 9170 _cf = 0; 9171 _flag_k = FK_TEST; 9172 L_36149559: 9173 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 9174 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 9175 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9176 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 9177 PUSH32(esp, edx); /* 0x3614955F: push edx */ 9178 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 9179 RECOMP_FLAGS_IN(); 9180 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9181 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9182 esp = esp + 4; /* 0x36149565: add esp, 4 */ 9183 _flag_k = FK_ADD; 9184 PUSH32(esp, eax); /* 0x36149568: push eax */ 9185 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 9186 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 9187 PUSH32(esp, edi); /* 0x3614956F: push edi */ 9188 PUSH32(esp, eax); /* 0x36149570: push eax */ 9189 ecx = esi; /* 0x36149571: mov ecx, esi */ 9190 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 9191 RECOMP_FLAGS_IN(); 9192 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 9193 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 9194 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 9195 PUSH32(esp, eax); /* 0x36149581: push eax */ 9196 ecx = esi; /* 0x36149582: mov ecx, esi */ 9197 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 9198 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 9199 RECOMP_FLAGS_IN(); 9200 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 9201 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 9202 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 9203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9204 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 9205 _flag_k = FK_ADD; 9206 PUSH32(esp, edx); /* 0x36149595: push edx */ 9207 PUSH32(esp, eax); /* 0x36149596: push eax */ 9208 PUSH32(esp, edi); /* 0x36149597: push edi */ 9209 ecx = esi; /* 0x36149598: mov ecx, esi */ 9210 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 9211 RECOMP_FLAGS_IN(); 9212 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 9213 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 9214 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 9215 PUSH32(esp, edx); /* 0x361495A6: push edx */ 9216 ecx = esi; /* 0x361495A7: mov ecx, esi */ 9217 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 9218 RECOMP_FLAGS_IN(); 9219 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 9220 PUSH32(esp, eax); /* 0x361495B1: push eax */ 9221 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 9222 RECOMP_FLAGS_IN(); 9223 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 9224 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 9225 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 9226 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 9227 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 9228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9230 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 9231 _flag_k = FK_ADD; 9232 ecx = esi; /* 0x361495C9: mov ecx, esi */ 9233 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 9234 RECOMP_FLAGS_IN(); 9235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9236 eax = eax + 1; /* 0x361495D0: inc eax */ 9237 _flag_k = FK_INC; 9238 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 9239 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 9240 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 9241 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 9242 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 9243 L_361495E2: 9244 edx = ecx; /* 0x361495E2: mov edx, ecx */ 9245 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9247 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 9248 _flag_k = FK_CMP; 9249 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 9250 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 9251 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9252 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9253 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 9254 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9255 edx = (uint32_t)((int32_t)edx >> 3u); 9256 eax = edx; /* 0x361495F0: mov eax, edx */ 9257 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 9258 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9259 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 9260 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9261 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9262 edx = edx + eax; /* 0x361495F5: add edx, eax */ 9263 _flag_k = FK_ADD; 9264 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 9265 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9267 _flag_k = FK_CMP; 9268 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 9269 L_361495FC: 9270 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 9271 PUSH32(esp, edx); /* 0x361495FF: push edx */ 9272 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 9273 PUSH32(esp, edi); /* 0x36149601: push edi */ 9274 ecx = esi; /* 0x36149602: mov ecx, esi */ 9275 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 9276 RECOMP_FLAGS_IN(); 9277 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 9278 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 9279 PUSH32(esp, eax); /* 0x36149612: push eax */ 9280 edx = ecx; /* 0x36149613: mov edx, ecx */ 9281 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9283 edx = edx - edi; /* 0x36149615: sub edx, edi */ 9284 _flag_k = FK_CMP; 9285 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 9286 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 9287 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9288 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9289 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 9290 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9291 edx = (uint32_t)((int32_t)edx >> 3u); 9292 eax = edx; /* 0x36149621: mov eax, edx */ 9293 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 9294 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9295 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 9296 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9298 edx = edx + eax; /* 0x36149626: add edx, eax */ 9299 _flag_k = FK_ADD; 9300 eax = 1; /* 0x36149628: mov eax, 1 */ 9301 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9303 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 9304 _flag_k = FK_CMP; 9305 PUSH32(esp, eax); /* 0x3614962F: push eax */ 9306 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 9307 ecx = esi; /* 0x36149631: mov ecx, esi */ 9308 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 9309 RECOMP_FLAGS_IN(); 9310 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 9311 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 9312 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 9313 PUSH32(esp, edx); /* 0x36149642: push edx */ 9314 PUSH32(esp, edi); /* 0x36149643: push edi */ 9315 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 9316 RECOMP_FLAGS_IN(); 9317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9319 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 9320 _flag_k = FK_ADD; 9321 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 9322 L_3614964E: 9323 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 9324 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 9325 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 9326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9327 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 9328 _flag_k = FK_ADD; 9329 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 9330 ecx = esi; /* 0x36149654: mov ecx, esi */ 9331 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 9332 RECOMP_FLAGS_IN(); 9333 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 9334 PUSH32(esp, eax); /* 0x3614965E: push eax */ 9335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 9336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9337 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 9338 _flag_k = FK_ADD; 9339 PUSH32(esp, eax); /* 0x36149662: push eax */ 9340 PUSH32(esp, edi); /* 0x36149663: push edi */ 9341 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 9342 RECOMP_FLAGS_IN(); 9343 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 9344 PUSH32(esp, eax); /* 0x3614966F: push eax */ 9345 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 9346 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 9347 PUSH32(esp, edi); /* 0x36149674: push edi */ 9348 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 9349 RECOMP_FLAGS_IN(); 9350 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9352 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 9353 _flag_k = FK_ADD; 9354 L_3614967D: 9355 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 9356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9357 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 9358 _flag_k = FK_ADD; 9359 L_36149681: 9360 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 9361 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 9362 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 9363 RECOMP_FLAGS_IN(); 9364 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 9365 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 9366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9367 eax = eax + 1; /* 0x36149699: inc eax */ 9368 _flag_k = FK_INC; 9369 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 9370 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 9371 _cf = 0; 9372 _flag_k = FK_TEST; 9373 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 9374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9376 _flag_k = FK_CMP; 9377 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 9378 RECOMP_BACKEDGE(); 9379 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 9380 L_361496AB: 9381 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 9382 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 9383 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9384 _cf = 0; 9385 _flag_k = FK_NARROW(FK_TEST, 24); 9386 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 9387 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 9388 L_361496BD: 9389 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 9390 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 9391 RECOMP_FLAGS_IN(); 9392 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 9393 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 9394 PUSH32(esp, eax); /* 0x361496D1: push eax */ 9395 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 9396 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 9397 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 9398 RECOMP_FLAGS_IN(); 9399 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 9400 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 9401 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 9402 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9404 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 9405 _flag_k = FK_CMP; 9406 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 9407 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 9408 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 9409 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9410 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9411 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 9412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9413 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 9414 _flag_k = FK_ADD; 9415 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 9416 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9417 edx = (uint32_t)((int32_t)edx >> 5u); 9418 eax = edx; /* 0x361496FA: mov eax, edx */ 9419 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 9420 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9421 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 9422 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9424 edx = edx + eax; /* 0x361496FF: add edx, eax */ 9425 _flag_k = FK_ADD; 9426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9428 esp = esp + 8; /* 0x36149701: add esp, 8 */ 9429 _flag_k = FK_ADD; 9430 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 9431 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9433 _flag_k = FK_CMP; 9434 edi = ecx; /* 0x36149707: mov edi, ecx */ 9435 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 9436 L_3614970F: 9437 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 9438 /* test eax, eax */ /* 0x36149712: test eax, eax */ 9439 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9440 _cf = 0; 9441 _flag_k = FK_TEST; 9442 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 9443 L_36149716: 9444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9446 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 9447 _flag_k = FK_CMP; 9448 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 9449 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 9450 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9451 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9452 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9453 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9454 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 9455 _flag_k = FK_ADD; 9456 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 9457 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9458 edx = (uint32_t)((int32_t)edx >> 5u); 9459 ecx = edx; /* 0x36149724: mov ecx, edx */ 9460 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 9461 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9462 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 9463 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9465 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 9466 _flag_k = FK_ADD; 9467 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 9468 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9470 _flag_k = FK_CMP; 9471 ebx = edx; /* 0x3614972E: mov ebx, edx */ 9472 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 9473 L_36149732: 9474 ebx = 1; /* 0x36149732: mov ebx, 1 */ 9475 L_36149737: 9476 ecx = esi; /* 0x36149737: mov ecx, esi */ 9477 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 9478 RECOMP_FLAGS_IN(); 9479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9481 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 9482 _flag_k = FK_ADD; 9483 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 9484 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 9485 L_36149745: 9486 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9487 eax = 0; /* 0x36149745: xor eax, eax */ 9488 _cf = 0; 9489 _flag_k = FK_TEST; 9490 L_36149747: 9491 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 9492 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 9493 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 9494 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9495 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 9496 PUSH32(esp, edx); /* 0x36149750: push edx */ 9497 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 9498 RECOMP_FLAGS_IN(); 9499 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9501 esp = esp + 4; /* 0x36149756: add esp, 4 */ 9502 _flag_k = FK_ADD; 9503 ebx = eax; /* 0x36149759: mov ebx, eax */ 9504 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 9505 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 9506 PUSH32(esp, edi); /* 0x3614975F: push edi */ 9507 PUSH32(esp, eax); /* 0x36149760: push eax */ 9508 ecx = esi; /* 0x36149761: mov ecx, esi */ 9509 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 9510 RECOMP_FLAGS_IN(); 9511 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 9512 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 9513 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 9514 PUSH32(esp, eax); /* 0x36149771: push eax */ 9515 ecx = esi; /* 0x36149772: mov ecx, esi */ 9516 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 9517 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 9518 RECOMP_FLAGS_IN(); 9519 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 9520 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 9521 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 9522 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9523 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 9524 _flag_k = FK_ADD; 9525 PUSH32(esp, edx); /* 0x36149785: push edx */ 9526 PUSH32(esp, eax); /* 0x36149786: push eax */ 9527 PUSH32(esp, edi); /* 0x36149787: push edi */ 9528 ecx = esi; /* 0x36149788: mov ecx, esi */ 9529 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 9530 RECOMP_FLAGS_IN(); 9531 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 9532 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 9533 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 9534 PUSH32(esp, edx); /* 0x36149796: push edx */ 9535 ecx = esi; /* 0x36149797: mov ecx, esi */ 9536 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 9537 RECOMP_FLAGS_IN(); 9538 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 9539 PUSH32(esp, eax); /* 0x361497A1: push eax */ 9540 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 9541 RECOMP_FLAGS_IN(); 9542 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 9543 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 9544 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 9545 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 9546 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 9547 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9549 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 9550 _flag_k = FK_ADD; 9551 ecx = esi; /* 0x361497B9: mov ecx, esi */ 9552 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 9553 RECOMP_FLAGS_IN(); 9554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9555 eax = eax + 1; /* 0x361497C0: inc eax */ 9556 _flag_k = FK_INC; 9557 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 9558 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 9559 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 9560 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 9561 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 9562 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 9563 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 9564 L_361497D8: 9565 edx = ecx; /* 0x361497D8: mov edx, ecx */ 9566 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9568 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 9569 _flag_k = FK_CMP; 9570 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 9571 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 9572 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 9573 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9574 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9575 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 9576 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9577 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 9578 _flag_k = FK_ADD; 9579 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 9580 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9581 edx = (uint32_t)((int32_t)edx >> 5u); 9582 eax = edx; /* 0x361497EC: mov eax, edx */ 9583 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 9584 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9585 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 9586 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9588 edx = edx + eax; /* 0x361497F1: add edx, eax */ 9589 _flag_k = FK_ADD; 9590 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 9591 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9593 _flag_k = FK_CMP; 9594 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 9595 L_361497F8: 9596 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 9597 PUSH32(esp, edx); /* 0x361497FB: push edx */ 9598 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 9599 PUSH32(esp, edi); /* 0x361497FD: push edi */ 9600 ecx = esi; /* 0x361497FE: mov ecx, esi */ 9601 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 9602 RECOMP_FLAGS_IN(); 9603 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 9604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9606 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 9607 _flag_k = FK_CMP; 9608 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 9609 PUSH32(esp, eax); /* 0x36149810: push eax */ 9610 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 9611 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 9612 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9613 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9614 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9615 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9616 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 9617 _flag_k = FK_ADD; 9618 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 9619 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9620 edx = (uint32_t)((int32_t)edx >> 5u); 9621 ecx = edx; /* 0x3614981D: mov ecx, edx */ 9622 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 9623 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9624 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 9625 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9626 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9627 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 9628 _flag_k = FK_ADD; 9629 eax = 1; /* 0x36149824: mov eax, 1 */ 9630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9632 eax = eax - edx; /* 0x36149829: sub eax, edx */ 9633 _flag_k = FK_CMP; 9634 PUSH32(esp, eax); /* 0x3614982B: push eax */ 9635 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 9636 PUSH32(esp, eax); /* 0x3614982F: push eax */ 9637 ecx = esi; /* 0x36149830: mov ecx, esi */ 9638 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 9639 RECOMP_FLAGS_IN(); 9640 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 9641 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 9642 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 9643 PUSH32(esp, edx); /* 0x36149841: push edx */ 9644 PUSH32(esp, edi); /* 0x36149842: push edi */ 9645 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 9646 RECOMP_FLAGS_IN(); 9647 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9648 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9649 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 9650 _flag_k = FK_ADD; 9651 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 9652 L_3614984D: 9653 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 9654 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 9655 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 9656 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9657 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 9658 _flag_k = FK_ADD; 9659 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 9660 ecx = esi; /* 0x36149853: mov ecx, esi */ 9661 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 9662 RECOMP_FLAGS_IN(); 9663 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 9664 PUSH32(esp, eax); /* 0x3614985D: push eax */ 9665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 9666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9667 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 9668 _flag_k = FK_ADD; 9669 PUSH32(esp, eax); /* 0x36149861: push eax */ 9670 PUSH32(esp, edi); /* 0x36149862: push edi */ 9671 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 9672 RECOMP_FLAGS_IN(); 9673 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 9674 PUSH32(esp, eax); /* 0x3614986E: push eax */ 9675 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 9676 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 9677 PUSH32(esp, edi); /* 0x36149873: push edi */ 9678 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 9679 RECOMP_FLAGS_IN(); 9680 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9681 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9682 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 9683 _flag_k = FK_ADD; 9684 L_3614987C: 9685 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 9686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9687 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 9688 _flag_k = FK_ADD; 9689 L_36149880: 9690 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 9691 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 9692 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 9693 RECOMP_FLAGS_IN(); 9694 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 9695 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 9696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9697 eax = eax + 1; /* 0x36149898: inc eax */ 9698 _flag_k = FK_INC; 9699 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 9700 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 9701 _cf = 0; 9702 _flag_k = FK_TEST; 9703 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 9704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9706 _flag_k = FK_CMP; 9707 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 9708 RECOMP_BACKEDGE(); 9709 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 9710 L_361498AA: 9711 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 9712 ecx = esi; /* 0x361498AD: mov ecx, esi */ 9713 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 9714 RECOMP_FLAGS_IN(); 9715 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 9716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9717 _cf = 0; 9718 _flag_k = FK_TEST; 9719 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 9720 L_361498B9: 9721 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 9722 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 9723 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 9724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9725 _cf = 0; 9726 _flag_k = FK_TEST; 9727 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 9728 L_361498C2: 9729 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 9730 L_361498C7: 9731 PUSH32(esp, eax); /* 0x361498C7: push eax */ 9732 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 9733 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 9734 RECOMP_FLAGS_IN(); 9735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9737 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 9738 _flag_k = FK_ADD; 9739 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 9740 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 9741 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 9742 RECOMP_FLAGS_IN(); 9743 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 9744 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 9745 PUSH32(esp, eax); /* 0x361498F1: push eax */ 9746 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 9747 RECOMP_FLAGS_IN(); 9748 L_361498F7: 9749 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 9750 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 9751 eax = esi; /* 0x361498FB: mov eax, esi */ 9752 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 9753 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 9754 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 9755 esp = ebp; /* 0x36149906: mov esp, ebp */ 9756 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 9757 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 9758 L_3614990A: 9759 ebx = MEM32(ebx); /* 0x3614990A: mov ebx, dword ptr [ebx] */ 9760 edx = MEM32(ebx + 0x4); /* 0x3614990C: mov edx, dword ptr [ebx + 4] */ 9761 /* test edx, edx */ /* 0x3614990F: test edx, edx */ 9762 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9763 _cf = 0; 9764 _flag_k = FK_TEST; 9765 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149919; /* 0x36149911: jne 0x36149919 */ 9766 L_36149913: 9767 edx = MEM32(0x3616F10C); /* 0x36149913: mov edx, dword ptr [0x3616f10c] */ 9768 L_36149919: 9769 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 9770 ecx = ecx & 0xFFFFu; /* 0x36149919: and ecx, 0xffff */ 9771 _cf = 0; 9772 _flag_k = FK_TEST; 9773 PUSH32(esp, ecx); /* 0x3614991F: push ecx */ 9774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 9775 eax = eax & 0xFFFFu; /* 0x36149920: and eax, 0xffff */ 9776 _cf = 0; 9777 _flag_k = FK_TEST; 9778 PUSH32(esp, eax); /* 0x36149925: push eax */ 9779 PUSH32(esp, edx); /* 0x36149926: push edx */ 9780 PUSH32(esp, 0x362E756Cu); /* 0x36149927: push 0x362e756c */ 9781 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614992C: call dword ptr [0x3616f18c] */ 9782 RECOMP_FLAGS_IN(); 9783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 9784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9785 esp = esp + 0x10u; /* 0x36149932: add esp, 0x10 */ 9786 _flag_k = FK_ADD; 9787 PUSH32(esp, 0x362E753Cu); /* 0x36149935: push 0x362e753c */ 9788 ecx = ebp + (-0x1C); /* 0x3614993A: lea ecx, [ebp - 0x1c] */ 9789 RECOMP_ICALL(0x36008EF0u); /* 0x3614993D: call 0x36008ef0 */ /* not lifted */ 9790 RECOMP_FLAGS_IN(); 9791 PUSH32(esp, 0x36184170u); /* 0x36149942: push 0x36184170 */ 9792 ecx = ebp + (-0x1C); /* 0x36149947: lea ecx, [ebp - 0x1c] */ 9793 PUSH32(esp, ecx); /* 0x3614994A: push ecx */ 9794 RECOMP_ICALL(0x3615FD70u); /* 0x3614994B: call 0x3615fd70 */ /* not lifted */ 9795 RECOMP_FLAGS_IN(); 9796 L_36149950: 9797 ebx = MEM32(ebx); /* 0x36149950: mov ebx, dword ptr [ebx] */ 9798 edx = MEM32(ebx + 0x4); /* 0x36149952: mov edx, dword ptr [ebx + 4] */ 9799 /* test edx, edx */ /* 0x36149955: test edx, edx */ 9800 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9801 _cf = 0; 9802 _flag_k = FK_TEST; 9803 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614995F; /* 0x36149957: jne 0x3614995f */ 9804 L_36149959: 9805 edx = MEM32(0x3616F10C); /* 0x36149959: mov edx, dword ptr [0x3616f10c] */ 9806 L_3614995F: 9807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 9808 eax = eax & 0xFFFFu; /* 0x3614995F: and eax, 0xffff */ 9809 _cf = 0; 9810 _flag_k = FK_TEST; 9811 PUSH32(esp, eax); /* 0x36149964: push eax */ 9812 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 9813 ecx = ecx & 0xFFFFu; /* 0x36149965: and ecx, 0xffff */ 9814 _cf = 0; 9815 _flag_k = FK_TEST; 9816 PUSH32(esp, ecx); /* 0x3614996B: push ecx */ 9817 PUSH32(esp, edx); /* 0x3614996C: push edx */ 9818 PUSH32(esp, 0x362E74E4u); /* 0x3614996D: push 0x362e74e4 */ 9819 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149972: call dword ptr [0x3616f18c] */ 9820 RECOMP_FLAGS_IN(); 9821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 9822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9823 esp = esp + 0x10u; /* 0x36149978: add esp, 0x10 */ 9824 _flag_k = FK_ADD; 9825 PUSH32(esp, 0x362E74C0u); /* 0x3614997B: push 0x362e74c0 */ 9826 ecx = ebp + (-0x1C); /* 0x36149980: lea ecx, [ebp - 0x1c] */ 9827 RECOMP_ICALL(0x36008EF0u); /* 0x36149983: call 0x36008ef0 */ /* not lifted */ 9828 RECOMP_FLAGS_IN(); 9829 PUSH32(esp, 0x36184170u); /* 0x36149988: push 0x36184170 */ 9830 edx = ebp + (-0x1C); /* 0x3614998D: lea edx, [ebp - 0x1c] */ 9831 PUSH32(esp, edx); /* 0x36149990: push edx */ 9832 RECOMP_ICALL(0x3615FD70u); /* 0x36149991: call 0x3615fd70 */ /* not lifted */ 9833 RECOMP_FLAGS_IN(); 9834 L_36149996: 9835 eax = MEM32(eax + 0x4); /* 0x36149996: mov eax, dword ptr [eax + 4] */ 9836 /* test eax, eax */ /* 0x36149999: test eax, eax */ 9837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9838 _cf = 0; 9839 _flag_k = FK_TEST; 9840 if (TEST_NZ(_flag_a, _flag_b)) goto L_361499A2; /* 0x3614999B: jne 0x361499a2 */ 9841 L_3614999D: 9842 eax = MEM32(0x3616F10C); /* 0x3614999D: mov eax, dword ptr [0x3616f10c] */ 9843 L_361499A2: 9844 ecx = MEM32(ebp + (-0x10)); /* 0x361499A2: mov ecx, dword ptr [ebp - 0x10] */ 9845 fp_push(*(float*)&MEM32(ecx)); /* 0x361499A5: fld dword ptr [ecx] */ 9846 edx = MEM32(ebp + (-0x18)); /* 0x361499A7: mov edx, dword ptr [ebp - 0x18] */ 9847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9849 esp = esp - 8; /* 0x361499AA: sub esp, 8 */ 9850 _flag_k = FK_CMP; 9851 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499AD: fstp qword ptr [esp] */ 9852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9854 esp = esp - 8; /* 0x361499B0: sub esp, 8 */ 9855 _flag_k = FK_CMP; 9856 fp_push(*(float*)&MEM32(edx)); /* 0x361499B3: fld dword ptr [edx] */ 9857 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499B5: fstp qword ptr [esp] */ 9858 PUSH32(esp, eax); /* 0x361499B8: push eax */ 9859 PUSH32(esp, 0x362E746Cu); /* 0x361499B9: push 0x362e746c */ 9860 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361499BE: call dword ptr [0x3616f18c] */ 9861 RECOMP_FLAGS_IN(); 9862 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9864 esp = esp + 0x18u; /* 0x361499C4: add esp, 0x18 */ 9865 _flag_k = FK_ADD; 9866 PUSH32(esp, 0x362E7700u); /* 0x361499C7: push 0x362e7700 */ 9867 ecx = ebp + (-0x1C); /* 0x361499CC: lea ecx, [ebp - 0x1c] */ 9868 RECOMP_ICALL(0x36008EF0u); /* 0x361499CF: call 0x36008ef0 */ /* not lifted */ 9869 RECOMP_FLAGS_IN(); 9870 PUSH32(esp, 0x36184170u); /* 0x361499D4: push 0x36184170 */ 9871 eax = ebp + (-0x1C); /* 0x361499D9: lea eax, [ebp - 0x1c] */ 9872 PUSH32(esp, eax); /* 0x361499DC: push eax */ 9873 RECOMP_ICALL(0x3615FD70u); /* 0x361499DD: call 0x3615fd70 */ /* not lifted */ 9874 RECOMP_FLAGS_IN(); 9875 L_361499E2: 9876 ecx = MEM32(ebp + (-0x10)); /* 0x361499E2: mov ecx, dword ptr [ebp - 0x10] */ 9877 fp_push(*(float*)&MEM32(ecx)); /* 0x361499E5: fld dword ptr [ecx] */ 9878 edx = MEM32(ebp + (-0x14)); /* 0x361499E7: mov edx, dword ptr [ebp - 0x14] */ 9879 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9881 esp = esp - 8; /* 0x361499EA: sub esp, 8 */ 9882 _flag_k = FK_CMP; 9883 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499ED: fstp qword ptr [esp] */ 9884 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9886 esp = esp - 8; /* 0x361499F0: sub esp, 8 */ 9887 _flag_k = FK_CMP; 9888 fp_push(*(float*)&MEM32(edx)); /* 0x361499F3: fld dword ptr [edx] */ 9889 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9891 esp = esp - 8; /* 0x361499F5: sub esp, 8 */ 9892 _flag_k = FK_CMP; 9893 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x361499F8: fstp qword ptr [esp + 8] */ 9894 fp_push(*(float*)&MEM32(esi)); /* 0x361499FC: fld dword ptr [esi] */ 9895 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499FE: fstp qword ptr [esp] */ 9896 PUSH32(esp, 0x362E7424u); /* 0x36149A01: push 0x362e7424 */ 9897 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149A06: call dword ptr [0x3616f18c] */ 9898 RECOMP_FLAGS_IN(); 9899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 9900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9901 esp = esp + 0x1Cu; /* 0x36149A0C: add esp, 0x1c */ 9902 _flag_k = FK_ADD; 9903 PUSH32(esp, 0x362E7700u); /* 0x36149A0F: push 0x362e7700 */ 9904 ecx = ebp + (-0x1C); /* 0x36149A14: lea ecx, [ebp - 0x1c] */ 9905 RECOMP_ICALL(0x36008EF0u); /* 0x36149A17: call 0x36008ef0 */ /* not lifted */ 9906 RECOMP_FLAGS_IN(); 9907 PUSH32(esp, 0x36184170u); /* 0x36149A1C: push 0x36184170 */ 9908 eax = ebp + (-0x1C); /* 0x36149A21: lea eax, [ebp - 0x1c] */ 9909 PUSH32(esp, eax); /* 0x36149A24: push eax */ 9910 RECOMP_ICALL(0x3615FD70u); /* 0x36149A25: call 0x3615fd70 */ /* not lifted */ 9911 RECOMP_FLAGS_IN(); 9912 /* nop */ /* 0x36149A2A: nop */ 9913 /* nop */ /* 0x36149A2B: nop */ 9914 /* nop */ /* 0x36149A2C: nop */ 9915 /* nop */ /* 0x36149A2D: nop */ 9916 /* nop */ /* 0x36149A2E: nop */ 9917 /* nop */ /* 0x36149A2F: nop */ 9918 PUSH32(esp, ebp); /* 0x36149A30: push ebp */ 9919 ebp = esp; /* 0x36149A31: mov ebp, esp */ 9920 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9922 esp = esp - 8; /* 0x36149A33: sub esp, 8 */ 9923 _flag_k = FK_CMP; 9924 eax = ecx; /* 0x36149A36: mov eax, ecx */ 9925 ecx = MEM32(ebp + 0x8); /* 0x36149A38: mov ecx, dword ptr [ebp + 8] */ 9926 /* cmp eax, ecx */ /* 0x36149A3B: cmp eax, ecx */ 9927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9929 _flag_k = FK_CMP; 9930 PUSH32(esp, ebx); /* 0x36149A3D: push ebx */ 9931 PUSH32(esp, esi); /* 0x36149A3E: push esi */ 9932 PUSH32(esp, edi); /* 0x36149A3F: push edi */ 9933 MEM32(ebp + (-0x4)) = eax; /* 0x36149A40: mov dword ptr [ebp - 4], eax */ 9934 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE9; /* 0x36149A43: je 0x36149be9 */ 9935 L_36149A49: 9936 esi = MEM32(ecx + 0x4); /* 0x36149A49: mov esi, dword ptr [ecx + 4] */ 9937 /* test esi, esi */ /* 0x36149A4C: test esi, esi */ 9938 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9939 _cf = 0; 9940 _flag_k = FK_TEST; 9941 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A54; /* 0x36149A4E: jne 0x36149a54 */ 9942 L_36149A50: 9943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9944 ebx = 0; /* 0x36149A50: xor ebx, ebx */ 9945 _cf = 0; 9946 _flag_k = FK_TEST; 9947 goto L_36149A5C; /* 0x36149A52: jmp 0x36149a5c */ 9948 L_36149A54: 9949 ebx = MEM32(ecx + 0x8); /* 0x36149A54: mov ebx, dword ptr [ecx + 8] */ 9950 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 9951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9952 ebx = ebx - esi; /* 0x36149A57: sub ebx, esi */ 9953 _flag_k = FK_CMP; 9954 if (3u) _cf = (((ebx) >> 2) & 1u); /* 0x36149A59: sar ebx, 3 */ 9955 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9956 ebx = (uint32_t)((int32_t)ebx >> 3u); 9957 L_36149A5C: 9958 edx = MEM32(eax + 0x4); /* 0x36149A5C: mov edx, dword ptr [eax + 4] */ 9959 /* test edx, edx */ /* 0x36149A5F: test edx, edx */ 9960 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9961 _cf = 0; 9962 _flag_k = FK_TEST; 9963 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A67; /* 0x36149A61: jne 0x36149a67 */ 9964 L_36149A63: 9965 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9966 edi = 0; /* 0x36149A63: xor edi, edi */ 9967 _cf = 0; 9968 _flag_k = FK_TEST; 9969 goto L_36149A6F; /* 0x36149A65: jmp 0x36149a6f */ 9970 L_36149A67: 9971 edi = MEM32(eax + 0x8); /* 0x36149A67: mov edi, dword ptr [eax + 8] */ 9972 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 9973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9974 edi = edi - edx; /* 0x36149A6A: sub edi, edx */ 9975 _flag_k = FK_CMP; 9976 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149A6C: sar edi, 3 */ 9977 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9978 edi = (uint32_t)((int32_t)edi >> 3u); 9979 L_36149A6F: 9980 /* cmp ebx, edi */ /* 0x36149A6F: cmp ebx, edi */ 9981 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 9982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9983 _flag_k = FK_CMP; 9984 if (CMP_A(_flag_a, _flag_b)) goto L_36149AC9; /* 0x36149A71: ja 0x36149ac9 */ 9985 L_36149A73: 9986 ebx = MEM32(ecx + 0x8); /* 0x36149A73: mov ebx, dword ptr [ecx + 8] */ 9987 /* cmp esi, ebx */ /* 0x36149A76: cmp esi, ebx */ 9988 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9990 _flag_k = FK_CMP; 9991 edi = edx; /* 0x36149A78: mov edi, edx */ 9992 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149A94; /* 0x36149A7A: je 0x36149a94 */ 9993 L_36149A7C: 9994 PUSH32(esp, esi); /* 0x36149A7C: push esi */ 9995 ecx = edi; /* 0x36149A7D: mov ecx, edi */ 9996 RECOMP_ICALL(0x3614A420u); /* 0x36149A7F: call 0x3614a420 */ /* not lifted */ 9997 RECOMP_FLAGS_IN(); 9998 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 9999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10000 esi = esi + 8; /* 0x36149A84: add esi, 8 */ 10001 _flag_k = FK_ADD; 10002 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 10003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10004 edi = edi + 8; /* 0x36149A87: add edi, 8 */ 10005 _flag_k = FK_ADD; 10006 /* cmp esi, ebx */ /* 0x36149A8A: cmp esi, ebx */ 10007 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10009 _flag_k = FK_CMP; 10010 RECOMP_BACKEDGE(); 10011 if (CMP_NE(_flag_a, _flag_b)) goto L_36149A7C; /* 0x36149A8C: jne 0x36149a7c */ 10012 L_36149A8E: 10013 ecx = MEM32(ebp + 0x8); /* 0x36149A8E: mov ecx, dword ptr [ebp + 8] */ 10014 eax = MEM32(ebp + (-0x4)); /* 0x36149A91: mov eax, dword ptr [ebp - 4] */ 10015 L_36149A94: 10016 esi = MEM32(ecx + 0x4); /* 0x36149A94: mov esi, dword ptr [ecx + 4] */ 10017 /* test esi, esi */ /* 0x36149A97: test esi, esi */ 10018 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10019 _cf = 0; 10020 _flag_k = FK_TEST; 10021 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AAF; /* 0x36149A99: jne 0x36149aaf */ 10022 L_36149A9B: 10023 ecx = MEM32(eax + 0x4); /* 0x36149A9B: mov ecx, dword ptr [eax + 4] */ 10024 edi = POP32_VAL(esp); /* 0x36149A9E: pop edi */ 10025 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10026 edx = 0; /* 0x36149A9F: xor edx, edx */ 10027 _cf = 0; 10028 _flag_k = FK_TEST; 10029 edx = ecx + edx * 8; /* 0x36149AA1: lea edx, [ecx + edx*8] */ 10030 esi = POP32_VAL(esp); /* 0x36149AA4: pop esi */ 10031 MEM32(eax + 0x8) = edx; /* 0x36149AA5: mov dword ptr [eax + 8], edx */ 10032 ebx = POP32_VAL(esp); /* 0x36149AA8: pop ebx */ 10033 esp = ebp; /* 0x36149AA9: mov esp, ebp */ 10034 ebp = POP32_VAL(esp); /* 0x36149AAB: pop ebp */ 10035 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AAC: ret 4 */ 10036 L_36149AAF: 10037 edx = MEM32(ecx + 0x8); /* 0x36149AAF: mov edx, dword ptr [ecx + 8] */ 10038 ecx = MEM32(eax + 0x4); /* 0x36149AB2: mov ecx, dword ptr [eax + 4] */ 10039 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 10040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10041 edx = edx - esi; /* 0x36149AB5: sub edx, esi */ 10042 _flag_k = FK_CMP; 10043 edi = POP32_VAL(esp); /* 0x36149AB7: pop edi */ 10044 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149AB8: sar edx, 3 */ 10045 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10046 edx = (uint32_t)((int32_t)edx >> 3u); 10047 edx = ecx + edx * 8; /* 0x36149ABB: lea edx, [ecx + edx*8] */ 10048 esi = POP32_VAL(esp); /* 0x36149ABE: pop esi */ 10049 MEM32(eax + 0x8) = edx; /* 0x36149ABF: mov dword ptr [eax + 8], edx */ 10050 ebx = POP32_VAL(esp); /* 0x36149AC2: pop ebx */ 10051 esp = ebp; /* 0x36149AC3: mov esp, ebp */ 10052 ebp = POP32_VAL(esp); /* 0x36149AC5: pop ebp */ 10053 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AC6: ret 4 */ 10054 L_36149AC9: 10055 /* test esi, esi */ /* 0x36149AC9: test esi, esi */ 10056 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10057 _cf = 0; 10058 _flag_k = FK_TEST; 10059 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AD1; /* 0x36149ACB: jne 0x36149ad1 */ 10060 L_36149ACD: 10061 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10062 ecx = 0; /* 0x36149ACD: xor ecx, ecx */ 10063 _cf = 0; 10064 _flag_k = FK_TEST; 10065 goto L_36149AD9; /* 0x36149ACF: jmp 0x36149ad9 */ 10066 L_36149AD1: 10067 ecx = MEM32(ecx + 0x8); /* 0x36149AD1: mov ecx, dword ptr [ecx + 8] */ 10068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 10069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10070 ecx = ecx - esi; /* 0x36149AD4: sub ecx, esi */ 10071 _flag_k = FK_CMP; 10072 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AD6: sar ecx, 3 */ 10073 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10074 ecx = (uint32_t)((int32_t)ecx >> 3u); 10075 L_36149AD9: 10076 /* test edx, edx */ /* 0x36149AD9: test edx, edx */ 10077 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10078 _cf = 0; 10079 _flag_k = FK_TEST; 10080 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AE1; /* 0x36149ADB: jne 0x36149ae1 */ 10081 L_36149ADD: 10082 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10083 edi = 0; /* 0x36149ADD: xor edi, edi */ 10084 _cf = 0; 10085 _flag_k = FK_TEST; 10086 goto L_36149AE9; /* 0x36149ADF: jmp 0x36149ae9 */ 10087 L_36149AE1: 10088 edi = MEM32(eax + 0xC); /* 0x36149AE1: mov edi, dword ptr [eax + 0xc] */ 10089 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 10090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10091 edi = edi - edx; /* 0x36149AE4: sub edi, edx */ 10092 _flag_k = FK_CMP; 10093 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149AE6: sar edi, 3 */ 10094 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10095 edi = (uint32_t)((int32_t)edi >> 3u); 10096 L_36149AE9: 10097 /* cmp ecx, edi */ /* 0x36149AE9: cmp ecx, edi */ 10098 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10100 _flag_k = FK_CMP; 10101 if (CMP_A(_flag_a, _flag_b)) goto L_36149B7F; /* 0x36149AEB: ja 0x36149b7f */ 10102 L_36149AF1: 10103 /* test edx, edx */ /* 0x36149AF1: test edx, edx */ 10104 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10105 _cf = 0; 10106 _flag_k = FK_TEST; 10107 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AF9; /* 0x36149AF3: jne 0x36149af9 */ 10108 L_36149AF5: 10109 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10110 ecx = 0; /* 0x36149AF5: xor ecx, ecx */ 10111 _cf = 0; 10112 _flag_k = FK_TEST; 10113 goto L_36149B01; /* 0x36149AF7: jmp 0x36149b01 */ 10114 L_36149AF9: 10115 ecx = MEM32(eax + 0x8); /* 0x36149AF9: mov ecx, dword ptr [eax + 8] */ 10116 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10118 ecx = ecx - edx; /* 0x36149AFC: sub ecx, edx */ 10119 _flag_k = FK_CMP; 10120 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AFE: sar ecx, 3 */ 10121 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10122 ecx = (uint32_t)((int32_t)ecx >> 3u); 10123 L_36149B01: 10124 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 10125 eax = esi; /* 0x36149B04: mov eax, esi */ 10126 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 10127 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10129 _flag_k = FK_CMP; 10130 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 10131 L_36149B0A: 10132 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 10133 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 10134 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 10135 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 10136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 10137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10138 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 10139 _flag_k = FK_ADD; 10140 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 10141 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10142 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 10143 _flag_k = FK_ADD; 10144 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 10145 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10147 _flag_k = FK_CMP; 10148 RECOMP_BACKEDGE(); 10149 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 10150 L_36149B1E: 10151 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 10152 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 10153 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 10154 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 10155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10156 _flag_k = FK_CMP; 10157 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 10158 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 10159 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 10160 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 10161 L_36149B30: 10162 PUSH32(esp, esi); /* 0x36149B30: push esi */ 10163 PUSH32(esp, edi); /* 0x36149B31: push edi */ 10164 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 10165 RECOMP_FLAGS_IN(); 10166 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 10167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10168 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 10169 _flag_k = FK_ADD; 10170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10172 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 10173 _flag_k = FK_ADD; 10174 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 10175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10176 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 10177 _flag_k = FK_ADD; 10178 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 10179 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10181 _flag_k = FK_CMP; 10182 RECOMP_BACKEDGE(); 10183 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 10184 L_36149B44: 10185 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 10186 L_36149B47: 10187 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 10188 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 10189 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 10190 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10191 _cf = 0; 10192 _flag_k = FK_TEST; 10193 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 10194 L_36149B51: 10195 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 10196 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 10197 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10198 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 10199 _cf = 0; 10200 _flag_k = FK_TEST; 10201 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 10202 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 10203 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 10204 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 10205 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 10206 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 10207 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 10208 L_36149B65: 10209 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 10210 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10212 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 10213 _flag_k = FK_CMP; 10214 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 10215 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 10216 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 10217 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10218 ecx = (uint32_t)((int32_t)ecx >> 3u); 10219 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 10220 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 10221 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 10222 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 10223 esp = ebp; /* 0x36149B79: mov esp, ebp */ 10224 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 10225 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 10226 L_36149B7F: 10227 PUSH32(esp, edx); /* 0x36149B7F: push edx */ 10228 MEM32(ebp + (-0x8)) = edx; /* 0x36149B80: mov dword ptr [ebp - 8], edx */ 10229 RECOMP_ICALL(0x3615FCC4u); /* 0x36149B83: call 0x3615fcc4 */ /* not lifted */ 10230 RECOMP_FLAGS_IN(); 10231 esi = MEM32(ebp + 0x8); /* 0x36149B88: mov esi, dword ptr [ebp + 8] */ 10232 ecx = MEM32(esi + 0x4); /* 0x36149B8B: mov ecx, dword ptr [esi + 4] */ 10233 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10235 esp = esp + 4; /* 0x36149B8E: add esp, 4 */ 10236 _flag_k = FK_ADD; 10237 /* test ecx, ecx */ /* 0x36149B91: test ecx, ecx */ 10238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10239 _cf = 0; 10240 _flag_k = FK_TEST; 10241 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B99; /* 0x36149B93: jne 0x36149b99 */ 10242 L_36149B95: 10243 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10244 eax = 0; /* 0x36149B95: xor eax, eax */ 10245 _cf = 0; 10246 _flag_k = FK_TEST; 10247 goto L_36149BA1; /* 0x36149B97: jmp 0x36149ba1 */ 10248 L_36149B99: 10249 eax = MEM32(esi + 0x8); /* 0x36149B99: mov eax, dword ptr [esi + 8] */ 10250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10252 eax = eax - ecx; /* 0x36149B9C: sub eax, ecx */ 10253 _flag_k = FK_CMP; 10254 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36149B9E: sar eax, 3 */ 10255 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10256 eax = (uint32_t)((int32_t)eax >> 3u); 10257 L_36149BA1: 10258 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 10259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10260 _cf = 0; 10261 _flag_k = FK_TEST; 10262 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 10263 L_36149BA5: 10264 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10265 eax = 0; /* 0x36149BA5: xor eax, eax */ 10266 _cf = 0; 10267 _flag_k = FK_TEST; 10268 L_36149BA7: 10269 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 10270 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 10271 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 10272 RECOMP_FLAGS_IN(); 10273 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 10274 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 10275 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 10276 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 10277 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 10278 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10280 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 10281 _flag_k = FK_ADD; 10282 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 10283 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10285 _flag_k = FK_CMP; 10286 edi = eax; /* 0x36149BC8: mov edi, eax */ 10287 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 10288 L_36149BCC: 10289 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 10290 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 10291 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 10292 RECOMP_FLAGS_IN(); 10293 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 10294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10295 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 10296 _flag_k = FK_ADD; 10297 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10299 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 10300 _flag_k = FK_ADD; 10301 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 10302 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10303 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 10304 _flag_k = FK_ADD; 10305 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 10306 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10308 _flag_k = FK_CMP; 10309 RECOMP_BACKEDGE(); 10310 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 10311 L_36149BE0: 10312 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 10313 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 10314 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 10315 L_36149BE9: 10316 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 10317 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 10318 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 10319 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 10320 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 10321 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 10322 RECOMP_REGS_OUT(); 10323 } 10324 10325 void sub_36148D90(void) { 10326 int _fpu_cmp = 0; 10327 uint32_t _cf = 0; 10328 int _df = 1; 10329 uint32_t _flag_k = FK_NONE; 10330 uint32_t _flag_a = 0, _flag_b = 0; 10331 uint32_t _itail_tgt = 0; 10332 RECOMP_REGS_LOCALS 10333 RECOMP_ENTER(0x36148D90u); 10334 10335 L_36148D90: 10336 RECOMP_ICALL(MEM32(0x3616F014)); /* 0x36148D90: call dword ptr [0x3616f014] */ 10337 RECOMP_FLAGS_IN(); 10338 eax = MEM32(ebx); /* 0x36148D96: mov eax, dword ptr [ebx] */ 10339 ecx = MEM32(eax + 0x8); /* 0x36148D98: mov ecx, dword ptr [eax + 8] */ 10340 /* test ecx, ecx */ /* 0x36148D9B: test ecx, ecx */ 10341 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10342 _cf = 0; 10343 _flag_k = FK_TEST; 10344 if (TEST_Z(_flag_a, _flag_b)) goto L_36149996; /* 0x36148D9D: je 0x36149996 */ 10345 L_36148DA3: 10346 /* cmp ecx, 0x40u */ /* 0x36148DA3: cmp ecx, 0x40 */ 10347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 10348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10349 _flag_k = FK_CMP; 10350 if (CMP_A(_flag_a, _flag_b)) goto L_36149996; /* 0x36148DA6: ja 0x36149996 */ 10351 L_36148DAC: 10352 edi = MEM32(ebp + 0x8); /* 0x36148DAC: mov edi, dword ptr [ebp + 8] */ 10353 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10354 edx = 0; /* 0x36148DAF: xor edx, edx */ 10355 _cf = 0; 10356 _flag_k = FK_TEST; 10357 MEM32(ebp + (-0x3E)) = edx; /* 0x36148DB1: mov dword ptr [ebp - 0x3e], edx */ 10358 MEM32(ebp + (-0x3A)) = edx; /* 0x36148DB4: mov dword ptr [ebp - 0x3a], edx */ 10359 eax = ebp + (-0x40); /* 0x36148DB7: lea eax, [ebp - 0x40] */ 10360 MEM32(ebp + (-0x36)) = edx; /* 0x36148DBA: mov dword ptr [ebp - 0x36], edx */ 10361 PUSH32(esp, eax); /* 0x36148DBD: push eax */ 10362 ecx = edi; /* 0x36148DBE: mov ecx, edi */ 10363 MEM16(ebp + (-0x40)) = (uint16_t)(0); /* 0x36148DC0: mov word ptr [ebp - 0x40], 0 */ 10364 MEM32(ebp + (-0x32)) = edx; /* 0x36148DC6: mov dword ptr [ebp - 0x32], edx */ 10365 RECOMP_ICALL(esi); /* 0x36148DC9: call esi */ 10366 RECOMP_FLAGS_IN(); 10367 ecx = ebp + (-0x3E); /* 0x36148DCB: lea ecx, [ebp - 0x3e] */ 10368 PUSH32(esp, ecx); /* 0x36148DCE: push ecx */ 10369 ecx = eax; /* 0x36148DCF: mov ecx, eax */ 10370 RECOMP_ICALL(esi); /* 0x36148DD1: call esi */ 10371 RECOMP_FLAGS_IN(); 10372 edx = ebp + (-0x3C); /* 0x36148DD3: lea edx, [ebp - 0x3c] */ 10373 PUSH32(esp, edx); /* 0x36148DD6: push edx */ 10374 ecx = eax; /* 0x36148DD7: mov ecx, eax */ 10375 RECOMP_ICALL(esi); /* 0x36148DD9: call esi */ 10376 RECOMP_FLAGS_IN(); 10377 ecx = ebp + (-0x3A); /* 0x36148DDB: lea ecx, [ebp - 0x3a] */ 10378 PUSH32(esp, ecx); /* 0x36148DDE: push ecx */ 10379 ecx = eax; /* 0x36148DDF: mov ecx, eax */ 10380 RECOMP_ICALL(esi); /* 0x36148DE1: call esi */ 10381 RECOMP_FLAGS_IN(); 10382 edx = ebp + (-0x38); /* 0x36148DE3: lea edx, [ebp - 0x38] */ 10383 PUSH32(esp, edx); /* 0x36148DE6: push edx */ 10384 ecx = eax; /* 0x36148DE7: mov ecx, eax */ 10385 RECOMP_ICALL(esi); /* 0x36148DE9: call esi */ 10386 RECOMP_FLAGS_IN(); 10387 ecx = ebp + (-0x36); /* 0x36148DEB: lea ecx, [ebp - 0x36] */ 10388 PUSH32(esp, ecx); /* 0x36148DEE: push ecx */ 10389 ecx = eax; /* 0x36148DEF: mov ecx, eax */ 10390 RECOMP_ICALL(esi); /* 0x36148DF1: call esi */ 10391 RECOMP_FLAGS_IN(); 10392 edx = ebp + (-0x34); /* 0x36148DF3: lea edx, [ebp - 0x34] */ 10393 PUSH32(esp, edx); /* 0x36148DF6: push edx */ 10394 ecx = eax; /* 0x36148DF7: mov ecx, eax */ 10395 RECOMP_ICALL(esi); /* 0x36148DF9: call esi */ 10396 RECOMP_FLAGS_IN(); 10397 ecx = ebp + (-0x32); /* 0x36148DFB: lea ecx, [ebp - 0x32] */ 10398 PUSH32(esp, ecx); /* 0x36148DFE: push ecx */ 10399 ecx = eax; /* 0x36148DFF: mov ecx, eax */ 10400 RECOMP_ICALL(esi); /* 0x36148E01: call esi */ 10401 RECOMP_FLAGS_IN(); 10402 edx = ebp + (-0x30); /* 0x36148E03: lea edx, [ebp - 0x30] */ 10403 PUSH32(esp, edx); /* 0x36148E06: push edx */ 10404 ecx = eax; /* 0x36148E07: mov ecx, eax */ 10405 RECOMP_ICALL(esi); /* 0x36148E09: call esi */ 10406 RECOMP_FLAGS_IN(); 10407 eax = MEM32(ebp + (-0x40)); /* 0x36148E0B: mov eax, dword ptr [ebp - 0x40] */ 10408 ecx = MEM32(ebp + (-0x3E)); /* 0x36148E0E: mov ecx, dword ptr [ebp - 0x3e] */ 10409 edx = MEM32(ebp + (-0x3C)); /* 0x36148E11: mov edx, dword ptr [ebp - 0x3c] */ 10410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 10411 eax = eax & 0xFFFFu; /* 0x36148E14: and eax, 0xffff */ 10412 _cf = 0; 10413 _flag_k = FK_TEST; 10414 MEM32(ebx + 0x10) = eax; /* 0x36148E19: mov dword ptr [ebx + 0x10], eax */ 10415 eax = MEM32(ebp + (-0x3A)); /* 0x36148E1C: mov eax, dword ptr [ebp - 0x3a] */ 10416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 10417 ecx = ecx & 0xFFFFu; /* 0x36148E1F: and ecx, 0xffff */ 10418 _cf = 0; 10419 _flag_k = FK_TEST; 10420 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 10421 edx = edx & 0xFFFFu; /* 0x36148E25: and edx, 0xffff */ 10422 _cf = 0; 10423 _flag_k = FK_TEST; 10424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 10425 eax = eax & 0xFFFFu; /* 0x36148E2B: and eax, 0xffff */ 10426 _cf = 0; 10427 _flag_k = FK_TEST; 10428 MEM32(ebx + 0x14) = ecx; /* 0x36148E30: mov dword ptr [ebx + 0x14], ecx */ 10429 ecx = MEM32(ebp + (-0x38)); /* 0x36148E33: mov ecx, dword ptr [ebp - 0x38] */ 10430 MEM32(ebx + 0x18) = edx; /* 0x36148E36: mov dword ptr [ebx + 0x18], edx */ 10431 edx = MEM32(ebp + (-0x36)); /* 0x36148E39: mov edx, dword ptr [ebp - 0x36] */ 10432 MEM32(ebx + 0x1C) = eax; /* 0x36148E3C: mov dword ptr [ebx + 0x1c], eax */ 10433 eax = MEM32(ebp + (-0x34)); /* 0x36148E3F: mov eax, dword ptr [ebp - 0x34] */ 10434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 10435 ecx = ecx & 0xFFFFu; /* 0x36148E42: and ecx, 0xffff */ 10436 _cf = 0; 10437 _flag_k = FK_TEST; 10438 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 10439 edx = edx & 0xFFFFu; /* 0x36148E48: and edx, 0xffff */ 10440 _cf = 0; 10441 _flag_k = FK_TEST; 10442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 10443 eax = eax & 0xFFFFu; /* 0x36148E4E: and eax, 0xffff */ 10444 _cf = 0; 10445 _flag_k = FK_TEST; 10446 MEM32(ebx + 0x20) = ecx; /* 0x36148E53: mov dword ptr [ebx + 0x20], ecx */ 10447 ecx = MEM32(ebp + (-0x32)); /* 0x36148E56: mov ecx, dword ptr [ebp - 0x32] */ 10448 MEM32(ebx + 0x24) = edx; /* 0x36148E59: mov dword ptr [ebx + 0x24], edx */ 10449 edx = MEM32(ebp + (-0x30)); /* 0x36148E5C: mov edx, dword ptr [ebp - 0x30] */ 10450 MEM32(ebx + 0x28) = eax; /* 0x36148E5F: mov dword ptr [ebx + 0x28], eax */ 10451 eax = MEM32(ebx + 0x60); /* 0x36148E62: mov eax, dword ptr [ebx + 0x60] */ 10452 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 10453 ecx = ecx & 0xFFFFu; /* 0x36148E65: and ecx, 0xffff */ 10454 _cf = 0; 10455 _flag_k = FK_TEST; 10456 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 10457 edx = edx & 0xFFFFu; /* 0x36148E6B: and edx, 0xffff */ 10458 _cf = 0; 10459 _flag_k = FK_TEST; 10460 /* cmp eax, 6 */ /* 0x36148E71: cmp eax, 6 */ 10461 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 10462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10463 _flag_k = FK_CMP; 10464 MEM32(ebx + 0x2C) = ecx; /* 0x36148E74: mov dword ptr [ebx + 0x2c], ecx */ 10465 MEM32(ebx + 0x30) = edx; /* 0x36148E77: mov dword ptr [ebx + 0x30], edx */ 10466 if (CMP_GE(_flag_a, _flag_b)) goto L_36148EDC; /* 0x36148E7A: jge 0x36148edc */ 10467 L_36148E7C: 10468 eax = ebp + (-0x22); /* 0x36148E7C: lea eax, [ebp - 0x22] */ 10469 PUSH32(esp, eax); /* 0x36148E7F: push eax */ 10470 ecx = edi; /* 0x36148E80: mov ecx, edi */ 10471 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148E82: call dword ptr [0x3616fae0] */ 10472 RECOMP_FLAGS_IN(); 10473 ecx = ebp + (-0x21); /* 0x36148E88: lea ecx, [ebp - 0x21] */ 10474 PUSH32(esp, ecx); /* 0x36148E8B: push ecx */ 10475 ecx = eax; /* 0x36148E8C: mov ecx, eax */ 10476 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148E8E: call dword ptr [0x3616fae0] */ 10477 RECOMP_FLAGS_IN(); 10478 edx = ebp + (-0x25); /* 0x36148E94: lea edx, [ebp - 0x25] */ 10479 PUSH32(esp, edx); /* 0x36148E97: push edx */ 10480 ecx = eax; /* 0x36148E98: mov ecx, eax */ 10481 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148E9A: call dword ptr [0x3616fae0] */ 10482 RECOMP_FLAGS_IN(); 10483 ecx = ebp + (-0x1D); /* 0x36148EA0: lea ecx, [ebp - 0x1d] */ 10484 PUSH32(esp, ecx); /* 0x36148EA3: push ecx */ 10485 ecx = eax; /* 0x36148EA4: mov ecx, eax */ 10486 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148EA6: call dword ptr [0x3616fae0] */ 10487 RECOMP_FLAGS_IN(); 10488 /* cmp MEM32(ebx + 0x60), 6 */ /* 0x36148EAC: cmp dword ptr [ebx + 0x60], 6 */ 10489 _flag_a = (uint32_t)(MEM32(ebx + 0x60)); _flag_b = (uint32_t)(6); 10490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10491 _flag_k = FK_CMP; 10492 if (CMP_GE(_flag_a, _flag_b)) goto L_36148EDC; /* 0x36148EB0: jge 0x36148edc */ 10493 L_36148EB2: 10494 edx = ebp + (-0x21); /* 0x36148EB2: lea edx, [ebp - 0x21] */ 10495 PUSH32(esp, edx); /* 0x36148EB5: push edx */ 10496 ecx = edi; /* 0x36148EB6: mov ecx, edi */ 10497 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148EB8: call dword ptr [0x3616fae0] */ 10498 RECOMP_FLAGS_IN(); 10499 ecx = ebp + (-0x22); /* 0x36148EBE: lea ecx, [ebp - 0x22] */ 10500 PUSH32(esp, ecx); /* 0x36148EC1: push ecx */ 10501 ecx = eax; /* 0x36148EC2: mov ecx, eax */ 10502 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148EC4: call dword ptr [0x3616fae0] */ 10503 RECOMP_FLAGS_IN(); 10504 SET_LO16(ecx, (uint32_t)MEM8(ebp + (-0x21))); /* 0x36148ECA: movzx cx, byte ptr [ebp - 0x21] */ 10505 SET_LO16(eax, (uint32_t)MEM8(ebp + (-0x22))); /* 0x36148ECF: movzx ax, byte ptr [ebp - 0x22] */ 10506 MEM32(ebp + (-0x54)) = ecx; /* 0x36148ED4: mov dword ptr [ebp - 0x54], ecx */ 10507 MEM32(ebp + (-0x58)) = eax; /* 0x36148ED7: mov dword ptr [ebp - 0x58], eax */ 10508 goto L_36148EF2; /* 0x36148EDA: jmp 0x36148ef2 */ 10509 L_36148EDC: 10510 edx = ebp + (-0x54); /* 0x36148EDC: lea edx, [ebp - 0x54] */ 10511 PUSH32(esp, edx); /* 0x36148EDF: push edx */ 10512 ecx = edi; /* 0x36148EE0: mov ecx, edi */ 10513 RECOMP_ICALL(esi); /* 0x36148EE2: call esi */ 10514 RECOMP_FLAGS_IN(); 10515 ecx = ebp + (-0x58); /* 0x36148EE4: lea ecx, [ebp - 0x58] */ 10516 PUSH32(esp, ecx); /* 0x36148EE7: push ecx */ 10517 ecx = eax; /* 0x36148EE8: mov ecx, eax */ 10518 RECOMP_ICALL(esi); /* 0x36148EEA: call esi */ 10519 RECOMP_FLAGS_IN(); 10520 eax = MEM32(ebp + (-0x58)); /* 0x36148EEC: mov eax, dword ptr [ebp - 0x58] */ 10521 ecx = MEM32(ebp + (-0x54)); /* 0x36148EEF: mov ecx, dword ptr [ebp - 0x54] */ 10522 L_36148EF2: 10523 /* cmp LO16(ecx), 0x400u */ /* 0x36148EF2: cmp cx, 0x400 */ 10524 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 10525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10526 _flag_k = FK_NARROW(FK_CMP, 16); 10527 if (CMP_A(_flag_a, _flag_b)) goto L_36149950; /* 0x36148EF7: ja 0x36149950 */ 10528 L_36148EFD: 10529 /* cmp LO16(eax), 0x400u */ /* 0x36148EFD: cmp ax, 0x400 */ 10530 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 10531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10532 _flag_k = FK_NARROW(FK_CMP, 16); 10533 if (CMP_A(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F01: ja 0x36149950 */ 10534 L_36148F07: 10535 /* cmp LO16(ecx), LO16(eax) */ /* 0x36148F07: cmp cx, ax */ 10536 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 10537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10538 _flag_k = FK_NARROW(FK_CMP, 16); 10539 if (CMP_A(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F0A: ja 0x36149950 */ 10540 L_36148F10: 10541 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F10: test cx, cx */ 10542 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 10543 _cf = 0; 10544 _flag_k = FK_NARROW(FK_TEST, 16); 10545 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148F20; /* 0x36148F13: jne 0x36148f20 */ 10546 L_36148F15: 10547 /* test LO16(eax), LO16(eax) */ /* 0x36148F15: test ax, ax */ 10548 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 10549 _cf = 0; 10550 _flag_k = FK_NARROW(FK_TEST, 16); 10551 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F18: jne 0x36149950 */ 10552 L_36148F1E: 10553 goto L_36148F29; /* 0x36148F1E: jmp 0x36148f29 */ 10554 L_36148F20: 10555 /* test LO16(eax), LO16(eax) */ /* 0x36148F20: test ax, ax */ 10556 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 10557 _cf = 0; 10558 _flag_k = FK_NARROW(FK_TEST, 16); 10559 if (TEST_Z(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F23: je 0x36149950 */ 10560 L_36148F29: 10561 edx = MEM32(ebx + 0x60); /* 0x36148F29: mov edx, dword ptr [ebx + 0x60] */ 10562 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 10563 ecx = ecx & 0xFFFFu; /* 0x36148F2C: and ecx, 0xffff */ 10564 _cf = 0; 10565 _flag_k = FK_TEST; 10566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 10567 eax = eax & 0xFFFFu; /* 0x36148F32: and eax, 0xffff */ 10568 _cf = 0; 10569 _flag_k = FK_TEST; 10570 MEM32(ebx + 0x34) = ecx; /* 0x36148F37: mov dword ptr [ebx + 0x34], ecx */ 10571 MEM32(ebx + 0x38) = eax; /* 0x36148F3A: mov dword ptr [ebx + 0x38], eax */ 10572 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10573 eax = 0; /* 0x36148F3D: xor eax, eax */ 10574 _cf = 0; 10575 _flag_k = FK_TEST; 10576 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10577 ecx = 0; /* 0x36148F3F: xor ecx, ecx */ 10578 _cf = 0; 10579 _flag_k = FK_TEST; 10580 /* cmp edx, 6 */ /* 0x36148F41: cmp edx, 6 */ 10581 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(6); 10582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10583 _flag_k = FK_CMP; 10584 MEM32(ebp + (-0x60)) = eax; /* 0x36148F44: mov dword ptr [ebp - 0x60], eax */ 10585 MEM32(ebp + (-0x68)) = ecx; /* 0x36148F47: mov dword ptr [ebp - 0x68], ecx */ 10586 if (CMP_L(_flag_a, _flag_b)) goto L_36148F99; /* 0x36148F4A: jl 0x36148f99 */ 10587 L_36148F4C: 10588 edx = ebp + (-0x60); /* 0x36148F4C: lea edx, [ebp - 0x60] */ 10589 PUSH32(esp, edx); /* 0x36148F4F: push edx */ 10590 ecx = edi; /* 0x36148F50: mov ecx, edi */ 10591 RECOMP_ICALL(esi); /* 0x36148F52: call esi */ 10592 RECOMP_FLAGS_IN(); 10593 ecx = ebp + (-0x68); /* 0x36148F54: lea ecx, [ebp - 0x68] */ 10594 PUSH32(esp, ecx); /* 0x36148F57: push ecx */ 10595 ecx = eax; /* 0x36148F58: mov ecx, eax */ 10596 RECOMP_ICALL(esi); /* 0x36148F5A: call esi */ 10597 RECOMP_FLAGS_IN(); 10598 eax = MEM32(ebp + (-0x60)); /* 0x36148F5C: mov eax, dword ptr [ebp - 0x60] */ 10599 /* cmp LO16(eax), 0x400u */ /* 0x36148F5F: cmp ax, 0x400 */ 10600 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 10601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10602 _flag_k = FK_NARROW(FK_CMP, 16); 10603 ecx = MEM32(ebp + (-0x68)); /* 0x36148F63: mov ecx, dword ptr [ebp - 0x68] */ 10604 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F66: ja 0x3614990a */ 10605 L_36148F6C: 10606 /* cmp LO16(ecx), 0x400u */ /* 0x36148F6C: cmp cx, 0x400 */ 10607 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 10608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10609 _flag_k = FK_NARROW(FK_CMP, 16); 10610 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F71: ja 0x3614990a */ 10611 L_36148F77: 10612 /* cmp LO16(eax), LO16(ecx) */ /* 0x36148F77: cmp ax, cx */ 10613 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 10614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10615 _flag_k = FK_NARROW(FK_CMP, 16); 10616 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F7A: ja 0x3614990a */ 10617 L_36148F80: 10618 /* test LO16(eax), LO16(eax) */ /* 0x36148F80: test ax, ax */ 10619 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 10620 _cf = 0; 10621 _flag_k = FK_NARROW(FK_TEST, 16); 10622 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148F90; /* 0x36148F83: jne 0x36148f90 */ 10623 L_36148F85: 10624 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F85: test cx, cx */ 10625 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 10626 _cf = 0; 10627 _flag_k = FK_NARROW(FK_TEST, 16); 10628 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F88: jne 0x3614990a */ 10629 L_36148F8E: 10630 goto L_36148F99; /* 0x36148F8E: jmp 0x36148f99 */ 10631 L_36148F90: 10632 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F90: test cx, cx */ 10633 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 10634 _cf = 0; 10635 _flag_k = FK_NARROW(FK_TEST, 16); 10636 if (TEST_Z(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F93: je 0x3614990a */ 10637 L_36148F99: 10638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 10639 eax = eax & 0xFFFFu; /* 0x36148F99: and eax, 0xffff */ 10640 _cf = 0; 10641 _flag_k = FK_TEST; 10642 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 10643 ecx = ecx & 0xFFFFu; /* 0x36148F9E: and ecx, 0xffff */ 10644 _cf = 0; 10645 _flag_k = FK_TEST; 10646 edx = ebp + (-0x5C); /* 0x36148FA4: lea edx, [ebp - 0x5c] */ 10647 MEM32(ebx + 0x3C) = eax; /* 0x36148FA7: mov dword ptr [ebx + 0x3c], eax */ 10648 PUSH32(esp, edx); /* 0x36148FAA: push edx */ 10649 eax = ebp + (-0x6C); /* 0x36148FAB: lea eax, [ebp - 0x6c] */ 10650 MEM32(ebx + 0x40) = ecx; /* 0x36148FAE: mov dword ptr [ebx + 0x40], ecx */ 10651 PUSH32(esp, eax); /* 0x36148FB1: push eax */ 10652 ecx = edi; /* 0x36148FB2: mov ecx, edi */ 10653 MEM32(ebp + (-0x84)) = 0; /* 0x36148FB4: mov dword ptr [ebp - 0x84], 0 */ 10654 MEM32(ebp + (-0x80)) = 1; /* 0x36148FBE: mov dword ptr [ebp - 0x80], 1 */ 10655 MEM32(ebp + (-0x7C)) = 2; /* 0x36148FC5: mov dword ptr [ebp - 0x7c], 2 */ 10656 MEM32(ebp + (-0x78)) = 3; /* 0x36148FCC: mov dword ptr [ebp - 0x78], 3 */ 10657 MEM32(ebp + (-0x74)) = 4; /* 0x36148FD3: mov dword ptr [ebp - 0x74], 4 */ 10658 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FDA: call dword ptr [0x3616fae0] */ 10659 RECOMP_FLAGS_IN(); 10660 ecx = eax; /* 0x36148FE0: mov ecx, eax */ 10661 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36148FE2: call dword ptr [0x3616fa8c] */ 10662 RECOMP_FLAGS_IN(); 10663 ecx = ebp + (-0x70); /* 0x36148FE8: lea ecx, [ebp - 0x70] */ 10664 PUSH32(esp, ecx); /* 0x36148FEB: push ecx */ 10665 ecx = eax; /* 0x36148FEC: mov ecx, eax */ 10666 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FEE: call dword ptr [0x3616fae0] */ 10667 RECOMP_FLAGS_IN(); 10668 edx = ebp + (-0x48); /* 0x36148FF4: lea edx, [ebp - 0x48] */ 10669 PUSH32(esp, edx); /* 0x36148FF7: push edx */ 10670 ecx = eax; /* 0x36148FF8: mov ecx, eax */ 10671 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FFA: call dword ptr [0x3616fae0] */ 10672 RECOMP_FLAGS_IN(); 10673 eax = MEM32(ebp + (-0x6C)); /* 0x36149000: mov eax, dword ptr [ebp - 0x6c] */ 10674 /* cmp LO8(eax), 0x64u */ /* 0x36149003: cmp al, 0x64 */ 10675 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x64u) << 24; 10676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10677 _flag_k = FK_NARROW(FK_CMP, 24); 10678 if (CMP_BE(_flag_a, _flag_b)) goto L_36149046; /* 0x36149005: jbe 0x36149046 */ 10679 L_36149007: 10680 ebx = MEM32(ebx); /* 0x36149007: mov ebx, dword ptr [ebx] */ 10681 ecx = MEM32(ebx + 0x4); /* 0x36149009: mov ecx, dword ptr [ebx + 4] */ 10682 /* test ecx, ecx */ /* 0x3614900C: test ecx, ecx */ 10683 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10684 _cf = 0; 10685 _flag_k = FK_TEST; 10686 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149016; /* 0x3614900E: jne 0x36149016 */ 10687 L_36149010: 10688 ecx = MEM32(0x3616F10C); /* 0x36149010: mov ecx, dword ptr [0x3616f10c] */ 10689 L_36149016: 10690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 10691 eax = eax & 0xFFu; /* 0x36149016: and eax, 0xff */ 10692 _cf = 0; 10693 _flag_k = FK_TEST; 10694 PUSH32(esp, eax); /* 0x3614901B: push eax */ 10695 PUSH32(esp, ecx); /* 0x3614901C: push ecx */ 10696 PUSH32(esp, 0x362E7720u); /* 0x3614901D: push 0x362e7720 */ 10697 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149022: call dword ptr [0x3616f18c] */ 10698 RECOMP_FLAGS_IN(); 10699 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10700 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10701 esp = esp + 0xCu; /* 0x36149028: add esp, 0xc */ 10702 _flag_k = FK_ADD; 10703 PUSH32(esp, 0x362E7700u); /* 0x3614902B: push 0x362e7700 */ 10704 ecx = ebp + (-0x1C); /* 0x36149030: lea ecx, [ebp - 0x1c] */ 10705 RECOMP_ICALL(0x36008EF0u); /* 0x36149033: call 0x36008ef0 */ /* not lifted */ 10706 RECOMP_FLAGS_IN(); 10707 PUSH32(esp, 0x36184170u); /* 0x36149038: push 0x36184170 */ 10708 eax = ebp + (-0x1C); /* 0x3614903D: lea eax, [ebp - 0x1c] */ 10709 PUSH32(esp, eax); /* 0x36149040: push eax */ 10710 RECOMP_ICALL(0x3615FD70u); /* 0x36149041: call 0x3615fd70 */ /* not lifted */ 10711 RECOMP_FLAGS_IN(); 10712 L_36149046: 10713 ecx = MEM32(ebp + (-0x5C)); /* 0x36149046: mov ecx, dword ptr [ebp - 0x5c] */ 10714 /* cmp ecx, 0xFFFFFFFFu */ /* 0x36149049: cmp ecx, -1 */ 10715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 10716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10717 _flag_k = FK_CMP; 10718 if (CMP_GE(_flag_a, _flag_b)) goto L_36149087; /* 0x3614904C: jge 0x36149087 */ 10719 L_3614904E: 10720 ebx = MEM32(ebx); /* 0x3614904E: mov ebx, dword ptr [ebx] */ 10721 eax = MEM32(ebx + 0x4); /* 0x36149050: mov eax, dword ptr [ebx + 4] */ 10722 /* test eax, eax */ /* 0x36149053: test eax, eax */ 10723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10724 _cf = 0; 10725 _flag_k = FK_TEST; 10726 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614905C; /* 0x36149055: jne 0x3614905c */ 10727 L_36149057: 10728 eax = MEM32(0x3616F10C); /* 0x36149057: mov eax, dword ptr [0x3616f10c] */ 10729 L_3614905C: 10730 PUSH32(esp, ecx); /* 0x3614905C: push ecx */ 10731 PUSH32(esp, eax); /* 0x3614905D: push eax */ 10732 PUSH32(esp, 0x362E76ACu); /* 0x3614905E: push 0x362e76ac */ 10733 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149063: call dword ptr [0x3616f18c] */ 10734 RECOMP_FLAGS_IN(); 10735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10737 esp = esp + 0xCu; /* 0x36149069: add esp, 0xc */ 10738 _flag_k = FK_ADD; 10739 PUSH32(esp, 0x362E7700u); /* 0x3614906C: push 0x362e7700 */ 10740 ecx = ebp + (-0x1C); /* 0x36149071: lea ecx, [ebp - 0x1c] */ 10741 RECOMP_ICALL(0x36008EF0u); /* 0x36149074: call 0x36008ef0 */ /* not lifted */ 10742 RECOMP_FLAGS_IN(); 10743 PUSH32(esp, 0x36184170u); /* 0x36149079: push 0x36184170 */ 10744 ecx = ebp + (-0x1C); /* 0x3614907E: lea ecx, [ebp - 0x1c] */ 10745 PUSH32(esp, ecx); /* 0x36149081: push ecx */ 10746 RECOMP_ICALL(0x3615FD70u); /* 0x36149082: call 0x3615fd70 */ /* not lifted */ 10747 RECOMP_FLAGS_IN(); 10748 L_36149087: 10749 ecx = MEM32(ebp + (-0x70)); /* 0x36149087: mov ecx, dword ptr [ebp - 0x70] */ 10750 /* cmp LO8(ecx), 5 */ /* 0x3614908A: cmp cl, 5 */ 10751 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(5) << 24; 10752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10753 _flag_k = FK_NARROW(FK_CMP, 24); 10754 if (CMP_B(_flag_a, _flag_b)) goto L_361490D0; /* 0x3614908D: jb 0x361490d0 */ 10755 L_3614908F: 10756 ebx = MEM32(ebx); /* 0x3614908F: mov ebx, dword ptr [ebx] */ 10757 eax = MEM32(ebx + 0x4); /* 0x36149091: mov eax, dword ptr [ebx + 4] */ 10758 /* test eax, eax */ /* 0x36149094: test eax, eax */ 10759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10760 _cf = 0; 10761 _flag_k = FK_TEST; 10762 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614909D; /* 0x36149096: jne 0x3614909d */ 10763 L_36149098: 10764 eax = MEM32(0x3616F10C); /* 0x36149098: mov eax, dword ptr [0x3616f10c] */ 10765 L_3614909D: 10766 PUSH32(esp, 5); /* 0x3614909D: push 5 */ 10767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 10768 ecx = ecx & 0xFFu; /* 0x3614909F: and ecx, 0xff */ 10769 _cf = 0; 10770 _flag_k = FK_TEST; 10771 PUSH32(esp, ecx); /* 0x361490A5: push ecx */ 10772 PUSH32(esp, eax); /* 0x361490A6: push eax */ 10773 PUSH32(esp, 0x362E7654u); /* 0x361490A7: push 0x362e7654 */ 10774 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361490AC: call dword ptr [0x3616f18c] */ 10775 RECOMP_FLAGS_IN(); 10776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10778 esp = esp + 0x10u; /* 0x361490B2: add esp, 0x10 */ 10779 _flag_k = FK_ADD; 10780 PUSH32(esp, 0x362E7700u); /* 0x361490B5: push 0x362e7700 */ 10781 ecx = ebp + (-0x1C); /* 0x361490BA: lea ecx, [ebp - 0x1c] */ 10782 RECOMP_ICALL(0x36008EF0u); /* 0x361490BD: call 0x36008ef0 */ /* not lifted */ 10783 RECOMP_FLAGS_IN(); 10784 PUSH32(esp, 0x36184170u); /* 0x361490C2: push 0x36184170 */ 10785 edx = ebp + (-0x1C); /* 0x361490C7: lea edx, [ebp - 0x1c] */ 10786 PUSH32(esp, edx); /* 0x361490CA: push edx */ 10787 RECOMP_ICALL(0x3615FD70u); /* 0x361490CB: call 0x3615fd70 */ /* not lifted */ 10788 RECOMP_FLAGS_IN(); 10789 L_361490D0: 10790 fp_push((double)(int32_t)MEM32(ebp + (-0x5C))); /* 0x361490D0: fild dword ptr [ebp - 0x5c] */ 10791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 10792 eax = eax & 0xFFu; /* 0x361490D3: and eax, 0xff */ 10793 _cf = 0; 10794 _flag_k = FK_TEST; 10795 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 10796 ecx = ecx & 0xFFu; /* 0x361490D8: and ecx, 0xff */ 10797 _cf = 0; 10798 _flag_k = FK_TEST; 10799 MEM32(ebx + 0x44) = eax; /* 0x361490DE: mov dword ptr [ebx + 0x44], eax */ 10800 eax = MEM32(ebp + ecx * 4 + (-0x84)); /* 0x361490E1: mov eax, dword ptr [ebp + ecx*4 - 0x84] */ 10801 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x48) = _v; } /* 0x361490E8: fstp dword ptr [ebx + 0x48] */ 10802 MEM32(ebx + 0x4C) = eax; /* 0x361490EB: mov dword ptr [ebx + 0x4c], eax */ 10803 /* cmp MEM32(ebx + 0x60), 6 */ /* 0x361490EE: cmp dword ptr [ebx + 0x60], 6 */ 10804 _flag_a = (uint32_t)(MEM32(ebx + 0x60)); _flag_b = (uint32_t)(6); 10805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10806 _flag_k = FK_CMP; 10807 MEM8(ebp + (-0x44)) = (uint8_t)(0); /* 0x361490F2: mov byte ptr [ebp - 0x44], 0 */ 10808 if (CMP_GE(_flag_a, _flag_b)) goto L_36149104; /* 0x361490F6: jge 0x36149104 */ 10809 L_361490F8: 10810 ecx = ebp + (-0x44); /* 0x361490F8: lea ecx, [ebp - 0x44] */ 10811 PUSH32(esp, ecx); /* 0x361490FB: push ecx */ 10812 ecx = edi; /* 0x361490FC: mov ecx, edi */ 10813 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x361490FE: call dword ptr [0x3616fae0] */ 10814 RECOMP_FLAGS_IN(); 10815 L_36149104: 10816 edx = ebp + (-0x64); /* 0x36149104: lea edx, [ebp - 0x64] */ 10817 PUSH32(esp, edx); /* 0x36149107: push edx */ 10818 ecx = edi; /* 0x36149108: mov ecx, edi */ 10819 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x3614910A: call dword ptr [0x3616fae0] */ 10820 RECOMP_FLAGS_IN(); 10821 ecx = ebp + (-0x4C); /* 0x36149110: lea ecx, [ebp - 0x4c] */ 10822 PUSH32(esp, ecx); /* 0x36149113: push ecx */ 10823 ecx = eax; /* 0x36149114: mov ecx, eax */ 10824 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149116: call dword ptr [0x3616fae0] */ 10825 RECOMP_FLAGS_IN(); 10826 edx = ebp + (-0x50); /* 0x3614911C: lea edx, [ebp - 0x50] */ 10827 PUSH32(esp, edx); /* 0x3614911F: push edx */ 10828 ecx = eax; /* 0x36149120: mov ecx, eax */ 10829 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149122: call dword ptr [0x3616fae0] */ 10830 RECOMP_FLAGS_IN(); 10831 SET_LO8(eax, MEM8(ebp + (-0x48))); /* 0x36149128: mov al, byte ptr [ebp - 0x48] */ 10832 /* test LO8(eax), LO8(eax) */ /* 0x3614912B: test al, al */ 10833 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10834 _cf = 0; 10835 _flag_k = FK_NARROW(FK_TEST, 24); 10836 MEM32(ebp + (-0x20)) = 0; /* 0x3614912D: mov dword ptr [ebp - 0x20], 0 */ 10837 if (TEST_Z(_flag_a, _flag_b)) goto L_36149189; /* 0x36149134: jbe 0x36149189 */ 10838 L_36149136: 10839 eax = ebp + (-0x10); /* 0x36149136: lea eax, [ebp - 0x10] */ 10840 PUSH32(esp, eax); /* 0x36149139: push eax */ 10841 PUSH32(esp, edi); /* 0x3614913A: push edi */ 10842 MEM32(ebp + (-0x10)) = 0; /* 0x3614913B: mov dword ptr [ebp - 0x10], 0 */ 10843 RECOMP_ICALL(0x360F44D0u); /* 0x36149142: call 0x360f44d0 */ /* not lifted */ 10844 RECOMP_FLAGS_IN(); 10845 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10847 esp = esp + 8; /* 0x36149147: add esp, 8 */ 10848 _flag_k = FK_ADD; 10849 ecx = ebp + (-0x14); /* 0x3614914A: lea ecx, [ebp - 0x14] */ 10850 PUSH32(esp, ecx); /* 0x3614914D: push ecx */ 10851 ecx = eax; /* 0x3614914E: mov ecx, eax */ 10852 RECOMP_ICALL(esi); /* 0x36149150: call esi */ 10853 RECOMP_FLAGS_IN(); 10854 edx = MEM32(ebp + (-0x10)); /* 0x36149152: mov edx, dword ptr [ebp - 0x10] */ 10855 eax = MEM32(ebp + (-0x14)); /* 0x36149155: mov eax, dword ptr [ebp - 0x14] */ 10856 ecx = MEM32(ebx + 0x58); /* 0x36149158: mov ecx, dword ptr [ebx + 0x58] */ 10857 MEM32(ebp + (-0x1C)) = edx; /* 0x3614915B: mov dword ptr [ebp - 0x1c], edx */ 10858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 10859 eax = eax & 0xFFFFu; /* 0x3614915E: and eax, 0xffff */ 10860 _cf = 0; 10861 _flag_k = FK_TEST; 10862 edx = ebp + (-0x1C); /* 0x36149163: lea edx, [ebp - 0x1c] */ 10863 PUSH32(esp, edx); /* 0x36149166: push edx */ 10864 MEM32(ebp + (-0x18)) = eax; /* 0x36149167: mov dword ptr [ebp - 0x18], eax */ 10865 eax = MEM32(ecx + 0x8); /* 0x3614916A: mov eax, dword ptr [ecx + 8] */ 10866 PUSH32(esp, 1); /* 0x3614916D: push 1 */ 10867 PUSH32(esp, eax); /* 0x3614916F: push eax */ 10868 RECOMP_ICALL(0x36149F30u); /* 0x36149170: call 0x36149f30 */ /* not lifted */ 10869 RECOMP_FLAGS_IN(); 10870 eax = MEM32(ebp + (-0x20)); /* 0x36149175: mov eax, dword ptr [ebp - 0x20] */ 10871 ecx = MEM32(ebp + (-0x48)); /* 0x36149178: mov ecx, dword ptr [ebp - 0x48] */ 10872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10873 eax = eax + 1; /* 0x3614917B: inc eax */ 10874 _flag_k = FK_INC; 10875 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 10876 ecx = ecx & 0xFFu; /* 0x3614917C: and ecx, 0xff */ 10877 _cf = 0; 10878 _flag_k = FK_TEST; 10879 /* cmp eax, ecx */ /* 0x36149182: cmp eax, ecx */ 10880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10882 _flag_k = FK_CMP; 10883 MEM32(ebp + (-0x20)) = eax; /* 0x36149184: mov dword ptr [ebp - 0x20], eax */ 10884 RECOMP_BACKEDGE(); 10885 if (CMP_L(_flag_a, _flag_b)) goto L_36149136; /* 0x36149187: jl 0x36149136 */ 10886 L_36149189: 10887 SET_LO8(eax, MEM8(ebp + (-0x44))); /* 0x36149189: mov al, byte ptr [ebp - 0x44] */ 10888 /* test LO8(eax), LO8(eax) */ /* 0x3614918C: test al, al */ 10889 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10890 _cf = 0; 10891 _flag_k = FK_NARROW(FK_TEST, 24); 10892 MEM32(ebp + (-0x10)) = 0; /* 0x3614918E: mov dword ptr [ebp - 0x10], 0 */ 10893 if (TEST_Z(_flag_a, _flag_b)) goto L_361491C7; /* 0x36149195: jbe 0x361491c7 */ 10894 L_36149197: 10895 edx = ebp + (-0x14); /* 0x36149197: lea edx, [ebp - 0x14] */ 10896 PUSH32(esp, edx); /* 0x3614919A: push edx */ 10897 PUSH32(esp, edi); /* 0x3614919B: push edi */ 10898 MEM32(ebp + (-0x14)) = 0; /* 0x3614919C: mov dword ptr [ebp - 0x14], 0 */ 10899 RECOMP_ICALL(0x360F44D0u); /* 0x361491A3: call 0x360f44d0 */ /* not lifted */ 10900 RECOMP_FLAGS_IN(); 10901 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10903 esp = esp + 8; /* 0x361491A8: add esp, 8 */ 10904 _flag_k = FK_ADD; 10905 ecx = ebp + (-0x1E); /* 0x361491AB: lea ecx, [ebp - 0x1e] */ 10906 PUSH32(esp, ecx); /* 0x361491AE: push ecx */ 10907 ecx = eax; /* 0x361491AF: mov ecx, eax */ 10908 RECOMP_ICALL(esi); /* 0x361491B1: call esi */ 10909 RECOMP_FLAGS_IN(); 10910 eax = MEM32(ebp + (-0x10)); /* 0x361491B3: mov eax, dword ptr [ebp - 0x10] */ 10911 edx = MEM32(ebp + (-0x44)); /* 0x361491B6: mov edx, dword ptr [ebp - 0x44] */ 10912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10913 eax = eax + 1; /* 0x361491B9: inc eax */ 10914 _flag_k = FK_INC; 10915 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 10916 edx = edx & 0xFFu; /* 0x361491BA: and edx, 0xff */ 10917 _cf = 0; 10918 _flag_k = FK_TEST; 10919 /* cmp eax, edx */ /* 0x361491C0: cmp eax, edx */ 10920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10922 _flag_k = FK_CMP; 10923 MEM32(ebp + (-0x10)) = eax; /* 0x361491C2: mov dword ptr [ebp - 0x10], eax */ 10924 RECOMP_BACKEDGE(); 10925 if (CMP_L(_flag_a, _flag_b)) goto L_36149197; /* 0x361491C5: jl 0x36149197 */ 10926 L_361491C7: 10927 SET_LO8(eax, MEM8(ebp + (-0x64))); /* 0x361491C7: mov al, byte ptr [ebp - 0x64] */ 10928 /* test LO8(eax), LO8(eax) */ /* 0x361491CA: test al, al */ 10929 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10930 _cf = 0; 10931 _flag_k = FK_NARROW(FK_TEST, 24); 10932 MEM32(ebp + (-0x14)) = 0; /* 0x361491CC: mov dword ptr [ebp - 0x14], 0 */ 10933 if (TEST_Z(_flag_a, _flag_b)) goto L_361494B8; /* 0x361491D3: jbe 0x361494b8 */ 10934 L_361491D9: 10935 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 10936 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 10937 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 10938 PUSH32(esp, eax); /* 0x361491E5: push eax */ 10939 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 10940 RECOMP_FLAGS_IN(); 10941 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 10942 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 10943 ecx = eax; /* 0x361491EC: mov ecx, eax */ 10944 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 10945 RECOMP_FLAGS_IN(); 10946 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 10947 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 10948 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 10949 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 10950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10951 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 10952 _flag_k = FK_CMP; 10953 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 10954 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10955 edx = (uint32_t)((int32_t)edx >> 1u); 10956 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 10957 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10959 _flag_k = FK_CMP; 10960 edi = eax; /* 0x36149200: mov edi, eax */ 10961 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 10962 L_36149208: 10963 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 10964 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 10965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10966 _cf = 0; 10967 _flag_k = FK_TEST; 10968 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 10969 L_3614920F: 10970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10972 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 10973 _flag_k = FK_CMP; 10974 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 10975 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10976 eax = (uint32_t)((int32_t)eax >> 1u); 10977 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 10978 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10980 _flag_k = FK_CMP; 10981 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 10982 L_36149218: 10983 ecx = esi; /* 0x36149218: mov ecx, esi */ 10984 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 10985 RECOMP_FLAGS_IN(); 10986 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 10987 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 10988 L_36149224: 10989 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 10990 L_3614922B: 10991 ecx = esi; /* 0x3614922B: mov ecx, esi */ 10992 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 10993 RECOMP_FLAGS_IN(); 10994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 10995 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10996 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 10997 _flag_k = FK_ADD; 10998 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 10999 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 11000 L_3614923A: 11001 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11002 eax = 0; /* 0x3614923A: xor eax, eax */ 11003 _cf = 0; 11004 _flag_k = FK_TEST; 11005 L_3614923C: 11006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11008 eax = eax + eax; /* 0x3614923C: add eax, eax */ 11009 _flag_k = FK_ADD; 11010 PUSH32(esp, eax); /* 0x3614923E: push eax */ 11011 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 11012 RECOMP_FLAGS_IN(); 11013 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 11014 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11016 esp = esp + 4; /* 0x36149247: add esp, 4 */ 11017 _flag_k = FK_ADD; 11018 PUSH32(esp, eax); /* 0x3614924A: push eax */ 11019 PUSH32(esp, edi); /* 0x3614924B: push edi */ 11020 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 11021 ecx = esi; /* 0x3614924D: mov ecx, esi */ 11022 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 11023 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 11024 RECOMP_FLAGS_IN(); 11025 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 11026 PUSH32(esp, edx); /* 0x3614925A: push edx */ 11027 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 11028 PUSH32(esp, eax); /* 0x3614925D: push eax */ 11029 ecx = esi; /* 0x3614925E: mov ecx, esi */ 11030 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 11031 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 11032 RECOMP_FLAGS_IN(); 11033 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 11034 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 11035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 11036 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11037 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 11038 _flag_k = FK_ADD; 11039 PUSH32(esp, eax); /* 0x36149271: push eax */ 11040 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 11041 PUSH32(esp, edi); /* 0x36149273: push edi */ 11042 ecx = esi; /* 0x36149274: mov ecx, esi */ 11043 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 11044 RECOMP_FLAGS_IN(); 11045 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 11046 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 11047 PUSH32(esp, edx); /* 0x36149281: push edx */ 11048 PUSH32(esp, eax); /* 0x36149282: push eax */ 11049 ecx = esi; /* 0x36149283: mov ecx, esi */ 11050 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 11051 RECOMP_FLAGS_IN(); 11052 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 11053 PUSH32(esp, eax); /* 0x3614928D: push eax */ 11054 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 11055 RECOMP_FLAGS_IN(); 11056 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 11057 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 11058 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 11059 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11061 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 11062 _flag_k = FK_ADD; 11063 ecx = esi; /* 0x3614929F: mov ecx, esi */ 11064 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 11065 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 11066 RECOMP_FLAGS_IN(); 11067 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 11068 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 11069 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 11070 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 11071 L_361492B8: 11072 ecx = eax; /* 0x361492B8: mov ecx, eax */ 11073 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11075 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 11076 _flag_k = FK_CMP; 11077 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 11078 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11079 ecx = (uint32_t)((int32_t)ecx >> 1u); 11080 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 11081 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11083 _flag_k = FK_CMP; 11084 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 11085 L_361492C3: 11086 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 11087 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 11088 PUSH32(esp, eax); /* 0x361492C7: push eax */ 11089 PUSH32(esp, edi); /* 0x361492C8: push edi */ 11090 ecx = esi; /* 0x361492C9: mov ecx, esi */ 11091 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 11092 RECOMP_FLAGS_IN(); 11093 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 11094 ecx = eax; /* 0x361492D3: mov ecx, eax */ 11095 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 11096 PUSH32(esp, edx); /* 0x361492D8: push edx */ 11097 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11099 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 11100 _flag_k = FK_CMP; 11101 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 11102 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11103 ecx = (uint32_t)((int32_t)ecx >> 1u); 11104 edx = 1; /* 0x361492DD: mov edx, 1 */ 11105 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11107 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 11108 _flag_k = FK_CMP; 11109 PUSH32(esp, edx); /* 0x361492E4: push edx */ 11110 PUSH32(esp, eax); /* 0x361492E5: push eax */ 11111 ecx = esi; /* 0x361492E6: mov ecx, esi */ 11112 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 11113 RECOMP_FLAGS_IN(); 11114 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 11115 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 11116 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11118 _flag_k = FK_CMP; 11119 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 11120 L_361492F4: 11121 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 11122 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 11123 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 11124 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11125 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 11126 _flag_k = FK_ADD; 11127 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 11128 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11130 _flag_k = FK_CMP; 11131 RECOMP_BACKEDGE(); 11132 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 11133 L_36149302: 11134 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 11135 L_36149304: 11136 PUSH32(esp, eax); /* 0x36149304: push eax */ 11137 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 11138 PUSH32(esp, eax); /* 0x36149308: push eax */ 11139 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 11140 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 11141 ecx = esi; /* 0x3614930D: mov ecx, esi */ 11142 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 11143 RECOMP_FLAGS_IN(); 11144 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 11145 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 11146 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 11147 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11149 _flag_k = FK_CMP; 11150 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 11151 L_3614931E: 11152 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 11153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 11154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11155 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 11156 _flag_k = FK_CMP; 11157 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 11158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11159 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 11160 _flag_k = FK_CMP; 11161 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 11162 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11164 _flag_k = FK_CMP; 11165 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 11166 RECOMP_BACKEDGE(); 11167 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 11168 L_3614932F: 11169 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 11170 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 11171 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11173 _flag_k = FK_CMP; 11174 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 11175 L_36149336: 11176 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 11177 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 11178 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 11179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11180 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 11181 _flag_k = FK_ADD; 11182 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 11183 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11185 _flag_k = FK_CMP; 11186 RECOMP_BACKEDGE(); 11187 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 11188 L_36149344: 11189 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 11190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11191 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 11192 _flag_k = FK_ADD; 11193 L_36149348: 11194 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 11195 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 11196 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 11197 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11199 edx = edx - eax; /* 0x36149351: sub edx, eax */ 11200 _flag_k = FK_CMP; 11201 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 11202 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11203 edx = (uint32_t)((int32_t)edx >> 1u); 11204 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 11205 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11207 _flag_k = FK_CMP; 11208 edi = eax; /* 0x36149358: mov edi, eax */ 11209 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 11210 L_36149360: 11211 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 11212 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 11213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11214 _cf = 0; 11215 _flag_k = FK_TEST; 11216 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 11217 L_36149367: 11218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11220 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 11221 _flag_k = FK_CMP; 11222 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 11223 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11224 eax = (uint32_t)((int32_t)eax >> 1u); 11225 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 11226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11228 _flag_k = FK_CMP; 11229 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 11230 L_36149370: 11231 ecx = esi; /* 0x36149370: mov ecx, esi */ 11232 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 11233 RECOMP_FLAGS_IN(); 11234 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 11235 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 11236 L_3614937C: 11237 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 11238 L_36149383: 11239 ecx = esi; /* 0x36149383: mov ecx, esi */ 11240 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 11241 RECOMP_FLAGS_IN(); 11242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 11243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11244 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 11245 _flag_k = FK_ADD; 11246 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 11247 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 11248 L_36149392: 11249 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11250 eax = 0; /* 0x36149392: xor eax, eax */ 11251 _cf = 0; 11252 _flag_k = FK_TEST; 11253 L_36149394: 11254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11256 eax = eax + eax; /* 0x36149394: add eax, eax */ 11257 _flag_k = FK_ADD; 11258 PUSH32(esp, eax); /* 0x36149396: push eax */ 11259 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 11260 RECOMP_FLAGS_IN(); 11261 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 11262 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11264 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 11265 _flag_k = FK_ADD; 11266 PUSH32(esp, eax); /* 0x361493A2: push eax */ 11267 PUSH32(esp, edi); /* 0x361493A3: push edi */ 11268 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 11269 ecx = esi; /* 0x361493A5: mov ecx, esi */ 11270 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 11271 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 11272 RECOMP_FLAGS_IN(); 11273 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 11274 PUSH32(esp, edx); /* 0x361493B2: push edx */ 11275 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 11276 PUSH32(esp, eax); /* 0x361493B5: push eax */ 11277 ecx = esi; /* 0x361493B6: mov ecx, esi */ 11278 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 11279 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 11280 RECOMP_FLAGS_IN(); 11281 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 11282 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 11283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 11284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11285 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 11286 _flag_k = FK_ADD; 11287 PUSH32(esp, eax); /* 0x361493C9: push eax */ 11288 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 11289 PUSH32(esp, edi); /* 0x361493CB: push edi */ 11290 ecx = esi; /* 0x361493CC: mov ecx, esi */ 11291 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 11292 RECOMP_FLAGS_IN(); 11293 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 11294 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 11295 PUSH32(esp, edx); /* 0x361493D9: push edx */ 11296 PUSH32(esp, eax); /* 0x361493DA: push eax */ 11297 ecx = esi; /* 0x361493DB: mov ecx, esi */ 11298 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 11299 RECOMP_FLAGS_IN(); 11300 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 11301 PUSH32(esp, eax); /* 0x361493E5: push eax */ 11302 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 11303 RECOMP_FLAGS_IN(); 11304 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 11305 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 11306 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 11307 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11308 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11309 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 11310 _flag_k = FK_ADD; 11311 ecx = esi; /* 0x361493F7: mov ecx, esi */ 11312 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 11313 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 11314 RECOMP_FLAGS_IN(); 11315 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 11316 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 11317 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 11318 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 11319 L_36149410: 11320 ecx = eax; /* 0x36149410: mov ecx, eax */ 11321 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11323 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 11324 _flag_k = FK_CMP; 11325 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 11326 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11327 ecx = (uint32_t)((int32_t)ecx >> 1u); 11328 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 11329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11331 _flag_k = FK_CMP; 11332 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 11333 L_3614941B: 11334 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 11335 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 11336 PUSH32(esp, eax); /* 0x3614941F: push eax */ 11337 PUSH32(esp, edi); /* 0x36149420: push edi */ 11338 ecx = esi; /* 0x36149421: mov ecx, esi */ 11339 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 11340 RECOMP_FLAGS_IN(); 11341 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 11342 ecx = eax; /* 0x3614942B: mov ecx, eax */ 11343 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 11344 PUSH32(esp, edx); /* 0x36149430: push edx */ 11345 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11347 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 11348 _flag_k = FK_CMP; 11349 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 11350 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11351 ecx = (uint32_t)((int32_t)ecx >> 1u); 11352 edx = 1; /* 0x36149435: mov edx, 1 */ 11353 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11355 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 11356 _flag_k = FK_CMP; 11357 PUSH32(esp, edx); /* 0x3614943C: push edx */ 11358 PUSH32(esp, eax); /* 0x3614943D: push eax */ 11359 ecx = esi; /* 0x3614943E: mov ecx, esi */ 11360 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 11361 RECOMP_FLAGS_IN(); 11362 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 11363 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 11364 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11366 _flag_k = FK_CMP; 11367 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 11368 L_3614944C: 11369 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 11370 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 11371 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 11372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11373 edi = edi + 2; /* 0x36149453: add edi, 2 */ 11374 _flag_k = FK_ADD; 11375 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 11376 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11378 _flag_k = FK_CMP; 11379 RECOMP_BACKEDGE(); 11380 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 11381 L_3614945A: 11382 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 11383 L_3614945C: 11384 PUSH32(esp, eax); /* 0x3614945C: push eax */ 11385 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 11386 PUSH32(esp, eax); /* 0x36149460: push eax */ 11387 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 11388 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 11389 ecx = esi; /* 0x36149465: mov ecx, esi */ 11390 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 11391 RECOMP_FLAGS_IN(); 11392 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 11393 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 11394 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 11395 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11397 _flag_k = FK_CMP; 11398 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 11399 L_36149476: 11400 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 11401 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 11402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11403 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 11404 _flag_k = FK_CMP; 11405 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 11406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11407 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 11408 _flag_k = FK_CMP; 11409 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 11410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11412 _flag_k = FK_CMP; 11413 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 11414 RECOMP_BACKEDGE(); 11415 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 11416 L_36149487: 11417 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 11418 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 11419 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11421 _flag_k = FK_CMP; 11422 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 11423 L_3614948E: 11424 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 11425 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 11426 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 11427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11428 edi = edi + 2; /* 0x36149495: add edi, 2 */ 11429 _flag_k = FK_ADD; 11430 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 11431 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11433 _flag_k = FK_CMP; 11434 RECOMP_BACKEDGE(); 11435 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 11436 L_3614949C: 11437 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 11438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11439 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 11440 _flag_k = FK_ADD; 11441 L_361494A0: 11442 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 11443 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 11444 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11445 eax = eax + 1; /* 0x361494A6: inc eax */ 11446 _flag_k = FK_INC; 11447 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 11448 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 11449 _cf = 0; 11450 _flag_k = FK_TEST; 11451 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 11452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11454 _flag_k = FK_CMP; 11455 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 11456 RECOMP_BACKEDGE(); 11457 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 11458 L_361494B8: 11459 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 11460 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 11461 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11462 _cf = 0; 11463 _flag_k = FK_NARROW(FK_TEST, 24); 11464 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 11465 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 11466 L_361494CA: 11467 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 11468 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 11469 RECOMP_FLAGS_IN(); 11470 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 11471 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 11472 PUSH32(esp, eax); /* 0x361494DE: push eax */ 11473 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 11474 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 11475 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 11476 RECOMP_FLAGS_IN(); 11477 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 11478 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 11479 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 11480 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11482 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 11483 _flag_k = FK_CMP; 11484 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 11485 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 11486 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11487 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11488 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 11489 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11490 edx = (uint32_t)((int32_t)edx >> 3u); 11491 eax = edx; /* 0x36149501: mov eax, edx */ 11492 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 11493 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11494 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 11495 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11497 edx = edx + eax; /* 0x36149506: add edx, eax */ 11498 _flag_k = FK_ADD; 11499 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11501 esp = esp + 8; /* 0x36149508: add esp, 8 */ 11502 _flag_k = FK_ADD; 11503 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 11504 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11506 _flag_k = FK_CMP; 11507 edi = ecx; /* 0x3614950E: mov edi, ecx */ 11508 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 11509 L_36149516: 11510 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 11511 /* test eax, eax */ /* 0x36149519: test eax, eax */ 11512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11513 _cf = 0; 11514 _flag_k = FK_TEST; 11515 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 11516 L_3614951D: 11517 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11519 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 11520 _flag_k = FK_CMP; 11521 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 11522 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 11523 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11524 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11525 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 11526 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11527 edx = (uint32_t)((int32_t)edx >> 3u); 11528 ecx = edx; /* 0x36149529: mov ecx, edx */ 11529 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 11530 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11531 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 11532 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11533 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11534 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 11535 _flag_k = FK_ADD; 11536 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 11537 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11539 _flag_k = FK_CMP; 11540 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 11541 L_36149535: 11542 ecx = esi; /* 0x36149535: mov ecx, esi */ 11543 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 11544 RECOMP_FLAGS_IN(); 11545 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 11546 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 11547 L_36149541: 11548 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 11549 L_36149548: 11550 ecx = esi; /* 0x36149548: mov ecx, esi */ 11551 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 11552 RECOMP_FLAGS_IN(); 11553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 11554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11555 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 11556 _flag_k = FK_ADD; 11557 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 11558 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 11559 L_36149557: 11560 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11561 eax = 0; /* 0x36149557: xor eax, eax */ 11562 _cf = 0; 11563 _flag_k = FK_TEST; 11564 L_36149559: 11565 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 11566 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 11567 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11568 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 11569 PUSH32(esp, edx); /* 0x3614955F: push edx */ 11570 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 11571 RECOMP_FLAGS_IN(); 11572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11574 esp = esp + 4; /* 0x36149565: add esp, 4 */ 11575 _flag_k = FK_ADD; 11576 PUSH32(esp, eax); /* 0x36149568: push eax */ 11577 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 11578 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 11579 PUSH32(esp, edi); /* 0x3614956F: push edi */ 11580 PUSH32(esp, eax); /* 0x36149570: push eax */ 11581 ecx = esi; /* 0x36149571: mov ecx, esi */ 11582 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 11583 RECOMP_FLAGS_IN(); 11584 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 11585 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 11586 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 11587 PUSH32(esp, eax); /* 0x36149581: push eax */ 11588 ecx = esi; /* 0x36149582: mov ecx, esi */ 11589 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 11590 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 11591 RECOMP_FLAGS_IN(); 11592 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 11593 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 11594 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 11595 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11596 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 11597 _flag_k = FK_ADD; 11598 PUSH32(esp, edx); /* 0x36149595: push edx */ 11599 PUSH32(esp, eax); /* 0x36149596: push eax */ 11600 PUSH32(esp, edi); /* 0x36149597: push edi */ 11601 ecx = esi; /* 0x36149598: mov ecx, esi */ 11602 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 11603 RECOMP_FLAGS_IN(); 11604 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 11605 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 11606 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 11607 PUSH32(esp, edx); /* 0x361495A6: push edx */ 11608 ecx = esi; /* 0x361495A7: mov ecx, esi */ 11609 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 11610 RECOMP_FLAGS_IN(); 11611 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 11612 PUSH32(esp, eax); /* 0x361495B1: push eax */ 11613 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 11614 RECOMP_FLAGS_IN(); 11615 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 11616 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 11617 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 11618 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 11619 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 11620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11622 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 11623 _flag_k = FK_ADD; 11624 ecx = esi; /* 0x361495C9: mov ecx, esi */ 11625 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 11626 RECOMP_FLAGS_IN(); 11627 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11628 eax = eax + 1; /* 0x361495D0: inc eax */ 11629 _flag_k = FK_INC; 11630 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 11631 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 11632 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 11633 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 11634 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 11635 L_361495E2: 11636 edx = ecx; /* 0x361495E2: mov edx, ecx */ 11637 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 11638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11639 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 11640 _flag_k = FK_CMP; 11641 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 11642 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 11643 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11644 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11645 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 11646 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11647 edx = (uint32_t)((int32_t)edx >> 3u); 11648 eax = edx; /* 0x361495F0: mov eax, edx */ 11649 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 11650 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11651 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 11652 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11653 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11654 edx = edx + eax; /* 0x361495F5: add edx, eax */ 11655 _flag_k = FK_ADD; 11656 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 11657 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11659 _flag_k = FK_CMP; 11660 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 11661 L_361495FC: 11662 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 11663 PUSH32(esp, edx); /* 0x361495FF: push edx */ 11664 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 11665 PUSH32(esp, edi); /* 0x36149601: push edi */ 11666 ecx = esi; /* 0x36149602: mov ecx, esi */ 11667 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 11668 RECOMP_FLAGS_IN(); 11669 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 11670 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 11671 PUSH32(esp, eax); /* 0x36149612: push eax */ 11672 edx = ecx; /* 0x36149613: mov edx, ecx */ 11673 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 11674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11675 edx = edx - edi; /* 0x36149615: sub edx, edi */ 11676 _flag_k = FK_CMP; 11677 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 11678 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 11679 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11680 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11681 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 11682 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11683 edx = (uint32_t)((int32_t)edx >> 3u); 11684 eax = edx; /* 0x36149621: mov eax, edx */ 11685 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 11686 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11687 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 11688 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11690 edx = edx + eax; /* 0x36149626: add edx, eax */ 11691 _flag_k = FK_ADD; 11692 eax = 1; /* 0x36149628: mov eax, 1 */ 11693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11695 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 11696 _flag_k = FK_CMP; 11697 PUSH32(esp, eax); /* 0x3614962F: push eax */ 11698 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 11699 ecx = esi; /* 0x36149631: mov ecx, esi */ 11700 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 11701 RECOMP_FLAGS_IN(); 11702 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 11703 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 11704 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 11705 PUSH32(esp, edx); /* 0x36149642: push edx */ 11706 PUSH32(esp, edi); /* 0x36149643: push edi */ 11707 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 11708 RECOMP_FLAGS_IN(); 11709 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11711 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 11712 _flag_k = FK_ADD; 11713 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 11714 L_3614964E: 11715 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 11716 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 11717 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 11718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11719 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 11720 _flag_k = FK_ADD; 11721 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 11722 ecx = esi; /* 0x36149654: mov ecx, esi */ 11723 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 11724 RECOMP_FLAGS_IN(); 11725 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 11726 PUSH32(esp, eax); /* 0x3614965E: push eax */ 11727 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 11728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11729 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 11730 _flag_k = FK_ADD; 11731 PUSH32(esp, eax); /* 0x36149662: push eax */ 11732 PUSH32(esp, edi); /* 0x36149663: push edi */ 11733 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 11734 RECOMP_FLAGS_IN(); 11735 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 11736 PUSH32(esp, eax); /* 0x3614966F: push eax */ 11737 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 11738 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 11739 PUSH32(esp, edi); /* 0x36149674: push edi */ 11740 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 11741 RECOMP_FLAGS_IN(); 11742 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 11743 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11744 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 11745 _flag_k = FK_ADD; 11746 L_3614967D: 11747 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 11748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11749 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 11750 _flag_k = FK_ADD; 11751 L_36149681: 11752 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 11753 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 11754 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 11755 RECOMP_FLAGS_IN(); 11756 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 11757 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 11758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11759 eax = eax + 1; /* 0x36149699: inc eax */ 11760 _flag_k = FK_INC; 11761 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 11762 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 11763 _cf = 0; 11764 _flag_k = FK_TEST; 11765 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 11766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11768 _flag_k = FK_CMP; 11769 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 11770 RECOMP_BACKEDGE(); 11771 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 11772 L_361496AB: 11773 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 11774 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 11775 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11776 _cf = 0; 11777 _flag_k = FK_NARROW(FK_TEST, 24); 11778 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 11779 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 11780 L_361496BD: 11781 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 11782 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 11783 RECOMP_FLAGS_IN(); 11784 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 11785 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 11786 PUSH32(esp, eax); /* 0x361496D1: push eax */ 11787 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 11788 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 11789 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 11790 RECOMP_FLAGS_IN(); 11791 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 11792 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 11793 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 11794 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11796 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 11797 _flag_k = FK_CMP; 11798 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 11799 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 11800 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 11801 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11802 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11803 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 11804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11805 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 11806 _flag_k = FK_ADD; 11807 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 11808 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11809 edx = (uint32_t)((int32_t)edx >> 5u); 11810 eax = edx; /* 0x361496FA: mov eax, edx */ 11811 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 11812 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11813 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 11814 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11815 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11816 edx = edx + eax; /* 0x361496FF: add edx, eax */ 11817 _flag_k = FK_ADD; 11818 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11819 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11820 esp = esp + 8; /* 0x36149701: add esp, 8 */ 11821 _flag_k = FK_ADD; 11822 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 11823 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11825 _flag_k = FK_CMP; 11826 edi = ecx; /* 0x36149707: mov edi, ecx */ 11827 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 11828 L_3614970F: 11829 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 11830 /* test eax, eax */ /* 0x36149712: test eax, eax */ 11831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11832 _cf = 0; 11833 _flag_k = FK_TEST; 11834 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 11835 L_36149716: 11836 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11838 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 11839 _flag_k = FK_CMP; 11840 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 11841 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 11842 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11843 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11844 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11845 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11846 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 11847 _flag_k = FK_ADD; 11848 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 11849 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11850 edx = (uint32_t)((int32_t)edx >> 5u); 11851 ecx = edx; /* 0x36149724: mov ecx, edx */ 11852 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 11853 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11854 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 11855 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11857 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 11858 _flag_k = FK_ADD; 11859 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 11860 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11862 _flag_k = FK_CMP; 11863 ebx = edx; /* 0x3614972E: mov ebx, edx */ 11864 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 11865 L_36149732: 11866 ebx = 1; /* 0x36149732: mov ebx, 1 */ 11867 L_36149737: 11868 ecx = esi; /* 0x36149737: mov ecx, esi */ 11869 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 11870 RECOMP_FLAGS_IN(); 11871 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11873 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 11874 _flag_k = FK_ADD; 11875 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 11876 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 11877 L_36149745: 11878 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11879 eax = 0; /* 0x36149745: xor eax, eax */ 11880 _cf = 0; 11881 _flag_k = FK_TEST; 11882 L_36149747: 11883 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 11884 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 11885 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 11886 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11887 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 11888 PUSH32(esp, edx); /* 0x36149750: push edx */ 11889 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 11890 RECOMP_FLAGS_IN(); 11891 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11892 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11893 esp = esp + 4; /* 0x36149756: add esp, 4 */ 11894 _flag_k = FK_ADD; 11895 ebx = eax; /* 0x36149759: mov ebx, eax */ 11896 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 11897 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 11898 PUSH32(esp, edi); /* 0x3614975F: push edi */ 11899 PUSH32(esp, eax); /* 0x36149760: push eax */ 11900 ecx = esi; /* 0x36149761: mov ecx, esi */ 11901 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 11902 RECOMP_FLAGS_IN(); 11903 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 11904 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 11905 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 11906 PUSH32(esp, eax); /* 0x36149771: push eax */ 11907 ecx = esi; /* 0x36149772: mov ecx, esi */ 11908 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 11909 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 11910 RECOMP_FLAGS_IN(); 11911 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 11912 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 11913 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 11914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11915 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 11916 _flag_k = FK_ADD; 11917 PUSH32(esp, edx); /* 0x36149785: push edx */ 11918 PUSH32(esp, eax); /* 0x36149786: push eax */ 11919 PUSH32(esp, edi); /* 0x36149787: push edi */ 11920 ecx = esi; /* 0x36149788: mov ecx, esi */ 11921 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 11922 RECOMP_FLAGS_IN(); 11923 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 11924 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 11925 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 11926 PUSH32(esp, edx); /* 0x36149796: push edx */ 11927 ecx = esi; /* 0x36149797: mov ecx, esi */ 11928 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 11929 RECOMP_FLAGS_IN(); 11930 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 11931 PUSH32(esp, eax); /* 0x361497A1: push eax */ 11932 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 11933 RECOMP_FLAGS_IN(); 11934 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 11935 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 11936 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 11937 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 11938 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 11939 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11940 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11941 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 11942 _flag_k = FK_ADD; 11943 ecx = esi; /* 0x361497B9: mov ecx, esi */ 11944 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 11945 RECOMP_FLAGS_IN(); 11946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11947 eax = eax + 1; /* 0x361497C0: inc eax */ 11948 _flag_k = FK_INC; 11949 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 11950 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 11951 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 11952 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 11953 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 11954 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 11955 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 11956 L_361497D8: 11957 edx = ecx; /* 0x361497D8: mov edx, ecx */ 11958 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 11959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11960 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 11961 _flag_k = FK_CMP; 11962 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 11963 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 11964 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 11965 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11966 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11967 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 11968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11969 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 11970 _flag_k = FK_ADD; 11971 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 11972 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11973 edx = (uint32_t)((int32_t)edx >> 5u); 11974 eax = edx; /* 0x361497EC: mov eax, edx */ 11975 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 11976 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11977 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 11978 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11980 edx = edx + eax; /* 0x361497F1: add edx, eax */ 11981 _flag_k = FK_ADD; 11982 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 11983 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11985 _flag_k = FK_CMP; 11986 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 11987 L_361497F8: 11988 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 11989 PUSH32(esp, edx); /* 0x361497FB: push edx */ 11990 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 11991 PUSH32(esp, edi); /* 0x361497FD: push edi */ 11992 ecx = esi; /* 0x361497FE: mov ecx, esi */ 11993 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 11994 RECOMP_FLAGS_IN(); 11995 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 11996 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11998 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 11999 _flag_k = FK_CMP; 12000 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 12001 PUSH32(esp, eax); /* 0x36149810: push eax */ 12002 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 12003 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 12004 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 12005 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 12006 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12008 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 12009 _flag_k = FK_ADD; 12010 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 12011 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12012 edx = (uint32_t)((int32_t)edx >> 5u); 12013 ecx = edx; /* 0x3614981D: mov ecx, edx */ 12014 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 12015 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12016 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 12017 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12019 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 12020 _flag_k = FK_ADD; 12021 eax = 1; /* 0x36149824: mov eax, 1 */ 12022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12024 eax = eax - edx; /* 0x36149829: sub eax, edx */ 12025 _flag_k = FK_CMP; 12026 PUSH32(esp, eax); /* 0x3614982B: push eax */ 12027 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 12028 PUSH32(esp, eax); /* 0x3614982F: push eax */ 12029 ecx = esi; /* 0x36149830: mov ecx, esi */ 12030 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 12031 RECOMP_FLAGS_IN(); 12032 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 12033 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 12034 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 12035 PUSH32(esp, edx); /* 0x36149841: push edx */ 12036 PUSH32(esp, edi); /* 0x36149842: push edi */ 12037 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 12038 RECOMP_FLAGS_IN(); 12039 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12040 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12041 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 12042 _flag_k = FK_ADD; 12043 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 12044 L_3614984D: 12045 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 12046 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 12047 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 12048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12049 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 12050 _flag_k = FK_ADD; 12051 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 12052 ecx = esi; /* 0x36149853: mov ecx, esi */ 12053 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 12054 RECOMP_FLAGS_IN(); 12055 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 12056 PUSH32(esp, eax); /* 0x3614985D: push eax */ 12057 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 12058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12059 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 12060 _flag_k = FK_ADD; 12061 PUSH32(esp, eax); /* 0x36149861: push eax */ 12062 PUSH32(esp, edi); /* 0x36149862: push edi */ 12063 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 12064 RECOMP_FLAGS_IN(); 12065 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 12066 PUSH32(esp, eax); /* 0x3614986E: push eax */ 12067 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 12068 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 12069 PUSH32(esp, edi); /* 0x36149873: push edi */ 12070 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 12071 RECOMP_FLAGS_IN(); 12072 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 12073 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12074 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 12075 _flag_k = FK_ADD; 12076 L_3614987C: 12077 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 12078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12079 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 12080 _flag_k = FK_ADD; 12081 L_36149880: 12082 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 12083 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 12084 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 12085 RECOMP_FLAGS_IN(); 12086 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 12087 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 12088 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12089 eax = eax + 1; /* 0x36149898: inc eax */ 12090 _flag_k = FK_INC; 12091 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 12092 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 12093 _cf = 0; 12094 _flag_k = FK_TEST; 12095 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 12096 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12098 _flag_k = FK_CMP; 12099 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 12100 RECOMP_BACKEDGE(); 12101 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 12102 L_361498AA: 12103 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 12104 ecx = esi; /* 0x361498AD: mov ecx, esi */ 12105 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 12106 RECOMP_FLAGS_IN(); 12107 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 12108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12109 _cf = 0; 12110 _flag_k = FK_TEST; 12111 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 12112 L_361498B9: 12113 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 12114 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 12115 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 12116 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12117 _cf = 0; 12118 _flag_k = FK_TEST; 12119 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 12120 L_361498C2: 12121 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 12122 L_361498C7: 12123 PUSH32(esp, eax); /* 0x361498C7: push eax */ 12124 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 12125 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 12126 RECOMP_FLAGS_IN(); 12127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12129 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 12130 _flag_k = FK_ADD; 12131 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 12132 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 12133 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 12134 RECOMP_FLAGS_IN(); 12135 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 12136 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 12137 PUSH32(esp, eax); /* 0x361498F1: push eax */ 12138 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 12139 RECOMP_FLAGS_IN(); 12140 L_361498F7: 12141 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 12142 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 12143 eax = esi; /* 0x361498FB: mov eax, esi */ 12144 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 12145 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 12146 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 12147 esp = ebp; /* 0x36149906: mov esp, ebp */ 12148 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 12149 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 12150 L_3614990A: 12151 ebx = MEM32(ebx); /* 0x3614990A: mov ebx, dword ptr [ebx] */ 12152 edx = MEM32(ebx + 0x4); /* 0x3614990C: mov edx, dword ptr [ebx + 4] */ 12153 /* test edx, edx */ /* 0x3614990F: test edx, edx */ 12154 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12155 _cf = 0; 12156 _flag_k = FK_TEST; 12157 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149919; /* 0x36149911: jne 0x36149919 */ 12158 L_36149913: 12159 edx = MEM32(0x3616F10C); /* 0x36149913: mov edx, dword ptr [0x3616f10c] */ 12160 L_36149919: 12161 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 12162 ecx = ecx & 0xFFFFu; /* 0x36149919: and ecx, 0xffff */ 12163 _cf = 0; 12164 _flag_k = FK_TEST; 12165 PUSH32(esp, ecx); /* 0x3614991F: push ecx */ 12166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 12167 eax = eax & 0xFFFFu; /* 0x36149920: and eax, 0xffff */ 12168 _cf = 0; 12169 _flag_k = FK_TEST; 12170 PUSH32(esp, eax); /* 0x36149925: push eax */ 12171 PUSH32(esp, edx); /* 0x36149926: push edx */ 12172 PUSH32(esp, 0x362E756Cu); /* 0x36149927: push 0x362e756c */ 12173 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614992C: call dword ptr [0x3616f18c] */ 12174 RECOMP_FLAGS_IN(); 12175 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 12176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12177 esp = esp + 0x10u; /* 0x36149932: add esp, 0x10 */ 12178 _flag_k = FK_ADD; 12179 PUSH32(esp, 0x362E753Cu); /* 0x36149935: push 0x362e753c */ 12180 ecx = ebp + (-0x1C); /* 0x3614993A: lea ecx, [ebp - 0x1c] */ 12181 RECOMP_ICALL(0x36008EF0u); /* 0x3614993D: call 0x36008ef0 */ /* not lifted */ 12182 RECOMP_FLAGS_IN(); 12183 PUSH32(esp, 0x36184170u); /* 0x36149942: push 0x36184170 */ 12184 ecx = ebp + (-0x1C); /* 0x36149947: lea ecx, [ebp - 0x1c] */ 12185 PUSH32(esp, ecx); /* 0x3614994A: push ecx */ 12186 RECOMP_ICALL(0x3615FD70u); /* 0x3614994B: call 0x3615fd70 */ /* not lifted */ 12187 RECOMP_FLAGS_IN(); 12188 L_36149950: 12189 ebx = MEM32(ebx); /* 0x36149950: mov ebx, dword ptr [ebx] */ 12190 edx = MEM32(ebx + 0x4); /* 0x36149952: mov edx, dword ptr [ebx + 4] */ 12191 /* test edx, edx */ /* 0x36149955: test edx, edx */ 12192 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12193 _cf = 0; 12194 _flag_k = FK_TEST; 12195 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614995F; /* 0x36149957: jne 0x3614995f */ 12196 L_36149959: 12197 edx = MEM32(0x3616F10C); /* 0x36149959: mov edx, dword ptr [0x3616f10c] */ 12198 L_3614995F: 12199 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 12200 eax = eax & 0xFFFFu; /* 0x3614995F: and eax, 0xffff */ 12201 _cf = 0; 12202 _flag_k = FK_TEST; 12203 PUSH32(esp, eax); /* 0x36149964: push eax */ 12204 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 12205 ecx = ecx & 0xFFFFu; /* 0x36149965: and ecx, 0xffff */ 12206 _cf = 0; 12207 _flag_k = FK_TEST; 12208 PUSH32(esp, ecx); /* 0x3614996B: push ecx */ 12209 PUSH32(esp, edx); /* 0x3614996C: push edx */ 12210 PUSH32(esp, 0x362E74E4u); /* 0x3614996D: push 0x362e74e4 */ 12211 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149972: call dword ptr [0x3616f18c] */ 12212 RECOMP_FLAGS_IN(); 12213 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 12214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12215 esp = esp + 0x10u; /* 0x36149978: add esp, 0x10 */ 12216 _flag_k = FK_ADD; 12217 PUSH32(esp, 0x362E74C0u); /* 0x3614997B: push 0x362e74c0 */ 12218 ecx = ebp + (-0x1C); /* 0x36149980: lea ecx, [ebp - 0x1c] */ 12219 RECOMP_ICALL(0x36008EF0u); /* 0x36149983: call 0x36008ef0 */ /* not lifted */ 12220 RECOMP_FLAGS_IN(); 12221 PUSH32(esp, 0x36184170u); /* 0x36149988: push 0x36184170 */ 12222 edx = ebp + (-0x1C); /* 0x3614998D: lea edx, [ebp - 0x1c] */ 12223 PUSH32(esp, edx); /* 0x36149990: push edx */ 12224 RECOMP_ICALL(0x3615FD70u); /* 0x36149991: call 0x3615fd70 */ /* not lifted */ 12225 RECOMP_FLAGS_IN(); 12226 L_36149996: 12227 eax = MEM32(eax + 0x4); /* 0x36149996: mov eax, dword ptr [eax + 4] */ 12228 /* test eax, eax */ /* 0x36149999: test eax, eax */ 12229 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12230 _cf = 0; 12231 _flag_k = FK_TEST; 12232 if (TEST_NZ(_flag_a, _flag_b)) goto L_361499A2; /* 0x3614999B: jne 0x361499a2 */ 12233 L_3614999D: 12234 eax = MEM32(0x3616F10C); /* 0x3614999D: mov eax, dword ptr [0x3616f10c] */ 12235 L_361499A2: 12236 ecx = MEM32(ebp + (-0x10)); /* 0x361499A2: mov ecx, dword ptr [ebp - 0x10] */ 12237 fp_push(*(float*)&MEM32(ecx)); /* 0x361499A5: fld dword ptr [ecx] */ 12238 edx = MEM32(ebp + (-0x18)); /* 0x361499A7: mov edx, dword ptr [ebp - 0x18] */ 12239 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12241 esp = esp - 8; /* 0x361499AA: sub esp, 8 */ 12242 _flag_k = FK_CMP; 12243 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499AD: fstp qword ptr [esp] */ 12244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12246 esp = esp - 8; /* 0x361499B0: sub esp, 8 */ 12247 _flag_k = FK_CMP; 12248 fp_push(*(float*)&MEM32(edx)); /* 0x361499B3: fld dword ptr [edx] */ 12249 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499B5: fstp qword ptr [esp] */ 12250 PUSH32(esp, eax); /* 0x361499B8: push eax */ 12251 PUSH32(esp, 0x362E746Cu); /* 0x361499B9: push 0x362e746c */ 12252 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361499BE: call dword ptr [0x3616f18c] */ 12253 RECOMP_FLAGS_IN(); 12254 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 12255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12256 esp = esp + 0x18u; /* 0x361499C4: add esp, 0x18 */ 12257 _flag_k = FK_ADD; 12258 PUSH32(esp, 0x362E7700u); /* 0x361499C7: push 0x362e7700 */ 12259 ecx = ebp + (-0x1C); /* 0x361499CC: lea ecx, [ebp - 0x1c] */ 12260 RECOMP_ICALL(0x36008EF0u); /* 0x361499CF: call 0x36008ef0 */ /* not lifted */ 12261 RECOMP_FLAGS_IN(); 12262 PUSH32(esp, 0x36184170u); /* 0x361499D4: push 0x36184170 */ 12263 eax = ebp + (-0x1C); /* 0x361499D9: lea eax, [ebp - 0x1c] */ 12264 PUSH32(esp, eax); /* 0x361499DC: push eax */ 12265 RECOMP_ICALL(0x3615FD70u); /* 0x361499DD: call 0x3615fd70 */ /* not lifted */ 12266 RECOMP_FLAGS_IN(); 12267 ecx = MEM32(ebp + (-0x10)); /* 0x361499E2: mov ecx, dword ptr [ebp - 0x10] */ 12268 fp_push(*(float*)&MEM32(ecx)); /* 0x361499E5: fld dword ptr [ecx] */ 12269 edx = MEM32(ebp + (-0x14)); /* 0x361499E7: mov edx, dword ptr [ebp - 0x14] */ 12270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12272 esp = esp - 8; /* 0x361499EA: sub esp, 8 */ 12273 _flag_k = FK_CMP; 12274 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499ED: fstp qword ptr [esp] */ 12275 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12277 esp = esp - 8; /* 0x361499F0: sub esp, 8 */ 12278 _flag_k = FK_CMP; 12279 fp_push(*(float*)&MEM32(edx)); /* 0x361499F3: fld dword ptr [edx] */ 12280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12282 esp = esp - 8; /* 0x361499F5: sub esp, 8 */ 12283 _flag_k = FK_CMP; 12284 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x361499F8: fstp qword ptr [esp + 8] */ 12285 fp_push(*(float*)&MEM32(esi)); /* 0x361499FC: fld dword ptr [esi] */ 12286 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499FE: fstp qword ptr [esp] */ 12287 PUSH32(esp, 0x362E7424u); /* 0x36149A01: push 0x362e7424 */ 12288 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149A06: call dword ptr [0x3616f18c] */ 12289 RECOMP_FLAGS_IN(); 12290 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 12291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12292 esp = esp + 0x1Cu; /* 0x36149A0C: add esp, 0x1c */ 12293 _flag_k = FK_ADD; 12294 PUSH32(esp, 0x362E7700u); /* 0x36149A0F: push 0x362e7700 */ 12295 ecx = ebp + (-0x1C); /* 0x36149A14: lea ecx, [ebp - 0x1c] */ 12296 RECOMP_ICALL(0x36008EF0u); /* 0x36149A17: call 0x36008ef0 */ /* not lifted */ 12297 RECOMP_FLAGS_IN(); 12298 PUSH32(esp, 0x36184170u); /* 0x36149A1C: push 0x36184170 */ 12299 eax = ebp + (-0x1C); /* 0x36149A21: lea eax, [ebp - 0x1c] */ 12300 PUSH32(esp, eax); /* 0x36149A24: push eax */ 12301 RECOMP_ICALL(0x3615FD70u); /* 0x36149A25: call 0x3615fd70 */ /* not lifted */ 12302 RECOMP_FLAGS_IN(); 12303 /* nop */ /* 0x36149A2A: nop */ 12304 /* nop */ /* 0x36149A2B: nop */ 12305 /* nop */ /* 0x36149A2C: nop */ 12306 /* nop */ /* 0x36149A2D: nop */ 12307 /* nop */ /* 0x36149A2E: nop */ 12308 /* nop */ /* 0x36149A2F: nop */ 12309 PUSH32(esp, ebp); /* 0x36149A30: push ebp */ 12310 ebp = esp; /* 0x36149A31: mov ebp, esp */ 12311 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12313 esp = esp - 8; /* 0x36149A33: sub esp, 8 */ 12314 _flag_k = FK_CMP; 12315 eax = ecx; /* 0x36149A36: mov eax, ecx */ 12316 ecx = MEM32(ebp + 0x8); /* 0x36149A38: mov ecx, dword ptr [ebp + 8] */ 12317 /* cmp eax, ecx */ /* 0x36149A3B: cmp eax, ecx */ 12318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12320 _flag_k = FK_CMP; 12321 PUSH32(esp, ebx); /* 0x36149A3D: push ebx */ 12322 PUSH32(esp, esi); /* 0x36149A3E: push esi */ 12323 PUSH32(esp, edi); /* 0x36149A3F: push edi */ 12324 MEM32(ebp + (-0x4)) = eax; /* 0x36149A40: mov dword ptr [ebp - 4], eax */ 12325 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE9; /* 0x36149A43: je 0x36149be9 */ 12326 L_36149A49: 12327 esi = MEM32(ecx + 0x4); /* 0x36149A49: mov esi, dword ptr [ecx + 4] */ 12328 /* test esi, esi */ /* 0x36149A4C: test esi, esi */ 12329 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 12330 _cf = 0; 12331 _flag_k = FK_TEST; 12332 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A54; /* 0x36149A4E: jne 0x36149a54 */ 12333 L_36149A50: 12334 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12335 ebx = 0; /* 0x36149A50: xor ebx, ebx */ 12336 _cf = 0; 12337 _flag_k = FK_TEST; 12338 goto L_36149A5C; /* 0x36149A52: jmp 0x36149a5c */ 12339 L_36149A54: 12340 ebx = MEM32(ecx + 0x8); /* 0x36149A54: mov ebx, dword ptr [ecx + 8] */ 12341 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 12342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12343 ebx = ebx - esi; /* 0x36149A57: sub ebx, esi */ 12344 _flag_k = FK_CMP; 12345 if (3u) _cf = (((ebx) >> 2) & 1u); /* 0x36149A59: sar ebx, 3 */ 12346 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12347 ebx = (uint32_t)((int32_t)ebx >> 3u); 12348 L_36149A5C: 12349 edx = MEM32(eax + 0x4); /* 0x36149A5C: mov edx, dword ptr [eax + 4] */ 12350 /* test edx, edx */ /* 0x36149A5F: test edx, edx */ 12351 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12352 _cf = 0; 12353 _flag_k = FK_TEST; 12354 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A67; /* 0x36149A61: jne 0x36149a67 */ 12355 L_36149A63: 12356 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12357 edi = 0; /* 0x36149A63: xor edi, edi */ 12358 _cf = 0; 12359 _flag_k = FK_TEST; 12360 goto L_36149A6F; /* 0x36149A65: jmp 0x36149a6f */ 12361 L_36149A67: 12362 edi = MEM32(eax + 0x8); /* 0x36149A67: mov edi, dword ptr [eax + 8] */ 12363 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 12364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12365 edi = edi - edx; /* 0x36149A6A: sub edi, edx */ 12366 _flag_k = FK_CMP; 12367 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149A6C: sar edi, 3 */ 12368 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12369 edi = (uint32_t)((int32_t)edi >> 3u); 12370 L_36149A6F: 12371 /* cmp ebx, edi */ /* 0x36149A6F: cmp ebx, edi */ 12372 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 12373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12374 _flag_k = FK_CMP; 12375 if (CMP_A(_flag_a, _flag_b)) goto L_36149AC9; /* 0x36149A71: ja 0x36149ac9 */ 12376 L_36149A73: 12377 ebx = MEM32(ecx + 0x8); /* 0x36149A73: mov ebx, dword ptr [ecx + 8] */ 12378 /* cmp esi, ebx */ /* 0x36149A76: cmp esi, ebx */ 12379 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 12380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12381 _flag_k = FK_CMP; 12382 edi = edx; /* 0x36149A78: mov edi, edx */ 12383 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149A94; /* 0x36149A7A: je 0x36149a94 */ 12384 L_36149A7C: 12385 PUSH32(esp, esi); /* 0x36149A7C: push esi */ 12386 ecx = edi; /* 0x36149A7D: mov ecx, edi */ 12387 RECOMP_ICALL(0x3614A420u); /* 0x36149A7F: call 0x3614a420 */ /* not lifted */ 12388 RECOMP_FLAGS_IN(); 12389 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 12390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12391 esi = esi + 8; /* 0x36149A84: add esi, 8 */ 12392 _flag_k = FK_ADD; 12393 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 12394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12395 edi = edi + 8; /* 0x36149A87: add edi, 8 */ 12396 _flag_k = FK_ADD; 12397 /* cmp esi, ebx */ /* 0x36149A8A: cmp esi, ebx */ 12398 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 12399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12400 _flag_k = FK_CMP; 12401 RECOMP_BACKEDGE(); 12402 if (CMP_NE(_flag_a, _flag_b)) goto L_36149A7C; /* 0x36149A8C: jne 0x36149a7c */ 12403 L_36149A8E: 12404 ecx = MEM32(ebp + 0x8); /* 0x36149A8E: mov ecx, dword ptr [ebp + 8] */ 12405 eax = MEM32(ebp + (-0x4)); /* 0x36149A91: mov eax, dword ptr [ebp - 4] */ 12406 L_36149A94: 12407 esi = MEM32(ecx + 0x4); /* 0x36149A94: mov esi, dword ptr [ecx + 4] */ 12408 /* test esi, esi */ /* 0x36149A97: test esi, esi */ 12409 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 12410 _cf = 0; 12411 _flag_k = FK_TEST; 12412 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AAF; /* 0x36149A99: jne 0x36149aaf */ 12413 L_36149A9B: 12414 ecx = MEM32(eax + 0x4); /* 0x36149A9B: mov ecx, dword ptr [eax + 4] */ 12415 edi = POP32_VAL(esp); /* 0x36149A9E: pop edi */ 12416 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12417 edx = 0; /* 0x36149A9F: xor edx, edx */ 12418 _cf = 0; 12419 _flag_k = FK_TEST; 12420 edx = ecx + edx * 8; /* 0x36149AA1: lea edx, [ecx + edx*8] */ 12421 esi = POP32_VAL(esp); /* 0x36149AA4: pop esi */ 12422 MEM32(eax + 0x8) = edx; /* 0x36149AA5: mov dword ptr [eax + 8], edx */ 12423 ebx = POP32_VAL(esp); /* 0x36149AA8: pop ebx */ 12424 esp = ebp; /* 0x36149AA9: mov esp, ebp */ 12425 ebp = POP32_VAL(esp); /* 0x36149AAB: pop ebp */ 12426 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AAC: ret 4 */ 12427 L_36149AAF: 12428 edx = MEM32(ecx + 0x8); /* 0x36149AAF: mov edx, dword ptr [ecx + 8] */ 12429 ecx = MEM32(eax + 0x4); /* 0x36149AB2: mov ecx, dword ptr [eax + 4] */ 12430 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 12431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12432 edx = edx - esi; /* 0x36149AB5: sub edx, esi */ 12433 _flag_k = FK_CMP; 12434 edi = POP32_VAL(esp); /* 0x36149AB7: pop edi */ 12435 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149AB8: sar edx, 3 */ 12436 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12437 edx = (uint32_t)((int32_t)edx >> 3u); 12438 edx = ecx + edx * 8; /* 0x36149ABB: lea edx, [ecx + edx*8] */ 12439 esi = POP32_VAL(esp); /* 0x36149ABE: pop esi */ 12440 MEM32(eax + 0x8) = edx; /* 0x36149ABF: mov dword ptr [eax + 8], edx */ 12441 ebx = POP32_VAL(esp); /* 0x36149AC2: pop ebx */ 12442 esp = ebp; /* 0x36149AC3: mov esp, ebp */ 12443 ebp = POP32_VAL(esp); /* 0x36149AC5: pop ebp */ 12444 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AC6: ret 4 */ 12445 L_36149AC9: 12446 /* test esi, esi */ /* 0x36149AC9: test esi, esi */ 12447 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 12448 _cf = 0; 12449 _flag_k = FK_TEST; 12450 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AD1; /* 0x36149ACB: jne 0x36149ad1 */ 12451 L_36149ACD: 12452 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12453 ecx = 0; /* 0x36149ACD: xor ecx, ecx */ 12454 _cf = 0; 12455 _flag_k = FK_TEST; 12456 goto L_36149AD9; /* 0x36149ACF: jmp 0x36149ad9 */ 12457 L_36149AD1: 12458 ecx = MEM32(ecx + 0x8); /* 0x36149AD1: mov ecx, dword ptr [ecx + 8] */ 12459 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 12460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12461 ecx = ecx - esi; /* 0x36149AD4: sub ecx, esi */ 12462 _flag_k = FK_CMP; 12463 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AD6: sar ecx, 3 */ 12464 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12465 ecx = (uint32_t)((int32_t)ecx >> 3u); 12466 L_36149AD9: 12467 /* test edx, edx */ /* 0x36149AD9: test edx, edx */ 12468 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12469 _cf = 0; 12470 _flag_k = FK_TEST; 12471 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AE1; /* 0x36149ADB: jne 0x36149ae1 */ 12472 L_36149ADD: 12473 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12474 edi = 0; /* 0x36149ADD: xor edi, edi */ 12475 _cf = 0; 12476 _flag_k = FK_TEST; 12477 goto L_36149AE9; /* 0x36149ADF: jmp 0x36149ae9 */ 12478 L_36149AE1: 12479 edi = MEM32(eax + 0xC); /* 0x36149AE1: mov edi, dword ptr [eax + 0xc] */ 12480 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 12481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12482 edi = edi - edx; /* 0x36149AE4: sub edi, edx */ 12483 _flag_k = FK_CMP; 12484 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149AE6: sar edi, 3 */ 12485 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12486 edi = (uint32_t)((int32_t)edi >> 3u); 12487 L_36149AE9: 12488 /* cmp ecx, edi */ /* 0x36149AE9: cmp ecx, edi */ 12489 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 12490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12491 _flag_k = FK_CMP; 12492 if (CMP_A(_flag_a, _flag_b)) goto L_36149B7F; /* 0x36149AEB: ja 0x36149b7f */ 12493 L_36149AF1: 12494 /* test edx, edx */ /* 0x36149AF1: test edx, edx */ 12495 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12496 _cf = 0; 12497 _flag_k = FK_TEST; 12498 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AF9; /* 0x36149AF3: jne 0x36149af9 */ 12499 L_36149AF5: 12500 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12501 ecx = 0; /* 0x36149AF5: xor ecx, ecx */ 12502 _cf = 0; 12503 _flag_k = FK_TEST; 12504 goto L_36149B01; /* 0x36149AF7: jmp 0x36149b01 */ 12505 L_36149AF9: 12506 ecx = MEM32(eax + 0x8); /* 0x36149AF9: mov ecx, dword ptr [eax + 8] */ 12507 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12509 ecx = ecx - edx; /* 0x36149AFC: sub ecx, edx */ 12510 _flag_k = FK_CMP; 12511 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AFE: sar ecx, 3 */ 12512 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12513 ecx = (uint32_t)((int32_t)ecx >> 3u); 12514 L_36149B01: 12515 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 12516 eax = esi; /* 0x36149B04: mov eax, esi */ 12517 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 12518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12520 _flag_k = FK_CMP; 12521 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 12522 L_36149B0A: 12523 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 12524 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 12525 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 12526 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 12527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 12528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12529 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 12530 _flag_k = FK_ADD; 12531 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 12532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12533 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 12534 _flag_k = FK_ADD; 12535 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 12536 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12538 _flag_k = FK_CMP; 12539 RECOMP_BACKEDGE(); 12540 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 12541 L_36149B1E: 12542 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 12543 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 12544 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 12545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 12546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12547 _flag_k = FK_CMP; 12548 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 12549 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 12550 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 12551 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 12552 L_36149B30: 12553 PUSH32(esp, esi); /* 0x36149B30: push esi */ 12554 PUSH32(esp, edi); /* 0x36149B31: push edi */ 12555 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 12556 RECOMP_FLAGS_IN(); 12557 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 12558 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12559 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 12560 _flag_k = FK_ADD; 12561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12563 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 12564 _flag_k = FK_ADD; 12565 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 12566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12567 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 12568 _flag_k = FK_ADD; 12569 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 12570 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 12571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12572 _flag_k = FK_CMP; 12573 RECOMP_BACKEDGE(); 12574 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 12575 L_36149B44: 12576 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 12577 L_36149B47: 12578 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 12579 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 12580 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 12581 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12582 _cf = 0; 12583 _flag_k = FK_TEST; 12584 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 12585 L_36149B51: 12586 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 12587 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 12588 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12589 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 12590 _cf = 0; 12591 _flag_k = FK_TEST; 12592 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 12593 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 12594 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 12595 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 12596 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 12597 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 12598 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 12599 L_36149B65: 12600 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 12601 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12603 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 12604 _flag_k = FK_CMP; 12605 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 12606 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 12607 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 12608 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12609 ecx = (uint32_t)((int32_t)ecx >> 3u); 12610 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 12611 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 12612 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 12613 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 12614 esp = ebp; /* 0x36149B79: mov esp, ebp */ 12615 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 12616 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 12617 L_36149B7F: 12618 PUSH32(esp, edx); /* 0x36149B7F: push edx */ 12619 MEM32(ebp + (-0x8)) = edx; /* 0x36149B80: mov dword ptr [ebp - 8], edx */ 12620 RECOMP_ICALL(0x3615FCC4u); /* 0x36149B83: call 0x3615fcc4 */ /* not lifted */ 12621 RECOMP_FLAGS_IN(); 12622 esi = MEM32(ebp + 0x8); /* 0x36149B88: mov esi, dword ptr [ebp + 8] */ 12623 ecx = MEM32(esi + 0x4); /* 0x36149B8B: mov ecx, dword ptr [esi + 4] */ 12624 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12626 esp = esp + 4; /* 0x36149B8E: add esp, 4 */ 12627 _flag_k = FK_ADD; 12628 /* test ecx, ecx */ /* 0x36149B91: test ecx, ecx */ 12629 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12630 _cf = 0; 12631 _flag_k = FK_TEST; 12632 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B99; /* 0x36149B93: jne 0x36149b99 */ 12633 L_36149B95: 12634 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12635 eax = 0; /* 0x36149B95: xor eax, eax */ 12636 _cf = 0; 12637 _flag_k = FK_TEST; 12638 goto L_36149BA1; /* 0x36149B97: jmp 0x36149ba1 */ 12639 L_36149B99: 12640 eax = MEM32(esi + 0x8); /* 0x36149B99: mov eax, dword ptr [esi + 8] */ 12641 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12643 eax = eax - ecx; /* 0x36149B9C: sub eax, ecx */ 12644 _flag_k = FK_CMP; 12645 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36149B9E: sar eax, 3 */ 12646 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12647 eax = (uint32_t)((int32_t)eax >> 3u); 12648 L_36149BA1: 12649 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 12650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12651 _cf = 0; 12652 _flag_k = FK_TEST; 12653 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 12654 L_36149BA5: 12655 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12656 eax = 0; /* 0x36149BA5: xor eax, eax */ 12657 _cf = 0; 12658 _flag_k = FK_TEST; 12659 L_36149BA7: 12660 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 12661 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 12662 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 12663 RECOMP_FLAGS_IN(); 12664 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 12665 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 12666 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 12667 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 12668 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 12669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12671 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 12672 _flag_k = FK_ADD; 12673 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 12674 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 12675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12676 _flag_k = FK_CMP; 12677 edi = eax; /* 0x36149BC8: mov edi, eax */ 12678 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 12679 L_36149BCC: 12680 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 12681 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 12682 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 12683 RECOMP_FLAGS_IN(); 12684 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 12685 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12686 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 12687 _flag_k = FK_ADD; 12688 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12690 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 12691 _flag_k = FK_ADD; 12692 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 12693 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12694 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 12695 _flag_k = FK_ADD; 12696 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 12697 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 12698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12699 _flag_k = FK_CMP; 12700 RECOMP_BACKEDGE(); 12701 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 12702 L_36149BE0: 12703 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 12704 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 12705 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 12706 L_36149BE9: 12707 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 12708 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 12709 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 12710 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 12711 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 12712 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 12713 RECOMP_REGS_OUT(); 12714 } 12715 12716 void sub_36148EF2(void) { 12717 int _fpu_cmp = 0; 12718 uint32_t _cf = 0; 12719 int _df = 1; 12720 uint32_t _flag_k = FK_NONE; 12721 uint32_t _flag_a = 0, _flag_b = 0; 12722 uint32_t _itail_tgt = 0; 12723 RECOMP_REGS_LOCALS 12724 RECOMP_ENTER(0x36148EF2u); 12725 12726 L_36148EF2: 12727 /* cmp LO16(ecx), 0x400u */ /* 0x36148EF2: cmp cx, 0x400 */ 12728 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 12729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12730 _flag_k = FK_NARROW(FK_CMP, 16); 12731 if (CMP_A(_flag_a, _flag_b)) goto L_36149950; /* 0x36148EF7: ja 0x36149950 */ 12732 L_36148EFD: 12733 /* cmp LO16(eax), 0x400u */ /* 0x36148EFD: cmp ax, 0x400 */ 12734 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 12735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12736 _flag_k = FK_NARROW(FK_CMP, 16); 12737 if (CMP_A(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F01: ja 0x36149950 */ 12738 L_36148F07: 12739 /* cmp LO16(ecx), LO16(eax) */ /* 0x36148F07: cmp cx, ax */ 12740 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 12741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12742 _flag_k = FK_NARROW(FK_CMP, 16); 12743 if (CMP_A(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F0A: ja 0x36149950 */ 12744 L_36148F10: 12745 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F10: test cx, cx */ 12746 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 12747 _cf = 0; 12748 _flag_k = FK_NARROW(FK_TEST, 16); 12749 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148F20; /* 0x36148F13: jne 0x36148f20 */ 12750 L_36148F15: 12751 /* test LO16(eax), LO16(eax) */ /* 0x36148F15: test ax, ax */ 12752 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 12753 _cf = 0; 12754 _flag_k = FK_NARROW(FK_TEST, 16); 12755 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F18: jne 0x36149950 */ 12756 L_36148F1E: 12757 goto L_36148F29; /* 0x36148F1E: jmp 0x36148f29 */ 12758 L_36148F20: 12759 /* test LO16(eax), LO16(eax) */ /* 0x36148F20: test ax, ax */ 12760 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 12761 _cf = 0; 12762 _flag_k = FK_NARROW(FK_TEST, 16); 12763 if (TEST_Z(_flag_a, _flag_b)) goto L_36149950; /* 0x36148F23: je 0x36149950 */ 12764 L_36148F29: 12765 edx = MEM32(ebx + 0x60); /* 0x36148F29: mov edx, dword ptr [ebx + 0x60] */ 12766 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 12767 ecx = ecx & 0xFFFFu; /* 0x36148F2C: and ecx, 0xffff */ 12768 _cf = 0; 12769 _flag_k = FK_TEST; 12770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 12771 eax = eax & 0xFFFFu; /* 0x36148F32: and eax, 0xffff */ 12772 _cf = 0; 12773 _flag_k = FK_TEST; 12774 MEM32(ebx + 0x34) = ecx; /* 0x36148F37: mov dword ptr [ebx + 0x34], ecx */ 12775 MEM32(ebx + 0x38) = eax; /* 0x36148F3A: mov dword ptr [ebx + 0x38], eax */ 12776 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12777 eax = 0; /* 0x36148F3D: xor eax, eax */ 12778 _cf = 0; 12779 _flag_k = FK_TEST; 12780 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12781 ecx = 0; /* 0x36148F3F: xor ecx, ecx */ 12782 _cf = 0; 12783 _flag_k = FK_TEST; 12784 /* cmp edx, 6 */ /* 0x36148F41: cmp edx, 6 */ 12785 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(6); 12786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12787 _flag_k = FK_CMP; 12788 MEM32(ebp + (-0x60)) = eax; /* 0x36148F44: mov dword ptr [ebp - 0x60], eax */ 12789 MEM32(ebp + (-0x68)) = ecx; /* 0x36148F47: mov dword ptr [ebp - 0x68], ecx */ 12790 if (CMP_L(_flag_a, _flag_b)) goto L_36148F99; /* 0x36148F4A: jl 0x36148f99 */ 12791 L_36148F4C: 12792 edx = ebp + (-0x60); /* 0x36148F4C: lea edx, [ebp - 0x60] */ 12793 PUSH32(esp, edx); /* 0x36148F4F: push edx */ 12794 ecx = edi; /* 0x36148F50: mov ecx, edi */ 12795 RECOMP_ICALL(esi); /* 0x36148F52: call esi */ 12796 RECOMP_FLAGS_IN(); 12797 ecx = ebp + (-0x68); /* 0x36148F54: lea ecx, [ebp - 0x68] */ 12798 PUSH32(esp, ecx); /* 0x36148F57: push ecx */ 12799 ecx = eax; /* 0x36148F58: mov ecx, eax */ 12800 RECOMP_ICALL(esi); /* 0x36148F5A: call esi */ 12801 RECOMP_FLAGS_IN(); 12802 eax = MEM32(ebp + (-0x60)); /* 0x36148F5C: mov eax, dword ptr [ebp - 0x60] */ 12803 /* cmp LO16(eax), 0x400u */ /* 0x36148F5F: cmp ax, 0x400 */ 12804 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 12805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12806 _flag_k = FK_NARROW(FK_CMP, 16); 12807 ecx = MEM32(ebp + (-0x68)); /* 0x36148F63: mov ecx, dword ptr [ebp - 0x68] */ 12808 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F66: ja 0x3614990a */ 12809 L_36148F6C: 12810 /* cmp LO16(ecx), 0x400u */ /* 0x36148F6C: cmp cx, 0x400 */ 12811 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 12812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12813 _flag_k = FK_NARROW(FK_CMP, 16); 12814 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F71: ja 0x3614990a */ 12815 L_36148F77: 12816 /* cmp LO16(eax), LO16(ecx) */ /* 0x36148F77: cmp ax, cx */ 12817 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 12818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12819 _flag_k = FK_NARROW(FK_CMP, 16); 12820 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F7A: ja 0x3614990a */ 12821 L_36148F80: 12822 /* test LO16(eax), LO16(eax) */ /* 0x36148F80: test ax, ax */ 12823 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 12824 _cf = 0; 12825 _flag_k = FK_NARROW(FK_TEST, 16); 12826 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148F90; /* 0x36148F83: jne 0x36148f90 */ 12827 L_36148F85: 12828 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F85: test cx, cx */ 12829 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 12830 _cf = 0; 12831 _flag_k = FK_NARROW(FK_TEST, 16); 12832 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F88: jne 0x3614990a */ 12833 L_36148F8E: 12834 goto L_36148F99; /* 0x36148F8E: jmp 0x36148f99 */ 12835 L_36148F90: 12836 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F90: test cx, cx */ 12837 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 12838 _cf = 0; 12839 _flag_k = FK_NARROW(FK_TEST, 16); 12840 if (TEST_Z(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F93: je 0x3614990a */ 12841 L_36148F99: 12842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 12843 eax = eax & 0xFFFFu; /* 0x36148F99: and eax, 0xffff */ 12844 _cf = 0; 12845 _flag_k = FK_TEST; 12846 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 12847 ecx = ecx & 0xFFFFu; /* 0x36148F9E: and ecx, 0xffff */ 12848 _cf = 0; 12849 _flag_k = FK_TEST; 12850 edx = ebp + (-0x5C); /* 0x36148FA4: lea edx, [ebp - 0x5c] */ 12851 MEM32(ebx + 0x3C) = eax; /* 0x36148FA7: mov dword ptr [ebx + 0x3c], eax */ 12852 PUSH32(esp, edx); /* 0x36148FAA: push edx */ 12853 eax = ebp + (-0x6C); /* 0x36148FAB: lea eax, [ebp - 0x6c] */ 12854 MEM32(ebx + 0x40) = ecx; /* 0x36148FAE: mov dword ptr [ebx + 0x40], ecx */ 12855 PUSH32(esp, eax); /* 0x36148FB1: push eax */ 12856 ecx = edi; /* 0x36148FB2: mov ecx, edi */ 12857 MEM32(ebp + (-0x84)) = 0; /* 0x36148FB4: mov dword ptr [ebp - 0x84], 0 */ 12858 MEM32(ebp + (-0x80)) = 1; /* 0x36148FBE: mov dword ptr [ebp - 0x80], 1 */ 12859 MEM32(ebp + (-0x7C)) = 2; /* 0x36148FC5: mov dword ptr [ebp - 0x7c], 2 */ 12860 MEM32(ebp + (-0x78)) = 3; /* 0x36148FCC: mov dword ptr [ebp - 0x78], 3 */ 12861 MEM32(ebp + (-0x74)) = 4; /* 0x36148FD3: mov dword ptr [ebp - 0x74], 4 */ 12862 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FDA: call dword ptr [0x3616fae0] */ 12863 RECOMP_FLAGS_IN(); 12864 ecx = eax; /* 0x36148FE0: mov ecx, eax */ 12865 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36148FE2: call dword ptr [0x3616fa8c] */ 12866 RECOMP_FLAGS_IN(); 12867 ecx = ebp + (-0x70); /* 0x36148FE8: lea ecx, [ebp - 0x70] */ 12868 PUSH32(esp, ecx); /* 0x36148FEB: push ecx */ 12869 ecx = eax; /* 0x36148FEC: mov ecx, eax */ 12870 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FEE: call dword ptr [0x3616fae0] */ 12871 RECOMP_FLAGS_IN(); 12872 edx = ebp + (-0x48); /* 0x36148FF4: lea edx, [ebp - 0x48] */ 12873 PUSH32(esp, edx); /* 0x36148FF7: push edx */ 12874 ecx = eax; /* 0x36148FF8: mov ecx, eax */ 12875 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FFA: call dword ptr [0x3616fae0] */ 12876 RECOMP_FLAGS_IN(); 12877 eax = MEM32(ebp + (-0x6C)); /* 0x36149000: mov eax, dword ptr [ebp - 0x6c] */ 12878 /* cmp LO8(eax), 0x64u */ /* 0x36149003: cmp al, 0x64 */ 12879 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x64u) << 24; 12880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12881 _flag_k = FK_NARROW(FK_CMP, 24); 12882 if (CMP_BE(_flag_a, _flag_b)) goto L_36149046; /* 0x36149005: jbe 0x36149046 */ 12883 L_36149007: 12884 ebx = MEM32(ebx); /* 0x36149007: mov ebx, dword ptr [ebx] */ 12885 ecx = MEM32(ebx + 0x4); /* 0x36149009: mov ecx, dword ptr [ebx + 4] */ 12886 /* test ecx, ecx */ /* 0x3614900C: test ecx, ecx */ 12887 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12888 _cf = 0; 12889 _flag_k = FK_TEST; 12890 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149016; /* 0x3614900E: jne 0x36149016 */ 12891 L_36149010: 12892 ecx = MEM32(0x3616F10C); /* 0x36149010: mov ecx, dword ptr [0x3616f10c] */ 12893 L_36149016: 12894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 12895 eax = eax & 0xFFu; /* 0x36149016: and eax, 0xff */ 12896 _cf = 0; 12897 _flag_k = FK_TEST; 12898 PUSH32(esp, eax); /* 0x3614901B: push eax */ 12899 PUSH32(esp, ecx); /* 0x3614901C: push ecx */ 12900 PUSH32(esp, 0x362E7720u); /* 0x3614901D: push 0x362e7720 */ 12901 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149022: call dword ptr [0x3616f18c] */ 12902 RECOMP_FLAGS_IN(); 12903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12905 esp = esp + 0xCu; /* 0x36149028: add esp, 0xc */ 12906 _flag_k = FK_ADD; 12907 PUSH32(esp, 0x362E7700u); /* 0x3614902B: push 0x362e7700 */ 12908 ecx = ebp + (-0x1C); /* 0x36149030: lea ecx, [ebp - 0x1c] */ 12909 RECOMP_ICALL(0x36008EF0u); /* 0x36149033: call 0x36008ef0 */ /* not lifted */ 12910 RECOMP_FLAGS_IN(); 12911 PUSH32(esp, 0x36184170u); /* 0x36149038: push 0x36184170 */ 12912 eax = ebp + (-0x1C); /* 0x3614903D: lea eax, [ebp - 0x1c] */ 12913 PUSH32(esp, eax); /* 0x36149040: push eax */ 12914 RECOMP_ICALL(0x3615FD70u); /* 0x36149041: call 0x3615fd70 */ /* not lifted */ 12915 RECOMP_FLAGS_IN(); 12916 L_36149046: 12917 ecx = MEM32(ebp + (-0x5C)); /* 0x36149046: mov ecx, dword ptr [ebp - 0x5c] */ 12918 /* cmp ecx, 0xFFFFFFFFu */ /* 0x36149049: cmp ecx, -1 */ 12919 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 12920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12921 _flag_k = FK_CMP; 12922 if (CMP_GE(_flag_a, _flag_b)) goto L_36149087; /* 0x3614904C: jge 0x36149087 */ 12923 L_3614904E: 12924 ebx = MEM32(ebx); /* 0x3614904E: mov ebx, dword ptr [ebx] */ 12925 eax = MEM32(ebx + 0x4); /* 0x36149050: mov eax, dword ptr [ebx + 4] */ 12926 /* test eax, eax */ /* 0x36149053: test eax, eax */ 12927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12928 _cf = 0; 12929 _flag_k = FK_TEST; 12930 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614905C; /* 0x36149055: jne 0x3614905c */ 12931 L_36149057: 12932 eax = MEM32(0x3616F10C); /* 0x36149057: mov eax, dword ptr [0x3616f10c] */ 12933 L_3614905C: 12934 PUSH32(esp, ecx); /* 0x3614905C: push ecx */ 12935 PUSH32(esp, eax); /* 0x3614905D: push eax */ 12936 PUSH32(esp, 0x362E76ACu); /* 0x3614905E: push 0x362e76ac */ 12937 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149063: call dword ptr [0x3616f18c] */ 12938 RECOMP_FLAGS_IN(); 12939 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12940 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12941 esp = esp + 0xCu; /* 0x36149069: add esp, 0xc */ 12942 _flag_k = FK_ADD; 12943 PUSH32(esp, 0x362E7700u); /* 0x3614906C: push 0x362e7700 */ 12944 ecx = ebp + (-0x1C); /* 0x36149071: lea ecx, [ebp - 0x1c] */ 12945 RECOMP_ICALL(0x36008EF0u); /* 0x36149074: call 0x36008ef0 */ /* not lifted */ 12946 RECOMP_FLAGS_IN(); 12947 PUSH32(esp, 0x36184170u); /* 0x36149079: push 0x36184170 */ 12948 ecx = ebp + (-0x1C); /* 0x3614907E: lea ecx, [ebp - 0x1c] */ 12949 PUSH32(esp, ecx); /* 0x36149081: push ecx */ 12950 RECOMP_ICALL(0x3615FD70u); /* 0x36149082: call 0x3615fd70 */ /* not lifted */ 12951 RECOMP_FLAGS_IN(); 12952 L_36149087: 12953 ecx = MEM32(ebp + (-0x70)); /* 0x36149087: mov ecx, dword ptr [ebp - 0x70] */ 12954 /* cmp LO8(ecx), 5 */ /* 0x3614908A: cmp cl, 5 */ 12955 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(5) << 24; 12956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12957 _flag_k = FK_NARROW(FK_CMP, 24); 12958 if (CMP_B(_flag_a, _flag_b)) goto L_361490D0; /* 0x3614908D: jb 0x361490d0 */ 12959 L_3614908F: 12960 ebx = MEM32(ebx); /* 0x3614908F: mov ebx, dword ptr [ebx] */ 12961 eax = MEM32(ebx + 0x4); /* 0x36149091: mov eax, dword ptr [ebx + 4] */ 12962 /* test eax, eax */ /* 0x36149094: test eax, eax */ 12963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12964 _cf = 0; 12965 _flag_k = FK_TEST; 12966 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614909D; /* 0x36149096: jne 0x3614909d */ 12967 L_36149098: 12968 eax = MEM32(0x3616F10C); /* 0x36149098: mov eax, dword ptr [0x3616f10c] */ 12969 L_3614909D: 12970 PUSH32(esp, 5); /* 0x3614909D: push 5 */ 12971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 12972 ecx = ecx & 0xFFu; /* 0x3614909F: and ecx, 0xff */ 12973 _cf = 0; 12974 _flag_k = FK_TEST; 12975 PUSH32(esp, ecx); /* 0x361490A5: push ecx */ 12976 PUSH32(esp, eax); /* 0x361490A6: push eax */ 12977 PUSH32(esp, 0x362E7654u); /* 0x361490A7: push 0x362e7654 */ 12978 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361490AC: call dword ptr [0x3616f18c] */ 12979 RECOMP_FLAGS_IN(); 12980 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 12981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12982 esp = esp + 0x10u; /* 0x361490B2: add esp, 0x10 */ 12983 _flag_k = FK_ADD; 12984 PUSH32(esp, 0x362E7700u); /* 0x361490B5: push 0x362e7700 */ 12985 ecx = ebp + (-0x1C); /* 0x361490BA: lea ecx, [ebp - 0x1c] */ 12986 RECOMP_ICALL(0x36008EF0u); /* 0x361490BD: call 0x36008ef0 */ /* not lifted */ 12987 RECOMP_FLAGS_IN(); 12988 PUSH32(esp, 0x36184170u); /* 0x361490C2: push 0x36184170 */ 12989 edx = ebp + (-0x1C); /* 0x361490C7: lea edx, [ebp - 0x1c] */ 12990 PUSH32(esp, edx); /* 0x361490CA: push edx */ 12991 RECOMP_ICALL(0x3615FD70u); /* 0x361490CB: call 0x3615fd70 */ /* not lifted */ 12992 RECOMP_FLAGS_IN(); 12993 L_361490D0: 12994 fp_push((double)(int32_t)MEM32(ebp + (-0x5C))); /* 0x361490D0: fild dword ptr [ebp - 0x5c] */ 12995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 12996 eax = eax & 0xFFu; /* 0x361490D3: and eax, 0xff */ 12997 _cf = 0; 12998 _flag_k = FK_TEST; 12999 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 13000 ecx = ecx & 0xFFu; /* 0x361490D8: and ecx, 0xff */ 13001 _cf = 0; 13002 _flag_k = FK_TEST; 13003 MEM32(ebx + 0x44) = eax; /* 0x361490DE: mov dword ptr [ebx + 0x44], eax */ 13004 eax = MEM32(ebp + ecx * 4 + (-0x84)); /* 0x361490E1: mov eax, dword ptr [ebp + ecx*4 - 0x84] */ 13005 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x48) = _v; } /* 0x361490E8: fstp dword ptr [ebx + 0x48] */ 13006 MEM32(ebx + 0x4C) = eax; /* 0x361490EB: mov dword ptr [ebx + 0x4c], eax */ 13007 /* cmp MEM32(ebx + 0x60), 6 */ /* 0x361490EE: cmp dword ptr [ebx + 0x60], 6 */ 13008 _flag_a = (uint32_t)(MEM32(ebx + 0x60)); _flag_b = (uint32_t)(6); 13009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13010 _flag_k = FK_CMP; 13011 MEM8(ebp + (-0x44)) = (uint8_t)(0); /* 0x361490F2: mov byte ptr [ebp - 0x44], 0 */ 13012 if (CMP_GE(_flag_a, _flag_b)) goto L_36149104; /* 0x361490F6: jge 0x36149104 */ 13013 L_361490F8: 13014 ecx = ebp + (-0x44); /* 0x361490F8: lea ecx, [ebp - 0x44] */ 13015 PUSH32(esp, ecx); /* 0x361490FB: push ecx */ 13016 ecx = edi; /* 0x361490FC: mov ecx, edi */ 13017 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x361490FE: call dword ptr [0x3616fae0] */ 13018 RECOMP_FLAGS_IN(); 13019 L_36149104: 13020 edx = ebp + (-0x64); /* 0x36149104: lea edx, [ebp - 0x64] */ 13021 PUSH32(esp, edx); /* 0x36149107: push edx */ 13022 ecx = edi; /* 0x36149108: mov ecx, edi */ 13023 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x3614910A: call dword ptr [0x3616fae0] */ 13024 RECOMP_FLAGS_IN(); 13025 ecx = ebp + (-0x4C); /* 0x36149110: lea ecx, [ebp - 0x4c] */ 13026 PUSH32(esp, ecx); /* 0x36149113: push ecx */ 13027 ecx = eax; /* 0x36149114: mov ecx, eax */ 13028 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149116: call dword ptr [0x3616fae0] */ 13029 RECOMP_FLAGS_IN(); 13030 edx = ebp + (-0x50); /* 0x3614911C: lea edx, [ebp - 0x50] */ 13031 PUSH32(esp, edx); /* 0x3614911F: push edx */ 13032 ecx = eax; /* 0x36149120: mov ecx, eax */ 13033 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149122: call dword ptr [0x3616fae0] */ 13034 RECOMP_FLAGS_IN(); 13035 SET_LO8(eax, MEM8(ebp + (-0x48))); /* 0x36149128: mov al, byte ptr [ebp - 0x48] */ 13036 /* test LO8(eax), LO8(eax) */ /* 0x3614912B: test al, al */ 13037 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13038 _cf = 0; 13039 _flag_k = FK_NARROW(FK_TEST, 24); 13040 MEM32(ebp + (-0x20)) = 0; /* 0x3614912D: mov dword ptr [ebp - 0x20], 0 */ 13041 if (TEST_Z(_flag_a, _flag_b)) goto L_36149189; /* 0x36149134: jbe 0x36149189 */ 13042 L_36149136: 13043 eax = ebp + (-0x10); /* 0x36149136: lea eax, [ebp - 0x10] */ 13044 PUSH32(esp, eax); /* 0x36149139: push eax */ 13045 PUSH32(esp, edi); /* 0x3614913A: push edi */ 13046 MEM32(ebp + (-0x10)) = 0; /* 0x3614913B: mov dword ptr [ebp - 0x10], 0 */ 13047 RECOMP_ICALL(0x360F44D0u); /* 0x36149142: call 0x360f44d0 */ /* not lifted */ 13048 RECOMP_FLAGS_IN(); 13049 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13050 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13051 esp = esp + 8; /* 0x36149147: add esp, 8 */ 13052 _flag_k = FK_ADD; 13053 ecx = ebp + (-0x14); /* 0x3614914A: lea ecx, [ebp - 0x14] */ 13054 PUSH32(esp, ecx); /* 0x3614914D: push ecx */ 13055 ecx = eax; /* 0x3614914E: mov ecx, eax */ 13056 RECOMP_ICALL(esi); /* 0x36149150: call esi */ 13057 RECOMP_FLAGS_IN(); 13058 edx = MEM32(ebp + (-0x10)); /* 0x36149152: mov edx, dword ptr [ebp - 0x10] */ 13059 eax = MEM32(ebp + (-0x14)); /* 0x36149155: mov eax, dword ptr [ebp - 0x14] */ 13060 ecx = MEM32(ebx + 0x58); /* 0x36149158: mov ecx, dword ptr [ebx + 0x58] */ 13061 MEM32(ebp + (-0x1C)) = edx; /* 0x3614915B: mov dword ptr [ebp - 0x1c], edx */ 13062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 13063 eax = eax & 0xFFFFu; /* 0x3614915E: and eax, 0xffff */ 13064 _cf = 0; 13065 _flag_k = FK_TEST; 13066 edx = ebp + (-0x1C); /* 0x36149163: lea edx, [ebp - 0x1c] */ 13067 PUSH32(esp, edx); /* 0x36149166: push edx */ 13068 MEM32(ebp + (-0x18)) = eax; /* 0x36149167: mov dword ptr [ebp - 0x18], eax */ 13069 eax = MEM32(ecx + 0x8); /* 0x3614916A: mov eax, dword ptr [ecx + 8] */ 13070 PUSH32(esp, 1); /* 0x3614916D: push 1 */ 13071 PUSH32(esp, eax); /* 0x3614916F: push eax */ 13072 RECOMP_ICALL(0x36149F30u); /* 0x36149170: call 0x36149f30 */ /* not lifted */ 13073 RECOMP_FLAGS_IN(); 13074 eax = MEM32(ebp + (-0x20)); /* 0x36149175: mov eax, dword ptr [ebp - 0x20] */ 13075 ecx = MEM32(ebp + (-0x48)); /* 0x36149178: mov ecx, dword ptr [ebp - 0x48] */ 13076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13077 eax = eax + 1; /* 0x3614917B: inc eax */ 13078 _flag_k = FK_INC; 13079 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 13080 ecx = ecx & 0xFFu; /* 0x3614917C: and ecx, 0xff */ 13081 _cf = 0; 13082 _flag_k = FK_TEST; 13083 /* cmp eax, ecx */ /* 0x36149182: cmp eax, ecx */ 13084 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13086 _flag_k = FK_CMP; 13087 MEM32(ebp + (-0x20)) = eax; /* 0x36149184: mov dword ptr [ebp - 0x20], eax */ 13088 RECOMP_BACKEDGE(); 13089 if (CMP_L(_flag_a, _flag_b)) goto L_36149136; /* 0x36149187: jl 0x36149136 */ 13090 L_36149189: 13091 SET_LO8(eax, MEM8(ebp + (-0x44))); /* 0x36149189: mov al, byte ptr [ebp - 0x44] */ 13092 /* test LO8(eax), LO8(eax) */ /* 0x3614918C: test al, al */ 13093 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13094 _cf = 0; 13095 _flag_k = FK_NARROW(FK_TEST, 24); 13096 MEM32(ebp + (-0x10)) = 0; /* 0x3614918E: mov dword ptr [ebp - 0x10], 0 */ 13097 if (TEST_Z(_flag_a, _flag_b)) goto L_361491C7; /* 0x36149195: jbe 0x361491c7 */ 13098 L_36149197: 13099 edx = ebp + (-0x14); /* 0x36149197: lea edx, [ebp - 0x14] */ 13100 PUSH32(esp, edx); /* 0x3614919A: push edx */ 13101 PUSH32(esp, edi); /* 0x3614919B: push edi */ 13102 MEM32(ebp + (-0x14)) = 0; /* 0x3614919C: mov dword ptr [ebp - 0x14], 0 */ 13103 RECOMP_ICALL(0x360F44D0u); /* 0x361491A3: call 0x360f44d0 */ /* not lifted */ 13104 RECOMP_FLAGS_IN(); 13105 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13107 esp = esp + 8; /* 0x361491A8: add esp, 8 */ 13108 _flag_k = FK_ADD; 13109 ecx = ebp + (-0x1E); /* 0x361491AB: lea ecx, [ebp - 0x1e] */ 13110 PUSH32(esp, ecx); /* 0x361491AE: push ecx */ 13111 ecx = eax; /* 0x361491AF: mov ecx, eax */ 13112 RECOMP_ICALL(esi); /* 0x361491B1: call esi */ 13113 RECOMP_FLAGS_IN(); 13114 eax = MEM32(ebp + (-0x10)); /* 0x361491B3: mov eax, dword ptr [ebp - 0x10] */ 13115 edx = MEM32(ebp + (-0x44)); /* 0x361491B6: mov edx, dword ptr [ebp - 0x44] */ 13116 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13117 eax = eax + 1; /* 0x361491B9: inc eax */ 13118 _flag_k = FK_INC; 13119 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 13120 edx = edx & 0xFFu; /* 0x361491BA: and edx, 0xff */ 13121 _cf = 0; 13122 _flag_k = FK_TEST; 13123 /* cmp eax, edx */ /* 0x361491C0: cmp eax, edx */ 13124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13126 _flag_k = FK_CMP; 13127 MEM32(ebp + (-0x10)) = eax; /* 0x361491C2: mov dword ptr [ebp - 0x10], eax */ 13128 RECOMP_BACKEDGE(); 13129 if (CMP_L(_flag_a, _flag_b)) goto L_36149197; /* 0x361491C5: jl 0x36149197 */ 13130 L_361491C7: 13131 SET_LO8(eax, MEM8(ebp + (-0x64))); /* 0x361491C7: mov al, byte ptr [ebp - 0x64] */ 13132 /* test LO8(eax), LO8(eax) */ /* 0x361491CA: test al, al */ 13133 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13134 _cf = 0; 13135 _flag_k = FK_NARROW(FK_TEST, 24); 13136 MEM32(ebp + (-0x14)) = 0; /* 0x361491CC: mov dword ptr [ebp - 0x14], 0 */ 13137 if (TEST_Z(_flag_a, _flag_b)) goto L_361494B8; /* 0x361491D3: jbe 0x361494b8 */ 13138 L_361491D9: 13139 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 13140 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 13141 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 13142 PUSH32(esp, eax); /* 0x361491E5: push eax */ 13143 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 13144 RECOMP_FLAGS_IN(); 13145 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 13146 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 13147 ecx = eax; /* 0x361491EC: mov ecx, eax */ 13148 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 13149 RECOMP_FLAGS_IN(); 13150 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 13151 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 13152 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 13153 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13155 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 13156 _flag_k = FK_CMP; 13157 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 13158 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13159 edx = (uint32_t)((int32_t)edx >> 1u); 13160 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 13161 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13163 _flag_k = FK_CMP; 13164 edi = eax; /* 0x36149200: mov edi, eax */ 13165 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 13166 L_36149208: 13167 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 13168 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 13169 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13170 _cf = 0; 13171 _flag_k = FK_TEST; 13172 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 13173 L_3614920F: 13174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13176 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 13177 _flag_k = FK_CMP; 13178 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 13179 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13180 eax = (uint32_t)((int32_t)eax >> 1u); 13181 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 13182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13184 _flag_k = FK_CMP; 13185 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 13186 L_36149218: 13187 ecx = esi; /* 0x36149218: mov ecx, esi */ 13188 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 13189 RECOMP_FLAGS_IN(); 13190 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 13191 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 13192 L_36149224: 13193 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 13194 L_3614922B: 13195 ecx = esi; /* 0x3614922B: mov ecx, esi */ 13196 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 13197 RECOMP_FLAGS_IN(); 13198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 13199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13200 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 13201 _flag_k = FK_ADD; 13202 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 13203 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 13204 L_3614923A: 13205 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13206 eax = 0; /* 0x3614923A: xor eax, eax */ 13207 _cf = 0; 13208 _flag_k = FK_TEST; 13209 L_3614923C: 13210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13212 eax = eax + eax; /* 0x3614923C: add eax, eax */ 13213 _flag_k = FK_ADD; 13214 PUSH32(esp, eax); /* 0x3614923E: push eax */ 13215 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 13216 RECOMP_FLAGS_IN(); 13217 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 13218 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13219 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13220 esp = esp + 4; /* 0x36149247: add esp, 4 */ 13221 _flag_k = FK_ADD; 13222 PUSH32(esp, eax); /* 0x3614924A: push eax */ 13223 PUSH32(esp, edi); /* 0x3614924B: push edi */ 13224 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 13225 ecx = esi; /* 0x3614924D: mov ecx, esi */ 13226 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 13227 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 13228 RECOMP_FLAGS_IN(); 13229 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 13230 PUSH32(esp, edx); /* 0x3614925A: push edx */ 13231 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 13232 PUSH32(esp, eax); /* 0x3614925D: push eax */ 13233 ecx = esi; /* 0x3614925E: mov ecx, esi */ 13234 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 13235 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 13236 RECOMP_FLAGS_IN(); 13237 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 13238 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 13239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 13240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13241 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 13242 _flag_k = FK_ADD; 13243 PUSH32(esp, eax); /* 0x36149271: push eax */ 13244 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 13245 PUSH32(esp, edi); /* 0x36149273: push edi */ 13246 ecx = esi; /* 0x36149274: mov ecx, esi */ 13247 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 13248 RECOMP_FLAGS_IN(); 13249 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 13250 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 13251 PUSH32(esp, edx); /* 0x36149281: push edx */ 13252 PUSH32(esp, eax); /* 0x36149282: push eax */ 13253 ecx = esi; /* 0x36149283: mov ecx, esi */ 13254 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 13255 RECOMP_FLAGS_IN(); 13256 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 13257 PUSH32(esp, eax); /* 0x3614928D: push eax */ 13258 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 13259 RECOMP_FLAGS_IN(); 13260 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 13261 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 13262 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 13263 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13265 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 13266 _flag_k = FK_ADD; 13267 ecx = esi; /* 0x3614929F: mov ecx, esi */ 13268 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 13269 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 13270 RECOMP_FLAGS_IN(); 13271 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 13272 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 13273 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 13274 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 13275 L_361492B8: 13276 ecx = eax; /* 0x361492B8: mov ecx, eax */ 13277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 13278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13279 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 13280 _flag_k = FK_CMP; 13281 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 13282 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13283 ecx = (uint32_t)((int32_t)ecx >> 1u); 13284 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 13285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13287 _flag_k = FK_CMP; 13288 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 13289 L_361492C3: 13290 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 13291 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 13292 PUSH32(esp, eax); /* 0x361492C7: push eax */ 13293 PUSH32(esp, edi); /* 0x361492C8: push edi */ 13294 ecx = esi; /* 0x361492C9: mov ecx, esi */ 13295 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 13296 RECOMP_FLAGS_IN(); 13297 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 13298 ecx = eax; /* 0x361492D3: mov ecx, eax */ 13299 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 13300 PUSH32(esp, edx); /* 0x361492D8: push edx */ 13301 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 13302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13303 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 13304 _flag_k = FK_CMP; 13305 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 13306 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13307 ecx = (uint32_t)((int32_t)ecx >> 1u); 13308 edx = 1; /* 0x361492DD: mov edx, 1 */ 13309 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13311 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 13312 _flag_k = FK_CMP; 13313 PUSH32(esp, edx); /* 0x361492E4: push edx */ 13314 PUSH32(esp, eax); /* 0x361492E5: push eax */ 13315 ecx = esi; /* 0x361492E6: mov ecx, esi */ 13316 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 13317 RECOMP_FLAGS_IN(); 13318 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 13319 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 13320 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13322 _flag_k = FK_CMP; 13323 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 13324 L_361492F4: 13325 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 13326 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 13327 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 13328 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13329 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 13330 _flag_k = FK_ADD; 13331 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 13332 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13334 _flag_k = FK_CMP; 13335 RECOMP_BACKEDGE(); 13336 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 13337 L_36149302: 13338 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 13339 L_36149304: 13340 PUSH32(esp, eax); /* 0x36149304: push eax */ 13341 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 13342 PUSH32(esp, eax); /* 0x36149308: push eax */ 13343 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 13344 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 13345 ecx = esi; /* 0x3614930D: mov ecx, esi */ 13346 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 13347 RECOMP_FLAGS_IN(); 13348 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 13349 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 13350 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 13351 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13353 _flag_k = FK_CMP; 13354 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 13355 L_3614931E: 13356 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 13357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 13358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13359 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 13360 _flag_k = FK_CMP; 13361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 13362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13363 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 13364 _flag_k = FK_CMP; 13365 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 13366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13368 _flag_k = FK_CMP; 13369 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 13370 RECOMP_BACKEDGE(); 13371 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 13372 L_3614932F: 13373 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 13374 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 13375 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13377 _flag_k = FK_CMP; 13378 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 13379 L_36149336: 13380 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 13381 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 13382 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 13383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13384 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 13385 _flag_k = FK_ADD; 13386 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 13387 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13389 _flag_k = FK_CMP; 13390 RECOMP_BACKEDGE(); 13391 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 13392 L_36149344: 13393 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 13394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13395 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 13396 _flag_k = FK_ADD; 13397 L_36149348: 13398 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 13399 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 13400 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 13401 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13403 edx = edx - eax; /* 0x36149351: sub edx, eax */ 13404 _flag_k = FK_CMP; 13405 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 13406 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13407 edx = (uint32_t)((int32_t)edx >> 1u); 13408 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 13409 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13411 _flag_k = FK_CMP; 13412 edi = eax; /* 0x36149358: mov edi, eax */ 13413 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 13414 L_36149360: 13415 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 13416 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 13417 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13418 _cf = 0; 13419 _flag_k = FK_TEST; 13420 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 13421 L_36149367: 13422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13424 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 13425 _flag_k = FK_CMP; 13426 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 13427 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13428 eax = (uint32_t)((int32_t)eax >> 1u); 13429 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 13430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13432 _flag_k = FK_CMP; 13433 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 13434 L_36149370: 13435 ecx = esi; /* 0x36149370: mov ecx, esi */ 13436 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 13437 RECOMP_FLAGS_IN(); 13438 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 13439 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 13440 L_3614937C: 13441 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 13442 L_36149383: 13443 ecx = esi; /* 0x36149383: mov ecx, esi */ 13444 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 13445 RECOMP_FLAGS_IN(); 13446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 13447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13448 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 13449 _flag_k = FK_ADD; 13450 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 13451 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 13452 L_36149392: 13453 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13454 eax = 0; /* 0x36149392: xor eax, eax */ 13455 _cf = 0; 13456 _flag_k = FK_TEST; 13457 L_36149394: 13458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13460 eax = eax + eax; /* 0x36149394: add eax, eax */ 13461 _flag_k = FK_ADD; 13462 PUSH32(esp, eax); /* 0x36149396: push eax */ 13463 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 13464 RECOMP_FLAGS_IN(); 13465 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 13466 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13467 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13468 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 13469 _flag_k = FK_ADD; 13470 PUSH32(esp, eax); /* 0x361493A2: push eax */ 13471 PUSH32(esp, edi); /* 0x361493A3: push edi */ 13472 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 13473 ecx = esi; /* 0x361493A5: mov ecx, esi */ 13474 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 13475 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 13476 RECOMP_FLAGS_IN(); 13477 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 13478 PUSH32(esp, edx); /* 0x361493B2: push edx */ 13479 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 13480 PUSH32(esp, eax); /* 0x361493B5: push eax */ 13481 ecx = esi; /* 0x361493B6: mov ecx, esi */ 13482 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 13483 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 13484 RECOMP_FLAGS_IN(); 13485 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 13486 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 13487 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 13488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13489 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 13490 _flag_k = FK_ADD; 13491 PUSH32(esp, eax); /* 0x361493C9: push eax */ 13492 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 13493 PUSH32(esp, edi); /* 0x361493CB: push edi */ 13494 ecx = esi; /* 0x361493CC: mov ecx, esi */ 13495 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 13496 RECOMP_FLAGS_IN(); 13497 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 13498 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 13499 PUSH32(esp, edx); /* 0x361493D9: push edx */ 13500 PUSH32(esp, eax); /* 0x361493DA: push eax */ 13501 ecx = esi; /* 0x361493DB: mov ecx, esi */ 13502 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 13503 RECOMP_FLAGS_IN(); 13504 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 13505 PUSH32(esp, eax); /* 0x361493E5: push eax */ 13506 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 13507 RECOMP_FLAGS_IN(); 13508 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 13509 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 13510 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 13511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13513 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 13514 _flag_k = FK_ADD; 13515 ecx = esi; /* 0x361493F7: mov ecx, esi */ 13516 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 13517 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 13518 RECOMP_FLAGS_IN(); 13519 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 13520 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 13521 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 13522 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 13523 L_36149410: 13524 ecx = eax; /* 0x36149410: mov ecx, eax */ 13525 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 13526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13527 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 13528 _flag_k = FK_CMP; 13529 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 13530 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13531 ecx = (uint32_t)((int32_t)ecx >> 1u); 13532 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 13533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13535 _flag_k = FK_CMP; 13536 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 13537 L_3614941B: 13538 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 13539 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 13540 PUSH32(esp, eax); /* 0x3614941F: push eax */ 13541 PUSH32(esp, edi); /* 0x36149420: push edi */ 13542 ecx = esi; /* 0x36149421: mov ecx, esi */ 13543 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 13544 RECOMP_FLAGS_IN(); 13545 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 13546 ecx = eax; /* 0x3614942B: mov ecx, eax */ 13547 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 13548 PUSH32(esp, edx); /* 0x36149430: push edx */ 13549 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 13550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13551 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 13552 _flag_k = FK_CMP; 13553 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 13554 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13555 ecx = (uint32_t)((int32_t)ecx >> 1u); 13556 edx = 1; /* 0x36149435: mov edx, 1 */ 13557 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13559 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 13560 _flag_k = FK_CMP; 13561 PUSH32(esp, edx); /* 0x3614943C: push edx */ 13562 PUSH32(esp, eax); /* 0x3614943D: push eax */ 13563 ecx = esi; /* 0x3614943E: mov ecx, esi */ 13564 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 13565 RECOMP_FLAGS_IN(); 13566 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 13567 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 13568 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13570 _flag_k = FK_CMP; 13571 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 13572 L_3614944C: 13573 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 13574 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 13575 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 13576 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13577 edi = edi + 2; /* 0x36149453: add edi, 2 */ 13578 _flag_k = FK_ADD; 13579 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 13580 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13582 _flag_k = FK_CMP; 13583 RECOMP_BACKEDGE(); 13584 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 13585 L_3614945A: 13586 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 13587 L_3614945C: 13588 PUSH32(esp, eax); /* 0x3614945C: push eax */ 13589 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 13590 PUSH32(esp, eax); /* 0x36149460: push eax */ 13591 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 13592 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 13593 ecx = esi; /* 0x36149465: mov ecx, esi */ 13594 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 13595 RECOMP_FLAGS_IN(); 13596 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 13597 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 13598 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 13599 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13601 _flag_k = FK_CMP; 13602 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 13603 L_36149476: 13604 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 13605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 13606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13607 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 13608 _flag_k = FK_CMP; 13609 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 13610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13611 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 13612 _flag_k = FK_CMP; 13613 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 13614 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13616 _flag_k = FK_CMP; 13617 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 13618 RECOMP_BACKEDGE(); 13619 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 13620 L_36149487: 13621 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 13622 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 13623 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13625 _flag_k = FK_CMP; 13626 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 13627 L_3614948E: 13628 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 13629 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 13630 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 13631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13632 edi = edi + 2; /* 0x36149495: add edi, 2 */ 13633 _flag_k = FK_ADD; 13634 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 13635 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13637 _flag_k = FK_CMP; 13638 RECOMP_BACKEDGE(); 13639 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 13640 L_3614949C: 13641 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 13642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13643 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 13644 _flag_k = FK_ADD; 13645 L_361494A0: 13646 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 13647 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 13648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13649 eax = eax + 1; /* 0x361494A6: inc eax */ 13650 _flag_k = FK_INC; 13651 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 13652 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 13653 _cf = 0; 13654 _flag_k = FK_TEST; 13655 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 13656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13658 _flag_k = FK_CMP; 13659 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 13660 RECOMP_BACKEDGE(); 13661 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 13662 L_361494B8: 13663 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 13664 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 13665 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13666 _cf = 0; 13667 _flag_k = FK_NARROW(FK_TEST, 24); 13668 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 13669 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 13670 L_361494CA: 13671 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 13672 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 13673 RECOMP_FLAGS_IN(); 13674 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 13675 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 13676 PUSH32(esp, eax); /* 0x361494DE: push eax */ 13677 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 13678 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 13679 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 13680 RECOMP_FLAGS_IN(); 13681 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 13682 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 13683 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 13684 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13686 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 13687 _flag_k = FK_CMP; 13688 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 13689 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 13690 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13691 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13692 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 13693 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13694 edx = (uint32_t)((int32_t)edx >> 3u); 13695 eax = edx; /* 0x36149501: mov eax, edx */ 13696 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 13697 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13698 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 13699 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13700 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13701 edx = edx + eax; /* 0x36149506: add edx, eax */ 13702 _flag_k = FK_ADD; 13703 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13705 esp = esp + 8; /* 0x36149508: add esp, 8 */ 13706 _flag_k = FK_ADD; 13707 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 13708 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13710 _flag_k = FK_CMP; 13711 edi = ecx; /* 0x3614950E: mov edi, ecx */ 13712 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 13713 L_36149516: 13714 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 13715 /* test eax, eax */ /* 0x36149519: test eax, eax */ 13716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13717 _cf = 0; 13718 _flag_k = FK_TEST; 13719 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 13720 L_3614951D: 13721 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13723 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 13724 _flag_k = FK_CMP; 13725 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 13726 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 13727 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13728 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13729 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 13730 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13731 edx = (uint32_t)((int32_t)edx >> 3u); 13732 ecx = edx; /* 0x36149529: mov ecx, edx */ 13733 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 13734 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13735 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 13736 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13738 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 13739 _flag_k = FK_ADD; 13740 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 13741 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13743 _flag_k = FK_CMP; 13744 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 13745 L_36149535: 13746 ecx = esi; /* 0x36149535: mov ecx, esi */ 13747 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 13748 RECOMP_FLAGS_IN(); 13749 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 13750 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 13751 L_36149541: 13752 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 13753 L_36149548: 13754 ecx = esi; /* 0x36149548: mov ecx, esi */ 13755 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 13756 RECOMP_FLAGS_IN(); 13757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 13758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13759 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 13760 _flag_k = FK_ADD; 13761 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 13762 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 13763 L_36149557: 13764 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13765 eax = 0; /* 0x36149557: xor eax, eax */ 13766 _cf = 0; 13767 _flag_k = FK_TEST; 13768 L_36149559: 13769 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 13770 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 13771 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13772 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 13773 PUSH32(esp, edx); /* 0x3614955F: push edx */ 13774 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 13775 RECOMP_FLAGS_IN(); 13776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13778 esp = esp + 4; /* 0x36149565: add esp, 4 */ 13779 _flag_k = FK_ADD; 13780 PUSH32(esp, eax); /* 0x36149568: push eax */ 13781 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 13782 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 13783 PUSH32(esp, edi); /* 0x3614956F: push edi */ 13784 PUSH32(esp, eax); /* 0x36149570: push eax */ 13785 ecx = esi; /* 0x36149571: mov ecx, esi */ 13786 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 13787 RECOMP_FLAGS_IN(); 13788 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 13789 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 13790 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 13791 PUSH32(esp, eax); /* 0x36149581: push eax */ 13792 ecx = esi; /* 0x36149582: mov ecx, esi */ 13793 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 13794 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 13795 RECOMP_FLAGS_IN(); 13796 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 13797 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 13798 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 13799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13800 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 13801 _flag_k = FK_ADD; 13802 PUSH32(esp, edx); /* 0x36149595: push edx */ 13803 PUSH32(esp, eax); /* 0x36149596: push eax */ 13804 PUSH32(esp, edi); /* 0x36149597: push edi */ 13805 ecx = esi; /* 0x36149598: mov ecx, esi */ 13806 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 13807 RECOMP_FLAGS_IN(); 13808 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 13809 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 13810 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 13811 PUSH32(esp, edx); /* 0x361495A6: push edx */ 13812 ecx = esi; /* 0x361495A7: mov ecx, esi */ 13813 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 13814 RECOMP_FLAGS_IN(); 13815 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 13816 PUSH32(esp, eax); /* 0x361495B1: push eax */ 13817 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 13818 RECOMP_FLAGS_IN(); 13819 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 13820 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 13821 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 13822 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 13823 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 13824 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13825 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13826 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 13827 _flag_k = FK_ADD; 13828 ecx = esi; /* 0x361495C9: mov ecx, esi */ 13829 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 13830 RECOMP_FLAGS_IN(); 13831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13832 eax = eax + 1; /* 0x361495D0: inc eax */ 13833 _flag_k = FK_INC; 13834 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 13835 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 13836 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 13837 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 13838 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 13839 L_361495E2: 13840 edx = ecx; /* 0x361495E2: mov edx, ecx */ 13841 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13843 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 13844 _flag_k = FK_CMP; 13845 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 13846 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 13847 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13848 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13849 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 13850 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13851 edx = (uint32_t)((int32_t)edx >> 3u); 13852 eax = edx; /* 0x361495F0: mov eax, edx */ 13853 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 13854 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13855 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 13856 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13858 edx = edx + eax; /* 0x361495F5: add edx, eax */ 13859 _flag_k = FK_ADD; 13860 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 13861 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13863 _flag_k = FK_CMP; 13864 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 13865 L_361495FC: 13866 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 13867 PUSH32(esp, edx); /* 0x361495FF: push edx */ 13868 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 13869 PUSH32(esp, edi); /* 0x36149601: push edi */ 13870 ecx = esi; /* 0x36149602: mov ecx, esi */ 13871 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 13872 RECOMP_FLAGS_IN(); 13873 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 13874 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 13875 PUSH32(esp, eax); /* 0x36149612: push eax */ 13876 edx = ecx; /* 0x36149613: mov edx, ecx */ 13877 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13879 edx = edx - edi; /* 0x36149615: sub edx, edi */ 13880 _flag_k = FK_CMP; 13881 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 13882 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 13883 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13884 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13885 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 13886 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13887 edx = (uint32_t)((int32_t)edx >> 3u); 13888 eax = edx; /* 0x36149621: mov eax, edx */ 13889 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 13890 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13891 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 13892 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13893 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13894 edx = edx + eax; /* 0x36149626: add edx, eax */ 13895 _flag_k = FK_ADD; 13896 eax = 1; /* 0x36149628: mov eax, 1 */ 13897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13899 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 13900 _flag_k = FK_CMP; 13901 PUSH32(esp, eax); /* 0x3614962F: push eax */ 13902 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 13903 ecx = esi; /* 0x36149631: mov ecx, esi */ 13904 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 13905 RECOMP_FLAGS_IN(); 13906 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 13907 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 13908 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 13909 PUSH32(esp, edx); /* 0x36149642: push edx */ 13910 PUSH32(esp, edi); /* 0x36149643: push edi */ 13911 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 13912 RECOMP_FLAGS_IN(); 13913 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13915 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 13916 _flag_k = FK_ADD; 13917 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 13918 L_3614964E: 13919 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 13920 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 13921 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 13922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13923 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 13924 _flag_k = FK_ADD; 13925 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 13926 ecx = esi; /* 0x36149654: mov ecx, esi */ 13927 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 13928 RECOMP_FLAGS_IN(); 13929 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 13930 PUSH32(esp, eax); /* 0x3614965E: push eax */ 13931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 13932 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13933 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 13934 _flag_k = FK_ADD; 13935 PUSH32(esp, eax); /* 0x36149662: push eax */ 13936 PUSH32(esp, edi); /* 0x36149663: push edi */ 13937 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 13938 RECOMP_FLAGS_IN(); 13939 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 13940 PUSH32(esp, eax); /* 0x3614966F: push eax */ 13941 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 13942 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 13943 PUSH32(esp, edi); /* 0x36149674: push edi */ 13944 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 13945 RECOMP_FLAGS_IN(); 13946 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 13947 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13948 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 13949 _flag_k = FK_ADD; 13950 L_3614967D: 13951 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 13952 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13953 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 13954 _flag_k = FK_ADD; 13955 L_36149681: 13956 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 13957 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 13958 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 13959 RECOMP_FLAGS_IN(); 13960 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 13961 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 13962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13963 eax = eax + 1; /* 0x36149699: inc eax */ 13964 _flag_k = FK_INC; 13965 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 13966 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 13967 _cf = 0; 13968 _flag_k = FK_TEST; 13969 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 13970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13972 _flag_k = FK_CMP; 13973 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 13974 RECOMP_BACKEDGE(); 13975 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 13976 L_361496AB: 13977 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 13978 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 13979 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13980 _cf = 0; 13981 _flag_k = FK_NARROW(FK_TEST, 24); 13982 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 13983 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 13984 L_361496BD: 13985 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 13986 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 13987 RECOMP_FLAGS_IN(); 13988 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 13989 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 13990 PUSH32(esp, eax); /* 0x361496D1: push eax */ 13991 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 13992 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 13993 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 13994 RECOMP_FLAGS_IN(); 13995 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 13996 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 13997 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 13998 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14000 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 14001 _flag_k = FK_CMP; 14002 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 14003 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 14004 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 14005 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14006 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14007 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 14008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14009 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 14010 _flag_k = FK_ADD; 14011 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 14012 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14013 edx = (uint32_t)((int32_t)edx >> 5u); 14014 eax = edx; /* 0x361496FA: mov eax, edx */ 14015 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 14016 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14017 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 14018 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14020 edx = edx + eax; /* 0x361496FF: add edx, eax */ 14021 _flag_k = FK_ADD; 14022 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14023 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14024 esp = esp + 8; /* 0x36149701: add esp, 8 */ 14025 _flag_k = FK_ADD; 14026 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 14027 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14029 _flag_k = FK_CMP; 14030 edi = ecx; /* 0x36149707: mov edi, ecx */ 14031 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 14032 L_3614970F: 14033 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 14034 /* test eax, eax */ /* 0x36149712: test eax, eax */ 14035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14036 _cf = 0; 14037 _flag_k = FK_TEST; 14038 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 14039 L_36149716: 14040 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 14041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14042 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 14043 _flag_k = FK_CMP; 14044 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 14045 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 14046 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14047 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14048 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14049 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14050 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 14051 _flag_k = FK_ADD; 14052 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 14053 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14054 edx = (uint32_t)((int32_t)edx >> 5u); 14055 ecx = edx; /* 0x36149724: mov ecx, edx */ 14056 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 14057 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14058 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 14059 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14061 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 14062 _flag_k = FK_ADD; 14063 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 14064 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14066 _flag_k = FK_CMP; 14067 ebx = edx; /* 0x3614972E: mov ebx, edx */ 14068 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 14069 L_36149732: 14070 ebx = 1; /* 0x36149732: mov ebx, 1 */ 14071 L_36149737: 14072 ecx = esi; /* 0x36149737: mov ecx, esi */ 14073 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 14074 RECOMP_FLAGS_IN(); 14075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 14076 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14077 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 14078 _flag_k = FK_ADD; 14079 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 14080 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 14081 L_36149745: 14082 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14083 eax = 0; /* 0x36149745: xor eax, eax */ 14084 _cf = 0; 14085 _flag_k = FK_TEST; 14086 L_36149747: 14087 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 14088 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 14089 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 14090 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14091 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 14092 PUSH32(esp, edx); /* 0x36149750: push edx */ 14093 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 14094 RECOMP_FLAGS_IN(); 14095 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14096 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14097 esp = esp + 4; /* 0x36149756: add esp, 4 */ 14098 _flag_k = FK_ADD; 14099 ebx = eax; /* 0x36149759: mov ebx, eax */ 14100 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 14101 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 14102 PUSH32(esp, edi); /* 0x3614975F: push edi */ 14103 PUSH32(esp, eax); /* 0x36149760: push eax */ 14104 ecx = esi; /* 0x36149761: mov ecx, esi */ 14105 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 14106 RECOMP_FLAGS_IN(); 14107 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 14108 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 14109 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 14110 PUSH32(esp, eax); /* 0x36149771: push eax */ 14111 ecx = esi; /* 0x36149772: mov ecx, esi */ 14112 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 14113 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 14114 RECOMP_FLAGS_IN(); 14115 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 14116 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 14117 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 14118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14119 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 14120 _flag_k = FK_ADD; 14121 PUSH32(esp, edx); /* 0x36149785: push edx */ 14122 PUSH32(esp, eax); /* 0x36149786: push eax */ 14123 PUSH32(esp, edi); /* 0x36149787: push edi */ 14124 ecx = esi; /* 0x36149788: mov ecx, esi */ 14125 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 14126 RECOMP_FLAGS_IN(); 14127 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 14128 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 14129 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 14130 PUSH32(esp, edx); /* 0x36149796: push edx */ 14131 ecx = esi; /* 0x36149797: mov ecx, esi */ 14132 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 14133 RECOMP_FLAGS_IN(); 14134 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 14135 PUSH32(esp, eax); /* 0x361497A1: push eax */ 14136 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 14137 RECOMP_FLAGS_IN(); 14138 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 14139 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 14140 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 14141 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 14142 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 14143 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14145 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 14146 _flag_k = FK_ADD; 14147 ecx = esi; /* 0x361497B9: mov ecx, esi */ 14148 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 14149 RECOMP_FLAGS_IN(); 14150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14151 eax = eax + 1; /* 0x361497C0: inc eax */ 14152 _flag_k = FK_INC; 14153 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 14154 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 14155 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 14156 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 14157 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 14158 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 14159 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 14160 L_361497D8: 14161 edx = ecx; /* 0x361497D8: mov edx, ecx */ 14162 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 14163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14164 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 14165 _flag_k = FK_CMP; 14166 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 14167 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 14168 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 14169 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14170 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14171 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 14172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14173 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 14174 _flag_k = FK_ADD; 14175 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 14176 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14177 edx = (uint32_t)((int32_t)edx >> 5u); 14178 eax = edx; /* 0x361497EC: mov eax, edx */ 14179 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 14180 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14181 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 14182 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14184 edx = edx + eax; /* 0x361497F1: add edx, eax */ 14185 _flag_k = FK_ADD; 14186 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 14187 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14189 _flag_k = FK_CMP; 14190 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 14191 L_361497F8: 14192 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 14193 PUSH32(esp, edx); /* 0x361497FB: push edx */ 14194 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 14195 PUSH32(esp, edi); /* 0x361497FD: push edi */ 14196 ecx = esi; /* 0x361497FE: mov ecx, esi */ 14197 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 14198 RECOMP_FLAGS_IN(); 14199 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 14200 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 14201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14202 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 14203 _flag_k = FK_CMP; 14204 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 14205 PUSH32(esp, eax); /* 0x36149810: push eax */ 14206 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 14207 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 14208 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14209 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14210 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14212 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 14213 _flag_k = FK_ADD; 14214 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 14215 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14216 edx = (uint32_t)((int32_t)edx >> 5u); 14217 ecx = edx; /* 0x3614981D: mov ecx, edx */ 14218 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 14219 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14220 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 14221 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14222 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14223 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 14224 _flag_k = FK_ADD; 14225 eax = 1; /* 0x36149824: mov eax, 1 */ 14226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14228 eax = eax - edx; /* 0x36149829: sub eax, edx */ 14229 _flag_k = FK_CMP; 14230 PUSH32(esp, eax); /* 0x3614982B: push eax */ 14231 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 14232 PUSH32(esp, eax); /* 0x3614982F: push eax */ 14233 ecx = esi; /* 0x36149830: mov ecx, esi */ 14234 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 14235 RECOMP_FLAGS_IN(); 14236 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 14237 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 14238 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 14239 PUSH32(esp, edx); /* 0x36149841: push edx */ 14240 PUSH32(esp, edi); /* 0x36149842: push edi */ 14241 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 14242 RECOMP_FLAGS_IN(); 14243 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 14244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14245 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 14246 _flag_k = FK_ADD; 14247 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 14248 L_3614984D: 14249 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 14250 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 14251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 14252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14253 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 14254 _flag_k = FK_ADD; 14255 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 14256 ecx = esi; /* 0x36149853: mov ecx, esi */ 14257 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 14258 RECOMP_FLAGS_IN(); 14259 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 14260 PUSH32(esp, eax); /* 0x3614985D: push eax */ 14261 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 14262 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14263 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 14264 _flag_k = FK_ADD; 14265 PUSH32(esp, eax); /* 0x36149861: push eax */ 14266 PUSH32(esp, edi); /* 0x36149862: push edi */ 14267 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 14268 RECOMP_FLAGS_IN(); 14269 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 14270 PUSH32(esp, eax); /* 0x3614986E: push eax */ 14271 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 14272 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 14273 PUSH32(esp, edi); /* 0x36149873: push edi */ 14274 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 14275 RECOMP_FLAGS_IN(); 14276 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 14277 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14278 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 14279 _flag_k = FK_ADD; 14280 L_3614987C: 14281 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 14282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14283 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 14284 _flag_k = FK_ADD; 14285 L_36149880: 14286 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 14287 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 14288 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 14289 RECOMP_FLAGS_IN(); 14290 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 14291 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 14292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14293 eax = eax + 1; /* 0x36149898: inc eax */ 14294 _flag_k = FK_INC; 14295 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 14296 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 14297 _cf = 0; 14298 _flag_k = FK_TEST; 14299 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 14300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14302 _flag_k = FK_CMP; 14303 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 14304 RECOMP_BACKEDGE(); 14305 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 14306 L_361498AA: 14307 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 14308 ecx = esi; /* 0x361498AD: mov ecx, esi */ 14309 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 14310 RECOMP_FLAGS_IN(); 14311 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 14312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14313 _cf = 0; 14314 _flag_k = FK_TEST; 14315 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 14316 L_361498B9: 14317 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 14318 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 14319 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 14320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14321 _cf = 0; 14322 _flag_k = FK_TEST; 14323 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 14324 L_361498C2: 14325 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 14326 L_361498C7: 14327 PUSH32(esp, eax); /* 0x361498C7: push eax */ 14328 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 14329 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 14330 RECOMP_FLAGS_IN(); 14331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14333 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 14334 _flag_k = FK_ADD; 14335 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 14336 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 14337 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 14338 RECOMP_FLAGS_IN(); 14339 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 14340 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 14341 PUSH32(esp, eax); /* 0x361498F1: push eax */ 14342 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 14343 RECOMP_FLAGS_IN(); 14344 L_361498F7: 14345 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 14346 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 14347 eax = esi; /* 0x361498FB: mov eax, esi */ 14348 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 14349 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 14350 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 14351 esp = ebp; /* 0x36149906: mov esp, ebp */ 14352 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 14353 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 14354 L_3614990A: 14355 ebx = MEM32(ebx); /* 0x3614990A: mov ebx, dword ptr [ebx] */ 14356 edx = MEM32(ebx + 0x4); /* 0x3614990C: mov edx, dword ptr [ebx + 4] */ 14357 /* test edx, edx */ /* 0x3614990F: test edx, edx */ 14358 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 14359 _cf = 0; 14360 _flag_k = FK_TEST; 14361 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149919; /* 0x36149911: jne 0x36149919 */ 14362 L_36149913: 14363 edx = MEM32(0x3616F10C); /* 0x36149913: mov edx, dword ptr [0x3616f10c] */ 14364 L_36149919: 14365 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 14366 ecx = ecx & 0xFFFFu; /* 0x36149919: and ecx, 0xffff */ 14367 _cf = 0; 14368 _flag_k = FK_TEST; 14369 PUSH32(esp, ecx); /* 0x3614991F: push ecx */ 14370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 14371 eax = eax & 0xFFFFu; /* 0x36149920: and eax, 0xffff */ 14372 _cf = 0; 14373 _flag_k = FK_TEST; 14374 PUSH32(esp, eax); /* 0x36149925: push eax */ 14375 PUSH32(esp, edx); /* 0x36149926: push edx */ 14376 PUSH32(esp, 0x362E756Cu); /* 0x36149927: push 0x362e756c */ 14377 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614992C: call dword ptr [0x3616f18c] */ 14378 RECOMP_FLAGS_IN(); 14379 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 14380 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14381 esp = esp + 0x10u; /* 0x36149932: add esp, 0x10 */ 14382 _flag_k = FK_ADD; 14383 PUSH32(esp, 0x362E753Cu); /* 0x36149935: push 0x362e753c */ 14384 ecx = ebp + (-0x1C); /* 0x3614993A: lea ecx, [ebp - 0x1c] */ 14385 RECOMP_ICALL(0x36008EF0u); /* 0x3614993D: call 0x36008ef0 */ /* not lifted */ 14386 RECOMP_FLAGS_IN(); 14387 PUSH32(esp, 0x36184170u); /* 0x36149942: push 0x36184170 */ 14388 ecx = ebp + (-0x1C); /* 0x36149947: lea ecx, [ebp - 0x1c] */ 14389 PUSH32(esp, ecx); /* 0x3614994A: push ecx */ 14390 RECOMP_ICALL(0x3615FD70u); /* 0x3614994B: call 0x3615fd70 */ /* not lifted */ 14391 RECOMP_FLAGS_IN(); 14392 L_36149950: 14393 ebx = MEM32(ebx); /* 0x36149950: mov ebx, dword ptr [ebx] */ 14394 edx = MEM32(ebx + 0x4); /* 0x36149952: mov edx, dword ptr [ebx + 4] */ 14395 /* test edx, edx */ /* 0x36149955: test edx, edx */ 14396 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 14397 _cf = 0; 14398 _flag_k = FK_TEST; 14399 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614995F; /* 0x36149957: jne 0x3614995f */ 14400 L_36149959: 14401 edx = MEM32(0x3616F10C); /* 0x36149959: mov edx, dword ptr [0x3616f10c] */ 14402 L_3614995F: 14403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 14404 eax = eax & 0xFFFFu; /* 0x3614995F: and eax, 0xffff */ 14405 _cf = 0; 14406 _flag_k = FK_TEST; 14407 PUSH32(esp, eax); /* 0x36149964: push eax */ 14408 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 14409 ecx = ecx & 0xFFFFu; /* 0x36149965: and ecx, 0xffff */ 14410 _cf = 0; 14411 _flag_k = FK_TEST; 14412 PUSH32(esp, ecx); /* 0x3614996B: push ecx */ 14413 PUSH32(esp, edx); /* 0x3614996C: push edx */ 14414 PUSH32(esp, 0x362E74E4u); /* 0x3614996D: push 0x362e74e4 */ 14415 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149972: call dword ptr [0x3616f18c] */ 14416 RECOMP_FLAGS_IN(); 14417 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 14418 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14419 esp = esp + 0x10u; /* 0x36149978: add esp, 0x10 */ 14420 _flag_k = FK_ADD; 14421 PUSH32(esp, 0x362E74C0u); /* 0x3614997B: push 0x362e74c0 */ 14422 ecx = ebp + (-0x1C); /* 0x36149980: lea ecx, [ebp - 0x1c] */ 14423 RECOMP_ICALL(0x36008EF0u); /* 0x36149983: call 0x36008ef0 */ /* not lifted */ 14424 RECOMP_FLAGS_IN(); 14425 PUSH32(esp, 0x36184170u); /* 0x36149988: push 0x36184170 */ 14426 edx = ebp + (-0x1C); /* 0x3614998D: lea edx, [ebp - 0x1c] */ 14427 PUSH32(esp, edx); /* 0x36149990: push edx */ 14428 RECOMP_ICALL(0x3615FD70u); /* 0x36149991: call 0x3615fd70 */ /* not lifted */ 14429 RECOMP_FLAGS_IN(); 14430 eax = MEM32(eax + 0x4); /* 0x36149996: mov eax, dword ptr [eax + 4] */ 14431 /* test eax, eax */ /* 0x36149999: test eax, eax */ 14432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14433 _cf = 0; 14434 _flag_k = FK_TEST; 14435 if (TEST_NZ(_flag_a, _flag_b)) goto L_361499A2; /* 0x3614999B: jne 0x361499a2 */ 14436 L_3614999D: 14437 eax = MEM32(0x3616F10C); /* 0x3614999D: mov eax, dword ptr [0x3616f10c] */ 14438 L_361499A2: 14439 ecx = MEM32(ebp + (-0x10)); /* 0x361499A2: mov ecx, dword ptr [ebp - 0x10] */ 14440 fp_push(*(float*)&MEM32(ecx)); /* 0x361499A5: fld dword ptr [ecx] */ 14441 edx = MEM32(ebp + (-0x18)); /* 0x361499A7: mov edx, dword ptr [ebp - 0x18] */ 14442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14444 esp = esp - 8; /* 0x361499AA: sub esp, 8 */ 14445 _flag_k = FK_CMP; 14446 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499AD: fstp qword ptr [esp] */ 14447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14449 esp = esp - 8; /* 0x361499B0: sub esp, 8 */ 14450 _flag_k = FK_CMP; 14451 fp_push(*(float*)&MEM32(edx)); /* 0x361499B3: fld dword ptr [edx] */ 14452 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499B5: fstp qword ptr [esp] */ 14453 PUSH32(esp, eax); /* 0x361499B8: push eax */ 14454 PUSH32(esp, 0x362E746Cu); /* 0x361499B9: push 0x362e746c */ 14455 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361499BE: call dword ptr [0x3616f18c] */ 14456 RECOMP_FLAGS_IN(); 14457 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 14458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14459 esp = esp + 0x18u; /* 0x361499C4: add esp, 0x18 */ 14460 _flag_k = FK_ADD; 14461 PUSH32(esp, 0x362E7700u); /* 0x361499C7: push 0x362e7700 */ 14462 ecx = ebp + (-0x1C); /* 0x361499CC: lea ecx, [ebp - 0x1c] */ 14463 RECOMP_ICALL(0x36008EF0u); /* 0x361499CF: call 0x36008ef0 */ /* not lifted */ 14464 RECOMP_FLAGS_IN(); 14465 PUSH32(esp, 0x36184170u); /* 0x361499D4: push 0x36184170 */ 14466 eax = ebp + (-0x1C); /* 0x361499D9: lea eax, [ebp - 0x1c] */ 14467 PUSH32(esp, eax); /* 0x361499DC: push eax */ 14468 RECOMP_ICALL(0x3615FD70u); /* 0x361499DD: call 0x3615fd70 */ /* not lifted */ 14469 RECOMP_FLAGS_IN(); 14470 ecx = MEM32(ebp + (-0x10)); /* 0x361499E2: mov ecx, dword ptr [ebp - 0x10] */ 14471 fp_push(*(float*)&MEM32(ecx)); /* 0x361499E5: fld dword ptr [ecx] */ 14472 edx = MEM32(ebp + (-0x14)); /* 0x361499E7: mov edx, dword ptr [ebp - 0x14] */ 14473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14475 esp = esp - 8; /* 0x361499EA: sub esp, 8 */ 14476 _flag_k = FK_CMP; 14477 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499ED: fstp qword ptr [esp] */ 14478 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14480 esp = esp - 8; /* 0x361499F0: sub esp, 8 */ 14481 _flag_k = FK_CMP; 14482 fp_push(*(float*)&MEM32(edx)); /* 0x361499F3: fld dword ptr [edx] */ 14483 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14485 esp = esp - 8; /* 0x361499F5: sub esp, 8 */ 14486 _flag_k = FK_CMP; 14487 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x361499F8: fstp qword ptr [esp + 8] */ 14488 fp_push(*(float*)&MEM32(esi)); /* 0x361499FC: fld dword ptr [esi] */ 14489 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499FE: fstp qword ptr [esp] */ 14490 PUSH32(esp, 0x362E7424u); /* 0x36149A01: push 0x362e7424 */ 14491 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149A06: call dword ptr [0x3616f18c] */ 14492 RECOMP_FLAGS_IN(); 14493 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 14494 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14495 esp = esp + 0x1Cu; /* 0x36149A0C: add esp, 0x1c */ 14496 _flag_k = FK_ADD; 14497 PUSH32(esp, 0x362E7700u); /* 0x36149A0F: push 0x362e7700 */ 14498 ecx = ebp + (-0x1C); /* 0x36149A14: lea ecx, [ebp - 0x1c] */ 14499 RECOMP_ICALL(0x36008EF0u); /* 0x36149A17: call 0x36008ef0 */ /* not lifted */ 14500 RECOMP_FLAGS_IN(); 14501 PUSH32(esp, 0x36184170u); /* 0x36149A1C: push 0x36184170 */ 14502 eax = ebp + (-0x1C); /* 0x36149A21: lea eax, [ebp - 0x1c] */ 14503 PUSH32(esp, eax); /* 0x36149A24: push eax */ 14504 RECOMP_ICALL(0x3615FD70u); /* 0x36149A25: call 0x3615fd70 */ /* not lifted */ 14505 RECOMP_FLAGS_IN(); 14506 /* nop */ /* 0x36149A2A: nop */ 14507 /* nop */ /* 0x36149A2B: nop */ 14508 /* nop */ /* 0x36149A2C: nop */ 14509 /* nop */ /* 0x36149A2D: nop */ 14510 /* nop */ /* 0x36149A2E: nop */ 14511 /* nop */ /* 0x36149A2F: nop */ 14512 PUSH32(esp, ebp); /* 0x36149A30: push ebp */ 14513 ebp = esp; /* 0x36149A31: mov ebp, esp */ 14514 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14516 esp = esp - 8; /* 0x36149A33: sub esp, 8 */ 14517 _flag_k = FK_CMP; 14518 eax = ecx; /* 0x36149A36: mov eax, ecx */ 14519 ecx = MEM32(ebp + 0x8); /* 0x36149A38: mov ecx, dword ptr [ebp + 8] */ 14520 /* cmp eax, ecx */ /* 0x36149A3B: cmp eax, ecx */ 14521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14523 _flag_k = FK_CMP; 14524 PUSH32(esp, ebx); /* 0x36149A3D: push ebx */ 14525 PUSH32(esp, esi); /* 0x36149A3E: push esi */ 14526 PUSH32(esp, edi); /* 0x36149A3F: push edi */ 14527 MEM32(ebp + (-0x4)) = eax; /* 0x36149A40: mov dword ptr [ebp - 4], eax */ 14528 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE9; /* 0x36149A43: je 0x36149be9 */ 14529 L_36149A49: 14530 esi = MEM32(ecx + 0x4); /* 0x36149A49: mov esi, dword ptr [ecx + 4] */ 14531 /* test esi, esi */ /* 0x36149A4C: test esi, esi */ 14532 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 14533 _cf = 0; 14534 _flag_k = FK_TEST; 14535 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A54; /* 0x36149A4E: jne 0x36149a54 */ 14536 L_36149A50: 14537 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14538 ebx = 0; /* 0x36149A50: xor ebx, ebx */ 14539 _cf = 0; 14540 _flag_k = FK_TEST; 14541 goto L_36149A5C; /* 0x36149A52: jmp 0x36149a5c */ 14542 L_36149A54: 14543 ebx = MEM32(ecx + 0x8); /* 0x36149A54: mov ebx, dword ptr [ecx + 8] */ 14544 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 14545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14546 ebx = ebx - esi; /* 0x36149A57: sub ebx, esi */ 14547 _flag_k = FK_CMP; 14548 if (3u) _cf = (((ebx) >> 2) & 1u); /* 0x36149A59: sar ebx, 3 */ 14549 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14550 ebx = (uint32_t)((int32_t)ebx >> 3u); 14551 L_36149A5C: 14552 edx = MEM32(eax + 0x4); /* 0x36149A5C: mov edx, dword ptr [eax + 4] */ 14553 /* test edx, edx */ /* 0x36149A5F: test edx, edx */ 14554 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 14555 _cf = 0; 14556 _flag_k = FK_TEST; 14557 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A67; /* 0x36149A61: jne 0x36149a67 */ 14558 L_36149A63: 14559 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14560 edi = 0; /* 0x36149A63: xor edi, edi */ 14561 _cf = 0; 14562 _flag_k = FK_TEST; 14563 goto L_36149A6F; /* 0x36149A65: jmp 0x36149a6f */ 14564 L_36149A67: 14565 edi = MEM32(eax + 0x8); /* 0x36149A67: mov edi, dword ptr [eax + 8] */ 14566 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 14567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14568 edi = edi - edx; /* 0x36149A6A: sub edi, edx */ 14569 _flag_k = FK_CMP; 14570 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149A6C: sar edi, 3 */ 14571 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14572 edi = (uint32_t)((int32_t)edi >> 3u); 14573 L_36149A6F: 14574 /* cmp ebx, edi */ /* 0x36149A6F: cmp ebx, edi */ 14575 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 14576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14577 _flag_k = FK_CMP; 14578 if (CMP_A(_flag_a, _flag_b)) goto L_36149AC9; /* 0x36149A71: ja 0x36149ac9 */ 14579 L_36149A73: 14580 ebx = MEM32(ecx + 0x8); /* 0x36149A73: mov ebx, dword ptr [ecx + 8] */ 14581 /* cmp esi, ebx */ /* 0x36149A76: cmp esi, ebx */ 14582 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14584 _flag_k = FK_CMP; 14585 edi = edx; /* 0x36149A78: mov edi, edx */ 14586 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149A94; /* 0x36149A7A: je 0x36149a94 */ 14587 L_36149A7C: 14588 PUSH32(esp, esi); /* 0x36149A7C: push esi */ 14589 ecx = edi; /* 0x36149A7D: mov ecx, edi */ 14590 RECOMP_ICALL(0x3614A420u); /* 0x36149A7F: call 0x3614a420 */ /* not lifted */ 14591 RECOMP_FLAGS_IN(); 14592 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 14593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14594 esi = esi + 8; /* 0x36149A84: add esi, 8 */ 14595 _flag_k = FK_ADD; 14596 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 14597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14598 edi = edi + 8; /* 0x36149A87: add edi, 8 */ 14599 _flag_k = FK_ADD; 14600 /* cmp esi, ebx */ /* 0x36149A8A: cmp esi, ebx */ 14601 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14603 _flag_k = FK_CMP; 14604 RECOMP_BACKEDGE(); 14605 if (CMP_NE(_flag_a, _flag_b)) goto L_36149A7C; /* 0x36149A8C: jne 0x36149a7c */ 14606 L_36149A8E: 14607 ecx = MEM32(ebp + 0x8); /* 0x36149A8E: mov ecx, dword ptr [ebp + 8] */ 14608 eax = MEM32(ebp + (-0x4)); /* 0x36149A91: mov eax, dword ptr [ebp - 4] */ 14609 L_36149A94: 14610 esi = MEM32(ecx + 0x4); /* 0x36149A94: mov esi, dword ptr [ecx + 4] */ 14611 /* test esi, esi */ /* 0x36149A97: test esi, esi */ 14612 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 14613 _cf = 0; 14614 _flag_k = FK_TEST; 14615 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AAF; /* 0x36149A99: jne 0x36149aaf */ 14616 L_36149A9B: 14617 ecx = MEM32(eax + 0x4); /* 0x36149A9B: mov ecx, dword ptr [eax + 4] */ 14618 edi = POP32_VAL(esp); /* 0x36149A9E: pop edi */ 14619 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14620 edx = 0; /* 0x36149A9F: xor edx, edx */ 14621 _cf = 0; 14622 _flag_k = FK_TEST; 14623 edx = ecx + edx * 8; /* 0x36149AA1: lea edx, [ecx + edx*8] */ 14624 esi = POP32_VAL(esp); /* 0x36149AA4: pop esi */ 14625 MEM32(eax + 0x8) = edx; /* 0x36149AA5: mov dword ptr [eax + 8], edx */ 14626 ebx = POP32_VAL(esp); /* 0x36149AA8: pop ebx */ 14627 esp = ebp; /* 0x36149AA9: mov esp, ebp */ 14628 ebp = POP32_VAL(esp); /* 0x36149AAB: pop ebp */ 14629 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AAC: ret 4 */ 14630 L_36149AAF: 14631 edx = MEM32(ecx + 0x8); /* 0x36149AAF: mov edx, dword ptr [ecx + 8] */ 14632 ecx = MEM32(eax + 0x4); /* 0x36149AB2: mov ecx, dword ptr [eax + 4] */ 14633 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 14634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14635 edx = edx - esi; /* 0x36149AB5: sub edx, esi */ 14636 _flag_k = FK_CMP; 14637 edi = POP32_VAL(esp); /* 0x36149AB7: pop edi */ 14638 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149AB8: sar edx, 3 */ 14639 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14640 edx = (uint32_t)((int32_t)edx >> 3u); 14641 edx = ecx + edx * 8; /* 0x36149ABB: lea edx, [ecx + edx*8] */ 14642 esi = POP32_VAL(esp); /* 0x36149ABE: pop esi */ 14643 MEM32(eax + 0x8) = edx; /* 0x36149ABF: mov dword ptr [eax + 8], edx */ 14644 ebx = POP32_VAL(esp); /* 0x36149AC2: pop ebx */ 14645 esp = ebp; /* 0x36149AC3: mov esp, ebp */ 14646 ebp = POP32_VAL(esp); /* 0x36149AC5: pop ebp */ 14647 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AC6: ret 4 */ 14648 L_36149AC9: 14649 /* test esi, esi */ /* 0x36149AC9: test esi, esi */ 14650 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 14651 _cf = 0; 14652 _flag_k = FK_TEST; 14653 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AD1; /* 0x36149ACB: jne 0x36149ad1 */ 14654 L_36149ACD: 14655 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14656 ecx = 0; /* 0x36149ACD: xor ecx, ecx */ 14657 _cf = 0; 14658 _flag_k = FK_TEST; 14659 goto L_36149AD9; /* 0x36149ACF: jmp 0x36149ad9 */ 14660 L_36149AD1: 14661 ecx = MEM32(ecx + 0x8); /* 0x36149AD1: mov ecx, dword ptr [ecx + 8] */ 14662 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 14663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14664 ecx = ecx - esi; /* 0x36149AD4: sub ecx, esi */ 14665 _flag_k = FK_CMP; 14666 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AD6: sar ecx, 3 */ 14667 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14668 ecx = (uint32_t)((int32_t)ecx >> 3u); 14669 L_36149AD9: 14670 /* test edx, edx */ /* 0x36149AD9: test edx, edx */ 14671 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 14672 _cf = 0; 14673 _flag_k = FK_TEST; 14674 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AE1; /* 0x36149ADB: jne 0x36149ae1 */ 14675 L_36149ADD: 14676 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14677 edi = 0; /* 0x36149ADD: xor edi, edi */ 14678 _cf = 0; 14679 _flag_k = FK_TEST; 14680 goto L_36149AE9; /* 0x36149ADF: jmp 0x36149ae9 */ 14681 L_36149AE1: 14682 edi = MEM32(eax + 0xC); /* 0x36149AE1: mov edi, dword ptr [eax + 0xc] */ 14683 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 14684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14685 edi = edi - edx; /* 0x36149AE4: sub edi, edx */ 14686 _flag_k = FK_CMP; 14687 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149AE6: sar edi, 3 */ 14688 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14689 edi = (uint32_t)((int32_t)edi >> 3u); 14690 L_36149AE9: 14691 /* cmp ecx, edi */ /* 0x36149AE9: cmp ecx, edi */ 14692 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 14693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14694 _flag_k = FK_CMP; 14695 if (CMP_A(_flag_a, _flag_b)) goto L_36149B7F; /* 0x36149AEB: ja 0x36149b7f */ 14696 L_36149AF1: 14697 /* test edx, edx */ /* 0x36149AF1: test edx, edx */ 14698 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 14699 _cf = 0; 14700 _flag_k = FK_TEST; 14701 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AF9; /* 0x36149AF3: jne 0x36149af9 */ 14702 L_36149AF5: 14703 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14704 ecx = 0; /* 0x36149AF5: xor ecx, ecx */ 14705 _cf = 0; 14706 _flag_k = FK_TEST; 14707 goto L_36149B01; /* 0x36149AF7: jmp 0x36149b01 */ 14708 L_36149AF9: 14709 ecx = MEM32(eax + 0x8); /* 0x36149AF9: mov ecx, dword ptr [eax + 8] */ 14710 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 14711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14712 ecx = ecx - edx; /* 0x36149AFC: sub ecx, edx */ 14713 _flag_k = FK_CMP; 14714 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AFE: sar ecx, 3 */ 14715 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14716 ecx = (uint32_t)((int32_t)ecx >> 3u); 14717 L_36149B01: 14718 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 14719 eax = esi; /* 0x36149B04: mov eax, esi */ 14720 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 14721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14723 _flag_k = FK_CMP; 14724 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 14725 L_36149B0A: 14726 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 14727 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 14728 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 14729 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 14730 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 14731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14732 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 14733 _flag_k = FK_ADD; 14734 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 14735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14736 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 14737 _flag_k = FK_ADD; 14738 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 14739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14741 _flag_k = FK_CMP; 14742 RECOMP_BACKEDGE(); 14743 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 14744 L_36149B1E: 14745 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 14746 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 14747 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 14748 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 14749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14750 _flag_k = FK_CMP; 14751 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 14752 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 14753 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 14754 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 14755 L_36149B30: 14756 PUSH32(esp, esi); /* 0x36149B30: push esi */ 14757 PUSH32(esp, edi); /* 0x36149B31: push edi */ 14758 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 14759 RECOMP_FLAGS_IN(); 14760 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 14761 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14762 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 14763 _flag_k = FK_ADD; 14764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14766 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 14767 _flag_k = FK_ADD; 14768 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 14769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14770 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 14771 _flag_k = FK_ADD; 14772 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 14773 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14775 _flag_k = FK_CMP; 14776 RECOMP_BACKEDGE(); 14777 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 14778 L_36149B44: 14779 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 14780 L_36149B47: 14781 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 14782 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 14783 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 14784 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 14785 _cf = 0; 14786 _flag_k = FK_TEST; 14787 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 14788 L_36149B51: 14789 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 14790 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 14791 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14792 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 14793 _cf = 0; 14794 _flag_k = FK_TEST; 14795 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 14796 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 14797 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 14798 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 14799 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 14800 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 14801 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 14802 L_36149B65: 14803 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 14804 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 14805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14806 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 14807 _flag_k = FK_CMP; 14808 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 14809 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 14810 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 14811 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14812 ecx = (uint32_t)((int32_t)ecx >> 3u); 14813 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 14814 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 14815 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 14816 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 14817 esp = ebp; /* 0x36149B79: mov esp, ebp */ 14818 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 14819 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 14820 L_36149B7F: 14821 PUSH32(esp, edx); /* 0x36149B7F: push edx */ 14822 MEM32(ebp + (-0x8)) = edx; /* 0x36149B80: mov dword ptr [ebp - 8], edx */ 14823 RECOMP_ICALL(0x3615FCC4u); /* 0x36149B83: call 0x3615fcc4 */ /* not lifted */ 14824 RECOMP_FLAGS_IN(); 14825 esi = MEM32(ebp + 0x8); /* 0x36149B88: mov esi, dword ptr [ebp + 8] */ 14826 ecx = MEM32(esi + 0x4); /* 0x36149B8B: mov ecx, dword ptr [esi + 4] */ 14827 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14829 esp = esp + 4; /* 0x36149B8E: add esp, 4 */ 14830 _flag_k = FK_ADD; 14831 /* test ecx, ecx */ /* 0x36149B91: test ecx, ecx */ 14832 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 14833 _cf = 0; 14834 _flag_k = FK_TEST; 14835 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B99; /* 0x36149B93: jne 0x36149b99 */ 14836 L_36149B95: 14837 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14838 eax = 0; /* 0x36149B95: xor eax, eax */ 14839 _cf = 0; 14840 _flag_k = FK_TEST; 14841 goto L_36149BA1; /* 0x36149B97: jmp 0x36149ba1 */ 14842 L_36149B99: 14843 eax = MEM32(esi + 0x8); /* 0x36149B99: mov eax, dword ptr [esi + 8] */ 14844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14846 eax = eax - ecx; /* 0x36149B9C: sub eax, ecx */ 14847 _flag_k = FK_CMP; 14848 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36149B9E: sar eax, 3 */ 14849 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14850 eax = (uint32_t)((int32_t)eax >> 3u); 14851 L_36149BA1: 14852 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 14853 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14854 _cf = 0; 14855 _flag_k = FK_TEST; 14856 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 14857 L_36149BA5: 14858 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14859 eax = 0; /* 0x36149BA5: xor eax, eax */ 14860 _cf = 0; 14861 _flag_k = FK_TEST; 14862 L_36149BA7: 14863 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 14864 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 14865 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 14866 RECOMP_FLAGS_IN(); 14867 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 14868 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 14869 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 14870 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 14871 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 14872 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14873 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14874 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 14875 _flag_k = FK_ADD; 14876 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 14877 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14879 _flag_k = FK_CMP; 14880 edi = eax; /* 0x36149BC8: mov edi, eax */ 14881 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 14882 L_36149BCC: 14883 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 14884 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 14885 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 14886 RECOMP_FLAGS_IN(); 14887 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 14888 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14889 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 14890 _flag_k = FK_ADD; 14891 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14892 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14893 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 14894 _flag_k = FK_ADD; 14895 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 14896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14897 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 14898 _flag_k = FK_ADD; 14899 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 14900 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14902 _flag_k = FK_CMP; 14903 RECOMP_BACKEDGE(); 14904 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 14905 L_36149BE0: 14906 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 14907 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 14908 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 14909 L_36149BE9: 14910 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 14911 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 14912 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 14913 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 14914 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 14915 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 14916 RECOMP_REGS_OUT(); 14917 }