client/game/ddr.dll/lifted-0022.c (385777B)
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_2B055370(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(0x2B055370u); 17 18 L_2B055370: 19 PUSH32(esp, ebp); /* 0x2B055370: push ebp */ 20 ebp = esp; /* 0x2B055371: mov ebp, esp */ 21 eax = MEM32(ebp + 0x8); /* 0x2B055373: mov eax, dword ptr [ebp + 8] */ 22 ecx = MEM32(0x2B0EEB08); /* 0x2B055376: mov ecx, dword ptr [0x2b0eeb08] */ 23 PUSH32(esp, eax); /* 0x2B05537C: push eax */ 24 RECOMP_ICALL(0x2B050350u); /* 0x2B05537D: call 0x2b050350 */ /* not lifted */ 25 RECOMP_FLAGS_IN(); 26 ebp = POP32_VAL(esp); /* 0x2B055382: pop ebp */ 27 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B055383: ret 4 */ 28 RECOMP_REGS_OUT(); 29 } 30 31 void sub_2B055390(void) { 32 int _fpu_cmp = 0; 33 uint32_t _cf = 0; 34 int _df = 1; 35 uint32_t _flag_k = FK_NONE; 36 uint32_t _flag_a = 0, _flag_b = 0; 37 uint32_t _itail_tgt = 0; 38 RECOMP_REGS_LOCALS 39 RECOMP_ENTER(0x2B055390u); 40 41 L_2B055390: 42 PUSH32(esp, ebp); /* 0x2B055390: push ebp */ 43 ebp = esp; /* 0x2B055391: mov ebp, esp */ 44 eax = MEM32(ebp + 0x8); /* 0x2B055393: mov eax, dword ptr [ebp + 8] */ 45 ecx = MEM32(0x2B0EEB08); /* 0x2B055396: mov ecx, dword ptr [0x2b0eeb08] */ 46 PUSH32(esp, eax); /* 0x2B05539C: push eax */ 47 RECOMP_ICALL(0x2B050590u); /* 0x2B05539D: call 0x2b050590 */ /* not lifted */ 48 RECOMP_FLAGS_IN(); 49 ebp = POP32_VAL(esp); /* 0x2B0553A2: pop ebp */ 50 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0553A3: ret 4 */ 51 RECOMP_REGS_OUT(); 52 } 53 54 void sub_2B0553B0(void) { 55 int _fpu_cmp = 0; 56 uint32_t _cf = 0; 57 int _df = 1; 58 uint32_t _flag_k = FK_NONE; 59 uint32_t _flag_a = 0, _flag_b = 0; 60 uint32_t _itail_tgt = 0; 61 RECOMP_REGS_LOCALS 62 RECOMP_ENTER(0x2B0553B0u); 63 64 L_2B0553B0: 65 PUSH32(esp, ebp); /* 0x2B0553B0: push ebp */ 66 ebp = esp; /* 0x2B0553B1: mov ebp, esp */ 67 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 68 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 69 esp = esp - 8; /* 0x2B0553B3: sub esp, 8 */ 70 _flag_k = FK_CMP; 71 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 72 eax = 0; /* 0x2B0553B6: xor eax, eax */ 73 _cf = 0; 74 _flag_k = FK_TEST; 75 MEM32(ebp + (-0x8)) = eax; /* 0x2B0553B8: mov dword ptr [ebp - 8], eax */ 76 MEM32(ebp + (-0x4)) = eax; /* 0x2B0553BB: mov dword ptr [ebp - 4], eax */ 77 eax = ebp + (-0x8); /* 0x2B0553BE: lea eax, [ebp - 8] */ 78 PUSH32(esp, eax); /* 0x2B0553C1: push eax */ 79 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0553C2: call dword ptr [0x2b0b53cc] */ 80 RECOMP_FLAGS_IN(); 81 ecx = eax; /* 0x2B0553C8: mov ecx, eax */ 82 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B0553CA: call dword ptr [0x2b0b53ac] */ 83 RECOMP_FLAGS_IN(); 84 ecx = MEM32(ebp + (-0x4)); /* 0x2B0553D0: mov ecx, dword ptr [ebp - 4] */ 85 PUSH32(esp, ecx); /* 0x2B0553D3: push ecx */ 86 RECOMP_ICALL(0x2B016630u); /* 0x2B0553D4: call 0x2b016630 */ /* not lifted */ 87 RECOMP_FLAGS_IN(); 88 ecx = eax; /* 0x2B0553D9: mov ecx, eax */ 89 RECOMP_ICALL(0x2B016DB0u); /* 0x2B0553DB: call 0x2b016db0 */ /* not lifted */ 90 RECOMP_FLAGS_IN(); 91 esp = ebp; /* 0x2B0553E0: mov esp, ebp */ 92 ebp = POP32_VAL(esp); /* 0x2B0553E2: pop ebp */ 93 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0553E3: ret */ 94 RECOMP_REGS_OUT(); 95 } 96 97 void sub_2B0553F0(void) { 98 int _fpu_cmp = 0; 99 uint32_t _cf = 0; 100 int _df = 1; 101 uint32_t _flag_k = FK_NONE; 102 uint32_t _flag_a = 0, _flag_b = 0; 103 uint32_t _itail_tgt = 0; 104 RECOMP_REGS_LOCALS 105 RECOMP_ENTER(0x2B0553F0u); 106 107 L_2B0553F0: 108 PUSH32(esp, ebp); /* 0x2B0553F0: push ebp */ 109 ebp = esp; /* 0x2B0553F1: mov ebp, esp */ 110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 112 esp = esp - 8; /* 0x2B0553F3: sub esp, 8 */ 113 _flag_k = FK_CMP; 114 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 115 eax = 0; /* 0x2B0553F6: xor eax, eax */ 116 _cf = 0; 117 _flag_k = FK_TEST; 118 MEM32(ebp + (-0x8)) = eax; /* 0x2B0553F8: mov dword ptr [ebp - 8], eax */ 119 MEM32(ebp + (-0x4)) = eax; /* 0x2B0553FB: mov dword ptr [ebp - 4], eax */ 120 eax = ebp + (-0x8); /* 0x2B0553FE: lea eax, [ebp - 8] */ 121 PUSH32(esp, eax); /* 0x2B055401: push eax */ 122 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B055402: call dword ptr [0x2b0b53cc] */ 123 RECOMP_FLAGS_IN(); 124 ecx = eax; /* 0x2B055408: mov ecx, eax */ 125 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B05540A: call dword ptr [0x2b0b53ac] */ 126 RECOMP_FLAGS_IN(); 127 ecx = MEM32(ebp + (-0x4)); /* 0x2B055410: mov ecx, dword ptr [ebp - 4] */ 128 PUSH32(esp, ecx); /* 0x2B055413: push ecx */ 129 ecx = MEM32(0x2B0EEB08); /* 0x2B055414: mov ecx, dword ptr [0x2b0eeb08] */ 130 RECOMP_ICALL(0x2B051280u); /* 0x2B05541A: call 0x2b051280 */ /* not lifted */ 131 RECOMP_FLAGS_IN(); 132 esp = ebp; /* 0x2B05541F: mov esp, ebp */ 133 ebp = POP32_VAL(esp); /* 0x2B055421: pop ebp */ 134 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B055422: ret */ 135 RECOMP_REGS_OUT(); 136 } 137 138 void sub_2B055430(void) { 139 int _fpu_cmp = 0; 140 uint32_t _cf = 0; 141 int _df = 1; 142 uint32_t _flag_k = FK_NONE; 143 uint32_t _flag_a = 0, _flag_b = 0; 144 uint32_t _itail_tgt = 0; 145 RECOMP_REGS_LOCALS 146 RECOMP_ENTER(0x2B055430u); 147 148 L_2B055430: 149 PUSH32(esp, ebp); /* 0x2B055430: push ebp */ 150 ebp = esp; /* 0x2B055431: mov ebp, esp */ 151 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 153 esp = esp - 8; /* 0x2B055433: sub esp, 8 */ 154 _flag_k = FK_CMP; 155 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 156 eax = 0; /* 0x2B055436: xor eax, eax */ 157 _cf = 0; 158 _flag_k = FK_TEST; 159 MEM32(ebp + (-0x8)) = eax; /* 0x2B055438: mov dword ptr [ebp - 8], eax */ 160 MEM32(ebp + (-0x4)) = eax; /* 0x2B05543B: mov dword ptr [ebp - 4], eax */ 161 eax = ebp + (-0x8); /* 0x2B05543E: lea eax, [ebp - 8] */ 162 PUSH32(esp, eax); /* 0x2B055441: push eax */ 163 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B055442: call dword ptr [0x2b0b53cc] */ 164 RECOMP_FLAGS_IN(); 165 ecx = eax; /* 0x2B055448: mov ecx, eax */ 166 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B05544A: call dword ptr [0x2b0b53ac] */ 167 RECOMP_FLAGS_IN(); 168 ecx = ebp + (-0x8); /* 0x2B055450: lea ecx, [ebp - 8] */ 169 PUSH32(esp, ecx); /* 0x2B055453: push ecx */ 170 ecx = MEM32(0x2B0EEB08); /* 0x2B055454: mov ecx, dword ptr [0x2b0eeb08] */ 171 RECOMP_ICALL(0x2B0506D0u); /* 0x2B05545A: call 0x2b0506d0 */ /* not lifted */ 172 RECOMP_FLAGS_IN(); 173 esp = ebp; /* 0x2B05545F: mov esp, ebp */ 174 ebp = POP32_VAL(esp); /* 0x2B055461: pop ebp */ 175 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B055462: ret */ 176 RECOMP_REGS_OUT(); 177 } 178 179 void sub_2B055470(void) { 180 int _fpu_cmp = 0; 181 uint32_t _cf = 0; 182 int _df = 1; 183 uint32_t _flag_k = FK_NONE; 184 uint32_t _flag_a = 0, _flag_b = 0; 185 uint32_t _itail_tgt = 0; 186 RECOMP_REGS_LOCALS 187 RECOMP_ENTER(0x2B055470u); 188 189 goto L_2B055470; 190 L_2B050760: 191 PUSH32(esp, ebp); /* 0x2B050760: push ebp */ 192 ebp = esp; /* 0x2B050761: mov ebp, esp */ 193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 195 esp = esp - 0x14u; /* 0x2B050763: sub esp, 0x14 */ 196 _flag_k = FK_CMP; 197 PUSH32(esp, ebx); /* 0x2B050766: push ebx */ 198 PUSH32(esp, esi); /* 0x2B050767: push esi */ 199 PUSH32(esp, edi); /* 0x2B050768: push edi */ 200 esi = ecx; /* 0x2B050769: mov esi, ecx */ 201 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B05076B: call dword ptr [0x2b0b5b64] */ 202 RECOMP_FLAGS_IN(); 203 ecx = MEM32(eax + 0x108); /* 0x2B050771: mov ecx, dword ptr [eax + 0x108] */ 204 ebx = MEM32(eax + 0x10C); /* 0x2B050777: mov ebx, dword ptr [eax + 0x10c] */ 205 edi = MEM32(esi + 0x8); /* 0x2B05077D: mov edi, dword ptr [esi + 8] */ 206 MEM32(ebp + (-0x14)) = ecx; /* 0x2B050780: mov dword ptr [ebp - 0x14], ecx */ 207 ecx = ebx; /* 0x2B050783: mov ecx, ebx */ 208 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 210 ecx = ecx - edi; /* 0x2B050785: sub ecx, edi */ 211 _flag_k = FK_CMP; 212 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x25u); 213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 214 ecx = ecx - 0x25u; /* 0x2B050787: sub ecx, 0x25 */ 215 _flag_k = FK_CMP; 216 eax = 0x2AAAAAABu; /* 0x2B05078A: mov eax, 0x2aaaaaab */ 217 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B05078F: imul ecx */ 218 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 219 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 220 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B050791: sar edx, 1 */ 221 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 222 edx = (uint32_t)((int32_t)edx >> 1u); 223 eax = edx; /* 0x2B050793: mov eax, edx */ 224 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B050795: shr eax, 0x1f */ 225 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 226 eax = eax >> 31u; /* 0x2B050795: shr eax, 0x1f */ 227 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 229 edx = edx + eax; /* 0x2B050798: add edx, eax */ 230 _flag_k = FK_ADD; 231 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_S)) goto L_2B050804; /* 0x2B05079A: js 0x2b050804 */ 232 L_2B05079C: 233 /* cmp edx, 0xBu */ /* 0x2B05079C: cmp edx, 0xb */ 234 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 236 _flag_k = FK_CMP; 237 if (CMP_GE(_flag_a, _flag_b)) goto L_2B050804; /* 0x2B05079F: jge 0x2b050804 */ 238 L_2B0507A1: 239 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x48)); 240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 241 edx = edx + MEM32(esi + 0x48); /* 0x2B0507A1: add edx, dword ptr [esi + 0x48] */ 242 _flag_k = FK_ADD; 243 eax = MEM32(esi + 0x100); /* 0x2B0507A4: mov eax, dword ptr [esi + 0x100] */ 244 edi = MEM32(eax + 0x4); /* 0x2B0507AA: mov edi, dword ptr [eax + 4] */ 245 eax = MEM32(eax + 0x8); /* 0x2B0507AD: mov eax, dword ptr [eax + 8] */ 246 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 247 ecx = 0; /* 0x2B0507B0: xor ecx, ecx */ 248 _cf = 0; 249 _flag_k = FK_TEST; 250 /* cmp edi, eax */ /* 0x2B0507B2: cmp edi, eax */ 251 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 253 _flag_k = FK_CMP; 254 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B0507B4: je 0x2b0508a1 */ 255 L_2B0507BA: 256 /* cmp ecx, edx */ /* 0x2B0507BA: cmp ecx, edx */ 257 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 259 _flag_k = FK_CMP; 260 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0507C6; /* 0x2B0507BC: je 0x2b0507c6 */ 261 L_2B0507BE: 262 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 264 edi = edi + 0x30u; /* 0x2B0507BE: add edi, 0x30 */ 265 _flag_k = FK_ADD; 266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 267 ecx = ecx + 1; /* 0x2B0507C1: inc ecx */ 268 _flag_k = FK_INC; 269 /* cmp edi, eax */ /* 0x2B0507C2: cmp edi, eax */ 270 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 272 _flag_k = FK_CMP; 273 RECOMP_BACKEDGE(); 274 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0507BA; /* 0x2B0507C4: jne 0x2b0507ba */ 275 L_2B0507C6: 276 /* cmp edi, eax */ /* 0x2B0507C6: cmp edi, eax */ 277 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 279 _flag_k = FK_CMP; 280 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B0507C8: je 0x2b0508a1 */ 281 L_2B0507CE: 282 eax = MEM32(edi + 0x18); /* 0x2B0507CE: mov eax, dword ptr [edi + 0x18] */ 283 /* test eax, eax */ /* 0x2B0507D1: test eax, eax */ 284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 285 _cf = 0; 286 _flag_k = FK_TEST; 287 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B0507D3: jne 0x2b0508a1 */ 288 L_2B0507D9: 289 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B0507D9: mov al, byte ptr [edi + 0x2c] */ 290 /* test LO8(eax), LO8(eax) */ /* 0x2B0507DC: test al, al */ 291 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 292 _cf = 0; 293 _flag_k = FK_NARROW(FK_TEST, 24); 294 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B0507DE: jne 0x2b0508a1 */ 295 L_2B0507E4: 296 ecx = esi; /* 0x2B0507E4: mov ecx, esi */ 297 RECOMP_ICALL(0x2B04F5B0u); /* 0x2B0507E6: call 0x2b04f5b0 */ /* not lifted */ 298 RECOMP_FLAGS_IN(); 299 ecx = esi; /* 0x2B0507EB: mov ecx, esi */ 300 RECOMP_ICALL(0x2B04F5E0u); /* 0x2B0507ED: call 0x2b04f5e0 */ /* not lifted */ 301 RECOMP_FLAGS_IN(); 302 ecx = esi; /* 0x2B0507F2: mov ecx, esi */ 303 MEM8(edi + 0x2C) = (uint8_t)(1); /* 0x2B0507F4: mov byte ptr [edi + 0x2c], 1 */ 304 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0507F8: call 0x2b03a2b0 */ /* not lifted */ 305 RECOMP_FLAGS_IN(); 306 edi = POP32_VAL(esp); /* 0x2B0507FD: pop edi */ 307 esi = POP32_VAL(esp); /* 0x2B0507FE: pop esi */ 308 ebx = POP32_VAL(esp); /* 0x2B0507FF: pop ebx */ 309 esp = ebp; /* 0x2B050800: mov esp, ebp */ 310 ebp = POP32_VAL(esp); /* 0x2B050802: pop ebp */ 311 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050803: ret */ 312 L_2B050804: 313 ecx = ebp + (-0x10); /* 0x2B050804: lea ecx, [ebp - 0x10] */ 314 PUSH32(esp, ecx); /* 0x2B050807: push ecx */ 315 ecx = esi; /* 0x2B050808: mov ecx, esi */ 316 RECOMP_ICALL(0x2B0511D0u); /* 0x2B05080A: call 0x2b0511d0 */ /* not lifted */ 317 RECOMP_FLAGS_IN(); 318 edi = MEM32(esi + 0x8); /* 0x2B05080F: mov edi, dword ptr [esi + 8] */ 319 edx = MEM32(esi + 0x104); /* 0x2B050812: mov edx, dword ptr [esi + 0x104] */ 320 MEM32(ebp + (-0x8)) = eax; /* 0x2B050818: mov dword ptr [ebp - 8], eax */ 321 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xC3u); 322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 323 edi = edi + 0xC3u; /* 0x2B05081B: add edi, 0xc3 */ 324 _flag_k = FK_ADD; 325 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 326 ecx = 0; /* 0x2B050821: xor ecx, ecx */ 327 _cf = 0; 328 _flag_k = FK_TEST; 329 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B050823: cmp eax, dword ptr [edx + 8] */ 330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 332 _flag_k = FK_CMP; 333 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B050826: je 0x2b0508a1 */ 334 L_2B050828: 335 edx = edi + 0xC; /* 0x2B050828: lea edx, [edi + 0xc] */ 336 MEM32(ebp + (-0x4)) = edx; /* 0x2B05082B: mov dword ptr [ebp - 4], edx */ 337 goto L_2B050833; /* 0x2B05082E: jmp 0x2b050833 */ 338 L_2B050830: 339 ecx = MEM32(ebp + (-0xC)); /* 0x2B050830: mov ecx, dword ptr [ebp - 0xc] */ 340 L_2B050833: 341 /* cmp ecx, MEM32(esi + 0x180) */ /* 0x2B050833: cmp ecx, dword ptr [esi + 0x180] */ 342 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x180)); 343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 344 _flag_k = FK_CMP; 345 if (CMP_L(_flag_a, _flag_b)) goto L_2B050850; /* 0x2B050839: jl 0x2b050850 */ 346 L_2B05083B: 347 /* cmp ebx, edi */ /* 0x2B05083B: cmp ebx, edi */ 348 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 350 _flag_k = FK_CMP; 351 if (CMP_LE(_flag_a, _flag_b)) goto L_2B050844; /* 0x2B05083D: jle 0x2b050844 */ 352 L_2B05083F: 353 /* cmp ebx, MEM32(ebp + (-0x4)) */ /* 0x2B05083F: cmp ebx, dword ptr [ebp - 4] */ 354 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 356 _flag_k = FK_CMP; 357 if (CMP_L(_flag_a, _flag_b)) goto L_2B05087F; /* 0x2B050842: jl 0x2b05087f */ 358 L_2B050844: 359 eax = MEM32(ebp + (-0x4)); /* 0x2B050844: mov eax, dword ptr [ebp - 4] */ 360 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 361 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 362 edi = edi + 0xCu; /* 0x2B050847: add edi, 0xc */ 363 _flag_k = FK_ADD; 364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 366 eax = eax + 0xCu; /* 0x2B05084A: add eax, 0xc */ 367 _flag_k = FK_ADD; 368 MEM32(ebp + (-0x4)) = eax; /* 0x2B05084D: mov dword ptr [ebp - 4], eax */ 369 L_2B050850: 370 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 371 ecx = ecx + 1; /* 0x2B050850: inc ecx */ 372 _flag_k = FK_INC; 373 MEM32(ebp + (-0xC)) = ecx; /* 0x2B050851: mov dword ptr [ebp - 0xc], ecx */ 374 eax = ebp + (-0x10); /* 0x2B050854: lea eax, [ebp - 0x10] */ 375 PUSH32(esp, eax); /* 0x2B050857: push eax */ 376 ecx = ebp + (-0x8); /* 0x2B050858: lea ecx, [ebp - 8] */ 377 PUSH32(esp, ecx); /* 0x2B05085B: push ecx */ 378 ecx = esi; /* 0x2B05085C: mov ecx, esi */ 379 RECOMP_ICALL(0x2B051220u); /* 0x2B05085E: call 0x2b051220 */ /* not lifted */ 380 RECOMP_FLAGS_IN(); 381 edx = MEM32(esi + 0x104); /* 0x2B050863: mov edx, dword ptr [esi + 0x104] */ 382 eax = MEM32(ebp + (-0x8)); /* 0x2B050869: mov eax, dword ptr [ebp - 8] */ 383 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B05086C: cmp eax, dword ptr [edx + 8] */ 384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 386 _flag_k = FK_CMP; 387 RECOMP_BACKEDGE(); 388 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050830; /* 0x2B05086F: jne 0x2b050830 */ 389 L_2B050871: 390 ecx = esi; /* 0x2B050871: mov ecx, esi */ 391 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050873: call 0x2b03a2b0 */ /* not lifted */ 392 RECOMP_FLAGS_IN(); 393 edi = POP32_VAL(esp); /* 0x2B050878: pop edi */ 394 esi = POP32_VAL(esp); /* 0x2B050879: pop esi */ 395 ebx = POP32_VAL(esp); /* 0x2B05087A: pop ebx */ 396 esp = ebp; /* 0x2B05087B: mov esp, ebp */ 397 ebp = POP32_VAL(esp); /* 0x2B05087D: pop ebp */ 398 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05087E: ret */ 399 L_2B05087F: 400 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B05087F: mov cl, byte ptr [eax + 0x2c] */ 401 /* test LO8(ecx), LO8(ecx) */ /* 0x2B050882: test cl, cl */ 402 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 403 _cf = 0; 404 _flag_k = FK_NARROW(FK_TEST, 24); 405 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B050884: jne 0x2b0508a1 */ 406 L_2B050886: 407 /* test MEM8(eax + 0x1C), 2 */ /* 0x2B050886: test byte ptr [eax + 0x1c], 2 */ 408 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(2) << 24; 409 _cf = 0; 410 _flag_k = FK_NARROW(FK_TEST, 24); 411 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B05088A: jne 0x2b0508a1 */ 412 L_2B05088C: 413 ecx = esi; /* 0x2B05088C: mov ecx, esi */ 414 RECOMP_ICALL(0x2B04F5B0u); /* 0x2B05088E: call 0x2b04f5b0 */ /* not lifted */ 415 RECOMP_FLAGS_IN(); 416 ecx = esi; /* 0x2B050893: mov ecx, esi */ 417 RECOMP_ICALL(0x2B04F5E0u); /* 0x2B050895: call 0x2b04f5e0 */ /* not lifted */ 418 RECOMP_FLAGS_IN(); 419 eax = MEM32(ebp + (-0x8)); /* 0x2B05089A: mov eax, dword ptr [ebp - 8] */ 420 MEM8(eax + 0x2C) = (uint8_t)(1); /* 0x2B05089D: mov byte ptr [eax + 0x2c], 1 */ 421 L_2B0508A1: 422 ecx = esi; /* 0x2B0508A1: mov ecx, esi */ 423 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0508A3: call 0x2b03a2b0 */ /* not lifted */ 424 RECOMP_FLAGS_IN(); 425 edi = POP32_VAL(esp); /* 0x2B0508A8: pop edi */ 426 esi = POP32_VAL(esp); /* 0x2B0508A9: pop esi */ 427 ebx = POP32_VAL(esp); /* 0x2B0508AA: pop ebx */ 428 esp = ebp; /* 0x2B0508AB: mov esp, ebp */ 429 ebp = POP32_VAL(esp); /* 0x2B0508AD: pop ebp */ 430 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0508AE: ret */ 431 L_2B055470: 432 ecx = MEM32(0x2B0EEB08); /* 0x2B055470: mov ecx, dword ptr [0x2b0eeb08] */ 433 RECOMP_BACKEDGE(); 434 goto L_2B050760; /* 0x2B055476: jmp 0x2b050760 */ 435 { RECOMP_REGS_OUT(); return; } /* end of function */ 436 RECOMP_REGS_OUT(); 437 } 438 439 void sub_2B055480(void) { 440 int _fpu_cmp = 0; 441 uint32_t _cf = 0; 442 int _df = 1; 443 uint32_t _flag_k = FK_NONE; 444 uint32_t _flag_a = 0, _flag_b = 0; 445 uint32_t _itail_tgt = 0; 446 RECOMP_REGS_LOCALS 447 RECOMP_ENTER(0x2B055480u); 448 449 goto L_2B055480; 450 L_2B0508B0: 451 PUSH32(esp, ebp); /* 0x2B0508B0: push ebp */ 452 ebp = esp; /* 0x2B0508B1: mov ebp, esp */ 453 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0508B3: push -1 */ 454 PUSH32(esp, 0x2B0AF91Bu); /* 0x2B0508B5: push 0x2b0af91b */ 455 eax = MEM32(FS_BASE + (0)); /* 0x2B0508BA: mov eax, dword ptr fs:[0] */ 456 PUSH32(esp, eax); /* 0x2B0508C0: push eax */ 457 MEM32(FS_BASE + (0)) = esp; /* 0x2B0508C1: mov dword ptr fs:[0], esp */ 458 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x238u); 459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 460 esp = esp - 0x238u; /* 0x2B0508C8: sub esp, 0x238 */ 461 _flag_k = FK_CMP; 462 PUSH32(esp, ebx); /* 0x2B0508CE: push ebx */ 463 PUSH32(esp, esi); /* 0x2B0508CF: push esi */ 464 PUSH32(esp, edi); /* 0x2B0508D0: push edi */ 465 edi = ecx; /* 0x2B0508D1: mov edi, ecx */ 466 MEM32(ebp + (-0x24)) = edi; /* 0x2B0508D3: mov dword ptr [ebp - 0x24], edi */ 467 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B0508D6: call dword ptr [0x2b0b5b64] */ 468 RECOMP_FLAGS_IN(); 469 ecx = MEM32(eax + 0x108); /* 0x2B0508DC: mov ecx, dword ptr [eax + 0x108] */ 470 eax = MEM32(eax + 0x10C); /* 0x2B0508E2: mov eax, dword ptr [eax + 0x10c] */ 471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 473 eax = eax - MEM32(edi + 0x8); /* 0x2B0508E8: sub eax, dword ptr [edi + 8] */ 474 _flag_k = FK_CMP; 475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x25u); 476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 477 eax = eax - 0x25u; /* 0x2B0508EB: sub eax, 0x25 */ 478 _flag_k = FK_CMP; 479 MEM32(ebp + (-0x30)) = ecx; /* 0x2B0508EE: mov dword ptr [ebp - 0x30], ecx */ 480 ecx = eax; /* 0x2B0508F1: mov ecx, eax */ 481 eax = 0x2AAAAAABu; /* 0x2B0508F3: mov eax, 0x2aaaaaab */ 482 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B0508F8: imul ecx */ 483 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 484 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 485 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B0508FA: sar edx, 1 */ 486 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 487 edx = (uint32_t)((int32_t)edx >> 1u); 488 eax = edx; /* 0x2B0508FC: mov eax, edx */ 489 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B0508FE: shr eax, 0x1f */ 490 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 491 eax = eax >> 31u; /* 0x2B0508FE: shr eax, 0x1f */ 492 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 493 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 494 edx = edx + eax; /* 0x2B050901: add edx, eax */ 495 _flag_k = FK_ADD; 496 ecx = edx; /* 0x2B050903: mov ecx, edx */ 497 /* cmp ecx, 0xBu */ /* 0x2B050905: cmp ecx, 0xb */ 498 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 500 _flag_k = FK_CMP; 501 if (CMP_AE(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B050908: jae 0x2b050c26 */ 502 L_2B05090E: 503 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x48)); 504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 505 ecx = ecx + MEM32(edi + 0x48); /* 0x2B05090E: add ecx, dword ptr [edi + 0x48] */ 506 _flag_k = FK_ADD; 507 esi = MEM32(edi + 0x100); /* 0x2B050911: mov esi, dword ptr [edi + 0x100] */ 508 eax = MEM32(esi + 0x4); /* 0x2B050917: mov eax, dword ptr [esi + 4] */ 509 /* test eax, eax */ /* 0x2B05091A: test eax, eax */ 510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 511 _cf = 0; 512 _flag_k = FK_TEST; 513 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050922; /* 0x2B05091C: jne 0x2b050922 */ 514 L_2B05091E: 515 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 516 edx = 0; /* 0x2B05091E: xor edx, edx */ 517 _cf = 0; 518 _flag_k = FK_TEST; 519 goto L_2B050938; /* 0x2B050920: jmp 0x2b050938 */ 520 L_2B050922: 521 edx = MEM32(esi + 0x8); /* 0x2B050922: mov edx, dword ptr [esi + 8] */ 522 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 524 edx = edx - eax; /* 0x2B050925: sub edx, eax */ 525 _flag_k = FK_CMP; 526 eax = 0x2AAAAAABu; /* 0x2B050927: mov eax, 0x2aaaaaab */ 527 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B05092C: imul edx */ 528 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 529 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 530 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B05092E: sar edx, 3 */ 531 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 532 edx = (uint32_t)((int32_t)edx >> 3u); 533 eax = edx; /* 0x2B050931: mov eax, edx */ 534 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B050933: shr eax, 0x1f */ 535 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 536 eax = eax >> 31u; /* 0x2B050933: shr eax, 0x1f */ 537 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 539 edx = edx + eax; /* 0x2B050936: add edx, eax */ 540 _flag_k = FK_ADD; 541 L_2B050938: 542 /* cmp ecx, edx */ /* 0x2B050938: cmp ecx, edx */ 543 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 545 _flag_k = FK_CMP; 546 if (CMP_A(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B05093A: ja 0x2b050c26 */ 547 L_2B050940: 548 ebx = MEM32(esi + 0x4); /* 0x2B050940: mov ebx, dword ptr [esi + 4] */ 549 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 550 eax = 0; /* 0x2B050943: xor eax, eax */ 551 _cf = 0; 552 _flag_k = FK_TEST; 553 /* test ecx, ecx */ /* 0x2B050945: test ecx, ecx */ 554 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 555 _cf = 0; 556 _flag_k = FK_TEST; 557 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050958; /* 0x2B050947: jbe 0x2b050958 */ 558 L_2B050949: 559 edx = MEM32(esi + 0x8); /* 0x2B050949: mov edx, dword ptr [esi + 8] */ 560 L_2B05094C: 561 /* cmp ebx, edx */ /* 0x2B05094C: cmp ebx, edx */ 562 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 564 _flag_k = FK_CMP; 565 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050958; /* 0x2B05094E: je 0x2b050958 */ 566 L_2B050950: 567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 568 eax = eax + 1; /* 0x2B050950: inc eax */ 569 _flag_k = FK_INC; 570 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 572 ebx = ebx + 0x30u; /* 0x2B050951: add ebx, 0x30 */ 573 _flag_k = FK_ADD; 574 /* cmp eax, ecx */ /* 0x2B050954: cmp eax, ecx */ 575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 577 _flag_k = FK_CMP; 578 RECOMP_BACKEDGE(); 579 if (CMP_B(_flag_a, _flag_b)) goto L_2B05094C; /* 0x2B050956: jb 0x2b05094c */ 580 L_2B050958: 581 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x2B050958: cmp ebx, dword ptr [esi + 8] */ 582 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 584 _flag_k = FK_CMP; 585 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B05095B: je 0x2b050c26 */ 586 L_2B050961: 587 SET_LO8(eax, MEM8(ebx + 0x24)); /* 0x2B050961: mov al, byte ptr [ebx + 0x24] */ 588 /* test LO8(eax), LO8(eax) */ /* 0x2B050964: test al, al */ 589 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 590 _cf = 0; 591 _flag_k = FK_NARROW(FK_TEST, 24); 592 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0509A1; /* 0x2B050966: je 0x2b0509a1 */ 593 L_2B050968: 594 eax = MEM32(ebx + 0x4); /* 0x2B050968: mov eax, dword ptr [ebx + 4] */ 595 PUSH32(esp, eax); /* 0x2B05096B: push eax */ 596 RECOMP_ICALL(0x2B016630u); /* 0x2B05096C: call 0x2b016630 */ /* not lifted */ 597 RECOMP_FLAGS_IN(); 598 ecx = eax; /* 0x2B050971: mov ecx, eax */ 599 RECOMP_ICALL(0x2B016DF0u); /* 0x2B050973: call 0x2b016df0 */ /* not lifted */ 600 RECOMP_FLAGS_IN(); 601 eax = MEM32(ebx + 0x4); /* 0x2B050978: mov eax, dword ptr [ebx + 4] */ 602 PUSH32(esp, 0); /* 0x2B05097B: push 0 */ 603 PUSH32(esp, eax); /* 0x2B05097D: push eax */ 604 PUSH32(esp, 0); /* 0x2B05097E: push 0 */ 605 PUSH32(esp, eax); /* 0x2B050980: push eax */ 606 ecx = ebx + 0x8; /* 0x2B050981: lea ecx, [ebx + 8] */ 607 PUSH32(esp, ecx); /* 0x2B050984: push ecx */ 608 ecx = edi; /* 0x2B050985: mov ecx, edi */ 609 RECOMP_ICALL(0x2B04FCE0u); /* 0x2B050987: call 0x2b04fce0 */ /* not lifted */ 610 RECOMP_FLAGS_IN(); 611 edi = POP32_VAL(esp); /* 0x2B05098C: pop edi */ 612 esi = POP32_VAL(esp); /* 0x2B05098D: pop esi */ 613 MEM8(ebx + 0x24) = (uint8_t)(0); /* 0x2B05098E: mov byte ptr [ebx + 0x24], 0 */ 614 ebx = POP32_VAL(esp); /* 0x2B050992: pop ebx */ 615 ecx = MEM32(ebp + (-0xC)); /* 0x2B050993: mov ecx, dword ptr [ebp - 0xc] */ 616 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050996: mov dword ptr fs:[0], ecx */ 617 esp = ebp; /* 0x2B05099D: mov esp, ebp */ 618 ebp = POP32_VAL(esp); /* 0x2B05099F: pop ebp */ 619 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0509A0: ret */ 620 L_2B0509A1: 621 eax = MEM32(ebx + 0x18); /* 0x2B0509A1: mov eax, dword ptr [ebx + 0x18] */ 622 /* test eax, eax */ /* 0x2B0509A4: test eax, eax */ 623 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 624 _cf = 0; 625 _flag_k = FK_TEST; 626 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B0509A6: jne 0x2b050c26 */ 627 L_2B0509AC: 628 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B0509AC: call dword ptr [0x2b0b5b64] */ 629 RECOMP_FLAGS_IN(); 630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xD4u); 631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 632 eax = eax + 0xD4u; /* 0x2B0509B2: add eax, 0xd4 */ 633 _flag_k = FK_ADD; 634 edx = ebp + (-0x28); /* 0x2B0509B7: lea edx, [ebp - 0x28] */ 635 /* cmp edx, eax */ /* 0x2B0509BA: cmp edx, eax */ 636 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 638 _flag_k = FK_CMP; 639 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0509C5; /* 0x2B0509BC: je 0x2b0509c5 */ 640 L_2B0509BE: 641 ecx = MEM32(eax); /* 0x2B0509BE: mov ecx, dword ptr [eax] */ 642 eax = MEM32(eax + 0x4); /* 0x2B0509C0: mov eax, dword ptr [eax + 4] */ 643 goto L_2B0509CB; /* 0x2B0509C3: jmp 0x2b0509cb */ 644 L_2B0509C5: 645 eax = MEM32(ebp + (-0x24)); /* 0x2B0509C5: mov eax, dword ptr [ebp - 0x24] */ 646 ecx = MEM32(ebp + (-0x28)); /* 0x2B0509C8: mov ecx, dword ptr [ebp - 0x28] */ 647 L_2B0509CB: 648 MEM32(ebp + (-0x2C)) = eax; /* 0x2B0509CB: mov dword ptr [ebp - 0x2c], eax */ 649 eax = ebp + (-0x30); /* 0x2B0509CE: lea eax, [ebp - 0x30] */ 650 PUSH32(esp, eax); /* 0x2B0509D1: push eax */ 651 MEM32(ebp + (-0x30)) = ecx; /* 0x2B0509D2: mov dword ptr [ebp - 0x30], ecx */ 652 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0509D5: call dword ptr [0x2b0b5d6c] */ 653 RECOMP_FLAGS_IN(); 654 ecx = eax; /* 0x2B0509DB: mov ecx, eax */ 655 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B0509DD: call dword ptr [0x2b0b5d50] */ 656 RECOMP_FLAGS_IN(); 657 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B0509E3: mov cl, byte ptr [ebp - 0xd] */ 658 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(ecx)); /* 0x2B0509E6: mov byte ptr [ebp - 0x44], cl */ 659 PUSH32(esp, 0); /* 0x2B0509E9: push 0 */ 660 ecx = ebp + (-0x44); /* 0x2B0509EB: lea ecx, [ebp - 0x44] */ 661 esi = eax; /* 0x2B0509EE: mov esi, eax */ 662 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0509F0: call dword ptr [0x2b0b514c] */ 663 RECOMP_FLAGS_IN(); 664 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 665 ecx = ecx | 0xFFFFFFFFu; /* 0x2B0509F6: or ecx, 0xffffffff */ 666 _cf = 0; 667 _flag_k = FK_TEST; 668 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 669 eax = 0; /* 0x2B0509F9: xor eax, eax */ 670 _cf = 0; 671 _flag_k = FK_TEST; 672 edi = esi; /* 0x2B0509FB: mov edi, esi */ 673 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; } /* 0x2B0509FD: repne scasb al, byte ptr es:[edi] */ 674 ecx = ~ecx; /* 0x2B0509FF: not ecx */ 675 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 676 ecx = ecx - 1; /* 0x2B050A01: dec ecx */ 677 _flag_k = FK_DEC; 678 edi = ecx; /* 0x2B050A02: mov edi, ecx */ 679 PUSH32(esp, 1); /* 0x2B050A04: push 1 */ 680 PUSH32(esp, edi); /* 0x2B050A06: push edi */ 681 ecx = ebp + (-0x44); /* 0x2B050A07: lea ecx, [ebp - 0x44] */ 682 MEM32(ebp + (-0x34)) = edi; /* 0x2B050A0A: mov dword ptr [ebp - 0x34], edi */ 683 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050A0D: call dword ptr [0x2b0b5154] */ 684 RECOMP_FLAGS_IN(); 685 /* test LO8(eax), LO8(eax) */ /* 0x2B050A13: test al, al */ 686 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 687 _cf = 0; 688 _flag_k = FK_NARROW(FK_TEST, 24); 689 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050A36; /* 0x2B050A15: je 0x2b050a36 */ 690 L_2B050A17: 691 ecx = edi; /* 0x2B050A17: mov ecx, edi */ 692 edi = MEM32(ebp + (-0x40)); /* 0x2B050A19: mov edi, dword ptr [ebp - 0x40] */ 693 edx = ecx; /* 0x2B050A1C: mov edx, ecx */ 694 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050A1E: shr ecx, 2 */ 695 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 696 ecx = ecx >> 2u; /* 0x2B050A1E: shr ecx, 2 */ 697 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050A21: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 698 ecx = edx; /* 0x2B050A23: mov ecx, edx */ 699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 700 ecx = ecx & 3; /* 0x2B050A25: and ecx, 3 */ 701 _cf = 0; 702 _flag_k = FK_TEST; 703 eax = edx; /* 0x2B050A28: mov eax, edx */ 704 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050A2A: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 705 PUSH32(esp, eax); /* 0x2B050A2C: push eax */ 706 ecx = ebp + (-0x44); /* 0x2B050A2D: lea ecx, [ebp - 0x44] */ 707 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050A30: call dword ptr [0x2b0b5150] */ 708 RECOMP_FLAGS_IN(); 709 L_2B050A36: 710 ecx = ebp + (-0x44); /* 0x2B050A36: lea ecx, [ebp - 0x44] */ 711 PUSH32(esp, 0x2B0E84C4u); /* 0x2B050A39: push 0x2b0e84c4 */ 712 PUSH32(esp, ecx); /* 0x2B050A3E: push ecx */ 713 MEM32(ebp + (-0x4)) = 0; /* 0x2B050A3F: mov dword ptr [ebp - 4], 0 */ 714 RECOMP_ICALL(MEM32(0x2B0B517C)); /* 0x2B050A46: call dword ptr [0x2b0b517c] */ 715 RECOMP_FLAGS_IN(); 716 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 718 esp = esp + 8; /* 0x2B050A4C: add esp, 8 */ 719 _flag_k = FK_ADD; 720 /* test LO8(eax), LO8(eax) */ /* 0x2B050A4F: test al, al */ 721 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 722 _cf = 0; 723 _flag_k = FK_NARROW(FK_TEST, 24); 724 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050AE6; /* 0x2B050A51: je 0x2b050ae6 */ 725 L_2B050A57: 726 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2B050A57: mov dl, byte ptr [ebp - 0xd] */ 727 PUSH32(esp, 0); /* 0x2B050A5A: push 0 */ 728 ecx = ebp + (-0x20); /* 0x2B050A5C: lea ecx, [ebp - 0x20] */ 729 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(edx)); /* 0x2B050A5F: mov byte ptr [ebp - 0x20], dl */ 730 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050A62: call dword ptr [0x2b0b514c] */ 731 RECOMP_FLAGS_IN(); 732 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 733 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050A68: or ecx, 0xffffffff */ 734 _cf = 0; 735 _flag_k = FK_TEST; 736 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 737 eax = 0; /* 0x2B050A6B: xor eax, eax */ 738 _cf = 0; 739 _flag_k = FK_TEST; 740 edi = 0x2B0E8478u; /* 0x2B050A6D: mov edi, 0x2b0e8478 */ 741 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; } /* 0x2B050A72: repne scasb al, byte ptr es:[edi] */ 742 ecx = ~ecx; /* 0x2B050A74: not ecx */ 743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 744 ecx = ecx - 1; /* 0x2B050A76: dec ecx */ 745 _flag_k = FK_DEC; 746 ebx = ecx; /* 0x2B050A77: mov ebx, ecx */ 747 PUSH32(esp, 1); /* 0x2B050A79: push 1 */ 748 PUSH32(esp, ebx); /* 0x2B050A7B: push ebx */ 749 ecx = ebp + (-0x20); /* 0x2B050A7C: lea ecx, [ebp - 0x20] */ 750 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050A7F: call dword ptr [0x2b0b5154] */ 751 RECOMP_FLAGS_IN(); 752 /* test LO8(eax), LO8(eax) */ /* 0x2B050A85: test al, al */ 753 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 754 _cf = 0; 755 _flag_k = FK_NARROW(FK_TEST, 24); 756 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050AAB; /* 0x2B050A87: je 0x2b050aab */ 757 L_2B050A89: 758 edi = MEM32(ebp + (-0x1C)); /* 0x2B050A89: mov edi, dword ptr [ebp - 0x1c] */ 759 ecx = ebx; /* 0x2B050A8C: mov ecx, ebx */ 760 eax = ecx; /* 0x2B050A8E: mov eax, ecx */ 761 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050A90: shr ecx, 2 */ 762 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 763 ecx = ecx >> 2u; /* 0x2B050A90: shr ecx, 2 */ 764 esi = 0x2B0E8478u; /* 0x2B050A93: mov esi, 0x2b0e8478 */ 765 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050A98: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 766 ecx = eax; /* 0x2B050A9A: mov ecx, eax */ 767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 768 ecx = ecx & 3; /* 0x2B050A9C: and ecx, 3 */ 769 _cf = 0; 770 _flag_k = FK_TEST; 771 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050A9F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 772 PUSH32(esp, ebx); /* 0x2B050AA1: push ebx */ 773 ecx = ebp + (-0x20); /* 0x2B050AA2: lea ecx, [ebp - 0x20] */ 774 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050AA5: call dword ptr [0x2b0b5150] */ 775 RECOMP_FLAGS_IN(); 776 L_2B050AAB: 777 eax = MEM32(ebp + (-0x1C)); /* 0x2B050AAB: mov eax, dword ptr [ebp - 0x1c] */ 778 /* test eax, eax */ /* 0x2B050AAE: test eax, eax */ 779 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 780 _cf = 0; 781 _flag_k = FK_TEST; 782 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B050AB0: mov byte ptr [ebp - 4], 1 */ 783 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050ABB; /* 0x2B050AB4: jne 0x2b050abb */ 784 L_2B050AB6: 785 eax = MEM32(0x2B0B513C); /* 0x2B050AB6: mov eax, dword ptr [0x2b0b513c] */ 786 L_2B050ABB: 787 ecx = MEM32(ebp + (-0x18)); /* 0x2B050ABB: mov ecx, dword ptr [ebp - 0x18] */ 788 PUSH32(esp, ecx); /* 0x2B050ABE: push ecx */ 789 PUSH32(esp, eax); /* 0x2B050ABF: push eax */ 790 PUSH32(esp, 0x3Fu); /* 0x2B050AC0: push 0x3f */ 791 PUSH32(esp, 3); /* 0x2B050AC2: push 3 */ 792 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050AC4: call dword ptr [0x2b0b53cc] */ 793 RECOMP_FLAGS_IN(); 794 ecx = eax; /* 0x2B050ACA: mov ecx, eax */ 795 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050ACC: call dword ptr [0x2b0b53c4] */ 796 RECOMP_FLAGS_IN(); 797 PUSH32(esp, 1); /* 0x2B050AD2: push 1 */ 798 ecx = ebp + (-0x20); /* 0x2B050AD4: lea ecx, [ebp - 0x20] */ 799 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B050AD7: mov byte ptr [ebp - 4], 0 */ 800 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050ADB: call dword ptr [0x2b0b514c] */ 801 RECOMP_FLAGS_IN(); 802 goto L_2B050BF4; /* 0x2B050AE1: jmp 0x2b050bf4 */ 803 L_2B050AE6: 804 eax = MEM32(ebx + 0x1C); /* 0x2B050AE6: mov eax, dword ptr [ebx + 0x1c] */ 805 /* test eax, eax */ /* 0x2B050AE9: test eax, eax */ 806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 807 _cf = 0; 808 _flag_k = FK_TEST; 809 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050B56; /* 0x2B050AEB: je 0x2b050b56 */ 810 L_2B050AED: 811 eax = MEM32(ebx + 0xC); /* 0x2B050AED: mov eax, dword ptr [ebx + 0xc] */ 812 /* test eax, eax */ /* 0x2B050AF0: test eax, eax */ 813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 814 _cf = 0; 815 _flag_k = FK_TEST; 816 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050AF9; /* 0x2B050AF2: jne 0x2b050af9 */ 817 L_2B050AF4: 818 eax = MEM32(0x2B0B513C); /* 0x2B050AF4: mov eax, dword ptr [0x2b0b513c] */ 819 L_2B050AF9: 820 PUSH32(esp, eax); /* 0x2B050AF9: push eax */ 821 edx = ebp + (-0x244); /* 0x2B050AFA: lea edx, [ebp - 0x244] */ 822 PUSH32(esp, 0x2B0E8454u); /* 0x2B050B00: push 0x2b0e8454 */ 823 PUSH32(esp, edx); /* 0x2B050B05: push edx */ 824 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B050B06: call dword ptr [0x2b0b51f0] */ 825 RECOMP_FLAGS_IN(); 826 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 828 esp = esp + 0xCu; /* 0x2B050B0C: add esp, 0xc */ 829 _flag_k = FK_ADD; 830 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 831 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050B0F: or ecx, 0xffffffff */ 832 _cf = 0; 833 _flag_k = FK_TEST; 834 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 835 eax = 0; /* 0x2B050B12: xor eax, eax */ 836 _cf = 0; 837 _flag_k = FK_TEST; 838 edi = ebp + (-0x244); /* 0x2B050B14: lea edi, [ebp - 0x244] */ 839 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; } /* 0x2B050B1A: repne scasb al, byte ptr es:[edi] */ 840 ecx = ~ecx; /* 0x2B050B1C: not ecx */ 841 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 842 ecx = ecx - 1; /* 0x2B050B1E: dec ecx */ 843 _flag_k = FK_DEC; 844 PUSH32(esp, ecx); /* 0x2B050B1F: push ecx */ 845 eax = ebp + (-0x244); /* 0x2B050B20: lea eax, [ebp - 0x244] */ 846 PUSH32(esp, eax); /* 0x2B050B26: push eax */ 847 PUSH32(esp, 0x3Fu); /* 0x2B050B27: push 0x3f */ 848 PUSH32(esp, 3); /* 0x2B050B29: push 3 */ 849 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050B2B: call dword ptr [0x2b0b53cc] */ 850 RECOMP_FLAGS_IN(); 851 ecx = eax; /* 0x2B050B31: mov ecx, eax */ 852 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050B33: call dword ptr [0x2b0b53c4] */ 853 RECOMP_FLAGS_IN(); 854 ebx = MEM32(ebx + 0x4); /* 0x2B050B39: mov ebx, dword ptr [ebx + 4] */ 855 PUSH32(esp, ebx); /* 0x2B050B3C: push ebx */ 856 RECOMP_ICALL(0x2B016630u); /* 0x2B050B3D: call 0x2b016630 */ /* not lifted */ 857 RECOMP_FLAGS_IN(); 858 ecx = eax; /* 0x2B050B42: mov ecx, eax */ 859 RECOMP_ICALL(0x2B016DD0u); /* 0x2B050B44: call 0x2b016dd0 */ /* not lifted */ 860 RECOMP_FLAGS_IN(); 861 ecx = MEM32(ebp + (-0x24)); /* 0x2B050B49: mov ecx, dword ptr [ebp - 0x24] */ 862 RECOMP_ICALL(0x2B050C40u); /* 0x2B050B4C: call 0x2b050c40 */ /* not lifted */ 863 RECOMP_FLAGS_IN(); 864 goto L_2B050BF4; /* 0x2B050B51: jmp 0x2b050bf4 */ 865 L_2B050B56: 866 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B050B56: mov cl, byte ptr [ebp - 0xd] */ 867 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ecx)); /* 0x2B050B59: mov byte ptr [ebp - 0x20], cl */ 868 PUSH32(esp, 0); /* 0x2B050B5C: push 0 */ 869 ecx = ebp + (-0x20); /* 0x2B050B5E: lea ecx, [ebp - 0x20] */ 870 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050B61: call dword ptr [0x2b0b514c] */ 871 RECOMP_FLAGS_IN(); 872 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 873 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050B67: or ecx, 0xffffffff */ 874 _cf = 0; 875 _flag_k = FK_TEST; 876 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 877 eax = 0; /* 0x2B050B6A: xor eax, eax */ 878 _cf = 0; 879 _flag_k = FK_TEST; 880 edi = 0x2B0E841Cu; /* 0x2B050B6C: mov edi, 0x2b0e841c */ 881 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; } /* 0x2B050B71: repne scasb al, byte ptr es:[edi] */ 882 ecx = ~ecx; /* 0x2B050B73: not ecx */ 883 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 884 ecx = ecx - 1; /* 0x2B050B75: dec ecx */ 885 _flag_k = FK_DEC; 886 ebx = ecx; /* 0x2B050B76: mov ebx, ecx */ 887 PUSH32(esp, 1); /* 0x2B050B78: push 1 */ 888 PUSH32(esp, ebx); /* 0x2B050B7A: push ebx */ 889 ecx = ebp + (-0x20); /* 0x2B050B7B: lea ecx, [ebp - 0x20] */ 890 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050B7E: call dword ptr [0x2b0b5154] */ 891 RECOMP_FLAGS_IN(); 892 /* test LO8(eax), LO8(eax) */ /* 0x2B050B84: test al, al */ 893 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 894 _cf = 0; 895 _flag_k = FK_NARROW(FK_TEST, 24); 896 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BAA; /* 0x2B050B86: je 0x2b050baa */ 897 L_2B050B88: 898 edi = MEM32(ebp + (-0x1C)); /* 0x2B050B88: mov edi, dword ptr [ebp - 0x1c] */ 899 ecx = ebx; /* 0x2B050B8B: mov ecx, ebx */ 900 edx = ecx; /* 0x2B050B8D: mov edx, ecx */ 901 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050B8F: shr ecx, 2 */ 902 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 903 ecx = ecx >> 2u; /* 0x2B050B8F: shr ecx, 2 */ 904 esi = 0x2B0E841Cu; /* 0x2B050B92: mov esi, 0x2b0e841c */ 905 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050B97: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 906 ecx = edx; /* 0x2B050B99: mov ecx, edx */ 907 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 908 ecx = ecx & 3; /* 0x2B050B9B: and ecx, 3 */ 909 _cf = 0; 910 _flag_k = FK_TEST; 911 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050B9E: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 912 eax = MEM32(ebp + (-0x1C)); /* 0x2B050BA0: mov eax, dword ptr [ebp - 0x1c] */ 913 MEM32(ebp + (-0x18)) = ebx; /* 0x2B050BA3: mov dword ptr [ebp - 0x18], ebx */ 914 MEM8(eax + ebx) = (uint8_t)(0); /* 0x2B050BA6: mov byte ptr [eax + ebx], 0 */ 915 L_2B050BAA: 916 eax = MEM32(ebp + (-0x1C)); /* 0x2B050BAA: mov eax, dword ptr [ebp - 0x1c] */ 917 /* test eax, eax */ /* 0x2B050BAD: test eax, eax */ 918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 919 _cf = 0; 920 _flag_k = FK_TEST; 921 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B050BAF: mov byte ptr [ebp - 4], 2 */ 922 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050BBA; /* 0x2B050BB3: jne 0x2b050bba */ 923 L_2B050BB5: 924 eax = MEM32(0x2B0B513C); /* 0x2B050BB5: mov eax, dword ptr [0x2b0b513c] */ 925 L_2B050BBA: 926 ecx = MEM32(ebp + (-0x18)); /* 0x2B050BBA: mov ecx, dword ptr [ebp - 0x18] */ 927 PUSH32(esp, ecx); /* 0x2B050BBD: push ecx */ 928 PUSH32(esp, eax); /* 0x2B050BBE: push eax */ 929 PUSH32(esp, 0x3Fu); /* 0x2B050BBF: push 0x3f */ 930 PUSH32(esp, 3); /* 0x2B050BC1: push 3 */ 931 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050BC3: call dword ptr [0x2b0b53cc] */ 932 RECOMP_FLAGS_IN(); 933 ecx = eax; /* 0x2B050BC9: mov ecx, eax */ 934 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050BCB: call dword ptr [0x2b0b53c4] */ 935 RECOMP_FLAGS_IN(); 936 ecx = MEM32(ebp + (-0x1C)); /* 0x2B050BD1: mov ecx, dword ptr [ebp - 0x1c] */ 937 /* test ecx, ecx */ /* 0x2B050BD4: test ecx, ecx */ 938 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 939 _cf = 0; 940 _flag_k = FK_TEST; 941 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BF4; /* 0x2B050BD6: je 0x2b050bf4 */ 942 L_2B050BD8: 943 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B050BD8: mov al, byte ptr [ecx - 1] */ 944 /* test LO8(eax), LO8(eax) */ /* 0x2B050BDB: test al, al */ 945 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 946 _cf = 0; 947 _flag_k = FK_NARROW(FK_TEST, 24); 948 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BEA; /* 0x2B050BDD: je 0x2b050bea */ 949 L_2B050BDF: 950 /* cmp LO8(eax), 0xFFu */ /* 0x2B050BDF: cmp al, 0xff */ 951 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 953 _flag_k = FK_NARROW(FK_CMP, 24); 954 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050BEA; /* 0x2B050BE1: je 0x2b050bea */ 955 L_2B050BE3: 956 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 957 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050BE3: dec al */ 958 _flag_k = FK_NARROW(FK_DEC, 24); 959 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B050BE5: mov byte ptr [ecx - 1], al */ 960 goto L_2B050BF4; /* 0x2B050BE8: jmp 0x2b050bf4 */ 961 L_2B050BEA: 962 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 963 ecx = ecx - 1; /* 0x2B050BEA: dec ecx */ 964 _flag_k = FK_DEC; 965 PUSH32(esp, ecx); /* 0x2B050BEB: push ecx */ 966 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050BEC: call 0x2b0ab1ba */ /* not lifted */ 967 RECOMP_FLAGS_IN(); 968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 970 esp = esp + 4; /* 0x2B050BF1: add esp, 4 */ 971 _flag_k = FK_ADD; 972 L_2B050BF4: 973 ecx = MEM32(ebp + (-0x40)); /* 0x2B050BF4: mov ecx, dword ptr [ebp - 0x40] */ 974 /* test ecx, ecx */ /* 0x2B050BF7: test ecx, ecx */ 975 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 976 _cf = 0; 977 _flag_k = FK_TEST; 978 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B050BF9: je 0x2b050c26 */ 979 L_2B050BFB: 980 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B050BFB: mov al, byte ptr [ecx - 1] */ 981 /* test LO8(eax), LO8(eax) */ /* 0x2B050BFE: test al, al */ 982 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 983 _cf = 0; 984 _flag_k = FK_NARROW(FK_TEST, 24); 985 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C00: je 0x2b050c1c */ 986 L_2B050C02: 987 /* cmp LO8(eax), 0xFFu */ /* 0x2B050C02: cmp al, 0xff */ 988 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 990 _flag_k = FK_NARROW(FK_CMP, 24); 991 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C04: je 0x2b050c1c */ 992 L_2B050C06: 993 edi = POP32_VAL(esp); /* 0x2B050C06: pop edi */ 994 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 995 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050C07: dec al */ 996 _flag_k = FK_NARROW(FK_DEC, 24); 997 esi = POP32_VAL(esp); /* 0x2B050C09: pop esi */ 998 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B050C0A: mov byte ptr [ecx - 1], al */ 999 ebx = POP32_VAL(esp); /* 0x2B050C0D: pop ebx */ 1000 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C0E: mov ecx, dword ptr [ebp - 0xc] */ 1001 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C11: mov dword ptr fs:[0], ecx */ 1002 esp = ebp; /* 0x2B050C18: mov esp, ebp */ 1003 ebp = POP32_VAL(esp); /* 0x2B050C1A: pop ebp */ 1004 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C1B: ret */ 1005 L_2B050C1C: 1006 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1007 ecx = ecx - 1; /* 0x2B050C1C: dec ecx */ 1008 _flag_k = FK_DEC; 1009 PUSH32(esp, ecx); /* 0x2B050C1D: push ecx */ 1010 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050C1E: call 0x2b0ab1ba */ /* not lifted */ 1011 RECOMP_FLAGS_IN(); 1012 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1013 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1014 esp = esp + 4; /* 0x2B050C23: add esp, 4 */ 1015 _flag_k = FK_ADD; 1016 L_2B050C26: 1017 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C26: mov ecx, dword ptr [ebp - 0xc] */ 1018 edi = POP32_VAL(esp); /* 0x2B050C29: pop edi */ 1019 esi = POP32_VAL(esp); /* 0x2B050C2A: pop esi */ 1020 ebx = POP32_VAL(esp); /* 0x2B050C2B: pop ebx */ 1021 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C2C: mov dword ptr fs:[0], ecx */ 1022 esp = ebp; /* 0x2B050C33: mov esp, ebp */ 1023 ebp = POP32_VAL(esp); /* 0x2B050C35: pop ebp */ 1024 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C36: ret */ 1025 L_2B055480: 1026 ecx = MEM32(0x2B0EEB08); /* 0x2B055480: mov ecx, dword ptr [0x2b0eeb08] */ 1027 RECOMP_BACKEDGE(); 1028 goto L_2B0508B0; /* 0x2B055486: jmp 0x2b0508b0 */ 1029 { RECOMP_REGS_OUT(); return; } /* end of function */ 1030 RECOMP_REGS_OUT(); 1031 } 1032 1033 void sub_2B055490(void) { 1034 int _fpu_cmp = 0; 1035 uint32_t _cf = 0; 1036 int _df = 1; 1037 uint32_t _flag_k = FK_NONE; 1038 uint32_t _flag_a = 0, _flag_b = 0; 1039 uint32_t _itail_tgt = 0; 1040 RECOMP_REGS_LOCALS 1041 RECOMP_ENTER(0x2B055490u); 1042 1043 L_2B055490: 1044 PUSH32(esp, ebp); /* 0x2B055490: push ebp */ 1045 ebp = esp; /* 0x2B055491: mov ebp, esp */ 1046 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1048 esp = esp - 8; /* 0x2B055493: sub esp, 8 */ 1049 _flag_k = FK_CMP; 1050 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1051 eax = 0; /* 0x2B055496: xor eax, eax */ 1052 _cf = 0; 1053 _flag_k = FK_TEST; 1054 MEM32(ebp + (-0x8)) = eax; /* 0x2B055498: mov dword ptr [ebp - 8], eax */ 1055 MEM32(ebp + (-0x4)) = eax; /* 0x2B05549B: mov dword ptr [ebp - 4], eax */ 1056 PUSH32(esp, esi); /* 0x2B05549E: push esi */ 1057 esi = MEM32(0x2B0B53CC); /* 0x2B05549F: mov esi, dword ptr [0x2b0b53cc] */ 1058 eax = ebp + (-0x8); /* 0x2B0554A5: lea eax, [ebp - 8] */ 1059 PUSH32(esp, eax); /* 0x2B0554A8: push eax */ 1060 RECOMP_ICALL(esi); /* 0x2B0554A9: call esi */ 1061 RECOMP_FLAGS_IN(); 1062 ecx = eax; /* 0x2B0554AB: mov ecx, eax */ 1063 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B0554AD: call dword ptr [0x2b0b53ac] */ 1064 RECOMP_FLAGS_IN(); 1065 ecx = ebp + (-0x8); /* 0x2B0554B3: lea ecx, [ebp - 8] */ 1066 PUSH32(esp, ecx); /* 0x2B0554B6: push ecx */ 1067 PUSH32(esp, 0x11Cu); /* 0x2B0554B7: push 0x11c */ 1068 PUSH32(esp, 0x20u); /* 0x2B0554BC: push 0x20 */ 1069 RECOMP_ICALL(esi); /* 0x2B0554BE: call esi */ 1070 RECOMP_FLAGS_IN(); 1071 ecx = eax; /* 0x2B0554C0: mov ecx, eax */ 1072 RECOMP_ICALL(MEM32(0x2B0B5380)); /* 0x2B0554C2: call dword ptr [0x2b0b5380] */ 1073 RECOMP_FLAGS_IN(); 1074 esi = POP32_VAL(esp); /* 0x2B0554C8: pop esi */ 1075 esp = ebp; /* 0x2B0554C9: mov esp, ebp */ 1076 ebp = POP32_VAL(esp); /* 0x2B0554CB: pop ebp */ 1077 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0554CC: ret */ 1078 RECOMP_REGS_OUT(); 1079 } 1080 1081 void sub_2B0554D0(void) { 1082 int _fpu_cmp = 0; 1083 uint32_t _cf = 0; 1084 int _df = 1; 1085 uint32_t _flag_k = FK_NONE; 1086 uint32_t _flag_a = 0, _flag_b = 0; 1087 uint32_t _itail_tgt = 0; 1088 RECOMP_REGS_LOCALS 1089 RECOMP_ENTER(0x2B0554D0u); 1090 1091 L_2B0554D0: 1092 PUSH32(esp, ebp); /* 0x2B0554D0: push ebp */ 1093 ebp = esp; /* 0x2B0554D1: mov ebp, esp */ 1094 eax = MEM32(ebp + 0x8); /* 0x2B0554D3: mov eax, dword ptr [ebp + 8] */ 1095 ecx = MEM32(0x2B0EEB08); /* 0x2B0554D6: mov ecx, dword ptr [0x2b0eeb08] */ 1096 PUSH32(esp, eax); /* 0x2B0554DC: push eax */ 1097 RECOMP_ICALL(0x2B04F7F0u); /* 0x2B0554DD: call 0x2b04f7f0 */ /* not lifted */ 1098 RECOMP_FLAGS_IN(); 1099 ebp = POP32_VAL(esp); /* 0x2B0554E2: pop ebp */ 1100 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0554E3: ret 4 */ 1101 RECOMP_REGS_OUT(); 1102 } 1103 1104 void sub_2B0554F0(void) { 1105 int _fpu_cmp = 0; 1106 uint32_t _cf = 0; 1107 int _df = 1; 1108 uint32_t _flag_k = FK_NONE; 1109 uint32_t _flag_a = 0, _flag_b = 0; 1110 uint32_t _itail_tgt = 0; 1111 RECOMP_REGS_LOCALS 1112 RECOMP_ENTER(0x2B0554F0u); 1113 1114 L_2B0554F0: 1115 PUSH32(esp, ebp); /* 0x2B0554F0: push ebp */ 1116 ebp = esp; /* 0x2B0554F1: mov ebp, esp */ 1117 eax = MEM32(ebp + 0xC); /* 0x2B0554F3: mov eax, dword ptr [ebp + 0xc] */ 1118 ecx = MEM32(ebp + 0x8); /* 0x2B0554F6: mov ecx, dword ptr [ebp + 8] */ 1119 PUSH32(esp, eax); /* 0x2B0554F9: push eax */ 1120 PUSH32(esp, ecx); /* 0x2B0554FA: push ecx */ 1121 ecx = MEM32(0x2B0EEB08); /* 0x2B0554FB: mov ecx, dword ptr [0x2b0eeb08] */ 1122 RECOMP_ICALL(0x2B04FBF0u); /* 0x2B055501: call 0x2b04fbf0 */ /* not lifted */ 1123 RECOMP_FLAGS_IN(); 1124 ebp = POP32_VAL(esp); /* 0x2B055506: pop ebp */ 1125 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B055507: ret 8 */ 1126 RECOMP_REGS_OUT(); 1127 } 1128 1129 void sub_2B055510(void) { 1130 int _fpu_cmp = 0; 1131 uint32_t _cf = 0; 1132 int _df = 1; 1133 uint32_t _flag_k = FK_NONE; 1134 uint32_t _flag_a = 0, _flag_b = 0; 1135 uint32_t _itail_tgt = 0; 1136 RECOMP_REGS_LOCALS 1137 RECOMP_ENTER(0x2B055510u); 1138 1139 goto L_2B055510; 1140 L_2B050C40: 1141 PUSH32(esp, esi); /* 0x2B050C40: push esi */ 1142 esi = ecx; /* 0x2B050C41: mov esi, ecx */ 1143 ecx = MEM32(esi + 0x44); /* 0x2B050C43: mov ecx, dword ptr [esi + 0x44] */ 1144 eax = MEM32(ecx + 0x54); /* 0x2B050C46: mov eax, dword ptr [ecx + 0x54] */ 1145 /* cmp eax, 1 */ /* 0x2B050C49: cmp eax, 1 */ 1146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1148 _flag_k = FK_CMP; 1149 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C5D; /* 0x2B050C4C: je 0x2b050c5d */ 1150 L_2B050C4E: 1151 /* cmp eax, 3 */ /* 0x2B050C4E: cmp eax, 3 */ 1152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 1153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1154 _flag_k = FK_CMP; 1155 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C5D; /* 0x2B050C51: je 0x2b050c5d */ 1156 L_2B050C53: 1157 /* cmp eax, 2 */ /* 0x2B050C53: cmp eax, 2 */ 1158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 1159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1160 _flag_k = FK_CMP; 1161 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C6E; /* 0x2B050C56: je 0x2b050c6e */ 1162 L_2B050C58: 1163 /* cmp eax, 4 */ /* 0x2B050C58: cmp eax, 4 */ 1164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1166 _flag_k = FK_CMP; 1167 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C6E; /* 0x2B050C5B: je 0x2b050c6e */ 1168 L_2B050C5D: 1169 PUSH32(esp, 2); /* 0x2B050C5D: push 2 */ 1170 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B050C5F: call dword ptr [0x2b0b5ab4] */ 1171 RECOMP_FLAGS_IN(); 1172 PUSH32(esp, esi); /* 0x2B050C65: push esi */ 1173 RECOMP_ICALL(0x2B050E70u); /* 0x2B050C66: call 0x2b050e70 */ /* not lifted */ 1174 RECOMP_FLAGS_IN(); 1175 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1177 esp = esp + 4; /* 0x2B050C6B: add esp, 4 */ 1178 _flag_k = FK_ADD; 1179 L_2B050C6E: 1180 esi = POP32_VAL(esp); /* 0x2B050C6E: pop esi */ 1181 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C6F: ret */ 1182 L_2B055510: 1183 ecx = MEM32(0x2B0EEB08); /* 0x2B055510: mov ecx, dword ptr [0x2b0eeb08] */ 1184 RECOMP_BACKEDGE(); 1185 goto L_2B050C40; /* 0x2B055516: jmp 0x2b050c40 */ 1186 { RECOMP_REGS_OUT(); return; } /* end of function */ 1187 RECOMP_REGS_OUT(); 1188 } 1189 1190 void sub_2B055520(void) { 1191 int _fpu_cmp = 0; 1192 uint32_t _cf = 0; 1193 int _df = 1; 1194 uint32_t _flag_k = FK_NONE; 1195 uint32_t _flag_a = 0, _flag_b = 0; 1196 uint32_t _itail_tgt = 0; 1197 RECOMP_REGS_LOCALS 1198 RECOMP_ENTER(0x2B055520u); 1199 1200 L_2B055520: 1201 PUSH32(esp, ebp); /* 0x2B055520: push ebp */ 1202 ebp = esp; /* 0x2B055521: mov ebp, esp */ 1203 eax = MEM32(ebp + 0xC); /* 0x2B055523: mov eax, dword ptr [ebp + 0xc] */ 1204 ecx = MEM32(ebp + 0x8); /* 0x2B055526: mov ecx, dword ptr [ebp + 8] */ 1205 PUSH32(esp, eax); /* 0x2B055529: push eax */ 1206 PUSH32(esp, ecx); /* 0x2B05552A: push ecx */ 1207 ecx = MEM32(0x2B0EEB08); /* 0x2B05552B: mov ecx, dword ptr [0x2b0eeb08] */ 1208 RECOMP_ICALL(0x2B0512F0u); /* 0x2B055531: call 0x2b0512f0 */ /* not lifted */ 1209 RECOMP_FLAGS_IN(); 1210 ebp = POP32_VAL(esp); /* 0x2B055536: pop ebp */ 1211 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B055537: ret 8 */ 1212 RECOMP_REGS_OUT(); 1213 } 1214 1215 void sub_2B055540(void) { 1216 int _fpu_cmp = 0; 1217 uint32_t _cf = 0; 1218 int _df = 1; 1219 uint32_t _flag_k = FK_NONE; 1220 uint32_t _flag_a = 0, _flag_b = 0; 1221 uint32_t _itail_tgt = 0; 1222 RECOMP_REGS_LOCALS 1223 RECOMP_ENTER(0x2B055540u); 1224 1225 L_2B055540: 1226 PUSH32(esp, ebp); /* 0x2B055540: push ebp */ 1227 ebp = esp; /* 0x2B055541: mov ebp, esp */ 1228 eax = MEM32(ebp + 0xC); /* 0x2B055543: mov eax, dword ptr [ebp + 0xc] */ 1229 ecx = MEM32(ebp + 0x8); /* 0x2B055546: mov ecx, dword ptr [ebp + 8] */ 1230 PUSH32(esp, eax); /* 0x2B055549: push eax */ 1231 PUSH32(esp, ecx); /* 0x2B05554A: push ecx */ 1232 ecx = MEM32(0x2B0EEB08); /* 0x2B05554B: mov ecx, dword ptr [0x2b0eeb08] */ 1233 RECOMP_ICALL(0x2B050490u); /* 0x2B055551: call 0x2b050490 */ /* not lifted */ 1234 RECOMP_FLAGS_IN(); 1235 ebp = POP32_VAL(esp); /* 0x2B055556: pop ebp */ 1236 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B055557: ret 8 */ 1237 RECOMP_REGS_OUT(); 1238 } 1239 1240 void sub_2B055560(void) { 1241 int _fpu_cmp = 0; 1242 uint32_t _cf = 0; 1243 int _df = 1; 1244 uint32_t _flag_k = FK_NONE; 1245 uint32_t _flag_a = 0, _flag_b = 0; 1246 uint32_t _itail_tgt = 0; 1247 RECOMP_REGS_LOCALS 1248 RECOMP_ENTER(0x2B055560u); 1249 1250 L_2B055560: 1251 PUSH32(esp, ebp); /* 0x2B055560: push ebp */ 1252 ebp = esp; /* 0x2B055561: mov ebp, esp */ 1253 eax = MEM32(ebp + 0x8); /* 0x2B055563: mov eax, dword ptr [ebp + 8] */ 1254 ecx = MEM32(0x2B0EEB08); /* 0x2B055566: mov ecx, dword ptr [0x2b0eeb08] */ 1255 PUSH32(esp, eax); /* 0x2B05556C: push eax */ 1256 RECOMP_ICALL(0x2B0504D0u); /* 0x2B05556D: call 0x2b0504d0 */ /* not lifted */ 1257 RECOMP_FLAGS_IN(); 1258 ebp = POP32_VAL(esp); /* 0x2B055572: pop ebp */ 1259 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B055573: ret 4 */ 1260 RECOMP_REGS_OUT(); 1261 } 1262 1263 void sub_2B055580(void) { 1264 int _fpu_cmp = 0; 1265 uint32_t _cf = 0; 1266 int _df = 1; 1267 uint32_t _flag_k = FK_NONE; 1268 uint32_t _flag_a = 0, _flag_b = 0; 1269 uint32_t _itail_tgt = 0; 1270 RECOMP_REGS_LOCALS 1271 RECOMP_ENTER(0x2B055580u); 1272 1273 goto L_2B055580; 1274 L_2B050540: 1275 eax = MEM32(ecx + 0x104); /* 0x2B050540: mov eax, dword ptr [ecx + 0x104] */ 1276 PUSH32(esp, esi); /* 0x2B050546: push esi */ 1277 esi = MEM32(eax + 0x4); /* 0x2B050547: mov esi, dword ptr [eax + 4] */ 1278 PUSH32(esp, edi); /* 0x2B05054A: push edi */ 1279 edi = MEM32(eax + 0x8); /* 0x2B05054B: mov edi, dword ptr [eax + 8] */ 1280 /* cmp esi, edi */ /* 0x2B05054E: cmp esi, edi */ 1281 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1283 _flag_k = FK_CMP; 1284 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050580; /* 0x2B050550: je 0x2b050580 */ 1285 L_2B050552: 1286 eax = MEM32(esi + 0x10); /* 0x2B050552: mov eax, dword ptr [esi + 0x10] */ 1287 edx = MEM32(esi + 0x14); /* 0x2B050555: mov edx, dword ptr [esi + 0x14] */ 1288 ecx = 0x20u; /* 0x2B050558: mov ecx, 0x20 */ 1289 RECOMP_ICALL(0x2B0AB230u); /* 0x2B05055D: call 0x2b0ab230 */ /* not lifted */ 1290 RECOMP_FLAGS_IN(); 1291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 1292 eax = eax & 0xFFu; /* 0x2B050562: and eax, 0xff */ 1293 _cf = 0; 1294 _flag_k = FK_TEST; 1295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1296 ecx = 0; /* 0x2B050567: xor ecx, ecx */ 1297 _cf = 0; 1298 _flag_k = FK_TEST; 1299 /* cmp eax, 3 */ /* 0x2B050569: cmp eax, 3 */ 1300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 1301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1302 _flag_k = FK_CMP; 1303 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050572; /* 0x2B05056C: jne 0x2b050572 */ 1304 L_2B05056E: 1305 /* test ecx, ecx */ /* 0x2B05056E: test ecx, ecx */ 1306 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1307 _cf = 0; 1308 _flag_k = FK_TEST; 1309 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05057B; /* 0x2B050570: je 0x2b05057b */ 1310 L_2B050572: 1311 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 1312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1313 esi = esi + 0x30u; /* 0x2B050572: add esi, 0x30 */ 1314 _flag_k = FK_ADD; 1315 /* cmp esi, edi */ /* 0x2B050575: cmp esi, edi */ 1316 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1318 _flag_k = FK_CMP; 1319 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050580; /* 0x2B050577: je 0x2b050580 */ 1320 L_2B050579: 1321 RECOMP_BACKEDGE(); 1322 goto L_2B050552; /* 0x2B050579: jmp 0x2b050552 */ 1323 L_2B05057B: 1324 edi = POP32_VAL(esp); /* 0x2B05057B: pop edi */ 1325 eax = esi; /* 0x2B05057C: mov eax, esi */ 1326 esi = POP32_VAL(esp); /* 0x2B05057E: pop esi */ 1327 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05057F: ret */ 1328 L_2B050580: 1329 edi = POP32_VAL(esp); /* 0x2B050580: pop edi */ 1330 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1331 eax = 0; /* 0x2B050581: xor eax, eax */ 1332 _cf = 0; 1333 _flag_k = FK_TEST; 1334 esi = POP32_VAL(esp); /* 0x2B050583: pop esi */ 1335 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050584: ret */ 1336 L_2B055580: 1337 ecx = MEM32(0x2B0EEB08); /* 0x2B055580: mov ecx, dword ptr [0x2b0eeb08] */ 1338 RECOMP_BACKEDGE(); 1339 goto L_2B050540; /* 0x2B055586: jmp 0x2b050540 */ 1340 { RECOMP_REGS_OUT(); return; } /* end of function */ 1341 RECOMP_REGS_OUT(); 1342 } 1343 1344 void sub_2B055590(void) { 1345 int _fpu_cmp = 0; 1346 uint32_t _cf = 0; 1347 int _df = 1; 1348 uint32_t _flag_k = FK_NONE; 1349 uint32_t _flag_a = 0, _flag_b = 0; 1350 uint32_t _itail_tgt = 0; 1351 RECOMP_REGS_LOCALS 1352 RECOMP_ENTER(0x2B055590u); 1353 1354 L_2B055590: 1355 PUSH32(esp, ebp); /* 0x2B055590: push ebp */ 1356 ebp = esp; /* 0x2B055591: mov ebp, esp */ 1357 eax = MEM32(ebp + 0x8); /* 0x2B055593: mov eax, dword ptr [ebp + 8] */ 1358 ecx = MEM32(0x2B0EEB08); /* 0x2B055596: mov ecx, dword ptr [0x2b0eeb08] */ 1359 PUSH32(esp, eax); /* 0x2B05559C: push eax */ 1360 RECOMP_ICALL(0x2B050700u); /* 0x2B05559D: call 0x2b050700 */ /* not lifted */ 1361 RECOMP_FLAGS_IN(); 1362 ebp = POP32_VAL(esp); /* 0x2B0555A2: pop ebp */ 1363 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0555A3: ret 4 */ 1364 RECOMP_REGS_OUT(); 1365 } 1366 1367 void sub_2B0555B0(void) { 1368 int _fpu_cmp = 0; 1369 uint32_t _cf = 0; 1370 int _df = 1; 1371 uint32_t _flag_k = FK_NONE; 1372 uint32_t _flag_a = 0, _flag_b = 0; 1373 uint32_t _itail_tgt = 0; 1374 RECOMP_REGS_LOCALS 1375 RECOMP_ENTER(0x2B0555B0u); 1376 1377 L_2B0555B0: 1378 PUSH32(esp, ebp); /* 0x2B0555B0: push ebp */ 1379 ebp = esp; /* 0x2B0555B1: mov ebp, esp */ 1380 eax = MEM32(ebp + 0x10); /* 0x2B0555B3: mov eax, dword ptr [ebp + 0x10] */ 1381 ecx = MEM32(ebp + 0xC); /* 0x2B0555B6: mov ecx, dword ptr [ebp + 0xc] */ 1382 edx = MEM32(ebp + 0x8); /* 0x2B0555B9: mov edx, dword ptr [ebp + 8] */ 1383 PUSH32(esp, eax); /* 0x2B0555BC: push eax */ 1384 PUSH32(esp, ecx); /* 0x2B0555BD: push ecx */ 1385 ecx = MEM32(0x2B0EEB08); /* 0x2B0555BE: mov ecx, dword ptr [0x2b0eeb08] */ 1386 PUSH32(esp, edx); /* 0x2B0555C4: push edx */ 1387 RECOMP_ICALL(0x2B04FC50u); /* 0x2B0555C5: call 0x2b04fc50 */ /* not lifted */ 1388 RECOMP_FLAGS_IN(); 1389 ebp = POP32_VAL(esp); /* 0x2B0555CA: pop ebp */ 1390 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B0555CB: ret 0xc */ 1391 RECOMP_REGS_OUT(); 1392 } 1393 1394 void sub_2B0555D0(void) { 1395 int _fpu_cmp = 0; 1396 uint32_t _cf = 0; 1397 int _df = 1; 1398 uint32_t _flag_k = FK_NONE; 1399 uint32_t _flag_a = 0, _flag_b = 0; 1400 uint32_t _itail_tgt = 0; 1401 RECOMP_REGS_LOCALS 1402 RECOMP_ENTER(0x2B0555D0u); 1403 1404 L_2B0555D0: 1405 PUSH32(esp, ebp); /* 0x2B0555D0: push ebp */ 1406 ebp = esp; /* 0x2B0555D1: mov ebp, esp */ 1407 eax = MEM32(ebp + 0x14); /* 0x2B0555D3: mov eax, dword ptr [ebp + 0x14] */ 1408 ecx = MEM32(ebp + 0x10); /* 0x2B0555D6: mov ecx, dword ptr [ebp + 0x10] */ 1409 edx = MEM32(ebp + 0xC); /* 0x2B0555D9: mov edx, dword ptr [ebp + 0xc] */ 1410 PUSH32(esp, eax); /* 0x2B0555DC: push eax */ 1411 eax = MEM32(ebp + 0x8); /* 0x2B0555DD: mov eax, dword ptr [ebp + 8] */ 1412 PUSH32(esp, ecx); /* 0x2B0555E0: push ecx */ 1413 ecx = MEM32(0x2B0EEB08); /* 0x2B0555E1: mov ecx, dword ptr [0x2b0eeb08] */ 1414 PUSH32(esp, edx); /* 0x2B0555E7: push edx */ 1415 PUSH32(esp, eax); /* 0x2B0555E8: push eax */ 1416 RECOMP_ICALL(0x2B04FF70u); /* 0x2B0555E9: call 0x2b04ff70 */ /* not lifted */ 1417 RECOMP_FLAGS_IN(); 1418 ebp = POP32_VAL(esp); /* 0x2B0555EE: pop ebp */ 1419 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B0555EF: ret 0x10 */ 1420 RECOMP_REGS_OUT(); 1421 } 1422 1423 void sub_2B055600(void) { 1424 int _fpu_cmp = 0; 1425 uint32_t _cf = 0; 1426 int _df = 1; 1427 uint32_t _flag_k = FK_NONE; 1428 uint32_t _flag_a = 0, _flag_b = 0; 1429 uint32_t _itail_tgt = 0; 1430 RECOMP_REGS_LOCALS 1431 RECOMP_ENTER(0x2B055600u); 1432 1433 L_2B055600: 1434 PUSH32(esp, ebp); /* 0x2B055600: push ebp */ 1435 ebp = esp; /* 0x2B055601: mov ebp, esp */ 1436 eax = MEM32(ebp + 0x10); /* 0x2B055603: mov eax, dword ptr [ebp + 0x10] */ 1437 ecx = MEM32(ebp + 0xC); /* 0x2B055606: mov ecx, dword ptr [ebp + 0xc] */ 1438 edx = MEM32(ebp + 0x8); /* 0x2B055609: mov edx, dword ptr [ebp + 8] */ 1439 PUSH32(esp, eax); /* 0x2B05560C: push eax */ 1440 PUSH32(esp, ecx); /* 0x2B05560D: push ecx */ 1441 ecx = MEM32(0x2B0EEB08); /* 0x2B05560E: mov ecx, dword ptr [0x2b0eeb08] */ 1442 PUSH32(esp, edx); /* 0x2B055614: push edx */ 1443 RECOMP_ICALL(0x2B050120u); /* 0x2B055615: call 0x2b050120 */ /* not lifted */ 1444 RECOMP_FLAGS_IN(); 1445 ebp = POP32_VAL(esp); /* 0x2B05561A: pop ebp */ 1446 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B05561B: ret 0xc */ 1447 RECOMP_REGS_OUT(); 1448 } 1449 1450 void sub_2B055620(void) { 1451 int _fpu_cmp = 0; 1452 uint32_t _cf = 0; 1453 int _df = 1; 1454 uint32_t _flag_k = FK_NONE; 1455 uint32_t _flag_a = 0, _flag_b = 0; 1456 uint32_t _itail_tgt = 0; 1457 RECOMP_REGS_LOCALS 1458 RECOMP_ENTER(0x2B055620u); 1459 1460 L_2B055620: 1461 PUSH32(esp, ebp); /* 0x2B055620: push ebp */ 1462 ebp = esp; /* 0x2B055621: mov ebp, esp */ 1463 eax = MEM32(ebp + 0xC); /* 0x2B055623: mov eax, dword ptr [ebp + 0xc] */ 1464 ecx = MEM32(ebp + 0x8); /* 0x2B055626: mov ecx, dword ptr [ebp + 8] */ 1465 PUSH32(esp, eax); /* 0x2B055629: push eax */ 1466 PUSH32(esp, ecx); /* 0x2B05562A: push ecx */ 1467 ecx = MEM32(0x2B0EEB08); /* 0x2B05562B: mov ecx, dword ptr [0x2b0eeb08] */ 1468 RECOMP_ICALL(0x2B04E800u); /* 0x2B055631: call 0x2b04e800 */ /* not lifted */ 1469 RECOMP_FLAGS_IN(); 1470 ebp = POP32_VAL(esp); /* 0x2B055636: pop ebp */ 1471 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B055637: ret 8 */ 1472 RECOMP_REGS_OUT(); 1473 } 1474 1475 void sub_2B055640(void) { 1476 int _fpu_cmp = 0; 1477 uint32_t _cf = 0; 1478 int _df = 1; 1479 uint32_t _flag_k = FK_NONE; 1480 uint32_t _flag_a = 0, _flag_b = 0; 1481 uint32_t _itail_tgt = 0; 1482 RECOMP_REGS_LOCALS 1483 RECOMP_ENTER(0x2B055640u); 1484 1485 L_2B055640: 1486 PUSH32(esp, ebp); /* 0x2B055640: push ebp */ 1487 ebp = esp; /* 0x2B055641: mov ebp, esp */ 1488 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B055643: push -1 */ 1489 PUSH32(esp, 0x2B0AFC0Eu); /* 0x2B055645: push 0x2b0afc0e */ 1490 eax = MEM32(FS_BASE + (0)); /* 0x2B05564A: mov eax, dword ptr fs:[0] */ 1491 PUSH32(esp, eax); /* 0x2B055650: push eax */ 1492 MEM32(FS_BASE + (0)) = esp; /* 0x2B055651: mov dword ptr fs:[0], esp */ 1493 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu); 1494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1495 esp = esp - 0x10Cu; /* 0x2B055658: sub esp, 0x10c */ 1496 _flag_k = FK_CMP; 1497 PUSH32(esp, ebx); /* 0x2B05565E: push ebx */ 1498 PUSH32(esp, esi); /* 0x2B05565F: push esi */ 1499 esi = ecx; /* 0x2B055660: mov esi, ecx */ 1500 PUSH32(esp, edi); /* 0x2B055662: push edi */ 1501 MEM32(ebp + (-0xBC)) = esi; /* 0x2B055663: mov dword ptr [ebp - 0xbc], esi */ 1502 RECOMP_ICALL(0x2B03A220u); /* 0x2B055669: call 0x2b03a220 */ /* not lifted */ 1503 RECOMP_FLAGS_IN(); 1504 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1505 ebx = 0; /* 0x2B05566E: xor ebx, ebx */ 1506 _cf = 0; 1507 _flag_k = FK_TEST; 1508 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1509 eax = 0; /* 0x2B055670: xor eax, eax */ 1510 _cf = 0; 1511 _flag_k = FK_TEST; 1512 MEM8(esi + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B055672: mov byte ptr [esi + 0x3c], bl */ 1513 MEM32(esi + 0x54) = 0xFFFFFFFFu; /* 0x2B055675: mov dword ptr [esi + 0x54], 0xffffffff */ 1514 MEM8(esi + 0x58) = (uint8_t)(1); /* 0x2B05567C: mov byte ptr [esi + 0x58], 1 */ 1515 MEM8(esi + 0x59) = (uint8_t)(LO8(ebx)); /* 0x2B055680: mov byte ptr [esi + 0x59], bl */ 1516 MEM8(esi + 0x5A) = (uint8_t)(LO8(ebx)); /* 0x2B055683: mov byte ptr [esi + 0x5a], bl */ 1517 MEM32(esi + 0x60) = ebx; /* 0x2B055686: mov dword ptr [esi + 0x60], ebx */ 1518 ecx = 0xBu; /* 0x2B055689: mov ecx, 0xb */ 1519 edi = ebp + (-0x88); /* 0x2B05568E: lea edi, [ebp - 0x88] */ 1520 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B055694: 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; } 1521 MEM32(esi + 0x64) = ebx; /* 0x2B055696: mov dword ptr [esi + 0x64], ebx */ 1522 MEM32(esi + 0x68) = ebx; /* 0x2B055699: mov dword ptr [esi + 0x68], ebx */ 1523 ecx = 0xCu; /* 0x2B05569C: mov ecx, 0xc */ 1524 edi = ebp + (-0xB8); /* 0x2B0556A1: lea edi, [ebp - 0xb8] */ 1525 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0556A7: 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; } 1526 PUSH32(esp, 2); /* 0x2B0556A9: push 2 */ 1527 MEM32(esi) = 0x2B0B6AECu; /* 0x2B0556AB: mov dword ptr [esi], 0x2b0b6aec */ 1528 PUSH32(esp, 0x149u); /* 0x2B0556B1: push 0x149 */ 1529 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0556B6: mov dword ptr [ebp - 4], ebx */ 1530 MEM32(0x2B0EEB0C) = esi; /* 0x2B0556B9: mov dword ptr [0x2b0eeb0c], esi */ 1531 MEM32(ebp + (-0x88)) = 0x132u; /* 0x2B0556BF: mov dword ptr [ebp - 0x88], 0x132 */ 1532 MEM32(ebp + (-0x84)) = 0x133u; /* 0x2B0556C9: mov dword ptr [ebp - 0x84], 0x133 */ 1533 MEM32(ebp + (-0x80)) = 0x134u; /* 0x2B0556D3: mov dword ptr [ebp - 0x80], 0x134 */ 1534 MEM32(ebp + (-0x7C)) = 0x135u; /* 0x2B0556DA: mov dword ptr [ebp - 0x7c], 0x135 */ 1535 MEM32(ebp + (-0x78)) = 0x136u; /* 0x2B0556E1: mov dword ptr [ebp - 0x78], 0x136 */ 1536 MEM32(ebp + (-0x74)) = 0x137u; /* 0x2B0556E8: mov dword ptr [ebp - 0x74], 0x137 */ 1537 MEM32(ebp + (-0x70)) = 0x138u; /* 0x2B0556EF: mov dword ptr [ebp - 0x70], 0x138 */ 1538 MEM32(ebp + (-0x6C)) = 0x139u; /* 0x2B0556F6: mov dword ptr [ebp - 0x6c], 0x139 */ 1539 MEM32(ebp + (-0x68)) = 0x13Au; /* 0x2B0556FD: mov dword ptr [ebp - 0x68], 0x13a */ 1540 MEM32(ebp + (-0x64)) = 0x13Bu; /* 0x2B055704: mov dword ptr [ebp - 0x64], 0x13b */ 1541 MEM32(ebp + (-0x60)) = 0x13Cu; /* 0x2B05570B: mov dword ptr [ebp - 0x60], 0x13c */ 1542 MEM32(ebp + (-0xB8)) = 0x13Du; /* 0x2B055712: mov dword ptr [ebp - 0xb8], 0x13d */ 1543 MEM32(ebp + (-0xB4)) = 0x13Eu; /* 0x2B05571C: mov dword ptr [ebp - 0xb4], 0x13e */ 1544 MEM32(ebp + (-0xB0)) = 0x13Fu; /* 0x2B055726: mov dword ptr [ebp - 0xb0], 0x13f */ 1545 MEM32(ebp + (-0xAC)) = 0x140u; /* 0x2B055730: mov dword ptr [ebp - 0xac], 0x140 */ 1546 MEM32(ebp + (-0xA8)) = 0x141u; /* 0x2B05573A: mov dword ptr [ebp - 0xa8], 0x141 */ 1547 MEM32(ebp + (-0xA4)) = 0x142u; /* 0x2B055744: mov dword ptr [ebp - 0xa4], 0x142 */ 1548 MEM32(ebp + (-0xA0)) = 0x143u; /* 0x2B05574E: mov dword ptr [ebp - 0xa0], 0x143 */ 1549 MEM32(ebp + (-0x9C)) = 0x144u; /* 0x2B055758: mov dword ptr [ebp - 0x9c], 0x144 */ 1550 MEM32(ebp + (-0x98)) = 0x145u; /* 0x2B055762: mov dword ptr [ebp - 0x98], 0x145 */ 1551 MEM32(ebp + (-0x94)) = 0x146u; /* 0x2B05576C: mov dword ptr [ebp - 0x94], 0x146 */ 1552 MEM32(ebp + (-0x90)) = 0x147u; /* 0x2B055776: mov dword ptr [ebp - 0x90], 0x147 */ 1553 MEM32(ebp + (-0x8C)) = 0x148u; /* 0x2B055780: mov dword ptr [ebp - 0x8c], 0x148 */ 1554 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B05578A: call dword ptr [0x2b0b5f80] */ 1555 RECOMP_FLAGS_IN(); 1556 ecx = eax; /* 0x2B055790: mov ecx, eax */ 1557 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B055792: call dword ptr [0x2b0b5fbc] */ 1558 RECOMP_FLAGS_IN(); 1559 MEM32(ebp + (-0x10)) = eax; /* 0x2B055798: mov dword ptr [ebp - 0x10], eax */ 1560 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1561 edi = 0; /* 0x2B05579B: xor edi, edi */ 1562 _cf = 0; 1563 _flag_k = FK_TEST; 1564 L_2B05579D: 1565 eax = MEM32(ebp + edi + (-0x88)); /* 0x2B05579D: mov eax, dword ptr [ebp + edi - 0x88] */ 1566 /* cmp eax, ebx */ /* 0x2B0557A4: cmp eax, ebx */ 1567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1569 _flag_k = FK_CMP; 1570 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0557C2; /* 0x2B0557A6: je 0x2b0557c2 */ 1571 L_2B0557A8: 1572 PUSH32(esp, 2); /* 0x2B0557A8: push 2 */ 1573 PUSH32(esp, eax); /* 0x2B0557AA: push eax */ 1574 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B0557AB: call dword ptr [0x2b0b5f80] */ 1575 RECOMP_FLAGS_IN(); 1576 ecx = eax; /* 0x2B0557B1: mov ecx, eax */ 1577 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B0557B3: call dword ptr [0x2b0b5fbc] */ 1578 RECOMP_FLAGS_IN(); 1579 MEM32(ebp + edi + (-0xE8)) = eax; /* 0x2B0557B9: mov dword ptr [ebp + edi - 0xe8], eax */ 1580 goto L_2B0557C9; /* 0x2B0557C0: jmp 0x2b0557c9 */ 1581 L_2B0557C2: 1582 MEM32(ebp + edi + (-0xE8)) = ebx; /* 0x2B0557C2: mov dword ptr [ebp + edi - 0xe8], ebx */ 1583 L_2B0557C9: 1584 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1586 edi = edi + 4; /* 0x2B0557C9: add edi, 4 */ 1587 _flag_k = FK_ADD; 1588 /* cmp edi, 0x2Cu */ /* 0x2B0557CC: cmp edi, 0x2c */ 1589 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x2Cu); 1590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1591 _flag_k = FK_CMP; 1592 RECOMP_BACKEDGE(); 1593 if (CMP_L(_flag_a, _flag_b)) goto L_2B05579D; /* 0x2B0557CF: jl 0x2b05579d */ 1594 L_2B0557D1: 1595 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1596 edi = 0; /* 0x2B0557D1: xor edi, edi */ 1597 _cf = 0; 1598 _flag_k = FK_TEST; 1599 L_2B0557D3: 1600 eax = MEM32(ebp + edi + (-0xB8)); /* 0x2B0557D3: mov eax, dword ptr [ebp + edi - 0xb8] */ 1601 /* cmp eax, ebx */ /* 0x2B0557DA: cmp eax, ebx */ 1602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1604 _flag_k = FK_CMP; 1605 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0557F8; /* 0x2B0557DC: je 0x2b0557f8 */ 1606 L_2B0557DE: 1607 PUSH32(esp, 2); /* 0x2B0557DE: push 2 */ 1608 PUSH32(esp, eax); /* 0x2B0557E0: push eax */ 1609 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B0557E1: call dword ptr [0x2b0b5f80] */ 1610 RECOMP_FLAGS_IN(); 1611 ecx = eax; /* 0x2B0557E7: mov ecx, eax */ 1612 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B0557E9: call dword ptr [0x2b0b5fbc] */ 1613 RECOMP_FLAGS_IN(); 1614 MEM32(ebp + edi + (-0x118)) = eax; /* 0x2B0557EF: mov dword ptr [ebp + edi - 0x118], eax */ 1615 goto L_2B0557FF; /* 0x2B0557F6: jmp 0x2b0557ff */ 1616 L_2B0557F8: 1617 MEM32(ebp + edi + (-0x118)) = ebx; /* 0x2B0557F8: mov dword ptr [ebp + edi - 0x118], ebx */ 1618 L_2B0557FF: 1619 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1621 edi = edi + 4; /* 0x2B0557FF: add edi, 4 */ 1622 _flag_k = FK_ADD; 1623 /* cmp edi, 0x30u */ /* 0x2B055802: cmp edi, 0x30 */ 1624 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 1625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1626 _flag_k = FK_CMP; 1627 RECOMP_BACKEDGE(); 1628 if (CMP_L(_flag_a, _flag_b)) goto L_2B0557D3; /* 0x2B055805: jl 0x2b0557d3 */ 1629 L_2B055807: 1630 PUSH32(esp, 0xE0u); /* 0x2B055807: push 0xe0 */ 1631 RECOMP_ICALL(0x2B0AB212u); /* 0x2B05580C: call 0x2b0ab212 */ /* not lifted */ 1632 RECOMP_FLAGS_IN(); 1633 edi = eax; /* 0x2B055811: mov edi, eax */ 1634 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1636 esp = esp + 4; /* 0x2B055813: add esp, 4 */ 1637 _flag_k = FK_ADD; 1638 MEM32(ebp + (-0x14)) = edi; /* 0x2B055816: mov dword ptr [ebp - 0x14], edi */ 1639 /* cmp edi, ebx */ /* 0x2B055819: cmp edi, ebx */ 1640 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1642 _flag_k = FK_CMP; 1643 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B05581B: mov byte ptr [ebp - 4], 1 */ 1644 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05584A; /* 0x2B05581F: je 0x2b05584a */ 1645 L_2B055821: 1646 eax = MEM32(ebp + (-0x10)); /* 0x2B055821: mov eax, dword ptr [ebp - 0x10] */ 1647 PUSH32(esp, 1); /* 0x2B055824: push 1 */ 1648 PUSH32(esp, 0x2328u); /* 0x2B055826: push 0x2328 */ 1649 PUSH32(esp, eax); /* 0x2B05582B: push eax */ 1650 ecx = ebp + (-0x118); /* 0x2B05582C: lea ecx, [ebp - 0x118] */ 1651 PUSH32(esp, ecx); /* 0x2B055832: push ecx */ 1652 edx = ebp + (-0xE8); /* 0x2B055833: lea edx, [ebp - 0xe8] */ 1653 PUSH32(esp, edx); /* 0x2B055839: push edx */ 1654 ecx = edi; /* 0x2B05583A: mov ecx, edi */ 1655 RECOMP_ICALL(MEM32(0x2B0B5548)); /* 0x2B05583C: call dword ptr [0x2b0b5548] */ 1656 RECOMP_FLAGS_IN(); 1657 MEM32(edi) = 0x2B0B6AD0u; /* 0x2B055842: mov dword ptr [edi], 0x2b0b6ad0 */ 1658 goto L_2B05584C; /* 0x2B055848: jmp 0x2b05584c */ 1659 L_2B05584A: 1660 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1661 edi = 0; /* 0x2B05584A: xor edi, edi */ 1662 _cf = 0; 1663 _flag_k = FK_TEST; 1664 L_2B05584C: 1665 MEM32(esi + 0x5C) = edi; /* 0x2B05584C: mov dword ptr [esi + 0x5c], edi */ 1666 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B05584F: mov byte ptr [ebp - 4], bl */ 1667 edi = ebp + (-0xE8); /* 0x2B055852: lea edi, [ebp - 0xe8] */ 1668 MEM32(ebp + (-0x14)) = 0xBu; /* 0x2B055858: mov dword ptr [ebp - 0x14], 0xb */ 1669 L_2B05585F: 1670 eax = MEM32(edi); /* 0x2B05585F: mov eax, dword ptr [edi] */ 1671 /* cmp eax, ebx */ /* 0x2B055861: cmp eax, ebx */ 1672 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1674 _flag_k = FK_CMP; 1675 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B055874; /* 0x2B055863: je 0x2b055874 */ 1676 L_2B055865: 1677 PUSH32(esp, eax); /* 0x2B055865: push eax */ 1678 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B055866: call dword ptr [0x2b0b5f80] */ 1679 RECOMP_FLAGS_IN(); 1680 ecx = eax; /* 0x2B05586C: mov ecx, eax */ 1681 RECOMP_ICALL(MEM32(0x2B0B5FB8)); /* 0x2B05586E: call dword ptr [0x2b0b5fb8] */ 1682 RECOMP_FLAGS_IN(); 1683 L_2B055874: 1684 eax = MEM32(ebp + (-0x14)); /* 0x2B055874: mov eax, dword ptr [ebp - 0x14] */ 1685 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1687 edi = edi + 4; /* 0x2B055877: add edi, 4 */ 1688 _flag_k = FK_ADD; 1689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1690 eax = eax - 1; /* 0x2B05587A: dec eax */ 1691 _flag_k = FK_DEC; 1692 MEM32(ebp + (-0x14)) = eax; /* 0x2B05587B: mov dword ptr [ebp - 0x14], eax */ 1693 RECOMP_BACKEDGE(); 1694 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B05585F; /* 0x2B05587E: jne 0x2b05585f */ 1695 L_2B055880: 1696 edi = ebp + (-0x118); /* 0x2B055880: lea edi, [ebp - 0x118] */ 1697 MEM32(ebp + (-0x14)) = 0xCu; /* 0x2B055886: mov dword ptr [ebp - 0x14], 0xc */ 1698 L_2B05588D: 1699 eax = MEM32(edi); /* 0x2B05588D: mov eax, dword ptr [edi] */ 1700 /* cmp eax, ebx */ /* 0x2B05588F: cmp eax, ebx */ 1701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1703 _flag_k = FK_CMP; 1704 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0558A2; /* 0x2B055891: je 0x2b0558a2 */ 1705 L_2B055893: 1706 PUSH32(esp, eax); /* 0x2B055893: push eax */ 1707 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B055894: call dword ptr [0x2b0b5f80] */ 1708 RECOMP_FLAGS_IN(); 1709 ecx = eax; /* 0x2B05589A: mov ecx, eax */ 1710 RECOMP_ICALL(MEM32(0x2B0B5FB8)); /* 0x2B05589C: call dword ptr [0x2b0b5fb8] */ 1711 RECOMP_FLAGS_IN(); 1712 L_2B0558A2: 1713 eax = MEM32(ebp + (-0x14)); /* 0x2B0558A2: mov eax, dword ptr [ebp - 0x14] */ 1714 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1716 edi = edi + 4; /* 0x2B0558A5: add edi, 4 */ 1717 _flag_k = FK_ADD; 1718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1719 eax = eax - 1; /* 0x2B0558A8: dec eax */ 1720 _flag_k = FK_DEC; 1721 MEM32(ebp + (-0x14)) = eax; /* 0x2B0558A9: mov dword ptr [ebp - 0x14], eax */ 1722 RECOMP_BACKEDGE(); 1723 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B05588D; /* 0x2B0558AC: jne 0x2b05588d */ 1724 L_2B0558AE: 1725 eax = MEM32(ebp + (-0x10)); /* 0x2B0558AE: mov eax, dword ptr [ebp - 0x10] */ 1726 PUSH32(esp, eax); /* 0x2B0558B1: push eax */ 1727 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B0558B2: call dword ptr [0x2b0b5f80] */ 1728 RECOMP_FLAGS_IN(); 1729 ecx = eax; /* 0x2B0558B8: mov ecx, eax */ 1730 RECOMP_ICALL(MEM32(0x2B0B5FB8)); /* 0x2B0558BA: call dword ptr [0x2b0b5fb8] */ 1731 RECOMP_FLAGS_IN(); 1732 PUSH32(esp, 0x38u); /* 0x2B0558C0: push 0x38 */ 1733 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B0558C2: mov dword ptr [ebp - 0x5c], ebx */ 1734 MEM32(ebp + (-0x58)) = ebx; /* 0x2B0558C5: mov dword ptr [ebp - 0x58], ebx */ 1735 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0558C8: call 0x2b0ab212 */ /* not lifted */ 1736 RECOMP_FLAGS_IN(); 1737 edi = eax; /* 0x2B0558CD: mov edi, eax */ 1738 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1740 esp = esp + 4; /* 0x2B0558CF: add esp, 4 */ 1741 _flag_k = FK_ADD; 1742 MEM32(ebp + (-0x10)) = edi; /* 0x2B0558D2: mov dword ptr [ebp - 0x10], edi */ 1743 /* cmp edi, ebx */ /* 0x2B0558D5: cmp edi, ebx */ 1744 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1746 _flag_k = FK_CMP; 1747 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B0558D7: mov byte ptr [ebp - 4], 2 */ 1748 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B055902; /* 0x2B0558DB: je 0x2b055902 */ 1749 L_2B0558DD: 1750 ecx = MEM32(0x2B0EE9DC); /* 0x2B0558DD: mov ecx, dword ptr [0x2b0ee9dc] */ 1751 PUSH32(esp, ecx); /* 0x2B0558E3: push ecx */ 1752 PUSH32(esp, 0xFA2u); /* 0x2B0558E4: push 0xfa2 */ 1753 PUSH32(esp, 0x14Au); /* 0x2B0558E9: push 0x14a */ 1754 edx = ebp + (-0x5C); /* 0x2B0558EE: lea edx, [ebp - 0x5c] */ 1755 PUSH32(esp, edx); /* 0x2B0558F1: push edx */ 1756 ecx = edi; /* 0x2B0558F2: mov ecx, edi */ 1757 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B0558F4: call dword ptr [0x2b0b5948] */ 1758 RECOMP_FLAGS_IN(); 1759 MEM32(edi) = 0x2B0B68F4u; /* 0x2B0558FA: mov dword ptr [edi], 0x2b0b68f4 */ 1760 goto L_2B055904; /* 0x2B055900: jmp 0x2b055904 */ 1761 L_2B055902: 1762 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1763 edi = 0; /* 0x2B055902: xor edi, edi */ 1764 _cf = 0; 1765 _flag_k = FK_TEST; 1766 L_2B055904: 1767 PUSH32(esp, 0x68u); /* 0x2B055904: push 0x68 */ 1768 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B055906: mov byte ptr [ebp - 4], bl */ 1769 MEM32(esi + 0x2C) = edi; /* 0x2B055909: mov dword ptr [esi + 0x2c], edi */ 1770 RECOMP_ICALL(0x2B0AB212u); /* 0x2B05590C: call 0x2b0ab212 */ /* not lifted */ 1771 RECOMP_FLAGS_IN(); 1772 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1773 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1774 esp = esp + 4; /* 0x2B055911: add esp, 4 */ 1775 _flag_k = FK_ADD; 1776 MEM32(ebp + (-0x10)) = eax; /* 0x2B055914: mov dword ptr [ebp - 0x10], eax */ 1777 /* cmp eax, ebx */ /* 0x2B055917: cmp eax, ebx */ 1778 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1780 _flag_k = FK_CMP; 1781 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B055919: mov byte ptr [ebp - 4], 3 */ 1782 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05592E; /* 0x2B05591D: je 0x2b05592e */ 1783 L_2B05591F: 1784 PUSH32(esp, 0x2328u); /* 0x2B05591F: push 0x2328 */ 1785 PUSH32(esp, esi); /* 0x2B055924: push esi */ 1786 ecx = eax; /* 0x2B055925: mov ecx, eax */ 1787 RECOMP_ICALL(0x2B0567D0u); /* 0x2B055927: call 0x2b0567d0 */ /* not lifted */ 1788 RECOMP_FLAGS_IN(); 1789 goto L_2B055930; /* 0x2B05592C: jmp 0x2b055930 */ 1790 L_2B05592E: 1791 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1792 eax = 0; /* 0x2B05592E: xor eax, eax */ 1793 _cf = 0; 1794 _flag_k = FK_TEST; 1795 L_2B055930: 1796 PUSH32(esp, 0x2B0E85FCu); /* 0x2B055930: push 0x2b0e85fc */ 1797 ecx = eax; /* 0x2B055935: mov ecx, eax */ 1798 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B055937: mov byte ptr [ebp - 4], bl */ 1799 MEM32(esi + 0x28) = eax; /* 0x2B05593A: mov dword ptr [esi + 0x28], eax */ 1800 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B05593D: call dword ptr [0x2b0b5c04] */ 1801 RECOMP_FLAGS_IN(); 1802 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1803 eax = 0; /* 0x2B055943: xor eax, eax */ 1804 _cf = 0; 1805 _flag_k = FK_TEST; 1806 ecx = 0xCu; /* 0x2B055945: mov ecx, 0xc */ 1807 edi = ebp + (-0x4C); /* 0x2B05594A: lea edi, [ebp - 0x4c] */ 1808 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05594D: 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; } 1809 PUSH32(esp, 2); /* 0x2B05594F: push 2 */ 1810 eax = ebp + (-0x1C); /* 0x2B055951: lea eax, [ebp - 0x1c] */ 1811 PUSH32(esp, 0x14Bu); /* 0x2B055954: push 0x14b */ 1812 PUSH32(esp, eax); /* 0x2B055959: push eax */ 1813 MEM32(esi + 0x4C) = ebx; /* 0x2B05595A: mov dword ptr [esi + 0x4c], ebx */ 1814 MEM32(esi + 0x50) = ebx; /* 0x2B05595D: mov dword ptr [esi + 0x50], ebx */ 1815 MEM32(ebp + (-0x34)) = 0xFACu; /* 0x2B055960: mov dword ptr [ebp - 0x34], 0xfac */ 1816 MEM32(ebp + (-0x2C)) = 0x14Bu; /* 0x2B055967: mov dword ptr [ebp - 0x2c], 0x14b */ 1817 MEM32(ebp + (-0x28)) = 0x14Cu; /* 0x2B05596E: mov dword ptr [ebp - 0x28], 0x14c */ 1818 MEM32(ebp + (-0x30)) = 0x14Du; /* 0x2B055975: mov dword ptr [ebp - 0x30], 0x14d */ 1819 MEM32(ebp + (-0x4C)) = 1; /* 0x2B05597C: mov dword ptr [ebp - 0x4c], 1 */ 1820 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B055983: call dword ptr [0x2b0b5f80] */ 1821 RECOMP_FLAGS_IN(); 1822 ecx = eax; /* 0x2B055989: mov ecx, eax */ 1823 RECOMP_ICALL(MEM32(0x2B0B5F7C)); /* 0x2B05598B: call dword ptr [0x2b0b5f7c] */ 1824 RECOMP_FLAGS_IN(); 1825 PUSH32(esp, 0xBCu); /* 0x2B055991: push 0xbc */ 1826 RECOMP_ICALL(0x2B0AB212u); /* 0x2B055996: call 0x2b0ab212 */ /* not lifted */ 1827 RECOMP_FLAGS_IN(); 1828 edi = eax; /* 0x2B05599B: mov edi, eax */ 1829 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1831 esp = esp + 4; /* 0x2B05599D: add esp, 4 */ 1832 _flag_k = FK_ADD; 1833 MEM32(ebp + (-0x10)) = edi; /* 0x2B0559A0: mov dword ptr [ebp - 0x10], edi */ 1834 /* cmp edi, ebx */ /* 0x2B0559A3: cmp edi, ebx */ 1835 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1837 _flag_k = FK_CMP; 1838 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B0559A5: mov byte ptr [ebp - 4], 4 */ 1839 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0559C8; /* 0x2B0559A9: je 0x2b0559c8 */ 1840 L_2B0559AB: 1841 ecx = MEM32(0x2B0EE9DC); /* 0x2B0559AB: mov ecx, dword ptr [0x2b0ee9dc] */ 1842 PUSH32(esp, ecx); /* 0x2B0559B1: push ecx */ 1843 edx = ebp + (-0x4C); /* 0x2B0559B2: lea edx, [ebp - 0x4c] */ 1844 PUSH32(esp, edx); /* 0x2B0559B5: push edx */ 1845 ecx = edi; /* 0x2B0559B6: mov ecx, edi */ 1846 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B0559B8: call dword ptr [0x2b0b5afc] */ 1847 RECOMP_FLAGS_IN(); 1848 MEM32(edi) = 0x2B0B645Cu; /* 0x2B0559BE: mov dword ptr [edi], 0x2b0b645c */ 1849 ecx = edi; /* 0x2B0559C4: mov ecx, edi */ 1850 goto L_2B0559CA; /* 0x2B0559C6: jmp 0x2b0559ca */ 1851 L_2B0559C8: 1852 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1853 ecx = 0; /* 0x2B0559C8: xor ecx, ecx */ 1854 _cf = 0; 1855 _flag_k = FK_TEST; 1856 L_2B0559CA: 1857 PUSH32(esp, ebx); /* 0x2B0559CA: push ebx */ 1858 PUSH32(esp, 0x2B0566B0u); /* 0x2B0559CB: push 0x2b0566b0 */ 1859 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0559D0: mov byte ptr [ebp - 4], bl */ 1860 MEM32(esi + 0x30) = ecx; /* 0x2B0559D3: mov dword ptr [esi + 0x30], ecx */ 1861 RECOMP_ICALL(MEM32(0x2B0B5AF8)); /* 0x2B0559D6: call dword ptr [0x2b0b5af8] */ 1862 RECOMP_FLAGS_IN(); 1863 ecx = MEM32(esi + 0x30); /* 0x2B0559DC: mov ecx, dword ptr [esi + 0x30] */ 1864 PUSH32(esp, 0x2B0E85D0u); /* 0x2B0559DF: push 0x2b0e85d0 */ 1865 RECOMP_ICALL(MEM32(0x2B0B5810)); /* 0x2B0559E4: call dword ptr [0x2b0b5810] */ 1866 RECOMP_FLAGS_IN(); 1867 eax = MEM32(esi + 0x5C); /* 0x2B0559EA: mov eax, dword ptr [esi + 0x5c] */ 1868 /* cmp MEM8(eax + 0x67), LO8(ebx) */ /* 0x2B0559ED: cmp byte ptr [eax + 0x67], bl */ 1869 _flag_a = (uint32_t)(MEM8(eax + 0x67)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1871 _flag_k = FK_NARROW(FK_CMP, 24); 1872 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0559FD; /* 0x2B0559F0: je 0x2b0559fd */ 1873 L_2B0559F2: 1874 ecx = MEM32(esi + 0x30); /* 0x2B0559F2: mov ecx, dword ptr [esi + 0x30] */ 1875 PUSH32(esp, 2); /* 0x2B0559F5: push 2 */ 1876 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B0559F7: call dword ptr [0x2b0b5ab4] */ 1877 RECOMP_FLAGS_IN(); 1878 L_2B0559FD: 1879 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1880 eax = 0; /* 0x2B0559FD: xor eax, eax */ 1881 _cf = 0; 1882 _flag_k = FK_TEST; 1883 ecx = 0xCu; /* 0x2B0559FF: mov ecx, 0xc */ 1884 edi = ebp + (-0x4C); /* 0x2B055A04: lea edi, [ebp - 0x4c] */ 1885 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B055A07: 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; } 1886 PUSH32(esp, 2); /* 0x2B055A09: push 2 */ 1887 ecx = ebp + (-0x1C); /* 0x2B055A0B: lea ecx, [ebp - 0x1c] */ 1888 PUSH32(esp, 0x14Eu); /* 0x2B055A0E: push 0x14e */ 1889 PUSH32(esp, ecx); /* 0x2B055A13: push ecx */ 1890 MEM32(ebp + (-0x34)) = 0xFACu; /* 0x2B055A14: mov dword ptr [ebp - 0x34], 0xfac */ 1891 MEM32(ebp + (-0x2C)) = 0x14Eu; /* 0x2B055A1B: mov dword ptr [ebp - 0x2c], 0x14e */ 1892 MEM32(ebp + (-0x28)) = 0x14Fu; /* 0x2B055A22: mov dword ptr [ebp - 0x28], 0x14f */ 1893 MEM32(ebp + (-0x30)) = 0x150u; /* 0x2B055A29: mov dword ptr [ebp - 0x30], 0x150 */ 1894 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B055A30: call dword ptr [0x2b0b5f80] */ 1895 RECOMP_FLAGS_IN(); 1896 ecx = eax; /* 0x2B055A36: mov ecx, eax */ 1897 RECOMP_ICALL(MEM32(0x2B0B5F7C)); /* 0x2B055A38: call dword ptr [0x2b0b5f7c] */ 1898 RECOMP_FLAGS_IN(); 1899 PUSH32(esp, 0xBCu); /* 0x2B055A3E: push 0xbc */ 1900 RECOMP_ICALL(0x2B0AB212u); /* 0x2B055A43: call 0x2b0ab212 */ /* not lifted */ 1901 RECOMP_FLAGS_IN(); 1902 edi = eax; /* 0x2B055A48: mov edi, eax */ 1903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1905 esp = esp + 4; /* 0x2B055A4A: add esp, 4 */ 1906 _flag_k = FK_ADD; 1907 MEM32(ebp + (-0x10)) = edi; /* 0x2B055A4D: mov dword ptr [ebp - 0x10], edi */ 1908 /* cmp edi, ebx */ /* 0x2B055A50: cmp edi, ebx */ 1909 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1911 _flag_k = FK_CMP; 1912 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B055A52: mov byte ptr [ebp - 4], 5 */ 1913 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B055A75; /* 0x2B055A56: je 0x2b055a75 */ 1914 L_2B055A58: 1915 edx = MEM32(0x2B0EE9DC); /* 0x2B055A58: mov edx, dword ptr [0x2b0ee9dc] */ 1916 PUSH32(esp, edx); /* 0x2B055A5E: push edx */ 1917 eax = ebp + (-0x4C); /* 0x2B055A5F: lea eax, [ebp - 0x4c] */ 1918 PUSH32(esp, eax); /* 0x2B055A62: push eax */ 1919 ecx = edi; /* 0x2B055A63: mov ecx, edi */ 1920 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B055A65: call dword ptr [0x2b0b5afc] */ 1921 RECOMP_FLAGS_IN(); 1922 MEM32(edi) = 0x2B0B645Cu; /* 0x2B055A6B: mov dword ptr [edi], 0x2b0b645c */ 1923 ecx = edi; /* 0x2B055A71: mov ecx, edi */ 1924 goto L_2B055A77; /* 0x2B055A73: jmp 0x2b055a77 */ 1925 L_2B055A75: 1926 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1927 ecx = 0; /* 0x2B055A75: xor ecx, ecx */ 1928 _cf = 0; 1929 _flag_k = FK_TEST; 1930 L_2B055A77: 1931 PUSH32(esp, 1); /* 0x2B055A77: push 1 */ 1932 PUSH32(esp, 0x2B0566B0u); /* 0x2B055A79: push 0x2b0566b0 */ 1933 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B055A7E: mov byte ptr [ebp - 4], bl */ 1934 MEM32(esi + 0x34) = ecx; /* 0x2B055A81: mov dword ptr [esi + 0x34], ecx */ 1935 RECOMP_ICALL(MEM32(0x2B0B5AF8)); /* 0x2B055A84: call dword ptr [0x2b0b5af8] */ 1936 RECOMP_FLAGS_IN(); 1937 ecx = MEM32(esi + 0x34); /* 0x2B055A8A: mov ecx, dword ptr [esi + 0x34] */ 1938 PUSH32(esp, 0x2B0E85B0u); /* 0x2B055A8D: push 0x2b0e85b0 */ 1939 RECOMP_ICALL(MEM32(0x2B0B5810)); /* 0x2B055A92: call dword ptr [0x2b0b5810] */ 1940 RECOMP_FLAGS_IN(); 1941 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1942 eax = 0; /* 0x2B055A98: xor eax, eax */ 1943 _cf = 0; 1944 _flag_k = FK_TEST; 1945 ecx = 0xCu; /* 0x2B055A9A: mov ecx, 0xc */ 1946 edi = ebp + (-0x4C); /* 0x2B055A9F: lea edi, [ebp - 0x4c] */ 1947 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B055AA2: 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; } 1948 PUSH32(esp, 2); /* 0x2B055AA4: push 2 */ 1949 ecx = ebp + (-0x1C); /* 0x2B055AA6: lea ecx, [ebp - 0x1c] */ 1950 PUSH32(esp, 0x151u); /* 0x2B055AA9: push 0x151 */ 1951 PUSH32(esp, ecx); /* 0x2B055AAE: push ecx */ 1952 MEM32(ebp + (-0x34)) = 0xFACu; /* 0x2B055AAF: mov dword ptr [ebp - 0x34], 0xfac */ 1953 MEM32(ebp + (-0x2C)) = 0x151u; /* 0x2B055AB6: mov dword ptr [ebp - 0x2c], 0x151 */ 1954 MEM32(ebp + (-0x28)) = 0x152u; /* 0x2B055ABD: mov dword ptr [ebp - 0x28], 0x152 */ 1955 MEM32(ebp + (-0x30)) = 0x153u; /* 0x2B055AC4: mov dword ptr [ebp - 0x30], 0x153 */ 1956 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B055ACB: call dword ptr [0x2b0b5f80] */ 1957 RECOMP_FLAGS_IN(); 1958 ecx = eax; /* 0x2B055AD1: mov ecx, eax */ 1959 RECOMP_ICALL(MEM32(0x2B0B5F7C)); /* 0x2B055AD3: call dword ptr [0x2b0b5f7c] */ 1960 RECOMP_FLAGS_IN(); 1961 PUSH32(esp, 0xBCu); /* 0x2B055AD9: push 0xbc */ 1962 RECOMP_ICALL(0x2B0AB212u); /* 0x2B055ADE: call 0x2b0ab212 */ /* not lifted */ 1963 RECOMP_FLAGS_IN(); 1964 edi = eax; /* 0x2B055AE3: mov edi, eax */ 1965 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1966 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1967 esp = esp + 4; /* 0x2B055AE5: add esp, 4 */ 1968 _flag_k = FK_ADD; 1969 MEM32(ebp + (-0x10)) = edi; /* 0x2B055AE8: mov dword ptr [ebp - 0x10], edi */ 1970 /* cmp edi, ebx */ /* 0x2B055AEB: cmp edi, ebx */ 1971 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1973 _flag_k = FK_CMP; 1974 MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2B055AED: mov byte ptr [ebp - 4], 6 */ 1975 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B055B10; /* 0x2B055AF1: je 0x2b055b10 */ 1976 L_2B055AF3: 1977 edx = MEM32(0x2B0EE9DC); /* 0x2B055AF3: mov edx, dword ptr [0x2b0ee9dc] */ 1978 PUSH32(esp, edx); /* 0x2B055AF9: push edx */ 1979 eax = ebp + (-0x4C); /* 0x2B055AFA: lea eax, [ebp - 0x4c] */ 1980 PUSH32(esp, eax); /* 0x2B055AFD: push eax */ 1981 ecx = edi; /* 0x2B055AFE: mov ecx, edi */ 1982 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B055B00: call dword ptr [0x2b0b5afc] */ 1983 RECOMP_FLAGS_IN(); 1984 MEM32(edi) = 0x2B0B645Cu; /* 0x2B055B06: mov dword ptr [edi], 0x2b0b645c */ 1985 ecx = edi; /* 0x2B055B0C: mov ecx, edi */ 1986 goto L_2B055B12; /* 0x2B055B0E: jmp 0x2b055b12 */ 1987 L_2B055B10: 1988 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1989 ecx = 0; /* 0x2B055B10: xor ecx, ecx */ 1990 _cf = 0; 1991 _flag_k = FK_TEST; 1992 L_2B055B12: 1993 PUSH32(esp, 2); /* 0x2B055B12: push 2 */ 1994 PUSH32(esp, 0x2B0566B0u); /* 0x2B055B14: push 0x2b0566b0 */ 1995 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B055B19: mov byte ptr [ebp - 4], bl */ 1996 MEM32(esi + 0x38) = ecx; /* 0x2B055B1C: mov dword ptr [esi + 0x38], ecx */ 1997 RECOMP_ICALL(MEM32(0x2B0B5AF8)); /* 0x2B055B1F: call dword ptr [0x2b0b5af8] */ 1998 RECOMP_FLAGS_IN(); 1999 ecx = MEM32(esi + 0x38); /* 0x2B055B25: mov ecx, dword ptr [esi + 0x38] */ 2000 PUSH32(esp, 0x2B0E8594u); /* 0x2B055B28: push 0x2b0e8594 */ 2001 RECOMP_ICALL(MEM32(0x2B0B5810)); /* 0x2B055B2D: call dword ptr [0x2b0b5810] */ 2002 RECOMP_FLAGS_IN(); 2003 PUSH32(esp, 0x34u); /* 0x2B055B33: push 0x34 */ 2004 RECOMP_ICALL(0x2B0AB212u); /* 0x2B055B35: call 0x2b0ab212 */ /* not lifted */ 2005 RECOMP_FLAGS_IN(); 2006 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2008 esp = esp + 4; /* 0x2B055B3A: add esp, 4 */ 2009 _flag_k = FK_ADD; 2010 MEM32(ebp + (-0x10)) = eax; /* 0x2B055B3D: mov dword ptr [ebp - 0x10], eax */ 2011 /* cmp eax, ebx */ /* 0x2B055B40: cmp eax, ebx */ 2012 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2014 _flag_k = FK_CMP; 2015 MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2B055B42: mov byte ptr [ebp - 4], 7 */ 2016 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B055B5B; /* 0x2B055B46: je 0x2b055b5b */ 2017 L_2B055B48: 2018 PUSH32(esp, 2); /* 0x2B055B48: push 2 */ 2019 PUSH32(esp, 0x20u); /* 0x2B055B4A: push 0x20 */ 2020 PUSH32(esp, 0x100u); /* 0x2B055B4C: push 0x100 */ 2021 ecx = eax; /* 0x2B055B51: mov ecx, eax */ 2022 RECOMP_ICALL(MEM32(0x2B0B5650)); /* 0x2B055B53: call dword ptr [0x2b0b5650] */ 2023 RECOMP_FLAGS_IN(); 2024 goto L_2B055B5D; /* 0x2B055B59: jmp 0x2b055b5d */ 2025 L_2B055B5B: 2026 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2027 eax = 0; /* 0x2B055B5B: xor eax, eax */ 2028 _cf = 0; 2029 _flag_k = FK_TEST; 2030 L_2B055B5D: 2031 PUSH32(esp, 0x38u); /* 0x2B055B5D: push 0x38 */ 2032 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B055B5F: mov byte ptr [ebp - 4], bl */ 2033 MEM32(esi + 0x40) = eax; /* 0x2B055B62: mov dword ptr [esi + 0x40], eax */ 2034 RECOMP_ICALL(0x2B0AB212u); /* 0x2B055B65: call 0x2b0ab212 */ /* not lifted */ 2035 RECOMP_FLAGS_IN(); 2036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2038 esp = esp + 4; /* 0x2B055B6A: add esp, 4 */ 2039 _flag_k = FK_ADD; 2040 MEM32(ebp + (-0x10)) = eax; /* 0x2B055B6D: mov dword ptr [ebp - 0x10], eax */ 2041 /* cmp eax, ebx */ /* 0x2B055B70: cmp eax, ebx */ 2042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2044 _flag_k = FK_CMP; 2045 MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x2B055B72: mov byte ptr [ebp - 4], 8 */ 2046 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B055B89; /* 0x2B055B76: je 0x2b055b89 */ 2047 L_2B055B78: 2048 ecx = MEM32(esi + 0x40); /* 0x2B055B78: mov ecx, dword ptr [esi + 0x40] */ 2049 PUSH32(esp, ecx); /* 0x2B055B7B: push ecx */ 2050 PUSH32(esp, 2); /* 0x2B055B7C: push 2 */ 2051 PUSH32(esp, ebx); /* 0x2B055B7E: push ebx */ 2052 ecx = eax; /* 0x2B055B7F: mov ecx, eax */ 2053 RECOMP_ICALL(MEM32(0x2B0B5BF0)); /* 0x2B055B81: call dword ptr [0x2b0b5bf0] */ 2054 RECOMP_FLAGS_IN(); 2055 goto L_2B055B8B; /* 0x2B055B87: jmp 0x2b055b8b */ 2056 L_2B055B89: 2057 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2058 eax = 0; /* 0x2B055B89: xor eax, eax */ 2059 _cf = 0; 2060 _flag_k = FK_TEST; 2061 L_2B055B8B: 2062 PUSH32(esp, 0xD8u); /* 0x2B055B8B: push 0xd8 */ 2063 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B055B90: mov byte ptr [ebp - 4], bl */ 2064 MEM32(esi + 0x44) = eax; /* 0x2B055B93: mov dword ptr [esi + 0x44], eax */ 2065 MEM32(ebp + (-0x54)) = 0x14u; /* 0x2B055B96: mov dword ptr [ebp - 0x54], 0x14 */ 2066 MEM32(ebp + (-0x50)) = 0x1Eu; /* 0x2B055B9D: mov dword ptr [ebp - 0x50], 0x1e */ 2067 RECOMP_ICALL(0x2B0AB212u); /* 0x2B055BA4: call 0x2b0ab212 */ /* not lifted */ 2068 RECOMP_FLAGS_IN(); 2069 edi = eax; /* 0x2B055BA9: mov edi, eax */ 2070 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2071 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2072 esp = esp + 4; /* 0x2B055BAB: add esp, 4 */ 2073 _flag_k = FK_ADD; 2074 MEM32(ebp + (-0x18)) = edi; /* 0x2B055BAE: mov dword ptr [ebp - 0x18], edi */ 2075 /* cmp edi, ebx */ /* 0x2B055BB1: cmp edi, ebx */ 2076 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2078 _flag_k = FK_CMP; 2079 MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x2B055BB3: mov byte ptr [ebp - 4], 9 */ 2080 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B055BED; /* 0x2B055BB7: je 0x2b055bed */ 2081 L_2B055BB9: 2082 ecx = MEM32(esi + 0x40); /* 0x2B055BB9: mov ecx, dword ptr [esi + 0x40] */ 2083 edx = ebp + (-0x10); /* 0x2B055BBC: lea edx, [ebp - 0x10] */ 2084 PUSH32(esp, edx); /* 0x2B055BBF: push edx */ 2085 eax = ebp + (-0x14); /* 0x2B055BC0: lea eax, [ebp - 0x14] */ 2086 PUSH32(esp, eax); /* 0x2B055BC3: push eax */ 2087 PUSH32(esp, ebx); /* 0x2B055BC4: push ebx */ 2088 PUSH32(esp, 0x2332u); /* 0x2B055BC5: push 0x2332 */ 2089 PUSH32(esp, ecx); /* 0x2B055BCA: push ecx */ 2090 edx = ebp + (-0x54); /* 0x2B055BCB: lea edx, [ebp - 0x54] */ 2091 PUSH32(esp, edx); /* 0x2B055BCE: push edx */ 2092 ecx = edi; /* 0x2B055BCF: mov ecx, edi */ 2093 MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x2B055BD1: mov dword ptr [ebp - 0x10], 0x3f800000 */ 2094 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x2B055BD8: mov dword ptr [ebp - 0x14], 0x3f800000 */ 2095 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B055BDF: call dword ptr [0x2b0b5654] */ 2096 RECOMP_FLAGS_IN(); 2097 MEM32(edi) = 0x2B0B618Cu; /* 0x2B055BE5: mov dword ptr [edi], 0x2b0b618c */ 2098 goto L_2B055BEF; /* 0x2B055BEB: jmp 0x2b055bef */ 2099 L_2B055BED: 2100 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2101 edi = 0; /* 0x2B055BED: xor edi, edi */ 2102 _cf = 0; 2103 _flag_k = FK_TEST; 2104 L_2B055BEF: 2105 eax = MEM32(esi + 0x2C); /* 0x2B055BEF: mov eax, dword ptr [esi + 0x2c] */ 2106 MEM32(esi + 0x48) = edi; /* 0x2B055BF2: mov dword ptr [esi + 0x48], edi */ 2107 ecx = MEM32(eax + 0x14); /* 0x2B055BF5: mov ecx, dword ptr [eax + 0x14] */ 2108 eax = MEM32(ecx + 0x8); /* 0x2B055BF8: mov eax, dword ptr [ecx + 8] */ 2109 SET_LO8(ecx, MEM8(esi + 0x1C)); /* 0x2B055BFB: mov cl, byte ptr [esi + 0x1c] */ 2110 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFD3u); 2111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2112 eax = eax + 0xFFFFFFD3u; /* 0x2B055BFE: add eax, -0x2d */ 2113 _flag_k = FK_ADD; 2114 /* cmp LO8(ecx), LO8(ebx) */ /* 0x2B055C01: cmp cl, bl */ 2115 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2117 _flag_k = FK_NARROW(FK_CMP, 24); 2118 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B055C03: mov byte ptr [ebp - 4], bl */ 2119 MEM32(esi + 0x20) = eax; /* 0x2B055C06: mov dword ptr [esi + 0x20], eax */ 2120 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B055C13; /* 0x2B055C09: je 0x2b055c13 */ 2121 L_2B055C0B: 2122 /* cmp MEM8(esi + 0xC), LO8(ebx) */ /* 0x2B055C0B: cmp byte ptr [esi + 0xc], bl */ 2123 _flag_a = (uint32_t)(MEM8(esi + 0xC)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2125 _flag_k = FK_NARROW(FK_CMP, 24); 2126 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B055C13; /* 0x2B055C0E: je 0x2b055c13 */ 2127 L_2B055C10: 2128 MEM32(esi + 0x18) = eax; /* 0x2B055C10: mov dword ptr [esi + 0x18], eax */ 2129 L_2B055C13: 2130 PUSH32(esp, 0x2B0E8590u); /* 0x2B055C13: push 0x2b0e8590 */ 2131 PUSH32(esp, 1); /* 0x2B055C18: push 1 */ 2132 ecx = esi; /* 0x2B055C1A: mov ecx, esi */ 2133 RECOMP_ICALL(0x2B03A2D0u); /* 0x2B055C1C: call 0x2b03a2d0 */ /* not lifted */ 2134 RECOMP_FLAGS_IN(); 2135 PUSH32(esp, ebx); /* 0x2B055C21: push ebx */ 2136 ecx = esi; /* 0x2B055C22: mov ecx, esi */ 2137 RECOMP_ICALL(0x2B03A350u); /* 0x2B055C24: call 0x2b03a350 */ /* not lifted */ 2138 RECOMP_FLAGS_IN(); 2139 ecx = esi; /* 0x2B055C29: mov ecx, esi */ 2140 RECOMP_ICALL(0x2B055E20u); /* 0x2B055C2B: call 0x2b055e20 */ /* not lifted */ 2141 RECOMP_FLAGS_IN(); 2142 ecx = MEM32(0x2B0EE9F0); /* 0x2B055C30: mov ecx, dword ptr [0x2b0ee9f0] */ 2143 PUSH32(esp, 0x2B0E8584u); /* 0x2B055C36: push 0x2b0e8584 */ 2144 PUSH32(esp, 0x2B0E8590u); /* 0x2B055C3B: push 0x2b0e8590 */ 2145 PUSH32(esp, 0xCu); /* 0x2B055C40: push 0xc */ 2146 PUSH32(esp, 0x155u); /* 0x2B055C42: push 0x155 */ 2147 PUSH32(esp, 0x154u); /* 0x2B055C47: push 0x154 */ 2148 PUSH32(esp, esi); /* 0x2B055C4C: push esi */ 2149 RECOMP_ICALL(0x2B03BF90u); /* 0x2B055C4D: call 0x2b03bf90 */ /* not lifted */ 2150 RECOMP_FLAGS_IN(); 2151 ecx = MEM32(ebp + (-0xC)); /* 0x2B055C52: mov ecx, dword ptr [ebp - 0xc] */ 2152 edi = POP32_VAL(esp); /* 0x2B055C55: pop edi */ 2153 eax = esi; /* 0x2B055C56: mov eax, esi */ 2154 esi = POP32_VAL(esp); /* 0x2B055C58: pop esi */ 2155 ebx = POP32_VAL(esp); /* 0x2B055C59: pop ebx */ 2156 MEM32(FS_BASE + (0)) = ecx; /* 0x2B055C5A: mov dword ptr fs:[0], ecx */ 2157 esp = ebp; /* 0x2B055C61: mov esp, ebp */ 2158 ebp = POP32_VAL(esp); /* 0x2B055C63: pop ebp */ 2159 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B055C64: ret */ 2160 RECOMP_REGS_OUT(); 2161 } 2162 2163 void sub_2B055C70(void) { 2164 int _fpu_cmp = 0; 2165 uint32_t _cf = 0; 2166 int _df = 1; 2167 uint32_t _flag_k = FK_NONE; 2168 uint32_t _flag_a = 0, _flag_b = 0; 2169 uint32_t _itail_tgt = 0; 2170 RECOMP_REGS_LOCALS 2171 RECOMP_ENTER(0x2B055C70u); 2172 2173 L_2B055C70: 2174 goto L_2B056A60; /* 0x2B055C70: jmp 0x2b056a60 */ 2175 L_2B056A60: 2176 SET_LO8(eax, MEM8(0x2B0EE981)); /* 0x2B056A60: mov al, byte ptr [0x2b0ee981] */ 2177 /* test LO8(eax), LO8(eax) */ /* 0x2B056A65: test al, al */ 2178 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2179 _cf = 0; 2180 _flag_k = FK_NARROW(FK_TEST, 24); 2181 PUSH32(esp, esi); /* 0x2B056A67: push esi */ 2182 esi = ecx; /* 0x2B056A68: mov esi, ecx */ 2183 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056A84; /* 0x2B056A6A: je 0x2b056a84 */ 2184 L_2B056A6C: 2185 PUSH32(esp, 2); /* 0x2B056A6C: push 2 */ 2186 PUSH32(esp, 0x185u); /* 0x2B056A6E: push 0x185 */ 2187 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B056A73: call dword ptr [0x2b0b5d6c] */ 2188 RECOMP_FLAGS_IN(); 2189 ecx = eax; /* 0x2B056A79: mov ecx, eax */ 2190 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B056A7B: call dword ptr [0x2b0b5d70] */ 2191 RECOMP_FLAGS_IN(); 2192 MEM32(esi + 0x60) = eax; /* 0x2B056A81: mov dword ptr [esi + 0x60], eax */ 2193 L_2B056A84: 2194 ecx = esi; /* 0x2B056A84: mov ecx, esi */ 2195 RECOMP_ICALL(0x2B0565E0u); /* 0x2B056A86: call 0x2b0565e0 */ /* not lifted */ 2196 RECOMP_FLAGS_IN(); 2197 esi = POP32_VAL(esp); /* 0x2B056A8B: pop esi */ 2198 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056A8C: ret */ 2199 RECOMP_REGS_OUT(); 2200 } 2201 2202 void sub_2B055C80(void) { 2203 int _fpu_cmp = 0; 2204 uint32_t _cf = 0; 2205 int _df = 1; 2206 uint32_t _flag_k = FK_NONE; 2207 uint32_t _flag_a = 0, _flag_b = 0; 2208 uint32_t _itail_tgt = 0; 2209 RECOMP_REGS_LOCALS 2210 RECOMP_ENTER(0x2B055C80u); 2211 2212 L_2B055C80: 2213 RECOMP_ICALL(0x2B056A60u); /* 0x2B055C80: call 0x2b056a60 */ /* not lifted */ 2214 RECOMP_FLAGS_IN(); 2215 SET_LO8(eax, 1); /* 0x2B055C85: mov al, 1 */ 2216 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B055C87: ret */ 2217 RECOMP_REGS_OUT(); 2218 } 2219 2220 void sub_2B055C90(void) { 2221 int _fpu_cmp = 0; 2222 uint32_t _cf = 0; 2223 int _df = 1; 2224 uint32_t _flag_k = FK_NONE; 2225 uint32_t _flag_a = 0, _flag_b = 0; 2226 uint32_t _itail_tgt = 0; 2227 RECOMP_REGS_LOCALS 2228 RECOMP_ENTER(0x2B055C90u); 2229 2230 L_2B055C90: 2231 PUSH32(esp, ebp); /* 0x2B055C90: push ebp */ 2232 ebp = esp; /* 0x2B055C91: mov ebp, esp */ 2233 PUSH32(esp, esi); /* 0x2B055C93: push esi */ 2234 esi = ecx; /* 0x2B055C94: mov esi, ecx */ 2235 RECOMP_ICALL(0x2B055CF0u); /* 0x2B055C96: call 0x2b055cf0 */ /* not lifted */ 2236 RECOMP_FLAGS_IN(); 2237 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B055C9B: test byte ptr [ebp + 8], 1 */ 2238 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2239 _cf = 0; 2240 _flag_k = FK_NARROW(FK_TEST, 24); 2241 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055CAA; /* 0x2B055C9F: je 0x2b055caa */ 2242 L_2B055CA1: 2243 PUSH32(esp, esi); /* 0x2B055CA1: push esi */ 2244 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B055CA2: call 0x2b0ab1ba */ /* not lifted */ 2245 RECOMP_FLAGS_IN(); 2246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2248 esp = esp + 4; /* 0x2B055CA7: add esp, 4 */ 2249 _flag_k = FK_ADD; 2250 L_2B055CAA: 2251 eax = esi; /* 0x2B055CAA: mov eax, esi */ 2252 esi = POP32_VAL(esp); /* 0x2B055CAC: pop esi */ 2253 ebp = POP32_VAL(esp); /* 0x2B055CAD: pop ebp */ 2254 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B055CAE: ret 4 */ 2255 RECOMP_REGS_OUT(); 2256 } 2257 2258 void sub_2B055CC0(void) { 2259 int _fpu_cmp = 0; 2260 uint32_t _cf = 0; 2261 int _df = 1; 2262 uint32_t _flag_k = FK_NONE; 2263 uint32_t _flag_a = 0, _flag_b = 0; 2264 uint32_t _itail_tgt = 0; 2265 RECOMP_REGS_LOCALS 2266 RECOMP_ENTER(0x2B055CC0u); 2267 2268 L_2B055CC0: 2269 PUSH32(esp, ebp); /* 0x2B055CC0: push ebp */ 2270 ebp = esp; /* 0x2B055CC1: mov ebp, esp */ 2271 PUSH32(esp, esi); /* 0x2B055CC3: push esi */ 2272 esi = ecx; /* 0x2B055CC4: mov esi, ecx */ 2273 RECOMP_ICALL(MEM32(0x2B0B5544)); /* 0x2B055CC6: call dword ptr [0x2b0b5544] */ 2274 RECOMP_FLAGS_IN(); 2275 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B055CCC: test byte ptr [ebp + 8], 1 */ 2276 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2277 _cf = 0; 2278 _flag_k = FK_NARROW(FK_TEST, 24); 2279 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055CDB; /* 0x2B055CD0: je 0x2b055cdb */ 2280 L_2B055CD2: 2281 PUSH32(esp, esi); /* 0x2B055CD2: push esi */ 2282 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B055CD3: call 0x2b0ab1ba */ /* not lifted */ 2283 RECOMP_FLAGS_IN(); 2284 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2286 esp = esp + 4; /* 0x2B055CD8: add esp, 4 */ 2287 _flag_k = FK_ADD; 2288 L_2B055CDB: 2289 eax = esi; /* 0x2B055CDB: mov eax, esi */ 2290 esi = POP32_VAL(esp); /* 0x2B055CDD: pop esi */ 2291 ebp = POP32_VAL(esp); /* 0x2B055CDE: pop ebp */ 2292 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B055CDF: ret 4 */ 2293 RECOMP_REGS_OUT(); 2294 } 2295 2296 void sub_2B055CF0(void) { 2297 int _fpu_cmp = 0; 2298 uint32_t _cf = 0; 2299 int _df = 1; 2300 uint32_t _flag_k = FK_NONE; 2301 uint32_t _flag_a = 0, _flag_b = 0; 2302 uint32_t _itail_tgt = 0; 2303 RECOMP_REGS_LOCALS 2304 RECOMP_ENTER(0x2B055CF0u); 2305 2306 L_2B055CF0: 2307 PUSH32(esp, ebp); /* 0x2B055CF0: push ebp */ 2308 ebp = esp; /* 0x2B055CF1: mov ebp, esp */ 2309 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B055CF3: push -1 */ 2310 PUSH32(esp, 0x2B0AFC28u); /* 0x2B055CF5: push 0x2b0afc28 */ 2311 eax = MEM32(FS_BASE + (0)); /* 0x2B055CFA: mov eax, dword ptr fs:[0] */ 2312 PUSH32(esp, eax); /* 0x2B055D00: push eax */ 2313 MEM32(FS_BASE + (0)) = esp; /* 0x2B055D01: mov dword ptr fs:[0], esp */ 2314 PUSH32(esp, ecx); /* 0x2B055D08: push ecx */ 2315 PUSH32(esp, esi); /* 0x2B055D09: push esi */ 2316 esi = ecx; /* 0x2B055D0A: mov esi, ecx */ 2317 MEM32(ebp + (-0x10)) = esi; /* 0x2B055D0C: mov dword ptr [ebp - 0x10], esi */ 2318 MEM32(esi) = 0x2B0B6AECu; /* 0x2B055D0F: mov dword ptr [esi], 0x2b0b6aec */ 2319 MEM32(0x2B0EEB0C) = 0; /* 0x2B055D15: mov dword ptr [0x2b0eeb0c], 0 */ 2320 ecx = MEM32(esi + 0x28); /* 0x2B055D1F: mov ecx, dword ptr [esi + 0x28] */ 2321 /* test ecx, ecx */ /* 0x2B055D22: test ecx, ecx */ 2322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2323 _cf = 0; 2324 _flag_k = FK_TEST; 2325 MEM32(ebp + (-0x4)) = 0; /* 0x2B055D24: mov dword ptr [ebp - 4], 0 */ 2326 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055D33; /* 0x2B055D2B: je 0x2b055d33 */ 2327 L_2B055D2D: 2328 eax = MEM32(ecx); /* 0x2B055D2D: mov eax, dword ptr [ecx] */ 2329 PUSH32(esp, 1); /* 0x2B055D2F: push 1 */ 2330 RECOMP_ICALL(MEM32(eax)); /* 0x2B055D31: call dword ptr [eax] */ 2331 RECOMP_FLAGS_IN(); 2332 L_2B055D33: 2333 ecx = MEM32(esi + 0x2C); /* 0x2B055D33: mov ecx, dword ptr [esi + 0x2c] */ 2334 /* test ecx, ecx */ /* 0x2B055D36: test ecx, ecx */ 2335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2336 _cf = 0; 2337 _flag_k = FK_TEST; 2338 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055D40; /* 0x2B055D38: je 0x2b055d40 */ 2339 L_2B055D3A: 2340 edx = MEM32(ecx); /* 0x2B055D3A: mov edx, dword ptr [ecx] */ 2341 PUSH32(esp, 1); /* 0x2B055D3C: push 1 */ 2342 RECOMP_ICALL(MEM32(edx)); /* 0x2B055D3E: call dword ptr [edx] */ 2343 RECOMP_FLAGS_IN(); 2344 L_2B055D40: 2345 ecx = MEM32(esi + 0x5C); /* 0x2B055D40: mov ecx, dword ptr [esi + 0x5c] */ 2346 /* test ecx, ecx */ /* 0x2B055D43: test ecx, ecx */ 2347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2348 _cf = 0; 2349 _flag_k = FK_TEST; 2350 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055D4D; /* 0x2B055D45: je 0x2b055d4d */ 2351 L_2B055D47: 2352 eax = MEM32(ecx); /* 0x2B055D47: mov eax, dword ptr [ecx] */ 2353 PUSH32(esp, 1); /* 0x2B055D49: push 1 */ 2354 RECOMP_ICALL(MEM32(eax)); /* 0x2B055D4B: call dword ptr [eax] */ 2355 RECOMP_FLAGS_IN(); 2356 L_2B055D4D: 2357 ecx = MEM32(esi + 0x30); /* 0x2B055D4D: mov ecx, dword ptr [esi + 0x30] */ 2358 /* test ecx, ecx */ /* 0x2B055D50: test ecx, ecx */ 2359 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2360 _cf = 0; 2361 _flag_k = FK_TEST; 2362 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055D5A; /* 0x2B055D52: je 0x2b055d5a */ 2363 L_2B055D54: 2364 edx = MEM32(ecx); /* 0x2B055D54: mov edx, dword ptr [ecx] */ 2365 PUSH32(esp, 1); /* 0x2B055D56: push 1 */ 2366 RECOMP_ICALL(MEM32(edx)); /* 0x2B055D58: call dword ptr [edx] */ 2367 RECOMP_FLAGS_IN(); 2368 L_2B055D5A: 2369 ecx = MEM32(esi + 0x34); /* 0x2B055D5A: mov ecx, dword ptr [esi + 0x34] */ 2370 /* test ecx, ecx */ /* 0x2B055D5D: test ecx, ecx */ 2371 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2372 _cf = 0; 2373 _flag_k = FK_TEST; 2374 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055D67; /* 0x2B055D5F: je 0x2b055d67 */ 2375 L_2B055D61: 2376 eax = MEM32(ecx); /* 0x2B055D61: mov eax, dword ptr [ecx] */ 2377 PUSH32(esp, 1); /* 0x2B055D63: push 1 */ 2378 RECOMP_ICALL(MEM32(eax)); /* 0x2B055D65: call dword ptr [eax] */ 2379 RECOMP_FLAGS_IN(); 2380 L_2B055D67: 2381 ecx = MEM32(esi + 0x38); /* 0x2B055D67: mov ecx, dword ptr [esi + 0x38] */ 2382 /* test ecx, ecx */ /* 0x2B055D6A: test ecx, ecx */ 2383 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2384 _cf = 0; 2385 _flag_k = FK_TEST; 2386 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055D74; /* 0x2B055D6C: je 0x2b055d74 */ 2387 L_2B055D6E: 2388 edx = MEM32(ecx); /* 0x2B055D6E: mov edx, dword ptr [ecx] */ 2389 PUSH32(esp, 1); /* 0x2B055D70: push 1 */ 2390 RECOMP_ICALL(MEM32(edx)); /* 0x2B055D72: call dword ptr [edx] */ 2391 RECOMP_FLAGS_IN(); 2392 L_2B055D74: 2393 PUSH32(esp, edi); /* 0x2B055D74: push edi */ 2394 edi = MEM32(esi + 0x40); /* 0x2B055D75: mov edi, dword ptr [esi + 0x40] */ 2395 /* test edi, edi */ /* 0x2B055D78: test edi, edi */ 2396 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2397 _cf = 0; 2398 _flag_k = FK_TEST; 2399 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055D8D; /* 0x2B055D7A: je 0x2b055d8d */ 2400 L_2B055D7C: 2401 ecx = edi; /* 0x2B055D7C: mov ecx, edi */ 2402 RECOMP_ICALL(MEM32(0x2B0B5644)); /* 0x2B055D7E: call dword ptr [0x2b0b5644] */ 2403 RECOMP_FLAGS_IN(); 2404 PUSH32(esp, edi); /* 0x2B055D84: push edi */ 2405 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B055D85: call 0x2b0ab1ba */ /* not lifted */ 2406 RECOMP_FLAGS_IN(); 2407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2409 esp = esp + 4; /* 0x2B055D8A: add esp, 4 */ 2410 _flag_k = FK_ADD; 2411 L_2B055D8D: 2412 edi = MEM32(esi + 0x44); /* 0x2B055D8D: mov edi, dword ptr [esi + 0x44] */ 2413 /* test edi, edi */ /* 0x2B055D90: test edi, edi */ 2414 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2415 _cf = 0; 2416 _flag_k = FK_TEST; 2417 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055DA5; /* 0x2B055D92: je 0x2b055da5 */ 2418 L_2B055D94: 2419 ecx = edi; /* 0x2B055D94: mov ecx, edi */ 2420 RECOMP_ICALL(MEM32(0x2B0B5BBC)); /* 0x2B055D96: call dword ptr [0x2b0b5bbc] */ 2421 RECOMP_FLAGS_IN(); 2422 PUSH32(esp, edi); /* 0x2B055D9C: push edi */ 2423 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B055D9D: call 0x2b0ab1ba */ /* not lifted */ 2424 RECOMP_FLAGS_IN(); 2425 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2427 esp = esp + 4; /* 0x2B055DA2: add esp, 4 */ 2428 _flag_k = FK_ADD; 2429 L_2B055DA5: 2430 ecx = MEM32(esi + 0x48); /* 0x2B055DA5: mov ecx, dword ptr [esi + 0x48] */ 2431 /* test ecx, ecx */ /* 0x2B055DA8: test ecx, ecx */ 2432 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2433 _cf = 0; 2434 _flag_k = FK_TEST; 2435 edi = POP32_VAL(esp); /* 0x2B055DAA: pop edi */ 2436 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055DB3; /* 0x2B055DAB: je 0x2b055db3 */ 2437 L_2B055DAD: 2438 eax = MEM32(ecx); /* 0x2B055DAD: mov eax, dword ptr [ecx] */ 2439 PUSH32(esp, 1); /* 0x2B055DAF: push 1 */ 2440 RECOMP_ICALL(MEM32(eax)); /* 0x2B055DB1: call dword ptr [eax] */ 2441 RECOMP_FLAGS_IN(); 2442 L_2B055DB3: 2443 ecx = esi; /* 0x2B055DB3: mov ecx, esi */ 2444 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B055DB5: mov dword ptr [ebp - 4], 0xffffffff */ 2445 RECOMP_ICALL(0x2B03A290u); /* 0x2B055DBC: call 0x2b03a290 */ /* not lifted */ 2446 RECOMP_FLAGS_IN(); 2447 ecx = MEM32(ebp + (-0xC)); /* 0x2B055DC1: mov ecx, dword ptr [ebp - 0xc] */ 2448 esi = POP32_VAL(esp); /* 0x2B055DC4: pop esi */ 2449 MEM32(FS_BASE + (0)) = ecx; /* 0x2B055DC5: mov dword ptr fs:[0], ecx */ 2450 esp = ebp; /* 0x2B055DCC: mov esp, ebp */ 2451 ebp = POP32_VAL(esp); /* 0x2B055DCE: pop ebp */ 2452 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B055DCF: ret */ 2453 RECOMP_REGS_OUT(); 2454 } 2455 2456 void sub_2B055DD0(void) { 2457 int _fpu_cmp = 0; 2458 uint32_t _cf = 0; 2459 int _df = 1; 2460 uint32_t _flag_k = FK_NONE; 2461 uint32_t _flag_a = 0, _flag_b = 0; 2462 uint32_t _itail_tgt = 0; 2463 RECOMP_REGS_LOCALS 2464 RECOMP_ENTER(0x2B055DD0u); 2465 2466 L_2B055DD0: 2467 PUSH32(esp, esi); /* 0x2B055DD0: push esi */ 2468 esi = ecx; /* 0x2B055DD1: mov esi, ecx */ 2469 eax = MEM32(esi + 0x2C); /* 0x2B055DD3: mov eax, dword ptr [esi + 0x2c] */ 2470 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B055DD6: mov byte ptr [eax + 8], 1 */ 2471 ecx = MEM32(esi + 0x5C); /* 0x2B055DDA: mov ecx, dword ptr [esi + 0x5c] */ 2472 edx = MEM32(ecx); /* 0x2B055DDD: mov edx, dword ptr [ecx] */ 2473 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B055DDF: call dword ptr [edx + 8] */ 2474 RECOMP_FLAGS_IN(); 2475 eax = MEM32(esi + 0x28); /* 0x2B055DE2: mov eax, dword ptr [esi + 0x28] */ 2476 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B055DE5: mov byte ptr [eax + 8], 1 */ 2477 SET_LO8(eax, MEM8(esi + 0x3C)); /* 0x2B055DE9: mov al, byte ptr [esi + 0x3c] */ 2478 /* test LO8(eax), LO8(eax) */ /* 0x2B055DEC: test al, al */ 2479 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2480 _cf = 0; 2481 _flag_k = FK_NARROW(FK_TEST, 24); 2482 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055E07; /* 0x2B055DEE: je 0x2b055e07 */ 2483 L_2B055DF0: 2484 ecx = MEM32(esi + 0x30); /* 0x2B055DF0: mov ecx, dword ptr [esi + 0x30] */ 2485 PUSH32(esp, edi); /* 0x2B055DF3: push edi */ 2486 edi = MEM32(0x2B0B5B3C); /* 0x2B055DF4: mov edi, dword ptr [0x2b0b5b3c] */ 2487 RECOMP_ICALL(edi); /* 0x2B055DFA: call edi */ 2488 RECOMP_FLAGS_IN(); 2489 ecx = MEM32(esi + 0x34); /* 0x2B055DFC: mov ecx, dword ptr [esi + 0x34] */ 2490 RECOMP_ICALL(edi); /* 0x2B055DFF: call edi */ 2491 RECOMP_FLAGS_IN(); 2492 ecx = MEM32(esi + 0x38); /* 0x2B055E01: mov ecx, dword ptr [esi + 0x38] */ 2493 RECOMP_ICALL(edi); /* 0x2B055E04: call edi */ 2494 RECOMP_FLAGS_IN(); 2495 edi = POP32_VAL(esp); /* 0x2B055E06: pop edi */ 2496 L_2B055E07: 2497 ecx = MEM32(esi + 0x48); /* 0x2B055E07: mov ecx, dword ptr [esi + 0x48] */ 2498 edx = MEM32(ecx); /* 0x2B055E0A: mov edx, dword ptr [ecx] */ 2499 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B055E0C: call dword ptr [edx + 8] */ 2500 RECOMP_FLAGS_IN(); 2501 esi = POP32_VAL(esp); /* 0x2B055E0F: pop esi */ 2502 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B055E10: ret */ 2503 RECOMP_REGS_OUT(); 2504 } 2505 2506 void sub_2B055E20(void) { 2507 int _fpu_cmp = 0; 2508 uint32_t _cf = 0; 2509 int _df = 1; 2510 uint32_t _flag_k = FK_NONE; 2511 uint32_t _flag_a = 0, _flag_b = 0; 2512 uint32_t _itail_tgt = 0; 2513 RECOMP_REGS_LOCALS 2514 RECOMP_ENTER(0x2B055E20u); 2515 2516 L_2B055E20: 2517 PUSH32(esp, esi); /* 0x2B055E20: push esi */ 2518 esi = ecx; /* 0x2B055E21: mov esi, ecx */ 2519 eax = MEM32(esi + 0x2C); /* 0x2B055E23: mov eax, dword ptr [esi + 0x2c] */ 2520 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B055E26: mov byte ptr [eax + 8], 0 */ 2521 ecx = MEM32(esi + 0x5C); /* 0x2B055E2A: mov ecx, dword ptr [esi + 0x5c] */ 2522 edx = MEM32(ecx); /* 0x2B055E2D: mov edx, dword ptr [ecx] */ 2523 PUSH32(esp, edi); /* 0x2B055E2F: push edi */ 2524 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B055E30: call dword ptr [edx + 0xc] */ 2525 RECOMP_FLAGS_IN(); 2526 eax = MEM32(esi + 0x28); /* 0x2B055E33: mov eax, dword ptr [esi + 0x28] */ 2527 edi = MEM32(0x2B0B5B34); /* 0x2B055E36: mov edi, dword ptr [0x2b0b5b34] */ 2528 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B055E3C: mov byte ptr [eax + 8], 0 */ 2529 ecx = MEM32(esi + 0x30); /* 0x2B055E40: mov ecx, dword ptr [esi + 0x30] */ 2530 RECOMP_ICALL(edi); /* 0x2B055E43: call edi */ 2531 RECOMP_FLAGS_IN(); 2532 ecx = MEM32(esi + 0x34); /* 0x2B055E45: mov ecx, dword ptr [esi + 0x34] */ 2533 RECOMP_ICALL(edi); /* 0x2B055E48: call edi */ 2534 RECOMP_FLAGS_IN(); 2535 ecx = MEM32(esi + 0x38); /* 0x2B055E4A: mov ecx, dword ptr [esi + 0x38] */ 2536 RECOMP_ICALL(edi); /* 0x2B055E4D: call edi */ 2537 RECOMP_FLAGS_IN(); 2538 ecx = MEM32(esi + 0x48); /* 0x2B055E4F: mov ecx, dword ptr [esi + 0x48] */ 2539 edx = MEM32(ecx); /* 0x2B055E52: mov edx, dword ptr [ecx] */ 2540 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B055E54: call dword ptr [edx + 0xc] */ 2541 RECOMP_FLAGS_IN(); 2542 edi = POP32_VAL(esp); /* 0x2B055E57: pop edi */ 2543 esi = POP32_VAL(esp); /* 0x2B055E58: pop esi */ 2544 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B055E59: ret */ 2545 RECOMP_REGS_OUT(); 2546 } 2547 2548 void sub_2B055E60(void) { 2549 int _fpu_cmp = 0; 2550 uint32_t _cf = 0; 2551 int _df = 1; 2552 uint32_t _flag_k = FK_NONE; 2553 uint32_t _flag_a = 0, _flag_b = 0; 2554 uint32_t _itail_tgt = 0; 2555 RECOMP_REGS_LOCALS 2556 RECOMP_ENTER(0x2B055E60u); 2557 2558 L_2B055E60: 2559 PUSH32(esp, ebp); /* 0x2B055E60: push ebp */ 2560 ebp = esp; /* 0x2B055E61: mov ebp, esp */ 2561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu); 2562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2563 esp = esp - 0x3Cu; /* 0x2B055E63: sub esp, 0x3c */ 2564 _flag_k = FK_CMP; 2565 PUSH32(esp, ebx); /* 0x2B055E66: push ebx */ 2566 PUSH32(esp, esi); /* 0x2B055E67: push esi */ 2567 esi = ecx; /* 0x2B055E68: mov esi, ecx */ 2568 ebx = MEM32(esi + 0x4); /* 0x2B055E6A: mov ebx, dword ptr [esi + 4] */ 2569 ecx = MEM32(esi + 0x2C); /* 0x2B055E6D: mov ecx, dword ptr [esi + 0x2c] */ 2570 PUSH32(esp, edi); /* 0x2B055E70: push edi */ 2571 edi = MEM32(esi + 0x8); /* 0x2B055E71: mov edi, dword ptr [esi + 8] */ 2572 eax = ebp + (-0x24); /* 0x2B055E74: lea eax, [ebp - 0x24] */ 2573 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 2574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2575 edi = edi + 0x14u; /* 0x2B055E77: add edi, 0x14 */ 2576 _flag_k = FK_ADD; 2577 PUSH32(esp, eax); /* 0x2B055E7A: push eax */ 2578 MEM32(ebp + (-0x8)) = ebx; /* 0x2B055E7B: mov dword ptr [ebp - 8], ebx */ 2579 MEM32(ebp + (-0xC)) = edi; /* 0x2B055E7E: mov dword ptr [ebp - 0xc], edi */ 2580 MEM32(ebp + (-0x24)) = ebx; /* 0x2B055E81: mov dword ptr [ebp - 0x24], ebx */ 2581 MEM32(ebp + (-0x20)) = edi; /* 0x2B055E84: mov dword ptr [ebp - 0x20], edi */ 2582 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B055E87: call dword ptr [0x2b0b5940] */ 2583 RECOMP_FLAGS_IN(); 2584 ecx = MEM32(esi + 0x2C); /* 0x2B055E8D: mov ecx, dword ptr [esi + 0x2c] */ 2585 edx = MEM32(ecx + 0x14); /* 0x2B055E90: mov edx, dword ptr [ecx + 0x14] */ 2586 eax = MEM32(edx + 0xC); /* 0x2B055E93: mov eax, dword ptr [edx + 0xc] */ 2587 edx = MEM32(esi + 0x20); /* 0x2B055E96: mov edx, dword ptr [esi + 0x20] */ 2588 MEM32(ebp + (-0x2C)) = eax; /* 0x2B055E99: mov dword ptr [ebp - 0x2c], eax */ 2589 eax = ebp + (-0x2C); /* 0x2B055E9C: lea eax, [ebp - 0x2c] */ 2590 PUSH32(esp, eax); /* 0x2B055E9F: push eax */ 2591 MEM32(ebp + (-0x28)) = edx; /* 0x2B055EA0: mov dword ptr [ebp - 0x28], edx */ 2592 RECOMP_ICALL(MEM32(0x2B0B5844)); /* 0x2B055EA3: call dword ptr [0x2b0b5844] */ 2593 RECOMP_FLAGS_IN(); 2594 ecx = MEM32(esi + 0x2C); /* 0x2B055EA9: mov ecx, dword ptr [esi + 0x2c] */ 2595 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B055EAC: mov byte ptr [ecx + 9], 1 */ 2596 edx = MEM32(0x2B0EE9DC); /* 0x2B055EB0: mov edx, dword ptr [0x2b0ee9dc] */ 2597 /* test edx, edx */ /* 0x2B055EB6: test edx, edx */ 2598 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2599 _cf = 0; 2600 _flag_k = FK_TEST; 2601 eax = ebx + 0x3; /* 0x2B055EB8: lea eax, [ebx + 3] */ 2602 ecx = edi + 0x9; /* 0x2B055EBB: lea ecx, [edi + 9] */ 2603 MEM32(ebp + (-0x14)) = eax; /* 0x2B055EBE: mov dword ptr [ebp - 0x14], eax */ 2604 MEM32(ebp + (-0x10)) = ecx; /* 0x2B055EC1: mov dword ptr [ebp - 0x10], ecx */ 2605 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055ED2; /* 0x2B055EC4: je 0x2b055ed2 */ 2606 L_2B055EC6: 2607 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x2C)); 2608 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2609 eax = eax + MEM32(edx + 0x2C); /* 0x2B055EC6: add eax, dword ptr [edx + 0x2c] */ 2610 _flag_k = FK_ADD; 2611 MEM32(ebp + (-0x14)) = eax; /* 0x2B055EC9: mov dword ptr [ebp - 0x14], eax */ 2612 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edx + 0x30)); 2613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2614 ecx = ecx + MEM32(edx + 0x30); /* 0x2B055ECC: add ecx, dword ptr [edx + 0x30] */ 2615 _flag_k = FK_ADD; 2616 MEM32(ebp + (-0x10)) = ecx; /* 0x2B055ECF: mov dword ptr [ebp - 0x10], ecx */ 2617 L_2B055ED2: 2618 PUSH32(esp, ecx); /* 0x2B055ED2: push ecx */ 2619 ecx = MEM32(esi + 0x5C); /* 0x2B055ED3: mov ecx, dword ptr [esi + 0x5c] */ 2620 PUSH32(esp, eax); /* 0x2B055ED6: push eax */ 2621 RECOMP_ICALL(MEM32(0x2B0B5538)); /* 0x2B055ED7: call dword ptr [0x2b0b5538] */ 2622 RECOMP_FLAGS_IN(); 2623 edx = MEM32(ebp + (-0x14)); /* 0x2B055EDD: mov edx, dword ptr [ebp - 0x14] */ 2624 eax = MEM32(ebp + (-0x10)); /* 0x2B055EE0: mov eax, dword ptr [ebp - 0x10] */ 2625 ecx = ebp + (-0x1C); /* 0x2B055EE3: lea ecx, [ebp - 0x1c] */ 2626 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(5); 2627 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2628 edx = edx + 5; /* 0x2B055EE6: add edx, 5 */ 2629 _flag_k = FK_ADD; 2630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 2631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2632 eax = eax + 3; /* 0x2B055EE9: add eax, 3 */ 2633 _flag_k = FK_ADD; 2634 PUSH32(esp, ecx); /* 0x2B055EEC: push ecx */ 2635 ecx = MEM32(esi + 0x48); /* 0x2B055EED: mov ecx, dword ptr [esi + 0x48] */ 2636 MEM32(ebp + (-0x1C)) = edx; /* 0x2B055EF0: mov dword ptr [ebp - 0x1c], edx */ 2637 MEM32(ebp + (-0x18)) = eax; /* 0x2B055EF3: mov dword ptr [ebp - 0x18], eax */ 2638 RECOMP_ICALL(MEM32(0x2B0B5640)); /* 0x2B055EF6: call dword ptr [0x2b0b5640] */ 2639 RECOMP_FLAGS_IN(); 2640 eax = MEM32(esi + 0x2C); /* 0x2B055EFC: mov eax, dword ptr [esi + 0x2c] */ 2641 edx = MEM32(0x2B0EE9D8); /* 0x2B055EFF: mov edx, dword ptr [0x2b0ee9d8] */ 2642 ecx = MEM32(eax + 0x14); /* 0x2B055F05: mov ecx, dword ptr [eax + 0x14] */ 2643 ebx = MEM32(ecx + 0x8); /* 0x2B055F08: mov ebx, dword ptr [ecx + 8] */ 2644 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFAu); 2645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2646 edx = edx + 0xFFFFFFFAu; /* 0x2B055F0B: add edx, -6 */ 2647 _flag_k = FK_ADD; 2648 MEM32(ebp + (-0x4)) = edx; /* 0x2B055F0E: mov dword ptr [ebp - 4], edx */ 2649 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x3Bu); 2650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2651 ebx = ebx - 0x3Bu; /* 0x2B055F11: sub ebx, 0x3b */ 2652 _flag_k = FK_CMP; 2653 RECOMP_ICALL(MEM32(0x2B0B5690)); /* 0x2B055F14: call dword ptr [0x2b0b5690] */ 2654 RECOMP_FLAGS_IN(); 2655 ecx = eax; /* 0x2B055F1A: mov ecx, eax */ 2656 RECOMP_ICALL(MEM32(0x2B0B568C)); /* 0x2B055F1C: call dword ptr [0x2b0b568c] */ 2657 RECOMP_FLAGS_IN(); 2658 edi = eax; /* 0x2B055F22: mov edi, eax */ 2659 SET_LO8(eax, MEM8(esi + 0x59)); /* 0x2B055F24: mov al, byte ptr [esi + 0x59] */ 2660 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 2661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2662 edi = edi - 0x14u; /* 0x2B055F27: sub edi, 0x14 */ 2663 _flag_k = FK_CMP; 2664 /* test LO8(eax), LO8(eax) */ /* 0x2B055F2A: test al, al */ 2665 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2666 _cf = 0; 2667 _flag_k = FK_NARROW(FK_TEST, 24); 2668 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055F7D; /* 0x2B055F2C: je 0x2b055f7d */ 2669 L_2B055F2E: 2670 edx = MEM32(esi + 0x5C); /* 0x2B055F2E: mov edx, dword ptr [esi + 0x5c] */ 2671 SET_LO8(eax, MEM8(edx + 0x67)); /* 0x2B055F31: mov al, byte ptr [edx + 0x67] */ 2672 /* test LO8(eax), LO8(eax) */ /* 0x2B055F34: test al, al */ 2673 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2674 _cf = 0; 2675 _flag_k = FK_NARROW(FK_TEST, 24); 2676 if (TEST_Z(_flag_a, _flag_b)) goto L_2B055F7D; /* 0x2B055F36: je 0x2b055f7d */ 2677 L_2B055F38: 2678 ecx = MEM32(ebp + (-0x18)); /* 0x2B055F38: mov ecx, dword ptr [ebp - 0x18] */ 2679 /* cmp ecx, edi */ /* 0x2B055F3B: cmp ecx, edi */ 2680 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2682 _flag_k = FK_CMP; 2683 if (CMP_G(_flag_a, _flag_b)) goto L_2B055F7D; /* 0x2B055F3D: jg 0x2b055f7d */ 2684 L_2B055F3F: 2685 eax = edi; /* 0x2B055F3F: mov eax, edi */ 2686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2688 eax = eax - ecx; /* 0x2B055F41: sub eax, ecx */ 2689 _flag_k = FK_CMP; 2690 /* cmp eax, 0x20u */ /* 0x2B055F43: cmp eax, 0x20 */ 2691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 2692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2693 _flag_k = FK_CMP; 2694 ecx = MEM32(ebp + (-0x4)); /* 0x2B055F46: mov ecx, dword ptr [ebp - 4] */ 2695 if (CMP_GE(_flag_a, _flag_b)) goto L_2B055F59; /* 0x2B055F49: jge 0x2b055f59 */ 2696 L_2B055F4B: 2697 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF6u); 2698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2699 ecx = ecx + 0xFFFFFFF6u; /* 0x2B055F4B: add ecx, -0xa */ 2700 _flag_k = FK_ADD; 2701 MEM32(ebp + (-0x34)) = ecx; /* 0x2B055F4E: mov dword ptr [ebp - 0x34], ecx */ 2702 MEM32(ebp + (-0x30)) = eax; /* 0x2B055F51: mov dword ptr [ebp - 0x30], eax */ 2703 edx = ebp + (-0x34); /* 0x2B055F54: lea edx, [ebp - 0x34] */ 2704 goto L_2B055F69; /* 0x2B055F57: jmp 0x2b055f69 */ 2705 L_2B055F59: 2706 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF6u); 2707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2708 ecx = ecx + 0xFFFFFFF6u; /* 0x2B055F59: add ecx, -0xa */ 2709 _flag_k = FK_ADD; 2710 MEM32(ebp + (-0x34)) = ecx; /* 0x2B055F5C: mov dword ptr [ebp - 0x34], ecx */ 2711 MEM32(ebp + (-0x30)) = 0x20u; /* 0x2B055F5F: mov dword ptr [ebp - 0x30], 0x20 */ 2712 edx = ebp + (-0x34); /* 0x2B055F66: lea edx, [ebp - 0x34] */ 2713 L_2B055F69: 2714 ecx = MEM32(esi + 0x48); /* 0x2B055F69: mov ecx, dword ptr [esi + 0x48] */ 2715 PUSH32(esp, edx); /* 0x2B055F6C: push edx */ 2716 RECOMP_ICALL(MEM32(0x2B0B5558)); /* 0x2B055F6D: call dword ptr [0x2b0b5558] */ 2717 RECOMP_FLAGS_IN(); 2718 ecx = MEM32(esi + 0x48); /* 0x2B055F73: mov ecx, dword ptr [esi + 0x48] */ 2719 eax = MEM32(ecx); /* 0x2B055F76: mov eax, dword ptr [ecx] */ 2720 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2B055F78: call dword ptr [eax + 8] */ 2721 RECOMP_FLAGS_IN(); 2722 goto L_2B055F85; /* 0x2B055F7B: jmp 0x2b055f85 */ 2723 L_2B055F7D: 2724 ecx = MEM32(esi + 0x48); /* 0x2B055F7D: mov ecx, dword ptr [esi + 0x48] */ 2725 edx = MEM32(ecx); /* 0x2B055F80: mov edx, dword ptr [ecx] */ 2726 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B055F82: call dword ptr [edx + 0xc] */ 2727 RECOMP_FLAGS_IN(); 2728 L_2B055F85: 2729 ecx = MEM32(esi + 0x28); /* 0x2B055F85: mov ecx, dword ptr [esi + 0x28] */ 2730 eax = MEM32(ecx); /* 0x2B055F88: mov eax, dword ptr [ecx] */ 2731 edx = ebp + (-0x14); /* 0x2B055F8A: lea edx, [ebp - 0x14] */ 2732 PUSH32(esp, edx); /* 0x2B055F8D: push edx */ 2733 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x2B055F8E: call dword ptr [eax + 0x14] */ 2734 RECOMP_FLAGS_IN(); 2735 eax = MEM32(ebp + (-0x4)); /* 0x2B055F91: mov eax, dword ptr [ebp - 4] */ 2736 ecx = MEM32(esi + 0x28); /* 0x2B055F94: mov ecx, dword ptr [esi + 0x28] */ 2737 MEM32(ebp + (-0x3C)) = eax; /* 0x2B055F97: mov dword ptr [ebp - 0x3c], eax */ 2738 eax = ebp + (-0x3C); /* 0x2B055F9A: lea eax, [ebp - 0x3c] */ 2739 MEM32(ebp + (-0x38)) = ebx; /* 0x2B055F9D: mov dword ptr [ebp - 0x38], ebx */ 2740 edx = MEM32(ecx); /* 0x2B055FA0: mov edx, dword ptr [ecx] */ 2741 PUSH32(esp, eax); /* 0x2B055FA2: push eax */ 2742 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B055FA3: call dword ptr [edx + 0x18] */ 2743 RECOMP_FLAGS_IN(); 2744 ecx = MEM32(ebp + (-0x4)); /* 0x2B055FA6: mov ecx, dword ptr [ebp - 4] */ 2745 PUSH32(esp, ebx); /* 0x2B055FA9: push ebx */ 2746 PUSH32(esp, ecx); /* 0x2B055FAA: push ecx */ 2747 ecx = MEM32(esi + 0x5C); /* 0x2B055FAB: mov ecx, dword ptr [esi + 0x5c] */ 2748 RECOMP_ICALL(MEM32(0x2B0B553C)); /* 0x2B055FAE: call dword ptr [0x2b0b553c] */ 2749 RECOMP_FLAGS_IN(); 2750 ecx = MEM32(esi + 0x5C); /* 0x2B055FB4: mov ecx, dword ptr [esi + 0x5c] */ 2751 edx = MEM32(ecx); /* 0x2B055FB7: mov edx, dword ptr [ecx] */ 2752 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B055FB9: call dword ptr [edx + 8] */ 2753 RECOMP_FLAGS_IN(); 2754 eax = MEM32(ebp + (-0x10)); /* 0x2B055FBC: mov eax, dword ptr [ebp - 0x10] */ 2755 /* cmp eax, edi */ /* 0x2B055FBF: cmp eax, edi */ 2756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2758 _flag_k = FK_CMP; 2759 if (CMP_LE(_flag_a, _flag_b)) goto L_2B055FCD; /* 0x2B055FC1: jle 0x2b055fcd */ 2760 L_2B055FC3: 2761 ecx = MEM32(esi + 0x5C); /* 0x2B055FC3: mov ecx, dword ptr [esi + 0x5c] */ 2762 eax = MEM32(ecx); /* 0x2B055FC6: mov eax, dword ptr [ecx] */ 2763 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B055FC8: call dword ptr [eax + 0xc] */ 2764 RECOMP_FLAGS_IN(); 2765 goto L_2B055FD5; /* 0x2B055FCB: jmp 0x2b055fd5 */ 2766 L_2B055FCD: 2767 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2769 edi = edi - eax; /* 0x2B055FCD: sub edi, eax */ 2770 _flag_k = FK_CMP; 2771 /* cmp edi, ebx */ /* 0x2B055FCF: cmp edi, ebx */ 2772 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2774 _flag_k = FK_CMP; 2775 if (CMP_GE(_flag_a, _flag_b)) goto L_2B055FD5; /* 0x2B055FD1: jge 0x2b055fd5 */ 2776 L_2B055FD3: 2777 ebx = edi; /* 0x2B055FD3: mov ebx, edi */ 2778 L_2B055FD5: 2779 ecx = MEM32(ebp + (-0x4)); /* 0x2B055FD5: mov ecx, dword ptr [ebp - 4] */ 2780 PUSH32(esp, ebx); /* 0x2B055FD8: push ebx */ 2781 PUSH32(esp, ecx); /* 0x2B055FD9: push ecx */ 2782 ecx = MEM32(esi + 0x5C); /* 0x2B055FDA: mov ecx, dword ptr [esi + 0x5c] */ 2783 RECOMP_ICALL(MEM32(0x2B0B5540)); /* 0x2B055FDD: call dword ptr [0x2b0b5540] */ 2784 RECOMP_FLAGS_IN(); 2785 edx = MEM32(0x2B0EE9D8); /* 0x2B055FE3: mov edx, dword ptr [0x2b0ee9d8] */ 2786 ecx = MEM32(esi + 0x30); /* 0x2B055FE9: mov ecx, dword ptr [esi + 0x30] */ 2787 edi = MEM32(ecx + 0x44); /* 0x2B055FEC: mov edi, dword ptr [ecx + 0x44] */ 2788 eax = 0x55555556u; /* 0x2B055FEF: mov eax, 0x55555556 */ 2789 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B055FF4: imul edx */ 2790 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2791 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2792 eax = edx; /* 0x2B055FF6: mov eax, edx */ 2793 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B055FF8: shr eax, 0x1f */ 2794 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2795 eax = eax >> 31u; /* 0x2B055FF8: shr eax, 0x1f */ 2796 MEM32(ebp + (-0x4)) = eax; /* 0x2B055FFB: mov dword ptr [ebp - 4], eax */ 2797 eax = edx; /* 0x2B055FFE: mov eax, edx */ 2798 edx = MEM32(ebp + (-0x4)); /* 0x2B056000: mov edx, dword ptr [ebp - 4] */ 2799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2801 eax = eax + edx; /* 0x2B056003: add eax, edx */ 2802 _flag_k = FK_ADD; 2803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2805 eax = eax - edi; /* 0x2B056005: sub eax, edi */ 2806 _flag_k = FK_CMP; 2807 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B056007: cdq */ 2808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2810 eax = eax - edx; /* 0x2B056008: sub eax, edx */ 2811 _flag_k = FK_CMP; 2812 edx = MEM32(ebp + (-0x8)); /* 0x2B05600A: mov edx, dword ptr [ebp - 8] */ 2813 edi = eax; /* 0x2B05600D: mov edi, eax */ 2814 eax = MEM32(ebp + (-0xC)); /* 0x2B05600F: mov eax, dword ptr [ebp - 0xc] */ 2815 ebx = ebx + eax + 0xD; /* 0x2B056012: lea ebx, [ebx + eax + 0xd] */ 2816 if (1u) _cf = (((edi) >> 0) & 1u); /* 0x2B056016: sar edi, 1 */ 2817 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2818 edi = (uint32_t)((int32_t)edi >> 1u); 2819 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 2820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2821 edi = edi + edx; /* 0x2B056018: add edi, edx */ 2822 _flag_k = FK_ADD; 2823 PUSH32(esp, ebx); /* 0x2B05601A: push ebx */ 2824 PUSH32(esp, edi); /* 0x2B05601B: push edi */ 2825 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B05601C: call dword ptr [0x2b0b5a4c] */ 2826 RECOMP_FLAGS_IN(); 2827 ecx = MEM32(0x2B0EE9D8); /* 0x2B056022: mov ecx, dword ptr [0x2b0ee9d8] */ 2828 eax = 0x55555556u; /* 0x2B056028: mov eax, 0x55555556 */ 2829 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B05602D: imul ecx */ 2830 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2831 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2832 ecx = edx; /* 0x2B05602F: mov ecx, edx */ 2833 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B056031: shr ecx, 0x1f */ 2834 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2835 ecx = ecx >> 31u; /* 0x2B056031: shr ecx, 0x1f */ 2836 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2838 edx = edx + ecx; /* 0x2B056034: add edx, ecx */ 2839 _flag_k = FK_ADD; 2840 ecx = MEM32(esi + 0x34); /* 0x2B056036: mov ecx, dword ptr [esi + 0x34] */ 2841 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 2842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2843 edi = edi + edx; /* 0x2B056039: add edi, edx */ 2844 _flag_k = FK_ADD; 2845 PUSH32(esp, ebx); /* 0x2B05603B: push ebx */ 2846 PUSH32(esp, edi); /* 0x2B05603C: push edi */ 2847 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B05603D: call dword ptr [0x2b0b5a4c] */ 2848 RECOMP_FLAGS_IN(); 2849 ecx = MEM32(0x2B0EE9D8); /* 0x2B056043: mov ecx, dword ptr [0x2b0ee9d8] */ 2850 eax = 0x55555556u; /* 0x2B056049: mov eax, 0x55555556 */ 2851 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B05604E: imul ecx */ 2852 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2853 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2854 ecx = MEM32(esi + 0x38); /* 0x2B056050: mov ecx, dword ptr [esi + 0x38] */ 2855 eax = edx; /* 0x2B056053: mov eax, edx */ 2856 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B056055: shr eax, 0x1f */ 2857 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2858 eax = eax >> 31u; /* 0x2B056055: shr eax, 0x1f */ 2859 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2861 edx = edx + eax; /* 0x2B056058: add edx, eax */ 2862 _flag_k = FK_ADD; 2863 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 2864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2865 edi = edi + edx; /* 0x2B05605A: add edi, edx */ 2866 _flag_k = FK_ADD; 2867 PUSH32(esp, ebx); /* 0x2B05605C: push ebx */ 2868 PUSH32(esp, edi); /* 0x2B05605D: push edi */ 2869 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B05605E: call dword ptr [0x2b0b5a4c] */ 2870 RECOMP_FLAGS_IN(); 2871 edi = POP32_VAL(esp); /* 0x2B056064: pop edi */ 2872 esi = POP32_VAL(esp); /* 0x2B056065: pop esi */ 2873 ebx = POP32_VAL(esp); /* 0x2B056066: pop ebx */ 2874 esp = ebp; /* 0x2B056067: mov esp, ebp */ 2875 ebp = POP32_VAL(esp); /* 0x2B056069: pop ebp */ 2876 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05606A: ret */ 2877 RECOMP_REGS_OUT(); 2878 } 2879 2880 void sub_2B056070(void) { 2881 int _fpu_cmp = 0; 2882 uint32_t _cf = 0; 2883 int _df = 1; 2884 uint32_t _flag_k = FK_NONE; 2885 uint32_t _flag_a = 0, _flag_b = 0; 2886 uint32_t _itail_tgt = 0; 2887 RECOMP_REGS_LOCALS 2888 RECOMP_ENTER(0x2B056070u); 2889 2890 L_2B056070: 2891 PUSH32(esp, ebp); /* 0x2B056070: push ebp */ 2892 ebp = esp; /* 0x2B056071: mov ebp, esp */ 2893 eax = MEM32(ebp + 0xC); /* 0x2B056073: mov eax, dword ptr [ebp + 0xc] */ 2894 edx = MEM32(ebp + 0x8); /* 0x2B056076: mov edx, dword ptr [ebp + 8] */ 2895 ecx = MEM32(ecx + 0x5C); /* 0x2B056079: mov ecx, dword ptr [ecx + 0x5c] */ 2896 PUSH32(esp, eax); /* 0x2B05607C: push eax */ 2897 PUSH32(esp, edx); /* 0x2B05607D: push edx */ 2898 RECOMP_ICALL(MEM32(0x2B0B5534)); /* 0x2B05607E: call dword ptr [0x2b0b5534] */ 2899 RECOMP_FLAGS_IN(); 2900 ebp = POP32_VAL(esp); /* 0x2B056084: pop ebp */ 2901 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B056085: ret 8 */ 2902 RECOMP_REGS_OUT(); 2903 } 2904 2905 void sub_2B056090(void) { 2906 int _fpu_cmp = 0; 2907 uint32_t _cf = 0; 2908 int _df = 1; 2909 uint32_t _flag_k = FK_NONE; 2910 uint32_t _flag_a = 0, _flag_b = 0; 2911 uint32_t _itail_tgt = 0; 2912 RECOMP_REGS_LOCALS 2913 RECOMP_ENTER(0x2B056090u); 2914 2915 L_2B056090: 2916 PUSH32(esp, ebp); /* 0x2B056090: push ebp */ 2917 ebp = esp; /* 0x2B056091: mov ebp, esp */ 2918 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2920 esp = esp - 0xCu; /* 0x2B056093: sub esp, 0xc */ 2921 _flag_k = FK_CMP; 2922 eax = MEM32(ebp + 0x8); /* 0x2B056096: mov eax, dword ptr [ebp + 8] */ 2923 PUSH32(esp, esi); /* 0x2B056099: push esi */ 2924 esi = ecx; /* 0x2B05609A: mov esi, ecx */ 2925 ecx = MEM32(esi + 0x5C); /* 0x2B05609C: mov ecx, dword ptr [esi + 0x5c] */ 2926 PUSH32(esp, edi); /* 0x2B05609F: push edi */ 2927 MEM32(ecx + 0xD8) = eax; /* 0x2B0560A0: mov dword ptr [ecx + 0xd8], eax */ 2928 edx = ebp + 0x8; /* 0x2B0560A6: lea edx, [ebp + 8] */ 2929 MEM32(ebp + (-0x8)) = eax; /* 0x2B0560A9: mov dword ptr [ebp - 8], eax */ 2930 PUSH32(esp, edx); /* 0x2B0560AC: push edx */ 2931 eax = ebp + (-0x4); /* 0x2B0560AD: lea eax, [ebp - 4] */ 2932 PUSH32(esp, eax); /* 0x2B0560B0: push eax */ 2933 ecx = ebp + (-0xC); /* 0x2B0560B1: lea ecx, [ebp - 0xc] */ 2934 PUSH32(esp, ecx); /* 0x2B0560B4: push ecx */ 2935 MEM32(ebp + (-0xC)) = 0; /* 0x2B0560B5: mov dword ptr [ebp - 0xc], 0 */ 2936 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0560BC: call dword ptr [0x2b0b5d6c] */ 2937 RECOMP_FLAGS_IN(); 2938 ecx = eax; /* 0x2B0560C2: mov ecx, eax */ 2939 RECOMP_ICALL(MEM32(0x2B0B5E3C)); /* 0x2B0560C4: call dword ptr [0x2b0b5e3c] */ 2940 RECOMP_FLAGS_IN(); 2941 edx = MEM32(ebp + 0x8); /* 0x2B0560CA: mov edx, dword ptr [ebp + 8] */ 2942 ecx = MEM32(esi + 0x5C); /* 0x2B0560CD: mov ecx, dword ptr [esi + 0x5c] */ 2943 edi = eax; /* 0x2B0560D0: mov edi, eax */ 2944 eax = MEM32(ebp + (-0x4)); /* 0x2B0560D2: mov eax, dword ptr [ebp - 4] */ 2945 PUSH32(esp, edx); /* 0x2B0560D5: push edx */ 2946 PUSH32(esp, eax); /* 0x2B0560D6: push eax */ 2947 PUSH32(esp, edi); /* 0x2B0560D7: push edi */ 2948 RECOMP_ICALL(MEM32(0x2B0B552C)); /* 0x2B0560D8: call dword ptr [0x2b0b552c] */ 2949 RECOMP_FLAGS_IN(); 2950 ecx = MEM32(esi + 0x5C); /* 0x2B0560DE: mov ecx, dword ptr [esi + 0x5c] */ 2951 PUSH32(esp, 0); /* 0x2B0560E1: push 0 */ 2952 RECOMP_ICALL(MEM32(0x2B0B5530)); /* 0x2B0560E3: call dword ptr [0x2b0b5530] */ 2953 RECOMP_FLAGS_IN(); 2954 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2955 ecx = 0; /* 0x2B0560E9: xor ecx, ecx */ 2956 _cf = 0; 2957 _flag_k = FK_TEST; 2958 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2959 eax = 0; /* 0x2B0560EB: xor eax, eax */ 2960 _cf = 0; 2961 _flag_k = FK_TEST; 2962 MEM32(esi + 0x64) = eax; /* 0x2B0560ED: mov dword ptr [esi + 0x64], eax */ 2963 MEM32(esi + 0x68) = ecx; /* 0x2B0560F0: mov dword ptr [esi + 0x68], ecx */ 2964 /* test edi, edi */ /* 0x2B0560F3: test edi, edi */ 2965 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2966 _cf = 0; 2967 _flag_k = FK_TEST; 2968 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B0560F5: setne cl */ 2969 MEM8(esi + 0x59) = (uint8_t)(LO8(ecx)); /* 0x2B0560F8: mov byte ptr [esi + 0x59], cl */ 2970 ecx = esi; /* 0x2B0560FB: mov ecx, esi */ 2971 RECOMP_ICALL(0x2B0565E0u); /* 0x2B0560FD: call 0x2b0565e0 */ /* not lifted */ 2972 RECOMP_FLAGS_IN(); 2973 edi = POP32_VAL(esp); /* 0x2B056102: pop edi */ 2974 esi = POP32_VAL(esp); /* 0x2B056103: pop esi */ 2975 esp = ebp; /* 0x2B056104: mov esp, ebp */ 2976 ebp = POP32_VAL(esp); /* 0x2B056106: pop ebp */ 2977 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B056107: ret 4 */ 2978 RECOMP_REGS_OUT(); 2979 } 2980 2981 void sub_2B056110(void) { 2982 int _fpu_cmp = 0; 2983 uint32_t _cf = 0; 2984 int _df = 1; 2985 uint32_t _flag_k = FK_NONE; 2986 uint32_t _flag_a = 0, _flag_b = 0; 2987 uint32_t _itail_tgt = 0; 2988 RECOMP_REGS_LOCALS 2989 RECOMP_ENTER(0x2B056110u); 2990 2991 L_2B056110: 2992 PUSH32(esp, ebp); /* 0x2B056110: push ebp */ 2993 ebp = esp; /* 0x2B056111: mov ebp, esp */ 2994 eax = MEM32(ecx + 0x5C); /* 0x2B056113: mov eax, dword ptr [ecx + 0x5c] */ 2995 SET_LO8(ecx, MEM8(ebp + 0x8)); /* 0x2B056116: mov cl, byte ptr [ebp + 8] */ 2996 MEM8(eax + 0x64) = (uint8_t)(LO8(ecx)); /* 0x2B056119: mov byte ptr [eax + 0x64], cl */ 2997 ebp = POP32_VAL(esp); /* 0x2B05611C: pop ebp */ 2998 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B05611D: ret 4 */ 2999 RECOMP_REGS_OUT(); 3000 } 3001 3002 void sub_2B056120(void) { 3003 int _fpu_cmp = 0; 3004 uint32_t _cf = 0; 3005 int _df = 1; 3006 uint32_t _flag_k = FK_NONE; 3007 uint32_t _flag_a = 0, _flag_b = 0; 3008 uint32_t _itail_tgt = 0; 3009 RECOMP_REGS_LOCALS 3010 RECOMP_ENTER(0x2B056120u); 3011 3012 L_2B056120: 3013 PUSH32(esp, ebp); /* 0x2B056120: push ebp */ 3014 ebp = esp; /* 0x2B056121: mov ebp, esp */ 3015 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B056123: push -1 */ 3016 PUSH32(esp, 0x2B0AFC66u); /* 0x2B056125: push 0x2b0afc66 */ 3017 eax = MEM32(FS_BASE + (0)); /* 0x2B05612A: mov eax, dword ptr fs:[0] */ 3018 PUSH32(esp, eax); /* 0x2B056130: push eax */ 3019 MEM32(FS_BASE + (0)) = esp; /* 0x2B056131: mov dword ptr fs:[0], esp */ 3020 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x190u); 3021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3022 esp = esp - 0x190u; /* 0x2B056138: sub esp, 0x190 */ 3023 _flag_k = FK_CMP; 3024 PUSH32(esp, ebx); /* 0x2B05613E: push ebx */ 3025 PUSH32(esp, esi); /* 0x2B05613F: push esi */ 3026 PUSH32(esp, edi); /* 0x2B056140: push edi */ 3027 edi = MEM32(0x2B0B5D6C); /* 0x2B056141: mov edi, dword ptr [0x2b0b5d6c] */ 3028 eax = ebp + (-0x54); /* 0x2B056147: lea eax, [ebp - 0x54] */ 3029 PUSH32(esp, eax); /* 0x2B05614A: push eax */ 3030 esi = ecx; /* 0x2B05614B: mov esi, ecx */ 3031 MEM32(ebp + (-0x60)) = 0; /* 0x2B05614D: mov dword ptr [ebp - 0x60], 0 */ 3032 MEM32(ebp + (-0x5C)) = 0; /* 0x2B056154: mov dword ptr [ebp - 0x5c], 0 */ 3033 MEM32(ebp + (-0x58)) = 0; /* 0x2B05615B: mov dword ptr [ebp - 0x58], 0 */ 3034 MEM32(ebp + (-0x54)) = 0; /* 0x2B056162: mov dword ptr [ebp - 0x54], 0 */ 3035 MEM32(ebp + (-0x50)) = 0; /* 0x2B056169: mov dword ptr [ebp - 0x50], 0 */ 3036 MEM32(ebp + (-0x4C)) = 0; /* 0x2B056170: mov dword ptr [ebp - 0x4c], 0 */ 3037 MEM32(ebp + (-0x48)) = 0x3F800000u; /* 0x2B056177: mov dword ptr [ebp - 0x48], 0x3f800000 */ 3038 RECOMP_ICALL(edi); /* 0x2B05617E: call edi */ 3039 RECOMP_FLAGS_IN(); 3040 ecx = eax; /* 0x2B056180: mov ecx, eax */ 3041 RECOMP_ICALL(MEM32(0x2B0B5E28)); /* 0x2B056182: call dword ptr [0x2b0b5e28] */ 3042 RECOMP_FLAGS_IN(); 3043 ecx = ebp + (-0x60); /* 0x2B056188: lea ecx, [ebp - 0x60] */ 3044 PUSH32(esp, ecx); /* 0x2B05618B: push ecx */ 3045 RECOMP_ICALL(edi); /* 0x2B05618C: call edi */ 3046 RECOMP_FLAGS_IN(); 3047 ecx = eax; /* 0x2B05618E: mov ecx, eax */ 3048 RECOMP_ICALL(MEM32(0x2B0B5F04)); /* 0x2B056190: call dword ptr [0x2b0b5f04] */ 3049 RECOMP_FLAGS_IN(); 3050 edx = MEM32(ebp + (-0x54)); /* 0x2B056196: mov edx, dword ptr [ebp - 0x54] */ 3051 ecx = MEM32(ebp + (-0x4C)); /* 0x2B056199: mov ecx, dword ptr [ebp - 0x4c] */ 3052 eax = MEM32(ebp + (-0x50)); /* 0x2B05619C: mov eax, dword ptr [ebp - 0x50] */ 3053 MEM32(ebp + (-0x80)) = edx; /* 0x2B05619F: mov dword ptr [ebp - 0x80], edx */ 3054 edx = ebp + (-0x34); /* 0x2B0561A2: lea edx, [ebp - 0x34] */ 3055 MEM32(ebp + (-0x78)) = ecx; /* 0x2B0561A5: mov dword ptr [ebp - 0x78], ecx */ 3056 PUSH32(esp, edx); /* 0x2B0561A8: push edx */ 3057 ecx = ebp + (-0x80); /* 0x2B0561A9: lea ecx, [ebp - 0x80] */ 3058 MEM32(ebp + (-0x34)) = 0; /* 0x2B0561AC: mov dword ptr [ebp - 0x34], 0 */ 3059 MEM32(ebp + (-0x30)) = 0; /* 0x2B0561B3: mov dword ptr [ebp - 0x30], 0 */ 3060 MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x2B0561BA: mov dword ptr [ebp - 0x2c], 0x3f800000 */ 3061 MEM32(ebp + (-0x7C)) = eax; /* 0x2B0561C1: mov dword ptr [ebp - 0x7c], eax */ 3062 RECOMP_ICALL(MEM32(0x2B0B60D8)); /* 0x2B0561C4: call dword ptr [0x2b0b60d8] */ 3063 RECOMP_FLAGS_IN(); 3064 ecx = MEM32(eax); /* 0x2B0561CA: mov ecx, dword ptr [eax] */ 3065 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B0561CC: mov dword ptr [ebp - 0x1c], ecx */ 3066 edx = MEM32(eax + 0x4); /* 0x2B0561CF: mov edx, dword ptr [eax + 4] */ 3067 MEM32(ebp + (-0x18)) = edx; /* 0x2B0561D2: mov dword ptr [ebp - 0x18], edx */ 3068 eax = MEM32(eax + 0x8); /* 0x2B0561D5: mov eax, dword ptr [eax + 8] */ 3069 ecx = ebp + (-0x1C); /* 0x2B0561D8: lea ecx, [ebp - 0x1c] */ 3070 PUSH32(esp, ecx); /* 0x2B0561DB: push ecx */ 3071 edx = ebp + (-0x80); /* 0x2B0561DC: lea edx, [ebp - 0x80] */ 3072 PUSH32(esp, edx); /* 0x2B0561DF: push edx */ 3073 ecx = ebp + (-0x54); /* 0x2B0561E0: lea ecx, [ebp - 0x54] */ 3074 MEM32(ebp + (-0x14)) = eax; /* 0x2B0561E3: mov dword ptr [ebp - 0x14], eax */ 3075 RECOMP_ICALL(MEM32(0x2B0B60F8)); /* 0x2B0561E6: call dword ptr [0x2b0b60f8] */ 3076 RECOMP_FLAGS_IN(); 3077 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x2B0561EC: fld dword ptr [ebp - 0x48] */ 3078 ecx = MEM32(eax); /* 0x2B0561EF: mov ecx, dword ptr [eax] */ 3079 _st[0] += _st[0]; /* 0x2B0561F1: fadd st(0), st(0) */ 3080 MEM32(ebp + (-0x8C)) = ecx; /* 0x2B0561F3: mov dword ptr [ebp - 0x8c], ecx */ 3081 edx = MEM32(eax + 0x4); /* 0x2B0561F9: mov edx, dword ptr [eax + 4] */ 3082 fp_push(_st[0]); /* 0x2B0561FC: fld st(0) */ 3083 MEM32(ebp + (-0x88)) = edx; /* 0x2B0561FE: mov dword ptr [ebp - 0x88], edx */ 3084 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2B056204: fmul dword ptr [ebp - 0x1c] */ 3085 eax = MEM32(eax + 0x8); /* 0x2B056207: mov eax, dword ptr [eax + 8] */ 3086 PUSH32(esp, 0x40000000u); /* 0x2B05620A: push 0x40000000 */ 3087 ecx = ebp + (-0x8C); /* 0x2B05620F: lea ecx, [ebp - 0x8c] */ 3088 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2B056215: fstp dword ptr [ebp - 0x1c] */ 3089 MEM32(ebp + (-0x84)) = eax; /* 0x2B056218: mov dword ptr [ebp - 0x84], eax */ 3090 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x2B05621E: fld dword ptr [ebp - 0x18] */ 3091 _st[0] *= _st[1]; /* 0x2B056221: fmul st(1) */ 3092 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2B056223: fstp dword ptr [ebp - 0x18] */ 3093 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2B056226: fld dword ptr [ebp - 0x14] */ 3094 _st[0] *= _st[1]; /* 0x2B056229: fmul st(1) */ 3095 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2B05622B: fstp dword ptr [ebp - 0x14] */ 3096 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B05622E: fstp st(0) */ 3097 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B056230: call dword ptr [0x2b0b60cc] */ 3098 RECOMP_FLAGS_IN(); 3099 ecx = ebp + (-0x1C); /* 0x2B056236: lea ecx, [ebp - 0x1c] */ 3100 PUSH32(esp, ecx); /* 0x2B056239: push ecx */ 3101 ecx = ebp + (-0x34); /* 0x2B05623A: lea ecx, [ebp - 0x34] */ 3102 RECOMP_ICALL(MEM32(0x2B0B60D4)); /* 0x2B05623D: call dword ptr [0x2b0b60d4] */ 3103 RECOMP_FLAGS_IN(); 3104 edx = ebp + (-0x8C); /* 0x2B056243: lea edx, [ebp - 0x8c] */ 3105 PUSH32(esp, edx); /* 0x2B056249: push edx */ 3106 ecx = ebp + (-0x34); /* 0x2B05624A: lea ecx, [ebp - 0x34] */ 3107 RECOMP_ICALL(MEM32(0x2B0B60D4)); /* 0x2B05624D: call dword ptr [0x2b0b60d4] */ 3108 RECOMP_FLAGS_IN(); 3109 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x2B056253: fld dword ptr [ebp - 0x34] */ 3110 _st[0] = -_st[0]; /* 0x2B056256: fchs */ 3111 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x2B056258: fld dword ptr [ebp - 0x2c] */ 3112 _st[0] = -_st[0]; /* 0x2B05625B: fchs */ 3113 { double _x = fp_pop(); _st[0] = atan2(_st[0], _x); } /* 0x2B05625D: fpatan */ 3114 _st[0] *= (double)*(float*)ADDR(0x2B0B6B0C); /* 0x2B05625F: fmul dword ptr [0x2b0b6b0c] */ 3115 PUSH32(esp, ecx); /* 0x2B056265: push ecx */ 3116 ecx = MEM32(esi + 0x5C); /* 0x2B056266: mov ecx, dword ptr [esi + 0x5c] */ 3117 _st[0] += (double)*(float*)ADDR(0x2B0B6548); /* 0x2B056269: fadd dword ptr [0x2b0b6548] */ 3118 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x2B05626F: fstp dword ptr [esp] */ 3119 RECOMP_ICALL(MEM32(0x2B0B550C)); /* 0x2B056272: call dword ptr [0x2b0b550c] */ 3120 RECOMP_FLAGS_IN(); 3121 ecx = MEM32(ebp + (-0x60)); /* 0x2B056278: mov ecx, dword ptr [ebp - 0x60] */ 3122 edx = MEM32(ebp + (-0x5C)); /* 0x2B05627B: mov edx, dword ptr [ebp - 0x5c] */ 3123 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3125 esp = esp - 0xCu; /* 0x2B05627E: sub esp, 0xc */ 3126 _flag_k = FK_CMP; 3127 eax = esp; /* 0x2B056281: mov eax, esp */ 3128 MEM32(eax) = ecx; /* 0x2B056283: mov dword ptr [eax], ecx */ 3129 ecx = MEM32(ebp + (-0x58)); /* 0x2B056285: mov ecx, dword ptr [ebp - 0x58] */ 3130 MEM32(eax + 0x4) = edx; /* 0x2B056288: mov dword ptr [eax + 4], edx */ 3131 MEM32(eax + 0x8) = ecx; /* 0x2B05628B: mov dword ptr [eax + 8], ecx */ 3132 ecx = MEM32(esi + 0x5C); /* 0x2B05628E: mov ecx, dword ptr [esi + 0x5c] */ 3133 RECOMP_ICALL(MEM32(0x2B0B5510)); /* 0x2B056291: call dword ptr [0x2b0b5510] */ 3134 RECOMP_FLAGS_IN(); 3135 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B056297: call dword ptr [0x2b0b5b64] */ 3136 RECOMP_FLAGS_IN(); 3137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBCu); 3138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3139 eax = eax + 0xBCu; /* 0x2B05629D: add eax, 0xbc */ 3140 _flag_k = FK_ADD; 3141 edx = ebp + (-0x18); /* 0x2B0562A2: lea edx, [ebp - 0x18] */ 3142 /* cmp edx, eax */ /* 0x2B0562A5: cmp edx, eax */ 3143 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3145 _flag_k = FK_CMP; 3146 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0562B4; /* 0x2B0562A7: je 0x2b0562b4 */ 3147 L_2B0562A9: 3148 ecx = MEM32(eax); /* 0x2B0562A9: mov ecx, dword ptr [eax] */ 3149 MEM32(ebp + (-0x18)) = ecx; /* 0x2B0562AB: mov dword ptr [ebp - 0x18], ecx */ 3150 edx = MEM32(eax + 0x4); /* 0x2B0562AE: mov edx, dword ptr [eax + 4] */ 3151 MEM32(ebp + (-0x14)) = edx; /* 0x2B0562B1: mov dword ptr [ebp - 0x14], edx */ 3152 L_2B0562B4: 3153 ecx = MEM32(esi + 0x5C); /* 0x2B0562B4: mov ecx, dword ptr [esi + 0x5c] */ 3154 eax = ebp + (-0x18); /* 0x2B0562B7: lea eax, [ebp - 0x18] */ 3155 PUSH32(esp, eax); /* 0x2B0562BA: push eax */ 3156 RECOMP_ICALL(MEM32(0x2B0B5514)); /* 0x2B0562BB: call dword ptr [0x2b0b5514] */ 3157 RECOMP_FLAGS_IN(); 3158 ecx = MEM32(0x2B0B5518); /* 0x2B0562C1: mov ecx, dword ptr [0x2b0b5518] */ 3159 eax = MEM32(ecx); /* 0x2B0562C7: mov eax, dword ptr [ecx] */ 3160 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3161 ebx = 0; /* 0x2B0562C9: xor ebx, ebx */ 3162 _cf = 0; 3163 _flag_k = FK_TEST; 3164 /* cmp eax, ebx */ /* 0x2B0562CB: cmp eax, ebx */ 3165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3167 _flag_k = FK_CMP; 3168 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B0562CD: setne al */ 3169 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0562D0: cmp al, bl */ 3170 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3172 _flag_k = FK_NARROW(FK_CMP, 24); 3173 MEM8(ebp + (-0xD)) = (uint8_t)(LO8(eax)); /* 0x2B0562D2: mov byte ptr [ebp - 0xd], al */ 3174 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0562FF; /* 0x2B0562D5: jne 0x2b0562ff */ 3175 L_2B0562D7: 3176 ecx = MEM32(esi + 0x48); /* 0x2B0562D7: mov ecx, dword ptr [esi + 0x48] */ 3177 edx = MEM32(ecx); /* 0x2B0562DA: mov edx, dword ptr [ecx] */ 3178 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B0562DC: call dword ptr [edx + 0x14] */ 3179 RECOMP_FLAGS_IN(); 3180 /* test LO8(eax), LO8(eax) */ /* 0x2B0562DF: test al, al */ 3181 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3182 _cf = 0; 3183 _flag_k = FK_NARROW(FK_TEST, 24); 3184 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0562FF; /* 0x2B0562E1: je 0x2b0562ff */ 3185 L_2B0562E3: 3186 ecx = MEM32(esi + 0x48); /* 0x2B0562E3: mov ecx, dword ptr [esi + 0x48] */ 3187 eax = MEM32(ecx); /* 0x2B0562E6: mov eax, dword ptr [ecx] */ 3188 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B0562E8: call dword ptr [eax + 0xc] */ 3189 RECOMP_FLAGS_IN(); 3190 ecx = esi; /* 0x2B0562EB: mov ecx, esi */ 3191 MEM32(esi + 0x4C) = ebx; /* 0x2B0562ED: mov dword ptr [esi + 0x4c], ebx */ 3192 MEM32(esi + 0x50) = ebx; /* 0x2B0562F0: mov dword ptr [esi + 0x50], ebx */ 3193 RECOMP_ICALL(0x2B0565E0u); /* 0x2B0562F3: call 0x2b0565e0 */ /* not lifted */ 3194 RECOMP_FLAGS_IN(); 3195 eax = MEM32(esi + 0x2C); /* 0x2B0562F8: mov eax, dword ptr [esi + 0x2c] */ 3196 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B0562FB: mov byte ptr [eax + 9], 1 */ 3197 L_2B0562FF: 3198 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B0562FF: call dword ptr [0x2b0b53bc] */ 3199 RECOMP_FLAGS_IN(); 3200 ecx = MEM32(eax + 0x14); /* 0x2B056305: mov ecx, dword ptr [eax + 0x14] */ 3201 fp_push(*(float*)&MEM32(ecx)); /* 0x2B056308: fld dword ptr [ecx] */ 3202 fp_push(*(float*)&MEM32(esi + 0x4C)); /* 0x2B05630A: fld dword ptr [esi + 0x4c] */ 3203 _st[0] -= _st[1]; /* 0x2B05630D: fsub st(1) */ 3204 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x4C) = _v; } /* 0x2B05630F: fst dword ptr [esi + 0x4c] */ 3205 fp_push(*(float*)&MEM32(esi + 0x50)); /* 0x2B056312: fld dword ptr [esi + 0x50] */ 3206 _st[0] -= _st[2]; /* 0x2B056315: fsub st(2) */ 3207 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x50) = _v; } /* 0x2B056317: fstp dword ptr [esi + 0x50] */ 3208 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B05631A: fcomp dword ptr [0x2b0b61b8] */ 3209 fp_pop(); 3210 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B056320: fnstsw ax */ 3211 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B056322: fstp st(0) */ 3212 /* test HI8(eax), 0x41u */ /* 0x2B056324: test ah, 0x41 */ 3213 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3214 _cf = 0; 3215 _flag_k = FK_NARROW(FK_TEST, 24); 3216 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056376; /* 0x2B056327: je 0x2b056376 */ 3217 L_2B056329: 3218 edx = MEM32(esi + 0x5C); /* 0x2B056329: mov edx, dword ptr [esi + 0x5c] */ 3219 ecx = ebp + (-0x28); /* 0x2B05632C: lea ecx, [ebp - 0x28] */ 3220 MEM32(esi + 0x4C) = 0x3DCCCCCDu; /* 0x2B05632F: mov dword ptr [esi + 0x4c], 0x3dcccccd */ 3221 MEM32(ebp + (-0x28)) = ebx; /* 0x2B056336: mov dword ptr [ebp - 0x28], ebx */ 3222 eax = MEM32(edx + 0xA4); /* 0x2B056339: mov eax, dword ptr [edx + 0xa4] */ 3223 PUSH32(esp, ecx); /* 0x2B05633F: push ecx */ 3224 PUSH32(esp, eax); /* 0x2B056340: push eax */ 3225 PUSH32(esp, 0x1F4u); /* 0x2B056341: push 0x1f4 */ 3226 RECOMP_ICALL(edi); /* 0x2B056346: call edi */ 3227 RECOMP_FLAGS_IN(); 3228 ecx = eax; /* 0x2B056348: mov ecx, eax */ 3229 RECOMP_ICALL(MEM32(0x2B0B5E2C)); /* 0x2B05634A: call dword ptr [0x2b0b5e2c] */ 3230 RECOMP_FLAGS_IN(); 3231 MEM8(ebp + (-0x14)) = (uint8_t)(LO8(eax)); /* 0x2B056350: mov byte ptr [ebp - 0x14], al */ 3232 edx = MEM32(ebp + (-0x14)); /* 0x2B056353: mov edx, dword ptr [ebp - 0x14] */ 3233 PUSH32(esp, edx); /* 0x2B056356: push edx */ 3234 ecx = esi; /* 0x2B056357: mov ecx, esi */ 3235 RECOMP_ICALL(0x2B0565A0u); /* 0x2B056359: call 0x2b0565a0 */ /* not lifted */ 3236 RECOMP_FLAGS_IN(); 3237 /* test MEM8(ebp + (-0x28)), 0x10u */ /* 0x2B05635E: test byte ptr [ebp - 0x28], 0x10 */ 3238 _flag_a = (uint32_t)(MEM8(ebp + (-0x28))) << 24; _flag_b = (uint32_t)(0x10u) << 24; 3239 _cf = 0; 3240 _flag_k = FK_NARROW(FK_TEST, 24); 3241 eax = MEM32(esi + 0x5C); /* 0x2B056362: mov eax, dword ptr [esi + 0x5c] */ 3242 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056370; /* 0x2B056365: je 0x2b056370 */ 3243 L_2B056367: 3244 MEM8(eax + 0xDE) = (uint8_t)(1); /* 0x2B056367: mov byte ptr [eax + 0xde], 1 */ 3245 goto L_2B056376; /* 0x2B05636E: jmp 0x2b056376 */ 3246 L_2B056370: 3247 MEM8(eax + 0xDE) = (uint8_t)(LO8(ebx)); /* 0x2B056370: mov byte ptr [eax + 0xde], bl */ 3248 L_2B056376: 3249 fp_push(*(float*)&MEM32(esi + 0x50)); /* 0x2B056376: fld dword ptr [esi + 0x50] */ 3250 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B056379: fcomp dword ptr [0x2b0b61b8] */ 3251 fp_pop(); 3252 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B05637F: fnstsw ax */ 3253 /* test HI8(eax), 0x41u */ /* 0x2B056381: test ah, 0x41 */ 3254 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3255 _cf = 0; 3256 _flag_k = FK_NARROW(FK_TEST, 24); 3257 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056542; /* 0x2B056384: je 0x2b056542 */ 3258 L_2B05638A: 3259 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B05638A: mov al, byte ptr [ebp - 0xd] */ 3260 MEM32(esi + 0x50) = 0x3F800000u; /* 0x2B05638D: mov dword ptr [esi + 0x50], 0x3f800000 */ 3261 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(eax)); /* 0x2B056394: mov byte ptr [ebp - 0x44], al */ 3262 MEM32(ebp + (-0x40)) = ebx; /* 0x2B056397: mov dword ptr [ebp - 0x40], ebx */ 3263 MEM32(ebp + (-0x3C)) = ebx; /* 0x2B05639A: mov dword ptr [ebp - 0x3c], ebx */ 3264 MEM32(ebp + (-0x38)) = ebx; /* 0x2B05639D: mov dword ptr [ebp - 0x38], ebx */ 3265 ecx = ebp + (-0x44); /* 0x2B0563A0: lea ecx, [ebp - 0x44] */ 3266 PUSH32(esp, ecx); /* 0x2B0563A3: push ecx */ 3267 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0563A4: mov dword ptr [ebp - 4], ebx */ 3268 RECOMP_ICALL(edi); /* 0x2B0563A7: call edi */ 3269 RECOMP_FLAGS_IN(); 3270 ecx = eax; /* 0x2B0563A9: mov ecx, eax */ 3271 RECOMP_ICALL(MEM32(0x2B0B5E30)); /* 0x2B0563AB: call dword ptr [0x2b0b5e30] */ 3272 RECOMP_FLAGS_IN(); 3273 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0563B1: cmp al, bl */ 3274 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3276 _flag_k = FK_NARROW(FK_CMP, 24); 3277 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0563C2; /* 0x2B0563B3: je 0x2b0563c2 */ 3278 L_2B0563B5: 3279 ecx = MEM32(esi + 0x5C); /* 0x2B0563B5: mov ecx, dword ptr [esi + 0x5c] */ 3280 edx = ebp + (-0x44); /* 0x2B0563B8: lea edx, [ebp - 0x44] */ 3281 PUSH32(esp, edx); /* 0x2B0563BB: push edx */ 3282 RECOMP_ICALL(MEM32(0x2B0B551C)); /* 0x2B0563BC: call dword ptr [0x2b0b551c] */ 3283 RECOMP_FLAGS_IN(); 3284 L_2B0563C2: 3285 /* cmp MEM8(ebp + (-0xD)), LO8(ebx) */ /* 0x2B0563C2: cmp byte ptr [ebp - 0xd], bl */ 3286 _flag_a = (uint32_t)(MEM8(ebp + (-0xD))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3288 _flag_k = FK_NARROW(FK_CMP, 24); 3289 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05651D; /* 0x2B0563C5: je 0x2b05651d */ 3290 L_2B0563CB: 3291 ecx = MEM32(esi + 0x48); /* 0x2B0563CB: mov ecx, dword ptr [esi + 0x48] */ 3292 eax = MEM32(ecx); /* 0x2B0563CE: mov eax, dword ptr [ecx] */ 3293 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x2B0563D0: call dword ptr [eax + 0x14] */ 3294 RECOMP_FLAGS_IN(); 3295 /* test LO8(eax), LO8(eax) */ /* 0x2B0563D3: test al, al */ 3296 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3297 _cf = 0; 3298 _flag_k = FK_NARROW(FK_TEST, 24); 3299 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05651D; /* 0x2B0563D5: je 0x2b05651d */ 3300 L_2B0563DB: 3301 ecx = ebp + (-0x20); /* 0x2B0563DB: lea ecx, [ebp - 0x20] */ 3302 PUSH32(esp, ecx); /* 0x2B0563DE: push ecx */ 3303 edx = ebp + (-0x24); /* 0x2B0563DF: lea edx, [ebp - 0x24] */ 3304 PUSH32(esp, edx); /* 0x2B0563E2: push edx */ 3305 eax = ebp + (-0x9C); /* 0x2B0563E3: lea eax, [ebp - 0x9c] */ 3306 PUSH32(esp, eax); /* 0x2B0563E9: push eax */ 3307 MEM32(ebp + (-0x24)) = ebx; /* 0x2B0563EA: mov dword ptr [ebp - 0x24], ebx */ 3308 MEM32(ebp + (-0x20)) = ebx; /* 0x2B0563ED: mov dword ptr [ebp - 0x20], ebx */ 3309 RECOMP_ICALL(edi); /* 0x2B0563F0: call edi */ 3310 RECOMP_FLAGS_IN(); 3311 ecx = eax; /* 0x2B0563F2: mov ecx, eax */ 3312 RECOMP_ICALL(MEM32(0x2B0B5E34)); /* 0x2B0563F4: call dword ptr [0x2b0b5e34] */ 3313 RECOMP_FLAGS_IN(); 3314 ecx = MEM32(esi + 0x40); /* 0x2B0563FA: mov ecx, dword ptr [esi + 0x40] */ 3315 PUSH32(esp, 1); /* 0x2B0563FD: push 1 */ 3316 PUSH32(esp, ebx); /* 0x2B0563FF: push ebx */ 3317 PUSH32(esp, ebx); /* 0x2B056400: push ebx */ 3318 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B056401: mov byte ptr [ebp - 4], 1 */ 3319 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B056405: call dword ptr [0x2b0b564c] */ 3320 RECOMP_FLAGS_IN(); 3321 ecx = MEM32(ebp + (-0x24)); /* 0x2B05640B: mov ecx, dword ptr [ebp - 0x24] */ 3322 /* cmp ecx, ebx */ /* 0x2B05640E: cmp ecx, ebx */ 3323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3325 _flag_k = FK_CMP; 3326 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0564D6; /* 0x2B056410: jle 0x2b0564d6 */ 3327 L_2B056416: 3328 edx = MEM32(ebp + (-0x20)); /* 0x2B056416: mov edx, dword ptr [ebp - 0x20] */ 3329 /* cmp edx, ebx */ /* 0x2B056419: cmp edx, ebx */ 3330 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 3331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3332 _flag_k = FK_CMP; 3333 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0564D6; /* 0x2B05641B: jle 0x2b0564d6 */ 3334 L_2B056421: 3335 eax = MEM32(ebp + (-0x98)); /* 0x2B056421: mov eax, dword ptr [ebp - 0x98] */ 3336 /* cmp eax, ebx */ /* 0x2B056427: cmp eax, ebx */ 3337 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3339 _flag_k = FK_CMP; 3340 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056430; /* 0x2B056429: jne 0x2b056430 */ 3341 L_2B05642B: 3342 eax = MEM32(0x2B0B513C); /* 0x2B05642B: mov eax, dword ptr [0x2b0b513c] */ 3343 L_2B056430: 3344 PUSH32(esp, edx); /* 0x2B056430: push edx */ 3345 PUSH32(esp, ecx); /* 0x2B056431: push ecx */ 3346 PUSH32(esp, eax); /* 0x2B056432: push eax */ 3347 ecx = ebp + (-0x19C); /* 0x2B056433: lea ecx, [ebp - 0x19c] */ 3348 PUSH32(esp, 0x2B0E861Cu); /* 0x2B056439: push 0x2b0e861c */ 3349 PUSH32(esp, ecx); /* 0x2B05643E: push ecx */ 3350 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B05643F: call dword ptr [0x2b0b51f0] */ 3351 RECOMP_FLAGS_IN(); 3352 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2B056445: mov dl, byte ptr [ebp - 0xd] */ 3353 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3354 ecx = ecx | 0xFFFFFFFFu; /* 0x2B056448: or ecx, 0xffffffff */ 3355 _cf = 0; 3356 _flag_k = FK_TEST; 3357 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3359 esp = esp + 0x14u; /* 0x2B05644B: add esp, 0x14 */ 3360 _flag_k = FK_ADD; 3361 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3362 eax = 0; /* 0x2B05644E: xor eax, eax */ 3363 _cf = 0; 3364 _flag_k = FK_TEST; 3365 edi = ebp + (-0x19C); /* 0x2B056450: lea edi, [ebp - 0x19c] */ 3366 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; } /* 0x2B056456: repne scasb al, byte ptr es:[edi] */ 3367 ecx = ~ecx; /* 0x2B056458: not ecx */ 3368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3369 ecx = ecx - 1; /* 0x2B05645A: dec ecx */ 3370 _flag_k = FK_DEC; 3371 PUSH32(esp, ecx); /* 0x2B05645B: push ecx */ 3372 eax = ebp + (-0x19C); /* 0x2B05645C: lea eax, [ebp - 0x19c] */ 3373 PUSH32(esp, eax); /* 0x2B056462: push eax */ 3374 ecx = ebp + (-0x74); /* 0x2B056463: lea ecx, [ebp - 0x74] */ 3375 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(edx)); /* 0x2B056466: mov byte ptr [ebp - 0x74], dl */ 3376 MEM32(ebp + (-0x70)) = ebx; /* 0x2B056469: mov dword ptr [ebp - 0x70], ebx */ 3377 MEM32(ebp + (-0x6C)) = ebx; /* 0x2B05646C: mov dword ptr [ebp - 0x6c], ebx */ 3378 MEM32(ebp + (-0x68)) = ebx; /* 0x2B05646F: mov dword ptr [ebp - 0x68], ebx */ 3379 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B056472: call dword ptr [0x2b0b5148] */ 3380 RECOMP_FLAGS_IN(); 3381 MEM32(ebp + (-0x64)) = ebx; /* 0x2B056478: mov dword ptr [ebp - 0x64], ebx */ 3382 PUSH32(esp, ebx); /* 0x2B05647B: push ebx */ 3383 PUSH32(esp, ebx); /* 0x2B05647C: push ebx */ 3384 PUSH32(esp, ebx); /* 0x2B05647D: push ebx */ 3385 PUSH32(esp, 1); /* 0x2B05647E: push 1 */ 3386 ecx = ebp + (-0x74); /* 0x2B056480: lea ecx, [ebp - 0x74] */ 3387 PUSH32(esp, ecx); /* 0x2B056483: push ecx */ 3388 ecx = MEM32(esi + 0x44); /* 0x2B056484: mov ecx, dword ptr [esi + 0x44] */ 3389 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B056487: mov byte ptr [ebp - 4], 2 */ 3390 RECOMP_ICALL(MEM32(0x2B0B5878)); /* 0x2B05648B: call dword ptr [0x2b0b5878] */ 3391 RECOMP_FLAGS_IN(); 3392 eax = MEM32(ebp + (-0x64)); /* 0x2B056491: mov eax, dword ptr [ebp - 0x64] */ 3393 /* cmp eax, ebx */ /* 0x2B056494: cmp eax, ebx */ 3394 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3396 _flag_k = FK_CMP; 3397 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B056496: mov byte ptr [ebp - 4], 3 */ 3398 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0564C1; /* 0x2B05649A: je 0x2b0564c1 */ 3399 L_2B05649C: 3400 edx = MEM32(eax + 0x2C); /* 0x2B05649C: mov edx, dword ptr [eax + 0x2c] */ 3401 edi = eax; /* 0x2B05649F: mov edi, eax */ 3402 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 3403 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3404 eax = eax + 0x2Cu; /* 0x2B0564A1: add eax, 0x2c */ 3405 _flag_k = FK_ADD; 3406 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3407 edx = edx - 1; /* 0x2B0564A4: dec edx */ 3408 _flag_k = FK_DEC; 3409 ecx = edx; /* 0x2B0564A5: mov ecx, edx */ 3410 /* cmp ecx, ebx */ /* 0x2B0564A7: cmp ecx, ebx */ 3411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3413 _flag_k = FK_CMP; 3414 MEM32(eax) = edx; /* 0x2B0564A9: mov dword ptr [eax], edx */ 3415 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0564C1; /* 0x2B0564AB: jne 0x2b0564c1 */ 3416 L_2B0564AD: 3417 /* cmp edi, ebx */ /* 0x2B0564AD: cmp edi, ebx */ 3418 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3420 _flag_k = FK_CMP; 3421 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0564C1; /* 0x2B0564AF: je 0x2b0564c1 */ 3422 L_2B0564B1: 3423 ecx = edi; /* 0x2B0564B1: mov ecx, edi */ 3424 RECOMP_ICALL(0x2B005B40u); /* 0x2B0564B3: call 0x2b005b40 */ /* not lifted */ 3425 RECOMP_FLAGS_IN(); 3426 PUSH32(esp, edi); /* 0x2B0564B8: push edi */ 3427 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0564B9: call 0x2b0ab1ba */ /* not lifted */ 3428 RECOMP_FLAGS_IN(); 3429 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3431 esp = esp + 4; /* 0x2B0564BE: add esp, 4 */ 3432 _flag_k = FK_ADD; 3433 L_2B0564C1: 3434 PUSH32(esp, 1); /* 0x2B0564C1: push 1 */ 3435 ecx = ebp + (-0x74); /* 0x2B0564C3: lea ecx, [ebp - 0x74] */ 3436 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B0564C6: mov byte ptr [ebp - 4], 1 */ 3437 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0564CA: call dword ptr [0x2b0b514c] */ 3438 RECOMP_FLAGS_IN(); 3439 edi = MEM32(0x2B0B5D6C); /* 0x2B0564D0: mov edi, dword ptr [0x2b0b5d6c] */ 3440 L_2B0564D6: 3441 ecx = MEM32(esi + 0x48); /* 0x2B0564D6: mov ecx, dword ptr [esi + 0x48] */ 3442 eax = MEM32(esi + 0x40); /* 0x2B0564D9: mov eax, dword ptr [esi + 0x40] */ 3443 edx = MEM32(ecx); /* 0x2B0564DC: mov edx, dword ptr [ecx] */ 3444 PUSH32(esp, eax); /* 0x2B0564DE: push eax */ 3445 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2B0564DF: call dword ptr [edx + 0x10] */ 3446 RECOMP_FLAGS_IN(); 3447 eax = MEM32(ebp + (-0x98)); /* 0x2B0564E2: mov eax, dword ptr [ebp - 0x98] */ 3448 /* cmp eax, ebx */ /* 0x2B0564E8: cmp eax, ebx */ 3449 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3451 _flag_k = FK_CMP; 3452 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0564EA: mov byte ptr [ebp - 4], bl */ 3453 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05650B; /* 0x2B0564ED: je 0x2b05650b */ 3454 L_2B0564EF: 3455 ecx = eax + (-0x1); /* 0x2B0564EF: lea ecx, [eax - 1] */ 3456 SET_LO8(eax, MEM8(ecx)); /* 0x2B0564F2: mov al, byte ptr [ecx] */ 3457 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0564F4: cmp al, bl */ 3458 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3460 _flag_k = FK_NARROW(FK_CMP, 24); 3461 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056502; /* 0x2B0564F6: je 0x2b056502 */ 3462 L_2B0564F8: 3463 /* cmp LO8(eax), 0xFFu */ /* 0x2B0564F8: cmp al, 0xff */ 3464 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3466 _flag_k = FK_NARROW(FK_CMP, 24); 3467 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056502; /* 0x2B0564FA: je 0x2b056502 */ 3468 L_2B0564FC: 3469 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3470 SET_LO8(eax, LO8(eax) - 1); /* 0x2B0564FC: dec al */ 3471 _flag_k = FK_NARROW(FK_DEC, 24); 3472 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B0564FE: mov byte ptr [ecx], al */ 3473 goto L_2B05650B; /* 0x2B056500: jmp 0x2b05650b */ 3474 L_2B056502: 3475 PUSH32(esp, ecx); /* 0x2B056502: push ecx */ 3476 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B056503: call 0x2b0ab1ba */ /* not lifted */ 3477 RECOMP_FLAGS_IN(); 3478 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3480 esp = esp + 4; /* 0x2B056508: add esp, 4 */ 3481 _flag_k = FK_ADD; 3482 L_2B05650B: 3483 MEM32(ebp + (-0x98)) = ebx; /* 0x2B05650B: mov dword ptr [ebp - 0x98], ebx */ 3484 MEM32(ebp + (-0x94)) = ebx; /* 0x2B056511: mov dword ptr [ebp - 0x94], ebx */ 3485 MEM32(ebp + (-0x90)) = ebx; /* 0x2B056517: mov dword ptr [ebp - 0x90], ebx */ 3486 L_2B05651D: 3487 ecx = MEM32(esi + 0x5C); /* 0x2B05651D: mov ecx, dword ptr [esi + 0x5c] */ 3488 RECOMP_ICALL(MEM32(0x2B0B5520)); /* 0x2B056520: call dword ptr [0x2b0b5520] */ 3489 RECOMP_FLAGS_IN(); 3490 ecx = MEM32(ebp + (-0x40)); /* 0x2B056526: mov ecx, dword ptr [ebp - 0x40] */ 3491 PUSH32(esp, ecx); /* 0x2B056529: push ecx */ 3492 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B05652A: mov dword ptr [ebp - 4], 0xffffffff */ 3493 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B056531: call 0x2b0ab1ba */ /* not lifted */ 3494 RECOMP_FLAGS_IN(); 3495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3497 esp = esp + 4; /* 0x2B056536: add esp, 4 */ 3498 _flag_k = FK_ADD; 3499 MEM32(ebp + (-0x40)) = ebx; /* 0x2B056539: mov dword ptr [ebp - 0x40], ebx */ 3500 MEM32(ebp + (-0x3C)) = ebx; /* 0x2B05653C: mov dword ptr [ebp - 0x3c], ebx */ 3501 MEM32(ebp + (-0x38)) = ebx; /* 0x2B05653F: mov dword ptr [ebp - 0x38], ebx */ 3502 L_2B056542: 3503 RECOMP_ICALL(edi); /* 0x2B056542: call edi */ 3504 RECOMP_FLAGS_IN(); 3505 ecx = eax; /* 0x2B056544: mov ecx, eax */ 3506 RECOMP_ICALL(MEM32(0x2B0B5E38)); /* 0x2B056546: call dword ptr [0x2b0b5e38] */ 3507 RECOMP_FLAGS_IN(); 3508 edi = eax; /* 0x2B05654C: mov edi, eax */ 3509 eax = MEM32(esi + 0x54); /* 0x2B05654E: mov eax, dword ptr [esi + 0x54] */ 3510 /* cmp edi, eax */ /* 0x2B056551: cmp edi, eax */ 3511 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3513 _flag_k = FK_CMP; 3514 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05657D; /* 0x2B056553: je 0x2b05657d */ 3515 L_2B056555: 3516 /* cmp eax, 0xFFFFFFFFu */ /* 0x2B056555: cmp eax, -1 */ 3517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3519 _flag_k = FK_CMP; 3520 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056567; /* 0x2B056558: je 0x2b056567 */ 3521 L_2B05655A: 3522 PUSH32(esp, ebx); /* 0x2B05655A: push ebx */ 3523 PUSH32(esp, 1); /* 0x2B05655B: push 1 */ 3524 PUSH32(esp, eax); /* 0x2B05655D: push eax */ 3525 RECOMP_ICALL(MEM32(0x2B0B5524)); /* 0x2B05655E: call dword ptr [0x2b0b5524] */ 3526 RECOMP_FLAGS_IN(); 3527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3529 esp = esp + 0xCu; /* 0x2B056564: add esp, 0xc */ 3530 _flag_k = FK_ADD; 3531 L_2B056567: 3532 /* cmp edi, 0xFFFFFFFFu */ /* 0x2B056567: cmp edi, -1 */ 3533 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 3534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3535 _flag_k = FK_CMP; 3536 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05657A; /* 0x2B05656A: je 0x2b05657a */ 3537 L_2B05656C: 3538 PUSH32(esp, 1); /* 0x2B05656C: push 1 */ 3539 PUSH32(esp, 1); /* 0x2B05656E: push 1 */ 3540 PUSH32(esp, edi); /* 0x2B056570: push edi */ 3541 RECOMP_ICALL(MEM32(0x2B0B5524)); /* 0x2B056571: call dword ptr [0x2b0b5524] */ 3542 RECOMP_FLAGS_IN(); 3543 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3544 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3545 esp = esp + 0xCu; /* 0x2B056577: add esp, 0xc */ 3546 _flag_k = FK_ADD; 3547 L_2B05657A: 3548 MEM32(esi + 0x54) = edi; /* 0x2B05657A: mov dword ptr [esi + 0x54], edi */ 3549 L_2B05657D: 3550 ecx = MEM32(esi + 0x5C); /* 0x2B05657D: mov ecx, dword ptr [esi + 0x5c] */ 3551 RECOMP_ICALL(MEM32(0x2B0B5528)); /* 0x2B056580: call dword ptr [0x2b0b5528] */ 3552 RECOMP_FLAGS_IN(); 3553 ecx = MEM32(ebp + (-0xC)); /* 0x2B056586: mov ecx, dword ptr [ebp - 0xc] */ 3554 edi = POP32_VAL(esp); /* 0x2B056589: pop edi */ 3555 esi = POP32_VAL(esp); /* 0x2B05658A: pop esi */ 3556 MEM32(FS_BASE + (0)) = ecx; /* 0x2B05658B: mov dword ptr fs:[0], ecx */ 3557 ebx = POP32_VAL(esp); /* 0x2B056592: pop ebx */ 3558 esp = ebp; /* 0x2B056593: mov esp, ebp */ 3559 ebp = POP32_VAL(esp); /* 0x2B056595: pop ebp */ 3560 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056596: ret */ 3561 RECOMP_REGS_OUT(); 3562 } 3563 3564 void sub_2B056376(void) { 3565 int _fpu_cmp = 0; 3566 uint32_t _cf = 0; 3567 int _df = 1; 3568 uint32_t _flag_k = FK_NONE; 3569 uint32_t _flag_a = 0, _flag_b = 0; 3570 uint32_t _itail_tgt = 0; 3571 RECOMP_REGS_LOCALS 3572 RECOMP_ENTER(0x2B056376u); 3573 3574 L_2B056376: 3575 fp_push(*(float*)&MEM32(esi + 0x50)); /* 0x2B056376: fld dword ptr [esi + 0x50] */ 3576 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B056379: fcomp dword ptr [0x2b0b61b8] */ 3577 fp_pop(); 3578 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B05637F: fnstsw ax */ 3579 /* test HI8(eax), 0x41u */ /* 0x2B056381: test ah, 0x41 */ 3580 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3581 _cf = 0; 3582 _flag_k = FK_NARROW(FK_TEST, 24); 3583 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056542; /* 0x2B056384: je 0x2b056542 */ 3584 L_2B05638A: 3585 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B05638A: mov al, byte ptr [ebp - 0xd] */ 3586 MEM32(esi + 0x50) = 0x3F800000u; /* 0x2B05638D: mov dword ptr [esi + 0x50], 0x3f800000 */ 3587 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(eax)); /* 0x2B056394: mov byte ptr [ebp - 0x44], al */ 3588 MEM32(ebp + (-0x40)) = ebx; /* 0x2B056397: mov dword ptr [ebp - 0x40], ebx */ 3589 MEM32(ebp + (-0x3C)) = ebx; /* 0x2B05639A: mov dword ptr [ebp - 0x3c], ebx */ 3590 MEM32(ebp + (-0x38)) = ebx; /* 0x2B05639D: mov dword ptr [ebp - 0x38], ebx */ 3591 ecx = ebp + (-0x44); /* 0x2B0563A0: lea ecx, [ebp - 0x44] */ 3592 PUSH32(esp, ecx); /* 0x2B0563A3: push ecx */ 3593 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0563A4: mov dword ptr [ebp - 4], ebx */ 3594 RECOMP_ICALL(edi); /* 0x2B0563A7: call edi */ 3595 RECOMP_FLAGS_IN(); 3596 ecx = eax; /* 0x2B0563A9: mov ecx, eax */ 3597 RECOMP_ICALL(MEM32(0x2B0B5E30)); /* 0x2B0563AB: call dword ptr [0x2b0b5e30] */ 3598 RECOMP_FLAGS_IN(); 3599 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0563B1: cmp al, bl */ 3600 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3602 _flag_k = FK_NARROW(FK_CMP, 24); 3603 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0563C2; /* 0x2B0563B3: je 0x2b0563c2 */ 3604 L_2B0563B5: 3605 ecx = MEM32(esi + 0x5C); /* 0x2B0563B5: mov ecx, dword ptr [esi + 0x5c] */ 3606 edx = ebp + (-0x44); /* 0x2B0563B8: lea edx, [ebp - 0x44] */ 3607 PUSH32(esp, edx); /* 0x2B0563BB: push edx */ 3608 RECOMP_ICALL(MEM32(0x2B0B551C)); /* 0x2B0563BC: call dword ptr [0x2b0b551c] */ 3609 RECOMP_FLAGS_IN(); 3610 L_2B0563C2: 3611 /* cmp MEM8(ebp + (-0xD)), LO8(ebx) */ /* 0x2B0563C2: cmp byte ptr [ebp - 0xd], bl */ 3612 _flag_a = (uint32_t)(MEM8(ebp + (-0xD))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3614 _flag_k = FK_NARROW(FK_CMP, 24); 3615 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05651D; /* 0x2B0563C5: je 0x2b05651d */ 3616 L_2B0563CB: 3617 ecx = MEM32(esi + 0x48); /* 0x2B0563CB: mov ecx, dword ptr [esi + 0x48] */ 3618 eax = MEM32(ecx); /* 0x2B0563CE: mov eax, dword ptr [ecx] */ 3619 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x2B0563D0: call dword ptr [eax + 0x14] */ 3620 RECOMP_FLAGS_IN(); 3621 /* test LO8(eax), LO8(eax) */ /* 0x2B0563D3: test al, al */ 3622 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3623 _cf = 0; 3624 _flag_k = FK_NARROW(FK_TEST, 24); 3625 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05651D; /* 0x2B0563D5: je 0x2b05651d */ 3626 L_2B0563DB: 3627 ecx = ebp + (-0x20); /* 0x2B0563DB: lea ecx, [ebp - 0x20] */ 3628 PUSH32(esp, ecx); /* 0x2B0563DE: push ecx */ 3629 edx = ebp + (-0x24); /* 0x2B0563DF: lea edx, [ebp - 0x24] */ 3630 PUSH32(esp, edx); /* 0x2B0563E2: push edx */ 3631 eax = ebp + (-0x9C); /* 0x2B0563E3: lea eax, [ebp - 0x9c] */ 3632 PUSH32(esp, eax); /* 0x2B0563E9: push eax */ 3633 MEM32(ebp + (-0x24)) = ebx; /* 0x2B0563EA: mov dword ptr [ebp - 0x24], ebx */ 3634 MEM32(ebp + (-0x20)) = ebx; /* 0x2B0563ED: mov dword ptr [ebp - 0x20], ebx */ 3635 RECOMP_ICALL(edi); /* 0x2B0563F0: call edi */ 3636 RECOMP_FLAGS_IN(); 3637 ecx = eax; /* 0x2B0563F2: mov ecx, eax */ 3638 RECOMP_ICALL(MEM32(0x2B0B5E34)); /* 0x2B0563F4: call dword ptr [0x2b0b5e34] */ 3639 RECOMP_FLAGS_IN(); 3640 ecx = MEM32(esi + 0x40); /* 0x2B0563FA: mov ecx, dword ptr [esi + 0x40] */ 3641 PUSH32(esp, 1); /* 0x2B0563FD: push 1 */ 3642 PUSH32(esp, ebx); /* 0x2B0563FF: push ebx */ 3643 PUSH32(esp, ebx); /* 0x2B056400: push ebx */ 3644 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B056401: mov byte ptr [ebp - 4], 1 */ 3645 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B056405: call dword ptr [0x2b0b564c] */ 3646 RECOMP_FLAGS_IN(); 3647 ecx = MEM32(ebp + (-0x24)); /* 0x2B05640B: mov ecx, dword ptr [ebp - 0x24] */ 3648 /* cmp ecx, ebx */ /* 0x2B05640E: cmp ecx, ebx */ 3649 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3651 _flag_k = FK_CMP; 3652 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0564D6; /* 0x2B056410: jle 0x2b0564d6 */ 3653 L_2B056416: 3654 edx = MEM32(ebp + (-0x20)); /* 0x2B056416: mov edx, dword ptr [ebp - 0x20] */ 3655 /* cmp edx, ebx */ /* 0x2B056419: cmp edx, ebx */ 3656 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 3657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3658 _flag_k = FK_CMP; 3659 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0564D6; /* 0x2B05641B: jle 0x2b0564d6 */ 3660 L_2B056421: 3661 eax = MEM32(ebp + (-0x98)); /* 0x2B056421: mov eax, dword ptr [ebp - 0x98] */ 3662 /* cmp eax, ebx */ /* 0x2B056427: cmp eax, ebx */ 3663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3665 _flag_k = FK_CMP; 3666 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056430; /* 0x2B056429: jne 0x2b056430 */ 3667 L_2B05642B: 3668 eax = MEM32(0x2B0B513C); /* 0x2B05642B: mov eax, dword ptr [0x2b0b513c] */ 3669 L_2B056430: 3670 PUSH32(esp, edx); /* 0x2B056430: push edx */ 3671 PUSH32(esp, ecx); /* 0x2B056431: push ecx */ 3672 PUSH32(esp, eax); /* 0x2B056432: push eax */ 3673 ecx = ebp + (-0x19C); /* 0x2B056433: lea ecx, [ebp - 0x19c] */ 3674 PUSH32(esp, 0x2B0E861Cu); /* 0x2B056439: push 0x2b0e861c */ 3675 PUSH32(esp, ecx); /* 0x2B05643E: push ecx */ 3676 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B05643F: call dword ptr [0x2b0b51f0] */ 3677 RECOMP_FLAGS_IN(); 3678 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2B056445: mov dl, byte ptr [ebp - 0xd] */ 3679 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3680 ecx = ecx | 0xFFFFFFFFu; /* 0x2B056448: or ecx, 0xffffffff */ 3681 _cf = 0; 3682 _flag_k = FK_TEST; 3683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3685 esp = esp + 0x14u; /* 0x2B05644B: add esp, 0x14 */ 3686 _flag_k = FK_ADD; 3687 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3688 eax = 0; /* 0x2B05644E: xor eax, eax */ 3689 _cf = 0; 3690 _flag_k = FK_TEST; 3691 edi = ebp + (-0x19C); /* 0x2B056450: lea edi, [ebp - 0x19c] */ 3692 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; } /* 0x2B056456: repne scasb al, byte ptr es:[edi] */ 3693 ecx = ~ecx; /* 0x2B056458: not ecx */ 3694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3695 ecx = ecx - 1; /* 0x2B05645A: dec ecx */ 3696 _flag_k = FK_DEC; 3697 PUSH32(esp, ecx); /* 0x2B05645B: push ecx */ 3698 eax = ebp + (-0x19C); /* 0x2B05645C: lea eax, [ebp - 0x19c] */ 3699 PUSH32(esp, eax); /* 0x2B056462: push eax */ 3700 ecx = ebp + (-0x74); /* 0x2B056463: lea ecx, [ebp - 0x74] */ 3701 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(edx)); /* 0x2B056466: mov byte ptr [ebp - 0x74], dl */ 3702 MEM32(ebp + (-0x70)) = ebx; /* 0x2B056469: mov dword ptr [ebp - 0x70], ebx */ 3703 MEM32(ebp + (-0x6C)) = ebx; /* 0x2B05646C: mov dword ptr [ebp - 0x6c], ebx */ 3704 MEM32(ebp + (-0x68)) = ebx; /* 0x2B05646F: mov dword ptr [ebp - 0x68], ebx */ 3705 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B056472: call dword ptr [0x2b0b5148] */ 3706 RECOMP_FLAGS_IN(); 3707 MEM32(ebp + (-0x64)) = ebx; /* 0x2B056478: mov dword ptr [ebp - 0x64], ebx */ 3708 PUSH32(esp, ebx); /* 0x2B05647B: push ebx */ 3709 PUSH32(esp, ebx); /* 0x2B05647C: push ebx */ 3710 PUSH32(esp, ebx); /* 0x2B05647D: push ebx */ 3711 PUSH32(esp, 1); /* 0x2B05647E: push 1 */ 3712 ecx = ebp + (-0x74); /* 0x2B056480: lea ecx, [ebp - 0x74] */ 3713 PUSH32(esp, ecx); /* 0x2B056483: push ecx */ 3714 ecx = MEM32(esi + 0x44); /* 0x2B056484: mov ecx, dword ptr [esi + 0x44] */ 3715 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B056487: mov byte ptr [ebp - 4], 2 */ 3716 RECOMP_ICALL(MEM32(0x2B0B5878)); /* 0x2B05648B: call dword ptr [0x2b0b5878] */ 3717 RECOMP_FLAGS_IN(); 3718 eax = MEM32(ebp + (-0x64)); /* 0x2B056491: mov eax, dword ptr [ebp - 0x64] */ 3719 /* cmp eax, ebx */ /* 0x2B056494: cmp eax, ebx */ 3720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3722 _flag_k = FK_CMP; 3723 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B056496: mov byte ptr [ebp - 4], 3 */ 3724 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0564C1; /* 0x2B05649A: je 0x2b0564c1 */ 3725 L_2B05649C: 3726 edx = MEM32(eax + 0x2C); /* 0x2B05649C: mov edx, dword ptr [eax + 0x2c] */ 3727 edi = eax; /* 0x2B05649F: mov edi, eax */ 3728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 3729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3730 eax = eax + 0x2Cu; /* 0x2B0564A1: add eax, 0x2c */ 3731 _flag_k = FK_ADD; 3732 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3733 edx = edx - 1; /* 0x2B0564A4: dec edx */ 3734 _flag_k = FK_DEC; 3735 ecx = edx; /* 0x2B0564A5: mov ecx, edx */ 3736 /* cmp ecx, ebx */ /* 0x2B0564A7: cmp ecx, ebx */ 3737 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3739 _flag_k = FK_CMP; 3740 MEM32(eax) = edx; /* 0x2B0564A9: mov dword ptr [eax], edx */ 3741 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0564C1; /* 0x2B0564AB: jne 0x2b0564c1 */ 3742 L_2B0564AD: 3743 /* cmp edi, ebx */ /* 0x2B0564AD: cmp edi, ebx */ 3744 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3746 _flag_k = FK_CMP; 3747 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0564C1; /* 0x2B0564AF: je 0x2b0564c1 */ 3748 L_2B0564B1: 3749 ecx = edi; /* 0x2B0564B1: mov ecx, edi */ 3750 RECOMP_ICALL(0x2B005B40u); /* 0x2B0564B3: call 0x2b005b40 */ /* not lifted */ 3751 RECOMP_FLAGS_IN(); 3752 PUSH32(esp, edi); /* 0x2B0564B8: push edi */ 3753 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0564B9: call 0x2b0ab1ba */ /* not lifted */ 3754 RECOMP_FLAGS_IN(); 3755 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3756 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3757 esp = esp + 4; /* 0x2B0564BE: add esp, 4 */ 3758 _flag_k = FK_ADD; 3759 L_2B0564C1: 3760 PUSH32(esp, 1); /* 0x2B0564C1: push 1 */ 3761 ecx = ebp + (-0x74); /* 0x2B0564C3: lea ecx, [ebp - 0x74] */ 3762 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B0564C6: mov byte ptr [ebp - 4], 1 */ 3763 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0564CA: call dword ptr [0x2b0b514c] */ 3764 RECOMP_FLAGS_IN(); 3765 edi = MEM32(0x2B0B5D6C); /* 0x2B0564D0: mov edi, dword ptr [0x2b0b5d6c] */ 3766 L_2B0564D6: 3767 ecx = MEM32(esi + 0x48); /* 0x2B0564D6: mov ecx, dword ptr [esi + 0x48] */ 3768 eax = MEM32(esi + 0x40); /* 0x2B0564D9: mov eax, dword ptr [esi + 0x40] */ 3769 edx = MEM32(ecx); /* 0x2B0564DC: mov edx, dword ptr [ecx] */ 3770 PUSH32(esp, eax); /* 0x2B0564DE: push eax */ 3771 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2B0564DF: call dword ptr [edx + 0x10] */ 3772 RECOMP_FLAGS_IN(); 3773 eax = MEM32(ebp + (-0x98)); /* 0x2B0564E2: mov eax, dword ptr [ebp - 0x98] */ 3774 /* cmp eax, ebx */ /* 0x2B0564E8: cmp eax, ebx */ 3775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3777 _flag_k = FK_CMP; 3778 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0564EA: mov byte ptr [ebp - 4], bl */ 3779 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05650B; /* 0x2B0564ED: je 0x2b05650b */ 3780 L_2B0564EF: 3781 ecx = eax + (-0x1); /* 0x2B0564EF: lea ecx, [eax - 1] */ 3782 SET_LO8(eax, MEM8(ecx)); /* 0x2B0564F2: mov al, byte ptr [ecx] */ 3783 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0564F4: cmp al, bl */ 3784 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3786 _flag_k = FK_NARROW(FK_CMP, 24); 3787 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056502; /* 0x2B0564F6: je 0x2b056502 */ 3788 L_2B0564F8: 3789 /* cmp LO8(eax), 0xFFu */ /* 0x2B0564F8: cmp al, 0xff */ 3790 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3792 _flag_k = FK_NARROW(FK_CMP, 24); 3793 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056502; /* 0x2B0564FA: je 0x2b056502 */ 3794 L_2B0564FC: 3795 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3796 SET_LO8(eax, LO8(eax) - 1); /* 0x2B0564FC: dec al */ 3797 _flag_k = FK_NARROW(FK_DEC, 24); 3798 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B0564FE: mov byte ptr [ecx], al */ 3799 goto L_2B05650B; /* 0x2B056500: jmp 0x2b05650b */ 3800 L_2B056502: 3801 PUSH32(esp, ecx); /* 0x2B056502: push ecx */ 3802 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B056503: call 0x2b0ab1ba */ /* not lifted */ 3803 RECOMP_FLAGS_IN(); 3804 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3805 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3806 esp = esp + 4; /* 0x2B056508: add esp, 4 */ 3807 _flag_k = FK_ADD; 3808 L_2B05650B: 3809 MEM32(ebp + (-0x98)) = ebx; /* 0x2B05650B: mov dword ptr [ebp - 0x98], ebx */ 3810 MEM32(ebp + (-0x94)) = ebx; /* 0x2B056511: mov dword ptr [ebp - 0x94], ebx */ 3811 MEM32(ebp + (-0x90)) = ebx; /* 0x2B056517: mov dword ptr [ebp - 0x90], ebx */ 3812 L_2B05651D: 3813 ecx = MEM32(esi + 0x5C); /* 0x2B05651D: mov ecx, dword ptr [esi + 0x5c] */ 3814 RECOMP_ICALL(MEM32(0x2B0B5520)); /* 0x2B056520: call dword ptr [0x2b0b5520] */ 3815 RECOMP_FLAGS_IN(); 3816 ecx = MEM32(ebp + (-0x40)); /* 0x2B056526: mov ecx, dword ptr [ebp - 0x40] */ 3817 PUSH32(esp, ecx); /* 0x2B056529: push ecx */ 3818 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B05652A: mov dword ptr [ebp - 4], 0xffffffff */ 3819 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B056531: call 0x2b0ab1ba */ /* not lifted */ 3820 RECOMP_FLAGS_IN(); 3821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3823 esp = esp + 4; /* 0x2B056536: add esp, 4 */ 3824 _flag_k = FK_ADD; 3825 MEM32(ebp + (-0x40)) = ebx; /* 0x2B056539: mov dword ptr [ebp - 0x40], ebx */ 3826 MEM32(ebp + (-0x3C)) = ebx; /* 0x2B05653C: mov dword ptr [ebp - 0x3c], ebx */ 3827 MEM32(ebp + (-0x38)) = ebx; /* 0x2B05653F: mov dword ptr [ebp - 0x38], ebx */ 3828 L_2B056542: 3829 RECOMP_ICALL(edi); /* 0x2B056542: call edi */ 3830 RECOMP_FLAGS_IN(); 3831 ecx = eax; /* 0x2B056544: mov ecx, eax */ 3832 RECOMP_ICALL(MEM32(0x2B0B5E38)); /* 0x2B056546: call dword ptr [0x2b0b5e38] */ 3833 RECOMP_FLAGS_IN(); 3834 edi = eax; /* 0x2B05654C: mov edi, eax */ 3835 eax = MEM32(esi + 0x54); /* 0x2B05654E: mov eax, dword ptr [esi + 0x54] */ 3836 /* cmp edi, eax */ /* 0x2B056551: cmp edi, eax */ 3837 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3839 _flag_k = FK_CMP; 3840 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05657D; /* 0x2B056553: je 0x2b05657d */ 3841 L_2B056555: 3842 /* cmp eax, 0xFFFFFFFFu */ /* 0x2B056555: cmp eax, -1 */ 3843 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3845 _flag_k = FK_CMP; 3846 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056567; /* 0x2B056558: je 0x2b056567 */ 3847 L_2B05655A: 3848 PUSH32(esp, ebx); /* 0x2B05655A: push ebx */ 3849 PUSH32(esp, 1); /* 0x2B05655B: push 1 */ 3850 PUSH32(esp, eax); /* 0x2B05655D: push eax */ 3851 RECOMP_ICALL(MEM32(0x2B0B5524)); /* 0x2B05655E: call dword ptr [0x2b0b5524] */ 3852 RECOMP_FLAGS_IN(); 3853 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3854 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3855 esp = esp + 0xCu; /* 0x2B056564: add esp, 0xc */ 3856 _flag_k = FK_ADD; 3857 L_2B056567: 3858 /* cmp edi, 0xFFFFFFFFu */ /* 0x2B056567: cmp edi, -1 */ 3859 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 3860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3861 _flag_k = FK_CMP; 3862 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05657A; /* 0x2B05656A: je 0x2b05657a */ 3863 L_2B05656C: 3864 PUSH32(esp, 1); /* 0x2B05656C: push 1 */ 3865 PUSH32(esp, 1); /* 0x2B05656E: push 1 */ 3866 PUSH32(esp, edi); /* 0x2B056570: push edi */ 3867 RECOMP_ICALL(MEM32(0x2B0B5524)); /* 0x2B056571: call dword ptr [0x2b0b5524] */ 3868 RECOMP_FLAGS_IN(); 3869 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3871 esp = esp + 0xCu; /* 0x2B056577: add esp, 0xc */ 3872 _flag_k = FK_ADD; 3873 L_2B05657A: 3874 MEM32(esi + 0x54) = edi; /* 0x2B05657A: mov dword ptr [esi + 0x54], edi */ 3875 L_2B05657D: 3876 ecx = MEM32(esi + 0x5C); /* 0x2B05657D: mov ecx, dword ptr [esi + 0x5c] */ 3877 RECOMP_ICALL(MEM32(0x2B0B5528)); /* 0x2B056580: call dword ptr [0x2b0b5528] */ 3878 RECOMP_FLAGS_IN(); 3879 ecx = MEM32(ebp + (-0xC)); /* 0x2B056586: mov ecx, dword ptr [ebp - 0xc] */ 3880 edi = POP32_VAL(esp); /* 0x2B056589: pop edi */ 3881 esi = POP32_VAL(esp); /* 0x2B05658A: pop esi */ 3882 MEM32(FS_BASE + (0)) = ecx; /* 0x2B05658B: mov dword ptr fs:[0], ecx */ 3883 ebx = POP32_VAL(esp); /* 0x2B056592: pop ebx */ 3884 esp = ebp; /* 0x2B056593: mov esp, ebp */ 3885 ebp = POP32_VAL(esp); /* 0x2B056595: pop ebp */ 3886 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056596: ret */ 3887 RECOMP_REGS_OUT(); 3888 } 3889 3890 void sub_2B05650B(void) { 3891 int _fpu_cmp = 0; 3892 uint32_t _cf = 0; 3893 int _df = 1; 3894 uint32_t _flag_k = FK_NONE; 3895 uint32_t _flag_a = 0, _flag_b = 0; 3896 uint32_t _itail_tgt = 0; 3897 RECOMP_REGS_LOCALS 3898 RECOMP_ENTER(0x2B05650Bu); 3899 3900 L_2B05650B: 3901 MEM32(ebp + (-0x98)) = ebx; /* 0x2B05650B: mov dword ptr [ebp - 0x98], ebx */ 3902 MEM32(ebp + (-0x94)) = ebx; /* 0x2B056511: mov dword ptr [ebp - 0x94], ebx */ 3903 MEM32(ebp + (-0x90)) = ebx; /* 0x2B056517: mov dword ptr [ebp - 0x90], ebx */ 3904 ecx = MEM32(esi + 0x5C); /* 0x2B05651D: mov ecx, dword ptr [esi + 0x5c] */ 3905 RECOMP_ICALL(MEM32(0x2B0B5520)); /* 0x2B056520: call dword ptr [0x2b0b5520] */ 3906 RECOMP_FLAGS_IN(); 3907 ecx = MEM32(ebp + (-0x40)); /* 0x2B056526: mov ecx, dword ptr [ebp - 0x40] */ 3908 PUSH32(esp, ecx); /* 0x2B056529: push ecx */ 3909 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B05652A: mov dword ptr [ebp - 4], 0xffffffff */ 3910 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B056531: call 0x2b0ab1ba */ /* not lifted */ 3911 RECOMP_FLAGS_IN(); 3912 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3913 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3914 esp = esp + 4; /* 0x2B056536: add esp, 4 */ 3915 _flag_k = FK_ADD; 3916 MEM32(ebp + (-0x40)) = ebx; /* 0x2B056539: mov dword ptr [ebp - 0x40], ebx */ 3917 MEM32(ebp + (-0x3C)) = ebx; /* 0x2B05653C: mov dword ptr [ebp - 0x3c], ebx */ 3918 MEM32(ebp + (-0x38)) = ebx; /* 0x2B05653F: mov dword ptr [ebp - 0x38], ebx */ 3919 RECOMP_ICALL(edi); /* 0x2B056542: call edi */ 3920 RECOMP_FLAGS_IN(); 3921 ecx = eax; /* 0x2B056544: mov ecx, eax */ 3922 RECOMP_ICALL(MEM32(0x2B0B5E38)); /* 0x2B056546: call dword ptr [0x2b0b5e38] */ 3923 RECOMP_FLAGS_IN(); 3924 edi = eax; /* 0x2B05654C: mov edi, eax */ 3925 eax = MEM32(esi + 0x54); /* 0x2B05654E: mov eax, dword ptr [esi + 0x54] */ 3926 /* cmp edi, eax */ /* 0x2B056551: cmp edi, eax */ 3927 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3929 _flag_k = FK_CMP; 3930 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05657D; /* 0x2B056553: je 0x2b05657d */ 3931 L_2B056555: 3932 /* cmp eax, 0xFFFFFFFFu */ /* 0x2B056555: cmp eax, -1 */ 3933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3935 _flag_k = FK_CMP; 3936 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056567; /* 0x2B056558: je 0x2b056567 */ 3937 L_2B05655A: 3938 PUSH32(esp, ebx); /* 0x2B05655A: push ebx */ 3939 PUSH32(esp, 1); /* 0x2B05655B: push 1 */ 3940 PUSH32(esp, eax); /* 0x2B05655D: push eax */ 3941 RECOMP_ICALL(MEM32(0x2B0B5524)); /* 0x2B05655E: call dword ptr [0x2b0b5524] */ 3942 RECOMP_FLAGS_IN(); 3943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3944 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3945 esp = esp + 0xCu; /* 0x2B056564: add esp, 0xc */ 3946 _flag_k = FK_ADD; 3947 L_2B056567: 3948 /* cmp edi, 0xFFFFFFFFu */ /* 0x2B056567: cmp edi, -1 */ 3949 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 3950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3951 _flag_k = FK_CMP; 3952 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05657A; /* 0x2B05656A: je 0x2b05657a */ 3953 L_2B05656C: 3954 PUSH32(esp, 1); /* 0x2B05656C: push 1 */ 3955 PUSH32(esp, 1); /* 0x2B05656E: push 1 */ 3956 PUSH32(esp, edi); /* 0x2B056570: push edi */ 3957 RECOMP_ICALL(MEM32(0x2B0B5524)); /* 0x2B056571: call dword ptr [0x2b0b5524] */ 3958 RECOMP_FLAGS_IN(); 3959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3961 esp = esp + 0xCu; /* 0x2B056577: add esp, 0xc */ 3962 _flag_k = FK_ADD; 3963 L_2B05657A: 3964 MEM32(esi + 0x54) = edi; /* 0x2B05657A: mov dword ptr [esi + 0x54], edi */ 3965 L_2B05657D: 3966 ecx = MEM32(esi + 0x5C); /* 0x2B05657D: mov ecx, dword ptr [esi + 0x5c] */ 3967 RECOMP_ICALL(MEM32(0x2B0B5528)); /* 0x2B056580: call dword ptr [0x2b0b5528] */ 3968 RECOMP_FLAGS_IN(); 3969 ecx = MEM32(ebp + (-0xC)); /* 0x2B056586: mov ecx, dword ptr [ebp - 0xc] */ 3970 edi = POP32_VAL(esp); /* 0x2B056589: pop edi */ 3971 esi = POP32_VAL(esp); /* 0x2B05658A: pop esi */ 3972 MEM32(FS_BASE + (0)) = ecx; /* 0x2B05658B: mov dword ptr fs:[0], ecx */ 3973 ebx = POP32_VAL(esp); /* 0x2B056592: pop ebx */ 3974 esp = ebp; /* 0x2B056593: mov esp, ebp */ 3975 ebp = POP32_VAL(esp); /* 0x2B056595: pop ebp */ 3976 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056596: ret */ 3977 RECOMP_REGS_OUT(); 3978 } 3979 3980 void sub_2B0565A0(void) { 3981 int _fpu_cmp = 0; 3982 uint32_t _cf = 0; 3983 int _df = 1; 3984 uint32_t _flag_k = FK_NONE; 3985 uint32_t _flag_a = 0, _flag_b = 0; 3986 uint32_t _itail_tgt = 0; 3987 RECOMP_REGS_LOCALS 3988 RECOMP_ENTER(0x2B0565A0u); 3989 3990 L_2B0565A0: 3991 PUSH32(esp, ebp); /* 0x2B0565A0: push ebp */ 3992 ebp = esp; /* 0x2B0565A1: mov ebp, esp */ 3993 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x2B0565A3: mov al, byte ptr [ebp + 8] */ 3994 PUSH32(esp, esi); /* 0x2B0565A6: push esi */ 3995 esi = ecx; /* 0x2B0565A7: mov esi, ecx */ 3996 /* cmp MEM8(esi + 0x58), LO8(eax) */ /* 0x2B0565A9: cmp byte ptr [esi + 0x58], al */ 3997 _flag_a = (uint32_t)(MEM8(esi + 0x58)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3999 _flag_k = FK_NARROW(FK_CMP, 24); 4000 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0565D7; /* 0x2B0565AC: je 0x2b0565d7 */ 4001 L_2B0565AE: 4002 /* test LO8(eax), LO8(eax) */ /* 0x2B0565AE: test al, al */ 4003 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4004 _cf = 0; 4005 _flag_k = FK_NARROW(FK_TEST, 24); 4006 ecx = MEM32(esi + 0x5C); /* 0x2B0565B0: mov ecx, dword ptr [esi + 0x5c] */ 4007 MEM8(esi + 0x58) = (uint8_t)(LO8(eax)); /* 0x2B0565B3: mov byte ptr [esi + 0x58], al */ 4008 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0565CA; /* 0x2B0565B6: je 0x2b0565ca */ 4009 L_2B0565B8: 4010 RECOMP_ICALL(MEM32(0x2B0B5504)); /* 0x2B0565B8: call dword ptr [0x2b0b5504] */ 4011 RECOMP_FLAGS_IN(); 4012 ecx = esi; /* 0x2B0565BE: mov ecx, esi */ 4013 RECOMP_ICALL(0x2B0565E0u); /* 0x2B0565C0: call 0x2b0565e0 */ /* not lifted */ 4014 RECOMP_FLAGS_IN(); 4015 esi = POP32_VAL(esp); /* 0x2B0565C5: pop esi */ 4016 ebp = POP32_VAL(esp); /* 0x2B0565C6: pop ebp */ 4017 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0565C7: ret 4 */ 4018 L_2B0565CA: 4019 RECOMP_ICALL(MEM32(0x2B0B5508)); /* 0x2B0565CA: call dword ptr [0x2b0b5508] */ 4020 RECOMP_FLAGS_IN(); 4021 ecx = esi; /* 0x2B0565D0: mov ecx, esi */ 4022 RECOMP_ICALL(0x2B0565E0u); /* 0x2B0565D2: call 0x2b0565e0 */ /* not lifted */ 4023 RECOMP_FLAGS_IN(); 4024 L_2B0565D7: 4025 esi = POP32_VAL(esp); /* 0x2B0565D7: pop esi */ 4026 ebp = POP32_VAL(esp); /* 0x2B0565D8: pop ebp */ 4027 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0565D9: ret 4 */ 4028 RECOMP_REGS_OUT(); 4029 } 4030 4031 void sub_2B0565E0(void) { 4032 int _fpu_cmp = 0; 4033 uint32_t _cf = 0; 4034 int _df = 1; 4035 uint32_t _flag_k = FK_NONE; 4036 uint32_t _flag_a = 0, _flag_b = 0; 4037 uint32_t _itail_tgt = 0; 4038 RECOMP_REGS_LOCALS 4039 RECOMP_ENTER(0x2B0565E0u); 4040 4041 L_2B0565E0: 4042 PUSH32(esp, esi); /* 0x2B0565E0: push esi */ 4043 esi = ecx; /* 0x2B0565E1: mov esi, ecx */ 4044 SET_LO8(ecx, MEM8(esi + 0x60)); /* 0x2B0565E3: mov cl, byte ptr [esi + 0x60] */ 4045 SET_LO8(eax, 1); /* 0x2B0565E6: mov al, 1 */ 4046 /* test LO8(eax), LO8(ecx) */ /* 0x2B0565E8: test al, cl */ 4047 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4048 _cf = 0; 4049 _flag_k = FK_NARROW(FK_TEST, 24); 4050 PUSH32(esp, edi); /* 0x2B0565EA: push edi */ 4051 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05662E; /* 0x2B0565EB: jne 0x2b05662e */ 4052 L_2B0565ED: 4053 ecx = MEM32(esi + 0x30); /* 0x2B0565ED: mov ecx, dword ptr [esi + 0x30] */ 4054 edi = MEM32(0x2B0B5B34); /* 0x2B0565F0: mov edi, dword ptr [0x2b0b5b34] */ 4055 MEM8(esi + 0x3C) = (uint8_t)(0); /* 0x2B0565F6: mov byte ptr [esi + 0x3c], 0 */ 4056 RECOMP_ICALL(edi); /* 0x2B0565FA: call edi */ 4057 RECOMP_FLAGS_IN(); 4058 ecx = MEM32(esi + 0x34); /* 0x2B0565FC: mov ecx, dword ptr [esi + 0x34] */ 4059 RECOMP_ICALL(edi); /* 0x2B0565FF: call edi */ 4060 RECOMP_FLAGS_IN(); 4061 ecx = MEM32(esi + 0x38); /* 0x2B056601: mov ecx, dword ptr [esi + 0x38] */ 4062 RECOMP_ICALL(edi); /* 0x2B056604: call edi */ 4063 RECOMP_FLAGS_IN(); 4064 eax = MEM32(esi + 0x2C); /* 0x2B056606: mov eax, dword ptr [esi + 0x2c] */ 4065 ecx = MEM32(eax + 0x14); /* 0x2B056609: mov ecx, dword ptr [eax + 0x14] */ 4066 eax = MEM32(ecx + 0x8); /* 0x2B05660C: mov eax, dword ptr [ecx + 8] */ 4067 SET_LO8(ecx, MEM8(esi + 0x1C)); /* 0x2B05660F: mov cl, byte ptr [esi + 0x1c] */ 4068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFD3u); 4069 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4070 eax = eax + 0xFFFFFFD3u; /* 0x2B056612: add eax, -0x2d */ 4071 _flag_k = FK_ADD; 4072 /* test LO8(ecx), LO8(ecx) */ /* 0x2B056615: test cl, cl */ 4073 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4074 _cf = 0; 4075 _flag_k = FK_NARROW(FK_TEST, 24); 4076 MEM32(esi + 0x20) = eax; /* 0x2B056617: mov dword ptr [esi + 0x20], eax */ 4077 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056671; /* 0x2B05661A: je 0x2b056671 */ 4078 L_2B05661C: 4079 SET_LO8(ecx, MEM8(esi + 0xC)); /* 0x2B05661C: mov cl, byte ptr [esi + 0xc] */ 4080 /* test LO8(ecx), LO8(ecx) */ /* 0x2B05661F: test cl, cl */ 4081 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4082 _cf = 0; 4083 _flag_k = FK_NARROW(FK_TEST, 24); 4084 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056671; /* 0x2B056621: je 0x2b056671 */ 4085 L_2B056623: 4086 MEM32(esi + 0x18) = eax; /* 0x2B056623: mov dword ptr [esi + 0x18], eax */ 4087 RECOMP_ICALL(0x2B03B100u); /* 0x2B056626: call 0x2b03b100 */ /* not lifted */ 4088 RECOMP_FLAGS_IN(); 4089 edi = POP32_VAL(esp); /* 0x2B05662B: pop edi */ 4090 esi = POP32_VAL(esp); /* 0x2B05662C: pop esi */ 4091 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05662D: ret */ 4092 L_2B05662E: 4093 MEM8(esi + 0x3C) = (uint8_t)(LO8(eax)); /* 0x2B05662E: mov byte ptr [esi + 0x3c], al */ 4094 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B056631: mov al, byte ptr [esi + 0xc] */ 4095 /* test LO8(eax), LO8(eax) */ /* 0x2B056634: test al, al */ 4096 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4097 _cf = 0; 4098 _flag_k = FK_NARROW(FK_TEST, 24); 4099 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056676; /* 0x2B056636: je 0x2b056676 */ 4100 L_2B056638: 4101 SET_LO8(eax, MEM8(esi + 0x1C)); /* 0x2B056638: mov al, byte ptr [esi + 0x1c] */ 4102 /* test LO8(eax), LO8(eax) */ /* 0x2B05663B: test al, al */ 4103 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4104 _cf = 0; 4105 _flag_k = FK_NARROW(FK_TEST, 24); 4106 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056654; /* 0x2B05663D: je 0x2b056654 */ 4107 L_2B05663F: 4108 ecx = MEM32(esi + 0x30); /* 0x2B05663F: mov ecx, dword ptr [esi + 0x30] */ 4109 edi = MEM32(0x2B0B5B3C); /* 0x2B056642: mov edi, dword ptr [0x2b0b5b3c] */ 4110 RECOMP_ICALL(edi); /* 0x2B056648: call edi */ 4111 RECOMP_FLAGS_IN(); 4112 ecx = MEM32(esi + 0x34); /* 0x2B05664A: mov ecx, dword ptr [esi + 0x34] */ 4113 RECOMP_ICALL(edi); /* 0x2B05664D: call edi */ 4114 RECOMP_FLAGS_IN(); 4115 ecx = MEM32(esi + 0x38); /* 0x2B05664F: mov ecx, dword ptr [esi + 0x38] */ 4116 RECOMP_ICALL(edi); /* 0x2B056652: call edi */ 4117 RECOMP_FLAGS_IN(); 4118 L_2B056654: 4119 edx = MEM32(esi + 0x2C); /* 0x2B056654: mov edx, dword ptr [esi + 0x2c] */ 4120 eax = MEM32(edx + 0x14); /* 0x2B056657: mov eax, dword ptr [edx + 0x14] */ 4121 SET_LO8(ecx, MEM8(esi + 0x1C)); /* 0x2B05665A: mov cl, byte ptr [esi + 0x1c] */ 4122 /* test LO8(ecx), LO8(ecx) */ /* 0x2B05665D: test cl, cl */ 4123 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4124 _cf = 0; 4125 _flag_k = FK_NARROW(FK_TEST, 24); 4126 eax = MEM32(eax + 0x8); /* 0x2B05665F: mov eax, dword ptr [eax + 8] */ 4127 MEM32(esi + 0x20) = eax; /* 0x2B056662: mov dword ptr [esi + 0x20], eax */ 4128 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056671; /* 0x2B056665: je 0x2b056671 */ 4129 L_2B056667: 4130 SET_LO8(ecx, MEM8(esi + 0xC)); /* 0x2B056667: mov cl, byte ptr [esi + 0xc] */ 4131 /* test LO8(ecx), LO8(ecx) */ /* 0x2B05666A: test cl, cl */ 4132 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4133 _cf = 0; 4134 _flag_k = FK_NARROW(FK_TEST, 24); 4135 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056671; /* 0x2B05666C: je 0x2b056671 */ 4136 L_2B05666E: 4137 MEM32(esi + 0x18) = eax; /* 0x2B05666E: mov dword ptr [esi + 0x18], eax */ 4138 L_2B056671: 4139 RECOMP_ICALL(0x2B03B100u); /* 0x2B056671: call 0x2b03b100 */ /* not lifted */ 4140 RECOMP_FLAGS_IN(); 4141 L_2B056676: 4142 edi = POP32_VAL(esp); /* 0x2B056676: pop edi */ 4143 esi = POP32_VAL(esp); /* 0x2B056677: pop esi */ 4144 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056678: ret */ 4145 RECOMP_REGS_OUT(); 4146 } 4147 4148 void sub_2B056680(void) { 4149 int _fpu_cmp = 0; 4150 uint32_t _cf = 0; 4151 int _df = 1; 4152 uint32_t _flag_k = FK_NONE; 4153 uint32_t _flag_a = 0, _flag_b = 0; 4154 uint32_t _itail_tgt = 0; 4155 RECOMP_REGS_LOCALS 4156 RECOMP_ENTER(0x2B056680u); 4157 4158 L_2B056680: 4159 PUSH32(esp, ebp); /* 0x2B056680: push ebp */ 4160 ebp = esp; /* 0x2B056681: mov ebp, esp */ 4161 eax = MEM32(ebp + 0x8); /* 0x2B056683: mov eax, dword ptr [ebp + 8] */ 4162 PUSH32(esp, esi); /* 0x2B056686: push esi */ 4163 esi = ecx; /* 0x2B056687: mov esi, ecx */ 4164 ecx = MEM32(esi + 0x5C); /* 0x2B056689: mov ecx, dword ptr [esi + 0x5c] */ 4165 PUSH32(esp, eax); /* 0x2B05668C: push eax */ 4166 RECOMP_ICALL(MEM32(0x2B0B5500)); /* 0x2B05668D: call dword ptr [0x2b0b5500] */ 4167 RECOMP_FLAGS_IN(); 4168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4169 eax = 0; /* 0x2B056693: xor eax, eax */ 4170 _cf = 0; 4171 _flag_k = FK_TEST; 4172 ecx = esi; /* 0x2B056695: mov ecx, esi */ 4173 MEM32(esi + 0x4C) = eax; /* 0x2B056697: mov dword ptr [esi + 0x4c], eax */ 4174 MEM32(esi + 0x50) = eax; /* 0x2B05669A: mov dword ptr [esi + 0x50], eax */ 4175 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B05669D: call 0x2b03a2b0 */ /* not lifted */ 4176 RECOMP_FLAGS_IN(); 4177 esi = POP32_VAL(esp); /* 0x2B0566A2: pop esi */ 4178 ebp = POP32_VAL(esp); /* 0x2B0566A3: pop ebp */ 4179 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0566A4: ret 4 */ 4180 RECOMP_REGS_OUT(); 4181 } 4182 4183 void sub_2B0566B0(void) { 4184 int _fpu_cmp = 0; 4185 uint32_t _cf = 0; 4186 int _df = 1; 4187 uint32_t _flag_k = FK_NONE; 4188 uint32_t _flag_a = 0, _flag_b = 0; 4189 uint32_t _itail_tgt = 0; 4190 RECOMP_REGS_LOCALS 4191 RECOMP_ENTER(0x2B0566B0u); 4192 4193 L_2B0566B0: 4194 PUSH32(esp, ebp); /* 0x2B0566B0: push ebp */ 4195 ebp = esp; /* 0x2B0566B1: mov ebp, esp */ 4196 ecx = MEM32(0x2B0EEB0C); /* 0x2B0566B3: mov ecx, dword ptr [0x2b0eeb0c] */ 4197 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4198 edx = 0; /* 0x2B0566B9: xor edx, edx */ 4199 _cf = 0; 4200 _flag_k = FK_TEST; 4201 /* cmp ecx, edx */ /* 0x2B0566BB: cmp ecx, edx */ 4202 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4204 _flag_k = FK_CMP; 4205 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056734; /* 0x2B0566BD: je 0x2b056734 */ 4206 L_2B0566BF: 4207 eax = MEM32(ebp + 0x8); /* 0x2B0566BF: mov eax, dword ptr [ebp + 8] */ 4208 /* cmp eax, edx */ /* 0x2B0566C2: cmp eax, edx */ 4209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4211 _flag_k = FK_CMP; 4212 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0566FD; /* 0x2B0566C4: jne 0x2b0566fd */ 4213 L_2B0566C6: 4214 eax = MEM32(ecx + 0x30); /* 0x2B0566C6: mov eax, dword ptr [ecx + 0x30] */ 4215 eax = MEM32(eax + 0x54); /* 0x2B0566C9: mov eax, dword ptr [eax + 0x54] */ 4216 /* cmp eax, 1 */ /* 0x2B0566CC: cmp eax, 1 */ 4217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4219 _flag_k = FK_CMP; 4220 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0566EF; /* 0x2B0566CF: je 0x2b0566ef */ 4221 L_2B0566D1: 4222 /* cmp eax, 3 */ /* 0x2B0566D1: cmp eax, 3 */ 4223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 4224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4225 _flag_k = FK_CMP; 4226 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0566EF; /* 0x2B0566D4: je 0x2b0566ef */ 4227 L_2B0566D6: 4228 /* cmp eax, 2 */ /* 0x2B0566D6: cmp eax, 2 */ 4229 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4231 _flag_k = FK_CMP; 4232 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0566E0; /* 0x2B0566D9: je 0x2b0566e0 */ 4233 L_2B0566DB: 4234 /* cmp eax, 4 */ /* 0x2B0566DB: cmp eax, 4 */ 4235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4237 _flag_k = FK_CMP; 4238 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0566EF; /* 0x2B0566DE: jne 0x2b0566ef */ 4239 L_2B0566E0: 4240 MEM8(ebp + 0x8) = (uint8_t)(1); /* 0x2B0566E0: mov byte ptr [ebp + 8], 1 */ 4241 eax = MEM32(ebp + 0x8); /* 0x2B0566E4: mov eax, dword ptr [ebp + 8] */ 4242 PUSH32(esp, eax); /* 0x2B0566E7: push eax */ 4243 RECOMP_ICALL(0x2B056680u); /* 0x2B0566E8: call 0x2b056680 */ /* not lifted */ 4244 RECOMP_FLAGS_IN(); 4245 ebp = POP32_VAL(esp); /* 0x2B0566ED: pop ebp */ 4246 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0566EE: ret */ 4247 L_2B0566EF: 4248 MEM8(ebp + 0x8) = (uint8_t)(LO8(edx)); /* 0x2B0566EF: mov byte ptr [ebp + 8], dl */ 4249 eax = MEM32(ebp + 0x8); /* 0x2B0566F2: mov eax, dword ptr [ebp + 8] */ 4250 PUSH32(esp, eax); /* 0x2B0566F5: push eax */ 4251 RECOMP_ICALL(0x2B056680u); /* 0x2B0566F6: call 0x2b056680 */ /* not lifted */ 4252 RECOMP_FLAGS_IN(); 4253 ebp = POP32_VAL(esp); /* 0x2B0566FB: pop ebp */ 4254 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0566FC: ret */ 4255 L_2B0566FD: 4256 /* cmp eax, 1 */ /* 0x2B0566FD: cmp eax, 1 */ 4257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4259 _flag_k = FK_CMP; 4260 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056719; /* 0x2B056700: jne 0x2b056719 */ 4261 L_2B056702: 4262 PUSH32(esp, 0x106u); /* 0x2B056702: push 0x106 */ 4263 PUSH32(esp, 0x2Au); /* 0x2B056707: push 0x2a */ 4264 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056709: call dword ptr [0x2b0b53cc] */ 4265 RECOMP_FLAGS_IN(); 4266 ecx = eax; /* 0x2B05670F: mov ecx, eax */ 4267 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B056711: call dword ptr [0x2b0b53c8] */ 4268 RECOMP_FLAGS_IN(); 4269 ebp = POP32_VAL(esp); /* 0x2B056717: pop ebp */ 4270 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056718: ret */ 4271 L_2B056719: 4272 /* cmp eax, 2 */ /* 0x2B056719: cmp eax, 2 */ 4273 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4275 _flag_k = FK_CMP; 4276 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056734; /* 0x2B05671C: jne 0x2b056734 */ 4277 L_2B05671E: 4278 PUSH32(esp, edx); /* 0x2B05671E: push edx */ 4279 PUSH32(esp, 0x106u); /* 0x2B05671F: push 0x106 */ 4280 PUSH32(esp, 0x2Au); /* 0x2B056724: push 0x2a */ 4281 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056726: call dword ptr [0x2b0b53cc] */ 4282 RECOMP_FLAGS_IN(); 4283 ecx = eax; /* 0x2B05672C: mov ecx, eax */ 4284 RECOMP_ICALL(MEM32(0x2B0B53B8)); /* 0x2B05672E: call dword ptr [0x2b0b53b8] */ 4285 RECOMP_FLAGS_IN(); 4286 L_2B056734: 4287 ebp = POP32_VAL(esp); /* 0x2B056734: pop ebp */ 4288 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056735: ret */ 4289 RECOMP_REGS_OUT(); 4290 } 4291 4292 void sub_2B056740(void) { 4293 int _fpu_cmp = 0; 4294 uint32_t _cf = 0; 4295 int _df = 1; 4296 uint32_t _flag_k = FK_NONE; 4297 uint32_t _flag_a = 0, _flag_b = 0; 4298 uint32_t _itail_tgt = 0; 4299 RECOMP_REGS_LOCALS 4300 RECOMP_ENTER(0x2B056740u); 4301 4302 L_2B056740: 4303 PUSH32(esp, ebp); /* 0x2B056740: push ebp */ 4304 ebp = esp; /* 0x2B056741: mov ebp, esp */ 4305 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x2B056743: mov al, byte ptr [ebp + 8] */ 4306 MEM8(ecx + 0x5A) = (uint8_t)(LO8(eax)); /* 0x2B056746: mov byte ptr [ecx + 0x5a], al */ 4307 ecx = MEM32(ecx + 0x5C); /* 0x2B056749: mov ecx, dword ptr [ecx + 0x5c] */ 4308 MEM8(ecx + 0x69) = (uint8_t)(LO8(eax)); /* 0x2B05674C: mov byte ptr [ecx + 0x69], al */ 4309 ebp = POP32_VAL(esp); /* 0x2B05674F: pop ebp */ 4310 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B056750: ret 4 */ 4311 RECOMP_REGS_OUT(); 4312 } 4313 4314 void sub_2B056760(void) { 4315 int _fpu_cmp = 0; 4316 uint32_t _cf = 0; 4317 int _df = 1; 4318 uint32_t _flag_k = FK_NONE; 4319 uint32_t _flag_a = 0, _flag_b = 0; 4320 uint32_t _itail_tgt = 0; 4321 RECOMP_REGS_LOCALS 4322 RECOMP_ENTER(0x2B056760u); 4323 4324 L_2B056760: 4325 PUSH32(esp, ebp); /* 0x2B056760: push ebp */ 4326 ebp = esp; /* 0x2B056761: mov ebp, esp */ 4327 eax = MEM32(ebp + 0x8); /* 0x2B056763: mov eax, dword ptr [ebp + 8] */ 4328 PUSH32(esp, esi); /* 0x2B056766: push esi */ 4329 esi = ecx; /* 0x2B056767: mov esi, ecx */ 4330 ecx = MEM32(eax); /* 0x2B056769: mov ecx, dword ptr [eax] */ 4331 MEM32(esi + 0x64) = ecx; /* 0x2B05676B: mov dword ptr [esi + 0x64], ecx */ 4332 edx = MEM32(eax + 0x4); /* 0x2B05676E: mov edx, dword ptr [eax + 4] */ 4333 MEM32(esi + 0x68) = edx; /* 0x2B056771: mov dword ptr [esi + 0x68], edx */ 4334 /* cmp MEM32(eax), 0 */ /* 0x2B056774: cmp dword ptr [eax], 0 */ 4335 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 4336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4337 _flag_k = FK_CMP; 4338 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056780; /* 0x2B056777: jne 0x2b056780 */ 4339 L_2B056779: 4340 ecx = MEM32(eax + 0x4); /* 0x2B056779: mov ecx, dword ptr [eax + 4] */ 4341 /* test ecx, ecx */ /* 0x2B05677C: test ecx, ecx */ 4342 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4343 _cf = 0; 4344 _flag_k = FK_TEST; 4345 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0567BB; /* 0x2B05677E: je 0x2b0567bb */ 4346 L_2B056780: 4347 ecx = MEM32(esi + 0x5C); /* 0x2B056780: mov ecx, dword ptr [esi + 0x5c] */ 4348 PUSH32(esp, 1); /* 0x2B056783: push 1 */ 4349 RECOMP_ICALL(MEM32(0x2B0B5530)); /* 0x2B056785: call dword ptr [0x2b0b5530] */ 4350 RECOMP_FLAGS_IN(); 4351 ecx = MEM32(esi + 0x30); /* 0x2B05678B: mov ecx, dword ptr [esi + 0x30] */ 4352 eax = MEM32(ecx + 0x54); /* 0x2B05678E: mov eax, dword ptr [ecx + 0x54] */ 4353 /* cmp eax, 1 */ /* 0x2B056791: cmp eax, 1 */ 4354 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4356 _flag_k = FK_CMP; 4357 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0567A5; /* 0x2B056794: je 0x2b0567a5 */ 4358 L_2B056796: 4359 /* cmp eax, 3 */ /* 0x2B056796: cmp eax, 3 */ 4360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 4361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4362 _flag_k = FK_CMP; 4363 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0567A5; /* 0x2B056799: je 0x2b0567a5 */ 4364 L_2B05679B: 4365 /* cmp eax, 2 */ /* 0x2B05679B: cmp eax, 2 */ 4366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4368 _flag_k = FK_CMP; 4369 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0567C6; /* 0x2B05679E: je 0x2b0567c6 */ 4370 L_2B0567A0: 4371 /* cmp eax, 4 */ /* 0x2B0567A0: cmp eax, 4 */ 4372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4374 _flag_k = FK_CMP; 4375 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0567C6; /* 0x2B0567A3: je 0x2b0567c6 */ 4376 L_2B0567A5: 4377 PUSH32(esp, 2); /* 0x2B0567A5: push 2 */ 4378 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B0567A7: call dword ptr [0x2b0b5ab4] */ 4379 RECOMP_FLAGS_IN(); 4380 PUSH32(esp, 1); /* 0x2B0567AD: push 1 */ 4381 ecx = esi; /* 0x2B0567AF: mov ecx, esi */ 4382 RECOMP_ICALL(0x2B056680u); /* 0x2B0567B1: call 0x2b056680 */ /* not lifted */ 4383 RECOMP_FLAGS_IN(); 4384 esi = POP32_VAL(esp); /* 0x2B0567B6: pop esi */ 4385 ebp = POP32_VAL(esp); /* 0x2B0567B7: pop ebp */ 4386 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0567B8: ret 4 */ 4387 L_2B0567BB: 4388 ecx = MEM32(esi + 0x5C); /* 0x2B0567BB: mov ecx, dword ptr [esi + 0x5c] */ 4389 PUSH32(esp, 0); /* 0x2B0567BE: push 0 */ 4390 RECOMP_ICALL(MEM32(0x2B0B5530)); /* 0x2B0567C0: call dword ptr [0x2b0b5530] */ 4391 RECOMP_FLAGS_IN(); 4392 L_2B0567C6: 4393 esi = POP32_VAL(esp); /* 0x2B0567C6: pop esi */ 4394 ebp = POP32_VAL(esp); /* 0x2B0567C7: pop ebp */ 4395 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0567C8: ret 4 */ 4396 RECOMP_REGS_OUT(); 4397 } 4398 4399 void sub_2B0567D0(void) { 4400 int _fpu_cmp = 0; 4401 uint32_t _cf = 0; 4402 int _df = 1; 4403 uint32_t _flag_k = FK_NONE; 4404 uint32_t _flag_a = 0, _flag_b = 0; 4405 uint32_t _itail_tgt = 0; 4406 RECOMP_REGS_LOCALS 4407 RECOMP_ENTER(0x2B0567D0u); 4408 4409 L_2B0567D0: 4410 PUSH32(esp, ebp); /* 0x2B0567D0: push ebp */ 4411 ebp = esp; /* 0x2B0567D1: mov ebp, esp */ 4412 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0567D3: push -1 */ 4413 PUSH32(esp, 0x2B0AFC79u); /* 0x2B0567D5: push 0x2b0afc79 */ 4414 eax = MEM32(FS_BASE + (0)); /* 0x2B0567DA: mov eax, dword ptr fs:[0] */ 4415 PUSH32(esp, eax); /* 0x2B0567E0: push eax */ 4416 MEM32(FS_BASE + (0)) = esp; /* 0x2B0567E1: mov dword ptr fs:[0], esp */ 4417 PUSH32(esp, ecx); /* 0x2B0567E8: push ecx */ 4418 PUSH32(esp, esi); /* 0x2B0567E9: push esi */ 4419 esi = ecx; /* 0x2B0567EA: mov esi, ecx */ 4420 PUSH32(esp, 0); /* 0x2B0567EC: push 0 */ 4421 MEM32(ebp + (-0x10)) = esi; /* 0x2B0567EE: mov dword ptr [ebp - 0x10], esi */ 4422 RECOMP_ICALL(MEM32(0x2B0B5990)); /* 0x2B0567F1: call dword ptr [0x2b0b5990] */ 4423 RECOMP_FLAGS_IN(); 4424 ecx = MEM32(ebp + 0xC); /* 0x2B0567F7: mov ecx, dword ptr [ebp + 0xc] */ 4425 eax = MEM32(ebp + 0x8); /* 0x2B0567FA: mov eax, dword ptr [ebp + 8] */ 4426 PUSH32(esp, ecx); /* 0x2B0567FD: push ecx */ 4427 ecx = esi; /* 0x2B0567FE: mov ecx, esi */ 4428 MEM32(ebp + (-0x4)) = 0; /* 0x2B056800: mov dword ptr [ebp - 4], 0 */ 4429 MEM32(esi) = 0x2B0B6B14u; /* 0x2B056807: mov dword ptr [esi], 0x2b0b6b14 */ 4430 MEM32(esi + 0x64) = eax; /* 0x2B05680D: mov dword ptr [esi + 0x64], eax */ 4431 MEM32(esi + 0x54) = 0; /* 0x2B056810: mov dword ptr [esi + 0x54], 0 */ 4432 MEM32(esi + 0x58) = 0; /* 0x2B056817: mov dword ptr [esi + 0x58], 0 */ 4433 RECOMP_ICALL(MEM32(0x2B0B59A0)); /* 0x2B05681E: call dword ptr [0x2b0b59a0] */ 4434 RECOMP_FLAGS_IN(); 4435 ecx = MEM32(ebp + (-0xC)); /* 0x2B056824: mov ecx, dword ptr [ebp - 0xc] */ 4436 SET_LO8(eax, 1); /* 0x2B056827: mov al, 1 */ 4437 MEM8(esi + 0x24) = (uint8_t)(LO8(eax)); /* 0x2B056829: mov byte ptr [esi + 0x24], al */ 4438 MEM8(esi + 0x25) = (uint8_t)(LO8(eax)); /* 0x2B05682C: mov byte ptr [esi + 0x25], al */ 4439 eax = esi; /* 0x2B05682F: mov eax, esi */ 4440 esi = POP32_VAL(esp); /* 0x2B056831: pop esi */ 4441 MEM32(FS_BASE + (0)) = ecx; /* 0x2B056832: mov dword ptr fs:[0], ecx */ 4442 esp = ebp; /* 0x2B056839: mov esp, ebp */ 4443 ebp = POP32_VAL(esp); /* 0x2B05683B: pop ebp */ 4444 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B05683C: ret 8 */ 4445 RECOMP_REGS_OUT(); 4446 } 4447 4448 void sub_2B056840(void) { 4449 int _fpu_cmp = 0; 4450 uint32_t _cf = 0; 4451 int _df = 1; 4452 uint32_t _flag_k = FK_NONE; 4453 uint32_t _flag_a = 0, _flag_b = 0; 4454 uint32_t _itail_tgt = 0; 4455 RECOMP_REGS_LOCALS 4456 RECOMP_ENTER(0x2B056840u); 4457 4458 L_2B056840: 4459 eax = 0x2B0B6B34u; /* 0x2B056840: mov eax, 0x2b0b6b34 */ 4460 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056845: ret */ 4461 RECOMP_REGS_OUT(); 4462 } 4463 4464 void sub_2B056850(void) { 4465 int _fpu_cmp = 0; 4466 uint32_t _cf = 0; 4467 int _df = 1; 4468 uint32_t _flag_k = FK_NONE; 4469 uint32_t _flag_a = 0, _flag_b = 0; 4470 uint32_t _itail_tgt = 0; 4471 RECOMP_REGS_LOCALS 4472 RECOMP_ENTER(0x2B056850u); 4473 4474 L_2B056850: 4475 PUSH32(esp, ebp); /* 0x2B056850: push ebp */ 4476 ebp = esp; /* 0x2B056851: mov ebp, esp */ 4477 PUSH32(esp, esi); /* 0x2B056853: push esi */ 4478 esi = ecx; /* 0x2B056854: mov esi, ecx */ 4479 RECOMP_ICALL(0x2B056880u); /* 0x2B056856: call 0x2b056880 */ /* not lifted */ 4480 RECOMP_FLAGS_IN(); 4481 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B05685B: test byte ptr [ebp + 8], 1 */ 4482 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 4483 _cf = 0; 4484 _flag_k = FK_NARROW(FK_TEST, 24); 4485 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05686A; /* 0x2B05685F: je 0x2b05686a */ 4486 L_2B056861: 4487 PUSH32(esp, esi); /* 0x2B056861: push esi */ 4488 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B056862: call 0x2b0ab1ba */ /* not lifted */ 4489 RECOMP_FLAGS_IN(); 4490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4492 esp = esp + 4; /* 0x2B056867: add esp, 4 */ 4493 _flag_k = FK_ADD; 4494 L_2B05686A: 4495 eax = esi; /* 0x2B05686A: mov eax, esi */ 4496 esi = POP32_VAL(esp); /* 0x2B05686C: pop esi */ 4497 ebp = POP32_VAL(esp); /* 0x2B05686D: pop ebp */ 4498 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B05686E: ret 4 */ 4499 RECOMP_REGS_OUT(); 4500 } 4501 4502 void sub_2B056880(void) { 4503 int _fpu_cmp = 0; 4504 uint32_t _cf = 0; 4505 int _df = 1; 4506 uint32_t _flag_k = FK_NONE; 4507 uint32_t _flag_a = 0, _flag_b = 0; 4508 uint32_t _itail_tgt = 0; 4509 RECOMP_REGS_LOCALS 4510 RECOMP_ENTER(0x2B056880u); 4511 4512 L_2B056880: 4513 MEM32(ecx) = 0x2B0B6B14u; /* 0x2B056880: mov dword ptr [ecx], 0x2b0b6b14 */ 4514 L_2B056886: 4515 { _itail_tgt = (uint32_t)(MEM32(0x2B0B59A4)); goto _ljump; } 4516 { RECOMP_REGS_OUT(); return; } /* end of function */ 4517 _ljump: 4518 switch (_itail_tgt) { 4519 case 0x2B056880u: goto L_2B056880; 4520 case 0x2B056886u: goto L_2B056886; 4521 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4522 } 4523 RECOMP_REGS_OUT(); 4524 } 4525 4526 void sub_2B056890(void) { 4527 int _fpu_cmp = 0; 4528 uint32_t _cf = 0; 4529 int _df = 1; 4530 uint32_t _flag_k = FK_NONE; 4531 uint32_t _flag_a = 0, _flag_b = 0; 4532 uint32_t _itail_tgt = 0; 4533 RECOMP_REGS_LOCALS 4534 RECOMP_ENTER(0x2B056890u); 4535 4536 L_2B056890: 4537 PUSH32(esp, ebp); /* 0x2B056890: push ebp */ 4538 ebp = esp; /* 0x2B056891: mov ebp, esp */ 4539 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x8Cu); 4540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4541 esp = esp - 0x8Cu; /* 0x2B056893: sub esp, 0x8c */ 4542 _flag_k = FK_CMP; 4543 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x2B056899: mov al, byte ptr [ebp + 0x14] */ 4544 PUSH32(esp, ebx); /* 0x2B05689C: push ebx */ 4545 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 4546 SET_LO8(ebx, 0); /* 0x2B05689D: xor bl, bl */ 4547 _cf = 0; 4548 _flag_k = FK_NARROW(FK_TEST, 24); 4549 /* test LO8(eax), LO8(eax) */ /* 0x2B05689F: test al, al */ 4550 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4551 _cf = 0; 4552 _flag_k = FK_NARROW(FK_TEST, 24); 4553 PUSH32(esp, edi); /* 0x2B0568A1: push edi */ 4554 edi = ecx; /* 0x2B0568A2: mov edi, ecx */ 4555 MEM8(ebp + (-0x1)) = (uint8_t)(LO8(ebx)); /* 0x2B0568A4: mov byte ptr [ebp - 1], bl */ 4556 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0568BE; /* 0x2B0568A7: jne 0x2b0568be */ 4557 L_2B0568A9: 4558 eax = MEM32(ebp + 0xC); /* 0x2B0568A9: mov eax, dword ptr [ebp + 0xc] */ 4559 ecx = MEM32(ebp + 0x8); /* 0x2B0568AC: mov ecx, dword ptr [ebp + 8] */ 4560 PUSH32(esp, eax); /* 0x2B0568AF: push eax */ 4561 PUSH32(esp, ecx); /* 0x2B0568B0: push ecx */ 4562 ecx = edi; /* 0x2B0568B1: mov ecx, edi */ 4563 RECOMP_ICALL(MEM32(0x2B0B5974)); /* 0x2B0568B3: call dword ptr [0x2b0b5974] */ 4564 RECOMP_FLAGS_IN(); 4565 SET_LO8(ebx, LO8(eax)); /* 0x2B0568B9: mov bl, al */ 4566 MEM8(ebp + (-0x1)) = (uint8_t)(LO8(ebx)); /* 0x2B0568BB: mov byte ptr [ebp - 1], bl */ 4567 L_2B0568BE: 4568 edx = ebp + (-0xC); /* 0x2B0568BE: lea edx, [ebp - 0xc] */ 4569 PUSH32(esp, edx); /* 0x2B0568C1: push edx */ 4570 RECOMP_ICALL(MEM32(0x2B0B52D0)); /* 0x2B0568C2: call dword ptr [0x2b0b52d0] */ 4571 RECOMP_FLAGS_IN(); 4572 eax = MEM32(edi + 0x54); /* 0x2B0568C8: mov eax, dword ptr [edi + 0x54] */ 4573 /* cmp eax, MEM32(ebp + (-0xC)) */ /* 0x2B0568CB: cmp eax, dword ptr [ebp - 0xc] */ 4574 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0xC))); 4575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4576 _flag_k = FK_CMP; 4577 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0568DC; /* 0x2B0568CE: jne 0x2b0568dc */ 4578 L_2B0568D0: 4579 ecx = MEM32(edi + 0x58); /* 0x2B0568D0: mov ecx, dword ptr [edi + 0x58] */ 4580 /* cmp ecx, MEM32(ebp + (-0x8)) */ /* 0x2B0568D3: cmp ecx, dword ptr [ebp - 8] */ 4581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x8))); 4582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4583 _flag_k = FK_CMP; 4584 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056983; /* 0x2B0568D6: je 0x2b056983 */ 4585 L_2B0568DC: 4586 edx = MEM32(edi + 0x64); /* 0x2B0568DC: mov edx, dword ptr [edi + 0x64] */ 4587 PUSH32(esp, esi); /* 0x2B0568DF: push esi */ 4588 esi = MEM32(edx + 0x5C); /* 0x2B0568E0: mov esi, dword ptr [edx + 0x5c] */ 4589 fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x2B0568E3: fld dword ptr [esi + 0x38] */ 4590 RECOMP_ICALL(0x2B0AB220u); /* 0x2B0568E6: call 0x2b0ab220 */ /* not lifted */ 4591 RECOMP_FLAGS_IN(); 4592 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x2B0568EB: fld dword ptr [esi + 0x30] */ 4593 ebx = eax; /* 0x2B0568EE: mov ebx, eax */ 4594 RECOMP_ICALL(0x2B0AB220u); /* 0x2B0568F0: call 0x2b0ab220 */ /* not lifted */ 4595 RECOMP_FLAGS_IN(); 4596 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4598 ebx = ebx + eax; /* 0x2B0568F5: add ebx, eax */ 4599 _flag_k = FK_ADD; 4600 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 4601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4602 ebx = ebx - MEM32(ebp + 0xC); /* 0x2B0568F7: sub ebx, dword ptr [ebp + 0xc] */ 4603 _flag_k = FK_CMP; 4604 MEM32(ebp + 0x14) = ebx; /* 0x2B0568FA: mov dword ptr [ebp + 0x14], ebx */ 4605 fp_push((double)(int32_t)MEM32(ebp + 0x14)); /* 0x2B0568FD: fild dword ptr [ebp + 0x14] */ 4606 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4608 esp = esp - 8; /* 0x2B056900: sub esp, 8 */ 4609 _flag_k = FK_CMP; 4610 _st[0] *= (double)*(float*)ADDR(0x2B0B6768); /* 0x2B056903: fmul dword ptr [0x2b0b6768] */ 4611 _st[0] /= (double)*(float*)ADDR(esi + 0x60); /* 0x2B056909: fdiv dword ptr [esi + 0x60] */ 4612 fp_push(*(float*)&MEM32(esi + 0x40)); /* 0x2B05690C: fld dword ptr [esi + 0x40] */ 4613 _st[0] *= (double)*(float*)ADDR(0x2B0B6768); /* 0x2B05690F: fmul dword ptr [0x2b0b6768] */ 4614 { double _v = fp_pop(); _st[0] += _v; } /* 0x2B056915: faddp st(1) */ 4615 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x2B056917: fstp qword ptr [esp] */ 4616 fp_push(*(float*)&MEM32(esi + 0x2C)); /* 0x2B05691A: fld dword ptr [esi + 0x2c] */ 4617 RECOMP_ICALL(0x2B0AB220u); /* 0x2B05691D: call 0x2b0ab220 */ /* not lifted */ 4618 RECOMP_FLAGS_IN(); 4619 ecx = MEM32(ebp + 0x8); /* 0x2B056922: mov ecx, dword ptr [ebp + 8] */ 4620 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4622 ecx = ecx - eax; /* 0x2B056925: sub ecx, eax */ 4623 _flag_k = FK_CMP; 4624 MEM32(ebp + 0x14) = ecx; /* 0x2B056927: mov dword ptr [ebp + 0x14], ecx */ 4625 fp_push((double)(int32_t)MEM32(ebp + 0x14)); /* 0x2B05692A: fild dword ptr [ebp + 0x14] */ 4626 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4628 esp = esp - 8; /* 0x2B05692D: sub esp, 8 */ 4629 _flag_k = FK_CMP; 4630 eax = ebp + (-0x8C); /* 0x2B056930: lea eax, [ebp - 0x8c] */ 4631 _st[0] *= (double)*(float*)ADDR(0x2B0B6768); /* 0x2B056936: fmul dword ptr [0x2b0b6768] */ 4632 _st[0] /= (double)*(float*)ADDR(esi + 0x5C); /* 0x2B05693C: fdiv dword ptr [esi + 0x5c] */ 4633 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x2B05693F: fld dword ptr [esi + 0x3c] */ 4634 _st[0] *= (double)*(float*)ADDR(0x2B0B6768); /* 0x2B056942: fmul dword ptr [0x2b0b6768] */ 4635 { double _v = fp_pop(); _st[0] += _v; } /* 0x2B056948: faddp st(1) */ 4636 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x2B05694A: fstp qword ptr [esp] */ 4637 PUSH32(esp, 0x2B0E8658u); /* 0x2B05694D: push 0x2b0e8658 */ 4638 PUSH32(esp, eax); /* 0x2B056952: push eax */ 4639 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B056953: call dword ptr [0x2b0b51f0] */ 4640 RECOMP_FLAGS_IN(); 4641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4643 esp = esp + 0x18u; /* 0x2B056959: add esp, 0x18 */ 4644 _flag_k = FK_ADD; 4645 ecx = ebp + (-0x8C); /* 0x2B05695C: lea ecx, [ebp - 0x8c] */ 4646 PUSH32(esp, ecx); /* 0x2B056962: push ecx */ 4647 ecx = edi; /* 0x2B056963: mov ecx, edi */ 4648 RECOMP_ICALL(MEM32(0x2B0B5810)); /* 0x2B056965: call dword ptr [0x2b0b5810] */ 4649 RECOMP_FLAGS_IN(); 4650 eax = MEM32(ebp + (-0x8)); /* 0x2B05696B: mov eax, dword ptr [ebp - 8] */ 4651 edx = MEM32(ebp + (-0xC)); /* 0x2B05696E: mov edx, dword ptr [ebp - 0xc] */ 4652 esi = POP32_VAL(esp); /* 0x2B056971: pop esi */ 4653 MEM32(edi + 0x58) = eax; /* 0x2B056972: mov dword ptr [edi + 0x58], eax */ 4654 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x2B056975: mov al, byte ptr [ebp - 1] */ 4655 MEM32(edi + 0x54) = edx; /* 0x2B056978: mov dword ptr [edi + 0x54], edx */ 4656 edi = POP32_VAL(esp); /* 0x2B05697B: pop edi */ 4657 ebx = POP32_VAL(esp); /* 0x2B05697C: pop ebx */ 4658 esp = ebp; /* 0x2B05697D: mov esp, ebp */ 4659 ebp = POP32_VAL(esp); /* 0x2B05697F: pop ebp */ 4660 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B056980: ret 0x10 */ 4661 L_2B056983: 4662 edi = POP32_VAL(esp); /* 0x2B056983: pop edi */ 4663 SET_LO8(eax, LO8(ebx)); /* 0x2B056984: mov al, bl */ 4664 ebx = POP32_VAL(esp); /* 0x2B056986: pop ebx */ 4665 esp = ebp; /* 0x2B056987: mov esp, ebp */ 4666 ebp = POP32_VAL(esp); /* 0x2B056989: pop ebp */ 4667 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B05698A: ret 0x10 */ 4668 RECOMP_REGS_OUT(); 4669 } 4670 4671 void sub_2B056990(void) { 4672 int _fpu_cmp = 0; 4673 uint32_t _cf = 0; 4674 int _df = 1; 4675 uint32_t _flag_k = FK_NONE; 4676 uint32_t _flag_a = 0, _flag_b = 0; 4677 uint32_t _itail_tgt = 0; 4678 RECOMP_REGS_LOCALS 4679 RECOMP_ENTER(0x2B056990u); 4680 4681 L_2B056990: 4682 PUSH32(esp, esi); /* 0x2B056990: push esi */ 4683 esi = ecx; /* 0x2B056991: mov esi, ecx */ 4684 RECOMP_ICALL(MEM32(0x2B0B5928)); /* 0x2B056993: call dword ptr [0x2b0b5928] */ 4685 RECOMP_FLAGS_IN(); 4686 ecx = eax; /* 0x2B056999: mov ecx, eax */ 4687 RECOMP_ICALL(MEM32(0x2B0B5934)); /* 0x2B05699B: call dword ptr [0x2b0b5934] */ 4688 RECOMP_FLAGS_IN(); 4689 PUSH32(esp, 0x29u); /* 0x2B0569A1: push 0x29 */ 4690 PUSH32(esp, 2); /* 0x2B0569A3: push 2 */ 4691 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0569A5: call dword ptr [0x2b0b53cc] */ 4692 RECOMP_FLAGS_IN(); 4693 ecx = eax; /* 0x2B0569AB: mov ecx, eax */ 4694 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B0569AD: call dword ptr [0x2b0b53c8] */ 4695 RECOMP_FLAGS_IN(); 4696 ecx = MEM32(esi + 0x64); /* 0x2B0569B3: mov ecx, dword ptr [esi + 0x64] */ 4697 PUSH32(esp, 0); /* 0x2B0569B6: push 0 */ 4698 RECOMP_ICALL(0x2B056110u); /* 0x2B0569B8: call 0x2b056110 */ /* not lifted */ 4699 RECOMP_FLAGS_IN(); 4700 esi = POP32_VAL(esp); /* 0x2B0569BD: pop esi */ 4701 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0569BE: ret */ 4702 RECOMP_REGS_OUT(); 4703 } 4704 4705 void sub_2B0569C0(void) { 4706 int _fpu_cmp = 0; 4707 uint32_t _cf = 0; 4708 int _df = 1; 4709 uint32_t _flag_k = FK_NONE; 4710 uint32_t _flag_a = 0, _flag_b = 0; 4711 uint32_t _itail_tgt = 0; 4712 RECOMP_REGS_LOCALS 4713 RECOMP_ENTER(0x2B0569C0u); 4714 4715 L_2B0569C0: 4716 PUSH32(esp, ebp); /* 0x2B0569C0: push ebp */ 4717 ebp = esp; /* 0x2B0569C1: mov ebp, esp */ 4718 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4720 esp = esp - 8; /* 0x2B0569C3: sub esp, 8 */ 4721 _flag_k = FK_CMP; 4722 PUSH32(esp, ebx); /* 0x2B0569C6: push ebx */ 4723 PUSH32(esp, esi); /* 0x2B0569C7: push esi */ 4724 PUSH32(esp, edi); /* 0x2B0569C8: push edi */ 4725 eax = ebp + (-0x8); /* 0x2B0569C9: lea eax, [ebp - 8] */ 4726 PUSH32(esp, eax); /* 0x2B0569CC: push eax */ 4727 esi = ecx; /* 0x2B0569CD: mov esi, ecx */ 4728 RECOMP_ICALL(MEM32(0x2B0B52D0)); /* 0x2B0569CF: call dword ptr [0x2b0b52d0] */ 4729 RECOMP_FLAGS_IN(); 4730 ecx = MEM32(ebp + (-0x4)); /* 0x2B0569D5: mov ecx, dword ptr [ebp - 4] */ 4731 ebx = MEM32(esi + 0x58); /* 0x2B0569D8: mov ebx, dword ptr [esi + 0x58] */ 4732 eax = MEM32(ebp + (-0x8)); /* 0x2B0569DB: mov eax, dword ptr [ebp - 8] */ 4733 edi = MEM32(esi + 0x54); /* 0x2B0569DE: mov edi, dword ptr [esi + 0x54] */ 4734 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 4735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4736 ebx = ebx - ecx; /* 0x2B0569E1: sub ebx, ecx */ 4737 _flag_k = FK_CMP; 4738 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4740 edi = edi - eax; /* 0x2B0569E3: sub edi, eax */ 4741 _flag_k = FK_CMP; 4742 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4743 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4744 ecx = ecx + ebx; /* 0x2B0569E5: add ecx, ebx */ 4745 _flag_k = FK_ADD; 4746 PUSH32(esp, ecx); /* 0x2B0569E7: push ecx */ 4747 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4749 eax = eax + edi; /* 0x2B0569E8: add eax, edi */ 4750 _flag_k = FK_ADD; 4751 PUSH32(esp, eax); /* 0x2B0569EA: push eax */ 4752 RECOMP_ICALL(MEM32(0x2B0B52D4)); /* 0x2B0569EB: call dword ptr [0x2b0b52d4] */ 4753 RECOMP_FLAGS_IN(); 4754 ecx = ebx; /* 0x2B0569F1: mov ecx, ebx */ 4755 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 4756 _cf = (ecx) != 0; 4757 ecx = (uint32_t)(-(int32_t)ecx); /* 0x2B0569F3: neg ecx */ 4758 _flag_k = FK_CMP; 4759 PUSH32(esp, ecx); /* 0x2B0569F5: push ecx */ 4760 ecx = MEM32(esi + 0x64); /* 0x2B0569F6: mov ecx, dword ptr [esi + 0x64] */ 4761 PUSH32(esp, edi); /* 0x2B0569F9: push edi */ 4762 RECOMP_ICALL(0x2B056070u); /* 0x2B0569FA: call 0x2b056070 */ /* not lifted */ 4763 RECOMP_FLAGS_IN(); 4764 edx = MEM32(ebp + (-0x8)); /* 0x2B0569FF: mov edx, dword ptr [ebp - 8] */ 4765 eax = MEM32(ebp + (-0x4)); /* 0x2B056A02: mov eax, dword ptr [ebp - 4] */ 4766 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4768 edx = edx + edi; /* 0x2B056A05: add edx, edi */ 4769 _flag_k = FK_ADD; 4770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4771 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4772 eax = eax + ebx; /* 0x2B056A07: add eax, ebx */ 4773 _flag_k = FK_ADD; 4774 edi = POP32_VAL(esp); /* 0x2B056A09: pop edi */ 4775 MEM32(esi + 0x58) = eax; /* 0x2B056A0A: mov dword ptr [esi + 0x58], eax */ 4776 MEM32(esi + 0x54) = edx; /* 0x2B056A0D: mov dword ptr [esi + 0x54], edx */ 4777 esi = POP32_VAL(esp); /* 0x2B056A10: pop esi */ 4778 SET_LO8(eax, 1); /* 0x2B056A11: mov al, 1 */ 4779 ebx = POP32_VAL(esp); /* 0x2B056A13: pop ebx */ 4780 esp = ebp; /* 0x2B056A14: mov esp, ebp */ 4781 ebp = POP32_VAL(esp); /* 0x2B056A16: pop ebp */ 4782 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B056A17: ret 8 */ 4783 RECOMP_REGS_OUT(); 4784 } 4785 4786 void sub_2B056A20(void) { 4787 int _fpu_cmp = 0; 4788 uint32_t _cf = 0; 4789 int _df = 1; 4790 uint32_t _flag_k = FK_NONE; 4791 uint32_t _flag_a = 0, _flag_b = 0; 4792 uint32_t _itail_tgt = 0; 4793 RECOMP_REGS_LOCALS 4794 RECOMP_ENTER(0x2B056A20u); 4795 4796 L_2B056A20: 4797 PUSH32(esp, esi); /* 0x2B056A20: push esi */ 4798 esi = ecx; /* 0x2B056A21: mov esi, ecx */ 4799 RECOMP_ICALL(MEM32(0x2B0B5928)); /* 0x2B056A23: call dword ptr [0x2b0b5928] */ 4800 RECOMP_FLAGS_IN(); 4801 ecx = eax; /* 0x2B056A29: mov ecx, eax */ 4802 RECOMP_ICALL(MEM32(0x2B0B592C)); /* 0x2B056A2B: call dword ptr [0x2b0b592c] */ 4803 RECOMP_FLAGS_IN(); 4804 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4805 eax = 0; /* 0x2B056A31: xor eax, eax */ 4806 _cf = 0; 4807 _flag_k = FK_TEST; 4808 PUSH32(esp, 0x2Au); /* 0x2B056A33: push 0x2a */ 4809 PUSH32(esp, 2); /* 0x2B056A35: push 2 */ 4810 MEM32(esi + 0x54) = eax; /* 0x2B056A37: mov dword ptr [esi + 0x54], eax */ 4811 MEM32(esi + 0x58) = eax; /* 0x2B056A3A: mov dword ptr [esi + 0x58], eax */ 4812 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056A3D: call dword ptr [0x2b0b53cc] */ 4813 RECOMP_FLAGS_IN(); 4814 ecx = eax; /* 0x2B056A43: mov ecx, eax */ 4815 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B056A45: call dword ptr [0x2b0b53c8] */ 4816 RECOMP_FLAGS_IN(); 4817 ecx = MEM32(esi + 0x64); /* 0x2B056A4B: mov ecx, dword ptr [esi + 0x64] */ 4818 PUSH32(esp, 1); /* 0x2B056A4E: push 1 */ 4819 RECOMP_ICALL(0x2B056110u); /* 0x2B056A50: call 0x2b056110 */ /* not lifted */ 4820 RECOMP_FLAGS_IN(); 4821 esi = POP32_VAL(esp); /* 0x2B056A55: pop esi */ 4822 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B056A56: ret 8 */ 4823 RECOMP_REGS_OUT(); 4824 } 4825 4826 void sub_2B056A60(void) { 4827 int _fpu_cmp = 0; 4828 uint32_t _cf = 0; 4829 int _df = 1; 4830 uint32_t _flag_k = FK_NONE; 4831 uint32_t _flag_a = 0, _flag_b = 0; 4832 uint32_t _itail_tgt = 0; 4833 RECOMP_REGS_LOCALS 4834 RECOMP_ENTER(0x2B056A60u); 4835 4836 L_2B056A60: 4837 SET_LO8(eax, MEM8(0x2B0EE981)); /* 0x2B056A60: mov al, byte ptr [0x2b0ee981] */ 4838 /* test LO8(eax), LO8(eax) */ /* 0x2B056A65: test al, al */ 4839 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4840 _cf = 0; 4841 _flag_k = FK_NARROW(FK_TEST, 24); 4842 PUSH32(esp, esi); /* 0x2B056A67: push esi */ 4843 esi = ecx; /* 0x2B056A68: mov esi, ecx */ 4844 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056A84; /* 0x2B056A6A: je 0x2b056a84 */ 4845 L_2B056A6C: 4846 PUSH32(esp, 2); /* 0x2B056A6C: push 2 */ 4847 PUSH32(esp, 0x185u); /* 0x2B056A6E: push 0x185 */ 4848 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B056A73: call dword ptr [0x2b0b5d6c] */ 4849 RECOMP_FLAGS_IN(); 4850 ecx = eax; /* 0x2B056A79: mov ecx, eax */ 4851 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B056A7B: call dword ptr [0x2b0b5d70] */ 4852 RECOMP_FLAGS_IN(); 4853 MEM32(esi + 0x60) = eax; /* 0x2B056A81: mov dword ptr [esi + 0x60], eax */ 4854 L_2B056A84: 4855 ecx = esi; /* 0x2B056A84: mov ecx, esi */ 4856 RECOMP_ICALL(0x2B0565E0u); /* 0x2B056A86: call 0x2b0565e0 */ /* not lifted */ 4857 RECOMP_FLAGS_IN(); 4858 esi = POP32_VAL(esp); /* 0x2B056A8B: pop esi */ 4859 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056A8C: ret */ 4860 RECOMP_REGS_OUT(); 4861 } 4862 4863 void sub_2B056A90(void) { 4864 int _fpu_cmp = 0; 4865 uint32_t _cf = 0; 4866 int _df = 1; 4867 uint32_t _flag_k = FK_NONE; 4868 uint32_t _flag_a = 0, _flag_b = 0; 4869 uint32_t _itail_tgt = 0; 4870 RECOMP_REGS_LOCALS 4871 RECOMP_ENTER(0x2B056A90u); 4872 4873 L_2B056A90: 4874 PUSH32(esp, ebp); /* 0x2B056A90: push ebp */ 4875 ebp = esp; /* 0x2B056A91: mov ebp, esp */ 4876 eax = MEM32(ebp + 0x8); /* 0x2B056A93: mov eax, dword ptr [ebp + 8] */ 4877 ecx = MEM32(ecx + 0x5C); /* 0x2B056A96: mov ecx, dword ptr [ecx + 0x5c] */ 4878 PUSH32(esp, eax); /* 0x2B056A99: push eax */ 4879 RECOMP_ICALL(MEM32(0x2B0B54FC)); /* 0x2B056A9A: call dword ptr [0x2b0b54fc] */ 4880 RECOMP_FLAGS_IN(); 4881 ebp = POP32_VAL(esp); /* 0x2B056AA0: pop ebp */ 4882 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B056AA1: ret 4 */ 4883 RECOMP_REGS_OUT(); 4884 } 4885 4886 void sub_2B056AB0(void) { 4887 int _fpu_cmp = 0; 4888 uint32_t _cf = 0; 4889 int _df = 1; 4890 uint32_t _flag_k = FK_NONE; 4891 uint32_t _flag_a = 0, _flag_b = 0; 4892 uint32_t _itail_tgt = 0; 4893 RECOMP_REGS_LOCALS 4894 RECOMP_ENTER(0x2B056AB0u); 4895 4896 L_2B056AB0: 4897 PUSH32(esp, ebp); /* 0x2B056AB0: push ebp */ 4898 ebp = esp; /* 0x2B056AB1: mov ebp, esp */ 4899 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B056AB3: push -1 */ 4900 PUSH32(esp, 0x2B0AFC9Bu); /* 0x2B056AB5: push 0x2b0afc9b */ 4901 eax = MEM32(FS_BASE + (0)); /* 0x2B056ABA: mov eax, dword ptr fs:[0] */ 4902 PUSH32(esp, eax); /* 0x2B056AC0: push eax */ 4903 MEM32(FS_BASE + (0)) = esp; /* 0x2B056AC1: mov dword ptr fs:[0], esp */ 4904 PUSH32(esp, ecx); /* 0x2B056AC8: push ecx */ 4905 eax = MEM32(0x2B0EEB10); /* 0x2B056AC9: mov eax, dword ptr [0x2b0eeb10] */ 4906 /* test eax, eax */ /* 0x2B056ACE: test eax, eax */ 4907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4908 _cf = 0; 4909 _flag_k = FK_TEST; 4910 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B056B0B; /* 0x2B056AD0: jne 0x2b056b0b */ 4911 L_2B056AD2: 4912 PUSH32(esp, 1); /* 0x2B056AD2: push 1 */ 4913 RECOMP_ICALL(0x2B0AB212u); /* 0x2B056AD4: call 0x2b0ab212 */ /* not lifted */ 4914 RECOMP_FLAGS_IN(); 4915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4917 esp = esp + 4; /* 0x2B056AD9: add esp, 4 */ 4918 _flag_k = FK_ADD; 4919 MEM32(ebp + (-0x10)) = eax; /* 0x2B056ADC: mov dword ptr [ebp - 0x10], eax */ 4920 /* test eax, eax */ /* 0x2B056ADF: test eax, eax */ 4921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4922 _cf = 0; 4923 _flag_k = FK_TEST; 4924 MEM32(ebp + (-0x4)) = 0; /* 0x2B056AE1: mov dword ptr [ebp - 4], 0 */ 4925 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056B04; /* 0x2B056AE8: je 0x2b056b04 */ 4926 L_2B056AEA: 4927 ecx = eax; /* 0x2B056AEA: mov ecx, eax */ 4928 RECOMP_ICALL(0x2B056B30u); /* 0x2B056AEC: call 0x2b056b30 */ /* not lifted */ 4929 RECOMP_FLAGS_IN(); 4930 MEM32(0x2B0EEB10) = eax; /* 0x2B056AF1: mov dword ptr [0x2b0eeb10], eax */ 4931 ecx = MEM32(ebp + (-0xC)); /* 0x2B056AF6: mov ecx, dword ptr [ebp - 0xc] */ 4932 MEM32(FS_BASE + (0)) = ecx; /* 0x2B056AF9: mov dword ptr fs:[0], ecx */ 4933 esp = ebp; /* 0x2B056B00: mov esp, ebp */ 4934 ebp = POP32_VAL(esp); /* 0x2B056B02: pop ebp */ 4935 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056B03: ret */ 4936 L_2B056B04: 4937 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4938 eax = 0; /* 0x2B056B04: xor eax, eax */ 4939 _cf = 0; 4940 _flag_k = FK_TEST; 4941 MEM32(0x2B0EEB10) = eax; /* 0x2B056B06: mov dword ptr [0x2b0eeb10], eax */ 4942 L_2B056B0B: 4943 ecx = MEM32(ebp + (-0xC)); /* 0x2B056B0B: mov ecx, dword ptr [ebp - 0xc] */ 4944 MEM32(FS_BASE + (0)) = ecx; /* 0x2B056B0E: mov dword ptr fs:[0], ecx */ 4945 esp = ebp; /* 0x2B056B15: mov esp, ebp */ 4946 ebp = POP32_VAL(esp); /* 0x2B056B17: pop ebp */ 4947 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056B18: ret */ 4948 RECOMP_REGS_OUT(); 4949 } 4950 4951 void sub_2B056B20(void) { 4952 int _fpu_cmp = 0; 4953 uint32_t _cf = 0; 4954 int _df = 1; 4955 uint32_t _flag_k = FK_NONE; 4956 uint32_t _flag_a = 0, _flag_b = 0; 4957 uint32_t _itail_tgt = 0; 4958 RECOMP_REGS_LOCALS 4959 RECOMP_ENTER(0x2B056B20u); 4960 4961 L_2B056B20: 4962 eax = MEM32(0x2B0EEB10); /* 0x2B056B20: mov eax, dword ptr [0x2b0eeb10] */ 4963 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056B25: ret */ 4964 RECOMP_REGS_OUT(); 4965 } 4966 4967 void sub_2B056B30(void) { 4968 int _fpu_cmp = 0; 4969 uint32_t _cf = 0; 4970 int _df = 1; 4971 uint32_t _flag_k = FK_NONE; 4972 uint32_t _flag_a = 0, _flag_b = 0; 4973 uint32_t _itail_tgt = 0; 4974 RECOMP_REGS_LOCALS 4975 RECOMP_ENTER(0x2B056B30u); 4976 4977 L_2B056B30: 4978 PUSH32(esp, ebx); /* 0x2B056B30: push ebx */ 4979 PUSH32(esp, esi); /* 0x2B056B31: push esi */ 4980 esi = MEM32(0x2B0B53CC); /* 0x2B056B32: mov esi, dword ptr [0x2b0b53cc] */ 4981 PUSH32(esp, edi); /* 0x2B056B38: push edi */ 4982 ebx = ecx; /* 0x2B056B39: mov ebx, ecx */ 4983 MEM32(0x2B0EEB14) = 0; /* 0x2B056B3B: mov dword ptr [0x2b0eeb14], 0 */ 4984 RECOMP_ICALL(esi); /* 0x2B056B45: call esi */ 4985 RECOMP_FLAGS_IN(); 4986 ecx = eax; /* 0x2B056B47: mov ecx, eax */ 4987 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B056B49: call dword ptr [0x2b0b5374] */ 4988 RECOMP_FLAGS_IN(); 4989 PUSH32(esp, 0x1F40u); /* 0x2B056B4F: push 0x1f40 */ 4990 PUSH32(esp, 0xEu); /* 0x2B056B54: push 0xe */ 4991 PUSH32(esp, 1); /* 0x2B056B56: push 1 */ 4992 RECOMP_ICALL(esi); /* 0x2B056B58: call esi */ 4993 RECOMP_FLAGS_IN(); 4994 ecx = eax; /* 0x2B056B5A: mov ecx, eax */ 4995 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B056B5C: call dword ptr [0x2b0b5378] */ 4996 RECOMP_FLAGS_IN(); 4997 PUSH32(esp, 0x2B056C40u); /* 0x2B056B62: push 0x2b056c40 */ 4998 PUSH32(esp, 5); /* 0x2B056B67: push 5 */ 4999 RECOMP_ICALL(esi); /* 0x2B056B69: call esi */ 5000 RECOMP_FLAGS_IN(); 5001 edi = MEM32(0x2B0B5324); /* 0x2B056B6B: mov edi, dword ptr [0x2b0b5324] */ 5002 ecx = eax; /* 0x2B056B71: mov ecx, eax */ 5003 RECOMP_ICALL(edi); /* 0x2B056B73: call edi */ 5004 RECOMP_FLAGS_IN(); 5005 PUSH32(esp, 0x2B056CB0u); /* 0x2B056B75: push 0x2b056cb0 */ 5006 PUSH32(esp, 6); /* 0x2B056B7A: push 6 */ 5007 RECOMP_ICALL(esi); /* 0x2B056B7C: call esi */ 5008 RECOMP_FLAGS_IN(); 5009 ecx = eax; /* 0x2B056B7E: mov ecx, eax */ 5010 RECOMP_ICALL(edi); /* 0x2B056B80: call edi */ 5011 RECOMP_FLAGS_IN(); 5012 PUSH32(esp, 0x2B056CD0u); /* 0x2B056B82: push 0x2b056cd0 */ 5013 RECOMP_ICALL(esi); /* 0x2B056B87: call esi */ 5014 RECOMP_FLAGS_IN(); 5015 ecx = eax; /* 0x2B056B89: mov ecx, eax */ 5016 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B056B8B: call dword ptr [0x2b0b537c] */ 5017 RECOMP_FLAGS_IN(); 5018 PUSH32(esp, 0x2B056CE0u); /* 0x2B056B91: push 0x2b056ce0 */ 5019 PUSH32(esp, 0xAEu); /* 0x2B056B96: push 0xae */ 5020 RECOMP_ICALL(esi); /* 0x2B056B9B: call esi */ 5021 RECOMP_FLAGS_IN(); 5022 ecx = eax; /* 0x2B056B9D: mov ecx, eax */ 5023 RECOMP_ICALL(edi); /* 0x2B056B9F: call edi */ 5024 RECOMP_FLAGS_IN(); 5025 PUSH32(esp, 0x2B056D70u); /* 0x2B056BA1: push 0x2b056d70 */ 5026 PUSH32(esp, 0x139u); /* 0x2B056BA6: push 0x139 */ 5027 RECOMP_ICALL(esi); /* 0x2B056BAB: call esi */ 5028 RECOMP_FLAGS_IN(); 5029 ecx = eax; /* 0x2B056BAD: mov ecx, eax */ 5030 RECOMP_ICALL(edi); /* 0x2B056BAF: call edi */ 5031 RECOMP_FLAGS_IN(); 5032 PUSH32(esp, 0x2B056D80u); /* 0x2B056BB1: push 0x2b056d80 */ 5033 PUSH32(esp, 0xAFu); /* 0x2B056BB6: push 0xaf */ 5034 RECOMP_ICALL(esi); /* 0x2B056BBB: call esi */ 5035 RECOMP_FLAGS_IN(); 5036 ecx = eax; /* 0x2B056BBD: mov ecx, eax */ 5037 RECOMP_ICALL(edi); /* 0x2B056BBF: call edi */ 5038 RECOMP_FLAGS_IN(); 5039 PUSH32(esp, 0x2B056DD0u); /* 0x2B056BC1: push 0x2b056dd0 */ 5040 PUSH32(esp, 0xB0u); /* 0x2B056BC6: push 0xb0 */ 5041 RECOMP_ICALL(esi); /* 0x2B056BCB: call esi */ 5042 RECOMP_FLAGS_IN(); 5043 ecx = eax; /* 0x2B056BCD: mov ecx, eax */ 5044 RECOMP_ICALL(edi); /* 0x2B056BCF: call edi */ 5045 RECOMP_FLAGS_IN(); 5046 PUSH32(esp, 0x2B056E10u); /* 0x2B056BD1: push 0x2b056e10 */ 5047 PUSH32(esp, 0x105u); /* 0x2B056BD6: push 0x105 */ 5048 RECOMP_ICALL(esi); /* 0x2B056BDB: call esi */ 5049 RECOMP_FLAGS_IN(); 5050 ecx = eax; /* 0x2B056BDD: mov ecx, eax */ 5051 RECOMP_ICALL(edi); /* 0x2B056BDF: call edi */ 5052 RECOMP_FLAGS_IN(); 5053 PUSH32(esp, 0x2B056E90u); /* 0x2B056BE1: push 0x2b056e90 */ 5054 PUSH32(esp, 0xFEu); /* 0x2B056BE6: push 0xfe */ 5055 RECOMP_ICALL(esi); /* 0x2B056BEB: call esi */ 5056 RECOMP_FLAGS_IN(); 5057 ecx = eax; /* 0x2B056BED: mov ecx, eax */ 5058 RECOMP_ICALL(edi); /* 0x2B056BEF: call edi */ 5059 RECOMP_FLAGS_IN(); 5060 PUSH32(esp, 0x2B056F00u); /* 0x2B056BF1: push 0x2b056f00 */ 5061 PUSH32(esp, 0xA7u); /* 0x2B056BF6: push 0xa7 */ 5062 RECOMP_ICALL(esi); /* 0x2B056BFB: call esi */ 5063 RECOMP_FLAGS_IN(); 5064 ecx = eax; /* 0x2B056BFD: mov ecx, eax */ 5065 RECOMP_ICALL(edi); /* 0x2B056BFF: call edi */ 5066 RECOMP_FLAGS_IN(); 5067 PUSH32(esp, 0x2B056F70u); /* 0x2B056C01: push 0x2b056f70 */ 5068 PUSH32(esp, 0x13Au); /* 0x2B056C06: push 0x13a */ 5069 RECOMP_ICALL(esi); /* 0x2B056C0B: call esi */ 5070 RECOMP_FLAGS_IN(); 5071 ecx = eax; /* 0x2B056C0D: mov ecx, eax */ 5072 RECOMP_ICALL(edi); /* 0x2B056C0F: call edi */ 5073 RECOMP_FLAGS_IN(); 5074 edi = POP32_VAL(esp); /* 0x2B056C11: pop edi */ 5075 esi = POP32_VAL(esp); /* 0x2B056C12: pop esi */ 5076 eax = ebx; /* 0x2B056C13: mov eax, ebx */ 5077 ebx = POP32_VAL(esp); /* 0x2B056C15: pop ebx */ 5078 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056C16: ret */ 5079 RECOMP_REGS_OUT(); 5080 } 5081 5082 void sub_2B056C20(void) { 5083 int _fpu_cmp = 0; 5084 uint32_t _cf = 0; 5085 int _df = 1; 5086 uint32_t _flag_k = FK_NONE; 5087 uint32_t _flag_a = 0, _flag_b = 0; 5088 uint32_t _itail_tgt = 0; 5089 RECOMP_REGS_LOCALS 5090 RECOMP_ENTER(0x2B056C20u); 5091 5092 L_2B056C20: 5093 RECOMP_ICALL(0x2B056CB0u); /* 0x2B056C20: call 0x2b056cb0 */ /* not lifted */ 5094 RECOMP_FLAGS_IN(); 5095 ecx = MEM32(0x2B0EEB14); /* 0x2B056C25: mov ecx, dword ptr [0x2b0eeb14] */ 5096 /* test ecx, ecx */ /* 0x2B056C2B: test ecx, ecx */ 5097 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5098 _cf = 0; 5099 _flag_k = FK_TEST; 5100 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056C35; /* 0x2B056C2D: je 0x2b056c35 */ 5101 L_2B056C2F: 5102 eax = MEM32(ecx); /* 0x2B056C2F: mov eax, dword ptr [ecx] */ 5103 PUSH32(esp, 1); /* 0x2B056C31: push 1 */ 5104 RECOMP_ICALL(MEM32(eax)); /* 0x2B056C33: call dword ptr [eax] */ 5105 RECOMP_FLAGS_IN(); 5106 L_2B056C35: 5107 MEM32(0x2B0EEB14) = 0; /* 0x2B056C35: mov dword ptr [0x2b0eeb14], 0 */ 5108 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056C3F: ret */ 5109 RECOMP_REGS_OUT(); 5110 } 5111 5112 void sub_2B056C40(void) { 5113 int _fpu_cmp = 0; 5114 uint32_t _cf = 0; 5115 int _df = 1; 5116 uint32_t _flag_k = FK_NONE; 5117 uint32_t _flag_a = 0, _flag_b = 0; 5118 uint32_t _itail_tgt = 0; 5119 RECOMP_REGS_LOCALS 5120 RECOMP_ENTER(0x2B056C40u); 5121 5122 L_2B056C40: 5123 PUSH32(esp, ebp); /* 0x2B056C40: push ebp */ 5124 ebp = esp; /* 0x2B056C41: mov ebp, esp */ 5125 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B056C43: push -1 */ 5126 PUSH32(esp, 0x2B0AFCBBu); /* 0x2B056C45: push 0x2b0afcbb */ 5127 eax = MEM32(FS_BASE + (0)); /* 0x2B056C4A: mov eax, dword ptr fs:[0] */ 5128 PUSH32(esp, eax); /* 0x2B056C50: push eax */ 5129 MEM32(FS_BASE + (0)) = esp; /* 0x2B056C51: mov dword ptr fs:[0], esp */ 5130 PUSH32(esp, ecx); /* 0x2B056C58: push ecx */ 5131 eax = MEM32(0x2B0EEB14); /* 0x2B056C59: mov eax, dword ptr [0x2b0eeb14] */ 5132 /* test eax, eax */ /* 0x2B056C5E: test eax, eax */ 5133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5134 _cf = 0; 5135 _flag_k = FK_TEST; 5136 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B056C9B; /* 0x2B056C60: jne 0x2b056c9b */ 5137 L_2B056C62: 5138 PUSH32(esp, 0x6Cu); /* 0x2B056C62: push 0x6c */ 5139 RECOMP_ICALL(0x2B0AB212u); /* 0x2B056C64: call 0x2b0ab212 */ /* not lifted */ 5140 RECOMP_FLAGS_IN(); 5141 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5142 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5143 esp = esp + 4; /* 0x2B056C69: add esp, 4 */ 5144 _flag_k = FK_ADD; 5145 MEM32(ebp + (-0x10)) = eax; /* 0x2B056C6C: mov dword ptr [ebp - 0x10], eax */ 5146 /* test eax, eax */ /* 0x2B056C6F: test eax, eax */ 5147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5148 _cf = 0; 5149 _flag_k = FK_TEST; 5150 MEM32(ebp + (-0x4)) = 0; /* 0x2B056C71: mov dword ptr [ebp - 4], 0 */ 5151 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056C94; /* 0x2B056C78: je 0x2b056c94 */ 5152 L_2B056C7A: 5153 ecx = eax; /* 0x2B056C7A: mov ecx, eax */ 5154 RECOMP_ICALL(0x2B055640u); /* 0x2B056C7C: call 0x2b055640 */ /* not lifted */ 5155 RECOMP_FLAGS_IN(); 5156 MEM32(0x2B0EEB14) = eax; /* 0x2B056C81: mov dword ptr [0x2b0eeb14], eax */ 5157 ecx = MEM32(ebp + (-0xC)); /* 0x2B056C86: mov ecx, dword ptr [ebp - 0xc] */ 5158 MEM32(FS_BASE + (0)) = ecx; /* 0x2B056C89: mov dword ptr fs:[0], ecx */ 5159 esp = ebp; /* 0x2B056C90: mov esp, ebp */ 5160 ebp = POP32_VAL(esp); /* 0x2B056C92: pop ebp */ 5161 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056C93: ret */ 5162 L_2B056C94: 5163 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5164 eax = 0; /* 0x2B056C94: xor eax, eax */ 5165 _cf = 0; 5166 _flag_k = FK_TEST; 5167 MEM32(0x2B0EEB14) = eax; /* 0x2B056C96: mov dword ptr [0x2b0eeb14], eax */ 5168 L_2B056C9B: 5169 ecx = MEM32(ebp + (-0xC)); /* 0x2B056C9B: mov ecx, dword ptr [ebp - 0xc] */ 5170 MEM32(FS_BASE + (0)) = ecx; /* 0x2B056C9E: mov dword ptr fs:[0], ecx */ 5171 esp = ebp; /* 0x2B056CA5: mov esp, ebp */ 5172 ebp = POP32_VAL(esp); /* 0x2B056CA7: pop ebp */ 5173 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056CA8: ret */ 5174 RECOMP_REGS_OUT(); 5175 } 5176 5177 void sub_2B056CB0(void) { 5178 int _fpu_cmp = 0; 5179 uint32_t _cf = 0; 5180 int _df = 1; 5181 uint32_t _flag_k = FK_NONE; 5182 uint32_t _flag_a = 0, _flag_b = 0; 5183 uint32_t _itail_tgt = 0; 5184 RECOMP_REGS_LOCALS 5185 RECOMP_ENTER(0x2B056CB0u); 5186 5187 L_2B056CB0: 5188 ecx = MEM32(0x2B0EEB14); /* 0x2B056CB0: mov ecx, dword ptr [0x2b0eeb14] */ 5189 /* test ecx, ecx */ /* 0x2B056CB6: test ecx, ecx */ 5190 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5191 _cf = 0; 5192 _flag_k = FK_TEST; 5193 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056CC0; /* 0x2B056CB8: je 0x2b056cc0 */ 5194 L_2B056CBA: 5195 eax = MEM32(ecx); /* 0x2B056CBA: mov eax, dword ptr [ecx] */ 5196 PUSH32(esp, 1); /* 0x2B056CBC: push 1 */ 5197 RECOMP_ICALL(MEM32(eax)); /* 0x2B056CBE: call dword ptr [eax] */ 5198 RECOMP_FLAGS_IN(); 5199 L_2B056CC0: 5200 MEM32(0x2B0EEB14) = 0; /* 0x2B056CC0: mov dword ptr [0x2b0eeb14], 0 */ 5201 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056CCA: ret */ 5202 RECOMP_REGS_OUT(); 5203 } 5204 5205 void sub_2B056CD0(void) { 5206 int _fpu_cmp = 0; 5207 uint32_t _cf = 0; 5208 int _df = 1; 5209 uint32_t _flag_k = FK_NONE; 5210 uint32_t _flag_a = 0, _flag_b = 0; 5211 uint32_t _itail_tgt = 0; 5212 RECOMP_REGS_LOCALS 5213 RECOMP_ENTER(0x2B056CD0u); 5214 5215 goto L_2B056CD0; 5216 L_2B056120: 5217 PUSH32(esp, ebp); /* 0x2B056120: push ebp */ 5218 ebp = esp; /* 0x2B056121: mov ebp, esp */ 5219 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B056123: push -1 */ 5220 PUSH32(esp, 0x2B0AFC66u); /* 0x2B056125: push 0x2b0afc66 */ 5221 eax = MEM32(FS_BASE + (0)); /* 0x2B05612A: mov eax, dword ptr fs:[0] */ 5222 PUSH32(esp, eax); /* 0x2B056130: push eax */ 5223 MEM32(FS_BASE + (0)) = esp; /* 0x2B056131: mov dword ptr fs:[0], esp */ 5224 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x190u); 5225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5226 esp = esp - 0x190u; /* 0x2B056138: sub esp, 0x190 */ 5227 _flag_k = FK_CMP; 5228 PUSH32(esp, ebx); /* 0x2B05613E: push ebx */ 5229 PUSH32(esp, esi); /* 0x2B05613F: push esi */ 5230 PUSH32(esp, edi); /* 0x2B056140: push edi */ 5231 edi = MEM32(0x2B0B5D6C); /* 0x2B056141: mov edi, dword ptr [0x2b0b5d6c] */ 5232 eax = ebp + (-0x54); /* 0x2B056147: lea eax, [ebp - 0x54] */ 5233 PUSH32(esp, eax); /* 0x2B05614A: push eax */ 5234 esi = ecx; /* 0x2B05614B: mov esi, ecx */ 5235 MEM32(ebp + (-0x60)) = 0; /* 0x2B05614D: mov dword ptr [ebp - 0x60], 0 */ 5236 MEM32(ebp + (-0x5C)) = 0; /* 0x2B056154: mov dword ptr [ebp - 0x5c], 0 */ 5237 MEM32(ebp + (-0x58)) = 0; /* 0x2B05615B: mov dword ptr [ebp - 0x58], 0 */ 5238 MEM32(ebp + (-0x54)) = 0; /* 0x2B056162: mov dword ptr [ebp - 0x54], 0 */ 5239 MEM32(ebp + (-0x50)) = 0; /* 0x2B056169: mov dword ptr [ebp - 0x50], 0 */ 5240 MEM32(ebp + (-0x4C)) = 0; /* 0x2B056170: mov dword ptr [ebp - 0x4c], 0 */ 5241 MEM32(ebp + (-0x48)) = 0x3F800000u; /* 0x2B056177: mov dword ptr [ebp - 0x48], 0x3f800000 */ 5242 RECOMP_ICALL(edi); /* 0x2B05617E: call edi */ 5243 RECOMP_FLAGS_IN(); 5244 ecx = eax; /* 0x2B056180: mov ecx, eax */ 5245 RECOMP_ICALL(MEM32(0x2B0B5E28)); /* 0x2B056182: call dword ptr [0x2b0b5e28] */ 5246 RECOMP_FLAGS_IN(); 5247 ecx = ebp + (-0x60); /* 0x2B056188: lea ecx, [ebp - 0x60] */ 5248 PUSH32(esp, ecx); /* 0x2B05618B: push ecx */ 5249 RECOMP_ICALL(edi); /* 0x2B05618C: call edi */ 5250 RECOMP_FLAGS_IN(); 5251 ecx = eax; /* 0x2B05618E: mov ecx, eax */ 5252 RECOMP_ICALL(MEM32(0x2B0B5F04)); /* 0x2B056190: call dword ptr [0x2b0b5f04] */ 5253 RECOMP_FLAGS_IN(); 5254 edx = MEM32(ebp + (-0x54)); /* 0x2B056196: mov edx, dword ptr [ebp - 0x54] */ 5255 ecx = MEM32(ebp + (-0x4C)); /* 0x2B056199: mov ecx, dword ptr [ebp - 0x4c] */ 5256 eax = MEM32(ebp + (-0x50)); /* 0x2B05619C: mov eax, dword ptr [ebp - 0x50] */ 5257 MEM32(ebp + (-0x80)) = edx; /* 0x2B05619F: mov dword ptr [ebp - 0x80], edx */ 5258 edx = ebp + (-0x34); /* 0x2B0561A2: lea edx, [ebp - 0x34] */ 5259 MEM32(ebp + (-0x78)) = ecx; /* 0x2B0561A5: mov dword ptr [ebp - 0x78], ecx */ 5260 PUSH32(esp, edx); /* 0x2B0561A8: push edx */ 5261 ecx = ebp + (-0x80); /* 0x2B0561A9: lea ecx, [ebp - 0x80] */ 5262 MEM32(ebp + (-0x34)) = 0; /* 0x2B0561AC: mov dword ptr [ebp - 0x34], 0 */ 5263 MEM32(ebp + (-0x30)) = 0; /* 0x2B0561B3: mov dword ptr [ebp - 0x30], 0 */ 5264 MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x2B0561BA: mov dword ptr [ebp - 0x2c], 0x3f800000 */ 5265 MEM32(ebp + (-0x7C)) = eax; /* 0x2B0561C1: mov dword ptr [ebp - 0x7c], eax */ 5266 RECOMP_ICALL(MEM32(0x2B0B60D8)); /* 0x2B0561C4: call dword ptr [0x2b0b60d8] */ 5267 RECOMP_FLAGS_IN(); 5268 ecx = MEM32(eax); /* 0x2B0561CA: mov ecx, dword ptr [eax] */ 5269 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B0561CC: mov dword ptr [ebp - 0x1c], ecx */ 5270 edx = MEM32(eax + 0x4); /* 0x2B0561CF: mov edx, dword ptr [eax + 4] */ 5271 MEM32(ebp + (-0x18)) = edx; /* 0x2B0561D2: mov dword ptr [ebp - 0x18], edx */ 5272 eax = MEM32(eax + 0x8); /* 0x2B0561D5: mov eax, dword ptr [eax + 8] */ 5273 ecx = ebp + (-0x1C); /* 0x2B0561D8: lea ecx, [ebp - 0x1c] */ 5274 PUSH32(esp, ecx); /* 0x2B0561DB: push ecx */ 5275 edx = ebp + (-0x80); /* 0x2B0561DC: lea edx, [ebp - 0x80] */ 5276 PUSH32(esp, edx); /* 0x2B0561DF: push edx */ 5277 ecx = ebp + (-0x54); /* 0x2B0561E0: lea ecx, [ebp - 0x54] */ 5278 MEM32(ebp + (-0x14)) = eax; /* 0x2B0561E3: mov dword ptr [ebp - 0x14], eax */ 5279 RECOMP_ICALL(MEM32(0x2B0B60F8)); /* 0x2B0561E6: call dword ptr [0x2b0b60f8] */ 5280 RECOMP_FLAGS_IN(); 5281 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x2B0561EC: fld dword ptr [ebp - 0x48] */ 5282 ecx = MEM32(eax); /* 0x2B0561EF: mov ecx, dword ptr [eax] */ 5283 _st[0] += _st[0]; /* 0x2B0561F1: fadd st(0), st(0) */ 5284 MEM32(ebp + (-0x8C)) = ecx; /* 0x2B0561F3: mov dword ptr [ebp - 0x8c], ecx */ 5285 edx = MEM32(eax + 0x4); /* 0x2B0561F9: mov edx, dword ptr [eax + 4] */ 5286 fp_push(_st[0]); /* 0x2B0561FC: fld st(0) */ 5287 MEM32(ebp + (-0x88)) = edx; /* 0x2B0561FE: mov dword ptr [ebp - 0x88], edx */ 5288 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2B056204: fmul dword ptr [ebp - 0x1c] */ 5289 eax = MEM32(eax + 0x8); /* 0x2B056207: mov eax, dword ptr [eax + 8] */ 5290 PUSH32(esp, 0x40000000u); /* 0x2B05620A: push 0x40000000 */ 5291 ecx = ebp + (-0x8C); /* 0x2B05620F: lea ecx, [ebp - 0x8c] */ 5292 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2B056215: fstp dword ptr [ebp - 0x1c] */ 5293 MEM32(ebp + (-0x84)) = eax; /* 0x2B056218: mov dword ptr [ebp - 0x84], eax */ 5294 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x2B05621E: fld dword ptr [ebp - 0x18] */ 5295 _st[0] *= _st[1]; /* 0x2B056221: fmul st(1) */ 5296 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2B056223: fstp dword ptr [ebp - 0x18] */ 5297 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2B056226: fld dword ptr [ebp - 0x14] */ 5298 _st[0] *= _st[1]; /* 0x2B056229: fmul st(1) */ 5299 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2B05622B: fstp dword ptr [ebp - 0x14] */ 5300 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B05622E: fstp st(0) */ 5301 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B056230: call dword ptr [0x2b0b60cc] */ 5302 RECOMP_FLAGS_IN(); 5303 ecx = ebp + (-0x1C); /* 0x2B056236: lea ecx, [ebp - 0x1c] */ 5304 PUSH32(esp, ecx); /* 0x2B056239: push ecx */ 5305 ecx = ebp + (-0x34); /* 0x2B05623A: lea ecx, [ebp - 0x34] */ 5306 RECOMP_ICALL(MEM32(0x2B0B60D4)); /* 0x2B05623D: call dword ptr [0x2b0b60d4] */ 5307 RECOMP_FLAGS_IN(); 5308 edx = ebp + (-0x8C); /* 0x2B056243: lea edx, [ebp - 0x8c] */ 5309 PUSH32(esp, edx); /* 0x2B056249: push edx */ 5310 ecx = ebp + (-0x34); /* 0x2B05624A: lea ecx, [ebp - 0x34] */ 5311 RECOMP_ICALL(MEM32(0x2B0B60D4)); /* 0x2B05624D: call dword ptr [0x2b0b60d4] */ 5312 RECOMP_FLAGS_IN(); 5313 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x2B056253: fld dword ptr [ebp - 0x34] */ 5314 _st[0] = -_st[0]; /* 0x2B056256: fchs */ 5315 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x2B056258: fld dword ptr [ebp - 0x2c] */ 5316 _st[0] = -_st[0]; /* 0x2B05625B: fchs */ 5317 { double _x = fp_pop(); _st[0] = atan2(_st[0], _x); } /* 0x2B05625D: fpatan */ 5318 _st[0] *= (double)*(float*)ADDR(0x2B0B6B0C); /* 0x2B05625F: fmul dword ptr [0x2b0b6b0c] */ 5319 PUSH32(esp, ecx); /* 0x2B056265: push ecx */ 5320 ecx = MEM32(esi + 0x5C); /* 0x2B056266: mov ecx, dword ptr [esi + 0x5c] */ 5321 _st[0] += (double)*(float*)ADDR(0x2B0B6548); /* 0x2B056269: fadd dword ptr [0x2b0b6548] */ 5322 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x2B05626F: fstp dword ptr [esp] */ 5323 RECOMP_ICALL(MEM32(0x2B0B550C)); /* 0x2B056272: call dword ptr [0x2b0b550c] */ 5324 RECOMP_FLAGS_IN(); 5325 ecx = MEM32(ebp + (-0x60)); /* 0x2B056278: mov ecx, dword ptr [ebp - 0x60] */ 5326 edx = MEM32(ebp + (-0x5C)); /* 0x2B05627B: mov edx, dword ptr [ebp - 0x5c] */ 5327 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5329 esp = esp - 0xCu; /* 0x2B05627E: sub esp, 0xc */ 5330 _flag_k = FK_CMP; 5331 eax = esp; /* 0x2B056281: mov eax, esp */ 5332 MEM32(eax) = ecx; /* 0x2B056283: mov dword ptr [eax], ecx */ 5333 ecx = MEM32(ebp + (-0x58)); /* 0x2B056285: mov ecx, dword ptr [ebp - 0x58] */ 5334 MEM32(eax + 0x4) = edx; /* 0x2B056288: mov dword ptr [eax + 4], edx */ 5335 MEM32(eax + 0x8) = ecx; /* 0x2B05628B: mov dword ptr [eax + 8], ecx */ 5336 ecx = MEM32(esi + 0x5C); /* 0x2B05628E: mov ecx, dword ptr [esi + 0x5c] */ 5337 RECOMP_ICALL(MEM32(0x2B0B5510)); /* 0x2B056291: call dword ptr [0x2b0b5510] */ 5338 RECOMP_FLAGS_IN(); 5339 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B056297: call dword ptr [0x2b0b5b64] */ 5340 RECOMP_FLAGS_IN(); 5341 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBCu); 5342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5343 eax = eax + 0xBCu; /* 0x2B05629D: add eax, 0xbc */ 5344 _flag_k = FK_ADD; 5345 edx = ebp + (-0x18); /* 0x2B0562A2: lea edx, [ebp - 0x18] */ 5346 /* cmp edx, eax */ /* 0x2B0562A5: cmp edx, eax */ 5347 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5349 _flag_k = FK_CMP; 5350 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0562B4; /* 0x2B0562A7: je 0x2b0562b4 */ 5351 L_2B0562A9: 5352 ecx = MEM32(eax); /* 0x2B0562A9: mov ecx, dword ptr [eax] */ 5353 MEM32(ebp + (-0x18)) = ecx; /* 0x2B0562AB: mov dword ptr [ebp - 0x18], ecx */ 5354 edx = MEM32(eax + 0x4); /* 0x2B0562AE: mov edx, dword ptr [eax + 4] */ 5355 MEM32(ebp + (-0x14)) = edx; /* 0x2B0562B1: mov dword ptr [ebp - 0x14], edx */ 5356 L_2B0562B4: 5357 ecx = MEM32(esi + 0x5C); /* 0x2B0562B4: mov ecx, dword ptr [esi + 0x5c] */ 5358 eax = ebp + (-0x18); /* 0x2B0562B7: lea eax, [ebp - 0x18] */ 5359 PUSH32(esp, eax); /* 0x2B0562BA: push eax */ 5360 RECOMP_ICALL(MEM32(0x2B0B5514)); /* 0x2B0562BB: call dword ptr [0x2b0b5514] */ 5361 RECOMP_FLAGS_IN(); 5362 ecx = MEM32(0x2B0B5518); /* 0x2B0562C1: mov ecx, dword ptr [0x2b0b5518] */ 5363 eax = MEM32(ecx); /* 0x2B0562C7: mov eax, dword ptr [ecx] */ 5364 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5365 ebx = 0; /* 0x2B0562C9: xor ebx, ebx */ 5366 _cf = 0; 5367 _flag_k = FK_TEST; 5368 /* cmp eax, ebx */ /* 0x2B0562CB: cmp eax, ebx */ 5369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5371 _flag_k = FK_CMP; 5372 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B0562CD: setne al */ 5373 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0562D0: cmp al, bl */ 5374 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5376 _flag_k = FK_NARROW(FK_CMP, 24); 5377 MEM8(ebp + (-0xD)) = (uint8_t)(LO8(eax)); /* 0x2B0562D2: mov byte ptr [ebp - 0xd], al */ 5378 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0562FF; /* 0x2B0562D5: jne 0x2b0562ff */ 5379 L_2B0562D7: 5380 ecx = MEM32(esi + 0x48); /* 0x2B0562D7: mov ecx, dword ptr [esi + 0x48] */ 5381 edx = MEM32(ecx); /* 0x2B0562DA: mov edx, dword ptr [ecx] */ 5382 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B0562DC: call dword ptr [edx + 0x14] */ 5383 RECOMP_FLAGS_IN(); 5384 /* test LO8(eax), LO8(eax) */ /* 0x2B0562DF: test al, al */ 5385 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5386 _cf = 0; 5387 _flag_k = FK_NARROW(FK_TEST, 24); 5388 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0562FF; /* 0x2B0562E1: je 0x2b0562ff */ 5389 L_2B0562E3: 5390 ecx = MEM32(esi + 0x48); /* 0x2B0562E3: mov ecx, dword ptr [esi + 0x48] */ 5391 eax = MEM32(ecx); /* 0x2B0562E6: mov eax, dword ptr [ecx] */ 5392 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B0562E8: call dword ptr [eax + 0xc] */ 5393 RECOMP_FLAGS_IN(); 5394 ecx = esi; /* 0x2B0562EB: mov ecx, esi */ 5395 MEM32(esi + 0x4C) = ebx; /* 0x2B0562ED: mov dword ptr [esi + 0x4c], ebx */ 5396 MEM32(esi + 0x50) = ebx; /* 0x2B0562F0: mov dword ptr [esi + 0x50], ebx */ 5397 RECOMP_ICALL(0x2B0565E0u); /* 0x2B0562F3: call 0x2b0565e0 */ /* not lifted */ 5398 RECOMP_FLAGS_IN(); 5399 eax = MEM32(esi + 0x2C); /* 0x2B0562F8: mov eax, dword ptr [esi + 0x2c] */ 5400 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B0562FB: mov byte ptr [eax + 9], 1 */ 5401 L_2B0562FF: 5402 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B0562FF: call dword ptr [0x2b0b53bc] */ 5403 RECOMP_FLAGS_IN(); 5404 ecx = MEM32(eax + 0x14); /* 0x2B056305: mov ecx, dword ptr [eax + 0x14] */ 5405 fp_push(*(float*)&MEM32(ecx)); /* 0x2B056308: fld dword ptr [ecx] */ 5406 fp_push(*(float*)&MEM32(esi + 0x4C)); /* 0x2B05630A: fld dword ptr [esi + 0x4c] */ 5407 _st[0] -= _st[1]; /* 0x2B05630D: fsub st(1) */ 5408 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x4C) = _v; } /* 0x2B05630F: fst dword ptr [esi + 0x4c] */ 5409 fp_push(*(float*)&MEM32(esi + 0x50)); /* 0x2B056312: fld dword ptr [esi + 0x50] */ 5410 _st[0] -= _st[2]; /* 0x2B056315: fsub st(2) */ 5411 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x50) = _v; } /* 0x2B056317: fstp dword ptr [esi + 0x50] */ 5412 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B05631A: fcomp dword ptr [0x2b0b61b8] */ 5413 fp_pop(); 5414 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B056320: fnstsw ax */ 5415 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B056322: fstp st(0) */ 5416 /* test HI8(eax), 0x41u */ /* 0x2B056324: test ah, 0x41 */ 5417 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5418 _cf = 0; 5419 _flag_k = FK_NARROW(FK_TEST, 24); 5420 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056376; /* 0x2B056327: je 0x2b056376 */ 5421 L_2B056329: 5422 edx = MEM32(esi + 0x5C); /* 0x2B056329: mov edx, dword ptr [esi + 0x5c] */ 5423 ecx = ebp + (-0x28); /* 0x2B05632C: lea ecx, [ebp - 0x28] */ 5424 MEM32(esi + 0x4C) = 0x3DCCCCCDu; /* 0x2B05632F: mov dword ptr [esi + 0x4c], 0x3dcccccd */ 5425 MEM32(ebp + (-0x28)) = ebx; /* 0x2B056336: mov dword ptr [ebp - 0x28], ebx */ 5426 eax = MEM32(edx + 0xA4); /* 0x2B056339: mov eax, dword ptr [edx + 0xa4] */ 5427 PUSH32(esp, ecx); /* 0x2B05633F: push ecx */ 5428 PUSH32(esp, eax); /* 0x2B056340: push eax */ 5429 PUSH32(esp, 0x1F4u); /* 0x2B056341: push 0x1f4 */ 5430 RECOMP_ICALL(edi); /* 0x2B056346: call edi */ 5431 RECOMP_FLAGS_IN(); 5432 ecx = eax; /* 0x2B056348: mov ecx, eax */ 5433 RECOMP_ICALL(MEM32(0x2B0B5E2C)); /* 0x2B05634A: call dword ptr [0x2b0b5e2c] */ 5434 RECOMP_FLAGS_IN(); 5435 MEM8(ebp + (-0x14)) = (uint8_t)(LO8(eax)); /* 0x2B056350: mov byte ptr [ebp - 0x14], al */ 5436 edx = MEM32(ebp + (-0x14)); /* 0x2B056353: mov edx, dword ptr [ebp - 0x14] */ 5437 PUSH32(esp, edx); /* 0x2B056356: push edx */ 5438 ecx = esi; /* 0x2B056357: mov ecx, esi */ 5439 RECOMP_ICALL(0x2B0565A0u); /* 0x2B056359: call 0x2b0565a0 */ /* not lifted */ 5440 RECOMP_FLAGS_IN(); 5441 /* test MEM8(ebp + (-0x28)), 0x10u */ /* 0x2B05635E: test byte ptr [ebp - 0x28], 0x10 */ 5442 _flag_a = (uint32_t)(MEM8(ebp + (-0x28))) << 24; _flag_b = (uint32_t)(0x10u) << 24; 5443 _cf = 0; 5444 _flag_k = FK_NARROW(FK_TEST, 24); 5445 eax = MEM32(esi + 0x5C); /* 0x2B056362: mov eax, dword ptr [esi + 0x5c] */ 5446 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056370; /* 0x2B056365: je 0x2b056370 */ 5447 L_2B056367: 5448 MEM8(eax + 0xDE) = (uint8_t)(1); /* 0x2B056367: mov byte ptr [eax + 0xde], 1 */ 5449 goto L_2B056376; /* 0x2B05636E: jmp 0x2b056376 */ 5450 L_2B056370: 5451 MEM8(eax + 0xDE) = (uint8_t)(LO8(ebx)); /* 0x2B056370: mov byte ptr [eax + 0xde], bl */ 5452 L_2B056376: 5453 fp_push(*(float*)&MEM32(esi + 0x50)); /* 0x2B056376: fld dword ptr [esi + 0x50] */ 5454 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B056379: fcomp dword ptr [0x2b0b61b8] */ 5455 fp_pop(); 5456 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B05637F: fnstsw ax */ 5457 /* test HI8(eax), 0x41u */ /* 0x2B056381: test ah, 0x41 */ 5458 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5459 _cf = 0; 5460 _flag_k = FK_NARROW(FK_TEST, 24); 5461 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056542; /* 0x2B056384: je 0x2b056542 */ 5462 L_2B05638A: 5463 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B05638A: mov al, byte ptr [ebp - 0xd] */ 5464 MEM32(esi + 0x50) = 0x3F800000u; /* 0x2B05638D: mov dword ptr [esi + 0x50], 0x3f800000 */ 5465 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(eax)); /* 0x2B056394: mov byte ptr [ebp - 0x44], al */ 5466 MEM32(ebp + (-0x40)) = ebx; /* 0x2B056397: mov dword ptr [ebp - 0x40], ebx */ 5467 MEM32(ebp + (-0x3C)) = ebx; /* 0x2B05639A: mov dword ptr [ebp - 0x3c], ebx */ 5468 MEM32(ebp + (-0x38)) = ebx; /* 0x2B05639D: mov dword ptr [ebp - 0x38], ebx */ 5469 ecx = ebp + (-0x44); /* 0x2B0563A0: lea ecx, [ebp - 0x44] */ 5470 PUSH32(esp, ecx); /* 0x2B0563A3: push ecx */ 5471 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0563A4: mov dword ptr [ebp - 4], ebx */ 5472 RECOMP_ICALL(edi); /* 0x2B0563A7: call edi */ 5473 RECOMP_FLAGS_IN(); 5474 ecx = eax; /* 0x2B0563A9: mov ecx, eax */ 5475 RECOMP_ICALL(MEM32(0x2B0B5E30)); /* 0x2B0563AB: call dword ptr [0x2b0b5e30] */ 5476 RECOMP_FLAGS_IN(); 5477 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0563B1: cmp al, bl */ 5478 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5480 _flag_k = FK_NARROW(FK_CMP, 24); 5481 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0563C2; /* 0x2B0563B3: je 0x2b0563c2 */ 5482 L_2B0563B5: 5483 ecx = MEM32(esi + 0x5C); /* 0x2B0563B5: mov ecx, dword ptr [esi + 0x5c] */ 5484 edx = ebp + (-0x44); /* 0x2B0563B8: lea edx, [ebp - 0x44] */ 5485 PUSH32(esp, edx); /* 0x2B0563BB: push edx */ 5486 RECOMP_ICALL(MEM32(0x2B0B551C)); /* 0x2B0563BC: call dword ptr [0x2b0b551c] */ 5487 RECOMP_FLAGS_IN(); 5488 L_2B0563C2: 5489 /* cmp MEM8(ebp + (-0xD)), LO8(ebx) */ /* 0x2B0563C2: cmp byte ptr [ebp - 0xd], bl */ 5490 _flag_a = (uint32_t)(MEM8(ebp + (-0xD))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5492 _flag_k = FK_NARROW(FK_CMP, 24); 5493 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05651D; /* 0x2B0563C5: je 0x2b05651d */ 5494 L_2B0563CB: 5495 ecx = MEM32(esi + 0x48); /* 0x2B0563CB: mov ecx, dword ptr [esi + 0x48] */ 5496 eax = MEM32(ecx); /* 0x2B0563CE: mov eax, dword ptr [ecx] */ 5497 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x2B0563D0: call dword ptr [eax + 0x14] */ 5498 RECOMP_FLAGS_IN(); 5499 /* test LO8(eax), LO8(eax) */ /* 0x2B0563D3: test al, al */ 5500 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5501 _cf = 0; 5502 _flag_k = FK_NARROW(FK_TEST, 24); 5503 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05651D; /* 0x2B0563D5: je 0x2b05651d */ 5504 L_2B0563DB: 5505 ecx = ebp + (-0x20); /* 0x2B0563DB: lea ecx, [ebp - 0x20] */ 5506 PUSH32(esp, ecx); /* 0x2B0563DE: push ecx */ 5507 edx = ebp + (-0x24); /* 0x2B0563DF: lea edx, [ebp - 0x24] */ 5508 PUSH32(esp, edx); /* 0x2B0563E2: push edx */ 5509 eax = ebp + (-0x9C); /* 0x2B0563E3: lea eax, [ebp - 0x9c] */ 5510 PUSH32(esp, eax); /* 0x2B0563E9: push eax */ 5511 MEM32(ebp + (-0x24)) = ebx; /* 0x2B0563EA: mov dword ptr [ebp - 0x24], ebx */ 5512 MEM32(ebp + (-0x20)) = ebx; /* 0x2B0563ED: mov dword ptr [ebp - 0x20], ebx */ 5513 RECOMP_ICALL(edi); /* 0x2B0563F0: call edi */ 5514 RECOMP_FLAGS_IN(); 5515 ecx = eax; /* 0x2B0563F2: mov ecx, eax */ 5516 RECOMP_ICALL(MEM32(0x2B0B5E34)); /* 0x2B0563F4: call dword ptr [0x2b0b5e34] */ 5517 RECOMP_FLAGS_IN(); 5518 ecx = MEM32(esi + 0x40); /* 0x2B0563FA: mov ecx, dword ptr [esi + 0x40] */ 5519 PUSH32(esp, 1); /* 0x2B0563FD: push 1 */ 5520 PUSH32(esp, ebx); /* 0x2B0563FF: push ebx */ 5521 PUSH32(esp, ebx); /* 0x2B056400: push ebx */ 5522 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B056401: mov byte ptr [ebp - 4], 1 */ 5523 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B056405: call dword ptr [0x2b0b564c] */ 5524 RECOMP_FLAGS_IN(); 5525 ecx = MEM32(ebp + (-0x24)); /* 0x2B05640B: mov ecx, dword ptr [ebp - 0x24] */ 5526 /* cmp ecx, ebx */ /* 0x2B05640E: cmp ecx, ebx */ 5527 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5529 _flag_k = FK_CMP; 5530 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0564D6; /* 0x2B056410: jle 0x2b0564d6 */ 5531 L_2B056416: 5532 edx = MEM32(ebp + (-0x20)); /* 0x2B056416: mov edx, dword ptr [ebp - 0x20] */ 5533 /* cmp edx, ebx */ /* 0x2B056419: cmp edx, ebx */ 5534 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 5535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5536 _flag_k = FK_CMP; 5537 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0564D6; /* 0x2B05641B: jle 0x2b0564d6 */ 5538 L_2B056421: 5539 eax = MEM32(ebp + (-0x98)); /* 0x2B056421: mov eax, dword ptr [ebp - 0x98] */ 5540 /* cmp eax, ebx */ /* 0x2B056427: cmp eax, ebx */ 5541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5543 _flag_k = FK_CMP; 5544 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056430; /* 0x2B056429: jne 0x2b056430 */ 5545 L_2B05642B: 5546 eax = MEM32(0x2B0B513C); /* 0x2B05642B: mov eax, dword ptr [0x2b0b513c] */ 5547 L_2B056430: 5548 PUSH32(esp, edx); /* 0x2B056430: push edx */ 5549 PUSH32(esp, ecx); /* 0x2B056431: push ecx */ 5550 PUSH32(esp, eax); /* 0x2B056432: push eax */ 5551 ecx = ebp + (-0x19C); /* 0x2B056433: lea ecx, [ebp - 0x19c] */ 5552 PUSH32(esp, 0x2B0E861Cu); /* 0x2B056439: push 0x2b0e861c */ 5553 PUSH32(esp, ecx); /* 0x2B05643E: push ecx */ 5554 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B05643F: call dword ptr [0x2b0b51f0] */ 5555 RECOMP_FLAGS_IN(); 5556 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2B056445: mov dl, byte ptr [ebp - 0xd] */ 5557 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5558 ecx = ecx | 0xFFFFFFFFu; /* 0x2B056448: or ecx, 0xffffffff */ 5559 _cf = 0; 5560 _flag_k = FK_TEST; 5561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5563 esp = esp + 0x14u; /* 0x2B05644B: add esp, 0x14 */ 5564 _flag_k = FK_ADD; 5565 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5566 eax = 0; /* 0x2B05644E: xor eax, eax */ 5567 _cf = 0; 5568 _flag_k = FK_TEST; 5569 edi = ebp + (-0x19C); /* 0x2B056450: lea edi, [ebp - 0x19c] */ 5570 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; } /* 0x2B056456: repne scasb al, byte ptr es:[edi] */ 5571 ecx = ~ecx; /* 0x2B056458: not ecx */ 5572 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5573 ecx = ecx - 1; /* 0x2B05645A: dec ecx */ 5574 _flag_k = FK_DEC; 5575 PUSH32(esp, ecx); /* 0x2B05645B: push ecx */ 5576 eax = ebp + (-0x19C); /* 0x2B05645C: lea eax, [ebp - 0x19c] */ 5577 PUSH32(esp, eax); /* 0x2B056462: push eax */ 5578 ecx = ebp + (-0x74); /* 0x2B056463: lea ecx, [ebp - 0x74] */ 5579 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(edx)); /* 0x2B056466: mov byte ptr [ebp - 0x74], dl */ 5580 MEM32(ebp + (-0x70)) = ebx; /* 0x2B056469: mov dword ptr [ebp - 0x70], ebx */ 5581 MEM32(ebp + (-0x6C)) = ebx; /* 0x2B05646C: mov dword ptr [ebp - 0x6c], ebx */ 5582 MEM32(ebp + (-0x68)) = ebx; /* 0x2B05646F: mov dword ptr [ebp - 0x68], ebx */ 5583 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B056472: call dword ptr [0x2b0b5148] */ 5584 RECOMP_FLAGS_IN(); 5585 MEM32(ebp + (-0x64)) = ebx; /* 0x2B056478: mov dword ptr [ebp - 0x64], ebx */ 5586 PUSH32(esp, ebx); /* 0x2B05647B: push ebx */ 5587 PUSH32(esp, ebx); /* 0x2B05647C: push ebx */ 5588 PUSH32(esp, ebx); /* 0x2B05647D: push ebx */ 5589 PUSH32(esp, 1); /* 0x2B05647E: push 1 */ 5590 ecx = ebp + (-0x74); /* 0x2B056480: lea ecx, [ebp - 0x74] */ 5591 PUSH32(esp, ecx); /* 0x2B056483: push ecx */ 5592 ecx = MEM32(esi + 0x44); /* 0x2B056484: mov ecx, dword ptr [esi + 0x44] */ 5593 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B056487: mov byte ptr [ebp - 4], 2 */ 5594 RECOMP_ICALL(MEM32(0x2B0B5878)); /* 0x2B05648B: call dword ptr [0x2b0b5878] */ 5595 RECOMP_FLAGS_IN(); 5596 eax = MEM32(ebp + (-0x64)); /* 0x2B056491: mov eax, dword ptr [ebp - 0x64] */ 5597 /* cmp eax, ebx */ /* 0x2B056494: cmp eax, ebx */ 5598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5600 _flag_k = FK_CMP; 5601 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B056496: mov byte ptr [ebp - 4], 3 */ 5602 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0564C1; /* 0x2B05649A: je 0x2b0564c1 */ 5603 L_2B05649C: 5604 edx = MEM32(eax + 0x2C); /* 0x2B05649C: mov edx, dword ptr [eax + 0x2c] */ 5605 edi = eax; /* 0x2B05649F: mov edi, eax */ 5606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 5607 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5608 eax = eax + 0x2Cu; /* 0x2B0564A1: add eax, 0x2c */ 5609 _flag_k = FK_ADD; 5610 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5611 edx = edx - 1; /* 0x2B0564A4: dec edx */ 5612 _flag_k = FK_DEC; 5613 ecx = edx; /* 0x2B0564A5: mov ecx, edx */ 5614 /* cmp ecx, ebx */ /* 0x2B0564A7: cmp ecx, ebx */ 5615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5617 _flag_k = FK_CMP; 5618 MEM32(eax) = edx; /* 0x2B0564A9: mov dword ptr [eax], edx */ 5619 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0564C1; /* 0x2B0564AB: jne 0x2b0564c1 */ 5620 L_2B0564AD: 5621 /* cmp edi, ebx */ /* 0x2B0564AD: cmp edi, ebx */ 5622 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5624 _flag_k = FK_CMP; 5625 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0564C1; /* 0x2B0564AF: je 0x2b0564c1 */ 5626 L_2B0564B1: 5627 ecx = edi; /* 0x2B0564B1: mov ecx, edi */ 5628 RECOMP_ICALL(0x2B005B40u); /* 0x2B0564B3: call 0x2b005b40 */ /* not lifted */ 5629 RECOMP_FLAGS_IN(); 5630 PUSH32(esp, edi); /* 0x2B0564B8: push edi */ 5631 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0564B9: call 0x2b0ab1ba */ /* not lifted */ 5632 RECOMP_FLAGS_IN(); 5633 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5635 esp = esp + 4; /* 0x2B0564BE: add esp, 4 */ 5636 _flag_k = FK_ADD; 5637 L_2B0564C1: 5638 PUSH32(esp, 1); /* 0x2B0564C1: push 1 */ 5639 ecx = ebp + (-0x74); /* 0x2B0564C3: lea ecx, [ebp - 0x74] */ 5640 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B0564C6: mov byte ptr [ebp - 4], 1 */ 5641 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0564CA: call dword ptr [0x2b0b514c] */ 5642 RECOMP_FLAGS_IN(); 5643 edi = MEM32(0x2B0B5D6C); /* 0x2B0564D0: mov edi, dword ptr [0x2b0b5d6c] */ 5644 L_2B0564D6: 5645 ecx = MEM32(esi + 0x48); /* 0x2B0564D6: mov ecx, dword ptr [esi + 0x48] */ 5646 eax = MEM32(esi + 0x40); /* 0x2B0564D9: mov eax, dword ptr [esi + 0x40] */ 5647 edx = MEM32(ecx); /* 0x2B0564DC: mov edx, dword ptr [ecx] */ 5648 PUSH32(esp, eax); /* 0x2B0564DE: push eax */ 5649 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2B0564DF: call dword ptr [edx + 0x10] */ 5650 RECOMP_FLAGS_IN(); 5651 eax = MEM32(ebp + (-0x98)); /* 0x2B0564E2: mov eax, dword ptr [ebp - 0x98] */ 5652 /* cmp eax, ebx */ /* 0x2B0564E8: cmp eax, ebx */ 5653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5655 _flag_k = FK_CMP; 5656 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0564EA: mov byte ptr [ebp - 4], bl */ 5657 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05650B; /* 0x2B0564ED: je 0x2b05650b */ 5658 L_2B0564EF: 5659 ecx = eax + (-0x1); /* 0x2B0564EF: lea ecx, [eax - 1] */ 5660 SET_LO8(eax, MEM8(ecx)); /* 0x2B0564F2: mov al, byte ptr [ecx] */ 5661 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0564F4: cmp al, bl */ 5662 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5664 _flag_k = FK_NARROW(FK_CMP, 24); 5665 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056502; /* 0x2B0564F6: je 0x2b056502 */ 5666 L_2B0564F8: 5667 /* cmp LO8(eax), 0xFFu */ /* 0x2B0564F8: cmp al, 0xff */ 5668 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 5669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5670 _flag_k = FK_NARROW(FK_CMP, 24); 5671 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056502; /* 0x2B0564FA: je 0x2b056502 */ 5672 L_2B0564FC: 5673 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5674 SET_LO8(eax, LO8(eax) - 1); /* 0x2B0564FC: dec al */ 5675 _flag_k = FK_NARROW(FK_DEC, 24); 5676 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B0564FE: mov byte ptr [ecx], al */ 5677 goto L_2B05650B; /* 0x2B056500: jmp 0x2b05650b */ 5678 L_2B056502: 5679 PUSH32(esp, ecx); /* 0x2B056502: push ecx */ 5680 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B056503: call 0x2b0ab1ba */ /* not lifted */ 5681 RECOMP_FLAGS_IN(); 5682 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5684 esp = esp + 4; /* 0x2B056508: add esp, 4 */ 5685 _flag_k = FK_ADD; 5686 L_2B05650B: 5687 MEM32(ebp + (-0x98)) = ebx; /* 0x2B05650B: mov dword ptr [ebp - 0x98], ebx */ 5688 MEM32(ebp + (-0x94)) = ebx; /* 0x2B056511: mov dword ptr [ebp - 0x94], ebx */ 5689 MEM32(ebp + (-0x90)) = ebx; /* 0x2B056517: mov dword ptr [ebp - 0x90], ebx */ 5690 L_2B05651D: 5691 ecx = MEM32(esi + 0x5C); /* 0x2B05651D: mov ecx, dword ptr [esi + 0x5c] */ 5692 RECOMP_ICALL(MEM32(0x2B0B5520)); /* 0x2B056520: call dword ptr [0x2b0b5520] */ 5693 RECOMP_FLAGS_IN(); 5694 ecx = MEM32(ebp + (-0x40)); /* 0x2B056526: mov ecx, dword ptr [ebp - 0x40] */ 5695 PUSH32(esp, ecx); /* 0x2B056529: push ecx */ 5696 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B05652A: mov dword ptr [ebp - 4], 0xffffffff */ 5697 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B056531: call 0x2b0ab1ba */ /* not lifted */ 5698 RECOMP_FLAGS_IN(); 5699 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5700 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5701 esp = esp + 4; /* 0x2B056536: add esp, 4 */ 5702 _flag_k = FK_ADD; 5703 MEM32(ebp + (-0x40)) = ebx; /* 0x2B056539: mov dword ptr [ebp - 0x40], ebx */ 5704 MEM32(ebp + (-0x3C)) = ebx; /* 0x2B05653C: mov dword ptr [ebp - 0x3c], ebx */ 5705 MEM32(ebp + (-0x38)) = ebx; /* 0x2B05653F: mov dword ptr [ebp - 0x38], ebx */ 5706 L_2B056542: 5707 RECOMP_ICALL(edi); /* 0x2B056542: call edi */ 5708 RECOMP_FLAGS_IN(); 5709 ecx = eax; /* 0x2B056544: mov ecx, eax */ 5710 RECOMP_ICALL(MEM32(0x2B0B5E38)); /* 0x2B056546: call dword ptr [0x2b0b5e38] */ 5711 RECOMP_FLAGS_IN(); 5712 edi = eax; /* 0x2B05654C: mov edi, eax */ 5713 eax = MEM32(esi + 0x54); /* 0x2B05654E: mov eax, dword ptr [esi + 0x54] */ 5714 /* cmp edi, eax */ /* 0x2B056551: cmp edi, eax */ 5715 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5717 _flag_k = FK_CMP; 5718 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05657D; /* 0x2B056553: je 0x2b05657d */ 5719 L_2B056555: 5720 /* cmp eax, 0xFFFFFFFFu */ /* 0x2B056555: cmp eax, -1 */ 5721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5723 _flag_k = FK_CMP; 5724 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056567; /* 0x2B056558: je 0x2b056567 */ 5725 L_2B05655A: 5726 PUSH32(esp, ebx); /* 0x2B05655A: push ebx */ 5727 PUSH32(esp, 1); /* 0x2B05655B: push 1 */ 5728 PUSH32(esp, eax); /* 0x2B05655D: push eax */ 5729 RECOMP_ICALL(MEM32(0x2B0B5524)); /* 0x2B05655E: call dword ptr [0x2b0b5524] */ 5730 RECOMP_FLAGS_IN(); 5731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5733 esp = esp + 0xCu; /* 0x2B056564: add esp, 0xc */ 5734 _flag_k = FK_ADD; 5735 L_2B056567: 5736 /* cmp edi, 0xFFFFFFFFu */ /* 0x2B056567: cmp edi, -1 */ 5737 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 5738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5739 _flag_k = FK_CMP; 5740 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05657A; /* 0x2B05656A: je 0x2b05657a */ 5741 L_2B05656C: 5742 PUSH32(esp, 1); /* 0x2B05656C: push 1 */ 5743 PUSH32(esp, 1); /* 0x2B05656E: push 1 */ 5744 PUSH32(esp, edi); /* 0x2B056570: push edi */ 5745 RECOMP_ICALL(MEM32(0x2B0B5524)); /* 0x2B056571: call dword ptr [0x2b0b5524] */ 5746 RECOMP_FLAGS_IN(); 5747 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5749 esp = esp + 0xCu; /* 0x2B056577: add esp, 0xc */ 5750 _flag_k = FK_ADD; 5751 L_2B05657A: 5752 MEM32(esi + 0x54) = edi; /* 0x2B05657A: mov dword ptr [esi + 0x54], edi */ 5753 L_2B05657D: 5754 ecx = MEM32(esi + 0x5C); /* 0x2B05657D: mov ecx, dword ptr [esi + 0x5c] */ 5755 RECOMP_ICALL(MEM32(0x2B0B5528)); /* 0x2B056580: call dword ptr [0x2b0b5528] */ 5756 RECOMP_FLAGS_IN(); 5757 ecx = MEM32(ebp + (-0xC)); /* 0x2B056586: mov ecx, dword ptr [ebp - 0xc] */ 5758 edi = POP32_VAL(esp); /* 0x2B056589: pop edi */ 5759 esi = POP32_VAL(esp); /* 0x2B05658A: pop esi */ 5760 MEM32(FS_BASE + (0)) = ecx; /* 0x2B05658B: mov dword ptr fs:[0], ecx */ 5761 ebx = POP32_VAL(esp); /* 0x2B056592: pop ebx */ 5762 esp = ebp; /* 0x2B056593: mov esp, ebp */ 5763 ebp = POP32_VAL(esp); /* 0x2B056595: pop ebp */ 5764 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056596: ret */ 5765 L_2B056CD0: 5766 ecx = MEM32(0x2B0EEB14); /* 0x2B056CD0: mov ecx, dword ptr [0x2b0eeb14] */ 5767 RECOMP_BACKEDGE(); 5768 goto L_2B056120; /* 0x2B056CD6: jmp 0x2b056120 */ 5769 { RECOMP_REGS_OUT(); return; } /* end of function */ 5770 RECOMP_REGS_OUT(); 5771 } 5772 5773 void sub_2B056CE0(void) { 5774 int _fpu_cmp = 0; 5775 uint32_t _cf = 0; 5776 int _df = 1; 5777 uint32_t _flag_k = FK_NONE; 5778 uint32_t _flag_a = 0, _flag_b = 0; 5779 uint32_t _itail_tgt = 0; 5780 RECOMP_REGS_LOCALS 5781 RECOMP_ENTER(0x2B056CE0u); 5782 5783 L_2B056CE0: 5784 PUSH32(esp, ebp); /* 0x2B056CE0: push ebp */ 5785 ebp = esp; /* 0x2B056CE1: mov ebp, esp */ 5786 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 5787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5788 esp = esp - 0x28u; /* 0x2B056CE3: sub esp, 0x28 */ 5789 _flag_k = FK_CMP; 5790 eax = MEM32(0x2B0EEB14); /* 0x2B056CE6: mov eax, dword ptr [0x2b0eeb14] */ 5791 PUSH32(esp, esi); /* 0x2B056CEB: push esi */ 5792 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5793 esi = 0; /* 0x2B056CEC: xor esi, esi */ 5794 _cf = 0; 5795 _flag_k = FK_TEST; 5796 /* cmp eax, esi */ /* 0x2B056CEE: cmp eax, esi */ 5797 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5799 _flag_k = FK_CMP; 5800 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056D5F; /* 0x2B056CF0: je 0x2b056d5f */ 5801 L_2B056CF2: 5802 eax = ebp + (-0x8); /* 0x2B056CF2: lea eax, [ebp - 8] */ 5803 PUSH32(esp, eax); /* 0x2B056CF5: push eax */ 5804 MEM32(ebp + (-0x8)) = esi; /* 0x2B056CF6: mov dword ptr [ebp - 8], esi */ 5805 MEM32(ebp + (-0x4)) = esi; /* 0x2B056CF9: mov dword ptr [ebp - 4], esi */ 5806 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056CFC: call dword ptr [0x2b0b53cc] */ 5807 RECOMP_FLAGS_IN(); 5808 ecx = eax; /* 0x2B056D02: mov ecx, eax */ 5809 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B056D04: call dword ptr [0x2b0b53ac] */ 5810 RECOMP_FLAGS_IN(); 5811 ecx = ebp + (-0x1C); /* 0x2B056D0A: lea ecx, [ebp - 0x1c] */ 5812 PUSH32(esp, ecx); /* 0x2B056D0D: push ecx */ 5813 edx = ebp + (-0x28); /* 0x2B056D0E: lea edx, [ebp - 0x28] */ 5814 PUSH32(esp, edx); /* 0x2B056D11: push edx */ 5815 eax = ebp + (-0x10); /* 0x2B056D12: lea eax, [ebp - 0x10] */ 5816 PUSH32(esp, eax); /* 0x2B056D15: push eax */ 5817 ecx = ebp + (-0x8); /* 0x2B056D16: lea ecx, [ebp - 8] */ 5818 PUSH32(esp, ecx); /* 0x2B056D19: push ecx */ 5819 MEM32(ebp + (-0x10)) = esi; /* 0x2B056D1A: mov dword ptr [ebp - 0x10], esi */ 5820 MEM32(ebp + (-0xC)) = esi; /* 0x2B056D1D: mov dword ptr [ebp - 0xc], esi */ 5821 MEM32(ebp + (-0x28)) = esi; /* 0x2B056D20: mov dword ptr [ebp - 0x28], esi */ 5822 MEM32(ebp + (-0x24)) = esi; /* 0x2B056D23: mov dword ptr [ebp - 0x24], esi */ 5823 MEM32(ebp + (-0x20)) = esi; /* 0x2B056D26: mov dword ptr [ebp - 0x20], esi */ 5824 MEM32(ebp + (-0x1C)) = esi; /* 0x2B056D29: mov dword ptr [ebp - 0x1c], esi */ 5825 MEM32(ebp + (-0x18)) = esi; /* 0x2B056D2C: mov dword ptr [ebp - 0x18], esi */ 5826 MEM32(ebp + (-0x14)) = esi; /* 0x2B056D2F: mov dword ptr [ebp - 0x14], esi */ 5827 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B056D32: call dword ptr [0x2b0b5d6c] */ 5828 RECOMP_FLAGS_IN(); 5829 ecx = eax; /* 0x2B056D38: mov ecx, eax */ 5830 RECOMP_ICALL(MEM32(0x2B0B5E24)); /* 0x2B056D3A: call dword ptr [0x2b0b5e24] */ 5831 RECOMP_FLAGS_IN(); 5832 /* test LO8(eax), LO8(eax) */ /* 0x2B056D40: test al, al */ 5833 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5834 _cf = 0; 5835 _flag_k = FK_NARROW(FK_TEST, 24); 5836 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056D5F; /* 0x2B056D42: je 0x2b056d5f */ 5837 L_2B056D44: 5838 edx = MEM32(ebp + (-0xC)); /* 0x2B056D44: mov edx, dword ptr [ebp - 0xc] */ 5839 PUSH32(esp, edx); /* 0x2B056D47: push edx */ 5840 edx = MEM32(0x2B0EEB14); /* 0x2B056D48: mov edx, dword ptr [0x2b0eeb14] */ 5841 eax = ebp + (-0x1C); /* 0x2B056D4E: lea eax, [ebp - 0x1c] */ 5842 PUSH32(esp, eax); /* 0x2B056D51: push eax */ 5843 ecx = ebp + (-0x8); /* 0x2B056D52: lea ecx, [ebp - 8] */ 5844 PUSH32(esp, ecx); /* 0x2B056D55: push ecx */ 5845 ecx = MEM32(edx + 0x5C); /* 0x2B056D56: mov ecx, dword ptr [edx + 0x5c] */ 5846 RECOMP_ICALL(MEM32(0x2B0B54F8)); /* 0x2B056D59: call dword ptr [0x2b0b54f8] */ 5847 RECOMP_FLAGS_IN(); 5848 L_2B056D5F: 5849 esi = POP32_VAL(esp); /* 0x2B056D5F: pop esi */ 5850 esp = ebp; /* 0x2B056D60: mov esp, ebp */ 5851 ebp = POP32_VAL(esp); /* 0x2B056D62: pop ebp */ 5852 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056D63: ret */ 5853 RECOMP_REGS_OUT(); 5854 } 5855 5856 void sub_2B056D70(void) { 5857 int _fpu_cmp = 0; 5858 uint32_t _cf = 0; 5859 int _df = 1; 5860 uint32_t _flag_k = FK_NONE; 5861 uint32_t _flag_a = 0, _flag_b = 0; 5862 uint32_t _itail_tgt = 0; 5863 RECOMP_REGS_LOCALS 5864 RECOMP_ENTER(0x2B056D70u); 5865 5866 L_2B056D70: 5867 eax = MEM32(0x2B0EEB14); /* 0x2B056D70: mov eax, dword ptr [0x2b0eeb14] */ 5868 L_2B056D75: 5869 ecx = MEM32(eax + 0x5C); /* 0x2B056D75: mov ecx, dword ptr [eax + 0x5c] */ 5870 L_2B056D78: 5871 { _itail_tgt = (uint32_t)(MEM32(0x2B0B54F4)); goto _ljump; } 5872 { RECOMP_REGS_OUT(); return; } /* end of function */ 5873 _ljump: 5874 switch (_itail_tgt) { 5875 case 0x2B056D70u: goto L_2B056D70; 5876 case 0x2B056D75u: goto L_2B056D75; 5877 case 0x2B056D78u: goto L_2B056D78; 5878 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5879 } 5880 RECOMP_REGS_OUT(); 5881 } 5882 5883 void sub_2B056D80(void) { 5884 int _fpu_cmp = 0; 5885 uint32_t _cf = 0; 5886 int _df = 1; 5887 uint32_t _flag_k = FK_NONE; 5888 uint32_t _flag_a = 0, _flag_b = 0; 5889 uint32_t _itail_tgt = 0; 5890 RECOMP_REGS_LOCALS 5891 RECOMP_ENTER(0x2B056D80u); 5892 5893 L_2B056D80: 5894 PUSH32(esp, ebp); /* 0x2B056D80: push ebp */ 5895 ebp = esp; /* 0x2B056D81: mov ebp, esp */ 5896 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5898 esp = esp - 8; /* 0x2B056D83: sub esp, 8 */ 5899 _flag_k = FK_CMP; 5900 ecx = MEM32(0x2B0EEB14); /* 0x2B056D86: mov ecx, dword ptr [0x2b0eeb14] */ 5901 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5902 eax = 0; /* 0x2B056D8C: xor eax, eax */ 5903 _cf = 0; 5904 _flag_k = FK_TEST; 5905 /* cmp ecx, eax */ /* 0x2B056D8E: cmp ecx, eax */ 5906 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5908 _flag_k = FK_CMP; 5909 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056DBD; /* 0x2B056D90: je 0x2b056dbd */ 5910 L_2B056D92: 5911 MEM32(ebp + (-0x8)) = eax; /* 0x2B056D92: mov dword ptr [ebp - 8], eax */ 5912 MEM32(ebp + (-0x4)) = eax; /* 0x2B056D95: mov dword ptr [ebp - 4], eax */ 5913 eax = ebp + (-0x8); /* 0x2B056D98: lea eax, [ebp - 8] */ 5914 PUSH32(esp, eax); /* 0x2B056D9B: push eax */ 5915 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056D9C: call dword ptr [0x2b0b53cc] */ 5916 RECOMP_FLAGS_IN(); 5917 ecx = eax; /* 0x2B056DA2: mov ecx, eax */ 5918 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B056DA4: call dword ptr [0x2b0b53ac] */ 5919 RECOMP_FLAGS_IN(); 5920 edx = MEM32(0x2B0EEB14); /* 0x2B056DAA: mov edx, dword ptr [0x2b0eeb14] */ 5921 ecx = ebp + (-0x8); /* 0x2B056DB0: lea ecx, [ebp - 8] */ 5922 PUSH32(esp, ecx); /* 0x2B056DB3: push ecx */ 5923 ecx = MEM32(edx + 0x5C); /* 0x2B056DB4: mov ecx, dword ptr [edx + 0x5c] */ 5924 RECOMP_ICALL(MEM32(0x2B0B54F0)); /* 0x2B056DB7: call dword ptr [0x2b0b54f0] */ 5925 RECOMP_FLAGS_IN(); 5926 L_2B056DBD: 5927 esp = ebp; /* 0x2B056DBD: mov esp, ebp */ 5928 ebp = POP32_VAL(esp); /* 0x2B056DBF: pop ebp */ 5929 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056DC0: ret */ 5930 RECOMP_REGS_OUT(); 5931 } 5932 5933 void sub_2B056DD0(void) { 5934 int _fpu_cmp = 0; 5935 uint32_t _cf = 0; 5936 int _df = 1; 5937 uint32_t _flag_k = FK_NONE; 5938 uint32_t _flag_a = 0, _flag_b = 0; 5939 uint32_t _itail_tgt = 0; 5940 RECOMP_REGS_LOCALS 5941 RECOMP_ENTER(0x2B056DD0u); 5942 5943 L_2B056DD0: 5944 PUSH32(esp, ebp); /* 0x2B056DD0: push ebp */ 5945 ebp = esp; /* 0x2B056DD1: mov ebp, esp */ 5946 PUSH32(esp, ecx); /* 0x2B056DD3: push ecx */ 5947 eax = MEM32(0x2B0EEB14); /* 0x2B056DD4: mov eax, dword ptr [0x2b0eeb14] */ 5948 /* test eax, eax */ /* 0x2B056DD9: test eax, eax */ 5949 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5950 _cf = 0; 5951 _flag_k = FK_TEST; 5952 if (TEST_Z(_flag_a, _flag_b)) goto L_2B056DFE; /* 0x2B056DDB: je 0x2b056dfe */ 5953 L_2B056DDD: 5954 eax = ebp + (-0x4); /* 0x2B056DDD: lea eax, [ebp - 4] */ 5955 PUSH32(esp, eax); /* 0x2B056DE0: push eax */ 5956 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056DE1: call dword ptr [0x2b0b53cc] */ 5957 RECOMP_FLAGS_IN(); 5958 ecx = eax; /* 0x2B056DE7: mov ecx, eax */ 5959 RECOMP_ICALL(MEM32(0x2B0B53A8)); /* 0x2B056DE9: call dword ptr [0x2b0b53a8] */ 5960 RECOMP_FLAGS_IN(); 5961 ecx = MEM32(ebp + (-0x4)); /* 0x2B056DEF: mov ecx, dword ptr [ebp - 4] */ 5962 PUSH32(esp, ecx); /* 0x2B056DF2: push ecx */ 5963 ecx = MEM32(0x2B0EEB14); /* 0x2B056DF3: mov ecx, dword ptr [0x2b0eeb14] */ 5964 RECOMP_ICALL(0x2B056090u); /* 0x2B056DF9: call 0x2b056090 */ /* not lifted */ 5965 RECOMP_FLAGS_IN(); 5966 L_2B056DFE: 5967 esp = ebp; /* 0x2B056DFE: mov esp, ebp */ 5968 ebp = POP32_VAL(esp); /* 0x2B056E00: pop ebp */ 5969 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056E01: ret */ 5970 RECOMP_REGS_OUT(); 5971 } 5972 5973 void sub_2B056E10(void) { 5974 int _fpu_cmp = 0; 5975 uint32_t _cf = 0; 5976 int _df = 1; 5977 uint32_t _flag_k = FK_NONE; 5978 uint32_t _flag_a = 0, _flag_b = 0; 5979 uint32_t _itail_tgt = 0; 5980 RECOMP_REGS_LOCALS 5981 RECOMP_ENTER(0x2B056E10u); 5982 5983 L_2B056E10: 5984 PUSH32(esp, ebp); /* 0x2B056E10: push ebp */ 5985 ebp = esp; /* 0x2B056E11: mov ebp, esp */ 5986 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5988 esp = esp - 0x10u; /* 0x2B056E13: sub esp, 0x10 */ 5989 _flag_k = FK_CMP; 5990 eax = MEM32(0x2B0EEB14); /* 0x2B056E16: mov eax, dword ptr [0x2b0eeb14] */ 5991 PUSH32(esp, esi); /* 0x2B056E1B: push esi */ 5992 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5993 esi = 0; /* 0x2B056E1C: xor esi, esi */ 5994 _cf = 0; 5995 _flag_k = FK_TEST; 5996 /* cmp eax, esi */ /* 0x2B056E1E: cmp eax, esi */ 5997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5999 _flag_k = FK_CMP; 6000 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056E7C; /* 0x2B056E20: je 0x2b056e7c */ 6001 L_2B056E22: 6002 eax = ebp + (-0x8); /* 0x2B056E22: lea eax, [ebp - 8] */ 6003 PUSH32(esp, eax); /* 0x2B056E25: push eax */ 6004 MEM32(ebp + (-0x8)) = esi; /* 0x2B056E26: mov dword ptr [ebp - 8], esi */ 6005 MEM32(ebp + (-0x4)) = esi; /* 0x2B056E29: mov dword ptr [ebp - 4], esi */ 6006 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056E2C: call dword ptr [0x2b0b53cc] */ 6007 RECOMP_FLAGS_IN(); 6008 ecx = eax; /* 0x2B056E32: mov ecx, eax */ 6009 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B056E34: call dword ptr [0x2b0b53ac] */ 6010 RECOMP_FLAGS_IN(); 6011 ecx = MEM32(0x2B0EEB14); /* 0x2B056E3A: mov ecx, dword ptr [0x2b0eeb14] */ 6012 eax = ecx + 0x64; /* 0x2B056E40: lea eax, [ecx + 0x64] */ 6013 edx = ebp + (-0x8); /* 0x2B056E43: lea edx, [ebp - 8] */ 6014 /* cmp edx, eax */ /* 0x2B056E46: cmp edx, eax */ 6015 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6017 _flag_k = FK_CMP; 6018 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056E51; /* 0x2B056E48: je 0x2b056e51 */ 6019 L_2B056E4A: 6020 edx = MEM32(eax); /* 0x2B056E4A: mov edx, dword ptr [eax] */ 6021 eax = MEM32(eax + 0x4); /* 0x2B056E4C: mov eax, dword ptr [eax + 4] */ 6022 goto L_2B056E57; /* 0x2B056E4F: jmp 0x2b056e57 */ 6023 L_2B056E51: 6024 eax = MEM32(ebp + (-0x4)); /* 0x2B056E51: mov eax, dword ptr [ebp - 4] */ 6025 edx = MEM32(ebp + (-0x8)); /* 0x2B056E54: mov edx, dword ptr [ebp - 8] */ 6026 L_2B056E57: 6027 /* cmp edx, esi */ /* 0x2B056E57: cmp edx, esi */ 6028 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 6029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6030 _flag_k = FK_CMP; 6031 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056E6D; /* 0x2B056E59: jne 0x2b056e6d */ 6032 L_2B056E5B: 6033 /* cmp eax, esi */ /* 0x2B056E5B: cmp eax, esi */ 6034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6036 _flag_k = FK_CMP; 6037 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056E6D; /* 0x2B056E5D: jne 0x2b056e6d */ 6038 L_2B056E5F: 6039 eax = ebp + (-0x8); /* 0x2B056E5F: lea eax, [ebp - 8] */ 6040 PUSH32(esp, eax); /* 0x2B056E62: push eax */ 6041 RECOMP_ICALL(0x2B056760u); /* 0x2B056E63: call 0x2b056760 */ /* not lifted */ 6042 RECOMP_FLAGS_IN(); 6043 esi = POP32_VAL(esp); /* 0x2B056E68: pop esi */ 6044 esp = ebp; /* 0x2B056E69: mov esp, ebp */ 6045 ebp = POP32_VAL(esp); /* 0x2B056E6B: pop ebp */ 6046 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056E6C: ret */ 6047 L_2B056E6D: 6048 edx = ebp + (-0x10); /* 0x2B056E6D: lea edx, [ebp - 0x10] */ 6049 PUSH32(esp, edx); /* 0x2B056E70: push edx */ 6050 MEM32(ebp + (-0x10)) = esi; /* 0x2B056E71: mov dword ptr [ebp - 0x10], esi */ 6051 MEM32(ebp + (-0xC)) = esi; /* 0x2B056E74: mov dword ptr [ebp - 0xc], esi */ 6052 RECOMP_ICALL(0x2B056760u); /* 0x2B056E77: call 0x2b056760 */ /* not lifted */ 6053 RECOMP_FLAGS_IN(); 6054 L_2B056E7C: 6055 esi = POP32_VAL(esp); /* 0x2B056E7C: pop esi */ 6056 esp = ebp; /* 0x2B056E7D: mov esp, ebp */ 6057 ebp = POP32_VAL(esp); /* 0x2B056E7F: pop ebp */ 6058 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056E80: ret */ 6059 RECOMP_REGS_OUT(); 6060 } 6061 6062 void sub_2B056E90(void) { 6063 int _fpu_cmp = 0; 6064 uint32_t _cf = 0; 6065 int _df = 1; 6066 uint32_t _flag_k = FK_NONE; 6067 uint32_t _flag_a = 0, _flag_b = 0; 6068 uint32_t _itail_tgt = 0; 6069 RECOMP_REGS_LOCALS 6070 RECOMP_ENTER(0x2B056E90u); 6071 6072 L_2B056E90: 6073 PUSH32(esp, ebp); /* 0x2B056E90: push ebp */ 6074 ebp = esp; /* 0x2B056E91: mov ebp, esp */ 6075 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6077 esp = esp - 0x10u; /* 0x2B056E93: sub esp, 0x10 */ 6078 _flag_k = FK_CMP; 6079 eax = MEM32(0x2B0EEB14); /* 0x2B056E96: mov eax, dword ptr [0x2b0eeb14] */ 6080 PUSH32(esp, esi); /* 0x2B056E9B: push esi */ 6081 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6082 esi = 0; /* 0x2B056E9C: xor esi, esi */ 6083 _cf = 0; 6084 _flag_k = FK_TEST; 6085 /* cmp eax, esi */ /* 0x2B056E9E: cmp eax, esi */ 6086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6088 _flag_k = FK_CMP; 6089 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056EF0; /* 0x2B056EA0: je 0x2b056ef0 */ 6090 L_2B056EA2: 6091 eax = ebp + (-0x8); /* 0x2B056EA2: lea eax, [ebp - 8] */ 6092 PUSH32(esp, eax); /* 0x2B056EA5: push eax */ 6093 MEM32(ebp + (-0x8)) = esi; /* 0x2B056EA6: mov dword ptr [ebp - 8], esi */ 6094 MEM32(ebp + (-0x4)) = esi; /* 0x2B056EA9: mov dword ptr [ebp - 4], esi */ 6095 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056EAC: call dword ptr [0x2b0b53cc] */ 6096 RECOMP_FLAGS_IN(); 6097 ecx = eax; /* 0x2B056EB2: mov ecx, eax */ 6098 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B056EB4: call dword ptr [0x2b0b53ac] */ 6099 RECOMP_FLAGS_IN(); 6100 ecx = MEM32(0x2B0EEB14); /* 0x2B056EBA: mov ecx, dword ptr [0x2b0eeb14] */ 6101 eax = ecx + 0x64; /* 0x2B056EC0: lea eax, [ecx + 0x64] */ 6102 edx = ebp + (-0x8); /* 0x2B056EC3: lea edx, [ebp - 8] */ 6103 /* cmp edx, eax */ /* 0x2B056EC6: cmp edx, eax */ 6104 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6106 _flag_k = FK_CMP; 6107 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056ED1; /* 0x2B056EC8: je 0x2b056ed1 */ 6108 L_2B056ECA: 6109 edx = MEM32(eax); /* 0x2B056ECA: mov edx, dword ptr [eax] */ 6110 eax = MEM32(eax + 0x4); /* 0x2B056ECC: mov eax, dword ptr [eax + 4] */ 6111 goto L_2B056ED7; /* 0x2B056ECF: jmp 0x2b056ed7 */ 6112 L_2B056ED1: 6113 eax = MEM32(ebp + (-0x4)); /* 0x2B056ED1: mov eax, dword ptr [ebp - 4] */ 6114 edx = MEM32(ebp + (-0x8)); /* 0x2B056ED4: mov edx, dword ptr [ebp - 8] */ 6115 L_2B056ED7: 6116 /* cmp MEM32(ebp + (-0x4)), eax */ /* 0x2B056ED7: cmp dword ptr [ebp - 4], eax */ 6117 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(eax); 6118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6119 _flag_k = FK_CMP; 6120 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056EF0; /* 0x2B056EDA: jne 0x2b056ef0 */ 6121 L_2B056EDC: 6122 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2B056EDC: cmp dword ptr [ebp - 8], edx */ 6123 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 6124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6125 _flag_k = FK_CMP; 6126 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056EF0; /* 0x2B056EDF: jne 0x2b056ef0 */ 6127 L_2B056EE1: 6128 eax = ebp + (-0x10); /* 0x2B056EE1: lea eax, [ebp - 0x10] */ 6129 PUSH32(esp, eax); /* 0x2B056EE4: push eax */ 6130 MEM32(ebp + (-0x10)) = esi; /* 0x2B056EE5: mov dword ptr [ebp - 0x10], esi */ 6131 MEM32(ebp + (-0xC)) = esi; /* 0x2B056EE8: mov dword ptr [ebp - 0xc], esi */ 6132 RECOMP_ICALL(0x2B056760u); /* 0x2B056EEB: call 0x2b056760 */ /* not lifted */ 6133 RECOMP_FLAGS_IN(); 6134 L_2B056EF0: 6135 esi = POP32_VAL(esp); /* 0x2B056EF0: pop esi */ 6136 esp = ebp; /* 0x2B056EF1: mov esp, ebp */ 6137 ebp = POP32_VAL(esp); /* 0x2B056EF3: pop ebp */ 6138 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056EF4: ret */ 6139 RECOMP_REGS_OUT(); 6140 } 6141 6142 void sub_2B056F00(void) { 6143 int _fpu_cmp = 0; 6144 uint32_t _cf = 0; 6145 int _df = 1; 6146 uint32_t _flag_k = FK_NONE; 6147 uint32_t _flag_a = 0, _flag_b = 0; 6148 uint32_t _itail_tgt = 0; 6149 RECOMP_REGS_LOCALS 6150 RECOMP_ENTER(0x2B056F00u); 6151 6152 L_2B056F00: 6153 PUSH32(esp, ebp); /* 0x2B056F00: push ebp */ 6154 ebp = esp; /* 0x2B056F01: mov ebp, esp */ 6155 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6157 esp = esp - 0x10u; /* 0x2B056F03: sub esp, 0x10 */ 6158 _flag_k = FK_CMP; 6159 ecx = MEM32(0x2B0EEB14); /* 0x2B056F06: mov ecx, dword ptr [0x2b0eeb14] */ 6160 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6161 eax = 0; /* 0x2B056F0C: xor eax, eax */ 6162 _cf = 0; 6163 _flag_k = FK_TEST; 6164 /* cmp ecx, eax */ /* 0x2B056F0E: cmp ecx, eax */ 6165 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6167 _flag_k = FK_CMP; 6168 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056F64; /* 0x2B056F10: je 0x2b056f64 */ 6169 L_2B056F12: 6170 MEM32(ebp + (-0x8)) = eax; /* 0x2B056F12: mov dword ptr [ebp - 8], eax */ 6171 MEM32(ebp + (-0x4)) = eax; /* 0x2B056F15: mov dword ptr [ebp - 4], eax */ 6172 MEM32(ebp + (-0x10)) = eax; /* 0x2B056F18: mov dword ptr [ebp - 0x10], eax */ 6173 MEM32(ebp + (-0xC)) = eax; /* 0x2B056F1B: mov dword ptr [ebp - 0xc], eax */ 6174 eax = ebp + (-0x10); /* 0x2B056F1E: lea eax, [ebp - 0x10] */ 6175 PUSH32(esp, eax); /* 0x2B056F21: push eax */ 6176 ecx = ebp + (-0x8); /* 0x2B056F22: lea ecx, [ebp - 8] */ 6177 PUSH32(esp, ecx); /* 0x2B056F25: push ecx */ 6178 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056F26: call dword ptr [0x2b0b53cc] */ 6179 RECOMP_FLAGS_IN(); 6180 ecx = eax; /* 0x2B056F2C: mov ecx, eax */ 6181 RECOMP_ICALL(MEM32(0x2B0B5364)); /* 0x2B056F2E: call dword ptr [0x2b0b5364] */ 6182 RECOMP_FLAGS_IN(); 6183 ecx = MEM32(0x2B0EEB14); /* 0x2B056F34: mov ecx, dword ptr [0x2b0eeb14] */ 6184 eax = ecx + 0x64; /* 0x2B056F3A: lea eax, [ecx + 0x64] */ 6185 edx = ebp + (-0x10); /* 0x2B056F3D: lea edx, [ebp - 0x10] */ 6186 /* cmp edx, eax */ /* 0x2B056F40: cmp edx, eax */ 6187 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6189 _flag_k = FK_CMP; 6190 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B056F4B; /* 0x2B056F42: je 0x2b056f4b */ 6191 L_2B056F44: 6192 edx = MEM32(eax); /* 0x2B056F44: mov edx, dword ptr [eax] */ 6193 eax = MEM32(eax + 0x4); /* 0x2B056F46: mov eax, dword ptr [eax + 4] */ 6194 goto L_2B056F51; /* 0x2B056F49: jmp 0x2b056f51 */ 6195 L_2B056F4B: 6196 eax = MEM32(ebp + (-0xC)); /* 0x2B056F4B: mov eax, dword ptr [ebp - 0xc] */ 6197 edx = MEM32(ebp + (-0x10)); /* 0x2B056F4E: mov edx, dword ptr [ebp - 0x10] */ 6198 L_2B056F51: 6199 /* cmp MEM32(ebp + (-0x4)), eax */ /* 0x2B056F51: cmp dword ptr [ebp - 4], eax */ 6200 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(eax); 6201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6202 _flag_k = FK_CMP; 6203 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056F64; /* 0x2B056F54: jne 0x2b056f64 */ 6204 L_2B056F56: 6205 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2B056F56: cmp dword ptr [ebp - 8], edx */ 6206 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 6207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6208 _flag_k = FK_CMP; 6209 if (CMP_NE(_flag_a, _flag_b)) goto L_2B056F64; /* 0x2B056F59: jne 0x2b056f64 */ 6210 L_2B056F5B: 6211 eax = ebp + (-0x10); /* 0x2B056F5B: lea eax, [ebp - 0x10] */ 6212 PUSH32(esp, eax); /* 0x2B056F5E: push eax */ 6213 RECOMP_ICALL(0x2B056760u); /* 0x2B056F5F: call 0x2b056760 */ /* not lifted */ 6214 RECOMP_FLAGS_IN(); 6215 L_2B056F64: 6216 esp = ebp; /* 0x2B056F64: mov esp, ebp */ 6217 ebp = POP32_VAL(esp); /* 0x2B056F66: pop ebp */ 6218 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056F67: ret */ 6219 RECOMP_REGS_OUT(); 6220 } 6221 6222 void sub_2B056F70(void) { 6223 int _fpu_cmp = 0; 6224 uint32_t _cf = 0; 6225 int _df = 1; 6226 uint32_t _flag_k = FK_NONE; 6227 uint32_t _flag_a = 0, _flag_b = 0; 6228 uint32_t _itail_tgt = 0; 6229 RECOMP_REGS_LOCALS 6230 RECOMP_ENTER(0x2B056F70u); 6231 6232 L_2B056F70: 6233 PUSH32(esp, ebp); /* 0x2B056F70: push ebp */ 6234 ebp = esp; /* 0x2B056F71: mov ebp, esp */ 6235 PUSH32(esp, ecx); /* 0x2B056F73: push ecx */ 6236 eax = ebp + (-0x4); /* 0x2B056F74: lea eax, [ebp - 4] */ 6237 PUSH32(esp, eax); /* 0x2B056F77: push eax */ 6238 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B056F78: call dword ptr [0x2b0b53cc] */ 6239 RECOMP_FLAGS_IN(); 6240 ecx = eax; /* 0x2B056F7E: mov ecx, eax */ 6241 RECOMP_ICALL(MEM32(0x2B0B5370)); /* 0x2B056F80: call dword ptr [0x2b0b5370] */ 6242 RECOMP_FLAGS_IN(); 6243 ecx = MEM32(ebp + (-0x4)); /* 0x2B056F86: mov ecx, dword ptr [ebp - 4] */ 6244 PUSH32(esp, ecx); /* 0x2B056F89: push ecx */ 6245 ecx = MEM32(0x2B0EEB14); /* 0x2B056F8A: mov ecx, dword ptr [0x2b0eeb14] */ 6246 RECOMP_ICALL(0x2B056A90u); /* 0x2B056F90: call 0x2b056a90 */ /* not lifted */ 6247 RECOMP_FLAGS_IN(); 6248 esp = ebp; /* 0x2B056F95: mov esp, ebp */ 6249 ebp = POP32_VAL(esp); /* 0x2B056F97: pop ebp */ 6250 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B056F98: ret */ 6251 RECOMP_REGS_OUT(); 6252 } 6253 6254 void sub_2B056FA0(void) { 6255 int _fpu_cmp = 0; 6256 uint32_t _cf = 0; 6257 int _df = 1; 6258 uint32_t _flag_k = FK_NONE; 6259 uint32_t _flag_a = 0, _flag_b = 0; 6260 uint32_t _itail_tgt = 0; 6261 RECOMP_REGS_LOCALS 6262 RECOMP_ENTER(0x2B056FA0u); 6263 6264 L_2B056FA0: 6265 PUSH32(esp, ebp); /* 0x2B056FA0: push ebp */ 6266 ebp = esp; /* 0x2B056FA1: mov ebp, esp */ 6267 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B056FA3: push -1 */ 6268 PUSH32(esp, 0x2B0AFD04u); /* 0x2B056FA5: push 0x2b0afd04 */ 6269 eax = MEM32(FS_BASE + (0)); /* 0x2B056FAA: mov eax, dword ptr fs:[0] */ 6270 PUSH32(esp, eax); /* 0x2B056FB0: push eax */ 6271 MEM32(FS_BASE + (0)) = esp; /* 0x2B056FB1: mov dword ptr fs:[0], esp */ 6272 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 6273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6274 esp = esp - 0x28u; /* 0x2B056FB8: sub esp, 0x28 */ 6275 _flag_k = FK_CMP; 6276 PUSH32(esp, ebx); /* 0x2B056FBB: push ebx */ 6277 PUSH32(esp, esi); /* 0x2B056FBC: push esi */ 6278 esi = ecx; /* 0x2B056FBD: mov esi, ecx */ 6279 PUSH32(esp, edi); /* 0x2B056FBF: push edi */ 6280 MEM32(ebp + (-0x10)) = esi; /* 0x2B056FC0: mov dword ptr [ebp - 0x10], esi */ 6281 RECOMP_ICALL(0x2B03A220u); /* 0x2B056FC3: call 0x2b03a220 */ /* not lifted */ 6282 RECOMP_FLAGS_IN(); 6283 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6284 ebx = 0; /* 0x2B056FC8: xor ebx, ebx */ 6285 _cf = 0; 6286 _flag_k = FK_TEST; 6287 MEM32(esi) = 0x2B0B6B44u; /* 0x2B056FCA: mov dword ptr [esi], 0x2b0b6b44 */ 6288 PUSH32(esp, 0x38u); /* 0x2B056FD0: push 0x38 */ 6289 MEM32(ebp + (-0x4)) = ebx; /* 0x2B056FD2: mov dword ptr [ebp - 4], ebx */ 6290 MEM32(0x2B0EEB18) = esi; /* 0x2B056FD5: mov dword ptr [0x2b0eeb18], esi */ 6291 MEM32(ebp + (-0x24)) = ebx; /* 0x2B056FDB: mov dword ptr [ebp - 0x24], ebx */ 6292 MEM32(ebp + (-0x20)) = ebx; /* 0x2B056FDE: mov dword ptr [ebp - 0x20], ebx */ 6293 RECOMP_ICALL(0x2B0AB212u); /* 0x2B056FE1: call 0x2b0ab212 */ /* not lifted */ 6294 RECOMP_FLAGS_IN(); 6295 edi = eax; /* 0x2B056FE6: mov edi, eax */ 6296 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6298 esp = esp + 4; /* 0x2B056FE8: add esp, 4 */ 6299 _flag_k = FK_ADD; 6300 MEM32(ebp + (-0x14)) = edi; /* 0x2B056FEB: mov dword ptr [ebp - 0x14], edi */ 6301 /* cmp edi, ebx */ /* 0x2B056FEE: cmp edi, ebx */ 6302 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6304 _flag_k = FK_CMP; 6305 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B056FF0: mov byte ptr [ebp - 4], 1 */ 6306 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05701C; /* 0x2B056FF4: je 0x2b05701c */ 6307 L_2B056FF6: 6308 eax = MEM32(0x2B0EE9DC); /* 0x2B056FF6: mov eax, dword ptr [0x2b0ee9dc] */ 6309 PUSH32(esp, eax); /* 0x2B056FFB: push eax */ 6310 PUSH32(esp, 0xFAEu); /* 0x2B056FFC: push 0xfae */ 6311 PUSH32(esp, 0x159u); /* 0x2B057001: push 0x159 */ 6312 ecx = ebp + (-0x24); /* 0x2B057006: lea ecx, [ebp - 0x24] */ 6313 PUSH32(esp, ecx); /* 0x2B057009: push ecx */ 6314 ecx = edi; /* 0x2B05700A: mov ecx, edi */ 6315 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B05700C: call dword ptr [0x2b0b5948] */ 6316 RECOMP_FLAGS_IN(); 6317 MEM32(edi) = 0x2B0B68F4u; /* 0x2B057012: mov dword ptr [edi], 0x2b0b68f4 */ 6318 ecx = edi; /* 0x2B057018: mov ecx, edi */ 6319 goto L_2B05701E; /* 0x2B05701A: jmp 0x2b05701e */ 6320 L_2B05701C: 6321 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6322 ecx = 0; /* 0x2B05701C: xor ecx, ecx */ 6323 _cf = 0; 6324 _flag_k = FK_TEST; 6325 L_2B05701E: 6326 edx = ebp + (-0x1C); /* 0x2B05701E: lea edx, [ebp - 0x1c] */ 6327 PUSH32(esp, edx); /* 0x2B057021: push edx */ 6328 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B057022: mov byte ptr [ebp - 4], bl */ 6329 MEM32(esi + 0x2C) = ecx; /* 0x2B057025: mov dword ptr [esi + 0x2c], ecx */ 6330 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B057028: mov dword ptr [ebp - 0x1c], ebx */ 6331 MEM32(ebp + (-0x18)) = ebx; /* 0x2B05702B: mov dword ptr [ebp - 0x18], ebx */ 6332 RECOMP_ICALL(MEM32(0x2B0B594C)); /* 0x2B05702E: call dword ptr [0x2b0b594c] */ 6333 RECOMP_FLAGS_IN(); 6334 /* cmp MEM8(esi + 0x1C), LO8(ebx) */ /* 0x2B057034: cmp byte ptr [esi + 0x1c], bl */ 6335 _flag_a = (uint32_t)(MEM8(esi + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6337 _flag_k = FK_NARROW(FK_CMP, 24); 6338 eax = MEM32(ebp + (-0x18)); /* 0x2B057037: mov eax, dword ptr [ebp - 0x18] */ 6339 MEM32(esi + 0x20) = eax; /* 0x2B05703A: mov dword ptr [esi + 0x20], eax */ 6340 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B057047; /* 0x2B05703D: je 0x2b057047 */ 6341 L_2B05703F: 6342 /* cmp MEM8(esi + 0xC), LO8(ebx) */ /* 0x2B05703F: cmp byte ptr [esi + 0xc], bl */ 6343 _flag_a = (uint32_t)(MEM8(esi + 0xC)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6345 _flag_k = FK_NARROW(FK_CMP, 24); 6346 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B057047; /* 0x2B057042: je 0x2b057047 */ 6347 L_2B057044: 6348 MEM32(esi + 0x18) = eax; /* 0x2B057044: mov dword ptr [esi + 0x18], eax */ 6349 L_2B057047: 6350 ecx = MEM32(ebp + (-0x1C)); /* 0x2B057047: mov ecx, dword ptr [ebp - 0x1c] */ 6351 PUSH32(esp, 0x70u); /* 0x2B05704A: push 0x70 */ 6352 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B05704C: mov dword ptr [ebp - 0x2c], ecx */ 6353 MEM32(ebp + (-0x28)) = eax; /* 0x2B05704F: mov dword ptr [ebp - 0x28], eax */ 6354 RECOMP_ICALL(0x2B0AB212u); /* 0x2B057052: call 0x2b0ab212 */ /* not lifted */ 6355 RECOMP_FLAGS_IN(); 6356 edi = eax; /* 0x2B057057: mov edi, eax */ 6357 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6359 esp = esp + 4; /* 0x2B057059: add esp, 4 */ 6360 _flag_k = FK_ADD; 6361 MEM32(ebp + (-0x14)) = edi; /* 0x2B05705C: mov dword ptr [ebp - 0x14], edi */ 6362 /* cmp edi, ebx */ /* 0x2B05705F: cmp edi, ebx */ 6363 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6365 _flag_k = FK_CMP; 6366 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B057061: mov byte ptr [ebp - 4], 2 */ 6367 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0570A6; /* 0x2B057065: je 0x2b0570a6 */ 6368 L_2B057067: 6369 edx = MEM32(0x2B0EE9DC); /* 0x2B057067: mov edx, dword ptr [0x2b0ee9dc] */ 6370 PUSH32(esp, edx); /* 0x2B05706D: push edx */ 6371 edx = MEM32(ebp + (-0x2C)); /* 0x2B05706E: mov edx, dword ptr [ebp - 0x2c] */ 6372 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B057071: push -1 */ 6373 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B057073: push -1 */ 6374 PUSH32(esp, 0x1Bu); /* 0x2B057075: push 0x1b */ 6375 PUSH32(esp, ebx); /* 0x2B057077: push ebx */ 6376 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6378 esp = esp - 0x10u; /* 0x2B057078: sub esp, 0x10 */ 6379 _flag_k = FK_CMP; 6380 ecx = esp; /* 0x2B05707B: mov ecx, esp */ 6381 MEM32(ecx) = ebx; /* 0x2B05707D: mov dword ptr [ecx], ebx */ 6382 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6383 eax = 0; /* 0x2B05707F: xor eax, eax */ 6384 _cf = 0; 6385 _flag_k = FK_TEST; 6386 MEM32(ecx + 0x4) = eax; /* 0x2B057081: mov dword ptr [ecx + 4], eax */ 6387 eax = MEM32(ebp + (-0x28)); /* 0x2B057084: mov eax, dword ptr [ebp - 0x28] */ 6388 PUSH32(esp, 0xFB0u); /* 0x2B057087: push 0xfb0 */ 6389 MEM32(ecx + 0x8) = edx; /* 0x2B05708C: mov dword ptr [ecx + 8], edx */ 6390 PUSH32(esp, ebx); /* 0x2B05708F: push ebx */ 6391 MEM32(ecx + 0xC) = eax; /* 0x2B057090: mov dword ptr [ecx + 0xc], eax */ 6392 PUSH32(esp, ebx); /* 0x2B057093: push ebx */ 6393 ecx = edi; /* 0x2B057094: mov ecx, edi */ 6394 RECOMP_ICALL(MEM32(0x2B0B5C00)); /* 0x2B057096: call dword ptr [0x2b0b5c00] */ 6395 RECOMP_FLAGS_IN(); 6396 MEM32(edi) = 0x2B0B6164u; /* 0x2B05709C: mov dword ptr [edi], 0x2b0b6164 */ 6397 ecx = edi; /* 0x2B0570A2: mov ecx, edi */ 6398 goto L_2B0570A8; /* 0x2B0570A4: jmp 0x2b0570a8 */ 6399 L_2B0570A6: 6400 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6401 ecx = 0; /* 0x2B0570A6: xor ecx, ecx */ 6402 _cf = 0; 6403 _flag_k = FK_TEST; 6404 L_2B0570A8: 6405 PUSH32(esp, 0x2B0E86B0u); /* 0x2B0570A8: push 0x2b0e86b0 */ 6406 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0570AD: mov byte ptr [ebp - 4], bl */ 6407 MEM32(esi + 0x30) = ecx; /* 0x2B0570B0: mov dword ptr [esi + 0x30], ecx */ 6408 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B0570B3: call dword ptr [0x2b0b5c04] */ 6409 RECOMP_FLAGS_IN(); 6410 ecx = MEM32(0x2B0B58EC); /* 0x2B0570B9: mov ecx, dword ptr [0x2b0b58ec] */ 6411 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B0570BF: mov dword ptr [ebp - 0x2c], ebx */ 6412 MEM32(ebp + (-0x28)) = 5; /* 0x2B0570C2: mov dword ptr [ebp - 0x28], 5 */ 6413 /* cmp MEM32(ecx), ebx */ /* 0x2B0570C9: cmp dword ptr [ecx], ebx */ 6414 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 6415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6416 _flag_k = FK_CMP; 6417 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0570F9; /* 0x2B0570CB: jne 0x2b0570f9 */ 6418 L_2B0570CD: 6419 PUSH32(esp, 8); /* 0x2B0570CD: push 8 */ 6420 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0570CF: call 0x2b0ab212 */ /* not lifted */ 6421 RECOMP_FLAGS_IN(); 6422 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6424 esp = esp + 4; /* 0x2B0570D4: add esp, 4 */ 6425 _flag_k = FK_ADD; 6426 MEM32(ebp + (-0x14)) = eax; /* 0x2B0570D7: mov dword ptr [ebp - 0x14], eax */ 6427 /* cmp eax, ebx */ /* 0x2B0570DA: cmp eax, ebx */ 6428 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6430 _flag_k = FK_CMP; 6431 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B0570DC: mov byte ptr [ebp - 4], 3 */ 6432 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0570EC; /* 0x2B0570E0: je 0x2b0570ec */ 6433 L_2B0570E2: 6434 ecx = eax; /* 0x2B0570E2: mov ecx, eax */ 6435 RECOMP_ICALL(MEM32(0x2B0B58F0)); /* 0x2B0570E4: call dword ptr [0x2b0b58f0] */ 6436 RECOMP_FLAGS_IN(); 6437 goto L_2B0570EE; /* 0x2B0570EA: jmp 0x2b0570ee */ 6438 L_2B0570EC: 6439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6440 eax = 0; /* 0x2B0570EC: xor eax, eax */ 6441 _cf = 0; 6442 _flag_k = FK_TEST; 6443 L_2B0570EE: 6444 edx = MEM32(0x2B0B58EC); /* 0x2B0570EE: mov edx, dword ptr [0x2b0b58ec] */ 6445 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B0570F4: mov byte ptr [ebp - 4], bl */ 6446 MEM32(edx) = eax; /* 0x2B0570F7: mov dword ptr [edx], eax */ 6447 L_2B0570F9: 6448 eax = MEM32(0x2B0B58EC); /* 0x2B0570F9: mov eax, dword ptr [0x2b0b58ec] */ 6449 ecx = MEM32(eax); /* 0x2B0570FE: mov ecx, dword ptr [eax] */ 6450 PUSH32(esp, 5); /* 0x2B057100: push 5 */ 6451 edx = ebp + (-0x2C); /* 0x2B057102: lea edx, [ebp - 0x2c] */ 6452 PUSH32(esp, edx); /* 0x2B057105: push edx */ 6453 RECOMP_ICALL(MEM32(0x2B0B58F4)); /* 0x2B057106: call dword ptr [0x2b0b58f4] */ 6454 RECOMP_FLAGS_IN(); 6455 PUSH32(esp, 0x64u); /* 0x2B05710C: push 0x64 */ 6456 edi = eax; /* 0x2B05710E: mov edi, eax */ 6457 RECOMP_ICALL(0x2B0AB212u); /* 0x2B057110: call 0x2b0ab212 */ /* not lifted */ 6458 RECOMP_FLAGS_IN(); 6459 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6461 esp = esp + 4; /* 0x2B057115: add esp, 4 */ 6462 _flag_k = FK_ADD; 6463 MEM32(ebp + (-0x14)) = eax; /* 0x2B057118: mov dword ptr [ebp - 0x14], eax */ 6464 /* cmp eax, ebx */ /* 0x2B05711B: cmp eax, ebx */ 6465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6467 _flag_k = FK_CMP; 6468 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B05711D: mov byte ptr [ebp - 4], 4 */ 6469 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B057155; /* 0x2B057121: je 0x2b057155 */ 6470 L_2B057123: 6471 ecx = MEM32(0x2B0EE9DC); /* 0x2B057123: mov ecx, dword ptr [0x2b0ee9dc] */ 6472 PUSH32(esp, ecx); /* 0x2B057129: push ecx */ 6473 PUSH32(esp, edi); /* 0x2B05712A: push edi */ 6474 PUSH32(esp, 0x30u); /* 0x2B05712B: push 0x30 */ 6475 PUSH32(esp, 7); /* 0x2B05712D: push 7 */ 6476 PUSH32(esp, 0xFAFu); /* 0x2B05712F: push 0xfaf */ 6477 PUSH32(esp, 0x9Fu); /* 0x2B057134: push 0x9f */ 6478 PUSH32(esp, ebx); /* 0x2B057139: push ebx */ 6479 PUSH32(esp, 0xA8u); /* 0x2B05713A: push 0xa8 */ 6480 PUSH32(esp, 0x36u); /* 0x2B05713F: push 0x36 */ 6481 PUSH32(esp, 0x38u); /* 0x2B057141: push 0x38 */ 6482 PUSH32(esp, 3); /* 0x2B057143: push 3 */ 6483 PUSH32(esp, 3); /* 0x2B057145: push 3 */ 6484 edx = ebp + (-0x24); /* 0x2B057147: lea edx, [ebp - 0x24] */ 6485 PUSH32(esp, edx); /* 0x2B05714A: push edx */ 6486 ecx = eax; /* 0x2B05714B: mov ecx, eax */ 6487 RECOMP_ICALL(MEM32(0x2B0B58F8)); /* 0x2B05714D: call dword ptr [0x2b0b58f8] */ 6488 RECOMP_FLAGS_IN(); 6489 goto L_2B057157; /* 0x2B057153: jmp 0x2b057157 */ 6490 L_2B057155: 6491 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6492 eax = 0; /* 0x2B057155: xor eax, eax */ 6493 _cf = 0; 6494 _flag_k = FK_TEST; 6495 L_2B057157: 6496 MEM32(esi + 0x28) = eax; /* 0x2B057157: mov dword ptr [esi + 0x28], eax */ 6497 ecx = esi; /* 0x2B05715A: mov ecx, esi */ 6498 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B05715C: mov byte ptr [ebp - 4], bl */ 6499 MEM32(eax + 0x5C) = 0x2B048850u; /* 0x2B05715F: mov dword ptr [eax + 0x5c], 0x2b048850 */ 6500 MEM32(eax + 0x60) = esi; /* 0x2B057166: mov dword ptr [eax + 0x60], esi */ 6501 RECOMP_ICALL(0x2B057320u); /* 0x2B057169: call 0x2b057320 */ /* not lifted */ 6502 RECOMP_FLAGS_IN(); 6503 PUSH32(esp, 0x2B0E86A8u); /* 0x2B05716E: push 0x2b0e86a8 */ 6504 PUSH32(esp, 1); /* 0x2B057173: push 1 */ 6505 ecx = esi; /* 0x2B057175: mov ecx, esi */ 6506 RECOMP_ICALL(0x2B03A2D0u); /* 0x2B057177: call 0x2b03a2d0 */ /* not lifted */ 6507 RECOMP_FLAGS_IN(); 6508 PUSH32(esp, ebx); /* 0x2B05717C: push ebx */ 6509 ecx = esi; /* 0x2B05717D: mov ecx, esi */ 6510 RECOMP_ICALL(0x2B03A350u); /* 0x2B05717F: call 0x2b03a350 */ /* not lifted */ 6511 RECOMP_FLAGS_IN(); 6512 ecx = MEM32(0x2B0EE9F0); /* 0x2B057184: mov ecx, dword ptr [0x2b0ee9f0] */ 6513 PUSH32(esp, 0x2B0E8698u); /* 0x2B05718A: push 0x2b0e8698 */ 6514 PUSH32(esp, 0x2B0E868Cu); /* 0x2B05718F: push 0x2b0e868c */ 6515 PUSH32(esp, 0xEu); /* 0x2B057194: push 0xe */ 6516 PUSH32(esp, 0x15Bu); /* 0x2B057196: push 0x15b */ 6517 PUSH32(esp, 0x15Au); /* 0x2B05719B: push 0x15a */ 6518 PUSH32(esp, esi); /* 0x2B0571A0: push esi */ 6519 RECOMP_ICALL(0x2B03BF90u); /* 0x2B0571A1: call 0x2b03bf90 */ /* not lifted */ 6520 RECOMP_FLAGS_IN(); 6521 ecx = MEM32(ebp + (-0xC)); /* 0x2B0571A6: mov ecx, dword ptr [ebp - 0xc] */ 6522 edi = POP32_VAL(esp); /* 0x2B0571A9: pop edi */ 6523 eax = esi; /* 0x2B0571AA: mov eax, esi */ 6524 esi = POP32_VAL(esp); /* 0x2B0571AC: pop esi */ 6525 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0571AD: mov dword ptr fs:[0], ecx */ 6526 ebx = POP32_VAL(esp); /* 0x2B0571B4: pop ebx */ 6527 esp = ebp; /* 0x2B0571B5: mov esp, ebp */ 6528 ebp = POP32_VAL(esp); /* 0x2B0571B7: pop ebp */ 6529 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0571B8: ret */ 6530 RECOMP_REGS_OUT(); 6531 } 6532 6533 void sub_2B0571C0(void) { 6534 int _fpu_cmp = 0; 6535 uint32_t _cf = 0; 6536 int _df = 1; 6537 uint32_t _flag_k = FK_NONE; 6538 uint32_t _flag_a = 0, _flag_b = 0; 6539 uint32_t _itail_tgt = 0; 6540 RECOMP_REGS_LOCALS 6541 RECOMP_ENTER(0x2B0571C0u); 6542 6543 L_2B0571C0: 6544 PUSH32(esp, ebp); /* 0x2B0571C0: push ebp */ 6545 ebp = esp; /* 0x2B0571C1: mov ebp, esp */ 6546 PUSH32(esp, esi); /* 0x2B0571C3: push esi */ 6547 esi = ecx; /* 0x2B0571C4: mov esi, ecx */ 6548 RECOMP_ICALL(0x2B0571F0u); /* 0x2B0571C6: call 0x2b0571f0 */ /* not lifted */ 6549 RECOMP_FLAGS_IN(); 6550 /* test MEM8(ebp + 0x8), 1 */ /* 0x2B0571CB: test byte ptr [ebp + 8], 1 */ 6551 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6552 _cf = 0; 6553 _flag_k = FK_NARROW(FK_TEST, 24); 6554 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0571DA; /* 0x2B0571CF: je 0x2b0571da */ 6555 L_2B0571D1: 6556 PUSH32(esp, esi); /* 0x2B0571D1: push esi */ 6557 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0571D2: call 0x2b0ab1ba */ /* not lifted */ 6558 RECOMP_FLAGS_IN(); 6559 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6560 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6561 esp = esp + 4; /* 0x2B0571D7: add esp, 4 */ 6562 _flag_k = FK_ADD; 6563 L_2B0571DA: 6564 eax = esi; /* 0x2B0571DA: mov eax, esi */ 6565 esi = POP32_VAL(esp); /* 0x2B0571DC: pop esi */ 6566 ebp = POP32_VAL(esp); /* 0x2B0571DD: pop ebp */ 6567 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0571DE: ret 4 */ 6568 RECOMP_REGS_OUT(); 6569 } 6570 6571 void sub_2B0571F0(void) { 6572 int _fpu_cmp = 0; 6573 uint32_t _cf = 0; 6574 int _df = 1; 6575 uint32_t _flag_k = FK_NONE; 6576 uint32_t _flag_a = 0, _flag_b = 0; 6577 uint32_t _itail_tgt = 0; 6578 RECOMP_REGS_LOCALS 6579 RECOMP_ENTER(0x2B0571F0u); 6580 6581 L_2B0571F0: 6582 PUSH32(esp, ebp); /* 0x2B0571F0: push ebp */ 6583 ebp = esp; /* 0x2B0571F1: mov ebp, esp */ 6584 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0571F3: push -1 */ 6585 PUSH32(esp, 0x2B0AFD18u); /* 0x2B0571F5: push 0x2b0afd18 */ 6586 eax = MEM32(FS_BASE + (0)); /* 0x2B0571FA: mov eax, dword ptr fs:[0] */ 6587 PUSH32(esp, eax); /* 0x2B057200: push eax */ 6588 MEM32(FS_BASE + (0)) = esp; /* 0x2B057201: mov dword ptr fs:[0], esp */ 6589 PUSH32(esp, ecx); /* 0x2B057208: push ecx */ 6590 PUSH32(esp, esi); /* 0x2B057209: push esi */ 6591 esi = ecx; /* 0x2B05720A: mov esi, ecx */ 6592 PUSH32(esp, edi); /* 0x2B05720C: push edi */ 6593 MEM32(ebp + (-0x10)) = esi; /* 0x2B05720D: mov dword ptr [ebp - 0x10], esi */ 6594 MEM32(esi) = 0x2B0B6B44u; /* 0x2B057210: mov dword ptr [esi], 0x2b0b6b44 */ 6595 edi = MEM32(esi + 0x28); /* 0x2B057216: mov edi, dword ptr [esi + 0x28] */ 6596 /* test edi, edi */ /* 0x2B057219: test edi, edi */ 6597 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6598 _cf = 0; 6599 _flag_k = FK_TEST; 6600 MEM32(ebp + (-0x4)) = 0; /* 0x2B05721B: mov dword ptr [ebp - 4], 0 */ 6601 if (TEST_Z(_flag_a, _flag_b)) goto L_2B057235; /* 0x2B057222: je 0x2b057235 */ 6602 L_2B057224: 6603 ecx = edi; /* 0x2B057224: mov ecx, edi */ 6604 RECOMP_ICALL(MEM32(0x2B0B58E8)); /* 0x2B057226: call dword ptr [0x2b0b58e8] */ 6605 RECOMP_FLAGS_IN(); 6606 PUSH32(esp, edi); /* 0x2B05722C: push edi */ 6607 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B05722D: call 0x2b0ab1ba */ /* not lifted */ 6608 RECOMP_FLAGS_IN(); 6609 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6610 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6611 esp = esp + 4; /* 0x2B057232: add esp, 4 */ 6612 _flag_k = FK_ADD; 6613 L_2B057235: 6614 ecx = MEM32(esi + 0x30); /* 0x2B057235: mov ecx, dword ptr [esi + 0x30] */ 6615 /* test ecx, ecx */ /* 0x2B057238: test ecx, ecx */ 6616 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6617 _cf = 0; 6618 _flag_k = FK_TEST; 6619 if (TEST_Z(_flag_a, _flag_b)) goto L_2B057242; /* 0x2B05723A: je 0x2b057242 */ 6620 L_2B05723C: 6621 eax = MEM32(ecx); /* 0x2B05723C: mov eax, dword ptr [ecx] */ 6622 PUSH32(esp, 1); /* 0x2B05723E: push 1 */ 6623 RECOMP_ICALL(MEM32(eax)); /* 0x2B057240: call dword ptr [eax] */ 6624 RECOMP_FLAGS_IN(); 6625 L_2B057242: 6626 ecx = MEM32(esi + 0x2C); /* 0x2B057242: mov ecx, dword ptr [esi + 0x2c] */ 6627 /* test ecx, ecx */ /* 0x2B057245: test ecx, ecx */ 6628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6629 _cf = 0; 6630 _flag_k = FK_TEST; 6631 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05724F; /* 0x2B057247: je 0x2b05724f */ 6632 L_2B057249: 6633 edx = MEM32(ecx); /* 0x2B057249: mov edx, dword ptr [ecx] */ 6634 PUSH32(esp, 1); /* 0x2B05724B: push 1 */ 6635 RECOMP_ICALL(MEM32(edx)); /* 0x2B05724D: call dword ptr [edx] */ 6636 RECOMP_FLAGS_IN(); 6637 L_2B05724F: 6638 ecx = esi; /* 0x2B05724F: mov ecx, esi */ 6639 MEM32(0x2B0EEB18) = 0; /* 0x2B057251: mov dword ptr [0x2b0eeb18], 0 */ 6640 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B05725B: mov dword ptr [ebp - 4], 0xffffffff */ 6641 RECOMP_ICALL(0x2B03A290u); /* 0x2B057262: call 0x2b03a290 */ /* not lifted */ 6642 RECOMP_FLAGS_IN(); 6643 ecx = MEM32(ebp + (-0xC)); /* 0x2B057267: mov ecx, dword ptr [ebp - 0xc] */ 6644 edi = POP32_VAL(esp); /* 0x2B05726A: pop edi */ 6645 esi = POP32_VAL(esp); /* 0x2B05726B: pop esi */ 6646 MEM32(FS_BASE + (0)) = ecx; /* 0x2B05726C: mov dword ptr fs:[0], ecx */ 6647 esp = ebp; /* 0x2B057273: mov esp, ebp */ 6648 ebp = POP32_VAL(esp); /* 0x2B057275: pop ebp */ 6649 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B057276: ret */ 6650 RECOMP_REGS_OUT(); 6651 } 6652 6653 void sub_2B057280(void) { 6654 int _fpu_cmp = 0; 6655 uint32_t _cf = 0; 6656 int _df = 1; 6657 uint32_t _flag_k = FK_NONE; 6658 uint32_t _flag_a = 0, _flag_b = 0; 6659 uint32_t _itail_tgt = 0; 6660 RECOMP_REGS_LOCALS 6661 RECOMP_ENTER(0x2B057280u); 6662 6663 L_2B057280: 6664 PUSH32(esp, ebp); /* 0x2B057280: push ebp */ 6665 ebp = esp; /* 0x2B057281: mov ebp, esp */ 6666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6668 esp = esp - 8; /* 0x2B057283: sub esp, 8 */ 6669 _flag_k = FK_CMP; 6670 PUSH32(esp, esi); /* 0x2B057286: push esi */ 6671 esi = ecx; /* 0x2B057287: mov esi, ecx */ 6672 ecx = MEM32(esi + 0x8); /* 0x2B057289: mov ecx, dword ptr [esi + 8] */ 6673 eax = MEM32(esi + 0x4); /* 0x2B05728C: mov eax, dword ptr [esi + 4] */ 6674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 6675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6676 ecx = ecx + 0x14u; /* 0x2B05728F: add ecx, 0x14 */ 6677 _flag_k = FK_ADD; 6678 edx = ebp + (-0x8); /* 0x2B057292: lea edx, [ebp - 8] */ 6679 MEM32(ebp + (-0x4)) = ecx; /* 0x2B057295: mov dword ptr [ebp - 4], ecx */ 6680 ecx = MEM32(esi + 0x2C); /* 0x2B057298: mov ecx, dword ptr [esi + 0x2c] */ 6681 PUSH32(esp, edx); /* 0x2B05729B: push edx */ 6682 MEM32(ebp + (-0x8)) = eax; /* 0x2B05729C: mov dword ptr [ebp - 8], eax */ 6683 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B05729F: call dword ptr [0x2b0b5940] */ 6684 RECOMP_FLAGS_IN(); 6685 eax = MEM32(esi + 0x2C); /* 0x2B0572A5: mov eax, dword ptr [esi + 0x2c] */ 6686 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B0572A8: mov byte ptr [eax + 9], 1 */ 6687 ecx = MEM32(esi + 0x30); /* 0x2B0572AC: mov ecx, dword ptr [esi + 0x30] */ 6688 edx = MEM32(ecx); /* 0x2B0572AF: mov edx, dword ptr [ecx] */ 6689 eax = ebp + (-0x8); /* 0x2B0572B1: lea eax, [ebp - 8] */ 6690 PUSH32(esp, eax); /* 0x2B0572B4: push eax */ 6691 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B0572B5: call dword ptr [edx + 0x14] */ 6692 RECOMP_FLAGS_IN(); 6693 ecx = MEM32(ebp + (-0x8)); /* 0x2B0572B8: mov ecx, dword ptr [ebp - 8] */ 6694 eax = MEM32(ebp + (-0x4)); /* 0x2B0572BB: mov eax, dword ptr [ebp - 4] */ 6695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 6696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6697 ecx = ecx + 0xCu; /* 0x2B0572BE: add ecx, 0xc */ 6698 _flag_k = FK_ADD; 6699 MEM32(ebp + (-0x8)) = ecx; /* 0x2B0572C1: mov dword ptr [ebp - 8], ecx */ 6700 ecx = ebp + (-0x8); /* 0x2B0572C4: lea ecx, [ebp - 8] */ 6701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 6702 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6703 eax = eax + 0xAu; /* 0x2B0572C7: add eax, 0xa */ 6704 _flag_k = FK_ADD; 6705 PUSH32(esp, ecx); /* 0x2B0572CA: push ecx */ 6706 ecx = MEM32(esi + 0x28); /* 0x2B0572CB: mov ecx, dword ptr [esi + 0x28] */ 6707 MEM32(ebp + (-0x4)) = eax; /* 0x2B0572CE: mov dword ptr [ebp - 4], eax */ 6708 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B0572D1: call dword ptr [0x2b0b58e0] */ 6709 RECOMP_FLAGS_IN(); 6710 ecx = MEM32(esi + 0x28); /* 0x2B0572D7: mov ecx, dword ptr [esi + 0x28] */ 6711 PUSH32(esp, 0); /* 0x2B0572DA: push 0 */ 6712 RECOMP_ICALL(MEM32(0x2B0B58E4)); /* 0x2B0572DC: call dword ptr [0x2b0b58e4] */ 6713 RECOMP_FLAGS_IN(); 6714 esi = POP32_VAL(esp); /* 0x2B0572E2: pop esi */ 6715 esp = ebp; /* 0x2B0572E3: mov esp, ebp */ 6716 ebp = POP32_VAL(esp); /* 0x2B0572E5: pop ebp */ 6717 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0572E6: ret */ 6718 RECOMP_REGS_OUT(); 6719 } 6720 6721 void sub_2B0572F0(void) { 6722 int _fpu_cmp = 0; 6723 uint32_t _cf = 0; 6724 int _df = 1; 6725 uint32_t _flag_k = FK_NONE; 6726 uint32_t _flag_a = 0, _flag_b = 0; 6727 uint32_t _itail_tgt = 0; 6728 RECOMP_REGS_LOCALS 6729 RECOMP_ENTER(0x2B0572F0u); 6730 6731 L_2B0572F0: 6732 PUSH32(esp, esi); /* 0x2B0572F0: push esi */ 6733 esi = ecx; /* 0x2B0572F1: mov esi, ecx */ 6734 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B0572F3: mov al, byte ptr [esi + 0xc] */ 6735 /* test LO8(eax), LO8(eax) */ /* 0x2B0572F6: test al, al */ 6736 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6737 _cf = 0; 6738 _flag_k = FK_NARROW(FK_TEST, 24); 6739 if (TEST_Z(_flag_a, _flag_b)) goto L_2B057311; /* 0x2B0572F8: je 0x2b057311 */ 6740 L_2B0572FA: 6741 eax = MEM32(esi + 0x2C); /* 0x2B0572FA: mov eax, dword ptr [esi + 0x2c] */ 6742 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B0572FD: mov byte ptr [eax + 8], 1 */ 6743 ecx = MEM32(esi + 0x28); /* 0x2B057301: mov ecx, dword ptr [esi + 0x28] */ 6744 RECOMP_ICALL(MEM32(0x2B0B58DC)); /* 0x2B057304: call dword ptr [0x2b0b58dc] */ 6745 RECOMP_FLAGS_IN(); 6746 ecx = MEM32(esi + 0x30); /* 0x2B05730A: mov ecx, dword ptr [esi + 0x30] */ 6747 MEM8(ecx + 0x8) = (uint8_t)(1); /* 0x2B05730D: mov byte ptr [ecx + 8], 1 */ 6748 L_2B057311: 6749 esi = POP32_VAL(esp); /* 0x2B057311: pop esi */ 6750 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B057312: ret */ 6751 RECOMP_REGS_OUT(); 6752 } 6753 6754 void sub_2B057320(void) { 6755 int _fpu_cmp = 0; 6756 uint32_t _cf = 0; 6757 int _df = 1; 6758 uint32_t _flag_k = FK_NONE; 6759 uint32_t _flag_a = 0, _flag_b = 0; 6760 uint32_t _itail_tgt = 0; 6761 RECOMP_REGS_LOCALS 6762 RECOMP_ENTER(0x2B057320u); 6763 6764 L_2B057320: 6765 PUSH32(esp, esi); /* 0x2B057320: push esi */ 6766 esi = ecx; /* 0x2B057321: mov esi, ecx */ 6767 eax = MEM32(esi + 0x2C); /* 0x2B057323: mov eax, dword ptr [esi + 0x2c] */ 6768 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B057326: mov byte ptr [eax + 8], 0 */ 6769 ecx = MEM32(esi + 0x28); /* 0x2B05732A: mov ecx, dword ptr [esi + 0x28] */ 6770 RECOMP_ICALL(MEM32(0x2B0B58D8)); /* 0x2B05732D: call dword ptr [0x2b0b58d8] */ 6771 RECOMP_FLAGS_IN(); 6772 ecx = MEM32(esi + 0x30); /* 0x2B057333: mov ecx, dword ptr [esi + 0x30] */ 6773 MEM8(ecx + 0x8) = (uint8_t)(0); /* 0x2B057336: mov byte ptr [ecx + 8], 0 */ 6774 esi = POP32_VAL(esp); /* 0x2B05733A: pop esi */ 6775 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05733B: ret */ 6776 RECOMP_REGS_OUT(); 6777 } 6778 6779 void sub_2B057340(void) { 6780 int _fpu_cmp = 0; 6781 uint32_t _cf = 0; 6782 int _df = 1; 6783 uint32_t _flag_k = FK_NONE; 6784 uint32_t _flag_a = 0, _flag_b = 0; 6785 uint32_t _itail_tgt = 0; 6786 RECOMP_REGS_LOCALS 6787 RECOMP_ENTER(0x2B057340u); 6788 6789 L_2B057340: 6790 PUSH32(esp, ebp); /* 0x2B057340: push ebp */ 6791 ebp = esp; /* 0x2B057341: mov ebp, esp */ 6792 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 6793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6794 esp = esp - 0x28u; /* 0x2B057343: sub esp, 0x28 */ 6795 _flag_k = FK_CMP; 6796 SET_LO8(eax, MEM8(0x2B0EE981)); /* 0x2B057346: mov al, byte ptr [0x2b0ee981] */ 6797 /* test LO8(eax), LO8(eax) */ /* 0x2B05734B: test al, al */ 6798 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6799 _cf = 0; 6800 _flag_k = FK_NARROW(FK_TEST, 24); 6801 PUSH32(esp, ebx); /* 0x2B05734D: push ebx */ 6802 ebx = ecx; /* 0x2B05734E: mov ebx, ecx */ 6803 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0573D9; /* 0x2B057350: je 0x2b0573d9 */ 6804 L_2B057356: 6805 PUSH32(esp, esi); /* 0x2B057356: push esi */ 6806 PUSH32(esp, edi); /* 0x2B057357: push edi */ 6807 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6808 esi = 0; /* 0x2B057358: xor esi, esi */ 6809 _cf = 0; 6810 _flag_k = FK_TEST; 6811 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6812 eax = 0; /* 0x2B05735A: xor eax, eax */ 6813 _cf = 0; 6814 _flag_k = FK_TEST; 6815 MEM32(ebp + (-0x28)) = esi; /* 0x2B05735C: mov dword ptr [ebp - 0x28], esi */ 6816 MEM32(ebp + (-0x24)) = esi; /* 0x2B05735F: mov dword ptr [ebp - 0x24], esi */ 6817 ecx = 0xAu; /* 0x2B057362: mov ecx, 0xa */ 6818 edi = ebp + (-0x28); /* 0x2B057367: lea edi, [ebp - 0x28] */ 6819 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05736A: 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; } 6820 ecx = MEM32(ebx + 0x28); /* 0x2B05736C: mov ecx, dword ptr [ebx + 0x28] */ 6821 MEM32(ebp + (-0xC)) = 0x30u; /* 0x2B05736F: mov dword ptr [ebp - 0xc], 0x30 */ 6822 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B057376: call dword ptr [0x2b0b58cc] */ 6823 RECOMP_FLAGS_IN(); 6824 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B05737C: call dword ptr [0x2b0b5d6c] */ 6825 RECOMP_FLAGS_IN(); 6826 ecx = eax; /* 0x2B057382: mov ecx, eax */ 6827 RECOMP_ICALL(MEM32(0x2B0B5E20)); /* 0x2B057384: call dword ptr [0x2b0b5e20] */ 6828 RECOMP_FLAGS_IN(); 6829 edi = eax; /* 0x2B05738A: mov edi, eax */ 6830 /* cmp edi, esi */ /* 0x2B05738C: cmp edi, esi */ 6831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 6832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6833 _flag_k = FK_CMP; 6834 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0573B9; /* 0x2B05738E: je 0x2b0573b9 */ 6835 L_2B057390: 6836 eax = MEM32(edi + 0x4); /* 0x2B057390: mov eax, dword ptr [edi + 4] */ 6837 esi = MEM32(eax); /* 0x2B057393: mov esi, dword ptr [eax] */ 6838 /* cmp esi, eax */ /* 0x2B057395: cmp esi, eax */ 6839 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6841 _flag_k = FK_CMP; 6842 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0573B9; /* 0x2B057397: je 0x2b0573b9 */ 6843 L_2B057399: 6844 eax = MEM32(esi + 0x8); /* 0x2B057399: mov eax, dword ptr [esi + 8] */ 6845 MEM32(ebp + (-0x28)) = eax; /* 0x2B05739C: mov dword ptr [ebp - 0x28], eax */ 6846 ecx = MEM32(esi + 0xC); /* 0x2B05739F: mov ecx, dword ptr [esi + 0xc] */ 6847 edx = ebp + (-0x28); /* 0x2B0573A2: lea edx, [ebp - 0x28] */ 6848 MEM32(ebp + (-0x24)) = ecx; /* 0x2B0573A5: mov dword ptr [ebp - 0x24], ecx */ 6849 ecx = MEM32(ebx + 0x28); /* 0x2B0573A8: mov ecx, dword ptr [ebx + 0x28] */ 6850 PUSH32(esp, edx); /* 0x2B0573AB: push edx */ 6851 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0573AC: call dword ptr [0x2b0b58d0] */ 6852 RECOMP_FLAGS_IN(); 6853 esi = MEM32(esi); /* 0x2B0573B2: mov esi, dword ptr [esi] */ 6854 /* cmp esi, MEM32(edi + 0x4) */ /* 0x2B0573B4: cmp esi, dword ptr [edi + 4] */ 6855 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6857 _flag_k = FK_CMP; 6858 RECOMP_BACKEDGE(); 6859 if (CMP_NE(_flag_a, _flag_b)) goto L_2B057399; /* 0x2B0573B7: jne 0x2b057399 */ 6860 L_2B0573B9: 6861 ecx = MEM32(ebx + 0x28); /* 0x2B0573B9: mov ecx, dword ptr [ebx + 0x28] */ 6862 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B0573BC: call dword ptr [0x2b0b58d4] */ 6863 RECOMP_FLAGS_IN(); 6864 ecx = ebx; /* 0x2B0573C2: mov ecx, ebx */ 6865 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0573C4: call 0x2b03a2b0 */ /* not lifted */ 6866 RECOMP_FLAGS_IN(); 6867 SET_LO8(eax, MEM8(ebx + 0x1C)); /* 0x2B0573C9: mov al, byte ptr [ebx + 0x1c] */ 6868 /* test LO8(eax), LO8(eax) */ /* 0x2B0573CC: test al, al */ 6869 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6870 _cf = 0; 6871 _flag_k = FK_NARROW(FK_TEST, 24); 6872 edi = POP32_VAL(esp); /* 0x2B0573CE: pop edi */ 6873 esi = POP32_VAL(esp); /* 0x2B0573CF: pop esi */ 6874 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0573D9; /* 0x2B0573D0: jne 0x2b0573d9 */ 6875 L_2B0573D2: 6876 eax = MEM32(ebx); /* 0x2B0573D2: mov eax, dword ptr [ebx] */ 6877 ecx = ebx; /* 0x2B0573D4: mov ecx, ebx */ 6878 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B0573D6: call dword ptr [eax + 0xc] */ 6879 RECOMP_FLAGS_IN(); 6880 L_2B0573D9: 6881 ebx = POP32_VAL(esp); /* 0x2B0573D9: pop ebx */ 6882 esp = ebp; /* 0x2B0573DA: mov esp, ebp */ 6883 ebp = POP32_VAL(esp); /* 0x2B0573DC: pop ebp */ 6884 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0573DD: ret */ 6885 RECOMP_REGS_OUT(); 6886 } 6887 6888 void sub_2B0573E0(void) { 6889 int _fpu_cmp = 0; 6890 uint32_t _cf = 0; 6891 int _df = 1; 6892 uint32_t _flag_k = FK_NONE; 6893 uint32_t _flag_a = 0, _flag_b = 0; 6894 uint32_t _itail_tgt = 0; 6895 RECOMP_REGS_LOCALS 6896 RECOMP_ENTER(0x2B0573E0u); 6897 6898 goto L_2B0573E0; 6899 L_2B057340: 6900 PUSH32(esp, ebp); /* 0x2B057340: push ebp */ 6901 ebp = esp; /* 0x2B057341: mov ebp, esp */ 6902 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 6903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6904 esp = esp - 0x28u; /* 0x2B057343: sub esp, 0x28 */ 6905 _flag_k = FK_CMP; 6906 SET_LO8(eax, MEM8(0x2B0EE981)); /* 0x2B057346: mov al, byte ptr [0x2b0ee981] */ 6907 /* test LO8(eax), LO8(eax) */ /* 0x2B05734B: test al, al */ 6908 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6909 _cf = 0; 6910 _flag_k = FK_NARROW(FK_TEST, 24); 6911 PUSH32(esp, ebx); /* 0x2B05734D: push ebx */ 6912 ebx = ecx; /* 0x2B05734E: mov ebx, ecx */ 6913 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0573D9; /* 0x2B057350: je 0x2b0573d9 */ 6914 L_2B057356: 6915 PUSH32(esp, esi); /* 0x2B057356: push esi */ 6916 PUSH32(esp, edi); /* 0x2B057357: push edi */ 6917 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6918 esi = 0; /* 0x2B057358: xor esi, esi */ 6919 _cf = 0; 6920 _flag_k = FK_TEST; 6921 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6922 eax = 0; /* 0x2B05735A: xor eax, eax */ 6923 _cf = 0; 6924 _flag_k = FK_TEST; 6925 MEM32(ebp + (-0x28)) = esi; /* 0x2B05735C: mov dword ptr [ebp - 0x28], esi */ 6926 MEM32(ebp + (-0x24)) = esi; /* 0x2B05735F: mov dword ptr [ebp - 0x24], esi */ 6927 ecx = 0xAu; /* 0x2B057362: mov ecx, 0xa */ 6928 edi = ebp + (-0x28); /* 0x2B057367: lea edi, [ebp - 0x28] */ 6929 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B05736A: 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; } 6930 ecx = MEM32(ebx + 0x28); /* 0x2B05736C: mov ecx, dword ptr [ebx + 0x28] */ 6931 MEM32(ebp + (-0xC)) = 0x30u; /* 0x2B05736F: mov dword ptr [ebp - 0xc], 0x30 */ 6932 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B057376: call dword ptr [0x2b0b58cc] */ 6933 RECOMP_FLAGS_IN(); 6934 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B05737C: call dword ptr [0x2b0b5d6c] */ 6935 RECOMP_FLAGS_IN(); 6936 ecx = eax; /* 0x2B057382: mov ecx, eax */ 6937 RECOMP_ICALL(MEM32(0x2B0B5E20)); /* 0x2B057384: call dword ptr [0x2b0b5e20] */ 6938 RECOMP_FLAGS_IN(); 6939 edi = eax; /* 0x2B05738A: mov edi, eax */ 6940 /* cmp edi, esi */ /* 0x2B05738C: cmp edi, esi */ 6941 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 6942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6943 _flag_k = FK_CMP; 6944 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0573B9; /* 0x2B05738E: je 0x2b0573b9 */ 6945 L_2B057390: 6946 eax = MEM32(edi + 0x4); /* 0x2B057390: mov eax, dword ptr [edi + 4] */ 6947 esi = MEM32(eax); /* 0x2B057393: mov esi, dword ptr [eax] */ 6948 /* cmp esi, eax */ /* 0x2B057395: cmp esi, eax */ 6949 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6951 _flag_k = FK_CMP; 6952 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0573B9; /* 0x2B057397: je 0x2b0573b9 */ 6953 L_2B057399: 6954 eax = MEM32(esi + 0x8); /* 0x2B057399: mov eax, dword ptr [esi + 8] */ 6955 MEM32(ebp + (-0x28)) = eax; /* 0x2B05739C: mov dword ptr [ebp - 0x28], eax */ 6956 ecx = MEM32(esi + 0xC); /* 0x2B05739F: mov ecx, dword ptr [esi + 0xc] */ 6957 edx = ebp + (-0x28); /* 0x2B0573A2: lea edx, [ebp - 0x28] */ 6958 MEM32(ebp + (-0x24)) = ecx; /* 0x2B0573A5: mov dword ptr [ebp - 0x24], ecx */ 6959 ecx = MEM32(ebx + 0x28); /* 0x2B0573A8: mov ecx, dword ptr [ebx + 0x28] */ 6960 PUSH32(esp, edx); /* 0x2B0573AB: push edx */ 6961 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0573AC: call dword ptr [0x2b0b58d0] */ 6962 RECOMP_FLAGS_IN(); 6963 esi = MEM32(esi); /* 0x2B0573B2: mov esi, dword ptr [esi] */ 6964 /* cmp esi, MEM32(edi + 0x4) */ /* 0x2B0573B4: cmp esi, dword ptr [edi + 4] */ 6965 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6967 _flag_k = FK_CMP; 6968 RECOMP_BACKEDGE(); 6969 if (CMP_NE(_flag_a, _flag_b)) goto L_2B057399; /* 0x2B0573B7: jne 0x2b057399 */ 6970 L_2B0573B9: 6971 ecx = MEM32(ebx + 0x28); /* 0x2B0573B9: mov ecx, dword ptr [ebx + 0x28] */ 6972 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B0573BC: call dword ptr [0x2b0b58d4] */ 6973 RECOMP_FLAGS_IN(); 6974 ecx = ebx; /* 0x2B0573C2: mov ecx, ebx */ 6975 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0573C4: call 0x2b03a2b0 */ /* not lifted */ 6976 RECOMP_FLAGS_IN(); 6977 SET_LO8(eax, MEM8(ebx + 0x1C)); /* 0x2B0573C9: mov al, byte ptr [ebx + 0x1c] */ 6978 /* test LO8(eax), LO8(eax) */ /* 0x2B0573CC: test al, al */ 6979 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6980 _cf = 0; 6981 _flag_k = FK_NARROW(FK_TEST, 24); 6982 edi = POP32_VAL(esp); /* 0x2B0573CE: pop edi */ 6983 esi = POP32_VAL(esp); /* 0x2B0573CF: pop esi */ 6984 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0573D9; /* 0x2B0573D0: jne 0x2b0573d9 */ 6985 L_2B0573D2: 6986 eax = MEM32(ebx); /* 0x2B0573D2: mov eax, dword ptr [ebx] */ 6987 ecx = ebx; /* 0x2B0573D4: mov ecx, ebx */ 6988 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B0573D6: call dword ptr [eax + 0xc] */ 6989 RECOMP_FLAGS_IN(); 6990 L_2B0573D9: 6991 ebx = POP32_VAL(esp); /* 0x2B0573D9: pop ebx */ 6992 esp = ebp; /* 0x2B0573DA: mov esp, ebp */ 6993 ebp = POP32_VAL(esp); /* 0x2B0573DC: pop ebp */ 6994 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0573DD: ret */ 6995 L_2B0573E0: 6996 RECOMP_BACKEDGE(); 6997 goto L_2B057340; /* 0x2B0573E0: jmp 0x2b057340 */ 6998 { RECOMP_REGS_OUT(); return; } /* end of function */ 6999 RECOMP_REGS_OUT(); 7000 } 7001 7002 void sub_2B0573F0(void) { 7003 int _fpu_cmp = 0; 7004 uint32_t _cf = 0; 7005 int _df = 1; 7006 uint32_t _flag_k = FK_NONE; 7007 uint32_t _flag_a = 0, _flag_b = 0; 7008 uint32_t _itail_tgt = 0; 7009 RECOMP_REGS_LOCALS 7010 RECOMP_ENTER(0x2B0573F0u); 7011 7012 L_2B0573F0: 7013 PUSH32(esp, ebp); /* 0x2B0573F0: push ebp */ 7014 ebp = esp; /* 0x2B0573F1: mov ebp, esp */ 7015 eax = MEM32(ebp + 0x8); /* 0x2B0573F3: mov eax, dword ptr [ebp + 8] */ 7016 PUSH32(esp, eax); /* 0x2B0573F6: push eax */ 7017 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0573F7: call dword ptr [0x2b0b5d6c] */ 7018 RECOMP_FLAGS_IN(); 7019 ecx = eax; /* 0x2B0573FD: mov ecx, eax */ 7020 RECOMP_ICALL(MEM32(0x2B0B5E1C)); /* 0x2B0573FF: call dword ptr [0x2b0b5e1c] */ 7021 RECOMP_FLAGS_IN(); 7022 ebp = POP32_VAL(esp); /* 0x2B057405: pop ebp */ 7023 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B057406: ret 4 */ 7024 RECOMP_REGS_OUT(); 7025 } 7026 7027 void sub_2B057410(void) { 7028 int _fpu_cmp = 0; 7029 uint32_t _cf = 0; 7030 int _df = 1; 7031 uint32_t _flag_k = FK_NONE; 7032 uint32_t _flag_a = 0, _flag_b = 0; 7033 uint32_t _itail_tgt = 0; 7034 RECOMP_REGS_LOCALS 7035 RECOMP_ENTER(0x2B057410u); 7036 7037 L_2B057410: 7038 PUSH32(esp, ebp); /* 0x2B057410: push ebp */ 7039 ebp = esp; /* 0x2B057411: mov ebp, esp */ 7040 eax = MEM32(ebp + 0x8); /* 0x2B057413: mov eax, dword ptr [ebp + 8] */ 7041 PUSH32(esp, eax); /* 0x2B057416: push eax */ 7042 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B057417: call dword ptr [0x2b0b5d6c] */ 7043 RECOMP_FLAGS_IN(); 7044 ecx = eax; /* 0x2B05741D: mov ecx, eax */ 7045 RECOMP_ICALL(MEM32(0x2B0B5E18)); /* 0x2B05741F: call dword ptr [0x2b0b5e18] */ 7046 RECOMP_FLAGS_IN(); 7047 ebp = POP32_VAL(esp); /* 0x2B057425: pop ebp */ 7048 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B057426: ret 4 */ 7049 RECOMP_REGS_OUT(); 7050 } 7051 7052 void sub_2B057430(void) { 7053 int _fpu_cmp = 0; 7054 uint32_t _cf = 0; 7055 int _df = 1; 7056 uint32_t _flag_k = FK_NONE; 7057 uint32_t _flag_a = 0, _flag_b = 0; 7058 uint32_t _itail_tgt = 0; 7059 RECOMP_REGS_LOCALS 7060 RECOMP_ENTER(0x2B057430u); 7061 7062 L_2B057430: 7063 PUSH32(esp, ebp); /* 0x2B057430: push ebp */ 7064 ebp = esp; /* 0x2B057431: mov ebp, esp */ 7065 eax = MEM32(ebp + 0x8); /* 0x2B057433: mov eax, dword ptr [ebp + 8] */ 7066 ecx = MEM32(ecx + 0x28); /* 0x2B057436: mov ecx, dword ptr [ecx + 0x28] */ 7067 PUSH32(esp, eax); /* 0x2B057439: push eax */ 7068 RECOMP_ICALL(MEM32(0x2B0B5904)); /* 0x2B05743A: call dword ptr [0x2b0b5904] */ 7069 RECOMP_FLAGS_IN(); 7070 /* test eax, eax */ /* 0x2B057440: test eax, eax */ 7071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7072 _cf = 0; 7073 _flag_k = FK_TEST; 7074 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05744C; /* 0x2B057442: je 0x2b05744c */ 7075 L_2B057444: 7076 ecx = eax; /* 0x2B057444: mov ecx, eax */ 7077 RECOMP_ICALL(MEM32(0x2B0B5894)); /* 0x2B057446: call dword ptr [0x2b0b5894] */ 7078 RECOMP_FLAGS_IN(); 7079 L_2B05744C: 7080 ebp = POP32_VAL(esp); /* 0x2B05744C: pop ebp */ 7081 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B05744D: ret 4 */ 7082 RECOMP_REGS_OUT(); 7083 } 7084 7085 void sub_2B057450(void) { 7086 int _fpu_cmp = 0; 7087 uint32_t _cf = 0; 7088 int _df = 1; 7089 uint32_t _flag_k = FK_NONE; 7090 uint32_t _flag_a = 0, _flag_b = 0; 7091 uint32_t _itail_tgt = 0; 7092 RECOMP_REGS_LOCALS 7093 RECOMP_ENTER(0x2B057450u); 7094 7095 L_2B057450: 7096 PUSH32(esp, ebp); /* 0x2B057450: push ebp */ 7097 ebp = esp; /* 0x2B057451: mov ebp, esp */ 7098 SET_LO8(eax, MEM8(0x2B0EE981)); /* 0x2B057453: mov al, byte ptr [0x2b0ee981] */ 7099 /* test LO8(eax), LO8(eax) */ /* 0x2B057458: test al, al */ 7100 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7101 _cf = 0; 7102 _flag_k = FK_NARROW(FK_TEST, 24); 7103 if (TEST_Z(_flag_a, _flag_b)) goto L_2B057479; /* 0x2B05745A: je 0x2b057479 */ 7104 L_2B05745C: 7105 eax = MEM32(ebp + 0x8); /* 0x2B05745C: mov eax, dword ptr [ebp + 8] */ 7106 ecx = MEM32(ecx + 0x28); /* 0x2B05745F: mov ecx, dword ptr [ecx + 0x28] */ 7107 PUSH32(esp, eax); /* 0x2B057462: push eax */ 7108 RECOMP_ICALL(MEM32(0x2B0B5904)); /* 0x2B057463: call dword ptr [0x2b0b5904] */ 7109 RECOMP_FLAGS_IN(); 7110 /* test eax, eax */ /* 0x2B057469: test eax, eax */ 7111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7112 _cf = 0; 7113 _flag_k = FK_TEST; 7114 if (TEST_Z(_flag_a, _flag_b)) goto L_2B057479; /* 0x2B05746B: je 0x2b057479 */ 7115 L_2B05746D: 7116 ecx = MEM32(ebp + 0xC); /* 0x2B05746D: mov ecx, dword ptr [ebp + 0xc] */ 7117 PUSH32(esp, ecx); /* 0x2B057470: push ecx */ 7118 ecx = eax; /* 0x2B057471: mov ecx, eax */ 7119 RECOMP_ICALL(MEM32(0x2B0B587C)); /* 0x2B057473: call dword ptr [0x2b0b587c] */ 7120 RECOMP_FLAGS_IN(); 7121 L_2B057479: 7122 ebp = POP32_VAL(esp); /* 0x2B057479: pop ebp */ 7123 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B05747A: ret 8 */ 7124 RECOMP_REGS_OUT(); 7125 } 7126 7127 void sub_2B057480(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(0x2B057480u); 7136 7137 L_2B057480: 7138 PUSH32(esp, ebp); /* 0x2B057480: push ebp */ 7139 ebp = esp; /* 0x2B057481: mov ebp, esp */ 7140 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B057483: push -1 */ 7141 PUSH32(esp, 0x2B0AFD3Bu); /* 0x2B057485: push 0x2b0afd3b */ 7142 eax = MEM32(FS_BASE + (0)); /* 0x2B05748A: mov eax, dword ptr fs:[0] */ 7143 PUSH32(esp, eax); /* 0x2B057490: push eax */ 7144 MEM32(FS_BASE + (0)) = esp; /* 0x2B057491: mov dword ptr fs:[0], esp */ 7145 PUSH32(esp, ecx); /* 0x2B057498: push ecx */ 7146 eax = MEM32(0x2B0EEB1C); /* 0x2B057499: mov eax, dword ptr [0x2b0eeb1c] */ 7147 /* test eax, eax */ /* 0x2B05749E: test eax, eax */ 7148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7149 _cf = 0; 7150 _flag_k = FK_TEST; 7151 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0574DB; /* 0x2B0574A0: jne 0x2b0574db */ 7152 L_2B0574A2: 7153 PUSH32(esp, 1); /* 0x2B0574A2: push 1 */ 7154 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0574A4: call 0x2b0ab212 */ /* not lifted */ 7155 RECOMP_FLAGS_IN(); 7156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7158 esp = esp + 4; /* 0x2B0574A9: add esp, 4 */ 7159 _flag_k = FK_ADD; 7160 MEM32(ebp + (-0x10)) = eax; /* 0x2B0574AC: mov dword ptr [ebp - 0x10], eax */ 7161 /* test eax, eax */ /* 0x2B0574AF: test eax, eax */ 7162 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7163 _cf = 0; 7164 _flag_k = FK_TEST; 7165 MEM32(ebp + (-0x4)) = 0; /* 0x2B0574B1: mov dword ptr [ebp - 4], 0 */ 7166 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0574D4; /* 0x2B0574B8: je 0x2b0574d4 */ 7167 L_2B0574BA: 7168 ecx = eax; /* 0x2B0574BA: mov ecx, eax */ 7169 RECOMP_ICALL(0x2B057500u); /* 0x2B0574BC: call 0x2b057500 */ /* not lifted */ 7170 RECOMP_FLAGS_IN(); 7171 MEM32(0x2B0EEB1C) = eax; /* 0x2B0574C1: mov dword ptr [0x2b0eeb1c], eax */ 7172 ecx = MEM32(ebp + (-0xC)); /* 0x2B0574C6: mov ecx, dword ptr [ebp - 0xc] */ 7173 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0574C9: mov dword ptr fs:[0], ecx */ 7174 esp = ebp; /* 0x2B0574D0: mov esp, ebp */ 7175 ebp = POP32_VAL(esp); /* 0x2B0574D2: pop ebp */ 7176 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0574D3: ret */ 7177 L_2B0574D4: 7178 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7179 eax = 0; /* 0x2B0574D4: xor eax, eax */ 7180 _cf = 0; 7181 _flag_k = FK_TEST; 7182 MEM32(0x2B0EEB1C) = eax; /* 0x2B0574D6: mov dword ptr [0x2b0eeb1c], eax */ 7183 L_2B0574DB: 7184 ecx = MEM32(ebp + (-0xC)); /* 0x2B0574DB: mov ecx, dword ptr [ebp - 0xc] */ 7185 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0574DE: mov dword ptr fs:[0], ecx */ 7186 esp = ebp; /* 0x2B0574E5: mov esp, ebp */ 7187 ebp = POP32_VAL(esp); /* 0x2B0574E7: pop ebp */ 7188 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0574E8: ret */ 7189 RECOMP_REGS_OUT(); 7190 } 7191 7192 void sub_2B0574F0(void) { 7193 int _fpu_cmp = 0; 7194 uint32_t _cf = 0; 7195 int _df = 1; 7196 uint32_t _flag_k = FK_NONE; 7197 uint32_t _flag_a = 0, _flag_b = 0; 7198 uint32_t _itail_tgt = 0; 7199 RECOMP_REGS_LOCALS 7200 RECOMP_ENTER(0x2B0574F0u); 7201 7202 L_2B0574F0: 7203 eax = MEM32(0x2B0EEB1C); /* 0x2B0574F0: mov eax, dword ptr [0x2b0eeb1c] */ 7204 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0574F5: ret */ 7205 RECOMP_REGS_OUT(); 7206 } 7207 7208 void sub_2B057500(void) { 7209 int _fpu_cmp = 0; 7210 uint32_t _cf = 0; 7211 int _df = 1; 7212 uint32_t _flag_k = FK_NONE; 7213 uint32_t _flag_a = 0, _flag_b = 0; 7214 uint32_t _itail_tgt = 0; 7215 RECOMP_REGS_LOCALS 7216 RECOMP_ENTER(0x2B057500u); 7217 7218 L_2B057500: 7219 PUSH32(esp, ebx); /* 0x2B057500: push ebx */ 7220 PUSH32(esp, esi); /* 0x2B057501: push esi */ 7221 esi = MEM32(0x2B0B53CC); /* 0x2B057502: mov esi, dword ptr [0x2b0b53cc] */ 7222 PUSH32(esp, edi); /* 0x2B057508: push edi */ 7223 ebx = ecx; /* 0x2B057509: mov ebx, ecx */ 7224 RECOMP_ICALL(esi); /* 0x2B05750B: call esi */ 7225 RECOMP_FLAGS_IN(); 7226 ecx = eax; /* 0x2B05750D: mov ecx, eax */ 7227 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B05750F: call dword ptr [0x2b0b5374] */ 7228 RECOMP_FLAGS_IN(); 7229 PUSH32(esp, 0x9C4u); /* 0x2B057515: push 0x9c4 */ 7230 PUSH32(esp, 0x1Bu); /* 0x2B05751A: push 0x1b */ 7231 PUSH32(esp, 1); /* 0x2B05751C: push 1 */ 7232 RECOMP_ICALL(esi); /* 0x2B05751E: call esi */ 7233 RECOMP_FLAGS_IN(); 7234 ecx = eax; /* 0x2B057520: mov ecx, eax */ 7235 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B057522: call dword ptr [0x2b0b5378] */ 7236 RECOMP_FLAGS_IN(); 7237 PUSH32(esp, 0x2B0576C0u); /* 0x2B057528: push 0x2b0576c0 */ 7238 PUSH32(esp, 5); /* 0x2B05752D: push 5 */ 7239 RECOMP_ICALL(esi); /* 0x2B05752F: call esi */ 7240 RECOMP_FLAGS_IN(); 7241 edi = MEM32(0x2B0B5324); /* 0x2B057531: mov edi, dword ptr [0x2b0b5324] */ 7242 ecx = eax; /* 0x2B057537: mov ecx, eax */ 7243 RECOMP_ICALL(edi); /* 0x2B057539: call edi */ 7244 RECOMP_FLAGS_IN(); 7245 PUSH32(esp, 0x2B057720u); /* 0x2B05753B: push 0x2b057720 */ 7246 PUSH32(esp, 6); /* 0x2B057540: push 6 */ 7247 RECOMP_ICALL(esi); /* 0x2B057542: call esi */ 7248 RECOMP_FLAGS_IN(); 7249 ecx = eax; /* 0x2B057544: mov ecx, eax */ 7250 RECOMP_ICALL(edi); /* 0x2B057546: call edi */ 7251 RECOMP_FLAGS_IN(); 7252 PUSH32(esp, 0x2B057770u); /* 0x2B057548: push 0x2b057770 */ 7253 PUSH32(esp, 0x143u); /* 0x2B05754D: push 0x143 */ 7254 RECOMP_ICALL(esi); /* 0x2B057552: call esi */ 7255 RECOMP_FLAGS_IN(); 7256 ecx = eax; /* 0x2B057554: mov ecx, eax */ 7257 RECOMP_ICALL(edi); /* 0x2B057556: call edi */ 7258 RECOMP_FLAGS_IN(); 7259 PUSH32(esp, 0x2B057740u); /* 0x2B057558: push 0x2b057740 */ 7260 PUSH32(esp, 0x7Cu); /* 0x2B05755D: push 0x7c */ 7261 RECOMP_ICALL(esi); /* 0x2B05755F: call esi */ 7262 RECOMP_FLAGS_IN(); 7263 ecx = eax; /* 0x2B057561: mov ecx, eax */ 7264 RECOMP_ICALL(edi); /* 0x2B057563: call edi */ 7265 RECOMP_FLAGS_IN(); 7266 PUSH32(esp, 0x2B057780u); /* 0x2B057565: push 0x2b057780 */ 7267 PUSH32(esp, 0x144u); /* 0x2B05756A: push 0x144 */ 7268 RECOMP_ICALL(esi); /* 0x2B05756F: call esi */ 7269 RECOMP_FLAGS_IN(); 7270 ecx = eax; /* 0x2B057571: mov ecx, eax */ 7271 RECOMP_ICALL(edi); /* 0x2B057573: call edi */ 7272 RECOMP_FLAGS_IN(); 7273 PUSH32(esp, 0x2B057750u); /* 0x2B057575: push 0x2b057750 */ 7274 PUSH32(esp, 0x145u); /* 0x2B05757A: push 0x145 */ 7275 RECOMP_ICALL(esi); /* 0x2B05757F: call esi */ 7276 RECOMP_FLAGS_IN(); 7277 ecx = eax; /* 0x2B057581: mov ecx, eax */ 7278 RECOMP_ICALL(edi); /* 0x2B057583: call edi */ 7279 RECOMP_FLAGS_IN(); 7280 PUSH32(esp, 0x2B057760u); /* 0x2B057585: push 0x2b057760 */ 7281 PUSH32(esp, 0x146u); /* 0x2B05758A: push 0x146 */ 7282 RECOMP_ICALL(esi); /* 0x2B05758F: call esi */ 7283 RECOMP_FLAGS_IN(); 7284 ecx = eax; /* 0x2B057591: mov ecx, eax */ 7285 RECOMP_ICALL(edi); /* 0x2B057593: call edi */ 7286 RECOMP_FLAGS_IN(); 7287 PUSH32(esp, 0x2B057790u); /* 0x2B057595: push 0x2b057790 */ 7288 PUSH32(esp, 0x147u); /* 0x2B05759A: push 0x147 */ 7289 RECOMP_ICALL(esi); /* 0x2B05759F: call esi */ 7290 RECOMP_FLAGS_IN(); 7291 ecx = eax; /* 0x2B0575A1: mov ecx, eax */ 7292 RECOMP_ICALL(edi); /* 0x2B0575A3: call edi */ 7293 RECOMP_FLAGS_IN(); 7294 PUSH32(esp, 0x2B0577B0u); /* 0x2B0575A5: push 0x2b0577b0 */ 7295 PUSH32(esp, 0x148u); /* 0x2B0575AA: push 0x148 */ 7296 RECOMP_ICALL(esi); /* 0x2B0575AF: call esi */ 7297 RECOMP_FLAGS_IN(); 7298 ecx = eax; /* 0x2B0575B1: mov ecx, eax */ 7299 RECOMP_ICALL(edi); /* 0x2B0575B3: call edi */ 7300 RECOMP_FLAGS_IN(); 7301 PUSH32(esp, 0x2B0577D0u); /* 0x2B0575B5: push 0x2b0577d0 */ 7302 PUSH32(esp, 0x149u); /* 0x2B0575BA: push 0x149 */ 7303 RECOMP_ICALL(esi); /* 0x2B0575BF: call esi */ 7304 RECOMP_FLAGS_IN(); 7305 ecx = eax; /* 0x2B0575C1: mov ecx, eax */ 7306 RECOMP_ICALL(edi); /* 0x2B0575C3: call edi */ 7307 RECOMP_FLAGS_IN(); 7308 PUSH32(esp, 0x2B0577F0u); /* 0x2B0575C5: push 0x2b0577f0 */ 7309 PUSH32(esp, 0x14Au); /* 0x2B0575CA: push 0x14a */ 7310 RECOMP_ICALL(esi); /* 0x2B0575CF: call esi */ 7311 RECOMP_FLAGS_IN(); 7312 ecx = eax; /* 0x2B0575D1: mov ecx, eax */ 7313 RECOMP_ICALL(edi); /* 0x2B0575D3: call edi */ 7314 RECOMP_FLAGS_IN(); 7315 PUSH32(esp, 0x2B057810u); /* 0x2B0575D5: push 0x2b057810 */ 7316 PUSH32(esp, 0x14Bu); /* 0x2B0575DA: push 0x14b */ 7317 RECOMP_ICALL(esi); /* 0x2B0575DF: call esi */ 7318 RECOMP_FLAGS_IN(); 7319 ecx = eax; /* 0x2B0575E1: mov ecx, eax */ 7320 RECOMP_ICALL(edi); /* 0x2B0575E3: call edi */ 7321 RECOMP_FLAGS_IN(); 7322 PUSH32(esp, 0x2B057830u); /* 0x2B0575E5: push 0x2b057830 */ 7323 PUSH32(esp, 0x14Cu); /* 0x2B0575EA: push 0x14c */ 7324 RECOMP_ICALL(esi); /* 0x2B0575EF: call esi */ 7325 RECOMP_FLAGS_IN(); 7326 ecx = eax; /* 0x2B0575F1: mov ecx, eax */ 7327 RECOMP_ICALL(edi); /* 0x2B0575F3: call edi */ 7328 RECOMP_FLAGS_IN(); 7329 PUSH32(esp, 0x2B057850u); /* 0x2B0575F5: push 0x2b057850 */ 7330 PUSH32(esp, 0x14Du); /* 0x2B0575FA: push 0x14d */ 7331 RECOMP_ICALL(esi); /* 0x2B0575FF: call esi */ 7332 RECOMP_FLAGS_IN(); 7333 ecx = eax; /* 0x2B057601: mov ecx, eax */ 7334 RECOMP_ICALL(edi); /* 0x2B057603: call edi */ 7335 RECOMP_FLAGS_IN(); 7336 PUSH32(esp, 0x2B057870u); /* 0x2B057605: push 0x2b057870 */ 7337 PUSH32(esp, 0x14Eu); /* 0x2B05760A: push 0x14e */ 7338 RECOMP_ICALL(esi); /* 0x2B05760F: call esi */ 7339 RECOMP_FLAGS_IN(); 7340 ecx = eax; /* 0x2B057611: mov ecx, eax */ 7341 RECOMP_ICALL(edi); /* 0x2B057613: call edi */ 7342 RECOMP_FLAGS_IN(); 7343 PUSH32(esp, 0x2B057890u); /* 0x2B057615: push 0x2b057890 */ 7344 PUSH32(esp, 0x14Fu); /* 0x2B05761A: push 0x14f */ 7345 RECOMP_ICALL(esi); /* 0x2B05761F: call esi */ 7346 RECOMP_FLAGS_IN(); 7347 ecx = eax; /* 0x2B057621: mov ecx, eax */ 7348 RECOMP_ICALL(edi); /* 0x2B057623: call edi */ 7349 RECOMP_FLAGS_IN(); 7350 PUSH32(esp, 0x2B0578A0u); /* 0x2B057625: push 0x2b0578a0 */ 7351 PUSH32(esp, 0x150u); /* 0x2B05762A: push 0x150 */ 7352 RECOMP_ICALL(esi); /* 0x2B05762F: call esi */ 7353 RECOMP_FLAGS_IN(); 7354 ecx = eax; /* 0x2B057631: mov ecx, eax */ 7355 RECOMP_ICALL(edi); /* 0x2B057633: call edi */ 7356 RECOMP_FLAGS_IN(); 7357 PUSH32(esp, 0x2B057940u); /* 0x2B057635: push 0x2b057940 */ 7358 PUSH32(esp, 0x151u); /* 0x2B05763A: push 0x151 */ 7359 RECOMP_ICALL(esi); /* 0x2B05763F: call esi */ 7360 RECOMP_FLAGS_IN(); 7361 ecx = eax; /* 0x2B057641: mov ecx, eax */ 7362 RECOMP_ICALL(edi); /* 0x2B057643: call edi */ 7363 RECOMP_FLAGS_IN(); 7364 PUSH32(esp, 0x2B0579A0u); /* 0x2B057645: push 0x2b0579a0 */ 7365 PUSH32(esp, 0xF8u); /* 0x2B05764A: push 0xf8 */ 7366 RECOMP_ICALL(esi); /* 0x2B05764F: call esi */ 7367 RECOMP_FLAGS_IN(); 7368 ecx = eax; /* 0x2B057651: mov ecx, eax */ 7369 RECOMP_ICALL(edi); /* 0x2B057653: call edi */ 7370 RECOMP_FLAGS_IN(); 7371 PUSH32(esp, 0x2B0579A0u); /* 0x2B057655: push 0x2b0579a0 */ 7372 PUSH32(esp, 0xF9u); /* 0x2B05765A: push 0xf9 */ 7373 RECOMP_ICALL(esi); /* 0x2B05765F: call esi */ 7374 RECOMP_FLAGS_IN(); 7375 ecx = eax; /* 0x2B057661: mov ecx, eax */ 7376 RECOMP_ICALL(edi); /* 0x2B057663: call edi */ 7377 RECOMP_FLAGS_IN(); 7378 PUSH32(esp, 0x2B0579E0u); /* 0x2B057665: push 0x2b0579e0 */ 7379 PUSH32(esp, 0xFAu); /* 0x2B05766A: push 0xfa */ 7380 RECOMP_ICALL(esi); /* 0x2B05766F: call esi */ 7381 RECOMP_FLAGS_IN(); 7382 ecx = eax; /* 0x2B057671: mov ecx, eax */ 7383 RECOMP_ICALL(edi); /* 0x2B057673: call edi */ 7384 RECOMP_FLAGS_IN(); 7385 PUSH32(esp, 0x2B057A30u); /* 0x2B057675: push 0x2b057a30 */ 7386 PUSH32(esp, 0xFBu); /* 0x2B05767A: push 0xfb */ 7387 RECOMP_ICALL(esi); /* 0x2B05767F: call esi */ 7388 RECOMP_FLAGS_IN(); 7389 ecx = eax; /* 0x2B057681: mov ecx, eax */ 7390 RECOMP_ICALL(edi); /* 0x2B057683: call edi */ 7391 RECOMP_FLAGS_IN(); 7392 PUSH32(esp, 0x2B057A30u); /* 0x2B057685: push 0x2b057a30 */ 7393 PUSH32(esp, 0xFCu); /* 0x2B05768A: push 0xfc */ 7394 RECOMP_ICALL(esi); /* 0x2B05768F: call esi */ 7395 RECOMP_FLAGS_IN(); 7396 ecx = eax; /* 0x2B057691: mov ecx, eax */ 7397 RECOMP_ICALL(edi); /* 0x2B057693: call edi */ 7398 RECOMP_FLAGS_IN(); 7399 PUSH32(esp, 0x2B057A40u); /* 0x2B057695: push 0x2b057a40 */ 7400 PUSH32(esp, 0x9Cu); /* 0x2B05769A: push 0x9c */ 7401 RECOMP_ICALL(esi); /* 0x2B05769F: call esi */ 7402 RECOMP_FLAGS_IN(); 7403 ecx = eax; /* 0x2B0576A1: mov ecx, eax */ 7404 RECOMP_ICALL(edi); /* 0x2B0576A3: call edi */ 7405 RECOMP_FLAGS_IN(); 7406 edi = POP32_VAL(esp); /* 0x2B0576A5: pop edi */ 7407 esi = POP32_VAL(esp); /* 0x2B0576A6: pop esi */ 7408 eax = ebx; /* 0x2B0576A7: mov eax, ebx */ 7409 ebx = POP32_VAL(esp); /* 0x2B0576A9: pop ebx */ 7410 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0576AA: ret */ 7411 RECOMP_REGS_OUT(); 7412 } 7413 7414 void sub_2B0576B0(void) { 7415 int _fpu_cmp = 0; 7416 uint32_t _cf = 0; 7417 int _df = 1; 7418 uint32_t _flag_k = FK_NONE; 7419 uint32_t _flag_a = 0, _flag_b = 0; 7420 uint32_t _itail_tgt = 0; 7421 RECOMP_REGS_LOCALS 7422 RECOMP_ENTER(0x2B0576B0u); 7423 7424 L_2B0576B0: 7425 MEM32(0x2B0EEB1C) = 0; /* 0x2B0576B0: mov dword ptr [0x2b0eeb1c], 0 */ 7426 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0576BA: ret */ 7427 RECOMP_REGS_OUT(); 7428 } 7429 7430 void sub_2B0576C0(void) { 7431 int _fpu_cmp = 0; 7432 uint32_t _cf = 0; 7433 int _df = 1; 7434 uint32_t _flag_k = FK_NONE; 7435 uint32_t _flag_a = 0, _flag_b = 0; 7436 uint32_t _itail_tgt = 0; 7437 RECOMP_REGS_LOCALS 7438 RECOMP_ENTER(0x2B0576C0u); 7439 7440 L_2B0576C0: 7441 PUSH32(esp, ebp); /* 0x2B0576C0: push ebp */ 7442 ebp = esp; /* 0x2B0576C1: mov ebp, esp */ 7443 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0576C3: push -1 */ 7444 PUSH32(esp, 0x2B0AFD5Bu); /* 0x2B0576C5: push 0x2b0afd5b */ 7445 eax = MEM32(FS_BASE + (0)); /* 0x2B0576CA: mov eax, dword ptr fs:[0] */ 7446 PUSH32(esp, eax); /* 0x2B0576D0: push eax */ 7447 MEM32(FS_BASE + (0)) = esp; /* 0x2B0576D1: mov dword ptr fs:[0], esp */ 7448 PUSH32(esp, ecx); /* 0x2B0576D8: push ecx */ 7449 PUSH32(esp, 0x34u); /* 0x2B0576D9: push 0x34 */ 7450 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0576DB: call 0x2b0ab212 */ /* not lifted */ 7451 RECOMP_FLAGS_IN(); 7452 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7453 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7454 esp = esp + 4; /* 0x2B0576E0: add esp, 4 */ 7455 _flag_k = FK_ADD; 7456 MEM32(ebp + (-0x10)) = eax; /* 0x2B0576E3: mov dword ptr [ebp - 0x10], eax */ 7457 /* test eax, eax */ /* 0x2B0576E6: test eax, eax */ 7458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7459 _cf = 0; 7460 _flag_k = FK_TEST; 7461 MEM32(ebp + (-0x4)) = 0; /* 0x2B0576E8: mov dword ptr [ebp - 4], 0 */ 7462 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05770B; /* 0x2B0576EF: je 0x2b05770b */ 7463 L_2B0576F1: 7464 ecx = eax; /* 0x2B0576F1: mov ecx, eax */ 7465 RECOMP_ICALL(0x2B056FA0u); /* 0x2B0576F3: call 0x2b056fa0 */ /* not lifted */ 7466 RECOMP_FLAGS_IN(); 7467 MEM32(0x2B0EEB20) = eax; /* 0x2B0576F8: mov dword ptr [0x2b0eeb20], eax */ 7468 ecx = MEM32(ebp + (-0xC)); /* 0x2B0576FD: mov ecx, dword ptr [ebp - 0xc] */ 7469 MEM32(FS_BASE + (0)) = ecx; /* 0x2B057700: mov dword ptr fs:[0], ecx */ 7470 esp = ebp; /* 0x2B057707: mov esp, ebp */ 7471 ebp = POP32_VAL(esp); /* 0x2B057709: pop ebp */ 7472 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05770A: ret */ 7473 L_2B05770B: 7474 ecx = MEM32(ebp + (-0xC)); /* 0x2B05770B: mov ecx, dword ptr [ebp - 0xc] */ 7475 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7476 eax = 0; /* 0x2B05770E: xor eax, eax */ 7477 _cf = 0; 7478 _flag_k = FK_TEST; 7479 MEM32(0x2B0EEB20) = eax; /* 0x2B057710: mov dword ptr [0x2b0eeb20], eax */ 7480 MEM32(FS_BASE + (0)) = ecx; /* 0x2B057715: mov dword ptr fs:[0], ecx */ 7481 esp = ebp; /* 0x2B05771C: mov esp, ebp */ 7482 ebp = POP32_VAL(esp); /* 0x2B05771E: pop ebp */ 7483 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05771F: ret */ 7484 RECOMP_REGS_OUT(); 7485 } 7486 7487 void sub_2B057720(void) { 7488 int _fpu_cmp = 0; 7489 uint32_t _cf = 0; 7490 int _df = 1; 7491 uint32_t _flag_k = FK_NONE; 7492 uint32_t _flag_a = 0, _flag_b = 0; 7493 uint32_t _itail_tgt = 0; 7494 RECOMP_REGS_LOCALS 7495 RECOMP_ENTER(0x2B057720u); 7496 7497 L_2B057720: 7498 ecx = MEM32(0x2B0EEB20); /* 0x2B057720: mov ecx, dword ptr [0x2b0eeb20] */ 7499 /* test ecx, ecx */ /* 0x2B057726: test ecx, ecx */ 7500 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7501 _cf = 0; 7502 _flag_k = FK_TEST; 7503 if (TEST_Z(_flag_a, _flag_b)) goto L_2B057730; /* 0x2B057728: je 0x2b057730 */ 7504 L_2B05772A: 7505 eax = MEM32(ecx); /* 0x2B05772A: mov eax, dword ptr [ecx] */ 7506 PUSH32(esp, 1); /* 0x2B05772C: push 1 */ 7507 RECOMP_ICALL(MEM32(eax)); /* 0x2B05772E: call dword ptr [eax] */ 7508 RECOMP_FLAGS_IN(); 7509 L_2B057730: 7510 MEM32(0x2B0EEB20) = 0; /* 0x2B057730: mov dword ptr [0x2b0eeb20], 0 */ 7511 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05773A: ret */ 7512 RECOMP_REGS_OUT(); 7513 } 7514 7515 void sub_2B057740(void) { 7516 int _fpu_cmp = 0; 7517 uint32_t _cf = 0; 7518 int _df = 1; 7519 uint32_t _flag_k = FK_NONE; 7520 uint32_t _flag_a = 0, _flag_b = 0; 7521 uint32_t _itail_tgt = 0; 7522 RECOMP_REGS_LOCALS 7523 RECOMP_ENTER(0x2B057740u); 7524 7525 L_2B057740: 7526 ecx = MEM32(0x2B0EEB20); /* 0x2B057740: mov ecx, dword ptr [0x2b0eeb20] */ 7527 PUSH32(esp, 0xBu); /* 0x2B057746: push 0xb */ 7528 RECOMP_ICALL(0x2B057410u); /* 0x2B057748: call 0x2b057410 */ /* not lifted */ 7529 RECOMP_FLAGS_IN(); 7530 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05774D: ret */ 7531 RECOMP_REGS_OUT(); 7532 } 7533 7534 void sub_2B057750(void) { 7535 int _fpu_cmp = 0; 7536 uint32_t _cf = 0; 7537 int _df = 1; 7538 uint32_t _flag_k = FK_NONE; 7539 uint32_t _flag_a = 0, _flag_b = 0; 7540 uint32_t _itail_tgt = 0; 7541 RECOMP_REGS_LOCALS 7542 RECOMP_ENTER(0x2B057750u); 7543 7544 L_2B057750: 7545 ecx = MEM32(0x2B0EEB20); /* 0x2B057750: mov ecx, dword ptr [0x2b0eeb20] */ 7546 PUSH32(esp, 0x13u); /* 0x2B057756: push 0x13 */ 7547 RECOMP_ICALL(0x2B057410u); /* 0x2B057758: call 0x2b057410 */ /* not lifted */ 7548 RECOMP_FLAGS_IN(); 7549 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05775D: ret */ 7550 RECOMP_REGS_OUT(); 7551 } 7552 7553 void sub_2B057760(void) { 7554 int _fpu_cmp = 0; 7555 uint32_t _cf = 0; 7556 int _df = 1; 7557 uint32_t _flag_k = FK_NONE; 7558 uint32_t _flag_a = 0, _flag_b = 0; 7559 uint32_t _itail_tgt = 0; 7560 RECOMP_REGS_LOCALS 7561 RECOMP_ENTER(0x2B057760u); 7562 7563 L_2B057760: 7564 ecx = MEM32(0x2B0EEB20); /* 0x2B057760: mov ecx, dword ptr [0x2b0eeb20] */ 7565 PUSH32(esp, 0x4Cu); /* 0x2B057766: push 0x4c */ 7566 RECOMP_ICALL(0x2B057410u); /* 0x2B057768: call 0x2b057410 */ /* not lifted */ 7567 RECOMP_FLAGS_IN(); 7568 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05776D: ret */ 7569 RECOMP_REGS_OUT(); 7570 } 7571 7572 void sub_2B057770(void) { 7573 int _fpu_cmp = 0; 7574 uint32_t _cf = 0; 7575 int _df = 1; 7576 uint32_t _flag_k = FK_NONE; 7577 uint32_t _flag_a = 0, _flag_b = 0; 7578 uint32_t _itail_tgt = 0; 7579 RECOMP_REGS_LOCALS 7580 RECOMP_ENTER(0x2B057770u); 7581 7582 L_2B057770: 7583 ecx = MEM32(0x2B0EEB20); /* 0x2B057770: mov ecx, dword ptr [0x2b0eeb20] */ 7584 PUSH32(esp, 3); /* 0x2B057776: push 3 */ 7585 RECOMP_ICALL(0x2B057410u); /* 0x2B057778: call 0x2b057410 */ /* not lifted */ 7586 RECOMP_FLAGS_IN(); 7587 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05777D: ret */ 7588 RECOMP_REGS_OUT(); 7589 } 7590 7591 void sub_2B057780(void) { 7592 int _fpu_cmp = 0; 7593 uint32_t _cf = 0; 7594 int _df = 1; 7595 uint32_t _flag_k = FK_NONE; 7596 uint32_t _flag_a = 0, _flag_b = 0; 7597 uint32_t _itail_tgt = 0; 7598 RECOMP_REGS_LOCALS 7599 RECOMP_ENTER(0x2B057780u); 7600 7601 L_2B057780: 7602 ecx = MEM32(0x2B0EEB20); /* 0x2B057780: mov ecx, dword ptr [0x2b0eeb20] */ 7603 PUSH32(esp, 0x53u); /* 0x2B057786: push 0x53 */ 7604 RECOMP_ICALL(0x2B057410u); /* 0x2B057788: call 0x2b057410 */ /* not lifted */ 7605 RECOMP_FLAGS_IN(); 7606 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05778D: ret */ 7607 RECOMP_REGS_OUT(); 7608 } 7609 7610 void sub_2B057790(void) { 7611 int _fpu_cmp = 0; 7612 uint32_t _cf = 0; 7613 int _df = 1; 7614 uint32_t _flag_k = FK_NONE; 7615 uint32_t _flag_a = 0, _flag_b = 0; 7616 uint32_t _itail_tgt = 0; 7617 RECOMP_REGS_LOCALS 7618 RECOMP_ENTER(0x2B057790u); 7619 7620 L_2B057790: 7621 ecx = MEM32(0x2B0EEB20); /* 0x2B057790: mov ecx, dword ptr [0x2b0eeb20] */ 7622 PUSH32(esp, 0x92u); /* 0x2B057796: push 0x92 */ 7623 RECOMP_ICALL(0x2B057410u); /* 0x2B05779B: call 0x2b057410 */ /* not lifted */ 7624 RECOMP_FLAGS_IN(); 7625 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0577A0: ret */ 7626 RECOMP_REGS_OUT(); 7627 } 7628 7629 void sub_2B0577B0(void) { 7630 int _fpu_cmp = 0; 7631 uint32_t _cf = 0; 7632 int _df = 1; 7633 uint32_t _flag_k = FK_NONE; 7634 uint32_t _flag_a = 0, _flag_b = 0; 7635 uint32_t _itail_tgt = 0; 7636 RECOMP_REGS_LOCALS 7637 RECOMP_ENTER(0x2B0577B0u); 7638 7639 L_2B0577B0: 7640 ecx = MEM32(0x2B0EEB20); /* 0x2B0577B0: mov ecx, dword ptr [0x2b0eeb20] */ 7641 PUSH32(esp, 0xA7u); /* 0x2B0577B6: push 0xa7 */ 7642 RECOMP_ICALL(0x2B057410u); /* 0x2B0577BB: call 0x2b057410 */ /* not lifted */ 7643 RECOMP_FLAGS_IN(); 7644 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0577C0: ret */ 7645 RECOMP_REGS_OUT(); 7646 } 7647 7648 void sub_2B0577D0(void) { 7649 int _fpu_cmp = 0; 7650 uint32_t _cf = 0; 7651 int _df = 1; 7652 uint32_t _flag_k = FK_NONE; 7653 uint32_t _flag_a = 0, _flag_b = 0; 7654 uint32_t _itail_tgt = 0; 7655 RECOMP_REGS_LOCALS 7656 RECOMP_ENTER(0x2B0577D0u); 7657 7658 L_2B0577D0: 7659 ecx = MEM32(0x2B0EEB20); /* 0x2B0577D0: mov ecx, dword ptr [0x2b0eeb20] */ 7660 PUSH32(esp, 0x94u); /* 0x2B0577D6: push 0x94 */ 7661 RECOMP_ICALL(0x2B057410u); /* 0x2B0577DB: call 0x2b057410 */ /* not lifted */ 7662 RECOMP_FLAGS_IN(); 7663 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0577E0: ret */ 7664 RECOMP_REGS_OUT(); 7665 } 7666 7667 void sub_2B0577F0(void) { 7668 int _fpu_cmp = 0; 7669 uint32_t _cf = 0; 7670 int _df = 1; 7671 uint32_t _flag_k = FK_NONE; 7672 uint32_t _flag_a = 0, _flag_b = 0; 7673 uint32_t _itail_tgt = 0; 7674 RECOMP_REGS_LOCALS 7675 RECOMP_ENTER(0x2B0577F0u); 7676 7677 L_2B0577F0: 7678 ecx = MEM32(0x2B0EEB20); /* 0x2B0577F0: mov ecx, dword ptr [0x2b0eeb20] */ 7679 PUSH32(esp, 0x8Eu); /* 0x2B0577F6: push 0x8e */ 7680 RECOMP_ICALL(0x2B057410u); /* 0x2B0577FB: call 0x2b057410 */ /* not lifted */ 7681 RECOMP_FLAGS_IN(); 7682 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B057800: ret */ 7683 RECOMP_REGS_OUT(); 7684 } 7685 7686 void sub_2B057810(void) { 7687 int _fpu_cmp = 0; 7688 uint32_t _cf = 0; 7689 int _df = 1; 7690 uint32_t _flag_k = FK_NONE; 7691 uint32_t _flag_a = 0, _flag_b = 0; 7692 uint32_t _itail_tgt = 0; 7693 RECOMP_REGS_LOCALS 7694 RECOMP_ENTER(0x2B057810u); 7695 7696 L_2B057810: 7697 ecx = MEM32(0x2B0EEB20); /* 0x2B057810: mov ecx, dword ptr [0x2b0eeb20] */ 7698 PUSH32(esp, 0x93u); /* 0x2B057816: push 0x93 */ 7699 RECOMP_ICALL(0x2B057410u); /* 0x2B05781B: call 0x2b057410 */ /* not lifted */ 7700 RECOMP_FLAGS_IN(); 7701 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B057820: ret */ 7702 RECOMP_REGS_OUT(); 7703 } 7704 7705 void sub_2B057830(void) { 7706 int _fpu_cmp = 0; 7707 uint32_t _cf = 0; 7708 int _df = 1; 7709 uint32_t _flag_k = FK_NONE; 7710 uint32_t _flag_a = 0, _flag_b = 0; 7711 uint32_t _itail_tgt = 0; 7712 RECOMP_REGS_LOCALS 7713 RECOMP_ENTER(0x2B057830u); 7714 7715 L_2B057830: 7716 ecx = MEM32(0x2B0EEB20); /* 0x2B057830: mov ecx, dword ptr [0x2b0eeb20] */ 7717 PUSH32(esp, 0x90u); /* 0x2B057836: push 0x90 */ 7718 RECOMP_ICALL(0x2B057410u); /* 0x2B05783B: call 0x2b057410 */ /* not lifted */ 7719 RECOMP_FLAGS_IN(); 7720 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B057840: ret */ 7721 RECOMP_REGS_OUT(); 7722 } 7723 7724 void sub_2B057850(void) { 7725 int _fpu_cmp = 0; 7726 uint32_t _cf = 0; 7727 int _df = 1; 7728 uint32_t _flag_k = FK_NONE; 7729 uint32_t _flag_a = 0, _flag_b = 0; 7730 uint32_t _itail_tgt = 0; 7731 RECOMP_REGS_LOCALS 7732 RECOMP_ENTER(0x2B057850u); 7733 7734 L_2B057850: 7735 ecx = MEM32(0x2B0EEB20); /* 0x2B057850: mov ecx, dword ptr [0x2b0eeb20] */ 7736 PUSH32(esp, 0x96u); /* 0x2B057856: push 0x96 */ 7737 RECOMP_ICALL(0x2B057410u); /* 0x2B05785B: call 0x2b057410 */ /* not lifted */ 7738 RECOMP_FLAGS_IN(); 7739 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B057860: ret */ 7740 RECOMP_REGS_OUT(); 7741 } 7742 7743 void sub_2B057870(void) { 7744 int _fpu_cmp = 0; 7745 uint32_t _cf = 0; 7746 int _df = 1; 7747 uint32_t _flag_k = FK_NONE; 7748 uint32_t _flag_a = 0, _flag_b = 0; 7749 uint32_t _itail_tgt = 0; 7750 RECOMP_REGS_LOCALS 7751 RECOMP_ENTER(0x2B057870u); 7752 7753 L_2B057870: 7754 ecx = MEM32(0x2B0EEB20); /* 0x2B057870: mov ecx, dword ptr [0x2b0eeb20] */ 7755 PUSH32(esp, 0x97u); /* 0x2B057876: push 0x97 */ 7756 RECOMP_ICALL(0x2B057410u); /* 0x2B05787B: call 0x2b057410 */ /* not lifted */ 7757 RECOMP_FLAGS_IN(); 7758 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B057880: ret */ 7759 RECOMP_REGS_OUT(); 7760 } 7761 7762 void sub_2B057890(void) { 7763 int _fpu_cmp = 0; 7764 uint32_t _cf = 0; 7765 int _df = 1; 7766 uint32_t _flag_k = FK_NONE; 7767 uint32_t _flag_a = 0, _flag_b = 0; 7768 uint32_t _itail_tgt = 0; 7769 RECOMP_REGS_LOCALS 7770 RECOMP_ENTER(0x2B057890u); 7771 7772 L_2B057890: 7773 ecx = MEM32(0x2B0EEB20); /* 0x2B057890: mov ecx, dword ptr [0x2b0eeb20] */ 7774 PUSH32(esp, 0x79u); /* 0x2B057896: push 0x79 */ 7775 RECOMP_ICALL(0x2B057410u); /* 0x2B057898: call 0x2b057410 */ /* not lifted */ 7776 RECOMP_FLAGS_IN(); 7777 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05789D: ret */ 7778 RECOMP_REGS_OUT(); 7779 } 7780 7781 void sub_2B0578A0(void) { 7782 int _fpu_cmp = 0; 7783 uint32_t _cf = 0; 7784 int _df = 1; 7785 uint32_t _flag_k = FK_NONE; 7786 uint32_t _flag_a = 0, _flag_b = 0; 7787 uint32_t _itail_tgt = 0; 7788 RECOMP_REGS_LOCALS 7789 RECOMP_ENTER(0x2B0578A0u); 7790 7791 L_2B0578A0: 7792 PUSH32(esp, ebp); /* 0x2B0578A0: push ebp */ 7793 ebp = esp; /* 0x2B0578A1: mov ebp, esp */ 7794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7796 esp = esp - 8; /* 0x2B0578A3: sub esp, 8 */ 7797 _flag_k = FK_CMP; 7798 eax = MEM32(0x2B0EEB20); /* 0x2B0578A6: mov eax, dword ptr [0x2b0eeb20] */ 7799 /* test eax, eax */ /* 0x2B0578AB: test eax, eax */ 7800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7801 _cf = 0; 7802 _flag_k = FK_TEST; 7803 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05793A; /* 0x2B0578AD: je 0x2b05793a */ 7804 L_2B0578B3: 7805 PUSH32(esp, esi); /* 0x2B0578B3: push esi */ 7806 PUSH32(esp, edi); /* 0x2B0578B4: push edi */ 7807 edi = MEM32(0x2B0B53CC); /* 0x2B0578B5: mov edi, dword ptr [0x2b0b53cc] */ 7808 RECOMP_ICALL(edi); /* 0x2B0578BB: call edi */ 7809 RECOMP_FLAGS_IN(); 7810 ecx = eax; /* 0x2B0578BD: mov ecx, eax */ 7811 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B0578BF: call dword ptr [0x2b0b53a4] */ 7812 RECOMP_FLAGS_IN(); 7813 esi = eax; /* 0x2B0578C5: mov esi, eax */ 7814 eax = ebp + (-0x8); /* 0x2B0578C7: lea eax, [ebp - 8] */ 7815 PUSH32(esp, eax); /* 0x2B0578CA: push eax */ 7816 MEM32(ebp + (-0x8)) = 0; /* 0x2B0578CB: mov dword ptr [ebp - 8], 0 */ 7817 MEM32(ebp + (-0x4)) = 0; /* 0x2B0578D2: mov dword ptr [ebp - 4], 0 */ 7818 RECOMP_ICALL(edi); /* 0x2B0578D9: call edi */ 7819 RECOMP_FLAGS_IN(); 7820 ecx = eax; /* 0x2B0578DB: mov ecx, eax */ 7821 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B0578DD: call dword ptr [0x2b0b53ac] */ 7822 RECOMP_FLAGS_IN(); 7823 PUSH32(esp, 0); /* 0x2B0578E3: push 0 */ 7824 RECOMP_ICALL(MEM32(0x2B0B596C)); /* 0x2B0578E5: call dword ptr [0x2b0b596c] */ 7825 RECOMP_FLAGS_IN(); 7826 ecx = eax; /* 0x2B0578EB: mov ecx, eax */ 7827 RECOMP_ICALL(MEM32(0x2B0B591C)); /* 0x2B0578ED: call dword ptr [0x2b0b591c] */ 7828 RECOMP_FLAGS_IN(); 7829 SET_LO8(eax, MEM8(esi + 0x70)); /* 0x2B0578F3: mov al, byte ptr [esi + 0x70] */ 7830 /* test LO8(eax), LO8(eax) */ /* 0x2B0578F6: test al, al */ 7831 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7832 _cf = 0; 7833 _flag_k = FK_NARROW(FK_TEST, 24); 7834 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05790A; /* 0x2B0578F8: je 0x2b05790a */ 7835 L_2B0578FA: 7836 edx = MEM32(0x2B0EEB20); /* 0x2B0578FA: mov edx, dword ptr [0x2b0eeb20] */ 7837 ecx = ebp + (-0x8); /* 0x2B057900: lea ecx, [ebp - 8] */ 7838 PUSH32(esp, ecx); /* 0x2B057903: push ecx */ 7839 ecx = MEM32(edx + 0x28); /* 0x2B057904: mov ecx, dword ptr [edx + 0x28] */ 7840 PUSH32(esp, esi); /* 0x2B057907: push esi */ 7841 goto L_2B057927; /* 0x2B057908: jmp 0x2b057927 */ 7842 L_2B05790A: 7843 PUSH32(esp, esi); /* 0x2B05790A: push esi */ 7844 RECOMP_ICALL(MEM32(0x2B0B596C)); /* 0x2B05790B: call dword ptr [0x2b0b596c] */ 7845 RECOMP_FLAGS_IN(); 7846 ecx = eax; /* 0x2B057911: mov ecx, eax */ 7847 RECOMP_ICALL(MEM32(0x2B0B5920)); /* 0x2B057913: call dword ptr [0x2b0b5920] */ 7848 RECOMP_FLAGS_IN(); 7849 ecx = MEM32(0x2B0EEB20); /* 0x2B057919: mov ecx, dword ptr [0x2b0eeb20] */ 7850 ecx = MEM32(ecx + 0x28); /* 0x2B05791F: mov ecx, dword ptr [ecx + 0x28] */ 7851 eax = ebp + (-0x8); /* 0x2B057922: lea eax, [ebp - 8] */ 7852 PUSH32(esp, eax); /* 0x2B057925: push eax */ 7853 PUSH32(esp, esi); /* 0x2B057926: push esi */ 7854 L_2B057927: 7855 RECOMP_ICALL(MEM32(0x2B0B5918)); /* 0x2B057927: call dword ptr [0x2b0b5918] */ 7856 RECOMP_FLAGS_IN(); 7857 ecx = MEM32(0x2B0EEB20); /* 0x2B05792D: mov ecx, dword ptr [0x2b0eeb20] */ 7858 RECOMP_ICALL(0x2B057340u); /* 0x2B057933: call 0x2b057340 */ /* not lifted */ 7859 RECOMP_FLAGS_IN(); 7860 edi = POP32_VAL(esp); /* 0x2B057938: pop edi */ 7861 esi = POP32_VAL(esp); /* 0x2B057939: pop esi */ 7862 L_2B05793A: 7863 esp = ebp; /* 0x2B05793A: mov esp, ebp */ 7864 ebp = POP32_VAL(esp); /* 0x2B05793C: pop ebp */ 7865 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05793D: ret */ 7866 RECOMP_REGS_OUT(); 7867 } 7868 7869 void sub_2B057940(void) { 7870 int _fpu_cmp = 0; 7871 uint32_t _cf = 0; 7872 int _df = 1; 7873 uint32_t _flag_k = FK_NONE; 7874 uint32_t _flag_a = 0, _flag_b = 0; 7875 uint32_t _itail_tgt = 0; 7876 RECOMP_REGS_LOCALS 7877 RECOMP_ENTER(0x2B057940u); 7878 7879 L_2B057940: 7880 PUSH32(esp, ebp); /* 0x2B057940: push ebp */ 7881 ebp = esp; /* 0x2B057941: mov ebp, esp */ 7882 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7884 esp = esp - 8; /* 0x2B057943: sub esp, 8 */ 7885 _flag_k = FK_CMP; 7886 eax = MEM32(0x2B0EEB20); /* 0x2B057946: mov eax, dword ptr [0x2b0eeb20] */ 7887 /* test eax, eax */ /* 0x2B05794B: test eax, eax */ 7888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7889 _cf = 0; 7890 _flag_k = FK_TEST; 7891 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05798D; /* 0x2B05794D: je 0x2b05798d */ 7892 L_2B05794F: 7893 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B05794F: call dword ptr [0x2b0b53cc] */ 7894 RECOMP_FLAGS_IN(); 7895 ecx = eax; /* 0x2B057955: mov ecx, eax */ 7896 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B057957: call dword ptr [0x2b0b53a4] */ 7897 RECOMP_FLAGS_IN(); 7898 /* test eax, eax */ /* 0x2B05795D: test eax, eax */ 7899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7900 _cf = 0; 7901 _flag_k = FK_TEST; 7902 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05798D; /* 0x2B05795F: je 0x2b05798d */ 7903 L_2B057961: 7904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 7905 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7906 eax = eax + 0x54u; /* 0x2B057961: add eax, 0x54 */ 7907 _flag_k = FK_ADD; 7908 ecx = ebp + (-0x8); /* 0x2B057964: lea ecx, [ebp - 8] */ 7909 /* cmp ecx, eax */ /* 0x2B057967: cmp ecx, eax */ 7910 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7912 _flag_k = FK_CMP; 7913 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B057972; /* 0x2B057969: je 0x2b057972 */ 7914 L_2B05796B: 7915 ecx = MEM32(eax); /* 0x2B05796B: mov ecx, dword ptr [eax] */ 7916 eax = MEM32(eax + 0x4); /* 0x2B05796D: mov eax, dword ptr [eax + 4] */ 7917 goto L_2B057978; /* 0x2B057970: jmp 0x2b057978 */ 7918 L_2B057972: 7919 eax = MEM32(ebp + (-0x4)); /* 0x2B057972: mov eax, dword ptr [ebp - 4] */ 7920 ecx = MEM32(ebp + (-0x8)); /* 0x2B057975: mov ecx, dword ptr [ebp - 8] */ 7921 L_2B057978: 7922 edx = ebp + (-0x8); /* 0x2B057978: lea edx, [ebp - 8] */ 7923 MEM32(ebp + (-0x8)) = ecx; /* 0x2B05797B: mov dword ptr [ebp - 8], ecx */ 7924 ecx = MEM32(0x2B0EEB20); /* 0x2B05797E: mov ecx, dword ptr [0x2b0eeb20] */ 7925 PUSH32(esp, edx); /* 0x2B057984: push edx */ 7926 MEM32(ebp + (-0x4)) = eax; /* 0x2B057985: mov dword ptr [ebp - 4], eax */ 7927 RECOMP_ICALL(0x2B0573F0u); /* 0x2B057988: call 0x2b0573f0 */ /* not lifted */ 7928 RECOMP_FLAGS_IN(); 7929 L_2B05798D: 7930 esp = ebp; /* 0x2B05798D: mov esp, ebp */ 7931 ebp = POP32_VAL(esp); /* 0x2B05798F: pop ebp */ 7932 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B057990: ret */ 7933 RECOMP_REGS_OUT(); 7934 }