client/game/ddr.dll/lifted-0018.c (416233B)
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_2B045F00(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(0x2B045F00u); 17 18 L_2B045F00: 19 PUSH32(esp, ebp); /* 0x2B045F00: push ebp */ 20 ebp = esp; /* 0x2B045F01: mov ebp, esp */ 21 PUSH32(esp, esi); /* 0x2B045F03: push esi */ 22 esi = ecx; /* 0x2B045F04: mov esi, ecx */ 23 RECOMP_ICALL(0x2B045F30u); /* 0x2B045F06: call 0x2b045f30 */ /* not lifted */ 24 RECOMP_FLAGS_IN(); 25 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B045F0B: test byte ptr [ebp + 8], 1 */ 26 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 27 _cf = 0; 28 _flag_k = FK_NARROW(FK_TEST, 24); 29 if (TEST_Z(_flag_a, _flag_b)) goto L_2B045F1A; /* 0x2B045F0F: je 0x2b045f1a */ 30 L_2B045F11: 31 PUSH32(esp, esi); /* 0x2B045F11: push esi */ 32 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B045F12: call 0x2b0ab1ba */ /* not lifted */ 33 RECOMP_FLAGS_IN(); 34 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 35 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36 esp = esp + 4; /* 0x2B045F17: add esp, 4 */ 37 _flag_k = FK_ADD; 38 L_2B045F1A: 39 eax = esi; /* 0x2B045F1A: mov eax, esi */ 40 esi = POP32_VAL(esp); /* 0x2B045F1C: pop esi */ 41 ebp = POP32_VAL(esp); /* 0x2B045F1D: pop ebp */ 42 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B045F1E: ret 4 */ 43 RECOMP_REGS_OUT(); 44 } 45 46 void sub_2B045F30(void) { 47 int _fpu_cmp = 0; 48 uint32_t _cf = 0; 49 int _df = 1; 50 uint32_t _flag_k = FK_NONE; 51 uint32_t _flag_a = 0, _flag_b = 0; 52 uint32_t _itail_tgt = 0; 53 RECOMP_REGS_LOCALS 54 RECOMP_ENTER(0x2B045F30u); 55 56 L_2B045F30: 57 PUSH32(esp, ebp); /* 0x2B045F30: push ebp */ 58 ebp = esp; /* 0x2B045F31: mov ebp, esp */ 59 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B045F33: push -1 */ 60 PUSH32(esp, 0x2B0AF078u); /* 0x2B045F35: push 0x2b0af078 */ 61 eax = MEM32(FS_BASE + (0)); /* 0x2B045F3A: mov eax, dword ptr fs:[0] */ 62 PUSH32(esp, eax); /* 0x2B045F40: push eax */ 63 MEM32(FS_BASE + (0)) = esp; /* 0x2B045F41: mov dword ptr fs:[0], esp */ 64 PUSH32(esp, ecx); /* 0x2B045F48: push ecx */ 65 PUSH32(esp, esi); /* 0x2B045F49: push esi */ 66 esi = ecx; /* 0x2B045F4A: mov esi, ecx */ 67 PUSH32(esp, edi); /* 0x2B045F4C: push edi */ 68 MEM32(ebp + (-0x10)) = esi; /* 0x2B045F4D: mov dword ptr [ebp - 0x10], esi */ 69 MEM32(esi) = 0x2B0B69D0u; /* 0x2B045F50: mov dword ptr [esi], 0x2b0b69d0 */ 70 MEM32(ebp + (-0x4)) = 0; /* 0x2B045F56: mov dword ptr [ebp - 4], 0 */ 71 RECOMP_ICALL(0x2B0461A0u); /* 0x2B045F5D: call 0x2b0461a0 */ /* not lifted */ 72 RECOMP_FLAGS_IN(); 73 ecx = MEM32(esi + 0x30); /* 0x2B045F62: mov ecx, dword ptr [esi + 0x30] */ 74 /* test ecx, ecx */ /* 0x2B045F65: test ecx, ecx */ 75 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 76 _cf = 0; 77 _flag_k = FK_TEST; 78 if (TEST_Z(_flag_a, _flag_b)) goto L_2B045F6F; /* 0x2B045F67: je 0x2b045f6f */ 79 L_2B045F69: 80 eax = MEM32(ecx); /* 0x2B045F69: mov eax, dword ptr [ecx] */ 81 PUSH32(esp, 1); /* 0x2B045F6B: push 1 */ 82 RECOMP_ICALL(MEM32(eax)); /* 0x2B045F6D: call dword ptr [eax] */ 83 RECOMP_FLAGS_IN(); 84 L_2B045F6F: 85 ecx = MEM32(esi + 0x2C); /* 0x2B045F6F: mov ecx, dword ptr [esi + 0x2c] */ 86 /* test ecx, ecx */ /* 0x2B045F72: test ecx, ecx */ 87 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 88 _cf = 0; 89 _flag_k = FK_TEST; 90 if (TEST_Z(_flag_a, _flag_b)) goto L_2B045F7C; /* 0x2B045F74: je 0x2b045f7c */ 91 L_2B045F76: 92 edx = MEM32(ecx); /* 0x2B045F76: mov edx, dword ptr [ecx] */ 93 PUSH32(esp, 1); /* 0x2B045F78: push 1 */ 94 RECOMP_ICALL(MEM32(edx)); /* 0x2B045F7A: call dword ptr [edx] */ 95 RECOMP_FLAGS_IN(); 96 L_2B045F7C: 97 edi = MEM32(esi + 0x28); /* 0x2B045F7C: mov edi, dword ptr [esi + 0x28] */ 98 /* test edi, edi */ /* 0x2B045F7F: test edi, edi */ 99 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 100 _cf = 0; 101 _flag_k = FK_TEST; 102 if (TEST_Z(_flag_a, _flag_b)) goto L_2B045F94; /* 0x2B045F81: je 0x2b045f94 */ 103 L_2B045F83: 104 ecx = edi; /* 0x2B045F83: mov ecx, edi */ 105 RECOMP_ICALL(MEM32(0x2B0B58E8)); /* 0x2B045F85: call dword ptr [0x2b0b58e8] */ 106 RECOMP_FLAGS_IN(); 107 PUSH32(esp, edi); /* 0x2B045F8B: push edi */ 108 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B045F8C: call 0x2b0ab1ba */ /* not lifted */ 109 RECOMP_FLAGS_IN(); 110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 112 esp = esp + 4; /* 0x2B045F91: add esp, 4 */ 113 _flag_k = FK_ADD; 114 L_2B045F94: 115 ecx = esi; /* 0x2B045F94: mov ecx, esi */ 116 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B045F96: mov dword ptr [ebp - 4], 0xffffffff */ 117 RECOMP_ICALL(0x2B03A290u); /* 0x2B045F9D: call 0x2b03a290 */ /* not lifted */ 118 RECOMP_FLAGS_IN(); 119 ecx = MEM32(ebp + (-0xC)); /* 0x2B045FA2: mov ecx, dword ptr [ebp - 0xc] */ 120 edi = POP32_VAL(esp); /* 0x2B045FA5: pop edi */ 121 esi = POP32_VAL(esp); /* 0x2B045FA6: pop esi */ 122 MEM32(FS_BASE + (0)) = ecx; /* 0x2B045FA7: mov dword ptr fs:[0], ecx */ 123 esp = ebp; /* 0x2B045FAE: mov esp, ebp */ 124 ebp = POP32_VAL(esp); /* 0x2B045FB0: pop ebp */ 125 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B045FB1: ret */ 126 RECOMP_REGS_OUT(); 127 } 128 129 void sub_2B045FC0(void) { 130 int _fpu_cmp = 0; 131 uint32_t _cf = 0; 132 int _df = 1; 133 uint32_t _flag_k = FK_NONE; 134 uint32_t _flag_a = 0, _flag_b = 0; 135 uint32_t _itail_tgt = 0; 136 RECOMP_REGS_LOCALS 137 RECOMP_ENTER(0x2B045FC0u); 138 139 L_2B045FC0: 140 PUSH32(esp, ebp); /* 0x2B045FC0: push ebp */ 141 ebp = esp; /* 0x2B045FC1: mov ebp, esp */ 142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 144 esp = esp - 8; /* 0x2B045FC3: sub esp, 8 */ 145 _flag_k = FK_CMP; 146 PUSH32(esp, esi); /* 0x2B045FC6: push esi */ 147 esi = ecx; /* 0x2B045FC7: mov esi, ecx */ 148 ecx = MEM32(esi + 0x8); /* 0x2B045FC9: mov ecx, dword ptr [esi + 8] */ 149 eax = MEM32(esi + 0x4); /* 0x2B045FCC: mov eax, dword ptr [esi + 4] */ 150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 152 ecx = ecx + 0x14u; /* 0x2B045FCF: add ecx, 0x14 */ 153 _flag_k = FK_ADD; 154 edx = ebp + (-0x8); /* 0x2B045FD2: lea edx, [ebp - 8] */ 155 MEM32(ebp + (-0x4)) = ecx; /* 0x2B045FD5: mov dword ptr [ebp - 4], ecx */ 156 ecx = MEM32(esi + 0x2C); /* 0x2B045FD8: mov ecx, dword ptr [esi + 0x2c] */ 157 PUSH32(esp, edx); /* 0x2B045FDB: push edx */ 158 MEM32(ebp + (-0x8)) = eax; /* 0x2B045FDC: mov dword ptr [ebp - 8], eax */ 159 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B045FDF: call dword ptr [0x2b0b5940] */ 160 RECOMP_FLAGS_IN(); 161 eax = MEM32(esi + 0x2C); /* 0x2B045FE5: mov eax, dword ptr [esi + 0x2c] */ 162 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B045FE8: mov byte ptr [eax + 9], 1 */ 163 ecx = MEM32(esi + 0x30); /* 0x2B045FEC: mov ecx, dword ptr [esi + 0x30] */ 164 edx = MEM32(ecx); /* 0x2B045FEF: mov edx, dword ptr [ecx] */ 165 eax = ebp + (-0x8); /* 0x2B045FF1: lea eax, [ebp - 8] */ 166 PUSH32(esp, eax); /* 0x2B045FF4: push eax */ 167 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B045FF5: call dword ptr [edx + 0x14] */ 168 RECOMP_FLAGS_IN(); 169 ecx = MEM32(ebp + (-0x8)); /* 0x2B045FF8: mov ecx, dword ptr [ebp - 8] */ 170 eax = MEM32(ebp + (-0x4)); /* 0x2B045FFB: mov eax, dword ptr [ebp - 4] */ 171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(9); 172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 173 ecx = ecx + 9; /* 0x2B045FFE: add ecx, 9 */ 174 _flag_k = FK_ADD; 175 MEM32(ebp + (-0x8)) = ecx; /* 0x2B046001: mov dword ptr [ebp - 8], ecx */ 176 ecx = ebp + (-0x8); /* 0x2B046004: lea ecx, [ebp - 8] */ 177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 179 eax = eax + 0xCu; /* 0x2B046007: add eax, 0xc */ 180 _flag_k = FK_ADD; 181 PUSH32(esp, ecx); /* 0x2B04600A: push ecx */ 182 ecx = MEM32(esi + 0x28); /* 0x2B04600B: mov ecx, dword ptr [esi + 0x28] */ 183 MEM32(ebp + (-0x4)) = eax; /* 0x2B04600E: mov dword ptr [ebp - 4], eax */ 184 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B046011: call dword ptr [0x2b0b58e0] */ 185 RECOMP_FLAGS_IN(); 186 ecx = MEM32(esi + 0x28); /* 0x2B046017: mov ecx, dword ptr [esi + 0x28] */ 187 PUSH32(esp, 0); /* 0x2B04601A: push 0 */ 188 RECOMP_ICALL(MEM32(0x2B0B58E4)); /* 0x2B04601C: call dword ptr [0x2b0b58e4] */ 189 RECOMP_FLAGS_IN(); 190 esi = POP32_VAL(esp); /* 0x2B046022: pop esi */ 191 esp = ebp; /* 0x2B046023: mov esp, ebp */ 192 ebp = POP32_VAL(esp); /* 0x2B046025: pop ebp */ 193 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046026: ret */ 194 RECOMP_REGS_OUT(); 195 } 196 197 void sub_2B046030(void) { 198 int _fpu_cmp = 0; 199 uint32_t _cf = 0; 200 int _df = 1; 201 uint32_t _flag_k = FK_NONE; 202 uint32_t _flag_a = 0, _flag_b = 0; 203 uint32_t _itail_tgt = 0; 204 RECOMP_REGS_LOCALS 205 RECOMP_ENTER(0x2B046030u); 206 207 L_2B046030: 208 SET_LO8(eax, MEM8(ecx + 0xC)); /* 0x2B046030: mov al, byte ptr [ecx + 0xc] */ 209 L_2B046033: 210 /* test LO8(eax), LO8(eax) */ /* 0x2B046033: test al, al */ 211 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 212 _cf = 0; 213 _flag_k = FK_NARROW(FK_TEST, 24); 214 L_2B046035: 215 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B04604E; /* 0x2B046035: je 0x2b04604e */ 216 L_2B046037: 217 edx = MEM32(ecx + 0x2C); /* 0x2B046037: mov edx, dword ptr [ecx + 0x2c] */ 218 L_2B04603A: 219 SET_LO8(eax, 1); /* 0x2B04603A: mov al, 1 */ 220 L_2B04603C: 221 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B04603C: mov byte ptr [edx + 8], al */ 222 L_2B04603F: 223 edx = MEM32(ecx + 0x30); /* 0x2B04603F: mov edx, dword ptr [ecx + 0x30] */ 224 L_2B046042: 225 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B046042: mov byte ptr [edx + 8], al */ 226 L_2B046045: 227 ecx = MEM32(ecx + 0x28); /* 0x2B046045: mov ecx, dword ptr [ecx + 0x28] */ 228 L_2B046048: 229 { _itail_tgt = (uint32_t)(MEM32(0x2B0B58DC)); goto _ljump; } 230 L_2B04604E: 231 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04604E: ret */ 232 _ljump: 233 switch (_itail_tgt) { 234 case 0x2B046030u: goto L_2B046030; 235 case 0x2B046033u: goto L_2B046033; 236 case 0x2B046035u: goto L_2B046035; 237 case 0x2B046037u: goto L_2B046037; 238 case 0x2B04603Au: goto L_2B04603A; 239 case 0x2B04603Cu: goto L_2B04603C; 240 case 0x2B04603Fu: goto L_2B04603F; 241 case 0x2B046042u: goto L_2B046042; 242 case 0x2B046045u: goto L_2B046045; 243 case 0x2B046048u: goto L_2B046048; 244 case 0x2B04604Eu: goto L_2B04604E; 245 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 246 } 247 RECOMP_REGS_OUT(); 248 } 249 250 void sub_2B046050(void) { 251 int _fpu_cmp = 0; 252 uint32_t _cf = 0; 253 int _df = 1; 254 uint32_t _flag_k = FK_NONE; 255 uint32_t _flag_a = 0, _flag_b = 0; 256 uint32_t _itail_tgt = 0; 257 RECOMP_REGS_LOCALS 258 RECOMP_ENTER(0x2B046050u); 259 260 L_2B046050: 261 edx = MEM32(ecx + 0x2C); /* 0x2B046050: mov edx, dword ptr [ecx + 0x2c] */ 262 L_2B046053: 263 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 264 SET_LO8(eax, 0); /* 0x2B046053: xor al, al */ 265 _cf = 0; 266 _flag_k = FK_NARROW(FK_TEST, 24); 267 L_2B046055: 268 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B046055: mov byte ptr [edx + 8], al */ 269 L_2B046058: 270 edx = MEM32(ecx + 0x30); /* 0x2B046058: mov edx, dword ptr [ecx + 0x30] */ 271 L_2B04605B: 272 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B04605B: mov byte ptr [edx + 8], al */ 273 L_2B04605E: 274 ecx = MEM32(ecx + 0x28); /* 0x2B04605E: mov ecx, dword ptr [ecx + 0x28] */ 275 L_2B046061: 276 { _itail_tgt = (uint32_t)(MEM32(0x2B0B58D8)); goto _ljump; } 277 { RECOMP_REGS_OUT(); return; } /* end of function */ 278 _ljump: 279 switch (_itail_tgt) { 280 case 0x2B046050u: goto L_2B046050; 281 case 0x2B046053u: goto L_2B046053; 282 case 0x2B046055u: goto L_2B046055; 283 case 0x2B046058u: goto L_2B046058; 284 case 0x2B04605Bu: goto L_2B04605B; 285 case 0x2B04605Eu: goto L_2B04605E; 286 case 0x2B046061u: goto L_2B046061; 287 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 288 } 289 RECOMP_REGS_OUT(); 290 } 291 292 void sub_2B046070(void) { 293 int _fpu_cmp = 0; 294 uint32_t _cf = 0; 295 int _df = 1; 296 uint32_t _flag_k = FK_NONE; 297 uint32_t _flag_a = 0, _flag_b = 0; 298 uint32_t _itail_tgt = 0; 299 RECOMP_REGS_LOCALS 300 RECOMP_ENTER(0x2B046070u); 301 302 L_2B046070: 303 PUSH32(esp, esi); /* 0x2B046070: push esi */ 304 esi = ecx; /* 0x2B046071: mov esi, ecx */ 305 RECOMP_ICALL(0x2B046090u); /* 0x2B046073: call 0x2b046090 */ /* not lifted */ 306 RECOMP_FLAGS_IN(); 307 SET_LO8(eax, MEM8(esi + 0x1C)); /* 0x2B046078: mov al, byte ptr [esi + 0x1c] */ 308 /* test LO8(eax), LO8(eax) */ /* 0x2B04607B: test al, al */ 309 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 310 _cf = 0; 311 _flag_k = FK_NARROW(FK_TEST, 24); 312 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B046086; /* 0x2B04607D: jne 0x2b046086 */ 313 L_2B04607F: 314 eax = MEM32(esi); /* 0x2B04607F: mov eax, dword ptr [esi] */ 315 ecx = esi; /* 0x2B046081: mov ecx, esi */ 316 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B046083: call dword ptr [eax + 0xc] */ 317 RECOMP_FLAGS_IN(); 318 L_2B046086: 319 ecx = esi; /* 0x2B046086: mov ecx, esi */ 320 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B046088: call 0x2b03a2b0 */ /* not lifted */ 321 RECOMP_FLAGS_IN(); 322 esi = POP32_VAL(esp); /* 0x2B04608D: pop esi */ 323 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04608E: ret */ 324 RECOMP_REGS_OUT(); 325 } 326 327 void sub_2B046090(void) { 328 int _fpu_cmp = 0; 329 uint32_t _cf = 0; 330 int _df = 1; 331 uint32_t _flag_k = FK_NONE; 332 uint32_t _flag_a = 0, _flag_b = 0; 333 uint32_t _itail_tgt = 0; 334 RECOMP_REGS_LOCALS 335 RECOMP_ENTER(0x2B046090u); 336 337 L_2B046090: 338 PUSH32(esp, ebp); /* 0x2B046090: push ebp */ 339 ebp = esp; /* 0x2B046091: mov ebp, esp */ 340 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu); 341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 342 esp = esp - 0x3Cu; /* 0x2B046093: sub esp, 0x3c */ 343 _flag_k = FK_CMP; 344 PUSH32(esp, ebx); /* 0x2B046096: push ebx */ 345 PUSH32(esp, esi); /* 0x2B046097: push esi */ 346 ebx = ecx; /* 0x2B046098: mov ebx, ecx */ 347 PUSH32(esp, edi); /* 0x2B04609A: push edi */ 348 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 349 esi = 0; /* 0x2B04609B: xor esi, esi */ 350 _cf = 0; 351 _flag_k = FK_TEST; 352 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 353 eax = 0; /* 0x2B04609D: xor eax, eax */ 354 _cf = 0; 355 _flag_k = FK_TEST; 356 MEM32(ebp + (-0x3C)) = esi; /* 0x2B04609F: mov dword ptr [ebp - 0x3c], esi */ 357 MEM32(ebp + (-0x38)) = esi; /* 0x2B0460A2: mov dword ptr [ebp - 0x38], esi */ 358 ecx = 0xAu; /* 0x2B0460A5: mov ecx, 0xa */ 359 edi = ebp + (-0x3C); /* 0x2B0460AA: lea edi, [ebp - 0x3c] */ 360 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0460AD: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 361 ecx = ebx; /* 0x2B0460AF: mov ecx, ebx */ 362 MEM32(ebp + (-0x20)) = 0x30u; /* 0x2B0460B1: mov dword ptr [ebp - 0x20], 0x30 */ 363 RECOMP_ICALL(0x2B0461A0u); /* 0x2B0460B8: call 0x2b0461a0 */ /* not lifted */ 364 RECOMP_FLAGS_IN(); 365 RECOMP_ICALL(MEM32(0x2B0B613C)); /* 0x2B0460BD: call dword ptr [0x2b0b613c] */ 366 RECOMP_FLAGS_IN(); 367 eax = MEM32(eax + 0x4); /* 0x2B0460C3: mov eax, dword ptr [eax + 4] */ 368 ecx = MEM32(eax + 0x4); /* 0x2B0460C6: mov ecx, dword ptr [eax + 4] */ 369 eax = MEM32(eax + 0x10); /* 0x2B0460C9: mov eax, dword ptr [eax + 0x10] */ 370 /* cmp eax, esi */ /* 0x2B0460CC: cmp eax, esi */ 371 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 373 _flag_k = FK_CMP; 374 edi = MEM32(ecx); /* 0x2B0460CE: mov edi, dword ptr [ecx] */ 375 MEM32(ebp + (-0x8)) = eax; /* 0x2B0460D0: mov dword ptr [ebp - 8], eax */ 376 MEM32(ebp + (-0x4)) = esi; /* 0x2B0460D3: mov dword ptr [ebp - 4], esi */ 377 if (CMP_LE(_flag_a, _flag_b)) goto L_2B04618E; /* 0x2B0460D6: jle 0x2b04618e */ 378 L_2B0460DC: 379 esi = MEM32(edi + 0x10); /* 0x2B0460DC: mov esi, dword ptr [edi + 0x10] */ 380 eax = MEM32(esi + 0x28); /* 0x2B0460DF: mov eax, dword ptr [esi + 0x28] */ 381 /* cmp eax, 1 */ /* 0x2B0460E2: cmp eax, 1 */ 382 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 384 _flag_k = FK_CMP; 385 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04611F; /* 0x2B0460E5: jne 0x2b04611f */ 386 L_2B0460E7: 387 eax = MEM32(esi + 0x24); /* 0x2B0460E7: mov eax, dword ptr [esi + 0x24] */ 388 ecx = MEM32(esi + 0x20); /* 0x2B0460EA: mov ecx, dword ptr [esi + 0x20] */ 389 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 390 edx = 0; /* 0x2B0460ED: xor edx, edx */ 391 _cf = 0; 392 _flag_k = FK_TEST; 393 /* test eax, eax */ /* 0x2B0460EF: test eax, eax */ 394 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 395 _cf = 0; 396 _flag_k = FK_TEST; 397 SET_LO16(edx, MEM16(esi + 0x14)); /* 0x2B0460F1: mov dx, word ptr [esi + 0x14] */ 398 MEM32(ebp + (-0x10)) = ecx; /* 0x2B0460F5: mov dword ptr [ebp - 0x10], ecx */ 399 MEM32(ebp + (-0xC)) = eax; /* 0x2B0460F8: mov dword ptr [ebp - 0xc], eax */ 400 MEM32(ebp + (-0x14)) = edx; /* 0x2B0460FB: mov dword ptr [ebp - 0x14], edx */ 401 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B046103; /* 0x2B0460FE: jne 0x2b046103 */ 402 L_2B046100: 403 MEM32(ebp + (-0xC)) = ecx; /* 0x2B046100: mov dword ptr [ebp - 0xc], ecx */ 404 L_2B046103: 405 eax = ebp + (-0x14); /* 0x2B046103: lea eax, [ebp - 0x14] */ 406 PUSH32(esp, eax); /* 0x2B046106: push eax */ 407 ecx = ebp + (-0x3C); /* 0x2B046107: lea ecx, [ebp - 0x3c] */ 408 PUSH32(esp, ecx); /* 0x2B04610A: push ecx */ 409 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B04610B: call dword ptr [0x2b0b5d6c] */ 410 RECOMP_FLAGS_IN(); 411 ecx = eax; /* 0x2B046111: mov ecx, eax */ 412 RECOMP_ICALL(MEM32(0x2B0B5D4C)); /* 0x2B046113: call dword ptr [0x2b0b5d4c] */ 413 RECOMP_FLAGS_IN(); 414 /* test LO8(eax), LO8(eax) */ /* 0x2B046119: test al, al */ 415 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 416 _cf = 0; 417 _flag_k = FK_NARROW(FK_TEST, 24); 418 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04618E; /* 0x2B04611B: je 0x2b04618e */ 419 L_2B04611D: 420 goto L_2B046134; /* 0x2B04611D: jmp 0x2b046134 */ 421 L_2B04611F: 422 /* test eax, eax */ /* 0x2B04611F: test eax, eax */ 423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 424 _cf = 0; 425 _flag_k = FK_TEST; 426 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046128; /* 0x2B046121: je 0x2b046128 */ 427 L_2B046123: 428 /* cmp eax, 2 */ /* 0x2B046123: cmp eax, 2 */ 429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 431 _flag_k = FK_CMP; 432 if (CMP_NE(_flag_a, _flag_b)) goto L_2B046134; /* 0x2B046126: jne 0x2b046134 */ 433 L_2B046128: 434 edx = MEM32(esi + 0xC); /* 0x2B046128: mov edx, dword ptr [esi + 0xc] */ 435 MEM32(ebp + (-0x3C)) = edx; /* 0x2B04612B: mov dword ptr [ebp - 0x3c], edx */ 436 eax = MEM32(esi + 0x10); /* 0x2B04612E: mov eax, dword ptr [esi + 0x10] */ 437 MEM32(ebp + (-0x38)) = eax; /* 0x2B046131: mov dword ptr [ebp - 0x38], eax */ 438 L_2B046134: 439 ecx = MEM32(ebp + (-0x3C)); /* 0x2B046134: mov ecx, dword ptr [ebp - 0x3c] */ 440 MEM32(esi + 0x4) = ecx; /* 0x2B046137: mov dword ptr [esi + 4], ecx */ 441 edx = MEM32(ebp + (-0x38)); /* 0x2B04613A: mov edx, dword ptr [ebp - 0x38] */ 442 eax = ebp + (-0x3C); /* 0x2B04613D: lea eax, [ebp - 0x3c] */ 443 MEM32(esi + 0x8) = edx; /* 0x2B046140: mov dword ptr [esi + 8], edx */ 444 ecx = MEM32(ebx + 0x28); /* 0x2B046143: mov ecx, dword ptr [ebx + 0x28] */ 445 PUSH32(esp, eax); /* 0x2B046146: push eax */ 446 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B046147: call dword ptr [0x2b0b58d0] */ 447 RECOMP_FLAGS_IN(); 448 edx = MEM32(ebp + (-0x4)); /* 0x2B04614D: mov edx, dword ptr [ebp - 4] */ 449 eax = MEM32(edi + 0x8); /* 0x2B046150: mov eax, dword ptr [edi + 8] */ 450 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B046153: mov cl, byte ptr [eax + 0x15] */ 451 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 452 edx = edx + 1; /* 0x2B046156: inc edx */ 453 _flag_k = FK_INC; 454 /* test LO8(ecx), LO8(ecx) */ /* 0x2B046157: test cl, cl */ 455 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 456 _cf = 0; 457 _flag_k = FK_NARROW(FK_TEST, 24); 458 MEM32(ebp + (-0x4)) = edx; /* 0x2B046159: mov dword ptr [ebp - 4], edx */ 459 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B046169; /* 0x2B04615C: jne 0x2b046169 */ 460 L_2B04615E: 461 PUSH32(esp, eax); /* 0x2B04615E: push eax */ 462 RECOMP_ICALL(0x2B0190E0u); /* 0x2B04615F: call 0x2b0190e0 */ /* not lifted */ 463 RECOMP_FLAGS_IN(); 464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 466 esp = esp + 4; /* 0x2B046164: add esp, 4 */ 467 _flag_k = FK_ADD; 468 goto L_2B046180; /* 0x2B046167: jmp 0x2b046180 */ 469 L_2B046169: 470 eax = MEM32(edi + 0x4); /* 0x2B046169: mov eax, dword ptr [edi + 4] */ 471 /* cmp edi, MEM32(eax + 0x8) */ /* 0x2B04616C: cmp edi, dword ptr [eax + 8] */ 472 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 474 _flag_k = FK_CMP; 475 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04617B; /* 0x2B04616F: jne 0x2b04617b */ 476 L_2B046171: 477 edi = eax; /* 0x2B046171: mov edi, eax */ 478 eax = MEM32(eax + 0x4); /* 0x2B046173: mov eax, dword ptr [eax + 4] */ 479 /* cmp edi, MEM32(eax + 0x8) */ /* 0x2B046176: cmp edi, dword ptr [eax + 8] */ 480 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 482 _flag_k = FK_CMP; 483 RECOMP_BACKEDGE(); 484 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046171; /* 0x2B046179: je 0x2b046171 */ 485 L_2B04617B: 486 /* cmp MEM32(edi + 0x8), eax */ /* 0x2B04617B: cmp dword ptr [edi + 8], eax */ 487 _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(eax); 488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 489 _flag_k = FK_CMP; 490 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046182; /* 0x2B04617E: je 0x2b046182 */ 491 L_2B046180: 492 edi = eax; /* 0x2B046180: mov edi, eax */ 493 L_2B046182: 494 ecx = MEM32(ebp + (-0x4)); /* 0x2B046182: mov ecx, dword ptr [ebp - 4] */ 495 /* cmp ecx, MEM32(ebp + (-0x8)) */ /* 0x2B046185: cmp ecx, dword ptr [ebp - 8] */ 496 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x8))); 497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 498 _flag_k = FK_CMP; 499 RECOMP_BACKEDGE(); 500 if (CMP_L(_flag_a, _flag_b)) goto L_2B0460DC; /* 0x2B046188: jl 0x2b0460dc */ 501 L_2B04618E: 502 ecx = MEM32(ebx + 0x28); /* 0x2B04618E: mov ecx, dword ptr [ebx + 0x28] */ 503 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B046191: call dword ptr [0x2b0b58d4] */ 504 RECOMP_FLAGS_IN(); 505 edi = POP32_VAL(esp); /* 0x2B046197: pop edi */ 506 esi = POP32_VAL(esp); /* 0x2B046198: pop esi */ 507 ebx = POP32_VAL(esp); /* 0x2B046199: pop ebx */ 508 esp = ebp; /* 0x2B04619A: mov esp, ebp */ 509 ebp = POP32_VAL(esp); /* 0x2B04619C: pop ebp */ 510 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04619D: ret */ 511 RECOMP_REGS_OUT(); 512 } 513 514 void sub_2B0461A0(void) { 515 int _fpu_cmp = 0; 516 uint32_t _cf = 0; 517 int _df = 1; 518 uint32_t _flag_k = FK_NONE; 519 uint32_t _flag_a = 0, _flag_b = 0; 520 uint32_t _itail_tgt = 0; 521 RECOMP_REGS_LOCALS 522 RECOMP_ENTER(0x2B0461A0u); 523 524 L_2B0461A0: 525 PUSH32(esp, ebp); /* 0x2B0461A0: push ebp */ 526 ebp = esp; /* 0x2B0461A1: mov ebp, esp */ 527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 529 esp = esp - 8; /* 0x2B0461A3: sub esp, 8 */ 530 _flag_k = FK_CMP; 531 PUSH32(esp, ebx); /* 0x2B0461A6: push ebx */ 532 PUSH32(esp, esi); /* 0x2B0461A7: push esi */ 533 ebx = ecx; /* 0x2B0461A8: mov ebx, ecx */ 534 eax = MEM32(ebx + 0x28); /* 0x2B0461AA: mov eax, dword ptr [ebx + 0x28] */ 535 PUSH32(esp, edi); /* 0x2B0461AD: push edi */ 536 edi = MEM32(eax); /* 0x2B0461AE: mov edi, dword ptr [eax] */ 537 eax = MEM32(edi + 0x4); /* 0x2B0461B0: mov eax, dword ptr [edi + 4] */ 538 esi = MEM32(eax); /* 0x2B0461B3: mov esi, dword ptr [eax] */ 539 /* cmp esi, eax */ /* 0x2B0461B5: cmp esi, eax */ 540 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 542 _flag_k = FK_CMP; 543 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0461F1; /* 0x2B0461B7: je 0x2b0461f1 */ 544 L_2B0461B9: 545 eax = MEM32(esi + 0x8); /* 0x2B0461B9: mov eax, dword ptr [esi + 8] */ 546 SET_LO8(ecx, MEM8(eax + 0x70)); /* 0x2B0461BC: mov cl, byte ptr [eax + 0x70] */ 547 /* test LO8(ecx), LO8(ecx) */ /* 0x2B0461BF: test cl, cl */ 548 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 549 _cf = 0; 550 _flag_k = FK_NARROW(FK_TEST, 24); 551 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0461EA; /* 0x2B0461C1: jne 0x2b0461ea */ 552 L_2B0461C3: 553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 555 eax = eax + 0x54u; /* 0x2B0461C3: add eax, 0x54 */ 556 _flag_k = FK_ADD; 557 ecx = ebp + (-0x8); /* 0x2B0461C6: lea ecx, [ebp - 8] */ 558 /* cmp ecx, eax */ /* 0x2B0461C9: cmp ecx, eax */ 559 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 561 _flag_k = FK_CMP; 562 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0461D8; /* 0x2B0461CB: je 0x2b0461d8 */ 563 L_2B0461CD: 564 edx = MEM32(eax); /* 0x2B0461CD: mov edx, dword ptr [eax] */ 565 eax = MEM32(eax + 0x4); /* 0x2B0461CF: mov eax, dword ptr [eax + 4] */ 566 MEM32(ebp + (-0x8)) = edx; /* 0x2B0461D2: mov dword ptr [ebp - 8], edx */ 567 MEM32(ebp + (-0x4)) = eax; /* 0x2B0461D5: mov dword ptr [ebp - 4], eax */ 568 L_2B0461D8: 569 ecx = ebp + (-0x8); /* 0x2B0461D8: lea ecx, [ebp - 8] */ 570 PUSH32(esp, ecx); /* 0x2B0461DB: push ecx */ 571 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0461DC: call dword ptr [0x2b0b5d6c] */ 572 RECOMP_FLAGS_IN(); 573 ecx = eax; /* 0x2B0461E2: mov ecx, eax */ 574 RECOMP_ICALL(MEM32(0x2B0B5D54)); /* 0x2B0461E4: call dword ptr [0x2b0b5d54] */ 575 RECOMP_FLAGS_IN(); 576 L_2B0461EA: 577 esi = MEM32(esi); /* 0x2B0461EA: mov esi, dword ptr [esi] */ 578 /* cmp esi, MEM32(edi + 0x4) */ /* 0x2B0461EC: cmp esi, dword ptr [edi + 4] */ 579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 581 _flag_k = FK_CMP; 582 RECOMP_BACKEDGE(); 583 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0461B9; /* 0x2B0461EF: jne 0x2b0461b9 */ 584 L_2B0461F1: 585 ecx = MEM32(ebx + 0x28); /* 0x2B0461F1: mov ecx, dword ptr [ebx + 0x28] */ 586 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B0461F4: call dword ptr [0x2b0b58cc] */ 587 RECOMP_FLAGS_IN(); 588 edi = POP32_VAL(esp); /* 0x2B0461FA: pop edi */ 589 esi = POP32_VAL(esp); /* 0x2B0461FB: pop esi */ 590 ebx = POP32_VAL(esp); /* 0x2B0461FC: pop ebx */ 591 esp = ebp; /* 0x2B0461FD: mov esp, ebp */ 592 ebp = POP32_VAL(esp); /* 0x2B0461FF: pop ebp */ 593 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046200: ret */ 594 RECOMP_REGS_OUT(); 595 } 596 597 void sub_2B046210(void) { 598 int _fpu_cmp = 0; 599 uint32_t _cf = 0; 600 int _df = 1; 601 uint32_t _flag_k = FK_NONE; 602 uint32_t _flag_a = 0, _flag_b = 0; 603 uint32_t _itail_tgt = 0; 604 RECOMP_REGS_LOCALS 605 RECOMP_ENTER(0x2B046210u); 606 607 L_2B046210: 608 MEM32(0x2B0EEA84) = 0; /* 0x2B046210: mov dword ptr [0x2b0eea84], 0 */ 609 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04621A: ret */ 610 RECOMP_REGS_OUT(); 611 } 612 613 void sub_2B046220(void) { 614 int _fpu_cmp = 0; 615 uint32_t _cf = 0; 616 int _df = 1; 617 uint32_t _flag_k = FK_NONE; 618 uint32_t _flag_a = 0, _flag_b = 0; 619 uint32_t _itail_tgt = 0; 620 RECOMP_REGS_LOCALS 621 RECOMP_ENTER(0x2B046220u); 622 623 L_2B046220: 624 PUSH32(esp, ebp); /* 0x2B046220: push ebp */ 625 ebp = esp; /* 0x2B046221: mov ebp, esp */ 626 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B046223: push -1 */ 627 PUSH32(esp, 0x2B0AF09Bu); /* 0x2B046225: push 0x2b0af09b */ 628 eax = MEM32(FS_BASE + (0)); /* 0x2B04622A: mov eax, dword ptr fs:[0] */ 629 PUSH32(esp, eax); /* 0x2B046230: push eax */ 630 MEM32(FS_BASE + (0)) = esp; /* 0x2B046231: mov dword ptr fs:[0], esp */ 631 PUSH32(esp, ecx); /* 0x2B046238: push ecx */ 632 eax = MEM32(0x2B0EEA84); /* 0x2B046239: mov eax, dword ptr [0x2b0eea84] */ 633 /* test eax, eax */ /* 0x2B04623E: test eax, eax */ 634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 635 _cf = 0; 636 _flag_k = FK_TEST; 637 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04627B; /* 0x2B046240: jne 0x2b04627b */ 638 L_2B046242: 639 PUSH32(esp, 1); /* 0x2B046242: push 1 */ 640 RECOMP_ICALL(0x2B0AB212u); /* 0x2B046244: call 0x2b0ab212 */ /* not lifted */ 641 RECOMP_FLAGS_IN(); 642 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 644 esp = esp + 4; /* 0x2B046249: add esp, 4 */ 645 _flag_k = FK_ADD; 646 MEM32(ebp + (-0x10)) = eax; /* 0x2B04624C: mov dword ptr [ebp - 0x10], eax */ 647 /* test eax, eax */ /* 0x2B04624F: test eax, eax */ 648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 649 _cf = 0; 650 _flag_k = FK_TEST; 651 MEM32(ebp + (-0x4)) = 0; /* 0x2B046251: mov dword ptr [ebp - 4], 0 */ 652 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046274; /* 0x2B046258: je 0x2b046274 */ 653 L_2B04625A: 654 ecx = eax; /* 0x2B04625A: mov ecx, eax */ 655 RECOMP_ICALL(0x2B0466D0u); /* 0x2B04625C: call 0x2b0466d0 */ /* not lifted */ 656 RECOMP_FLAGS_IN(); 657 MEM32(0x2B0EEA84) = eax; /* 0x2B046261: mov dword ptr [0x2b0eea84], eax */ 658 ecx = MEM32(ebp + (-0xC)); /* 0x2B046266: mov ecx, dword ptr [ebp - 0xc] */ 659 MEM32(FS_BASE + (0)) = ecx; /* 0x2B046269: mov dword ptr fs:[0], ecx */ 660 esp = ebp; /* 0x2B046270: mov esp, ebp */ 661 ebp = POP32_VAL(esp); /* 0x2B046272: pop ebp */ 662 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046273: ret */ 663 L_2B046274: 664 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 665 eax = 0; /* 0x2B046274: xor eax, eax */ 666 _cf = 0; 667 _flag_k = FK_TEST; 668 MEM32(0x2B0EEA84) = eax; /* 0x2B046276: mov dword ptr [0x2b0eea84], eax */ 669 L_2B04627B: 670 ecx = MEM32(ebp + (-0xC)); /* 0x2B04627B: mov ecx, dword ptr [ebp - 0xc] */ 671 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04627E: mov dword ptr fs:[0], ecx */ 672 esp = ebp; /* 0x2B046285: mov esp, ebp */ 673 ebp = POP32_VAL(esp); /* 0x2B046287: pop ebp */ 674 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046288: ret */ 675 RECOMP_REGS_OUT(); 676 } 677 678 void sub_2B046290(void) { 679 int _fpu_cmp = 0; 680 uint32_t _cf = 0; 681 int _df = 1; 682 uint32_t _flag_k = FK_NONE; 683 uint32_t _flag_a = 0, _flag_b = 0; 684 uint32_t _itail_tgt = 0; 685 RECOMP_REGS_LOCALS 686 RECOMP_ENTER(0x2B046290u); 687 688 L_2B046290: 689 eax = MEM32(0x2B0EEA84); /* 0x2B046290: mov eax, dword ptr [0x2b0eea84] */ 690 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046295: ret */ 691 RECOMP_REGS_OUT(); 692 } 693 694 void sub_2B0462A0(void) { 695 int _fpu_cmp = 0; 696 uint32_t _cf = 0; 697 int _df = 1; 698 uint32_t _flag_k = FK_NONE; 699 uint32_t _flag_a = 0, _flag_b = 0; 700 uint32_t _itail_tgt = 0; 701 RECOMP_REGS_LOCALS 702 RECOMP_ENTER(0x2B0462A0u); 703 704 L_2B0462A0: 705 PUSH32(esp, ebp); /* 0x2B0462A0: push ebp */ 706 ebp = esp; /* 0x2B0462A1: mov ebp, esp */ 707 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0462A3: push -1 */ 708 PUSH32(esp, 0x2B0AF0D9u); /* 0x2B0462A5: push 0x2b0af0d9 */ 709 eax = MEM32(FS_BASE + (0)); /* 0x2B0462AA: mov eax, dword ptr fs:[0] */ 710 PUSH32(esp, eax); /* 0x2B0462B0: push eax */ 711 MEM32(FS_BASE + (0)) = esp; /* 0x2B0462B1: mov dword ptr fs:[0], esp */ 712 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 714 esp = esp - 0x18u; /* 0x2B0462B8: sub esp, 0x18 */ 715 _flag_k = FK_CMP; 716 PUSH32(esp, ebx); /* 0x2B0462BB: push ebx */ 717 PUSH32(esp, esi); /* 0x2B0462BC: push esi */ 718 esi = ecx; /* 0x2B0462BD: mov esi, ecx */ 719 PUSH32(esp, edi); /* 0x2B0462BF: push edi */ 720 MEM32(ebp + (-0x18)) = esi; /* 0x2B0462C0: mov dword ptr [ebp - 0x18], esi */ 721 RECOMP_ICALL(0x2B03A220u); /* 0x2B0462C3: call 0x2b03a220 */ /* not lifted */ 722 RECOMP_FLAGS_IN(); 723 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 724 ebx = 0; /* 0x2B0462C8: xor ebx, ebx */ 725 _cf = 0; 726 _flag_k = FK_TEST; 727 MEM32(esi + 0x28) = ebx; /* 0x2B0462CA: mov dword ptr [esi + 0x28], ebx */ 728 MEM32(esi + 0x2C) = ebx; /* 0x2B0462CD: mov dword ptr [esi + 0x2c], ebx */ 729 PUSH32(esp, 0x38u); /* 0x2B0462D0: push 0x38 */ 730 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0462D2: mov dword ptr [ebp - 4], ebx */ 731 MEM32(esi) = 0x2B0B69F4u; /* 0x2B0462D5: mov dword ptr [esi], 0x2b0b69f4 */ 732 MEM32(ebp + (-0x24)) = ebx; /* 0x2B0462DB: mov dword ptr [ebp - 0x24], ebx */ 733 MEM32(ebp + (-0x20)) = ebx; /* 0x2B0462DE: mov dword ptr [ebp - 0x20], ebx */ 734 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0462E1: call 0x2b0ab212 */ /* not lifted */ 735 RECOMP_FLAGS_IN(); 736 edi = eax; /* 0x2B0462E6: mov edi, eax */ 737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 738 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 739 esp = esp + 4; /* 0x2B0462E8: add esp, 4 */ 740 _flag_k = FK_ADD; 741 MEM32(ebp + (-0x14)) = edi; /* 0x2B0462EB: mov dword ptr [ebp - 0x14], edi */ 742 /* cmp edi, ebx */ /* 0x2B0462EE: cmp edi, ebx */ 743 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 745 _flag_k = FK_CMP; 746 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B0462F0: mov byte ptr [ebp - 4], 1 */ 747 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04631C; /* 0x2B0462F4: je 0x2b04631c */ 748 L_2B0462F6: 749 eax = MEM32(0x2B0EE9DC); /* 0x2B0462F6: mov eax, dword ptr [0x2b0ee9dc] */ 750 PUSH32(esp, eax); /* 0x2B0462FB: push eax */ 751 PUSH32(esp, 0xFA0u); /* 0x2B0462FC: push 0xfa0 */ 752 PUSH32(esp, 0x156u); /* 0x2B046301: push 0x156 */ 753 ecx = ebp + (-0x24); /* 0x2B046306: lea ecx, [ebp - 0x24] */ 754 PUSH32(esp, ecx); /* 0x2B046309: push ecx */ 755 ecx = edi; /* 0x2B04630A: mov ecx, edi */ 756 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B04630C: call dword ptr [0x2b0b5948] */ 757 RECOMP_FLAGS_IN(); 758 MEM32(edi) = 0x2B0B68F4u; /* 0x2B046312: mov dword ptr [edi], 0x2b0b68f4 */ 759 eax = edi; /* 0x2B046318: mov eax, edi */ 760 goto L_2B04631E; /* 0x2B04631A: jmp 0x2b04631e */ 761 L_2B04631C: 762 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 763 eax = 0; /* 0x2B04631C: xor eax, eax */ 764 _cf = 0; 765 _flag_k = FK_TEST; 766 L_2B04631E: 767 /* cmp MEM8(esi + 0x1C), LO8(ebx) */ /* 0x2B04631E: cmp byte ptr [esi + 0x1c], bl */ 768 _flag_a = (uint32_t)(MEM8(esi + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 770 _flag_k = FK_NARROW(FK_CMP, 24); 771 MEM32(esi + 0x30) = eax; /* 0x2B046321: mov dword ptr [esi + 0x30], eax */ 772 ecx = MEM32(eax + 0x14); /* 0x2B046324: mov ecx, dword ptr [eax + 0x14] */ 773 ecx = MEM32(ecx + 0x8); /* 0x2B046327: mov ecx, dword ptr [ecx + 8] */ 774 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B04632A: mov byte ptr [ebp - 4], bl */ 775 MEM32(esi + 0x20) = ecx; /* 0x2B04632D: mov dword ptr [esi + 0x20], ecx */ 776 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04633A; /* 0x2B046330: je 0x2b04633a */ 777 L_2B046332: 778 /* cmp MEM8(esi + 0xC), LO8(ebx) */ /* 0x2B046332: cmp byte ptr [esi + 0xc], bl */ 779 _flag_a = (uint32_t)(MEM8(esi + 0xC)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 781 _flag_k = FK_NARROW(FK_CMP, 24); 782 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04633A; /* 0x2B046335: je 0x2b04633a */ 783 L_2B046337: 784 MEM32(esi + 0x18) = ecx; /* 0x2B046337: mov dword ptr [esi + 0x18], ecx */ 785 L_2B04633A: 786 eax = MEM32(eax + 0x14); /* 0x2B04633A: mov eax, dword ptr [eax + 0x14] */ 787 edx = MEM32(eax + 0x8); /* 0x2B04633D: mov edx, dword ptr [eax + 8] */ 788 eax = MEM32(eax + 0xC); /* 0x2B046340: mov eax, dword ptr [eax + 0xc] */ 789 PUSH32(esp, 0x70u); /* 0x2B046343: push 0x70 */ 790 MEM32(ebp + (-0x14)) = edx; /* 0x2B046345: mov dword ptr [ebp - 0x14], edx */ 791 MEM32(ebp + (-0x10)) = eax; /* 0x2B046348: mov dword ptr [ebp - 0x10], eax */ 792 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04634B: call 0x2b0ab212 */ /* not lifted */ 793 RECOMP_FLAGS_IN(); 794 edi = eax; /* 0x2B046350: mov edi, eax */ 795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 797 esp = esp + 4; /* 0x2B046352: add esp, 4 */ 798 _flag_k = FK_ADD; 799 MEM32(ebp + (-0x1C)) = edi; /* 0x2B046355: mov dword ptr [ebp - 0x1c], edi */ 800 /* cmp edi, ebx */ /* 0x2B046358: cmp edi, ebx */ 801 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 803 _flag_k = FK_CMP; 804 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04635A: mov byte ptr [ebp - 4], 2 */ 805 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04639F; /* 0x2B04635E: je 0x2b04639f */ 806 L_2B046360: 807 ecx = MEM32(0x2B0EE9DC); /* 0x2B046360: mov ecx, dword ptr [0x2b0ee9dc] */ 808 PUSH32(esp, ecx); /* 0x2B046366: push ecx */ 809 ecx = MEM32(ebp + (-0x14)); /* 0x2B046367: mov ecx, dword ptr [ebp - 0x14] */ 810 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B04636A: push -1 */ 811 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B04636C: push -1 */ 812 PUSH32(esp, 0x15u); /* 0x2B04636E: push 0x15 */ 813 PUSH32(esp, ebx); /* 0x2B046370: push ebx */ 814 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 816 esp = esp - 0x10u; /* 0x2B046371: sub esp, 0x10 */ 817 _flag_k = FK_CMP; 818 edx = esp; /* 0x2B046374: mov edx, esp */ 819 MEM32(edx) = ebx; /* 0x2B046376: mov dword ptr [edx], ebx */ 820 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 821 eax = 0; /* 0x2B046378: xor eax, eax */ 822 _cf = 0; 823 _flag_k = FK_TEST; 824 MEM32(edx + 0x4) = eax; /* 0x2B04637A: mov dword ptr [edx + 4], eax */ 825 eax = MEM32(ebp + (-0x10)); /* 0x2B04637D: mov eax, dword ptr [ebp - 0x10] */ 826 PUSH32(esp, 0xFA1u); /* 0x2B046380: push 0xfa1 */ 827 MEM32(edx + 0x8) = eax; /* 0x2B046385: mov dword ptr [edx + 8], eax */ 828 PUSH32(esp, ebx); /* 0x2B046388: push ebx */ 829 MEM32(edx + 0xC) = ecx; /* 0x2B046389: mov dword ptr [edx + 0xc], ecx */ 830 PUSH32(esp, ebx); /* 0x2B04638C: push ebx */ 831 ecx = edi; /* 0x2B04638D: mov ecx, edi */ 832 RECOMP_ICALL(MEM32(0x2B0B5C00)); /* 0x2B04638F: call dword ptr [0x2b0b5c00] */ 833 RECOMP_FLAGS_IN(); 834 MEM32(edi) = 0x2B0B6164u; /* 0x2B046395: mov dword ptr [edi], 0x2b0b6164 */ 835 ecx = edi; /* 0x2B04639B: mov ecx, edi */ 836 goto L_2B0463A1; /* 0x2B04639D: jmp 0x2b0463a1 */ 837 L_2B04639F: 838 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 839 ecx = 0; /* 0x2B04639F: xor ecx, ecx */ 840 _cf = 0; 841 _flag_k = FK_TEST; 842 L_2B0463A1: 843 PUSH32(esp, 0x2B0E754Cu); /* 0x2B0463A1: push 0x2b0e754c */ 844 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0463A6: mov byte ptr [ebp - 4], bl */ 845 MEM32(esi + 0x34) = ecx; /* 0x2B0463A9: mov dword ptr [esi + 0x34], ecx */ 846 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B0463AC: call dword ptr [0x2b0b5c04] */ 847 RECOMP_FLAGS_IN(); 848 PUSH32(esp, 0x64u); /* 0x2B0463B2: push 0x64 */ 849 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0463B4: call 0x2b0ab212 */ /* not lifted */ 850 RECOMP_FLAGS_IN(); 851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 853 esp = esp + 4; /* 0x2B0463B9: add esp, 4 */ 854 _flag_k = FK_ADD; 855 MEM32(ebp + (-0x1C)) = eax; /* 0x2B0463BC: mov dword ptr [ebp - 0x1c], eax */ 856 /* cmp eax, ebx */ /* 0x2B0463BF: cmp eax, ebx */ 857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 859 _flag_k = FK_CMP; 860 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B0463C1: mov byte ptr [ebp - 4], 3 */ 861 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0463F6; /* 0x2B0463C5: je 0x2b0463f6 */ 862 L_2B0463C7: 863 edx = MEM32(0x2B0EE9DC); /* 0x2B0463C7: mov edx, dword ptr [0x2b0ee9dc] */ 864 PUSH32(esp, edx); /* 0x2B0463CD: push edx */ 865 PUSH32(esp, ebx); /* 0x2B0463CE: push ebx */ 866 PUSH32(esp, 0x30u); /* 0x2B0463CF: push 0x30 */ 867 PUSH32(esp, 3); /* 0x2B0463D1: push 3 */ 868 PUSH32(esp, 0xFA0u); /* 0x2B0463D3: push 0xfa0 */ 869 PUSH32(esp, 0x6Bu); /* 0x2B0463D8: push 0x6b */ 870 PUSH32(esp, ebx); /* 0x2B0463DA: push ebx */ 871 PUSH32(esp, 0xACu); /* 0x2B0463DB: push 0xac */ 872 PUSH32(esp, 0x39u); /* 0x2B0463E0: push 0x39 */ 873 PUSH32(esp, 0x3Cu); /* 0x2B0463E2: push 0x3c */ 874 PUSH32(esp, 2); /* 0x2B0463E4: push 2 */ 875 PUSH32(esp, 3); /* 0x2B0463E6: push 3 */ 876 ecx = ebp + (-0x24); /* 0x2B0463E8: lea ecx, [ebp - 0x24] */ 877 PUSH32(esp, ecx); /* 0x2B0463EB: push ecx */ 878 ecx = eax; /* 0x2B0463EC: mov ecx, eax */ 879 RECOMP_ICALL(MEM32(0x2B0B58F8)); /* 0x2B0463EE: call dword ptr [0x2b0b58f8] */ 880 RECOMP_FLAGS_IN(); 881 goto L_2B0463F8; /* 0x2B0463F4: jmp 0x2b0463f8 */ 882 L_2B0463F6: 883 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 884 eax = 0; /* 0x2B0463F6: xor eax, eax */ 885 _cf = 0; 886 _flag_k = FK_TEST; 887 L_2B0463F8: 888 MEM32(esi + 0x38) = eax; /* 0x2B0463F8: mov dword ptr [esi + 0x38], eax */ 889 ecx = esi; /* 0x2B0463FB: mov ecx, esi */ 890 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0463FD: mov byte ptr [ebp - 4], bl */ 891 MEM32(eax + 0x5C) = 0x2B048850u; /* 0x2B046400: mov dword ptr [eax + 0x5c], 0x2b048850 */ 892 MEM32(eax + 0x60) = esi; /* 0x2B046407: mov dword ptr [eax + 0x60], esi */ 893 RECOMP_ICALL(0x2B046530u); /* 0x2B04640A: call 0x2b046530 */ /* not lifted */ 894 RECOMP_FLAGS_IN(); 895 PUSH32(esp, 0x2B0E7544u); /* 0x2B04640F: push 0x2b0e7544 */ 896 PUSH32(esp, 1); /* 0x2B046414: push 1 */ 897 ecx = esi; /* 0x2B046416: mov ecx, esi */ 898 RECOMP_ICALL(0x2B03A2D0u); /* 0x2B046418: call 0x2b03a2d0 */ /* not lifted */ 899 RECOMP_FLAGS_IN(); 900 PUSH32(esp, ebx); /* 0x2B04641D: push ebx */ 901 ecx = esi; /* 0x2B04641E: mov ecx, esi */ 902 RECOMP_ICALL(0x2B03A350u); /* 0x2B046420: call 0x2b03a350 */ /* not lifted */ 903 RECOMP_FLAGS_IN(); 904 ecx = MEM32(0x2B0EE9F0); /* 0x2B046425: mov ecx, dword ptr [0x2b0ee9f0] */ 905 PUSH32(esp, 0x2B0E7534u); /* 0x2B04642B: push 0x2b0e7534 */ 906 PUSH32(esp, 0x2B0E7544u); /* 0x2B046430: push 0x2b0e7544 */ 907 PUSH32(esp, 0xDu); /* 0x2B046435: push 0xd */ 908 PUSH32(esp, 0x158u); /* 0x2B046437: push 0x158 */ 909 PUSH32(esp, 0x157u); /* 0x2B04643C: push 0x157 */ 910 PUSH32(esp, esi); /* 0x2B046441: push esi */ 911 RECOMP_ICALL(0x2B03BF90u); /* 0x2B046442: call 0x2b03bf90 */ /* not lifted */ 912 RECOMP_FLAGS_IN(); 913 ecx = MEM32(ebp + (-0xC)); /* 0x2B046447: mov ecx, dword ptr [ebp - 0xc] */ 914 edi = POP32_VAL(esp); /* 0x2B04644A: pop edi */ 915 eax = esi; /* 0x2B04644B: mov eax, esi */ 916 esi = POP32_VAL(esp); /* 0x2B04644D: pop esi */ 917 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04644E: mov dword ptr fs:[0], ecx */ 918 ebx = POP32_VAL(esp); /* 0x2B046455: pop ebx */ 919 esp = ebp; /* 0x2B046456: mov esp, ebp */ 920 ebp = POP32_VAL(esp); /* 0x2B046458: pop ebp */ 921 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046459: ret */ 922 RECOMP_REGS_OUT(); 923 } 924 925 void sub_2B046460(void) { 926 int _fpu_cmp = 0; 927 uint32_t _cf = 0; 928 int _df = 1; 929 uint32_t _flag_k = FK_NONE; 930 uint32_t _flag_a = 0, _flag_b = 0; 931 uint32_t _itail_tgt = 0; 932 RECOMP_REGS_LOCALS 933 RECOMP_ENTER(0x2B046460u); 934 935 L_2B046460: 936 PUSH32(esp, ebp); /* 0x2B046460: push ebp */ 937 ebp = esp; /* 0x2B046461: mov ebp, esp */ 938 PUSH32(esp, esi); /* 0x2B046463: push esi */ 939 esi = ecx; /* 0x2B046464: mov esi, ecx */ 940 RECOMP_ICALL(0x2B046490u); /* 0x2B046466: call 0x2b046490 */ /* not lifted */ 941 RECOMP_FLAGS_IN(); 942 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B04646B: test byte ptr [ebp + 8], 1 */ 943 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 944 _cf = 0; 945 _flag_k = FK_NARROW(FK_TEST, 24); 946 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04647A; /* 0x2B04646F: je 0x2b04647a */ 947 L_2B046471: 948 PUSH32(esp, esi); /* 0x2B046471: push esi */ 949 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B046472: call 0x2b0ab1ba */ /* not lifted */ 950 RECOMP_FLAGS_IN(); 951 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 952 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 953 esp = esp + 4; /* 0x2B046477: add esp, 4 */ 954 _flag_k = FK_ADD; 955 L_2B04647A: 956 eax = esi; /* 0x2B04647A: mov eax, esi */ 957 esi = POP32_VAL(esp); /* 0x2B04647C: pop esi */ 958 ebp = POP32_VAL(esp); /* 0x2B04647D: pop ebp */ 959 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04647E: ret 4 */ 960 RECOMP_REGS_OUT(); 961 } 962 963 void sub_2B046490(void) { 964 int _fpu_cmp = 0; 965 uint32_t _cf = 0; 966 int _df = 1; 967 uint32_t _flag_k = FK_NONE; 968 uint32_t _flag_a = 0, _flag_b = 0; 969 uint32_t _itail_tgt = 0; 970 RECOMP_REGS_LOCALS 971 RECOMP_ENTER(0x2B046490u); 972 973 L_2B046490: 974 PUSH32(esp, ebp); /* 0x2B046490: push ebp */ 975 ebp = esp; /* 0x2B046491: mov ebp, esp */ 976 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B046493: push -1 */ 977 PUSH32(esp, 0x2B0AF0F8u); /* 0x2B046495: push 0x2b0af0f8 */ 978 eax = MEM32(FS_BASE + (0)); /* 0x2B04649A: mov eax, dword ptr fs:[0] */ 979 PUSH32(esp, eax); /* 0x2B0464A0: push eax */ 980 MEM32(FS_BASE + (0)) = esp; /* 0x2B0464A1: mov dword ptr fs:[0], esp */ 981 PUSH32(esp, ecx); /* 0x2B0464A8: push ecx */ 982 PUSH32(esp, esi); /* 0x2B0464A9: push esi */ 983 esi = ecx; /* 0x2B0464AA: mov esi, ecx */ 984 PUSH32(esp, edi); /* 0x2B0464AC: push edi */ 985 MEM32(ebp + (-0x10)) = esi; /* 0x2B0464AD: mov dword ptr [ebp - 0x10], esi */ 986 MEM32(esi) = 0x2B0B69F4u; /* 0x2B0464B0: mov dword ptr [esi], 0x2b0b69f4 */ 987 ecx = MEM32(esi + 0x34); /* 0x2B0464B6: mov ecx, dword ptr [esi + 0x34] */ 988 /* test ecx, ecx */ /* 0x2B0464B9: test ecx, ecx */ 989 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 990 _cf = 0; 991 _flag_k = FK_TEST; 992 MEM32(ebp + (-0x4)) = 0; /* 0x2B0464BB: mov dword ptr [ebp - 4], 0 */ 993 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0464CA; /* 0x2B0464C2: je 0x2b0464ca */ 994 L_2B0464C4: 995 eax = MEM32(ecx); /* 0x2B0464C4: mov eax, dword ptr [ecx] */ 996 PUSH32(esp, 1); /* 0x2B0464C6: push 1 */ 997 RECOMP_ICALL(MEM32(eax)); /* 0x2B0464C8: call dword ptr [eax] */ 998 RECOMP_FLAGS_IN(); 999 L_2B0464CA: 1000 ecx = MEM32(esi + 0x30); /* 0x2B0464CA: mov ecx, dword ptr [esi + 0x30] */ 1001 /* test ecx, ecx */ /* 0x2B0464CD: test ecx, ecx */ 1002 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1003 _cf = 0; 1004 _flag_k = FK_TEST; 1005 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0464D7; /* 0x2B0464CF: je 0x2b0464d7 */ 1006 L_2B0464D1: 1007 edx = MEM32(ecx); /* 0x2B0464D1: mov edx, dword ptr [ecx] */ 1008 PUSH32(esp, 1); /* 0x2B0464D3: push 1 */ 1009 RECOMP_ICALL(MEM32(edx)); /* 0x2B0464D5: call dword ptr [edx] */ 1010 RECOMP_FLAGS_IN(); 1011 L_2B0464D7: 1012 edi = MEM32(esi + 0x38); /* 0x2B0464D7: mov edi, dword ptr [esi + 0x38] */ 1013 /* test edi, edi */ /* 0x2B0464DA: test edi, edi */ 1014 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1015 _cf = 0; 1016 _flag_k = FK_TEST; 1017 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0464EF; /* 0x2B0464DC: je 0x2b0464ef */ 1018 L_2B0464DE: 1019 ecx = edi; /* 0x2B0464DE: mov ecx, edi */ 1020 RECOMP_ICALL(MEM32(0x2B0B58E8)); /* 0x2B0464E0: call dword ptr [0x2b0b58e8] */ 1021 RECOMP_FLAGS_IN(); 1022 PUSH32(esp, edi); /* 0x2B0464E6: push edi */ 1023 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0464E7: call 0x2b0ab1ba */ /* not lifted */ 1024 RECOMP_FLAGS_IN(); 1025 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1027 esp = esp + 4; /* 0x2B0464EC: add esp, 4 */ 1028 _flag_k = FK_ADD; 1029 L_2B0464EF: 1030 ecx = esi; /* 0x2B0464EF: mov ecx, esi */ 1031 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0464F1: mov dword ptr [ebp - 4], 0xffffffff */ 1032 RECOMP_ICALL(0x2B03A290u); /* 0x2B0464F8: call 0x2b03a290 */ /* not lifted */ 1033 RECOMP_FLAGS_IN(); 1034 ecx = MEM32(ebp + (-0xC)); /* 0x2B0464FD: mov ecx, dword ptr [ebp - 0xc] */ 1035 edi = POP32_VAL(esp); /* 0x2B046500: pop edi */ 1036 esi = POP32_VAL(esp); /* 0x2B046501: pop esi */ 1037 MEM32(FS_BASE + (0)) = ecx; /* 0x2B046502: mov dword ptr fs:[0], ecx */ 1038 esp = ebp; /* 0x2B046509: mov esp, ebp */ 1039 ebp = POP32_VAL(esp); /* 0x2B04650B: pop ebp */ 1040 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04650C: ret */ 1041 RECOMP_REGS_OUT(); 1042 } 1043 1044 void sub_2B046510(void) { 1045 int _fpu_cmp = 0; 1046 uint32_t _cf = 0; 1047 int _df = 1; 1048 uint32_t _flag_k = FK_NONE; 1049 uint32_t _flag_a = 0, _flag_b = 0; 1050 uint32_t _itail_tgt = 0; 1051 RECOMP_REGS_LOCALS 1052 RECOMP_ENTER(0x2B046510u); 1053 1054 L_2B046510: 1055 SET_LO8(eax, MEM8(ecx + 0xC)); /* 0x2B046510: mov al, byte ptr [ecx + 0xc] */ 1056 L_2B046513: 1057 /* test LO8(eax), LO8(eax) */ /* 0x2B046513: test al, al */ 1058 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1059 _cf = 0; 1060 _flag_k = FK_NARROW(FK_TEST, 24); 1061 L_2B046515: 1062 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B04652E; /* 0x2B046515: je 0x2b04652e */ 1063 L_2B046517: 1064 edx = MEM32(ecx + 0x30); /* 0x2B046517: mov edx, dword ptr [ecx + 0x30] */ 1065 L_2B04651A: 1066 SET_LO8(eax, 1); /* 0x2B04651A: mov al, 1 */ 1067 L_2B04651C: 1068 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B04651C: mov byte ptr [edx + 8], al */ 1069 L_2B04651F: 1070 edx = MEM32(ecx + 0x34); /* 0x2B04651F: mov edx, dword ptr [ecx + 0x34] */ 1071 L_2B046522: 1072 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B046522: mov byte ptr [edx + 8], al */ 1073 L_2B046525: 1074 ecx = MEM32(ecx + 0x38); /* 0x2B046525: mov ecx, dword ptr [ecx + 0x38] */ 1075 L_2B046528: 1076 { _itail_tgt = (uint32_t)(MEM32(0x2B0B58DC)); goto _ljump; } 1077 L_2B04652E: 1078 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04652E: ret */ 1079 _ljump: 1080 switch (_itail_tgt) { 1081 case 0x2B046510u: goto L_2B046510; 1082 case 0x2B046513u: goto L_2B046513; 1083 case 0x2B046515u: goto L_2B046515; 1084 case 0x2B046517u: goto L_2B046517; 1085 case 0x2B04651Au: goto L_2B04651A; 1086 case 0x2B04651Cu: goto L_2B04651C; 1087 case 0x2B04651Fu: goto L_2B04651F; 1088 case 0x2B046522u: goto L_2B046522; 1089 case 0x2B046525u: goto L_2B046525; 1090 case 0x2B046528u: goto L_2B046528; 1091 case 0x2B04652Eu: goto L_2B04652E; 1092 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1093 } 1094 RECOMP_REGS_OUT(); 1095 } 1096 1097 void sub_2B046530(void) { 1098 int _fpu_cmp = 0; 1099 uint32_t _cf = 0; 1100 int _df = 1; 1101 uint32_t _flag_k = FK_NONE; 1102 uint32_t _flag_a = 0, _flag_b = 0; 1103 uint32_t _itail_tgt = 0; 1104 RECOMP_REGS_LOCALS 1105 RECOMP_ENTER(0x2B046530u); 1106 1107 L_2B046530: 1108 edx = MEM32(ecx + 0x30); /* 0x2B046530: mov edx, dword ptr [ecx + 0x30] */ 1109 L_2B046533: 1110 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 1111 SET_LO8(eax, 0); /* 0x2B046533: xor al, al */ 1112 _cf = 0; 1113 _flag_k = FK_NARROW(FK_TEST, 24); 1114 L_2B046535: 1115 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B046535: mov byte ptr [edx + 8], al */ 1116 L_2B046538: 1117 edx = MEM32(ecx + 0x34); /* 0x2B046538: mov edx, dword ptr [ecx + 0x34] */ 1118 L_2B04653B: 1119 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B04653B: mov byte ptr [edx + 8], al */ 1120 L_2B04653E: 1121 ecx = MEM32(ecx + 0x38); /* 0x2B04653E: mov ecx, dword ptr [ecx + 0x38] */ 1122 L_2B046541: 1123 { _itail_tgt = (uint32_t)(MEM32(0x2B0B58D8)); goto _ljump; } 1124 { RECOMP_REGS_OUT(); return; } /* end of function */ 1125 _ljump: 1126 switch (_itail_tgt) { 1127 case 0x2B046530u: goto L_2B046530; 1128 case 0x2B046533u: goto L_2B046533; 1129 case 0x2B046535u: goto L_2B046535; 1130 case 0x2B046538u: goto L_2B046538; 1131 case 0x2B04653Bu: goto L_2B04653B; 1132 case 0x2B04653Eu: goto L_2B04653E; 1133 case 0x2B046541u: goto L_2B046541; 1134 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1135 } 1136 RECOMP_REGS_OUT(); 1137 } 1138 1139 void sub_2B046550(void) { 1140 int _fpu_cmp = 0; 1141 uint32_t _cf = 0; 1142 int _df = 1; 1143 uint32_t _flag_k = FK_NONE; 1144 uint32_t _flag_a = 0, _flag_b = 0; 1145 uint32_t _itail_tgt = 0; 1146 RECOMP_REGS_LOCALS 1147 RECOMP_ENTER(0x2B046550u); 1148 1149 L_2B046550: 1150 PUSH32(esp, ebp); /* 0x2B046550: push ebp */ 1151 ebp = esp; /* 0x2B046551: mov ebp, esp */ 1152 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1154 esp = esp - 8; /* 0x2B046553: sub esp, 8 */ 1155 _flag_k = FK_CMP; 1156 PUSH32(esp, esi); /* 0x2B046556: push esi */ 1157 esi = ecx; /* 0x2B046557: mov esi, ecx */ 1158 ecx = MEM32(esi + 0x8); /* 0x2B046559: mov ecx, dword ptr [esi + 8] */ 1159 eax = MEM32(esi + 0x4); /* 0x2B04655C: mov eax, dword ptr [esi + 4] */ 1160 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 1161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1162 ecx = ecx + 0x14u; /* 0x2B04655F: add ecx, 0x14 */ 1163 _flag_k = FK_ADD; 1164 edx = ebp + (-0x8); /* 0x2B046562: lea edx, [ebp - 8] */ 1165 MEM32(ebp + (-0x4)) = ecx; /* 0x2B046565: mov dword ptr [ebp - 4], ecx */ 1166 ecx = MEM32(esi + 0x30); /* 0x2B046568: mov ecx, dword ptr [esi + 0x30] */ 1167 PUSH32(esp, edx); /* 0x2B04656B: push edx */ 1168 MEM32(ebp + (-0x8)) = eax; /* 0x2B04656C: mov dword ptr [ebp - 8], eax */ 1169 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04656F: call dword ptr [0x2b0b5940] */ 1170 RECOMP_FLAGS_IN(); 1171 eax = MEM32(esi + 0x30); /* 0x2B046575: mov eax, dword ptr [esi + 0x30] */ 1172 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B046578: mov byte ptr [eax + 9], 1 */ 1173 ecx = MEM32(esi + 0x34); /* 0x2B04657C: mov ecx, dword ptr [esi + 0x34] */ 1174 edx = MEM32(ecx); /* 0x2B04657F: mov edx, dword ptr [ecx] */ 1175 eax = ebp + (-0x8); /* 0x2B046581: lea eax, [ebp - 8] */ 1176 PUSH32(esp, eax); /* 0x2B046584: push eax */ 1177 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B046585: call dword ptr [edx + 0x14] */ 1178 RECOMP_FLAGS_IN(); 1179 ecx = MEM32(esi + 0x4); /* 0x2B046588: mov ecx, dword ptr [esi + 4] */ 1180 edx = MEM32(esi + 0x8); /* 0x2B04658B: mov edx, dword ptr [esi + 8] */ 1181 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 1182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1183 ecx = ecx + 8; /* 0x2B04658E: add ecx, 8 */ 1184 _flag_k = FK_ADD; 1185 eax = ebp + (-0x8); /* 0x2B046591: lea eax, [ebp - 8] */ 1186 MEM32(ebp + (-0x8)) = ecx; /* 0x2B046594: mov dword ptr [ebp - 8], ecx */ 1187 ecx = MEM32(esi + 0x38); /* 0x2B046597: mov ecx, dword ptr [esi + 0x38] */ 1188 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x2Au); 1189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1190 edx = edx + 0x2Au; /* 0x2B04659A: add edx, 0x2a */ 1191 _flag_k = FK_ADD; 1192 PUSH32(esp, eax); /* 0x2B04659D: push eax */ 1193 MEM32(ebp + (-0x4)) = edx; /* 0x2B04659E: mov dword ptr [ebp - 4], edx */ 1194 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B0465A1: call dword ptr [0x2b0b58e0] */ 1195 RECOMP_FLAGS_IN(); 1196 ecx = MEM32(esi + 0x38); /* 0x2B0465A7: mov ecx, dword ptr [esi + 0x38] */ 1197 PUSH32(esp, 0); /* 0x2B0465AA: push 0 */ 1198 RECOMP_ICALL(MEM32(0x2B0B58E4)); /* 0x2B0465AC: call dword ptr [0x2b0b58e4] */ 1199 RECOMP_FLAGS_IN(); 1200 esi = POP32_VAL(esp); /* 0x2B0465B2: pop esi */ 1201 esp = ebp; /* 0x2B0465B3: mov esp, ebp */ 1202 ebp = POP32_VAL(esp); /* 0x2B0465B5: pop ebp */ 1203 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0465B6: ret */ 1204 RECOMP_REGS_OUT(); 1205 } 1206 1207 void sub_2B0465C0(void) { 1208 int _fpu_cmp = 0; 1209 uint32_t _cf = 0; 1210 int _df = 1; 1211 uint32_t _flag_k = FK_NONE; 1212 uint32_t _flag_a = 0, _flag_b = 0; 1213 uint32_t _itail_tgt = 0; 1214 RECOMP_REGS_LOCALS 1215 RECOMP_ENTER(0x2B0465C0u); 1216 1217 L_2B0465C0: 1218 SET_LO8(eax, 1); /* 0x2B0465C0: mov al, 1 */ 1219 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0465C2: ret */ 1220 RECOMP_REGS_OUT(); 1221 } 1222 1223 void sub_2B0465D0(void) { 1224 int _fpu_cmp = 0; 1225 uint32_t _cf = 0; 1226 int _df = 1; 1227 uint32_t _flag_k = FK_NONE; 1228 uint32_t _flag_a = 0, _flag_b = 0; 1229 uint32_t _itail_tgt = 0; 1230 RECOMP_REGS_LOCALS 1231 RECOMP_ENTER(0x2B0465D0u); 1232 1233 L_2B0465D0: 1234 PUSH32(esp, ebp); /* 0x2B0465D0: push ebp */ 1235 ebp = esp; /* 0x2B0465D1: mov ebp, esp */ 1236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 1237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1238 esp = esp - 0x2Cu; /* 0x2B0465D3: sub esp, 0x2c */ 1239 _flag_k = FK_CMP; 1240 MEM32(ebp + (-0x4)) = ecx; /* 0x2B0465D6: mov dword ptr [ebp - 4], ecx */ 1241 ecx = MEM32(ecx + 0x38); /* 0x2B0465D9: mov ecx, dword ptr [ecx + 0x38] */ 1242 PUSH32(esp, ebx); /* 0x2B0465DC: push ebx */ 1243 RECOMP_ICALL(MEM32(0x2B0B5830)); /* 0x2B0465DD: call dword ptr [0x2b0b5830] */ 1244 RECOMP_FLAGS_IN(); 1245 PUSH32(esp, 1); /* 0x2B0465E3: push 1 */ 1246 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0465E5: call dword ptr [0x2b0b5d6c] */ 1247 RECOMP_FLAGS_IN(); 1248 ecx = eax; /* 0x2B0465EB: mov ecx, eax */ 1249 RECOMP_ICALL(MEM32(0x2B0B5E90)); /* 0x2B0465ED: call dword ptr [0x2b0b5e90] */ 1250 RECOMP_FLAGS_IN(); 1251 ebx = eax; /* 0x2B0465F3: mov ebx, eax */ 1252 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1253 eax = 0; /* 0x2B0465F5: xor eax, eax */ 1254 _cf = 0; 1255 _flag_k = FK_TEST; 1256 /* cmp ebx, eax */ /* 0x2B0465F7: cmp ebx, eax */ 1257 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1259 _flag_k = FK_CMP; 1260 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046654; /* 0x2B0465F9: je 0x2b046654 */ 1261 L_2B0465FB: 1262 PUSH32(esp, esi); /* 0x2B0465FB: push esi */ 1263 PUSH32(esp, edi); /* 0x2B0465FC: push edi */ 1264 MEM32(ebp + (-0x2C)) = eax; /* 0x2B0465FD: mov dword ptr [ebp - 0x2c], eax */ 1265 MEM32(ebp + (-0x28)) = eax; /* 0x2B046600: mov dword ptr [ebp - 0x28], eax */ 1266 ecx = 0xAu; /* 0x2B046603: mov ecx, 0xa */ 1267 edi = ebp + (-0x2C); /* 0x2B046608: lea edi, [ebp - 0x2c] */ 1268 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04660B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 1269 MEM32(ebp + (-0x10)) = 0x30u; /* 0x2B04660D: mov dword ptr [ebp - 0x10], 0x30 */ 1270 eax = MEM32(ebx + 0x4); /* 0x2B046614: mov eax, dword ptr [ebx + 4] */ 1271 esi = MEM32(eax); /* 0x2B046617: mov esi, dword ptr [eax] */ 1272 /* cmp esi, eax */ /* 0x2B046619: cmp esi, eax */ 1273 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1275 _flag_k = FK_CMP; 1276 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046646; /* 0x2B04661B: je 0x2b046646 */ 1277 L_2B04661D: 1278 edi = MEM32(0x2B0B58D0); /* 0x2B04661D: mov edi, dword ptr [0x2b0b58d0] */ 1279 L_2B046623: 1280 eax = MEM32(esi + 0x8); /* 0x2B046623: mov eax, dword ptr [esi + 8] */ 1281 MEM32(ebp + (-0x2C)) = eax; /* 0x2B046626: mov dword ptr [ebp - 0x2c], eax */ 1282 ecx = MEM32(esi + 0xC); /* 0x2B046629: mov ecx, dword ptr [esi + 0xc] */ 1283 eax = MEM32(ebp + (-0x4)); /* 0x2B04662C: mov eax, dword ptr [ebp - 4] */ 1284 edx = ebp + (-0x2C); /* 0x2B04662F: lea edx, [ebp - 0x2c] */ 1285 MEM32(ebp + (-0x28)) = ecx; /* 0x2B046632: mov dword ptr [ebp - 0x28], ecx */ 1286 ecx = MEM32(eax + 0x38); /* 0x2B046635: mov ecx, dword ptr [eax + 0x38] */ 1287 PUSH32(esp, edx); /* 0x2B046638: push edx */ 1288 RECOMP_ICALL(edi); /* 0x2B046639: call edi */ 1289 RECOMP_FLAGS_IN(); 1290 MEM8(eax + 0x24) = (uint8_t)(0); /* 0x2B04663B: mov byte ptr [eax + 0x24], 0 */ 1291 esi = MEM32(esi); /* 0x2B04663F: mov esi, dword ptr [esi] */ 1292 /* cmp esi, MEM32(ebx + 0x4) */ /* 0x2B046641: cmp esi, dword ptr [ebx + 4] */ 1293 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 1294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1295 _flag_k = FK_CMP; 1296 RECOMP_BACKEDGE(); 1297 if (CMP_NE(_flag_a, _flag_b)) goto L_2B046623; /* 0x2B046644: jne 0x2b046623 */ 1298 L_2B046646: 1299 ecx = MEM32(ebp + (-0x4)); /* 0x2B046646: mov ecx, dword ptr [ebp - 4] */ 1300 ecx = MEM32(ecx + 0x38); /* 0x2B046649: mov ecx, dword ptr [ecx + 0x38] */ 1301 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B04664C: call dword ptr [0x2b0b58d4] */ 1302 RECOMP_FLAGS_IN(); 1303 edi = POP32_VAL(esp); /* 0x2B046652: pop edi */ 1304 esi = POP32_VAL(esp); /* 0x2B046653: pop esi */ 1305 L_2B046654: 1306 ebx = POP32_VAL(esp); /* 0x2B046654: pop ebx */ 1307 esp = ebp; /* 0x2B046655: mov esp, ebp */ 1308 ebp = POP32_VAL(esp); /* 0x2B046657: pop ebp */ 1309 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046658: ret */ 1310 RECOMP_REGS_OUT(); 1311 } 1312 1313 void sub_2B046660(void) { 1314 int _fpu_cmp = 0; 1315 uint32_t _cf = 0; 1316 int _df = 1; 1317 uint32_t _flag_k = FK_NONE; 1318 uint32_t _flag_a = 0, _flag_b = 0; 1319 uint32_t _itail_tgt = 0; 1320 RECOMP_REGS_LOCALS 1321 RECOMP_ENTER(0x2B046660u); 1322 1323 L_2B046660: 1324 PUSH32(esp, esi); /* 0x2B046660: push esi */ 1325 esi = ecx; /* 0x2B046661: mov esi, ecx */ 1326 RECOMP_ICALL(0x2B001520u); /* 0x2B046663: call 0x2b001520 */ /* not lifted */ 1327 RECOMP_FLAGS_IN(); 1328 ecx = esi; /* 0x2B046668: mov ecx, esi */ 1329 RECOMP_ICALL(0x2B0465D0u); /* 0x2B04666A: call 0x2b0465d0 */ /* not lifted */ 1330 RECOMP_FLAGS_IN(); 1331 ecx = esi; /* 0x2B04666F: mov ecx, esi */ 1332 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B046671: call 0x2b03a2b0 */ /* not lifted */ 1333 RECOMP_FLAGS_IN(); 1334 esi = POP32_VAL(esp); /* 0x2B046676: pop esi */ 1335 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046677: ret */ 1336 RECOMP_REGS_OUT(); 1337 } 1338 1339 void sub_2B046680(void) { 1340 int _fpu_cmp = 0; 1341 uint32_t _cf = 0; 1342 int _df = 1; 1343 uint32_t _flag_k = FK_NONE; 1344 uint32_t _flag_a = 0, _flag_b = 0; 1345 uint32_t _itail_tgt = 0; 1346 RECOMP_REGS_LOCALS 1347 RECOMP_ENTER(0x2B046680u); 1348 1349 L_2B046680: 1350 PUSH32(esp, ebp); /* 0x2B046680: push ebp */ 1351 ebp = esp; /* 0x2B046681: mov ebp, esp */ 1352 eax = MEM32(ebp + 0x8); /* 0x2B046683: mov eax, dword ptr [ebp + 8] */ 1353 edx = MEM32(eax); /* 0x2B046686: mov edx, dword ptr [eax] */ 1354 PUSH32(esp, 0x13Bu); /* 0x2B046688: push 0x13b */ 1355 PUSH32(esp, 0x31u); /* 0x2B04668D: push 0x31 */ 1356 PUSH32(esp, 2); /* 0x2B04668F: push 2 */ 1357 MEM32(ecx + 0x28) = edx; /* 0x2B046691: mov dword ptr [ecx + 0x28], edx */ 1358 eax = MEM32(eax + 0x4); /* 0x2B046694: mov eax, dword ptr [eax + 4] */ 1359 PUSH32(esp, 0x2B0E7580u); /* 0x2B046697: push 0x2b0e7580 */ 1360 PUSH32(esp, 0x2B0E7570u); /* 0x2B04669C: push 0x2b0e7570 */ 1361 MEM32(ecx + 0x2C) = eax; /* 0x2B0466A1: mov dword ptr [ecx + 0x2c], eax */ 1362 RECOMP_ICALL(0x2B089BF0u); /* 0x2B0466A4: call 0x2b089bf0 */ /* not lifted */ 1363 RECOMP_FLAGS_IN(); 1364 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1366 esp = esp + 0x14u; /* 0x2B0466A9: add esp, 0x14 */ 1367 _flag_k = FK_ADD; 1368 ebp = POP32_VAL(esp); /* 0x2B0466AC: pop ebp */ 1369 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0466AD: ret 4 */ 1370 RECOMP_REGS_OUT(); 1371 } 1372 1373 void sub_2B0466B0(void) { 1374 int _fpu_cmp = 0; 1375 uint32_t _cf = 0; 1376 int _df = 1; 1377 uint32_t _flag_k = FK_NONE; 1378 uint32_t _flag_a = 0, _flag_b = 0; 1379 uint32_t _itail_tgt = 0; 1380 RECOMP_REGS_LOCALS 1381 RECOMP_ENTER(0x2B0466B0u); 1382 1383 L_2B0466B0: 1384 PUSH32(esp, ebp); /* 0x2B0466B0: push ebp */ 1385 ebp = esp; /* 0x2B0466B1: mov ebp, esp */ 1386 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x2B0466B3: mov al, byte ptr [ebp + 8] */ 1387 /* test LO8(eax), LO8(eax) */ /* 0x2B0466B6: test al, al */ 1388 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1389 _cf = 0; 1390 _flag_k = FK_NARROW(FK_TEST, 24); 1391 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0466CC; /* 0x2B0466B8: je 0x2b0466cc */ 1392 L_2B0466BA: 1393 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 1394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1395 ecx = ecx + 0x28u; /* 0x2B0466BA: add ecx, 0x28 */ 1396 _flag_k = FK_ADD; 1397 PUSH32(esp, ecx); /* 0x2B0466BD: push ecx */ 1398 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0466BE: call dword ptr [0x2b0b5d6c] */ 1399 RECOMP_FLAGS_IN(); 1400 ecx = eax; /* 0x2B0466C4: mov ecx, eax */ 1401 RECOMP_ICALL(MEM32(0x2B0B5E8C)); /* 0x2B0466C6: call dword ptr [0x2b0b5e8c] */ 1402 RECOMP_FLAGS_IN(); 1403 L_2B0466CC: 1404 ebp = POP32_VAL(esp); /* 0x2B0466CC: pop ebp */ 1405 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0466CD: ret 4 */ 1406 RECOMP_REGS_OUT(); 1407 } 1408 1409 void sub_2B0466D0(void) { 1410 int _fpu_cmp = 0; 1411 uint32_t _cf = 0; 1412 int _df = 1; 1413 uint32_t _flag_k = FK_NONE; 1414 uint32_t _flag_a = 0, _flag_b = 0; 1415 uint32_t _itail_tgt = 0; 1416 RECOMP_REGS_LOCALS 1417 RECOMP_ENTER(0x2B0466D0u); 1418 1419 L_2B0466D0: 1420 PUSH32(esp, ebx); /* 0x2B0466D0: push ebx */ 1421 PUSH32(esp, esi); /* 0x2B0466D1: push esi */ 1422 esi = MEM32(0x2B0B53CC); /* 0x2B0466D2: mov esi, dword ptr [0x2b0b53cc] */ 1423 PUSH32(esp, edi); /* 0x2B0466D8: push edi */ 1424 ebx = ecx; /* 0x2B0466D9: mov ebx, ecx */ 1425 RECOMP_ICALL(esi); /* 0x2B0466DB: call esi */ 1426 RECOMP_FLAGS_IN(); 1427 ecx = eax; /* 0x2B0466DD: mov ecx, eax */ 1428 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B0466DF: call dword ptr [0x2b0b5374] */ 1429 RECOMP_FLAGS_IN(); 1430 PUSH32(esp, 0x1388u); /* 0x2B0466E5: push 0x1388 */ 1431 PUSH32(esp, 0x31u); /* 0x2B0466EA: push 0x31 */ 1432 PUSH32(esp, 1); /* 0x2B0466EC: push 1 */ 1433 RECOMP_ICALL(esi); /* 0x2B0466EE: call esi */ 1434 RECOMP_FLAGS_IN(); 1435 ecx = eax; /* 0x2B0466F0: mov ecx, eax */ 1436 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B0466F2: call dword ptr [0x2b0b5378] */ 1437 RECOMP_FLAGS_IN(); 1438 PUSH32(esp, 0x2B0467C0u); /* 0x2B0466F8: push 0x2b0467c0 */ 1439 PUSH32(esp, 5); /* 0x2B0466FD: push 5 */ 1440 RECOMP_ICALL(esi); /* 0x2B0466FF: call esi */ 1441 RECOMP_FLAGS_IN(); 1442 edi = MEM32(0x2B0B5324); /* 0x2B046701: mov edi, dword ptr [0x2b0b5324] */ 1443 ecx = eax; /* 0x2B046707: mov ecx, eax */ 1444 RECOMP_ICALL(edi); /* 0x2B046709: call edi */ 1445 RECOMP_FLAGS_IN(); 1446 PUSH32(esp, 0x2B046820u); /* 0x2B04670B: push 0x2b046820 */ 1447 PUSH32(esp, 6); /* 0x2B046710: push 6 */ 1448 RECOMP_ICALL(esi); /* 0x2B046712: call esi */ 1449 RECOMP_FLAGS_IN(); 1450 ecx = eax; /* 0x2B046714: mov ecx, eax */ 1451 RECOMP_ICALL(edi); /* 0x2B046716: call edi */ 1452 RECOMP_FLAGS_IN(); 1453 PUSH32(esp, 0x2B046840u); /* 0x2B046718: push 0x2b046840 */ 1454 PUSH32(esp, 0x13Cu); /* 0x2B04671D: push 0x13c */ 1455 RECOMP_ICALL(esi); /* 0x2B046722: call esi */ 1456 RECOMP_FLAGS_IN(); 1457 ecx = eax; /* 0x2B046724: mov ecx, eax */ 1458 RECOMP_ICALL(edi); /* 0x2B046726: call edi */ 1459 RECOMP_FLAGS_IN(); 1460 PUSH32(esp, 0x2B046890u); /* 0x2B046728: push 0x2b046890 */ 1461 PUSH32(esp, 0x103u); /* 0x2B04672D: push 0x103 */ 1462 RECOMP_ICALL(esi); /* 0x2B046732: call esi */ 1463 RECOMP_FLAGS_IN(); 1464 ecx = eax; /* 0x2B046734: mov ecx, eax */ 1465 RECOMP_ICALL(edi); /* 0x2B046736: call edi */ 1466 RECOMP_FLAGS_IN(); 1467 PUSH32(esp, 0x2B0468A0u); /* 0x2B046738: push 0x2b0468a0 */ 1468 PUSH32(esp, 0x13Du); /* 0x2B04673D: push 0x13d */ 1469 RECOMP_ICALL(esi); /* 0x2B046742: call esi */ 1470 RECOMP_FLAGS_IN(); 1471 ecx = eax; /* 0x2B046744: mov ecx, eax */ 1472 RECOMP_ICALL(edi); /* 0x2B046746: call edi */ 1473 RECOMP_FLAGS_IN(); 1474 PUSH32(esp, 0x2B0468F0u); /* 0x2B046748: push 0x2b0468f0 */ 1475 PUSH32(esp, 0x13Eu); /* 0x2B04674D: push 0x13e */ 1476 RECOMP_ICALL(esi); /* 0x2B046752: call esi */ 1477 RECOMP_FLAGS_IN(); 1478 ecx = eax; /* 0x2B046754: mov ecx, eax */ 1479 RECOMP_ICALL(edi); /* 0x2B046756: call edi */ 1480 RECOMP_FLAGS_IN(); 1481 PUSH32(esp, 0x2B046960u); /* 0x2B046758: push 0x2b046960 */ 1482 PUSH32(esp, 0x13Fu); /* 0x2B04675D: push 0x13f */ 1483 RECOMP_ICALL(esi); /* 0x2B046762: call esi */ 1484 RECOMP_FLAGS_IN(); 1485 ecx = eax; /* 0x2B046764: mov ecx, eax */ 1486 RECOMP_ICALL(edi); /* 0x2B046766: call edi */ 1487 RECOMP_FLAGS_IN(); 1488 PUSH32(esp, 0x2B0469D0u); /* 0x2B046768: push 0x2b0469d0 */ 1489 PUSH32(esp, 0x140u); /* 0x2B04676D: push 0x140 */ 1490 RECOMP_ICALL(esi); /* 0x2B046772: call esi */ 1491 RECOMP_FLAGS_IN(); 1492 ecx = eax; /* 0x2B046774: mov ecx, eax */ 1493 RECOMP_ICALL(edi); /* 0x2B046776: call edi */ 1494 RECOMP_FLAGS_IN(); 1495 PUSH32(esp, 0x2B0469E0u); /* 0x2B046778: push 0x2b0469e0 */ 1496 PUSH32(esp, 0x141u); /* 0x2B04677D: push 0x141 */ 1497 RECOMP_ICALL(esi); /* 0x2B046782: call esi */ 1498 RECOMP_FLAGS_IN(); 1499 ecx = eax; /* 0x2B046784: mov ecx, eax */ 1500 RECOMP_ICALL(edi); /* 0x2B046786: call edi */ 1501 RECOMP_FLAGS_IN(); 1502 PUSH32(esp, 0x2B046A20u); /* 0x2B046788: push 0x2b046a20 */ 1503 PUSH32(esp, 0x13Bu); /* 0x2B04678D: push 0x13b */ 1504 RECOMP_ICALL(esi); /* 0x2B046792: call esi */ 1505 RECOMP_FLAGS_IN(); 1506 ecx = eax; /* 0x2B046794: mov ecx, eax */ 1507 RECOMP_ICALL(edi); /* 0x2B046796: call edi */ 1508 RECOMP_FLAGS_IN(); 1509 PUSH32(esp, 0x2B046A60u); /* 0x2B046798: push 0x2b046a60 */ 1510 PUSH32(esp, 0x142u); /* 0x2B04679D: push 0x142 */ 1511 RECOMP_ICALL(esi); /* 0x2B0467A2: call esi */ 1512 RECOMP_FLAGS_IN(); 1513 ecx = eax; /* 0x2B0467A4: mov ecx, eax */ 1514 RECOMP_ICALL(edi); /* 0x2B0467A6: call edi */ 1515 RECOMP_FLAGS_IN(); 1516 edi = POP32_VAL(esp); /* 0x2B0467A8: pop edi */ 1517 esi = POP32_VAL(esp); /* 0x2B0467A9: pop esi */ 1518 eax = ebx; /* 0x2B0467AA: mov eax, ebx */ 1519 MEM32(0x2B0EEA88) = 0; /* 0x2B0467AC: mov dword ptr [0x2b0eea88], 0 */ 1520 ebx = POP32_VAL(esp); /* 0x2B0467B6: pop ebx */ 1521 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0467B7: ret */ 1522 RECOMP_REGS_OUT(); 1523 } 1524 1525 void sub_2B0467C0(void) { 1526 int _fpu_cmp = 0; 1527 uint32_t _cf = 0; 1528 int _df = 1; 1529 uint32_t _flag_k = FK_NONE; 1530 uint32_t _flag_a = 0, _flag_b = 0; 1531 uint32_t _itail_tgt = 0; 1532 RECOMP_REGS_LOCALS 1533 RECOMP_ENTER(0x2B0467C0u); 1534 1535 L_2B0467C0: 1536 PUSH32(esp, ebp); /* 0x2B0467C0: push ebp */ 1537 ebp = esp; /* 0x2B0467C1: mov ebp, esp */ 1538 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0467C3: push -1 */ 1539 PUSH32(esp, 0x2B0AF11Bu); /* 0x2B0467C5: push 0x2b0af11b */ 1540 eax = MEM32(FS_BASE + (0)); /* 0x2B0467CA: mov eax, dword ptr fs:[0] */ 1541 PUSH32(esp, eax); /* 0x2B0467D0: push eax */ 1542 MEM32(FS_BASE + (0)) = esp; /* 0x2B0467D1: mov dword ptr fs:[0], esp */ 1543 PUSH32(esp, ecx); /* 0x2B0467D8: push ecx */ 1544 PUSH32(esp, 0x3Cu); /* 0x2B0467D9: push 0x3c */ 1545 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0467DB: call 0x2b0ab212 */ /* not lifted */ 1546 RECOMP_FLAGS_IN(); 1547 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1549 esp = esp + 4; /* 0x2B0467E0: add esp, 4 */ 1550 _flag_k = FK_ADD; 1551 MEM32(ebp + (-0x10)) = eax; /* 0x2B0467E3: mov dword ptr [ebp - 0x10], eax */ 1552 /* test eax, eax */ /* 0x2B0467E6: test eax, eax */ 1553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1554 _cf = 0; 1555 _flag_k = FK_TEST; 1556 MEM32(ebp + (-0x4)) = 0; /* 0x2B0467E8: mov dword ptr [ebp - 4], 0 */ 1557 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04680B; /* 0x2B0467EF: je 0x2b04680b */ 1558 L_2B0467F1: 1559 ecx = eax; /* 0x2B0467F1: mov ecx, eax */ 1560 RECOMP_ICALL(0x2B0462A0u); /* 0x2B0467F3: call 0x2b0462a0 */ /* not lifted */ 1561 RECOMP_FLAGS_IN(); 1562 MEM32(0x2B0EEA88) = eax; /* 0x2B0467F8: mov dword ptr [0x2b0eea88], eax */ 1563 ecx = MEM32(ebp + (-0xC)); /* 0x2B0467FD: mov ecx, dword ptr [ebp - 0xc] */ 1564 MEM32(FS_BASE + (0)) = ecx; /* 0x2B046800: mov dword ptr fs:[0], ecx */ 1565 esp = ebp; /* 0x2B046807: mov esp, ebp */ 1566 ebp = POP32_VAL(esp); /* 0x2B046809: pop ebp */ 1567 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04680A: ret */ 1568 L_2B04680B: 1569 ecx = MEM32(ebp + (-0xC)); /* 0x2B04680B: mov ecx, dword ptr [ebp - 0xc] */ 1570 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1571 eax = 0; /* 0x2B04680E: xor eax, eax */ 1572 _cf = 0; 1573 _flag_k = FK_TEST; 1574 MEM32(0x2B0EEA88) = eax; /* 0x2B046810: mov dword ptr [0x2b0eea88], eax */ 1575 MEM32(FS_BASE + (0)) = ecx; /* 0x2B046815: mov dword ptr fs:[0], ecx */ 1576 esp = ebp; /* 0x2B04681C: mov esp, ebp */ 1577 ebp = POP32_VAL(esp); /* 0x2B04681E: pop ebp */ 1578 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04681F: ret */ 1579 RECOMP_REGS_OUT(); 1580 } 1581 1582 void sub_2B046820(void) { 1583 int _fpu_cmp = 0; 1584 uint32_t _cf = 0; 1585 int _df = 1; 1586 uint32_t _flag_k = FK_NONE; 1587 uint32_t _flag_a = 0, _flag_b = 0; 1588 uint32_t _itail_tgt = 0; 1589 RECOMP_REGS_LOCALS 1590 RECOMP_ENTER(0x2B046820u); 1591 1592 L_2B046820: 1593 ecx = MEM32(0x2B0EEA88); /* 0x2B046820: mov ecx, dword ptr [0x2b0eea88] */ 1594 /* test ecx, ecx */ /* 0x2B046826: test ecx, ecx */ 1595 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1596 _cf = 0; 1597 _flag_k = FK_TEST; 1598 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046830; /* 0x2B046828: je 0x2b046830 */ 1599 L_2B04682A: 1600 eax = MEM32(ecx); /* 0x2B04682A: mov eax, dword ptr [ecx] */ 1601 PUSH32(esp, 1); /* 0x2B04682C: push 1 */ 1602 RECOMP_ICALL(MEM32(eax)); /* 0x2B04682E: call dword ptr [eax] */ 1603 RECOMP_FLAGS_IN(); 1604 L_2B046830: 1605 MEM32(0x2B0EEA88) = 0; /* 0x2B046830: mov dword ptr [0x2b0eea88], 0 */ 1606 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04683A: ret */ 1607 RECOMP_REGS_OUT(); 1608 } 1609 1610 void sub_2B046840(void) { 1611 int _fpu_cmp = 0; 1612 uint32_t _cf = 0; 1613 int _df = 1; 1614 uint32_t _flag_k = FK_NONE; 1615 uint32_t _flag_a = 0, _flag_b = 0; 1616 uint32_t _itail_tgt = 0; 1617 RECOMP_REGS_LOCALS 1618 RECOMP_ENTER(0x2B046840u); 1619 1620 L_2B046840: 1621 PUSH32(esp, ebp); /* 0x2B046840: push ebp */ 1622 ebp = esp; /* 0x2B046841: mov ebp, esp */ 1623 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1625 esp = esp - 0x10u; /* 0x2B046843: sub esp, 0x10 */ 1626 _flag_k = FK_CMP; 1627 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1628 eax = 0; /* 0x2B046846: xor eax, eax */ 1629 _cf = 0; 1630 _flag_k = FK_TEST; 1631 MEM32(ebp + (-0x8)) = eax; /* 0x2B046848: mov dword ptr [ebp - 8], eax */ 1632 MEM32(ebp + (-0x4)) = eax; /* 0x2B04684B: mov dword ptr [ebp - 4], eax */ 1633 MEM32(ebp + (-0x10)) = eax; /* 0x2B04684E: mov dword ptr [ebp - 0x10], eax */ 1634 MEM32(ebp + (-0xC)) = eax; /* 0x2B046851: mov dword ptr [ebp - 0xc], eax */ 1635 eax = ebp + (-0x10); /* 0x2B046854: lea eax, [ebp - 0x10] */ 1636 PUSH32(esp, eax); /* 0x2B046857: push eax */ 1637 ecx = ebp + (-0x8); /* 0x2B046858: lea ecx, [ebp - 8] */ 1638 PUSH32(esp, ecx); /* 0x2B04685B: push ecx */ 1639 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B04685C: call dword ptr [0x2b0b53cc] */ 1640 RECOMP_FLAGS_IN(); 1641 ecx = eax; /* 0x2B046862: mov ecx, eax */ 1642 RECOMP_ICALL(MEM32(0x2B0B5364)); /* 0x2B046864: call dword ptr [0x2b0b5364] */ 1643 RECOMP_FLAGS_IN(); 1644 edx = ebp + (-0x8); /* 0x2B04686A: lea edx, [ebp - 8] */ 1645 PUSH32(esp, edx); /* 0x2B04686D: push edx */ 1646 eax = ebp + (-0x10); /* 0x2B04686E: lea eax, [ebp - 0x10] */ 1647 PUSH32(esp, eax); /* 0x2B046871: push eax */ 1648 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B046872: call dword ptr [0x2b0b5d6c] */ 1649 RECOMP_FLAGS_IN(); 1650 ecx = eax; /* 0x2B046878: mov ecx, eax */ 1651 RECOMP_ICALL(MEM32(0x2B0B5E88)); /* 0x2B04687A: call dword ptr [0x2b0b5e88] */ 1652 RECOMP_FLAGS_IN(); 1653 esp = ebp; /* 0x2B046880: mov esp, ebp */ 1654 ebp = POP32_VAL(esp); /* 0x2B046882: pop ebp */ 1655 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046883: ret */ 1656 RECOMP_REGS_OUT(); 1657 } 1658 1659 void sub_2B046890(void) { 1660 int _fpu_cmp = 0; 1661 uint32_t _cf = 0; 1662 int _df = 1; 1663 uint32_t _flag_k = FK_NONE; 1664 uint32_t _flag_a = 0, _flag_b = 0; 1665 uint32_t _itail_tgt = 0; 1666 RECOMP_REGS_LOCALS 1667 RECOMP_ENTER(0x2B046890u); 1668 1669 goto L_2B046890; 1670 L_2B046660: 1671 PUSH32(esp, esi); /* 0x2B046660: push esi */ 1672 esi = ecx; /* 0x2B046661: mov esi, ecx */ 1673 RECOMP_ICALL(0x2B001520u); /* 0x2B046663: call 0x2b001520 */ /* not lifted */ 1674 RECOMP_FLAGS_IN(); 1675 ecx = esi; /* 0x2B046668: mov ecx, esi */ 1676 RECOMP_ICALL(0x2B0465D0u); /* 0x2B04666A: call 0x2b0465d0 */ /* not lifted */ 1677 RECOMP_FLAGS_IN(); 1678 ecx = esi; /* 0x2B04666F: mov ecx, esi */ 1679 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B046671: call 0x2b03a2b0 */ /* not lifted */ 1680 RECOMP_FLAGS_IN(); 1681 esi = POP32_VAL(esp); /* 0x2B046676: pop esi */ 1682 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046677: ret */ 1683 L_2B046890: 1684 ecx = MEM32(0x2B0EEA88); /* 0x2B046890: mov ecx, dword ptr [0x2b0eea88] */ 1685 /* test ecx, ecx */ /* 0x2B046896: test ecx, ecx */ 1686 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1687 _cf = 0; 1688 _flag_k = FK_TEST; 1689 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04689F; /* 0x2B046898: je 0x2b04689f */ 1690 L_2B04689A: 1691 RECOMP_BACKEDGE(); 1692 goto L_2B046660; /* 0x2B04689A: jmp 0x2b046660 */ 1693 L_2B04689F: 1694 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04689F: ret */ 1695 RECOMP_REGS_OUT(); 1696 } 1697 1698 void sub_2B0468A0(void) { 1699 int _fpu_cmp = 0; 1700 uint32_t _cf = 0; 1701 int _df = 1; 1702 uint32_t _flag_k = FK_NONE; 1703 uint32_t _flag_a = 0, _flag_b = 0; 1704 uint32_t _itail_tgt = 0; 1705 RECOMP_REGS_LOCALS 1706 RECOMP_ENTER(0x2B0468A0u); 1707 1708 L_2B0468A0: 1709 PUSH32(esp, ebp); /* 0x2B0468A0: push ebp */ 1710 ebp = esp; /* 0x2B0468A1: mov ebp, esp */ 1711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1713 esp = esp - 8; /* 0x2B0468A3: sub esp, 8 */ 1714 _flag_k = FK_CMP; 1715 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0468A6: call dword ptr [0x2b0b53cc] */ 1716 RECOMP_FLAGS_IN(); 1717 ecx = eax; /* 0x2B0468AC: mov ecx, eax */ 1718 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B0468AE: call dword ptr [0x2b0b53a4] */ 1719 RECOMP_FLAGS_IN(); 1720 /* test eax, eax */ /* 0x2B0468B4: test eax, eax */ 1721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1722 _cf = 0; 1723 _flag_k = FK_TEST; 1724 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0468DF; /* 0x2B0468B6: je 0x2b0468df */ 1725 L_2B0468B8: 1726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 1727 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1728 eax = eax + 0x54u; /* 0x2B0468B8: add eax, 0x54 */ 1729 _flag_k = FK_ADD; 1730 ecx = ebp + (-0x8); /* 0x2B0468BB: lea ecx, [ebp - 8] */ 1731 /* cmp ecx, eax */ /* 0x2B0468BE: cmp ecx, eax */ 1732 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1734 _flag_k = FK_CMP; 1735 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0468CD; /* 0x2B0468C0: je 0x2b0468cd */ 1736 L_2B0468C2: 1737 edx = MEM32(eax); /* 0x2B0468C2: mov edx, dword ptr [eax] */ 1738 eax = MEM32(eax + 0x4); /* 0x2B0468C4: mov eax, dword ptr [eax + 4] */ 1739 MEM32(ebp + (-0x8)) = edx; /* 0x2B0468C7: mov dword ptr [ebp - 8], edx */ 1740 MEM32(ebp + (-0x4)) = eax; /* 0x2B0468CA: mov dword ptr [ebp - 4], eax */ 1741 L_2B0468CD: 1742 ecx = ebp + (-0x8); /* 0x2B0468CD: lea ecx, [ebp - 8] */ 1743 PUSH32(esp, ecx); /* 0x2B0468D0: push ecx */ 1744 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0468D1: call dword ptr [0x2b0b5d6c] */ 1745 RECOMP_FLAGS_IN(); 1746 ecx = eax; /* 0x2B0468D7: mov ecx, eax */ 1747 RECOMP_ICALL(MEM32(0x2B0B5E8C)); /* 0x2B0468D9: call dword ptr [0x2b0b5e8c] */ 1748 RECOMP_FLAGS_IN(); 1749 L_2B0468DF: 1750 esp = ebp; /* 0x2B0468DF: mov esp, ebp */ 1751 ebp = POP32_VAL(esp); /* 0x2B0468E1: pop ebp */ 1752 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0468E2: ret */ 1753 RECOMP_REGS_OUT(); 1754 } 1755 1756 void sub_2B0468F0(void) { 1757 int _fpu_cmp = 0; 1758 uint32_t _cf = 0; 1759 int _df = 1; 1760 uint32_t _flag_k = FK_NONE; 1761 uint32_t _flag_a = 0, _flag_b = 0; 1762 uint32_t _itail_tgt = 0; 1763 RECOMP_REGS_LOCALS 1764 RECOMP_ENTER(0x2B0468F0u); 1765 1766 L_2B0468F0: 1767 PUSH32(esp, ebp); /* 0x2B0468F0: push ebp */ 1768 ebp = esp; /* 0x2B0468F1: mov ebp, esp */ 1769 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1771 esp = esp - 8; /* 0x2B0468F3: sub esp, 8 */ 1772 _flag_k = FK_CMP; 1773 eax = MEM32(0x2B0EEA88); /* 0x2B0468F6: mov eax, dword ptr [0x2b0eea88] */ 1774 /* test eax, eax */ /* 0x2B0468FB: test eax, eax */ 1775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1776 _cf = 0; 1777 _flag_k = FK_TEST; 1778 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046952; /* 0x2B0468FD: je 0x2b046952 */ 1779 L_2B0468FF: 1780 eax = ebp + (-0x8); /* 0x2B0468FF: lea eax, [ebp - 8] */ 1781 PUSH32(esp, eax); /* 0x2B046902: push eax */ 1782 MEM32(ebp + (-0x8)) = 0; /* 0x2B046903: mov dword ptr [ebp - 8], 0 */ 1783 MEM32(ebp + (-0x4)) = 0; /* 0x2B04690A: mov dword ptr [ebp - 4], 0 */ 1784 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B046911: call dword ptr [0x2b0b53cc] */ 1785 RECOMP_FLAGS_IN(); 1786 ecx = eax; /* 0x2B046917: mov ecx, eax */ 1787 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B046919: call dword ptr [0x2b0b53ac] */ 1788 RECOMP_FLAGS_IN(); 1789 PUSH32(esp, 0x29u); /* 0x2B04691F: push 0x29 */ 1790 RECOMP_ICALL(MEM32(0x2B0B5AAC)); /* 0x2B046921: call dword ptr [0x2b0b5aac] */ 1791 RECOMP_FLAGS_IN(); 1792 ecx = eax; /* 0x2B046927: mov ecx, eax */ 1793 RECOMP_ICALL(MEM32(0x2B0B5AA8)); /* 0x2B046929: call dword ptr [0x2b0b5aa8] */ 1794 RECOMP_FLAGS_IN(); 1795 /* test eax, eax */ /* 0x2B04692F: test eax, eax */ 1796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1797 _cf = 0; 1798 _flag_k = FK_TEST; 1799 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046952; /* 0x2B046931: je 0x2b046952 */ 1800 L_2B046933: 1801 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1803 esp = esp - 8; /* 0x2B046933: sub esp, 8 */ 1804 _flag_k = FK_CMP; 1805 edx = esp; /* 0x2B046936: mov edx, esp */ 1806 ecx = ebp + (-0x8); /* 0x2B046938: lea ecx, [ebp - 8] */ 1807 /* cmp edx, ecx */ /* 0x2B04693B: cmp edx, ecx */ 1808 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1810 _flag_k = FK_CMP; 1811 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04694A; /* 0x2B04693D: je 0x2b04694a */ 1812 L_2B04693F: 1813 ecx = MEM32(ebp + (-0x8)); /* 0x2B04693F: mov ecx, dword ptr [ebp - 8] */ 1814 MEM32(edx) = ecx; /* 0x2B046942: mov dword ptr [edx], ecx */ 1815 ecx = MEM32(ebp + (-0x4)); /* 0x2B046944: mov ecx, dword ptr [ebp - 4] */ 1816 MEM32(edx + 0x4) = ecx; /* 0x2B046947: mov dword ptr [edx + 4], ecx */ 1817 L_2B04694A: 1818 ecx = eax; /* 0x2B04694A: mov ecx, eax */ 1819 RECOMP_ICALL(MEM32(0x2B0B5824)); /* 0x2B04694C: call dword ptr [0x2b0b5824] */ 1820 RECOMP_FLAGS_IN(); 1821 L_2B046952: 1822 esp = ebp; /* 0x2B046952: mov esp, ebp */ 1823 ebp = POP32_VAL(esp); /* 0x2B046954: pop ebp */ 1824 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046955: ret */ 1825 RECOMP_REGS_OUT(); 1826 } 1827 1828 void sub_2B046960(void) { 1829 int _fpu_cmp = 0; 1830 uint32_t _cf = 0; 1831 int _df = 1; 1832 uint32_t _flag_k = FK_NONE; 1833 uint32_t _flag_a = 0, _flag_b = 0; 1834 uint32_t _itail_tgt = 0; 1835 RECOMP_REGS_LOCALS 1836 RECOMP_ENTER(0x2B046960u); 1837 1838 L_2B046960: 1839 PUSH32(esp, ebp); /* 0x2B046960: push ebp */ 1840 ebp = esp; /* 0x2B046961: mov ebp, esp */ 1841 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1843 esp = esp - 0x10u; /* 0x2B046963: sub esp, 0x10 */ 1844 _flag_k = FK_CMP; 1845 eax = MEM32(0x2B0EEA88); /* 0x2B046966: mov eax, dword ptr [0x2b0eea88] */ 1846 /* test eax, eax */ /* 0x2B04696B: test eax, eax */ 1847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1848 _cf = 0; 1849 _flag_k = FK_TEST; 1850 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0469CC; /* 0x2B04696D: je 0x2b0469cc */ 1851 L_2B04696F: 1852 PUSH32(esp, esi); /* 0x2B04696F: push esi */ 1853 esi = MEM32(0x2B0B53CC); /* 0x2B046970: mov esi, dword ptr [0x2b0b53cc] */ 1854 eax = ebp + (-0x10); /* 0x2B046976: lea eax, [ebp - 0x10] */ 1855 PUSH32(esp, eax); /* 0x2B046979: push eax */ 1856 MEM32(ebp + (-0x10)) = 0; /* 0x2B04697A: mov dword ptr [ebp - 0x10], 0 */ 1857 MEM32(ebp + (-0xC)) = 0; /* 0x2B046981: mov dword ptr [ebp - 0xc], 0 */ 1858 RECOMP_ICALL(esi); /* 0x2B046988: call esi */ 1859 RECOMP_FLAGS_IN(); 1860 ecx = eax; /* 0x2B04698A: mov ecx, eax */ 1861 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B04698C: call dword ptr [0x2b0b53ac] */ 1862 RECOMP_FLAGS_IN(); 1863 RECOMP_ICALL(esi); /* 0x2B046992: call esi */ 1864 RECOMP_FLAGS_IN(); 1865 ecx = eax; /* 0x2B046994: mov ecx, eax */ 1866 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B046996: call dword ptr [0x2b0b53a4] */ 1867 RECOMP_FLAGS_IN(); 1868 /* test eax, eax */ /* 0x2B04699C: test eax, eax */ 1869 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1870 _cf = 0; 1871 _flag_k = FK_TEST; 1872 esi = POP32_VAL(esp); /* 0x2B04699E: pop esi */ 1873 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0469CC; /* 0x2B04699F: je 0x2b0469cc */ 1874 L_2B0469A1: 1875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 1876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1877 eax = eax + 0x54u; /* 0x2B0469A1: add eax, 0x54 */ 1878 _flag_k = FK_ADD; 1879 ecx = ebp + (-0x8); /* 0x2B0469A4: lea ecx, [ebp - 8] */ 1880 /* cmp ecx, eax */ /* 0x2B0469A7: cmp ecx, eax */ 1881 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1883 _flag_k = FK_CMP; 1884 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0469B6; /* 0x2B0469A9: je 0x2b0469b6 */ 1885 L_2B0469AB: 1886 edx = MEM32(eax); /* 0x2B0469AB: mov edx, dword ptr [eax] */ 1887 eax = MEM32(eax + 0x4); /* 0x2B0469AD: mov eax, dword ptr [eax + 4] */ 1888 MEM32(ebp + (-0x8)) = edx; /* 0x2B0469B0: mov dword ptr [ebp - 8], edx */ 1889 MEM32(ebp + (-0x4)) = eax; /* 0x2B0469B3: mov dword ptr [ebp - 4], eax */ 1890 L_2B0469B6: 1891 ecx = ebp + (-0x8); /* 0x2B0469B6: lea ecx, [ebp - 8] */ 1892 PUSH32(esp, ecx); /* 0x2B0469B9: push ecx */ 1893 edx = ebp + (-0x10); /* 0x2B0469BA: lea edx, [ebp - 0x10] */ 1894 PUSH32(esp, edx); /* 0x2B0469BD: push edx */ 1895 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0469BE: call dword ptr [0x2b0b5d6c] */ 1896 RECOMP_FLAGS_IN(); 1897 ecx = eax; /* 0x2B0469C4: mov ecx, eax */ 1898 RECOMP_ICALL(MEM32(0x2B0B5E84)); /* 0x2B0469C6: call dword ptr [0x2b0b5e84] */ 1899 RECOMP_FLAGS_IN(); 1900 L_2B0469CC: 1901 esp = ebp; /* 0x2B0469CC: mov esp, ebp */ 1902 ebp = POP32_VAL(esp); /* 0x2B0469CE: pop ebp */ 1903 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0469CF: ret */ 1904 RECOMP_REGS_OUT(); 1905 } 1906 1907 void sub_2B0469D0(void) { 1908 int _fpu_cmp = 0; 1909 uint32_t _cf = 0; 1910 int _df = 1; 1911 uint32_t _flag_k = FK_NONE; 1912 uint32_t _flag_a = 0, _flag_b = 0; 1913 uint32_t _itail_tgt = 0; 1914 RECOMP_REGS_LOCALS 1915 RECOMP_ENTER(0x2B0469D0u); 1916 1917 goto L_2B0469D0; 1918 L_2B001520: 1919 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B001520: ret */ 1920 L_2B0469D0: 1921 ecx = MEM32(0x2B0EEA88); /* 0x2B0469D0: mov ecx, dword ptr [0x2b0eea88] */ 1922 /* test ecx, ecx */ /* 0x2B0469D6: test ecx, ecx */ 1923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1924 _cf = 0; 1925 _flag_k = FK_TEST; 1926 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0469DF; /* 0x2B0469D8: je 0x2b0469df */ 1927 L_2B0469DA: 1928 RECOMP_BACKEDGE(); 1929 goto L_2B001520; /* 0x2B0469DA: jmp 0x2b001520 */ 1930 L_2B0469DF: 1931 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0469DF: ret */ 1932 RECOMP_REGS_OUT(); 1933 } 1934 1935 void sub_2B0469E0(void) { 1936 int _fpu_cmp = 0; 1937 uint32_t _cf = 0; 1938 int _df = 1; 1939 uint32_t _flag_k = FK_NONE; 1940 uint32_t _flag_a = 0, _flag_b = 0; 1941 uint32_t _itail_tgt = 0; 1942 RECOMP_REGS_LOCALS 1943 RECOMP_ENTER(0x2B0469E0u); 1944 1945 L_2B0469E0: 1946 PUSH32(esp, ebp); /* 0x2B0469E0: push ebp */ 1947 ebp = esp; /* 0x2B0469E1: mov ebp, esp */ 1948 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1950 esp = esp - 8; /* 0x2B0469E3: sub esp, 8 */ 1951 _flag_k = FK_CMP; 1952 eax = ebp + (-0x8); /* 0x2B0469E6: lea eax, [ebp - 8] */ 1953 PUSH32(esp, eax); /* 0x2B0469E9: push eax */ 1954 MEM32(ebp + (-0x8)) = 0; /* 0x2B0469EA: mov dword ptr [ebp - 8], 0 */ 1955 MEM32(ebp + (-0x4)) = 0; /* 0x2B0469F1: mov dword ptr [ebp - 4], 0 */ 1956 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0469F8: call dword ptr [0x2b0b53cc] */ 1957 RECOMP_FLAGS_IN(); 1958 ecx = eax; /* 0x2B0469FE: mov ecx, eax */ 1959 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B046A00: call dword ptr [0x2b0b53ac] */ 1960 RECOMP_FLAGS_IN(); 1961 ecx = MEM32(0x2B0EEA88); /* 0x2B046A06: mov ecx, dword ptr [0x2b0eea88] */ 1962 /* test ecx, ecx */ /* 0x2B046A0C: test ecx, ecx */ 1963 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1964 _cf = 0; 1965 _flag_k = FK_TEST; 1966 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046A19; /* 0x2B046A0E: je 0x2b046a19 */ 1967 L_2B046A10: 1968 edx = ebp + (-0x8); /* 0x2B046A10: lea edx, [ebp - 8] */ 1969 PUSH32(esp, edx); /* 0x2B046A13: push edx */ 1970 RECOMP_ICALL(0x2B046680u); /* 0x2B046A14: call 0x2b046680 */ /* not lifted */ 1971 RECOMP_FLAGS_IN(); 1972 L_2B046A19: 1973 esp = ebp; /* 0x2B046A19: mov esp, ebp */ 1974 ebp = POP32_VAL(esp); /* 0x2B046A1B: pop ebp */ 1975 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046A1C: ret */ 1976 RECOMP_REGS_OUT(); 1977 } 1978 1979 void sub_2B046A20(void) { 1980 int _fpu_cmp = 0; 1981 uint32_t _cf = 0; 1982 int _df = 1; 1983 uint32_t _flag_k = FK_NONE; 1984 uint32_t _flag_a = 0, _flag_b = 0; 1985 uint32_t _itail_tgt = 0; 1986 RECOMP_REGS_LOCALS 1987 RECOMP_ENTER(0x2B046A20u); 1988 1989 L_2B046A20: 1990 PUSH32(esp, ebp); /* 0x2B046A20: push ebp */ 1991 ebp = esp; /* 0x2B046A21: mov ebp, esp */ 1992 PUSH32(esp, ecx); /* 0x2B046A23: push ecx */ 1993 eax = ebp + (-0x4); /* 0x2B046A24: lea eax, [ebp - 4] */ 1994 PUSH32(esp, eax); /* 0x2B046A27: push eax */ 1995 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B046A28: call dword ptr [0x2b0b53cc] */ 1996 RECOMP_FLAGS_IN(); 1997 ecx = eax; /* 0x2B046A2E: mov ecx, eax */ 1998 RECOMP_ICALL(MEM32(0x2B0B53A8)); /* 0x2B046A30: call dword ptr [0x2b0b53a8] */ 1999 RECOMP_FLAGS_IN(); 2000 ecx = MEM32(0x2B0EEA88); /* 0x2B046A36: mov ecx, dword ptr [0x2b0eea88] */ 2001 /* test ecx, ecx */ /* 0x2B046A3C: test ecx, ecx */ 2002 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2003 _cf = 0; 2004 _flag_k = FK_TEST; 2005 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046A4E; /* 0x2B046A3E: je 0x2b046a4e */ 2006 L_2B046A40: 2007 edx = MEM32(ebp + (-0x4)); /* 0x2B046A40: mov edx, dword ptr [ebp - 4] */ 2008 /* test edx, edx */ /* 0x2B046A43: test edx, edx */ 2009 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2010 _cf = 0; 2011 _flag_k = FK_TEST; 2012 SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B046A45: setne dl */ 2013 PUSH32(esp, edx); /* 0x2B046A48: push edx */ 2014 RECOMP_ICALL(0x2B0466B0u); /* 0x2B046A49: call 0x2b0466b0 */ /* not lifted */ 2015 RECOMP_FLAGS_IN(); 2016 L_2B046A4E: 2017 esp = ebp; /* 0x2B046A4E: mov esp, ebp */ 2018 ebp = POP32_VAL(esp); /* 0x2B046A50: pop ebp */ 2019 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046A51: ret */ 2020 RECOMP_REGS_OUT(); 2021 } 2022 2023 void sub_2B046A60(void) { 2024 int _fpu_cmp = 0; 2025 uint32_t _cf = 0; 2026 int _df = 1; 2027 uint32_t _flag_k = FK_NONE; 2028 uint32_t _flag_a = 0, _flag_b = 0; 2029 uint32_t _itail_tgt = 0; 2030 RECOMP_REGS_LOCALS 2031 RECOMP_ENTER(0x2B046A60u); 2032 2033 L_2B046A60: 2034 PUSH32(esp, ebp); /* 0x2B046A60: push ebp */ 2035 ebp = esp; /* 0x2B046A61: mov ebp, esp */ 2036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2038 esp = esp - 8; /* 0x2B046A63: sub esp, 8 */ 2039 _flag_k = FK_CMP; 2040 eax = ebp + (-0x8); /* 0x2B046A66: lea eax, [ebp - 8] */ 2041 PUSH32(esp, eax); /* 0x2B046A69: push eax */ 2042 MEM32(ebp + (-0x8)) = 0; /* 0x2B046A6A: mov dword ptr [ebp - 8], 0 */ 2043 MEM32(ebp + (-0x4)) = 0; /* 0x2B046A71: mov dword ptr [ebp - 4], 0 */ 2044 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B046A78: call dword ptr [0x2b0b53cc] */ 2045 RECOMP_FLAGS_IN(); 2046 ecx = eax; /* 0x2B046A7E: mov ecx, eax */ 2047 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B046A80: call dword ptr [0x2b0b53ac] */ 2048 RECOMP_FLAGS_IN(); 2049 ecx = MEM32(0x2B0EF104); /* 0x2B046A86: mov ecx, dword ptr [0x2b0ef104] */ 2050 /* test ecx, ecx */ /* 0x2B046A8C: test ecx, ecx */ 2051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2052 _cf = 0; 2053 _flag_k = FK_TEST; 2054 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046A9C; /* 0x2B046A8E: je 0x2b046a9c */ 2055 L_2B046A90: 2056 PUSH32(esp, 0); /* 0x2B046A90: push 0 */ 2057 PUSH32(esp, 0x2B0E75ACu); /* 0x2B046A92: push 0x2b0e75ac */ 2058 RECOMP_ICALL(0x2B08D480u); /* 0x2B046A97: call 0x2b08d480 */ /* not lifted */ 2059 RECOMP_FLAGS_IN(); 2060 L_2B046A9C: 2061 esp = ebp; /* 0x2B046A9C: mov esp, ebp */ 2062 ebp = POP32_VAL(esp); /* 0x2B046A9E: pop ebp */ 2063 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046A9F: ret */ 2064 RECOMP_REGS_OUT(); 2065 } 2066 2067 void sub_2B046AA0(void) { 2068 int _fpu_cmp = 0; 2069 uint32_t _cf = 0; 2070 int _df = 1; 2071 uint32_t _flag_k = FK_NONE; 2072 uint32_t _flag_a = 0, _flag_b = 0; 2073 uint32_t _itail_tgt = 0; 2074 RECOMP_REGS_LOCALS 2075 RECOMP_ENTER(0x2B046AA0u); 2076 2077 L_2B046AA0: 2078 PUSH32(esp, ebp); /* 0x2B046AA0: push ebp */ 2079 ebp = esp; /* 0x2B046AA1: mov ebp, esp */ 2080 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B046AA3: push -1 */ 2081 PUSH32(esp, 0x2B0AF13Bu); /* 0x2B046AA5: push 0x2b0af13b */ 2082 eax = MEM32(FS_BASE + (0)); /* 0x2B046AAA: mov eax, dword ptr fs:[0] */ 2083 PUSH32(esp, eax); /* 0x2B046AB0: push eax */ 2084 MEM32(FS_BASE + (0)) = esp; /* 0x2B046AB1: mov dword ptr fs:[0], esp */ 2085 PUSH32(esp, ecx); /* 0x2B046AB8: push ecx */ 2086 eax = MEM32(0x2B0EEAA0); /* 0x2B046AB9: mov eax, dword ptr [0x2b0eeaa0] */ 2087 /* test eax, eax */ /* 0x2B046ABE: test eax, eax */ 2088 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2089 _cf = 0; 2090 _flag_k = FK_TEST; 2091 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B046AFB; /* 0x2B046AC0: jne 0x2b046afb */ 2092 L_2B046AC2: 2093 PUSH32(esp, 1); /* 0x2B046AC2: push 1 */ 2094 RECOMP_ICALL(0x2B0AB212u); /* 0x2B046AC4: call 0x2b0ab212 */ /* not lifted */ 2095 RECOMP_FLAGS_IN(); 2096 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2097 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2098 esp = esp + 4; /* 0x2B046AC9: add esp, 4 */ 2099 _flag_k = FK_ADD; 2100 MEM32(ebp + (-0x10)) = eax; /* 0x2B046ACC: mov dword ptr [ebp - 0x10], eax */ 2101 /* test eax, eax */ /* 0x2B046ACF: test eax, eax */ 2102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2103 _cf = 0; 2104 _flag_k = FK_TEST; 2105 MEM32(ebp + (-0x4)) = 0; /* 0x2B046AD1: mov dword ptr [ebp - 4], 0 */ 2106 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046AF4; /* 0x2B046AD8: je 0x2b046af4 */ 2107 L_2B046ADA: 2108 ecx = eax; /* 0x2B046ADA: mov ecx, eax */ 2109 RECOMP_ICALL(0x2B0473F0u); /* 0x2B046ADC: call 0x2b0473f0 */ /* not lifted */ 2110 RECOMP_FLAGS_IN(); 2111 MEM32(0x2B0EEAA0) = eax; /* 0x2B046AE1: mov dword ptr [0x2b0eeaa0], eax */ 2112 ecx = MEM32(ebp + (-0xC)); /* 0x2B046AE6: mov ecx, dword ptr [ebp - 0xc] */ 2113 MEM32(FS_BASE + (0)) = ecx; /* 0x2B046AE9: mov dword ptr fs:[0], ecx */ 2114 esp = ebp; /* 0x2B046AF0: mov esp, ebp */ 2115 ebp = POP32_VAL(esp); /* 0x2B046AF2: pop ebp */ 2116 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046AF3: ret */ 2117 L_2B046AF4: 2118 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2119 eax = 0; /* 0x2B046AF4: xor eax, eax */ 2120 _cf = 0; 2121 _flag_k = FK_TEST; 2122 MEM32(0x2B0EEAA0) = eax; /* 0x2B046AF6: mov dword ptr [0x2b0eeaa0], eax */ 2123 L_2B046AFB: 2124 ecx = MEM32(ebp + (-0xC)); /* 0x2B046AFB: mov ecx, dword ptr [ebp - 0xc] */ 2125 MEM32(FS_BASE + (0)) = ecx; /* 0x2B046AFE: mov dword ptr fs:[0], ecx */ 2126 esp = ebp; /* 0x2B046B05: mov esp, ebp */ 2127 ebp = POP32_VAL(esp); /* 0x2B046B07: pop ebp */ 2128 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046B08: ret */ 2129 RECOMP_REGS_OUT(); 2130 } 2131 2132 void sub_2B046B10(void) { 2133 int _fpu_cmp = 0; 2134 uint32_t _cf = 0; 2135 int _df = 1; 2136 uint32_t _flag_k = FK_NONE; 2137 uint32_t _flag_a = 0, _flag_b = 0; 2138 uint32_t _itail_tgt = 0; 2139 RECOMP_REGS_LOCALS 2140 RECOMP_ENTER(0x2B046B10u); 2141 2142 L_2B046B10: 2143 eax = MEM32(0x2B0EEAA0); /* 0x2B046B10: mov eax, dword ptr [0x2b0eeaa0] */ 2144 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046B15: ret */ 2145 RECOMP_REGS_OUT(); 2146 } 2147 2148 void sub_2B046B20(void) { 2149 int _fpu_cmp = 0; 2150 uint32_t _cf = 0; 2151 int _df = 1; 2152 uint32_t _flag_k = FK_NONE; 2153 uint32_t _flag_a = 0, _flag_b = 0; 2154 uint32_t _itail_tgt = 0; 2155 RECOMP_REGS_LOCALS 2156 RECOMP_ENTER(0x2B046B20u); 2157 2158 L_2B046B20: 2159 PUSH32(esp, ebp); /* 0x2B046B20: push ebp */ 2160 ebp = esp; /* 0x2B046B21: mov ebp, esp */ 2161 eax = ecx; /* 0x2B046B23: mov eax, ecx */ 2162 ecx = MEM32(ebp + 0x8); /* 0x2B046B25: mov ecx, dword ptr [ebp + 8] */ 2163 SET_LO8(edx, MEM8(ecx)); /* 0x2B046B28: mov dl, byte ptr [ecx] */ 2164 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x2B046B2A: mov byte ptr [eax], dl */ 2165 ebp = POP32_VAL(esp); /* 0x2B046B2C: pop ebp */ 2166 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B046B2D: ret 4 */ 2167 RECOMP_REGS_OUT(); 2168 } 2169 2170 void sub_2B046B30(void) { 2171 int _fpu_cmp = 0; 2172 uint32_t _cf = 0; 2173 int _df = 1; 2174 uint32_t _flag_k = FK_NONE; 2175 uint32_t _flag_a = 0, _flag_b = 0; 2176 uint32_t _itail_tgt = 0; 2177 RECOMP_REGS_LOCALS 2178 RECOMP_ENTER(0x2B046B30u); 2179 2180 L_2B046B30: 2181 PUSH32(esp, ebp); /* 0x2B046B30: push ebp */ 2182 ebp = esp; /* 0x2B046B31: mov ebp, esp */ 2183 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B046B33: push -1 */ 2184 PUSH32(esp, 0x2B0AF18Fu); /* 0x2B046B35: push 0x2b0af18f */ 2185 eax = MEM32(FS_BASE + (0)); /* 0x2B046B3A: mov eax, dword ptr fs:[0] */ 2186 PUSH32(esp, eax); /* 0x2B046B40: push eax */ 2187 MEM32(FS_BASE + (0)) = esp; /* 0x2B046B41: mov dword ptr fs:[0], esp */ 2188 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu); 2189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2190 esp = esp - 0x5Cu; /* 0x2B046B48: sub esp, 0x5c */ 2191 _flag_k = FK_CMP; 2192 PUSH32(esp, ebx); /* 0x2B046B4B: push ebx */ 2193 PUSH32(esp, esi); /* 0x2B046B4C: push esi */ 2194 esi = ecx; /* 0x2B046B4D: mov esi, ecx */ 2195 PUSH32(esp, edi); /* 0x2B046B4F: push edi */ 2196 MEM32(ebp + (-0x1C)) = esi; /* 0x2B046B50: mov dword ptr [ebp - 0x1c], esi */ 2197 RECOMP_ICALL(0x2B03A220u); /* 0x2B046B53: call 0x2b03a220 */ /* not lifted */ 2198 RECOMP_FLAGS_IN(); 2199 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2200 ebx = 0; /* 0x2B046B58: xor ebx, ebx */ 2201 _cf = 0; 2202 _flag_k = FK_TEST; 2203 MEM32(esi + 0x28) = ebx; /* 0x2B046B5A: mov dword ptr [esi + 0x28], ebx */ 2204 MEM32(esi + 0x30) = ebx; /* 0x2B046B5D: mov dword ptr [esi + 0x30], ebx */ 2205 MEM32(esi + 0x34) = ebx; /* 0x2B046B60: mov dword ptr [esi + 0x34], ebx */ 2206 MEM32(esi) = 0x2B0B6A18u; /* 0x2B046B63: mov dword ptr [esi], 0x2b0b6a18 */ 2207 eax = MEM32(0x2B0EE9CC); /* 0x2B046B69: mov eax, dword ptr [0x2b0ee9cc] */ 2208 MEM32(0x2B0EEA94) = esi; /* 0x2B046B6E: mov dword ptr [0x2b0eea94], esi */ 2209 MEM32(esi + 0x4) = eax; /* 0x2B046B74: mov dword ptr [esi + 4], eax */ 2210 ecx = MEM32(0x2B0EE9D0); /* 0x2B046B77: mov ecx, dword ptr [0x2b0ee9d0] */ 2211 PUSH32(esp, 0x38u); /* 0x2B046B7D: push 0x38 */ 2212 MEM32(ebp + (-0x4)) = ebx; /* 0x2B046B7F: mov dword ptr [ebp - 4], ebx */ 2213 MEM32(esi + 0x8) = ecx; /* 0x2B046B82: mov dword ptr [esi + 8], ecx */ 2214 MEM32(ebp + (-0x38)) = ebx; /* 0x2B046B85: mov dword ptr [ebp - 0x38], ebx */ 2215 MEM32(ebp + (-0x34)) = ebx; /* 0x2B046B88: mov dword ptr [ebp - 0x34], ebx */ 2216 RECOMP_ICALL(0x2B0AB212u); /* 0x2B046B8B: call 0x2b0ab212 */ /* not lifted */ 2217 RECOMP_FLAGS_IN(); 2218 edi = eax; /* 0x2B046B90: mov edi, eax */ 2219 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2221 esp = esp + 4; /* 0x2B046B92: add esp, 4 */ 2222 _flag_k = FK_ADD; 2223 MEM32(ebp + (-0x18)) = edi; /* 0x2B046B95: mov dword ptr [ebp - 0x18], edi */ 2224 /* cmp edi, ebx */ /* 0x2B046B98: cmp edi, ebx */ 2225 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2227 _flag_k = FK_CMP; 2228 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B046B9A: mov byte ptr [ebp - 4], 1 */ 2229 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046BC7; /* 0x2B046B9E: je 0x2b046bc7 */ 2230 L_2B046BA0: 2231 edx = MEM32(0x2B0EE9DC); /* 0x2B046BA0: mov edx, dword ptr [0x2b0ee9dc] */ 2232 PUSH32(esp, edx); /* 0x2B046BA6: push edx */ 2233 PUSH32(esp, 0xFA2u); /* 0x2B046BA7: push 0xfa2 */ 2234 PUSH32(esp, 0x123u); /* 0x2B046BAC: push 0x123 */ 2235 eax = ebp + (-0x38); /* 0x2B046BB1: lea eax, [ebp - 0x38] */ 2236 PUSH32(esp, eax); /* 0x2B046BB4: push eax */ 2237 ecx = edi; /* 0x2B046BB5: mov ecx, edi */ 2238 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B046BB7: call dword ptr [0x2b0b5948] */ 2239 RECOMP_FLAGS_IN(); 2240 MEM32(edi) = 0x2B0B68F4u; /* 0x2B046BBD: mov dword ptr [edi], 0x2b0b68f4 */ 2241 ecx = edi; /* 0x2B046BC3: mov ecx, edi */ 2242 goto L_2B046BC9; /* 0x2B046BC5: jmp 0x2b046bc9 */ 2243 L_2B046BC7: 2244 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2245 ecx = 0; /* 0x2B046BC7: xor ecx, ecx */ 2246 _cf = 0; 2247 _flag_k = FK_TEST; 2248 L_2B046BC9: 2249 edx = ebp + (-0x28); /* 0x2B046BC9: lea edx, [ebp - 0x28] */ 2250 PUSH32(esp, edx); /* 0x2B046BCC: push edx */ 2251 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B046BCD: mov byte ptr [ebp - 4], bl */ 2252 MEM32(esi + 0x28) = ecx; /* 0x2B046BD0: mov dword ptr [esi + 0x28], ecx */ 2253 MEM32(ebp + (-0x28)) = ebx; /* 0x2B046BD3: mov dword ptr [ebp - 0x28], ebx */ 2254 MEM32(ebp + (-0x24)) = ebx; /* 0x2B046BD6: mov dword ptr [ebp - 0x24], ebx */ 2255 RECOMP_ICALL(MEM32(0x2B0B594C)); /* 0x2B046BD9: call dword ptr [0x2b0b594c] */ 2256 RECOMP_FLAGS_IN(); 2257 eax = MEM32(esi + 0x28); /* 0x2B046BDF: mov eax, dword ptr [esi + 0x28] */ 2258 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B046BE2: mov byte ptr [eax + 8], bl */ 2259 eax = MEM32(esi + 0x28); /* 0x2B046BE5: mov eax, dword ptr [esi + 0x28] */ 2260 eax = MEM32(eax + 0x14); /* 0x2B046BE8: mov eax, dword ptr [eax + 0x14] */ 2261 /* cmp MEM8(esi + 0x1C), LO8(ebx) */ /* 0x2B046BEB: cmp byte ptr [esi + 0x1c], bl */ 2262 _flag_a = (uint32_t)(MEM8(esi + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2264 _flag_k = FK_NARROW(FK_CMP, 24); 2265 eax = MEM32(eax + 0x8); /* 0x2B046BEE: mov eax, dword ptr [eax + 8] */ 2266 MEM32(esi + 0x20) = eax; /* 0x2B046BF1: mov dword ptr [esi + 0x20], eax */ 2267 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046BFE; /* 0x2B046BF4: je 0x2b046bfe */ 2268 L_2B046BF6: 2269 /* cmp MEM8(esi + 0xC), LO8(ebx) */ /* 0x2B046BF6: cmp byte ptr [esi + 0xc], bl */ 2270 _flag_a = (uint32_t)(MEM8(esi + 0xC)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2272 _flag_k = FK_NARROW(FK_CMP, 24); 2273 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046BFE; /* 0x2B046BF9: je 0x2b046bfe */ 2274 L_2B046BFB: 2275 MEM32(esi + 0x18) = eax; /* 0x2B046BFB: mov dword ptr [esi + 0x18], eax */ 2276 L_2B046BFE: 2277 ecx = MEM32(ebp + (-0x24)); /* 0x2B046BFE: mov ecx, dword ptr [ebp - 0x24] */ 2278 MEM32(esi + 0x2C) = ecx; /* 0x2B046C01: mov dword ptr [esi + 0x2c], ecx */ 2279 ecx = 0xCu; /* 0x2B046C04: mov ecx, 0xc */ 2280 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2281 eax = 0; /* 0x2B046C09: xor eax, eax */ 2282 _cf = 0; 2283 _flag_k = FK_TEST; 2284 edi = ebp + (-0x68); /* 0x2B046C0B: lea edi, [ebp - 0x68] */ 2285 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B046C0E: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 2286 edx = esi + 0x38; /* 0x2B046C10: lea edx, [esi + 0x38] */ 2287 MEM32(ebp + (-0x68)) = 1; /* 0x2B046C13: mov dword ptr [ebp - 0x68], 1 */ 2288 MEM32(ebp + (-0x58)) = ebx; /* 0x2B046C1A: mov dword ptr [ebp - 0x58], ebx */ 2289 MEM32(ebp + (-0x54)) = ebx; /* 0x2B046C1D: mov dword ptr [ebp - 0x54], ebx */ 2290 MEM32(ebp + (-0x50)) = 0xFBEu; /* 0x2B046C20: mov dword ptr [ebp - 0x50], 0xfbe */ 2291 MEM32(ebp + (-0x30)) = ebx; /* 0x2B046C27: mov dword ptr [ebp - 0x30], ebx */ 2292 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B046C2A: mov dword ptr [ebp - 0x2c], ebx */ 2293 MEM32(ebp + (-0x14)) = ebx; /* 0x2B046C2D: mov dword ptr [ebp - 0x14], ebx */ 2294 edi = 0x2B0E75CCu; /* 0x2B046C30: mov edi, 0x2b0e75cc */ 2295 MEM32(ebp + (-0x10)) = edx; /* 0x2B046C35: mov dword ptr [ebp - 0x10], edx */ 2296 L_2B046C38: 2297 eax = MEM32(edi + (-0x4)); /* 0x2B046C38: mov eax, dword ptr [edi - 4] */ 2298 ecx = MEM32(edi); /* 0x2B046C3B: mov ecx, dword ptr [edi] */ 2299 edx = MEM32(edi + 0x4); /* 0x2B046C3D: mov edx, dword ptr [edi + 4] */ 2300 PUSH32(esp, 0xBCu); /* 0x2B046C40: push 0xbc */ 2301 MEM32(ebp + (-0x48)) = eax; /* 0x2B046C45: mov dword ptr [ebp - 0x48], eax */ 2302 MEM32(ebp + (-0x44)) = ecx; /* 0x2B046C48: mov dword ptr [ebp - 0x44], ecx */ 2303 MEM32(ebp + (-0x5C)) = edx; /* 0x2B046C4B: mov dword ptr [ebp - 0x5c], edx */ 2304 RECOMP_ICALL(0x2B0AB212u); /* 0x2B046C4E: call 0x2b0ab212 */ /* not lifted */ 2305 RECOMP_FLAGS_IN(); 2306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2308 esp = esp + 4; /* 0x2B046C53: add esp, 4 */ 2309 _flag_k = FK_ADD; 2310 MEM32(ebp + (-0x18)) = eax; /* 0x2B046C56: mov dword ptr [ebp - 0x18], eax */ 2311 /* cmp eax, ebx */ /* 0x2B046C59: cmp eax, ebx */ 2312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2314 _flag_k = FK_CMP; 2315 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B046C5B: mov byte ptr [ebp - 4], 2 */ 2316 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046C7F; /* 0x2B046C5F: je 0x2b046c7f */ 2317 L_2B046C61: 2318 ecx = MEM32(0x2B0EE9DC); /* 0x2B046C61: mov ecx, dword ptr [0x2b0ee9dc] */ 2319 PUSH32(esp, ecx); /* 0x2B046C67: push ecx */ 2320 edx = ebp + (-0x68); /* 0x2B046C68: lea edx, [ebp - 0x68] */ 2321 PUSH32(esp, edx); /* 0x2B046C6B: push edx */ 2322 ecx = eax; /* 0x2B046C6C: mov ecx, eax */ 2323 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B046C6E: call dword ptr [0x2b0b5afc] */ 2324 RECOMP_FLAGS_IN(); 2325 ecx = MEM32(ebp + (-0x18)); /* 0x2B046C74: mov ecx, dword ptr [ebp - 0x18] */ 2326 MEM32(ecx) = 0x2B0B645Cu; /* 0x2B046C77: mov dword ptr [ecx], 0x2b0b645c */ 2327 goto L_2B046C81; /* 0x2B046C7D: jmp 0x2b046c81 */ 2328 L_2B046C7F: 2329 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2330 ecx = 0; /* 0x2B046C7F: xor ecx, ecx */ 2331 _cf = 0; 2332 _flag_k = FK_TEST; 2333 L_2B046C81: 2334 eax = MEM32(ebp + (-0x10)); /* 0x2B046C81: mov eax, dword ptr [ebp - 0x10] */ 2335 PUSH32(esp, 0x2B0E7710u); /* 0x2B046C84: push 0x2b0e7710 */ 2336 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B046C89: mov byte ptr [ebp - 4], bl */ 2337 MEM32(eax) = ecx; /* 0x2B046C8C: mov dword ptr [eax], ecx */ 2338 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B046C8E: call dword ptr [0x2b0b5c04] */ 2339 RECOMP_FLAGS_IN(); 2340 ecx = MEM32(ebp + (-0x14)); /* 0x2B046C94: mov ecx, dword ptr [ebp - 0x14] */ 2341 edx = MEM32(ebp + (-0x10)); /* 0x2B046C97: mov edx, dword ptr [ebp - 0x10] */ 2342 PUSH32(esp, ecx); /* 0x2B046C9A: push ecx */ 2343 ecx = MEM32(edx); /* 0x2B046C9B: mov ecx, dword ptr [edx] */ 2344 PUSH32(esp, 0x2B047080u); /* 0x2B046C9D: push 0x2b047080 */ 2345 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B046CA2: call dword ptr [0x2b0b5820] */ 2346 RECOMP_FLAGS_IN(); 2347 eax = MEM32(edi + 0x8); /* 0x2B046CA8: mov eax, dword ptr [edi + 8] */ 2348 MEM32(ebp + (-0x2C)) = eax; /* 0x2B046CAB: mov dword ptr [ebp - 0x2c], eax */ 2349 eax = MEM32(0x2B0B58EC); /* 0x2B046CAE: mov eax, dword ptr [0x2b0b58ec] */ 2350 /* cmp MEM32(eax), ebx */ /* 0x2B046CB3: cmp dword ptr [eax], ebx */ 2351 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 2352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2353 _flag_k = FK_CMP; 2354 if (CMP_NE(_flag_a, _flag_b)) goto L_2B046CE3; /* 0x2B046CB5: jne 0x2b046ce3 */ 2355 L_2B046CB7: 2356 PUSH32(esp, 8); /* 0x2B046CB7: push 8 */ 2357 RECOMP_ICALL(0x2B0AB212u); /* 0x2B046CB9: call 0x2b0ab212 */ /* not lifted */ 2358 RECOMP_FLAGS_IN(); 2359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2361 esp = esp + 4; /* 0x2B046CBE: add esp, 4 */ 2362 _flag_k = FK_ADD; 2363 MEM32(ebp + (-0x18)) = eax; /* 0x2B046CC1: mov dword ptr [ebp - 0x18], eax */ 2364 /* cmp eax, ebx */ /* 0x2B046CC4: cmp eax, ebx */ 2365 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2367 _flag_k = FK_CMP; 2368 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B046CC6: mov byte ptr [ebp - 4], 3 */ 2369 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046CD6; /* 0x2B046CCA: je 0x2b046cd6 */ 2370 L_2B046CCC: 2371 ecx = eax; /* 0x2B046CCC: mov ecx, eax */ 2372 RECOMP_ICALL(MEM32(0x2B0B58F0)); /* 0x2B046CCE: call dword ptr [0x2b0b58f0] */ 2373 RECOMP_FLAGS_IN(); 2374 goto L_2B046CD8; /* 0x2B046CD4: jmp 0x2b046cd8 */ 2375 L_2B046CD6: 2376 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2377 eax = 0; /* 0x2B046CD6: xor eax, eax */ 2378 _cf = 0; 2379 _flag_k = FK_TEST; 2380 L_2B046CD8: 2381 ecx = MEM32(0x2B0B58EC); /* 0x2B046CD8: mov ecx, dword ptr [0x2b0b58ec] */ 2382 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B046CDE: mov byte ptr [ebp - 4], bl */ 2383 MEM32(ecx) = eax; /* 0x2B046CE1: mov dword ptr [ecx], eax */ 2384 L_2B046CE3: 2385 edx = MEM32(0x2B0B58EC); /* 0x2B046CE3: mov edx, dword ptr [0x2b0b58ec] */ 2386 eax = MEM32(edi + 0x8); /* 0x2B046CE9: mov eax, dword ptr [edi + 8] */ 2387 ecx = MEM32(edx); /* 0x2B046CEC: mov ecx, dword ptr [edx] */ 2388 PUSH32(esp, eax); /* 0x2B046CEE: push eax */ 2389 edx = ebp + (-0x30); /* 0x2B046CEF: lea edx, [ebp - 0x30] */ 2390 PUSH32(esp, edx); /* 0x2B046CF2: push edx */ 2391 RECOMP_ICALL(MEM32(0x2B0B58F4)); /* 0x2B046CF3: call dword ptr [0x2b0b58f4] */ 2392 RECOMP_FLAGS_IN(); 2393 PUSH32(esp, 0x64u); /* 0x2B046CF9: push 0x64 */ 2394 MEM32(ebp + (-0x18)) = eax; /* 0x2B046CFB: mov dword ptr [ebp - 0x18], eax */ 2395 RECOMP_ICALL(0x2B0AB212u); /* 0x2B046CFE: call 0x2b0ab212 */ /* not lifted */ 2396 RECOMP_FLAGS_IN(); 2397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2399 esp = esp + 4; /* 0x2B046D03: add esp, 4 */ 2400 _flag_k = FK_ADD; 2401 MEM32(ebp + (-0x20)) = eax; /* 0x2B046D06: mov dword ptr [ebp - 0x20], eax */ 2402 /* cmp eax, ebx */ /* 0x2B046D09: cmp eax, ebx */ 2403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2405 _flag_k = FK_CMP; 2406 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B046D0B: mov byte ptr [ebp - 4], 4 */ 2407 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046D43; /* 0x2B046D0F: je 0x2b046d43 */ 2408 L_2B046D11: 2409 ecx = MEM32(0x2B0EE9DC); /* 0x2B046D11: mov ecx, dword ptr [0x2b0ee9dc] */ 2410 edx = MEM32(ebp + (-0x18)); /* 0x2B046D17: mov edx, dword ptr [ebp - 0x18] */ 2411 PUSH32(esp, ecx); /* 0x2B046D1A: push ecx */ 2412 PUSH32(esp, edx); /* 0x2B046D1B: push edx */ 2413 PUSH32(esp, 0x20u); /* 0x2B046D1C: push 0x20 */ 2414 PUSH32(esp, 2); /* 0x2B046D1E: push 2 */ 2415 PUSH32(esp, 0xFAEu); /* 0x2B046D20: push 0xfae */ 2416 PUSH32(esp, 0x74u); /* 0x2B046D25: push 0x74 */ 2417 PUSH32(esp, ebx); /* 0x2B046D27: push ebx */ 2418 PUSH32(esp, 0xAAu); /* 0x2B046D28: push 0xaa */ 2419 PUSH32(esp, 0x28u); /* 0x2B046D2D: push 0x28 */ 2420 PUSH32(esp, 0x2Du); /* 0x2B046D2F: push 0x2d */ 2421 PUSH32(esp, 3); /* 0x2B046D31: push 3 */ 2422 PUSH32(esp, 4); /* 0x2B046D33: push 4 */ 2423 ecx = ebp + (-0x38); /* 0x2B046D35: lea ecx, [ebp - 0x38] */ 2424 PUSH32(esp, ecx); /* 0x2B046D38: push ecx */ 2425 ecx = eax; /* 0x2B046D39: mov ecx, eax */ 2426 RECOMP_ICALL(MEM32(0x2B0B58F8)); /* 0x2B046D3B: call dword ptr [0x2b0b58f8] */ 2427 RECOMP_FLAGS_IN(); 2428 goto L_2B046D45; /* 0x2B046D41: jmp 0x2b046d45 */ 2429 L_2B046D43: 2430 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2431 eax = 0; /* 0x2B046D43: xor eax, eax */ 2432 _cf = 0; 2433 _flag_k = FK_TEST; 2434 L_2B046D45: 2435 ecx = MEM32(ebp + (-0x10)); /* 0x2B046D45: mov ecx, dword ptr [ebp - 0x10] */ 2436 edx = MEM32(ebp + (-0x14)); /* 0x2B046D48: mov edx, dword ptr [ebp - 0x14] */ 2437 MEM32(ecx + 0x4) = eax; /* 0x2B046D4B: mov dword ptr [ecx + 4], eax */ 2438 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2439 edx = edx + 1; /* 0x2B046D4E: inc edx */ 2440 _flag_k = FK_INC; 2441 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u); 2442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2443 edi = edi + 0x18u; /* 0x2B046D4F: add edi, 0x18 */ 2444 _flag_k = FK_ADD; 2445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2447 ecx = ecx + 8; /* 0x2B046D52: add ecx, 8 */ 2448 _flag_k = FK_ADD; 2449 /* cmp edi, 0x2B0E765Cu */ /* 0x2B046D55: cmp edi, 0x2b0e765c */ 2450 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x2B0E765Cu); 2451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2452 _flag_k = FK_CMP; 2453 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B046D5B: mov byte ptr [ebp - 4], bl */ 2454 MEM32(eax + 0x5C) = 0x2B048850u; /* 0x2B046D5E: mov dword ptr [eax + 0x5c], 0x2b048850 */ 2455 MEM32(eax + 0x60) = esi; /* 0x2B046D65: mov dword ptr [eax + 0x60], esi */ 2456 MEM32(ebp + (-0x14)) = edx; /* 0x2B046D68: mov dword ptr [ebp - 0x14], edx */ 2457 MEM32(ebp + (-0x10)) = ecx; /* 0x2B046D6B: mov dword ptr [ebp - 0x10], ecx */ 2458 RECOMP_BACKEDGE(); 2459 if (CMP_L(_flag_a, _flag_b)) goto L_2B046C38; /* 0x2B046D6E: jl 0x2b046c38 */ 2460 L_2B046D74: 2461 ecx = MEM32(esi + 0x60); /* 0x2B046D74: mov ecx, dword ptr [esi + 0x60] */ 2462 PUSH32(esp, 2); /* 0x2B046D77: push 2 */ 2463 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B046D79: call dword ptr [0x2b0b5ab4] */ 2464 RECOMP_FLAGS_IN(); 2465 PUSH32(esp, 5); /* 0x2B046D7F: push 5 */ 2466 ecx = esi; /* 0x2B046D81: mov ecx, esi */ 2467 RECOMP_ICALL(0x2B0470E0u); /* 0x2B046D83: call 0x2b0470e0 */ /* not lifted */ 2468 RECOMP_FLAGS_IN(); 2469 edx = MEM32(esi + 0x2C); /* 0x2B046D88: mov edx, dword ptr [esi + 0x2c] */ 2470 PUSH32(esp, 0x70u); /* 0x2B046D8B: push 0x70 */ 2471 MEM32(ebp + (-0x18)) = edx; /* 0x2B046D8D: mov dword ptr [ebp - 0x18], edx */ 2472 RECOMP_ICALL(0x2B0AB212u); /* 0x2B046D90: call 0x2b0ab212 */ /* not lifted */ 2473 RECOMP_FLAGS_IN(); 2474 edi = eax; /* 0x2B046D95: mov edi, eax */ 2475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2477 esp = esp + 4; /* 0x2B046D97: add esp, 4 */ 2478 _flag_k = FK_ADD; 2479 MEM32(ebp + (-0x20)) = edi; /* 0x2B046D9A: mov dword ptr [ebp - 0x20], edi */ 2480 /* cmp edi, ebx */ /* 0x2B046D9D: cmp edi, ebx */ 2481 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2483 _flag_k = FK_CMP; 2484 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B046D9F: mov byte ptr [ebp - 4], 5 */ 2485 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B046DE3; /* 0x2B046DA3: je 0x2b046de3 */ 2486 L_2B046DA5: 2487 eax = MEM32(0x2B0EE9DC); /* 0x2B046DA5: mov eax, dword ptr [0x2b0ee9dc] */ 2488 edx = MEM32(ebp + (-0x18)); /* 0x2B046DAA: mov edx, dword ptr [ebp - 0x18] */ 2489 PUSH32(esp, eax); /* 0x2B046DAD: push eax */ 2490 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B046DAE: push -1 */ 2491 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B046DB0: push -1 */ 2492 PUSH32(esp, 0xBu); /* 0x2B046DB2: push 0xb */ 2493 PUSH32(esp, ebx); /* 0x2B046DB4: push ebx */ 2494 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2496 esp = esp - 0x10u; /* 0x2B046DB5: sub esp, 0x10 */ 2497 _flag_k = FK_CMP; 2498 ecx = esp; /* 0x2B046DB8: mov ecx, esp */ 2499 MEM32(ecx) = ebx; /* 0x2B046DBA: mov dword ptr [ecx], ebx */ 2500 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2501 eax = 0; /* 0x2B046DBC: xor eax, eax */ 2502 _cf = 0; 2503 _flag_k = FK_TEST; 2504 MEM32(ecx + 0x4) = eax; /* 0x2B046DBE: mov dword ptr [ecx + 4], eax */ 2505 eax = 0xC0u; /* 0x2B046DC1: mov eax, 0xc0 */ 2506 PUSH32(esp, 0xFAFu); /* 0x2B046DC6: push 0xfaf */ 2507 MEM32(ecx + 0x8) = eax; /* 0x2B046DCB: mov dword ptr [ecx + 8], eax */ 2508 PUSH32(esp, ebx); /* 0x2B046DCE: push ebx */ 2509 MEM32(ecx + 0xC) = edx; /* 0x2B046DCF: mov dword ptr [ecx + 0xc], edx */ 2510 PUSH32(esp, ebx); /* 0x2B046DD2: push ebx */ 2511 ecx = edi; /* 0x2B046DD3: mov ecx, edi */ 2512 RECOMP_ICALL(MEM32(0x2B0B5C00)); /* 0x2B046DD5: call dword ptr [0x2b0b5c00] */ 2513 RECOMP_FLAGS_IN(); 2514 MEM32(edi) = 0x2B0B6164u; /* 0x2B046DDB: mov dword ptr [edi], 0x2b0b6164 */ 2515 goto L_2B046DE5; /* 0x2B046DE1: jmp 0x2b046de5 */ 2516 L_2B046DE3: 2517 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2518 edi = 0; /* 0x2B046DE3: xor edi, edi */ 2519 _cf = 0; 2520 _flag_k = FK_TEST; 2521 L_2B046DE5: 2522 MEM32(esi + 0x34) = edi; /* 0x2B046DE5: mov dword ptr [esi + 0x34], edi */ 2523 MEM8(edi + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B046DE8: mov byte ptr [edi + 8], bl */ 2524 ecx = MEM32(esi + 0x34); /* 0x2B046DEB: mov ecx, dword ptr [esi + 0x34] */ 2525 PUSH32(esp, 0x2B0E7710u); /* 0x2B046DEE: push 0x2b0e7710 */ 2526 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B046DF3: mov byte ptr [ebp - 4], bl */ 2527 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B046DF6: call dword ptr [0x2b0b5c04] */ 2528 RECOMP_FLAGS_IN(); 2529 PUSH32(esp, 0x2B0E7704u); /* 0x2B046DFC: push 0x2b0e7704 */ 2530 PUSH32(esp, 1); /* 0x2B046E01: push 1 */ 2531 ecx = esi; /* 0x2B046E03: mov ecx, esi */ 2532 RECOMP_ICALL(0x2B03A2D0u); /* 0x2B046E05: call 0x2b03a2d0 */ /* not lifted */ 2533 RECOMP_FLAGS_IN(); 2534 ecx = esi; /* 0x2B046E0A: mov ecx, esi */ 2535 RECOMP_ICALL(0x2B047040u); /* 0x2B046E0C: call 0x2b047040 */ /* not lifted */ 2536 RECOMP_FLAGS_IN(); 2537 PUSH32(esp, ebx); /* 0x2B046E11: push ebx */ 2538 ecx = esi; /* 0x2B046E12: mov ecx, esi */ 2539 RECOMP_ICALL(0x2B03A350u); /* 0x2B046E14: call 0x2b03a350 */ /* not lifted */ 2540 RECOMP_FLAGS_IN(); 2541 ecx = MEM32(0x2B0EE9F0); /* 0x2B046E19: mov ecx, dword ptr [0x2b0ee9f0] */ 2542 PUSH32(esp, 0x2B0E76F4u); /* 0x2B046E1F: push 0x2b0e76f4 */ 2543 PUSH32(esp, 0x2B0E7704u); /* 0x2B046E24: push 0x2b0e7704 */ 2544 PUSH32(esp, 0xBu); /* 0x2B046E29: push 0xb */ 2545 PUSH32(esp, 0x131u); /* 0x2B046E2B: push 0x131 */ 2546 PUSH32(esp, 0x130u); /* 0x2B046E30: push 0x130 */ 2547 PUSH32(esp, esi); /* 0x2B046E35: push esi */ 2548 RECOMP_ICALL(0x2B03BF90u); /* 0x2B046E36: call 0x2b03bf90 */ /* not lifted */ 2549 RECOMP_FLAGS_IN(); 2550 ecx = MEM32(ebp + (-0xC)); /* 0x2B046E3B: mov ecx, dword ptr [ebp - 0xc] */ 2551 edi = POP32_VAL(esp); /* 0x2B046E3E: pop edi */ 2552 eax = esi; /* 0x2B046E3F: mov eax, esi */ 2553 esi = POP32_VAL(esp); /* 0x2B046E41: pop esi */ 2554 MEM32(FS_BASE + (0)) = ecx; /* 0x2B046E42: mov dword ptr fs:[0], ecx */ 2555 ebx = POP32_VAL(esp); /* 0x2B046E49: pop ebx */ 2556 esp = ebp; /* 0x2B046E4A: mov esp, ebp */ 2557 ebp = POP32_VAL(esp); /* 0x2B046E4C: pop ebp */ 2558 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046E4D: ret */ 2559 RECOMP_REGS_OUT(); 2560 } 2561 2562 void sub_2B046E50(void) { 2563 int _fpu_cmp = 0; 2564 uint32_t _cf = 0; 2565 int _df = 1; 2566 uint32_t _flag_k = FK_NONE; 2567 uint32_t _flag_a = 0, _flag_b = 0; 2568 uint32_t _itail_tgt = 0; 2569 RECOMP_REGS_LOCALS 2570 RECOMP_ENTER(0x2B046E50u); 2571 2572 L_2B046E50: 2573 PUSH32(esp, ebp); /* 0x2B046E50: push ebp */ 2574 ebp = esp; /* 0x2B046E51: mov ebp, esp */ 2575 PUSH32(esp, esi); /* 0x2B046E53: push esi */ 2576 esi = ecx; /* 0x2B046E54: mov esi, ecx */ 2577 RECOMP_ICALL(0x2B046E80u); /* 0x2B046E56: call 0x2b046e80 */ /* not lifted */ 2578 RECOMP_FLAGS_IN(); 2579 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B046E5B: test byte ptr [ebp + 8], 1 */ 2580 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2581 _cf = 0; 2582 _flag_k = FK_NARROW(FK_TEST, 24); 2583 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046E6A; /* 0x2B046E5F: je 0x2b046e6a */ 2584 L_2B046E61: 2585 PUSH32(esp, esi); /* 0x2B046E61: push esi */ 2586 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B046E62: call 0x2b0ab1ba */ /* not lifted */ 2587 RECOMP_FLAGS_IN(); 2588 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2590 esp = esp + 4; /* 0x2B046E67: add esp, 4 */ 2591 _flag_k = FK_ADD; 2592 L_2B046E6A: 2593 eax = esi; /* 0x2B046E6A: mov eax, esi */ 2594 esi = POP32_VAL(esp); /* 0x2B046E6C: pop esi */ 2595 ebp = POP32_VAL(esp); /* 0x2B046E6D: pop ebp */ 2596 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B046E6E: ret 4 */ 2597 RECOMP_REGS_OUT(); 2598 } 2599 2600 void sub_2B046E80(void) { 2601 int _fpu_cmp = 0; 2602 uint32_t _cf = 0; 2603 int _df = 1; 2604 uint32_t _flag_k = FK_NONE; 2605 uint32_t _flag_a = 0, _flag_b = 0; 2606 uint32_t _itail_tgt = 0; 2607 RECOMP_REGS_LOCALS 2608 RECOMP_ENTER(0x2B046E80u); 2609 2610 L_2B046E80: 2611 PUSH32(esp, ebp); /* 0x2B046E80: push ebp */ 2612 ebp = esp; /* 0x2B046E81: mov ebp, esp */ 2613 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B046E83: push -1 */ 2614 PUSH32(esp, 0x2B0AF1A8u); /* 0x2B046E85: push 0x2b0af1a8 */ 2615 eax = MEM32(FS_BASE + (0)); /* 0x2B046E8A: mov eax, dword ptr fs:[0] */ 2616 PUSH32(esp, eax); /* 0x2B046E90: push eax */ 2617 MEM32(FS_BASE + (0)) = esp; /* 0x2B046E91: mov dword ptr fs:[0], esp */ 2618 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2620 esp = esp - 8; /* 0x2B046E98: sub esp, 8 */ 2621 _flag_k = FK_CMP; 2622 PUSH32(esp, ebx); /* 0x2B046E9B: push ebx */ 2623 ebx = ecx; /* 0x2B046E9C: mov ebx, ecx */ 2624 PUSH32(esp, esi); /* 0x2B046E9E: push esi */ 2625 PUSH32(esp, edi); /* 0x2B046E9F: push edi */ 2626 MEM32(ebp + (-0x14)) = ebx; /* 0x2B046EA0: mov dword ptr [ebp - 0x14], ebx */ 2627 MEM32(ebx) = 0x2B0B6A18u; /* 0x2B046EA3: mov dword ptr [ebx], 0x2b0b6a18 */ 2628 MEM32(ebp + (-0x4)) = 0; /* 0x2B046EA9: mov dword ptr [ebp - 4], 0 */ 2629 esi = ebx + 0x3C; /* 0x2B046EB0: lea esi, [ebx + 0x3c] */ 2630 MEM32(ebp + (-0x10)) = 6; /* 0x2B046EB3: mov dword ptr [ebp - 0x10], 6 */ 2631 L_2B046EBA: 2632 ecx = MEM32(esi + (-0x4)); /* 0x2B046EBA: mov ecx, dword ptr [esi - 4] */ 2633 /* test ecx, ecx */ /* 0x2B046EBD: test ecx, ecx */ 2634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2635 _cf = 0; 2636 _flag_k = FK_TEST; 2637 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046EC7; /* 0x2B046EBF: je 0x2b046ec7 */ 2638 L_2B046EC1: 2639 eax = MEM32(ecx); /* 0x2B046EC1: mov eax, dword ptr [ecx] */ 2640 PUSH32(esp, 1); /* 0x2B046EC3: push 1 */ 2641 RECOMP_ICALL(MEM32(eax)); /* 0x2B046EC5: call dword ptr [eax] */ 2642 RECOMP_FLAGS_IN(); 2643 L_2B046EC7: 2644 edi = MEM32(esi); /* 0x2B046EC7: mov edi, dword ptr [esi] */ 2645 /* test edi, edi */ /* 0x2B046EC9: test edi, edi */ 2646 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2647 _cf = 0; 2648 _flag_k = FK_TEST; 2649 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046EDE; /* 0x2B046ECB: je 0x2b046ede */ 2650 L_2B046ECD: 2651 ecx = edi; /* 0x2B046ECD: mov ecx, edi */ 2652 RECOMP_ICALL(MEM32(0x2B0B58E8)); /* 0x2B046ECF: call dword ptr [0x2b0b58e8] */ 2653 RECOMP_FLAGS_IN(); 2654 PUSH32(esp, edi); /* 0x2B046ED5: push edi */ 2655 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B046ED6: call 0x2b0ab1ba */ /* not lifted */ 2656 RECOMP_FLAGS_IN(); 2657 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2658 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2659 esp = esp + 4; /* 0x2B046EDB: add esp, 4 */ 2660 _flag_k = FK_ADD; 2661 L_2B046EDE: 2662 eax = MEM32(ebp + (-0x10)); /* 0x2B046EDE: mov eax, dword ptr [ebp - 0x10] */ 2663 MEM32(esi + (-0x4)) = 0; /* 0x2B046EE1: mov dword ptr [esi - 4], 0 */ 2664 MEM32(esi) = 0; /* 0x2B046EE8: mov dword ptr [esi], 0 */ 2665 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 2666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2667 esi = esi + 8; /* 0x2B046EEE: add esi, 8 */ 2668 _flag_k = FK_ADD; 2669 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2670 eax = eax - 1; /* 0x2B046EF1: dec eax */ 2671 _flag_k = FK_DEC; 2672 MEM32(ebp + (-0x10)) = eax; /* 0x2B046EF2: mov dword ptr [ebp - 0x10], eax */ 2673 RECOMP_BACKEDGE(); 2674 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B046EBA; /* 0x2B046EF5: jne 0x2b046eba */ 2675 L_2B046EF7: 2676 ecx = MEM32(ebx + 0x34); /* 0x2B046EF7: mov ecx, dword ptr [ebx + 0x34] */ 2677 /* test ecx, ecx */ /* 0x2B046EFA: test ecx, ecx */ 2678 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2679 _cf = 0; 2680 _flag_k = FK_TEST; 2681 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046F04; /* 0x2B046EFC: je 0x2b046f04 */ 2682 L_2B046EFE: 2683 edx = MEM32(ecx); /* 0x2B046EFE: mov edx, dword ptr [ecx] */ 2684 PUSH32(esp, 1); /* 0x2B046F00: push 1 */ 2685 RECOMP_ICALL(MEM32(edx)); /* 0x2B046F02: call dword ptr [edx] */ 2686 RECOMP_FLAGS_IN(); 2687 L_2B046F04: 2688 ecx = MEM32(ebx + 0x28); /* 0x2B046F04: mov ecx, dword ptr [ebx + 0x28] */ 2689 /* test ecx, ecx */ /* 0x2B046F07: test ecx, ecx */ 2690 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2691 _cf = 0; 2692 _flag_k = FK_TEST; 2693 if (TEST_Z(_flag_a, _flag_b)) goto L_2B046F11; /* 0x2B046F09: je 0x2b046f11 */ 2694 L_2B046F0B: 2695 eax = MEM32(ecx); /* 0x2B046F0B: mov eax, dword ptr [ecx] */ 2696 PUSH32(esp, 1); /* 0x2B046F0D: push 1 */ 2697 RECOMP_ICALL(MEM32(eax)); /* 0x2B046F0F: call dword ptr [eax] */ 2698 RECOMP_FLAGS_IN(); 2699 L_2B046F11: 2700 ecx = ebx; /* 0x2B046F11: mov ecx, ebx */ 2701 MEM32(0x2B0EEA94) = 0; /* 0x2B046F13: mov dword ptr [0x2b0eea94], 0 */ 2702 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B046F1D: mov dword ptr [ebp - 4], 0xffffffff */ 2703 RECOMP_ICALL(0x2B03A290u); /* 0x2B046F24: call 0x2b03a290 */ /* not lifted */ 2704 RECOMP_FLAGS_IN(); 2705 ecx = MEM32(ebp + (-0xC)); /* 0x2B046F29: mov ecx, dword ptr [ebp - 0xc] */ 2706 edi = POP32_VAL(esp); /* 0x2B046F2C: pop edi */ 2707 esi = POP32_VAL(esp); /* 0x2B046F2D: pop esi */ 2708 ebx = POP32_VAL(esp); /* 0x2B046F2E: pop ebx */ 2709 MEM32(FS_BASE + (0)) = ecx; /* 0x2B046F2F: mov dword ptr fs:[0], ecx */ 2710 esp = ebp; /* 0x2B046F36: mov esp, ebp */ 2711 ebp = POP32_VAL(esp); /* 0x2B046F38: pop ebp */ 2712 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046F39: ret */ 2713 RECOMP_REGS_OUT(); 2714 } 2715 2716 void sub_2B046F40(void) { 2717 int _fpu_cmp = 0; 2718 uint32_t _cf = 0; 2719 int _df = 1; 2720 uint32_t _flag_k = FK_NONE; 2721 uint32_t _flag_a = 0, _flag_b = 0; 2722 uint32_t _itail_tgt = 0; 2723 RECOMP_REGS_LOCALS 2724 RECOMP_ENTER(0x2B046F40u); 2725 2726 L_2B046F40: 2727 PUSH32(esp, ebp); /* 0x2B046F40: push ebp */ 2728 ebp = esp; /* 0x2B046F41: mov ebp, esp */ 2729 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2731 esp = esp - 8; /* 0x2B046F43: sub esp, 8 */ 2732 _flag_k = FK_CMP; 2733 PUSH32(esp, ebx); /* 0x2B046F46: push ebx */ 2734 PUSH32(esp, esi); /* 0x2B046F47: push esi */ 2735 esi = ecx; /* 0x2B046F48: mov esi, ecx */ 2736 ecx = MEM32(esi + 0x8); /* 0x2B046F4A: mov ecx, dword ptr [esi + 8] */ 2737 eax = MEM32(esi + 0x4); /* 0x2B046F4D: mov eax, dword ptr [esi + 4] */ 2738 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 2739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2740 ecx = ecx + 0x14u; /* 0x2B046F50: add ecx, 0x14 */ 2741 _flag_k = FK_ADD; 2742 MEM32(ebp + (-0x8)) = eax; /* 0x2B046F53: mov dword ptr [ebp - 8], eax */ 2743 MEM32(ebp + (-0x4)) = ecx; /* 0x2B046F56: mov dword ptr [ebp - 4], ecx */ 2744 ecx = MEM32(esi + 0x34); /* 0x2B046F59: mov ecx, dword ptr [esi + 0x34] */ 2745 edx = MEM32(ecx); /* 0x2B046F5C: mov edx, dword ptr [ecx] */ 2746 PUSH32(esp, edi); /* 0x2B046F5E: push edi */ 2747 eax = ebp + (-0x8); /* 0x2B046F5F: lea eax, [ebp - 8] */ 2748 PUSH32(esp, eax); /* 0x2B046F62: push eax */ 2749 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B046F63: call dword ptr [edx + 0x14] */ 2750 RECOMP_FLAGS_IN(); 2751 ecx = ebp + (-0x8); /* 0x2B046F66: lea ecx, [ebp - 8] */ 2752 PUSH32(esp, ecx); /* 0x2B046F69: push ecx */ 2753 ecx = MEM32(esi + 0x28); /* 0x2B046F6A: mov ecx, dword ptr [esi + 0x28] */ 2754 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B046F6D: call dword ptr [0x2b0b5940] */ 2755 RECOMP_FLAGS_IN(); 2756 edx = MEM32(esi + 0x28); /* 0x2B046F73: mov edx, dword ptr [esi + 0x28] */ 2757 MEM8(edx + 0x9) = (uint8_t)(1); /* 0x2B046F76: mov byte ptr [edx + 9], 1 */ 2758 edi = 0x2B0E75C0u; /* 0x2B046F7A: mov edi, 0x2b0e75c0 */ 2759 ebx = esi + 0x38; /* 0x2B046F7F: lea ebx, [esi + 0x38] */ 2760 L_2B046F82: 2761 eax = MEM32(edi + 0x4); /* 0x2B046F82: mov eax, dword ptr [edi + 4] */ 2762 ecx = MEM32(esi + 0x8); /* 0x2B046F85: mov ecx, dword ptr [esi + 8] */ 2763 edx = eax + ecx + 0x14; /* 0x2B046F88: lea edx, [eax + ecx + 0x14] */ 2764 eax = MEM32(edi); /* 0x2B046F8C: mov eax, dword ptr [edi] */ 2765 ecx = MEM32(ebx); /* 0x2B046F8E: mov ecx, dword ptr [ebx] */ 2766 PUSH32(esp, edx); /* 0x2B046F90: push edx */ 2767 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2769 eax = eax + MEM32(esi + 0x4); /* 0x2B046F91: add eax, dword ptr [esi + 4] */ 2770 _flag_k = FK_ADD; 2771 PUSH32(esp, eax); /* 0x2B046F94: push eax */ 2772 RECOMP_ICALL(MEM32(0x2B0B581C)); /* 0x2B046F95: call dword ptr [0x2b0b581c] */ 2773 RECOMP_FLAGS_IN(); 2774 ecx = MEM32(ebx); /* 0x2B046F9B: mov ecx, dword ptr [ebx] */ 2775 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B046F9D: call dword ptr [0x2b0b5960] */ 2776 RECOMP_FLAGS_IN(); 2777 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u); 2778 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2779 edi = edi + 0x18u; /* 0x2B046FA3: add edi, 0x18 */ 2780 _flag_k = FK_ADD; 2781 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 2782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2783 ebx = ebx + 8; /* 0x2B046FA6: add ebx, 8 */ 2784 _flag_k = FK_ADD; 2785 /* cmp edi, 0x2B0E7650u */ /* 0x2B046FA9: cmp edi, 0x2b0e7650 */ 2786 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x2B0E7650u); 2787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2788 _flag_k = FK_CMP; 2789 RECOMP_BACKEDGE(); 2790 if (CMP_L(_flag_a, _flag_b)) goto L_2B046F82; /* 0x2B046FAF: jl 0x2b046f82 */ 2791 L_2B046FB1: 2792 ebx = MEM32(ebp + (-0x8)); /* 0x2B046FB1: mov ebx, dword ptr [ebp - 8] */ 2793 edi = MEM32(ebp + (-0x4)); /* 0x2B046FB4: mov edi, dword ptr [ebp - 4] */ 2794 edx = MEM32(esi + 0x30); /* 0x2B046FB7: mov edx, dword ptr [esi + 0x30] */ 2795 ecx = ebp + (-0x8); /* 0x2B046FBA: lea ecx, [ebp - 8] */ 2796 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xAu); 2797 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2798 ebx = ebx + 0xAu; /* 0x2B046FBD: add ebx, 0xa */ 2799 _flag_k = FK_ADD; 2800 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x47u); 2801 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2802 edi = edi + 0x47u; /* 0x2B046FC0: add edi, 0x47 */ 2803 _flag_k = FK_ADD; 2804 MEM32(ebp + (-0x8)) = ebx; /* 0x2B046FC3: mov dword ptr [ebp - 8], ebx */ 2805 MEM32(ebp + (-0x4)) = edi; /* 0x2B046FC6: mov dword ptr [ebp - 4], edi */ 2806 PUSH32(esp, ecx); /* 0x2B046FC9: push ecx */ 2807 ecx = MEM32(esi + edx * 8 + 0x3C); /* 0x2B046FCA: mov ecx, dword ptr [esi + edx*8 + 0x3c] */ 2808 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B046FCE: call dword ptr [0x2b0b58e0] */ 2809 RECOMP_FLAGS_IN(); 2810 eax = MEM32(esi + 0x30); /* 0x2B046FD4: mov eax, dword ptr [esi + 0x30] */ 2811 ecx = MEM32(esi + eax * 8 + 0x3C); /* 0x2B046FD7: mov ecx, dword ptr [esi + eax*8 + 0x3c] */ 2812 PUSH32(esp, 0); /* 0x2B046FDB: push 0 */ 2813 RECOMP_ICALL(MEM32(0x2B0B58E4)); /* 0x2B046FDD: call dword ptr [0x2b0b58e4] */ 2814 RECOMP_FLAGS_IN(); 2815 edi = POP32_VAL(esp); /* 0x2B046FE3: pop edi */ 2816 esi = POP32_VAL(esp); /* 0x2B046FE4: pop esi */ 2817 ebx = POP32_VAL(esp); /* 0x2B046FE5: pop ebx */ 2818 esp = ebp; /* 0x2B046FE6: mov esp, ebp */ 2819 ebp = POP32_VAL(esp); /* 0x2B046FE8: pop ebp */ 2820 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B046FE9: ret */ 2821 RECOMP_REGS_OUT(); 2822 } 2823 2824 void sub_2B046FF0(void) { 2825 int _fpu_cmp = 0; 2826 uint32_t _cf = 0; 2827 int _df = 1; 2828 uint32_t _flag_k = FK_NONE; 2829 uint32_t _flag_a = 0, _flag_b = 0; 2830 uint32_t _itail_tgt = 0; 2831 RECOMP_REGS_LOCALS 2832 RECOMP_ENTER(0x2B046FF0u); 2833 2834 L_2B046FF0: 2835 PUSH32(esp, ebx); /* 0x2B046FF0: push ebx */ 2836 ebx = ecx; /* 0x2B046FF1: mov ebx, ecx */ 2837 SET_LO8(eax, MEM8(ebx + 0xC)); /* 0x2B046FF3: mov al, byte ptr [ebx + 0xc] */ 2838 /* test LO8(eax), LO8(eax) */ /* 0x2B046FF6: test al, al */ 2839 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2840 _cf = 0; 2841 _flag_k = FK_NARROW(FK_TEST, 24); 2842 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04702F; /* 0x2B046FF8: je 0x2b04702f */ 2843 L_2B046FFA: 2844 ecx = MEM32(ebx + 0x34); /* 0x2B046FFA: mov ecx, dword ptr [ebx + 0x34] */ 2845 SET_LO8(eax, 1); /* 0x2B046FFD: mov al, 1 */ 2846 PUSH32(esp, esi); /* 0x2B046FFF: push esi */ 2847 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B047000: mov byte ptr [ecx + 8], al */ 2848 edx = MEM32(ebx + 0x28); /* 0x2B047003: mov edx, dword ptr [ebx + 0x28] */ 2849 PUSH32(esp, edi); /* 0x2B047006: push edi */ 2850 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B047007: mov byte ptr [edx + 8], al */ 2851 esi = ebx + 0x38; /* 0x2B04700A: lea esi, [ebx + 0x38] */ 2852 edi = 6; /* 0x2B04700D: mov edi, 6 */ 2853 L_2B047012: 2854 ecx = MEM32(esi); /* 0x2B047012: mov ecx, dword ptr [esi] */ 2855 RECOMP_ICALL(MEM32(0x2B0B5B3C)); /* 0x2B047014: call dword ptr [0x2b0b5b3c] */ 2856 RECOMP_FLAGS_IN(); 2857 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 2858 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2859 esi = esi + 8; /* 0x2B04701A: add esi, 8 */ 2860 _flag_k = FK_ADD; 2861 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2862 edi = edi - 1; /* 0x2B04701D: dec edi */ 2863 _flag_k = FK_DEC; 2864 RECOMP_BACKEDGE(); 2865 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B047012; /* 0x2B04701E: jne 0x2b047012 */ 2866 L_2B047020: 2867 eax = MEM32(ebx + 0x30); /* 0x2B047020: mov eax, dword ptr [ebx + 0x30] */ 2868 ecx = MEM32(ebx + eax * 8 + 0x3C); /* 0x2B047023: mov ecx, dword ptr [ebx + eax*8 + 0x3c] */ 2869 RECOMP_ICALL(MEM32(0x2B0B58DC)); /* 0x2B047027: call dword ptr [0x2b0b58dc] */ 2870 RECOMP_FLAGS_IN(); 2871 edi = POP32_VAL(esp); /* 0x2B04702D: pop edi */ 2872 esi = POP32_VAL(esp); /* 0x2B04702E: pop esi */ 2873 L_2B04702F: 2874 ebx = POP32_VAL(esp); /* 0x2B04702F: pop ebx */ 2875 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B047030: ret */ 2876 RECOMP_REGS_OUT(); 2877 } 2878 2879 void sub_2B047040(void) { 2880 int _fpu_cmp = 0; 2881 uint32_t _cf = 0; 2882 int _df = 1; 2883 uint32_t _flag_k = FK_NONE; 2884 uint32_t _flag_a = 0, _flag_b = 0; 2885 uint32_t _itail_tgt = 0; 2886 RECOMP_REGS_LOCALS 2887 RECOMP_ENTER(0x2B047040u); 2888 2889 L_2B047040: 2890 edx = MEM32(ecx + 0x34); /* 0x2B047040: mov edx, dword ptr [ecx + 0x34] */ 2891 PUSH32(esp, ebx); /* 0x2B047043: push ebx */ 2892 ebx = MEM32(0x2B0B5B34); /* 0x2B047044: mov ebx, dword ptr [0x2b0b5b34] */ 2893 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2894 SET_LO8(eax, 0); /* 0x2B04704A: xor al, al */ 2895 _cf = 0; 2896 _flag_k = FK_NARROW(FK_TEST, 24); 2897 PUSH32(esp, esi); /* 0x2B04704C: push esi */ 2898 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B04704D: mov byte ptr [edx + 8], al */ 2899 edx = MEM32(ecx + 0x28); /* 0x2B047050: mov edx, dword ptr [ecx + 0x28] */ 2900 PUSH32(esp, edi); /* 0x2B047053: push edi */ 2901 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B047054: mov byte ptr [edx + 8], al */ 2902 esi = ecx + 0x3C; /* 0x2B047057: lea esi, [ecx + 0x3c] */ 2903 edi = 6; /* 0x2B04705A: mov edi, 6 */ 2904 L_2B04705F: 2905 ecx = MEM32(esi + (-0x4)); /* 0x2B04705F: mov ecx, dword ptr [esi - 4] */ 2906 RECOMP_ICALL(ebx); /* 0x2B047062: call ebx */ 2907 RECOMP_FLAGS_IN(); 2908 ecx = MEM32(esi); /* 0x2B047064: mov ecx, dword ptr [esi] */ 2909 RECOMP_ICALL(MEM32(0x2B0B58D8)); /* 0x2B047066: call dword ptr [0x2b0b58d8] */ 2910 RECOMP_FLAGS_IN(); 2911 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 2912 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2913 esi = esi + 8; /* 0x2B04706C: add esi, 8 */ 2914 _flag_k = FK_ADD; 2915 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2916 edi = edi - 1; /* 0x2B04706F: dec edi */ 2917 _flag_k = FK_DEC; 2918 RECOMP_BACKEDGE(); 2919 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04705F; /* 0x2B047070: jne 0x2b04705f */ 2920 L_2B047072: 2921 edi = POP32_VAL(esp); /* 0x2B047072: pop edi */ 2922 esi = POP32_VAL(esp); /* 0x2B047073: pop esi */ 2923 ebx = POP32_VAL(esp); /* 0x2B047074: pop ebx */ 2924 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B047075: ret */ 2925 RECOMP_REGS_OUT(); 2926 } 2927 2928 void sub_2B047080(void) { 2929 int _fpu_cmp = 0; 2930 uint32_t _cf = 0; 2931 int _df = 1; 2932 uint32_t _flag_k = FK_NONE; 2933 uint32_t _flag_a = 0, _flag_b = 0; 2934 uint32_t _itail_tgt = 0; 2935 RECOMP_REGS_LOCALS 2936 RECOMP_ENTER(0x2B047080u); 2937 2938 L_2B047080: 2939 PUSH32(esp, ebp); /* 0x2B047080: push ebp */ 2940 ebp = esp; /* 0x2B047081: mov ebp, esp */ 2941 eax = MEM32(ebp + 0x8); /* 0x2B047083: mov eax, dword ptr [ebp + 8] */ 2942 ecx = MEM32(0x2B0EEA94); /* 0x2B047086: mov ecx, dword ptr [0x2b0eea94] */ 2943 PUSH32(esp, eax); /* 0x2B04708C: push eax */ 2944 RECOMP_ICALL(0x2B0470E0u); /* 0x2B04708D: call 0x2b0470e0 */ /* not lifted */ 2945 RECOMP_FLAGS_IN(); 2946 ecx = MEM32(0x2B0EEA94); /* 0x2B047092: mov ecx, dword ptr [0x2b0eea94] */ 2947 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B047098: call 0x2b03a2b0 */ /* not lifted */ 2948 RECOMP_FLAGS_IN(); 2949 SET_LO8(ecx, MEM8(0x2B0EEA90)); /* 0x2B04709D: mov cl, byte ptr [0x2b0eea90] */ 2950 SET_LO8(eax, 1); /* 0x2B0470A3: mov al, 1 */ 2951 /* test LO8(eax), LO8(ecx) */ /* 0x2B0470A5: test al, cl */ 2952 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2953 _cf = 0; 2954 _flag_k = FK_NARROW(FK_TEST, 24); 2955 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0470C4; /* 0x2B0470A7: jne 0x2b0470c4 */ 2956 L_2B0470A9: 2957 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 2958 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B0470A9: or cl, al */ 2959 _cf = 0; 2960 _flag_k = FK_NARROW(FK_TEST, 24); 2961 PUSH32(esp, 0x2B0E728Cu); /* 0x2B0470AB: push 0x2b0e728c */ 2962 MEM8(0x2B0EEA90) = (uint8_t)(LO8(ecx)); /* 0x2B0470B0: mov byte ptr [0x2b0eea90], cl */ 2963 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B0470B6: call dword ptr [0x2b0b60bc] */ 2964 RECOMP_FLAGS_IN(); 2965 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2966 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2967 esp = esp + 4; /* 0x2B0470BC: add esp, 4 */ 2968 _flag_k = FK_ADD; 2969 MEM32(0x2B0EEA8C) = eax; /* 0x2B0470BF: mov dword ptr [0x2b0eea8c], eax */ 2970 L_2B0470C4: 2971 ecx = MEM32(0x2B0EEA8C); /* 0x2B0470C4: mov ecx, dword ptr [0x2b0eea8c] */ 2972 PUSH32(esp, ecx); /* 0x2B0470CA: push ecx */ 2973 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B0470CB: call dword ptr [0x2b0b60b8] */ 2974 RECOMP_FLAGS_IN(); 2975 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2977 esp = esp + 4; /* 0x2B0470D1: add esp, 4 */ 2978 _flag_k = FK_ADD; 2979 ebp = POP32_VAL(esp); /* 0x2B0470D4: pop ebp */ 2980 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0470D5: ret */ 2981 RECOMP_REGS_OUT(); 2982 } 2983 2984 void sub_2B0470E0(void) { 2985 int _fpu_cmp = 0; 2986 uint32_t _cf = 0; 2987 int _df = 1; 2988 uint32_t _flag_k = FK_NONE; 2989 uint32_t _flag_a = 0, _flag_b = 0; 2990 uint32_t _itail_tgt = 0; 2991 RECOMP_REGS_LOCALS 2992 RECOMP_ENTER(0x2B0470E0u); 2993 2994 L_2B0470E0: 2995 PUSH32(esp, ebp); /* 0x2B0470E0: push ebp */ 2996 ebp = esp; /* 0x2B0470E1: mov ebp, esp */ 2997 PUSH32(esp, esi); /* 0x2B0470E3: push esi */ 2998 esi = ecx; /* 0x2B0470E4: mov esi, ecx */ 2999 eax = MEM32(esi + 0x30); /* 0x2B0470E6: mov eax, dword ptr [esi + 0x30] */ 3000 ecx = MEM32(esi + eax * 8 + 0x38); /* 0x2B0470E9: mov ecx, dword ptr [esi + eax*8 + 0x38] */ 3001 PUSH32(esp, edi); /* 0x2B0470ED: push edi */ 3002 edi = MEM32(ebp + 0x8); /* 0x2B0470EE: mov edi, dword ptr [ebp + 8] */ 3003 /* cmp edi, eax */ /* 0x2B0470F1: cmp edi, eax */ 3004 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3006 _flag_k = FK_CMP; 3007 PUSH32(esp, 1); /* 0x2B0470F3: push 1 */ 3008 if (CMP_NE(_flag_a, _flag_b)) goto L_2B047103; /* 0x2B0470F5: jne 0x2b047103 */ 3009 L_2B0470F7: 3010 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B0470F7: call dword ptr [0x2b0b5ab4] */ 3011 RECOMP_FLAGS_IN(); 3012 edi = POP32_VAL(esp); /* 0x2B0470FD: pop edi */ 3013 esi = POP32_VAL(esp); /* 0x2B0470FE: pop esi */ 3014 ebp = POP32_VAL(esp); /* 0x2B0470FF: pop ebp */ 3015 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B047100: ret 4 */ 3016 L_2B047103: 3017 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B047103: call dword ptr [0x2b0b5ab4] */ 3018 RECOMP_FLAGS_IN(); 3019 eax = MEM32(esi + 0x30); /* 0x2B047109: mov eax, dword ptr [esi + 0x30] */ 3020 ecx = MEM32(esi + eax * 8 + 0x3C); /* 0x2B04710C: mov ecx, dword ptr [esi + eax*8 + 0x3c] */ 3021 RECOMP_ICALL(MEM32(0x2B0B58D8)); /* 0x2B047110: call dword ptr [0x2b0b58d8] */ 3022 RECOMP_FLAGS_IN(); 3023 SET_LO8(eax, MEM8(esi + 0x1C)); /* 0x2B047116: mov al, byte ptr [esi + 0x1c] */ 3024 /* test LO8(eax), LO8(eax) */ /* 0x2B047119: test al, al */ 3025 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3026 _cf = 0; 3027 _flag_k = FK_NARROW(FK_TEST, 24); 3028 MEM32(esi + 0x30) = edi; /* 0x2B04711B: mov dword ptr [esi + 0x30], edi */ 3029 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04712A; /* 0x2B04711E: je 0x2b04712a */ 3030 L_2B047120: 3031 ecx = MEM32(esi + edi * 8 + 0x3C); /* 0x2B047120: mov ecx, dword ptr [esi + edi*8 + 0x3c] */ 3032 RECOMP_ICALL(MEM32(0x2B0B58DC)); /* 0x2B047124: call dword ptr [0x2b0b58dc] */ 3033 RECOMP_FLAGS_IN(); 3034 L_2B04712A: 3035 edi = POP32_VAL(esp); /* 0x2B04712A: pop edi */ 3036 esi = POP32_VAL(esp); /* 0x2B04712B: pop esi */ 3037 ebp = POP32_VAL(esp); /* 0x2B04712C: pop ebp */ 3038 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04712D: ret 4 */ 3039 RECOMP_REGS_OUT(); 3040 } 3041 3042 void sub_2B047130(void) { 3043 int _fpu_cmp = 0; 3044 uint32_t _cf = 0; 3045 int _df = 1; 3046 uint32_t _flag_k = FK_NONE; 3047 uint32_t _flag_a = 0, _flag_b = 0; 3048 uint32_t _itail_tgt = 0; 3049 RECOMP_REGS_LOCALS 3050 RECOMP_ENTER(0x2B047130u); 3051 3052 L_2B047130: 3053 PUSH32(esp, ebx); /* 0x2B047130: push ebx */ 3054 ebx = MEM32(0x2B0B58CC); /* 0x2B047131: mov ebx, dword ptr [0x2b0b58cc] */ 3055 PUSH32(esp, esi); /* 0x2B047137: push esi */ 3056 PUSH32(esp, edi); /* 0x2B047138: push edi */ 3057 esi = ecx + 0x3C; /* 0x2B047139: lea esi, [ecx + 0x3c] */ 3058 edi = 6; /* 0x2B04713C: mov edi, 6 */ 3059 L_2B047141: 3060 ecx = MEM32(esi); /* 0x2B047141: mov ecx, dword ptr [esi] */ 3061 RECOMP_ICALL(ebx); /* 0x2B047143: call ebx */ 3062 RECOMP_FLAGS_IN(); 3063 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 3064 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3065 esi = esi + 8; /* 0x2B047145: add esi, 8 */ 3066 _flag_k = FK_ADD; 3067 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3068 edi = edi - 1; /* 0x2B047148: dec edi */ 3069 _flag_k = FK_DEC; 3070 RECOMP_BACKEDGE(); 3071 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B047141; /* 0x2B047149: jne 0x2b047141 */ 3072 L_2B04714B: 3073 edi = POP32_VAL(esp); /* 0x2B04714B: pop edi */ 3074 esi = POP32_VAL(esp); /* 0x2B04714C: pop esi */ 3075 ebx = POP32_VAL(esp); /* 0x2B04714D: pop ebx */ 3076 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04714E: ret */ 3077 RECOMP_REGS_OUT(); 3078 } 3079 3080 void sub_2B047150(void) { 3081 int _fpu_cmp = 0; 3082 uint32_t _cf = 0; 3083 int _df = 1; 3084 uint32_t _flag_k = FK_NONE; 3085 uint32_t _flag_a = 0, _flag_b = 0; 3086 uint32_t _itail_tgt = 0; 3087 RECOMP_REGS_LOCALS 3088 RECOMP_ENTER(0x2B047150u); 3089 3090 L_2B047150: 3091 PUSH32(esp, ebx); /* 0x2B047150: push ebx */ 3092 ebx = MEM32(0x2B0B58D4); /* 0x2B047151: mov ebx, dword ptr [0x2b0b58d4] */ 3093 PUSH32(esp, esi); /* 0x2B047157: push esi */ 3094 PUSH32(esp, edi); /* 0x2B047158: push edi */ 3095 esi = ecx + 0x3C; /* 0x2B047159: lea esi, [ecx + 0x3c] */ 3096 edi = 6; /* 0x2B04715C: mov edi, 6 */ 3097 L_2B047161: 3098 ecx = MEM32(esi); /* 0x2B047161: mov ecx, dword ptr [esi] */ 3099 RECOMP_ICALL(ebx); /* 0x2B047163: call ebx */ 3100 RECOMP_FLAGS_IN(); 3101 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 3102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3103 esi = esi + 8; /* 0x2B047165: add esi, 8 */ 3104 _flag_k = FK_ADD; 3105 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3106 edi = edi - 1; /* 0x2B047168: dec edi */ 3107 _flag_k = FK_DEC; 3108 RECOMP_BACKEDGE(); 3109 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B047161; /* 0x2B047169: jne 0x2b047161 */ 3110 L_2B04716B: 3111 RECOMP_ICALL(MEM32(0x2B0B5828)); /* 0x2B04716B: call dword ptr [0x2b0b5828] */ 3112 RECOMP_FLAGS_IN(); 3113 ecx = eax; /* 0x2B047171: mov ecx, eax */ 3114 RECOMP_ICALL(MEM32(0x2B0B5818)); /* 0x2B047173: call dword ptr [0x2b0b5818] */ 3115 RECOMP_FLAGS_IN(); 3116 edi = POP32_VAL(esp); /* 0x2B047179: pop edi */ 3117 esi = POP32_VAL(esp); /* 0x2B04717A: pop esi */ 3118 ebx = POP32_VAL(esp); /* 0x2B04717B: pop ebx */ 3119 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04717C: ret */ 3120 RECOMP_REGS_OUT(); 3121 } 3122 3123 void sub_2B047180(void) { 3124 int _fpu_cmp = 0; 3125 uint32_t _cf = 0; 3126 int _df = 1; 3127 uint32_t _flag_k = FK_NONE; 3128 uint32_t _flag_a = 0, _flag_b = 0; 3129 uint32_t _itail_tgt = 0; 3130 RECOMP_REGS_LOCALS 3131 RECOMP_ENTER(0x2B047180u); 3132 3133 L_2B047180: 3134 PUSH32(esp, ebp); /* 0x2B047180: push ebp */ 3135 ebp = esp; /* 0x2B047181: mov ebp, esp */ 3136 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 3137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3138 esp = esp - 0x2Cu; /* 0x2B047183: sub esp, 0x2c */ 3139 _flag_k = FK_CMP; 3140 eax = MEM32(ebp + 0xC); /* 0x2B047186: mov eax, dword ptr [ebp + 0xc] */ 3141 PUSH32(esp, ebx); /* 0x2B047189: push ebx */ 3142 ebx = MEM32(ebp + 0x8); /* 0x2B04718A: mov ebx, dword ptr [ebp + 8] */ 3143 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3144 eax = eax - 1; /* 0x2B04718D: dec eax */ 3145 _flag_k = FK_DEC; 3146 edx = ecx; /* 0x2B04718E: mov edx, ecx */ 3147 PUSH32(esp, esi); /* 0x2B047190: push esi */ 3148 PUSH32(esp, edi); /* 0x2B047191: push edi */ 3149 MEM32(ebp + 0xC) = eax; /* 0x2B047192: mov dword ptr [ebp + 0xc], eax */ 3150 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3151 eax = 0; /* 0x2B047195: xor eax, eax */ 3152 _cf = 0; 3153 _flag_k = FK_TEST; 3154 ecx = 0xAu; /* 0x2B047197: mov ecx, 0xa */ 3155 edi = ebp + (-0x2C); /* 0x2B04719C: lea edi, [ebp - 0x2c] */ 3156 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04719F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 3157 eax = MEM32(ebx); /* 0x2B0471A1: mov eax, dword ptr [ebx] */ 3158 ecx = MEM32(ebx + 0x4); /* 0x2B0471A3: mov ecx, dword ptr [ebx + 4] */ 3159 MEM32(ebp + (-0x4)) = edx; /* 0x2B0471A6: mov dword ptr [ebp - 4], edx */ 3160 MEM32(ebp + (-0x2C)) = eax; /* 0x2B0471A9: mov dword ptr [ebp - 0x2c], eax */ 3161 MEM32(ebp + (-0x28)) = ecx; /* 0x2B0471AC: mov dword ptr [ebp - 0x28], ecx */ 3162 MEM32(ebp + (-0x10)) = 0x20u; /* 0x2B0471AF: mov dword ptr [ebp - 0x10], 0x20 */ 3163 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3164 esi = 0; /* 0x2B0471B6: xor esi, esi */ 3165 _cf = 0; 3166 _flag_k = FK_TEST; 3167 edi = edx + 0x3C; /* 0x2B0471B8: lea edi, [edx + 0x3c] */ 3168 L_2B0471BB: 3169 ecx = MEM32(edi); /* 0x2B0471BB: mov ecx, dword ptr [edi] */ 3170 PUSH32(esp, ebx); /* 0x2B0471BD: push ebx */ 3171 RECOMP_ICALL(MEM32(0x2B0B5910)); /* 0x2B0471BE: call dword ptr [0x2b0b5910] */ 3172 RECOMP_FLAGS_IN(); 3173 /* test LO8(eax), LO8(eax) */ /* 0x2B0471C4: test al, al */ 3174 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3175 _cf = 0; 3176 _flag_k = FK_NARROW(FK_TEST, 24); 3177 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0471D4; /* 0x2B0471C6: jne 0x2b0471d4 */ 3178 L_2B0471C8: 3179 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3180 esi = esi + 1; /* 0x2B0471C8: inc esi */ 3181 _flag_k = FK_INC; 3182 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 3183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3184 edi = edi + 8; /* 0x2B0471C9: add edi, 8 */ 3185 _flag_k = FK_ADD; 3186 /* cmp esi, 6 */ /* 0x2B0471CC: cmp esi, 6 */ 3187 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(6); 3188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3189 _flag_k = FK_CMP; 3190 RECOMP_BACKEDGE(); 3191 if (CMP_L(_flag_a, _flag_b)) goto L_2B0471BB; /* 0x2B0471CF: jl 0x2b0471bb */ 3192 L_2B0471D1: 3193 esi = MEM32(ebp + 0xC); /* 0x2B0471D1: mov esi, dword ptr [ebp + 0xc] */ 3194 L_2B0471D4: 3195 eax = MEM32(ebp + (-0x4)); /* 0x2B0471D4: mov eax, dword ptr [ebp - 4] */ 3196 ecx = MEM32(eax + esi * 8 + 0x3C); /* 0x2B0471D7: mov ecx, dword ptr [eax + esi*8 + 0x3c] */ 3197 edx = ebp + (-0x2C); /* 0x2B0471DB: lea edx, [ebp - 0x2c] */ 3198 PUSH32(esp, edx); /* 0x2B0471DE: push edx */ 3199 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0471DF: call dword ptr [0x2b0b58d0] */ 3200 RECOMP_FLAGS_IN(); 3201 edi = POP32_VAL(esp); /* 0x2B0471E5: pop edi */ 3202 esi = POP32_VAL(esp); /* 0x2B0471E6: pop esi */ 3203 ebx = POP32_VAL(esp); /* 0x2B0471E7: pop ebx */ 3204 esp = ebp; /* 0x2B0471E8: mov esp, ebp */ 3205 ebp = POP32_VAL(esp); /* 0x2B0471EA: pop ebp */ 3206 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0471EB: ret 8 */ 3207 RECOMP_REGS_OUT(); 3208 } 3209 3210 void sub_2B0471F0(void) { 3211 int _fpu_cmp = 0; 3212 uint32_t _cf = 0; 3213 int _df = 1; 3214 uint32_t _flag_k = FK_NONE; 3215 uint32_t _flag_a = 0, _flag_b = 0; 3216 uint32_t _itail_tgt = 0; 3217 RECOMP_REGS_LOCALS 3218 RECOMP_ENTER(0x2B0471F0u); 3219 3220 L_2B0471F0: 3221 PUSH32(esp, ebp); /* 0x2B0471F0: push ebp */ 3222 ebp = esp; /* 0x2B0471F1: mov ebp, esp */ 3223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3225 esp = esp - 0xCu; /* 0x2B0471F3: sub esp, 0xc */ 3226 _flag_k = FK_CMP; 3227 PUSH32(esp, ebx); /* 0x2B0471F6: push ebx */ 3228 PUSH32(esp, esi); /* 0x2B0471F7: push esi */ 3229 esi = MEM32(0x2B0B53CC); /* 0x2B0471F8: mov esi, dword ptr [0x2b0b53cc] */ 3230 PUSH32(esp, edi); /* 0x2B0471FE: push edi */ 3231 ebx = ecx; /* 0x2B0471FF: mov ebx, ecx */ 3232 RECOMP_ICALL(esi); /* 0x2B047201: call esi */ 3233 RECOMP_FLAGS_IN(); 3234 ecx = eax; /* 0x2B047203: mov ecx, eax */ 3235 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B047205: call dword ptr [0x2b0b53a4] */ 3236 RECOMP_FLAGS_IN(); 3237 edi = eax; /* 0x2B04720B: mov edi, eax */ 3238 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3239 eax = 0; /* 0x2B04720D: xor eax, eax */ 3240 _cf = 0; 3241 _flag_k = FK_TEST; 3242 /* cmp edi, eax */ /* 0x2B04720F: cmp edi, eax */ 3243 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3245 _flag_k = FK_CMP; 3246 MEM32(ebp + (-0x4)) = edi; /* 0x2B047211: mov dword ptr [ebp - 4], edi */ 3247 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047291; /* 0x2B047214: je 0x2b047291 */ 3248 L_2B047216: 3249 MEM32(ebp + (-0xC)) = eax; /* 0x2B047216: mov dword ptr [ebp - 0xc], eax */ 3250 MEM32(ebp + (-0x8)) = eax; /* 0x2B047219: mov dword ptr [ebp - 8], eax */ 3251 eax = ebp + (-0xC); /* 0x2B04721C: lea eax, [ebp - 0xc] */ 3252 PUSH32(esp, eax); /* 0x2B04721F: push eax */ 3253 RECOMP_ICALL(esi); /* 0x2B047220: call esi */ 3254 RECOMP_FLAGS_IN(); 3255 ecx = eax; /* 0x2B047222: mov ecx, eax */ 3256 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B047224: call dword ptr [0x2b0b53ac] */ 3257 RECOMP_FLAGS_IN(); 3258 SET_LO8(eax, MEM8(edi + 0x70)); /* 0x2B04722A: mov al, byte ptr [edi + 0x70] */ 3259 /* test LO8(eax), LO8(eax) */ /* 0x2B04722D: test al, al */ 3260 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3261 _cf = 0; 3262 _flag_k = FK_NARROW(FK_TEST, 24); 3263 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B047240; /* 0x2B04722F: jne 0x2b047240 */ 3264 L_2B047231: 3265 PUSH32(esp, edi); /* 0x2B047231: push edi */ 3266 RECOMP_ICALL(MEM32(0x2B0B596C)); /* 0x2B047232: call dword ptr [0x2b0b596c] */ 3267 RECOMP_FLAGS_IN(); 3268 ecx = eax; /* 0x2B047238: mov ecx, eax */ 3269 RECOMP_ICALL(MEM32(0x2B0B5920)); /* 0x2B04723A: call dword ptr [0x2b0b5920] */ 3270 RECOMP_FLAGS_IN(); 3271 L_2B047240: 3272 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3273 esi = 0; /* 0x2B047240: xor esi, esi */ 3274 _cf = 0; 3275 _flag_k = FK_TEST; 3276 edi = ebx + 0x3C; /* 0x2B047242: lea edi, [ebx + 0x3c] */ 3277 L_2B047245: 3278 ecx = ebp + (-0xC); /* 0x2B047245: lea ecx, [ebp - 0xc] */ 3279 PUSH32(esp, ecx); /* 0x2B047248: push ecx */ 3280 ecx = MEM32(edi); /* 0x2B047249: mov ecx, dword ptr [edi] */ 3281 RECOMP_ICALL(MEM32(0x2B0B5814)); /* 0x2B04724B: call dword ptr [0x2b0b5814] */ 3282 RECOMP_FLAGS_IN(); 3283 /* test LO8(eax), LO8(eax) */ /* 0x2B047251: test al, al */ 3284 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3285 _cf = 0; 3286 _flag_k = FK_NARROW(FK_TEST, 24); 3287 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04725E; /* 0x2B047253: jne 0x2b04725e */ 3288 L_2B047255: 3289 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3290 esi = esi + 1; /* 0x2B047255: inc esi */ 3291 _flag_k = FK_INC; 3292 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 3293 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3294 edi = edi + 8; /* 0x2B047256: add edi, 8 */ 3295 _flag_k = FK_ADD; 3296 /* cmp esi, 6 */ /* 0x2B047259: cmp esi, 6 */ 3297 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(6); 3298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3299 _flag_k = FK_CMP; 3300 RECOMP_BACKEDGE(); 3301 if (CMP_L(_flag_a, _flag_b)) goto L_2B047245; /* 0x2B04725C: jl 0x2b047245 */ 3302 L_2B04725E: 3303 eax = MEM32(ebp + (-0x4)); /* 0x2B04725E: mov eax, dword ptr [ebp - 4] */ 3304 ecx = MEM32(ebx + 0x30); /* 0x2B047261: mov ecx, dword ptr [ebx + 0x30] */ 3305 ecx = MEM32(ebx + ecx * 8 + 0x3C); /* 0x2B047264: mov ecx, dword ptr [ebx + ecx*8 + 0x3c] */ 3306 edx = ebp + (-0xC); /* 0x2B047268: lea edx, [ebp - 0xc] */ 3307 PUSH32(esp, edx); /* 0x2B04726B: push edx */ 3308 PUSH32(esp, eax); /* 0x2B04726C: push eax */ 3309 RECOMP_ICALL(MEM32(0x2B0B5918)); /* 0x2B04726D: call dword ptr [0x2b0b5918] */ 3310 RECOMP_FLAGS_IN(); 3311 edx = MEM32(ebx + 0x30); /* 0x2B047273: mov edx, dword ptr [ebx + 0x30] */ 3312 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3313 edx = edx + 1; /* 0x2B047276: inc edx */ 3314 _flag_k = FK_INC; 3315 PUSH32(esp, edx); /* 0x2B047277: push edx */ 3316 eax = ebp + (-0xC); /* 0x2B047278: lea eax, [ebp - 0xc] */ 3317 PUSH32(esp, eax); /* 0x2B04727B: push eax */ 3318 ecx = ebx; /* 0x2B04727C: mov ecx, ebx */ 3319 RECOMP_ICALL(0x2B047180u); /* 0x2B04727E: call 0x2b047180 */ /* not lifted */ 3320 RECOMP_FLAGS_IN(); 3321 ecx = ebx; /* 0x2B047283: mov ecx, ebx */ 3322 RECOMP_ICALL(0x2B047150u); /* 0x2B047285: call 0x2b047150 */ /* not lifted */ 3323 RECOMP_FLAGS_IN(); 3324 ecx = ebx; /* 0x2B04728A: mov ecx, ebx */ 3325 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04728C: call 0x2b03a2b0 */ /* not lifted */ 3326 RECOMP_FLAGS_IN(); 3327 L_2B047291: 3328 edi = POP32_VAL(esp); /* 0x2B047291: pop edi */ 3329 esi = POP32_VAL(esp); /* 0x2B047292: pop esi */ 3330 ebx = POP32_VAL(esp); /* 0x2B047293: pop ebx */ 3331 esp = ebp; /* 0x2B047294: mov esp, ebp */ 3332 ebp = POP32_VAL(esp); /* 0x2B047296: pop ebp */ 3333 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B047297: ret */ 3334 RECOMP_REGS_OUT(); 3335 } 3336 3337 void sub_2B0472A0(void) { 3338 int _fpu_cmp = 0; 3339 uint32_t _cf = 0; 3340 int _df = 1; 3341 uint32_t _flag_k = FK_NONE; 3342 uint32_t _flag_a = 0, _flag_b = 0; 3343 uint32_t _itail_tgt = 0; 3344 RECOMP_REGS_LOCALS 3345 RECOMP_ENTER(0x2B0472A0u); 3346 3347 L_2B0472A0: 3348 PUSH32(esp, ebp); /* 0x2B0472A0: push ebp */ 3349 ebp = esp; /* 0x2B0472A1: mov ebp, esp */ 3350 PUSH32(esp, ecx); /* 0x2B0472A3: push ecx */ 3351 PUSH32(esp, ebx); /* 0x2B0472A4: push ebx */ 3352 ebx = MEM32(0x2B0B5904); /* 0x2B0472A5: mov ebx, dword ptr [0x2b0b5904] */ 3353 PUSH32(esp, esi); /* 0x2B0472AB: push esi */ 3354 PUSH32(esp, edi); /* 0x2B0472AC: push edi */ 3355 edi = MEM32(ebp + 0x8); /* 0x2B0472AD: mov edi, dword ptr [ebp + 8] */ 3356 esi = ecx + 0x3C; /* 0x2B0472B0: lea esi, [ecx + 0x3c] */ 3357 MEM32(ebp + (-0x4)) = 6; /* 0x2B0472B3: mov dword ptr [ebp - 4], 6 */ 3358 L_2B0472BA: 3359 ecx = MEM32(esi); /* 0x2B0472BA: mov ecx, dword ptr [esi] */ 3360 PUSH32(esp, edi); /* 0x2B0472BC: push edi */ 3361 RECOMP_ICALL(ebx); /* 0x2B0472BD: call ebx */ 3362 RECOMP_FLAGS_IN(); 3363 /* test eax, eax */ /* 0x2B0472BF: test eax, eax */ 3364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3365 _cf = 0; 3366 _flag_k = FK_TEST; 3367 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0472CB; /* 0x2B0472C1: je 0x2b0472cb */ 3368 L_2B0472C3: 3369 ecx = eax; /* 0x2B0472C3: mov ecx, eax */ 3370 RECOMP_ICALL(MEM32(0x2B0B5894)); /* 0x2B0472C5: call dword ptr [0x2b0b5894] */ 3371 RECOMP_FLAGS_IN(); 3372 L_2B0472CB: 3373 eax = MEM32(ebp + (-0x4)); /* 0x2B0472CB: mov eax, dword ptr [ebp - 4] */ 3374 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 3375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3376 esi = esi + 8; /* 0x2B0472CE: add esi, 8 */ 3377 _flag_k = FK_ADD; 3378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3379 eax = eax - 1; /* 0x2B0472D1: dec eax */ 3380 _flag_k = FK_DEC; 3381 MEM32(ebp + (-0x4)) = eax; /* 0x2B0472D2: mov dword ptr [ebp - 4], eax */ 3382 RECOMP_BACKEDGE(); 3383 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B0472BA; /* 0x2B0472D5: jne 0x2b0472ba */ 3384 L_2B0472D7: 3385 edi = POP32_VAL(esp); /* 0x2B0472D7: pop edi */ 3386 esi = POP32_VAL(esp); /* 0x2B0472D8: pop esi */ 3387 ebx = POP32_VAL(esp); /* 0x2B0472D9: pop ebx */ 3388 esp = ebp; /* 0x2B0472DA: mov esp, ebp */ 3389 ebp = POP32_VAL(esp); /* 0x2B0472DC: pop ebp */ 3390 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0472DD: ret 4 */ 3391 RECOMP_REGS_OUT(); 3392 } 3393 3394 void sub_2B0472E0(void) { 3395 int _fpu_cmp = 0; 3396 uint32_t _cf = 0; 3397 int _df = 1; 3398 uint32_t _flag_k = FK_NONE; 3399 uint32_t _flag_a = 0, _flag_b = 0; 3400 uint32_t _itail_tgt = 0; 3401 RECOMP_REGS_LOCALS 3402 RECOMP_ENTER(0x2B0472E0u); 3403 3404 L_2B0472E0: 3405 PUSH32(esp, ebp); /* 0x2B0472E0: push ebp */ 3406 ebp = esp; /* 0x2B0472E1: mov ebp, esp */ 3407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x108u); 3408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3409 esp = esp - 0x108u; /* 0x2B0472E3: sub esp, 0x108 */ 3410 _flag_k = FK_CMP; 3411 PUSH32(esp, ebx); /* 0x2B0472E9: push ebx */ 3412 ebx = MEM32(ebp + 0x8); /* 0x2B0472EA: mov ebx, dword ptr [ebp + 8] */ 3413 PUSH32(esp, esi); /* 0x2B0472ED: push esi */ 3414 PUSH32(esp, edi); /* 0x2B0472EE: push edi */ 3415 PUSH32(esp, ebx); /* 0x2B0472EF: push ebx */ 3416 esi = ecx; /* 0x2B0472F0: mov esi, ecx */ 3417 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0472F2: call dword ptr [0x2b0b5d6c] */ 3418 RECOMP_FLAGS_IN(); 3419 ecx = eax; /* 0x2B0472F8: mov ecx, eax */ 3420 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B0472FA: call dword ptr [0x2b0b5d50] */ 3421 RECOMP_FLAGS_IN(); 3422 PUSH32(esp, eax); /* 0x2B047300: push eax */ 3423 eax = ebp + (-0x108); /* 0x2B047301: lea eax, [ebp - 0x108] */ 3424 PUSH32(esp, 0x2B0E7734u); /* 0x2B047307: push 0x2b0e7734 */ 3425 PUSH32(esp, eax); /* 0x2B04730C: push eax */ 3426 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B04730D: call dword ptr [0x2b0b51f0] */ 3427 RECOMP_FLAGS_IN(); 3428 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3429 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3430 esp = esp + 0xCu; /* 0x2B047313: add esp, 0xc */ 3431 _flag_k = FK_ADD; 3432 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3433 ecx = ecx | 0xFFFFFFFFu; /* 0x2B047316: or ecx, 0xffffffff */ 3434 _cf = 0; 3435 _flag_k = FK_TEST; 3436 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3437 eax = 0; /* 0x2B047319: xor eax, eax */ 3438 _cf = 0; 3439 _flag_k = FK_TEST; 3440 edi = ebp + (-0x108); /* 0x2B04731B: lea edi, [ebp - 0x108] */ 3441 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B047321: repne scasb al, byte ptr es:[edi] */ 3442 ecx = ~ecx; /* 0x2B047323: not ecx */ 3443 PUSH32(esp, ecx); /* 0x2B047325: push ecx */ 3444 ecx = ebp + (-0x108); /* 0x2B047326: lea ecx, [ebp - 0x108] */ 3445 PUSH32(esp, ecx); /* 0x2B04732C: push ecx */ 3446 PUSH32(esp, 0x3Fu); /* 0x2B04732D: push 0x3f */ 3447 PUSH32(esp, 3); /* 0x2B04732F: push 3 */ 3448 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B047331: call dword ptr [0x2b0b53cc] */ 3449 RECOMP_FLAGS_IN(); 3450 ecx = eax; /* 0x2B047337: mov ecx, eax */ 3451 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B047339: call dword ptr [0x2b0b53c4] */ 3452 RECOMP_FLAGS_IN(); 3453 PUSH32(esp, 0x195u); /* 0x2B04733F: push 0x195 */ 3454 PUSH32(esp, ebx); /* 0x2B047344: push ebx */ 3455 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B047345: call dword ptr [0x2b0b5d6c] */ 3456 RECOMP_FLAGS_IN(); 3457 ecx = eax; /* 0x2B04734B: mov ecx, eax */ 3458 RECOMP_ICALL(MEM32(0x2B0B5EE0)); /* 0x2B04734D: call dword ptr [0x2b0b5ee0] */ 3459 RECOMP_FLAGS_IN(); 3460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3461 eax = eax - 1; /* 0x2B047353: dec eax */ 3462 _flag_k = FK_DEC; 3463 PUSH32(esp, eax); /* 0x2B047354: push eax */ 3464 ecx = esi; /* 0x2B047355: mov ecx, esi */ 3465 RECOMP_ICALL(0x2B0470E0u); /* 0x2B047357: call 0x2b0470e0 */ /* not lifted */ 3466 RECOMP_FLAGS_IN(); 3467 edx = MEM32(esi + 0x30); /* 0x2B04735C: mov edx, dword ptr [esi + 0x30] */ 3468 ecx = MEM32(esi + edx * 8 + 0x38); /* 0x2B04735F: mov ecx, dword ptr [esi + edx*8 + 0x38] */ 3469 PUSH32(esp, 2); /* 0x2B047363: push 2 */ 3470 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B047365: call dword ptr [0x2b0b5ab4] */ 3471 RECOMP_FLAGS_IN(); 3472 ecx = MEM32(esi + 0x30); /* 0x2B04736B: mov ecx, dword ptr [esi + 0x30] */ 3473 edi = MEM32(0x2B0B5BA4); /* 0x2B04736E: mov edi, dword ptr [0x2b0b5ba4] */ 3474 MEM32(ebp + (-0x8)) = 0; /* 0x2B047374: mov dword ptr [ebp - 8], 0 */ 3475 MEM32(ebp + (-0x4)) = 0; /* 0x2B04737B: mov dword ptr [ebp - 4], 0 */ 3476 edx = MEM32(esi + ecx * 8 + 0x3C); /* 0x2B047382: mov edx, dword ptr [esi + ecx*8 + 0x3c] */ 3477 PUSH32(esp, 0); /* 0x2B047386: push 0 */ 3478 eax = ebp + (-0x8); /* 0x2B047388: lea eax, [ebp - 8] */ 3479 PUSH32(esp, eax); /* 0x2B04738B: push eax */ 3480 eax = MEM32(edx + 0x4); /* 0x2B04738C: mov eax, dword ptr [edx + 4] */ 3481 ecx = MEM32(eax); /* 0x2B04738F: mov ecx, dword ptr [eax] */ 3482 RECOMP_ICALL(edi); /* 0x2B047391: call edi */ 3483 RECOMP_FLAGS_IN(); 3484 edx = MEM32(esi + 0x30); /* 0x2B047393: mov edx, dword ptr [esi + 0x30] */ 3485 MEM32(ebp + (-0x8)) = 0; /* 0x2B047396: mov dword ptr [ebp - 8], 0 */ 3486 MEM32(ebp + (-0x4)) = 0x3FF00000u; /* 0x2B04739D: mov dword ptr [ebp - 4], 0x3ff00000 */ 3487 eax = MEM32(esi + edx * 8 + 0x3C); /* 0x2B0473A4: mov eax, dword ptr [esi + edx*8 + 0x3c] */ 3488 PUSH32(esp, 0); /* 0x2B0473A8: push 0 */ 3489 ecx = ebp + (-0x8); /* 0x2B0473AA: lea ecx, [ebp - 8] */ 3490 PUSH32(esp, ecx); /* 0x2B0473AD: push ecx */ 3491 ecx = MEM32(eax + 0x4); /* 0x2B0473AE: mov ecx, dword ptr [eax + 4] */ 3492 ecx = MEM32(ecx); /* 0x2B0473B1: mov ecx, dword ptr [ecx] */ 3493 RECOMP_ICALL(edi); /* 0x2B0473B3: call edi */ 3494 RECOMP_FLAGS_IN(); 3495 ecx = esi; /* 0x2B0473B5: mov ecx, esi */ 3496 RECOMP_ICALL(0x2B03A490u); /* 0x2B0473B7: call 0x2b03a490 */ /* not lifted */ 3497 RECOMP_FLAGS_IN(); 3498 PUSH32(esp, esi); /* 0x2B0473BC: push esi */ 3499 RECOMP_ICALL(0x2B03BA50u); /* 0x2B0473BD: call 0x2b03ba50 */ /* not lifted */ 3500 RECOMP_FLAGS_IN(); 3501 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3503 esp = esp + 4; /* 0x2B0473C2: add esp, 4 */ 3504 _flag_k = FK_ADD; 3505 edi = POP32_VAL(esp); /* 0x2B0473C5: pop edi */ 3506 esi = POP32_VAL(esp); /* 0x2B0473C6: pop esi */ 3507 ebx = POP32_VAL(esp); /* 0x2B0473C7: pop ebx */ 3508 esp = ebp; /* 0x2B0473C8: mov esp, ebp */ 3509 ebp = POP32_VAL(esp); /* 0x2B0473CA: pop ebp */ 3510 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0473CB: ret 4 */ 3511 RECOMP_REGS_OUT(); 3512 } 3513 3514 void sub_2B0473D0(void) { 3515 int _fpu_cmp = 0; 3516 uint32_t _cf = 0; 3517 int _df = 1; 3518 uint32_t _flag_k = FK_NONE; 3519 uint32_t _flag_a = 0, _flag_b = 0; 3520 uint32_t _itail_tgt = 0; 3521 RECOMP_REGS_LOCALS 3522 RECOMP_ENTER(0x2B0473D0u); 3523 3524 L_2B0473D0: 3525 goto L_2B0473E0; /* 0x2B0473D0: jmp 0x2b0473e0 */ 3526 L_2B0473E0: 3527 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3528 eax = 0; /* 0x2B0473E0: xor eax, eax */ 3529 _cf = 0; 3530 _flag_k = FK_TEST; 3531 MEM32(0x2B0EEA98) = eax; /* 0x2B0473E2: mov dword ptr [0x2b0eea98], eax */ 3532 MEM32(0x2B0EEA9C) = eax; /* 0x2B0473E7: mov dword ptr [0x2b0eea9c], eax */ 3533 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0473EC: ret */ 3534 RECOMP_REGS_OUT(); 3535 } 3536 3537 void sub_2B0473E0(void) { 3538 int _fpu_cmp = 0; 3539 uint32_t _cf = 0; 3540 int _df = 1; 3541 uint32_t _flag_k = FK_NONE; 3542 uint32_t _flag_a = 0, _flag_b = 0; 3543 uint32_t _itail_tgt = 0; 3544 RECOMP_REGS_LOCALS 3545 RECOMP_ENTER(0x2B0473E0u); 3546 3547 L_2B0473E0: 3548 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3549 eax = 0; /* 0x2B0473E0: xor eax, eax */ 3550 _cf = 0; 3551 _flag_k = FK_TEST; 3552 MEM32(0x2B0EEA98) = eax; /* 0x2B0473E2: mov dword ptr [0x2b0eea98], eax */ 3553 MEM32(0x2B0EEA9C) = eax; /* 0x2B0473E7: mov dword ptr [0x2b0eea9c], eax */ 3554 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0473EC: ret */ 3555 RECOMP_REGS_OUT(); 3556 } 3557 3558 void sub_2B0473F0(void) { 3559 int _fpu_cmp = 0; 3560 uint32_t _cf = 0; 3561 int _df = 1; 3562 uint32_t _flag_k = FK_NONE; 3563 uint32_t _flag_a = 0, _flag_b = 0; 3564 uint32_t _itail_tgt = 0; 3565 RECOMP_REGS_LOCALS 3566 RECOMP_ENTER(0x2B0473F0u); 3567 3568 L_2B0473F0: 3569 PUSH32(esp, ebx); /* 0x2B0473F0: push ebx */ 3570 PUSH32(esp, esi); /* 0x2B0473F1: push esi */ 3571 esi = MEM32(0x2B0B53CC); /* 0x2B0473F2: mov esi, dword ptr [0x2b0b53cc] */ 3572 PUSH32(esp, edi); /* 0x2B0473F8: push edi */ 3573 ebx = ecx; /* 0x2B0473F9: mov ebx, ecx */ 3574 RECOMP_ICALL(esi); /* 0x2B0473FB: call esi */ 3575 RECOMP_FLAGS_IN(); 3576 ecx = eax; /* 0x2B0473FD: mov ecx, eax */ 3577 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B0473FF: call dword ptr [0x2b0b5374] */ 3578 RECOMP_FLAGS_IN(); 3579 PUSH32(esp, 0x32C8u); /* 0x2B047405: push 0x32c8 */ 3580 PUSH32(esp, 0x30u); /* 0x2B04740A: push 0x30 */ 3581 PUSH32(esp, 1); /* 0x2B04740C: push 1 */ 3582 RECOMP_ICALL(esi); /* 0x2B04740E: call esi */ 3583 RECOMP_FLAGS_IN(); 3584 ecx = eax; /* 0x2B047410: mov ecx, eax */ 3585 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B047412: call dword ptr [0x2b0b5378] */ 3586 RECOMP_FLAGS_IN(); 3587 PUSH32(esp, 0x2B047570u); /* 0x2B047418: push 0x2b047570 */ 3588 RECOMP_ICALL(esi); /* 0x2B04741D: call esi */ 3589 RECOMP_FLAGS_IN(); 3590 ecx = eax; /* 0x2B04741F: mov ecx, eax */ 3591 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B047421: call dword ptr [0x2b0b537c] */ 3592 RECOMP_FLAGS_IN(); 3593 PUSH32(esp, 0x2B0474F0u); /* 0x2B047427: push 0x2b0474f0 */ 3594 PUSH32(esp, 5); /* 0x2B04742C: push 5 */ 3595 RECOMP_ICALL(esi); /* 0x2B04742E: call esi */ 3596 RECOMP_FLAGS_IN(); 3597 edi = MEM32(0x2B0B5324); /* 0x2B047430: mov edi, dword ptr [0x2b0b5324] */ 3598 ecx = eax; /* 0x2B047436: mov ecx, eax */ 3599 RECOMP_ICALL(edi); /* 0x2B047438: call edi */ 3600 RECOMP_FLAGS_IN(); 3601 PUSH32(esp, 0x2B047550u); /* 0x2B04743A: push 0x2b047550 */ 3602 PUSH32(esp, 6); /* 0x2B04743F: push 6 */ 3603 RECOMP_ICALL(esi); /* 0x2B047441: call esi */ 3604 RECOMP_FLAGS_IN(); 3605 ecx = eax; /* 0x2B047443: mov ecx, eax */ 3606 RECOMP_ICALL(edi); /* 0x2B047445: call edi */ 3607 RECOMP_FLAGS_IN(); 3608 PUSH32(esp, 0x2B047680u); /* 0x2B047447: push 0x2b047680 */ 3609 PUSH32(esp, 0x133u); /* 0x2B04744C: push 0x133 */ 3610 RECOMP_ICALL(esi); /* 0x2B047451: call esi */ 3611 RECOMP_FLAGS_IN(); 3612 ecx = eax; /* 0x2B047453: mov ecx, eax */ 3613 RECOMP_ICALL(edi); /* 0x2B047455: call edi */ 3614 RECOMP_FLAGS_IN(); 3615 PUSH32(esp, 0x2B047690u); /* 0x2B047457: push 0x2b047690 */ 3616 PUSH32(esp, 0x134u); /* 0x2B04745C: push 0x134 */ 3617 RECOMP_ICALL(esi); /* 0x2B047461: call esi */ 3618 RECOMP_FLAGS_IN(); 3619 ecx = eax; /* 0x2B047463: mov ecx, eax */ 3620 RECOMP_ICALL(edi); /* 0x2B047465: call edi */ 3621 RECOMP_FLAGS_IN(); 3622 PUSH32(esp, 0x2B047770u); /* 0x2B047467: push 0x2b047770 */ 3623 PUSH32(esp, 0x135u); /* 0x2B04746C: push 0x135 */ 3624 RECOMP_ICALL(esi); /* 0x2B047471: call esi */ 3625 RECOMP_FLAGS_IN(); 3626 ecx = eax; /* 0x2B047473: mov ecx, eax */ 3627 RECOMP_ICALL(edi); /* 0x2B047475: call edi */ 3628 RECOMP_FLAGS_IN(); 3629 PUSH32(esp, 0x2B047780u); /* 0x2B047477: push 0x2b047780 */ 3630 PUSH32(esp, 0x101u); /* 0x2B04747C: push 0x101 */ 3631 RECOMP_ICALL(esi); /* 0x2B047481: call esi */ 3632 RECOMP_FLAGS_IN(); 3633 ecx = eax; /* 0x2B047483: mov ecx, eax */ 3634 RECOMP_ICALL(edi); /* 0x2B047485: call edi */ 3635 RECOMP_FLAGS_IN(); 3636 PUSH32(esp, 0x2B047780u); /* 0x2B047487: push 0x2b047780 */ 3637 PUSH32(esp, 0x102u); /* 0x2B04748C: push 0x102 */ 3638 RECOMP_ICALL(esi); /* 0x2B047491: call esi */ 3639 RECOMP_FLAGS_IN(); 3640 ecx = eax; /* 0x2B047493: mov ecx, eax */ 3641 RECOMP_ICALL(edi); /* 0x2B047495: call edi */ 3642 RECOMP_FLAGS_IN(); 3643 PUSH32(esp, 0x2B0477C0u); /* 0x2B047497: push 0x2b0477c0 */ 3644 PUSH32(esp, 0x136u); /* 0x2B04749C: push 0x136 */ 3645 RECOMP_ICALL(esi); /* 0x2B0474A1: call esi */ 3646 RECOMP_FLAGS_IN(); 3647 ecx = eax; /* 0x2B0474A3: mov ecx, eax */ 3648 RECOMP_ICALL(edi); /* 0x2B0474A5: call edi */ 3649 RECOMP_FLAGS_IN(); 3650 PUSH32(esp, 0x2B047800u); /* 0x2B0474A7: push 0x2b047800 */ 3651 PUSH32(esp, 0x137u); /* 0x2B0474AC: push 0x137 */ 3652 RECOMP_ICALL(esi); /* 0x2B0474B1: call esi */ 3653 RECOMP_FLAGS_IN(); 3654 ecx = eax; /* 0x2B0474B3: mov ecx, eax */ 3655 RECOMP_ICALL(edi); /* 0x2B0474B5: call edi */ 3656 RECOMP_FLAGS_IN(); 3657 PUSH32(esp, 0x2B047640u); /* 0x2B0474B7: push 0x2b047640 */ 3658 PUSH32(esp, 0x9Cu); /* 0x2B0474BC: push 0x9c */ 3659 RECOMP_ICALL(esi); /* 0x2B0474C1: call esi */ 3660 RECOMP_FLAGS_IN(); 3661 ecx = eax; /* 0x2B0474C3: mov ecx, eax */ 3662 RECOMP_ICALL(edi); /* 0x2B0474C5: call edi */ 3663 RECOMP_FLAGS_IN(); 3664 PUSH32(esp, 0x2B0478E0u); /* 0x2B0474C7: push 0x2b0478e0 */ 3665 PUSH32(esp, 0x138u); /* 0x2B0474CC: push 0x138 */ 3666 RECOMP_ICALL(esi); /* 0x2B0474D1: call esi */ 3667 RECOMP_FLAGS_IN(); 3668 ecx = eax; /* 0x2B0474D3: mov ecx, eax */ 3669 RECOMP_ICALL(edi); /* 0x2B0474D5: call edi */ 3670 RECOMP_FLAGS_IN(); 3671 edi = POP32_VAL(esp); /* 0x2B0474D7: pop edi */ 3672 esi = POP32_VAL(esp); /* 0x2B0474D8: pop esi */ 3673 eax = ebx; /* 0x2B0474D9: mov eax, ebx */ 3674 ebx = POP32_VAL(esp); /* 0x2B0474DB: pop ebx */ 3675 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0474DC: ret */ 3676 RECOMP_REGS_OUT(); 3677 } 3678 3679 void sub_2B0474E0(void) { 3680 int _fpu_cmp = 0; 3681 uint32_t _cf = 0; 3682 int _df = 1; 3683 uint32_t _flag_k = FK_NONE; 3684 uint32_t _flag_a = 0, _flag_b = 0; 3685 uint32_t _itail_tgt = 0; 3686 RECOMP_REGS_LOCALS 3687 RECOMP_ENTER(0x2B0474E0u); 3688 3689 L_2B0474E0: 3690 MEM32(0x2B0EEAA0) = 0; /* 0x2B0474E0: mov dword ptr [0x2b0eeaa0], 0 */ 3691 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0474EA: ret */ 3692 RECOMP_REGS_OUT(); 3693 } 3694 3695 void sub_2B0474F0(void) { 3696 int _fpu_cmp = 0; 3697 uint32_t _cf = 0; 3698 int _df = 1; 3699 uint32_t _flag_k = FK_NONE; 3700 uint32_t _flag_a = 0, _flag_b = 0; 3701 uint32_t _itail_tgt = 0; 3702 RECOMP_REGS_LOCALS 3703 RECOMP_ENTER(0x2B0474F0u); 3704 3705 L_2B0474F0: 3706 PUSH32(esp, ebp); /* 0x2B0474F0: push ebp */ 3707 ebp = esp; /* 0x2B0474F1: mov ebp, esp */ 3708 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0474F3: push -1 */ 3709 PUSH32(esp, 0x2B0AF1CBu); /* 0x2B0474F5: push 0x2b0af1cb */ 3710 eax = MEM32(FS_BASE + (0)); /* 0x2B0474FA: mov eax, dword ptr fs:[0] */ 3711 PUSH32(esp, eax); /* 0x2B047500: push eax */ 3712 MEM32(FS_BASE + (0)) = esp; /* 0x2B047501: mov dword ptr fs:[0], esp */ 3713 PUSH32(esp, ecx); /* 0x2B047508: push ecx */ 3714 PUSH32(esp, 0x68u); /* 0x2B047509: push 0x68 */ 3715 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04750B: call 0x2b0ab212 */ /* not lifted */ 3716 RECOMP_FLAGS_IN(); 3717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3719 esp = esp + 4; /* 0x2B047510: add esp, 4 */ 3720 _flag_k = FK_ADD; 3721 MEM32(ebp + (-0x10)) = eax; /* 0x2B047513: mov dword ptr [ebp - 0x10], eax */ 3722 /* test eax, eax */ /* 0x2B047516: test eax, eax */ 3723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3724 _cf = 0; 3725 _flag_k = FK_TEST; 3726 MEM32(ebp + (-0x4)) = 0; /* 0x2B047518: mov dword ptr [ebp - 4], 0 */ 3727 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04752A; /* 0x2B04751F: je 0x2b04752a */ 3728 L_2B047521: 3729 ecx = eax; /* 0x2B047521: mov ecx, eax */ 3730 RECOMP_ICALL(0x2B046B30u); /* 0x2B047523: call 0x2b046b30 */ /* not lifted */ 3731 RECOMP_FLAGS_IN(); 3732 goto L_2B04752C; /* 0x2B047528: jmp 0x2b04752c */ 3733 L_2B04752A: 3734 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3735 eax = 0; /* 0x2B04752A: xor eax, eax */ 3736 _cf = 0; 3737 _flag_k = FK_TEST; 3738 L_2B04752C: 3739 ecx = MEM32(ebp + (-0xC)); /* 0x2B04752C: mov ecx, dword ptr [ebp - 0xc] */ 3740 MEM32(0x2B0EEAA4) = eax; /* 0x2B04752F: mov dword ptr [0x2b0eeaa4], eax */ 3741 MEM8(0x2B0EEAA8) = (uint8_t)(0); /* 0x2B047534: mov byte ptr [0x2b0eeaa8], 0 */ 3742 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04753B: mov dword ptr fs:[0], ecx */ 3743 esp = ebp; /* 0x2B047542: mov esp, ebp */ 3744 ebp = POP32_VAL(esp); /* 0x2B047544: pop ebp */ 3745 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B047545: ret */ 3746 RECOMP_REGS_OUT(); 3747 } 3748 3749 void sub_2B047550(void) { 3750 int _fpu_cmp = 0; 3751 uint32_t _cf = 0; 3752 int _df = 1; 3753 uint32_t _flag_k = FK_NONE; 3754 uint32_t _flag_a = 0, _flag_b = 0; 3755 uint32_t _itail_tgt = 0; 3756 RECOMP_REGS_LOCALS 3757 RECOMP_ENTER(0x2B047550u); 3758 3759 L_2B047550: 3760 ecx = MEM32(0x2B0EEAA4); /* 0x2B047550: mov ecx, dword ptr [0x2b0eeaa4] */ 3761 /* test ecx, ecx */ /* 0x2B047556: test ecx, ecx */ 3762 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3763 _cf = 0; 3764 _flag_k = FK_TEST; 3765 if (TEST_Z(_flag_a, _flag_b)) goto L_2B047560; /* 0x2B047558: je 0x2b047560 */ 3766 L_2B04755A: 3767 eax = MEM32(ecx); /* 0x2B04755A: mov eax, dword ptr [ecx] */ 3768 PUSH32(esp, 1); /* 0x2B04755C: push 1 */ 3769 RECOMP_ICALL(MEM32(eax)); /* 0x2B04755E: call dword ptr [eax] */ 3770 RECOMP_FLAGS_IN(); 3771 L_2B047560: 3772 MEM32(0x2B0EEAA4) = 0; /* 0x2B047560: mov dword ptr [0x2b0eeaa4], 0 */ 3773 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04756A: ret */ 3774 RECOMP_REGS_OUT(); 3775 } 3776 3777 void sub_2B047570(void) { 3778 int _fpu_cmp = 0; 3779 uint32_t _cf = 0; 3780 int _df = 1; 3781 uint32_t _flag_k = FK_NONE; 3782 uint32_t _flag_a = 0, _flag_b = 0; 3783 uint32_t _itail_tgt = 0; 3784 RECOMP_REGS_LOCALS 3785 RECOMP_ENTER(0x2B047570u); 3786 3787 L_2B047570: 3788 PUSH32(esp, ebp); /* 0x2B047570: push ebp */ 3789 ebp = esp; /* 0x2B047571: mov ebp, esp */ 3790 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3792 esp = esp - 0xCu; /* 0x2B047573: sub esp, 0xc */ 3793 _flag_k = FK_CMP; 3794 SET_LO8(eax, MEM8(0x2B0EEAA8)); /* 0x2B047576: mov al, byte ptr [0x2b0eeaa8] */ 3795 /* test LO8(eax), LO8(eax) */ /* 0x2B04757B: test al, al */ 3796 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3797 _cf = 0; 3798 _flag_k = FK_NARROW(FK_TEST, 24); 3799 PUSH32(esp, ebx); /* 0x2B04757D: push ebx */ 3800 PUSH32(esp, esi); /* 0x2B04757E: push esi */ 3801 if (TEST_Z(_flag_a, _flag_b)) goto L_2B047639; /* 0x2B04757F: je 0x2b047639 */ 3802 L_2B047585: 3803 eax = MEM32(0x2B0B58C8); /* 0x2B047585: mov eax, dword ptr [0x2b0b58c8] */ 3804 /* cmp MEM8(eax), 0 */ /* 0x2B04758A: cmp byte ptr [eax], 0 */ 3805 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 3806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3807 _flag_k = FK_NARROW(FK_CMP, 24); 3808 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047639; /* 0x2B04758D: je 0x2b047639 */ 3809 L_2B047593: 3810 ebx = MEM32(0x2B0B5D6C); /* 0x2B047593: mov ebx, dword ptr [0x2b0b5d6c] */ 3811 RECOMP_ICALL(ebx); /* 0x2B047599: call ebx */ 3812 RECOMP_FLAGS_IN(); 3813 ecx = eax; /* 0x2B04759B: mov ecx, eax */ 3814 RECOMP_ICALL(MEM32(0x2B0B5E80)); /* 0x2B04759D: call dword ptr [0x2b0b5e80] */ 3815 RECOMP_FLAGS_IN(); 3816 esi = eax; /* 0x2B0475A3: mov esi, eax */ 3817 /* test esi, esi */ /* 0x2B0475A5: test esi, esi */ 3818 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3819 _cf = 0; 3820 _flag_k = FK_TEST; 3821 if (TEST_Z(_flag_a, _flag_b)) goto L_2B047639; /* 0x2B0475A7: je 0x2b047639 */ 3822 L_2B0475AD: 3823 ecx = MEM32(0x2B0EEAA4); /* 0x2B0475AD: mov ecx, dword ptr [0x2b0eeaa4] */ 3824 RECOMP_ICALL(0x2B047130u); /* 0x2B0475B3: call 0x2b047130 */ /* not lifted */ 3825 RECOMP_FLAGS_IN(); 3826 eax = MEM32(esi + 0x8); /* 0x2B0475B8: mov eax, dword ptr [esi + 8] */ 3827 /* test eax, eax */ /* 0x2B0475BB: test eax, eax */ 3828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3829 _cf = 0; 3830 _flag_k = FK_TEST; 3831 ecx = MEM32(esi + 0x4); /* 0x2B0475BD: mov ecx, dword ptr [esi + 4] */ 3832 esi = MEM32(ecx); /* 0x2B0475C0: mov esi, dword ptr [ecx] */ 3833 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04760A; /* 0x2B0475C2: jle 0x2b04760a */ 3834 L_2B0475C4: 3835 PUSH32(esp, edi); /* 0x2B0475C4: push edi */ 3836 edi = MEM32(0x2B0B5EE0); /* 0x2B0475C5: mov edi, dword ptr [0x2b0b5ee0] */ 3837 MEM32(ebp + (-0x4)) = eax; /* 0x2B0475CB: mov dword ptr [ebp - 4], eax */ 3838 L_2B0475CE: 3839 eax = MEM32(esi + 0x8); /* 0x2B0475CE: mov eax, dword ptr [esi + 8] */ 3840 edx = ebp + (-0xC); /* 0x2B0475D1: lea edx, [ebp - 0xc] */ 3841 PUSH32(esp, 0x195u); /* 0x2B0475D4: push 0x195 */ 3842 PUSH32(esp, edx); /* 0x2B0475D9: push edx */ 3843 MEM32(ebp + (-0xC)) = 0xCF1Bu; /* 0x2B0475DA: mov dword ptr [ebp - 0xc], 0xcf1b */ 3844 MEM32(ebp + (-0x8)) = eax; /* 0x2B0475E1: mov dword ptr [ebp - 8], eax */ 3845 RECOMP_ICALL(ebx); /* 0x2B0475E4: call ebx */ 3846 RECOMP_FLAGS_IN(); 3847 ecx = eax; /* 0x2B0475E6: mov ecx, eax */ 3848 RECOMP_ICALL(edi); /* 0x2B0475E8: call edi */ 3849 RECOMP_FLAGS_IN(); 3850 /* test eax, eax */ /* 0x2B0475EA: test eax, eax */ 3851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3852 _cf = 0; 3853 _flag_k = FK_TEST; 3854 if (TEST_LE(_flag_a, _flag_b)) goto L_2B0475FE; /* 0x2B0475EC: jle 0x2b0475fe */ 3855 L_2B0475EE: 3856 ecx = MEM32(0x2B0EEAA4); /* 0x2B0475EE: mov ecx, dword ptr [0x2b0eeaa4] */ 3857 PUSH32(esp, eax); /* 0x2B0475F4: push eax */ 3858 eax = ebp + (-0xC); /* 0x2B0475F5: lea eax, [ebp - 0xc] */ 3859 PUSH32(esp, eax); /* 0x2B0475F8: push eax */ 3860 RECOMP_ICALL(0x2B047180u); /* 0x2B0475F9: call 0x2b047180 */ /* not lifted */ 3861 RECOMP_FLAGS_IN(); 3862 L_2B0475FE: 3863 eax = MEM32(ebp + (-0x4)); /* 0x2B0475FE: mov eax, dword ptr [ebp - 4] */ 3864 esi = MEM32(esi); /* 0x2B047601: mov esi, dword ptr [esi] */ 3865 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3866 eax = eax - 1; /* 0x2B047603: dec eax */ 3867 _flag_k = FK_DEC; 3868 MEM32(ebp + (-0x4)) = eax; /* 0x2B047604: mov dword ptr [ebp - 4], eax */ 3869 RECOMP_BACKEDGE(); 3870 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B0475CE; /* 0x2B047607: jne 0x2b0475ce */ 3871 L_2B047609: 3872 edi = POP32_VAL(esp); /* 0x2B047609: pop edi */ 3873 L_2B04760A: 3874 ecx = MEM32(0x2B0EEAA4); /* 0x2B04760A: mov ecx, dword ptr [0x2b0eeaa4] */ 3875 RECOMP_ICALL(0x2B047150u); /* 0x2B047610: call 0x2b047150 */ /* not lifted */ 3876 RECOMP_FLAGS_IN(); 3877 ecx = MEM32(0x2B0EEAA4); /* 0x2B047615: mov ecx, dword ptr [0x2b0eeaa4] */ 3878 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04761B: call 0x2b03a2b0 */ /* not lifted */ 3879 RECOMP_FLAGS_IN(); 3880 ecx = MEM32(0x2B0EEAA4); /* 0x2B047620: mov ecx, dword ptr [0x2b0eeaa4] */ 3881 MEM8(0x2B0EEAA8) = (uint8_t)(0); /* 0x2B047626: mov byte ptr [0x2b0eeaa8], 0 */ 3882 SET_LO8(eax, MEM8(ecx + 0x1C)); /* 0x2B04762D: mov al, byte ptr [ecx + 0x1c] */ 3883 /* test LO8(eax), LO8(eax) */ /* 0x2B047630: test al, al */ 3884 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3885 _cf = 0; 3886 _flag_k = FK_NARROW(FK_TEST, 24); 3887 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B047639; /* 0x2B047632: jne 0x2b047639 */ 3888 L_2B047634: 3889 edx = MEM32(ecx); /* 0x2B047634: mov edx, dword ptr [ecx] */ 3890 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B047636: call dword ptr [edx + 0xc] */ 3891 RECOMP_FLAGS_IN(); 3892 L_2B047639: 3893 esi = POP32_VAL(esp); /* 0x2B047639: pop esi */ 3894 ebx = POP32_VAL(esp); /* 0x2B04763A: pop ebx */ 3895 esp = ebp; /* 0x2B04763B: mov esp, ebp */ 3896 ebp = POP32_VAL(esp); /* 0x2B04763D: pop ebp */ 3897 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04763E: ret */ 3898 RECOMP_REGS_OUT(); 3899 } 3900 3901 void sub_2B047640(void) { 3902 int _fpu_cmp = 0; 3903 uint32_t _cf = 0; 3904 int _df = 1; 3905 uint32_t _flag_k = FK_NONE; 3906 uint32_t _flag_a = 0, _flag_b = 0; 3907 uint32_t _itail_tgt = 0; 3908 RECOMP_REGS_LOCALS 3909 RECOMP_ENTER(0x2B047640u); 3910 3911 L_2B047640: 3912 eax = MEM32(0x2B0EEAA4); /* 0x2B047640: mov eax, dword ptr [0x2b0eeaa4] */ 3913 /* test eax, eax */ /* 0x2B047645: test eax, eax */ 3914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3915 _cf = 0; 3916 _flag_k = FK_TEST; 3917 if (TEST_Z(_flag_a, _flag_b)) goto L_2B047676; /* 0x2B047647: je 0x2b047676 */ 3918 L_2B047649: 3919 ecx = MEM32(eax + 0x30); /* 0x2B047649: mov ecx, dword ptr [eax + 0x30] */ 3920 edx = MEM32(eax + ecx * 8 + 0x3C); /* 0x2B04764C: mov edx, dword ptr [eax + ecx*8 + 0x3c] */ 3921 PUSH32(esp, esi); /* 0x2B047650: push esi */ 3922 esi = MEM32(edx + 0x2C); /* 0x2B047651: mov esi, dword ptr [edx + 0x2c] */ 3923 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B047654: call dword ptr [0x2b0b5b64] */ 3924 RECOMP_FLAGS_IN(); 3925 ecx = MEM32(eax + 0x110); /* 0x2B04765A: mov ecx, dword ptr [eax + 0x110] */ 3926 eax = MEM32(0x2B0EEAA4); /* 0x2B047660: mov eax, dword ptr [0x2b0eeaa4] */ 3927 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 3928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3929 esi = esi - ecx; /* 0x2B047665: sub esi, ecx */ 3930 _flag_k = FK_CMP; 3931 ecx = MEM32(eax + 0x30); /* 0x2B047667: mov ecx, dword ptr [eax + 0x30] */ 3932 ecx = MEM32(eax + ecx * 8 + 0x3C); /* 0x2B04766A: mov ecx, dword ptr [eax + ecx*8 + 0x3c] */ 3933 PUSH32(esp, esi); /* 0x2B04766E: push esi */ 3934 RECOMP_ICALL(MEM32(0x2B0B5900)); /* 0x2B04766F: call dword ptr [0x2b0b5900] */ 3935 RECOMP_FLAGS_IN(); 3936 esi = POP32_VAL(esp); /* 0x2B047675: pop esi */ 3937 L_2B047676: 3938 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B047676: ret */ 3939 RECOMP_REGS_OUT(); 3940 } 3941 3942 void sub_2B047680(void) { 3943 int _fpu_cmp = 0; 3944 uint32_t _cf = 0; 3945 int _df = 1; 3946 uint32_t _flag_k = FK_NONE; 3947 uint32_t _flag_a = 0, _flag_b = 0; 3948 uint32_t _itail_tgt = 0; 3949 RECOMP_REGS_LOCALS 3950 RECOMP_ENTER(0x2B047680u); 3951 3952 L_2B047680: 3953 MEM8(0x2B0EEAA8) = (uint8_t)(1); /* 0x2B047680: mov byte ptr [0x2b0eeaa8], 1 */ 3954 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B047687: ret */ 3955 RECOMP_REGS_OUT(); 3956 } 3957 3958 void sub_2B047690(void) { 3959 int _fpu_cmp = 0; 3960 uint32_t _cf = 0; 3961 int _df = 1; 3962 uint32_t _flag_k = FK_NONE; 3963 uint32_t _flag_a = 0, _flag_b = 0; 3964 uint32_t _itail_tgt = 0; 3965 RECOMP_REGS_LOCALS 3966 RECOMP_ENTER(0x2B047690u); 3967 3968 L_2B047690: 3969 PUSH32(esp, ebp); /* 0x2B047690: push ebp */ 3970 ebp = esp; /* 0x2B047691: mov ebp, esp */ 3971 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x90u); 3972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3973 esp = esp - 0x90u; /* 0x2B047693: sub esp, 0x90 */ 3974 _flag_k = FK_CMP; 3975 PUSH32(esp, esi); /* 0x2B047699: push esi */ 3976 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B04769A: call dword ptr [0x2b0b53cc] */ 3977 RECOMP_FLAGS_IN(); 3978 ecx = eax; /* 0x2B0476A0: mov ecx, eax */ 3979 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B0476A2: call dword ptr [0x2b0b53a4] */ 3980 RECOMP_FLAGS_IN(); 3981 esi = eax; /* 0x2B0476A8: mov esi, eax */ 3982 /* test esi, esi */ /* 0x2B0476AA: test esi, esi */ 3983 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3984 _cf = 0; 3985 _flag_k = FK_TEST; 3986 if (TEST_Z(_flag_a, _flag_b)) goto L_2B047767; /* 0x2B0476AC: je 0x2b047767 */ 3987 L_2B0476B2: 3988 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B0476B2: call dword ptr [0x2b0b5b64] */ 3989 RECOMP_FLAGS_IN(); 3990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBCu); 3991 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3992 eax = eax + 0xBCu; /* 0x2B0476B8: add eax, 0xbc */ 3993 _flag_k = FK_ADD; 3994 ecx = ebp + (-0x8); /* 0x2B0476BD: lea ecx, [ebp - 8] */ 3995 /* cmp ecx, eax */ /* 0x2B0476C0: cmp ecx, eax */ 3996 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3998 _flag_k = FK_CMP; 3999 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0476CB; /* 0x2B0476C2: je 0x2b0476cb */ 4000 L_2B0476C4: 4001 ecx = MEM32(eax); /* 0x2B0476C4: mov ecx, dword ptr [eax] */ 4002 eax = MEM32(eax + 0x4); /* 0x2B0476C6: mov eax, dword ptr [eax + 4] */ 4003 goto L_2B0476D1; /* 0x2B0476C9: jmp 0x2b0476d1 */ 4004 L_2B0476CB: 4005 eax = MEM32(ebp + (-0x4)); /* 0x2B0476CB: mov eax, dword ptr [ebp - 4] */ 4006 ecx = MEM32(ebp + (-0x8)); /* 0x2B0476CE: mov ecx, dword ptr [ebp - 8] */ 4007 L_2B0476D1: 4008 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x54u); 4009 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4010 esi = esi + 0x54u; /* 0x2B0476D1: add esi, 0x54 */ 4011 _flag_k = FK_ADD; 4012 edx = ebp + (-0x8); /* 0x2B0476D4: lea edx, [ebp - 8] */ 4013 /* cmp edx, esi */ /* 0x2B0476D7: cmp edx, esi */ 4014 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4016 _flag_k = FK_CMP; 4017 MEM32(ebp + (-0x10)) = ecx; /* 0x2B0476D9: mov dword ptr [ebp - 0x10], ecx */ 4018 MEM32(ebp + (-0xC)) = eax; /* 0x2B0476DC: mov dword ptr [ebp - 0xc], eax */ 4019 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0476EC; /* 0x2B0476DF: je 0x2b0476ec */ 4020 L_2B0476E1: 4021 eax = MEM32(esi); /* 0x2B0476E1: mov eax, dword ptr [esi] */ 4022 ecx = MEM32(esi + 0x4); /* 0x2B0476E3: mov ecx, dword ptr [esi + 4] */ 4023 MEM32(ebp + (-0x8)) = eax; /* 0x2B0476E6: mov dword ptr [ebp - 8], eax */ 4024 MEM32(ebp + (-0x4)) = ecx; /* 0x2B0476E9: mov dword ptr [ebp - 4], ecx */ 4025 L_2B0476EC: 4026 PUSH32(esp, ebx); /* 0x2B0476EC: push ebx */ 4027 ebx = MEM32(0x2B0B5D6C); /* 0x2B0476ED: mov ebx, dword ptr [0x2b0b5d6c] */ 4028 edx = ebp + (-0x8); /* 0x2B0476F3: lea edx, [ebp - 8] */ 4029 PUSH32(esp, edi); /* 0x2B0476F6: push edi */ 4030 PUSH32(esp, edx); /* 0x2B0476F7: push edx */ 4031 RECOMP_ICALL(ebx); /* 0x2B0476F8: call ebx */ 4032 RECOMP_FLAGS_IN(); 4033 ecx = eax; /* 0x2B0476FA: mov ecx, eax */ 4034 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B0476FC: call dword ptr [0x2b0b5d50] */ 4035 RECOMP_FLAGS_IN(); 4036 PUSH32(esp, eax); /* 0x2B047702: push eax */ 4037 eax = ebp + (-0x90); /* 0x2B047703: lea eax, [ebp - 0x90] */ 4038 PUSH32(esp, 0x2B0E7750u); /* 0x2B047709: push 0x2b0e7750 */ 4039 PUSH32(esp, eax); /* 0x2B04770E: push eax */ 4040 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B04770F: call dword ptr [0x2b0b51f0] */ 4041 RECOMP_FLAGS_IN(); 4042 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4044 esp = esp + 0xCu; /* 0x2B047715: add esp, 0xc */ 4045 _flag_k = FK_ADD; 4046 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4047 ecx = ecx | 0xFFFFFFFFu; /* 0x2B047718: or ecx, 0xffffffff */ 4048 _cf = 0; 4049 _flag_k = FK_TEST; 4050 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4051 eax = 0; /* 0x2B04771B: xor eax, eax */ 4052 _cf = 0; 4053 _flag_k = FK_TEST; 4054 edi = ebp + (-0x90); /* 0x2B04771D: lea edi, [ebp - 0x90] */ 4055 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B047723: repne scasb al, byte ptr es:[edi] */ 4056 ecx = ~ecx; /* 0x2B047725: not ecx */ 4057 PUSH32(esp, ecx); /* 0x2B047727: push ecx */ 4058 ecx = ebp + (-0x90); /* 0x2B047728: lea ecx, [ebp - 0x90] */ 4059 PUSH32(esp, ecx); /* 0x2B04772E: push ecx */ 4060 PUSH32(esp, 0x3Fu); /* 0x2B04772F: push 0x3f */ 4061 PUSH32(esp, 3); /* 0x2B047731: push 3 */ 4062 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B047733: call dword ptr [0x2b0b53cc] */ 4063 RECOMP_FLAGS_IN(); 4064 ecx = eax; /* 0x2B047739: mov ecx, eax */ 4065 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B04773B: call dword ptr [0x2b0b53c4] */ 4066 RECOMP_FLAGS_IN(); 4067 edx = ebp + (-0x8); /* 0x2B047741: lea edx, [ebp - 8] */ 4068 /* cmp edx, esi */ /* 0x2B047744: cmp edx, esi */ 4069 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4071 _flag_k = FK_CMP; 4072 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047753; /* 0x2B047746: je 0x2b047753 */ 4073 L_2B047748: 4074 eax = MEM32(esi); /* 0x2B047748: mov eax, dword ptr [esi] */ 4075 ecx = MEM32(esi + 0x4); /* 0x2B04774A: mov ecx, dword ptr [esi + 4] */ 4076 MEM32(ebp + (-0x8)) = eax; /* 0x2B04774D: mov dword ptr [ebp - 8], eax */ 4077 MEM32(ebp + (-0x4)) = ecx; /* 0x2B047750: mov dword ptr [ebp - 4], ecx */ 4078 L_2B047753: 4079 edx = ebp + (-0x10); /* 0x2B047753: lea edx, [ebp - 0x10] */ 4080 PUSH32(esp, edx); /* 0x2B047756: push edx */ 4081 eax = ebp + (-0x8); /* 0x2B047757: lea eax, [ebp - 8] */ 4082 PUSH32(esp, eax); /* 0x2B04775A: push eax */ 4083 RECOMP_ICALL(ebx); /* 0x2B04775B: call ebx */ 4084 RECOMP_FLAGS_IN(); 4085 ecx = eax; /* 0x2B04775D: mov ecx, eax */ 4086 RECOMP_ICALL(MEM32(0x2B0B5E7C)); /* 0x2B04775F: call dword ptr [0x2b0b5e7c] */ 4087 RECOMP_FLAGS_IN(); 4088 edi = POP32_VAL(esp); /* 0x2B047765: pop edi */ 4089 ebx = POP32_VAL(esp); /* 0x2B047766: pop ebx */ 4090 L_2B047767: 4091 esi = POP32_VAL(esp); /* 0x2B047767: pop esi */ 4092 esp = ebp; /* 0x2B047768: mov esp, ebp */ 4093 ebp = POP32_VAL(esp); /* 0x2B04776A: pop ebp */ 4094 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04776B: ret */ 4095 RECOMP_REGS_OUT(); 4096 } 4097 4098 void sub_2B047770(void) { 4099 int _fpu_cmp = 0; 4100 uint32_t _cf = 0; 4101 int _df = 1; 4102 uint32_t _flag_k = FK_NONE; 4103 uint32_t _flag_a = 0, _flag_b = 0; 4104 uint32_t _itail_tgt = 0; 4105 RECOMP_REGS_LOCALS 4106 RECOMP_ENTER(0x2B047770u); 4107 4108 goto L_2B047770; 4109 L_2B0471F0: 4110 PUSH32(esp, ebp); /* 0x2B0471F0: push ebp */ 4111 ebp = esp; /* 0x2B0471F1: mov ebp, esp */ 4112 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4114 esp = esp - 0xCu; /* 0x2B0471F3: sub esp, 0xc */ 4115 _flag_k = FK_CMP; 4116 PUSH32(esp, ebx); /* 0x2B0471F6: push ebx */ 4117 PUSH32(esp, esi); /* 0x2B0471F7: push esi */ 4118 esi = MEM32(0x2B0B53CC); /* 0x2B0471F8: mov esi, dword ptr [0x2b0b53cc] */ 4119 PUSH32(esp, edi); /* 0x2B0471FE: push edi */ 4120 ebx = ecx; /* 0x2B0471FF: mov ebx, ecx */ 4121 RECOMP_ICALL(esi); /* 0x2B047201: call esi */ 4122 RECOMP_FLAGS_IN(); 4123 ecx = eax; /* 0x2B047203: mov ecx, eax */ 4124 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B047205: call dword ptr [0x2b0b53a4] */ 4125 RECOMP_FLAGS_IN(); 4126 edi = eax; /* 0x2B04720B: mov edi, eax */ 4127 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4128 eax = 0; /* 0x2B04720D: xor eax, eax */ 4129 _cf = 0; 4130 _flag_k = FK_TEST; 4131 /* cmp edi, eax */ /* 0x2B04720F: cmp edi, eax */ 4132 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4134 _flag_k = FK_CMP; 4135 MEM32(ebp + (-0x4)) = edi; /* 0x2B047211: mov dword ptr [ebp - 4], edi */ 4136 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047291; /* 0x2B047214: je 0x2b047291 */ 4137 L_2B047216: 4138 MEM32(ebp + (-0xC)) = eax; /* 0x2B047216: mov dword ptr [ebp - 0xc], eax */ 4139 MEM32(ebp + (-0x8)) = eax; /* 0x2B047219: mov dword ptr [ebp - 8], eax */ 4140 eax = ebp + (-0xC); /* 0x2B04721C: lea eax, [ebp - 0xc] */ 4141 PUSH32(esp, eax); /* 0x2B04721F: push eax */ 4142 RECOMP_ICALL(esi); /* 0x2B047220: call esi */ 4143 RECOMP_FLAGS_IN(); 4144 ecx = eax; /* 0x2B047222: mov ecx, eax */ 4145 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B047224: call dword ptr [0x2b0b53ac] */ 4146 RECOMP_FLAGS_IN(); 4147 SET_LO8(eax, MEM8(edi + 0x70)); /* 0x2B04722A: mov al, byte ptr [edi + 0x70] */ 4148 /* test LO8(eax), LO8(eax) */ /* 0x2B04722D: test al, al */ 4149 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4150 _cf = 0; 4151 _flag_k = FK_NARROW(FK_TEST, 24); 4152 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B047240; /* 0x2B04722F: jne 0x2b047240 */ 4153 L_2B047231: 4154 PUSH32(esp, edi); /* 0x2B047231: push edi */ 4155 RECOMP_ICALL(MEM32(0x2B0B596C)); /* 0x2B047232: call dword ptr [0x2b0b596c] */ 4156 RECOMP_FLAGS_IN(); 4157 ecx = eax; /* 0x2B047238: mov ecx, eax */ 4158 RECOMP_ICALL(MEM32(0x2B0B5920)); /* 0x2B04723A: call dword ptr [0x2b0b5920] */ 4159 RECOMP_FLAGS_IN(); 4160 L_2B047240: 4161 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4162 esi = 0; /* 0x2B047240: xor esi, esi */ 4163 _cf = 0; 4164 _flag_k = FK_TEST; 4165 edi = ebx + 0x3C; /* 0x2B047242: lea edi, [ebx + 0x3c] */ 4166 L_2B047245: 4167 ecx = ebp + (-0xC); /* 0x2B047245: lea ecx, [ebp - 0xc] */ 4168 PUSH32(esp, ecx); /* 0x2B047248: push ecx */ 4169 ecx = MEM32(edi); /* 0x2B047249: mov ecx, dword ptr [edi] */ 4170 RECOMP_ICALL(MEM32(0x2B0B5814)); /* 0x2B04724B: call dword ptr [0x2b0b5814] */ 4171 RECOMP_FLAGS_IN(); 4172 /* test LO8(eax), LO8(eax) */ /* 0x2B047251: test al, al */ 4173 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4174 _cf = 0; 4175 _flag_k = FK_NARROW(FK_TEST, 24); 4176 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04725E; /* 0x2B047253: jne 0x2b04725e */ 4177 L_2B047255: 4178 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 4179 esi = esi + 1; /* 0x2B047255: inc esi */ 4180 _flag_k = FK_INC; 4181 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 4182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4183 edi = edi + 8; /* 0x2B047256: add edi, 8 */ 4184 _flag_k = FK_ADD; 4185 /* cmp esi, 6 */ /* 0x2B047259: cmp esi, 6 */ 4186 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(6); 4187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4188 _flag_k = FK_CMP; 4189 RECOMP_BACKEDGE(); 4190 if (CMP_L(_flag_a, _flag_b)) goto L_2B047245; /* 0x2B04725C: jl 0x2b047245 */ 4191 L_2B04725E: 4192 eax = MEM32(ebp + (-0x4)); /* 0x2B04725E: mov eax, dword ptr [ebp - 4] */ 4193 ecx = MEM32(ebx + 0x30); /* 0x2B047261: mov ecx, dword ptr [ebx + 0x30] */ 4194 ecx = MEM32(ebx + ecx * 8 + 0x3C); /* 0x2B047264: mov ecx, dword ptr [ebx + ecx*8 + 0x3c] */ 4195 edx = ebp + (-0xC); /* 0x2B047268: lea edx, [ebp - 0xc] */ 4196 PUSH32(esp, edx); /* 0x2B04726B: push edx */ 4197 PUSH32(esp, eax); /* 0x2B04726C: push eax */ 4198 RECOMP_ICALL(MEM32(0x2B0B5918)); /* 0x2B04726D: call dword ptr [0x2b0b5918] */ 4199 RECOMP_FLAGS_IN(); 4200 edx = MEM32(ebx + 0x30); /* 0x2B047273: mov edx, dword ptr [ebx + 0x30] */ 4201 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4202 edx = edx + 1; /* 0x2B047276: inc edx */ 4203 _flag_k = FK_INC; 4204 PUSH32(esp, edx); /* 0x2B047277: push edx */ 4205 eax = ebp + (-0xC); /* 0x2B047278: lea eax, [ebp - 0xc] */ 4206 PUSH32(esp, eax); /* 0x2B04727B: push eax */ 4207 ecx = ebx; /* 0x2B04727C: mov ecx, ebx */ 4208 RECOMP_ICALL(0x2B047180u); /* 0x2B04727E: call 0x2b047180 */ /* not lifted */ 4209 RECOMP_FLAGS_IN(); 4210 ecx = ebx; /* 0x2B047283: mov ecx, ebx */ 4211 RECOMP_ICALL(0x2B047150u); /* 0x2B047285: call 0x2b047150 */ /* not lifted */ 4212 RECOMP_FLAGS_IN(); 4213 ecx = ebx; /* 0x2B04728A: mov ecx, ebx */ 4214 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04728C: call 0x2b03a2b0 */ /* not lifted */ 4215 RECOMP_FLAGS_IN(); 4216 L_2B047291: 4217 edi = POP32_VAL(esp); /* 0x2B047291: pop edi */ 4218 esi = POP32_VAL(esp); /* 0x2B047292: pop esi */ 4219 ebx = POP32_VAL(esp); /* 0x2B047293: pop ebx */ 4220 esp = ebp; /* 0x2B047294: mov esp, ebp */ 4221 ebp = POP32_VAL(esp); /* 0x2B047296: pop ebp */ 4222 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B047297: ret */ 4223 L_2B047770: 4224 ecx = MEM32(0x2B0EEAA4); /* 0x2B047770: mov ecx, dword ptr [0x2b0eeaa4] */ 4225 RECOMP_BACKEDGE(); 4226 goto L_2B0471F0; /* 0x2B047776: jmp 0x2b0471f0 */ 4227 { RECOMP_REGS_OUT(); return; } /* end of function */ 4228 RECOMP_REGS_OUT(); 4229 } 4230 4231 void sub_2B047780(void) { 4232 int _fpu_cmp = 0; 4233 uint32_t _cf = 0; 4234 int _df = 1; 4235 uint32_t _flag_k = FK_NONE; 4236 uint32_t _flag_a = 0, _flag_b = 0; 4237 uint32_t _itail_tgt = 0; 4238 RECOMP_REGS_LOCALS 4239 RECOMP_ENTER(0x2B047780u); 4240 4241 L_2B047780: 4242 PUSH32(esp, ebp); /* 0x2B047780: push ebp */ 4243 ebp = esp; /* 0x2B047781: mov ebp, esp */ 4244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4246 esp = esp - 8; /* 0x2B047783: sub esp, 8 */ 4247 _flag_k = FK_CMP; 4248 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4249 eax = 0; /* 0x2B047786: xor eax, eax */ 4250 _cf = 0; 4251 _flag_k = FK_TEST; 4252 MEM32(ebp + (-0x8)) = eax; /* 0x2B047788: mov dword ptr [ebp - 8], eax */ 4253 MEM32(ebp + (-0x4)) = eax; /* 0x2B04778B: mov dword ptr [ebp - 4], eax */ 4254 eax = ebp + (-0x8); /* 0x2B04778E: lea eax, [ebp - 8] */ 4255 PUSH32(esp, eax); /* 0x2B047791: push eax */ 4256 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B047792: call dword ptr [0x2b0b53cc] */ 4257 RECOMP_FLAGS_IN(); 4258 ecx = eax; /* 0x2B047798: mov ecx, eax */ 4259 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B04779A: call dword ptr [0x2b0b53ac] */ 4260 RECOMP_FLAGS_IN(); 4261 ecx = ebp + (-0x8); /* 0x2B0477A0: lea ecx, [ebp - 8] */ 4262 PUSH32(esp, ecx); /* 0x2B0477A3: push ecx */ 4263 ecx = MEM32(0x2B0EEAA4); /* 0x2B0477A4: mov ecx, dword ptr [0x2b0eeaa4] */ 4264 RECOMP_ICALL(0x2B0472A0u); /* 0x2B0477AA: call 0x2b0472a0 */ /* not lifted */ 4265 RECOMP_FLAGS_IN(); 4266 esp = ebp; /* 0x2B0477AF: mov esp, ebp */ 4267 ebp = POP32_VAL(esp); /* 0x2B0477B1: pop ebp */ 4268 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0477B2: ret */ 4269 RECOMP_REGS_OUT(); 4270 } 4271 4272 void sub_2B0477C0(void) { 4273 int _fpu_cmp = 0; 4274 uint32_t _cf = 0; 4275 int _df = 1; 4276 uint32_t _flag_k = FK_NONE; 4277 uint32_t _flag_a = 0, _flag_b = 0; 4278 uint32_t _itail_tgt = 0; 4279 RECOMP_REGS_LOCALS 4280 RECOMP_ENTER(0x2B0477C0u); 4281 4282 L_2B0477C0: 4283 PUSH32(esp, ebp); /* 0x2B0477C0: push ebp */ 4284 ebp = esp; /* 0x2B0477C1: mov ebp, esp */ 4285 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4287 esp = esp - 8; /* 0x2B0477C3: sub esp, 8 */ 4288 _flag_k = FK_CMP; 4289 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4290 eax = 0; /* 0x2B0477C6: xor eax, eax */ 4291 _cf = 0; 4292 _flag_k = FK_TEST; 4293 MEM32(ebp + (-0x8)) = eax; /* 0x2B0477C8: mov dword ptr [ebp - 8], eax */ 4294 MEM32(ebp + (-0x4)) = eax; /* 0x2B0477CB: mov dword ptr [ebp - 4], eax */ 4295 eax = ebp + (-0x8); /* 0x2B0477CE: lea eax, [ebp - 8] */ 4296 PUSH32(esp, eax); /* 0x2B0477D1: push eax */ 4297 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0477D2: call dword ptr [0x2b0b53cc] */ 4298 RECOMP_FLAGS_IN(); 4299 ecx = eax; /* 0x2B0477D8: mov ecx, eax */ 4300 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B0477DA: call dword ptr [0x2b0b53ac] */ 4301 RECOMP_FLAGS_IN(); 4302 ecx = ebp + (-0x8); /* 0x2B0477E0: lea ecx, [ebp - 8] */ 4303 PUSH32(esp, ecx); /* 0x2B0477E3: push ecx */ 4304 ecx = MEM32(0x2B0EEAA4); /* 0x2B0477E4: mov ecx, dword ptr [0x2b0eeaa4] */ 4305 RECOMP_ICALL(0x2B0472E0u); /* 0x2B0477EA: call 0x2b0472e0 */ /* not lifted */ 4306 RECOMP_FLAGS_IN(); 4307 esp = ebp; /* 0x2B0477EF: mov esp, ebp */ 4308 ebp = POP32_VAL(esp); /* 0x2B0477F1: pop ebp */ 4309 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0477F2: ret */ 4310 RECOMP_REGS_OUT(); 4311 } 4312 4313 void sub_2B047800(void) { 4314 int _fpu_cmp = 0; 4315 uint32_t _cf = 0; 4316 int _df = 1; 4317 uint32_t _flag_k = FK_NONE; 4318 uint32_t _flag_a = 0, _flag_b = 0; 4319 uint32_t _itail_tgt = 0; 4320 RECOMP_REGS_LOCALS 4321 RECOMP_ENTER(0x2B047800u); 4322 4323 L_2B047800: 4324 PUSH32(esp, ebp); /* 0x2B047800: push ebp */ 4325 ebp = esp; /* 0x2B047801: mov ebp, esp */ 4326 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x110u); 4327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4328 esp = esp - 0x110u; /* 0x2B047803: sub esp, 0x110 */ 4329 _flag_k = FK_CMP; 4330 PUSH32(esp, ebx); /* 0x2B047809: push ebx */ 4331 ebx = MEM32(0x2B0B53CC); /* 0x2B04780A: mov ebx, dword ptr [0x2b0b53cc] */ 4332 PUSH32(esp, esi); /* 0x2B047810: push esi */ 4333 RECOMP_ICALL(ebx); /* 0x2B047811: call ebx */ 4334 RECOMP_FLAGS_IN(); 4335 ecx = eax; /* 0x2B047813: mov ecx, eax */ 4336 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B047815: call dword ptr [0x2b0b53a4] */ 4337 RECOMP_FLAGS_IN(); 4338 esi = eax; /* 0x2B04781B: mov esi, eax */ 4339 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4340 eax = 0; /* 0x2B04781D: xor eax, eax */ 4341 _cf = 0; 4342 _flag_k = FK_TEST; 4343 /* cmp esi, eax */ /* 0x2B04781F: cmp esi, eax */ 4344 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4346 _flag_k = FK_CMP; 4347 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0478D8; /* 0x2B047821: je 0x2b0478d8 */ 4348 L_2B047827: 4349 MEM32(ebp + (-0x10)) = eax; /* 0x2B047827: mov dword ptr [ebp - 0x10], eax */ 4350 MEM32(ebp + (-0xC)) = eax; /* 0x2B04782A: mov dword ptr [ebp - 0xc], eax */ 4351 eax = ebp + (-0x10); /* 0x2B04782D: lea eax, [ebp - 0x10] */ 4352 PUSH32(esp, eax); /* 0x2B047830: push eax */ 4353 RECOMP_ICALL(ebx); /* 0x2B047831: call ebx */ 4354 RECOMP_FLAGS_IN(); 4355 ecx = eax; /* 0x2B047833: mov ecx, eax */ 4356 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B047835: call dword ptr [0x2b0b53ac] */ 4357 RECOMP_FLAGS_IN(); 4358 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x54u); 4359 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4360 esi = esi + 0x54u; /* 0x2B04783B: add esi, 0x54 */ 4361 _flag_k = FK_ADD; 4362 ecx = ebp + (-0x8); /* 0x2B04783E: lea ecx, [ebp - 8] */ 4363 /* cmp ecx, esi */ /* 0x2B047841: cmp ecx, esi */ 4364 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 4365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4366 _flag_k = FK_CMP; 4367 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047850; /* 0x2B047843: je 0x2b047850 */ 4368 L_2B047845: 4369 edx = MEM32(esi); /* 0x2B047845: mov edx, dword ptr [esi] */ 4370 eax = MEM32(esi + 0x4); /* 0x2B047847: mov eax, dword ptr [esi + 4] */ 4371 MEM32(ebp + (-0x8)) = edx; /* 0x2B04784A: mov dword ptr [ebp - 8], edx */ 4372 MEM32(ebp + (-0x4)) = eax; /* 0x2B04784D: mov dword ptr [ebp - 4], eax */ 4373 L_2B047850: 4374 PUSH32(esp, edi); /* 0x2B047850: push edi */ 4375 edi = MEM32(0x2B0B5D6C); /* 0x2B047851: mov edi, dword ptr [0x2b0b5d6c] */ 4376 ecx = ebp + (-0x10); /* 0x2B047857: lea ecx, [ebp - 0x10] */ 4377 PUSH32(esp, ecx); /* 0x2B04785A: push ecx */ 4378 RECOMP_ICALL(edi); /* 0x2B04785B: call edi */ 4379 RECOMP_FLAGS_IN(); 4380 ecx = eax; /* 0x2B04785D: mov ecx, eax */ 4381 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B04785F: call dword ptr [0x2b0b5d50] */ 4382 RECOMP_FLAGS_IN(); 4383 PUSH32(esp, eax); /* 0x2B047865: push eax */ 4384 edx = ebp + (-0x8); /* 0x2B047866: lea edx, [ebp - 8] */ 4385 PUSH32(esp, edx); /* 0x2B047869: push edx */ 4386 RECOMP_ICALL(edi); /* 0x2B04786A: call edi */ 4387 RECOMP_FLAGS_IN(); 4388 ecx = eax; /* 0x2B04786C: mov ecx, eax */ 4389 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B04786E: call dword ptr [0x2b0b5d50] */ 4390 RECOMP_FLAGS_IN(); 4391 PUSH32(esp, eax); /* 0x2B047874: push eax */ 4392 eax = ebp + (-0x110); /* 0x2B047875: lea eax, [ebp - 0x110] */ 4393 PUSH32(esp, 0x2B0E776Cu); /* 0x2B04787B: push 0x2b0e776c */ 4394 PUSH32(esp, eax); /* 0x2B047880: push eax */ 4395 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B047881: call dword ptr [0x2b0b51f0] */ 4396 RECOMP_FLAGS_IN(); 4397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4399 esp = esp + 0x10u; /* 0x2B047887: add esp, 0x10 */ 4400 _flag_k = FK_ADD; 4401 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4402 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04788A: or ecx, 0xffffffff */ 4403 _cf = 0; 4404 _flag_k = FK_TEST; 4405 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4406 eax = 0; /* 0x2B04788D: xor eax, eax */ 4407 _cf = 0; 4408 _flag_k = FK_TEST; 4409 edi = ebp + (-0x110); /* 0x2B04788F: lea edi, [ebp - 0x110] */ 4410 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B047895: repne scasb al, byte ptr es:[edi] */ 4411 ecx = ~ecx; /* 0x2B047897: not ecx */ 4412 PUSH32(esp, ecx); /* 0x2B047899: push ecx */ 4413 ecx = ebp + (-0x110); /* 0x2B04789A: lea ecx, [ebp - 0x110] */ 4414 PUSH32(esp, ecx); /* 0x2B0478A0: push ecx */ 4415 PUSH32(esp, 0x3Fu); /* 0x2B0478A1: push 0x3f */ 4416 PUSH32(esp, 3); /* 0x2B0478A3: push 3 */ 4417 RECOMP_ICALL(ebx); /* 0x2B0478A5: call ebx */ 4418 RECOMP_FLAGS_IN(); 4419 ecx = eax; /* 0x2B0478A7: mov ecx, eax */ 4420 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B0478A9: call dword ptr [0x2b0b53c4] */ 4421 RECOMP_FLAGS_IN(); 4422 edx = ebp + (-0x8); /* 0x2B0478AF: lea edx, [ebp - 8] */ 4423 /* cmp edx, esi */ /* 0x2B0478B2: cmp edx, esi */ 4424 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4426 _flag_k = FK_CMP; 4427 edi = POP32_VAL(esp); /* 0x2B0478B4: pop edi */ 4428 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0478C2; /* 0x2B0478B5: je 0x2b0478c2 */ 4429 L_2B0478B7: 4430 eax = MEM32(esi); /* 0x2B0478B7: mov eax, dword ptr [esi] */ 4431 ecx = MEM32(esi + 0x4); /* 0x2B0478B9: mov ecx, dword ptr [esi + 4] */ 4432 MEM32(ebp + (-0x8)) = eax; /* 0x2B0478BC: mov dword ptr [ebp - 8], eax */ 4433 MEM32(ebp + (-0x4)) = ecx; /* 0x2B0478BF: mov dword ptr [ebp - 4], ecx */ 4434 L_2B0478C2: 4435 edx = ebp + (-0x10); /* 0x2B0478C2: lea edx, [ebp - 0x10] */ 4436 PUSH32(esp, edx); /* 0x2B0478C5: push edx */ 4437 eax = ebp + (-0x8); /* 0x2B0478C6: lea eax, [ebp - 8] */ 4438 PUSH32(esp, eax); /* 0x2B0478C9: push eax */ 4439 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0478CA: call dword ptr [0x2b0b5d6c] */ 4440 RECOMP_FLAGS_IN(); 4441 ecx = eax; /* 0x2B0478D0: mov ecx, eax */ 4442 RECOMP_ICALL(MEM32(0x2B0B5E7C)); /* 0x2B0478D2: call dword ptr [0x2b0b5e7c] */ 4443 RECOMP_FLAGS_IN(); 4444 L_2B0478D8: 4445 esi = POP32_VAL(esp); /* 0x2B0478D8: pop esi */ 4446 ebx = POP32_VAL(esp); /* 0x2B0478D9: pop ebx */ 4447 esp = ebp; /* 0x2B0478DA: mov esp, ebp */ 4448 ebp = POP32_VAL(esp); /* 0x2B0478DC: pop ebp */ 4449 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0478DD: ret */ 4450 RECOMP_REGS_OUT(); 4451 } 4452 4453 void sub_2B0478E0(void) { 4454 int _fpu_cmp = 0; 4455 uint32_t _cf = 0; 4456 int _df = 1; 4457 uint32_t _flag_k = FK_NONE; 4458 uint32_t _flag_a = 0, _flag_b = 0; 4459 uint32_t _itail_tgt = 0; 4460 RECOMP_REGS_LOCALS 4461 RECOMP_ENTER(0x2B0478E0u); 4462 4463 L_2B0478E0: 4464 PUSH32(esp, ebp); /* 0x2B0478E0: push ebp */ 4465 ebp = esp; /* 0x2B0478E1: mov ebp, esp */ 4466 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4468 esp = esp - 8; /* 0x2B0478E3: sub esp, 8 */ 4469 _flag_k = FK_CMP; 4470 eax = ebp + (-0x8); /* 0x2B0478E6: lea eax, [ebp - 8] */ 4471 PUSH32(esp, eax); /* 0x2B0478E9: push eax */ 4472 MEM32(ebp + (-0x8)) = 0; /* 0x2B0478EA: mov dword ptr [ebp - 8], 0 */ 4473 MEM32(ebp + (-0x4)) = 0; /* 0x2B0478F1: mov dword ptr [ebp - 4], 0 */ 4474 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0478F8: call dword ptr [0x2b0b53cc] */ 4475 RECOMP_FLAGS_IN(); 4476 ecx = eax; /* 0x2B0478FE: mov ecx, eax */ 4477 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B047900: call dword ptr [0x2b0b53ac] */ 4478 RECOMP_FLAGS_IN(); 4479 ecx = ebp + (-0x8); /* 0x2B047906: lea ecx, [ebp - 8] */ 4480 PUSH32(esp, ecx); /* 0x2B047909: push ecx */ 4481 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B04790A: call dword ptr [0x2b0b5d6c] */ 4482 RECOMP_FLAGS_IN(); 4483 ecx = eax; /* 0x2B047910: mov ecx, eax */ 4484 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B047912: call dword ptr [0x2b0b5d50] */ 4485 RECOMP_FLAGS_IN(); 4486 ecx = MEM32(0x2B0EF104); /* 0x2B047918: mov ecx, dword ptr [0x2b0ef104] */ 4487 /* test ecx, ecx */ /* 0x2B04791E: test ecx, ecx */ 4488 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4489 _cf = 0; 4490 _flag_k = FK_TEST; 4491 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04792D; /* 0x2B047920: je 0x2b04792d */ 4492 L_2B047922: 4493 PUSH32(esp, eax); /* 0x2B047922: push eax */ 4494 PUSH32(esp, 0x2B0E7794u); /* 0x2B047923: push 0x2b0e7794 */ 4495 RECOMP_ICALL(0x2B08D480u); /* 0x2B047928: call 0x2b08d480 */ /* not lifted */ 4496 RECOMP_FLAGS_IN(); 4497 L_2B04792D: 4498 esp = ebp; /* 0x2B04792D: mov esp, ebp */ 4499 ebp = POP32_VAL(esp); /* 0x2B04792F: pop ebp */ 4500 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B047930: ret */ 4501 RECOMP_REGS_OUT(); 4502 } 4503 4504 void sub_2B047940(void) { 4505 int _fpu_cmp = 0; 4506 uint32_t _cf = 0; 4507 int _df = 1; 4508 uint32_t _flag_k = FK_NONE; 4509 uint32_t _flag_a = 0, _flag_b = 0; 4510 uint32_t _itail_tgt = 0; 4511 RECOMP_REGS_LOCALS 4512 RECOMP_ENTER(0x2B047940u); 4513 4514 L_2B047940: 4515 PUSH32(esp, ebp); /* 0x2B047940: push ebp */ 4516 ebp = esp; /* 0x2B047941: mov ebp, esp */ 4517 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B047943: push -1 */ 4518 PUSH32(esp, 0x2B0AF1EBu); /* 0x2B047945: push 0x2b0af1eb */ 4519 eax = MEM32(FS_BASE + (0)); /* 0x2B04794A: mov eax, dword ptr fs:[0] */ 4520 PUSH32(esp, eax); /* 0x2B047950: push eax */ 4521 MEM32(FS_BASE + (0)) = esp; /* 0x2B047951: mov dword ptr fs:[0], esp */ 4522 PUSH32(esp, ecx); /* 0x2B047958: push ecx */ 4523 eax = MEM32(0x2B0EEAE8); /* 0x2B047959: mov eax, dword ptr [0x2b0eeae8] */ 4524 /* test eax, eax */ /* 0x2B04795E: test eax, eax */ 4525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4526 _cf = 0; 4527 _flag_k = FK_TEST; 4528 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04799B; /* 0x2B047960: jne 0x2b04799b */ 4529 L_2B047962: 4530 PUSH32(esp, 1); /* 0x2B047962: push 1 */ 4531 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047964: call 0x2b0ab212 */ /* not lifted */ 4532 RECOMP_FLAGS_IN(); 4533 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4534 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4535 esp = esp + 4; /* 0x2B047969: add esp, 4 */ 4536 _flag_k = FK_ADD; 4537 MEM32(ebp + (-0x10)) = eax; /* 0x2B04796C: mov dword ptr [ebp - 0x10], eax */ 4538 /* test eax, eax */ /* 0x2B04796F: test eax, eax */ 4539 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4540 _cf = 0; 4541 _flag_k = FK_TEST; 4542 MEM32(ebp + (-0x4)) = 0; /* 0x2B047971: mov dword ptr [ebp - 4], 0 */ 4543 if (TEST_Z(_flag_a, _flag_b)) goto L_2B047994; /* 0x2B047978: je 0x2b047994 */ 4544 L_2B04797A: 4545 ecx = eax; /* 0x2B04797A: mov ecx, eax */ 4546 RECOMP_ICALL(0x2B049170u); /* 0x2B04797C: call 0x2b049170 */ /* not lifted */ 4547 RECOMP_FLAGS_IN(); 4548 MEM32(0x2B0EEAE8) = eax; /* 0x2B047981: mov dword ptr [0x2b0eeae8], eax */ 4549 ecx = MEM32(ebp + (-0xC)); /* 0x2B047986: mov ecx, dword ptr [ebp - 0xc] */ 4550 MEM32(FS_BASE + (0)) = ecx; /* 0x2B047989: mov dword ptr fs:[0], ecx */ 4551 esp = ebp; /* 0x2B047990: mov esp, ebp */ 4552 ebp = POP32_VAL(esp); /* 0x2B047992: pop ebp */ 4553 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B047993: ret */ 4554 L_2B047994: 4555 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4556 eax = 0; /* 0x2B047994: xor eax, eax */ 4557 _cf = 0; 4558 _flag_k = FK_TEST; 4559 MEM32(0x2B0EEAE8) = eax; /* 0x2B047996: mov dword ptr [0x2b0eeae8], eax */ 4560 L_2B04799B: 4561 ecx = MEM32(ebp + (-0xC)); /* 0x2B04799B: mov ecx, dword ptr [ebp - 0xc] */ 4562 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04799E: mov dword ptr fs:[0], ecx */ 4563 esp = ebp; /* 0x2B0479A5: mov esp, ebp */ 4564 ebp = POP32_VAL(esp); /* 0x2B0479A7: pop ebp */ 4565 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0479A8: ret */ 4566 RECOMP_REGS_OUT(); 4567 } 4568 4569 void sub_2B0479B0(void) { 4570 int _fpu_cmp = 0; 4571 uint32_t _cf = 0; 4572 int _df = 1; 4573 uint32_t _flag_k = FK_NONE; 4574 uint32_t _flag_a = 0, _flag_b = 0; 4575 uint32_t _itail_tgt = 0; 4576 RECOMP_REGS_LOCALS 4577 RECOMP_ENTER(0x2B0479B0u); 4578 4579 L_2B0479B0: 4580 eax = MEM32(0x2B0EEAE8); /* 0x2B0479B0: mov eax, dword ptr [0x2b0eeae8] */ 4581 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0479B5: ret */ 4582 RECOMP_REGS_OUT(); 4583 } 4584 4585 void sub_2B0479C0(void) { 4586 int _fpu_cmp = 0; 4587 uint32_t _cf = 0; 4588 int _df = 1; 4589 uint32_t _flag_k = FK_NONE; 4590 uint32_t _flag_a = 0, _flag_b = 0; 4591 uint32_t _itail_tgt = 0; 4592 RECOMP_REGS_LOCALS 4593 RECOMP_ENTER(0x2B0479C0u); 4594 4595 L_2B0479C0: 4596 PUSH32(esp, ebp); /* 0x2B0479C0: push ebp */ 4597 ebp = esp; /* 0x2B0479C1: mov ebp, esp */ 4598 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0479C3: push -1 */ 4599 PUSH32(esp, 0x2B0AF2B0u); /* 0x2B0479C5: push 0x2b0af2b0 */ 4600 eax = MEM32(FS_BASE + (0)); /* 0x2B0479CA: mov eax, dword ptr fs:[0] */ 4601 PUSH32(esp, eax); /* 0x2B0479D0: push eax */ 4602 MEM32(FS_BASE + (0)) = esp; /* 0x2B0479D1: mov dword ptr fs:[0], esp */ 4603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA0u); 4604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4605 esp = esp - 0xA0u; /* 0x2B0479D8: sub esp, 0xa0 */ 4606 _flag_k = FK_CMP; 4607 PUSH32(esp, ebx); /* 0x2B0479DE: push ebx */ 4608 PUSH32(esp, esi); /* 0x2B0479DF: push esi */ 4609 esi = ecx; /* 0x2B0479E0: mov esi, ecx */ 4610 PUSH32(esp, edi); /* 0x2B0479E2: push edi */ 4611 MEM32(ebp + (-0xAC)) = esi; /* 0x2B0479E3: mov dword ptr [ebp - 0xac], esi */ 4612 RECOMP_ICALL(0x2B03A220u); /* 0x2B0479E9: call 0x2b03a220 */ /* not lifted */ 4613 RECOMP_FLAGS_IN(); 4614 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4615 ebx = 0; /* 0x2B0479EE: xor ebx, ebx */ 4616 _cf = 0; 4617 _flag_k = FK_TEST; 4618 MEM32(esi + 0x28) = ebx; /* 0x2B0479F0: mov dword ptr [esi + 0x28], ebx */ 4619 MEM32(esi + 0x2C) = ebx; /* 0x2B0479F3: mov dword ptr [esi + 0x2c], ebx */ 4620 MEM32(esi + 0x30) = ebx; /* 0x2B0479F6: mov dword ptr [esi + 0x30], ebx */ 4621 MEM8(esi + 0x4C) = (uint8_t)(LO8(ebx)); /* 0x2B0479F9: mov byte ptr [esi + 0x4c], bl */ 4622 MEM32(esi + 0x5C) = ebx; /* 0x2B0479FC: mov dword ptr [esi + 0x5c], ebx */ 4623 MEM32(esi + 0x60) = ebx; /* 0x2B0479FF: mov dword ptr [esi + 0x60], ebx */ 4624 MEM32(esi + 0x64) = ebx; /* 0x2B047A02: mov dword ptr [esi + 0x64], ebx */ 4625 MEM32(esi + 0x68) = ebx; /* 0x2B047A05: mov dword ptr [esi + 0x68], ebx */ 4626 MEM32(esi + 0x6C) = ebx; /* 0x2B047A08: mov dword ptr [esi + 0x6c], ebx */ 4627 MEM32(esi + 0x70) = ebx; /* 0x2B047A0B: mov dword ptr [esi + 0x70], ebx */ 4628 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4629 eax = 0; /* 0x2B047A0E: xor eax, eax */ 4630 _cf = 0; 4631 _flag_k = FK_TEST; 4632 MEM32(esi + 0x28) = eax; /* 0x2B047A10: mov dword ptr [esi + 0x28], eax */ 4633 MEM8(esi + 0x88) = (uint8_t)(LO8(ebx)); /* 0x2B047A13: mov byte ptr [esi + 0x88], bl */ 4634 MEM8(esi + 0x89) = (uint8_t)(LO8(ebx)); /* 0x2B047A19: mov byte ptr [esi + 0x89], bl */ 4635 MEM32(esi + 0xA0) = ebx; /* 0x2B047A1F: mov dword ptr [esi + 0xa0], ebx */ 4636 MEM32(esi + 0xB0) = ebx; /* 0x2B047A25: mov dword ptr [esi + 0xb0], ebx */ 4637 MEM32(esi) = 0x2B0B6A3Cu; /* 0x2B047A2B: mov dword ptr [esi], 0x2b0b6a3c */ 4638 MEM32(esi + 0x2C) = ebx; /* 0x2B047A31: mov dword ptr [esi + 0x2c], ebx */ 4639 eax = MEM32(0x2B0EE9CC); /* 0x2B047A34: mov eax, dword ptr [0x2b0ee9cc] */ 4640 MEM32(esi + 0x4) = eax; /* 0x2B047A39: mov dword ptr [esi + 4], eax */ 4641 ecx = MEM32(0x2B0EE9D0); /* 0x2B047A3C: mov ecx, dword ptr [0x2b0ee9d0] */ 4642 PUSH32(esp, 0x38u); /* 0x2B047A42: push 0x38 */ 4643 MEM32(ebp + (-0x4)) = ebx; /* 0x2B047A44: mov dword ptr [ebp - 4], ebx */ 4644 MEM32(esi + 0x8) = ecx; /* 0x2B047A47: mov dword ptr [esi + 8], ecx */ 4645 MEM32(ebp + (-0x18)) = ebx; /* 0x2B047A4A: mov dword ptr [ebp - 0x18], ebx */ 4646 MEM32(ebp + (-0x14)) = ebx; /* 0x2B047A4D: mov dword ptr [ebp - 0x14], ebx */ 4647 MEM32(ebp + (-0x20)) = ebx; /* 0x2B047A50: mov dword ptr [ebp - 0x20], ebx */ 4648 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B047A53: mov dword ptr [ebp - 0x1c], ebx */ 4649 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047A56: call 0x2b0ab212 */ /* not lifted */ 4650 RECOMP_FLAGS_IN(); 4651 edi = eax; /* 0x2B047A5B: mov edi, eax */ 4652 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4653 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4654 esp = esp + 4; /* 0x2B047A5D: add esp, 4 */ 4655 _flag_k = FK_ADD; 4656 MEM32(ebp + (-0x10)) = edi; /* 0x2B047A60: mov dword ptr [ebp - 0x10], edi */ 4657 /* cmp edi, ebx */ /* 0x2B047A63: cmp edi, ebx */ 4658 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4660 _flag_k = FK_CMP; 4661 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B047A65: mov byte ptr [ebp - 4], 1 */ 4662 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047A90; /* 0x2B047A69: je 0x2b047a90 */ 4663 L_2B047A6B: 4664 edx = MEM32(0x2B0EE9DC); /* 0x2B047A6B: mov edx, dword ptr [0x2b0ee9dc] */ 4665 PUSH32(esp, edx); /* 0x2B047A71: push edx */ 4666 PUSH32(esp, 0xFA2u); /* 0x2B047A72: push 0xfa2 */ 4667 PUSH32(esp, 0x17Eu); /* 0x2B047A77: push 0x17e */ 4668 eax = ebp + (-0x18); /* 0x2B047A7C: lea eax, [ebp - 0x18] */ 4669 PUSH32(esp, eax); /* 0x2B047A7F: push eax */ 4670 ecx = edi; /* 0x2B047A80: mov ecx, edi */ 4671 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B047A82: call dword ptr [0x2b0b5948] */ 4672 RECOMP_FLAGS_IN(); 4673 MEM32(edi) = 0x2B0B68F4u; /* 0x2B047A88: mov dword ptr [edi], 0x2b0b68f4 */ 4674 goto L_2B047A92; /* 0x2B047A8E: jmp 0x2b047a92 */ 4675 L_2B047A90: 4676 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4677 edi = 0; /* 0x2B047A90: xor edi, edi */ 4678 _cf = 0; 4679 _flag_k = FK_TEST; 4680 L_2B047A92: 4681 MEM32(esi + 0x34) = edi; /* 0x2B047A92: mov dword ptr [esi + 0x34], edi */ 4682 ecx = ebp + (-0x20); /* 0x2B047A95: lea ecx, [ebp - 0x20] */ 4683 MEM8(edi + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B047A98: mov byte ptr [edi + 8], bl */ 4684 PUSH32(esp, ecx); /* 0x2B047A9B: push ecx */ 4685 ecx = MEM32(esi + 0x34); /* 0x2B047A9C: mov ecx, dword ptr [esi + 0x34] */ 4686 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047A9F: mov byte ptr [ebp - 4], bl */ 4687 RECOMP_ICALL(MEM32(0x2B0B594C)); /* 0x2B047AA2: call dword ptr [0x2b0b594c] */ 4688 RECOMP_FLAGS_IN(); 4689 edx = MEM32(ebp + (-0x1C)); /* 0x2B047AA8: mov edx, dword ptr [ebp - 0x1c] */ 4690 PUSH32(esp, 0x38u); /* 0x2B047AAB: push 0x38 */ 4691 MEM32(esi + 0x40) = edx; /* 0x2B047AAD: mov dword ptr [esi + 0x40], edx */ 4692 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047AB0: call 0x2b0ab212 */ /* not lifted */ 4693 RECOMP_FLAGS_IN(); 4694 edi = eax; /* 0x2B047AB5: mov edi, eax */ 4695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4697 esp = esp + 4; /* 0x2B047AB7: add esp, 4 */ 4698 _flag_k = FK_ADD; 4699 MEM32(ebp + (-0x10)) = edi; /* 0x2B047ABA: mov dword ptr [ebp - 0x10], edi */ 4700 /* cmp edi, ebx */ /* 0x2B047ABD: cmp edi, ebx */ 4701 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4703 _flag_k = FK_CMP; 4704 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B047ABF: mov byte ptr [ebp - 4], 2 */ 4705 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047AEB; /* 0x2B047AC3: je 0x2b047aeb */ 4706 L_2B047AC5: 4707 eax = MEM32(0x2B0EE9DC); /* 0x2B047AC5: mov eax, dword ptr [0x2b0ee9dc] */ 4708 PUSH32(esp, eax); /* 0x2B047ACA: push eax */ 4709 PUSH32(esp, 0xFA2u); /* 0x2B047ACB: push 0xfa2 */ 4710 PUSH32(esp, 0x17Fu); /* 0x2B047AD0: push 0x17f */ 4711 ecx = ebp + (-0x18); /* 0x2B047AD5: lea ecx, [ebp - 0x18] */ 4712 PUSH32(esp, ecx); /* 0x2B047AD8: push ecx */ 4713 ecx = edi; /* 0x2B047AD9: mov ecx, edi */ 4714 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B047ADB: call dword ptr [0x2b0b5948] */ 4715 RECOMP_FLAGS_IN(); 4716 MEM32(edi) = 0x2B0B68F4u; /* 0x2B047AE1: mov dword ptr [edi], 0x2b0b68f4 */ 4717 eax = edi; /* 0x2B047AE7: mov eax, edi */ 4718 goto L_2B047AED; /* 0x2B047AE9: jmp 0x2b047aed */ 4719 L_2B047AEB: 4720 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4721 eax = 0; /* 0x2B047AEB: xor eax, eax */ 4722 _cf = 0; 4723 _flag_k = FK_TEST; 4724 L_2B047AED: 4725 MEM32(esi + 0x38) = eax; /* 0x2B047AED: mov dword ptr [esi + 0x38], eax */ 4726 edx = ebp + (-0x20); /* 0x2B047AF0: lea edx, [ebp - 0x20] */ 4727 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B047AF3: mov byte ptr [eax + 8], bl */ 4728 ecx = MEM32(esi + 0x38); /* 0x2B047AF6: mov ecx, dword ptr [esi + 0x38] */ 4729 PUSH32(esp, edx); /* 0x2B047AF9: push edx */ 4730 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047AFA: mov byte ptr [ebp - 4], bl */ 4731 RECOMP_ICALL(MEM32(0x2B0B594C)); /* 0x2B047AFD: call dword ptr [0x2b0b594c] */ 4732 RECOMP_FLAGS_IN(); 4733 eax = MEM32(ebp + (-0x1C)); /* 0x2B047B03: mov eax, dword ptr [ebp - 0x1c] */ 4734 PUSH32(esp, 0x64u); /* 0x2B047B06: push 0x64 */ 4735 MEM32(esi + 0x44) = eax; /* 0x2B047B08: mov dword ptr [esi + 0x44], eax */ 4736 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047B0B: call 0x2b0ab212 */ /* not lifted */ 4737 RECOMP_FLAGS_IN(); 4738 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4740 esp = esp + 4; /* 0x2B047B10: add esp, 4 */ 4741 _flag_k = FK_ADD; 4742 MEM32(ebp + (-0x10)) = eax; /* 0x2B047B13: mov dword ptr [ebp - 0x10], eax */ 4743 /* cmp eax, ebx */ /* 0x2B047B16: cmp eax, ebx */ 4744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4746 _flag_k = FK_CMP; 4747 edi = MEM32(0x2B0B58F8); /* 0x2B047B18: mov edi, dword ptr [0x2b0b58f8] */ 4748 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B047B1E: mov byte ptr [ebp - 4], 3 */ 4749 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047B52; /* 0x2B047B22: je 0x2b047b52 */ 4750 L_2B047B24: 4751 ecx = MEM32(0x2B0EE9DC); /* 0x2B047B24: mov ecx, dword ptr [0x2b0ee9dc] */ 4752 PUSH32(esp, ecx); /* 0x2B047B2A: push ecx */ 4753 PUSH32(esp, ebx); /* 0x2B047B2B: push ebx */ 4754 PUSH32(esp, 0x30u); /* 0x2B047B2C: push 0x30 */ 4755 PUSH32(esp, 4); /* 0x2B047B2E: push 4 */ 4756 PUSH32(esp, 0xFAEu); /* 0x2B047B30: push 0xfae */ 4757 PUSH32(esp, 0xDCu); /* 0x2B047B35: push 0xdc */ 4758 PUSH32(esp, ebx); /* 0x2B047B3A: push ebx */ 4759 PUSH32(esp, 0xACu); /* 0x2B047B3B: push 0xac */ 4760 PUSH32(esp, 0x38u); /* 0x2B047B40: push 0x38 */ 4761 PUSH32(esp, 0x3Cu); /* 0x2B047B42: push 0x3c */ 4762 PUSH32(esp, 4); /* 0x2B047B44: push 4 */ 4763 PUSH32(esp, 3); /* 0x2B047B46: push 3 */ 4764 edx = ebp + (-0x18); /* 0x2B047B48: lea edx, [ebp - 0x18] */ 4765 PUSH32(esp, edx); /* 0x2B047B4B: push edx */ 4766 ecx = eax; /* 0x2B047B4C: mov ecx, eax */ 4767 RECOMP_ICALL(edi); /* 0x2B047B4E: call edi */ 4768 RECOMP_FLAGS_IN(); 4769 goto L_2B047B54; /* 0x2B047B50: jmp 0x2b047b54 */ 4770 L_2B047B52: 4771 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4772 eax = 0; /* 0x2B047B52: xor eax, eax */ 4773 _cf = 0; 4774 _flag_k = FK_TEST; 4775 L_2B047B54: 4776 MEM32(esi + 0x50) = eax; /* 0x2B047B54: mov dword ptr [esi + 0x50], eax */ 4777 PUSH32(esp, 0x64u); /* 0x2B047B57: push 0x64 */ 4778 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047B59: mov byte ptr [ebp - 4], bl */ 4779 MEM32(eax + 0x5C) = 0x2B048850u; /* 0x2B047B5C: mov dword ptr [eax + 0x5c], 0x2b048850 */ 4780 MEM32(eax + 0x60) = esi; /* 0x2B047B63: mov dword ptr [eax + 0x60], esi */ 4781 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047B66: call 0x2b0ab212 */ /* not lifted */ 4782 RECOMP_FLAGS_IN(); 4783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4785 esp = esp + 4; /* 0x2B047B6B: add esp, 4 */ 4786 _flag_k = FK_ADD; 4787 MEM32(ebp + (-0x10)) = eax; /* 0x2B047B6E: mov dword ptr [ebp - 0x10], eax */ 4788 /* cmp eax, ebx */ /* 0x2B047B71: cmp eax, ebx */ 4789 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4791 _flag_k = FK_CMP; 4792 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B047B73: mov byte ptr [ebp - 4], 4 */ 4793 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047BA4; /* 0x2B047B77: je 0x2b047ba4 */ 4794 L_2B047B79: 4795 ecx = MEM32(0x2B0EE9DC); /* 0x2B047B79: mov ecx, dword ptr [0x2b0ee9dc] */ 4796 PUSH32(esp, ecx); /* 0x2B047B7F: push ecx */ 4797 PUSH32(esp, ebx); /* 0x2B047B80: push ebx */ 4798 PUSH32(esp, 0x30u); /* 0x2B047B81: push 0x30 */ 4799 PUSH32(esp, 4); /* 0x2B047B83: push 4 */ 4800 PUSH32(esp, 0xFAEu); /* 0x2B047B85: push 0xfae */ 4801 PUSH32(esp, 0x34u); /* 0x2B047B8A: push 0x34 */ 4802 PUSH32(esp, ebx); /* 0x2B047B8C: push ebx */ 4803 PUSH32(esp, 0xACu); /* 0x2B047B8D: push 0xac */ 4804 PUSH32(esp, 0x38u); /* 0x2B047B92: push 0x38 */ 4805 PUSH32(esp, 0x3Cu); /* 0x2B047B94: push 0x3c */ 4806 PUSH32(esp, 1); /* 0x2B047B96: push 1 */ 4807 PUSH32(esp, 3); /* 0x2B047B98: push 3 */ 4808 edx = ebp + (-0x18); /* 0x2B047B9A: lea edx, [ebp - 0x18] */ 4809 PUSH32(esp, edx); /* 0x2B047B9D: push edx */ 4810 ecx = eax; /* 0x2B047B9E: mov ecx, eax */ 4811 RECOMP_ICALL(edi); /* 0x2B047BA0: call edi */ 4812 RECOMP_FLAGS_IN(); 4813 goto L_2B047BA6; /* 0x2B047BA2: jmp 0x2b047ba6 */ 4814 L_2B047BA4: 4815 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4816 eax = 0; /* 0x2B047BA4: xor eax, eax */ 4817 _cf = 0; 4818 _flag_k = FK_TEST; 4819 L_2B047BA6: 4820 MEM32(esi + 0x54) = eax; /* 0x2B047BA6: mov dword ptr [esi + 0x54], eax */ 4821 PUSH32(esp, 0x64u); /* 0x2B047BA9: push 0x64 */ 4822 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047BAB: mov byte ptr [ebp - 4], bl */ 4823 MEM32(eax + 0x5C) = 0x2B048850u; /* 0x2B047BAE: mov dword ptr [eax + 0x5c], 0x2b048850 */ 4824 MEM32(eax + 0x60) = esi; /* 0x2B047BB5: mov dword ptr [eax + 0x60], esi */ 4825 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047BB8: call 0x2b0ab212 */ /* not lifted */ 4826 RECOMP_FLAGS_IN(); 4827 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4829 esp = esp + 4; /* 0x2B047BBD: add esp, 4 */ 4830 _flag_k = FK_ADD; 4831 MEM32(ebp + (-0x10)) = eax; /* 0x2B047BC0: mov dword ptr [ebp - 0x10], eax */ 4832 /* cmp eax, ebx */ /* 0x2B047BC3: cmp eax, ebx */ 4833 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4835 _flag_k = FK_CMP; 4836 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B047BC5: mov byte ptr [ebp - 4], 5 */ 4837 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047BF5; /* 0x2B047BC9: je 0x2b047bf5 */ 4838 L_2B047BCB: 4839 ecx = MEM32(0x2B0EE9DC); /* 0x2B047BCB: mov ecx, dword ptr [0x2b0ee9dc] */ 4840 PUSH32(esp, ecx); /* 0x2B047BD1: push ecx */ 4841 PUSH32(esp, ebx); /* 0x2B047BD2: push ebx */ 4842 PUSH32(esp, 0x30u); /* 0x2B047BD3: push 0x30 */ 4843 PUSH32(esp, ebx); /* 0x2B047BD5: push ebx */ 4844 PUSH32(esp, 0xFAEu); /* 0x2B047BD6: push 0xfae */ 4845 PUSH32(esp, 0x34u); /* 0x2B047BDB: push 0x34 */ 4846 PUSH32(esp, ebx); /* 0x2B047BDD: push ebx */ 4847 PUSH32(esp, 0xACu); /* 0x2B047BDE: push 0xac */ 4848 PUSH32(esp, 0x38u); /* 0x2B047BE3: push 0x38 */ 4849 PUSH32(esp, 0x3Cu); /* 0x2B047BE5: push 0x3c */ 4850 PUSH32(esp, 1); /* 0x2B047BE7: push 1 */ 4851 PUSH32(esp, 3); /* 0x2B047BE9: push 3 */ 4852 edx = ebp + (-0x18); /* 0x2B047BEB: lea edx, [ebp - 0x18] */ 4853 PUSH32(esp, edx); /* 0x2B047BEE: push edx */ 4854 ecx = eax; /* 0x2B047BEF: mov ecx, eax */ 4855 RECOMP_ICALL(edi); /* 0x2B047BF1: call edi */ 4856 RECOMP_FLAGS_IN(); 4857 goto L_2B047BF7; /* 0x2B047BF3: jmp 0x2b047bf7 */ 4858 L_2B047BF5: 4859 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4860 eax = 0; /* 0x2B047BF5: xor eax, eax */ 4861 _cf = 0; 4862 _flag_k = FK_TEST; 4863 L_2B047BF7: 4864 MEM32(esi + 0x58) = eax; /* 0x2B047BF7: mov dword ptr [esi + 0x58], eax */ 4865 MEM32(eax + 0x5C) = 0x2B048850u; /* 0x2B047BFA: mov dword ptr [eax + 0x5c], 0x2b048850 */ 4866 MEM32(eax + 0x60) = esi; /* 0x2B047C01: mov dword ptr [eax + 0x60], esi */ 4867 PUSH32(esp, 0xBCu); /* 0x2B047C04: push 0xbc */ 4868 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047C09: mov byte ptr [ebp - 4], bl */ 4869 MEM32(ebp + (-0x80)) = 1; /* 0x2B047C0C: mov dword ptr [ebp - 0x80], 1 */ 4870 MEM32(ebp + (-0x7C)) = ebx; /* 0x2B047C13: mov dword ptr [ebp - 0x7c], ebx */ 4871 MEM32(ebp + (-0x78)) = ebx; /* 0x2B047C16: mov dword ptr [ebp - 0x78], ebx */ 4872 MEM32(ebp + (-0x74)) = ebx; /* 0x2B047C19: mov dword ptr [ebp - 0x74], ebx */ 4873 MEM32(ebp + (-0x70)) = ebx; /* 0x2B047C1C: mov dword ptr [ebp - 0x70], ebx */ 4874 MEM32(ebp + (-0x6C)) = ebx; /* 0x2B047C1F: mov dword ptr [ebp - 0x6c], ebx */ 4875 MEM32(ebp + (-0x68)) = 0xFC9u; /* 0x2B047C22: mov dword ptr [ebp - 0x68], 0xfc9 */ 4876 MEM32(ebp + (-0x64)) = ebx; /* 0x2B047C29: mov dword ptr [ebp - 0x64], ebx */ 4877 MEM32(ebp + (-0x60)) = 0x180u; /* 0x2B047C2C: mov dword ptr [ebp - 0x60], 0x180 */ 4878 MEM32(ebp + (-0x5C)) = 0x181u; /* 0x2B047C33: mov dword ptr [ebp - 0x5c], 0x181 */ 4879 MEM32(ebp + (-0x58)) = ebx; /* 0x2B047C3A: mov dword ptr [ebp - 0x58], ebx */ 4880 MEM32(ebp + (-0x54)) = ebx; /* 0x2B047C3D: mov dword ptr [ebp - 0x54], ebx */ 4881 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047C40: call 0x2b0ab212 */ /* not lifted */ 4882 RECOMP_FLAGS_IN(); 4883 edi = eax; /* 0x2B047C45: mov edi, eax */ 4884 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4886 esp = esp + 4; /* 0x2B047C47: add esp, 4 */ 4887 _flag_k = FK_ADD; 4888 MEM32(ebp + (-0x10)) = edi; /* 0x2B047C4A: mov dword ptr [ebp - 0x10], edi */ 4889 /* cmp edi, ebx */ /* 0x2B047C4D: cmp edi, ebx */ 4890 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4892 _flag_k = FK_CMP; 4893 MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2B047C4F: mov byte ptr [ebp - 4], 6 */ 4894 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047C71; /* 0x2B047C53: je 0x2b047c71 */ 4895 L_2B047C55: 4896 eax = MEM32(0x2B0EE9DC); /* 0x2B047C55: mov eax, dword ptr [0x2b0ee9dc] */ 4897 PUSH32(esp, eax); /* 0x2B047C5A: push eax */ 4898 ecx = ebp + (-0x80); /* 0x2B047C5B: lea ecx, [ebp - 0x80] */ 4899 PUSH32(esp, ecx); /* 0x2B047C5E: push ecx */ 4900 ecx = edi; /* 0x2B047C5F: mov ecx, edi */ 4901 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B047C61: call dword ptr [0x2b0b5afc] */ 4902 RECOMP_FLAGS_IN(); 4903 MEM32(edi) = 0x2B0B645Cu; /* 0x2B047C67: mov dword ptr [edi], 0x2b0b645c */ 4904 ecx = edi; /* 0x2B047C6D: mov ecx, edi */ 4905 goto L_2B047C73; /* 0x2B047C6F: jmp 0x2b047c73 */ 4906 L_2B047C71: 4907 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4908 ecx = 0; /* 0x2B047C71: xor ecx, ecx */ 4909 _cf = 0; 4910 _flag_k = FK_TEST; 4911 L_2B047C73: 4912 PUSH32(esp, esi); /* 0x2B047C73: push esi */ 4913 PUSH32(esp, 0x2B048860u); /* 0x2B047C74: push 0x2b048860 */ 4914 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047C79: mov byte ptr [ebp - 4], bl */ 4915 MEM32(esi + 0x74) = ecx; /* 0x2B047C7C: mov dword ptr [esi + 0x74], ecx */ 4916 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B047C7F: call dword ptr [0x2b0b5820] */ 4917 RECOMP_FLAGS_IN(); 4918 PUSH32(esp, 0x70u); /* 0x2B047C85: push 0x70 */ 4919 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047C87: call 0x2b0ab212 */ /* not lifted */ 4920 RECOMP_FLAGS_IN(); 4921 edi = eax; /* 0x2B047C8C: mov edi, eax */ 4922 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4924 esp = esp + 4; /* 0x2B047C8E: add esp, 4 */ 4925 _flag_k = FK_ADD; 4926 MEM32(ebp + (-0x10)) = edi; /* 0x2B047C91: mov dword ptr [ebp - 0x10], edi */ 4927 /* cmp edi, ebx */ /* 0x2B047C94: cmp edi, ebx */ 4928 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4930 _flag_k = FK_CMP; 4931 MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2B047C96: mov byte ptr [ebp - 4], 7 */ 4932 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047CD5; /* 0x2B047C9A: je 0x2b047cd5 */ 4933 L_2B047C9C: 4934 edx = MEM32(0x2B0EE9DC); /* 0x2B047C9C: mov edx, dword ptr [0x2b0ee9dc] */ 4935 PUSH32(esp, edx); /* 0x2B047CA2: push edx */ 4936 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B047CA3: push -1 */ 4937 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B047CA5: push -1 */ 4938 PUSH32(esp, 0x12u); /* 0x2B047CA7: push 0x12 */ 4939 PUSH32(esp, ebx); /* 0x2B047CA9: push ebx */ 4940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4942 esp = esp - 0x10u; /* 0x2B047CAA: sub esp, 0x10 */ 4943 _flag_k = FK_CMP; 4944 ecx = esp; /* 0x2B047CAD: mov ecx, esp */ 4945 MEM32(ecx) = ebx; /* 0x2B047CAF: mov dword ptr [ecx], ebx */ 4946 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4947 eax = 0; /* 0x2B047CB1: xor eax, eax */ 4948 _cf = 0; 4949 _flag_k = FK_TEST; 4950 MEM32(ecx + 0x4) = eax; /* 0x2B047CB3: mov dword ptr [ecx + 4], eax */ 4951 PUSH32(esp, 0xFAFu); /* 0x2B047CB6: push 0xfaf */ 4952 MEM32(ecx + 0x8) = eax; /* 0x2B047CBB: mov dword ptr [ecx + 8], eax */ 4953 PUSH32(esp, ebx); /* 0x2B047CBE: push ebx */ 4954 MEM32(ecx + 0xC) = eax; /* 0x2B047CBF: mov dword ptr [ecx + 0xc], eax */ 4955 PUSH32(esp, ebx); /* 0x2B047CC2: push ebx */ 4956 ecx = edi; /* 0x2B047CC3: mov ecx, edi */ 4957 RECOMP_ICALL(MEM32(0x2B0B5C00)); /* 0x2B047CC5: call dword ptr [0x2b0b5c00] */ 4958 RECOMP_FLAGS_IN(); 4959 MEM32(edi) = 0x2B0B6164u; /* 0x2B047CCB: mov dword ptr [edi], 0x2b0b6164 */ 4960 ecx = edi; /* 0x2B047CD1: mov ecx, edi */ 4961 goto L_2B047CD7; /* 0x2B047CD3: jmp 0x2b047cd7 */ 4962 L_2B047CD5: 4963 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4964 ecx = 0; /* 0x2B047CD5: xor ecx, ecx */ 4965 _cf = 0; 4966 _flag_k = FK_TEST; 4967 L_2B047CD7: 4968 PUSH32(esp, 0x2B0E7818u); /* 0x2B047CD7: push 0x2b0e7818 */ 4969 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047CDC: mov byte ptr [ebp - 4], bl */ 4970 MEM32(esi + 0xB0) = ecx; /* 0x2B047CDF: mov dword ptr [esi + 0xb0], ecx */ 4971 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B047CE5: call dword ptr [0x2b0b5c04] */ 4972 RECOMP_FLAGS_IN(); 4973 eax = MEM32(esi + 0xB0); /* 0x2B047CEB: mov eax, dword ptr [esi + 0xb0] */ 4974 PUSH32(esp, 0x50u); /* 0x2B047CF1: push 0x50 */ 4975 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B047CF3: mov byte ptr [eax + 8], bl */ 4976 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047CF6: call 0x2b0ab212 */ /* not lifted */ 4977 RECOMP_FLAGS_IN(); 4978 edi = eax; /* 0x2B047CFB: mov edi, eax */ 4979 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4981 esp = esp + 4; /* 0x2B047CFD: add esp, 4 */ 4982 _flag_k = FK_ADD; 4983 MEM32(ebp + (-0x10)) = edi; /* 0x2B047D00: mov dword ptr [ebp - 0x10], edi */ 4984 /* cmp edi, ebx */ /* 0x2B047D03: cmp edi, ebx */ 4985 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4987 _flag_k = FK_CMP; 4988 MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x2B047D05: mov byte ptr [ebp - 4], 8 */ 4989 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047D3A; /* 0x2B047D09: je 0x2b047d3a */ 4990 L_2B047D0B: 4991 edx = MEM32(0x2B0EE9DC); /* 0x2B047D0B: mov edx, dword ptr [0x2b0ee9dc] */ 4992 eax = MEM32(ebp + (-0x14)); /* 0x2B047D11: mov eax, dword ptr [ebp - 0x14] */ 4993 ecx = MEM32(ebp + (-0x18)); /* 0x2B047D14: mov ecx, dword ptr [ebp - 0x18] */ 4994 PUSH32(esp, edx); /* 0x2B047D17: push edx */ 4995 PUSH32(esp, 0x10u); /* 0x2B047D18: push 0x10 */ 4996 PUSH32(esp, eax); /* 0x2B047D1A: push eax */ 4997 PUSH32(esp, ecx); /* 0x2B047D1B: push ecx */ 4998 PUSH32(esp, 0xFC4u); /* 0x2B047D1C: push 0xfc4 */ 4999 PUSH32(esp, 0x2B0EE648u); /* 0x2B047D21: push 0x2b0ee648 */ 5000 PUSH32(esp, 2); /* 0x2B047D26: push 2 */ 5001 ecx = edi; /* 0x2B047D28: mov ecx, edi */ 5002 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B047D2A: call dword ptr [0x2b0b5950] */ 5003 RECOMP_FLAGS_IN(); 5004 MEM32(edi) = 0x2B0B6878u; /* 0x2B047D30: mov dword ptr [edi], 0x2b0b6878 */ 5005 ecx = edi; /* 0x2B047D36: mov ecx, edi */ 5006 goto L_2B047D3C; /* 0x2B047D38: jmp 0x2b047d3c */ 5007 L_2B047D3A: 5008 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5009 ecx = 0; /* 0x2B047D3A: xor ecx, ecx */ 5010 _cf = 0; 5011 _flag_k = FK_TEST; 5012 L_2B047D3C: 5013 PUSH32(esp, 0x0044DD44u); /* 0x2B047D3C: push 0x44dd44 */ 5014 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047D41: mov byte ptr [ebp - 4], bl */ 5015 MEM32(esi + 0x90) = ecx; /* 0x2B047D44: mov dword ptr [esi + 0x90], ecx */ 5016 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B047D4A: call dword ptr [0x2b0b5858] */ 5017 RECOMP_FLAGS_IN(); 5018 PUSH32(esp, 0x50u); /* 0x2B047D50: push 0x50 */ 5019 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047D52: call 0x2b0ab212 */ /* not lifted */ 5020 RECOMP_FLAGS_IN(); 5021 edi = eax; /* 0x2B047D57: mov edi, eax */ 5022 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5023 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5024 esp = esp + 4; /* 0x2B047D59: add esp, 4 */ 5025 _flag_k = FK_ADD; 5026 MEM32(ebp + (-0x10)) = edi; /* 0x2B047D5C: mov dword ptr [ebp - 0x10], edi */ 5027 /* cmp edi, ebx */ /* 0x2B047D5F: cmp edi, ebx */ 5028 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5030 _flag_k = FK_CMP; 5031 MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x2B047D61: mov byte ptr [ebp - 4], 9 */ 5032 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047D94; /* 0x2B047D65: je 0x2b047d94 */ 5033 L_2B047D67: 5034 edx = MEM32(0x2B0EE9DC); /* 0x2B047D67: mov edx, dword ptr [0x2b0ee9dc] */ 5035 eax = MEM32(ebp + (-0x14)); /* 0x2B047D6D: mov eax, dword ptr [ebp - 0x14] */ 5036 ecx = MEM32(ebp + (-0x18)); /* 0x2B047D70: mov ecx, dword ptr [ebp - 0x18] */ 5037 PUSH32(esp, edx); /* 0x2B047D73: push edx */ 5038 PUSH32(esp, 0x10u); /* 0x2B047D74: push 0x10 */ 5039 PUSH32(esp, eax); /* 0x2B047D76: push eax */ 5040 PUSH32(esp, ecx); /* 0x2B047D77: push ecx */ 5041 PUSH32(esp, 0xFC4u); /* 0x2B047D78: push 0xfc4 */ 5042 PUSH32(esp, 0x2B0EE648u); /* 0x2B047D7D: push 0x2b0ee648 */ 5043 PUSH32(esp, 2); /* 0x2B047D82: push 2 */ 5044 ecx = edi; /* 0x2B047D84: mov ecx, edi */ 5045 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B047D86: call dword ptr [0x2b0b5950] */ 5046 RECOMP_FLAGS_IN(); 5047 MEM32(edi) = 0x2B0B6878u; /* 0x2B047D8C: mov dword ptr [edi], 0x2b0b6878 */ 5048 goto L_2B047D96; /* 0x2B047D92: jmp 0x2b047d96 */ 5049 L_2B047D94: 5050 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5051 edi = 0; /* 0x2B047D94: xor edi, edi */ 5052 _cf = 0; 5053 _flag_k = FK_TEST; 5054 L_2B047D96: 5055 PUSH32(esp, 0x38u); /* 0x2B047D96: push 0x38 */ 5056 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047D98: mov byte ptr [ebp - 4], bl */ 5057 MEM32(esi + 0x94) = edi; /* 0x2B047D9B: mov dword ptr [esi + 0x94], edi */ 5058 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047DA1: call 0x2b0ab212 */ /* not lifted */ 5059 RECOMP_FLAGS_IN(); 5060 edi = eax; /* 0x2B047DA6: mov edi, eax */ 5061 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5063 esp = esp + 4; /* 0x2B047DA8: add esp, 4 */ 5064 _flag_k = FK_ADD; 5065 MEM32(ebp + (-0x10)) = edi; /* 0x2B047DAB: mov dword ptr [ebp - 0x10], edi */ 5066 /* cmp edi, ebx */ /* 0x2B047DAE: cmp edi, ebx */ 5067 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5069 _flag_k = FK_CMP; 5070 MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x2B047DB0: mov byte ptr [ebp - 4], 0xa */ 5071 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047DDB; /* 0x2B047DB4: je 0x2b047ddb */ 5072 L_2B047DB6: 5073 edx = MEM32(0x2B0EE9DC); /* 0x2B047DB6: mov edx, dword ptr [0x2b0ee9dc] */ 5074 PUSH32(esp, edx); /* 0x2B047DBC: push edx */ 5075 PUSH32(esp, 0xFC4u); /* 0x2B047DBD: push 0xfc4 */ 5076 PUSH32(esp, 0x182u); /* 0x2B047DC2: push 0x182 */ 5077 eax = ebp + (-0x18); /* 0x2B047DC7: lea eax, [ebp - 0x18] */ 5078 PUSH32(esp, eax); /* 0x2B047DCA: push eax */ 5079 ecx = edi; /* 0x2B047DCB: mov ecx, edi */ 5080 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B047DCD: call dword ptr [0x2b0b5948] */ 5081 RECOMP_FLAGS_IN(); 5082 MEM32(edi) = 0x2B0B68F4u; /* 0x2B047DD3: mov dword ptr [edi], 0x2b0b68f4 */ 5083 goto L_2B047DDD; /* 0x2B047DD9: jmp 0x2b047ddd */ 5084 L_2B047DDB: 5085 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5086 edi = 0; /* 0x2B047DDB: xor edi, edi */ 5087 _cf = 0; 5088 _flag_k = FK_TEST; 5089 L_2B047DDD: 5090 PUSH32(esp, 0x38u); /* 0x2B047DDD: push 0x38 */ 5091 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047DDF: mov byte ptr [ebp - 4], bl */ 5092 MEM32(esi + 0x7C) = edi; /* 0x2B047DE2: mov dword ptr [esi + 0x7c], edi */ 5093 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047DE5: call 0x2b0ab212 */ /* not lifted */ 5094 RECOMP_FLAGS_IN(); 5095 edi = eax; /* 0x2B047DEA: mov edi, eax */ 5096 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5097 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5098 esp = esp + 4; /* 0x2B047DEC: add esp, 4 */ 5099 _flag_k = FK_ADD; 5100 MEM32(ebp + (-0x10)) = edi; /* 0x2B047DEF: mov dword ptr [ebp - 0x10], edi */ 5101 /* cmp edi, ebx */ /* 0x2B047DF2: cmp edi, ebx */ 5102 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5104 _flag_k = FK_CMP; 5105 MEM8(ebp + (-0x4)) = (uint8_t)(0xBu); /* 0x2B047DF4: mov byte ptr [ebp - 4], 0xb */ 5106 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047E1F; /* 0x2B047DF8: je 0x2b047e1f */ 5107 L_2B047DFA: 5108 ecx = MEM32(0x2B0EE9DC); /* 0x2B047DFA: mov ecx, dword ptr [0x2b0ee9dc] */ 5109 PUSH32(esp, ecx); /* 0x2B047E00: push ecx */ 5110 PUSH32(esp, 0xFC4u); /* 0x2B047E01: push 0xfc4 */ 5111 PUSH32(esp, 0x183u); /* 0x2B047E06: push 0x183 */ 5112 edx = ebp + (-0x18); /* 0x2B047E0B: lea edx, [ebp - 0x18] */ 5113 PUSH32(esp, edx); /* 0x2B047E0E: push edx */ 5114 ecx = edi; /* 0x2B047E0F: mov ecx, edi */ 5115 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B047E11: call dword ptr [0x2b0b5948] */ 5116 RECOMP_FLAGS_IN(); 5117 MEM32(edi) = 0x2B0B68F4u; /* 0x2B047E17: mov dword ptr [edi], 0x2b0b68f4 */ 5118 goto L_2B047E21; /* 0x2B047E1D: jmp 0x2b047e21 */ 5119 L_2B047E1F: 5120 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5121 edi = 0; /* 0x2B047E1F: xor edi, edi */ 5122 _cf = 0; 5123 _flag_k = FK_TEST; 5124 L_2B047E21: 5125 PUSH32(esp, 0x9Cu); /* 0x2B047E21: push 0x9c */ 5126 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047E26: mov byte ptr [ebp - 4], bl */ 5127 MEM32(esi + 0x80) = edi; /* 0x2B047E29: mov dword ptr [esi + 0x80], edi */ 5128 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047E2F: call 0x2b0ab212 */ /* not lifted */ 5129 RECOMP_FLAGS_IN(); 5130 edi = eax; /* 0x2B047E34: mov edi, eax */ 5131 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5133 esp = esp + 4; /* 0x2B047E36: add esp, 4 */ 5134 _flag_k = FK_ADD; 5135 MEM32(ebp + (-0x10)) = edi; /* 0x2B047E39: mov dword ptr [ebp - 0x10], edi */ 5136 /* cmp edi, ebx */ /* 0x2B047E3C: cmp edi, ebx */ 5137 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5139 _flag_k = FK_CMP; 5140 MEM8(ebp + (-0x4)) = (uint8_t)(0xCu); /* 0x2B047E3E: mov byte ptr [ebp - 4], 0xc */ 5141 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047E79; /* 0x2B047E42: je 0x2b047e79 */ 5142 L_2B047E44: 5143 eax = MEM32(0x2B0EE9DC); /* 0x2B047E44: mov eax, dword ptr [0x2b0ee9dc] */ 5144 ecx = MEM32(ebp + (-0x1C)); /* 0x2B047E49: mov ecx, dword ptr [ebp - 0x1c] */ 5145 edx = MEM32(ebp + (-0x20)); /* 0x2B047E4C: mov edx, dword ptr [ebp - 0x20] */ 5146 PUSH32(esp, eax); /* 0x2B047E4F: push eax */ 5147 eax = MEM32(ebp + (-0x14)); /* 0x2B047E50: mov eax, dword ptr [ebp - 0x14] */ 5148 PUSH32(esp, 4); /* 0x2B047E53: push 4 */ 5149 PUSH32(esp, ebx); /* 0x2B047E55: push ebx */ 5150 PUSH32(esp, 0xFC8u); /* 0x2B047E56: push 0xfc8 */ 5151 PUSH32(esp, 0x2B0E77F4u); /* 0x2B047E5B: push 0x2b0e77f4 */ 5152 PUSH32(esp, ebx); /* 0x2B047E60: push ebx */ 5153 PUSH32(esp, ebx); /* 0x2B047E61: push ebx */ 5154 PUSH32(esp, ecx); /* 0x2B047E62: push ecx */ 5155 ecx = MEM32(ebp + (-0x18)); /* 0x2B047E63: mov ecx, dword ptr [ebp - 0x18] */ 5156 PUSH32(esp, edx); /* 0x2B047E66: push edx */ 5157 PUSH32(esp, eax); /* 0x2B047E67: push eax */ 5158 PUSH32(esp, ecx); /* 0x2B047E68: push ecx */ 5159 ecx = edi; /* 0x2B047E69: mov ecx, edi */ 5160 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B047E6B: call dword ptr [0x2b0b5af0] */ 5161 RECOMP_FLAGS_IN(); 5162 MEM32(edi) = 0x2B0B642Cu; /* 0x2B047E71: mov dword ptr [edi], 0x2b0b642c */ 5163 goto L_2B047E7B; /* 0x2B047E77: jmp 0x2b047e7b */ 5164 L_2B047E79: 5165 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5166 edi = 0; /* 0x2B047E79: xor edi, edi */ 5167 _cf = 0; 5168 _flag_k = FK_TEST; 5169 L_2B047E7B: 5170 PUSH32(esp, 0xBCu); /* 0x2B047E7B: push 0xbc */ 5171 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047E80: mov byte ptr [ebp - 4], bl */ 5172 MEM32(esi + 0x8C) = edi; /* 0x2B047E83: mov dword ptr [esi + 0x8c], edi */ 5173 MEM32(ebp + (-0x50)) = ebx; /* 0x2B047E89: mov dword ptr [ebp - 0x50], ebx */ 5174 MEM32(ebp + (-0x4C)) = ebx; /* 0x2B047E8C: mov dword ptr [ebp - 0x4c], ebx */ 5175 MEM32(ebp + (-0x48)) = ebx; /* 0x2B047E8F: mov dword ptr [ebp - 0x48], ebx */ 5176 MEM32(ebp + (-0x44)) = 0x2B0E77E8u; /* 0x2B047E92: mov dword ptr [ebp - 0x44], 0x2b0e77e8 */ 5177 MEM32(ebp + (-0x40)) = ebx; /* 0x2B047E99: mov dword ptr [ebp - 0x40], ebx */ 5178 MEM32(ebp + (-0x3C)) = ebx; /* 0x2B047E9C: mov dword ptr [ebp - 0x3c], ebx */ 5179 MEM32(ebp + (-0x38)) = 0xFCAu; /* 0x2B047E9F: mov dword ptr [ebp - 0x38], 0xfca */ 5180 MEM32(ebp + (-0x34)) = ebx; /* 0x2B047EA6: mov dword ptr [ebp - 0x34], ebx */ 5181 MEM32(ebp + (-0x30)) = 0x188u; /* 0x2B047EA9: mov dword ptr [ebp - 0x30], 0x188 */ 5182 MEM32(ebp + (-0x2C)) = 0x189u; /* 0x2B047EB0: mov dword ptr [ebp - 0x2c], 0x189 */ 5183 MEM32(ebp + (-0x28)) = ebx; /* 0x2B047EB7: mov dword ptr [ebp - 0x28], ebx */ 5184 MEM32(ebp + (-0x24)) = ebx; /* 0x2B047EBA: mov dword ptr [ebp - 0x24], ebx */ 5185 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047EBD: call 0x2b0ab212 */ /* not lifted */ 5186 RECOMP_FLAGS_IN(); 5187 edi = eax; /* 0x2B047EC2: mov edi, eax */ 5188 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5190 esp = esp + 4; /* 0x2B047EC4: add esp, 4 */ 5191 _flag_k = FK_ADD; 5192 MEM32(ebp + (-0x10)) = edi; /* 0x2B047EC7: mov dword ptr [ebp - 0x10], edi */ 5193 /* cmp edi, ebx */ /* 0x2B047ECA: cmp edi, ebx */ 5194 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5196 _flag_k = FK_CMP; 5197 MEM8(ebp + (-0x4)) = (uint8_t)(0xDu); /* 0x2B047ECC: mov byte ptr [ebp - 4], 0xd */ 5198 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047EEF; /* 0x2B047ED0: je 0x2b047eef */ 5199 L_2B047ED2: 5200 edx = MEM32(0x2B0EE9DC); /* 0x2B047ED2: mov edx, dword ptr [0x2b0ee9dc] */ 5201 PUSH32(esp, edx); /* 0x2B047ED8: push edx */ 5202 eax = ebp + (-0x50); /* 0x2B047ED9: lea eax, [ebp - 0x50] */ 5203 PUSH32(esp, eax); /* 0x2B047EDC: push eax */ 5204 ecx = edi; /* 0x2B047EDD: mov ecx, edi */ 5205 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B047EDF: call dword ptr [0x2b0b5afc] */ 5206 RECOMP_FLAGS_IN(); 5207 MEM32(edi) = 0x2B0B645Cu; /* 0x2B047EE5: mov dword ptr [edi], 0x2b0b645c */ 5208 ecx = edi; /* 0x2B047EEB: mov ecx, edi */ 5209 goto L_2B047EF1; /* 0x2B047EED: jmp 0x2b047ef1 */ 5210 L_2B047EEF: 5211 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5212 ecx = 0; /* 0x2B047EEF: xor ecx, ecx */ 5213 _cf = 0; 5214 _flag_k = FK_TEST; 5215 L_2B047EF1: 5216 PUSH32(esp, esi); /* 0x2B047EF1: push esi */ 5217 PUSH32(esp, 0x2B048F20u); /* 0x2B047EF2: push 0x2b048f20 */ 5218 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047EF7: mov byte ptr [ebp - 4], bl */ 5219 MEM32(esi + 0x78) = ecx; /* 0x2B047EFA: mov dword ptr [esi + 0x78], ecx */ 5220 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B047EFD: call dword ptr [0x2b0b5820] */ 5221 RECOMP_FLAGS_IN(); 5222 ecx = MEM32(ebp + (-0x18)); /* 0x2B047F03: mov ecx, dword ptr [ebp - 0x18] */ 5223 edx = MEM32(ebp + (-0x14)); /* 0x2B047F06: mov edx, dword ptr [ebp - 0x14] */ 5224 PUSH32(esp, 0xA4u); /* 0x2B047F09: push 0xa4 */ 5225 MEM32(ebp + (-0xA8)) = ecx; /* 0x2B047F0E: mov dword ptr [ebp - 0xa8], ecx */ 5226 MEM32(ebp + (-0xA4)) = edx; /* 0x2B047F14: mov dword ptr [ebp - 0xa4], edx */ 5227 MEM32(ebp + (-0xA0)) = 0x7Eu; /* 0x2B047F1A: mov dword ptr [ebp - 0xa0], 0x7e */ 5228 MEM32(ebp + (-0x98)) = 0xAu; /* 0x2B047F24: mov dword ptr [ebp - 0x98], 0xa */ 5229 MEM32(ebp + (-0x94)) = 0x33u; /* 0x2B047F2E: mov dword ptr [ebp - 0x94], 0x33 */ 5230 MEM32(ebp + (-0x90)) = 0x16Eu; /* 0x2B047F38: mov dword ptr [ebp - 0x90], 0x16e */ 5231 MEM32(ebp + (-0x8C)) = 2; /* 0x2B047F42: mov dword ptr [ebp - 0x8c], 2 */ 5232 MEM32(ebp + (-0x88)) = 0xFC4u; /* 0x2B047F4C: mov dword ptr [ebp - 0x88], 0xfc4 */ 5233 MEM32(ebp + (-0x84)) = 0xBCu; /* 0x2B047F56: mov dword ptr [ebp - 0x84], 0xbc */ 5234 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047F60: call 0x2b0ab212 */ /* not lifted */ 5235 RECOMP_FLAGS_IN(); 5236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5238 esp = esp + 4; /* 0x2B047F65: add esp, 4 */ 5239 _flag_k = FK_ADD; 5240 MEM32(ebp + (-0x10)) = eax; /* 0x2B047F68: mov dword ptr [ebp - 0x10], eax */ 5241 /* cmp eax, ebx */ /* 0x2B047F6B: cmp eax, ebx */ 5242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5244 _flag_k = FK_CMP; 5245 MEM8(ebp + (-0x4)) = (uint8_t)(0xEu); /* 0x2B047F6D: mov byte ptr [ebp - 4], 0xe */ 5246 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B047F8B; /* 0x2B047F71: je 0x2b047f8b */ 5247 L_2B047F73: 5248 ecx = MEM32(0x2B0EE9DC); /* 0x2B047F73: mov ecx, dword ptr [0x2b0ee9dc] */ 5249 PUSH32(esp, ecx); /* 0x2B047F79: push ecx */ 5250 edx = ebp + (-0xA8); /* 0x2B047F7A: lea edx, [ebp - 0xa8] */ 5251 PUSH32(esp, edx); /* 0x2B047F80: push edx */ 5252 ecx = eax; /* 0x2B047F81: mov ecx, eax */ 5253 RECOMP_ICALL(MEM32(0x2B0B5808)); /* 0x2B047F83: call dword ptr [0x2b0b5808] */ 5254 RECOMP_FLAGS_IN(); 5255 goto L_2B047F8D; /* 0x2B047F89: jmp 0x2b047f8d */ 5256 L_2B047F8B: 5257 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5258 eax = 0; /* 0x2B047F8B: xor eax, eax */ 5259 _cf = 0; 5260 _flag_k = FK_TEST; 5261 L_2B047F8D: 5262 PUSH32(esp, 0x00555555u); /* 0x2B047F8D: push 0x555555 */ 5263 ecx = eax; /* 0x2B047F92: mov ecx, eax */ 5264 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B047F94: mov byte ptr [ebp - 4], bl */ 5265 MEM32(esi + 0x9C) = eax; /* 0x2B047F97: mov dword ptr [esi + 0x9c], eax */ 5266 RECOMP_ICALL(MEM32(0x2B0B5B5C)); /* 0x2B047F9D: call dword ptr [0x2b0b5b5c] */ 5267 RECOMP_FLAGS_IN(); 5268 eax = MEM32(esi + 0x9C); /* 0x2B047FA3: mov eax, dword ptr [esi + 0x9c] */ 5269 ecx = MEM32(eax + 0x94); /* 0x2B047FA9: mov ecx, dword ptr [eax + 0x94] */ 5270 PUSH32(esp, 0x00DDDDDDu); /* 0x2B047FAF: push 0xdddddd */ 5271 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B047FB4: call dword ptr [0x2b0b5858] */ 5272 RECOMP_FLAGS_IN(); 5273 ecx = MEM32(esi + 0x9C); /* 0x2B047FBA: mov ecx, dword ptr [esi + 0x9c] */ 5274 PUSH32(esp, esi); /* 0x2B047FC0: push esi */ 5275 PUSH32(esp, 0x2B049070u); /* 0x2B047FC1: push 0x2b049070 */ 5276 RECOMP_ICALL(MEM32(0x2B0B580C)); /* 0x2B047FC6: call dword ptr [0x2b0b580c] */ 5277 RECOMP_FLAGS_IN(); 5278 ecx = MEM32(esi + 0x9C); /* 0x2B047FCC: mov ecx, dword ptr [esi + 0x9c] */ 5279 ecx = MEM32(ecx + 0x9C); /* 0x2B047FD2: mov ecx, dword ptr [ecx + 0x9c] */ 5280 PUSH32(esp, 0x2B0E77CCu); /* 0x2B047FD8: push 0x2b0e77cc */ 5281 RECOMP_ICALL(MEM32(0x2B0B5810)); /* 0x2B047FDD: call dword ptr [0x2b0b5810] */ 5282 RECOMP_FLAGS_IN(); 5283 PUSH32(esp, 0x38u); /* 0x2B047FE3: push 0x38 */ 5284 RECOMP_ICALL(0x2B0AB212u); /* 0x2B047FE5: call 0x2b0ab212 */ /* not lifted */ 5285 RECOMP_FLAGS_IN(); 5286 edi = eax; /* 0x2B047FEA: mov edi, eax */ 5287 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5288 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5289 esp = esp + 4; /* 0x2B047FEC: add esp, 4 */ 5290 _flag_k = FK_ADD; 5291 MEM32(ebp + (-0x10)) = edi; /* 0x2B047FEF: mov dword ptr [ebp - 0x10], edi */ 5292 /* cmp edi, ebx */ /* 0x2B047FF2: cmp edi, ebx */ 5293 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5295 _flag_k = FK_CMP; 5296 MEM8(ebp + (-0x4)) = (uint8_t)(0xFu); /* 0x2B047FF4: mov byte ptr [ebp - 4], 0xf */ 5297 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04801F; /* 0x2B047FF8: je 0x2b04801f */ 5298 L_2B047FFA: 5299 edx = MEM32(0x2B0EE9DC); /* 0x2B047FFA: mov edx, dword ptr [0x2b0ee9dc] */ 5300 PUSH32(esp, edx); /* 0x2B048000: push edx */ 5301 PUSH32(esp, 0xFC4u); /* 0x2B048001: push 0xfc4 */ 5302 PUSH32(esp, 0x18Au); /* 0x2B048006: push 0x18a */ 5303 eax = ebp + (-0x18); /* 0x2B04800B: lea eax, [ebp - 0x18] */ 5304 PUSH32(esp, eax); /* 0x2B04800E: push eax */ 5305 ecx = edi; /* 0x2B04800F: mov ecx, edi */ 5306 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B048011: call dword ptr [0x2b0b5948] */ 5307 RECOMP_FLAGS_IN(); 5308 MEM32(edi) = 0x2B0B68F4u; /* 0x2B048017: mov dword ptr [edi], 0x2b0b68f4 */ 5309 goto L_2B048021; /* 0x2B04801D: jmp 0x2b048021 */ 5310 L_2B04801F: 5311 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5312 edi = 0; /* 0x2B04801F: xor edi, edi */ 5313 _cf = 0; 5314 _flag_k = FK_TEST; 5315 L_2B048021: 5316 PUSH32(esp, 0x2B0E77C4u); /* 0x2B048021: push 0x2b0e77c4 */ 5317 PUSH32(esp, ebx); /* 0x2B048026: push ebx */ 5318 ecx = esi; /* 0x2B048027: mov ecx, esi */ 5319 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B048029: mov byte ptr [ebp - 4], bl */ 5320 MEM32(esi + 0x84) = edi; /* 0x2B04802C: mov dword ptr [esi + 0x84], edi */ 5321 RECOMP_ICALL(0x2B03A2D0u); /* 0x2B048032: call 0x2b03a2d0 */ /* not lifted */ 5322 RECOMP_FLAGS_IN(); 5323 ecx = esi; /* 0x2B048037: mov ecx, esi */ 5324 RECOMP_ICALL(0x2B048520u); /* 0x2B048039: call 0x2b048520 */ /* not lifted */ 5325 RECOMP_FLAGS_IN(); 5326 ecx = MEM32(ebp + (-0xC)); /* 0x2B04803E: mov ecx, dword ptr [ebp - 0xc] */ 5327 edi = POP32_VAL(esp); /* 0x2B048041: pop edi */ 5328 eax = esi; /* 0x2B048042: mov eax, esi */ 5329 esi = POP32_VAL(esp); /* 0x2B048044: pop esi */ 5330 MEM32(FS_BASE + (0)) = ecx; /* 0x2B048045: mov dword ptr fs:[0], ecx */ 5331 ebx = POP32_VAL(esp); /* 0x2B04804C: pop ebx */ 5332 esp = ebp; /* 0x2B04804D: mov esp, ebp */ 5333 ebp = POP32_VAL(esp); /* 0x2B04804F: pop ebp */ 5334 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048050: ret */ 5335 RECOMP_REGS_OUT(); 5336 } 5337 5338 void sub_2B048060(void) { 5339 int _fpu_cmp = 0; 5340 uint32_t _cf = 0; 5341 int _df = 1; 5342 uint32_t _flag_k = FK_NONE; 5343 uint32_t _flag_a = 0, _flag_b = 0; 5344 uint32_t _itail_tgt = 0; 5345 RECOMP_REGS_LOCALS 5346 RECOMP_ENTER(0x2B048060u); 5347 5348 L_2B048060: 5349 PUSH32(esp, ebp); /* 0x2B048060: push ebp */ 5350 ebp = esp; /* 0x2B048061: mov ebp, esp */ 5351 PUSH32(esp, esi); /* 0x2B048063: push esi */ 5352 esi = ecx; /* 0x2B048064: mov esi, ecx */ 5353 RECOMP_ICALL(0x2B048090u); /* 0x2B048066: call 0x2b048090 */ /* not lifted */ 5354 RECOMP_FLAGS_IN(); 5355 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B04806B: test byte ptr [ebp + 8], 1 */ 5356 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 5357 _cf = 0; 5358 _flag_k = FK_NARROW(FK_TEST, 24); 5359 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04807A; /* 0x2B04806F: je 0x2b04807a */ 5360 L_2B048071: 5361 PUSH32(esp, esi); /* 0x2B048071: push esi */ 5362 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B048072: call 0x2b0ab1ba */ /* not lifted */ 5363 RECOMP_FLAGS_IN(); 5364 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5366 esp = esp + 4; /* 0x2B048077: add esp, 4 */ 5367 _flag_k = FK_ADD; 5368 L_2B04807A: 5369 eax = esi; /* 0x2B04807A: mov eax, esi */ 5370 esi = POP32_VAL(esp); /* 0x2B04807C: pop esi */ 5371 ebp = POP32_VAL(esp); /* 0x2B04807D: pop ebp */ 5372 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04807E: ret 4 */ 5373 RECOMP_REGS_OUT(); 5374 } 5375 5376 void sub_2B048090(void) { 5377 int _fpu_cmp = 0; 5378 uint32_t _cf = 0; 5379 int _df = 1; 5380 uint32_t _flag_k = FK_NONE; 5381 uint32_t _flag_a = 0, _flag_b = 0; 5382 uint32_t _itail_tgt = 0; 5383 RECOMP_REGS_LOCALS 5384 RECOMP_ENTER(0x2B048090u); 5385 5386 L_2B048090: 5387 PUSH32(esp, ebp); /* 0x2B048090: push ebp */ 5388 ebp = esp; /* 0x2B048091: mov ebp, esp */ 5389 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B048093: push -1 */ 5390 PUSH32(esp, 0x2B0AF2C8u); /* 0x2B048095: push 0x2b0af2c8 */ 5391 eax = MEM32(FS_BASE + (0)); /* 0x2B04809A: mov eax, dword ptr fs:[0] */ 5392 PUSH32(esp, eax); /* 0x2B0480A0: push eax */ 5393 MEM32(FS_BASE + (0)) = esp; /* 0x2B0480A1: mov dword ptr fs:[0], esp */ 5394 PUSH32(esp, ecx); /* 0x2B0480A8: push ecx */ 5395 PUSH32(esp, ebx); /* 0x2B0480A9: push ebx */ 5396 PUSH32(esp, esi); /* 0x2B0480AA: push esi */ 5397 esi = ecx; /* 0x2B0480AB: mov esi, ecx */ 5398 PUSH32(esp, edi); /* 0x2B0480AD: push edi */ 5399 MEM32(ebp + (-0x10)) = esi; /* 0x2B0480AE: mov dword ptr [ebp - 0x10], esi */ 5400 MEM32(esi) = 0x2B0B6A3Cu; /* 0x2B0480B1: mov dword ptr [esi], 0x2b0b6a3c */ 5401 ecx = MEM32(esi + 0x34); /* 0x2B0480B7: mov ecx, dword ptr [esi + 0x34] */ 5402 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5403 ebx = 0; /* 0x2B0480BA: xor ebx, ebx */ 5404 _cf = 0; 5405 _flag_k = FK_TEST; 5406 /* cmp ecx, ebx */ /* 0x2B0480BC: cmp ecx, ebx */ 5407 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5409 _flag_k = FK_CMP; 5410 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0480BE: mov dword ptr [ebp - 4], ebx */ 5411 MEM32(esi + 0x30) = ebx; /* 0x2B0480C1: mov dword ptr [esi + 0x30], ebx */ 5412 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0480CC; /* 0x2B0480C4: je 0x2b0480cc */ 5413 L_2B0480C6: 5414 eax = MEM32(ecx); /* 0x2B0480C6: mov eax, dword ptr [ecx] */ 5415 PUSH32(esp, 1); /* 0x2B0480C8: push 1 */ 5416 RECOMP_ICALL(MEM32(eax)); /* 0x2B0480CA: call dword ptr [eax] */ 5417 RECOMP_FLAGS_IN(); 5418 L_2B0480CC: 5419 ecx = MEM32(esi + 0x38); /* 0x2B0480CC: mov ecx, dword ptr [esi + 0x38] */ 5420 /* cmp ecx, ebx */ /* 0x2B0480CF: cmp ecx, ebx */ 5421 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5423 _flag_k = FK_CMP; 5424 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0480D9; /* 0x2B0480D1: je 0x2b0480d9 */ 5425 L_2B0480D3: 5426 edx = MEM32(ecx); /* 0x2B0480D3: mov edx, dword ptr [ecx] */ 5427 PUSH32(esp, 1); /* 0x2B0480D5: push 1 */ 5428 RECOMP_ICALL(MEM32(edx)); /* 0x2B0480D7: call dword ptr [edx] */ 5429 RECOMP_FLAGS_IN(); 5430 L_2B0480D9: 5431 ecx = MEM32(esi + 0xB0); /* 0x2B0480D9: mov ecx, dword ptr [esi + 0xb0] */ 5432 /* cmp ecx, ebx */ /* 0x2B0480DF: cmp ecx, ebx */ 5433 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5435 _flag_k = FK_CMP; 5436 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0480E9; /* 0x2B0480E1: je 0x2b0480e9 */ 5437 L_2B0480E3: 5438 eax = MEM32(ecx); /* 0x2B0480E3: mov eax, dword ptr [ecx] */ 5439 PUSH32(esp, 1); /* 0x2B0480E5: push 1 */ 5440 RECOMP_ICALL(MEM32(eax)); /* 0x2B0480E7: call dword ptr [eax] */ 5441 RECOMP_FLAGS_IN(); 5442 L_2B0480E9: 5443 edi = MEM32(esi + 0x50); /* 0x2B0480E9: mov edi, dword ptr [esi + 0x50] */ 5444 /* cmp edi, ebx */ /* 0x2B0480EC: cmp edi, ebx */ 5445 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5447 _flag_k = FK_CMP; 5448 ebx = MEM32(0x2B0B58E8); /* 0x2B0480EE: mov ebx, dword ptr [0x2b0b58e8] */ 5449 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B048103; /* 0x2B0480F4: je 0x2b048103 */ 5450 L_2B0480F6: 5451 ecx = edi; /* 0x2B0480F6: mov ecx, edi */ 5452 RECOMP_ICALL(ebx); /* 0x2B0480F8: call ebx */ 5453 RECOMP_FLAGS_IN(); 5454 PUSH32(esp, edi); /* 0x2B0480FA: push edi */ 5455 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0480FB: call 0x2b0ab1ba */ /* not lifted */ 5456 RECOMP_FLAGS_IN(); 5457 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5459 esp = esp + 4; /* 0x2B048100: add esp, 4 */ 5460 _flag_k = FK_ADD; 5461 L_2B048103: 5462 edi = MEM32(esi + 0x54); /* 0x2B048103: mov edi, dword ptr [esi + 0x54] */ 5463 /* test edi, edi */ /* 0x2B048106: test edi, edi */ 5464 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5465 _cf = 0; 5466 _flag_k = FK_TEST; 5467 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048117; /* 0x2B048108: je 0x2b048117 */ 5468 L_2B04810A: 5469 ecx = edi; /* 0x2B04810A: mov ecx, edi */ 5470 RECOMP_ICALL(ebx); /* 0x2B04810C: call ebx */ 5471 RECOMP_FLAGS_IN(); 5472 PUSH32(esp, edi); /* 0x2B04810E: push edi */ 5473 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04810F: call 0x2b0ab1ba */ /* not lifted */ 5474 RECOMP_FLAGS_IN(); 5475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5477 esp = esp + 4; /* 0x2B048114: add esp, 4 */ 5478 _flag_k = FK_ADD; 5479 L_2B048117: 5480 edi = MEM32(esi + 0x58); /* 0x2B048117: mov edi, dword ptr [esi + 0x58] */ 5481 /* test edi, edi */ /* 0x2B04811A: test edi, edi */ 5482 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5483 _cf = 0; 5484 _flag_k = FK_TEST; 5485 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04812B; /* 0x2B04811C: je 0x2b04812b */ 5486 L_2B04811E: 5487 ecx = edi; /* 0x2B04811E: mov ecx, edi */ 5488 RECOMP_ICALL(ebx); /* 0x2B048120: call ebx */ 5489 RECOMP_FLAGS_IN(); 5490 PUSH32(esp, edi); /* 0x2B048122: push edi */ 5491 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B048123: call 0x2b0ab1ba */ /* not lifted */ 5492 RECOMP_FLAGS_IN(); 5493 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5494 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5495 esp = esp + 4; /* 0x2B048128: add esp, 4 */ 5496 _flag_k = FK_ADD; 5497 L_2B04812B: 5498 ecx = MEM32(esi + 0x74); /* 0x2B04812B: mov ecx, dword ptr [esi + 0x74] */ 5499 /* test ecx, ecx */ /* 0x2B04812E: test ecx, ecx */ 5500 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5501 _cf = 0; 5502 _flag_k = FK_TEST; 5503 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048138; /* 0x2B048130: je 0x2b048138 */ 5504 L_2B048132: 5505 edx = MEM32(ecx); /* 0x2B048132: mov edx, dword ptr [ecx] */ 5506 PUSH32(esp, 1); /* 0x2B048134: push 1 */ 5507 RECOMP_ICALL(MEM32(edx)); /* 0x2B048136: call dword ptr [edx] */ 5508 RECOMP_FLAGS_IN(); 5509 L_2B048138: 5510 ecx = MEM32(esi + 0x90); /* 0x2B048138: mov ecx, dword ptr [esi + 0x90] */ 5511 /* test ecx, ecx */ /* 0x2B04813E: test ecx, ecx */ 5512 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5513 _cf = 0; 5514 _flag_k = FK_TEST; 5515 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048148; /* 0x2B048140: je 0x2b048148 */ 5516 L_2B048142: 5517 eax = MEM32(ecx); /* 0x2B048142: mov eax, dword ptr [ecx] */ 5518 PUSH32(esp, 1); /* 0x2B048144: push 1 */ 5519 RECOMP_ICALL(MEM32(eax)); /* 0x2B048146: call dword ptr [eax] */ 5520 RECOMP_FLAGS_IN(); 5521 L_2B048148: 5522 ecx = MEM32(esi + 0x94); /* 0x2B048148: mov ecx, dword ptr [esi + 0x94] */ 5523 /* test ecx, ecx */ /* 0x2B04814E: test ecx, ecx */ 5524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5525 _cf = 0; 5526 _flag_k = FK_TEST; 5527 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048158; /* 0x2B048150: je 0x2b048158 */ 5528 L_2B048152: 5529 edx = MEM32(ecx); /* 0x2B048152: mov edx, dword ptr [ecx] */ 5530 PUSH32(esp, 1); /* 0x2B048154: push 1 */ 5531 RECOMP_ICALL(MEM32(edx)); /* 0x2B048156: call dword ptr [edx] */ 5532 RECOMP_FLAGS_IN(); 5533 L_2B048158: 5534 ecx = MEM32(esi + 0x7C); /* 0x2B048158: mov ecx, dword ptr [esi + 0x7c] */ 5535 /* test ecx, ecx */ /* 0x2B04815B: test ecx, ecx */ 5536 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5537 _cf = 0; 5538 _flag_k = FK_TEST; 5539 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048165; /* 0x2B04815D: je 0x2b048165 */ 5540 L_2B04815F: 5541 eax = MEM32(ecx); /* 0x2B04815F: mov eax, dword ptr [ecx] */ 5542 PUSH32(esp, 1); /* 0x2B048161: push 1 */ 5543 RECOMP_ICALL(MEM32(eax)); /* 0x2B048163: call dword ptr [eax] */ 5544 RECOMP_FLAGS_IN(); 5545 L_2B048165: 5546 ecx = MEM32(esi + 0x80); /* 0x2B048165: mov ecx, dword ptr [esi + 0x80] */ 5547 /* test ecx, ecx */ /* 0x2B04816B: test ecx, ecx */ 5548 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5549 _cf = 0; 5550 _flag_k = FK_TEST; 5551 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048175; /* 0x2B04816D: je 0x2b048175 */ 5552 L_2B04816F: 5553 edx = MEM32(ecx); /* 0x2B04816F: mov edx, dword ptr [ecx] */ 5554 PUSH32(esp, 1); /* 0x2B048171: push 1 */ 5555 RECOMP_ICALL(MEM32(edx)); /* 0x2B048173: call dword ptr [edx] */ 5556 RECOMP_FLAGS_IN(); 5557 L_2B048175: 5558 ecx = MEM32(esi + 0x8C); /* 0x2B048175: mov ecx, dword ptr [esi + 0x8c] */ 5559 /* test ecx, ecx */ /* 0x2B04817B: test ecx, ecx */ 5560 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5561 _cf = 0; 5562 _flag_k = FK_TEST; 5563 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048185; /* 0x2B04817D: je 0x2b048185 */ 5564 L_2B04817F: 5565 eax = MEM32(ecx); /* 0x2B04817F: mov eax, dword ptr [ecx] */ 5566 PUSH32(esp, 1); /* 0x2B048181: push 1 */ 5567 RECOMP_ICALL(MEM32(eax)); /* 0x2B048183: call dword ptr [eax] */ 5568 RECOMP_FLAGS_IN(); 5569 L_2B048185: 5570 ecx = MEM32(esi + 0x78); /* 0x2B048185: mov ecx, dword ptr [esi + 0x78] */ 5571 /* test ecx, ecx */ /* 0x2B048188: test ecx, ecx */ 5572 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5573 _cf = 0; 5574 _flag_k = FK_TEST; 5575 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048192; /* 0x2B04818A: je 0x2b048192 */ 5576 L_2B04818C: 5577 edx = MEM32(ecx); /* 0x2B04818C: mov edx, dword ptr [ecx] */ 5578 PUSH32(esp, 1); /* 0x2B04818E: push 1 */ 5579 RECOMP_ICALL(MEM32(edx)); /* 0x2B048190: call dword ptr [edx] */ 5580 RECOMP_FLAGS_IN(); 5581 L_2B048192: 5582 edi = MEM32(esi + 0x9C); /* 0x2B048192: mov edi, dword ptr [esi + 0x9c] */ 5583 /* test edi, edi */ /* 0x2B048198: test edi, edi */ 5584 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5585 _cf = 0; 5586 _flag_k = FK_TEST; 5587 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0481AD; /* 0x2B04819A: je 0x2b0481ad */ 5588 L_2B04819C: 5589 ecx = edi; /* 0x2B04819C: mov ecx, edi */ 5590 RECOMP_ICALL(MEM32(0x2B0B5A54)); /* 0x2B04819E: call dword ptr [0x2b0b5a54] */ 5591 RECOMP_FLAGS_IN(); 5592 PUSH32(esp, edi); /* 0x2B0481A4: push edi */ 5593 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0481A5: call 0x2b0ab1ba */ /* not lifted */ 5594 RECOMP_FLAGS_IN(); 5595 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5597 esp = esp + 4; /* 0x2B0481AA: add esp, 4 */ 5598 _flag_k = FK_ADD; 5599 L_2B0481AD: 5600 ecx = MEM32(esi + 0x84); /* 0x2B0481AD: mov ecx, dword ptr [esi + 0x84] */ 5601 /* test ecx, ecx */ /* 0x2B0481B3: test ecx, ecx */ 5602 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5603 _cf = 0; 5604 _flag_k = FK_TEST; 5605 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0481BD; /* 0x2B0481B5: je 0x2b0481bd */ 5606 L_2B0481B7: 5607 eax = MEM32(ecx); /* 0x2B0481B7: mov eax, dword ptr [ecx] */ 5608 PUSH32(esp, 1); /* 0x2B0481B9: push 1 */ 5609 RECOMP_ICALL(MEM32(eax)); /* 0x2B0481BB: call dword ptr [eax] */ 5610 RECOMP_FLAGS_IN(); 5611 L_2B0481BD: 5612 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B0481BD: mov al, byte ptr [esi + 0x4c] */ 5613 /* test LO8(eax), LO8(eax) */ /* 0x2B0481C0: test al, al */ 5614 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5615 _cf = 0; 5616 _flag_k = FK_NARROW(FK_TEST, 24); 5617 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0481DB; /* 0x2B0481C2: je 0x2b0481db */ 5618 L_2B0481C4: 5619 PUSH32(esp, 0); /* 0x2B0481C4: push 0 */ 5620 PUSH32(esp, 0x16Du); /* 0x2B0481C6: push 0x16d */ 5621 PUSH32(esp, 9); /* 0x2B0481CB: push 9 */ 5622 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0481CD: call dword ptr [0x2b0b53cc] */ 5623 RECOMP_FLAGS_IN(); 5624 ecx = eax; /* 0x2B0481D3: mov ecx, eax */ 5625 RECOMP_ICALL(MEM32(0x2B0B53B8)); /* 0x2B0481D5: call dword ptr [0x2b0b53b8] */ 5626 RECOMP_FLAGS_IN(); 5627 L_2B0481DB: 5628 ecx = esi; /* 0x2B0481DB: mov ecx, esi */ 5629 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0481DD: mov dword ptr [ebp - 4], 0xffffffff */ 5630 RECOMP_ICALL(0x2B03A290u); /* 0x2B0481E4: call 0x2b03a290 */ /* not lifted */ 5631 RECOMP_FLAGS_IN(); 5632 ecx = MEM32(ebp + (-0xC)); /* 0x2B0481E9: mov ecx, dword ptr [ebp - 0xc] */ 5633 edi = POP32_VAL(esp); /* 0x2B0481EC: pop edi */ 5634 esi = POP32_VAL(esp); /* 0x2B0481ED: pop esi */ 5635 ebx = POP32_VAL(esp); /* 0x2B0481EE: pop ebx */ 5636 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0481EF: mov dword ptr fs:[0], ecx */ 5637 esp = ebp; /* 0x2B0481F6: mov esp, ebp */ 5638 ebp = POP32_VAL(esp); /* 0x2B0481F8: pop ebp */ 5639 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0481F9: ret */ 5640 RECOMP_REGS_OUT(); 5641 } 5642 5643 void sub_2B048200(void) { 5644 int _fpu_cmp = 0; 5645 uint32_t _cf = 0; 5646 int _df = 1; 5647 uint32_t _flag_k = FK_NONE; 5648 uint32_t _flag_a = 0, _flag_b = 0; 5649 uint32_t _itail_tgt = 0; 5650 RECOMP_REGS_LOCALS 5651 RECOMP_ENTER(0x2B048200u); 5652 5653 L_2B048200: 5654 PUSH32(esp, ebp); /* 0x2B048200: push ebp */ 5655 ebp = esp; /* 0x2B048201: mov ebp, esp */ 5656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5658 esp = esp - 8; /* 0x2B048203: sub esp, 8 */ 5659 _flag_k = FK_CMP; 5660 PUSH32(esp, ebx); /* 0x2B048206: push ebx */ 5661 PUSH32(esp, esi); /* 0x2B048207: push esi */ 5662 esi = ecx; /* 0x2B048208: mov esi, ecx */ 5663 ecx = MEM32(esi + 0x8); /* 0x2B04820A: mov ecx, dword ptr [esi + 8] */ 5664 eax = MEM32(esi + 0x4); /* 0x2B04820D: mov eax, dword ptr [esi + 4] */ 5665 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 5666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5667 ecx = ecx + 0x14u; /* 0x2B048210: add ecx, 0x14 */ 5668 _flag_k = FK_ADD; 5669 MEM32(ebp + (-0x8)) = eax; /* 0x2B048213: mov dword ptr [ebp - 8], eax */ 5670 MEM32(ebp + (-0x4)) = ecx; /* 0x2B048216: mov dword ptr [ebp - 4], ecx */ 5671 ecx = MEM32(esi + 0xB0); /* 0x2B048219: mov ecx, dword ptr [esi + 0xb0] */ 5672 edx = MEM32(ecx); /* 0x2B04821F: mov edx, dword ptr [ecx] */ 5673 PUSH32(esp, edi); /* 0x2B048221: push edi */ 5674 eax = ebp + (-0x8); /* 0x2B048222: lea eax, [ebp - 8] */ 5675 PUSH32(esp, eax); /* 0x2B048225: push eax */ 5676 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B048226: call dword ptr [edx + 0x14] */ 5677 RECOMP_FLAGS_IN(); 5678 ecx = MEM32(esi + 0x8C); /* 0x2B048229: mov ecx, dword ptr [esi + 0x8c] */ 5679 edx = MEM32(ecx); /* 0x2B04822F: mov edx, dword ptr [ecx] */ 5680 eax = ebp + (-0x8); /* 0x2B048231: lea eax, [ebp - 8] */ 5681 PUSH32(esp, eax); /* 0x2B048234: push eax */ 5682 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B048235: call dword ptr [edx + 0x14] */ 5683 RECOMP_FLAGS_IN(); 5684 ecx = ebp + (-0x8); /* 0x2B048238: lea ecx, [ebp - 8] */ 5685 PUSH32(esp, ecx); /* 0x2B04823B: push ecx */ 5686 ecx = MEM32(esi + 0x30); /* 0x2B04823C: mov ecx, dword ptr [esi + 0x30] */ 5687 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04823F: call dword ptr [0x2b0b5940] */ 5688 RECOMP_FLAGS_IN(); 5689 edx = MEM32(esi + 0x30); /* 0x2B048245: mov edx, dword ptr [esi + 0x30] */ 5690 edi = MEM32(0x2B0B58E0); /* 0x2B048248: mov edi, dword ptr [0x2b0b58e0] */ 5691 MEM8(edx + 0x9) = (uint8_t)(1); /* 0x2B04824E: mov byte ptr [edx + 9], 1 */ 5692 ecx = MEM32(esi + 0x8); /* 0x2B048252: mov ecx, dword ptr [esi + 8] */ 5693 eax = MEM32(esi + 0x4); /* 0x2B048255: mov eax, dword ptr [esi + 4] */ 5694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x29u); 5695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5696 ecx = ecx + 0x29u; /* 0x2B048258: add ecx, 0x29 */ 5697 _flag_k = FK_ADD; 5698 edx = ebp + (-0x8); /* 0x2B04825B: lea edx, [ebp - 8] */ 5699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5700 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5701 eax = eax + 8; /* 0x2B04825E: add eax, 8 */ 5702 _flag_k = FK_ADD; 5703 MEM32(ebp + (-0x4)) = ecx; /* 0x2B048261: mov dword ptr [ebp - 4], ecx */ 5704 ecx = MEM32(esi + 0x50); /* 0x2B048264: mov ecx, dword ptr [esi + 0x50] */ 5705 PUSH32(esp, edx); /* 0x2B048267: push edx */ 5706 MEM32(ebp + (-0x8)) = eax; /* 0x2B048268: mov dword ptr [ebp - 8], eax */ 5707 RECOMP_ICALL(edi); /* 0x2B04826B: call edi */ 5708 RECOMP_FLAGS_IN(); 5709 ecx = MEM32(esi + 0x50); /* 0x2B04826D: mov ecx, dword ptr [esi + 0x50] */ 5710 ebx = MEM32(0x2B0B58E4); /* 0x2B048270: mov ebx, dword ptr [0x2b0b58e4] */ 5711 PUSH32(esp, 0); /* 0x2B048276: push 0 */ 5712 RECOMP_ICALL(ebx); /* 0x2B048278: call ebx */ 5713 RECOMP_FLAGS_IN(); 5714 eax = MEM32(esi + 0x4); /* 0x2B04827A: mov eax, dword ptr [esi + 4] */ 5715 ecx = MEM32(esi + 0x8); /* 0x2B04827D: mov ecx, dword ptr [esi + 8] */ 5716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5718 eax = eax + 8; /* 0x2B048280: add eax, 8 */ 5719 _flag_k = FK_ADD; 5720 MEM32(ebp + (-0x8)) = eax; /* 0x2B048283: mov dword ptr [ebp - 8], eax */ 5721 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x3C)); 5722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5723 ecx = ecx - MEM32(esi + 0x3C); /* 0x2B048286: sub ecx, dword ptr [esi + 0x3c] */ 5724 _flag_k = FK_CMP; 5725 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x11Bu); 5726 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5727 ecx = ecx + 0x11Bu; /* 0x2B048289: add ecx, 0x11b */ 5728 _flag_k = FK_ADD; 5729 edx = ebp + (-0x8); /* 0x2B04828F: lea edx, [ebp - 8] */ 5730 MEM32(ebp + (-0x4)) = ecx; /* 0x2B048292: mov dword ptr [ebp - 4], ecx */ 5731 ecx = MEM32(esi + 0x54); /* 0x2B048295: mov ecx, dword ptr [esi + 0x54] */ 5732 PUSH32(esp, edx); /* 0x2B048298: push edx */ 5733 RECOMP_ICALL(edi); /* 0x2B048299: call edi */ 5734 RECOMP_FLAGS_IN(); 5735 ecx = MEM32(esi + 0x54); /* 0x2B04829B: mov ecx, dword ptr [esi + 0x54] */ 5736 PUSH32(esp, 0); /* 0x2B04829E: push 0 */ 5737 RECOMP_ICALL(ebx); /* 0x2B0482A0: call ebx */ 5738 RECOMP_FLAGS_IN(); 5739 eax = MEM32(esi + 0x4); /* 0x2B0482A2: mov eax, dword ptr [esi + 4] */ 5740 ecx = MEM32(esi + 0x8); /* 0x2B0482A5: mov ecx, dword ptr [esi + 8] */ 5741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5743 eax = eax + 8; /* 0x2B0482A8: add eax, 8 */ 5744 _flag_k = FK_ADD; 5745 MEM32(ebp + (-0x8)) = eax; /* 0x2B0482AB: mov dword ptr [ebp - 8], eax */ 5746 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x3C)); 5747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5748 ecx = ecx - MEM32(esi + 0x3C); /* 0x2B0482AE: sub ecx, dword ptr [esi + 0x3c] */ 5749 _flag_k = FK_CMP; 5750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x175u); 5751 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5752 ecx = ecx + 0x175u; /* 0x2B0482B1: add ecx, 0x175 */ 5753 _flag_k = FK_ADD; 5754 edx = ebp + (-0x8); /* 0x2B0482B7: lea edx, [ebp - 8] */ 5755 MEM32(ebp + (-0x4)) = ecx; /* 0x2B0482BA: mov dword ptr [ebp - 4], ecx */ 5756 ecx = MEM32(esi + 0x58); /* 0x2B0482BD: mov ecx, dword ptr [esi + 0x58] */ 5757 PUSH32(esp, edx); /* 0x2B0482C0: push edx */ 5758 RECOMP_ICALL(edi); /* 0x2B0482C1: call edi */ 5759 RECOMP_FLAGS_IN(); 5760 ecx = MEM32(esi + 0x58); /* 0x2B0482C3: mov ecx, dword ptr [esi + 0x58] */ 5761 PUSH32(esp, 0); /* 0x2B0482C6: push 0 */ 5762 RECOMP_ICALL(ebx); /* 0x2B0482C8: call ebx */ 5763 RECOMP_FLAGS_IN(); 5764 eax = MEM32(esi + 0x8); /* 0x2B0482CA: mov eax, dword ptr [esi + 8] */ 5765 edx = MEM32(esi + 0x3C); /* 0x2B0482CD: mov edx, dword ptr [esi + 0x3c] */ 5766 ecx = MEM32(esi + 0x4); /* 0x2B0482D0: mov ecx, dword ptr [esi + 4] */ 5767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(9); 5768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5769 ecx = ecx + 9; /* 0x2B0482D3: add ecx, 9 */ 5770 _flag_k = FK_ADD; 5771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5773 eax = eax - edx; /* 0x2B0482D6: sub eax, edx */ 5774 _flag_k = FK_CMP; 5775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1BFu); 5776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5777 eax = eax + 0x1BFu; /* 0x2B0482D8: add eax, 0x1bf */ 5778 _flag_k = FK_ADD; 5779 PUSH32(esp, eax); /* 0x2B0482DD: push eax */ 5780 MEM32(ebp + (-0x8)) = ecx; /* 0x2B0482DE: mov dword ptr [ebp - 8], ecx */ 5781 PUSH32(esp, ecx); /* 0x2B0482E1: push ecx */ 5782 ecx = MEM32(esi + 0x74); /* 0x2B0482E2: mov ecx, dword ptr [esi + 0x74] */ 5783 MEM32(ebp + (-0x4)) = eax; /* 0x2B0482E5: mov dword ptr [ebp - 4], eax */ 5784 ebx = MEM32(0x2B0B5A4C); /* 0x2B0482E8: mov ebx, dword ptr [0x2b0b5a4c] */ 5785 RECOMP_ICALL(ebx); /* 0x2B0482EE: call ebx */ 5786 RECOMP_FLAGS_IN(); 5787 ecx = MEM32(esi + 0x74); /* 0x2B0482F0: mov ecx, dword ptr [esi + 0x74] */ 5788 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B0482F3: call dword ptr [0x2b0b5960] */ 5789 RECOMP_FLAGS_IN(); 5790 edi = MEM32(esi + 0x3C); /* 0x2B0482F9: mov edi, dword ptr [esi + 0x3c] */ 5791 eax = MEM32(esi + 0x8); /* 0x2B0482FC: mov eax, dword ptr [esi + 8] */ 5792 ecx = MEM32(esi + 0x4); /* 0x2B0482FF: mov ecx, dword ptr [esi + 4] */ 5793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5795 eax = eax - edi; /* 0x2B048302: sub eax, edi */ 5796 _flag_k = FK_CMP; 5797 edi = MEM32(0x2B0B5924); /* 0x2B048304: mov edi, dword ptr [0x2b0b5924] */ 5798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x155u); 5799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5800 eax = eax + 0x155u; /* 0x2B04830A: add eax, 0x155 */ 5801 _flag_k = FK_ADD; 5802 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xAFu); 5803 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5804 ecx = ecx + 0xAFu; /* 0x2B04830F: add ecx, 0xaf */ 5805 _flag_k = FK_ADD; 5806 PUSH32(esp, eax); /* 0x2B048315: push eax */ 5807 MEM32(ebp + (-0x8)) = ecx; /* 0x2B048316: mov dword ptr [ebp - 8], ecx */ 5808 PUSH32(esp, ecx); /* 0x2B048319: push ecx */ 5809 ecx = MEM32(esi + 0x90); /* 0x2B04831A: mov ecx, dword ptr [esi + 0x90] */ 5810 MEM32(ebp + (-0x4)) = eax; /* 0x2B048320: mov dword ptr [ebp - 4], eax */ 5811 RECOMP_ICALL(edi); /* 0x2B048323: call edi */ 5812 RECOMP_FLAGS_IN(); 5813 eax = MEM32(esi + 0x90); /* 0x2B048325: mov eax, dword ptr [esi + 0x90] */ 5814 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04832B: mov byte ptr [eax + 9], 1 */ 5815 /* cmp MEM32(esi + 0x48), 1 */ /* 0x2B04832F: cmp dword ptr [esi + 0x48], 1 */ 5816 _flag_a = (uint32_t)(MEM32(esi + 0x48)); _flag_b = (uint32_t)(1); 5817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5818 _flag_k = FK_CMP; 5819 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04836D; /* 0x2B048333: jne 0x2b04836d */ 5820 L_2B048335: 5821 eax = MEM32(esi + 0x8); /* 0x2B048335: mov eax, dword ptr [esi + 8] */ 5822 edx = MEM32(esi + 0x3C); /* 0x2B048338: mov edx, dword ptr [esi + 0x3c] */ 5823 ecx = MEM32(esi + 0x4); /* 0x2B04833B: mov ecx, dword ptr [esi + 4] */ 5824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5826 eax = eax - edx; /* 0x2B04833E: sub eax, edx */ 5827 _flag_k = FK_CMP; 5828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1AEu); 5829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5830 eax = eax + 0x1AEu; /* 0x2B048340: add eax, 0x1ae */ 5831 _flag_k = FK_ADD; 5832 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xAFu); 5833 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5834 ecx = ecx + 0xAFu; /* 0x2B048345: add ecx, 0xaf */ 5835 _flag_k = FK_ADD; 5836 PUSH32(esp, eax); /* 0x2B04834B: push eax */ 5837 MEM32(ebp + (-0x8)) = ecx; /* 0x2B04834C: mov dword ptr [ebp - 8], ecx */ 5838 PUSH32(esp, ecx); /* 0x2B04834F: push ecx */ 5839 ecx = MEM32(esi + 0x94); /* 0x2B048350: mov ecx, dword ptr [esi + 0x94] */ 5840 MEM32(ebp + (-0x4)) = eax; /* 0x2B048356: mov dword ptr [ebp - 4], eax */ 5841 RECOMP_ICALL(edi); /* 0x2B048359: call edi */ 5842 RECOMP_FLAGS_IN(); 5843 ecx = MEM32(esi + 0x94); /* 0x2B04835B: mov ecx, dword ptr [esi + 0x94] */ 5844 edi = MEM32(0x2B0B5940); /* 0x2B048361: mov edi, dword ptr [0x2b0b5940] */ 5845 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B048367: mov byte ptr [ecx + 9], 1 */ 5846 goto L_2B0483D3; /* 0x2B04836B: jmp 0x2b0483d3 */ 5847 L_2B04836D: 5848 edx = MEM32(esi + 0x4); /* 0x2B04836D: mov edx, dword ptr [esi + 4] */ 5849 eax = MEM32(esi + 0x8); /* 0x2B048370: mov eax, dword ptr [esi + 8] */ 5850 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x40u); 5851 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5852 edx = edx + 0x40u; /* 0x2B048373: add edx, 0x40 */ 5853 _flag_k = FK_ADD; 5854 MEM32(ebp + (-0x8)) = edx; /* 0x2B048376: mov dword ptr [ebp - 8], edx */ 5855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x3C)); 5856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5857 eax = eax - MEM32(esi + 0x3C); /* 0x2B048379: sub eax, dword ptr [esi + 0x3c] */ 5858 _flag_k = FK_CMP; 5859 ecx = ebp + (-0x8); /* 0x2B04837C: lea ecx, [ebp - 8] */ 5860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1AEu); 5861 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5862 eax = eax + 0x1AEu; /* 0x2B04837F: add eax, 0x1ae */ 5863 _flag_k = FK_ADD; 5864 PUSH32(esp, ecx); /* 0x2B048384: push ecx */ 5865 ecx = MEM32(esi + 0x9C); /* 0x2B048385: mov ecx, dword ptr [esi + 0x9c] */ 5866 MEM32(ebp + (-0x4)) = eax; /* 0x2B04838B: mov dword ptr [ebp - 4], eax */ 5867 RECOMP_ICALL(MEM32(0x2B0B5A50)); /* 0x2B04838E: call dword ptr [0x2b0b5a50] */ 5868 RECOMP_FLAGS_IN(); 5869 ecx = MEM32(esi + 0x9C); /* 0x2B048394: mov ecx, dword ptr [esi + 0x9c] */ 5870 RECOMP_ICALL(MEM32(0x2B0B5A98)); /* 0x2B04839A: call dword ptr [0x2b0b5a98] */ 5871 RECOMP_FLAGS_IN(); 5872 edx = MEM32(esi + 0x4); /* 0x2B0483A0: mov edx, dword ptr [esi + 4] */ 5873 eax = MEM32(esi + 0x8); /* 0x2B0483A3: mov eax, dword ptr [esi + 8] */ 5874 edi = MEM32(0x2B0B5940); /* 0x2B0483A6: mov edi, dword ptr [0x2b0b5940] */ 5875 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x36u); 5876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5877 edx = edx + 0x36u; /* 0x2B0483AC: add edx, 0x36 */ 5878 _flag_k = FK_ADD; 5879 MEM32(ebp + (-0x8)) = edx; /* 0x2B0483AF: mov dword ptr [ebp - 8], edx */ 5880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x3C)); 5881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5882 eax = eax - MEM32(esi + 0x3C); /* 0x2B0483B2: sub eax, dword ptr [esi + 0x3c] */ 5883 _flag_k = FK_CMP; 5884 ecx = ebp + (-0x8); /* 0x2B0483B5: lea ecx, [ebp - 8] */ 5885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1AAu); 5886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5887 eax = eax + 0x1AAu; /* 0x2B0483B8: add eax, 0x1aa */ 5888 _flag_k = FK_ADD; 5889 PUSH32(esp, ecx); /* 0x2B0483BD: push ecx */ 5890 ecx = MEM32(esi + 0x84); /* 0x2B0483BE: mov ecx, dword ptr [esi + 0x84] */ 5891 MEM32(ebp + (-0x4)) = eax; /* 0x2B0483C4: mov dword ptr [ebp - 4], eax */ 5892 RECOMP_ICALL(edi); /* 0x2B0483C7: call edi */ 5893 RECOMP_FLAGS_IN(); 5894 edx = MEM32(esi + 0x84); /* 0x2B0483C9: mov edx, dword ptr [esi + 0x84] */ 5895 MEM8(edx + 0x9) = (uint8_t)(1); /* 0x2B0483CF: mov byte ptr [edx + 9], 1 */ 5896 L_2B0483D3: 5897 eax = MEM32(esi + 0x4); /* 0x2B0483D3: mov eax, dword ptr [esi + 4] */ 5898 ecx = MEM32(esi + 0x8); /* 0x2B0483D6: mov ecx, dword ptr [esi + 8] */ 5899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x9Au); 5900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5901 eax = eax + 0x9Au; /* 0x2B0483D9: add eax, 0x9a */ 5902 _flag_k = FK_ADD; 5903 MEM32(ebp + (-0x8)) = eax; /* 0x2B0483DE: mov dword ptr [ebp - 8], eax */ 5904 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x3C)); 5905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5906 ecx = ecx - MEM32(esi + 0x3C); /* 0x2B0483E1: sub ecx, dword ptr [esi + 0x3c] */ 5907 _flag_k = FK_CMP; 5908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1C1u); 5909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5910 ecx = ecx + 0x1C1u; /* 0x2B0483E4: add ecx, 0x1c1 */ 5911 _flag_k = FK_ADD; 5912 edx = ebp + (-0x8); /* 0x2B0483EA: lea edx, [ebp - 8] */ 5913 MEM32(ebp + (-0x4)) = ecx; /* 0x2B0483ED: mov dword ptr [ebp - 4], ecx */ 5914 ecx = MEM32(esi + 0x7C); /* 0x2B0483F0: mov ecx, dword ptr [esi + 0x7c] */ 5915 PUSH32(esp, edx); /* 0x2B0483F3: push edx */ 5916 RECOMP_ICALL(edi); /* 0x2B0483F4: call edi */ 5917 RECOMP_FLAGS_IN(); 5918 eax = MEM32(esi + 0x7C); /* 0x2B0483F6: mov eax, dword ptr [esi + 0x7c] */ 5919 ecx = ebp + (-0x8); /* 0x2B0483F9: lea ecx, [ebp - 8] */ 5920 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B0483FC: mov byte ptr [eax + 9], 1 */ 5921 PUSH32(esp, ecx); /* 0x2B048400: push ecx */ 5922 ecx = MEM32(esi + 0x80); /* 0x2B048401: mov ecx, dword ptr [esi + 0x80] */ 5923 RECOMP_ICALL(edi); /* 0x2B048407: call edi */ 5924 RECOMP_FLAGS_IN(); 5925 edx = MEM32(esi + 0x80); /* 0x2B048409: mov edx, dword ptr [esi + 0x80] */ 5926 MEM8(edx + 0x9) = (uint8_t)(1); /* 0x2B04840F: mov byte ptr [edx + 9], 1 */ 5927 eax = MEM32(esi + 0x8); /* 0x2B048413: mov eax, dword ptr [esi + 8] */ 5928 edx = MEM32(esi + 0x3C); /* 0x2B048416: mov edx, dword ptr [esi + 0x3c] */ 5929 ecx = MEM32(esi + 0x4); /* 0x2B048419: mov ecx, dword ptr [esi + 4] */ 5930 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5932 eax = eax - edx; /* 0x2B04841C: sub eax, edx */ 5933 _flag_k = FK_CMP; 5934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1BFu); 5935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5936 eax = eax + 0x1BFu; /* 0x2B04841E: add eax, 0x1bf */ 5937 _flag_k = FK_ADD; 5938 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x51u); 5939 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5940 ecx = ecx + 0x51u; /* 0x2B048423: add ecx, 0x51 */ 5941 _flag_k = FK_ADD; 5942 PUSH32(esp, eax); /* 0x2B048426: push eax */ 5943 MEM32(ebp + (-0x8)) = ecx; /* 0x2B048427: mov dword ptr [ebp - 8], ecx */ 5944 PUSH32(esp, ecx); /* 0x2B04842A: push ecx */ 5945 ecx = MEM32(esi + 0x78); /* 0x2B04842B: mov ecx, dword ptr [esi + 0x78] */ 5946 MEM32(ebp + (-0x4)) = eax; /* 0x2B04842E: mov dword ptr [ebp - 4], eax */ 5947 RECOMP_ICALL(ebx); /* 0x2B048431: call ebx */ 5948 RECOMP_FLAGS_IN(); 5949 ecx = MEM32(esi + 0x78); /* 0x2B048433: mov ecx, dword ptr [esi + 0x78] */ 5950 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B048436: call dword ptr [0x2b0b5960] */ 5951 RECOMP_FLAGS_IN(); 5952 edi = POP32_VAL(esp); /* 0x2B04843C: pop edi */ 5953 esi = POP32_VAL(esp); /* 0x2B04843D: pop esi */ 5954 ebx = POP32_VAL(esp); /* 0x2B04843E: pop ebx */ 5955 esp = ebp; /* 0x2B04843F: mov esp, ebp */ 5956 ebp = POP32_VAL(esp); /* 0x2B048441: pop ebp */ 5957 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048442: ret */ 5958 RECOMP_REGS_OUT(); 5959 } 5960 5961 void sub_2B048450(void) { 5962 int _fpu_cmp = 0; 5963 uint32_t _cf = 0; 5964 int _df = 1; 5965 uint32_t _flag_k = FK_NONE; 5966 uint32_t _flag_a = 0, _flag_b = 0; 5967 uint32_t _itail_tgt = 0; 5968 RECOMP_REGS_LOCALS 5969 RECOMP_ENTER(0x2B048450u); 5970 5971 L_2B048450: 5972 PUSH32(esp, ebx); /* 0x2B048450: push ebx */ 5973 PUSH32(esp, esi); /* 0x2B048451: push esi */ 5974 esi = ecx; /* 0x2B048452: mov esi, ecx */ 5975 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B048454: mov al, byte ptr [esi + 0x4c] */ 5976 /* test LO8(eax), LO8(eax) */ /* 0x2B048457: test al, al */ 5977 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5978 _cf = 0; 5979 _flag_k = FK_NARROW(FK_TEST, 24); 5980 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048514; /* 0x2B048459: je 0x2b048514 */ 5981 L_2B04845F: 5982 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x2B04845F: mov al, byte ptr [esi + 0x14] */ 5983 /* test LO8(eax), LO8(eax) */ /* 0x2B048462: test al, al */ 5984 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5985 _cf = 0; 5986 _flag_k = FK_NARROW(FK_TEST, 24); 5987 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048514; /* 0x2B048464: je 0x2b048514 */ 5988 L_2B04846A: 5989 eax = MEM32(esi + 0xB0); /* 0x2B04846A: mov eax, dword ptr [esi + 0xb0] */ 5990 ebx = 1; /* 0x2B048470: mov ebx, 1 */ 5991 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048475: mov byte ptr [eax + 8], bl */ 5992 ecx = MEM32(esi + 0x30); /* 0x2B048478: mov ecx, dword ptr [esi + 0x30] */ 5993 PUSH32(esp, edi); /* 0x2B04847B: push edi */ 5994 edi = MEM32(0x2B0B58DC); /* 0x2B04847C: mov edi, dword ptr [0x2b0b58dc] */ 5995 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048482: mov byte ptr [ecx + 8], bl */ 5996 ecx = MEM32(esi + 0x54); /* 0x2B048485: mov ecx, dword ptr [esi + 0x54] */ 5997 RECOMP_ICALL(edi); /* 0x2B048488: call edi */ 5998 RECOMP_FLAGS_IN(); 5999 ecx = MEM32(esi + 0x58); /* 0x2B04848A: mov ecx, dword ptr [esi + 0x58] */ 6000 RECOMP_ICALL(edi); /* 0x2B04848D: call edi */ 6001 RECOMP_FLAGS_IN(); 6002 ecx = MEM32(esi + 0x74); /* 0x2B04848F: mov ecx, dword ptr [esi + 0x74] */ 6003 RECOMP_ICALL(MEM32(0x2B0B5B3C)); /* 0x2B048492: call dword ptr [0x2b0b5b3c] */ 6004 RECOMP_FLAGS_IN(); 6005 ecx = MEM32(esi + 0x78); /* 0x2B048498: mov ecx, dword ptr [esi + 0x78] */ 6006 RECOMP_ICALL(MEM32(0x2B0B5B3C)); /* 0x2B04849B: call dword ptr [0x2b0b5b3c] */ 6007 RECOMP_FLAGS_IN(); 6008 edx = MEM32(esi + 0x90); /* 0x2B0484A1: mov edx, dword ptr [esi + 0x90] */ 6009 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B0484A7: mov byte ptr [edx + 8], bl */ 6010 eax = MEM32(esi + 0x94); /* 0x2B0484AA: mov eax, dword ptr [esi + 0x94] */ 6011 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B0484B0: mov byte ptr [eax + 8], bl */ 6012 /* cmp MEM32(esi + 0x48), ebx */ /* 0x2B0484B3: cmp dword ptr [esi + 0x48], ebx */ 6013 _flag_a = (uint32_t)(MEM32(esi + 0x48)); _flag_b = (uint32_t)(ebx); 6014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6015 _flag_k = FK_CMP; 6016 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0484BF; /* 0x2B0484B6: jne 0x2b0484bf */ 6017 L_2B0484B8: 6018 ecx = MEM32(esi + 0x50); /* 0x2B0484B8: mov ecx, dword ptr [esi + 0x50] */ 6019 RECOMP_ICALL(edi); /* 0x2B0484BB: call edi */ 6020 RECOMP_FLAGS_IN(); 6021 goto L_2B048500; /* 0x2B0484BD: jmp 0x2b048500 */ 6022 L_2B0484BF: 6023 ecx = MEM32(esi + 0x84); /* 0x2B0484BF: mov ecx, dword ptr [esi + 0x84] */ 6024 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B0484C5: mov byte ptr [ecx + 8], bl */ 6025 ecx = MEM32(esi + 0x9C); /* 0x2B0484C8: mov ecx, dword ptr [esi + 0x9c] */ 6026 RECOMP_ICALL(MEM32(0x2B0B5A14)); /* 0x2B0484CE: call dword ptr [0x2b0b5a14] */ 6027 RECOMP_FLAGS_IN(); 6028 SET_LO8(eax, MEM8(esi + 0x88)); /* 0x2B0484D4: mov al, byte ptr [esi + 0x88] */ 6029 /* test LO8(eax), LO8(eax) */ /* 0x2B0484DA: test al, al */ 6030 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6031 _cf = 0; 6032 _flag_k = FK_NARROW(FK_TEST, 24); 6033 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0484F0; /* 0x2B0484DC: je 0x2b0484f0 */ 6034 L_2B0484DE: 6035 edx = MEM32(esi + 0x80); /* 0x2B0484DE: mov edx, dword ptr [esi + 0x80] */ 6036 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B0484E4: mov byte ptr [edx + 8], 0 */ 6037 eax = MEM32(esi + 0x7C); /* 0x2B0484E8: mov eax, dword ptr [esi + 0x7c] */ 6038 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B0484EB: mov byte ptr [eax + 8], bl */ 6039 goto L_2B048500; /* 0x2B0484EE: jmp 0x2b048500 */ 6040 L_2B0484F0: 6041 ecx = MEM32(esi + 0x7C); /* 0x2B0484F0: mov ecx, dword ptr [esi + 0x7c] */ 6042 MEM8(ecx + 0x8) = (uint8_t)(0); /* 0x2B0484F3: mov byte ptr [ecx + 8], 0 */ 6043 edx = MEM32(esi + 0x80); /* 0x2B0484F7: mov edx, dword ptr [esi + 0x80] */ 6044 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B0484FD: mov byte ptr [edx + 8], bl */ 6045 L_2B048500: 6046 SET_LO8(eax, MEM8(esi + 0x89)); /* 0x2B048500: mov al, byte ptr [esi + 0x89] */ 6047 /* test LO8(eax), LO8(eax) */ /* 0x2B048506: test al, al */ 6048 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6049 _cf = 0; 6050 _flag_k = FK_NARROW(FK_TEST, 24); 6051 edi = POP32_VAL(esp); /* 0x2B048508: pop edi */ 6052 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048514; /* 0x2B048509: je 0x2b048514 */ 6053 L_2B04850B: 6054 eax = MEM32(esi + 0x8C); /* 0x2B04850B: mov eax, dword ptr [esi + 0x8c] */ 6055 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048511: mov byte ptr [eax + 8], bl */ 6056 L_2B048514: 6057 esi = POP32_VAL(esp); /* 0x2B048514: pop esi */ 6058 ebx = POP32_VAL(esp); /* 0x2B048515: pop ebx */ 6059 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048516: ret */ 6060 RECOMP_REGS_OUT(); 6061 } 6062 6063 void sub_2B048520(void) { 6064 int _fpu_cmp = 0; 6065 uint32_t _cf = 0; 6066 int _df = 1; 6067 uint32_t _flag_k = FK_NONE; 6068 uint32_t _flag_a = 0, _flag_b = 0; 6069 uint32_t _itail_tgt = 0; 6070 RECOMP_REGS_LOCALS 6071 RECOMP_ENTER(0x2B048520u); 6072 6073 L_2B048520: 6074 PUSH32(esp, ebx); /* 0x2B048520: push ebx */ 6075 PUSH32(esp, esi); /* 0x2B048521: push esi */ 6076 esi = ecx; /* 0x2B048522: mov esi, ecx */ 6077 eax = MEM32(esi + 0xB0); /* 0x2B048524: mov eax, dword ptr [esi + 0xb0] */ 6078 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6079 SET_LO8(ebx, 0); /* 0x2B04852A: xor bl, bl */ 6080 _cf = 0; 6081 _flag_k = FK_NARROW(FK_TEST, 24); 6082 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04852C: mov byte ptr [eax + 8], bl */ 6083 ecx = MEM32(esi + 0x34); /* 0x2B04852F: mov ecx, dword ptr [esi + 0x34] */ 6084 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048532: mov byte ptr [ecx + 8], bl */ 6085 edx = MEM32(esi + 0x38); /* 0x2B048535: mov edx, dword ptr [esi + 0x38] */ 6086 PUSH32(esp, edi); /* 0x2B048538: push edi */ 6087 edi = MEM32(0x2B0B58D8); /* 0x2B048539: mov edi, dword ptr [0x2b0b58d8] */ 6088 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04853F: mov byte ptr [edx + 8], bl */ 6089 ecx = MEM32(esi + 0x54); /* 0x2B048542: mov ecx, dword ptr [esi + 0x54] */ 6090 RECOMP_ICALL(edi); /* 0x2B048545: call edi */ 6091 RECOMP_FLAGS_IN(); 6092 ecx = MEM32(esi + 0x58); /* 0x2B048547: mov ecx, dword ptr [esi + 0x58] */ 6093 RECOMP_ICALL(edi); /* 0x2B04854A: call edi */ 6094 RECOMP_FLAGS_IN(); 6095 ecx = MEM32(esi + 0x50); /* 0x2B04854C: mov ecx, dword ptr [esi + 0x50] */ 6096 RECOMP_ICALL(edi); /* 0x2B04854F: call edi */ 6097 RECOMP_FLAGS_IN(); 6098 ecx = MEM32(esi + 0x74); /* 0x2B048551: mov ecx, dword ptr [esi + 0x74] */ 6099 edi = MEM32(0x2B0B5B34); /* 0x2B048554: mov edi, dword ptr [0x2b0b5b34] */ 6100 RECOMP_ICALL(edi); /* 0x2B04855A: call edi */ 6101 RECOMP_FLAGS_IN(); 6102 ecx = MEM32(esi + 0x78); /* 0x2B04855C: mov ecx, dword ptr [esi + 0x78] */ 6103 RECOMP_ICALL(edi); /* 0x2B04855F: call edi */ 6104 RECOMP_FLAGS_IN(); 6105 eax = MEM32(esi + 0x90); /* 0x2B048561: mov eax, dword ptr [esi + 0x90] */ 6106 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048567: mov byte ptr [eax + 8], bl */ 6107 ecx = MEM32(esi + 0x94); /* 0x2B04856A: mov ecx, dword ptr [esi + 0x94] */ 6108 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048570: mov byte ptr [ecx + 8], bl */ 6109 edx = MEM32(esi + 0x7C); /* 0x2B048573: mov edx, dword ptr [esi + 0x7c] */ 6110 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048576: mov byte ptr [edx + 8], bl */ 6111 eax = MEM32(esi + 0x80); /* 0x2B048579: mov eax, dword ptr [esi + 0x80] */ 6112 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04857F: mov byte ptr [eax + 8], bl */ 6113 ecx = MEM32(esi + 0x8C); /* 0x2B048582: mov ecx, dword ptr [esi + 0x8c] */ 6114 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048588: mov byte ptr [ecx + 8], bl */ 6115 edx = MEM32(esi + 0x84); /* 0x2B04858B: mov edx, dword ptr [esi + 0x84] */ 6116 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048591: mov byte ptr [edx + 8], bl */ 6117 ecx = MEM32(esi + 0x9C); /* 0x2B048594: mov ecx, dword ptr [esi + 0x9c] */ 6118 RECOMP_ICALL(MEM32(0x2B0B5A18)); /* 0x2B04859A: call dword ptr [0x2b0b5a18] */ 6119 RECOMP_FLAGS_IN(); 6120 edi = POP32_VAL(esp); /* 0x2B0485A0: pop edi */ 6121 esi = POP32_VAL(esp); /* 0x2B0485A1: pop esi */ 6122 ebx = POP32_VAL(esp); /* 0x2B0485A2: pop ebx */ 6123 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0485A3: ret */ 6124 RECOMP_REGS_OUT(); 6125 } 6126 6127 void sub_2B0485B0(void) { 6128 int _fpu_cmp = 0; 6129 uint32_t _cf = 0; 6130 int _df = 1; 6131 uint32_t _flag_k = FK_NONE; 6132 uint32_t _flag_a = 0, _flag_b = 0; 6133 uint32_t _itail_tgt = 0; 6134 RECOMP_REGS_LOCALS 6135 RECOMP_ENTER(0x2B0485B0u); 6136 6137 L_2B0485B0: 6138 PUSH32(esp, ebp); /* 0x2B0485B0: push ebp */ 6139 ebp = esp; /* 0x2B0485B1: mov ebp, esp */ 6140 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x6Cu); 6141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6142 esp = esp - 0x6Cu; /* 0x2B0485B3: sub esp, 0x6c */ 6143 _flag_k = FK_CMP; 6144 PUSH32(esp, ebx); /* 0x2B0485B6: push ebx */ 6145 PUSH32(esp, esi); /* 0x2B0485B7: push esi */ 6146 esi = ecx; /* 0x2B0485B8: mov esi, ecx */ 6147 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B0485BA: mov al, byte ptr [esi + 0x4c] */ 6148 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6149 ebx = 0; /* 0x2B0485BD: xor ebx, ebx */ 6150 _cf = 0; 6151 _flag_k = FK_TEST; 6152 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0485BF: cmp al, bl */ 6153 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6155 _flag_k = FK_NARROW(FK_CMP, 24); 6156 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0487D1; /* 0x2B0485C1: jne 0x2b0487d1 */ 6157 L_2B0485C7: 6158 RECOMP_ICALL(0x2B0487E0u); /* 0x2B0485C7: call 0x2b0487e0 */ /* not lifted */ 6159 RECOMP_FLAGS_IN(); 6160 eax = MEM32(ebp + 0xC); /* 0x2B0485CC: mov eax, dword ptr [ebp + 0xc] */ 6161 ecx = MEM32(esi + 0x2C); /* 0x2B0485CF: mov ecx, dword ptr [esi + 0x2c] */ 6162 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x2B0485D2: cmp ecx, dword ptr [eax + 4] */ 6163 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 6164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6165 _flag_k = FK_CMP; 6166 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0485DE; /* 0x2B0485D5: jne 0x2b0485de */ 6167 L_2B0485D7: 6168 edx = MEM32(esi + 0x28); /* 0x2B0485D7: mov edx, dword ptr [esi + 0x28] */ 6169 /* cmp edx, MEM32(eax) */ /* 0x2B0485DA: cmp edx, dword ptr [eax] */ 6170 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 6171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6172 _flag_k = FK_CMP; 6173 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04860F; /* 0x2B0485DC: je 0x2b04860f */ 6174 L_2B0485DE: 6175 ecx = MEM32(0x2B0B610C); /* 0x2B0485DE: mov ecx, dword ptr [0x2b0b610c] */ 6176 ecx = MEM32(ecx); /* 0x2B0485E4: mov ecx, dword ptr [ecx] */ 6177 PUSH32(esp, eax); /* 0x2B0485E6: push eax */ 6178 RECOMP_ICALL(MEM32(0x2B0B611C)); /* 0x2B0485E7: call dword ptr [0x2b0b611c] */ 6179 RECOMP_FLAGS_IN(); 6180 /* test LO8(eax), LO8(eax) */ /* 0x2B0485ED: test al, al */ 6181 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6182 _cf = 0; 6183 _flag_k = FK_NARROW(FK_TEST, 24); 6184 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04860F; /* 0x2B0485EF: je 0x2b04860f */ 6185 L_2B0485F1: 6186 PUSH32(esp, ebx); /* 0x2B0485F1: push ebx */ 6187 PUSH32(esp, 0x16Du); /* 0x2B0485F2: push 0x16d */ 6188 PUSH32(esp, 9); /* 0x2B0485F7: push 9 */ 6189 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0485F9: call dword ptr [0x2b0b53cc] */ 6190 RECOMP_FLAGS_IN(); 6191 ecx = eax; /* 0x2B0485FF: mov ecx, eax */ 6192 RECOMP_ICALL(MEM32(0x2B0B53B8)); /* 0x2B048601: call dword ptr [0x2b0b53b8] */ 6193 RECOMP_FLAGS_IN(); 6194 esi = POP32_VAL(esp); /* 0x2B048607: pop esi */ 6195 ebx = POP32_VAL(esp); /* 0x2B048608: pop ebx */ 6196 esp = ebp; /* 0x2B048609: mov esp, ebp */ 6197 ebp = POP32_VAL(esp); /* 0x2B04860B: pop ebp */ 6198 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B04860C: ret 0xc */ 6199 L_2B04860F: 6200 PUSH32(esp, edi); /* 0x2B04860F: push edi */ 6201 edi = MEM32(ebp + 0x10); /* 0x2B048610: mov edi, dword ptr [ebp + 0x10] */ 6202 MEM8(esi + 0x4C) = (uint8_t)(1); /* 0x2B048613: mov byte ptr [esi + 0x4c], 1 */ 6203 MEM32(esi + 0xA0) = ebx; /* 0x2B048617: mov dword ptr [esi + 0xa0], ebx */ 6204 /* cmp MEM32(edi + 0x4), ebx */ /* 0x2B04861D: cmp dword ptr [edi + 4], ebx */ 6205 _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(ebx); 6206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6207 _flag_k = FK_CMP; 6208 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04867A; /* 0x2B048620: jne 0x2b04867a */ 6209 L_2B048622: 6210 /* cmp MEM32(edi), ebx */ /* 0x2B048622: cmp dword ptr [edi], ebx */ 6211 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(ebx); 6212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6213 _flag_k = FK_CMP; 6214 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04867A; /* 0x2B048624: jne 0x2b04867a */ 6215 L_2B048626: 6216 /* cmp MEM8(esi + 0x1C), LO8(ebx) */ /* 0x2B048626: cmp byte ptr [esi + 0x1c], bl */ 6217 _flag_a = (uint32_t)(MEM8(esi + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6219 _flag_k = FK_NARROW(FK_CMP, 24); 6220 eax = MEM32(esi + 0x40); /* 0x2B048629: mov eax, dword ptr [esi + 0x40] */ 6221 MEM32(esi + 0x48) = ebx; /* 0x2B04862C: mov dword ptr [esi + 0x48], ebx */ 6222 MEM32(esi + 0x20) = eax; /* 0x2B04862F: mov dword ptr [esi + 0x20], eax */ 6223 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04863C; /* 0x2B048632: je 0x2b04863c */ 6224 L_2B048634: 6225 /* cmp MEM8(esi + 0xC), LO8(ebx) */ /* 0x2B048634: cmp byte ptr [esi + 0xc], bl */ 6226 _flag_a = (uint32_t)(MEM8(esi + 0xC)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6228 _flag_k = FK_NARROW(FK_CMP, 24); 6229 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04863C; /* 0x2B048637: je 0x2b04863c */ 6230 L_2B048639: 6231 MEM32(esi + 0x18) = eax; /* 0x2B048639: mov dword ptr [esi + 0x18], eax */ 6232 L_2B04863C: 6233 edx = MEM32(esi + 0x34); /* 0x2B04863C: mov edx, dword ptr [esi + 0x34] */ 6234 ecx = MEM32(esi + 0x44); /* 0x2B04863F: mov ecx, dword ptr [esi + 0x44] */ 6235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6237 ecx = ecx - eax; /* 0x2B048642: sub ecx, eax */ 6238 _flag_k = FK_CMP; 6239 MEM32(esi + 0x30) = edx; /* 0x2B048644: mov dword ptr [esi + 0x30], edx */ 6240 edx = MEM32(esi + 0x50); /* 0x2B048647: mov edx, dword ptr [esi + 0x50] */ 6241 MEM32(esi + 0x3C) = ecx; /* 0x2B04864A: mov dword ptr [esi + 0x3c], ecx */ 6242 eax = 4; /* 0x2B04864D: mov eax, 4 */ 6243 MEM32(edx + 0x3C) = eax; /* 0x2B048652: mov dword ptr [edx + 0x3c], eax */ 6244 ecx = MEM32(esi + 0x54); /* 0x2B048655: mov ecx, dword ptr [esi + 0x54] */ 6245 MEM32(ecx + 0x3C) = eax; /* 0x2B048658: mov dword ptr [ecx + 0x3c], eax */ 6246 ecx = MEM32(esi + 0x9C); /* 0x2B04865B: mov ecx, dword ptr [esi + 0x9c] */ 6247 PUSH32(esp, 0x2B0E785Cu); /* 0x2B048661: push 0x2b0e785c */ 6248 RECOMP_ICALL(MEM32(0x2B0B5A24)); /* 0x2B048666: call dword ptr [0x2b0b5a24] */ 6249 RECOMP_FLAGS_IN(); 6250 ecx = MEM32(esi + 0x9C); /* 0x2B04866C: mov ecx, dword ptr [esi + 0x9c] */ 6251 RECOMP_ICALL(MEM32(0x2B0B5A98)); /* 0x2B048672: call dword ptr [0x2b0b5a98] */ 6252 RECOMP_FLAGS_IN(); 6253 goto L_2B0486C3; /* 0x2B048678: jmp 0x2b0486c3 */ 6254 L_2B04867A: 6255 /* cmp MEM8(esi + 0x1C), LO8(ebx) */ /* 0x2B04867A: cmp byte ptr [esi + 0x1c], bl */ 6256 _flag_a = (uint32_t)(MEM8(esi + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6258 _flag_k = FK_NARROW(FK_CMP, 24); 6259 eax = MEM32(esi + 0x44); /* 0x2B04867D: mov eax, dword ptr [esi + 0x44] */ 6260 MEM32(esi + 0x48) = 1; /* 0x2B048680: mov dword ptr [esi + 0x48], 1 */ 6261 MEM32(esi + 0x20) = eax; /* 0x2B048687: mov dword ptr [esi + 0x20], eax */ 6262 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B048694; /* 0x2B04868A: je 0x2b048694 */ 6263 L_2B04868C: 6264 /* cmp MEM8(esi + 0xC), LO8(ebx) */ /* 0x2B04868C: cmp byte ptr [esi + 0xc], bl */ 6265 _flag_a = (uint32_t)(MEM8(esi + 0xC)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6267 _flag_k = FK_NARROW(FK_CMP, 24); 6268 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B048694; /* 0x2B04868F: je 0x2b048694 */ 6269 L_2B048691: 6270 MEM32(esi + 0x18) = eax; /* 0x2B048691: mov dword ptr [esi + 0x18], eax */ 6271 L_2B048694: 6272 edx = MEM32(esi + 0x38); /* 0x2B048694: mov edx, dword ptr [esi + 0x38] */ 6273 ecx = MEM32(esi + 0x50); /* 0x2B048697: mov ecx, dword ptr [esi + 0x50] */ 6274 MEM32(esi + 0x30) = edx; /* 0x2B04869A: mov dword ptr [esi + 0x30], edx */ 6275 MEM32(esi + 0x3C) = ebx; /* 0x2B04869D: mov dword ptr [esi + 0x3c], ebx */ 6276 eax = 5; /* 0x2B0486A0: mov eax, 5 */ 6277 MEM32(ecx + 0x3C) = eax; /* 0x2B0486A5: mov dword ptr [ecx + 0x3c], eax */ 6278 edx = MEM32(esi + 0x54); /* 0x2B0486A8: mov edx, dword ptr [esi + 0x54] */ 6279 MEM32(edx + 0x3C) = eax; /* 0x2B0486AB: mov dword ptr [edx + 0x3c], eax */ 6280 ecx = MEM32(0x2B0EF104); /* 0x2B0486AE: mov ecx, dword ptr [0x2b0ef104] */ 6281 /* cmp ecx, ebx */ /* 0x2B0486B4: cmp ecx, ebx */ 6282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6284 _flag_k = FK_CMP; 6285 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0486C3; /* 0x2B0486B6: je 0x2b0486c3 */ 6286 L_2B0486B8: 6287 PUSH32(esp, ebx); /* 0x2B0486B8: push ebx */ 6288 PUSH32(esp, 0x2B0E784Cu); /* 0x2B0486B9: push 0x2b0e784c */ 6289 RECOMP_ICALL(0x2B08D480u); /* 0x2B0486BE: call 0x2b08d480 */ /* not lifted */ 6290 RECOMP_FLAGS_IN(); 6291 L_2B0486C3: 6292 ecx = MEM32(esi + 0x74); /* 0x2B0486C3: mov ecx, dword ptr [esi + 0x74] */ 6293 PUSH32(esp, 1); /* 0x2B0486C6: push 1 */ 6294 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B0486C8: call dword ptr [0x2b0b5ab4] */ 6295 RECOMP_FLAGS_IN(); 6296 ecx = esi; /* 0x2B0486CE: mov ecx, esi */ 6297 MEM8(esi + 0x88) = (uint8_t)(LO8(ebx)); /* 0x2B0486D0: mov byte ptr [esi + 0x88], bl */ 6298 MEM8(esi + 0x89) = (uint8_t)(LO8(ebx)); /* 0x2B0486D6: mov byte ptr [esi + 0x89], bl */ 6299 MEM32(esi + 0xA4) = ebx; /* 0x2B0486DC: mov dword ptr [esi + 0xa4], ebx */ 6300 MEM32(esi + 0xA8) = ebx; /* 0x2B0486E2: mov dword ptr [esi + 0xa8], ebx */ 6301 MEM32(esi + 0xAC) = ebx; /* 0x2B0486E8: mov dword ptr [esi + 0xac], ebx */ 6302 RECOMP_ICALL(0x2B048D50u); /* 0x2B0486EE: call 0x2b048d50 */ /* not lifted */ 6303 RECOMP_FLAGS_IN(); 6304 eax = MEM32(esi + 0x20); /* 0x2B0486F3: mov eax, dword ptr [esi + 0x20] */ 6305 ecx = MEM32(esi + 0xB0); /* 0x2B0486F6: mov ecx, dword ptr [esi + 0xb0] */ 6306 MEM32(ebp + (-0x4)) = eax; /* 0x2B0486FC: mov dword ptr [ebp - 4], eax */ 6307 eax = ebp + (-0x8); /* 0x2B0486FF: lea eax, [ebp - 8] */ 6308 MEM32(ebp + (-0x8)) = 0xC0u; /* 0x2B048702: mov dword ptr [ebp - 8], 0xc0 */ 6309 edx = MEM32(ecx); /* 0x2B048709: mov edx, dword ptr [ecx] */ 6310 PUSH32(esp, eax); /* 0x2B04870B: push eax */ 6311 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B04870C: call dword ptr [edx + 0x18] */ 6312 RECOMP_FLAGS_IN(); 6313 ecx = MEM32(esi + 0x8C); /* 0x2B04870F: mov ecx, dword ptr [esi + 0x8c] */ 6314 edx = MEM32(ecx); /* 0x2B048715: mov edx, dword ptr [ecx] */ 6315 eax = ebp + (-0x8); /* 0x2B048717: lea eax, [ebp - 8] */ 6316 PUSH32(esp, eax); /* 0x2B04871A: push eax */ 6317 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B04871B: call dword ptr [edx + 0x18] */ 6318 RECOMP_FLAGS_IN(); 6319 ecx = MEM32(esi + 0x8C); /* 0x2B04871E: mov ecx, dword ptr [esi + 0x8c] */ 6320 eax = MEM32(ebp + 0x8); /* 0x2B048724: mov eax, dword ptr [ebp + 8] */ 6321 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B048727: mov byte ptr [ecx + 8], bl */ 6322 edx = MEM32(eax); /* 0x2B04872A: mov edx, dword ptr [eax] */ 6323 MEM32(esi + 0x6C) = edx; /* 0x2B04872C: mov dword ptr [esi + 0x6c], edx */ 6324 eax = MEM32(eax + 0x4); /* 0x2B04872F: mov eax, dword ptr [eax + 4] */ 6325 MEM32(esi + 0x70) = eax; /* 0x2B048732: mov dword ptr [esi + 0x70], eax */ 6326 eax = MEM32(ebp + 0xC); /* 0x2B048735: mov eax, dword ptr [ebp + 0xc] */ 6327 ecx = MEM32(eax); /* 0x2B048738: mov ecx, dword ptr [eax] */ 6328 MEM32(esi + 0x64) = ecx; /* 0x2B04873A: mov dword ptr [esi + 0x64], ecx */ 6329 edx = MEM32(eax + 0x4); /* 0x2B04873D: mov edx, dword ptr [eax + 4] */ 6330 MEM32(esi + 0x68) = edx; /* 0x2B048740: mov dword ptr [esi + 0x68], edx */ 6331 eax = MEM32(edi); /* 0x2B048743: mov eax, dword ptr [edi] */ 6332 MEM32(esi + 0x5C) = eax; /* 0x2B048745: mov dword ptr [esi + 0x5c], eax */ 6333 ecx = MEM32(edi + 0x4); /* 0x2B048748: mov ecx, dword ptr [edi + 4] */ 6334 MEM32(esi + 0x60) = ecx; /* 0x2B04874B: mov dword ptr [esi + 0x60], ecx */ 6335 PUSH32(esp, ebx); /* 0x2B04874E: push ebx */ 6336 ecx = esi; /* 0x2B04874F: mov ecx, esi */ 6337 RECOMP_ICALL(0x2B03A350u); /* 0x2B048751: call 0x2b03a350 */ /* not lifted */ 6338 RECOMP_FLAGS_IN(); 6339 ecx = esi; /* 0x2B048756: mov ecx, esi */ 6340 RECOMP_ICALL(0x2B03A590u); /* 0x2B048758: call 0x2b03a590 */ /* not lifted */ 6341 RECOMP_FLAGS_IN(); 6342 /* cmp MEM32(esi + 0x48), 1 */ /* 0x2B04875D: cmp dword ptr [esi + 0x48], 1 */ 6343 _flag_a = (uint32_t)(MEM32(esi + 0x48)); _flag_b = (uint32_t)(1); 6344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6345 _flag_k = FK_CMP; 6346 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04876C; /* 0x2B048761: jne 0x2b04876c */ 6347 L_2B048763: 6348 ecx = esi; /* 0x2B048763: mov ecx, esi */ 6349 RECOMP_ICALL(0x2B048F50u); /* 0x2B048765: call 0x2b048f50 */ /* not lifted */ 6350 RECOMP_FLAGS_IN(); 6351 goto L_2B0487C0; /* 0x2B04876A: jmp 0x2b0487c0 */ 6352 L_2B04876C: 6353 ecx = MEM32(esi + 0x9C); /* 0x2B04876C: mov ecx, dword ptr [esi + 0x9c] */ 6354 RECOMP_ICALL(MEM32(0x2B0B5A6C)); /* 0x2B048772: call dword ptr [0x2b0b5a6c] */ 6355 RECOMP_FLAGS_IN(); 6356 edx = MEM32(ebp + 0xC); /* 0x2B048778: mov edx, dword ptr [ebp + 0xc] */ 6357 PUSH32(esp, edx); /* 0x2B04877B: push edx */ 6358 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B04877C: call dword ptr [0x2b0b5d6c] */ 6359 RECOMP_FLAGS_IN(); 6360 ecx = eax; /* 0x2B048782: mov ecx, eax */ 6361 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B048784: call dword ptr [0x2b0b5d50] */ 6362 RECOMP_FLAGS_IN(); 6363 PUSH32(esp, eax); /* 0x2B04878A: push eax */ 6364 eax = ebp + (-0x6C); /* 0x2B04878B: lea eax, [ebp - 0x6c] */ 6365 PUSH32(esp, 0x2B0E7838u); /* 0x2B04878E: push 0x2b0e7838 */ 6366 PUSH32(esp, eax); /* 0x2B048793: push eax */ 6367 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B048794: call dword ptr [0x2b0b51f0] */ 6368 RECOMP_FLAGS_IN(); 6369 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6371 esp = esp + 0xCu; /* 0x2B04879A: add esp, 0xc */ 6372 _flag_k = FK_ADD; 6373 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6374 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04879D: or ecx, 0xffffffff */ 6375 _cf = 0; 6376 _flag_k = FK_TEST; 6377 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6378 eax = 0; /* 0x2B0487A0: xor eax, eax */ 6379 _cf = 0; 6380 _flag_k = FK_TEST; 6381 edi = ebp + (-0x6C); /* 0x2B0487A2: lea edi, [ebp - 0x6c] */ 6382 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B0487A5: repne scasb al, byte ptr es:[edi] */ 6383 ecx = ~ecx; /* 0x2B0487A7: not ecx */ 6384 PUSH32(esp, ecx); /* 0x2B0487A9: push ecx */ 6385 ecx = ebp + (-0x6C); /* 0x2B0487AA: lea ecx, [ebp - 0x6c] */ 6386 PUSH32(esp, ecx); /* 0x2B0487AD: push ecx */ 6387 PUSH32(esp, 0x3Fu); /* 0x2B0487AE: push 0x3f */ 6388 PUSH32(esp, 3); /* 0x2B0487B0: push 3 */ 6389 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0487B2: call dword ptr [0x2b0b53cc] */ 6390 RECOMP_FLAGS_IN(); 6391 ecx = eax; /* 0x2B0487B8: mov ecx, eax */ 6392 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B0487BA: call dword ptr [0x2b0b53c4] */ 6393 RECOMP_FLAGS_IN(); 6394 L_2B0487C0: 6395 ecx = esi; /* 0x2B0487C0: mov ecx, esi */ 6396 RECOMP_ICALL(0x2B03A490u); /* 0x2B0487C2: call 0x2b03a490 */ /* not lifted */ 6397 RECOMP_FLAGS_IN(); 6398 PUSH32(esp, esi); /* 0x2B0487C7: push esi */ 6399 RECOMP_ICALL(0x2B03BA50u); /* 0x2B0487C8: call 0x2b03ba50 */ /* not lifted */ 6400 RECOMP_FLAGS_IN(); 6401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6403 esp = esp + 4; /* 0x2B0487CD: add esp, 4 */ 6404 _flag_k = FK_ADD; 6405 edi = POP32_VAL(esp); /* 0x2B0487D0: pop edi */ 6406 L_2B0487D1: 6407 esi = POP32_VAL(esp); /* 0x2B0487D1: pop esi */ 6408 ebx = POP32_VAL(esp); /* 0x2B0487D2: pop ebx */ 6409 esp = ebp; /* 0x2B0487D3: mov esp, ebp */ 6410 ebp = POP32_VAL(esp); /* 0x2B0487D5: pop ebp */ 6411 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B0487D6: ret 0xc */ 6412 RECOMP_REGS_OUT(); 6413 } 6414 6415 void sub_2B0487E0(void) { 6416 int _fpu_cmp = 0; 6417 uint32_t _cf = 0; 6418 int _df = 1; 6419 uint32_t _flag_k = FK_NONE; 6420 uint32_t _flag_a = 0, _flag_b = 0; 6421 uint32_t _itail_tgt = 0; 6422 RECOMP_REGS_LOCALS 6423 RECOMP_ENTER(0x2B0487E0u); 6424 6425 L_2B0487E0: 6426 PUSH32(esp, esi); /* 0x2B0487E0: push esi */ 6427 esi = ecx; /* 0x2B0487E1: mov esi, ecx */ 6428 ecx = MEM32(esi + 0x54); /* 0x2B0487E3: mov ecx, dword ptr [esi + 0x54] */ 6429 PUSH32(esp, edi); /* 0x2B0487E6: push edi */ 6430 edi = MEM32(0x2B0B5830); /* 0x2B0487E7: mov edi, dword ptr [0x2b0b5830] */ 6431 RECOMP_ICALL(edi); /* 0x2B0487ED: call edi */ 6432 RECOMP_FLAGS_IN(); 6433 ecx = MEM32(esi + 0x58); /* 0x2B0487EF: mov ecx, dword ptr [esi + 0x58] */ 6434 RECOMP_ICALL(edi); /* 0x2B0487F2: call edi */ 6435 RECOMP_FLAGS_IN(); 6436 ecx = MEM32(esi + 0x50); /* 0x2B0487F4: mov ecx, dword ptr [esi + 0x50] */ 6437 RECOMP_ICALL(edi); /* 0x2B0487F7: call edi */ 6438 RECOMP_FLAGS_IN(); 6439 ecx = MEM32(esi + 0x54); /* 0x2B0487F9: mov ecx, dword ptr [esi + 0x54] */ 6440 edi = MEM32(0x2B0B5900); /* 0x2B0487FC: mov edi, dword ptr [0x2b0b5900] */ 6441 PUSH32(esp, 0); /* 0x2B048802: push 0 */ 6442 RECOMP_ICALL(edi); /* 0x2B048804: call edi */ 6443 RECOMP_FLAGS_IN(); 6444 ecx = MEM32(esi + 0x58); /* 0x2B048806: mov ecx, dword ptr [esi + 0x58] */ 6445 PUSH32(esp, 0); /* 0x2B048809: push 0 */ 6446 RECOMP_ICALL(edi); /* 0x2B04880B: call edi */ 6447 RECOMP_FLAGS_IN(); 6448 ecx = MEM32(esi + 0x50); /* 0x2B04880D: mov ecx, dword ptr [esi + 0x50] */ 6449 PUSH32(esp, 0); /* 0x2B048810: push 0 */ 6450 RECOMP_ICALL(edi); /* 0x2B048812: call edi */ 6451 RECOMP_FLAGS_IN(); 6452 eax = MEM32(esi); /* 0x2B048814: mov eax, dword ptr [esi] */ 6453 ecx = esi; /* 0x2B048816: mov ecx, esi */ 6454 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B048818: call dword ptr [eax + 0xc] */ 6455 RECOMP_FLAGS_IN(); 6456 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x2B04881B: mov al, byte ptr [esi + 0x14] */ 6457 /* test LO8(eax), LO8(eax) */ /* 0x2B04881E: test al, al */ 6458 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6459 _cf = 0; 6460 _flag_k = FK_NARROW(FK_TEST, 24); 6461 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048839; /* 0x2B048820: je 0x2b048839 */ 6462 L_2B048822: 6463 ecx = esi; /* 0x2B048822: mov ecx, esi */ 6464 RECOMP_ICALL(0x2B03A510u); /* 0x2B048824: call 0x2b03a510 */ /* not lifted */ 6465 RECOMP_FLAGS_IN(); 6466 ecx = esi; /* 0x2B048829: mov ecx, esi */ 6467 RECOMP_ICALL(0x2B03A600u); /* 0x2B04882B: call 0x2b03a600 */ /* not lifted */ 6468 RECOMP_FLAGS_IN(); 6469 PUSH32(esp, 0); /* 0x2B048830: push 0 */ 6470 ecx = esi; /* 0x2B048832: mov ecx, esi */ 6471 RECOMP_ICALL(0x2B03A3C0u); /* 0x2B048834: call 0x2b03a3c0 */ /* not lifted */ 6472 RECOMP_FLAGS_IN(); 6473 L_2B048839: 6474 RECOMP_ICALL(0x2B03B100u); /* 0x2B048839: call 0x2b03b100 */ /* not lifted */ 6475 RECOMP_FLAGS_IN(); 6476 edi = POP32_VAL(esp); /* 0x2B04883E: pop edi */ 6477 MEM8(esi + 0x4C) = (uint8_t)(0); /* 0x2B04883F: mov byte ptr [esi + 0x4c], 0 */ 6478 esi = POP32_VAL(esp); /* 0x2B048843: pop esi */ 6479 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048844: ret */ 6480 RECOMP_REGS_OUT(); 6481 } 6482 6483 void sub_2B048850(void) { 6484 int _fpu_cmp = 0; 6485 uint32_t _cf = 0; 6486 int _df = 1; 6487 uint32_t _flag_k = FK_NONE; 6488 uint32_t _flag_a = 0, _flag_b = 0; 6489 uint32_t _itail_tgt = 0; 6490 RECOMP_REGS_LOCALS 6491 RECOMP_ENTER(0x2B048850u); 6492 6493 L_2B048850: 6494 PUSH32(esp, ebp); /* 0x2B048850: push ebp */ 6495 ebp = esp; /* 0x2B048851: mov ebp, esp */ 6496 ecx = MEM32(ebp + 0x8); /* 0x2B048853: mov ecx, dword ptr [ebp + 8] */ 6497 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B048856: call 0x2b03a2b0 */ /* not lifted */ 6498 RECOMP_FLAGS_IN(); 6499 ebp = POP32_VAL(esp); /* 0x2B04885B: pop ebp */ 6500 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04885C: ret */ 6501 RECOMP_REGS_OUT(); 6502 } 6503 6504 void sub_2B048860(void) { 6505 int _fpu_cmp = 0; 6506 uint32_t _cf = 0; 6507 int _df = 1; 6508 uint32_t _flag_k = FK_NONE; 6509 uint32_t _flag_a = 0, _flag_b = 0; 6510 uint32_t _itail_tgt = 0; 6511 RECOMP_REGS_LOCALS 6512 RECOMP_ENTER(0x2B048860u); 6513 6514 L_2B048860: 6515 PUSH32(esp, ebp); /* 0x2B048860: push ebp */ 6516 ebp = esp; /* 0x2B048861: mov ebp, esp */ 6517 ecx = MEM32(ebp + 0x8); /* 0x2B048863: mov ecx, dword ptr [ebp + 8] */ 6518 RECOMP_ICALL(0x2B048870u); /* 0x2B048866: call 0x2b048870 */ /* not lifted */ 6519 RECOMP_FLAGS_IN(); 6520 ebp = POP32_VAL(esp); /* 0x2B04886B: pop ebp */ 6521 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04886C: ret */ 6522 RECOMP_REGS_OUT(); 6523 } 6524 6525 void sub_2B048870(void) { 6526 int _fpu_cmp = 0; 6527 uint32_t _cf = 0; 6528 int _df = 1; 6529 uint32_t _flag_k = FK_NONE; 6530 uint32_t _flag_a = 0, _flag_b = 0; 6531 uint32_t _itail_tgt = 0; 6532 RECOMP_REGS_LOCALS 6533 RECOMP_ENTER(0x2B048870u); 6534 6535 L_2B048870: 6536 PUSH32(esp, ebp); /* 0x2B048870: push ebp */ 6537 ebp = esp; /* 0x2B048871: mov ebp, esp */ 6538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u); 6539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6540 esp = esp - 0x78u; /* 0x2B048873: sub esp, 0x78 */ 6541 _flag_k = FK_CMP; 6542 PUSH32(esp, ebx); /* 0x2B048876: push ebx */ 6543 PUSH32(esp, esi); /* 0x2B048877: push esi */ 6544 PUSH32(esp, edi); /* 0x2B048878: push edi */ 6545 esi = ecx; /* 0x2B048879: mov esi, ecx */ 6546 RECOMP_ICALL(0x2B049090u); /* 0x2B04887B: call 0x2b049090 */ /* not lifted */ 6547 RECOMP_FLAGS_IN(); 6548 eax = MEM32(esi + 0xA0); /* 0x2B048880: mov eax, dword ptr [esi + 0xa0] */ 6549 edi = MEM32(0x2B0B5D6C); /* 0x2B048886: mov edi, dword ptr [0x2b0b5d6c] */ 6550 PUSH32(esp, eax); /* 0x2B04888C: push eax */ 6551 RECOMP_ICALL(edi); /* 0x2B04888D: call edi */ 6552 RECOMP_FLAGS_IN(); 6553 ecx = eax; /* 0x2B04888F: mov ecx, eax */ 6554 RECOMP_ICALL(MEM32(0x2B0B5E78)); /* 0x2B048891: call dword ptr [0x2b0b5e78] */ 6555 RECOMP_FLAGS_IN(); 6556 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B048897: mov al, byte ptr [esi + 0x4c] */ 6557 /* test LO8(eax), LO8(eax) */ /* 0x2B04889A: test al, al */ 6558 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6559 _cf = 0; 6560 _flag_k = FK_NARROW(FK_TEST, 24); 6561 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048A18; /* 0x2B04889C: je 0x2b048a18 */ 6562 L_2B0488A2: 6563 /* cmp MEM32(esi + 0x48), 1 */ /* 0x2B0488A2: cmp dword ptr [esi + 0x48], 1 */ 6564 _flag_a = (uint32_t)(MEM32(esi + 0x48)); _flag_b = (uint32_t)(1); 6565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6566 _flag_k = FK_CMP; 6567 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0489A3; /* 0x2B0488A6: jne 0x2b0489a3 */ 6568 L_2B0488AC: 6569 ebx = 2; /* 0x2B0488AC: mov ebx, 2 */ 6570 PUSH32(esp, ebx); /* 0x2B0488B1: push ebx */ 6571 PUSH32(esp, 0x3Du); /* 0x2B0488B2: push 0x3d */ 6572 RECOMP_ICALL(edi); /* 0x2B0488B4: call edi */ 6573 RECOMP_FLAGS_IN(); 6574 ecx = eax; /* 0x2B0488B6: mov ecx, eax */ 6575 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B0488B8: call dword ptr [0x2b0b5d70] */ 6576 RECOMP_FLAGS_IN(); 6577 ecx = MEM32(esi + 0xA8); /* 0x2B0488BE: mov ecx, dword ptr [esi + 0xa8] */ 6578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xAC)); 6579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6580 ecx = ecx - MEM32(esi + 0xAC); /* 0x2B0488C4: sub ecx, dword ptr [esi + 0xac] */ 6581 _flag_k = FK_CMP; 6582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6584 ecx = ecx - eax; /* 0x2B0488CA: sub ecx, eax */ 6585 _flag_k = FK_CMP; 6586 /* test ecx, ecx */ /* 0x2B0488CC: test ecx, ecx */ 6587 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6588 _cf = 0; 6589 _flag_k = FK_TEST; 6590 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04894D; /* 0x2B0488CE: jle 0x2b04894d */ 6591 L_2B0488D0: 6592 PUSH32(esp, ecx); /* 0x2B0488D0: push ecx */ 6593 ecx = ebp + (-0x78); /* 0x2B0488D1: lea ecx, [ebp - 0x78] */ 6594 PUSH32(esp, 0x2B0E78A4u); /* 0x2B0488D4: push 0x2b0e78a4 */ 6595 PUSH32(esp, ecx); /* 0x2B0488D9: push ecx */ 6596 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B0488DA: call dword ptr [0x2b0b51f0] */ 6597 RECOMP_FLAGS_IN(); 6598 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6600 esp = esp + 0xCu; /* 0x2B0488E0: add esp, 0xc */ 6601 _flag_k = FK_ADD; 6602 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6603 ecx = ecx | 0xFFFFFFFFu; /* 0x2B0488E3: or ecx, 0xffffffff */ 6604 _cf = 0; 6605 _flag_k = FK_TEST; 6606 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6607 eax = 0; /* 0x2B0488E6: xor eax, eax */ 6608 _cf = 0; 6609 _flag_k = FK_TEST; 6610 edi = ebp + (-0x78); /* 0x2B0488E8: lea edi, [ebp - 0x78] */ 6611 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B0488EB: repne scasb al, byte ptr es:[edi] */ 6612 ecx = ~ecx; /* 0x2B0488ED: not ecx */ 6613 PUSH32(esp, ecx); /* 0x2B0488EF: push ecx */ 6614 edx = ebp + (-0x78); /* 0x2B0488F0: lea edx, [ebp - 0x78] */ 6615 PUSH32(esp, edx); /* 0x2B0488F3: push edx */ 6616 PUSH32(esp, 0x3Fu); /* 0x2B0488F4: push 0x3f */ 6617 PUSH32(esp, 3); /* 0x2B0488F6: push 3 */ 6618 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0488F8: call dword ptr [0x2b0b53cc] */ 6619 RECOMP_FLAGS_IN(); 6620 ecx = eax; /* 0x2B0488FE: mov ecx, eax */ 6621 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B048900: call dword ptr [0x2b0b53c4] */ 6622 RECOMP_FLAGS_IN(); 6623 ecx = MEM32(esi + 0x74); /* 0x2B048906: mov ecx, dword ptr [esi + 0x74] */ 6624 PUSH32(esp, ebx); /* 0x2B048909: push ebx */ 6625 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B04890A: call dword ptr [0x2b0b5ab4] */ 6626 RECOMP_FLAGS_IN(); 6627 SET_LO8(eax, MEM8(0x2B0EEAD4)); /* 0x2B048910: mov al, byte ptr [0x2b0eead4] */ 6628 /* test LO8(eax), 1 */ /* 0x2B048915: test al, 1 */ 6629 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6630 _cf = 0; 6631 _flag_k = FK_NARROW(FK_TEST, 24); 6632 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B048937; /* 0x2B048917: jne 0x2b048937 */ 6633 L_2B048919: 6634 SET_LO8(ebx, LO8(eax)); /* 0x2B048919: mov bl, al */ 6635 _flag_a = (uint32_t)((LO8(ebx) | 1)) << 24; _flag_b = (uint32_t)((LO8(ebx) | 1)) << 24; 6636 SET_LO8(ebx, LO8(ebx) | 1); /* 0x2B04891B: or bl, 1 */ 6637 _cf = 0; 6638 _flag_k = FK_NARROW(FK_TEST, 24); 6639 PUSH32(esp, 0x2B0E7880u); /* 0x2B04891E: push 0x2b0e7880 */ 6640 MEM8(0x2B0EEAD4) = (uint8_t)(LO8(ebx)); /* 0x2B048923: mov byte ptr [0x2b0eead4], bl */ 6641 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B048929: call dword ptr [0x2b0b60bc] */ 6642 RECOMP_FLAGS_IN(); 6643 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6645 esp = esp + 4; /* 0x2B04892F: add esp, 4 */ 6646 _flag_k = FK_ADD; 6647 MEM32(0x2B0EEAD0) = eax; /* 0x2B048932: mov dword ptr [0x2b0eead0], eax */ 6648 L_2B048937: 6649 eax = MEM32(0x2B0EEAD0); /* 0x2B048937: mov eax, dword ptr [0x2b0eead0] */ 6650 PUSH32(esp, eax); /* 0x2B04893C: push eax */ 6651 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B04893D: call dword ptr [0x2b0b60b8] */ 6652 RECOMP_FLAGS_IN(); 6653 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6655 esp = esp + 4; /* 0x2B048943: add esp, 4 */ 6656 _flag_k = FK_ADD; 6657 edi = POP32_VAL(esp); /* 0x2B048946: pop edi */ 6658 esi = POP32_VAL(esp); /* 0x2B048947: pop esi */ 6659 ebx = POP32_VAL(esp); /* 0x2B048948: pop ebx */ 6660 esp = ebp; /* 0x2B048949: mov esp, ebp */ 6661 ebp = POP32_VAL(esp); /* 0x2B04894B: pop ebp */ 6662 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04894C: ret */ 6663 L_2B04894D: 6664 PUSH32(esp, 0x16Cu); /* 0x2B04894D: push 0x16c */ 6665 PUSH32(esp, 9); /* 0x2B048952: push 9 */ 6666 MEM8(esi + 0x89) = (uint8_t)(1); /* 0x2B048954: mov byte ptr [esi + 0x89], 1 */ 6667 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B04895B: call dword ptr [0x2b0b53cc] */ 6668 RECOMP_FLAGS_IN(); 6669 ecx = eax; /* 0x2B048961: mov ecx, eax */ 6670 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B048963: call dword ptr [0x2b0b53c8] */ 6671 RECOMP_FLAGS_IN(); 6672 SET_LO8(eax, MEM8(0x2B0EEAD4)); /* 0x2B048969: mov al, byte ptr [0x2b0eead4] */ 6673 /* test LO8(ebx), LO8(eax) */ /* 0x2B04896E: test bl, al */ 6674 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6675 _cf = 0; 6676 _flag_k = FK_NARROW(FK_TEST, 24); 6677 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04898C; /* 0x2B048970: jne 0x2b04898c */ 6678 L_2B048972: 6679 _flag_a = (uint32_t)((LO8(eax) | LO8(ebx))) << 24; _flag_b = (uint32_t)((LO8(eax) | LO8(ebx))) << 24; 6680 SET_LO8(eax, LO8(eax) | LO8(ebx)); /* 0x2B048972: or al, bl */ 6681 _cf = 0; 6682 _flag_k = FK_NARROW(FK_TEST, 24); 6683 PUSH32(esp, 0x2B0E7860u); /* 0x2B048974: push 0x2b0e7860 */ 6684 MEM8(0x2B0EEAD4) = (uint8_t)(LO8(eax)); /* 0x2B048979: mov byte ptr [0x2b0eead4], al */ 6685 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B04897E: call dword ptr [0x2b0b60bc] */ 6686 RECOMP_FLAGS_IN(); 6687 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6689 esp = esp + 4; /* 0x2B048984: add esp, 4 */ 6690 _flag_k = FK_ADD; 6691 MEM32(0x2B0EEACC) = eax; /* 0x2B048987: mov dword ptr [0x2b0eeacc], eax */ 6692 L_2B04898C: 6693 ecx = MEM32(0x2B0EEACC); /* 0x2B04898C: mov ecx, dword ptr [0x2b0eeacc] */ 6694 PUSH32(esp, ecx); /* 0x2B048992: push ecx */ 6695 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B048993: call dword ptr [0x2b0b60b8] */ 6696 RECOMP_FLAGS_IN(); 6697 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6699 esp = esp + 4; /* 0x2B048999: add esp, 4 */ 6700 _flag_k = FK_ADD; 6701 edi = POP32_VAL(esp); /* 0x2B04899C: pop edi */ 6702 esi = POP32_VAL(esp); /* 0x2B04899D: pop esi */ 6703 ebx = POP32_VAL(esp); /* 0x2B04899E: pop ebx */ 6704 esp = ebp; /* 0x2B04899F: mov esp, ebp */ 6705 ebp = POP32_VAL(esp); /* 0x2B0489A1: pop ebp */ 6706 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0489A2: ret */ 6707 L_2B0489A3: 6708 edx = MEM32(esi + 0xA0); /* 0x2B0489A3: mov edx, dword ptr [esi + 0xa0] */ 6709 PUSH32(esp, edx); /* 0x2B0489A9: push edx */ 6710 eax = ebp + (-0x14); /* 0x2B0489AA: lea eax, [ebp - 0x14] */ 6711 PUSH32(esp, 0x2B0E7354u); /* 0x2B0489AD: push 0x2b0e7354 */ 6712 PUSH32(esp, eax); /* 0x2B0489B2: push eax */ 6713 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B0489B3: call dword ptr [0x2b0b51f0] */ 6714 RECOMP_FLAGS_IN(); 6715 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6716 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6717 esp = esp + 0xCu; /* 0x2B0489B9: add esp, 0xc */ 6718 _flag_k = FK_ADD; 6719 ecx = ebp + (-0x14); /* 0x2B0489BC: lea ecx, [ebp - 0x14] */ 6720 PUSH32(esp, ecx); /* 0x2B0489BF: push ecx */ 6721 ecx = MEM32(esi + 0x9C); /* 0x2B0489C0: mov ecx, dword ptr [esi + 0x9c] */ 6722 RECOMP_ICALL(MEM32(0x2B0B5A24)); /* 0x2B0489C6: call dword ptr [0x2b0b5a24] */ 6723 RECOMP_FLAGS_IN(); 6724 edi = MEM32(0x2B0B53CC); /* 0x2B0489CC: mov edi, dword ptr [0x2b0b53cc] */ 6725 PUSH32(esp, 0x97u); /* 0x2B0489D2: push 0x97 */ 6726 PUSH32(esp, 3); /* 0x2B0489D7: push 3 */ 6727 RECOMP_ICALL(edi); /* 0x2B0489D9: call edi */ 6728 RECOMP_FLAGS_IN(); 6729 ebx = MEM32(0x2B0B53C8); /* 0x2B0489DB: mov ebx, dword ptr [0x2b0b53c8] */ 6730 ecx = eax; /* 0x2B0489E1: mov ecx, eax */ 6731 RECOMP_ICALL(ebx); /* 0x2B0489E3: call ebx */ 6732 RECOMP_FLAGS_IN(); 6733 ecx = MEM32(esi + 0x74); /* 0x2B0489E5: mov ecx, dword ptr [esi + 0x74] */ 6734 PUSH32(esp, 1); /* 0x2B0489E8: push 1 */ 6735 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B0489EA: call dword ptr [0x2b0b5ab4] */ 6736 RECOMP_FLAGS_IN(); 6737 SET_LO8(eax, MEM8(esi + 0x89)); /* 0x2B0489F0: mov al, byte ptr [esi + 0x89] */ 6738 /* test LO8(eax), LO8(eax) */ /* 0x2B0489F6: test al, al */ 6739 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6740 _cf = 0; 6741 _flag_k = FK_NARROW(FK_TEST, 24); 6742 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B048A18; /* 0x2B0489F8: jne 0x2b048a18 */ 6743 L_2B0489FA: 6744 edx = MEM32(esi + 0x8C); /* 0x2B0489FA: mov edx, dword ptr [esi + 0x8c] */ 6745 PUSH32(esp, 0x16Cu); /* 0x2B048A00: push 0x16c */ 6746 MEM8(esi + 0x89) = (uint8_t)(1); /* 0x2B048A05: mov byte ptr [esi + 0x89], 1 */ 6747 PUSH32(esp, 9); /* 0x2B048A0C: push 9 */ 6748 MEM8(edx + 0x8) = (uint8_t)(1); /* 0x2B048A0E: mov byte ptr [edx + 8], 1 */ 6749 RECOMP_ICALL(edi); /* 0x2B048A12: call edi */ 6750 RECOMP_FLAGS_IN(); 6751 ecx = eax; /* 0x2B048A14: mov ecx, eax */ 6752 RECOMP_ICALL(ebx); /* 0x2B048A16: call ebx */ 6753 RECOMP_FLAGS_IN(); 6754 L_2B048A18: 6755 edi = POP32_VAL(esp); /* 0x2B048A18: pop edi */ 6756 esi = POP32_VAL(esp); /* 0x2B048A19: pop esi */ 6757 ebx = POP32_VAL(esp); /* 0x2B048A1A: pop ebx */ 6758 esp = ebp; /* 0x2B048A1B: mov esp, ebp */ 6759 ebp = POP32_VAL(esp); /* 0x2B048A1D: pop ebp */ 6760 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048A1E: ret */ 6761 RECOMP_REGS_OUT(); 6762 } 6763 6764 void sub_2B048A20(void) { 6765 int _fpu_cmp = 0; 6766 uint32_t _cf = 0; 6767 int _df = 1; 6768 uint32_t _flag_k = FK_NONE; 6769 uint32_t _flag_a = 0, _flag_b = 0; 6770 uint32_t _itail_tgt = 0; 6771 RECOMP_REGS_LOCALS 6772 RECOMP_ENTER(0x2B048A20u); 6773 6774 L_2B048A20: 6775 PUSH32(esp, ebp); /* 0x2B048A20: push ebp */ 6776 ebp = esp; /* 0x2B048A21: mov ebp, esp */ 6777 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 6778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6779 esp = esp - 0x28u; /* 0x2B048A23: sub esp, 0x28 */ 6780 _flag_k = FK_CMP; 6781 PUSH32(esp, esi); /* 0x2B048A26: push esi */ 6782 esi = ecx; /* 0x2B048A27: mov esi, ecx */ 6783 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B048A29: mov al, byte ptr [esi + 0x4c] */ 6784 /* test LO8(eax), LO8(eax) */ /* 0x2B048A2C: test al, al */ 6785 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6786 _cf = 0; 6787 _flag_k = FK_NARROW(FK_TEST, 24); 6788 PUSH32(esp, edi); /* 0x2B048A2E: push edi */ 6789 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048B34; /* 0x2B048A2F: je 0x2b048b34 */ 6790 L_2B048A35: 6791 edx = MEM32(esi + 0x60); /* 0x2B048A35: mov edx, dword ptr [esi + 0x60] */ 6792 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6793 eax = 0; /* 0x2B048A38: xor eax, eax */ 6794 _cf = 0; 6795 _flag_k = FK_TEST; 6796 ecx = 0xAu; /* 0x2B048A3A: mov ecx, 0xa */ 6797 edi = ebp + (-0x28); /* 0x2B048A3F: lea edi, [ebp - 0x28] */ 6798 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B048A42: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 6799 edi = MEM32(ebp + 0xC); /* 0x2B048A44: mov edi, dword ptr [ebp + 0xc] */ 6800 ecx = MEM32(edi + 0x4); /* 0x2B048A47: mov ecx, dword ptr [edi + 4] */ 6801 eax = MEM32(edi); /* 0x2B048A4A: mov eax, dword ptr [edi] */ 6802 MEM32(ebp + (-0x24)) = ecx; /* 0x2B048A4C: mov dword ptr [ebp - 0x24], ecx */ 6803 ecx = MEM32(ebp + 0x8); /* 0x2B048A4F: mov ecx, dword ptr [ebp + 8] */ 6804 MEM32(ebp + (-0x28)) = eax; /* 0x2B048A52: mov dword ptr [ebp - 0x28], eax */ 6805 eax = MEM32(ecx + 0x4); /* 0x2B048A55: mov eax, dword ptr [ecx + 4] */ 6806 /* cmp eax, edx */ /* 0x2B048A58: cmp eax, edx */ 6807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6809 _flag_k = FK_CMP; 6810 MEM32(ebp + (-0xC)) = 0x30u; /* 0x2B048A5A: mov dword ptr [ebp - 0xc], 0x30 */ 6811 MEM32(ebp + (-0x8)) = 0xFFFFFFFFu; /* 0x2B048A61: mov dword ptr [ebp - 8], 0xffffffff */ 6812 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048ABB; /* 0x2B048A68: jne 0x2b048abb */ 6813 L_2B048A6A: 6814 edx = MEM32(ecx); /* 0x2B048A6A: mov edx, dword ptr [ecx] */ 6815 /* cmp edx, MEM32(esi + 0x5C) */ /* 0x2B048A6C: cmp edx, dword ptr [esi + 0x5c] */ 6816 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x5C)); 6817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6818 _flag_k = FK_CMP; 6819 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048ABB; /* 0x2B048A6F: jne 0x2b048abb */ 6820 L_2B048A71: 6821 ecx = MEM32(esi + 0x50); /* 0x2B048A71: mov ecx, dword ptr [esi + 0x50] */ 6822 PUSH32(esp, edi); /* 0x2B048A74: push edi */ 6823 RECOMP_ICALL(MEM32(0x2B0B5910)); /* 0x2B048A75: call dword ptr [0x2b0b5910] */ 6824 RECOMP_FLAGS_IN(); 6825 /* test LO8(eax), LO8(eax) */ /* 0x2B048A7B: test al, al */ 6826 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6827 _cf = 0; 6828 _flag_k = FK_NARROW(FK_TEST, 24); 6829 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B048B34; /* 0x2B048A7D: jne 0x2b048b34 */ 6830 L_2B048A83: 6831 PUSH32(esp, 0x4Au); /* 0x2B048A83: push 0x4a */ 6832 PUSH32(esp, edi); /* 0x2B048A85: push edi */ 6833 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048A86: call dword ptr [0x2b0b5d6c] */ 6834 RECOMP_FLAGS_IN(); 6835 ecx = eax; /* 0x2B048A8C: mov ecx, eax */ 6836 RECOMP_ICALL(MEM32(0x2B0B5E74)); /* 0x2B048A8E: call dword ptr [0x2b0b5e74] */ 6837 RECOMP_FLAGS_IN(); 6838 /* test eax, eax */ /* 0x2B048A94: test eax, eax */ 6839 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6840 _cf = 0; 6841 _flag_k = FK_TEST; 6842 MEM32(ebp + (-0x8)) = eax; /* 0x2B048A96: mov dword ptr [ebp - 8], eax */ 6843 if (TEST_LE(_flag_a, _flag_b)) goto L_2B048B34; /* 0x2B048A99: jle 0x2b048b34 */ 6844 L_2B048A9F: 6845 ecx = MEM32(esi + 0x50); /* 0x2B048A9F: mov ecx, dword ptr [esi + 0x50] */ 6846 eax = ebp + (-0x28); /* 0x2B048AA2: lea eax, [ebp - 0x28] */ 6847 PUSH32(esp, eax); /* 0x2B048AA5: push eax */ 6848 MEM32(ebp + (-0x10)) = 0x34u; /* 0x2B048AA6: mov dword ptr [ebp - 0x10], 0x34 */ 6849 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B048AAD: call dword ptr [0x2b0b58d0] */ 6850 RECOMP_FLAGS_IN(); 6851 edi = POP32_VAL(esp); /* 0x2B048AB3: pop edi */ 6852 esi = POP32_VAL(esp); /* 0x2B048AB4: pop esi */ 6853 esp = ebp; /* 0x2B048AB5: mov esp, ebp */ 6854 ebp = POP32_VAL(esp); /* 0x2B048AB7: pop ebp */ 6855 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B048AB8: ret 8 */ 6856 L_2B048ABB: 6857 /* cmp eax, MEM32(esi + 0x68) */ /* 0x2B048ABB: cmp eax, dword ptr [esi + 0x68] */ 6858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x68)); 6859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6860 _flag_k = FK_CMP; 6861 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048B0C; /* 0x2B048ABE: jne 0x2b048b0c */ 6862 L_2B048AC0: 6863 edx = MEM32(ecx); /* 0x2B048AC0: mov edx, dword ptr [ecx] */ 6864 /* cmp edx, MEM32(esi + 0x64) */ /* 0x2B048AC2: cmp edx, dword ptr [esi + 0x64] */ 6865 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x64)); 6866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6867 _flag_k = FK_CMP; 6868 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048B0C; /* 0x2B048AC5: jne 0x2b048b0c */ 6869 L_2B048AC7: 6870 /* cmp MEM32(esi + 0x48), 1 */ /* 0x2B048AC7: cmp dword ptr [esi + 0x48], 1 */ 6871 _flag_a = (uint32_t)(MEM32(esi + 0x48)); _flag_b = (uint32_t)(1); 6872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6873 _flag_k = FK_CMP; 6874 MEM32(ebp + (-0x10)) = 0x35u; /* 0x2B048ACB: mov dword ptr [ebp - 0x10], 0x35 */ 6875 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048AE8; /* 0x2B048AD2: jne 0x2b048ae8 */ 6876 L_2B048AD4: 6877 PUSH32(esp, 0x4Au); /* 0x2B048AD4: push 0x4a */ 6878 PUSH32(esp, edi); /* 0x2B048AD6: push edi */ 6879 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048AD7: call dword ptr [0x2b0b5d6c] */ 6880 RECOMP_FLAGS_IN(); 6881 ecx = eax; /* 0x2B048ADD: mov ecx, eax */ 6882 RECOMP_ICALL(MEM32(0x2B0B5E74)); /* 0x2B048ADF: call dword ptr [0x2b0b5e74] */ 6883 RECOMP_FLAGS_IN(); 6884 MEM32(ebp + (-0x8)) = eax; /* 0x2B048AE5: mov dword ptr [ebp - 8], eax */ 6885 L_2B048AE8: 6886 ecx = MEM32(esi + 0x54); /* 0x2B048AE8: mov ecx, dword ptr [esi + 0x54] */ 6887 eax = ebp + (-0x28); /* 0x2B048AEB: lea eax, [ebp - 0x28] */ 6888 PUSH32(esp, eax); /* 0x2B048AEE: push eax */ 6889 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B048AEF: call dword ptr [0x2b0b58d0] */ 6890 RECOMP_FLAGS_IN(); 6891 /* test eax, eax */ /* 0x2B048AF5: test eax, eax */ 6892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6893 _cf = 0; 6894 _flag_k = FK_TEST; 6895 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048B34; /* 0x2B048AF7: je 0x2b048b34 */ 6896 L_2B048AF9: 6897 ecx = MEM32(esi + 0x48); /* 0x2B048AF9: mov ecx, dword ptr [esi + 0x48] */ 6898 /* test ecx, ecx */ /* 0x2B048AFC: test ecx, ecx */ 6899 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6900 _cf = 0; 6901 _flag_k = FK_TEST; 6902 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B048B34; /* 0x2B048AFE: jne 0x2b048b34 */ 6903 L_2B048B00: 6904 edi = POP32_VAL(esp); /* 0x2B048B00: pop edi */ 6905 MEM8(eax + 0x24) = (uint8_t)(0); /* 0x2B048B01: mov byte ptr [eax + 0x24], 0 */ 6906 esi = POP32_VAL(esp); /* 0x2B048B05: pop esi */ 6907 esp = ebp; /* 0x2B048B06: mov esp, ebp */ 6908 ebp = POP32_VAL(esp); /* 0x2B048B08: pop ebp */ 6909 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B048B09: ret 8 */ 6910 L_2B048B0C: 6911 /* cmp eax, MEM32(esi + 0x70) */ /* 0x2B048B0C: cmp eax, dword ptr [esi + 0x70] */ 6912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x70)); 6913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6914 _flag_k = FK_CMP; 6915 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048B34; /* 0x2B048B0F: jne 0x2b048b34 */ 6916 L_2B048B11: 6917 ecx = MEM32(ecx); /* 0x2B048B11: mov ecx, dword ptr [ecx] */ 6918 /* cmp ecx, MEM32(esi + 0x6C) */ /* 0x2B048B13: cmp ecx, dword ptr [esi + 0x6c] */ 6919 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x6C)); 6920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6921 _flag_k = FK_CMP; 6922 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048B34; /* 0x2B048B16: jne 0x2b048b34 */ 6923 L_2B048B18: 6924 ecx = MEM32(esi + 0x58); /* 0x2B048B18: mov ecx, dword ptr [esi + 0x58] */ 6925 edx = ebp + (-0x28); /* 0x2B048B1B: lea edx, [ebp - 0x28] */ 6926 PUSH32(esp, edx); /* 0x2B048B1E: push edx */ 6927 MEM32(ebp + (-0x10)) = 0x36u; /* 0x2B048B1F: mov dword ptr [ebp - 0x10], 0x36 */ 6928 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B048B26: call dword ptr [0x2b0b58d0] */ 6929 RECOMP_FLAGS_IN(); 6930 /* test eax, eax */ /* 0x2B048B2C: test eax, eax */ 6931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6932 _cf = 0; 6933 _flag_k = FK_TEST; 6934 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048B34; /* 0x2B048B2E: je 0x2b048b34 */ 6935 L_2B048B30: 6936 MEM8(eax + 0x24) = (uint8_t)(0); /* 0x2B048B30: mov byte ptr [eax + 0x24], 0 */ 6937 L_2B048B34: 6938 edi = POP32_VAL(esp); /* 0x2B048B34: pop edi */ 6939 esi = POP32_VAL(esp); /* 0x2B048B35: pop esi */ 6940 esp = ebp; /* 0x2B048B36: mov esp, ebp */ 6941 ebp = POP32_VAL(esp); /* 0x2B048B38: pop ebp */ 6942 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B048B39: ret 8 */ 6943 RECOMP_REGS_OUT(); 6944 } 6945 6946 void sub_2B048B40(void) { 6947 int _fpu_cmp = 0; 6948 uint32_t _cf = 0; 6949 int _df = 1; 6950 uint32_t _flag_k = FK_NONE; 6951 uint32_t _flag_a = 0, _flag_b = 0; 6952 uint32_t _itail_tgt = 0; 6953 RECOMP_REGS_LOCALS 6954 RECOMP_ENTER(0x2B048B40u); 6955 6956 L_2B048B40: 6957 PUSH32(esp, ebp); /* 0x2B048B40: push ebp */ 6958 ebp = esp; /* 0x2B048B41: mov ebp, esp */ 6959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6961 esp = esp - 0x10u; /* 0x2B048B43: sub esp, 0x10 */ 6962 _flag_k = FK_CMP; 6963 PUSH32(esp, esi); /* 0x2B048B46: push esi */ 6964 esi = ecx; /* 0x2B048B47: mov esi, ecx */ 6965 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B048B49: mov al, byte ptr [esi + 0x4c] */ 6966 /* test LO8(eax), LO8(eax) */ /* 0x2B048B4C: test al, al */ 6967 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6968 _cf = 0; 6969 _flag_k = FK_NARROW(FK_TEST, 24); 6970 PUSH32(esp, edi); /* 0x2B048B4E: push edi */ 6971 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048C39; /* 0x2B048B4F: je 0x2b048c39 */ 6972 L_2B048B55: 6973 eax = ebp + (-0x8); /* 0x2B048B55: lea eax, [ebp - 8] */ 6974 PUSH32(esp, eax); /* 0x2B048B58: push eax */ 6975 MEM32(ebp + (-0x8)) = 0; /* 0x2B048B59: mov dword ptr [ebp - 8], 0 */ 6976 MEM32(ebp + (-0x4)) = 0; /* 0x2B048B60: mov dword ptr [ebp - 4], 0 */ 6977 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B048B67: call dword ptr [0x2b0b53cc] */ 6978 RECOMP_FLAGS_IN(); 6979 ecx = eax; /* 0x2B048B6D: mov ecx, eax */ 6980 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B048B6F: call dword ptr [0x2b0b53ac] */ 6981 RECOMP_FLAGS_IN(); 6982 RECOMP_ICALL(MEM32(0x2B0B596C)); /* 0x2B048B75: call dword ptr [0x2b0b596c] */ 6983 RECOMP_FLAGS_IN(); 6984 ecx = MEM32(eax + 0x14); /* 0x2B048B7B: mov ecx, dword ptr [eax + 0x14] */ 6985 edi = MEM32(eax + 0x18); /* 0x2B048B7E: mov edi, dword ptr [eax + 0x18] */ 6986 MEM32(ebp + (-0x10)) = ecx; /* 0x2B048B81: mov dword ptr [ebp - 0x10], ecx */ 6987 RECOMP_ICALL(MEM32(0x2B0B596C)); /* 0x2B048B84: call dword ptr [0x2b0b596c] */ 6988 RECOMP_FLAGS_IN(); 6989 ecx = MEM32(esi + 0x48); /* 0x2B048B8A: mov ecx, dword ptr [esi + 0x48] */ 6990 /* test ecx, ecx */ /* 0x2B048B8D: test ecx, ecx */ 6991 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6992 _cf = 0; 6993 _flag_k = FK_TEST; 6994 eax = MEM32(eax + 0x24); /* 0x2B048B8F: mov eax, dword ptr [eax + 0x24] */ 6995 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B048B9F; /* 0x2B048B92: jne 0x2b048b9f */ 6996 L_2B048B94: 6997 /* cmp eax, 0x36u */ /* 0x2B048B94: cmp eax, 0x36 */ 6998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x36u); 6999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7000 _flag_k = FK_CMP; 7001 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B048C32; /* 0x2B048B97: je 0x2b048c32 */ 7002 L_2B048B9D: 7003 goto L_2B048C16; /* 0x2B048B9D: jmp 0x2b048c16 */ 7004 L_2B048B9F: 7005 /* cmp eax, 0x34u */ /* 0x2B048B9F: cmp eax, 0x34 */ 7006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x34u); 7007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7008 _flag_k = FK_CMP; 7009 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048BD8; /* 0x2B048BA2: jne 0x2b048bd8 */ 7010 L_2B048BA4: 7011 edx = MEM32(esi + 0x40); /* 0x2B048BA4: mov edx, dword ptr [esi + 0x40] */ 7012 eax = MEM32(esi + 0x44); /* 0x2B048BA7: mov eax, dword ptr [esi + 0x44] */ 7013 ecx = MEM32(esi + 0x3C); /* 0x2B048BAA: mov ecx, dword ptr [esi + 0x3c] */ 7014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7016 eax = eax - edx; /* 0x2B048BAD: sub eax, edx */ 7017 _flag_k = FK_CMP; 7018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7020 eax = eax - ecx; /* 0x2B048BAF: sub eax, ecx */ 7021 _flag_k = FK_CMP; 7022 ecx = MEM32(esi + 0x8); /* 0x2B048BB1: mov ecx, dword ptr [esi + 8] */ 7023 edx = eax + ecx + 0x14; /* 0x2B048BB4: lea edx, [eax + ecx + 0x14] */ 7024 /* cmp edi, edx */ /* 0x2B048BB8: cmp edi, edx */ 7025 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 7026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7027 _flag_k = FK_CMP; 7028 if (CMP_LE(_flag_a, _flag_b)) goto L_2B048C32; /* 0x2B048BBA: jle 0x2b048c32 */ 7029 L_2B048BBC: 7030 eax = ebp + (-0x8); /* 0x2B048BBC: lea eax, [ebp - 8] */ 7031 PUSH32(esp, eax); /* 0x2B048BBF: push eax */ 7032 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x64u); 7033 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7034 esi = esi + 0x64u; /* 0x2B048BC0: add esi, 0x64 */ 7035 _flag_k = FK_ADD; 7036 PUSH32(esp, esi); /* 0x2B048BC3: push esi */ 7037 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048BC4: call dword ptr [0x2b0b5d6c] */ 7038 RECOMP_FLAGS_IN(); 7039 ecx = eax; /* 0x2B048BCA: mov ecx, eax */ 7040 RECOMP_ICALL(MEM32(0x2B0B5E6C)); /* 0x2B048BCC: call dword ptr [0x2b0b5e6c] */ 7041 RECOMP_FLAGS_IN(); 7042 edi = POP32_VAL(esp); /* 0x2B048BD2: pop edi */ 7043 esi = POP32_VAL(esp); /* 0x2B048BD3: pop esi */ 7044 esp = ebp; /* 0x2B048BD4: mov esp, ebp */ 7045 ebp = POP32_VAL(esp); /* 0x2B048BD6: pop ebp */ 7046 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048BD7: ret */ 7047 L_2B048BD8: 7048 /* cmp eax, 0x35u */ /* 0x2B048BD8: cmp eax, 0x35 */ 7049 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x35u); 7050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7051 _flag_k = FK_CMP; 7052 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048C11; /* 0x2B048BDB: jne 0x2b048c11 */ 7053 L_2B048BDD: 7054 eax = MEM32(esi + 0x40); /* 0x2B048BDD: mov eax, dword ptr [esi + 0x40] */ 7055 ecx = MEM32(esi + 0x44); /* 0x2B048BE0: mov ecx, dword ptr [esi + 0x44] */ 7056 edx = MEM32(esi + 0x3C); /* 0x2B048BE3: mov edx, dword ptr [esi + 0x3c] */ 7057 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7059 ecx = ecx - eax; /* 0x2B048BE6: sub ecx, eax */ 7060 _flag_k = FK_CMP; 7061 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7063 ecx = ecx - edx; /* 0x2B048BE8: sub ecx, edx */ 7064 _flag_k = FK_CMP; 7065 edx = MEM32(esi + 0x8); /* 0x2B048BEA: mov edx, dword ptr [esi + 8] */ 7066 eax = ecx + edx + 0x14; /* 0x2B048BED: lea eax, [ecx + edx + 0x14] */ 7067 /* cmp edi, eax */ /* 0x2B048BF1: cmp edi, eax */ 7068 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7070 _flag_k = FK_CMP; 7071 if (CMP_GE(_flag_a, _flag_b)) goto L_2B048C32; /* 0x2B048BF3: jge 0x2b048c32 */ 7072 L_2B048BF5: 7073 ecx = ebp + (-0x8); /* 0x2B048BF5: lea ecx, [ebp - 8] */ 7074 PUSH32(esp, ecx); /* 0x2B048BF8: push ecx */ 7075 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x64u); 7076 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7077 esi = esi + 0x64u; /* 0x2B048BF9: add esi, 0x64 */ 7078 _flag_k = FK_ADD; 7079 PUSH32(esp, esi); /* 0x2B048BFC: push esi */ 7080 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048BFD: call dword ptr [0x2b0b5d6c] */ 7081 RECOMP_FLAGS_IN(); 7082 ecx = eax; /* 0x2B048C03: mov ecx, eax */ 7083 RECOMP_ICALL(MEM32(0x2B0B5E70)); /* 0x2B048C05: call dword ptr [0x2b0b5e70] */ 7084 RECOMP_FLAGS_IN(); 7085 edi = POP32_VAL(esp); /* 0x2B048C0B: pop edi */ 7086 esi = POP32_VAL(esp); /* 0x2B048C0C: pop esi */ 7087 esp = ebp; /* 0x2B048C0D: mov esp, ebp */ 7088 ebp = POP32_VAL(esp); /* 0x2B048C0F: pop ebp */ 7089 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048C10: ret */ 7090 L_2B048C11: 7091 /* cmp eax, 0x36u */ /* 0x2B048C11: cmp eax, 0x36 */ 7092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x36u); 7093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7094 _flag_k = FK_CMP; 7095 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B048C32; /* 0x2B048C14: je 0x2b048c32 */ 7096 L_2B048C16: 7097 edx = ebp + (-0x8); /* 0x2B048C16: lea edx, [ebp - 8] */ 7098 PUSH32(esp, edx); /* 0x2B048C19: push edx */ 7099 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x6Cu); 7100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7101 esi = esi + 0x6Cu; /* 0x2B048C1A: add esi, 0x6c */ 7102 _flag_k = FK_ADD; 7103 PUSH32(esp, esi); /* 0x2B048C1D: push esi */ 7104 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048C1E: call dword ptr [0x2b0b5d6c] */ 7105 RECOMP_FLAGS_IN(); 7106 ecx = eax; /* 0x2B048C24: mov ecx, eax */ 7107 RECOMP_ICALL(MEM32(0x2B0B5E6C)); /* 0x2B048C26: call dword ptr [0x2b0b5e6c] */ 7108 RECOMP_FLAGS_IN(); 7109 edi = POP32_VAL(esp); /* 0x2B048C2C: pop edi */ 7110 esi = POP32_VAL(esp); /* 0x2B048C2D: pop esi */ 7111 esp = ebp; /* 0x2B048C2E: mov esp, ebp */ 7112 ebp = POP32_VAL(esp); /* 0x2B048C30: pop ebp */ 7113 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048C31: ret */ 7114 L_2B048C32: 7115 ecx = esi; /* 0x2B048C32: mov ecx, esi */ 7116 RECOMP_ICALL(0x2B048F50u); /* 0x2B048C34: call 0x2b048f50 */ /* not lifted */ 7117 RECOMP_FLAGS_IN(); 7118 L_2B048C39: 7119 edi = POP32_VAL(esp); /* 0x2B048C39: pop edi */ 7120 esi = POP32_VAL(esp); /* 0x2B048C3A: pop esi */ 7121 esp = ebp; /* 0x2B048C3B: mov esp, ebp */ 7122 ebp = POP32_VAL(esp); /* 0x2B048C3D: pop ebp */ 7123 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048C3E: ret */ 7124 RECOMP_REGS_OUT(); 7125 } 7126 7127 void sub_2B048C16(void) { 7128 int _fpu_cmp = 0; 7129 uint32_t _cf = 0; 7130 int _df = 1; 7131 uint32_t _flag_k = FK_NONE; 7132 uint32_t _flag_a = 0, _flag_b = 0; 7133 uint32_t _itail_tgt = 0; 7134 RECOMP_REGS_LOCALS 7135 RECOMP_ENTER(0x2B048C16u); 7136 7137 L_2B048C16: 7138 edx = ebp + (-0x8); /* 0x2B048C16: lea edx, [ebp - 8] */ 7139 PUSH32(esp, edx); /* 0x2B048C19: push edx */ 7140 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x6Cu); 7141 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7142 esi = esi + 0x6Cu; /* 0x2B048C1A: add esi, 0x6c */ 7143 _flag_k = FK_ADD; 7144 PUSH32(esp, esi); /* 0x2B048C1D: push esi */ 7145 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048C1E: call dword ptr [0x2b0b5d6c] */ 7146 RECOMP_FLAGS_IN(); 7147 ecx = eax; /* 0x2B048C24: mov ecx, eax */ 7148 RECOMP_ICALL(MEM32(0x2B0B5E6C)); /* 0x2B048C26: call dword ptr [0x2b0b5e6c] */ 7149 RECOMP_FLAGS_IN(); 7150 edi = POP32_VAL(esp); /* 0x2B048C2C: pop edi */ 7151 esi = POP32_VAL(esp); /* 0x2B048C2D: pop esi */ 7152 esp = ebp; /* 0x2B048C2E: mov esp, ebp */ 7153 ebp = POP32_VAL(esp); /* 0x2B048C30: pop ebp */ 7154 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048C31: ret */ 7155 RECOMP_REGS_OUT(); 7156 } 7157 7158 void sub_2B048C40(void) { 7159 int _fpu_cmp = 0; 7160 uint32_t _cf = 0; 7161 int _df = 1; 7162 uint32_t _flag_k = FK_NONE; 7163 uint32_t _flag_a = 0, _flag_b = 0; 7164 uint32_t _itail_tgt = 0; 7165 RECOMP_REGS_LOCALS 7166 RECOMP_ENTER(0x2B048C40u); 7167 7168 L_2B048C40: 7169 PUSH32(esp, ebp); /* 0x2B048C40: push ebp */ 7170 ebp = esp; /* 0x2B048C41: mov ebp, esp */ 7171 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7173 esp = esp - 8; /* 0x2B048C43: sub esp, 8 */ 7174 _flag_k = FK_CMP; 7175 SET_LO8(eax, MEM8(ecx + 0x4C)); /* 0x2B048C46: mov al, byte ptr [ecx + 0x4c] */ 7176 /* test LO8(eax), LO8(eax) */ /* 0x2B048C49: test al, al */ 7177 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7178 _cf = 0; 7179 _flag_k = FK_NARROW(FK_TEST, 24); 7180 PUSH32(esp, esi); /* 0x2B048C4B: push esi */ 7181 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048D44; /* 0x2B048C4C: je 0x2b048d44 */ 7182 L_2B048C52: 7183 eax = MEM32(ebp + 0x8); /* 0x2B048C52: mov eax, dword ptr [ebp + 8] */ 7184 esi = MEM32(eax + 0x88); /* 0x2B048C55: mov esi, dword ptr [eax + 0x88] */ 7185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 7186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7187 eax = eax + 0x54u; /* 0x2B048C5B: add eax, 0x54 */ 7188 _flag_k = FK_ADD; 7189 edx = ebp + (-0x8); /* 0x2B048C5E: lea edx, [ebp - 8] */ 7190 /* cmp edx, eax */ /* 0x2B048C61: cmp edx, eax */ 7191 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7193 _flag_k = FK_CMP; 7194 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B048C6C; /* 0x2B048C63: je 0x2b048c6c */ 7195 L_2B048C65: 7196 edx = MEM32(eax); /* 0x2B048C65: mov edx, dword ptr [eax] */ 7197 eax = MEM32(eax + 0x4); /* 0x2B048C67: mov eax, dword ptr [eax + 4] */ 7198 goto L_2B048C72; /* 0x2B048C6A: jmp 0x2b048c72 */ 7199 L_2B048C6C: 7200 eax = MEM32(ebp + (-0x4)); /* 0x2B048C6C: mov eax, dword ptr [ebp - 4] */ 7201 edx = MEM32(ebp + (-0x8)); /* 0x2B048C6F: mov edx, dword ptr [ebp - 8] */ 7202 L_2B048C72: 7203 /* cmp esi, 0x34u */ /* 0x2B048C72: cmp esi, 0x34 */ 7204 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 7205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7206 _flag_k = FK_CMP; 7207 MEM32(ebp + (-0x8)) = edx; /* 0x2B048C75: mov dword ptr [ebp - 8], edx */ 7208 MEM32(ebp + (-0x4)) = eax; /* 0x2B048C78: mov dword ptr [ebp - 4], eax */ 7209 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048CD1; /* 0x2B048C7B: jne 0x2b048cd1 */ 7210 L_2B048C7D: 7211 eax = ebp + (-0x8); /* 0x2B048C7D: lea eax, [ebp - 8] */ 7212 PUSH32(esp, eax); /* 0x2B048C80: push eax */ 7213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x64u); 7214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7215 ecx = ecx + 0x64u; /* 0x2B048C81: add ecx, 0x64 */ 7216 _flag_k = FK_ADD; 7217 PUSH32(esp, ecx); /* 0x2B048C84: push ecx */ 7218 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048C85: call dword ptr [0x2b0b5d6c] */ 7219 RECOMP_FLAGS_IN(); 7220 ecx = eax; /* 0x2B048C8B: mov ecx, eax */ 7221 RECOMP_ICALL(MEM32(0x2B0B5E6C)); /* 0x2B048C8D: call dword ptr [0x2b0b5e6c] */ 7222 RECOMP_FLAGS_IN(); 7223 SET_LO8(ecx, MEM8(0x2B0EEAC8)); /* 0x2B048C93: mov cl, byte ptr [0x2b0eeac8] */ 7224 SET_LO8(eax, 1); /* 0x2B048C99: mov al, 1 */ 7225 /* test LO8(eax), LO8(ecx) */ /* 0x2B048C9B: test al, cl */ 7226 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7227 _cf = 0; 7228 _flag_k = FK_NARROW(FK_TEST, 24); 7229 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B048CBA; /* 0x2B048C9D: jne 0x2b048cba */ 7230 L_2B048C9F: 7231 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 7232 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B048C9F: or cl, al */ 7233 _cf = 0; 7234 _flag_k = FK_NARROW(FK_TEST, 24); 7235 PUSH32(esp, 0x2B0E78F4u); /* 0x2B048CA1: push 0x2b0e78f4 */ 7236 MEM8(0x2B0EEAC8) = (uint8_t)(LO8(ecx)); /* 0x2B048CA6: mov byte ptr [0x2b0eeac8], cl */ 7237 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B048CAC: call dword ptr [0x2b0b60bc] */ 7238 RECOMP_FLAGS_IN(); 7239 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7241 esp = esp + 4; /* 0x2B048CB2: add esp, 4 */ 7242 _flag_k = FK_ADD; 7243 MEM32(0x2B0EEAC4) = eax; /* 0x2B048CB5: mov dword ptr [0x2b0eeac4], eax */ 7244 L_2B048CBA: 7245 ecx = MEM32(0x2B0EEAC4); /* 0x2B048CBA: mov ecx, dword ptr [0x2b0eeac4] */ 7246 PUSH32(esp, ecx); /* 0x2B048CC0: push ecx */ 7247 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B048CC1: call dword ptr [0x2b0b60b8] */ 7248 RECOMP_FLAGS_IN(); 7249 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7251 esp = esp + 4; /* 0x2B048CC7: add esp, 4 */ 7252 _flag_k = FK_ADD; 7253 esi = POP32_VAL(esp); /* 0x2B048CCA: pop esi */ 7254 esp = ebp; /* 0x2B048CCB: mov esp, ebp */ 7255 ebp = POP32_VAL(esp); /* 0x2B048CCD: pop ebp */ 7256 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B048CCE: ret 4 */ 7257 L_2B048CD1: 7258 /* cmp esi, 0x35u */ /* 0x2B048CD1: cmp esi, 0x35 */ 7259 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x35u); 7260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7261 _flag_k = FK_CMP; 7262 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048D29; /* 0x2B048CD4: jne 0x2b048d29 */ 7263 L_2B048CD6: 7264 edx = ebp + (-0x8); /* 0x2B048CD6: lea edx, [ebp - 8] */ 7265 PUSH32(esp, edx); /* 0x2B048CD9: push edx */ 7266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x64u); 7267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7268 ecx = ecx + 0x64u; /* 0x2B048CDA: add ecx, 0x64 */ 7269 _flag_k = FK_ADD; 7270 PUSH32(esp, ecx); /* 0x2B048CDD: push ecx */ 7271 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048CDE: call dword ptr [0x2b0b5d6c] */ 7272 RECOMP_FLAGS_IN(); 7273 ecx = eax; /* 0x2B048CE4: mov ecx, eax */ 7274 RECOMP_ICALL(MEM32(0x2B0B5E70)); /* 0x2B048CE6: call dword ptr [0x2b0b5e70] */ 7275 RECOMP_FLAGS_IN(); 7276 SET_LO8(ecx, MEM8(0x2B0EEAC8)); /* 0x2B048CEC: mov cl, byte ptr [0x2b0eeac8] */ 7277 SET_LO8(eax, 2); /* 0x2B048CF2: mov al, 2 */ 7278 /* test LO8(eax), LO8(ecx) */ /* 0x2B048CF4: test al, cl */ 7279 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7280 _cf = 0; 7281 _flag_k = FK_NARROW(FK_TEST, 24); 7282 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B048D13; /* 0x2B048CF6: jne 0x2b048d13 */ 7283 L_2B048CF8: 7284 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 7285 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B048CF8: or cl, al */ 7286 _cf = 0; 7287 _flag_k = FK_NARROW(FK_TEST, 24); 7288 PUSH32(esp, 0x2B0E78D0u); /* 0x2B048CFA: push 0x2b0e78d0 */ 7289 MEM8(0x2B0EEAC8) = (uint8_t)(LO8(ecx)); /* 0x2B048CFF: mov byte ptr [0x2b0eeac8], cl */ 7290 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B048D05: call dword ptr [0x2b0b60bc] */ 7291 RECOMP_FLAGS_IN(); 7292 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7293 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7294 esp = esp + 4; /* 0x2B048D0B: add esp, 4 */ 7295 _flag_k = FK_ADD; 7296 MEM32(0x2B0EEAC0) = eax; /* 0x2B048D0E: mov dword ptr [0x2b0eeac0], eax */ 7297 L_2B048D13: 7298 eax = MEM32(0x2B0EEAC0); /* 0x2B048D13: mov eax, dword ptr [0x2b0eeac0] */ 7299 PUSH32(esp, eax); /* 0x2B048D18: push eax */ 7300 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B048D19: call dword ptr [0x2b0b60b8] */ 7301 RECOMP_FLAGS_IN(); 7302 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7303 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7304 esp = esp + 4; /* 0x2B048D1F: add esp, 4 */ 7305 _flag_k = FK_ADD; 7306 esi = POP32_VAL(esp); /* 0x2B048D22: pop esi */ 7307 esp = ebp; /* 0x2B048D23: mov esp, ebp */ 7308 ebp = POP32_VAL(esp); /* 0x2B048D25: pop ebp */ 7309 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B048D26: ret 4 */ 7310 L_2B048D29: 7311 /* cmp esi, 0x36u */ /* 0x2B048D29: cmp esi, 0x36 */ 7312 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x36u); 7313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7314 _flag_k = FK_CMP; 7315 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048D44; /* 0x2B048D2C: jne 0x2b048d44 */ 7316 L_2B048D2E: 7317 edx = ebp + (-0x8); /* 0x2B048D2E: lea edx, [ebp - 8] */ 7318 PUSH32(esp, edx); /* 0x2B048D31: push edx */ 7319 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x6Cu); 7320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7321 ecx = ecx + 0x6Cu; /* 0x2B048D32: add ecx, 0x6c */ 7322 _flag_k = FK_ADD; 7323 PUSH32(esp, ecx); /* 0x2B048D35: push ecx */ 7324 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048D36: call dword ptr [0x2b0b5d6c] */ 7325 RECOMP_FLAGS_IN(); 7326 ecx = eax; /* 0x2B048D3C: mov ecx, eax */ 7327 RECOMP_ICALL(MEM32(0x2B0B5E70)); /* 0x2B048D3E: call dword ptr [0x2b0b5e70] */ 7328 RECOMP_FLAGS_IN(); 7329 L_2B048D44: 7330 esi = POP32_VAL(esp); /* 0x2B048D44: pop esi */ 7331 esp = ebp; /* 0x2B048D45: mov esp, ebp */ 7332 ebp = POP32_VAL(esp); /* 0x2B048D47: pop ebp */ 7333 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B048D48: ret 4 */ 7334 RECOMP_REGS_OUT(); 7335 } 7336 7337 void sub_2B048D50(void) { 7338 int _fpu_cmp = 0; 7339 uint32_t _cf = 0; 7340 int _df = 1; 7341 uint32_t _flag_k = FK_NONE; 7342 uint32_t _flag_a = 0, _flag_b = 0; 7343 uint32_t _itail_tgt = 0; 7344 RECOMP_REGS_LOCALS 7345 RECOMP_ENTER(0x2B048D50u); 7346 7347 L_2B048D50: 7348 PUSH32(esp, ebx); /* 0x2B048D50: push ebx */ 7349 PUSH32(esp, esi); /* 0x2B048D51: push esi */ 7350 esi = ecx; /* 0x2B048D52: mov esi, ecx */ 7351 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B048D54: mov al, byte ptr [esi + 0x4c] */ 7352 /* test LO8(eax), LO8(eax) */ /* 0x2B048D57: test al, al */ 7353 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7354 _cf = 0; 7355 _flag_k = FK_NARROW(FK_TEST, 24); 7356 PUSH32(esp, edi); /* 0x2B048D59: push edi */ 7357 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048E6B; /* 0x2B048D5A: je 0x2b048e6b */ 7358 L_2B048D60: 7359 ebx = MEM32(0x2B0B5D6C); /* 0x2B048D60: mov ebx, dword ptr [0x2b0b5d6c] */ 7360 edi = esi + 0x64; /* 0x2B048D66: lea edi, [esi + 0x64] */ 7361 PUSH32(esp, edi); /* 0x2B048D69: push edi */ 7362 RECOMP_ICALL(ebx); /* 0x2B048D6A: call ebx */ 7363 RECOMP_FLAGS_IN(); 7364 ecx = eax; /* 0x2B048D6C: mov ecx, eax */ 7365 RECOMP_ICALL(MEM32(0x2B0B5E64)); /* 0x2B048D6E: call dword ptr [0x2b0b5e64] */ 7366 RECOMP_FLAGS_IN(); 7367 MEM32(esi + 0xA8) = eax; /* 0x2B048D74: mov dword ptr [esi + 0xa8], eax */ 7368 eax = esi + 0x6C; /* 0x2B048D7A: lea eax, [esi + 0x6c] */ 7369 PUSH32(esp, eax); /* 0x2B048D7D: push eax */ 7370 RECOMP_ICALL(ebx); /* 0x2B048D7E: call ebx */ 7371 RECOMP_FLAGS_IN(); 7372 ecx = eax; /* 0x2B048D80: mov ecx, eax */ 7373 RECOMP_ICALL(MEM32(0x2B0B5E64)); /* 0x2B048D82: call dword ptr [0x2b0b5e64] */ 7374 RECOMP_FLAGS_IN(); 7375 MEM32(esi + 0xAC) = eax; /* 0x2B048D88: mov dword ptr [esi + 0xac], eax */ 7376 /* cmp MEM32(esi + 0x48), 1 */ /* 0x2B048D8E: cmp dword ptr [esi + 0x48], 1 */ 7377 _flag_a = (uint32_t)(MEM32(esi + 0x48)); _flag_b = (uint32_t)(1); 7378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7379 _flag_k = FK_CMP; 7380 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048E20; /* 0x2B048D92: jne 0x2b048e20 */ 7381 L_2B048D98: 7382 ecx = MEM32(esi + 0xA8); /* 0x2B048D98: mov ecx, dword ptr [esi + 0xa8] */ 7383 ebx = MEM32(0x2B0B51F0); /* 0x2B048D9E: mov ebx, dword ptr [0x2b0b51f0] */ 7384 PUSH32(esp, ecx); /* 0x2B048DA4: push ecx */ 7385 PUSH32(esp, 0x2B0E7354u); /* 0x2B048DA5: push 0x2b0e7354 */ 7386 PUSH32(esp, 0x2B0EEAACu); /* 0x2B048DAA: push 0x2b0eeaac */ 7387 RECOMP_ICALL(ebx); /* 0x2B048DAF: call ebx */ 7388 RECOMP_FLAGS_IN(); 7389 ecx = MEM32(esi + 0x90); /* 0x2B048DB1: mov ecx, dword ptr [esi + 0x90] */ 7390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7392 esp = esp + 0xCu; /* 0x2B048DB7: add esp, 0xc */ 7393 _flag_k = FK_ADD; 7394 PUSH32(esp, 0x2B0EEAACu); /* 0x2B048DBA: push 0x2b0eeaac */ 7395 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B048DBF: call dword ptr [0x2b0b5850] */ 7396 RECOMP_FLAGS_IN(); 7397 edi = MEM32(esi + 0xAC); /* 0x2B048DC5: mov edi, dword ptr [esi + 0xac] */ 7398 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0xA8)); 7399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7400 edi = edi - MEM32(esi + 0xA8); /* 0x2B048DCB: sub edi, dword ptr [esi + 0xa8] */ 7401 _flag_k = FK_CMP; 7402 PUSH32(esp, edi); /* 0x2B048DD1: push edi */ 7403 PUSH32(esp, 0x2B0E7354u); /* 0x2B048DD2: push 0x2b0e7354 */ 7404 PUSH32(esp, 0x2B0EEAACu); /* 0x2B048DD7: push 0x2b0eeaac */ 7405 RECOMP_ICALL(ebx); /* 0x2B048DDC: call ebx */ 7406 RECOMP_FLAGS_IN(); 7407 ecx = MEM32(esi + 0x94); /* 0x2B048DDE: mov ecx, dword ptr [esi + 0x94] */ 7408 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7409 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7410 esp = esp + 0xCu; /* 0x2B048DE4: add esp, 0xc */ 7411 _flag_k = FK_ADD; 7412 PUSH32(esp, 0x2B0EEAACu); /* 0x2B048DE7: push 0x2b0eeaac */ 7413 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B048DEC: call dword ptr [0x2b0b5850] */ 7414 RECOMP_FLAGS_IN(); 7415 /* test edi, edi */ /* 0x2B048DF2: test edi, edi */ 7416 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7417 _cf = 0; 7418 _flag_k = FK_TEST; 7419 if (TEST_S(_flag_a, _flag_b)) goto L_2B048E0B; /* 0x2B048DF4: jl 0x2b048e0b */ 7420 L_2B048DF6: 7421 ecx = MEM32(esi + 0x94); /* 0x2B048DF6: mov ecx, dword ptr [esi + 0x94] */ 7422 PUSH32(esp, 0x0044DD44u); /* 0x2B048DFC: push 0x44dd44 */ 7423 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B048E01: call dword ptr [0x2b0b5858] */ 7424 RECOMP_FLAGS_IN(); 7425 edi = POP32_VAL(esp); /* 0x2B048E07: pop edi */ 7426 esi = POP32_VAL(esp); /* 0x2B048E08: pop esi */ 7427 ebx = POP32_VAL(esp); /* 0x2B048E09: pop ebx */ 7428 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048E0A: ret */ 7429 L_2B048E0B: 7430 ecx = MEM32(esi + 0x94); /* 0x2B048E0B: mov ecx, dword ptr [esi + 0x94] */ 7431 PUSH32(esp, 0x00DD4444u); /* 0x2B048E11: push 0xdd4444 */ 7432 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B048E16: call dword ptr [0x2b0b5858] */ 7433 RECOMP_FLAGS_IN(); 7434 edi = POP32_VAL(esp); /* 0x2B048E1C: pop edi */ 7435 esi = POP32_VAL(esp); /* 0x2B048E1D: pop esi */ 7436 ebx = POP32_VAL(esp); /* 0x2B048E1E: pop ebx */ 7437 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048E1F: ret */ 7438 L_2B048E20: 7439 PUSH32(esp, edi); /* 0x2B048E20: push edi */ 7440 RECOMP_ICALL(ebx); /* 0x2B048E21: call ebx */ 7441 RECOMP_FLAGS_IN(); 7442 ecx = eax; /* 0x2B048E23: mov ecx, eax */ 7443 RECOMP_ICALL(MEM32(0x2B0B5E68)); /* 0x2B048E25: call dword ptr [0x2b0b5e68] */ 7444 RECOMP_FLAGS_IN(); 7445 PUSH32(esp, eax); /* 0x2B048E2B: push eax */ 7446 PUSH32(esp, 0x2B0E7354u); /* 0x2B048E2C: push 0x2b0e7354 */ 7447 PUSH32(esp, 0x2B0EEAACu); /* 0x2B048E31: push 0x2b0eeaac */ 7448 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B048E36: call dword ptr [0x2b0b51f0] */ 7449 RECOMP_FLAGS_IN(); 7450 ecx = MEM32(esi + 0x90); /* 0x2B048E3C: mov ecx, dword ptr [esi + 0x90] */ 7451 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7452 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7453 esp = esp + 0xCu; /* 0x2B048E42: add esp, 0xc */ 7454 _flag_k = FK_ADD; 7455 PUSH32(esp, 0x2B0EEAACu); /* 0x2B048E45: push 0x2b0eeaac */ 7456 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B048E4A: call dword ptr [0x2b0b5850] */ 7457 RECOMP_FLAGS_IN(); 7458 ecx = MEM32(esi + 0x90); /* 0x2B048E50: mov ecx, dword ptr [esi + 0x90] */ 7459 PUSH32(esp, 0x0044DD44u); /* 0x2B048E56: push 0x44dd44 */ 7460 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B048E5B: call dword ptr [0x2b0b5858] */ 7461 RECOMP_FLAGS_IN(); 7462 edx = MEM32(esi + 0x90); /* 0x2B048E61: mov edx, dword ptr [esi + 0x90] */ 7463 MEM8(edx + 0x9) = (uint8_t)(1); /* 0x2B048E67: mov byte ptr [edx + 9], 1 */ 7464 L_2B048E6B: 7465 edi = POP32_VAL(esp); /* 0x2B048E6B: pop edi */ 7466 esi = POP32_VAL(esp); /* 0x2B048E6C: pop esi */ 7467 ebx = POP32_VAL(esp); /* 0x2B048E6D: pop ebx */ 7468 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048E6E: ret */ 7469 RECOMP_REGS_OUT(); 7470 } 7471 7472 void sub_2B048E70(void) { 7473 int _fpu_cmp = 0; 7474 uint32_t _cf = 0; 7475 int _df = 1; 7476 uint32_t _flag_k = FK_NONE; 7477 uint32_t _flag_a = 0, _flag_b = 0; 7478 uint32_t _itail_tgt = 0; 7479 RECOMP_REGS_LOCALS 7480 RECOMP_ENTER(0x2B048E70u); 7481 7482 L_2B048E70: 7483 PUSH32(esp, ebp); /* 0x2B048E70: push ebp */ 7484 ebp = esp; /* 0x2B048E71: mov ebp, esp */ 7485 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7487 esp = esp - 0x14u; /* 0x2B048E73: sub esp, 0x14 */ 7488 _flag_k = FK_CMP; 7489 PUSH32(esp, esi); /* 0x2B048E76: push esi */ 7490 esi = ecx; /* 0x2B048E77: mov esi, ecx */ 7491 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B048E79: mov al, byte ptr [esi + 0x4c] */ 7492 /* test LO8(eax), LO8(eax) */ /* 0x2B048E7C: test al, al */ 7493 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7494 _cf = 0; 7495 _flag_k = FK_NARROW(FK_TEST, 24); 7496 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048EDF; /* 0x2B048E7E: je 0x2b048edf */ 7497 L_2B048E80: 7498 ecx = MEM32(esi + 0x7C); /* 0x2B048E80: mov ecx, dword ptr [esi + 0x7c] */ 7499 SET_LO8(eax, 1); /* 0x2B048E83: mov al, 1 */ 7500 MEM8(esi + 0x88) = (uint8_t)(LO8(eax)); /* 0x2B048E85: mov byte ptr [esi + 0x88], al */ 7501 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B048E8B: mov byte ptr [ecx + 8], al */ 7502 edx = MEM32(esi + 0x80); /* 0x2B048E8E: mov edx, dword ptr [esi + 0x80] */ 7503 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B048E94: mov byte ptr [edx + 8], 0 */ 7504 ecx = MEM32(esi + 0x8C); /* 0x2B048E98: mov ecx, dword ptr [esi + 0x8c] */ 7505 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B048E9E: mov byte ptr [ecx + 8], al */ 7506 edx = MEM32(esi + 0xA0); /* 0x2B048EA1: mov edx, dword ptr [esi + 0xa0] */ 7507 PUSH32(esp, edx); /* 0x2B048EA7: push edx */ 7508 eax = ebp + (-0x14); /* 0x2B048EA8: lea eax, [ebp - 0x14] */ 7509 PUSH32(esp, 0x2B0E7354u); /* 0x2B048EAB: push 0x2b0e7354 */ 7510 PUSH32(esp, eax); /* 0x2B048EB0: push eax */ 7511 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B048EB1: call dword ptr [0x2b0b51f0] */ 7512 RECOMP_FLAGS_IN(); 7513 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7515 esp = esp + 0xCu; /* 0x2B048EB7: add esp, 0xc */ 7516 _flag_k = FK_ADD; 7517 ecx = ebp + (-0x14); /* 0x2B048EBA: lea ecx, [ebp - 0x14] */ 7518 PUSH32(esp, ecx); /* 0x2B048EBD: push ecx */ 7519 ecx = MEM32(esi + 0x9C); /* 0x2B048EBE: mov ecx, dword ptr [esi + 0x9c] */ 7520 RECOMP_ICALL(MEM32(0x2B0B5A24)); /* 0x2B048EC4: call dword ptr [0x2b0b5a24] */ 7521 RECOMP_FLAGS_IN(); 7522 PUSH32(esp, 0x97u); /* 0x2B048ECA: push 0x97 */ 7523 PUSH32(esp, 3); /* 0x2B048ECF: push 3 */ 7524 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B048ED1: call dword ptr [0x2b0b53cc] */ 7525 RECOMP_FLAGS_IN(); 7526 ecx = eax; /* 0x2B048ED7: mov ecx, eax */ 7527 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B048ED9: call dword ptr [0x2b0b53c8] */ 7528 RECOMP_FLAGS_IN(); 7529 L_2B048EDF: 7530 esi = POP32_VAL(esp); /* 0x2B048EDF: pop esi */ 7531 esp = ebp; /* 0x2B048EE0: mov esp, ebp */ 7532 ebp = POP32_VAL(esp); /* 0x2B048EE2: pop ebp */ 7533 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048EE3: ret */ 7534 RECOMP_REGS_OUT(); 7535 } 7536 7537 void sub_2B048EF0(void) { 7538 int _fpu_cmp = 0; 7539 uint32_t _cf = 0; 7540 int _df = 1; 7541 uint32_t _flag_k = FK_NONE; 7542 uint32_t _flag_a = 0, _flag_b = 0; 7543 uint32_t _itail_tgt = 0; 7544 RECOMP_REGS_LOCALS 7545 RECOMP_ENTER(0x2B048EF0u); 7546 7547 goto L_2B048EF0; 7548 L_2B0487E0: 7549 PUSH32(esp, esi); /* 0x2B0487E0: push esi */ 7550 esi = ecx; /* 0x2B0487E1: mov esi, ecx */ 7551 ecx = MEM32(esi + 0x54); /* 0x2B0487E3: mov ecx, dword ptr [esi + 0x54] */ 7552 PUSH32(esp, edi); /* 0x2B0487E6: push edi */ 7553 edi = MEM32(0x2B0B5830); /* 0x2B0487E7: mov edi, dword ptr [0x2b0b5830] */ 7554 RECOMP_ICALL(edi); /* 0x2B0487ED: call edi */ 7555 RECOMP_FLAGS_IN(); 7556 ecx = MEM32(esi + 0x58); /* 0x2B0487EF: mov ecx, dword ptr [esi + 0x58] */ 7557 RECOMP_ICALL(edi); /* 0x2B0487F2: call edi */ 7558 RECOMP_FLAGS_IN(); 7559 ecx = MEM32(esi + 0x50); /* 0x2B0487F4: mov ecx, dword ptr [esi + 0x50] */ 7560 RECOMP_ICALL(edi); /* 0x2B0487F7: call edi */ 7561 RECOMP_FLAGS_IN(); 7562 ecx = MEM32(esi + 0x54); /* 0x2B0487F9: mov ecx, dword ptr [esi + 0x54] */ 7563 edi = MEM32(0x2B0B5900); /* 0x2B0487FC: mov edi, dword ptr [0x2b0b5900] */ 7564 PUSH32(esp, 0); /* 0x2B048802: push 0 */ 7565 RECOMP_ICALL(edi); /* 0x2B048804: call edi */ 7566 RECOMP_FLAGS_IN(); 7567 ecx = MEM32(esi + 0x58); /* 0x2B048806: mov ecx, dword ptr [esi + 0x58] */ 7568 PUSH32(esp, 0); /* 0x2B048809: push 0 */ 7569 RECOMP_ICALL(edi); /* 0x2B04880B: call edi */ 7570 RECOMP_FLAGS_IN(); 7571 ecx = MEM32(esi + 0x50); /* 0x2B04880D: mov ecx, dword ptr [esi + 0x50] */ 7572 PUSH32(esp, 0); /* 0x2B048810: push 0 */ 7573 RECOMP_ICALL(edi); /* 0x2B048812: call edi */ 7574 RECOMP_FLAGS_IN(); 7575 eax = MEM32(esi); /* 0x2B048814: mov eax, dword ptr [esi] */ 7576 ecx = esi; /* 0x2B048816: mov ecx, esi */ 7577 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B048818: call dword ptr [eax + 0xc] */ 7578 RECOMP_FLAGS_IN(); 7579 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x2B04881B: mov al, byte ptr [esi + 0x14] */ 7580 /* test LO8(eax), LO8(eax) */ /* 0x2B04881E: test al, al */ 7581 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7582 _cf = 0; 7583 _flag_k = FK_NARROW(FK_TEST, 24); 7584 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048839; /* 0x2B048820: je 0x2b048839 */ 7585 L_2B048822: 7586 ecx = esi; /* 0x2B048822: mov ecx, esi */ 7587 RECOMP_ICALL(0x2B03A510u); /* 0x2B048824: call 0x2b03a510 */ /* not lifted */ 7588 RECOMP_FLAGS_IN(); 7589 ecx = esi; /* 0x2B048829: mov ecx, esi */ 7590 RECOMP_ICALL(0x2B03A600u); /* 0x2B04882B: call 0x2b03a600 */ /* not lifted */ 7591 RECOMP_FLAGS_IN(); 7592 PUSH32(esp, 0); /* 0x2B048830: push 0 */ 7593 ecx = esi; /* 0x2B048832: mov ecx, esi */ 7594 RECOMP_ICALL(0x2B03A3C0u); /* 0x2B048834: call 0x2b03a3c0 */ /* not lifted */ 7595 RECOMP_FLAGS_IN(); 7596 L_2B048839: 7597 RECOMP_ICALL(0x2B03B100u); /* 0x2B048839: call 0x2b03b100 */ /* not lifted */ 7598 RECOMP_FLAGS_IN(); 7599 edi = POP32_VAL(esp); /* 0x2B04883E: pop edi */ 7600 MEM8(esi + 0x4C) = (uint8_t)(0); /* 0x2B04883F: mov byte ptr [esi + 0x4c], 0 */ 7601 esi = POP32_VAL(esp); /* 0x2B048843: pop esi */ 7602 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048844: ret */ 7603 L_2B048EF0: 7604 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7605 eax = 0; /* 0x2B048EF0: xor eax, eax */ 7606 _cf = 0; 7607 _flag_k = FK_TEST; 7608 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7609 edx = 0; /* 0x2B048EF2: xor edx, edx */ 7610 _cf = 0; 7611 _flag_k = FK_TEST; 7612 MEM32(ecx + 0x28) = eax; /* 0x2B048EF4: mov dword ptr [ecx + 0x28], eax */ 7613 MEM32(ecx + 0x2C) = edx; /* 0x2B048EF7: mov dword ptr [ecx + 0x2c], edx */ 7614 RECOMP_BACKEDGE(); 7615 goto L_2B0487E0; /* 0x2B048EFA: jmp 0x2b0487e0 */ 7616 { RECOMP_REGS_OUT(); return; } /* end of function */ 7617 RECOMP_REGS_OUT(); 7618 } 7619 7620 void sub_2B048F00(void) { 7621 int _fpu_cmp = 0; 7622 uint32_t _cf = 0; 7623 int _df = 1; 7624 uint32_t _flag_k = FK_NONE; 7625 uint32_t _flag_a = 0, _flag_b = 0; 7626 uint32_t _itail_tgt = 0; 7627 RECOMP_REGS_LOCALS 7628 RECOMP_ENTER(0x2B048F00u); 7629 7630 L_2B048F00: 7631 PUSH32(esp, esi); /* 0x2B048F00: push esi */ 7632 esi = ecx; /* 0x2B048F01: mov esi, ecx */ 7633 RECOMP_ICALL(0x2B048D50u); /* 0x2B048F03: call 0x2b048d50 */ /* not lifted */ 7634 RECOMP_FLAGS_IN(); 7635 ecx = esi; /* 0x2B048F08: mov ecx, esi */ 7636 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B048F0A: call 0x2b03a2b0 */ /* not lifted */ 7637 RECOMP_FLAGS_IN(); 7638 esi = POP32_VAL(esp); /* 0x2B048F0F: pop esi */ 7639 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B048F10: ret 4 */ 7640 RECOMP_REGS_OUT(); 7641 } 7642 7643 void sub_2B048F20(void) { 7644 int _fpu_cmp = 0; 7645 uint32_t _cf = 0; 7646 int _df = 1; 7647 uint32_t _flag_k = FK_NONE; 7648 uint32_t _flag_a = 0, _flag_b = 0; 7649 uint32_t _itail_tgt = 0; 7650 RECOMP_REGS_LOCALS 7651 RECOMP_ENTER(0x2B048F20u); 7652 7653 L_2B048F20: 7654 PUSH32(esp, esi); /* 0x2B048F20: push esi */ 7655 esi = MEM32(0x2B0B53CC); /* 0x2B048F21: mov esi, dword ptr [0x2b0b53cc] */ 7656 PUSH32(esp, 0x16Fu); /* 0x2B048F27: push 0x16f */ 7657 PUSH32(esp, 0x33u); /* 0x2B048F2C: push 0x33 */ 7658 RECOMP_ICALL(esi); /* 0x2B048F2E: call esi */ 7659 RECOMP_FLAGS_IN(); 7660 ecx = eax; /* 0x2B048F30: mov ecx, eax */ 7661 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B048F32: call dword ptr [0x2b0b53c8] */ 7662 RECOMP_FLAGS_IN(); 7663 PUSH32(esp, 1); /* 0x2B048F38: push 1 */ 7664 PUSH32(esp, 0x16Du); /* 0x2B048F3A: push 0x16d */ 7665 PUSH32(esp, 9); /* 0x2B048F3F: push 9 */ 7666 RECOMP_ICALL(esi); /* 0x2B048F41: call esi */ 7667 RECOMP_FLAGS_IN(); 7668 ecx = eax; /* 0x2B048F43: mov ecx, eax */ 7669 RECOMP_ICALL(MEM32(0x2B0B53B8)); /* 0x2B048F45: call dword ptr [0x2b0b53b8] */ 7670 RECOMP_FLAGS_IN(); 7671 esi = POP32_VAL(esp); /* 0x2B048F4B: pop esi */ 7672 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048F4C: ret */ 7673 RECOMP_REGS_OUT(); 7674 } 7675 7676 void sub_2B048F50(void) { 7677 int _fpu_cmp = 0; 7678 uint32_t _cf = 0; 7679 int _df = 1; 7680 uint32_t _flag_k = FK_NONE; 7681 uint32_t _flag_a = 0, _flag_b = 0; 7682 uint32_t _itail_tgt = 0; 7683 RECOMP_REGS_LOCALS 7684 RECOMP_ENTER(0x2B048F50u); 7685 7686 L_2B048F50: 7687 PUSH32(esp, ebp); /* 0x2B048F50: push ebp */ 7688 ebp = esp; /* 0x2B048F51: mov ebp, esp */ 7689 PUSH32(esp, ecx); /* 0x2B048F53: push ecx */ 7690 PUSH32(esp, ebx); /* 0x2B048F54: push ebx */ 7691 PUSH32(esp, esi); /* 0x2B048F55: push esi */ 7692 esi = ecx; /* 0x2B048F56: mov esi, ecx */ 7693 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B048F58: mov al, byte ptr [esi + 0x4c] */ 7694 /* test LO8(eax), LO8(eax) */ /* 0x2B048F5B: test al, al */ 7695 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7696 _cf = 0; 7697 _flag_k = FK_NARROW(FK_TEST, 24); 7698 PUSH32(esp, edi); /* 0x2B048F5D: push edi */ 7699 if (TEST_Z(_flag_a, _flag_b)) goto L_2B049069; /* 0x2B048F5E: je 0x2b049069 */ 7700 L_2B048F64: 7701 ecx = MEM32(esi + 0x54); /* 0x2B048F64: mov ecx, dword ptr [esi + 0x54] */ 7702 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B048F67: call dword ptr [0x2b0b58cc] */ 7703 RECOMP_FLAGS_IN(); 7704 ebx = esi + 0x64; /* 0x2B048F6D: lea ebx, [esi + 0x64] */ 7705 PUSH32(esp, ebx); /* 0x2B048F70: push ebx */ 7706 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048F71: call dword ptr [0x2b0b5d6c] */ 7707 RECOMP_FLAGS_IN(); 7708 ecx = eax; /* 0x2B048F77: mov ecx, eax */ 7709 RECOMP_ICALL(MEM32(0x2B0B5E60)); /* 0x2B048F79: call dword ptr [0x2b0b5e60] */ 7710 RECOMP_FLAGS_IN(); 7711 /* test eax, eax */ /* 0x2B048F7F: test eax, eax */ 7712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7713 _cf = 0; 7714 _flag_k = FK_TEST; 7715 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048FA9; /* 0x2B048F81: je 0x2b048fa9 */ 7716 L_2B048F83: 7717 ecx = MEM32(eax + 0x8); /* 0x2B048F83: mov ecx, dword ptr [eax + 8] */ 7718 /* test ecx, ecx */ /* 0x2B048F86: test ecx, ecx */ 7719 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7720 _cf = 0; 7721 _flag_k = FK_TEST; 7722 eax = MEM32(eax + 0x4); /* 0x2B048F88: mov eax, dword ptr [eax + 4] */ 7723 edi = MEM32(eax); /* 0x2B048F8B: mov edi, dword ptr [eax] */ 7724 if (TEST_LE(_flag_a, _flag_b)) goto L_2B048FA9; /* 0x2B048F8D: jle 0x2b048fa9 */ 7725 L_2B048F8F: 7726 MEM32(ebp + (-0x4)) = ecx; /* 0x2B048F8F: mov dword ptr [ebp - 4], ecx */ 7727 L_2B048F92: 7728 ecx = edi + 0x8; /* 0x2B048F92: lea ecx, [edi + 8] */ 7729 PUSH32(esp, ecx); /* 0x2B048F95: push ecx */ 7730 PUSH32(esp, ebx); /* 0x2B048F96: push ebx */ 7731 ecx = esi; /* 0x2B048F97: mov ecx, esi */ 7732 RECOMP_ICALL(0x2B048A20u); /* 0x2B048F99: call 0x2b048a20 */ /* not lifted */ 7733 RECOMP_FLAGS_IN(); 7734 eax = MEM32(ebp + (-0x4)); /* 0x2B048F9E: mov eax, dword ptr [ebp - 4] */ 7735 edi = MEM32(edi); /* 0x2B048FA1: mov edi, dword ptr [edi] */ 7736 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7737 eax = eax - 1; /* 0x2B048FA3: dec eax */ 7738 _flag_k = FK_DEC; 7739 MEM32(ebp + (-0x4)) = eax; /* 0x2B048FA4: mov dword ptr [ebp - 4], eax */ 7740 RECOMP_BACKEDGE(); 7741 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B048F92; /* 0x2B048FA7: jne 0x2b048f92 */ 7742 L_2B048FA9: 7743 ecx = MEM32(esi + 0x54); /* 0x2B048FA9: mov ecx, dword ptr [esi + 0x54] */ 7744 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B048FAC: call dword ptr [0x2b0b58d4] */ 7745 RECOMP_FLAGS_IN(); 7746 ecx = MEM32(esi + 0x58); /* 0x2B048FB2: mov ecx, dword ptr [esi + 0x58] */ 7747 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B048FB5: call dword ptr [0x2b0b58cc] */ 7748 RECOMP_FLAGS_IN(); 7749 ebx = esi + 0x6C; /* 0x2B048FBB: lea ebx, [esi + 0x6c] */ 7750 PUSH32(esp, ebx); /* 0x2B048FBE: push ebx */ 7751 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048FBF: call dword ptr [0x2b0b5d6c] */ 7752 RECOMP_FLAGS_IN(); 7753 ecx = eax; /* 0x2B048FC5: mov ecx, eax */ 7754 RECOMP_ICALL(MEM32(0x2B0B5E60)); /* 0x2B048FC7: call dword ptr [0x2b0b5e60] */ 7755 RECOMP_FLAGS_IN(); 7756 /* test eax, eax */ /* 0x2B048FCD: test eax, eax */ 7757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7758 _cf = 0; 7759 _flag_k = FK_TEST; 7760 if (TEST_Z(_flag_a, _flag_b)) goto L_2B049069; /* 0x2B048FCF: je 0x2b049069 */ 7761 L_2B048FD5: 7762 ecx = MEM32(eax + 0x8); /* 0x2B048FD5: mov ecx, dword ptr [eax + 8] */ 7763 /* test ecx, ecx */ /* 0x2B048FD8: test ecx, ecx */ 7764 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7765 _cf = 0; 7766 _flag_k = FK_TEST; 7767 edx = MEM32(eax + 0x4); /* 0x2B048FDA: mov edx, dword ptr [eax + 4] */ 7768 edi = MEM32(edx); /* 0x2B048FDD: mov edi, dword ptr [edx] */ 7769 if (TEST_LE(_flag_a, _flag_b)) goto L_2B048FFB; /* 0x2B048FDF: jle 0x2b048ffb */ 7770 L_2B048FE1: 7771 MEM32(ebp + (-0x4)) = ecx; /* 0x2B048FE1: mov dword ptr [ebp - 4], ecx */ 7772 L_2B048FE4: 7773 eax = edi + 0x8; /* 0x2B048FE4: lea eax, [edi + 8] */ 7774 PUSH32(esp, eax); /* 0x2B048FE7: push eax */ 7775 PUSH32(esp, ebx); /* 0x2B048FE8: push ebx */ 7776 ecx = esi; /* 0x2B048FE9: mov ecx, esi */ 7777 RECOMP_ICALL(0x2B048A20u); /* 0x2B048FEB: call 0x2b048a20 */ /* not lifted */ 7778 RECOMP_FLAGS_IN(); 7779 eax = MEM32(ebp + (-0x4)); /* 0x2B048FF0: mov eax, dword ptr [ebp - 4] */ 7780 edi = MEM32(edi); /* 0x2B048FF3: mov edi, dword ptr [edi] */ 7781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7782 eax = eax - 1; /* 0x2B048FF5: dec eax */ 7783 _flag_k = FK_DEC; 7784 MEM32(ebp + (-0x4)) = eax; /* 0x2B048FF6: mov dword ptr [ebp - 4], eax */ 7785 RECOMP_BACKEDGE(); 7786 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B048FE4; /* 0x2B048FF9: jne 0x2b048fe4 */ 7787 L_2B048FFB: 7788 ecx = MEM32(esi + 0x58); /* 0x2B048FFB: mov ecx, dword ptr [esi + 0x58] */ 7789 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B048FFE: call dword ptr [0x2b0b58d4] */ 7790 RECOMP_FLAGS_IN(); 7791 /* cmp MEM32(esi + 0x48), 1 */ /* 0x2B049004: cmp dword ptr [esi + 0x48], 1 */ 7792 _flag_a = (uint32_t)(MEM32(esi + 0x48)); _flag_b = (uint32_t)(1); 7793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7794 _flag_k = FK_CMP; 7795 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04905B; /* 0x2B049008: jne 0x2b04905b */ 7796 L_2B04900A: 7797 ecx = MEM32(esi + 0x50); /* 0x2B04900A: mov ecx, dword ptr [esi + 0x50] */ 7798 edx = MEM32(ecx); /* 0x2B04900D: mov edx, dword ptr [ecx] */ 7799 eax = MEM32(edx + 0x8); /* 0x2B04900F: mov eax, dword ptr [edx + 8] */ 7800 /* test eax, eax */ /* 0x2B049012: test eax, eax */ 7801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7802 _cf = 0; 7803 _flag_k = FK_TEST; 7804 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04905B; /* 0x2B049014: jne 0x2b04905b */ 7805 L_2B049016: 7806 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B049016: call dword ptr [0x2b0b58cc] */ 7807 RECOMP_FLAGS_IN(); 7808 eax = esi + 0x64; /* 0x2B04901C: lea eax, [esi + 0x64] */ 7809 PUSH32(esp, eax); /* 0x2B04901F: push eax */ 7810 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B049020: call dword ptr [0x2b0b5d6c] */ 7811 RECOMP_FLAGS_IN(); 7812 ecx = eax; /* 0x2B049026: mov ecx, eax */ 7813 RECOMP_ICALL(MEM32(0x2B0B5E98)); /* 0x2B049028: call dword ptr [0x2b0b5e98] */ 7814 RECOMP_FLAGS_IN(); 7815 /* test eax, eax */ /* 0x2B04902E: test eax, eax */ 7816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7817 _cf = 0; 7818 _flag_k = FK_TEST; 7819 if (TEST_Z(_flag_a, _flag_b)) goto L_2B049069; /* 0x2B049030: je 0x2b049069 */ 7820 L_2B049032: 7821 ebx = MEM32(eax + 0x8); /* 0x2B049032: mov ebx, dword ptr [eax + 8] */ 7822 /* test ebx, ebx */ /* 0x2B049035: test ebx, ebx */ 7823 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7824 _cf = 0; 7825 _flag_k = FK_TEST; 7826 eax = MEM32(eax + 0x4); /* 0x2B049037: mov eax, dword ptr [eax + 4] */ 7827 edi = MEM32(eax); /* 0x2B04903A: mov edi, dword ptr [eax] */ 7828 if (TEST_LE(_flag_a, _flag_b)) goto L_2B049052; /* 0x2B04903C: jle 0x2b049052 */ 7829 L_2B04903E: 7830 ecx = edi + 0x8; /* 0x2B04903E: lea ecx, [edi + 8] */ 7831 PUSH32(esp, ecx); /* 0x2B049041: push ecx */ 7832 eax = esi + 0x5C; /* 0x2B049042: lea eax, [esi + 0x5c] */ 7833 PUSH32(esp, eax); /* 0x2B049045: push eax */ 7834 ecx = esi; /* 0x2B049046: mov ecx, esi */ 7835 RECOMP_ICALL(0x2B048A20u); /* 0x2B049048: call 0x2b048a20 */ /* not lifted */ 7836 RECOMP_FLAGS_IN(); 7837 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 7838 ebx = ebx - 1; /* 0x2B04904D: dec ebx */ 7839 _flag_k = FK_DEC; 7840 edi = MEM32(edi); /* 0x2B04904E: mov edi, dword ptr [edi] */ 7841 RECOMP_BACKEDGE(); 7842 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04903E; /* 0x2B049050: jne 0x2b04903e */ 7843 L_2B049052: 7844 ecx = MEM32(esi + 0x50); /* 0x2B049052: mov ecx, dword ptr [esi + 0x50] */ 7845 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B049055: call dword ptr [0x2b0b58d4] */ 7846 RECOMP_FLAGS_IN(); 7847 L_2B04905B: 7848 ecx = esi; /* 0x2B04905B: mov ecx, esi */ 7849 RECOMP_ICALL(0x2B048D50u); /* 0x2B04905D: call 0x2b048d50 */ /* not lifted */ 7850 RECOMP_FLAGS_IN(); 7851 ecx = esi; /* 0x2B049062: mov ecx, esi */ 7852 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B049064: call 0x2b03a2b0 */ /* not lifted */ 7853 RECOMP_FLAGS_IN(); 7854 L_2B049069: 7855 edi = POP32_VAL(esp); /* 0x2B049069: pop edi */ 7856 esi = POP32_VAL(esp); /* 0x2B04906A: pop esi */ 7857 ebx = POP32_VAL(esp); /* 0x2B04906B: pop ebx */ 7858 esp = ebp; /* 0x2B04906C: mov esp, ebp */ 7859 ebp = POP32_VAL(esp); /* 0x2B04906E: pop ebp */ 7860 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04906F: ret */ 7861 RECOMP_REGS_OUT(); 7862 } 7863 7864 void sub_2B049070(void) { 7865 int _fpu_cmp = 0; 7866 uint32_t _cf = 0; 7867 int _df = 1; 7868 uint32_t _flag_k = FK_NONE; 7869 uint32_t _flag_a = 0, _flag_b = 0; 7870 uint32_t _itail_tgt = 0; 7871 RECOMP_REGS_LOCALS 7872 RECOMP_ENTER(0x2B049070u); 7873 7874 L_2B049070: 7875 PUSH32(esp, ebp); /* 0x2B049070: push ebp */ 7876 ebp = esp; /* 0x2B049071: mov ebp, esp */ 7877 eax = MEM32(ebp + 0x8); /* 0x2B049073: mov eax, dword ptr [ebp + 8] */ 7878 ecx = MEM32(eax + 0x84); /* 0x2B049076: mov ecx, dword ptr [eax + 0x84] */ 7879 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B04907C: mov byte ptr [ecx + 9], 1 */ 7880 ebp = POP32_VAL(esp); /* 0x2B049080: pop ebp */ 7881 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B049081: ret */ 7882 RECOMP_REGS_OUT(); 7883 } 7884 7885 void sub_2B049090(void) { 7886 int _fpu_cmp = 0; 7887 uint32_t _cf = 0; 7888 int _df = 1; 7889 uint32_t _flag_k = FK_NONE; 7890 uint32_t _flag_a = 0, _flag_b = 0; 7891 uint32_t _itail_tgt = 0; 7892 RECOMP_REGS_LOCALS 7893 RECOMP_ENTER(0x2B049090u); 7894 7895 L_2B049090: 7896 PUSH32(esp, ebp); /* 0x2B049090: push ebp */ 7897 ebp = esp; /* 0x2B049091: mov ebp, esp */ 7898 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7900 esp = esp - 0x14u; /* 0x2B049093: sub esp, 0x14 */ 7901 _flag_k = FK_CMP; 7902 PUSH32(esp, ebx); /* 0x2B049096: push ebx */ 7903 PUSH32(esp, esi); /* 0x2B049097: push esi */ 7904 PUSH32(esp, edi); /* 0x2B049098: push edi */ 7905 PUSH32(esp, 2); /* 0x2B049099: push 2 */ 7906 PUSH32(esp, 0x3Du); /* 0x2B04909B: push 0x3d */ 7907 ebx = ecx; /* 0x2B04909D: mov ebx, ecx */ 7908 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B04909F: call dword ptr [0x2b0b5d6c] */ 7909 RECOMP_FLAGS_IN(); 7910 ecx = eax; /* 0x2B0490A5: mov ecx, eax */ 7911 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B0490A7: call dword ptr [0x2b0b5d70] */ 7912 RECOMP_FLAGS_IN(); 7913 esi = eax; /* 0x2B0490AD: mov esi, eax */ 7914 eax = MEM32(ebx + 0x9C); /* 0x2B0490AF: mov eax, dword ptr [ebx + 0x9c] */ 7915 eax = MEM32(eax + 0x50); /* 0x2B0490B5: mov eax, dword ptr [eax + 0x50] */ 7916 eax = MEM32(eax + 0x4); /* 0x2B0490B8: mov eax, dword ptr [eax + 4] */ 7917 /* test eax, eax */ /* 0x2B0490BB: test eax, eax */ 7918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7919 _cf = 0; 7920 _flag_k = FK_TEST; 7921 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0490C4; /* 0x2B0490BD: jne 0x2b0490c4 */ 7922 L_2B0490BF: 7923 eax = MEM32(0x2B0B513C); /* 0x2B0490BF: mov eax, dword ptr [0x2b0b513c] */ 7924 L_2B0490C4: 7925 PUSH32(esp, eax); /* 0x2B0490C4: push eax */ 7926 RECOMP_ICALL(MEM32(0x2B0B51FC)); /* 0x2B0490C5: call dword ptr [0x2b0b51fc] */ 7927 RECOMP_FLAGS_IN(); 7928 edi = eax; /* 0x2B0490CB: mov edi, eax */ 7929 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7931 esp = esp + 4; /* 0x2B0490CD: add esp, 4 */ 7932 _flag_k = FK_ADD; 7933 /* cmp esi, edi */ /* 0x2B0490D0: cmp esi, edi */ 7934 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 7935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7936 _flag_k = FK_CMP; 7937 if (CMP_GE(_flag_a, _flag_b)) goto L_2B0490F9; /* 0x2B0490D2: jge 0x2b0490f9 */ 7938 L_2B0490D4: 7939 PUSH32(esp, esi); /* 0x2B0490D4: push esi */ 7940 ecx = ebp + (-0x14); /* 0x2B0490D5: lea ecx, [ebp - 0x14] */ 7941 PUSH32(esp, 0x2B0E7354u); /* 0x2B0490D8: push 0x2b0e7354 */ 7942 PUSH32(esp, ecx); /* 0x2B0490DD: push ecx */ 7943 edi = esi; /* 0x2B0490DE: mov edi, esi */ 7944 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B0490E0: call dword ptr [0x2b0b51f0] */ 7945 RECOMP_FLAGS_IN(); 7946 ecx = MEM32(ebx + 0x9C); /* 0x2B0490E6: mov ecx, dword ptr [ebx + 0x9c] */ 7947 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7948 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7949 esp = esp + 0xCu; /* 0x2B0490EC: add esp, 0xc */ 7950 _flag_k = FK_ADD; 7951 edx = ebp + (-0x14); /* 0x2B0490EF: lea edx, [ebp - 0x14] */ 7952 PUSH32(esp, edx); /* 0x2B0490F2: push edx */ 7953 RECOMP_ICALL(MEM32(0x2B0B5A24)); /* 0x2B0490F3: call dword ptr [0x2b0b5a24] */ 7954 RECOMP_FLAGS_IN(); 7955 L_2B0490F9: 7956 PUSH32(esp, 0x97u); /* 0x2B0490F9: push 0x97 */ 7957 PUSH32(esp, 3); /* 0x2B0490FE: push 3 */ 7958 MEM32(ebx + 0xA0) = edi; /* 0x2B049100: mov dword ptr [ebx + 0xa0], edi */ 7959 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B049106: call dword ptr [0x2b0b53cc] */ 7960 RECOMP_FLAGS_IN(); 7961 ecx = eax; /* 0x2B04910C: mov ecx, eax */ 7962 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B04910E: call dword ptr [0x2b0b53c8] */ 7963 RECOMP_FLAGS_IN(); 7964 edi = POP32_VAL(esp); /* 0x2B049114: pop edi */ 7965 esi = POP32_VAL(esp); /* 0x2B049115: pop esi */ 7966 ebx = POP32_VAL(esp); /* 0x2B049116: pop ebx */ 7967 esp = ebp; /* 0x2B049117: mov esp, ebp */ 7968 ebp = POP32_VAL(esp); /* 0x2B049119: pop ebp */ 7969 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04911A: ret */ 7970 RECOMP_REGS_OUT(); 7971 } 7972 7973 void sub_2B049120(void) { 7974 int _fpu_cmp = 0; 7975 uint32_t _cf = 0; 7976 int _df = 1; 7977 uint32_t _flag_k = FK_NONE; 7978 uint32_t _flag_a = 0, _flag_b = 0; 7979 uint32_t _itail_tgt = 0; 7980 RECOMP_REGS_LOCALS 7981 RECOMP_ENTER(0x2B049120u); 7982 7983 L_2B049120: 7984 PUSH32(esp, esi); /* 0x2B049120: push esi */ 7985 PUSH32(esp, edi); /* 0x2B049121: push edi */ 7986 edi = ecx; /* 0x2B049122: mov edi, ecx */ 7987 eax = MEM32(edi + 0x50); /* 0x2B049124: mov eax, dword ptr [edi + 0x50] */ 7988 esi = MEM32(eax + 0x2C); /* 0x2B049127: mov esi, dword ptr [eax + 0x2c] */ 7989 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B04912A: call dword ptr [0x2b0b5b64] */ 7990 RECOMP_FLAGS_IN(); 7991 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x110)); 7992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7993 esi = esi - MEM32(eax + 0x110); /* 0x2B049130: sub esi, dword ptr [eax + 0x110] */ 7994 _flag_k = FK_CMP; 7995 ecx = MEM32(edi + 0x50); /* 0x2B049136: mov ecx, dword ptr [edi + 0x50] */ 7996 PUSH32(esp, esi); /* 0x2B049139: push esi */ 7997 RECOMP_ICALL(MEM32(0x2B0B5900)); /* 0x2B04913A: call dword ptr [0x2b0b5900] */ 7998 RECOMP_FLAGS_IN(); 7999 edi = POP32_VAL(esp); /* 0x2B049140: pop edi */ 8000 esi = POP32_VAL(esp); /* 0x2B049141: pop esi */ 8001 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B049142: ret */ 8002 RECOMP_REGS_OUT(); 8003 } 8004 8005 void sub_2B049150(void) { 8006 int _fpu_cmp = 0; 8007 uint32_t _cf = 0; 8008 int _df = 1; 8009 uint32_t _flag_k = FK_NONE; 8010 uint32_t _flag_a = 0, _flag_b = 0; 8011 uint32_t _itail_tgt = 0; 8012 RECOMP_REGS_LOCALS 8013 RECOMP_ENTER(0x2B049150u); 8014 8015 L_2B049150: 8016 goto L_2B049160; /* 0x2B049150: jmp 0x2b049160 */ 8017 L_2B049160: 8018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8019 eax = 0; /* 0x2B049160: xor eax, eax */ 8020 _cf = 0; 8021 _flag_k = FK_TEST; 8022 MEM32(0x2B0EEAE0) = eax; /* 0x2B049162: mov dword ptr [0x2b0eeae0], eax */ 8023 MEM32(0x2B0EEAE4) = eax; /* 0x2B049167: mov dword ptr [0x2b0eeae4], eax */ 8024 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04916C: ret */ 8025 RECOMP_REGS_OUT(); 8026 } 8027 8028 void sub_2B049160(void) { 8029 int _fpu_cmp = 0; 8030 uint32_t _cf = 0; 8031 int _df = 1; 8032 uint32_t _flag_k = FK_NONE; 8033 uint32_t _flag_a = 0, _flag_b = 0; 8034 uint32_t _itail_tgt = 0; 8035 RECOMP_REGS_LOCALS 8036 RECOMP_ENTER(0x2B049160u); 8037 8038 L_2B049160: 8039 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8040 eax = 0; /* 0x2B049160: xor eax, eax */ 8041 _cf = 0; 8042 _flag_k = FK_TEST; 8043 MEM32(0x2B0EEAE0) = eax; /* 0x2B049162: mov dword ptr [0x2b0eeae0], eax */ 8044 MEM32(0x2B0EEAE4) = eax; /* 0x2B049167: mov dword ptr [0x2b0eeae4], eax */ 8045 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04916C: ret */ 8046 RECOMP_REGS_OUT(); 8047 } 8048 8049 void sub_2B049170(void) { 8050 int _fpu_cmp = 0; 8051 uint32_t _cf = 0; 8052 int _df = 1; 8053 uint32_t _flag_k = FK_NONE; 8054 uint32_t _flag_a = 0, _flag_b = 0; 8055 uint32_t _itail_tgt = 0; 8056 RECOMP_REGS_LOCALS 8057 RECOMP_ENTER(0x2B049170u); 8058 8059 L_2B049170: 8060 PUSH32(esp, ebx); /* 0x2B049170: push ebx */ 8061 PUSH32(esp, esi); /* 0x2B049171: push esi */ 8062 esi = MEM32(0x2B0B53CC); /* 0x2B049172: mov esi, dword ptr [0x2b0b53cc] */ 8063 PUSH32(esp, edi); /* 0x2B049178: push edi */ 8064 ebx = ecx; /* 0x2B049179: mov ebx, ecx */ 8065 RECOMP_ICALL(esi); /* 0x2B04917B: call esi */ 8066 RECOMP_FLAGS_IN(); 8067 ecx = eax; /* 0x2B04917D: mov ecx, eax */ 8068 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B04917F: call dword ptr [0x2b0b5374] */ 8069 RECOMP_FLAGS_IN(); 8070 PUSH32(esp, 0x2AF8u); /* 0x2B049185: push 0x2af8 */ 8071 PUSH32(esp, 0x33u); /* 0x2B04918A: push 0x33 */ 8072 PUSH32(esp, 1); /* 0x2B04918C: push 1 */ 8073 RECOMP_ICALL(esi); /* 0x2B04918E: call esi */ 8074 RECOMP_FLAGS_IN(); 8075 ecx = eax; /* 0x2B049190: mov ecx, eax */ 8076 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B049192: call dword ptr [0x2b0b5378] */ 8077 RECOMP_FLAGS_IN(); 8078 PUSH32(esp, 0x2B049270u); /* 0x2B049198: push 0x2b049270 */ 8079 PUSH32(esp, 5); /* 0x2B04919D: push 5 */ 8080 RECOMP_ICALL(esi); /* 0x2B04919F: call esi */ 8081 RECOMP_FLAGS_IN(); 8082 edi = MEM32(0x2B0B5324); /* 0x2B0491A1: mov edi, dword ptr [0x2b0b5324] */ 8083 ecx = eax; /* 0x2B0491A7: mov ecx, eax */ 8084 RECOMP_ICALL(edi); /* 0x2B0491A9: call edi */ 8085 RECOMP_FLAGS_IN(); 8086 PUSH32(esp, 0x2B0492E0u); /* 0x2B0491AB: push 0x2b0492e0 */ 8087 PUSH32(esp, 6); /* 0x2B0491B0: push 6 */ 8088 RECOMP_ICALL(esi); /* 0x2B0491B2: call esi */ 8089 RECOMP_FLAGS_IN(); 8090 ecx = eax; /* 0x2B0491B4: mov ecx, eax */ 8091 RECOMP_ICALL(edi); /* 0x2B0491B6: call edi */ 8092 RECOMP_FLAGS_IN(); 8093 PUSH32(esp, 0x2B049300u); /* 0x2B0491B8: push 0x2b049300 */ 8094 PUSH32(esp, 0x170u); /* 0x2B0491BD: push 0x170 */ 8095 RECOMP_ICALL(esi); /* 0x2B0491C2: call esi */ 8096 RECOMP_FLAGS_IN(); 8097 ecx = eax; /* 0x2B0491C4: mov ecx, eax */ 8098 RECOMP_ICALL(edi); /* 0x2B0491C6: call edi */ 8099 RECOMP_FLAGS_IN(); 8100 PUSH32(esp, 0x2B049380u); /* 0x2B0491C8: push 0x2b049380 */ 8101 PUSH32(esp, 0x171u); /* 0x2B0491CD: push 0x171 */ 8102 RECOMP_ICALL(esi); /* 0x2B0491D2: call esi */ 8103 RECOMP_FLAGS_IN(); 8104 ecx = eax; /* 0x2B0491D4: mov ecx, eax */ 8105 RECOMP_ICALL(edi); /* 0x2B0491D6: call edi */ 8106 RECOMP_FLAGS_IN(); 8107 PUSH32(esp, 0x2B049390u); /* 0x2B0491D8: push 0x2b049390 */ 8108 PUSH32(esp, 0x8Fu); /* 0x2B0491DD: push 0x8f */ 8109 RECOMP_ICALL(esi); /* 0x2B0491E2: call esi */ 8110 RECOMP_FLAGS_IN(); 8111 ecx = eax; /* 0x2B0491E4: mov ecx, eax */ 8112 RECOMP_ICALL(edi); /* 0x2B0491E6: call edi */ 8113 RECOMP_FLAGS_IN(); 8114 PUSH32(esp, 0x2B0493A0u); /* 0x2B0491E8: push 0x2b0493a0 */ 8115 PUSH32(esp, 0x172u); /* 0x2B0491ED: push 0x172 */ 8116 RECOMP_ICALL(esi); /* 0x2B0491F2: call esi */ 8117 RECOMP_FLAGS_IN(); 8118 ecx = eax; /* 0x2B0491F4: mov ecx, eax */ 8119 RECOMP_ICALL(edi); /* 0x2B0491F6: call edi */ 8120 RECOMP_FLAGS_IN(); 8121 PUSH32(esp, 0x2B0493B0u); /* 0x2B0491F8: push 0x2b0493b0 */ 8122 PUSH32(esp, 0x16Fu); /* 0x2B0491FD: push 0x16f */ 8123 RECOMP_ICALL(esi); /* 0x2B049202: call esi */ 8124 RECOMP_FLAGS_IN(); 8125 ecx = eax; /* 0x2B049204: mov ecx, eax */ 8126 RECOMP_ICALL(edi); /* 0x2B049206: call edi */ 8127 RECOMP_FLAGS_IN(); 8128 PUSH32(esp, 0x2B0493D0u); /* 0x2B049208: push 0x2b0493d0 */ 8129 PUSH32(esp, 0x173u); /* 0x2B04920D: push 0x173 */ 8130 RECOMP_ICALL(esi); /* 0x2B049212: call esi */ 8131 RECOMP_FLAGS_IN(); 8132 ecx = eax; /* 0x2B049214: mov ecx, eax */ 8133 RECOMP_ICALL(edi); /* 0x2B049216: call edi */ 8134 RECOMP_FLAGS_IN(); 8135 PUSH32(esp, 0x2B049400u); /* 0x2B049218: push 0x2b049400 */ 8136 PUSH32(esp, 0x174u); /* 0x2B04921D: push 0x174 */ 8137 RECOMP_ICALL(esi); /* 0x2B049222: call esi */ 8138 RECOMP_FLAGS_IN(); 8139 ecx = eax; /* 0x2B049224: mov ecx, eax */ 8140 RECOMP_ICALL(edi); /* 0x2B049226: call edi */ 8141 RECOMP_FLAGS_IN(); 8142 PUSH32(esp, 0x2B049410u); /* 0x2B049228: push 0x2b049410 */ 8143 PUSH32(esp, 0x16Eu); /* 0x2B04922D: push 0x16e */ 8144 RECOMP_ICALL(esi); /* 0x2B049232: call esi */ 8145 RECOMP_FLAGS_IN(); 8146 ecx = eax; /* 0x2B049234: mov ecx, eax */ 8147 RECOMP_ICALL(edi); /* 0x2B049236: call edi */ 8148 RECOMP_FLAGS_IN(); 8149 PUSH32(esp, 0x2B049420u); /* 0x2B049238: push 0x2b049420 */ 8150 PUSH32(esp, 0x175u); /* 0x2B04923D: push 0x175 */ 8151 RECOMP_ICALL(esi); /* 0x2B049242: call esi */ 8152 RECOMP_FLAGS_IN(); 8153 ecx = eax; /* 0x2B049244: mov ecx, eax */ 8154 RECOMP_ICALL(edi); /* 0x2B049246: call edi */ 8155 RECOMP_FLAGS_IN(); 8156 PUSH32(esp, 0x2B049440u); /* 0x2B049248: push 0x2b049440 */ 8157 PUSH32(esp, 0x176u); /* 0x2B04924D: push 0x176 */ 8158 RECOMP_ICALL(esi); /* 0x2B049252: call esi */ 8159 RECOMP_FLAGS_IN(); 8160 ecx = eax; /* 0x2B049254: mov ecx, eax */ 8161 RECOMP_ICALL(edi); /* 0x2B049256: call edi */ 8162 RECOMP_FLAGS_IN(); 8163 PUSH32(esp, 0x2B049490u); /* 0x2B049258: push 0x2b049490 */ 8164 PUSH32(esp, 0x177u); /* 0x2B04925D: push 0x177 */ 8165 RECOMP_ICALL(esi); /* 0x2B049262: call esi */ 8166 RECOMP_FLAGS_IN(); 8167 ecx = eax; /* 0x2B049264: mov ecx, eax */ 8168 RECOMP_ICALL(edi); /* 0x2B049266: call edi */ 8169 RECOMP_FLAGS_IN(); 8170 eax = ebx; /* 0x2B049268: mov eax, ebx */ 8171 edi = POP32_VAL(esp); /* 0x2B04926A: pop edi */ 8172 esi = POP32_VAL(esp); /* 0x2B04926B: pop esi */ 8173 ebx = POP32_VAL(esp); /* 0x2B04926C: pop ebx */ 8174 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04926D: ret */ 8175 RECOMP_REGS_OUT(); 8176 } 8177 8178 void sub_2B049270(void) { 8179 int _fpu_cmp = 0; 8180 uint32_t _cf = 0; 8181 int _df = 1; 8182 uint32_t _flag_k = FK_NONE; 8183 uint32_t _flag_a = 0, _flag_b = 0; 8184 uint32_t _itail_tgt = 0; 8185 RECOMP_REGS_LOCALS 8186 RECOMP_ENTER(0x2B049270u); 8187 8188 L_2B049270: 8189 PUSH32(esp, ebp); /* 0x2B049270: push ebp */ 8190 ebp = esp; /* 0x2B049271: mov ebp, esp */ 8191 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B049273: push -1 */ 8192 PUSH32(esp, 0x2B0AF2EBu); /* 0x2B049275: push 0x2b0af2eb */ 8193 eax = MEM32(FS_BASE + (0)); /* 0x2B04927A: mov eax, dword ptr fs:[0] */ 8194 PUSH32(esp, eax); /* 0x2B049280: push eax */ 8195 MEM32(FS_BASE + (0)) = esp; /* 0x2B049281: mov dword ptr fs:[0], esp */ 8196 PUSH32(esp, ecx); /* 0x2B049288: push ecx */ 8197 PUSH32(esp, 0xB4u); /* 0x2B049289: push 0xb4 */ 8198 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04928E: call 0x2b0ab212 */ /* not lifted */ 8199 RECOMP_FLAGS_IN(); 8200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8202 esp = esp + 4; /* 0x2B049293: add esp, 4 */ 8203 _flag_k = FK_ADD; 8204 MEM32(ebp + (-0x10)) = eax; /* 0x2B049296: mov dword ptr [ebp - 0x10], eax */ 8205 /* test eax, eax */ /* 0x2B049299: test eax, eax */ 8206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8207 _cf = 0; 8208 _flag_k = FK_TEST; 8209 MEM32(ebp + (-0x4)) = 0; /* 0x2B04929B: mov dword ptr [ebp - 4], 0 */ 8210 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0492BE; /* 0x2B0492A2: je 0x2b0492be */ 8211 L_2B0492A4: 8212 ecx = eax; /* 0x2B0492A4: mov ecx, eax */ 8213 RECOMP_ICALL(0x2B0479C0u); /* 0x2B0492A6: call 0x2b0479c0 */ /* not lifted */ 8214 RECOMP_FLAGS_IN(); 8215 MEM32(0x2B0EEAEC) = eax; /* 0x2B0492AB: mov dword ptr [0x2b0eeaec], eax */ 8216 ecx = MEM32(ebp + (-0xC)); /* 0x2B0492B0: mov ecx, dword ptr [ebp - 0xc] */ 8217 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0492B3: mov dword ptr fs:[0], ecx */ 8218 esp = ebp; /* 0x2B0492BA: mov esp, ebp */ 8219 ebp = POP32_VAL(esp); /* 0x2B0492BC: pop ebp */ 8220 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0492BD: ret */ 8221 L_2B0492BE: 8222 ecx = MEM32(ebp + (-0xC)); /* 0x2B0492BE: mov ecx, dword ptr [ebp - 0xc] */ 8223 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8224 eax = 0; /* 0x2B0492C1: xor eax, eax */ 8225 _cf = 0; 8226 _flag_k = FK_TEST; 8227 MEM32(0x2B0EEAEC) = eax; /* 0x2B0492C3: mov dword ptr [0x2b0eeaec], eax */ 8228 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0492C8: mov dword ptr fs:[0], ecx */ 8229 esp = ebp; /* 0x2B0492CF: mov esp, ebp */ 8230 ebp = POP32_VAL(esp); /* 0x2B0492D1: pop ebp */ 8231 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0492D2: ret */ 8232 RECOMP_REGS_OUT(); 8233 } 8234 8235 void sub_2B0492E0(void) { 8236 int _fpu_cmp = 0; 8237 uint32_t _cf = 0; 8238 int _df = 1; 8239 uint32_t _flag_k = FK_NONE; 8240 uint32_t _flag_a = 0, _flag_b = 0; 8241 uint32_t _itail_tgt = 0; 8242 RECOMP_REGS_LOCALS 8243 RECOMP_ENTER(0x2B0492E0u); 8244 8245 L_2B0492E0: 8246 ecx = MEM32(0x2B0EEAEC); /* 0x2B0492E0: mov ecx, dword ptr [0x2b0eeaec] */ 8247 /* test ecx, ecx */ /* 0x2B0492E6: test ecx, ecx */ 8248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8249 _cf = 0; 8250 _flag_k = FK_TEST; 8251 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0492F0; /* 0x2B0492E8: je 0x2b0492f0 */ 8252 L_2B0492EA: 8253 eax = MEM32(ecx); /* 0x2B0492EA: mov eax, dword ptr [ecx] */ 8254 PUSH32(esp, 1); /* 0x2B0492EC: push 1 */ 8255 RECOMP_ICALL(MEM32(eax)); /* 0x2B0492EE: call dword ptr [eax] */ 8256 RECOMP_FLAGS_IN(); 8257 L_2B0492F0: 8258 MEM32(0x2B0EEAEC) = 0; /* 0x2B0492F0: mov dword ptr [0x2b0eeaec], 0 */ 8259 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0492FA: ret */ 8260 RECOMP_REGS_OUT(); 8261 } 8262 8263 void sub_2B049300(void) { 8264 int _fpu_cmp = 0; 8265 uint32_t _cf = 0; 8266 int _df = 1; 8267 uint32_t _flag_k = FK_NONE; 8268 uint32_t _flag_a = 0, _flag_b = 0; 8269 uint32_t _itail_tgt = 0; 8270 RECOMP_REGS_LOCALS 8271 RECOMP_ENTER(0x2B049300u); 8272 8273 L_2B049300: 8274 PUSH32(esp, ebp); /* 0x2B049300: push ebp */ 8275 ebp = esp; /* 0x2B049301: mov ebp, esp */ 8276 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8278 esp = esp - 0x18u; /* 0x2B049303: sub esp, 0x18 */ 8279 _flag_k = FK_CMP; 8280 PUSH32(esp, ebx); /* 0x2B049306: push ebx */ 8281 eax = ebp + (-0x8); /* 0x2B049307: lea eax, [ebp - 8] */ 8282 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8283 ebx = 0; /* 0x2B04930A: xor ebx, ebx */ 8284 _cf = 0; 8285 _flag_k = FK_TEST; 8286 PUSH32(esp, eax); /* 0x2B04930C: push eax */ 8287 ecx = ebp + (-0x10); /* 0x2B04930D: lea ecx, [ebp - 0x10] */ 8288 PUSH32(esp, ecx); /* 0x2B049310: push ecx */ 8289 edx = ebp + (-0x18); /* 0x2B049311: lea edx, [ebp - 0x18] */ 8290 PUSH32(esp, edx); /* 0x2B049314: push edx */ 8291 MEM32(ebp + (-0x18)) = ebx; /* 0x2B049315: mov dword ptr [ebp - 0x18], ebx */ 8292 MEM32(ebp + (-0x14)) = ebx; /* 0x2B049318: mov dword ptr [ebp - 0x14], ebx */ 8293 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04931B: mov dword ptr [ebp - 0x10], ebx */ 8294 MEM32(ebp + (-0xC)) = ebx; /* 0x2B04931E: mov dword ptr [ebp - 0xc], ebx */ 8295 MEM32(ebp + (-0x8)) = ebx; /* 0x2B049321: mov dword ptr [ebp - 8], ebx */ 8296 MEM32(ebp + (-0x4)) = ebx; /* 0x2B049324: mov dword ptr [ebp - 4], ebx */ 8297 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B049327: call dword ptr [0x2b0b53cc] */ 8298 RECOMP_FLAGS_IN(); 8299 ecx = eax; /* 0x2B04932D: mov ecx, eax */ 8300 RECOMP_ICALL(MEM32(0x2B0B535C)); /* 0x2B04932F: call dword ptr [0x2b0b535c] */ 8301 RECOMP_FLAGS_IN(); 8302 eax = ebp + (-0x8); /* 0x2B049335: lea eax, [ebp - 8] */ 8303 PUSH32(esp, eax); /* 0x2B049338: push eax */ 8304 ecx = ebp + (-0x10); /* 0x2B049339: lea ecx, [ebp - 0x10] */ 8305 PUSH32(esp, ecx); /* 0x2B04933C: push ecx */ 8306 ecx = MEM32(0x2B0EEAEC); /* 0x2B04933D: mov ecx, dword ptr [0x2b0eeaec] */ 8307 edx = ebp + (-0x18); /* 0x2B049343: lea edx, [ebp - 0x18] */ 8308 PUSH32(esp, edx); /* 0x2B049346: push edx */ 8309 RECOMP_ICALL(0x2B0485B0u); /* 0x2B049347: call 0x2b0485b0 */ /* not lifted */ 8310 RECOMP_FLAGS_IN(); 8311 /* cmp MEM8(0x2B0EEAF0), LO8(ebx) */ /* 0x2B04934C: cmp byte ptr [0x2b0eeaf0], bl */ 8312 _flag_a = (uint32_t)(MEM8(0x2B0EEAF0)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8314 _flag_k = FK_NARROW(FK_CMP, 24); 8315 ebx = POP32_VAL(esp); /* 0x2B049352: pop ebx */ 8316 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B049371; /* 0x2B049353: je 0x2b049371 */ 8317 L_2B049355: 8318 eax = MEM32(0x2B0EEAEC); /* 0x2B049355: mov eax, dword ptr [0x2b0eeaec] */ 8319 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Cu); 8320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8321 eax = eax + 0x6Cu; /* 0x2B04935A: add eax, 0x6c */ 8322 _flag_k = FK_ADD; 8323 PUSH32(esp, 0x2B0EEAE0u); /* 0x2B04935D: push 0x2b0eeae0 */ 8324 PUSH32(esp, eax); /* 0x2B049362: push eax */ 8325 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B049363: call dword ptr [0x2b0b5d6c] */ 8326 RECOMP_FLAGS_IN(); 8327 ecx = eax; /* 0x2B049369: mov ecx, eax */ 8328 RECOMP_ICALL(MEM32(0x2B0B5E6C)); /* 0x2B04936B: call dword ptr [0x2b0b5e6c] */ 8329 RECOMP_FLAGS_IN(); 8330 L_2B049371: 8331 esp = ebp; /* 0x2B049371: mov esp, ebp */ 8332 ebp = POP32_VAL(esp); /* 0x2B049373: pop ebp */ 8333 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B049374: ret */ 8334 RECOMP_REGS_OUT(); 8335 } 8336 8337 void sub_2B049380(void) { 8338 int _fpu_cmp = 0; 8339 uint32_t _cf = 0; 8340 int _df = 1; 8341 uint32_t _flag_k = FK_NONE; 8342 uint32_t _flag_a = 0, _flag_b = 0; 8343 uint32_t _itail_tgt = 0; 8344 RECOMP_REGS_LOCALS 8345 RECOMP_ENTER(0x2B049380u); 8346 8347 goto L_2B049380; 8348 L_2B048F50: 8349 PUSH32(esp, ebp); /* 0x2B048F50: push ebp */ 8350 ebp = esp; /* 0x2B048F51: mov ebp, esp */ 8351 PUSH32(esp, ecx); /* 0x2B048F53: push ecx */ 8352 PUSH32(esp, ebx); /* 0x2B048F54: push ebx */ 8353 PUSH32(esp, esi); /* 0x2B048F55: push esi */ 8354 esi = ecx; /* 0x2B048F56: mov esi, ecx */ 8355 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B048F58: mov al, byte ptr [esi + 0x4c] */ 8356 /* test LO8(eax), LO8(eax) */ /* 0x2B048F5B: test al, al */ 8357 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8358 _cf = 0; 8359 _flag_k = FK_NARROW(FK_TEST, 24); 8360 PUSH32(esp, edi); /* 0x2B048F5D: push edi */ 8361 if (TEST_Z(_flag_a, _flag_b)) goto L_2B049069; /* 0x2B048F5E: je 0x2b049069 */ 8362 L_2B048F64: 8363 ecx = MEM32(esi + 0x54); /* 0x2B048F64: mov ecx, dword ptr [esi + 0x54] */ 8364 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B048F67: call dword ptr [0x2b0b58cc] */ 8365 RECOMP_FLAGS_IN(); 8366 ebx = esi + 0x64; /* 0x2B048F6D: lea ebx, [esi + 0x64] */ 8367 PUSH32(esp, ebx); /* 0x2B048F70: push ebx */ 8368 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048F71: call dword ptr [0x2b0b5d6c] */ 8369 RECOMP_FLAGS_IN(); 8370 ecx = eax; /* 0x2B048F77: mov ecx, eax */ 8371 RECOMP_ICALL(MEM32(0x2B0B5E60)); /* 0x2B048F79: call dword ptr [0x2b0b5e60] */ 8372 RECOMP_FLAGS_IN(); 8373 /* test eax, eax */ /* 0x2B048F7F: test eax, eax */ 8374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8375 _cf = 0; 8376 _flag_k = FK_TEST; 8377 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048FA9; /* 0x2B048F81: je 0x2b048fa9 */ 8378 L_2B048F83: 8379 ecx = MEM32(eax + 0x8); /* 0x2B048F83: mov ecx, dword ptr [eax + 8] */ 8380 /* test ecx, ecx */ /* 0x2B048F86: test ecx, ecx */ 8381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8382 _cf = 0; 8383 _flag_k = FK_TEST; 8384 eax = MEM32(eax + 0x4); /* 0x2B048F88: mov eax, dword ptr [eax + 4] */ 8385 edi = MEM32(eax); /* 0x2B048F8B: mov edi, dword ptr [eax] */ 8386 if (TEST_LE(_flag_a, _flag_b)) goto L_2B048FA9; /* 0x2B048F8D: jle 0x2b048fa9 */ 8387 L_2B048F8F: 8388 MEM32(ebp + (-0x4)) = ecx; /* 0x2B048F8F: mov dword ptr [ebp - 4], ecx */ 8389 L_2B048F92: 8390 ecx = edi + 0x8; /* 0x2B048F92: lea ecx, [edi + 8] */ 8391 PUSH32(esp, ecx); /* 0x2B048F95: push ecx */ 8392 PUSH32(esp, ebx); /* 0x2B048F96: push ebx */ 8393 ecx = esi; /* 0x2B048F97: mov ecx, esi */ 8394 RECOMP_ICALL(0x2B048A20u); /* 0x2B048F99: call 0x2b048a20 */ /* not lifted */ 8395 RECOMP_FLAGS_IN(); 8396 eax = MEM32(ebp + (-0x4)); /* 0x2B048F9E: mov eax, dword ptr [ebp - 4] */ 8397 edi = MEM32(edi); /* 0x2B048FA1: mov edi, dword ptr [edi] */ 8398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8399 eax = eax - 1; /* 0x2B048FA3: dec eax */ 8400 _flag_k = FK_DEC; 8401 MEM32(ebp + (-0x4)) = eax; /* 0x2B048FA4: mov dword ptr [ebp - 4], eax */ 8402 RECOMP_BACKEDGE(); 8403 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B048F92; /* 0x2B048FA7: jne 0x2b048f92 */ 8404 L_2B048FA9: 8405 ecx = MEM32(esi + 0x54); /* 0x2B048FA9: mov ecx, dword ptr [esi + 0x54] */ 8406 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B048FAC: call dword ptr [0x2b0b58d4] */ 8407 RECOMP_FLAGS_IN(); 8408 ecx = MEM32(esi + 0x58); /* 0x2B048FB2: mov ecx, dword ptr [esi + 0x58] */ 8409 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B048FB5: call dword ptr [0x2b0b58cc] */ 8410 RECOMP_FLAGS_IN(); 8411 ebx = esi + 0x6C; /* 0x2B048FBB: lea ebx, [esi + 0x6c] */ 8412 PUSH32(esp, ebx); /* 0x2B048FBE: push ebx */ 8413 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048FBF: call dword ptr [0x2b0b5d6c] */ 8414 RECOMP_FLAGS_IN(); 8415 ecx = eax; /* 0x2B048FC5: mov ecx, eax */ 8416 RECOMP_ICALL(MEM32(0x2B0B5E60)); /* 0x2B048FC7: call dword ptr [0x2b0b5e60] */ 8417 RECOMP_FLAGS_IN(); 8418 /* test eax, eax */ /* 0x2B048FCD: test eax, eax */ 8419 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8420 _cf = 0; 8421 _flag_k = FK_TEST; 8422 if (TEST_Z(_flag_a, _flag_b)) goto L_2B049069; /* 0x2B048FCF: je 0x2b049069 */ 8423 L_2B048FD5: 8424 ecx = MEM32(eax + 0x8); /* 0x2B048FD5: mov ecx, dword ptr [eax + 8] */ 8425 /* test ecx, ecx */ /* 0x2B048FD8: test ecx, ecx */ 8426 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8427 _cf = 0; 8428 _flag_k = FK_TEST; 8429 edx = MEM32(eax + 0x4); /* 0x2B048FDA: mov edx, dword ptr [eax + 4] */ 8430 edi = MEM32(edx); /* 0x2B048FDD: mov edi, dword ptr [edx] */ 8431 if (TEST_LE(_flag_a, _flag_b)) goto L_2B048FFB; /* 0x2B048FDF: jle 0x2b048ffb */ 8432 L_2B048FE1: 8433 MEM32(ebp + (-0x4)) = ecx; /* 0x2B048FE1: mov dword ptr [ebp - 4], ecx */ 8434 L_2B048FE4: 8435 eax = edi + 0x8; /* 0x2B048FE4: lea eax, [edi + 8] */ 8436 PUSH32(esp, eax); /* 0x2B048FE7: push eax */ 8437 PUSH32(esp, ebx); /* 0x2B048FE8: push ebx */ 8438 ecx = esi; /* 0x2B048FE9: mov ecx, esi */ 8439 RECOMP_ICALL(0x2B048A20u); /* 0x2B048FEB: call 0x2b048a20 */ /* not lifted */ 8440 RECOMP_FLAGS_IN(); 8441 eax = MEM32(ebp + (-0x4)); /* 0x2B048FF0: mov eax, dword ptr [ebp - 4] */ 8442 edi = MEM32(edi); /* 0x2B048FF3: mov edi, dword ptr [edi] */ 8443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8444 eax = eax - 1; /* 0x2B048FF5: dec eax */ 8445 _flag_k = FK_DEC; 8446 MEM32(ebp + (-0x4)) = eax; /* 0x2B048FF6: mov dword ptr [ebp - 4], eax */ 8447 RECOMP_BACKEDGE(); 8448 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B048FE4; /* 0x2B048FF9: jne 0x2b048fe4 */ 8449 L_2B048FFB: 8450 ecx = MEM32(esi + 0x58); /* 0x2B048FFB: mov ecx, dword ptr [esi + 0x58] */ 8451 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B048FFE: call dword ptr [0x2b0b58d4] */ 8452 RECOMP_FLAGS_IN(); 8453 /* cmp MEM32(esi + 0x48), 1 */ /* 0x2B049004: cmp dword ptr [esi + 0x48], 1 */ 8454 _flag_a = (uint32_t)(MEM32(esi + 0x48)); _flag_b = (uint32_t)(1); 8455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8456 _flag_k = FK_CMP; 8457 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04905B; /* 0x2B049008: jne 0x2b04905b */ 8458 L_2B04900A: 8459 ecx = MEM32(esi + 0x50); /* 0x2B04900A: mov ecx, dword ptr [esi + 0x50] */ 8460 edx = MEM32(ecx); /* 0x2B04900D: mov edx, dword ptr [ecx] */ 8461 eax = MEM32(edx + 0x8); /* 0x2B04900F: mov eax, dword ptr [edx + 8] */ 8462 /* test eax, eax */ /* 0x2B049012: test eax, eax */ 8463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8464 _cf = 0; 8465 _flag_k = FK_TEST; 8466 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04905B; /* 0x2B049014: jne 0x2b04905b */ 8467 L_2B049016: 8468 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B049016: call dword ptr [0x2b0b58cc] */ 8469 RECOMP_FLAGS_IN(); 8470 eax = esi + 0x64; /* 0x2B04901C: lea eax, [esi + 0x64] */ 8471 PUSH32(esp, eax); /* 0x2B04901F: push eax */ 8472 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B049020: call dword ptr [0x2b0b5d6c] */ 8473 RECOMP_FLAGS_IN(); 8474 ecx = eax; /* 0x2B049026: mov ecx, eax */ 8475 RECOMP_ICALL(MEM32(0x2B0B5E98)); /* 0x2B049028: call dword ptr [0x2b0b5e98] */ 8476 RECOMP_FLAGS_IN(); 8477 /* test eax, eax */ /* 0x2B04902E: test eax, eax */ 8478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8479 _cf = 0; 8480 _flag_k = FK_TEST; 8481 if (TEST_Z(_flag_a, _flag_b)) goto L_2B049069; /* 0x2B049030: je 0x2b049069 */ 8482 L_2B049032: 8483 ebx = MEM32(eax + 0x8); /* 0x2B049032: mov ebx, dword ptr [eax + 8] */ 8484 /* test ebx, ebx */ /* 0x2B049035: test ebx, ebx */ 8485 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8486 _cf = 0; 8487 _flag_k = FK_TEST; 8488 eax = MEM32(eax + 0x4); /* 0x2B049037: mov eax, dword ptr [eax + 4] */ 8489 edi = MEM32(eax); /* 0x2B04903A: mov edi, dword ptr [eax] */ 8490 if (TEST_LE(_flag_a, _flag_b)) goto L_2B049052; /* 0x2B04903C: jle 0x2b049052 */ 8491 L_2B04903E: 8492 ecx = edi + 0x8; /* 0x2B04903E: lea ecx, [edi + 8] */ 8493 PUSH32(esp, ecx); /* 0x2B049041: push ecx */ 8494 eax = esi + 0x5C; /* 0x2B049042: lea eax, [esi + 0x5c] */ 8495 PUSH32(esp, eax); /* 0x2B049045: push eax */ 8496 ecx = esi; /* 0x2B049046: mov ecx, esi */ 8497 RECOMP_ICALL(0x2B048A20u); /* 0x2B049048: call 0x2b048a20 */ /* not lifted */ 8498 RECOMP_FLAGS_IN(); 8499 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 8500 ebx = ebx - 1; /* 0x2B04904D: dec ebx */ 8501 _flag_k = FK_DEC; 8502 edi = MEM32(edi); /* 0x2B04904E: mov edi, dword ptr [edi] */ 8503 RECOMP_BACKEDGE(); 8504 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04903E; /* 0x2B049050: jne 0x2b04903e */ 8505 L_2B049052: 8506 ecx = MEM32(esi + 0x50); /* 0x2B049052: mov ecx, dword ptr [esi + 0x50] */ 8507 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B049055: call dword ptr [0x2b0b58d4] */ 8508 RECOMP_FLAGS_IN(); 8509 L_2B04905B: 8510 ecx = esi; /* 0x2B04905B: mov ecx, esi */ 8511 RECOMP_ICALL(0x2B048D50u); /* 0x2B04905D: call 0x2b048d50 */ /* not lifted */ 8512 RECOMP_FLAGS_IN(); 8513 ecx = esi; /* 0x2B049062: mov ecx, esi */ 8514 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B049064: call 0x2b03a2b0 */ /* not lifted */ 8515 RECOMP_FLAGS_IN(); 8516 L_2B049069: 8517 edi = POP32_VAL(esp); /* 0x2B049069: pop edi */ 8518 esi = POP32_VAL(esp); /* 0x2B04906A: pop esi */ 8519 ebx = POP32_VAL(esp); /* 0x2B04906B: pop ebx */ 8520 esp = ebp; /* 0x2B04906C: mov esp, ebp */ 8521 ebp = POP32_VAL(esp); /* 0x2B04906E: pop ebp */ 8522 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04906F: ret */ 8523 L_2B049380: 8524 ecx = MEM32(0x2B0EEAEC); /* 0x2B049380: mov ecx, dword ptr [0x2b0eeaec] */ 8525 RECOMP_BACKEDGE(); 8526 goto L_2B048F50; /* 0x2B049386: jmp 0x2b048f50 */ 8527 { RECOMP_REGS_OUT(); return; } /* end of function */ 8528 RECOMP_REGS_OUT(); 8529 } 8530 8531 void sub_2B049390(void) { 8532 int _fpu_cmp = 0; 8533 uint32_t _cf = 0; 8534 int _df = 1; 8535 uint32_t _flag_k = FK_NONE; 8536 uint32_t _flag_a = 0, _flag_b = 0; 8537 uint32_t _itail_tgt = 0; 8538 RECOMP_REGS_LOCALS 8539 RECOMP_ENTER(0x2B049390u); 8540 8541 goto L_2B049390; 8542 L_2B048B40: 8543 PUSH32(esp, ebp); /* 0x2B048B40: push ebp */ 8544 ebp = esp; /* 0x2B048B41: mov ebp, esp */ 8545 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8547 esp = esp - 0x10u; /* 0x2B048B43: sub esp, 0x10 */ 8548 _flag_k = FK_CMP; 8549 PUSH32(esp, esi); /* 0x2B048B46: push esi */ 8550 esi = ecx; /* 0x2B048B47: mov esi, ecx */ 8551 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x2B048B49: mov al, byte ptr [esi + 0x4c] */ 8552 /* test LO8(eax), LO8(eax) */ /* 0x2B048B4C: test al, al */ 8553 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8554 _cf = 0; 8555 _flag_k = FK_NARROW(FK_TEST, 24); 8556 PUSH32(esp, edi); /* 0x2B048B4E: push edi */ 8557 if (TEST_Z(_flag_a, _flag_b)) goto L_2B048C39; /* 0x2B048B4F: je 0x2b048c39 */ 8558 L_2B048B55: 8559 eax = ebp + (-0x8); /* 0x2B048B55: lea eax, [ebp - 8] */ 8560 PUSH32(esp, eax); /* 0x2B048B58: push eax */ 8561 MEM32(ebp + (-0x8)) = 0; /* 0x2B048B59: mov dword ptr [ebp - 8], 0 */ 8562 MEM32(ebp + (-0x4)) = 0; /* 0x2B048B60: mov dword ptr [ebp - 4], 0 */ 8563 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B048B67: call dword ptr [0x2b0b53cc] */ 8564 RECOMP_FLAGS_IN(); 8565 ecx = eax; /* 0x2B048B6D: mov ecx, eax */ 8566 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B048B6F: call dword ptr [0x2b0b53ac] */ 8567 RECOMP_FLAGS_IN(); 8568 RECOMP_ICALL(MEM32(0x2B0B596C)); /* 0x2B048B75: call dword ptr [0x2b0b596c] */ 8569 RECOMP_FLAGS_IN(); 8570 ecx = MEM32(eax + 0x14); /* 0x2B048B7B: mov ecx, dword ptr [eax + 0x14] */ 8571 edi = MEM32(eax + 0x18); /* 0x2B048B7E: mov edi, dword ptr [eax + 0x18] */ 8572 MEM32(ebp + (-0x10)) = ecx; /* 0x2B048B81: mov dword ptr [ebp - 0x10], ecx */ 8573 RECOMP_ICALL(MEM32(0x2B0B596C)); /* 0x2B048B84: call dword ptr [0x2b0b596c] */ 8574 RECOMP_FLAGS_IN(); 8575 ecx = MEM32(esi + 0x48); /* 0x2B048B8A: mov ecx, dword ptr [esi + 0x48] */ 8576 /* test ecx, ecx */ /* 0x2B048B8D: test ecx, ecx */ 8577 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8578 _cf = 0; 8579 _flag_k = FK_TEST; 8580 eax = MEM32(eax + 0x24); /* 0x2B048B8F: mov eax, dword ptr [eax + 0x24] */ 8581 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B048B9F; /* 0x2B048B92: jne 0x2b048b9f */ 8582 L_2B048B94: 8583 /* cmp eax, 0x36u */ /* 0x2B048B94: cmp eax, 0x36 */ 8584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x36u); 8585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8586 _flag_k = FK_CMP; 8587 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B048C32; /* 0x2B048B97: je 0x2b048c32 */ 8588 L_2B048B9D: 8589 goto L_2B048C16; /* 0x2B048B9D: jmp 0x2b048c16 */ 8590 L_2B048B9F: 8591 /* cmp eax, 0x34u */ /* 0x2B048B9F: cmp eax, 0x34 */ 8592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x34u); 8593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8594 _flag_k = FK_CMP; 8595 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048BD8; /* 0x2B048BA2: jne 0x2b048bd8 */ 8596 L_2B048BA4: 8597 edx = MEM32(esi + 0x40); /* 0x2B048BA4: mov edx, dword ptr [esi + 0x40] */ 8598 eax = MEM32(esi + 0x44); /* 0x2B048BA7: mov eax, dword ptr [esi + 0x44] */ 8599 ecx = MEM32(esi + 0x3C); /* 0x2B048BAA: mov ecx, dword ptr [esi + 0x3c] */ 8600 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8602 eax = eax - edx; /* 0x2B048BAD: sub eax, edx */ 8603 _flag_k = FK_CMP; 8604 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8606 eax = eax - ecx; /* 0x2B048BAF: sub eax, ecx */ 8607 _flag_k = FK_CMP; 8608 ecx = MEM32(esi + 0x8); /* 0x2B048BB1: mov ecx, dword ptr [esi + 8] */ 8609 edx = eax + ecx + 0x14; /* 0x2B048BB4: lea edx, [eax + ecx + 0x14] */ 8610 /* cmp edi, edx */ /* 0x2B048BB8: cmp edi, edx */ 8611 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 8612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8613 _flag_k = FK_CMP; 8614 if (CMP_LE(_flag_a, _flag_b)) goto L_2B048C32; /* 0x2B048BBA: jle 0x2b048c32 */ 8615 L_2B048BBC: 8616 eax = ebp + (-0x8); /* 0x2B048BBC: lea eax, [ebp - 8] */ 8617 PUSH32(esp, eax); /* 0x2B048BBF: push eax */ 8618 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x64u); 8619 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8620 esi = esi + 0x64u; /* 0x2B048BC0: add esi, 0x64 */ 8621 _flag_k = FK_ADD; 8622 PUSH32(esp, esi); /* 0x2B048BC3: push esi */ 8623 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048BC4: call dword ptr [0x2b0b5d6c] */ 8624 RECOMP_FLAGS_IN(); 8625 ecx = eax; /* 0x2B048BCA: mov ecx, eax */ 8626 RECOMP_ICALL(MEM32(0x2B0B5E6C)); /* 0x2B048BCC: call dword ptr [0x2b0b5e6c] */ 8627 RECOMP_FLAGS_IN(); 8628 edi = POP32_VAL(esp); /* 0x2B048BD2: pop edi */ 8629 esi = POP32_VAL(esp); /* 0x2B048BD3: pop esi */ 8630 esp = ebp; /* 0x2B048BD4: mov esp, ebp */ 8631 ebp = POP32_VAL(esp); /* 0x2B048BD6: pop ebp */ 8632 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048BD7: ret */ 8633 L_2B048BD8: 8634 /* cmp eax, 0x35u */ /* 0x2B048BD8: cmp eax, 0x35 */ 8635 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x35u); 8636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8637 _flag_k = FK_CMP; 8638 if (CMP_NE(_flag_a, _flag_b)) goto L_2B048C11; /* 0x2B048BDB: jne 0x2b048c11 */ 8639 L_2B048BDD: 8640 eax = MEM32(esi + 0x40); /* 0x2B048BDD: mov eax, dword ptr [esi + 0x40] */ 8641 ecx = MEM32(esi + 0x44); /* 0x2B048BE0: mov ecx, dword ptr [esi + 0x44] */ 8642 edx = MEM32(esi + 0x3C); /* 0x2B048BE3: mov edx, dword ptr [esi + 0x3c] */ 8643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8645 ecx = ecx - eax; /* 0x2B048BE6: sub ecx, eax */ 8646 _flag_k = FK_CMP; 8647 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8649 ecx = ecx - edx; /* 0x2B048BE8: sub ecx, edx */ 8650 _flag_k = FK_CMP; 8651 edx = MEM32(esi + 0x8); /* 0x2B048BEA: mov edx, dword ptr [esi + 8] */ 8652 eax = ecx + edx + 0x14; /* 0x2B048BED: lea eax, [ecx + edx + 0x14] */ 8653 /* cmp edi, eax */ /* 0x2B048BF1: cmp edi, eax */ 8654 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8656 _flag_k = FK_CMP; 8657 if (CMP_GE(_flag_a, _flag_b)) goto L_2B048C32; /* 0x2B048BF3: jge 0x2b048c32 */ 8658 L_2B048BF5: 8659 ecx = ebp + (-0x8); /* 0x2B048BF5: lea ecx, [ebp - 8] */ 8660 PUSH32(esp, ecx); /* 0x2B048BF8: push ecx */ 8661 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x64u); 8662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8663 esi = esi + 0x64u; /* 0x2B048BF9: add esi, 0x64 */ 8664 _flag_k = FK_ADD; 8665 PUSH32(esp, esi); /* 0x2B048BFC: push esi */ 8666 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048BFD: call dword ptr [0x2b0b5d6c] */ 8667 RECOMP_FLAGS_IN(); 8668 ecx = eax; /* 0x2B048C03: mov ecx, eax */ 8669 RECOMP_ICALL(MEM32(0x2B0B5E70)); /* 0x2B048C05: call dword ptr [0x2b0b5e70] */ 8670 RECOMP_FLAGS_IN(); 8671 edi = POP32_VAL(esp); /* 0x2B048C0B: pop edi */ 8672 esi = POP32_VAL(esp); /* 0x2B048C0C: pop esi */ 8673 esp = ebp; /* 0x2B048C0D: mov esp, ebp */ 8674 ebp = POP32_VAL(esp); /* 0x2B048C0F: pop ebp */ 8675 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048C10: ret */ 8676 L_2B048C11: 8677 /* cmp eax, 0x36u */ /* 0x2B048C11: cmp eax, 0x36 */ 8678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x36u); 8679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8680 _flag_k = FK_CMP; 8681 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B048C32; /* 0x2B048C14: je 0x2b048c32 */ 8682 L_2B048C16: 8683 edx = ebp + (-0x8); /* 0x2B048C16: lea edx, [ebp - 8] */ 8684 PUSH32(esp, edx); /* 0x2B048C19: push edx */ 8685 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x6Cu); 8686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8687 esi = esi + 0x6Cu; /* 0x2B048C1A: add esi, 0x6c */ 8688 _flag_k = FK_ADD; 8689 PUSH32(esp, esi); /* 0x2B048C1D: push esi */ 8690 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B048C1E: call dword ptr [0x2b0b5d6c] */ 8691 RECOMP_FLAGS_IN(); 8692 ecx = eax; /* 0x2B048C24: mov ecx, eax */ 8693 RECOMP_ICALL(MEM32(0x2B0B5E6C)); /* 0x2B048C26: call dword ptr [0x2b0b5e6c] */ 8694 RECOMP_FLAGS_IN(); 8695 edi = POP32_VAL(esp); /* 0x2B048C2C: pop edi */ 8696 esi = POP32_VAL(esp); /* 0x2B048C2D: pop esi */ 8697 esp = ebp; /* 0x2B048C2E: mov esp, ebp */ 8698 ebp = POP32_VAL(esp); /* 0x2B048C30: pop ebp */ 8699 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048C31: ret */ 8700 L_2B048C32: 8701 ecx = esi; /* 0x2B048C32: mov ecx, esi */ 8702 RECOMP_ICALL(0x2B048F50u); /* 0x2B048C34: call 0x2b048f50 */ /* not lifted */ 8703 RECOMP_FLAGS_IN(); 8704 L_2B048C39: 8705 edi = POP32_VAL(esp); /* 0x2B048C39: pop edi */ 8706 esi = POP32_VAL(esp); /* 0x2B048C3A: pop esi */ 8707 esp = ebp; /* 0x2B048C3B: mov esp, ebp */ 8708 ebp = POP32_VAL(esp); /* 0x2B048C3D: pop ebp */ 8709 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B048C3E: ret */ 8710 L_2B049390: 8711 ecx = MEM32(0x2B0EEAEC); /* 0x2B049390: mov ecx, dword ptr [0x2b0eeaec] */ 8712 RECOMP_BACKEDGE(); 8713 goto L_2B048B40; /* 0x2B049396: jmp 0x2b048b40 */ 8714 { RECOMP_REGS_OUT(); return; } /* end of function */ 8715 RECOMP_REGS_OUT(); 8716 }