client/game/ggr.dll/lifted-0009.c (126169B)
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_30018770(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(0x30018770u); 17 18 L_30018770: 19 eax = MEM32(ebp + (-0x4C)); /* 0x30018770: mov eax, dword ptr [ebp - 0x4c] */ 20 PUSH32(esp, eax); /* 0x30018773: push eax */ 21 RECOMP_ICALL(0x30018080u); /* 0x30018774: call 0x30018080 */ /* not lifted */ 22 RECOMP_FLAGS_IN(); 23 ecx = POP32_VAL(esp); /* 0x30018779: pop ecx */ 24 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3001877A: ret */ 25 RECOMP_REGS_OUT(); 26 } 27 28 void sub_3001877B(void) { 29 int _fpu_cmp = 0; 30 uint32_t _cf = 0; 31 int _df = 1; 32 uint32_t _flag_k = FK_NONE; 33 uint32_t _flag_a = 0, _flag_b = 0; 34 uint32_t _itail_tgt = 0; 35 RECOMP_REGS_LOCALS 36 RECOMP_ENTER(0x3001877Bu); 37 38 goto L_3001877B; 39 L_3000E970: 40 PUSH32(esp, ebp); /* 0x3000E970: push ebp */ 41 ebp = esp; /* 0x3000E971: mov ebp, esp */ 42 PUSH32(esp, ecx); /* 0x3000E973: push ecx */ 43 PUSH32(esp, esi); /* 0x3000E974: push esi */ 44 esi = ecx; /* 0x3000E975: mov esi, ecx */ 45 eax = MEM32(esi + 0x4); /* 0x3000E977: mov eax, dword ptr [esi + 4] */ 46 PUSH32(esp, eax); /* 0x3000E97A: push eax */ 47 MEM32(ebp + (-0x4)) = eax; /* 0x3000E97B: mov dword ptr [ebp - 4], eax */ 48 RECOMP_ICALL(0x30018080u); /* 0x3000E97E: call 0x30018080 */ /* not lifted */ 49 RECOMP_FLAGS_IN(); 50 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 51 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 52 esp = esp + 4; /* 0x3000E983: add esp, 4 */ 53 _flag_k = FK_ADD; 54 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 55 eax = 0; /* 0x3000E986: xor eax, eax */ 56 _cf = 0; 57 _flag_k = FK_TEST; 58 MEM32(esi + 0x4) = eax; /* 0x3000E988: mov dword ptr [esi + 4], eax */ 59 MEM32(esi + 0x8) = eax; /* 0x3000E98B: mov dword ptr [esi + 8], eax */ 60 MEM32(esi + 0xC) = eax; /* 0x3000E98E: mov dword ptr [esi + 0xc], eax */ 61 esi = POP32_VAL(esp); /* 0x3000E991: pop esi */ 62 esp = ebp; /* 0x3000E992: mov esp, ebp */ 63 ebp = POP32_VAL(esp); /* 0x3000E994: pop ebp */ 64 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E995: ret */ 65 L_3001877B: 66 ecx = ebp + (-0x48); /* 0x3001877B: lea ecx, [ebp - 0x48] */ 67 RECOMP_BACKEDGE(); 68 goto L_3000E970; /* 0x3001877E: jmp 0x3000e970 */ 69 { RECOMP_REGS_OUT(); return; } /* end of function */ 70 RECOMP_REGS_OUT(); 71 } 72 73 void sub_30018783(void) { 74 int _fpu_cmp = 0; 75 uint32_t _cf = 0; 76 int _df = 1; 77 uint32_t _flag_k = FK_NONE; 78 uint32_t _flag_a = 0, _flag_b = 0; 79 uint32_t _itail_tgt = 0; 80 RECOMP_REGS_LOCALS 81 RECOMP_ENTER(0x30018783u); 82 83 goto L_30018783; 84 L_3000E970: 85 PUSH32(esp, ebp); /* 0x3000E970: push ebp */ 86 ebp = esp; /* 0x3000E971: mov ebp, esp */ 87 PUSH32(esp, ecx); /* 0x3000E973: push ecx */ 88 PUSH32(esp, esi); /* 0x3000E974: push esi */ 89 esi = ecx; /* 0x3000E975: mov esi, ecx */ 90 eax = MEM32(esi + 0x4); /* 0x3000E977: mov eax, dword ptr [esi + 4] */ 91 PUSH32(esp, eax); /* 0x3000E97A: push eax */ 92 MEM32(ebp + (-0x4)) = eax; /* 0x3000E97B: mov dword ptr [ebp - 4], eax */ 93 RECOMP_ICALL(0x30018080u); /* 0x3000E97E: call 0x30018080 */ /* not lifted */ 94 RECOMP_FLAGS_IN(); 95 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 96 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 97 esp = esp + 4; /* 0x3000E983: add esp, 4 */ 98 _flag_k = FK_ADD; 99 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 100 eax = 0; /* 0x3000E986: xor eax, eax */ 101 _cf = 0; 102 _flag_k = FK_TEST; 103 MEM32(esi + 0x4) = eax; /* 0x3000E988: mov dword ptr [esi + 4], eax */ 104 MEM32(esi + 0x8) = eax; /* 0x3000E98B: mov dword ptr [esi + 8], eax */ 105 MEM32(esi + 0xC) = eax; /* 0x3000E98E: mov dword ptr [esi + 0xc], eax */ 106 esi = POP32_VAL(esp); /* 0x3000E991: pop esi */ 107 esp = ebp; /* 0x3000E992: mov esp, ebp */ 108 ebp = POP32_VAL(esp); /* 0x3000E994: pop ebp */ 109 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E995: ret */ 110 L_30018783: 111 ecx = ebp + (-0x48); /* 0x30018783: lea ecx, [ebp - 0x48] */ 112 RECOMP_BACKEDGE(); 113 goto L_3000E970; /* 0x30018786: jmp 0x3000e970 */ 114 { RECOMP_REGS_OUT(); return; } /* end of function */ 115 RECOMP_REGS_OUT(); 116 } 117 118 void sub_3001878B(void) { 119 int _fpu_cmp = 0; 120 uint32_t _cf = 0; 121 int _df = 1; 122 uint32_t _flag_k = FK_NONE; 123 uint32_t _flag_a = 0, _flag_b = 0; 124 uint32_t _itail_tgt = 0; 125 RECOMP_REGS_LOCALS 126 RECOMP_ENTER(0x3001878Bu); 127 128 goto L_3001878B; 129 L_30009080: 130 PUSH32(esp, ebx); /* 0x30009080: push ebx */ 131 PUSH32(esp, esi); /* 0x30009081: push esi */ 132 PUSH32(esp, edi); /* 0x30009082: push edi */ 133 edi = ecx; /* 0x30009083: mov edi, ecx */ 134 ebx = MEM32(edi + 0x8); /* 0x30009085: mov ebx, dword ptr [edi + 8] */ 135 esi = MEM32(edi + 0x4); /* 0x30009088: mov esi, dword ptr [edi + 4] */ 136 /* cmp esi, ebx */ /* 0x3000908B: cmp esi, ebx */ 137 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 139 _flag_k = FK_CMP; 140 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000909D; /* 0x3000908D: je 0x3000909d */ 141 L_3000908F: 142 ecx = esi; /* 0x3000908F: mov ecx, esi */ 143 RECOMP_ICALL(0x3000E970u); /* 0x30009091: call 0x3000e970 */ /* not lifted */ 144 RECOMP_FLAGS_IN(); 145 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u); 146 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 147 esi = esi + 0x28u; /* 0x30009096: add esi, 0x28 */ 148 _flag_k = FK_ADD; 149 /* cmp esi, ebx */ /* 0x30009099: cmp esi, ebx */ 150 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 152 _flag_k = FK_CMP; 153 RECOMP_BACKEDGE(); 154 if (CMP_NE(_flag_a, _flag_b)) goto L_3000908F; /* 0x3000909B: jne 0x3000908f */ 155 L_3000909D: 156 eax = MEM32(edi + 0x4); /* 0x3000909D: mov eax, dword ptr [edi + 4] */ 157 PUSH32(esp, eax); /* 0x300090A0: push eax */ 158 RECOMP_ICALL(0x30018080u); /* 0x300090A1: call 0x30018080 */ /* not lifted */ 159 RECOMP_FLAGS_IN(); 160 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 161 eax = 0; /* 0x300090A6: xor eax, eax */ 162 _cf = 0; 163 _flag_k = FK_TEST; 164 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 165 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 166 esp = esp + 4; /* 0x300090A8: add esp, 4 */ 167 _flag_k = FK_ADD; 168 MEM32(edi + 0x4) = eax; /* 0x300090AB: mov dword ptr [edi + 4], eax */ 169 MEM32(edi + 0x8) = eax; /* 0x300090AE: mov dword ptr [edi + 8], eax */ 170 MEM32(edi + 0xC) = eax; /* 0x300090B1: mov dword ptr [edi + 0xc], eax */ 171 edi = POP32_VAL(esp); /* 0x300090B4: pop edi */ 172 esi = POP32_VAL(esp); /* 0x300090B5: pop esi */ 173 ebx = POP32_VAL(esp); /* 0x300090B6: pop ebx */ 174 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300090B7: ret */ 175 L_3001878B: 176 ecx = ebp + (-0x1C); /* 0x3001878B: lea ecx, [ebp - 0x1c] */ 177 RECOMP_BACKEDGE(); 178 goto L_30009080; /* 0x3001878E: jmp 0x30009080 */ 179 { RECOMP_REGS_OUT(); return; } /* end of function */ 180 RECOMP_REGS_OUT(); 181 } 182 183 void sub_30018793(void) { 184 int _fpu_cmp = 0; 185 uint32_t _cf = 0; 186 int _df = 1; 187 uint32_t _flag_k = FK_NONE; 188 uint32_t _flag_a = 0, _flag_b = 0; 189 uint32_t _itail_tgt = 0; 190 RECOMP_REGS_LOCALS 191 RECOMP_ENTER(0x30018793u); 192 193 L_30018793: 194 ecx = ebp + (-0x90); /* 0x30018793: lea ecx, [ebp - 0x90] */ 195 L_30018799: 196 { _itail_tgt = (uint32_t)(MEM32(0x30019088)); goto _ljump; } 197 { RECOMP_REGS_OUT(); return; } /* end of function */ 198 _ljump: 199 switch (_itail_tgt) { 200 case 0x30018793u: goto L_30018793; 201 case 0x30018799u: goto L_30018799; 202 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 203 } 204 RECOMP_REGS_OUT(); 205 } 206 207 void sub_3001879F(void) { 208 int _fpu_cmp = 0; 209 uint32_t _cf = 0; 210 int _df = 1; 211 uint32_t _flag_k = FK_NONE; 212 uint32_t _flag_a = 0, _flag_b = 0; 213 uint32_t _itail_tgt = 0; 214 RECOMP_REGS_LOCALS 215 RECOMP_ENTER(0x3001879Fu); 216 217 L_3001879F: 218 eax = MEM32(ebp + 0x8); /* 0x3001879F: mov eax, dword ptr [ebp + 8] */ 219 PUSH32(esp, eax); /* 0x300187A2: push eax */ 220 RECOMP_ICALL(0x30018080u); /* 0x300187A3: call 0x30018080 */ /* not lifted */ 221 RECOMP_FLAGS_IN(); 222 ecx = POP32_VAL(esp); /* 0x300187A8: pop ecx */ 223 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300187A9: ret */ 224 RECOMP_REGS_OUT(); 225 } 226 227 void sub_300187AA(void) { 228 int _fpu_cmp = 0; 229 uint32_t _cf = 0; 230 int _df = 1; 231 uint32_t _flag_k = FK_NONE; 232 uint32_t _flag_a = 0, _flag_b = 0; 233 uint32_t _itail_tgt = 0; 234 RECOMP_REGS_LOCALS 235 RECOMP_ENTER(0x300187AAu); 236 237 goto L_300187AA; 238 L_300180AE: 239 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 240 L_300187AA: 241 eax = 0x30019CF0u; /* 0x300187AA: mov eax, 0x30019cf0 */ 242 L_300187AF: 243 RECOMP_BACKEDGE(); 244 goto L_300180AE; /* 0x300187AF: jmp 0x300180ae */ 245 { RECOMP_REGS_OUT(); return; } /* end of function */ 246 _ljump: 247 switch (_itail_tgt) { 248 case 0x300180AEu: goto L_300180AE; 249 case 0x300187AAu: goto L_300187AA; 250 case 0x300187AFu: goto L_300187AF; 251 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 252 } 253 RECOMP_REGS_OUT(); 254 } 255 256 void sub_300187C0(void) { 257 int _fpu_cmp = 0; 258 uint32_t _cf = 0; 259 int _df = 1; 260 uint32_t _flag_k = FK_NONE; 261 uint32_t _flag_a = 0, _flag_b = 0; 262 uint32_t _itail_tgt = 0; 263 RECOMP_REGS_LOCALS 264 RECOMP_ENTER(0x300187C0u); 265 266 L_300187C0: 267 eax = MEM32(ebp + 0x8); /* 0x300187C0: mov eax, dword ptr [ebp + 8] */ 268 PUSH32(esp, eax); /* 0x300187C3: push eax */ 269 ecx = MEM32(ebp + (-0x10)); /* 0x300187C4: mov ecx, dword ptr [ebp - 0x10] */ 270 PUSH32(esp, ecx); /* 0x300187C7: push ecx */ 271 RECOMP_ICALL(0x30001AC0u); /* 0x300187C8: call 0x30001ac0 */ /* not lifted */ 272 RECOMP_FLAGS_IN(); 273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 275 esp = esp + 8; /* 0x300187CD: add esp, 8 */ 276 _flag_k = FK_ADD; 277 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300187D0: ret */ 278 RECOMP_REGS_OUT(); 279 } 280 281 void sub_300187D1(void) { 282 int _fpu_cmp = 0; 283 uint32_t _cf = 0; 284 int _df = 1; 285 uint32_t _flag_k = FK_NONE; 286 uint32_t _flag_a = 0, _flag_b = 0; 287 uint32_t _itail_tgt = 0; 288 RECOMP_REGS_LOCALS 289 RECOMP_ENTER(0x300187D1u); 290 291 goto L_300187D1; 292 L_300180AE: 293 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 294 L_300187D1: 295 eax = 0x30019D48u; /* 0x300187D1: mov eax, 0x30019d48 */ 296 L_300187D6: 297 RECOMP_BACKEDGE(); 298 goto L_300180AE; /* 0x300187D6: jmp 0x300180ae */ 299 { RECOMP_REGS_OUT(); return; } /* end of function */ 300 _ljump: 301 switch (_itail_tgt) { 302 case 0x300180AEu: goto L_300180AE; 303 case 0x300187D1u: goto L_300187D1; 304 case 0x300187D6u: goto L_300187D6; 305 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 306 } 307 RECOMP_REGS_OUT(); 308 } 309 310 void sub_300187E0(void) { 311 int _fpu_cmp = 0; 312 uint32_t _cf = 0; 313 int _df = 1; 314 uint32_t _flag_k = FK_NONE; 315 uint32_t _flag_a = 0, _flag_b = 0; 316 uint32_t _itail_tgt = 0; 317 RECOMP_REGS_LOCALS 318 RECOMP_ENTER(0x300187E0u); 319 320 L_300187E0: 321 eax = MEM32(ebp + (-0x10)); /* 0x300187E0: mov eax, dword ptr [ebp - 0x10] */ 322 PUSH32(esp, eax); /* 0x300187E3: push eax */ 323 RECOMP_ICALL(0x30018080u); /* 0x300187E4: call 0x30018080 */ /* not lifted */ 324 RECOMP_FLAGS_IN(); 325 ecx = POP32_VAL(esp); /* 0x300187E9: pop ecx */ 326 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300187EA: ret */ 327 RECOMP_REGS_OUT(); 328 } 329 330 void sub_300187EB(void) { 331 int _fpu_cmp = 0; 332 uint32_t _cf = 0; 333 int _df = 1; 334 uint32_t _flag_k = FK_NONE; 335 uint32_t _flag_a = 0, _flag_b = 0; 336 uint32_t _itail_tgt = 0; 337 RECOMP_REGS_LOCALS 338 RECOMP_ENTER(0x300187EBu); 339 340 goto L_300187EB; 341 L_300180AE: 342 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 343 L_300187EB: 344 eax = 0x30019D70u; /* 0x300187EB: mov eax, 0x30019d70 */ 345 L_300187F0: 346 RECOMP_BACKEDGE(); 347 goto L_300180AE; /* 0x300187F0: jmp 0x300180ae */ 348 { RECOMP_REGS_OUT(); return; } /* end of function */ 349 _ljump: 350 switch (_itail_tgt) { 351 case 0x300180AEu: goto L_300180AE; 352 case 0x300187EBu: goto L_300187EB; 353 case 0x300187F0u: goto L_300187F0; 354 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 355 } 356 RECOMP_REGS_OUT(); 357 } 358 359 void sub_30018800(void) { 360 int _fpu_cmp = 0; 361 uint32_t _cf = 0; 362 int _df = 1; 363 uint32_t _flag_k = FK_NONE; 364 uint32_t _flag_a = 0, _flag_b = 0; 365 uint32_t _itail_tgt = 0; 366 RECOMP_REGS_LOCALS 367 RECOMP_ENTER(0x30018800u); 368 369 L_30018800: 370 eax = MEM32(ebp + (-0x10)); /* 0x30018800: mov eax, dword ptr [ebp - 0x10] */ 371 PUSH32(esp, eax); /* 0x30018803: push eax */ 372 RECOMP_ICALL(0x30018080u); /* 0x30018804: call 0x30018080 */ /* not lifted */ 373 RECOMP_FLAGS_IN(); 374 ecx = POP32_VAL(esp); /* 0x30018809: pop ecx */ 375 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3001880A: ret */ 376 RECOMP_REGS_OUT(); 377 } 378 379 void sub_3001880B(void) { 380 int _fpu_cmp = 0; 381 uint32_t _cf = 0; 382 int _df = 1; 383 uint32_t _flag_k = FK_NONE; 384 uint32_t _flag_a = 0, _flag_b = 0; 385 uint32_t _itail_tgt = 0; 386 RECOMP_REGS_LOCALS 387 RECOMP_ENTER(0x3001880Bu); 388 389 goto L_3001880B; 390 L_300180AE: 391 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 392 L_3001880B: 393 eax = 0x30019D98u; /* 0x3001880B: mov eax, 0x30019d98 */ 394 L_30018810: 395 RECOMP_BACKEDGE(); 396 goto L_300180AE; /* 0x30018810: jmp 0x300180ae */ 397 { RECOMP_REGS_OUT(); return; } /* end of function */ 398 _ljump: 399 switch (_itail_tgt) { 400 case 0x300180AEu: goto L_300180AE; 401 case 0x3001880Bu: goto L_3001880B; 402 case 0x30018810u: goto L_30018810; 403 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 404 } 405 RECOMP_REGS_OUT(); 406 } 407 408 void sub_30018820(void) { 409 int _fpu_cmp = 0; 410 uint32_t _cf = 0; 411 int _df = 1; 412 uint32_t _flag_k = FK_NONE; 413 uint32_t _flag_a = 0, _flag_b = 0; 414 uint32_t _itail_tgt = 0; 415 RECOMP_REGS_LOCALS 416 RECOMP_ENTER(0x30018820u); 417 418 goto L_30018820; 419 L_30007AB0: 420 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 421 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 422 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 423 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 424 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 425 RECOMP_FLAGS_IN(); 426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 428 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 429 _flag_k = FK_ADD; 430 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 431 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 432 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 433 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 434 L_30018820: 435 ecx = ebp + (-0x84); /* 0x30018820: lea ecx, [ebp - 0x84] */ 436 RECOMP_BACKEDGE(); 437 goto L_30007AB0; /* 0x30018826: jmp 0x30007ab0 */ 438 { RECOMP_REGS_OUT(); return; } /* end of function */ 439 RECOMP_REGS_OUT(); 440 } 441 442 void sub_3001882B(void) { 443 int _fpu_cmp = 0; 444 uint32_t _cf = 0; 445 int _df = 1; 446 uint32_t _flag_k = FK_NONE; 447 uint32_t _flag_a = 0, _flag_b = 0; 448 uint32_t _itail_tgt = 0; 449 RECOMP_REGS_LOCALS 450 RECOMP_ENTER(0x3001882Bu); 451 452 goto L_3001882B; 453 L_30007AB0: 454 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 455 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 456 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 457 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 458 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 459 RECOMP_FLAGS_IN(); 460 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 461 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 462 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 463 _flag_k = FK_ADD; 464 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 465 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 466 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 467 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 468 L_3001882B: 469 ecx = ebp + (-0x70); /* 0x3001882B: lea ecx, [ebp - 0x70] */ 470 RECOMP_BACKEDGE(); 471 goto L_30007AB0; /* 0x3001882E: jmp 0x30007ab0 */ 472 { RECOMP_REGS_OUT(); return; } /* end of function */ 473 RECOMP_REGS_OUT(); 474 } 475 476 void sub_30018833(void) { 477 int _fpu_cmp = 0; 478 uint32_t _cf = 0; 479 int _df = 1; 480 uint32_t _flag_k = FK_NONE; 481 uint32_t _flag_a = 0, _flag_b = 0; 482 uint32_t _itail_tgt = 0; 483 RECOMP_REGS_LOCALS 484 RECOMP_ENTER(0x30018833u); 485 486 goto L_30018833; 487 L_300180AE: 488 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 489 L_30018833: 490 eax = 0x30019DC0u; /* 0x30018833: mov eax, 0x30019dc0 */ 491 L_30018838: 492 RECOMP_BACKEDGE(); 493 goto L_300180AE; /* 0x30018838: jmp 0x300180ae */ 494 { RECOMP_REGS_OUT(); return; } /* end of function */ 495 _ljump: 496 switch (_itail_tgt) { 497 case 0x300180AEu: goto L_300180AE; 498 case 0x30018833u: goto L_30018833; 499 case 0x30018838u: goto L_30018838; 500 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 501 } 502 RECOMP_REGS_OUT(); 503 } 504 505 void sub_30018840(void) { 506 int _fpu_cmp = 0; 507 uint32_t _cf = 0; 508 int _df = 1; 509 uint32_t _flag_k = FK_NONE; 510 uint32_t _flag_a = 0, _flag_b = 0; 511 uint32_t _itail_tgt = 0; 512 RECOMP_REGS_LOCALS 513 RECOMP_ENTER(0x30018840u); 514 515 goto L_30018840; 516 L_30002B80: 517 PUSH32(esp, ebx); /* 0x30002B80: push ebx */ 518 PUSH32(esp, esi); /* 0x30002B81: push esi */ 519 PUSH32(esp, edi); /* 0x30002B82: push edi */ 520 edi = ecx; /* 0x30002B83: mov edi, ecx */ 521 ebx = MEM32(edi + 0x8); /* 0x30002B85: mov ebx, dword ptr [edi + 8] */ 522 esi = MEM32(edi + 0x4); /* 0x30002B88: mov esi, dword ptr [edi + 4] */ 523 /* cmp esi, ebx */ /* 0x30002B8B: cmp esi, ebx */ 524 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 526 _flag_k = FK_CMP; 527 if (CMP_EQ(_flag_a, _flag_b)) goto L_30002B9D; /* 0x30002B8D: je 0x30002b9d */ 528 L_30002B8F: 529 ecx = esi; /* 0x30002B8F: mov ecx, esi */ 530 RECOMP_ICALL(0x30007AB0u); /* 0x30002B91: call 0x30007ab0 */ /* not lifted */ 531 RECOMP_FLAGS_IN(); 532 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 533 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 534 esi = esi + 0x14u; /* 0x30002B96: add esi, 0x14 */ 535 _flag_k = FK_ADD; 536 /* cmp esi, ebx */ /* 0x30002B99: cmp esi, ebx */ 537 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 539 _flag_k = FK_CMP; 540 RECOMP_BACKEDGE(); 541 if (CMP_NE(_flag_a, _flag_b)) goto L_30002B8F; /* 0x30002B9B: jne 0x30002b8f */ 542 L_30002B9D: 543 eax = MEM32(edi + 0x4); /* 0x30002B9D: mov eax, dword ptr [edi + 4] */ 544 PUSH32(esp, eax); /* 0x30002BA0: push eax */ 545 RECOMP_ICALL(0x30018080u); /* 0x30002BA1: call 0x30018080 */ /* not lifted */ 546 RECOMP_FLAGS_IN(); 547 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 548 eax = 0; /* 0x30002BA6: xor eax, eax */ 549 _cf = 0; 550 _flag_k = FK_TEST; 551 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 553 esp = esp + 4; /* 0x30002BA8: add esp, 4 */ 554 _flag_k = FK_ADD; 555 MEM32(edi + 0x4) = eax; /* 0x30002BAB: mov dword ptr [edi + 4], eax */ 556 MEM32(edi + 0x8) = eax; /* 0x30002BAE: mov dword ptr [edi + 8], eax */ 557 MEM32(edi + 0xC) = eax; /* 0x30002BB1: mov dword ptr [edi + 0xc], eax */ 558 edi = POP32_VAL(esp); /* 0x30002BB4: pop edi */ 559 esi = POP32_VAL(esp); /* 0x30002BB5: pop esi */ 560 ebx = POP32_VAL(esp); /* 0x30002BB6: pop ebx */ 561 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30002BB7: ret */ 562 L_30018840: 563 ecx = MEM32(ebp + (-0x14)); /* 0x30018840: mov ecx, dword ptr [ebp - 0x14] */ 564 RECOMP_BACKEDGE(); 565 goto L_30002B80; /* 0x30018843: jmp 0x30002b80 */ 566 { RECOMP_REGS_OUT(); return; } /* end of function */ 567 RECOMP_REGS_OUT(); 568 } 569 570 void sub_30018848(void) { 571 int _fpu_cmp = 0; 572 uint32_t _cf = 0; 573 int _df = 1; 574 uint32_t _flag_k = FK_NONE; 575 uint32_t _flag_a = 0, _flag_b = 0; 576 uint32_t _itail_tgt = 0; 577 RECOMP_REGS_LOCALS 578 RECOMP_ENTER(0x30018848u); 579 580 goto L_30018848; 581 L_300180AE: 582 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 583 L_30018848: 584 eax = 0x30019DF0u; /* 0x30018848: mov eax, 0x30019df0 */ 585 L_3001884D: 586 RECOMP_BACKEDGE(); 587 goto L_300180AE; /* 0x3001884D: jmp 0x300180ae */ 588 { RECOMP_REGS_OUT(); return; } /* end of function */ 589 _ljump: 590 switch (_itail_tgt) { 591 case 0x300180AEu: goto L_300180AE; 592 case 0x30018848u: goto L_30018848; 593 case 0x3001884Du: goto L_3001884D; 594 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 595 } 596 RECOMP_REGS_OUT(); 597 } 598 599 void sub_30018860(void) { 600 int _fpu_cmp = 0; 601 uint32_t _cf = 0; 602 int _df = 1; 603 uint32_t _flag_k = FK_NONE; 604 uint32_t _flag_a = 0, _flag_b = 0; 605 uint32_t _itail_tgt = 0; 606 RECOMP_REGS_LOCALS 607 RECOMP_ENTER(0x30018860u); 608 609 goto L_30018860; 610 L_30002B80: 611 PUSH32(esp, ebx); /* 0x30002B80: push ebx */ 612 PUSH32(esp, esi); /* 0x30002B81: push esi */ 613 PUSH32(esp, edi); /* 0x30002B82: push edi */ 614 edi = ecx; /* 0x30002B83: mov edi, ecx */ 615 ebx = MEM32(edi + 0x8); /* 0x30002B85: mov ebx, dword ptr [edi + 8] */ 616 esi = MEM32(edi + 0x4); /* 0x30002B88: mov esi, dword ptr [edi + 4] */ 617 /* cmp esi, ebx */ /* 0x30002B8B: cmp esi, ebx */ 618 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 620 _flag_k = FK_CMP; 621 if (CMP_EQ(_flag_a, _flag_b)) goto L_30002B9D; /* 0x30002B8D: je 0x30002b9d */ 622 L_30002B8F: 623 ecx = esi; /* 0x30002B8F: mov ecx, esi */ 624 RECOMP_ICALL(0x30007AB0u); /* 0x30002B91: call 0x30007ab0 */ /* not lifted */ 625 RECOMP_FLAGS_IN(); 626 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 627 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 628 esi = esi + 0x14u; /* 0x30002B96: add esi, 0x14 */ 629 _flag_k = FK_ADD; 630 /* cmp esi, ebx */ /* 0x30002B99: cmp esi, ebx */ 631 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 633 _flag_k = FK_CMP; 634 RECOMP_BACKEDGE(); 635 if (CMP_NE(_flag_a, _flag_b)) goto L_30002B8F; /* 0x30002B9B: jne 0x30002b8f */ 636 L_30002B9D: 637 eax = MEM32(edi + 0x4); /* 0x30002B9D: mov eax, dword ptr [edi + 4] */ 638 PUSH32(esp, eax); /* 0x30002BA0: push eax */ 639 RECOMP_ICALL(0x30018080u); /* 0x30002BA1: call 0x30018080 */ /* not lifted */ 640 RECOMP_FLAGS_IN(); 641 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 642 eax = 0; /* 0x30002BA6: xor eax, eax */ 643 _cf = 0; 644 _flag_k = FK_TEST; 645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 647 esp = esp + 4; /* 0x30002BA8: add esp, 4 */ 648 _flag_k = FK_ADD; 649 MEM32(edi + 0x4) = eax; /* 0x30002BAB: mov dword ptr [edi + 4], eax */ 650 MEM32(edi + 0x8) = eax; /* 0x30002BAE: mov dword ptr [edi + 8], eax */ 651 MEM32(edi + 0xC) = eax; /* 0x30002BB1: mov dword ptr [edi + 0xc], eax */ 652 edi = POP32_VAL(esp); /* 0x30002BB4: pop edi */ 653 esi = POP32_VAL(esp); /* 0x30002BB5: pop esi */ 654 ebx = POP32_VAL(esp); /* 0x30002BB6: pop ebx */ 655 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30002BB7: ret */ 656 L_30018860: 657 ecx = MEM32(ebp + (-0x14)); /* 0x30018860: mov ecx, dword ptr [ebp - 0x14] */ 658 RECOMP_BACKEDGE(); 659 goto L_30002B80; /* 0x30018863: jmp 0x30002b80 */ 660 { RECOMP_REGS_OUT(); return; } /* end of function */ 661 RECOMP_REGS_OUT(); 662 } 663 664 void sub_30018868(void) { 665 int _fpu_cmp = 0; 666 uint32_t _cf = 0; 667 int _df = 1; 668 uint32_t _flag_k = FK_NONE; 669 uint32_t _flag_a = 0, _flag_b = 0; 670 uint32_t _itail_tgt = 0; 671 RECOMP_REGS_LOCALS 672 RECOMP_ENTER(0x30018868u); 673 674 goto L_30018868; 675 L_300180AE: 676 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 677 L_30018868: 678 eax = 0x30019E18u; /* 0x30018868: mov eax, 0x30019e18 */ 679 L_3001886D: 680 RECOMP_BACKEDGE(); 681 goto L_300180AE; /* 0x3001886D: jmp 0x300180ae */ 682 { RECOMP_REGS_OUT(); return; } /* end of function */ 683 _ljump: 684 switch (_itail_tgt) { 685 case 0x300180AEu: goto L_300180AE; 686 case 0x30018868u: goto L_30018868; 687 case 0x3001886Du: goto L_3001886D; 688 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 689 } 690 RECOMP_REGS_OUT(); 691 } 692 693 void sub_30018880(void) { 694 int _fpu_cmp = 0; 695 uint32_t _cf = 0; 696 int _df = 1; 697 uint32_t _flag_k = FK_NONE; 698 uint32_t _flag_a = 0, _flag_b = 0; 699 uint32_t _itail_tgt = 0; 700 RECOMP_REGS_LOCALS 701 RECOMP_ENTER(0x30018880u); 702 703 goto L_30018880; 704 L_30002B80: 705 PUSH32(esp, ebx); /* 0x30002B80: push ebx */ 706 PUSH32(esp, esi); /* 0x30002B81: push esi */ 707 PUSH32(esp, edi); /* 0x30002B82: push edi */ 708 edi = ecx; /* 0x30002B83: mov edi, ecx */ 709 ebx = MEM32(edi + 0x8); /* 0x30002B85: mov ebx, dword ptr [edi + 8] */ 710 esi = MEM32(edi + 0x4); /* 0x30002B88: mov esi, dword ptr [edi + 4] */ 711 /* cmp esi, ebx */ /* 0x30002B8B: cmp esi, ebx */ 712 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 714 _flag_k = FK_CMP; 715 if (CMP_EQ(_flag_a, _flag_b)) goto L_30002B9D; /* 0x30002B8D: je 0x30002b9d */ 716 L_30002B8F: 717 ecx = esi; /* 0x30002B8F: mov ecx, esi */ 718 RECOMP_ICALL(0x30007AB0u); /* 0x30002B91: call 0x30007ab0 */ /* not lifted */ 719 RECOMP_FLAGS_IN(); 720 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 722 esi = esi + 0x14u; /* 0x30002B96: add esi, 0x14 */ 723 _flag_k = FK_ADD; 724 /* cmp esi, ebx */ /* 0x30002B99: cmp esi, ebx */ 725 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 727 _flag_k = FK_CMP; 728 RECOMP_BACKEDGE(); 729 if (CMP_NE(_flag_a, _flag_b)) goto L_30002B8F; /* 0x30002B9B: jne 0x30002b8f */ 730 L_30002B9D: 731 eax = MEM32(edi + 0x4); /* 0x30002B9D: mov eax, dword ptr [edi + 4] */ 732 PUSH32(esp, eax); /* 0x30002BA0: push eax */ 733 RECOMP_ICALL(0x30018080u); /* 0x30002BA1: call 0x30018080 */ /* not lifted */ 734 RECOMP_FLAGS_IN(); 735 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 736 eax = 0; /* 0x30002BA6: xor eax, eax */ 737 _cf = 0; 738 _flag_k = FK_TEST; 739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 741 esp = esp + 4; /* 0x30002BA8: add esp, 4 */ 742 _flag_k = FK_ADD; 743 MEM32(edi + 0x4) = eax; /* 0x30002BAB: mov dword ptr [edi + 4], eax */ 744 MEM32(edi + 0x8) = eax; /* 0x30002BAE: mov dword ptr [edi + 8], eax */ 745 MEM32(edi + 0xC) = eax; /* 0x30002BB1: mov dword ptr [edi + 0xc], eax */ 746 edi = POP32_VAL(esp); /* 0x30002BB4: pop edi */ 747 esi = POP32_VAL(esp); /* 0x30002BB5: pop esi */ 748 ebx = POP32_VAL(esp); /* 0x30002BB6: pop ebx */ 749 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30002BB7: ret */ 750 L_30018880: 751 ecx = MEM32(ebp + (-0x10)); /* 0x30018880: mov ecx, dword ptr [ebp - 0x10] */ 752 RECOMP_BACKEDGE(); 753 goto L_30002B80; /* 0x30018883: jmp 0x30002b80 */ 754 { RECOMP_REGS_OUT(); return; } /* end of function */ 755 RECOMP_REGS_OUT(); 756 } 757 758 void sub_30018888(void) { 759 int _fpu_cmp = 0; 760 uint32_t _cf = 0; 761 int _df = 1; 762 uint32_t _flag_k = FK_NONE; 763 uint32_t _flag_a = 0, _flag_b = 0; 764 uint32_t _itail_tgt = 0; 765 RECOMP_REGS_LOCALS 766 RECOMP_ENTER(0x30018888u); 767 768 goto L_30018888; 769 L_300180AE: 770 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 771 L_30018888: 772 eax = 0x30019E40u; /* 0x30018888: mov eax, 0x30019e40 */ 773 L_3001888D: 774 RECOMP_BACKEDGE(); 775 goto L_300180AE; /* 0x3001888D: jmp 0x300180ae */ 776 { RECOMP_REGS_OUT(); return; } /* end of function */ 777 _ljump: 778 switch (_itail_tgt) { 779 case 0x300180AEu: goto L_300180AE; 780 case 0x30018888u: goto L_30018888; 781 case 0x3001888Du: goto L_3001888D; 782 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 783 } 784 RECOMP_REGS_OUT(); 785 } 786 787 void sub_300188A0(void) { 788 int _fpu_cmp = 0; 789 uint32_t _cf = 0; 790 int _df = 1; 791 uint32_t _flag_k = FK_NONE; 792 uint32_t _flag_a = 0, _flag_b = 0; 793 uint32_t _itail_tgt = 0; 794 RECOMP_REGS_LOCALS 795 RECOMP_ENTER(0x300188A0u); 796 797 goto L_300188A0; 798 L_30002B80: 799 PUSH32(esp, ebx); /* 0x30002B80: push ebx */ 800 PUSH32(esp, esi); /* 0x30002B81: push esi */ 801 PUSH32(esp, edi); /* 0x30002B82: push edi */ 802 edi = ecx; /* 0x30002B83: mov edi, ecx */ 803 ebx = MEM32(edi + 0x8); /* 0x30002B85: mov ebx, dword ptr [edi + 8] */ 804 esi = MEM32(edi + 0x4); /* 0x30002B88: mov esi, dword ptr [edi + 4] */ 805 /* cmp esi, ebx */ /* 0x30002B8B: cmp esi, ebx */ 806 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 808 _flag_k = FK_CMP; 809 if (CMP_EQ(_flag_a, _flag_b)) goto L_30002B9D; /* 0x30002B8D: je 0x30002b9d */ 810 L_30002B8F: 811 ecx = esi; /* 0x30002B8F: mov ecx, esi */ 812 RECOMP_ICALL(0x30007AB0u); /* 0x30002B91: call 0x30007ab0 */ /* not lifted */ 813 RECOMP_FLAGS_IN(); 814 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 815 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 816 esi = esi + 0x14u; /* 0x30002B96: add esi, 0x14 */ 817 _flag_k = FK_ADD; 818 /* cmp esi, ebx */ /* 0x30002B99: cmp esi, ebx */ 819 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 821 _flag_k = FK_CMP; 822 RECOMP_BACKEDGE(); 823 if (CMP_NE(_flag_a, _flag_b)) goto L_30002B8F; /* 0x30002B9B: jne 0x30002b8f */ 824 L_30002B9D: 825 eax = MEM32(edi + 0x4); /* 0x30002B9D: mov eax, dword ptr [edi + 4] */ 826 PUSH32(esp, eax); /* 0x30002BA0: push eax */ 827 RECOMP_ICALL(0x30018080u); /* 0x30002BA1: call 0x30018080 */ /* not lifted */ 828 RECOMP_FLAGS_IN(); 829 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 830 eax = 0; /* 0x30002BA6: xor eax, eax */ 831 _cf = 0; 832 _flag_k = FK_TEST; 833 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 834 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 835 esp = esp + 4; /* 0x30002BA8: add esp, 4 */ 836 _flag_k = FK_ADD; 837 MEM32(edi + 0x4) = eax; /* 0x30002BAB: mov dword ptr [edi + 4], eax */ 838 MEM32(edi + 0x8) = eax; /* 0x30002BAE: mov dword ptr [edi + 8], eax */ 839 MEM32(edi + 0xC) = eax; /* 0x30002BB1: mov dword ptr [edi + 0xc], eax */ 840 edi = POP32_VAL(esp); /* 0x30002BB4: pop edi */ 841 esi = POP32_VAL(esp); /* 0x30002BB5: pop esi */ 842 ebx = POP32_VAL(esp); /* 0x30002BB6: pop ebx */ 843 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30002BB7: ret */ 844 L_300188A0: 845 ecx = MEM32(ebp + (-0x10)); /* 0x300188A0: mov ecx, dword ptr [ebp - 0x10] */ 846 RECOMP_BACKEDGE(); 847 goto L_30002B80; /* 0x300188A3: jmp 0x30002b80 */ 848 { RECOMP_REGS_OUT(); return; } /* end of function */ 849 RECOMP_REGS_OUT(); 850 } 851 852 void sub_300188A8(void) { 853 int _fpu_cmp = 0; 854 uint32_t _cf = 0; 855 int _df = 1; 856 uint32_t _flag_k = FK_NONE; 857 uint32_t _flag_a = 0, _flag_b = 0; 858 uint32_t _itail_tgt = 0; 859 RECOMP_REGS_LOCALS 860 RECOMP_ENTER(0x300188A8u); 861 862 goto L_300188A8; 863 L_300180AE: 864 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 865 L_300188A8: 866 eax = 0x30019E68u; /* 0x300188A8: mov eax, 0x30019e68 */ 867 L_300188AD: 868 RECOMP_BACKEDGE(); 869 goto L_300180AE; /* 0x300188AD: jmp 0x300180ae */ 870 { RECOMP_REGS_OUT(); return; } /* end of function */ 871 _ljump: 872 switch (_itail_tgt) { 873 case 0x300180AEu: goto L_300180AE; 874 case 0x300188A8u: goto L_300188A8; 875 case 0x300188ADu: goto L_300188AD; 876 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 877 } 878 RECOMP_REGS_OUT(); 879 } 880 881 void sub_300188C0(void) { 882 int _fpu_cmp = 0; 883 uint32_t _cf = 0; 884 int _df = 1; 885 uint32_t _flag_k = FK_NONE; 886 uint32_t _flag_a = 0, _flag_b = 0; 887 uint32_t _itail_tgt = 0; 888 RECOMP_REGS_LOCALS 889 RECOMP_ENTER(0x300188C0u); 890 891 goto L_300188C0; 892 L_30007AB0: 893 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 894 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 895 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 896 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 897 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 898 RECOMP_FLAGS_IN(); 899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 901 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 902 _flag_k = FK_ADD; 903 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 904 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 905 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 906 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 907 L_300188C0: 908 ecx = ebp + (-0x64); /* 0x300188C0: lea ecx, [ebp - 0x64] */ 909 RECOMP_BACKEDGE(); 910 goto L_30007AB0; /* 0x300188C3: jmp 0x30007ab0 */ 911 { RECOMP_REGS_OUT(); return; } /* end of function */ 912 RECOMP_REGS_OUT(); 913 } 914 915 void sub_300188C8(void) { 916 int _fpu_cmp = 0; 917 uint32_t _cf = 0; 918 int _df = 1; 919 uint32_t _flag_k = FK_NONE; 920 uint32_t _flag_a = 0, _flag_b = 0; 921 uint32_t _itail_tgt = 0; 922 RECOMP_REGS_LOCALS 923 RECOMP_ENTER(0x300188C8u); 924 925 goto L_300188C8; 926 L_30007AB0: 927 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 928 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 929 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 930 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 931 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 932 RECOMP_FLAGS_IN(); 933 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 935 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 936 _flag_k = FK_ADD; 937 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 938 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 939 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 940 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 941 L_300188C8: 942 ecx = ebp + (-0x50); /* 0x300188C8: lea ecx, [ebp - 0x50] */ 943 RECOMP_BACKEDGE(); 944 goto L_30007AB0; /* 0x300188CB: jmp 0x30007ab0 */ 945 { RECOMP_REGS_OUT(); return; } /* end of function */ 946 RECOMP_REGS_OUT(); 947 } 948 949 void sub_300188D0(void) { 950 int _fpu_cmp = 0; 951 uint32_t _cf = 0; 952 int _df = 1; 953 uint32_t _flag_k = FK_NONE; 954 uint32_t _flag_a = 0, _flag_b = 0; 955 uint32_t _itail_tgt = 0; 956 RECOMP_REGS_LOCALS 957 RECOMP_ENTER(0x300188D0u); 958 959 goto L_300188D0; 960 L_300180AE: 961 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 962 L_300188D0: 963 eax = 0x30019E90u; /* 0x300188D0: mov eax, 0x30019e90 */ 964 L_300188D5: 965 RECOMP_BACKEDGE(); 966 goto L_300180AE; /* 0x300188D5: jmp 0x300180ae */ 967 { RECOMP_REGS_OUT(); return; } /* end of function */ 968 _ljump: 969 switch (_itail_tgt) { 970 case 0x300180AEu: goto L_300180AE; 971 case 0x300188D0u: goto L_300188D0; 972 case 0x300188D5u: goto L_300188D5; 973 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 974 } 975 RECOMP_REGS_OUT(); 976 } 977 978 void sub_300188E0(void) { 979 int _fpu_cmp = 0; 980 uint32_t _cf = 0; 981 int _df = 1; 982 uint32_t _flag_k = FK_NONE; 983 uint32_t _flag_a = 0, _flag_b = 0; 984 uint32_t _itail_tgt = 0; 985 RECOMP_REGS_LOCALS 986 RECOMP_ENTER(0x300188E0u); 987 988 goto L_300188E0; 989 L_30007AB0: 990 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 991 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 992 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 993 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 994 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 995 RECOMP_FLAGS_IN(); 996 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 997 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 998 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 999 _flag_k = FK_ADD; 1000 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1001 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1002 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1003 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1004 L_300188E0: 1005 ecx = ebp + (-0x3C); /* 0x300188E0: lea ecx, [ebp - 0x3c] */ 1006 RECOMP_BACKEDGE(); 1007 goto L_30007AB0; /* 0x300188E3: jmp 0x30007ab0 */ 1008 { RECOMP_REGS_OUT(); return; } /* end of function */ 1009 RECOMP_REGS_OUT(); 1010 } 1011 1012 void sub_300188E8(void) { 1013 int _fpu_cmp = 0; 1014 uint32_t _cf = 0; 1015 int _df = 1; 1016 uint32_t _flag_k = FK_NONE; 1017 uint32_t _flag_a = 0, _flag_b = 0; 1018 uint32_t _itail_tgt = 0; 1019 RECOMP_REGS_LOCALS 1020 RECOMP_ENTER(0x300188E8u); 1021 1022 goto L_300188E8; 1023 L_30007AB0: 1024 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1025 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1026 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1027 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1028 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1029 RECOMP_FLAGS_IN(); 1030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1032 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1033 _flag_k = FK_ADD; 1034 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1035 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1036 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1037 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1038 L_300188E8: 1039 ecx = ebp + (-0x29C); /* 0x300188E8: lea ecx, [ebp - 0x29c] */ 1040 RECOMP_BACKEDGE(); 1041 goto L_30007AB0; /* 0x300188EE: jmp 0x30007ab0 */ 1042 { RECOMP_REGS_OUT(); return; } /* end of function */ 1043 RECOMP_REGS_OUT(); 1044 } 1045 1046 void sub_300188F3(void) { 1047 int _fpu_cmp = 0; 1048 uint32_t _cf = 0; 1049 int _df = 1; 1050 uint32_t _flag_k = FK_NONE; 1051 uint32_t _flag_a = 0, _flag_b = 0; 1052 uint32_t _itail_tgt = 0; 1053 RECOMP_REGS_LOCALS 1054 RECOMP_ENTER(0x300188F3u); 1055 1056 goto L_300188F3; 1057 L_300180AE: 1058 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 1059 L_300188F3: 1060 eax = 0x30019EC0u; /* 0x300188F3: mov eax, 0x30019ec0 */ 1061 L_300188F8: 1062 RECOMP_BACKEDGE(); 1063 goto L_300180AE; /* 0x300188F8: jmp 0x300180ae */ 1064 { RECOMP_REGS_OUT(); return; } /* end of function */ 1065 _ljump: 1066 switch (_itail_tgt) { 1067 case 0x300180AEu: goto L_300180AE; 1068 case 0x300188F3u: goto L_300188F3; 1069 case 0x300188F8u: goto L_300188F8; 1070 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1071 } 1072 RECOMP_REGS_OUT(); 1073 } 1074 1075 void sub_30018900(void) { 1076 int _fpu_cmp = 0; 1077 uint32_t _cf = 0; 1078 int _df = 1; 1079 uint32_t _flag_k = FK_NONE; 1080 uint32_t _flag_a = 0, _flag_b = 0; 1081 uint32_t _itail_tgt = 0; 1082 RECOMP_REGS_LOCALS 1083 RECOMP_ENTER(0x30018900u); 1084 1085 goto L_30018900; 1086 L_30007AB0: 1087 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1088 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1089 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1090 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1091 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1092 RECOMP_FLAGS_IN(); 1093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1095 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1096 _flag_k = FK_ADD; 1097 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1098 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1099 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1100 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1101 L_30018900: 1102 ecx = ebp + (-0x4C); /* 0x30018900: lea ecx, [ebp - 0x4c] */ 1103 RECOMP_BACKEDGE(); 1104 goto L_30007AB0; /* 0x30018903: jmp 0x30007ab0 */ 1105 { RECOMP_REGS_OUT(); return; } /* end of function */ 1106 RECOMP_REGS_OUT(); 1107 } 1108 1109 void sub_30018908(void) { 1110 int _fpu_cmp = 0; 1111 uint32_t _cf = 0; 1112 int _df = 1; 1113 uint32_t _flag_k = FK_NONE; 1114 uint32_t _flag_a = 0, _flag_b = 0; 1115 uint32_t _itail_tgt = 0; 1116 RECOMP_REGS_LOCALS 1117 RECOMP_ENTER(0x30018908u); 1118 1119 goto L_30018908; 1120 L_30007AB0: 1121 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1122 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1123 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1124 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1125 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1126 RECOMP_FLAGS_IN(); 1127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1129 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1130 _flag_k = FK_ADD; 1131 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1132 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1133 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1134 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1135 L_30018908: 1136 ecx = ebp + (-0x298); /* 0x30018908: lea ecx, [ebp - 0x298] */ 1137 RECOMP_BACKEDGE(); 1138 goto L_30007AB0; /* 0x3001890E: jmp 0x30007ab0 */ 1139 { RECOMP_REGS_OUT(); return; } /* end of function */ 1140 RECOMP_REGS_OUT(); 1141 } 1142 1143 void sub_30018913(void) { 1144 int _fpu_cmp = 0; 1145 uint32_t _cf = 0; 1146 int _df = 1; 1147 uint32_t _flag_k = FK_NONE; 1148 uint32_t _flag_a = 0, _flag_b = 0; 1149 uint32_t _itail_tgt = 0; 1150 RECOMP_REGS_LOCALS 1151 RECOMP_ENTER(0x30018913u); 1152 1153 goto L_30018913; 1154 L_30007AB0: 1155 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1156 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1157 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1158 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1159 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1160 RECOMP_FLAGS_IN(); 1161 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1163 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1164 _flag_k = FK_ADD; 1165 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1166 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1167 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1168 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1169 L_30018913: 1170 ecx = ebp + (-0x2AC); /* 0x30018913: lea ecx, [ebp - 0x2ac] */ 1171 RECOMP_BACKEDGE(); 1172 goto L_30007AB0; /* 0x30018919: jmp 0x30007ab0 */ 1173 { RECOMP_REGS_OUT(); return; } /* end of function */ 1174 RECOMP_REGS_OUT(); 1175 } 1176 1177 void sub_3001891E(void) { 1178 int _fpu_cmp = 0; 1179 uint32_t _cf = 0; 1180 int _df = 1; 1181 uint32_t _flag_k = FK_NONE; 1182 uint32_t _flag_a = 0, _flag_b = 0; 1183 uint32_t _itail_tgt = 0; 1184 RECOMP_REGS_LOCALS 1185 RECOMP_ENTER(0x3001891Eu); 1186 1187 goto L_3001891E; 1188 L_30007AB0: 1189 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1190 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1191 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1192 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1193 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1194 RECOMP_FLAGS_IN(); 1195 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1197 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1198 _flag_k = FK_ADD; 1199 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1200 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1201 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1202 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1203 L_3001891E: 1204 ecx = ebp + (-0x2C0); /* 0x3001891E: lea ecx, [ebp - 0x2c0] */ 1205 RECOMP_BACKEDGE(); 1206 goto L_30007AB0; /* 0x30018924: jmp 0x30007ab0 */ 1207 { RECOMP_REGS_OUT(); return; } /* end of function */ 1208 RECOMP_REGS_OUT(); 1209 } 1210 1211 void sub_30018929(void) { 1212 int _fpu_cmp = 0; 1213 uint32_t _cf = 0; 1214 int _df = 1; 1215 uint32_t _flag_k = FK_NONE; 1216 uint32_t _flag_a = 0, _flag_b = 0; 1217 uint32_t _itail_tgt = 0; 1218 RECOMP_REGS_LOCALS 1219 RECOMP_ENTER(0x30018929u); 1220 1221 goto L_30018929; 1222 L_300180AE: 1223 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 1224 L_30018929: 1225 eax = 0x30019EF0u; /* 0x30018929: mov eax, 0x30019ef0 */ 1226 L_3001892E: 1227 RECOMP_BACKEDGE(); 1228 goto L_300180AE; /* 0x3001892E: jmp 0x300180ae */ 1229 { RECOMP_REGS_OUT(); return; } /* end of function */ 1230 _ljump: 1231 switch (_itail_tgt) { 1232 case 0x300180AEu: goto L_300180AE; 1233 case 0x30018929u: goto L_30018929; 1234 case 0x3001892Eu: goto L_3001892E; 1235 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1236 } 1237 RECOMP_REGS_OUT(); 1238 } 1239 1240 void sub_30018940(void) { 1241 int _fpu_cmp = 0; 1242 uint32_t _cf = 0; 1243 int _df = 1; 1244 uint32_t _flag_k = FK_NONE; 1245 uint32_t _flag_a = 0, _flag_b = 0; 1246 uint32_t _itail_tgt = 0; 1247 RECOMP_REGS_LOCALS 1248 RECOMP_ENTER(0x30018940u); 1249 1250 goto L_30018940; 1251 L_30007AB0: 1252 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1253 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1254 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1255 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1256 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1257 RECOMP_FLAGS_IN(); 1258 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1260 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1261 _flag_k = FK_ADD; 1262 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1263 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1264 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1265 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1266 L_30018940: 1267 ecx = ebp + (-0x58); /* 0x30018940: lea ecx, [ebp - 0x58] */ 1268 RECOMP_BACKEDGE(); 1269 goto L_30007AB0; /* 0x30018943: jmp 0x30007ab0 */ 1270 { RECOMP_REGS_OUT(); return; } /* end of function */ 1271 RECOMP_REGS_OUT(); 1272 } 1273 1274 void sub_30018948(void) { 1275 int _fpu_cmp = 0; 1276 uint32_t _cf = 0; 1277 int _df = 1; 1278 uint32_t _flag_k = FK_NONE; 1279 uint32_t _flag_a = 0, _flag_b = 0; 1280 uint32_t _itail_tgt = 0; 1281 RECOMP_REGS_LOCALS 1282 RECOMP_ENTER(0x30018948u); 1283 1284 goto L_30018948; 1285 L_30007AB0: 1286 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1287 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1288 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1289 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1290 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1291 RECOMP_FLAGS_IN(); 1292 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1293 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1294 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1295 _flag_k = FK_ADD; 1296 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1297 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1298 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1299 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1300 L_30018948: 1301 ecx = ebp + (-0x44); /* 0x30018948: lea ecx, [ebp - 0x44] */ 1302 RECOMP_BACKEDGE(); 1303 goto L_30007AB0; /* 0x3001894B: jmp 0x30007ab0 */ 1304 { RECOMP_REGS_OUT(); return; } /* end of function */ 1305 RECOMP_REGS_OUT(); 1306 } 1307 1308 void sub_30018950(void) { 1309 int _fpu_cmp = 0; 1310 uint32_t _cf = 0; 1311 int _df = 1; 1312 uint32_t _flag_k = FK_NONE; 1313 uint32_t _flag_a = 0, _flag_b = 0; 1314 uint32_t _itail_tgt = 0; 1315 RECOMP_REGS_LOCALS 1316 RECOMP_ENTER(0x30018950u); 1317 1318 goto L_30018950; 1319 L_300180AE: 1320 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 1321 L_30018950: 1322 eax = 0x30019F30u; /* 0x30018950: mov eax, 0x30019f30 */ 1323 L_30018955: 1324 RECOMP_BACKEDGE(); 1325 goto L_300180AE; /* 0x30018955: jmp 0x300180ae */ 1326 { RECOMP_REGS_OUT(); return; } /* end of function */ 1327 _ljump: 1328 switch (_itail_tgt) { 1329 case 0x300180AEu: goto L_300180AE; 1330 case 0x30018950u: goto L_30018950; 1331 case 0x30018955u: goto L_30018955; 1332 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1333 } 1334 RECOMP_REGS_OUT(); 1335 } 1336 1337 void sub_30018960(void) { 1338 int _fpu_cmp = 0; 1339 uint32_t _cf = 0; 1340 int _df = 1; 1341 uint32_t _flag_k = FK_NONE; 1342 uint32_t _flag_a = 0, _flag_b = 0; 1343 uint32_t _itail_tgt = 0; 1344 RECOMP_REGS_LOCALS 1345 RECOMP_ENTER(0x30018960u); 1346 1347 goto L_30018960; 1348 L_30007AB0: 1349 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1350 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1351 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1352 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1353 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1354 RECOMP_FLAGS_IN(); 1355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1357 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1358 _flag_k = FK_ADD; 1359 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1360 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1361 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1362 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1363 L_30018960: 1364 ecx = ebp + (-0x40); /* 0x30018960: lea ecx, [ebp - 0x40] */ 1365 RECOMP_BACKEDGE(); 1366 goto L_30007AB0; /* 0x30018963: jmp 0x30007ab0 */ 1367 { RECOMP_REGS_OUT(); return; } /* end of function */ 1368 RECOMP_REGS_OUT(); 1369 } 1370 1371 void sub_30018968(void) { 1372 int _fpu_cmp = 0; 1373 uint32_t _cf = 0; 1374 int _df = 1; 1375 uint32_t _flag_k = FK_NONE; 1376 uint32_t _flag_a = 0, _flag_b = 0; 1377 uint32_t _itail_tgt = 0; 1378 RECOMP_REGS_LOCALS 1379 RECOMP_ENTER(0x30018968u); 1380 1381 goto L_30018968; 1382 L_30007AB0: 1383 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1384 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1385 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1386 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1387 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1388 RECOMP_FLAGS_IN(); 1389 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1391 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1392 _flag_k = FK_ADD; 1393 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1394 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1395 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1396 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1397 L_30018968: 1398 ecx = ebp + (-0x2C); /* 0x30018968: lea ecx, [ebp - 0x2c] */ 1399 RECOMP_BACKEDGE(); 1400 goto L_30007AB0; /* 0x3001896B: jmp 0x30007ab0 */ 1401 { RECOMP_REGS_OUT(); return; } /* end of function */ 1402 RECOMP_REGS_OUT(); 1403 } 1404 1405 void sub_30018970(void) { 1406 int _fpu_cmp = 0; 1407 uint32_t _cf = 0; 1408 int _df = 1; 1409 uint32_t _flag_k = FK_NONE; 1410 uint32_t _flag_a = 0, _flag_b = 0; 1411 uint32_t _itail_tgt = 0; 1412 RECOMP_REGS_LOCALS 1413 RECOMP_ENTER(0x30018970u); 1414 1415 goto L_30018970; 1416 L_30007AB0: 1417 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1418 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1419 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1420 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1421 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1422 RECOMP_FLAGS_IN(); 1423 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1425 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1426 _flag_k = FK_ADD; 1427 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1428 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1429 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1430 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1431 L_30018970: 1432 ecx = ebp + (-0x2C); /* 0x30018970: lea ecx, [ebp - 0x2c] */ 1433 RECOMP_BACKEDGE(); 1434 goto L_30007AB0; /* 0x30018973: jmp 0x30007ab0 */ 1435 { RECOMP_REGS_OUT(); return; } /* end of function */ 1436 RECOMP_REGS_OUT(); 1437 } 1438 1439 void sub_30018978(void) { 1440 int _fpu_cmp = 0; 1441 uint32_t _cf = 0; 1442 int _df = 1; 1443 uint32_t _flag_k = FK_NONE; 1444 uint32_t _flag_a = 0, _flag_b = 0; 1445 uint32_t _itail_tgt = 0; 1446 RECOMP_REGS_LOCALS 1447 RECOMP_ENTER(0x30018978u); 1448 1449 goto L_30018978; 1450 L_30007AB0: 1451 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1452 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1453 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1454 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1455 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1456 RECOMP_FLAGS_IN(); 1457 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1459 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1460 _flag_k = FK_ADD; 1461 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1462 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1463 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1464 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1465 L_30018978: 1466 ecx = ebp + (-0x2C); /* 0x30018978: lea ecx, [ebp - 0x2c] */ 1467 RECOMP_BACKEDGE(); 1468 goto L_30007AB0; /* 0x3001897B: jmp 0x30007ab0 */ 1469 { RECOMP_REGS_OUT(); return; } /* end of function */ 1470 RECOMP_REGS_OUT(); 1471 } 1472 1473 void sub_30018980(void) { 1474 int _fpu_cmp = 0; 1475 uint32_t _cf = 0; 1476 int _df = 1; 1477 uint32_t _flag_k = FK_NONE; 1478 uint32_t _flag_a = 0, _flag_b = 0; 1479 uint32_t _itail_tgt = 0; 1480 RECOMP_REGS_LOCALS 1481 RECOMP_ENTER(0x30018980u); 1482 1483 goto L_30018980; 1484 L_30007AB0: 1485 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1486 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1487 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1488 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1489 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1490 RECOMP_FLAGS_IN(); 1491 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1493 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1494 _flag_k = FK_ADD; 1495 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1496 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1497 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1498 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1499 L_30018980: 1500 ecx = ebp + (-0x54); /* 0x30018980: lea ecx, [ebp - 0x54] */ 1501 RECOMP_BACKEDGE(); 1502 goto L_30007AB0; /* 0x30018983: jmp 0x30007ab0 */ 1503 { RECOMP_REGS_OUT(); return; } /* end of function */ 1504 RECOMP_REGS_OUT(); 1505 } 1506 1507 void sub_30018988(void) { 1508 int _fpu_cmp = 0; 1509 uint32_t _cf = 0; 1510 int _df = 1; 1511 uint32_t _flag_k = FK_NONE; 1512 uint32_t _flag_a = 0, _flag_b = 0; 1513 uint32_t _itail_tgt = 0; 1514 RECOMP_REGS_LOCALS 1515 RECOMP_ENTER(0x30018988u); 1516 1517 goto L_30018988; 1518 L_300180AE: 1519 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 1520 L_30018988: 1521 eax = 0x30019F60u; /* 0x30018988: mov eax, 0x30019f60 */ 1522 L_3001898D: 1523 RECOMP_BACKEDGE(); 1524 goto L_300180AE; /* 0x3001898D: jmp 0x300180ae */ 1525 { RECOMP_REGS_OUT(); return; } /* end of function */ 1526 _ljump: 1527 switch (_itail_tgt) { 1528 case 0x300180AEu: goto L_300180AE; 1529 case 0x30018988u: goto L_30018988; 1530 case 0x3001898Du: goto L_3001898D; 1531 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1532 } 1533 RECOMP_REGS_OUT(); 1534 } 1535 1536 void sub_300189A0(void) { 1537 int _fpu_cmp = 0; 1538 uint32_t _cf = 0; 1539 int _df = 1; 1540 uint32_t _flag_k = FK_NONE; 1541 uint32_t _flag_a = 0, _flag_b = 0; 1542 uint32_t _itail_tgt = 0; 1543 RECOMP_REGS_LOCALS 1544 RECOMP_ENTER(0x300189A0u); 1545 1546 goto L_300189A0; 1547 L_30007AB0: 1548 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1549 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1550 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1551 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1552 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1553 RECOMP_FLAGS_IN(); 1554 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1556 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1557 _flag_k = FK_ADD; 1558 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1559 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1560 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1561 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1562 L_300189A0: 1563 ecx = ebp + (-0x30); /* 0x300189A0: lea ecx, [ebp - 0x30] */ 1564 RECOMP_BACKEDGE(); 1565 goto L_30007AB0; /* 0x300189A3: jmp 0x30007ab0 */ 1566 { RECOMP_REGS_OUT(); return; } /* end of function */ 1567 RECOMP_REGS_OUT(); 1568 } 1569 1570 void sub_300189A8(void) { 1571 int _fpu_cmp = 0; 1572 uint32_t _cf = 0; 1573 int _df = 1; 1574 uint32_t _flag_k = FK_NONE; 1575 uint32_t _flag_a = 0, _flag_b = 0; 1576 uint32_t _itail_tgt = 0; 1577 RECOMP_REGS_LOCALS 1578 RECOMP_ENTER(0x300189A8u); 1579 1580 goto L_300189A8; 1581 L_300180AE: 1582 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 1583 L_300189A8: 1584 eax = 0x30019FA8u; /* 0x300189A8: mov eax, 0x30019fa8 */ 1585 L_300189AD: 1586 RECOMP_BACKEDGE(); 1587 goto L_300180AE; /* 0x300189AD: jmp 0x300180ae */ 1588 { RECOMP_REGS_OUT(); return; } /* end of function */ 1589 _ljump: 1590 switch (_itail_tgt) { 1591 case 0x300180AEu: goto L_300180AE; 1592 case 0x300189A8u: goto L_300189A8; 1593 case 0x300189ADu: goto L_300189AD; 1594 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1595 } 1596 RECOMP_REGS_OUT(); 1597 } 1598 1599 void sub_300189C0(void) { 1600 int _fpu_cmp = 0; 1601 uint32_t _cf = 0; 1602 int _df = 1; 1603 uint32_t _flag_k = FK_NONE; 1604 uint32_t _flag_a = 0, _flag_b = 0; 1605 uint32_t _itail_tgt = 0; 1606 RECOMP_REGS_LOCALS 1607 RECOMP_ENTER(0x300189C0u); 1608 1609 goto L_300189C0; 1610 L_3000E970: 1611 PUSH32(esp, ebp); /* 0x3000E970: push ebp */ 1612 ebp = esp; /* 0x3000E971: mov ebp, esp */ 1613 PUSH32(esp, ecx); /* 0x3000E973: push ecx */ 1614 PUSH32(esp, esi); /* 0x3000E974: push esi */ 1615 esi = ecx; /* 0x3000E975: mov esi, ecx */ 1616 eax = MEM32(esi + 0x4); /* 0x3000E977: mov eax, dword ptr [esi + 4] */ 1617 PUSH32(esp, eax); /* 0x3000E97A: push eax */ 1618 MEM32(ebp + (-0x4)) = eax; /* 0x3000E97B: mov dword ptr [ebp - 4], eax */ 1619 RECOMP_ICALL(0x30018080u); /* 0x3000E97E: call 0x30018080 */ /* not lifted */ 1620 RECOMP_FLAGS_IN(); 1621 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1623 esp = esp + 4; /* 0x3000E983: add esp, 4 */ 1624 _flag_k = FK_ADD; 1625 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1626 eax = 0; /* 0x3000E986: xor eax, eax */ 1627 _cf = 0; 1628 _flag_k = FK_TEST; 1629 MEM32(esi + 0x4) = eax; /* 0x3000E988: mov dword ptr [esi + 4], eax */ 1630 MEM32(esi + 0x8) = eax; /* 0x3000E98B: mov dword ptr [esi + 8], eax */ 1631 MEM32(esi + 0xC) = eax; /* 0x3000E98E: mov dword ptr [esi + 0xc], eax */ 1632 esi = POP32_VAL(esp); /* 0x3000E991: pop esi */ 1633 esp = ebp; /* 0x3000E992: mov esp, ebp */ 1634 ebp = POP32_VAL(esp); /* 0x3000E994: pop ebp */ 1635 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E995: ret */ 1636 L_300189C0: 1637 ecx = ebp + (-0x34); /* 0x300189C0: lea ecx, [ebp - 0x34] */ 1638 RECOMP_BACKEDGE(); 1639 goto L_3000E970; /* 0x300189C3: jmp 0x3000e970 */ 1640 { RECOMP_REGS_OUT(); return; } /* end of function */ 1641 RECOMP_REGS_OUT(); 1642 } 1643 1644 void sub_300189C8(void) { 1645 int _fpu_cmp = 0; 1646 uint32_t _cf = 0; 1647 int _df = 1; 1648 uint32_t _flag_k = FK_NONE; 1649 uint32_t _flag_a = 0, _flag_b = 0; 1650 uint32_t _itail_tgt = 0; 1651 RECOMP_REGS_LOCALS 1652 RECOMP_ENTER(0x300189C8u); 1653 1654 goto L_300189C8; 1655 L_300180AE: 1656 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 1657 L_300189C8: 1658 eax = 0x30019FD0u; /* 0x300189C8: mov eax, 0x30019fd0 */ 1659 L_300189CD: 1660 RECOMP_BACKEDGE(); 1661 goto L_300180AE; /* 0x300189CD: jmp 0x300180ae */ 1662 { RECOMP_REGS_OUT(); return; } /* end of function */ 1663 _ljump: 1664 switch (_itail_tgt) { 1665 case 0x300180AEu: goto L_300180AE; 1666 case 0x300189C8u: goto L_300189C8; 1667 case 0x300189CDu: goto L_300189CD; 1668 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1669 } 1670 RECOMP_REGS_OUT(); 1671 } 1672 1673 void sub_300189E0(void) { 1674 int _fpu_cmp = 0; 1675 uint32_t _cf = 0; 1676 int _df = 1; 1677 uint32_t _flag_k = FK_NONE; 1678 uint32_t _flag_a = 0, _flag_b = 0; 1679 uint32_t _itail_tgt = 0; 1680 RECOMP_REGS_LOCALS 1681 RECOMP_ENTER(0x300189E0u); 1682 1683 goto L_300189E0; 1684 L_30007AB0: 1685 PUSH32(esp, esi); /* 0x30007AB0: push esi */ 1686 esi = ecx; /* 0x30007AB1: mov esi, ecx */ 1687 eax = MEM32(esi); /* 0x30007AB3: mov eax, dword ptr [esi] */ 1688 PUSH32(esp, eax); /* 0x30007AB5: push eax */ 1689 RECOMP_ICALL(0x30018080u); /* 0x30007AB6: call 0x30018080 */ /* not lifted */ 1690 RECOMP_FLAGS_IN(); 1691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1693 esp = esp + 4; /* 0x30007ABB: add esp, 4 */ 1694 _flag_k = FK_ADD; 1695 MEM32(esi) = 0; /* 0x30007ABE: mov dword ptr [esi], 0 */ 1696 MEM32(esi + 0x4) = 0; /* 0x30007AC4: mov dword ptr [esi + 4], 0 */ 1697 esi = POP32_VAL(esp); /* 0x30007ACB: pop esi */ 1698 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30007ACC: ret */ 1699 L_300189E0: 1700 ecx = ebp + (-0x20); /* 0x300189E0: lea ecx, [ebp - 0x20] */ 1701 RECOMP_BACKEDGE(); 1702 goto L_30007AB0; /* 0x300189E3: jmp 0x30007ab0 */ 1703 { RECOMP_REGS_OUT(); return; } /* end of function */ 1704 RECOMP_REGS_OUT(); 1705 } 1706 1707 void sub_300189E8(void) { 1708 int _fpu_cmp = 0; 1709 uint32_t _cf = 0; 1710 int _df = 1; 1711 uint32_t _flag_k = FK_NONE; 1712 uint32_t _flag_a = 0, _flag_b = 0; 1713 uint32_t _itail_tgt = 0; 1714 RECOMP_REGS_LOCALS 1715 RECOMP_ENTER(0x300189E8u); 1716 1717 goto L_300189E8; 1718 L_300180AE: 1719 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 1720 L_300189E8: 1721 eax = 0x30019FF8u; /* 0x300189E8: mov eax, 0x30019ff8 */ 1722 L_300189ED: 1723 RECOMP_BACKEDGE(); 1724 goto L_300180AE; /* 0x300189ED: jmp 0x300180ae */ 1725 { RECOMP_REGS_OUT(); return; } /* end of function */ 1726 _ljump: 1727 switch (_itail_tgt) { 1728 case 0x300180AEu: goto L_300180AE; 1729 case 0x300189E8u: goto L_300189E8; 1730 case 0x300189EDu: goto L_300189ED; 1731 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1732 } 1733 RECOMP_REGS_OUT(); 1734 } 1735 1736 void sub_30018A00(void) { 1737 int _fpu_cmp = 0; 1738 uint32_t _cf = 0; 1739 int _df = 1; 1740 uint32_t _flag_k = FK_NONE; 1741 uint32_t _flag_a = 0, _flag_b = 0; 1742 uint32_t _itail_tgt = 0; 1743 RECOMP_REGS_LOCALS 1744 RECOMP_ENTER(0x30018A00u); 1745 1746 goto L_30018A00; 1747 L_3000E970: 1748 PUSH32(esp, ebp); /* 0x3000E970: push ebp */ 1749 ebp = esp; /* 0x3000E971: mov ebp, esp */ 1750 PUSH32(esp, ecx); /* 0x3000E973: push ecx */ 1751 PUSH32(esp, esi); /* 0x3000E974: push esi */ 1752 esi = ecx; /* 0x3000E975: mov esi, ecx */ 1753 eax = MEM32(esi + 0x4); /* 0x3000E977: mov eax, dword ptr [esi + 4] */ 1754 PUSH32(esp, eax); /* 0x3000E97A: push eax */ 1755 MEM32(ebp + (-0x4)) = eax; /* 0x3000E97B: mov dword ptr [ebp - 4], eax */ 1756 RECOMP_ICALL(0x30018080u); /* 0x3000E97E: call 0x30018080 */ /* not lifted */ 1757 RECOMP_FLAGS_IN(); 1758 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1760 esp = esp + 4; /* 0x3000E983: add esp, 4 */ 1761 _flag_k = FK_ADD; 1762 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1763 eax = 0; /* 0x3000E986: xor eax, eax */ 1764 _cf = 0; 1765 _flag_k = FK_TEST; 1766 MEM32(esi + 0x4) = eax; /* 0x3000E988: mov dword ptr [esi + 4], eax */ 1767 MEM32(esi + 0x8) = eax; /* 0x3000E98B: mov dword ptr [esi + 8], eax */ 1768 MEM32(esi + 0xC) = eax; /* 0x3000E98E: mov dword ptr [esi + 0xc], eax */ 1769 esi = POP32_VAL(esp); /* 0x3000E991: pop esi */ 1770 esp = ebp; /* 0x3000E992: mov esp, ebp */ 1771 ebp = POP32_VAL(esp); /* 0x3000E994: pop ebp */ 1772 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000E995: ret */ 1773 L_30018A00: 1774 ecx = MEM32(ebp + (-0x10)); /* 0x30018A00: mov ecx, dword ptr [ebp - 0x10] */ 1775 RECOMP_BACKEDGE(); 1776 goto L_3000E970; /* 0x30018A03: jmp 0x3000e970 */ 1777 { RECOMP_REGS_OUT(); return; } /* end of function */ 1778 RECOMP_REGS_OUT(); 1779 } 1780 1781 void sub_30018A08(void) { 1782 int _fpu_cmp = 0; 1783 uint32_t _cf = 0; 1784 int _df = 1; 1785 uint32_t _flag_k = FK_NONE; 1786 uint32_t _flag_a = 0, _flag_b = 0; 1787 uint32_t _itail_tgt = 0; 1788 RECOMP_REGS_LOCALS 1789 RECOMP_ENTER(0x30018A08u); 1790 1791 goto L_30018A08; 1792 L_300180AE: 1793 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 1794 L_30018A08: 1795 eax = 0x3001A020u; /* 0x30018A08: mov eax, 0x3001a020 */ 1796 L_30018A0D: 1797 RECOMP_BACKEDGE(); 1798 goto L_300180AE; /* 0x30018A0D: jmp 0x300180ae */ 1799 { RECOMP_REGS_OUT(); return; } /* end of function */ 1800 _ljump: 1801 switch (_itail_tgt) { 1802 case 0x300180AEu: goto L_300180AE; 1803 case 0x30018A08u: goto L_30018A08; 1804 case 0x30018A0Du: goto L_30018A0D; 1805 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1806 } 1807 RECOMP_REGS_OUT(); 1808 } 1809 1810 void sub_30018A20(void) { 1811 int _fpu_cmp = 0; 1812 uint32_t _cf = 0; 1813 int _df = 1; 1814 uint32_t _flag_k = FK_NONE; 1815 uint32_t _flag_a = 0, _flag_b = 0; 1816 uint32_t _itail_tgt = 0; 1817 RECOMP_REGS_LOCALS 1818 RECOMP_ENTER(0x30018A20u); 1819 1820 goto L_30018A20; 1821 L_3000F850: 1822 PUSH32(esp, ebp); /* 0x3000F850: push ebp */ 1823 ebp = esp; /* 0x3000F851: mov ebp, esp */ 1824 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1826 esp = esp - 8; /* 0x3000F853: sub esp, 8 */ 1827 _flag_k = FK_CMP; 1828 PUSH32(esp, ebx); /* 0x3000F856: push ebx */ 1829 PUSH32(esp, esi); /* 0x3000F857: push esi */ 1830 esi = ecx; /* 0x3000F858: mov esi, ecx */ 1831 PUSH32(esp, edi); /* 0x3000F85A: push edi */ 1832 edi = MEM32(esi + 0x4); /* 0x3000F85B: mov edi, dword ptr [esi + 4] */ 1833 ecx = MEM32(esi + 0x10); /* 0x3000F85E: mov ecx, dword ptr [esi + 0x10] */ 1834 /* test ecx, ecx */ /* 0x3000F861: test ecx, ecx */ 1835 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1836 _cf = 0; 1837 _flag_k = FK_TEST; 1838 eax = MEM32(edi); /* 0x3000F863: mov eax, dword ptr [edi] */ 1839 MEM32(ebp + (-0x4)) = eax; /* 0x3000F865: mov dword ptr [ebp - 4], eax */ 1840 if (TEST_Z(_flag_a, _flag_b)) goto L_3000F8C7; /* 0x3000F868: je 0x3000f8c7 */ 1841 L_3000F86A: 1842 ecx = eax; /* 0x3000F86A: mov ecx, eax */ 1843 /* cmp eax, ecx */ /* 0x3000F86C: cmp eax, ecx */ 1844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1846 _flag_k = FK_CMP; 1847 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F8C7; /* 0x3000F86E: jne 0x3000f8c7 */ 1848 L_3000F870: 1849 /* cmp edi, edi */ /* 0x3000F870: cmp edi, edi */ 1850 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1852 _flag_k = FK_CMP; 1853 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F8C7; /* 0x3000F872: jne 0x3000f8c7 */ 1854 L_3000F874: 1855 ebx = MEM32(edi + 0x4); /* 0x3000F874: mov ebx, dword ptr [edi + 4] */ 1856 eax = MEM32(esi + 0x8); /* 0x3000F877: mov eax, dword ptr [esi + 8] */ 1857 /* cmp ebx, eax */ /* 0x3000F87A: cmp ebx, eax */ 1858 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1860 _flag_k = FK_CMP; 1861 edi = ebx; /* 0x3000F87C: mov edi, ebx */ 1862 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F89F; /* 0x3000F87E: je 0x3000f89f */ 1863 L_3000F880: 1864 eax = MEM32(edi + 0x8); /* 0x3000F880: mov eax, dword ptr [edi + 8] */ 1865 ecx = esi; /* 0x3000F883: mov ecx, esi */ 1866 PUSH32(esp, eax); /* 0x3000F885: push eax */ 1867 RECOMP_ICALL(0x30012380u); /* 0x3000F886: call 0x30012380 */ /* not lifted */ 1868 RECOMP_FLAGS_IN(); 1869 edi = MEM32(edi); /* 0x3000F88B: mov edi, dword ptr [edi] */ 1870 PUSH32(esp, ebx); /* 0x3000F88D: push ebx */ 1871 RECOMP_ICALL(0x30018080u); /* 0x3000F88E: call 0x30018080 */ /* not lifted */ 1872 RECOMP_FLAGS_IN(); 1873 eax = MEM32(esi + 0x8); /* 0x3000F893: mov eax, dword ptr [esi + 8] */ 1874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1876 esp = esp + 4; /* 0x3000F896: add esp, 4 */ 1877 _flag_k = FK_ADD; 1878 /* cmp edi, eax */ /* 0x3000F899: cmp edi, eax */ 1879 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1881 _flag_k = FK_CMP; 1882 ebx = edi; /* 0x3000F89B: mov ebx, edi */ 1883 RECOMP_BACKEDGE(); 1884 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F880; /* 0x3000F89D: jne 0x3000f880 */ 1885 L_3000F89F: 1886 ecx = MEM32(esi + 0x4); /* 0x3000F89F: mov ecx, dword ptr [esi + 4] */ 1887 edx = MEM32(esi + 0x8); /* 0x3000F8A2: mov edx, dword ptr [esi + 8] */ 1888 MEM32(ecx + 0x4) = edx; /* 0x3000F8A5: mov dword ptr [ecx + 4], edx */ 1889 eax = MEM32(esi + 0x4); /* 0x3000F8A8: mov eax, dword ptr [esi + 4] */ 1890 MEM32(esi + 0x10) = 0; /* 0x3000F8AB: mov dword ptr [esi + 0x10], 0 */ 1891 ecx = esi; /* 0x3000F8B2: mov ecx, esi */ 1892 MEM32(eax) = eax; /* 0x3000F8B4: mov dword ptr [eax], eax */ 1893 eax = MEM32(esi + 0x4); /* 0x3000F8B6: mov eax, dword ptr [esi + 4] */ 1894 MEM32(eax + 0x8) = eax; /* 0x3000F8B9: mov dword ptr [eax + 8], eax */ 1895 eax = ebp + (-0x8); /* 0x3000F8BC: lea eax, [ebp - 8] */ 1896 PUSH32(esp, eax); /* 0x3000F8BF: push eax */ 1897 RECOMP_ICALL(0x30011670u); /* 0x3000F8C0: call 0x30011670 */ /* not lifted */ 1898 RECOMP_FLAGS_IN(); 1899 goto L_3000F8E8; /* 0x3000F8C5: jmp 0x3000f8e8 */ 1900 L_3000F8C7: 1901 /* cmp eax, edi */ /* 0x3000F8C7: cmp eax, edi */ 1902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1904 _flag_k = FK_CMP; 1905 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F8E8; /* 0x3000F8C9: je 0x3000f8e8 */ 1906 L_3000F8CB: 1907 ecx = ebp + (-0x4); /* 0x3000F8CB: lea ecx, [ebp - 4] */ 1908 ebx = eax; /* 0x3000F8CE: mov ebx, eax */ 1909 RECOMP_ICALL(0x30011CD0u); /* 0x3000F8D0: call 0x30011cd0 */ /* not lifted */ 1910 RECOMP_FLAGS_IN(); 1911 ecx = ebp + (-0x8); /* 0x3000F8D5: lea ecx, [ebp - 8] */ 1912 PUSH32(esp, ebx); /* 0x3000F8D8: push ebx */ 1913 PUSH32(esp, ecx); /* 0x3000F8D9: push ecx */ 1914 ecx = esi; /* 0x3000F8DA: mov ecx, esi */ 1915 RECOMP_ICALL(0x30011FC0u); /* 0x3000F8DC: call 0x30011fc0 */ /* not lifted */ 1916 RECOMP_FLAGS_IN(); 1917 eax = MEM32(ebp + (-0x4)); /* 0x3000F8E1: mov eax, dword ptr [ebp - 4] */ 1918 /* cmp eax, edi */ /* 0x3000F8E4: cmp eax, edi */ 1919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1921 _flag_k = FK_CMP; 1922 RECOMP_BACKEDGE(); 1923 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F8CB; /* 0x3000F8E6: jne 0x3000f8cb */ 1924 L_3000F8E8: 1925 edx = MEM32(esi + 0x4); /* 0x3000F8E8: mov edx, dword ptr [esi + 4] */ 1926 PUSH32(esp, edx); /* 0x3000F8EB: push edx */ 1927 RECOMP_ICALL(0x30018080u); /* 0x3000F8EC: call 0x30018080 */ /* not lifted */ 1928 RECOMP_FLAGS_IN(); 1929 eax = MEM32(esi + 0x8); /* 0x3000F8F1: mov eax, dword ptr [esi + 8] */ 1930 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1931 edi = 0; /* 0x3000F8F4: xor edi, edi */ 1932 _cf = 0; 1933 _flag_k = FK_TEST; 1934 PUSH32(esp, eax); /* 0x3000F8F6: push eax */ 1935 MEM32(esi + 0x4) = edi; /* 0x3000F8F7: mov dword ptr [esi + 4], edi */ 1936 MEM32(esi + 0x10) = edi; /* 0x3000F8FA: mov dword ptr [esi + 0x10], edi */ 1937 RECOMP_ICALL(0x30018080u); /* 0x3000F8FD: call 0x30018080 */ /* not lifted */ 1938 RECOMP_FLAGS_IN(); 1939 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1940 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1941 esp = esp + 8; /* 0x3000F902: add esp, 8 */ 1942 _flag_k = FK_ADD; 1943 MEM32(esi + 0x8) = edi; /* 0x3000F905: mov dword ptr [esi + 8], edi */ 1944 edi = POP32_VAL(esp); /* 0x3000F908: pop edi */ 1945 esi = POP32_VAL(esp); /* 0x3000F909: pop esi */ 1946 ebx = POP32_VAL(esp); /* 0x3000F90A: pop ebx */ 1947 esp = ebp; /* 0x3000F90B: mov esp, ebp */ 1948 ebp = POP32_VAL(esp); /* 0x3000F90D: pop ebp */ 1949 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000F90E: ret */ 1950 L_30018A20: 1951 ecx = MEM32(ebp + (-0x14)); /* 0x30018A20: mov ecx, dword ptr [ebp - 0x14] */ 1952 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 1953 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1954 ecx = ecx + 0xCu; /* 0x30018A23: add ecx, 0xc */ 1955 _flag_k = FK_ADD; 1956 RECOMP_BACKEDGE(); 1957 goto L_3000F850; /* 0x30018A26: jmp 0x3000f850 */ 1958 { RECOMP_REGS_OUT(); return; } /* end of function */ 1959 RECOMP_REGS_OUT(); 1960 } 1961 1962 void sub_30018A2B(void) { 1963 int _fpu_cmp = 0; 1964 uint32_t _cf = 0; 1965 int _df = 1; 1966 uint32_t _flag_k = FK_NONE; 1967 uint32_t _flag_a = 0, _flag_b = 0; 1968 uint32_t _itail_tgt = 0; 1969 RECOMP_REGS_LOCALS 1970 RECOMP_ENTER(0x30018A2Bu); 1971 1972 goto L_30018A2B; 1973 L_300180AE: 1974 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 1975 L_30018A2B: 1976 eax = 0x3001A048u; /* 0x30018A2B: mov eax, 0x3001a048 */ 1977 L_30018A30: 1978 RECOMP_BACKEDGE(); 1979 goto L_300180AE; /* 0x30018A30: jmp 0x300180ae */ 1980 { RECOMP_REGS_OUT(); return; } /* end of function */ 1981 _ljump: 1982 switch (_itail_tgt) { 1983 case 0x300180AEu: goto L_300180AE; 1984 case 0x30018A2Bu: goto L_30018A2B; 1985 case 0x30018A30u: goto L_30018A30; 1986 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1987 } 1988 RECOMP_REGS_OUT(); 1989 } 1990 1991 void sub_30018A40(void) { 1992 int _fpu_cmp = 0; 1993 uint32_t _cf = 0; 1994 int _df = 1; 1995 uint32_t _flag_k = FK_NONE; 1996 uint32_t _flag_a = 0, _flag_b = 0; 1997 uint32_t _itail_tgt = 0; 1998 RECOMP_REGS_LOCALS 1999 RECOMP_ENTER(0x30018A40u); 2000 2001 goto L_30018A40; 2002 L_3000F850: 2003 PUSH32(esp, ebp); /* 0x3000F850: push ebp */ 2004 ebp = esp; /* 0x3000F851: mov ebp, esp */ 2005 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2007 esp = esp - 8; /* 0x3000F853: sub esp, 8 */ 2008 _flag_k = FK_CMP; 2009 PUSH32(esp, ebx); /* 0x3000F856: push ebx */ 2010 PUSH32(esp, esi); /* 0x3000F857: push esi */ 2011 esi = ecx; /* 0x3000F858: mov esi, ecx */ 2012 PUSH32(esp, edi); /* 0x3000F85A: push edi */ 2013 edi = MEM32(esi + 0x4); /* 0x3000F85B: mov edi, dword ptr [esi + 4] */ 2014 ecx = MEM32(esi + 0x10); /* 0x3000F85E: mov ecx, dword ptr [esi + 0x10] */ 2015 /* test ecx, ecx */ /* 0x3000F861: test ecx, ecx */ 2016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2017 _cf = 0; 2018 _flag_k = FK_TEST; 2019 eax = MEM32(edi); /* 0x3000F863: mov eax, dword ptr [edi] */ 2020 MEM32(ebp + (-0x4)) = eax; /* 0x3000F865: mov dword ptr [ebp - 4], eax */ 2021 if (TEST_Z(_flag_a, _flag_b)) goto L_3000F8C7; /* 0x3000F868: je 0x3000f8c7 */ 2022 L_3000F86A: 2023 ecx = eax; /* 0x3000F86A: mov ecx, eax */ 2024 /* cmp eax, ecx */ /* 0x3000F86C: cmp eax, ecx */ 2025 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2027 _flag_k = FK_CMP; 2028 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F8C7; /* 0x3000F86E: jne 0x3000f8c7 */ 2029 L_3000F870: 2030 /* cmp edi, edi */ /* 0x3000F870: cmp edi, edi */ 2031 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2033 _flag_k = FK_CMP; 2034 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F8C7; /* 0x3000F872: jne 0x3000f8c7 */ 2035 L_3000F874: 2036 ebx = MEM32(edi + 0x4); /* 0x3000F874: mov ebx, dword ptr [edi + 4] */ 2037 eax = MEM32(esi + 0x8); /* 0x3000F877: mov eax, dword ptr [esi + 8] */ 2038 /* cmp ebx, eax */ /* 0x3000F87A: cmp ebx, eax */ 2039 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2041 _flag_k = FK_CMP; 2042 edi = ebx; /* 0x3000F87C: mov edi, ebx */ 2043 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F89F; /* 0x3000F87E: je 0x3000f89f */ 2044 L_3000F880: 2045 eax = MEM32(edi + 0x8); /* 0x3000F880: mov eax, dword ptr [edi + 8] */ 2046 ecx = esi; /* 0x3000F883: mov ecx, esi */ 2047 PUSH32(esp, eax); /* 0x3000F885: push eax */ 2048 RECOMP_ICALL(0x30012380u); /* 0x3000F886: call 0x30012380 */ /* not lifted */ 2049 RECOMP_FLAGS_IN(); 2050 edi = MEM32(edi); /* 0x3000F88B: mov edi, dword ptr [edi] */ 2051 PUSH32(esp, ebx); /* 0x3000F88D: push ebx */ 2052 RECOMP_ICALL(0x30018080u); /* 0x3000F88E: call 0x30018080 */ /* not lifted */ 2053 RECOMP_FLAGS_IN(); 2054 eax = MEM32(esi + 0x8); /* 0x3000F893: mov eax, dword ptr [esi + 8] */ 2055 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2056 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2057 esp = esp + 4; /* 0x3000F896: add esp, 4 */ 2058 _flag_k = FK_ADD; 2059 /* cmp edi, eax */ /* 0x3000F899: cmp edi, eax */ 2060 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2062 _flag_k = FK_CMP; 2063 ebx = edi; /* 0x3000F89B: mov ebx, edi */ 2064 RECOMP_BACKEDGE(); 2065 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F880; /* 0x3000F89D: jne 0x3000f880 */ 2066 L_3000F89F: 2067 ecx = MEM32(esi + 0x4); /* 0x3000F89F: mov ecx, dword ptr [esi + 4] */ 2068 edx = MEM32(esi + 0x8); /* 0x3000F8A2: mov edx, dword ptr [esi + 8] */ 2069 MEM32(ecx + 0x4) = edx; /* 0x3000F8A5: mov dword ptr [ecx + 4], edx */ 2070 eax = MEM32(esi + 0x4); /* 0x3000F8A8: mov eax, dword ptr [esi + 4] */ 2071 MEM32(esi + 0x10) = 0; /* 0x3000F8AB: mov dword ptr [esi + 0x10], 0 */ 2072 ecx = esi; /* 0x3000F8B2: mov ecx, esi */ 2073 MEM32(eax) = eax; /* 0x3000F8B4: mov dword ptr [eax], eax */ 2074 eax = MEM32(esi + 0x4); /* 0x3000F8B6: mov eax, dword ptr [esi + 4] */ 2075 MEM32(eax + 0x8) = eax; /* 0x3000F8B9: mov dword ptr [eax + 8], eax */ 2076 eax = ebp + (-0x8); /* 0x3000F8BC: lea eax, [ebp - 8] */ 2077 PUSH32(esp, eax); /* 0x3000F8BF: push eax */ 2078 RECOMP_ICALL(0x30011670u); /* 0x3000F8C0: call 0x30011670 */ /* not lifted */ 2079 RECOMP_FLAGS_IN(); 2080 goto L_3000F8E8; /* 0x3000F8C5: jmp 0x3000f8e8 */ 2081 L_3000F8C7: 2082 /* cmp eax, edi */ /* 0x3000F8C7: cmp eax, edi */ 2083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2085 _flag_k = FK_CMP; 2086 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F8E8; /* 0x3000F8C9: je 0x3000f8e8 */ 2087 L_3000F8CB: 2088 ecx = ebp + (-0x4); /* 0x3000F8CB: lea ecx, [ebp - 4] */ 2089 ebx = eax; /* 0x3000F8CE: mov ebx, eax */ 2090 RECOMP_ICALL(0x30011CD0u); /* 0x3000F8D0: call 0x30011cd0 */ /* not lifted */ 2091 RECOMP_FLAGS_IN(); 2092 ecx = ebp + (-0x8); /* 0x3000F8D5: lea ecx, [ebp - 8] */ 2093 PUSH32(esp, ebx); /* 0x3000F8D8: push ebx */ 2094 PUSH32(esp, ecx); /* 0x3000F8D9: push ecx */ 2095 ecx = esi; /* 0x3000F8DA: mov ecx, esi */ 2096 RECOMP_ICALL(0x30011FC0u); /* 0x3000F8DC: call 0x30011fc0 */ /* not lifted */ 2097 RECOMP_FLAGS_IN(); 2098 eax = MEM32(ebp + (-0x4)); /* 0x3000F8E1: mov eax, dword ptr [ebp - 4] */ 2099 /* cmp eax, edi */ /* 0x3000F8E4: cmp eax, edi */ 2100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2102 _flag_k = FK_CMP; 2103 RECOMP_BACKEDGE(); 2104 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F8CB; /* 0x3000F8E6: jne 0x3000f8cb */ 2105 L_3000F8E8: 2106 edx = MEM32(esi + 0x4); /* 0x3000F8E8: mov edx, dword ptr [esi + 4] */ 2107 PUSH32(esp, edx); /* 0x3000F8EB: push edx */ 2108 RECOMP_ICALL(0x30018080u); /* 0x3000F8EC: call 0x30018080 */ /* not lifted */ 2109 RECOMP_FLAGS_IN(); 2110 eax = MEM32(esi + 0x8); /* 0x3000F8F1: mov eax, dword ptr [esi + 8] */ 2111 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2112 edi = 0; /* 0x3000F8F4: xor edi, edi */ 2113 _cf = 0; 2114 _flag_k = FK_TEST; 2115 PUSH32(esp, eax); /* 0x3000F8F6: push eax */ 2116 MEM32(esi + 0x4) = edi; /* 0x3000F8F7: mov dword ptr [esi + 4], edi */ 2117 MEM32(esi + 0x10) = edi; /* 0x3000F8FA: mov dword ptr [esi + 0x10], edi */ 2118 RECOMP_ICALL(0x30018080u); /* 0x3000F8FD: call 0x30018080 */ /* not lifted */ 2119 RECOMP_FLAGS_IN(); 2120 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2122 esp = esp + 8; /* 0x3000F902: add esp, 8 */ 2123 _flag_k = FK_ADD; 2124 MEM32(esi + 0x8) = edi; /* 0x3000F905: mov dword ptr [esi + 8], edi */ 2125 edi = POP32_VAL(esp); /* 0x3000F908: pop edi */ 2126 esi = POP32_VAL(esp); /* 0x3000F909: pop esi */ 2127 ebx = POP32_VAL(esp); /* 0x3000F90A: pop ebx */ 2128 esp = ebp; /* 0x3000F90B: mov esp, ebp */ 2129 ebp = POP32_VAL(esp); /* 0x3000F90D: pop ebp */ 2130 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000F90E: ret */ 2131 L_30018A40: 2132 ecx = MEM32(ebp + (-0x18)); /* 0x30018A40: mov ecx, dword ptr [ebp - 0x18] */ 2133 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 2134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2135 ecx = ecx + 0xCu; /* 0x30018A43: add ecx, 0xc */ 2136 _flag_k = FK_ADD; 2137 RECOMP_BACKEDGE(); 2138 goto L_3000F850; /* 0x30018A46: jmp 0x3000f850 */ 2139 { RECOMP_REGS_OUT(); return; } /* end of function */ 2140 RECOMP_REGS_OUT(); 2141 } 2142 2143 void sub_30018A4B(void) { 2144 int _fpu_cmp = 0; 2145 uint32_t _cf = 0; 2146 int _df = 1; 2147 uint32_t _flag_k = FK_NONE; 2148 uint32_t _flag_a = 0, _flag_b = 0; 2149 uint32_t _itail_tgt = 0; 2150 RECOMP_REGS_LOCALS 2151 RECOMP_ENTER(0x30018A4Bu); 2152 2153 goto L_30018A4B; 2154 L_3000FAB0: 2155 PUSH32(esp, ebp); /* 0x3000FAB0: push ebp */ 2156 ebp = esp; /* 0x3000FAB1: mov ebp, esp */ 2157 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2159 esp = esp - 8; /* 0x3000FAB3: sub esp, 8 */ 2160 _flag_k = FK_CMP; 2161 PUSH32(esp, ebx); /* 0x3000FAB6: push ebx */ 2162 PUSH32(esp, esi); /* 0x3000FAB7: push esi */ 2163 esi = ecx; /* 0x3000FAB8: mov esi, ecx */ 2164 PUSH32(esp, edi); /* 0x3000FABA: push edi */ 2165 edi = MEM32(esi + 0x4); /* 0x3000FABB: mov edi, dword ptr [esi + 4] */ 2166 ecx = MEM32(esi + 0x10); /* 0x3000FABE: mov ecx, dword ptr [esi + 0x10] */ 2167 /* test ecx, ecx */ /* 0x3000FAC1: test ecx, ecx */ 2168 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2169 _cf = 0; 2170 _flag_k = FK_TEST; 2171 eax = MEM32(edi); /* 0x3000FAC3: mov eax, dword ptr [edi] */ 2172 MEM32(ebp + (-0x4)) = eax; /* 0x3000FAC5: mov dword ptr [ebp - 4], eax */ 2173 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FB27; /* 0x3000FAC8: je 0x3000fb27 */ 2174 L_3000FACA: 2175 ecx = eax; /* 0x3000FACA: mov ecx, eax */ 2176 /* cmp eax, ecx */ /* 0x3000FACC: cmp eax, ecx */ 2177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2179 _flag_k = FK_CMP; 2180 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FB27; /* 0x3000FACE: jne 0x3000fb27 */ 2181 L_3000FAD0: 2182 /* cmp edi, edi */ /* 0x3000FAD0: cmp edi, edi */ 2183 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2185 _flag_k = FK_CMP; 2186 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FB27; /* 0x3000FAD2: jne 0x3000fb27 */ 2187 L_3000FAD4: 2188 ebx = MEM32(edi + 0x4); /* 0x3000FAD4: mov ebx, dword ptr [edi + 4] */ 2189 eax = MEM32(esi + 0x8); /* 0x3000FAD7: mov eax, dword ptr [esi + 8] */ 2190 /* cmp ebx, eax */ /* 0x3000FADA: cmp ebx, eax */ 2191 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2193 _flag_k = FK_CMP; 2194 edi = ebx; /* 0x3000FADC: mov edi, ebx */ 2195 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FAFF; /* 0x3000FADE: je 0x3000faff */ 2196 L_3000FAE0: 2197 eax = MEM32(edi + 0x8); /* 0x3000FAE0: mov eax, dword ptr [edi + 8] */ 2198 ecx = esi; /* 0x3000FAE3: mov ecx, esi */ 2199 PUSH32(esp, eax); /* 0x3000FAE5: push eax */ 2200 RECOMP_ICALL(0x30012A30u); /* 0x3000FAE6: call 0x30012a30 */ /* not lifted */ 2201 RECOMP_FLAGS_IN(); 2202 edi = MEM32(edi); /* 0x3000FAEB: mov edi, dword ptr [edi] */ 2203 PUSH32(esp, ebx); /* 0x3000FAED: push ebx */ 2204 RECOMP_ICALL(0x30018080u); /* 0x3000FAEE: call 0x30018080 */ /* not lifted */ 2205 RECOMP_FLAGS_IN(); 2206 eax = MEM32(esi + 0x8); /* 0x3000FAF3: mov eax, dword ptr [esi + 8] */ 2207 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2209 esp = esp + 4; /* 0x3000FAF6: add esp, 4 */ 2210 _flag_k = FK_ADD; 2211 /* cmp edi, eax */ /* 0x3000FAF9: cmp edi, eax */ 2212 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2214 _flag_k = FK_CMP; 2215 ebx = edi; /* 0x3000FAFB: mov ebx, edi */ 2216 RECOMP_BACKEDGE(); 2217 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FAE0; /* 0x3000FAFD: jne 0x3000fae0 */ 2218 L_3000FAFF: 2219 ecx = MEM32(esi + 0x4); /* 0x3000FAFF: mov ecx, dword ptr [esi + 4] */ 2220 edx = MEM32(esi + 0x8); /* 0x3000FB02: mov edx, dword ptr [esi + 8] */ 2221 MEM32(ecx + 0x4) = edx; /* 0x3000FB05: mov dword ptr [ecx + 4], edx */ 2222 eax = MEM32(esi + 0x4); /* 0x3000FB08: mov eax, dword ptr [esi + 4] */ 2223 MEM32(esi + 0x10) = 0; /* 0x3000FB0B: mov dword ptr [esi + 0x10], 0 */ 2224 ecx = esi; /* 0x3000FB12: mov ecx, esi */ 2225 MEM32(eax) = eax; /* 0x3000FB14: mov dword ptr [eax], eax */ 2226 eax = MEM32(esi + 0x4); /* 0x3000FB16: mov eax, dword ptr [esi + 4] */ 2227 MEM32(eax + 0x8) = eax; /* 0x3000FB19: mov dword ptr [eax + 8], eax */ 2228 eax = ebp + (-0x8); /* 0x3000FB1C: lea eax, [ebp - 8] */ 2229 PUSH32(esp, eax); /* 0x3000FB1F: push eax */ 2230 RECOMP_ICALL(0x30011670u); /* 0x3000FB20: call 0x30011670 */ /* not lifted */ 2231 RECOMP_FLAGS_IN(); 2232 goto L_3000FB48; /* 0x3000FB25: jmp 0x3000fb48 */ 2233 L_3000FB27: 2234 /* cmp eax, edi */ /* 0x3000FB27: cmp eax, edi */ 2235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2237 _flag_k = FK_CMP; 2238 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FB48; /* 0x3000FB29: je 0x3000fb48 */ 2239 L_3000FB2B: 2240 ecx = ebp + (-0x4); /* 0x3000FB2B: lea ecx, [ebp - 4] */ 2241 ebx = eax; /* 0x3000FB2E: mov ebx, eax */ 2242 RECOMP_ICALL(0x300117B0u); /* 0x3000FB30: call 0x300117b0 */ /* not lifted */ 2243 RECOMP_FLAGS_IN(); 2244 ecx = ebp + (-0x8); /* 0x3000FB35: lea ecx, [ebp - 8] */ 2245 PUSH32(esp, ebx); /* 0x3000FB38: push ebx */ 2246 PUSH32(esp, ecx); /* 0x3000FB39: push ecx */ 2247 ecx = esi; /* 0x3000FB3A: mov ecx, esi */ 2248 RECOMP_ICALL(0x30012670u); /* 0x3000FB3C: call 0x30012670 */ /* not lifted */ 2249 RECOMP_FLAGS_IN(); 2250 eax = MEM32(ebp + (-0x4)); /* 0x3000FB41: mov eax, dword ptr [ebp - 4] */ 2251 /* cmp eax, edi */ /* 0x3000FB44: cmp eax, edi */ 2252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2254 _flag_k = FK_CMP; 2255 RECOMP_BACKEDGE(); 2256 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FB2B; /* 0x3000FB46: jne 0x3000fb2b */ 2257 L_3000FB48: 2258 edx = MEM32(esi + 0x4); /* 0x3000FB48: mov edx, dword ptr [esi + 4] */ 2259 PUSH32(esp, edx); /* 0x3000FB4B: push edx */ 2260 RECOMP_ICALL(0x30018080u); /* 0x3000FB4C: call 0x30018080 */ /* not lifted */ 2261 RECOMP_FLAGS_IN(); 2262 eax = MEM32(esi + 0x8); /* 0x3000FB51: mov eax, dword ptr [esi + 8] */ 2263 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2264 edi = 0; /* 0x3000FB54: xor edi, edi */ 2265 _cf = 0; 2266 _flag_k = FK_TEST; 2267 PUSH32(esp, eax); /* 0x3000FB56: push eax */ 2268 MEM32(esi + 0x4) = edi; /* 0x3000FB57: mov dword ptr [esi + 4], edi */ 2269 MEM32(esi + 0x10) = edi; /* 0x3000FB5A: mov dword ptr [esi + 0x10], edi */ 2270 RECOMP_ICALL(0x30018080u); /* 0x3000FB5D: call 0x30018080 */ /* not lifted */ 2271 RECOMP_FLAGS_IN(); 2272 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2274 esp = esp + 8; /* 0x3000FB62: add esp, 8 */ 2275 _flag_k = FK_ADD; 2276 MEM32(esi + 0x8) = edi; /* 0x3000FB65: mov dword ptr [esi + 8], edi */ 2277 edi = POP32_VAL(esp); /* 0x3000FB68: pop edi */ 2278 esi = POP32_VAL(esp); /* 0x3000FB69: pop esi */ 2279 ebx = POP32_VAL(esp); /* 0x3000FB6A: pop ebx */ 2280 esp = ebp; /* 0x3000FB6B: mov esp, ebp */ 2281 ebp = POP32_VAL(esp); /* 0x3000FB6D: pop ebp */ 2282 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000FB6E: ret */ 2283 L_30018A4B: 2284 ecx = ebp + (-0x34); /* 0x30018A4B: lea ecx, [ebp - 0x34] */ 2285 RECOMP_BACKEDGE(); 2286 goto L_3000FAB0; /* 0x30018A4E: jmp 0x3000fab0 */ 2287 { RECOMP_REGS_OUT(); return; } /* end of function */ 2288 RECOMP_REGS_OUT(); 2289 } 2290 2291 void sub_30018A53(void) { 2292 int _fpu_cmp = 0; 2293 uint32_t _cf = 0; 2294 int _df = 1; 2295 uint32_t _flag_k = FK_NONE; 2296 uint32_t _flag_a = 0, _flag_b = 0; 2297 uint32_t _itail_tgt = 0; 2298 RECOMP_REGS_LOCALS 2299 RECOMP_ENTER(0x30018A53u); 2300 2301 goto L_30018A53; 2302 L_300180AE: 2303 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 2304 L_30018A53: 2305 eax = 0x3001A070u; /* 0x30018A53: mov eax, 0x3001a070 */ 2306 L_30018A58: 2307 RECOMP_BACKEDGE(); 2308 goto L_300180AE; /* 0x30018A58: jmp 0x300180ae */ 2309 { RECOMP_REGS_OUT(); return; } /* end of function */ 2310 _ljump: 2311 switch (_itail_tgt) { 2312 case 0x300180AEu: goto L_300180AE; 2313 case 0x30018A53u: goto L_30018A53; 2314 case 0x30018A58u: goto L_30018A58; 2315 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2316 } 2317 RECOMP_REGS_OUT(); 2318 } 2319 2320 void sub_30018A60(void) { 2321 int _fpu_cmp = 0; 2322 uint32_t _cf = 0; 2323 int _df = 1; 2324 uint32_t _flag_k = FK_NONE; 2325 uint32_t _flag_a = 0, _flag_b = 0; 2326 uint32_t _itail_tgt = 0; 2327 RECOMP_REGS_LOCALS 2328 RECOMP_ENTER(0x30018A60u); 2329 2330 L_30018A60: 2331 eax = MEM32(ebp + (-0x20)); /* 0x30018A60: mov eax, dword ptr [ebp - 0x20] */ 2332 PUSH32(esp, eax); /* 0x30018A63: push eax */ 2333 RECOMP_ICALL(0x30018080u); /* 0x30018A64: call 0x30018080 */ /* not lifted */ 2334 RECOMP_FLAGS_IN(); 2335 ecx = POP32_VAL(esp); /* 0x30018A69: pop ecx */ 2336 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30018A6A: ret */ 2337 RECOMP_REGS_OUT(); 2338 } 2339 2340 void sub_30018A6B(void) { 2341 int _fpu_cmp = 0; 2342 uint32_t _cf = 0; 2343 int _df = 1; 2344 uint32_t _flag_k = FK_NONE; 2345 uint32_t _flag_a = 0, _flag_b = 0; 2346 uint32_t _itail_tgt = 0; 2347 RECOMP_REGS_LOCALS 2348 RECOMP_ENTER(0x30018A6Bu); 2349 2350 goto L_30018A6B; 2351 L_300180AE: 2352 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 2353 L_30018A6B: 2354 eax = 0x3001A0A0u; /* 0x30018A6B: mov eax, 0x3001a0a0 */ 2355 L_30018A70: 2356 RECOMP_BACKEDGE(); 2357 goto L_300180AE; /* 0x30018A70: jmp 0x300180ae */ 2358 { RECOMP_REGS_OUT(); return; } /* end of function */ 2359 _ljump: 2360 switch (_itail_tgt) { 2361 case 0x300180AEu: goto L_300180AE; 2362 case 0x30018A6Bu: goto L_30018A6B; 2363 case 0x30018A70u: goto L_30018A70; 2364 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2365 } 2366 RECOMP_REGS_OUT(); 2367 } 2368 2369 void sub_30018A80(void) { 2370 int _fpu_cmp = 0; 2371 uint32_t _cf = 0; 2372 int _df = 1; 2373 uint32_t _flag_k = FK_NONE; 2374 uint32_t _flag_a = 0, _flag_b = 0; 2375 uint32_t _itail_tgt = 0; 2376 RECOMP_REGS_LOCALS 2377 RECOMP_ENTER(0x30018A80u); 2378 2379 goto L_30018A80; 2380 L_30011200: 2381 PUSH32(esp, esi); /* 0x30011200: push esi */ 2382 esi = ecx; /* 0x30011201: mov esi, ecx */ 2383 eax = MEM32(esi + 0x2C); /* 0x30011203: mov eax, dword ptr [esi + 0x2c] */ 2384 /* test eax, eax */ /* 0x30011206: test eax, eax */ 2385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2386 _cf = 0; 2387 _flag_k = FK_TEST; 2388 if (TEST_Z(_flag_a, _flag_b)) goto L_300112CD; /* 0x30011208: je 0x300112cd */ 2389 L_3001120E: 2390 PUSH32(esp, ebx); /* 0x3001120E: push ebx */ 2391 PUSH32(esp, edi); /* 0x3001120F: push edi */ 2392 if (TEST_Z(_flag_a, _flag_b)) goto L_300112C0; /* 0x30011210: je 0x300112c0 */ 2393 L_30011216: 2394 eax = MEM32(esi + 0xC); /* 0x30011216: mov eax, dword ptr [esi + 0xc] */ 2395 ecx = MEM32(esi + 0x8); /* 0x30011219: mov ecx, dword ptr [esi + 8] */ 2396 edi = MEM32(esi + 0x10); /* 0x3001121C: mov edi, dword ptr [esi + 0x10] */ 2397 /* cmp eax, ecx */ /* 0x3001121F: cmp eax, ecx */ 2398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2400 _flag_k = FK_CMP; 2401 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001124E; /* 0x30011221: je 0x3001124e */ 2402 L_30011223: 2403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2405 eax = eax + 4; /* 0x30011223: add eax, 4 */ 2406 _flag_k = FK_ADD; 2407 /* cmp eax, ecx */ /* 0x30011226: cmp eax, ecx */ 2408 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2410 _flag_k = FK_CMP; 2411 MEM32(esi + 0xC) = eax; /* 0x30011228: mov dword ptr [esi + 0xc], eax */ 2412 if (CMP_NE(_flag_a, _flag_b)) goto L_3001124E; /* 0x3001122B: jne 0x3001124e */ 2413 L_3001122D: 2414 eax = MEM32(esi + 0x10); /* 0x3001122D: mov eax, dword ptr [esi + 0x10] */ 2415 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2416 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2417 eax = eax + 4; /* 0x30011230: add eax, 4 */ 2418 _flag_k = FK_ADD; 2419 /* cmp MEM32(eax), 0 */ /* 0x30011233: cmp dword ptr [eax], 0 */ 2420 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 2421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2422 _flag_k = FK_CMP; 2423 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001124E; /* 0x30011236: je 0x3001124e */ 2424 L_30011238: 2425 MEM32(esi + 0x10) = eax; /* 0x30011238: mov dword ptr [esi + 0x10], eax */ 2426 eax = MEM32(eax); /* 0x3001123B: mov eax, dword ptr [eax] */ 2427 MEM32(esi + 0x4) = eax; /* 0x3001123D: mov dword ptr [esi + 4], eax */ 2428 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 2429 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2430 eax = eax + 0x1000u; /* 0x30011240: add eax, 0x1000 */ 2431 _flag_k = FK_ADD; 2432 MEM32(esi + 0x8) = eax; /* 0x30011245: mov dword ptr [esi + 8], eax */ 2433 eax = MEM32(esi + 0x4); /* 0x30011248: mov eax, dword ptr [esi + 4] */ 2434 MEM32(esi + 0xC) = eax; /* 0x3001124B: mov dword ptr [esi + 0xc], eax */ 2435 L_3001124E: 2436 eax = MEM32(esi + 0x2C); /* 0x3001124E: mov eax, dword ptr [esi + 0x2c] */ 2437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2438 eax = eax - 1; /* 0x30011251: dec eax */ 2439 _flag_k = FK_DEC; 2440 MEM32(esi + 0x2C) = eax; /* 0x30011252: mov dword ptr [esi + 0x2c], eax */ 2441 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300112AA; /* 0x30011255: jne 0x300112aa */ 2442 L_30011257: 2443 ecx = MEM32(esi + 0x10); /* 0x30011257: mov ecx, dword ptr [esi + 0x10] */ 2444 edx = MEM32(ecx + (-0x4)); /* 0x3001125A: mov edx, dword ptr [ecx - 4] */ 2445 PUSH32(esp, edx); /* 0x3001125D: push edx */ 2446 RECOMP_ICALL(0x30018080u); /* 0x3001125E: call 0x30018080 */ /* not lifted */ 2447 RECOMP_FLAGS_IN(); 2448 eax = MEM32(esi + 0x10); /* 0x30011263: mov eax, dword ptr [esi + 0x10] */ 2449 ecx = MEM32(eax); /* 0x30011266: mov ecx, dword ptr [eax] */ 2450 PUSH32(esp, ecx); /* 0x30011268: push ecx */ 2451 RECOMP_ICALL(0x30018080u); /* 0x30011269: call 0x30018080 */ /* not lifted */ 2452 RECOMP_FLAGS_IN(); 2453 edx = MEM32(esi + 0x10); /* 0x3001126E: mov edx, dword ptr [esi + 0x10] */ 2454 eax = MEM32(edx + 0x4); /* 0x30011271: mov eax, dword ptr [edx + 4] */ 2455 PUSH32(esp, eax); /* 0x30011274: push eax */ 2456 RECOMP_ICALL(0x30018080u); /* 0x30011275: call 0x30018080 */ /* not lifted */ 2457 RECOMP_FLAGS_IN(); 2458 ebx = esi + 0x14; /* 0x3001127A: lea ebx, [esi + 0x14] */ 2459 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2460 eax = 0; /* 0x3001127D: xor eax, eax */ 2461 _cf = 0; 2462 _flag_k = FK_TEST; 2463 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2464 ecx = 0; /* 0x3001127F: xor ecx, ecx */ 2465 _cf = 0; 2466 _flag_k = FK_TEST; 2467 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2468 edx = 0; /* 0x30011281: xor edx, edx */ 2469 _cf = 0; 2470 _flag_k = FK_TEST; 2471 MEM32(ebx) = eax; /* 0x30011283: mov dword ptr [ebx], eax */ 2472 MEM32(esi + 0x4) = eax; /* 0x30011285: mov dword ptr [esi + 4], eax */ 2473 MEM32(esi + 0x8) = ecx; /* 0x30011288: mov dword ptr [esi + 8], ecx */ 2474 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2475 edi = 0; /* 0x3001128B: xor edi, edi */ 2476 _cf = 0; 2477 _flag_k = FK_TEST; 2478 MEM32(ebx + 0x4) = ecx; /* 0x3001128D: mov dword ptr [ebx + 4], ecx */ 2479 ecx = MEM32(esi + 0x24); /* 0x30011290: mov ecx, dword ptr [esi + 0x24] */ 2480 MEM32(esi + 0xC) = edx; /* 0x30011293: mov dword ptr [esi + 0xc], edx */ 2481 PUSH32(esp, ecx); /* 0x30011296: push ecx */ 2482 MEM32(ebx + 0x8) = edx; /* 0x30011297: mov dword ptr [ebx + 8], edx */ 2483 MEM32(esi + 0x10) = edi; /* 0x3001129A: mov dword ptr [esi + 0x10], edi */ 2484 MEM32(ebx + 0xC) = edi; /* 0x3001129D: mov dword ptr [ebx + 0xc], edi */ 2485 RECOMP_ICALL(0x30018080u); /* 0x300112A0: call 0x30018080 */ /* not lifted */ 2486 RECOMP_FLAGS_IN(); 2487 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2489 esp = esp + 0x10u; /* 0x300112A5: add esp, 0x10 */ 2490 _flag_k = FK_ADD; 2491 goto L_300112C0; /* 0x300112A8: jmp 0x300112c0 */ 2492 L_300112AA: 2493 /* cmp edi, MEM32(esi + 0x10) */ /* 0x300112AA: cmp edi, dword ptr [esi + 0x10] */ 2494 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x10)); 2495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2496 _flag_k = FK_CMP; 2497 if (CMP_EQ(_flag_a, _flag_b)) goto L_300112C0; /* 0x300112AD: je 0x300112c0 */ 2498 L_300112AF: 2499 edx = MEM32(edi); /* 0x300112AF: mov edx, dword ptr [edi] */ 2500 PUSH32(esp, edx); /* 0x300112B1: push edx */ 2501 RECOMP_ICALL(0x30018080u); /* 0x300112B2: call 0x30018080 */ /* not lifted */ 2502 RECOMP_FLAGS_IN(); 2503 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2505 esp = esp + 4; /* 0x300112B7: add esp, 4 */ 2506 _flag_k = FK_ADD; 2507 MEM32(edi) = 0; /* 0x300112BA: mov dword ptr [edi], 0 */ 2508 L_300112C0: 2509 eax = MEM32(esi + 0x2C); /* 0x300112C0: mov eax, dword ptr [esi + 0x2c] */ 2510 /* test eax, eax */ /* 0x300112C3: test eax, eax */ 2511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2512 _cf = 0; 2513 _flag_k = FK_TEST; 2514 RECOMP_BACKEDGE(); 2515 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011216; /* 0x300112C5: jne 0x30011216 */ 2516 L_300112CB: 2517 edi = POP32_VAL(esp); /* 0x300112CB: pop edi */ 2518 ebx = POP32_VAL(esp); /* 0x300112CC: pop ebx */ 2519 L_300112CD: 2520 esi = POP32_VAL(esp); /* 0x300112CD: pop esi */ 2521 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300112CE: ret */ 2522 L_30018A80: 2523 ecx = ebp + (-0x44); /* 0x30018A80: lea ecx, [ebp - 0x44] */ 2524 RECOMP_BACKEDGE(); 2525 goto L_30011200; /* 0x30018A83: jmp 0x30011200 */ 2526 { RECOMP_REGS_OUT(); return; } /* end of function */ 2527 RECOMP_REGS_OUT(); 2528 } 2529 2530 void sub_30018A88(void) { 2531 int _fpu_cmp = 0; 2532 uint32_t _cf = 0; 2533 int _df = 1; 2534 uint32_t _flag_k = FK_NONE; 2535 uint32_t _flag_a = 0, _flag_b = 0; 2536 uint32_t _itail_tgt = 0; 2537 RECOMP_REGS_LOCALS 2538 RECOMP_ENTER(0x30018A88u); 2539 2540 goto L_30018A88; 2541 L_300180AE: 2542 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 2543 L_30018A88: 2544 eax = 0x3001A0C8u; /* 0x30018A88: mov eax, 0x3001a0c8 */ 2545 L_30018A8D: 2546 RECOMP_BACKEDGE(); 2547 goto L_300180AE; /* 0x30018A8D: jmp 0x300180ae */ 2548 { RECOMP_REGS_OUT(); return; } /* end of function */ 2549 _ljump: 2550 switch (_itail_tgt) { 2551 case 0x300180AEu: goto L_300180AE; 2552 case 0x30018A88u: goto L_30018A88; 2553 case 0x30018A8Du: goto L_30018A8D; 2554 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2555 } 2556 RECOMP_REGS_OUT(); 2557 } 2558 2559 void sub_30018AA0(void) { 2560 int _fpu_cmp = 0; 2561 uint32_t _cf = 0; 2562 int _df = 1; 2563 uint32_t _flag_k = FK_NONE; 2564 uint32_t _flag_a = 0, _flag_b = 0; 2565 uint32_t _itail_tgt = 0; 2566 RECOMP_REGS_LOCALS 2567 RECOMP_ENTER(0x30018AA0u); 2568 2569 goto L_30018AA0; 2570 L_300108E0: 2571 PUSH32(esp, ebp); /* 0x300108E0: push ebp */ 2572 ebp = esp; /* 0x300108E1: mov ebp, esp */ 2573 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2575 esp = esp - 8; /* 0x300108E3: sub esp, 8 */ 2576 _flag_k = FK_CMP; 2577 PUSH32(esp, ebx); /* 0x300108E6: push ebx */ 2578 PUSH32(esp, esi); /* 0x300108E7: push esi */ 2579 esi = ecx; /* 0x300108E8: mov esi, ecx */ 2580 PUSH32(esp, edi); /* 0x300108EA: push edi */ 2581 edi = MEM32(esi + 0x4); /* 0x300108EB: mov edi, dword ptr [esi + 4] */ 2582 ecx = MEM32(esi + 0x10); /* 0x300108EE: mov ecx, dword ptr [esi + 0x10] */ 2583 /* test ecx, ecx */ /* 0x300108F1: test ecx, ecx */ 2584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2585 _cf = 0; 2586 _flag_k = FK_TEST; 2587 eax = MEM32(edi); /* 0x300108F3: mov eax, dword ptr [edi] */ 2588 MEM32(ebp + (-0x4)) = eax; /* 0x300108F5: mov dword ptr [ebp - 4], eax */ 2589 if (TEST_Z(_flag_a, _flag_b)) goto L_30010957; /* 0x300108F8: je 0x30010957 */ 2590 L_300108FA: 2591 ecx = eax; /* 0x300108FA: mov ecx, eax */ 2592 /* cmp eax, ecx */ /* 0x300108FC: cmp eax, ecx */ 2593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2595 _flag_k = FK_CMP; 2596 if (CMP_NE(_flag_a, _flag_b)) goto L_30010957; /* 0x300108FE: jne 0x30010957 */ 2597 L_30010900: 2598 /* cmp edi, edi */ /* 0x30010900: cmp edi, edi */ 2599 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2601 _flag_k = FK_CMP; 2602 if (CMP_NE(_flag_a, _flag_b)) goto L_30010957; /* 0x30010902: jne 0x30010957 */ 2603 L_30010904: 2604 ebx = MEM32(edi + 0x4); /* 0x30010904: mov ebx, dword ptr [edi + 4] */ 2605 eax = MEM32(esi + 0x8); /* 0x30010907: mov eax, dword ptr [esi + 8] */ 2606 /* cmp ebx, eax */ /* 0x3001090A: cmp ebx, eax */ 2607 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2609 _flag_k = FK_CMP; 2610 edi = ebx; /* 0x3001090C: mov edi, ebx */ 2611 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001092F; /* 0x3001090E: je 0x3001092f */ 2612 L_30010910: 2613 eax = MEM32(edi + 0x8); /* 0x30010910: mov eax, dword ptr [edi + 8] */ 2614 ecx = esi; /* 0x30010913: mov ecx, esi */ 2615 PUSH32(esp, eax); /* 0x30010915: push eax */ 2616 RECOMP_ICALL(0x30012B30u); /* 0x30010916: call 0x30012b30 */ /* not lifted */ 2617 RECOMP_FLAGS_IN(); 2618 edi = MEM32(edi); /* 0x3001091B: mov edi, dword ptr [edi] */ 2619 PUSH32(esp, ebx); /* 0x3001091D: push ebx */ 2620 RECOMP_ICALL(0x30018080u); /* 0x3001091E: call 0x30018080 */ /* not lifted */ 2621 RECOMP_FLAGS_IN(); 2622 eax = MEM32(esi + 0x8); /* 0x30010923: mov eax, dword ptr [esi + 8] */ 2623 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2625 esp = esp + 4; /* 0x30010926: add esp, 4 */ 2626 _flag_k = FK_ADD; 2627 /* cmp edi, eax */ /* 0x30010929: cmp edi, eax */ 2628 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2630 _flag_k = FK_CMP; 2631 ebx = edi; /* 0x3001092B: mov ebx, edi */ 2632 RECOMP_BACKEDGE(); 2633 if (CMP_NE(_flag_a, _flag_b)) goto L_30010910; /* 0x3001092D: jne 0x30010910 */ 2634 L_3001092F: 2635 ecx = MEM32(esi + 0x4); /* 0x3001092F: mov ecx, dword ptr [esi + 4] */ 2636 edx = MEM32(esi + 0x8); /* 0x30010932: mov edx, dword ptr [esi + 8] */ 2637 MEM32(ecx + 0x4) = edx; /* 0x30010935: mov dword ptr [ecx + 4], edx */ 2638 eax = MEM32(esi + 0x4); /* 0x30010938: mov eax, dword ptr [esi + 4] */ 2639 MEM32(esi + 0x10) = 0; /* 0x3001093B: mov dword ptr [esi + 0x10], 0 */ 2640 ecx = esi; /* 0x30010942: mov ecx, esi */ 2641 MEM32(eax) = eax; /* 0x30010944: mov dword ptr [eax], eax */ 2642 eax = MEM32(esi + 0x4); /* 0x30010946: mov eax, dword ptr [esi + 4] */ 2643 MEM32(eax + 0x8) = eax; /* 0x30010949: mov dword ptr [eax + 8], eax */ 2644 eax = ebp + (-0x8); /* 0x3001094C: lea eax, [ebp - 8] */ 2645 PUSH32(esp, eax); /* 0x3001094F: push eax */ 2646 RECOMP_ICALL(0x30011670u); /* 0x30010950: call 0x30011670 */ /* not lifted */ 2647 RECOMP_FLAGS_IN(); 2648 goto L_30010978; /* 0x30010955: jmp 0x30010978 */ 2649 L_30010957: 2650 /* cmp eax, edi */ /* 0x30010957: cmp eax, edi */ 2651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2653 _flag_k = FK_CMP; 2654 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010978; /* 0x30010959: je 0x30010978 */ 2655 L_3001095B: 2656 ecx = ebp + (-0x4); /* 0x3001095B: lea ecx, [ebp - 4] */ 2657 ebx = eax; /* 0x3001095E: mov ebx, eax */ 2658 RECOMP_ICALL(0x30011CD0u); /* 0x30010960: call 0x30011cd0 */ /* not lifted */ 2659 RECOMP_FLAGS_IN(); 2660 ecx = ebp + (-0x8); /* 0x30010965: lea ecx, [ebp - 8] */ 2661 PUSH32(esp, ebx); /* 0x30010968: push ebx */ 2662 PUSH32(esp, ecx); /* 0x30010969: push ecx */ 2663 ecx = esi; /* 0x3001096A: mov ecx, esi */ 2664 RECOMP_ICALL(0x30011FC0u); /* 0x3001096C: call 0x30011fc0 */ /* not lifted */ 2665 RECOMP_FLAGS_IN(); 2666 eax = MEM32(ebp + (-0x4)); /* 0x30010971: mov eax, dword ptr [ebp - 4] */ 2667 /* cmp eax, edi */ /* 0x30010974: cmp eax, edi */ 2668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2670 _flag_k = FK_CMP; 2671 RECOMP_BACKEDGE(); 2672 if (CMP_NE(_flag_a, _flag_b)) goto L_3001095B; /* 0x30010976: jne 0x3001095b */ 2673 L_30010978: 2674 edx = MEM32(esi + 0x4); /* 0x30010978: mov edx, dword ptr [esi + 4] */ 2675 PUSH32(esp, edx); /* 0x3001097B: push edx */ 2676 RECOMP_ICALL(0x30018080u); /* 0x3001097C: call 0x30018080 */ /* not lifted */ 2677 RECOMP_FLAGS_IN(); 2678 eax = MEM32(esi + 0x8); /* 0x30010981: mov eax, dword ptr [esi + 8] */ 2679 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2680 edi = 0; /* 0x30010984: xor edi, edi */ 2681 _cf = 0; 2682 _flag_k = FK_TEST; 2683 PUSH32(esp, eax); /* 0x30010986: push eax */ 2684 MEM32(esi + 0x4) = edi; /* 0x30010987: mov dword ptr [esi + 4], edi */ 2685 MEM32(esi + 0x10) = edi; /* 0x3001098A: mov dword ptr [esi + 0x10], edi */ 2686 RECOMP_ICALL(0x30018080u); /* 0x3001098D: call 0x30018080 */ /* not lifted */ 2687 RECOMP_FLAGS_IN(); 2688 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2690 esp = esp + 8; /* 0x30010992: add esp, 8 */ 2691 _flag_k = FK_ADD; 2692 MEM32(esi + 0x8) = edi; /* 0x30010995: mov dword ptr [esi + 8], edi */ 2693 edi = POP32_VAL(esp); /* 0x30010998: pop edi */ 2694 esi = POP32_VAL(esp); /* 0x30010999: pop esi */ 2695 ebx = POP32_VAL(esp); /* 0x3001099A: pop ebx */ 2696 esp = ebp; /* 0x3001099B: mov esp, ebp */ 2697 ebp = POP32_VAL(esp); /* 0x3001099D: pop ebp */ 2698 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3001099E: ret */ 2699 L_30018AA0: 2700 ecx = ebp + (-0x50); /* 0x30018AA0: lea ecx, [ebp - 0x50] */ 2701 RECOMP_BACKEDGE(); 2702 goto L_300108E0; /* 0x30018AA3: jmp 0x300108e0 */ 2703 { RECOMP_REGS_OUT(); return; } /* end of function */ 2704 RECOMP_REGS_OUT(); 2705 } 2706 2707 void sub_30018AA8(void) { 2708 int _fpu_cmp = 0; 2709 uint32_t _cf = 0; 2710 int _df = 1; 2711 uint32_t _flag_k = FK_NONE; 2712 uint32_t _flag_a = 0, _flag_b = 0; 2713 uint32_t _itail_tgt = 0; 2714 RECOMP_REGS_LOCALS 2715 RECOMP_ENTER(0x30018AA8u); 2716 2717 goto L_30018AA8; 2718 L_3000FAB0: 2719 PUSH32(esp, ebp); /* 0x3000FAB0: push ebp */ 2720 ebp = esp; /* 0x3000FAB1: mov ebp, esp */ 2721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2723 esp = esp - 8; /* 0x3000FAB3: sub esp, 8 */ 2724 _flag_k = FK_CMP; 2725 PUSH32(esp, ebx); /* 0x3000FAB6: push ebx */ 2726 PUSH32(esp, esi); /* 0x3000FAB7: push esi */ 2727 esi = ecx; /* 0x3000FAB8: mov esi, ecx */ 2728 PUSH32(esp, edi); /* 0x3000FABA: push edi */ 2729 edi = MEM32(esi + 0x4); /* 0x3000FABB: mov edi, dword ptr [esi + 4] */ 2730 ecx = MEM32(esi + 0x10); /* 0x3000FABE: mov ecx, dword ptr [esi + 0x10] */ 2731 /* test ecx, ecx */ /* 0x3000FAC1: test ecx, ecx */ 2732 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2733 _cf = 0; 2734 _flag_k = FK_TEST; 2735 eax = MEM32(edi); /* 0x3000FAC3: mov eax, dword ptr [edi] */ 2736 MEM32(ebp + (-0x4)) = eax; /* 0x3000FAC5: mov dword ptr [ebp - 4], eax */ 2737 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FB27; /* 0x3000FAC8: je 0x3000fb27 */ 2738 L_3000FACA: 2739 ecx = eax; /* 0x3000FACA: mov ecx, eax */ 2740 /* cmp eax, ecx */ /* 0x3000FACC: cmp eax, ecx */ 2741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2743 _flag_k = FK_CMP; 2744 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FB27; /* 0x3000FACE: jne 0x3000fb27 */ 2745 L_3000FAD0: 2746 /* cmp edi, edi */ /* 0x3000FAD0: cmp edi, edi */ 2747 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2749 _flag_k = FK_CMP; 2750 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FB27; /* 0x3000FAD2: jne 0x3000fb27 */ 2751 L_3000FAD4: 2752 ebx = MEM32(edi + 0x4); /* 0x3000FAD4: mov ebx, dword ptr [edi + 4] */ 2753 eax = MEM32(esi + 0x8); /* 0x3000FAD7: mov eax, dword ptr [esi + 8] */ 2754 /* cmp ebx, eax */ /* 0x3000FADA: cmp ebx, eax */ 2755 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2757 _flag_k = FK_CMP; 2758 edi = ebx; /* 0x3000FADC: mov edi, ebx */ 2759 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FAFF; /* 0x3000FADE: je 0x3000faff */ 2760 L_3000FAE0: 2761 eax = MEM32(edi + 0x8); /* 0x3000FAE0: mov eax, dword ptr [edi + 8] */ 2762 ecx = esi; /* 0x3000FAE3: mov ecx, esi */ 2763 PUSH32(esp, eax); /* 0x3000FAE5: push eax */ 2764 RECOMP_ICALL(0x30012A30u); /* 0x3000FAE6: call 0x30012a30 */ /* not lifted */ 2765 RECOMP_FLAGS_IN(); 2766 edi = MEM32(edi); /* 0x3000FAEB: mov edi, dword ptr [edi] */ 2767 PUSH32(esp, ebx); /* 0x3000FAED: push ebx */ 2768 RECOMP_ICALL(0x30018080u); /* 0x3000FAEE: call 0x30018080 */ /* not lifted */ 2769 RECOMP_FLAGS_IN(); 2770 eax = MEM32(esi + 0x8); /* 0x3000FAF3: mov eax, dword ptr [esi + 8] */ 2771 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2773 esp = esp + 4; /* 0x3000FAF6: add esp, 4 */ 2774 _flag_k = FK_ADD; 2775 /* cmp edi, eax */ /* 0x3000FAF9: cmp edi, eax */ 2776 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2778 _flag_k = FK_CMP; 2779 ebx = edi; /* 0x3000FAFB: mov ebx, edi */ 2780 RECOMP_BACKEDGE(); 2781 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FAE0; /* 0x3000FAFD: jne 0x3000fae0 */ 2782 L_3000FAFF: 2783 ecx = MEM32(esi + 0x4); /* 0x3000FAFF: mov ecx, dword ptr [esi + 4] */ 2784 edx = MEM32(esi + 0x8); /* 0x3000FB02: mov edx, dword ptr [esi + 8] */ 2785 MEM32(ecx + 0x4) = edx; /* 0x3000FB05: mov dword ptr [ecx + 4], edx */ 2786 eax = MEM32(esi + 0x4); /* 0x3000FB08: mov eax, dword ptr [esi + 4] */ 2787 MEM32(esi + 0x10) = 0; /* 0x3000FB0B: mov dword ptr [esi + 0x10], 0 */ 2788 ecx = esi; /* 0x3000FB12: mov ecx, esi */ 2789 MEM32(eax) = eax; /* 0x3000FB14: mov dword ptr [eax], eax */ 2790 eax = MEM32(esi + 0x4); /* 0x3000FB16: mov eax, dword ptr [esi + 4] */ 2791 MEM32(eax + 0x8) = eax; /* 0x3000FB19: mov dword ptr [eax + 8], eax */ 2792 eax = ebp + (-0x8); /* 0x3000FB1C: lea eax, [ebp - 8] */ 2793 PUSH32(esp, eax); /* 0x3000FB1F: push eax */ 2794 RECOMP_ICALL(0x30011670u); /* 0x3000FB20: call 0x30011670 */ /* not lifted */ 2795 RECOMP_FLAGS_IN(); 2796 goto L_3000FB48; /* 0x3000FB25: jmp 0x3000fb48 */ 2797 L_3000FB27: 2798 /* cmp eax, edi */ /* 0x3000FB27: cmp eax, edi */ 2799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2800 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2801 _flag_k = FK_CMP; 2802 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FB48; /* 0x3000FB29: je 0x3000fb48 */ 2803 L_3000FB2B: 2804 ecx = ebp + (-0x4); /* 0x3000FB2B: lea ecx, [ebp - 4] */ 2805 ebx = eax; /* 0x3000FB2E: mov ebx, eax */ 2806 RECOMP_ICALL(0x300117B0u); /* 0x3000FB30: call 0x300117b0 */ /* not lifted */ 2807 RECOMP_FLAGS_IN(); 2808 ecx = ebp + (-0x8); /* 0x3000FB35: lea ecx, [ebp - 8] */ 2809 PUSH32(esp, ebx); /* 0x3000FB38: push ebx */ 2810 PUSH32(esp, ecx); /* 0x3000FB39: push ecx */ 2811 ecx = esi; /* 0x3000FB3A: mov ecx, esi */ 2812 RECOMP_ICALL(0x30012670u); /* 0x3000FB3C: call 0x30012670 */ /* not lifted */ 2813 RECOMP_FLAGS_IN(); 2814 eax = MEM32(ebp + (-0x4)); /* 0x3000FB41: mov eax, dword ptr [ebp - 4] */ 2815 /* cmp eax, edi */ /* 0x3000FB44: cmp eax, edi */ 2816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2818 _flag_k = FK_CMP; 2819 RECOMP_BACKEDGE(); 2820 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FB2B; /* 0x3000FB46: jne 0x3000fb2b */ 2821 L_3000FB48: 2822 edx = MEM32(esi + 0x4); /* 0x3000FB48: mov edx, dword ptr [esi + 4] */ 2823 PUSH32(esp, edx); /* 0x3000FB4B: push edx */ 2824 RECOMP_ICALL(0x30018080u); /* 0x3000FB4C: call 0x30018080 */ /* not lifted */ 2825 RECOMP_FLAGS_IN(); 2826 eax = MEM32(esi + 0x8); /* 0x3000FB51: mov eax, dword ptr [esi + 8] */ 2827 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2828 edi = 0; /* 0x3000FB54: xor edi, edi */ 2829 _cf = 0; 2830 _flag_k = FK_TEST; 2831 PUSH32(esp, eax); /* 0x3000FB56: push eax */ 2832 MEM32(esi + 0x4) = edi; /* 0x3000FB57: mov dword ptr [esi + 4], edi */ 2833 MEM32(esi + 0x10) = edi; /* 0x3000FB5A: mov dword ptr [esi + 0x10], edi */ 2834 RECOMP_ICALL(0x30018080u); /* 0x3000FB5D: call 0x30018080 */ /* not lifted */ 2835 RECOMP_FLAGS_IN(); 2836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2838 esp = esp + 8; /* 0x3000FB62: add esp, 8 */ 2839 _flag_k = FK_ADD; 2840 MEM32(esi + 0x8) = edi; /* 0x3000FB65: mov dword ptr [esi + 8], edi */ 2841 edi = POP32_VAL(esp); /* 0x3000FB68: pop edi */ 2842 esi = POP32_VAL(esp); /* 0x3000FB69: pop esi */ 2843 ebx = POP32_VAL(esp); /* 0x3000FB6A: pop ebx */ 2844 esp = ebp; /* 0x3000FB6B: mov esp, ebp */ 2845 ebp = POP32_VAL(esp); /* 0x3000FB6D: pop ebp */ 2846 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000FB6E: ret */ 2847 L_30018AA8: 2848 ecx = ebp + (-0x3C); /* 0x30018AA8: lea ecx, [ebp - 0x3c] */ 2849 RECOMP_BACKEDGE(); 2850 goto L_3000FAB0; /* 0x30018AAB: jmp 0x3000fab0 */ 2851 { RECOMP_REGS_OUT(); return; } /* end of function */ 2852 RECOMP_REGS_OUT(); 2853 } 2854 2855 void sub_30018AB0(void) { 2856 int _fpu_cmp = 0; 2857 uint32_t _cf = 0; 2858 int _df = 1; 2859 uint32_t _flag_k = FK_NONE; 2860 uint32_t _flag_a = 0, _flag_b = 0; 2861 uint32_t _itail_tgt = 0; 2862 RECOMP_REGS_LOCALS 2863 RECOMP_ENTER(0x30018AB0u); 2864 2865 goto L_30018AB0; 2866 L_300180AE: 2867 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 2868 L_30018AB0: 2869 eax = 0x3001A0F0u; /* 0x30018AB0: mov eax, 0x3001a0f0 */ 2870 L_30018AB5: 2871 RECOMP_BACKEDGE(); 2872 goto L_300180AE; /* 0x30018AB5: jmp 0x300180ae */ 2873 { RECOMP_REGS_OUT(); return; } /* end of function */ 2874 _ljump: 2875 switch (_itail_tgt) { 2876 case 0x300180AEu: goto L_300180AE; 2877 case 0x30018AB0u: goto L_30018AB0; 2878 case 0x30018AB5u: goto L_30018AB5; 2879 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2880 } 2881 RECOMP_REGS_OUT(); 2882 } 2883 2884 void sub_30018AC0(void) { 2885 int _fpu_cmp = 0; 2886 uint32_t _cf = 0; 2887 int _df = 1; 2888 uint32_t _flag_k = FK_NONE; 2889 uint32_t _flag_a = 0, _flag_b = 0; 2890 uint32_t _itail_tgt = 0; 2891 RECOMP_REGS_LOCALS 2892 RECOMP_ENTER(0x30018AC0u); 2893 2894 L_30018AC0: 2895 ecx = MEM32(ebp + (-0x10)); /* 0x30018AC0: mov ecx, dword ptr [ebp - 0x10] */ 2896 L_30018AC3: 2897 { _itail_tgt = (uint32_t)(MEM32(0x300190FC)); goto _ljump; } 2898 { RECOMP_REGS_OUT(); return; } /* end of function */ 2899 _ljump: 2900 switch (_itail_tgt) { 2901 case 0x30018AC0u: goto L_30018AC0; 2902 case 0x30018AC3u: goto L_30018AC3; 2903 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2904 } 2905 RECOMP_REGS_OUT(); 2906 } 2907 2908 void sub_30018AC9(void) { 2909 int _fpu_cmp = 0; 2910 uint32_t _cf = 0; 2911 int _df = 1; 2912 uint32_t _flag_k = FK_NONE; 2913 uint32_t _flag_a = 0, _flag_b = 0; 2914 uint32_t _itail_tgt = 0; 2915 RECOMP_REGS_LOCALS 2916 RECOMP_ENTER(0x30018AC9u); 2917 2918 goto L_30018AC9; 2919 L_300180AE: 2920 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 2921 L_30018AC9: 2922 eax = 0x3001A120u; /* 0x30018AC9: mov eax, 0x3001a120 */ 2923 L_30018ACE: 2924 RECOMP_BACKEDGE(); 2925 goto L_300180AE; /* 0x30018ACE: jmp 0x300180ae */ 2926 { RECOMP_REGS_OUT(); return; } /* end of function */ 2927 _ljump: 2928 switch (_itail_tgt) { 2929 case 0x300180AEu: goto L_300180AE; 2930 case 0x30018AC9u: goto L_30018AC9; 2931 case 0x30018ACEu: goto L_30018ACE; 2932 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2933 } 2934 RECOMP_REGS_OUT(); 2935 } 2936 2937 void sub_30018AE0(void) { 2938 int _fpu_cmp = 0; 2939 uint32_t _cf = 0; 2940 int _df = 1; 2941 uint32_t _flag_k = FK_NONE; 2942 uint32_t _flag_a = 0, _flag_b = 0; 2943 uint32_t _itail_tgt = 0; 2944 RECOMP_REGS_LOCALS 2945 RECOMP_ENTER(0x30018AE0u); 2946 2947 L_30018AE0: 2948 eax = MEM32(ebp + (-0x1C)); /* 0x30018AE0: mov eax, dword ptr [ebp - 0x1c] */ 2949 PUSH32(esp, eax); /* 0x30018AE3: push eax */ 2950 RECOMP_ICALL(0x30018080u); /* 0x30018AE4: call 0x30018080 */ /* not lifted */ 2951 RECOMP_FLAGS_IN(); 2952 ecx = POP32_VAL(esp); /* 0x30018AE9: pop ecx */ 2953 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30018AEA: ret */ 2954 RECOMP_REGS_OUT(); 2955 } 2956 2957 void sub_30018AEB(void) { 2958 int _fpu_cmp = 0; 2959 uint32_t _cf = 0; 2960 int _df = 1; 2961 uint32_t _flag_k = FK_NONE; 2962 uint32_t _flag_a = 0, _flag_b = 0; 2963 uint32_t _itail_tgt = 0; 2964 RECOMP_REGS_LOCALS 2965 RECOMP_ENTER(0x30018AEBu); 2966 2967 L_30018AEB: 2968 eax = MEM32(ebp + (-0x1C)); /* 0x30018AEB: mov eax, dword ptr [ebp - 0x1c] */ 2969 PUSH32(esp, eax); /* 0x30018AEE: push eax */ 2970 RECOMP_ICALL(0x30018080u); /* 0x30018AEF: call 0x30018080 */ /* not lifted */ 2971 RECOMP_FLAGS_IN(); 2972 ecx = POP32_VAL(esp); /* 0x30018AF4: pop ecx */ 2973 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30018AF5: ret */ 2974 RECOMP_REGS_OUT(); 2975 } 2976 2977 void sub_30018AF6(void) { 2978 int _fpu_cmp = 0; 2979 uint32_t _cf = 0; 2980 int _df = 1; 2981 uint32_t _flag_k = FK_NONE; 2982 uint32_t _flag_a = 0, _flag_b = 0; 2983 uint32_t _itail_tgt = 0; 2984 RECOMP_REGS_LOCALS 2985 RECOMP_ENTER(0x30018AF6u); 2986 2987 L_30018AF6: 2988 eax = MEM32(ebp + (-0x1C)); /* 0x30018AF6: mov eax, dword ptr [ebp - 0x1c] */ 2989 PUSH32(esp, eax); /* 0x30018AF9: push eax */ 2990 RECOMP_ICALL(0x30018080u); /* 0x30018AFA: call 0x30018080 */ /* not lifted */ 2991 RECOMP_FLAGS_IN(); 2992 ecx = POP32_VAL(esp); /* 0x30018AFF: pop ecx */ 2993 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30018B00: ret */ 2994 RECOMP_REGS_OUT(); 2995 } 2996 2997 void sub_30018B01(void) { 2998 int _fpu_cmp = 0; 2999 uint32_t _cf = 0; 3000 int _df = 1; 3001 uint32_t _flag_k = FK_NONE; 3002 uint32_t _flag_a = 0, _flag_b = 0; 3003 uint32_t _itail_tgt = 0; 3004 RECOMP_REGS_LOCALS 3005 RECOMP_ENTER(0x30018B01u); 3006 3007 goto L_30018B01; 3008 L_300180AE: 3009 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 3010 L_30018B01: 3011 eax = 0x3001A148u; /* 0x30018B01: mov eax, 0x3001a148 */ 3012 L_30018B06: 3013 RECOMP_BACKEDGE(); 3014 goto L_300180AE; /* 0x30018B06: jmp 0x300180ae */ 3015 { RECOMP_REGS_OUT(); return; } /* end of function */ 3016 _ljump: 3017 switch (_itail_tgt) { 3018 case 0x300180AEu: goto L_300180AE; 3019 case 0x30018B01u: goto L_30018B01; 3020 case 0x30018B06u: goto L_30018B06; 3021 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3022 } 3023 RECOMP_REGS_OUT(); 3024 } 3025 3026 void sub_30018B10(void) { 3027 int _fpu_cmp = 0; 3028 uint32_t _cf = 0; 3029 int _df = 1; 3030 uint32_t _flag_k = FK_NONE; 3031 uint32_t _flag_a = 0, _flag_b = 0; 3032 uint32_t _itail_tgt = 0; 3033 RECOMP_REGS_LOCALS 3034 RECOMP_ENTER(0x30018B10u); 3035 3036 goto L_30018B10; 3037 L_30017780: 3038 goto L_30017790; /* 0x30017780: jmp 0x30017790 */ 3039 L_30017790: 3040 PUSH32(esp, esi); /* 0x30017790: push esi */ 3041 esi = ecx; /* 0x30017791: mov esi, ecx */ 3042 /* cmp MEM8(esi), 0 */ /* 0x30017793: cmp byte ptr [esi], 0 */ 3043 _flag_a = (uint32_t)(MEM8(esi)) << 24; _flag_b = (uint32_t)(0) << 24; 3044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3045 _flag_k = FK_NARROW(FK_CMP, 24); 3046 if (CMP_EQ(_flag_a, _flag_b)) goto L_300177AD; /* 0x30017796: je 0x300177ad */ 3047 L_30017798: 3048 eax = MEM32(esi + 0x4); /* 0x30017798: mov eax, dword ptr [esi + 4] */ 3049 PUSH32(esp, eax); /* 0x3001779B: push eax */ 3050 RECOMP_ICALL(0x30018080u); /* 0x3001779C: call 0x30018080 */ /* not lifted */ 3051 RECOMP_FLAGS_IN(); 3052 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3054 esp = esp + 4; /* 0x300177A1: add esp, 4 */ 3055 _flag_k = FK_ADD; 3056 MEM32(esi + 0x4) = 0; /* 0x300177A4: mov dword ptr [esi + 4], 0 */ 3057 esi = POP32_VAL(esp); /* 0x300177AB: pop esi */ 3058 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300177AC: ret */ 3059 L_300177AD: 3060 ecx = MEM32(esi + 0x4); /* 0x300177AD: mov ecx, dword ptr [esi + 4] */ 3061 PUSH32(esp, ecx); /* 0x300177B0: push ecx */ 3062 ecx = 0x3001FC50u; /* 0x300177B1: mov ecx, 0x3001fc50 */ 3063 RECOMP_ICALL(0x30017E20u); /* 0x300177B6: call 0x30017e20 */ /* not lifted */ 3064 RECOMP_FLAGS_IN(); 3065 MEM32(esi + 0x4) = 0; /* 0x300177BB: mov dword ptr [esi + 4], 0 */ 3066 esi = POP32_VAL(esp); /* 0x300177C2: pop esi */ 3067 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300177C3: ret */ 3068 L_30018B10: 3069 ecx = ebp + (-0x18); /* 0x30018B10: lea ecx, [ebp - 0x18] */ 3070 RECOMP_BACKEDGE(); 3071 goto L_30017780; /* 0x30018B13: jmp 0x30017780 */ 3072 { RECOMP_REGS_OUT(); return; } /* end of function */ 3073 RECOMP_REGS_OUT(); 3074 } 3075 3076 void sub_30018B18(void) { 3077 int _fpu_cmp = 0; 3078 uint32_t _cf = 0; 3079 int _df = 1; 3080 uint32_t _flag_k = FK_NONE; 3081 uint32_t _flag_a = 0, _flag_b = 0; 3082 uint32_t _itail_tgt = 0; 3083 RECOMP_REGS_LOCALS 3084 RECOMP_ENTER(0x30018B18u); 3085 3086 goto L_30018B18; 3087 L_300180AE: 3088 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 3089 L_30018B18: 3090 eax = 0x3001A180u; /* 0x30018B18: mov eax, 0x3001a180 */ 3091 L_30018B1D: 3092 RECOMP_BACKEDGE(); 3093 goto L_300180AE; /* 0x30018B1D: jmp 0x300180ae */ 3094 { RECOMP_REGS_OUT(); return; } /* end of function */ 3095 _ljump: 3096 switch (_itail_tgt) { 3097 case 0x300180AEu: goto L_300180AE; 3098 case 0x30018B18u: goto L_30018B18; 3099 case 0x30018B1Du: goto L_30018B1D; 3100 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3101 } 3102 RECOMP_REGS_OUT(); 3103 } 3104 3105 void sub_30018B30(void) { 3106 int _fpu_cmp = 0; 3107 uint32_t _cf = 0; 3108 int _df = 1; 3109 uint32_t _flag_k = FK_NONE; 3110 uint32_t _flag_a = 0, _flag_b = 0; 3111 uint32_t _itail_tgt = 0; 3112 RECOMP_REGS_LOCALS 3113 RECOMP_ENTER(0x30018B30u); 3114 3115 L_30018B30: 3116 eax = MEM32(ebp + (-0x10)); /* 0x30018B30: mov eax, dword ptr [ebp - 0x10] */ 3117 PUSH32(esp, eax); /* 0x30018B33: push eax */ 3118 RECOMP_ICALL(0x30018080u); /* 0x30018B34: call 0x30018080 */ /* not lifted */ 3119 RECOMP_FLAGS_IN(); 3120 ecx = POP32_VAL(esp); /* 0x30018B39: pop ecx */ 3121 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30018B3A: ret */ 3122 RECOMP_REGS_OUT(); 3123 } 3124 3125 void sub_30018B3B(void) { 3126 int _fpu_cmp = 0; 3127 uint32_t _cf = 0; 3128 int _df = 1; 3129 uint32_t _flag_k = FK_NONE; 3130 uint32_t _flag_a = 0, _flag_b = 0; 3131 uint32_t _itail_tgt = 0; 3132 RECOMP_REGS_LOCALS 3133 RECOMP_ENTER(0x30018B3Bu); 3134 3135 goto L_30018B3B; 3136 L_300180AE: 3137 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 3138 L_30018B3B: 3139 eax = 0x3001A1A8u; /* 0x30018B3B: mov eax, 0x3001a1a8 */ 3140 L_30018B40: 3141 RECOMP_BACKEDGE(); 3142 goto L_300180AE; /* 0x30018B40: jmp 0x300180ae */ 3143 { RECOMP_REGS_OUT(); return; } /* end of function */ 3144 _ljump: 3145 switch (_itail_tgt) { 3146 case 0x300180AEu: goto L_300180AE; 3147 case 0x30018B3Bu: goto L_30018B3B; 3148 case 0x30018B40u: goto L_30018B40; 3149 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3150 } 3151 RECOMP_REGS_OUT(); 3152 } 3153 3154 void sub_30018B50(void) { 3155 int _fpu_cmp = 0; 3156 uint32_t _cf = 0; 3157 int _df = 1; 3158 uint32_t _flag_k = FK_NONE; 3159 uint32_t _flag_a = 0, _flag_b = 0; 3160 uint32_t _itail_tgt = 0; 3161 RECOMP_REGS_LOCALS 3162 RECOMP_ENTER(0x30018B50u); 3163 3164 L_30018B50: 3165 eax = MEM32(ebp + 0x8); /* 0x30018B50: mov eax, dword ptr [ebp + 8] */ 3166 PUSH32(esp, eax); /* 0x30018B53: push eax */ 3167 ecx = MEM32(ebp + (-0x10)); /* 0x30018B54: mov ecx, dword ptr [ebp - 0x10] */ 3168 PUSH32(esp, ecx); /* 0x30018B57: push ecx */ 3169 RECOMP_ICALL(0x30001AC0u); /* 0x30018B58: call 0x30001ac0 */ /* not lifted */ 3170 RECOMP_FLAGS_IN(); 3171 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3173 esp = esp + 8; /* 0x30018B5D: add esp, 8 */ 3174 _flag_k = FK_ADD; 3175 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30018B60: ret */ 3176 RECOMP_REGS_OUT(); 3177 } 3178 3179 void sub_30018B61(void) { 3180 int _fpu_cmp = 0; 3181 uint32_t _cf = 0; 3182 int _df = 1; 3183 uint32_t _flag_k = FK_NONE; 3184 uint32_t _flag_a = 0, _flag_b = 0; 3185 uint32_t _itail_tgt = 0; 3186 RECOMP_REGS_LOCALS 3187 RECOMP_ENTER(0x30018B61u); 3188 3189 goto L_30018B61; 3190 L_300180AE: 3191 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 3192 L_30018B61: 3193 eax = 0x3001A1D0u; /* 0x30018B61: mov eax, 0x3001a1d0 */ 3194 L_30018B66: 3195 RECOMP_BACKEDGE(); 3196 goto L_300180AE; /* 0x30018B66: jmp 0x300180ae */ 3197 { RECOMP_REGS_OUT(); return; } /* end of function */ 3198 _ljump: 3199 switch (_itail_tgt) { 3200 case 0x300180AEu: goto L_300180AE; 3201 case 0x30018B61u: goto L_30018B61; 3202 case 0x30018B66u: goto L_30018B66; 3203 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3204 } 3205 RECOMP_REGS_OUT(); 3206 } 3207 3208 void sub_30018B70(void) { 3209 int _fpu_cmp = 0; 3210 uint32_t _cf = 0; 3211 int _df = 1; 3212 uint32_t _flag_k = FK_NONE; 3213 uint32_t _flag_a = 0, _flag_b = 0; 3214 uint32_t _itail_tgt = 0; 3215 RECOMP_REGS_LOCALS 3216 RECOMP_ENTER(0x30018B70u); 3217 3218 L_30018B70: 3219 eax = MEM32(ebp + (-0x14)); /* 0x30018B70: mov eax, dword ptr [ebp - 0x14] */ 3220 PUSH32(esp, eax); /* 0x30018B73: push eax */ 3221 RECOMP_ICALL(0x30018080u); /* 0x30018B74: call 0x30018080 */ /* not lifted */ 3222 RECOMP_FLAGS_IN(); 3223 ecx = POP32_VAL(esp); /* 0x30018B79: pop ecx */ 3224 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30018B7A: ret */ 3225 RECOMP_REGS_OUT(); 3226 } 3227 3228 void sub_30018B7B(void) { 3229 int _fpu_cmp = 0; 3230 uint32_t _cf = 0; 3231 int _df = 1; 3232 uint32_t _flag_k = FK_NONE; 3233 uint32_t _flag_a = 0, _flag_b = 0; 3234 uint32_t _itail_tgt = 0; 3235 RECOMP_REGS_LOCALS 3236 RECOMP_ENTER(0x30018B7Bu); 3237 3238 goto L_30018B7B; 3239 L_300180AE: 3240 { _itail_tgt = (uint32_t)(MEM32(0x30019050)); goto _ljump; } 3241 L_30018B7B: 3242 eax = 0x3001A1F8u; /* 0x30018B7B: mov eax, 0x3001a1f8 */ 3243 L_30018B80: 3244 RECOMP_BACKEDGE(); 3245 goto L_300180AE; /* 0x30018B80: jmp 0x300180ae */ 3246 { RECOMP_REGS_OUT(); return; } /* end of function */ 3247 _ljump: 3248 switch (_itail_tgt) { 3249 case 0x300180AEu: goto L_300180AE; 3250 case 0x30018B7Bu: goto L_30018B7B; 3251 case 0x30018B80u: goto L_30018B80; 3252 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3253 } 3254 RECOMP_REGS_OUT(); 3255 }