client/game/ddr.dll/lifted-0009.c (811159B)
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_2B0264A0(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(0x2B0264A0u); 17 18 L_2B0264A0: 19 PUSH32(esp, esi); /* 0x2B0264A0: push esi */ 20 esi = ecx; /* 0x2B0264A1: mov esi, ecx */ 21 eax = esi + 0x5C; /* 0x2B0264A3: lea eax, [esi + 0x5c] */ 22 PUSH32(esp, eax); /* 0x2B0264A6: push eax */ 23 ecx = esi + 0x80; /* 0x2B0264A7: lea ecx, [esi + 0x80] */ 24 RECOMP_ICALL(0x2B028880u); /* 0x2B0264AD: call 0x2b028880 */ /* not lifted */ 25 RECOMP_FLAGS_IN(); 26 fp_push(*(float*)&MEM32(eax + 0x10)); /* 0x2B0264B2: fld dword ptr [eax + 0x10] */ 27 _st[0] -= (double)*(float*)ADDR(esi + 0x10); /* 0x2B0264B5: fsub dword ptr [esi + 0x10] */ 28 esi = POP32_VAL(esp); /* 0x2B0264B8: pop esi */ 29 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x10) = _v; } /* 0x2B0264B9: fstp dword ptr [eax + 0x10] */ 30 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0264BC: ret */ 31 RECOMP_REGS_OUT(); 32 } 33 34 void sub_2B0264C0(void) { 35 int _fpu_cmp = 0; 36 uint32_t _cf = 0; 37 int _df = 1; 38 uint32_t _flag_k = FK_NONE; 39 uint32_t _flag_a = 0, _flag_b = 0; 40 uint32_t _itail_tgt = 0; 41 RECOMP_REGS_LOCALS 42 RECOMP_ENTER(0x2B0264C0u); 43 44 L_2B0264C0: 45 goto L_2B027430; /* 0x2B0264C0: jmp 0x2b027430 */ 46 L_2B027430: 47 PUSH32(esp, esi); /* 0x2B027430: push esi */ 48 esi = ecx; /* 0x2B027431: mov esi, ecx */ 49 SET_LO8(eax, MEM8(esi + 0x99)); /* 0x2B027433: mov al, byte ptr [esi + 0x99] */ 50 /* test LO8(eax), LO8(eax) */ /* 0x2B027439: test al, al */ 51 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 52 _cf = 0; 53 _flag_k = FK_NARROW(FK_TEST, 24); 54 if (TEST_Z(_flag_a, _flag_b)) goto L_2B02747C; /* 0x2B02743B: je 0x2b02747c */ 55 L_2B02743D: 56 eax = esi + 0x5C; /* 0x2B02743D: lea eax, [esi + 0x5c] */ 57 PUSH32(esp, eax); /* 0x2B027440: push eax */ 58 ecx = esi + 0x80; /* 0x2B027441: lea ecx, [esi + 0x80] */ 59 RECOMP_ICALL(0x2B028880u); /* 0x2B027447: call 0x2b028880 */ /* not lifted */ 60 RECOMP_FLAGS_IN(); 61 ecx = MEM32(eax + 0x4); /* 0x2B02744C: mov ecx, dword ptr [eax + 4] */ 62 /* test ecx, ecx */ /* 0x2B02744F: test ecx, ecx */ 63 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 64 _cf = 0; 65 _flag_k = FK_TEST; 66 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027465; /* 0x2B027451: jne 0x2b027465 */ 67 L_2B027453: 68 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 69 eax = 0; /* 0x2B027453: xor eax, eax */ 70 _cf = 0; 71 _flag_k = FK_TEST; 72 PUSH32(esp, eax); /* 0x2B027455: push eax */ 73 ecx = esi; /* 0x2B027456: mov ecx, esi */ 74 MEM8(esi + 0x99) = (uint8_t)(LO8(eax)); /* 0x2B027458: mov byte ptr [esi + 0x99], al */ 75 RECOMP_ICALL(0x2B0264F0u); /* 0x2B02745E: call 0x2b0264f0 */ /* not lifted */ 76 RECOMP_FLAGS_IN(); 77 esi = POP32_VAL(esp); /* 0x2B027463: pop esi */ 78 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B027464: ret */ 79 L_2B027465: 80 eax = MEM32(eax + 0x8); /* 0x2B027465: mov eax, dword ptr [eax + 8] */ 81 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 82 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 83 eax = eax - ecx; /* 0x2B027468: sub eax, ecx */ 84 _flag_k = FK_CMP; 85 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B02746A: sar eax, 4 */ 86 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 87 eax = (uint32_t)((int32_t)eax >> 4u); 88 PUSH32(esp, eax); /* 0x2B02746D: push eax */ 89 ecx = esi; /* 0x2B02746E: mov ecx, esi */ 90 MEM8(esi + 0x99) = (uint8_t)(0); /* 0x2B027470: mov byte ptr [esi + 0x99], 0 */ 91 RECOMP_ICALL(0x2B0264F0u); /* 0x2B027477: call 0x2b0264f0 */ /* not lifted */ 92 RECOMP_FLAGS_IN(); 93 L_2B02747C: 94 esi = POP32_VAL(esp); /* 0x2B02747C: pop esi */ 95 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B02747D: ret */ 96 RECOMP_REGS_OUT(); 97 } 98 99 void sub_2B0264D0(void) { 100 int _fpu_cmp = 0; 101 uint32_t _cf = 0; 102 int _df = 1; 103 uint32_t _flag_k = FK_NONE; 104 uint32_t _flag_a = 0, _flag_b = 0; 105 uint32_t _itail_tgt = 0; 106 RECOMP_REGS_LOCALS 107 RECOMP_ENTER(0x2B0264D0u); 108 109 L_2B0264D0: 110 edx = MEM32(ecx + 0x94); /* 0x2B0264D0: mov edx, dword ptr [ecx + 0x94] */ 111 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 112 eax = 0; /* 0x2B0264D6: xor eax, eax */ 113 _cf = 0; 114 _flag_k = FK_TEST; 115 /* test edx, edx */ /* 0x2B0264D8: test edx, edx */ 116 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 117 _cf = 0; 118 _flag_k = FK_TEST; 119 SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B0264DA: sete al */ 120 MEM32(ecx + 0x94) = eax; /* 0x2B0264DD: mov dword ptr [ecx + 0x94], eax */ 121 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0264E3: ret */ 122 RECOMP_REGS_OUT(); 123 } 124 125 void sub_2B0264F0(void) { 126 int _fpu_cmp = 0; 127 uint32_t _cf = 0; 128 int _df = 1; 129 uint32_t _flag_k = FK_NONE; 130 uint32_t _flag_a = 0, _flag_b = 0; 131 uint32_t _itail_tgt = 0; 132 RECOMP_REGS_LOCALS 133 RECOMP_ENTER(0x2B0264F0u); 134 135 L_2B0264F0: 136 PUSH32(esp, ebp); /* 0x2B0264F0: push ebp */ 137 ebp = esp; /* 0x2B0264F1: mov ebp, esp */ 138 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0264F3: push -1 */ 139 PUSH32(esp, 0x2B0ADAA3u); /* 0x2B0264F5: push 0x2b0adaa3 */ 140 eax = MEM32(FS_BASE + (0)); /* 0x2B0264FA: mov eax, dword ptr fs:[0] */ 141 PUSH32(esp, eax); /* 0x2B026500: push eax */ 142 MEM32(FS_BASE + (0)) = esp; /* 0x2B026501: mov dword ptr fs:[0], esp */ 143 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u); 144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 145 esp = esp - 0x78u; /* 0x2B026508: sub esp, 0x78 */ 146 _flag_k = FK_CMP; 147 PUSH32(esp, ebx); /* 0x2B02650B: push ebx */ 148 PUSH32(esp, esi); /* 0x2B02650C: push esi */ 149 ebx = ecx; /* 0x2B02650D: mov ebx, ecx */ 150 eax = ebp + (-0xD); /* 0x2B02650F: lea eax, [ebp - 0xd] */ 151 PUSH32(esp, eax); /* 0x2B026512: push eax */ 152 ecx = ebp + (-0x5C); /* 0x2B026513: lea ecx, [ebp - 0x5c] */ 153 MEM32(ebp + (-0x14)) = ebx; /* 0x2B026516: mov dword ptr [ebp - 0x14], ebx */ 154 RECOMP_ICALL(0x2B0285B0u); /* 0x2B026519: call 0x2b0285b0 */ /* not lifted */ 155 RECOMP_FLAGS_IN(); 156 ecx = ebp + (-0x5C); /* 0x2B02651E: lea ecx, [ebp - 0x5c] */ 157 PUSH32(esp, ecx); /* 0x2B026521: push ecx */ 158 edx = ebx + 0x5C; /* 0x2B026522: lea edx, [ebx + 0x5c] */ 159 PUSH32(esp, edx); /* 0x2B026525: push edx */ 160 ecx = ebp + (-0x84); /* 0x2B026526: lea ecx, [ebp - 0x84] */ 161 MEM32(ebp + (-0x4)) = 0; /* 0x2B02652C: mov dword ptr [ebp - 4], 0 */ 162 RECOMP_ICALL(0x2B029140u); /* 0x2B026533: call 0x2b029140 */ /* not lifted */ 163 RECOMP_FLAGS_IN(); 164 PUSH32(esp, eax); /* 0x2B026538: push eax */ 165 eax = ebp + (-0x1C); /* 0x2B026539: lea eax, [ebp - 0x1c] */ 166 PUSH32(esp, eax); /* 0x2B02653C: push eax */ 167 ecx = ebx + 0x80; /* 0x2B02653D: lea ecx, [ebx + 0x80] */ 168 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B026543: mov byte ptr [ebp - 4], 1 */ 169 RECOMP_ICALL(0x2B028FB0u); /* 0x2B026547: call 0x2b028fb0 */ /* not lifted */ 170 RECOMP_FLAGS_IN(); 171 esi = MEM32(eax); /* 0x2B02654C: mov esi, dword ptr [eax] */ 172 ecx = ebp + (-0x84); /* 0x2B02654E: lea ecx, [ebp - 0x84] */ 173 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B026554: mov byte ptr [ebp - 4], 0 */ 174 RECOMP_ICALL(0x2B028990u); /* 0x2B026558: call 0x2b028990 */ /* not lifted */ 175 RECOMP_FLAGS_IN(); 176 ecx = ebp + (-0x5C); /* 0x2B02655D: lea ecx, [ebp - 0x5c] */ 177 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B026560: mov dword ptr [ebp - 4], 0xffffffff */ 178 RECOMP_ICALL(0x2B01D630u); /* 0x2B026567: call 0x2b01d630 */ /* not lifted */ 179 RECOMP_FLAGS_IN(); 180 SET_LO8(ecx, MEM8(esi + 0x1C)); /* 0x2B02656C: mov cl, byte ptr [esi + 0x1c] */ 181 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1Cu); 182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 183 esi = esi + 0x1Cu; /* 0x2B02656F: add esi, 0x1c */ 184 _flag_k = FK_ADD; 185 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(ecx)); /* 0x2B026572: mov byte ptr [ebp - 0x44], cl */ 186 ecx = esi; /* 0x2B026575: mov ecx, esi */ 187 RECOMP_ICALL(0x2B002FC0u); /* 0x2B026577: call 0x2b002fc0 */ /* not lifted */ 188 RECOMP_FLAGS_IN(); 189 /* test eax, eax */ /* 0x2B02657C: test eax, eax */ 190 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 191 _cf = 0; 192 _flag_k = FK_TEST; 193 if (TEST_NS(_flag_a, _flag_b)) goto L_2B026582; /* 0x2B02657E: jge 0x2b026582 */ 194 L_2B026580: 195 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 196 eax = 0; /* 0x2B026580: xor eax, eax */ 197 _cf = 0; 198 _flag_k = FK_TEST; 199 L_2B026582: 200 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B026582: shl eax, 4 */ 201 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 202 eax = eax << 4u; /* 0x2B026582: shl eax, 4 */ 203 PUSH32(esp, eax); /* 0x2B026585: push eax */ 204 RECOMP_ICALL(0x2B0AB212u); /* 0x2B026586: call 0x2b0ab212 */ /* not lifted */ 205 RECOMP_FLAGS_IN(); 206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 208 esp = esp + 4; /* 0x2B02658B: add esp, 4 */ 209 _flag_k = FK_ADD; 210 MEM32(ebp + (-0x40)) = eax; /* 0x2B02658E: mov dword ptr [ebp - 0x40], eax */ 211 ecx = MEM32(esi + 0x8); /* 0x2B026591: mov ecx, dword ptr [esi + 8] */ 212 edx = MEM32(esi + 0x4); /* 0x2B026594: mov edx, dword ptr [esi + 4] */ 213 PUSH32(esp, eax); /* 0x2B026597: push eax */ 214 PUSH32(esp, ecx); /* 0x2B026598: push ecx */ 215 PUSH32(esp, edx); /* 0x2B026599: push edx */ 216 ecx = ebp + (-0x44); /* 0x2B02659A: lea ecx, [ebp - 0x44] */ 217 RECOMP_ICALL(0x2B01DC30u); /* 0x2B02659D: call 0x2b01dc30 */ /* not lifted */ 218 RECOMP_FLAGS_IN(); 219 MEM32(ebp + (-0x3C)) = eax; /* 0x2B0265A2: mov dword ptr [ebp - 0x3c], eax */ 220 MEM32(ebp + (-0x38)) = eax; /* 0x2B0265A5: mov dword ptr [ebp - 0x38], eax */ 221 edx = MEM32(esi + 0x10); /* 0x2B0265A8: mov edx, dword ptr [esi + 0x10] */ 222 MEM32(ebp + (-0x34)) = edx; /* 0x2B0265AB: mov dword ptr [ebp - 0x34], edx */ 223 ecx = MEM32(esi + 0x14); /* 0x2B0265AE: mov ecx, dword ptr [esi + 0x14] */ 224 MEM32(ebp + (-0x30)) = ecx; /* 0x2B0265B1: mov dword ptr [ebp - 0x30], ecx */ 225 ecx = MEM32(ebp + (-0x40)); /* 0x2B0265B4: mov ecx, dword ptr [ebp - 0x40] */ 226 /* test ecx, ecx */ /* 0x2B0265B7: test ecx, ecx */ 227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 228 _cf = 0; 229 _flag_k = FK_TEST; 230 MEM32(ebp + (-0x4)) = 2; /* 0x2B0265B9: mov dword ptr [ebp - 4], 2 */ 231 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0265C9; /* 0x2B0265C0: je 0x2b0265c9 */ 232 L_2B0265C2: 233 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 235 eax = eax - ecx; /* 0x2B0265C2: sub eax, ecx */ 236 _flag_k = FK_CMP; 237 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0265C4: sar eax, 4 */ 238 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 239 eax = (uint32_t)((int32_t)eax >> 4u); 240 ecx = eax; /* 0x2B0265C7: mov ecx, eax */ 241 L_2B0265C9: 242 fp_push(*(float*)&MEM32(ebx + 0x10)); /* 0x2B0265C9: fld dword ptr [ebx + 0x10] */ 243 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x2B0B63C0)); /* 0x2B0265CC: fcomp qword ptr [0x2b0b63c0] */ 244 fp_pop(); 245 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0265D2: fnstsw ax */ 246 /* test HI8(eax), 0x41u */ /* 0x2B0265D4: test ah, 0x41 */ 247 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 248 _cf = 0; 249 _flag_k = FK_NARROW(FK_TEST, 24); 250 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0265E0; /* 0x2B0265D7: jne 0x2b0265e0 */ 251 L_2B0265D9: 252 eax = 9; /* 0x2B0265D9: mov eax, 9 */ 253 goto L_2B0265E2; /* 0x2B0265DE: jmp 0x2b0265e2 */ 254 L_2B0265E0: 255 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 256 eax = 0; /* 0x2B0265E0: xor eax, eax */ 257 _cf = 0; 258 _flag_k = FK_TEST; 259 L_2B0265E2: 260 edx = MEM32(ebp + 0x8); /* 0x2B0265E2: mov edx, dword ptr [ebp + 8] */ 261 eax = eax + edx + (-0x1); /* 0x2B0265E5: lea eax, [eax + edx - 1] */ 262 /* test eax, eax */ /* 0x2B0265E9: test eax, eax */ 263 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 264 _cf = 0; 265 _flag_k = FK_TEST; 266 if (TEST_S(_flag_a, _flag_b)) goto L_2B026746; /* 0x2B0265EB: jl 0x2b026746 */ 267 L_2B0265F1: 268 /* cmp eax, ecx */ /* 0x2B0265F1: cmp eax, ecx */ 269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 271 _flag_k = FK_CMP; 272 if (CMP_GE(_flag_a, _flag_b)) goto L_2B026746; /* 0x2B0265F3: jge 0x2b026746 */ 273 L_2B0265F9: 274 PUSH32(esp, edi); /* 0x2B0265F9: push edi */ 275 PUSH32(esp, eax); /* 0x2B0265FA: push eax */ 276 eax = ebp + (-0x2C); /* 0x2B0265FB: lea eax, [ebp - 0x2c] */ 277 PUSH32(esp, eax); /* 0x2B0265FE: push eax */ 278 ecx = ebp + (-0x44); /* 0x2B0265FF: lea ecx, [ebp - 0x44] */ 279 RECOMP_ICALL(0x2B0224C0u); /* 0x2B026602: call 0x2b0224c0 */ /* not lifted */ 280 RECOMP_FLAGS_IN(); 281 edi = eax; /* 0x2B026607: mov edi, eax */ 282 esi = ebx + 0x4C; /* 0x2B026609: lea esi, [ebx + 0x4c] */ 283 /* cmp esi, edi */ /* 0x2B02660C: cmp esi, edi */ 284 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 286 _flag_k = FK_CMP; 287 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B02660E: mov byte ptr [ebp - 4], 3 */ 288 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B026713; /* 0x2B026612: je 0x2b026713 */ 289 L_2B026618: 290 eax = MEM32(edi + 0x4); /* 0x2B026618: mov eax, dword ptr [edi + 4] */ 291 /* test eax, eax */ /* 0x2B02661B: test eax, eax */ 292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 293 _cf = 0; 294 _flag_k = FK_TEST; 295 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026623; /* 0x2B02661D: jne 0x2b026623 */ 296 L_2B02661F: 297 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 298 ebx = 0; /* 0x2B02661F: xor ebx, ebx */ 299 _cf = 0; 300 _flag_k = FK_TEST; 301 goto L_2B02662B; /* 0x2B026621: jmp 0x2b02662b */ 302 L_2B026623: 303 ebx = MEM32(edi + 0x8); /* 0x2B026623: mov ebx, dword ptr [edi + 8] */ 304 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 306 ebx = ebx - eax; /* 0x2B026626: sub ebx, eax */ 307 _flag_k = FK_CMP; 308 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x2B026628: sar ebx, 2 */ 309 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 310 ebx = (uint32_t)((int32_t)ebx >> 2u); 311 L_2B02662B: 312 ecx = esi; /* 0x2B02662B: mov ecx, esi */ 313 RECOMP_ICALL(0x2B01DA00u); /* 0x2B02662D: call 0x2b01da00 */ /* not lifted */ 314 RECOMP_FLAGS_IN(); 315 /* cmp ebx, eax */ /* 0x2B026632: cmp ebx, eax */ 316 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 318 _flag_k = FK_CMP; 319 if (CMP_A(_flag_a, _flag_b)) goto L_2B02666B; /* 0x2B026634: ja 0x2b02666b */ 320 L_2B026636: 321 edx = MEM32(esi + 0x4); /* 0x2B026636: mov edx, dword ptr [esi + 4] */ 322 eax = MEM32(edi + 0x8); /* 0x2B026639: mov eax, dword ptr [edi + 8] */ 323 ecx = MEM32(edi + 0x4); /* 0x2B02663C: mov ecx, dword ptr [edi + 4] */ 324 PUSH32(esp, edx); /* 0x2B02663F: push edx */ 325 PUSH32(esp, eax); /* 0x2B026640: push eax */ 326 PUSH32(esp, ecx); /* 0x2B026641: push ecx */ 327 RECOMP_ICALL(0x2B02A820u); /* 0x2B026642: call 0x2b02a820 */ /* not lifted */ 328 RECOMP_FLAGS_IN(); 329 ecx = MEM32(esi + 0x8); /* 0x2B026647: mov ecx, dword ptr [esi + 8] */ 330 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 332 esp = esp + 0xCu; /* 0x2B02664A: add esp, 0xc */ 333 _flag_k = FK_ADD; 334 PUSH32(esp, ecx); /* 0x2B02664D: push ecx */ 335 PUSH32(esp, eax); /* 0x2B02664E: push eax */ 336 ecx = esi; /* 0x2B02664F: mov ecx, esi */ 337 RECOMP_ICALL(0x2B0292C0u); /* 0x2B026651: call 0x2b0292c0 */ /* not lifted */ 338 RECOMP_FLAGS_IN(); 339 ecx = edi; /* 0x2B026656: mov ecx, edi */ 340 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026658: call 0x2b01da00 */ /* not lifted */ 341 RECOMP_FLAGS_IN(); 342 edx = MEM32(esi + 0x4); /* 0x2B02665D: mov edx, dword ptr [esi + 4] */ 343 eax = edx + eax * 4; /* 0x2B026660: lea eax, [edx + eax*4] */ 344 MEM32(esi + 0x8) = eax; /* 0x2B026663: mov dword ptr [esi + 8], eax */ 345 goto L_2B026710; /* 0x2B026666: jmp 0x2b026710 */ 346 L_2B02666B: 347 ecx = edi; /* 0x2B02666B: mov ecx, edi */ 348 RECOMP_ICALL(0x2B01DA00u); /* 0x2B02666D: call 0x2b01da00 */ /* not lifted */ 349 RECOMP_FLAGS_IN(); 350 ecx = esi; /* 0x2B026672: mov ecx, esi */ 351 ebx = eax; /* 0x2B026674: mov ebx, eax */ 352 RECOMP_ICALL(0x2B028F10u); /* 0x2B026676: call 0x2b028f10 */ /* not lifted */ 353 RECOMP_FLAGS_IN(); 354 /* cmp ebx, eax */ /* 0x2B02667B: cmp ebx, eax */ 355 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 357 _flag_k = FK_CMP; 358 if (CMP_A(_flag_a, _flag_b)) goto L_2B0266BF; /* 0x2B02667D: ja 0x2b0266bf */ 359 L_2B02667F: 360 ebx = MEM32(edi + 0x4); /* 0x2B02667F: mov ebx, dword ptr [edi + 4] */ 361 ecx = esi; /* 0x2B026682: mov ecx, esi */ 362 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026684: call 0x2b01da00 */ /* not lifted */ 363 RECOMP_FLAGS_IN(); 364 ecx = MEM32(esi + 0x4); /* 0x2B026689: mov ecx, dword ptr [esi + 4] */ 365 ebx = ebx + eax * 4; /* 0x2B02668C: lea ebx, [ebx + eax*4] */ 366 eax = MEM32(edi + 0x4); /* 0x2B02668F: mov eax, dword ptr [edi + 4] */ 367 PUSH32(esp, ecx); /* 0x2B026692: push ecx */ 368 PUSH32(esp, ebx); /* 0x2B026693: push ebx */ 369 PUSH32(esp, eax); /* 0x2B026694: push eax */ 370 RECOMP_ICALL(0x2B02A820u); /* 0x2B026695: call 0x2b02a820 */ /* not lifted */ 371 RECOMP_FLAGS_IN(); 372 edx = MEM32(esi + 0x8); /* 0x2B02669A: mov edx, dword ptr [esi + 8] */ 373 eax = MEM32(edi + 0x8); /* 0x2B02669D: mov eax, dword ptr [edi + 8] */ 374 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 376 esp = esp + 0xCu; /* 0x2B0266A0: add esp, 0xc */ 377 _flag_k = FK_ADD; 378 PUSH32(esp, edx); /* 0x2B0266A3: push edx */ 379 PUSH32(esp, eax); /* 0x2B0266A4: push eax */ 380 PUSH32(esp, ebx); /* 0x2B0266A5: push ebx */ 381 ecx = esi; /* 0x2B0266A6: mov ecx, esi */ 382 RECOMP_ICALL(0x2B01DA20u); /* 0x2B0266A8: call 0x2b01da20 */ /* not lifted */ 383 RECOMP_FLAGS_IN(); 384 ecx = edi; /* 0x2B0266AD: mov ecx, edi */ 385 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0266AF: call 0x2b01da00 */ /* not lifted */ 386 RECOMP_FLAGS_IN(); 387 ecx = MEM32(esi + 0x4); /* 0x2B0266B4: mov ecx, dword ptr [esi + 4] */ 388 edx = ecx + eax * 4; /* 0x2B0266B7: lea edx, [ecx + eax*4] */ 389 MEM32(esi + 0x8) = edx; /* 0x2B0266BA: mov dword ptr [esi + 8], edx */ 390 goto L_2B026710; /* 0x2B0266BD: jmp 0x2b026710 */ 391 L_2B0266BF: 392 eax = MEM32(esi + 0x8); /* 0x2B0266BF: mov eax, dword ptr [esi + 8] */ 393 ecx = MEM32(esi + 0x4); /* 0x2B0266C2: mov ecx, dword ptr [esi + 4] */ 394 PUSH32(esp, eax); /* 0x2B0266C5: push eax */ 395 PUSH32(esp, ecx); /* 0x2B0266C6: push ecx */ 396 ecx = esi; /* 0x2B0266C7: mov ecx, esi */ 397 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0266C9: call 0x2b0292c0 */ /* not lifted */ 398 RECOMP_FLAGS_IN(); 399 eax = MEM32(esi + 0x4); /* 0x2B0266CE: mov eax, dword ptr [esi + 4] */ 400 PUSH32(esp, eax); /* 0x2B0266D1: push eax */ 401 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0266D2: call 0x2b0ab1ba */ /* not lifted */ 402 RECOMP_FLAGS_IN(); 403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 405 esp = esp + 4; /* 0x2B0266D7: add esp, 4 */ 406 _flag_k = FK_ADD; 407 ecx = edi; /* 0x2B0266DA: mov ecx, edi */ 408 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0266DC: call 0x2b01da00 */ /* not lifted */ 409 RECOMP_FLAGS_IN(); 410 /* test eax, eax */ /* 0x2B0266E1: test eax, eax */ 411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 412 _cf = 0; 413 _flag_k = FK_TEST; 414 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0266E7; /* 0x2B0266E3: jge 0x2b0266e7 */ 415 L_2B0266E5: 416 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 417 eax = 0; /* 0x2B0266E5: xor eax, eax */ 418 _cf = 0; 419 _flag_k = FK_TEST; 420 L_2B0266E7: 421 edx = eax * 4; /* 0x2B0266E7: lea edx, [eax*4] */ 422 PUSH32(esp, edx); /* 0x2B0266EE: push edx */ 423 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0266EF: call 0x2b0ab212 */ /* not lifted */ 424 RECOMP_FLAGS_IN(); 425 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 427 esp = esp + 4; /* 0x2B0266F4: add esp, 4 */ 428 _flag_k = FK_ADD; 429 MEM32(esi + 0x4) = eax; /* 0x2B0266F7: mov dword ptr [esi + 4], eax */ 430 ecx = MEM32(edi + 0x8); /* 0x2B0266FA: mov ecx, dword ptr [edi + 8] */ 431 edi = MEM32(edi + 0x4); /* 0x2B0266FD: mov edi, dword ptr [edi + 4] */ 432 PUSH32(esp, eax); /* 0x2B026700: push eax */ 433 PUSH32(esp, ecx); /* 0x2B026701: push ecx */ 434 PUSH32(esp, edi); /* 0x2B026702: push edi */ 435 ecx = esi; /* 0x2B026703: mov ecx, esi */ 436 RECOMP_ICALL(0x2B01DA20u); /* 0x2B026705: call 0x2b01da20 */ /* not lifted */ 437 RECOMP_FLAGS_IN(); 438 MEM32(esi + 0x8) = eax; /* 0x2B02670A: mov dword ptr [esi + 8], eax */ 439 MEM32(esi + 0xC) = eax; /* 0x2B02670D: mov dword ptr [esi + 0xc], eax */ 440 L_2B026710: 441 ebx = MEM32(ebp + (-0x14)); /* 0x2B026710: mov ebx, dword ptr [ebp - 0x14] */ 442 L_2B026713: 443 eax = MEM32(ebp + (-0x24)); /* 0x2B026713: mov eax, dword ptr [ebp - 0x24] */ 444 ecx = MEM32(ebp + (-0x28)); /* 0x2B026716: mov ecx, dword ptr [ebp - 0x28] */ 445 PUSH32(esp, eax); /* 0x2B026719: push eax */ 446 PUSH32(esp, ecx); /* 0x2B02671A: push ecx */ 447 ecx = ebp + (-0x2C); /* 0x2B02671B: lea ecx, [ebp - 0x2c] */ 448 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B02671E: mov byte ptr [ebp - 4], 2 */ 449 RECOMP_ICALL(0x2B0292C0u); /* 0x2B026722: call 0x2b0292c0 */ /* not lifted */ 450 RECOMP_FLAGS_IN(); 451 edx = MEM32(ebp + (-0x28)); /* 0x2B026727: mov edx, dword ptr [ebp - 0x28] */ 452 PUSH32(esp, edx); /* 0x2B02672A: push edx */ 453 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02672B: call 0x2b0ab1ba */ /* not lifted */ 454 RECOMP_FLAGS_IN(); 455 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 456 eax = 0; /* 0x2B026730: xor eax, eax */ 457 _cf = 0; 458 _flag_k = FK_TEST; 459 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 461 esp = esp + 4; /* 0x2B026732: add esp, 4 */ 462 _flag_k = FK_ADD; 463 ecx = ebx; /* 0x2B026735: mov ecx, ebx */ 464 MEM32(ebp + (-0x28)) = eax; /* 0x2B026737: mov dword ptr [ebp - 0x28], eax */ 465 MEM32(ebp + (-0x24)) = eax; /* 0x2B02673A: mov dword ptr [ebp - 0x24], eax */ 466 MEM32(ebp + (-0x20)) = eax; /* 0x2B02673D: mov dword ptr [ebp - 0x20], eax */ 467 RECOMP_ICALL(0x2B021F30u); /* 0x2B026740: call 0x2b021f30 */ /* not lifted */ 468 RECOMP_FLAGS_IN(); 469 edi = POP32_VAL(esp); /* 0x2B026745: pop edi */ 470 L_2B026746: 471 ecx = ebp + (-0x44); /* 0x2B026746: lea ecx, [ebp - 0x44] */ 472 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B026749: mov dword ptr [ebp - 4], 0xffffffff */ 473 RECOMP_ICALL(0x2B01D630u); /* 0x2B026750: call 0x2b01d630 */ /* not lifted */ 474 RECOMP_FLAGS_IN(); 475 ecx = MEM32(ebp + (-0xC)); /* 0x2B026755: mov ecx, dword ptr [ebp - 0xc] */ 476 esi = POP32_VAL(esp); /* 0x2B026758: pop esi */ 477 ebx = POP32_VAL(esp); /* 0x2B026759: pop ebx */ 478 MEM32(FS_BASE + (0)) = ecx; /* 0x2B02675A: mov dword ptr fs:[0], ecx */ 479 esp = ebp; /* 0x2B026761: mov esp, ebp */ 480 ebp = POP32_VAL(esp); /* 0x2B026763: pop ebp */ 481 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B026764: ret 4 */ 482 RECOMP_REGS_OUT(); 483 } 484 485 void sub_2B026710(void) { 486 int _fpu_cmp = 0; 487 uint32_t _cf = 0; 488 int _df = 1; 489 uint32_t _flag_k = FK_NONE; 490 uint32_t _flag_a = 0, _flag_b = 0; 491 uint32_t _itail_tgt = 0; 492 RECOMP_REGS_LOCALS 493 RECOMP_ENTER(0x2B026710u); 494 495 L_2B026710: 496 ebx = MEM32(ebp + (-0x14)); /* 0x2B026710: mov ebx, dword ptr [ebp - 0x14] */ 497 eax = MEM32(ebp + (-0x24)); /* 0x2B026713: mov eax, dword ptr [ebp - 0x24] */ 498 ecx = MEM32(ebp + (-0x28)); /* 0x2B026716: mov ecx, dword ptr [ebp - 0x28] */ 499 PUSH32(esp, eax); /* 0x2B026719: push eax */ 500 PUSH32(esp, ecx); /* 0x2B02671A: push ecx */ 501 ecx = ebp + (-0x2C); /* 0x2B02671B: lea ecx, [ebp - 0x2c] */ 502 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B02671E: mov byte ptr [ebp - 4], 2 */ 503 RECOMP_ICALL(0x2B0292C0u); /* 0x2B026722: call 0x2b0292c0 */ /* not lifted */ 504 RECOMP_FLAGS_IN(); 505 edx = MEM32(ebp + (-0x28)); /* 0x2B026727: mov edx, dword ptr [ebp - 0x28] */ 506 PUSH32(esp, edx); /* 0x2B02672A: push edx */ 507 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02672B: call 0x2b0ab1ba */ /* not lifted */ 508 RECOMP_FLAGS_IN(); 509 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 510 eax = 0; /* 0x2B026730: xor eax, eax */ 511 _cf = 0; 512 _flag_k = FK_TEST; 513 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 515 esp = esp + 4; /* 0x2B026732: add esp, 4 */ 516 _flag_k = FK_ADD; 517 ecx = ebx; /* 0x2B026735: mov ecx, ebx */ 518 MEM32(ebp + (-0x28)) = eax; /* 0x2B026737: mov dword ptr [ebp - 0x28], eax */ 519 MEM32(ebp + (-0x24)) = eax; /* 0x2B02673A: mov dword ptr [ebp - 0x24], eax */ 520 MEM32(ebp + (-0x20)) = eax; /* 0x2B02673D: mov dword ptr [ebp - 0x20], eax */ 521 RECOMP_ICALL(0x2B021F30u); /* 0x2B026740: call 0x2b021f30 */ /* not lifted */ 522 RECOMP_FLAGS_IN(); 523 edi = POP32_VAL(esp); /* 0x2B026745: pop edi */ 524 ecx = ebp + (-0x44); /* 0x2B026746: lea ecx, [ebp - 0x44] */ 525 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B026749: mov dword ptr [ebp - 4], 0xffffffff */ 526 RECOMP_ICALL(0x2B01D630u); /* 0x2B026750: call 0x2b01d630 */ /* not lifted */ 527 RECOMP_FLAGS_IN(); 528 ecx = MEM32(ebp + (-0xC)); /* 0x2B026755: mov ecx, dword ptr [ebp - 0xc] */ 529 esi = POP32_VAL(esp); /* 0x2B026758: pop esi */ 530 ebx = POP32_VAL(esp); /* 0x2B026759: pop ebx */ 531 MEM32(FS_BASE + (0)) = ecx; /* 0x2B02675A: mov dword ptr fs:[0], ecx */ 532 esp = ebp; /* 0x2B026761: mov esp, ebp */ 533 ebp = POP32_VAL(esp); /* 0x2B026763: pop ebp */ 534 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B026764: ret 4 */ 535 RECOMP_REGS_OUT(); 536 } 537 538 void sub_2B026770(void) { 539 int _fpu_cmp = 0; 540 uint32_t _cf = 0; 541 int _df = 1; 542 uint32_t _flag_k = FK_NONE; 543 uint32_t _flag_a = 0, _flag_b = 0; 544 uint32_t _itail_tgt = 0; 545 RECOMP_REGS_LOCALS 546 RECOMP_ENTER(0x2B026770u); 547 548 L_2B026770: 549 PUSH32(esp, 1); /* 0x2B026770: push 1 */ 550 RECOMP_ICALL(0x2B0264F0u); /* 0x2B026772: call 0x2b0264f0 */ /* not lifted */ 551 RECOMP_FLAGS_IN(); 552 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026777: ret */ 553 RECOMP_REGS_OUT(); 554 } 555 556 void sub_2B026780(void) { 557 int _fpu_cmp = 0; 558 uint32_t _cf = 0; 559 int _df = 1; 560 uint32_t _flag_k = FK_NONE; 561 uint32_t _flag_a = 0, _flag_b = 0; 562 uint32_t _itail_tgt = 0; 563 RECOMP_REGS_LOCALS 564 RECOMP_ENTER(0x2B026780u); 565 566 L_2B026780: 567 PUSH32(esp, 2); /* 0x2B026780: push 2 */ 568 RECOMP_ICALL(0x2B0264F0u); /* 0x2B026782: call 0x2b0264f0 */ /* not lifted */ 569 RECOMP_FLAGS_IN(); 570 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026787: ret */ 571 RECOMP_REGS_OUT(); 572 } 573 574 void sub_2B026790(void) { 575 int _fpu_cmp = 0; 576 uint32_t _cf = 0; 577 int _df = 1; 578 uint32_t _flag_k = FK_NONE; 579 uint32_t _flag_a = 0, _flag_b = 0; 580 uint32_t _itail_tgt = 0; 581 RECOMP_REGS_LOCALS 582 RECOMP_ENTER(0x2B026790u); 583 584 L_2B026790: 585 PUSH32(esp, 3); /* 0x2B026790: push 3 */ 586 RECOMP_ICALL(0x2B0264F0u); /* 0x2B026792: call 0x2b0264f0 */ /* not lifted */ 587 RECOMP_FLAGS_IN(); 588 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026797: ret */ 589 RECOMP_REGS_OUT(); 590 } 591 592 void sub_2B0267A0(void) { 593 int _fpu_cmp = 0; 594 uint32_t _cf = 0; 595 int _df = 1; 596 uint32_t _flag_k = FK_NONE; 597 uint32_t _flag_a = 0, _flag_b = 0; 598 uint32_t _itail_tgt = 0; 599 RECOMP_REGS_LOCALS 600 RECOMP_ENTER(0x2B0267A0u); 601 602 L_2B0267A0: 603 PUSH32(esp, 4); /* 0x2B0267A0: push 4 */ 604 RECOMP_ICALL(0x2B0264F0u); /* 0x2B0267A2: call 0x2b0264f0 */ /* not lifted */ 605 RECOMP_FLAGS_IN(); 606 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0267A7: ret */ 607 RECOMP_REGS_OUT(); 608 } 609 610 void sub_2B0267B0(void) { 611 int _fpu_cmp = 0; 612 uint32_t _cf = 0; 613 int _df = 1; 614 uint32_t _flag_k = FK_NONE; 615 uint32_t _flag_a = 0, _flag_b = 0; 616 uint32_t _itail_tgt = 0; 617 RECOMP_REGS_LOCALS 618 RECOMP_ENTER(0x2B0267B0u); 619 620 L_2B0267B0: 621 PUSH32(esp, 5); /* 0x2B0267B0: push 5 */ 622 RECOMP_ICALL(0x2B0264F0u); /* 0x2B0267B2: call 0x2b0264f0 */ /* not lifted */ 623 RECOMP_FLAGS_IN(); 624 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0267B7: ret */ 625 RECOMP_REGS_OUT(); 626 } 627 628 void sub_2B0267C0(void) { 629 int _fpu_cmp = 0; 630 uint32_t _cf = 0; 631 int _df = 1; 632 uint32_t _flag_k = FK_NONE; 633 uint32_t _flag_a = 0, _flag_b = 0; 634 uint32_t _itail_tgt = 0; 635 RECOMP_REGS_LOCALS 636 RECOMP_ENTER(0x2B0267C0u); 637 638 L_2B0267C0: 639 PUSH32(esp, 6); /* 0x2B0267C0: push 6 */ 640 RECOMP_ICALL(0x2B0264F0u); /* 0x2B0267C2: call 0x2b0264f0 */ /* not lifted */ 641 RECOMP_FLAGS_IN(); 642 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0267C7: ret */ 643 RECOMP_REGS_OUT(); 644 } 645 646 void sub_2B0267D0(void) { 647 int _fpu_cmp = 0; 648 uint32_t _cf = 0; 649 int _df = 1; 650 uint32_t _flag_k = FK_NONE; 651 uint32_t _flag_a = 0, _flag_b = 0; 652 uint32_t _itail_tgt = 0; 653 RECOMP_REGS_LOCALS 654 RECOMP_ENTER(0x2B0267D0u); 655 656 L_2B0267D0: 657 PUSH32(esp, 7); /* 0x2B0267D0: push 7 */ 658 RECOMP_ICALL(0x2B0264F0u); /* 0x2B0267D2: call 0x2b0264f0 */ /* not lifted */ 659 RECOMP_FLAGS_IN(); 660 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0267D7: ret */ 661 RECOMP_REGS_OUT(); 662 } 663 664 void sub_2B0267E0(void) { 665 int _fpu_cmp = 0; 666 uint32_t _cf = 0; 667 int _df = 1; 668 uint32_t _flag_k = FK_NONE; 669 uint32_t _flag_a = 0, _flag_b = 0; 670 uint32_t _itail_tgt = 0; 671 RECOMP_REGS_LOCALS 672 RECOMP_ENTER(0x2B0267E0u); 673 674 L_2B0267E0: 675 PUSH32(esp, 8); /* 0x2B0267E0: push 8 */ 676 RECOMP_ICALL(0x2B0264F0u); /* 0x2B0267E2: call 0x2b0264f0 */ /* not lifted */ 677 RECOMP_FLAGS_IN(); 678 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0267E7: ret */ 679 RECOMP_REGS_OUT(); 680 } 681 682 void sub_2B0267F0(void) { 683 int _fpu_cmp = 0; 684 uint32_t _cf = 0; 685 int _df = 1; 686 uint32_t _flag_k = FK_NONE; 687 uint32_t _flag_a = 0, _flag_b = 0; 688 uint32_t _itail_tgt = 0; 689 RECOMP_REGS_LOCALS 690 RECOMP_ENTER(0x2B0267F0u); 691 692 L_2B0267F0: 693 PUSH32(esp, 9); /* 0x2B0267F0: push 9 */ 694 RECOMP_ICALL(0x2B0264F0u); /* 0x2B0267F2: call 0x2b0264f0 */ /* not lifted */ 695 RECOMP_FLAGS_IN(); 696 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0267F7: ret */ 697 RECOMP_REGS_OUT(); 698 } 699 700 void sub_2B026800(void) { 701 int _fpu_cmp = 0; 702 uint32_t _cf = 0; 703 int _df = 1; 704 uint32_t _flag_k = FK_NONE; 705 uint32_t _flag_a = 0, _flag_b = 0; 706 uint32_t _itail_tgt = 0; 707 RECOMP_REGS_LOCALS 708 RECOMP_ENTER(0x2B026800u); 709 710 L_2B026800: 711 PUSH32(esp, ebp); /* 0x2B026800: push ebp */ 712 ebp = esp; /* 0x2B026801: mov ebp, esp */ 713 PUSH32(esp, ebx); /* 0x2B026803: push ebx */ 714 PUSH32(esp, esi); /* 0x2B026804: push esi */ 715 PUSH32(esp, edi); /* 0x2B026805: push edi */ 716 edi = ecx; /* 0x2B026806: mov edi, ecx */ 717 eax = edi + 0x5C; /* 0x2B026808: lea eax, [edi + 0x5c] */ 718 PUSH32(esp, eax); /* 0x2B02680B: push eax */ 719 ecx = edi + 0x80; /* 0x2B02680C: lea ecx, [edi + 0x80] */ 720 RECOMP_ICALL(0x2B028880u); /* 0x2B026812: call 0x2b028880 */ /* not lifted */ 721 RECOMP_FLAGS_IN(); 722 ecx = eax; /* 0x2B026817: mov ecx, eax */ 723 ebx = MEM32(ecx + 0x4); /* 0x2B026819: mov ebx, dword ptr [ecx + 4] */ 724 /* test ebx, ebx */ /* 0x2B02681C: test ebx, ebx */ 725 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 726 _cf = 0; 727 _flag_k = FK_TEST; 728 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026824; /* 0x2B02681E: jne 0x2b026824 */ 729 L_2B026820: 730 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 731 edx = 0; /* 0x2B026820: xor edx, edx */ 732 _cf = 0; 733 _flag_k = FK_TEST; 734 goto L_2B02682C; /* 0x2B026822: jmp 0x2b02682c */ 735 L_2B026824: 736 edx = MEM32(ecx + 0x8); /* 0x2B026824: mov edx, dword ptr [ecx + 8] */ 737 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 739 edx = edx - ebx; /* 0x2B026827: sub edx, ebx */ 740 _flag_k = FK_CMP; 741 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B026829: sar edx, 4 */ 742 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 743 edx = (uint32_t)((int32_t)edx >> 4u); 744 L_2B02682C: 745 fp_push(*(float*)&MEM32(edi + 0x10)); /* 0x2B02682C: fld dword ptr [edi + 0x10] */ 746 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x2B0B63C0)); /* 0x2B02682F: fcomp qword ptr [0x2b0b63c0] */ 747 fp_pop(); 748 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B026835: fnstsw ax */ 749 /* test HI8(eax), 0x41u */ /* 0x2B026837: test ah, 0x41 */ 750 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 751 _cf = 0; 752 _flag_k = FK_NARROW(FK_TEST, 24); 753 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026843; /* 0x2B02683A: jne 0x2b026843 */ 754 L_2B02683C: 755 esi = 9; /* 0x2B02683C: mov esi, 9 */ 756 goto L_2B026845; /* 0x2B026841: jmp 0x2b026845 */ 757 L_2B026843: 758 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 759 esi = 0; /* 0x2B026843: xor esi, esi */ 760 _cf = 0; 761 _flag_k = FK_TEST; 762 L_2B026845: 763 eax = MEM32(ebp + 0x8); /* 0x2B026845: mov eax, dword ptr [ebp + 8] */ 764 esi = esi + eax + (-0x1); /* 0x2B026848: lea esi, [esi + eax - 1] */ 765 /* test esi, esi */ /* 0x2B02684C: test esi, esi */ 766 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 767 _cf = 0; 768 _flag_k = FK_TEST; 769 if (TEST_S(_flag_a, _flag_b)) goto L_2B026963; /* 0x2B02684E: jl 0x2b026963 */ 770 L_2B026854: 771 /* cmp esi, edx */ /* 0x2B026854: cmp esi, edx */ 772 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 774 _flag_k = FK_CMP; 775 if (CMP_GE(_flag_a, _flag_b)) goto L_2B026963; /* 0x2B026856: jge 0x2b026963 */ 776 L_2B02685C: 777 if (4u) _cf = (((esi) >> 28) & 1u); /* 0x2B02685C: shl esi, 4 */ 778 if (4u) { _flag_a = recomp_flags_pack((esi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 779 esi = esi << 4u; /* 0x2B02685C: shl esi, 4 */ 780 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x4Cu); 781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 782 edi = edi + 0x4Cu; /* 0x2B02685F: add edi, 0x4c */ 783 _flag_k = FK_ADD; 784 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 786 esi = esi + ebx; /* 0x2B026862: add esi, ebx */ 787 _flag_k = FK_ADD; 788 /* cmp esi, edi */ /* 0x2B026864: cmp esi, edi */ 789 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 791 _flag_k = FK_CMP; 792 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B026972; /* 0x2B026866: je 0x2b026972 */ 793 L_2B02686C: 794 ebx = MEM32(edi + 0x4); /* 0x2B02686C: mov ebx, dword ptr [edi + 4] */ 795 /* test ebx, ebx */ /* 0x2B02686F: test ebx, ebx */ 796 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 797 _cf = 0; 798 _flag_k = FK_TEST; 799 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026877; /* 0x2B026871: jne 0x2b026877 */ 800 L_2B026873: 801 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 802 edx = 0; /* 0x2B026873: xor edx, edx */ 803 _cf = 0; 804 _flag_k = FK_TEST; 805 goto L_2B02687F; /* 0x2B026875: jmp 0x2b02687f */ 806 L_2B026877: 807 edx = MEM32(edi + 0x8); /* 0x2B026877: mov edx, dword ptr [edi + 8] */ 808 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 810 edx = edx - ebx; /* 0x2B02687A: sub edx, ebx */ 811 _flag_k = FK_CMP; 812 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2B02687C: sar edx, 2 */ 813 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 814 edx = (uint32_t)((int32_t)edx >> 2u); 815 L_2B02687F: 816 ecx = MEM32(esi + 0x4); /* 0x2B02687F: mov ecx, dword ptr [esi + 4] */ 817 /* test ecx, ecx */ /* 0x2B026882: test ecx, ecx */ 818 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 819 _cf = 0; 820 _flag_k = FK_TEST; 821 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02688A; /* 0x2B026884: jne 0x2b02688a */ 822 L_2B026886: 823 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 824 eax = 0; /* 0x2B026886: xor eax, eax */ 825 _cf = 0; 826 _flag_k = FK_TEST; 827 goto L_2B026892; /* 0x2B026888: jmp 0x2b026892 */ 828 L_2B02688A: 829 eax = MEM32(esi + 0x8); /* 0x2B02688A: mov eax, dword ptr [esi + 8] */ 830 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 831 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 832 eax = eax - ecx; /* 0x2B02688D: sub eax, ecx */ 833 _flag_k = FK_CMP; 834 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2B02688F: sar eax, 2 */ 835 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 836 eax = (uint32_t)((int32_t)eax >> 2u); 837 L_2B026892: 838 /* cmp edx, eax */ /* 0x2B026892: cmp edx, eax */ 839 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 841 _flag_k = FK_CMP; 842 if (CMP_A(_flag_a, _flag_b)) goto L_2B0268B2; /* 0x2B026894: ja 0x2b0268b2 */ 843 L_2B026896: 844 eax = MEM32(edi + 0x8); /* 0x2B026896: mov eax, dword ptr [edi + 8] */ 845 PUSH32(esp, ecx); /* 0x2B026899: push ecx */ 846 PUSH32(esp, eax); /* 0x2B02689A: push eax */ 847 PUSH32(esp, ebx); /* 0x2B02689B: push ebx */ 848 RECOMP_ICALL(0x2B02A820u); /* 0x2B02689C: call 0x2b02a820 */ /* not lifted */ 849 RECOMP_FLAGS_IN(); 850 ecx = MEM32(esi + 0x8); /* 0x2B0268A1: mov ecx, dword ptr [esi + 8] */ 851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 853 esp = esp + 0xCu; /* 0x2B0268A4: add esp, 0xc */ 854 _flag_k = FK_ADD; 855 PUSH32(esp, ecx); /* 0x2B0268A7: push ecx */ 856 PUSH32(esp, eax); /* 0x2B0268A8: push eax */ 857 ecx = esi; /* 0x2B0268A9: mov ecx, esi */ 858 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0268AB: call 0x2b0292c0 */ /* not lifted */ 859 RECOMP_FLAGS_IN(); 860 goto L_2B0268F4; /* 0x2B0268B0: jmp 0x2b0268f4 */ 861 L_2B0268B2: 862 ecx = esi; /* 0x2B0268B2: mov ecx, esi */ 863 RECOMP_ICALL(0x2B028F10u); /* 0x2B0268B4: call 0x2b028f10 */ /* not lifted */ 864 RECOMP_FLAGS_IN(); 865 ecx = edi; /* 0x2B0268B9: mov ecx, edi */ 866 ebx = eax; /* 0x2B0268BB: mov ebx, eax */ 867 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0268BD: call 0x2b01da00 */ /* not lifted */ 868 RECOMP_FLAGS_IN(); 869 /* cmp eax, ebx */ /* 0x2B0268C2: cmp eax, ebx */ 870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 872 _flag_k = FK_CMP; 873 if (CMP_A(_flag_a, _flag_b)) goto L_2B02690B; /* 0x2B0268C4: ja 0x2b02690b */ 874 L_2B0268C6: 875 ebx = MEM32(edi + 0x4); /* 0x2B0268C6: mov ebx, dword ptr [edi + 4] */ 876 ecx = esi; /* 0x2B0268C9: mov ecx, esi */ 877 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0268CB: call 0x2b01da00 */ /* not lifted */ 878 RECOMP_FLAGS_IN(); 879 ecx = MEM32(esi + 0x4); /* 0x2B0268D0: mov ecx, dword ptr [esi + 4] */ 880 edx = MEM32(edi + 0x4); /* 0x2B0268D3: mov edx, dword ptr [edi + 4] */ 881 PUSH32(esp, ecx); /* 0x2B0268D6: push ecx */ 882 ebx = ebx + eax * 4; /* 0x2B0268D7: lea ebx, [ebx + eax*4] */ 883 PUSH32(esp, ebx); /* 0x2B0268DA: push ebx */ 884 PUSH32(esp, edx); /* 0x2B0268DB: push edx */ 885 RECOMP_ICALL(0x2B02A820u); /* 0x2B0268DC: call 0x2b02a820 */ /* not lifted */ 886 RECOMP_FLAGS_IN(); 887 eax = MEM32(esi + 0x8); /* 0x2B0268E1: mov eax, dword ptr [esi + 8] */ 888 ecx = MEM32(edi + 0x8); /* 0x2B0268E4: mov ecx, dword ptr [edi + 8] */ 889 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 890 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 891 esp = esp + 0xCu; /* 0x2B0268E7: add esp, 0xc */ 892 _flag_k = FK_ADD; 893 PUSH32(esp, eax); /* 0x2B0268EA: push eax */ 894 PUSH32(esp, ecx); /* 0x2B0268EB: push ecx */ 895 PUSH32(esp, ebx); /* 0x2B0268EC: push ebx */ 896 ecx = esi; /* 0x2B0268ED: mov ecx, esi */ 897 RECOMP_ICALL(0x2B01DA20u); /* 0x2B0268EF: call 0x2b01da20 */ /* not lifted */ 898 RECOMP_FLAGS_IN(); 899 L_2B0268F4: 900 ecx = edi; /* 0x2B0268F4: mov ecx, edi */ 901 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0268F6: call 0x2b01da00 */ /* not lifted */ 902 RECOMP_FLAGS_IN(); 903 edx = MEM32(esi + 0x4); /* 0x2B0268FB: mov edx, dword ptr [esi + 4] */ 904 eax = edx + eax * 4; /* 0x2B0268FE: lea eax, [edx + eax*4] */ 905 edi = POP32_VAL(esp); /* 0x2B026901: pop edi */ 906 MEM32(esi + 0x8) = eax; /* 0x2B026902: mov dword ptr [esi + 8], eax */ 907 esi = POP32_VAL(esp); /* 0x2B026905: pop esi */ 908 ebx = POP32_VAL(esp); /* 0x2B026906: pop ebx */ 909 ebp = POP32_VAL(esp); /* 0x2B026907: pop ebp */ 910 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B026908: ret 4 */ 911 L_2B02690B: 912 ecx = MEM32(esi + 0x8); /* 0x2B02690B: mov ecx, dword ptr [esi + 8] */ 913 edx = MEM32(esi + 0x4); /* 0x2B02690E: mov edx, dword ptr [esi + 4] */ 914 PUSH32(esp, ecx); /* 0x2B026911: push ecx */ 915 PUSH32(esp, edx); /* 0x2B026912: push edx */ 916 ecx = esi; /* 0x2B026913: mov ecx, esi */ 917 RECOMP_ICALL(0x2B0292C0u); /* 0x2B026915: call 0x2b0292c0 */ /* not lifted */ 918 RECOMP_FLAGS_IN(); 919 eax = MEM32(esi + 0x4); /* 0x2B02691A: mov eax, dword ptr [esi + 4] */ 920 PUSH32(esp, eax); /* 0x2B02691D: push eax */ 921 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02691E: call 0x2b0ab1ba */ /* not lifted */ 922 RECOMP_FLAGS_IN(); 923 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 924 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 925 esp = esp + 4; /* 0x2B026923: add esp, 4 */ 926 _flag_k = FK_ADD; 927 ecx = edi; /* 0x2B026926: mov ecx, edi */ 928 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026928: call 0x2b01da00 */ /* not lifted */ 929 RECOMP_FLAGS_IN(); 930 /* test eax, eax */ /* 0x2B02692D: test eax, eax */ 931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 932 _cf = 0; 933 _flag_k = FK_TEST; 934 if (TEST_NS(_flag_a, _flag_b)) goto L_2B026933; /* 0x2B02692F: jge 0x2b026933 */ 935 L_2B026931: 936 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 937 eax = 0; /* 0x2B026931: xor eax, eax */ 938 _cf = 0; 939 _flag_k = FK_TEST; 940 L_2B026933: 941 ecx = eax * 4; /* 0x2B026933: lea ecx, [eax*4] */ 942 PUSH32(esp, ecx); /* 0x2B02693A: push ecx */ 943 RECOMP_ICALL(0x2B0AB212u); /* 0x2B02693B: call 0x2b0ab212 */ /* not lifted */ 944 RECOMP_FLAGS_IN(); 945 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 947 esp = esp + 4; /* 0x2B026940: add esp, 4 */ 948 _flag_k = FK_ADD; 949 MEM32(esi + 0x4) = eax; /* 0x2B026943: mov dword ptr [esi + 4], eax */ 950 ecx = MEM32(edi + 0x8); /* 0x2B026946: mov ecx, dword ptr [edi + 8] */ 951 edi = MEM32(edi + 0x4); /* 0x2B026949: mov edi, dword ptr [edi + 4] */ 952 PUSH32(esp, eax); /* 0x2B02694C: push eax */ 953 PUSH32(esp, ecx); /* 0x2B02694D: push ecx */ 954 PUSH32(esp, edi); /* 0x2B02694E: push edi */ 955 ecx = esi; /* 0x2B02694F: mov ecx, esi */ 956 RECOMP_ICALL(0x2B01DA20u); /* 0x2B026951: call 0x2b01da20 */ /* not lifted */ 957 RECOMP_FLAGS_IN(); 958 edi = POP32_VAL(esp); /* 0x2B026956: pop edi */ 959 MEM32(esi + 0x8) = eax; /* 0x2B026957: mov dword ptr [esi + 8], eax */ 960 MEM32(esi + 0xC) = eax; /* 0x2B02695A: mov dword ptr [esi + 0xc], eax */ 961 esi = POP32_VAL(esp); /* 0x2B02695D: pop esi */ 962 ebx = POP32_VAL(esp); /* 0x2B02695E: pop ebx */ 963 ebp = POP32_VAL(esp); /* 0x2B02695F: pop ebp */ 964 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B026960: ret 4 */ 965 L_2B026963: 966 edx = MEM32(ecx + 0x8); /* 0x2B026963: mov edx, dword ptr [ecx + 8] */ 967 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x4Cu); 968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 969 edi = edi + 0x4Cu; /* 0x2B026966: add edi, 0x4c */ 970 _flag_k = FK_ADD; 971 PUSH32(esp, edi); /* 0x2B026969: push edi */ 972 PUSH32(esp, 1); /* 0x2B02696A: push 1 */ 973 PUSH32(esp, edx); /* 0x2B02696C: push edx */ 974 RECOMP_ICALL(0x2B01DEA0u); /* 0x2B02696D: call 0x2b01dea0 */ /* not lifted */ 975 RECOMP_FLAGS_IN(); 976 L_2B026972: 977 edi = POP32_VAL(esp); /* 0x2B026972: pop edi */ 978 esi = POP32_VAL(esp); /* 0x2B026973: pop esi */ 979 ebx = POP32_VAL(esp); /* 0x2B026974: pop ebx */ 980 ebp = POP32_VAL(esp); /* 0x2B026975: pop ebp */ 981 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B026976: ret 4 */ 982 RECOMP_REGS_OUT(); 983 } 984 985 void sub_2B026980(void) { 986 int _fpu_cmp = 0; 987 uint32_t _cf = 0; 988 int _df = 1; 989 uint32_t _flag_k = FK_NONE; 990 uint32_t _flag_a = 0, _flag_b = 0; 991 uint32_t _itail_tgt = 0; 992 RECOMP_REGS_LOCALS 993 RECOMP_ENTER(0x2B026980u); 994 995 L_2B026980: 996 PUSH32(esp, 1); /* 0x2B026980: push 1 */ 997 RECOMP_ICALL(0x2B026800u); /* 0x2B026982: call 0x2b026800 */ /* not lifted */ 998 RECOMP_FLAGS_IN(); 999 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026987: ret */ 1000 RECOMP_REGS_OUT(); 1001 } 1002 1003 void sub_2B026990(void) { 1004 int _fpu_cmp = 0; 1005 uint32_t _cf = 0; 1006 int _df = 1; 1007 uint32_t _flag_k = FK_NONE; 1008 uint32_t _flag_a = 0, _flag_b = 0; 1009 uint32_t _itail_tgt = 0; 1010 RECOMP_REGS_LOCALS 1011 RECOMP_ENTER(0x2B026990u); 1012 1013 L_2B026990: 1014 PUSH32(esp, 2); /* 0x2B026990: push 2 */ 1015 RECOMP_ICALL(0x2B026800u); /* 0x2B026992: call 0x2b026800 */ /* not lifted */ 1016 RECOMP_FLAGS_IN(); 1017 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026997: ret */ 1018 RECOMP_REGS_OUT(); 1019 } 1020 1021 void sub_2B0269A0(void) { 1022 int _fpu_cmp = 0; 1023 uint32_t _cf = 0; 1024 int _df = 1; 1025 uint32_t _flag_k = FK_NONE; 1026 uint32_t _flag_a = 0, _flag_b = 0; 1027 uint32_t _itail_tgt = 0; 1028 RECOMP_REGS_LOCALS 1029 RECOMP_ENTER(0x2B0269A0u); 1030 1031 L_2B0269A0: 1032 PUSH32(esp, 3); /* 0x2B0269A0: push 3 */ 1033 RECOMP_ICALL(0x2B026800u); /* 0x2B0269A2: call 0x2b026800 */ /* not lifted */ 1034 RECOMP_FLAGS_IN(); 1035 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0269A7: ret */ 1036 RECOMP_REGS_OUT(); 1037 } 1038 1039 void sub_2B0269B0(void) { 1040 int _fpu_cmp = 0; 1041 uint32_t _cf = 0; 1042 int _df = 1; 1043 uint32_t _flag_k = FK_NONE; 1044 uint32_t _flag_a = 0, _flag_b = 0; 1045 uint32_t _itail_tgt = 0; 1046 RECOMP_REGS_LOCALS 1047 RECOMP_ENTER(0x2B0269B0u); 1048 1049 L_2B0269B0: 1050 PUSH32(esp, 4); /* 0x2B0269B0: push 4 */ 1051 RECOMP_ICALL(0x2B026800u); /* 0x2B0269B2: call 0x2b026800 */ /* not lifted */ 1052 RECOMP_FLAGS_IN(); 1053 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0269B7: ret */ 1054 RECOMP_REGS_OUT(); 1055 } 1056 1057 void sub_2B0269C0(void) { 1058 int _fpu_cmp = 0; 1059 uint32_t _cf = 0; 1060 int _df = 1; 1061 uint32_t _flag_k = FK_NONE; 1062 uint32_t _flag_a = 0, _flag_b = 0; 1063 uint32_t _itail_tgt = 0; 1064 RECOMP_REGS_LOCALS 1065 RECOMP_ENTER(0x2B0269C0u); 1066 1067 L_2B0269C0: 1068 PUSH32(esp, 5); /* 0x2B0269C0: push 5 */ 1069 RECOMP_ICALL(0x2B026800u); /* 0x2B0269C2: call 0x2b026800 */ /* not lifted */ 1070 RECOMP_FLAGS_IN(); 1071 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0269C7: ret */ 1072 RECOMP_REGS_OUT(); 1073 } 1074 1075 void sub_2B0269D0(void) { 1076 int _fpu_cmp = 0; 1077 uint32_t _cf = 0; 1078 int _df = 1; 1079 uint32_t _flag_k = FK_NONE; 1080 uint32_t _flag_a = 0, _flag_b = 0; 1081 uint32_t _itail_tgt = 0; 1082 RECOMP_REGS_LOCALS 1083 RECOMP_ENTER(0x2B0269D0u); 1084 1085 L_2B0269D0: 1086 PUSH32(esp, 6); /* 0x2B0269D0: push 6 */ 1087 RECOMP_ICALL(0x2B026800u); /* 0x2B0269D2: call 0x2b026800 */ /* not lifted */ 1088 RECOMP_FLAGS_IN(); 1089 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0269D7: ret */ 1090 RECOMP_REGS_OUT(); 1091 } 1092 1093 void sub_2B0269E0(void) { 1094 int _fpu_cmp = 0; 1095 uint32_t _cf = 0; 1096 int _df = 1; 1097 uint32_t _flag_k = FK_NONE; 1098 uint32_t _flag_a = 0, _flag_b = 0; 1099 uint32_t _itail_tgt = 0; 1100 RECOMP_REGS_LOCALS 1101 RECOMP_ENTER(0x2B0269E0u); 1102 1103 L_2B0269E0: 1104 PUSH32(esp, 7); /* 0x2B0269E0: push 7 */ 1105 RECOMP_ICALL(0x2B026800u); /* 0x2B0269E2: call 0x2b026800 */ /* not lifted */ 1106 RECOMP_FLAGS_IN(); 1107 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0269E7: ret */ 1108 RECOMP_REGS_OUT(); 1109 } 1110 1111 void sub_2B0269F0(void) { 1112 int _fpu_cmp = 0; 1113 uint32_t _cf = 0; 1114 int _df = 1; 1115 uint32_t _flag_k = FK_NONE; 1116 uint32_t _flag_a = 0, _flag_b = 0; 1117 uint32_t _itail_tgt = 0; 1118 RECOMP_REGS_LOCALS 1119 RECOMP_ENTER(0x2B0269F0u); 1120 1121 L_2B0269F0: 1122 PUSH32(esp, 8); /* 0x2B0269F0: push 8 */ 1123 RECOMP_ICALL(0x2B026800u); /* 0x2B0269F2: call 0x2b026800 */ /* not lifted */ 1124 RECOMP_FLAGS_IN(); 1125 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0269F7: ret */ 1126 RECOMP_REGS_OUT(); 1127 } 1128 1129 void sub_2B026A00(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(0x2B026A00u); 1138 1139 L_2B026A00: 1140 PUSH32(esp, 9); /* 0x2B026A00: push 9 */ 1141 RECOMP_ICALL(0x2B026800u); /* 0x2B026A02: call 0x2b026800 */ /* not lifted */ 1142 RECOMP_FLAGS_IN(); 1143 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026A07: ret */ 1144 RECOMP_REGS_OUT(); 1145 } 1146 1147 void sub_2B026A10(void) { 1148 int _fpu_cmp = 0; 1149 uint32_t _cf = 0; 1150 int _df = 1; 1151 uint32_t _flag_k = FK_NONE; 1152 uint32_t _flag_a = 0, _flag_b = 0; 1153 uint32_t _itail_tgt = 0; 1154 RECOMP_REGS_LOCALS 1155 RECOMP_ENTER(0x2B026A10u); 1156 1157 L_2B026A10: 1158 PUSH32(esp, ebp); /* 0x2B026A10: push ebp */ 1159 ebp = esp; /* 0x2B026A11: mov ebp, esp */ 1160 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B026A13: push -1 */ 1161 PUSH32(esp, 0x2B0ADAB8u); /* 0x2B026A15: push 0x2b0adab8 */ 1162 eax = MEM32(FS_BASE + (0)); /* 0x2B026A1A: mov eax, dword ptr fs:[0] */ 1163 PUSH32(esp, eax); /* 0x2B026A20: push eax */ 1164 MEM32(FS_BASE + (0)) = esp; /* 0x2B026A21: mov dword ptr fs:[0], esp */ 1165 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1167 esp = esp - 8; /* 0x2B026A28: sub esp, 8 */ 1168 _flag_k = FK_CMP; 1169 PUSH32(esp, ebx); /* 0x2B026A2B: push ebx */ 1170 PUSH32(esp, esi); /* 0x2B026A2C: push esi */ 1171 PUSH32(esp, edi); /* 0x2B026A2D: push edi */ 1172 edi = ecx; /* 0x2B026A2E: mov edi, ecx */ 1173 MEM32(ebp + (-0x10)) = edi; /* 0x2B026A30: mov dword ptr [ebp - 0x10], edi */ 1174 eax = ebp + 0x8; /* 0x2B026A33: lea eax, [ebp + 8] */ 1175 PUSH32(esp, eax); /* 0x2B026A36: push eax */ 1176 ecx = ebp + (-0x14); /* 0x2B026A37: lea ecx, [ebp - 0x14] */ 1177 esi = edi + 0x80; /* 0x2B026A3A: lea esi, [edi + 0x80] */ 1178 PUSH32(esp, ecx); /* 0x2B026A40: push ecx */ 1179 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1180 ebx = 0; /* 0x2B026A41: xor ebx, ebx */ 1181 _cf = 0; 1182 _flag_k = FK_TEST; 1183 ecx = esi; /* 0x2B026A43: mov ecx, esi */ 1184 MEM32(ebp + (-0x4)) = ebx; /* 0x2B026A45: mov dword ptr [ebp - 4], ebx */ 1185 RECOMP_ICALL(0x2B028E60u); /* 0x2B026A48: call 0x2b028e60 */ /* not lifted */ 1186 RECOMP_FLAGS_IN(); 1187 eax = MEM32(eax); /* 0x2B026A4D: mov eax, dword ptr [eax] */ 1188 /* cmp eax, MEM32(esi + 0x4) */ /* 0x2B026A4F: cmp eax, dword ptr [esi + 4] */ 1189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1191 _flag_k = FK_CMP; 1192 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B026B84; /* 0x2B026A52: je 0x2b026b84 */ 1193 L_2B026A58: 1194 esi = edi + 0x5C; /* 0x2B026A58: lea esi, [edi + 0x5c] */ 1195 edx = ebp + 0x8; /* 0x2B026A5B: lea edx, [ebp + 8] */ 1196 /* cmp esi, edx */ /* 0x2B026A5E: cmp esi, edx */ 1197 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 1198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1199 _flag_k = FK_CMP; 1200 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B026B74; /* 0x2B026A60: je 0x2b026b74 */ 1201 L_2B026A66: 1202 eax = MEM32(ebp + 0xC); /* 0x2B026A66: mov eax, dword ptr [ebp + 0xc] */ 1203 /* cmp eax, ebx */ /* 0x2B026A69: cmp eax, ebx */ 1204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1206 _flag_k = FK_CMP; 1207 edx = MEM32(ebp + 0x10); /* 0x2B026A6B: mov edx, dword ptr [ebp + 0x10] */ 1208 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B026A77; /* 0x2B026A6E: je 0x2b026a77 */ 1209 L_2B026A70: 1210 ebx = edx; /* 0x2B026A70: mov ebx, edx */ 1211 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1213 ebx = ebx - eax; /* 0x2B026A72: sub ebx, eax */ 1214 _flag_k = FK_CMP; 1215 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x2B026A74: sar ebx, 2 */ 1216 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1217 ebx = (uint32_t)((int32_t)ebx >> 2u); 1218 L_2B026A77: 1219 ecx = MEM32(esi + 0x4); /* 0x2B026A77: mov ecx, dword ptr [esi + 4] */ 1220 /* test ecx, ecx */ /* 0x2B026A7A: test ecx, ecx */ 1221 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1222 _cf = 0; 1223 _flag_k = FK_TEST; 1224 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026A82; /* 0x2B026A7C: jne 0x2b026a82 */ 1225 L_2B026A7E: 1226 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1227 edi = 0; /* 0x2B026A7E: xor edi, edi */ 1228 _cf = 0; 1229 _flag_k = FK_TEST; 1230 goto L_2B026A8A; /* 0x2B026A80: jmp 0x2b026a8a */ 1231 L_2B026A82: 1232 edi = MEM32(esi + 0x8); /* 0x2B026A82: mov edi, dword ptr [esi + 8] */ 1233 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1235 edi = edi - ecx; /* 0x2B026A85: sub edi, ecx */ 1236 _flag_k = FK_CMP; 1237 if (2u) _cf = (((edi) >> 1) & 1u); /* 0x2B026A87: sar edi, 2 */ 1238 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1239 edi = (uint32_t)((int32_t)edi >> 2u); 1240 L_2B026A8A: 1241 /* cmp ebx, edi */ /* 0x2B026A8A: cmp ebx, edi */ 1242 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 1243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1244 _flag_k = FK_CMP; 1245 if (CMP_A(_flag_a, _flag_b)) goto L_2B026ACD; /* 0x2B026A8C: ja 0x2b026acd */ 1246 L_2B026A8E: 1247 /* cmp eax, edx */ /* 0x2B026A8E: cmp eax, edx */ 1248 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1250 _flag_k = FK_CMP; 1251 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B026AA6; /* 0x2B026A90: je 0x2b026aa6 */ 1252 L_2B026A92: 1253 edi = MEM32(eax); /* 0x2B026A92: mov edi, dword ptr [eax] */ 1254 MEM32(ecx) = edi; /* 0x2B026A94: mov dword ptr [ecx], edi */ 1255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1256 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1257 eax = eax + 4; /* 0x2B026A96: add eax, 4 */ 1258 _flag_k = FK_ADD; 1259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1261 ecx = ecx + 4; /* 0x2B026A99: add ecx, 4 */ 1262 _flag_k = FK_ADD; 1263 /* cmp eax, edx */ /* 0x2B026A9C: cmp eax, edx */ 1264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1266 _flag_k = FK_CMP; 1267 RECOMP_BACKEDGE(); 1268 if (CMP_NE(_flag_a, _flag_b)) goto L_2B026A92; /* 0x2B026A9E: jne 0x2b026a92 */ 1269 L_2B026AA0: 1270 edx = MEM32(ebp + 0x10); /* 0x2B026AA0: mov edx, dword ptr [ebp + 0x10] */ 1271 eax = MEM32(ebp + 0xC); /* 0x2B026AA3: mov eax, dword ptr [ebp + 0xc] */ 1272 L_2B026AA6: 1273 /* test eax, eax */ /* 0x2B026AA6: test eax, eax */ 1274 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1275 _cf = 0; 1276 _flag_k = FK_TEST; 1277 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026ABA; /* 0x2B026AA8: jne 0x2b026aba */ 1278 L_2B026AAA: 1279 eax = MEM32(esi + 0x4); /* 0x2B026AAA: mov eax, dword ptr [esi + 4] */ 1280 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1281 edx = 0; /* 0x2B026AAD: xor edx, edx */ 1282 _cf = 0; 1283 _flag_k = FK_TEST; 1284 ecx = eax + edx * 4; /* 0x2B026AAF: lea ecx, [eax + edx*4] */ 1285 MEM32(esi + 0x8) = ecx; /* 0x2B026AB2: mov dword ptr [esi + 8], ecx */ 1286 goto L_2B026B71; /* 0x2B026AB5: jmp 0x2b026b71 */ 1287 L_2B026ABA: 1288 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1290 edx = edx - eax; /* 0x2B026ABA: sub edx, eax */ 1291 _flag_k = FK_CMP; 1292 eax = MEM32(esi + 0x4); /* 0x2B026ABC: mov eax, dword ptr [esi + 4] */ 1293 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2B026ABF: sar edx, 2 */ 1294 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1295 edx = (uint32_t)((int32_t)edx >> 2u); 1296 ecx = eax + edx * 4; /* 0x2B026AC2: lea ecx, [eax + edx*4] */ 1297 MEM32(esi + 0x8) = ecx; /* 0x2B026AC5: mov dword ptr [esi + 8], ecx */ 1298 goto L_2B026B71; /* 0x2B026AC8: jmp 0x2b026b71 */ 1299 L_2B026ACD: 1300 ecx = esi; /* 0x2B026ACD: mov ecx, esi */ 1301 RECOMP_ICALL(0x2B028F10u); /* 0x2B026ACF: call 0x2b028f10 */ /* not lifted */ 1302 RECOMP_FLAGS_IN(); 1303 ecx = ebp + 0x8; /* 0x2B026AD4: lea ecx, [ebp + 8] */ 1304 edi = eax; /* 0x2B026AD7: mov edi, eax */ 1305 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026AD9: call 0x2b01da00 */ /* not lifted */ 1306 RECOMP_FLAGS_IN(); 1307 /* cmp eax, edi */ /* 0x2B026ADE: cmp eax, edi */ 1308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1310 _flag_k = FK_CMP; 1311 if (CMP_A(_flag_a, _flag_b)) goto L_2B026B23; /* 0x2B026AE0: ja 0x2b026b23 */ 1312 L_2B026AE2: 1313 edi = MEM32(ebp + 0xC); /* 0x2B026AE2: mov edi, dword ptr [ebp + 0xc] */ 1314 ecx = esi; /* 0x2B026AE5: mov ecx, esi */ 1315 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026AE7: call 0x2b01da00 */ /* not lifted */ 1316 RECOMP_FLAGS_IN(); 1317 edx = MEM32(esi + 0x4); /* 0x2B026AEC: mov edx, dword ptr [esi + 4] */ 1318 edi = edi + eax * 4; /* 0x2B026AEF: lea edi, [edi + eax*4] */ 1319 eax = MEM32(ebp + 0xC); /* 0x2B026AF2: mov eax, dword ptr [ebp + 0xc] */ 1320 PUSH32(esp, edx); /* 0x2B026AF5: push edx */ 1321 PUSH32(esp, edi); /* 0x2B026AF6: push edi */ 1322 PUSH32(esp, eax); /* 0x2B026AF7: push eax */ 1323 RECOMP_ICALL(0x2B02A820u); /* 0x2B026AF8: call 0x2b02a820 */ /* not lifted */ 1324 RECOMP_FLAGS_IN(); 1325 ecx = MEM32(esi + 0x8); /* 0x2B026AFD: mov ecx, dword ptr [esi + 8] */ 1326 edx = MEM32(ebp + 0x10); /* 0x2B026B00: mov edx, dword ptr [ebp + 0x10] */ 1327 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1328 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1329 esp = esp + 0xCu; /* 0x2B026B03: add esp, 0xc */ 1330 _flag_k = FK_ADD; 1331 PUSH32(esp, ecx); /* 0x2B026B06: push ecx */ 1332 PUSH32(esp, edx); /* 0x2B026B07: push edx */ 1333 PUSH32(esp, edi); /* 0x2B026B08: push edi */ 1334 ecx = esi; /* 0x2B026B09: mov ecx, esi */ 1335 RECOMP_ICALL(0x2B01DA20u); /* 0x2B026B0B: call 0x2b01da20 */ /* not lifted */ 1336 RECOMP_FLAGS_IN(); 1337 ecx = ebp + 0x8; /* 0x2B026B10: lea ecx, [ebp + 8] */ 1338 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026B13: call 0x2b01da00 */ /* not lifted */ 1339 RECOMP_FLAGS_IN(); 1340 ecx = MEM32(esi + 0x4); /* 0x2B026B18: mov ecx, dword ptr [esi + 4] */ 1341 edx = ecx + eax * 4; /* 0x2B026B1B: lea edx, [ecx + eax*4] */ 1342 MEM32(esi + 0x8) = edx; /* 0x2B026B1E: mov dword ptr [esi + 8], edx */ 1343 goto L_2B026B71; /* 0x2B026B21: jmp 0x2b026b71 */ 1344 L_2B026B23: 1345 eax = MEM32(esi + 0x8); /* 0x2B026B23: mov eax, dword ptr [esi + 8] */ 1346 ecx = MEM32(esi + 0x4); /* 0x2B026B26: mov ecx, dword ptr [esi + 4] */ 1347 PUSH32(esp, eax); /* 0x2B026B29: push eax */ 1348 PUSH32(esp, ecx); /* 0x2B026B2A: push ecx */ 1349 ecx = esi; /* 0x2B026B2B: mov ecx, esi */ 1350 RECOMP_ICALL(0x2B0292C0u); /* 0x2B026B2D: call 0x2b0292c0 */ /* not lifted */ 1351 RECOMP_FLAGS_IN(); 1352 edx = MEM32(esi + 0x4); /* 0x2B026B32: mov edx, dword ptr [esi + 4] */ 1353 PUSH32(esp, edx); /* 0x2B026B35: push edx */ 1354 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B026B36: call 0x2b0ab1ba */ /* not lifted */ 1355 RECOMP_FLAGS_IN(); 1356 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1358 esp = esp + 4; /* 0x2B026B3B: add esp, 4 */ 1359 _flag_k = FK_ADD; 1360 ecx = ebp + 0x8; /* 0x2B026B3E: lea ecx, [ebp + 8] */ 1361 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026B41: call 0x2b01da00 */ /* not lifted */ 1362 RECOMP_FLAGS_IN(); 1363 /* test eax, eax */ /* 0x2B026B46: test eax, eax */ 1364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1365 _cf = 0; 1366 _flag_k = FK_TEST; 1367 if (TEST_NS(_flag_a, _flag_b)) goto L_2B026B4C; /* 0x2B026B48: jge 0x2b026b4c */ 1368 L_2B026B4A: 1369 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1370 eax = 0; /* 0x2B026B4A: xor eax, eax */ 1371 _cf = 0; 1372 _flag_k = FK_TEST; 1373 L_2B026B4C: 1374 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2B026B4C: shl eax, 2 */ 1375 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1376 eax = eax << 2u; /* 0x2B026B4C: shl eax, 2 */ 1377 PUSH32(esp, eax); /* 0x2B026B4F: push eax */ 1378 RECOMP_ICALL(0x2B0AB212u); /* 0x2B026B50: call 0x2b0ab212 */ /* not lifted */ 1379 RECOMP_FLAGS_IN(); 1380 ecx = MEM32(ebp + 0x10); /* 0x2B026B55: mov ecx, dword ptr [ebp + 0x10] */ 1381 edx = MEM32(ebp + 0xC); /* 0x2B026B58: mov edx, dword ptr [ebp + 0xc] */ 1382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1384 esp = esp + 4; /* 0x2B026B5B: add esp, 4 */ 1385 _flag_k = FK_ADD; 1386 PUSH32(esp, eax); /* 0x2B026B5E: push eax */ 1387 PUSH32(esp, ecx); /* 0x2B026B5F: push ecx */ 1388 PUSH32(esp, edx); /* 0x2B026B60: push edx */ 1389 ecx = esi; /* 0x2B026B61: mov ecx, esi */ 1390 MEM32(esi + 0x4) = eax; /* 0x2B026B63: mov dword ptr [esi + 4], eax */ 1391 RECOMP_ICALL(0x2B01DA20u); /* 0x2B026B66: call 0x2b01da20 */ /* not lifted */ 1392 RECOMP_FLAGS_IN(); 1393 MEM32(esi + 0x8) = eax; /* 0x2B026B6B: mov dword ptr [esi + 8], eax */ 1394 MEM32(esi + 0xC) = eax; /* 0x2B026B6E: mov dword ptr [esi + 0xc], eax */ 1395 L_2B026B71: 1396 edi = MEM32(ebp + (-0x10)); /* 0x2B026B71: mov edi, dword ptr [ebp - 0x10] */ 1397 L_2B026B74: 1398 PUSH32(esp, 1); /* 0x2B026B74: push 1 */ 1399 ecx = edi; /* 0x2B026B76: mov ecx, edi */ 1400 MEM8(edi + 0x99) = (uint8_t)(0); /* 0x2B026B78: mov byte ptr [edi + 0x99], 0 */ 1401 RECOMP_ICALL(0x2B0264F0u); /* 0x2B026B7F: call 0x2b0264f0 */ /* not lifted */ 1402 RECOMP_FLAGS_IN(); 1403 L_2B026B84: 1404 eax = MEM32(ebp + 0xC); /* 0x2B026B84: mov eax, dword ptr [ebp + 0xc] */ 1405 PUSH32(esp, eax); /* 0x2B026B87: push eax */ 1406 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B026B88: call 0x2b0ab1ba */ /* not lifted */ 1407 RECOMP_FLAGS_IN(); 1408 ecx = MEM32(ebp + (-0xC)); /* 0x2B026B8D: mov ecx, dword ptr [ebp - 0xc] */ 1409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1410 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1411 esp = esp + 4; /* 0x2B026B90: add esp, 4 */ 1412 _flag_k = FK_ADD; 1413 edi = POP32_VAL(esp); /* 0x2B026B93: pop edi */ 1414 esi = POP32_VAL(esp); /* 0x2B026B94: pop esi */ 1415 ebx = POP32_VAL(esp); /* 0x2B026B95: pop ebx */ 1416 MEM32(FS_BASE + (0)) = ecx; /* 0x2B026B96: mov dword ptr fs:[0], ecx */ 1417 esp = ebp; /* 0x2B026B9D: mov esp, ebp */ 1418 ebp = POP32_VAL(esp); /* 0x2B026B9F: pop ebp */ 1419 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B026BA0: ret 0x10 */ 1420 RECOMP_REGS_OUT(); 1421 } 1422 1423 void sub_2B026B71(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(0x2B026B71u); 1432 1433 L_2B026B71: 1434 edi = MEM32(ebp + (-0x10)); /* 0x2B026B71: mov edi, dword ptr [ebp - 0x10] */ 1435 PUSH32(esp, 1); /* 0x2B026B74: push 1 */ 1436 ecx = edi; /* 0x2B026B76: mov ecx, edi */ 1437 MEM8(edi + 0x99) = (uint8_t)(0); /* 0x2B026B78: mov byte ptr [edi + 0x99], 0 */ 1438 RECOMP_ICALL(0x2B0264F0u); /* 0x2B026B7F: call 0x2b0264f0 */ /* not lifted */ 1439 RECOMP_FLAGS_IN(); 1440 eax = MEM32(ebp + 0xC); /* 0x2B026B84: mov eax, dword ptr [ebp + 0xc] */ 1441 PUSH32(esp, eax); /* 0x2B026B87: push eax */ 1442 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B026B88: call 0x2b0ab1ba */ /* not lifted */ 1443 RECOMP_FLAGS_IN(); 1444 ecx = MEM32(ebp + (-0xC)); /* 0x2B026B8D: mov ecx, dword ptr [ebp - 0xc] */ 1445 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1447 esp = esp + 4; /* 0x2B026B90: add esp, 4 */ 1448 _flag_k = FK_ADD; 1449 edi = POP32_VAL(esp); /* 0x2B026B93: pop edi */ 1450 esi = POP32_VAL(esp); /* 0x2B026B94: pop esi */ 1451 ebx = POP32_VAL(esp); /* 0x2B026B95: pop ebx */ 1452 MEM32(FS_BASE + (0)) = ecx; /* 0x2B026B96: mov dword ptr fs:[0], ecx */ 1453 esp = ebp; /* 0x2B026B9D: mov esp, ebp */ 1454 ebp = POP32_VAL(esp); /* 0x2B026B9F: pop ebp */ 1455 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B026BA0: ret 0x10 */ 1456 RECOMP_REGS_OUT(); 1457 } 1458 1459 void sub_2B026BB0(void) { 1460 int _fpu_cmp = 0; 1461 uint32_t _cf = 0; 1462 int _df = 1; 1463 uint32_t _flag_k = FK_NONE; 1464 uint32_t _flag_a = 0, _flag_b = 0; 1465 uint32_t _itail_tgt = 0; 1466 RECOMP_REGS_LOCALS 1467 RECOMP_ENTER(0x2B026BB0u); 1468 1469 L_2B026BB0: 1470 PUSH32(esp, ebp); /* 0x2B026BB0: push ebp */ 1471 ebp = esp; /* 0x2B026BB1: mov ebp, esp */ 1472 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B026BB3: push -1 */ 1473 PUSH32(esp, 0x2B0ADAD8u); /* 0x2B026BB5: push 0x2b0adad8 */ 1474 eax = MEM32(FS_BASE + (0)); /* 0x2B026BBA: mov eax, dword ptr fs:[0] */ 1475 PUSH32(esp, eax); /* 0x2B026BC0: push eax */ 1476 MEM32(FS_BASE + (0)) = esp; /* 0x2B026BC1: mov dword ptr fs:[0], esp */ 1477 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1479 esp = esp - 0x18u; /* 0x2B026BC8: sub esp, 0x18 */ 1480 _flag_k = FK_CMP; 1481 PUSH32(esp, ebx); /* 0x2B026BCB: push ebx */ 1482 ebx = ecx; /* 0x2B026BCC: mov ebx, ecx */ 1483 SET_LO8(ecx, MEM8(0x2B0EE794)); /* 0x2B026BCE: mov cl, byte ptr [0x2b0ee794] */ 1484 SET_LO8(eax, 1); /* 0x2B026BD4: mov al, 1 */ 1485 /* test LO8(eax), LO8(ecx) */ /* 0x2B026BD6: test al, cl */ 1486 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1487 _cf = 0; 1488 _flag_k = FK_NARROW(FK_TEST, 24); 1489 PUSH32(esp, esi); /* 0x2B026BD8: push esi */ 1490 PUSH32(esp, edi); /* 0x2B026BD9: push edi */ 1491 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026C11; /* 0x2B026BDA: jne 0x2b026c11 */ 1492 L_2B026BDC: 1493 SET_LO8(edx, LO8(ecx)); /* 0x2B026BDC: mov dl, cl */ 1494 _flag_a = (uint32_t)((LO8(edx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(edx) | LO8(eax))) << 24; 1495 SET_LO8(edx, LO8(edx) | LO8(eax)); /* 0x2B026BDE: or dl, al */ 1496 _cf = 0; 1497 _flag_k = FK_NARROW(FK_TEST, 24); 1498 PUSH32(esp, 0x2B026CB0u); /* 0x2B026BE0: push 0x2b026cb0 */ 1499 MEM8(0x2B0EE794) = (uint8_t)(LO8(edx)); /* 0x2B026BE5: mov byte ptr [0x2b0ee794], dl */ 1500 MEM32(0x2B0EE788) = 0; /* 0x2B026BEB: mov dword ptr [0x2b0ee788], 0 */ 1501 MEM32(0x2B0EE78C) = 0; /* 0x2B026BF5: mov dword ptr [0x2b0ee78c], 0 */ 1502 MEM32(0x2B0EE790) = 0; /* 0x2B026BFF: mov dword ptr [0x2b0ee790], 0 */ 1503 RECOMP_ICALL(0x2B0AB39Fu); /* 0x2B026C09: call 0x2b0ab39f */ /* not lifted */ 1504 RECOMP_FLAGS_IN(); 1505 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1506 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1507 esp = esp + 4; /* 0x2B026C0E: add esp, 4 */ 1508 _flag_k = FK_ADD; 1509 L_2B026C11: 1510 edi = ebx + 0x5C; /* 0x2B026C11: lea edi, [ebx + 0x5c] */ 1511 PUSH32(esp, edi); /* 0x2B026C14: push edi */ 1512 eax = ebp + (-0x10); /* 0x2B026C15: lea eax, [ebp - 0x10] */ 1513 esi = ebx + 0x80; /* 0x2B026C18: lea esi, [ebx + 0x80] */ 1514 PUSH32(esp, eax); /* 0x2B026C1E: push eax */ 1515 ecx = esi; /* 0x2B026C1F: mov ecx, esi */ 1516 RECOMP_ICALL(0x2B028E60u); /* 0x2B026C21: call 0x2b028e60 */ /* not lifted */ 1517 RECOMP_FLAGS_IN(); 1518 eax = MEM32(eax); /* 0x2B026C26: mov eax, dword ptr [eax] */ 1519 /* cmp eax, MEM32(esi + 0x4) */ /* 0x2B026C28: cmp eax, dword ptr [esi + 4] */ 1520 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1522 _flag_k = FK_CMP; 1523 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B026C97; /* 0x2B026C2B: je 0x2b026c97 */ 1524 L_2B026C2D: 1525 PUSH32(esp, edi); /* 0x2B026C2D: push edi */ 1526 ecx = ebp + (-0x10); /* 0x2B026C2E: lea ecx, [ebp - 0x10] */ 1527 PUSH32(esp, ecx); /* 0x2B026C31: push ecx */ 1528 ecx = esi; /* 0x2B026C32: mov ecx, esi */ 1529 RECOMP_ICALL(0x2B028E60u); /* 0x2B026C34: call 0x2b028e60 */ /* not lifted */ 1530 RECOMP_FLAGS_IN(); 1531 eax = MEM32(eax); /* 0x2B026C39: mov eax, dword ptr [eax] */ 1532 edx = MEM32(eax + 0x20); /* 0x2B026C3B: mov edx, dword ptr [eax + 0x20] */ 1533 /* test edx, edx */ /* 0x2B026C3E: test edx, edx */ 1534 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1535 _cf = 0; 1536 _flag_k = FK_TEST; 1537 ecx = eax + 0x1C; /* 0x2B026C40: lea ecx, [eax + 0x1c] */ 1538 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026C49; /* 0x2B026C43: jne 0x2b026c49 */ 1539 L_2B026C45: 1540 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1541 eax = 0; /* 0x2B026C45: xor eax, eax */ 1542 _cf = 0; 1543 _flag_k = FK_TEST; 1544 goto L_2B026C51; /* 0x2B026C47: jmp 0x2b026c51 */ 1545 L_2B026C49: 1546 eax = MEM32(ecx + 0x8); /* 0x2B026C49: mov eax, dword ptr [ecx + 8] */ 1547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1549 eax = eax - edx; /* 0x2B026C4C: sub eax, edx */ 1550 _flag_k = FK_CMP; 1551 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B026C4E: sar eax, 4 */ 1552 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1553 eax = (uint32_t)((int32_t)eax >> 4u); 1554 L_2B026C51: 1555 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1556 eax = eax - 1; /* 0x2B026C51: dec eax */ 1557 _flag_k = FK_DEC; 1558 PUSH32(esp, eax); /* 0x2B026C52: push eax */ 1559 edx = ebp + (-0x24); /* 0x2B026C53: lea edx, [ebp - 0x24] */ 1560 PUSH32(esp, edx); /* 0x2B026C56: push edx */ 1561 RECOMP_ICALL(0x2B0224C0u); /* 0x2B026C57: call 0x2b0224c0 */ /* not lifted */ 1562 RECOMP_FLAGS_IN(); 1563 eax = ebp + (-0x24); /* 0x2B026C5C: lea eax, [ebp - 0x24] */ 1564 PUSH32(esp, eax); /* 0x2B026C5F: push eax */ 1565 ecx = ebp + (-0x14); /* 0x2B026C60: lea ecx, [ebp - 0x14] */ 1566 PUSH32(esp, ecx); /* 0x2B026C63: push ecx */ 1567 ecx = ebx + 0x6C; /* 0x2B026C64: lea ecx, [ebx + 0x6c] */ 1568 MEM32(ebp + (-0x4)) = 0; /* 0x2B026C67: mov dword ptr [ebp - 4], 0 */ 1569 RECOMP_ICALL(0x2B028E60u); /* 0x2B026C6E: call 0x2b028e60 */ /* not lifted */ 1570 RECOMP_FLAGS_IN(); 1571 edx = MEM32(ebp + (-0x20)); /* 0x2B026C73: mov edx, dword ptr [ebp - 0x20] */ 1572 eax = MEM32(eax); /* 0x2B026C76: mov eax, dword ptr [eax] */ 1573 PUSH32(esp, edx); /* 0x2B026C78: push edx */ 1574 esi = eax + 0x1C; /* 0x2B026C79: lea esi, [eax + 0x1c] */ 1575 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B026C7C: call 0x2b0ab1ba */ /* not lifted */ 1576 RECOMP_FLAGS_IN(); 1577 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1578 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1579 esp = esp + 4; /* 0x2B026C81: add esp, 4 */ 1580 _flag_k = FK_ADD; 1581 edi = POP32_VAL(esp); /* 0x2B026C84: pop edi */ 1582 eax = esi; /* 0x2B026C85: mov eax, esi */ 1583 esi = POP32_VAL(esp); /* 0x2B026C87: pop esi */ 1584 ebx = POP32_VAL(esp); /* 0x2B026C88: pop ebx */ 1585 ecx = MEM32(ebp + (-0xC)); /* 0x2B026C89: mov ecx, dword ptr [ebp - 0xc] */ 1586 MEM32(FS_BASE + (0)) = ecx; /* 0x2B026C8C: mov dword ptr fs:[0], ecx */ 1587 esp = ebp; /* 0x2B026C93: mov esp, ebp */ 1588 ebp = POP32_VAL(esp); /* 0x2B026C95: pop ebp */ 1589 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026C96: ret */ 1590 L_2B026C97: 1591 ecx = MEM32(ebp + (-0xC)); /* 0x2B026C97: mov ecx, dword ptr [ebp - 0xc] */ 1592 edi = POP32_VAL(esp); /* 0x2B026C9A: pop edi */ 1593 esi = POP32_VAL(esp); /* 0x2B026C9B: pop esi */ 1594 eax = 0x2B0EE788u; /* 0x2B026C9C: mov eax, 0x2b0ee788 */ 1595 ebx = POP32_VAL(esp); /* 0x2B026CA1: pop ebx */ 1596 MEM32(FS_BASE + (0)) = ecx; /* 0x2B026CA2: mov dword ptr fs:[0], ecx */ 1597 esp = ebp; /* 0x2B026CA9: mov esp, ebp */ 1598 ebp = POP32_VAL(esp); /* 0x2B026CAB: pop ebp */ 1599 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026CAC: ret */ 1600 RECOMP_REGS_OUT(); 1601 } 1602 1603 void sub_2B026CB0(void) { 1604 int _fpu_cmp = 0; 1605 uint32_t _cf = 0; 1606 int _df = 1; 1607 uint32_t _flag_k = FK_NONE; 1608 uint32_t _flag_a = 0, _flag_b = 0; 1609 uint32_t _itail_tgt = 0; 1610 RECOMP_REGS_LOCALS 1611 RECOMP_ENTER(0x2B026CB0u); 1612 1613 L_2B026CB0: 1614 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026CB0: ret */ 1615 RECOMP_REGS_OUT(); 1616 } 1617 1618 void sub_2B026CC0(void) { 1619 int _fpu_cmp = 0; 1620 uint32_t _cf = 0; 1621 int _df = 1; 1622 uint32_t _flag_k = FK_NONE; 1623 uint32_t _flag_a = 0, _flag_b = 0; 1624 uint32_t _itail_tgt = 0; 1625 RECOMP_REGS_LOCALS 1626 RECOMP_ENTER(0x2B026CC0u); 1627 1628 L_2B026CC0: 1629 PUSH32(esp, ebp); /* 0x2B026CC0: push ebp */ 1630 ebp = esp; /* 0x2B026CC1: mov ebp, esp */ 1631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1633 esp = esp - 0xCu; /* 0x2B026CC3: sub esp, 0xc */ 1634 _flag_k = FK_CMP; 1635 PUSH32(esp, esi); /* 0x2B026CC6: push esi */ 1636 esi = ecx; /* 0x2B026CC7: mov esi, ecx */ 1637 SET_LO8(eax, MEM8(esi + 0x99)); /* 0x2B026CC9: mov al, byte ptr [esi + 0x99] */ 1638 /* test LO8(eax), LO8(eax) */ /* 0x2B026CCF: test al, al */ 1639 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1640 _cf = 0; 1641 _flag_k = FK_NARROW(FK_TEST, 24); 1642 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026CDA; /* 0x2B026CD1: jne 0x2b026cda */ 1643 L_2B026CD3: 1644 SET_LO8(eax, 1); /* 0x2B026CD3: mov al, 1 */ 1645 esi = POP32_VAL(esp); /* 0x2B026CD5: pop esi */ 1646 esp = ebp; /* 0x2B026CD6: mov esp, ebp */ 1647 ebp = POP32_VAL(esp); /* 0x2B026CD8: pop ebp */ 1648 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026CD9: ret */ 1649 L_2B026CDA: 1650 ecx = esi; /* 0x2B026CDA: mov ecx, esi */ 1651 RECOMP_ICALL(0x2B026BB0u); /* 0x2B026CDC: call 0x2b026bb0 */ /* not lifted */ 1652 RECOMP_FLAGS_IN(); 1653 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u); 1654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1655 esi = esi + 0x28u; /* 0x2B026CE1: add esi, 0x28 */ 1656 _flag_k = FK_ADD; 1657 ecx = MEM32(esi); /* 0x2B026CE4: mov ecx, dword ptr [esi] */ 1658 edx = MEM32(esi + 0x4); /* 0x2B026CE6: mov edx, dword ptr [esi + 4] */ 1659 MEM32(ebp + (-0xC)) = ecx; /* 0x2B026CE9: mov dword ptr [ebp - 0xc], ecx */ 1660 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2B026CEC: fld dword ptr [ebp - 0xc] */ 1661 _st[0] -= (double)*(float*)ADDR(eax); /* 0x2B026CEF: fsub dword ptr [eax] */ 1662 ecx = MEM32(esi + 0x8); /* 0x2B026CF1: mov ecx, dword ptr [esi + 8] */ 1663 MEM32(ebp + (-0x8)) = edx; /* 0x2B026CF4: mov dword ptr [ebp - 8], edx */ 1664 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x2B026CF7: fld dword ptr [ebp - 8] */ 1665 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x2B026CFA: fsub dword ptr [eax + 4] */ 1666 MEM32(ebp + (-0x4)) = ecx; /* 0x2B026CFD: mov dword ptr [ebp - 4], ecx */ 1667 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x2B026D00: fld dword ptr [ebp - 4] */ 1668 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x2B026D03: fsub dword ptr [eax + 8] */ 1669 fp_push(_st[2]); /* 0x2B026D06: fld st(2) */ 1670 { double _v = fp_pop(); _st[2] *= _v; } /* 0x2B026D08: fmulp st(3) */ 1671 fp_push(_st[0]); /* 0x2B026D0A: fld st(0) */ 1672 _st[0] *= _st[1]; /* 0x2B026D0C: fmul st(1) */ 1673 { double _v = fp_pop(); _st[2] += _v; } /* 0x2B026D0E: faddp st(3) */ 1674 fp_push(_st[1]); /* 0x2B026D10: fld st(1) */ 1675 _st[0] *= _st[2]; /* 0x2B026D12: fmul st(2) */ 1676 { double _v = fp_pop(); _st[2] += _v; } /* 0x2B026D14: faddp st(3) */ 1677 fp_xch(2); /* 0x2B026D16: fxch st(2) */ 1678 _st[0] = sqrt(_st[0]); /* 0x2B026D18: fsqrt */ 1679 fp_xch(2); /* 0x2B026D1A: fxch st(2) */ 1680 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B026D1C: fstp st(0) */ 1681 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B026D1E: fstp st(0) */ 1682 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6558)); /* 0x2B026D20: fcomp dword ptr [0x2b0b6558] */ 1683 fp_pop(); 1684 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B026D26: fnstsw ax */ 1685 /* test HI8(eax), 1 */ /* 0x2B026D28: test ah, 1 */ 1686 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1687 _cf = 0; 1688 _flag_k = FK_NARROW(FK_TEST, 24); 1689 if (TEST_Z(_flag_a, _flag_b)) goto L_2B026D37; /* 0x2B026D2B: je 0x2b026d37 */ 1690 L_2B026D2D: 1691 eax = 1; /* 0x2B026D2D: mov eax, 1 */ 1692 esi = POP32_VAL(esp); /* 0x2B026D32: pop esi */ 1693 esp = ebp; /* 0x2B026D33: mov esp, ebp */ 1694 ebp = POP32_VAL(esp); /* 0x2B026D35: pop ebp */ 1695 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026D36: ret */ 1696 L_2B026D37: 1697 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1698 eax = 0; /* 0x2B026D37: xor eax, eax */ 1699 _cf = 0; 1700 _flag_k = FK_TEST; 1701 esi = POP32_VAL(esp); /* 0x2B026D39: pop esi */ 1702 esp = ebp; /* 0x2B026D3A: mov esp, ebp */ 1703 ebp = POP32_VAL(esp); /* 0x2B026D3C: pop ebp */ 1704 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026D3D: ret */ 1705 RECOMP_REGS_OUT(); 1706 } 1707 1708 void sub_2B026D40(void) { 1709 int _fpu_cmp = 0; 1710 uint32_t _cf = 0; 1711 int _df = 1; 1712 uint32_t _flag_k = FK_NONE; 1713 uint32_t _flag_a = 0, _flag_b = 0; 1714 uint32_t _itail_tgt = 0; 1715 RECOMP_REGS_LOCALS 1716 RECOMP_ENTER(0x2B026D40u); 1717 1718 L_2B026D40: 1719 fp_push(*(float*)&MEM32(ecx + 0xAC)); /* 0x2B026D40: fld dword ptr [ecx + 0xac] */ 1720 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026D46: ret */ 1721 RECOMP_REGS_OUT(); 1722 } 1723 1724 void sub_2B026D50(void) { 1725 int _fpu_cmp = 0; 1726 uint32_t _cf = 0; 1727 int _df = 1; 1728 uint32_t _flag_k = FK_NONE; 1729 uint32_t _flag_a = 0, _flag_b = 0; 1730 uint32_t _itail_tgt = 0; 1731 RECOMP_REGS_LOCALS 1732 RECOMP_ENTER(0x2B026D50u); 1733 1734 L_2B026D50: 1735 PUSH32(esp, ebp); /* 0x2B026D50: push ebp */ 1736 ebp = esp; /* 0x2B026D51: mov ebp, esp */ 1737 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B026D53: push -1 */ 1738 PUSH32(esp, 0x2B0ADB13u); /* 0x2B026D55: push 0x2b0adb13 */ 1739 eax = MEM32(FS_BASE + (0)); /* 0x2B026D5A: mov eax, dword ptr fs:[0] */ 1740 PUSH32(esp, eax); /* 0x2B026D60: push eax */ 1741 MEM32(FS_BASE + (0)) = esp; /* 0x2B026D61: mov dword ptr fs:[0], esp */ 1742 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 1743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1744 esp = esp - 0x64u; /* 0x2B026D68: sub esp, 0x64 */ 1745 _flag_k = FK_CMP; 1746 PUSH32(esp, ebx); /* 0x2B026D6B: push ebx */ 1747 PUSH32(esp, esi); /* 0x2B026D6C: push esi */ 1748 esi = ecx; /* 0x2B026D6D: mov esi, ecx */ 1749 SET_LO8(eax, MEM8(esi + 0x99)); /* 0x2B026D6F: mov al, byte ptr [esi + 0x99] */ 1750 /* test LO8(eax), LO8(eax) */ /* 0x2B026D75: test al, al */ 1751 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1752 _cf = 0; 1753 _flag_k = FK_NARROW(FK_TEST, 24); 1754 PUSH32(esp, edi); /* 0x2B026D77: push edi */ 1755 MEM32(ebp + (-0x14)) = esi; /* 0x2B026D78: mov dword ptr [ebp - 0x14], esi */ 1756 if (TEST_Z(_flag_a, _flag_b)) goto L_2B026D95; /* 0x2B026D7B: je 0x2b026d95 */ 1757 L_2B026D7D: 1758 edi = POP32_VAL(esp); /* 0x2B026D7D: pop edi */ 1759 MEM8(esi + 0x99) = (uint8_t)(0); /* 0x2B026D7E: mov byte ptr [esi + 0x99], 0 */ 1760 esi = POP32_VAL(esp); /* 0x2B026D85: pop esi */ 1761 ebx = POP32_VAL(esp); /* 0x2B026D86: pop ebx */ 1762 ecx = MEM32(ebp + (-0xC)); /* 0x2B026D87: mov ecx, dword ptr [ebp - 0xc] */ 1763 MEM32(FS_BASE + (0)) = ecx; /* 0x2B026D8A: mov dword ptr fs:[0], ecx */ 1764 esp = ebp; /* 0x2B026D91: mov esp, ebp */ 1765 ebp = POP32_VAL(esp); /* 0x2B026D93: pop ebp */ 1766 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026D94: ret */ 1767 L_2B026D95: 1768 edi = esi + 0x5C; /* 0x2B026D95: lea edi, [esi + 0x5c] */ 1769 PUSH32(esp, edi); /* 0x2B026D98: push edi */ 1770 eax = ebp + (-0x18); /* 0x2B026D99: lea eax, [ebp - 0x18] */ 1771 ebx = esi + 0x80; /* 0x2B026D9C: lea ebx, [esi + 0x80] */ 1772 PUSH32(esp, eax); /* 0x2B026DA2: push eax */ 1773 ecx = ebx; /* 0x2B026DA3: mov ecx, ebx */ 1774 RECOMP_ICALL(0x2B028E60u); /* 0x2B026DA5: call 0x2b028e60 */ /* not lifted */ 1775 RECOMP_FLAGS_IN(); 1776 ecx = MEM32(eax); /* 0x2B026DAA: mov ecx, dword ptr [eax] */ 1777 edx = ebp + (-0x20); /* 0x2B026DAC: lea edx, [ebp - 0x20] */ 1778 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B026DAF: mov dword ptr [ebp - 0x1c], ecx */ 1779 PUSH32(esp, edx); /* 0x2B026DB2: push edx */ 1780 ecx = ebx; /* 0x2B026DB3: mov ecx, ebx */ 1781 RECOMP_ICALL(0x2B0292D0u); /* 0x2B026DB5: call 0x2b0292d0 */ /* not lifted */ 1782 RECOMP_FLAGS_IN(); 1783 ecx = MEM32(ebp + (-0x1C)); /* 0x2B026DBA: mov ecx, dword ptr [ebp - 0x1c] */ 1784 /* cmp ecx, MEM32(eax) */ /* 0x2B026DBD: cmp ecx, dword ptr [eax] */ 1785 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 1786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1787 _flag_k = FK_CMP; 1788 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027075; /* 0x2B026DBF: je 0x2b027075 */ 1789 L_2B026DC5: 1790 PUSH32(esp, edi); /* 0x2B026DC5: push edi */ 1791 ecx = ebx; /* 0x2B026DC6: mov ecx, ebx */ 1792 RECOMP_ICALL(0x2B028880u); /* 0x2B026DC8: call 0x2b028880 */ /* not lifted */ 1793 RECOMP_FLAGS_IN(); 1794 ebx = eax; /* 0x2B026DCD: mov ebx, eax */ 1795 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1796 edx = 0; /* 0x2B026DCF: xor edx, edx */ 1797 _cf = 0; 1798 _flag_k = FK_TEST; 1799 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B026DD1: mov dword ptr [ebp - 0x1c], ebx */ 1800 MEM32(ebp + (-0x18)) = edx; /* 0x2B026DD4: mov dword ptr [ebp - 0x18], edx */ 1801 L_2B026DD7: 1802 ecx = MEM32(ebx + 0x4); /* 0x2B026DD7: mov ecx, dword ptr [ebx + 4] */ 1803 /* test ecx, ecx */ /* 0x2B026DDA: test ecx, ecx */ 1804 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1805 _cf = 0; 1806 _flag_k = FK_TEST; 1807 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B026DE2; /* 0x2B026DDC: jne 0x2b026de2 */ 1808 L_2B026DDE: 1809 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1810 eax = 0; /* 0x2B026DDE: xor eax, eax */ 1811 _cf = 0; 1812 _flag_k = FK_TEST; 1813 goto L_2B026DEA; /* 0x2B026DE0: jmp 0x2b026dea */ 1814 L_2B026DE2: 1815 eax = MEM32(ebx + 0x8); /* 0x2B026DE2: mov eax, dword ptr [ebx + 8] */ 1816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1818 eax = eax - ecx; /* 0x2B026DE5: sub eax, ecx */ 1819 _flag_k = FK_CMP; 1820 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B026DE7: sar eax, 4 */ 1821 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1822 eax = (uint32_t)((int32_t)eax >> 4u); 1823 L_2B026DEA: 1824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1825 eax = eax - 1; /* 0x2B026DEA: dec eax */ 1826 _flag_k = FK_DEC; 1827 /* cmp edx, eax */ /* 0x2B026DEB: cmp edx, eax */ 1828 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1830 _flag_k = FK_CMP; 1831 if (CMP_GE(_flag_a, _flag_b)) goto L_2B026E82; /* 0x2B026DED: jge 0x2b026e82 */ 1832 L_2B026DF3: 1833 PUSH32(esp, edx); /* 0x2B026DF3: push edx */ 1834 edx = ebp + (-0x40); /* 0x2B026DF4: lea edx, [ebp - 0x40] */ 1835 PUSH32(esp, edx); /* 0x2B026DF7: push edx */ 1836 ecx = ebx; /* 0x2B026DF8: mov ecx, ebx */ 1837 RECOMP_ICALL(0x2B0224C0u); /* 0x2B026DFA: call 0x2b0224c0 */ /* not lifted */ 1838 RECOMP_FLAGS_IN(); 1839 eax = ebp + (-0x40); /* 0x2B026DFF: lea eax, [ebp - 0x40] */ 1840 PUSH32(esp, eax); /* 0x2B026E02: push eax */ 1841 ecx = ebp + (-0x20); /* 0x2B026E03: lea ecx, [ebp - 0x20] */ 1842 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x6Cu); 1843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1844 esi = esi + 0x6Cu; /* 0x2B026E06: add esi, 0x6c */ 1845 _flag_k = FK_ADD; 1846 PUSH32(esp, ecx); /* 0x2B026E09: push ecx */ 1847 ecx = esi; /* 0x2B026E0A: mov ecx, esi */ 1848 MEM32(ebp + (-0x4)) = 0; /* 0x2B026E0C: mov dword ptr [ebp - 4], 0 */ 1849 RECOMP_ICALL(0x2B028E60u); /* 0x2B026E13: call 0x2b028e60 */ /* not lifted */ 1850 RECOMP_FLAGS_IN(); 1851 eax = MEM32(eax); /* 0x2B026E18: mov eax, dword ptr [eax] */ 1852 ecx = MEM32(esi + 0x4); /* 0x2B026E1A: mov ecx, dword ptr [esi + 4] */ 1853 edx = MEM32(ebp + (-0x38)); /* 0x2B026E1D: mov edx, dword ptr [ebp - 0x38] */ 1854 /* cmp eax, ecx */ /* 0x2B026E20: cmp eax, ecx */ 1855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1857 _flag_k = FK_CMP; 1858 eax = MEM32(ebp + (-0x3C)); /* 0x2B026E22: mov eax, dword ptr [ebp - 0x3c] */ 1859 PUSH32(esp, edx); /* 0x2B026E25: push edx */ 1860 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B026E26: mov dword ptr [ebp - 4], 0xffffffff */ 1861 PUSH32(esp, eax); /* 0x2B026E2D: push eax */ 1862 ecx = ebp + (-0x40); /* 0x2B026E2E: lea ecx, [ebp - 0x40] */ 1863 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B026E60; /* 0x2B026E31: je 0x2b026e60 */ 1864 L_2B026E33: 1865 RECOMP_ICALL(0x2B0292C0u); /* 0x2B026E33: call 0x2b0292c0 */ /* not lifted */ 1866 RECOMP_FLAGS_IN(); 1867 ecx = MEM32(ebp + (-0x3C)); /* 0x2B026E38: mov ecx, dword ptr [ebp - 0x3c] */ 1868 PUSH32(esp, ecx); /* 0x2B026E3B: push ecx */ 1869 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B026E3C: call 0x2b0ab1ba */ /* not lifted */ 1870 RECOMP_FLAGS_IN(); 1871 esi = MEM32(ebp + (-0x14)); /* 0x2B026E41: mov esi, dword ptr [ebp - 0x14] */ 1872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1873 eax = 0; /* 0x2B026E44: xor eax, eax */ 1874 _cf = 0; 1875 _flag_k = FK_TEST; 1876 MEM32(ebp + (-0x3C)) = eax; /* 0x2B026E46: mov dword ptr [ebp - 0x3c], eax */ 1877 MEM32(ebp + (-0x38)) = eax; /* 0x2B026E49: mov dword ptr [ebp - 0x38], eax */ 1878 MEM32(ebp + (-0x34)) = eax; /* 0x2B026E4C: mov dword ptr [ebp - 0x34], eax */ 1879 eax = MEM32(ebp + (-0x18)); /* 0x2B026E4F: mov eax, dword ptr [ebp - 0x18] */ 1880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1882 esp = esp + 4; /* 0x2B026E52: add esp, 4 */ 1883 _flag_k = FK_ADD; 1884 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1885 eax = eax + 1; /* 0x2B026E55: inc eax */ 1886 _flag_k = FK_INC; 1887 MEM32(ebp + (-0x18)) = eax; /* 0x2B026E56: mov dword ptr [ebp - 0x18], eax */ 1888 edx = eax; /* 0x2B026E59: mov edx, eax */ 1889 RECOMP_BACKEDGE(); 1890 goto L_2B026DD7; /* 0x2B026E5B: jmp 0x2b026dd7 */ 1891 L_2B026E60: 1892 RECOMP_ICALL(0x2B0292C0u); /* 0x2B026E60: call 0x2b0292c0 */ /* not lifted */ 1893 RECOMP_FLAGS_IN(); 1894 ecx = MEM32(ebp + (-0x3C)); /* 0x2B026E65: mov ecx, dword ptr [ebp - 0x3c] */ 1895 PUSH32(esp, ecx); /* 0x2B026E68: push ecx */ 1896 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B026E69: call 0x2b0ab1ba */ /* not lifted */ 1897 RECOMP_FLAGS_IN(); 1898 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1899 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1900 esp = esp + 4; /* 0x2B026E6E: add esp, 4 */ 1901 _flag_k = FK_ADD; 1902 edi = POP32_VAL(esp); /* 0x2B026E71: pop edi */ 1903 esi = POP32_VAL(esp); /* 0x2B026E72: pop esi */ 1904 ebx = POP32_VAL(esp); /* 0x2B026E73: pop ebx */ 1905 ecx = MEM32(ebp + (-0xC)); /* 0x2B026E74: mov ecx, dword ptr [ebp - 0xc] */ 1906 MEM32(FS_BASE + (0)) = ecx; /* 0x2B026E77: mov dword ptr fs:[0], ecx */ 1907 esp = ebp; /* 0x2B026E7E: mov esp, ebp */ 1908 ebp = POP32_VAL(esp); /* 0x2B026E80: pop ebp */ 1909 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B026E81: ret */ 1910 L_2B026E82: 1911 MEM32(esi + 0xAC) = 0; /* 0x2B026E82: mov dword ptr [esi + 0xac], 0 */ 1912 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x9Cu); 1913 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1914 esi = esi + 0x9Cu; /* 0x2B026E8C: add esi, 0x9c */ 1915 _flag_k = FK_ADD; 1916 /* cmp esi, edi */ /* 0x2B026E92: cmp esi, edi */ 1917 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1919 _flag_k = FK_CMP; 1920 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B026F8B; /* 0x2B026E94: je 0x2b026f8b */ 1921 L_2B026E9A: 1922 ecx = edi; /* 0x2B026E9A: mov ecx, edi */ 1923 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026E9C: call 0x2b01da00 */ /* not lifted */ 1924 RECOMP_FLAGS_IN(); 1925 ecx = esi; /* 0x2B026EA1: mov ecx, esi */ 1926 ebx = eax; /* 0x2B026EA3: mov ebx, eax */ 1927 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026EA5: call 0x2b01da00 */ /* not lifted */ 1928 RECOMP_FLAGS_IN(); 1929 /* cmp ebx, eax */ /* 0x2B026EAA: cmp ebx, eax */ 1930 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1932 _flag_k = FK_CMP; 1933 if (CMP_A(_flag_a, _flag_b)) goto L_2B026EE3; /* 0x2B026EAC: ja 0x2b026ee3 */ 1934 L_2B026EAE: 1935 edx = MEM32(esi + 0x4); /* 0x2B026EAE: mov edx, dword ptr [esi + 4] */ 1936 eax = MEM32(edi + 0x8); /* 0x2B026EB1: mov eax, dword ptr [edi + 8] */ 1937 ecx = MEM32(edi + 0x4); /* 0x2B026EB4: mov ecx, dword ptr [edi + 4] */ 1938 PUSH32(esp, edx); /* 0x2B026EB7: push edx */ 1939 PUSH32(esp, eax); /* 0x2B026EB8: push eax */ 1940 PUSH32(esp, ecx); /* 0x2B026EB9: push ecx */ 1941 RECOMP_ICALL(0x2B02A820u); /* 0x2B026EBA: call 0x2b02a820 */ /* not lifted */ 1942 RECOMP_FLAGS_IN(); 1943 ecx = MEM32(esi + 0x8); /* 0x2B026EBF: mov ecx, dword ptr [esi + 8] */ 1944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1946 esp = esp + 0xCu; /* 0x2B026EC2: add esp, 0xc */ 1947 _flag_k = FK_ADD; 1948 PUSH32(esp, ecx); /* 0x2B026EC5: push ecx */ 1949 PUSH32(esp, eax); /* 0x2B026EC6: push eax */ 1950 ecx = esi; /* 0x2B026EC7: mov ecx, esi */ 1951 RECOMP_ICALL(0x2B0292C0u); /* 0x2B026EC9: call 0x2b0292c0 */ /* not lifted */ 1952 RECOMP_FLAGS_IN(); 1953 ecx = edi; /* 0x2B026ECE: mov ecx, edi */ 1954 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026ED0: call 0x2b01da00 */ /* not lifted */ 1955 RECOMP_FLAGS_IN(); 1956 edx = MEM32(esi + 0x4); /* 0x2B026ED5: mov edx, dword ptr [esi + 4] */ 1957 eax = edx + eax * 4; /* 0x2B026ED8: lea eax, [edx + eax*4] */ 1958 MEM32(esi + 0x8) = eax; /* 0x2B026EDB: mov dword ptr [esi + 8], eax */ 1959 goto L_2B026F88; /* 0x2B026EDE: jmp 0x2b026f88 */ 1960 L_2B026EE3: 1961 ecx = edi; /* 0x2B026EE3: mov ecx, edi */ 1962 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026EE5: call 0x2b01da00 */ /* not lifted */ 1963 RECOMP_FLAGS_IN(); 1964 ecx = esi; /* 0x2B026EEA: mov ecx, esi */ 1965 ebx = eax; /* 0x2B026EEC: mov ebx, eax */ 1966 RECOMP_ICALL(0x2B028F10u); /* 0x2B026EEE: call 0x2b028f10 */ /* not lifted */ 1967 RECOMP_FLAGS_IN(); 1968 /* cmp ebx, eax */ /* 0x2B026EF3: cmp ebx, eax */ 1969 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1971 _flag_k = FK_CMP; 1972 if (CMP_A(_flag_a, _flag_b)) goto L_2B026F37; /* 0x2B026EF5: ja 0x2b026f37 */ 1973 L_2B026EF7: 1974 ebx = MEM32(edi + 0x4); /* 0x2B026EF7: mov ebx, dword ptr [edi + 4] */ 1975 ecx = esi; /* 0x2B026EFA: mov ecx, esi */ 1976 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026EFC: call 0x2b01da00 */ /* not lifted */ 1977 RECOMP_FLAGS_IN(); 1978 ecx = MEM32(esi + 0x4); /* 0x2B026F01: mov ecx, dword ptr [esi + 4] */ 1979 ebx = ebx + eax * 4; /* 0x2B026F04: lea ebx, [ebx + eax*4] */ 1980 eax = MEM32(edi + 0x4); /* 0x2B026F07: mov eax, dword ptr [edi + 4] */ 1981 PUSH32(esp, ecx); /* 0x2B026F0A: push ecx */ 1982 PUSH32(esp, ebx); /* 0x2B026F0B: push ebx */ 1983 PUSH32(esp, eax); /* 0x2B026F0C: push eax */ 1984 RECOMP_ICALL(0x2B02A820u); /* 0x2B026F0D: call 0x2b02a820 */ /* not lifted */ 1985 RECOMP_FLAGS_IN(); 1986 edx = MEM32(esi + 0x8); /* 0x2B026F12: mov edx, dword ptr [esi + 8] */ 1987 eax = MEM32(edi + 0x8); /* 0x2B026F15: mov eax, dword ptr [edi + 8] */ 1988 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1990 esp = esp + 0xCu; /* 0x2B026F18: add esp, 0xc */ 1991 _flag_k = FK_ADD; 1992 PUSH32(esp, edx); /* 0x2B026F1B: push edx */ 1993 PUSH32(esp, eax); /* 0x2B026F1C: push eax */ 1994 PUSH32(esp, ebx); /* 0x2B026F1D: push ebx */ 1995 ecx = esi; /* 0x2B026F1E: mov ecx, esi */ 1996 RECOMP_ICALL(0x2B01DA20u); /* 0x2B026F20: call 0x2b01da20 */ /* not lifted */ 1997 RECOMP_FLAGS_IN(); 1998 ecx = edi; /* 0x2B026F25: mov ecx, edi */ 1999 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026F27: call 0x2b01da00 */ /* not lifted */ 2000 RECOMP_FLAGS_IN(); 2001 ecx = MEM32(esi + 0x4); /* 0x2B026F2C: mov ecx, dword ptr [esi + 4] */ 2002 edx = ecx + eax * 4; /* 0x2B026F2F: lea edx, [ecx + eax*4] */ 2003 MEM32(esi + 0x8) = edx; /* 0x2B026F32: mov dword ptr [esi + 8], edx */ 2004 goto L_2B026F88; /* 0x2B026F35: jmp 0x2b026f88 */ 2005 L_2B026F37: 2006 eax = MEM32(esi + 0x8); /* 0x2B026F37: mov eax, dword ptr [esi + 8] */ 2007 ecx = MEM32(esi + 0x4); /* 0x2B026F3A: mov ecx, dword ptr [esi + 4] */ 2008 PUSH32(esp, eax); /* 0x2B026F3D: push eax */ 2009 PUSH32(esp, ecx); /* 0x2B026F3E: push ecx */ 2010 ecx = esi; /* 0x2B026F3F: mov ecx, esi */ 2011 RECOMP_ICALL(0x2B0292C0u); /* 0x2B026F41: call 0x2b0292c0 */ /* not lifted */ 2012 RECOMP_FLAGS_IN(); 2013 eax = MEM32(esi + 0x4); /* 0x2B026F46: mov eax, dword ptr [esi + 4] */ 2014 PUSH32(esp, eax); /* 0x2B026F49: push eax */ 2015 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B026F4A: call 0x2b0ab1ba */ /* not lifted */ 2016 RECOMP_FLAGS_IN(); 2017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2019 esp = esp + 4; /* 0x2B026F4F: add esp, 4 */ 2020 _flag_k = FK_ADD; 2021 ecx = edi; /* 0x2B026F52: mov ecx, edi */ 2022 RECOMP_ICALL(0x2B01DA00u); /* 0x2B026F54: call 0x2b01da00 */ /* not lifted */ 2023 RECOMP_FLAGS_IN(); 2024 /* test eax, eax */ /* 0x2B026F59: test eax, eax */ 2025 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2026 _cf = 0; 2027 _flag_k = FK_TEST; 2028 if (TEST_NS(_flag_a, _flag_b)) goto L_2B026F5F; /* 0x2B026F5B: jge 0x2b026f5f */ 2029 L_2B026F5D: 2030 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2031 eax = 0; /* 0x2B026F5D: xor eax, eax */ 2032 _cf = 0; 2033 _flag_k = FK_TEST; 2034 L_2B026F5F: 2035 edx = eax * 4; /* 0x2B026F5F: lea edx, [eax*4] */ 2036 PUSH32(esp, edx); /* 0x2B026F66: push edx */ 2037 RECOMP_ICALL(0x2B0AB212u); /* 0x2B026F67: call 0x2b0ab212 */ /* not lifted */ 2038 RECOMP_FLAGS_IN(); 2039 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2040 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2041 esp = esp + 4; /* 0x2B026F6C: add esp, 4 */ 2042 _flag_k = FK_ADD; 2043 MEM32(esi + 0x4) = eax; /* 0x2B026F6F: mov dword ptr [esi + 4], eax */ 2044 ecx = MEM32(edi + 0x8); /* 0x2B026F72: mov ecx, dword ptr [edi + 8] */ 2045 edi = MEM32(edi + 0x4); /* 0x2B026F75: mov edi, dword ptr [edi + 4] */ 2046 PUSH32(esp, eax); /* 0x2B026F78: push eax */ 2047 PUSH32(esp, ecx); /* 0x2B026F79: push ecx */ 2048 PUSH32(esp, edi); /* 0x2B026F7A: push edi */ 2049 ecx = esi; /* 0x2B026F7B: mov ecx, esi */ 2050 RECOMP_ICALL(0x2B01DA20u); /* 0x2B026F7D: call 0x2b01da20 */ /* not lifted */ 2051 RECOMP_FLAGS_IN(); 2052 MEM32(esi + 0x8) = eax; /* 0x2B026F82: mov dword ptr [esi + 8], eax */ 2053 MEM32(esi + 0xC) = eax; /* 0x2B026F85: mov dword ptr [esi + 0xc], eax */ 2054 L_2B026F88: 2055 ebx = MEM32(ebp + (-0x1C)); /* 0x2B026F88: mov ebx, dword ptr [ebp - 0x1c] */ 2056 L_2B026F8B: 2057 eax = MEM32(ebp + (-0x14)); /* 0x2B026F8B: mov eax, dword ptr [ebp - 0x14] */ 2058 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B026F8E: mov cl, byte ptr [ebp - 0xd] */ 2059 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2060 esi = 0; /* 0x2B026F91: xor esi, esi */ 2061 _cf = 0; 2062 _flag_k = FK_TEST; 2063 MEM8(eax + 0x99) = (uint8_t)(1); /* 0x2B026F93: mov byte ptr [eax + 0x99], 1 */ 2064 MEM8(ebp + (-0x50)) = (uint8_t)(LO8(ecx)); /* 0x2B026F9A: mov byte ptr [ebp - 0x50], cl */ 2065 MEM32(ebp + (-0x4C)) = esi; /* 0x2B026F9D: mov dword ptr [ebp - 0x4c], esi */ 2066 MEM32(ebp + (-0x48)) = esi; /* 0x2B026FA0: mov dword ptr [ebp - 0x48], esi */ 2067 MEM32(ebp + (-0x44)) = esi; /* 0x2B026FA3: mov dword ptr [ebp - 0x44], esi */ 2068 ecx = ebp + (-0x70); /* 0x2B026FA6: lea ecx, [ebp - 0x70] */ 2069 MEM32(ebp + (-0x4)) = 1; /* 0x2B026FA9: mov dword ptr [ebp - 4], 1 */ 2070 MEM32(ebp + (-0x30)) = esi; /* 0x2B026FB0: mov dword ptr [ebp - 0x30], esi */ 2071 MEM32(ebp + (-0x2C)) = esi; /* 0x2B026FB3: mov dword ptr [ebp - 0x2c], esi */ 2072 MEM32(ebp + (-0x28)) = esi; /* 0x2B026FB6: mov dword ptr [ebp - 0x28], esi */ 2073 RECOMP_ICALL(MEM32(0x2B0B60C8)); /* 0x2B026FB9: call dword ptr [0x2b0b60c8] */ 2074 RECOMP_FLAGS_IN(); 2075 ecx = ebx; /* 0x2B026FBF: mov ecx, ebx */ 2076 RECOMP_ICALL(0x2B002FC0u); /* 0x2B026FC1: call 0x2b002fc0 */ /* not lifted */ 2077 RECOMP_FLAGS_IN(); 2078 /* test eax, eax */ /* 0x2B026FC6: test eax, eax */ 2079 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2080 _cf = 0; 2081 _flag_k = FK_TEST; 2082 if (TEST_LE(_flag_a, _flag_b)) goto L_2B027037; /* 0x2B026FC8: jle 0x2b027037 */ 2083 L_2B026FCA: 2084 edx = MEM32(ebp + (-0x14)); /* 0x2B026FCA: mov edx, dword ptr [ebp - 0x14] */ 2085 edi = edx + 0x6C; /* 0x2B026FCD: lea edi, [edx + 0x6c] */ 2086 L_2B026FD0: 2087 PUSH32(esp, esi); /* 0x2B026FD0: push esi */ 2088 eax = ebp + (-0x60); /* 0x2B026FD1: lea eax, [ebp - 0x60] */ 2089 PUSH32(esp, eax); /* 0x2B026FD4: push eax */ 2090 ecx = ebx; /* 0x2B026FD5: mov ecx, ebx */ 2091 RECOMP_ICALL(0x2B0224C0u); /* 0x2B026FD7: call 0x2b0224c0 */ /* not lifted */ 2092 RECOMP_FLAGS_IN(); 2093 ecx = ebp + (-0x60); /* 0x2B026FDC: lea ecx, [ebp - 0x60] */ 2094 PUSH32(esp, ecx); /* 0x2B026FDF: push ecx */ 2095 ecx = edi; /* 0x2B026FE0: mov ecx, edi */ 2096 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B026FE2: mov byte ptr [ebp - 4], 2 */ 2097 RECOMP_ICALL(0x2B0273D0u); /* 0x2B026FE6: call 0x2b0273d0 */ /* not lifted */ 2098 RECOMP_FLAGS_IN(); 2099 /* test LO8(eax), LO8(eax) */ /* 0x2B026FEB: test al, al */ 2100 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2101 _cf = 0; 2102 _flag_k = FK_NARROW(FK_TEST, 24); 2103 if (TEST_Z(_flag_a, _flag_b)) goto L_2B02700D; /* 0x2B026FED: je 0x2b02700d */ 2104 L_2B026FEF: 2105 edx = ebp + (-0x24); /* 0x2B026FEF: lea edx, [ebp - 0x24] */ 2106 PUSH32(esp, edx); /* 0x2B026FF2: push edx */ 2107 eax = ebp + (-0x70); /* 0x2B026FF3: lea eax, [ebp - 0x70] */ 2108 PUSH32(esp, eax); /* 0x2B026FF6: push eax */ 2109 ecx = ebp + (-0x30); /* 0x2B026FF7: lea ecx, [ebp - 0x30] */ 2110 PUSH32(esp, ecx); /* 0x2B026FFA: push ecx */ 2111 edx = ebp + (-0x60); /* 0x2B026FFB: lea edx, [ebp - 0x60] */ 2112 PUSH32(esp, edx); /* 0x2B026FFE: push edx */ 2113 ecx = edi; /* 0x2B026FFF: mov ecx, edi */ 2114 RECOMP_ICALL(0x2B028450u); /* 0x2B027001: call 0x2b028450 */ /* not lifted */ 2115 RECOMP_FLAGS_IN(); 2116 ecx = eax; /* 0x2B027006: mov ecx, eax */ 2117 RECOMP_ICALL(0x2B027380u); /* 0x2B027008: call 0x2b027380 */ /* not lifted */ 2118 RECOMP_FLAGS_IN(); 2119 L_2B02700D: 2120 ecx = MEM32(ebp + (-0x48)); /* 0x2B02700D: mov ecx, dword ptr [ebp - 0x48] */ 2121 eax = ebp + (-0x30); /* 0x2B027010: lea eax, [ebp - 0x30] */ 2122 PUSH32(esp, eax); /* 0x2B027013: push eax */ 2123 PUSH32(esp, ecx); /* 0x2B027014: push ecx */ 2124 ecx = ebp + (-0x50); /* 0x2B027015: lea ecx, [ebp - 0x50] */ 2125 RECOMP_ICALL(0x2B028A50u); /* 0x2B027018: call 0x2b028a50 */ /* not lifted */ 2126 RECOMP_FLAGS_IN(); 2127 ecx = ebp + (-0x60); /* 0x2B02701D: lea ecx, [ebp - 0x60] */ 2128 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B027020: mov byte ptr [ebp - 4], 1 */ 2129 RECOMP_ICALL(0x2B012D80u); /* 0x2B027024: call 0x2b012d80 */ /* not lifted */ 2130 RECOMP_FLAGS_IN(); 2131 ecx = ebx; /* 0x2B027029: mov ecx, ebx */ 2132 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2133 esi = esi + 1; /* 0x2B02702B: inc esi */ 2134 _flag_k = FK_INC; 2135 RECOMP_ICALL(0x2B002FC0u); /* 0x2B02702C: call 0x2b002fc0 */ /* not lifted */ 2136 RECOMP_FLAGS_IN(); 2137 /* cmp esi, eax */ /* 0x2B027031: cmp esi, eax */ 2138 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2140 _flag_k = FK_CMP; 2141 RECOMP_BACKEDGE(); 2142 if (CMP_L(_flag_a, _flag_b)) goto L_2B026FD0; /* 0x2B027033: jl 0x2b026fd0 */ 2143 L_2B027035: 2144 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2145 esi = 0; /* 0x2B027035: xor esi, esi */ 2146 _cf = 0; 2147 _flag_k = FK_TEST; 2148 L_2B027037: 2149 PUSH32(esp, 0x38u); /* 0x2B027037: push 0x38 */ 2150 RECOMP_ICALL(0x2B0AB212u); /* 0x2B027039: call 0x2b0ab212 */ /* not lifted */ 2151 RECOMP_FLAGS_IN(); 2152 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2154 esp = esp + 4; /* 0x2B02703E: add esp, 4 */ 2155 _flag_k = FK_ADD; 2156 MEM32(ebp + (-0x20)) = eax; /* 0x2B027041: mov dword ptr [ebp - 0x20], eax */ 2157 /* cmp eax, esi */ /* 0x2B027044: cmp eax, esi */ 2158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2160 _flag_k = FK_CMP; 2161 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027046: mov byte ptr [ebp - 4], 3 */ 2162 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02705B; /* 0x2B02704A: je 0x2b02705b */ 2163 L_2B02704C: 2164 PUSH32(esp, esi); /* 0x2B02704C: push esi */ 2165 PUSH32(esp, esi); /* 0x2B02704D: push esi */ 2166 edx = ebp + (-0x50); /* 0x2B02704E: lea edx, [ebp - 0x50] */ 2167 PUSH32(esp, edx); /* 0x2B027051: push edx */ 2168 ecx = eax; /* 0x2B027052: mov ecx, eax */ 2169 RECOMP_ICALL(0x2B027090u); /* 0x2B027054: call 0x2b027090 */ /* not lifted */ 2170 RECOMP_FLAGS_IN(); 2171 goto L_2B02705D; /* 0x2B027059: jmp 0x2b02705d */ 2172 L_2B02705B: 2173 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2174 eax = 0; /* 0x2B02705B: xor eax, eax */ 2175 _cf = 0; 2176 _flag_k = FK_TEST; 2177 L_2B02705D: 2178 ecx = MEM32(ebp + (-0x14)); /* 0x2B02705D: mov ecx, dword ptr [ebp - 0x14] */ 2179 MEM32(ecx + 0xB0) = eax; /* 0x2B027060: mov dword ptr [ecx + 0xb0], eax */ 2180 ecx = ebp + (-0x50); /* 0x2B027066: lea ecx, [ebp - 0x50] */ 2181 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B027069: mov dword ptr [ebp - 4], 0xffffffff */ 2182 RECOMP_ICALL(0x2B012D80u); /* 0x2B027070: call 0x2b012d80 */ /* not lifted */ 2183 RECOMP_FLAGS_IN(); 2184 L_2B027075: 2185 ecx = MEM32(ebp + (-0xC)); /* 0x2B027075: mov ecx, dword ptr [ebp - 0xc] */ 2186 edi = POP32_VAL(esp); /* 0x2B027078: pop edi */ 2187 esi = POP32_VAL(esp); /* 0x2B027079: pop esi */ 2188 ebx = POP32_VAL(esp); /* 0x2B02707A: pop ebx */ 2189 MEM32(FS_BASE + (0)) = ecx; /* 0x2B02707B: mov dword ptr fs:[0], ecx */ 2190 esp = ebp; /* 0x2B027082: mov esp, ebp */ 2191 ebp = POP32_VAL(esp); /* 0x2B027084: pop ebp */ 2192 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B027085: ret */ 2193 RECOMP_REGS_OUT(); 2194 } 2195 2196 void sub_2B026F88(void) { 2197 int _fpu_cmp = 0; 2198 uint32_t _cf = 0; 2199 int _df = 1; 2200 uint32_t _flag_k = FK_NONE; 2201 uint32_t _flag_a = 0, _flag_b = 0; 2202 uint32_t _itail_tgt = 0; 2203 RECOMP_REGS_LOCALS 2204 RECOMP_ENTER(0x2B026F88u); 2205 2206 L_2B026F88: 2207 ebx = MEM32(ebp + (-0x1C)); /* 0x2B026F88: mov ebx, dword ptr [ebp - 0x1c] */ 2208 eax = MEM32(ebp + (-0x14)); /* 0x2B026F8B: mov eax, dword ptr [ebp - 0x14] */ 2209 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B026F8E: mov cl, byte ptr [ebp - 0xd] */ 2210 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2211 esi = 0; /* 0x2B026F91: xor esi, esi */ 2212 _cf = 0; 2213 _flag_k = FK_TEST; 2214 MEM8(eax + 0x99) = (uint8_t)(1); /* 0x2B026F93: mov byte ptr [eax + 0x99], 1 */ 2215 MEM8(ebp + (-0x50)) = (uint8_t)(LO8(ecx)); /* 0x2B026F9A: mov byte ptr [ebp - 0x50], cl */ 2216 MEM32(ebp + (-0x4C)) = esi; /* 0x2B026F9D: mov dword ptr [ebp - 0x4c], esi */ 2217 MEM32(ebp + (-0x48)) = esi; /* 0x2B026FA0: mov dword ptr [ebp - 0x48], esi */ 2218 MEM32(ebp + (-0x44)) = esi; /* 0x2B026FA3: mov dword ptr [ebp - 0x44], esi */ 2219 ecx = ebp + (-0x70); /* 0x2B026FA6: lea ecx, [ebp - 0x70] */ 2220 MEM32(ebp + (-0x4)) = 1; /* 0x2B026FA9: mov dword ptr [ebp - 4], 1 */ 2221 MEM32(ebp + (-0x30)) = esi; /* 0x2B026FB0: mov dword ptr [ebp - 0x30], esi */ 2222 MEM32(ebp + (-0x2C)) = esi; /* 0x2B026FB3: mov dword ptr [ebp - 0x2c], esi */ 2223 MEM32(ebp + (-0x28)) = esi; /* 0x2B026FB6: mov dword ptr [ebp - 0x28], esi */ 2224 RECOMP_ICALL(MEM32(0x2B0B60C8)); /* 0x2B026FB9: call dword ptr [0x2b0b60c8] */ 2225 RECOMP_FLAGS_IN(); 2226 ecx = ebx; /* 0x2B026FBF: mov ecx, ebx */ 2227 RECOMP_ICALL(0x2B002FC0u); /* 0x2B026FC1: call 0x2b002fc0 */ /* not lifted */ 2228 RECOMP_FLAGS_IN(); 2229 /* test eax, eax */ /* 0x2B026FC6: test eax, eax */ 2230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2231 _cf = 0; 2232 _flag_k = FK_TEST; 2233 if (TEST_LE(_flag_a, _flag_b)) goto L_2B027037; /* 0x2B026FC8: jle 0x2b027037 */ 2234 L_2B026FCA: 2235 edx = MEM32(ebp + (-0x14)); /* 0x2B026FCA: mov edx, dword ptr [ebp - 0x14] */ 2236 edi = edx + 0x6C; /* 0x2B026FCD: lea edi, [edx + 0x6c] */ 2237 L_2B026FD0: 2238 PUSH32(esp, esi); /* 0x2B026FD0: push esi */ 2239 eax = ebp + (-0x60); /* 0x2B026FD1: lea eax, [ebp - 0x60] */ 2240 PUSH32(esp, eax); /* 0x2B026FD4: push eax */ 2241 ecx = ebx; /* 0x2B026FD5: mov ecx, ebx */ 2242 RECOMP_ICALL(0x2B0224C0u); /* 0x2B026FD7: call 0x2b0224c0 */ /* not lifted */ 2243 RECOMP_FLAGS_IN(); 2244 ecx = ebp + (-0x60); /* 0x2B026FDC: lea ecx, [ebp - 0x60] */ 2245 PUSH32(esp, ecx); /* 0x2B026FDF: push ecx */ 2246 ecx = edi; /* 0x2B026FE0: mov ecx, edi */ 2247 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B026FE2: mov byte ptr [ebp - 4], 2 */ 2248 RECOMP_ICALL(0x2B0273D0u); /* 0x2B026FE6: call 0x2b0273d0 */ /* not lifted */ 2249 RECOMP_FLAGS_IN(); 2250 /* test LO8(eax), LO8(eax) */ /* 0x2B026FEB: test al, al */ 2251 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2252 _cf = 0; 2253 _flag_k = FK_NARROW(FK_TEST, 24); 2254 if (TEST_Z(_flag_a, _flag_b)) goto L_2B02700D; /* 0x2B026FED: je 0x2b02700d */ 2255 L_2B026FEF: 2256 edx = ebp + (-0x24); /* 0x2B026FEF: lea edx, [ebp - 0x24] */ 2257 PUSH32(esp, edx); /* 0x2B026FF2: push edx */ 2258 eax = ebp + (-0x70); /* 0x2B026FF3: lea eax, [ebp - 0x70] */ 2259 PUSH32(esp, eax); /* 0x2B026FF6: push eax */ 2260 ecx = ebp + (-0x30); /* 0x2B026FF7: lea ecx, [ebp - 0x30] */ 2261 PUSH32(esp, ecx); /* 0x2B026FFA: push ecx */ 2262 edx = ebp + (-0x60); /* 0x2B026FFB: lea edx, [ebp - 0x60] */ 2263 PUSH32(esp, edx); /* 0x2B026FFE: push edx */ 2264 ecx = edi; /* 0x2B026FFF: mov ecx, edi */ 2265 RECOMP_ICALL(0x2B028450u); /* 0x2B027001: call 0x2b028450 */ /* not lifted */ 2266 RECOMP_FLAGS_IN(); 2267 ecx = eax; /* 0x2B027006: mov ecx, eax */ 2268 RECOMP_ICALL(0x2B027380u); /* 0x2B027008: call 0x2b027380 */ /* not lifted */ 2269 RECOMP_FLAGS_IN(); 2270 L_2B02700D: 2271 ecx = MEM32(ebp + (-0x48)); /* 0x2B02700D: mov ecx, dword ptr [ebp - 0x48] */ 2272 eax = ebp + (-0x30); /* 0x2B027010: lea eax, [ebp - 0x30] */ 2273 PUSH32(esp, eax); /* 0x2B027013: push eax */ 2274 PUSH32(esp, ecx); /* 0x2B027014: push ecx */ 2275 ecx = ebp + (-0x50); /* 0x2B027015: lea ecx, [ebp - 0x50] */ 2276 RECOMP_ICALL(0x2B028A50u); /* 0x2B027018: call 0x2b028a50 */ /* not lifted */ 2277 RECOMP_FLAGS_IN(); 2278 ecx = ebp + (-0x60); /* 0x2B02701D: lea ecx, [ebp - 0x60] */ 2279 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B027020: mov byte ptr [ebp - 4], 1 */ 2280 RECOMP_ICALL(0x2B012D80u); /* 0x2B027024: call 0x2b012d80 */ /* not lifted */ 2281 RECOMP_FLAGS_IN(); 2282 ecx = ebx; /* 0x2B027029: mov ecx, ebx */ 2283 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2284 esi = esi + 1; /* 0x2B02702B: inc esi */ 2285 _flag_k = FK_INC; 2286 RECOMP_ICALL(0x2B002FC0u); /* 0x2B02702C: call 0x2b002fc0 */ /* not lifted */ 2287 RECOMP_FLAGS_IN(); 2288 /* cmp esi, eax */ /* 0x2B027031: cmp esi, eax */ 2289 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2291 _flag_k = FK_CMP; 2292 RECOMP_BACKEDGE(); 2293 if (CMP_L(_flag_a, _flag_b)) goto L_2B026FD0; /* 0x2B027033: jl 0x2b026fd0 */ 2294 L_2B027035: 2295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2296 esi = 0; /* 0x2B027035: xor esi, esi */ 2297 _cf = 0; 2298 _flag_k = FK_TEST; 2299 L_2B027037: 2300 PUSH32(esp, 0x38u); /* 0x2B027037: push 0x38 */ 2301 RECOMP_ICALL(0x2B0AB212u); /* 0x2B027039: call 0x2b0ab212 */ /* not lifted */ 2302 RECOMP_FLAGS_IN(); 2303 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2304 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2305 esp = esp + 4; /* 0x2B02703E: add esp, 4 */ 2306 _flag_k = FK_ADD; 2307 MEM32(ebp + (-0x20)) = eax; /* 0x2B027041: mov dword ptr [ebp - 0x20], eax */ 2308 /* cmp eax, esi */ /* 0x2B027044: cmp eax, esi */ 2309 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2311 _flag_k = FK_CMP; 2312 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027046: mov byte ptr [ebp - 4], 3 */ 2313 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02705B; /* 0x2B02704A: je 0x2b02705b */ 2314 L_2B02704C: 2315 PUSH32(esp, esi); /* 0x2B02704C: push esi */ 2316 PUSH32(esp, esi); /* 0x2B02704D: push esi */ 2317 edx = ebp + (-0x50); /* 0x2B02704E: lea edx, [ebp - 0x50] */ 2318 PUSH32(esp, edx); /* 0x2B027051: push edx */ 2319 ecx = eax; /* 0x2B027052: mov ecx, eax */ 2320 RECOMP_ICALL(0x2B027090u); /* 0x2B027054: call 0x2b027090 */ /* not lifted */ 2321 RECOMP_FLAGS_IN(); 2322 goto L_2B02705D; /* 0x2B027059: jmp 0x2b02705d */ 2323 L_2B02705B: 2324 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2325 eax = 0; /* 0x2B02705B: xor eax, eax */ 2326 _cf = 0; 2327 _flag_k = FK_TEST; 2328 L_2B02705D: 2329 ecx = MEM32(ebp + (-0x14)); /* 0x2B02705D: mov ecx, dword ptr [ebp - 0x14] */ 2330 MEM32(ecx + 0xB0) = eax; /* 0x2B027060: mov dword ptr [ecx + 0xb0], eax */ 2331 ecx = ebp + (-0x50); /* 0x2B027066: lea ecx, [ebp - 0x50] */ 2332 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B027069: mov dword ptr [ebp - 4], 0xffffffff */ 2333 RECOMP_ICALL(0x2B012D80u); /* 0x2B027070: call 0x2b012d80 */ /* not lifted */ 2334 RECOMP_FLAGS_IN(); 2335 ecx = MEM32(ebp + (-0xC)); /* 0x2B027075: mov ecx, dword ptr [ebp - 0xc] */ 2336 edi = POP32_VAL(esp); /* 0x2B027078: pop edi */ 2337 esi = POP32_VAL(esp); /* 0x2B027079: pop esi */ 2338 ebx = POP32_VAL(esp); /* 0x2B02707A: pop ebx */ 2339 MEM32(FS_BASE + (0)) = ecx; /* 0x2B02707B: mov dword ptr fs:[0], ecx */ 2340 esp = ebp; /* 0x2B027082: mov esp, ebp */ 2341 ebp = POP32_VAL(esp); /* 0x2B027084: pop ebp */ 2342 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B027085: ret */ 2343 RECOMP_REGS_OUT(); 2344 } 2345 2346 void sub_2B02705D(void) { 2347 int _fpu_cmp = 0; 2348 uint32_t _cf = 0; 2349 int _df = 1; 2350 uint32_t _flag_k = FK_NONE; 2351 uint32_t _flag_a = 0, _flag_b = 0; 2352 uint32_t _itail_tgt = 0; 2353 RECOMP_REGS_LOCALS 2354 RECOMP_ENTER(0x2B02705Du); 2355 2356 L_2B02705D: 2357 ecx = MEM32(ebp + (-0x14)); /* 0x2B02705D: mov ecx, dword ptr [ebp - 0x14] */ 2358 MEM32(ecx + 0xB0) = eax; /* 0x2B027060: mov dword ptr [ecx + 0xb0], eax */ 2359 ecx = ebp + (-0x50); /* 0x2B027066: lea ecx, [ebp - 0x50] */ 2360 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B027069: mov dword ptr [ebp - 4], 0xffffffff */ 2361 RECOMP_ICALL(0x2B012D80u); /* 0x2B027070: call 0x2b012d80 */ /* not lifted */ 2362 RECOMP_FLAGS_IN(); 2363 ecx = MEM32(ebp + (-0xC)); /* 0x2B027075: mov ecx, dword ptr [ebp - 0xc] */ 2364 edi = POP32_VAL(esp); /* 0x2B027078: pop edi */ 2365 esi = POP32_VAL(esp); /* 0x2B027079: pop esi */ 2366 ebx = POP32_VAL(esp); /* 0x2B02707A: pop ebx */ 2367 MEM32(FS_BASE + (0)) = ecx; /* 0x2B02707B: mov dword ptr fs:[0], ecx */ 2368 esp = ebp; /* 0x2B027082: mov esp, ebp */ 2369 ebp = POP32_VAL(esp); /* 0x2B027084: pop ebp */ 2370 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B027085: ret */ 2371 RECOMP_REGS_OUT(); 2372 } 2373 2374 void sub_2B027090(void) { 2375 int _fpu_cmp = 0; 2376 uint32_t _cf = 0; 2377 int _df = 1; 2378 uint32_t _flag_k = FK_NONE; 2379 uint32_t _flag_a = 0, _flag_b = 0; 2380 uint32_t _itail_tgt = 0; 2381 RECOMP_REGS_LOCALS 2382 RECOMP_ENTER(0x2B027090u); 2383 2384 L_2B027090: 2385 PUSH32(esp, ebp); /* 0x2B027090: push ebp */ 2386 ebp = esp; /* 0x2B027091: mov ebp, esp */ 2387 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B027093: push -1 */ 2388 PUSH32(esp, 0x2B0ADB3Eu); /* 0x2B027095: push 0x2b0adb3e */ 2389 eax = MEM32(FS_BASE + (0)); /* 0x2B02709A: mov eax, dword ptr fs:[0] */ 2390 PUSH32(esp, eax); /* 0x2B0270A0: push eax */ 2391 MEM32(FS_BASE + (0)) = esp; /* 0x2B0270A1: mov dword ptr fs:[0], esp */ 2392 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2394 esp = esp - 0xCu; /* 0x2B0270A8: sub esp, 0xc */ 2395 _flag_k = FK_CMP; 2396 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B0270AB: mov al, byte ptr [ebp + 0x13] */ 2397 PUSH32(esp, ebx); /* 0x2B0270AE: push ebx */ 2398 PUSH32(esp, esi); /* 0x2B0270AF: push esi */ 2399 esi = ecx; /* 0x2B0270B0: mov esi, ecx */ 2400 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2401 ecx = 0; /* 0x2B0270B2: xor ecx, ecx */ 2402 _cf = 0; 2403 _flag_k = FK_TEST; 2404 PUSH32(esp, edi); /* 0x2B0270B4: push edi */ 2405 MEM32(ebp + (-0x10)) = esi; /* 0x2B0270B5: mov dword ptr [ebp - 0x10], esi */ 2406 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x2B0270B8: mov byte ptr [esi], al */ 2407 MEM32(esi + 0x4) = ecx; /* 0x2B0270BA: mov dword ptr [esi + 4], ecx */ 2408 MEM32(esi + 0x8) = ecx; /* 0x2B0270BD: mov dword ptr [esi + 8], ecx */ 2409 MEM32(esi + 0xC) = ecx; /* 0x2B0270C0: mov dword ptr [esi + 0xc], ecx */ 2410 SET_LO8(edx, MEM8(ebp + 0x13)); /* 0x2B0270C3: mov dl, byte ptr [ebp + 0x13] */ 2411 MEM32(ebp + (-0x4)) = ecx; /* 0x2B0270C6: mov dword ptr [ebp - 4], ecx */ 2412 MEM8(esi + 0x10) = (uint8_t)(LO8(edx)); /* 0x2B0270C9: mov byte ptr [esi + 0x10], dl */ 2413 MEM32(esi + 0x14) = ecx; /* 0x2B0270CC: mov dword ptr [esi + 0x14], ecx */ 2414 MEM32(esi + 0x18) = ecx; /* 0x2B0270CF: mov dword ptr [esi + 0x18], ecx */ 2415 MEM32(esi + 0x1C) = ecx; /* 0x2B0270D2: mov dword ptr [esi + 0x1c], ecx */ 2416 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B0270D5: mov al, byte ptr [ebp + 0x13] */ 2417 MEM8(esi + 0x20) = (uint8_t)(LO8(eax)); /* 0x2B0270D8: mov byte ptr [esi + 0x20], al */ 2418 MEM32(esi + 0x24) = ecx; /* 0x2B0270DB: mov dword ptr [esi + 0x24], ecx */ 2419 MEM32(esi + 0x28) = ecx; /* 0x2B0270DE: mov dword ptr [esi + 0x28], ecx */ 2420 MEM32(esi + 0x2C) = ecx; /* 0x2B0270E1: mov dword ptr [esi + 0x2c], ecx */ 2421 edi = MEM32(ebp + 0x8); /* 0x2B0270E4: mov edi, dword ptr [ebp + 8] */ 2422 /* cmp esi, edi */ /* 0x2B0270E7: cmp esi, edi */ 2423 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2425 _flag_k = FK_CMP; 2426 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B0270E9: mov byte ptr [ebp - 4], 2 */ 2427 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027204; /* 0x2B0270ED: je 0x2b027204 */ 2428 L_2B0270F3: 2429 eax = MEM32(edi + 0x4); /* 0x2B0270F3: mov eax, dword ptr [edi + 4] */ 2430 /* cmp eax, ecx */ /* 0x2B0270F6: cmp eax, ecx */ 2431 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2433 _flag_k = FK_CMP; 2434 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0270FE; /* 0x2B0270F8: jne 0x2b0270fe */ 2435 L_2B0270FA: 2436 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2437 ebx = 0; /* 0x2B0270FA: xor ebx, ebx */ 2438 _cf = 0; 2439 _flag_k = FK_TEST; 2440 goto L_2B027115; /* 0x2B0270FC: jmp 0x2b027115 */ 2441 L_2B0270FE: 2442 ecx = MEM32(edi + 0x8); /* 0x2B0270FE: mov ecx, dword ptr [edi + 8] */ 2443 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2445 ecx = ecx - eax; /* 0x2B027101: sub ecx, eax */ 2446 _flag_k = FK_CMP; 2447 eax = 0x2AAAAAABu; /* 0x2B027103: mov eax, 0x2aaaaaab */ 2448 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B027108: imul ecx */ 2449 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2450 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2451 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B02710A: sar edx, 1 */ 2452 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2453 edx = (uint32_t)((int32_t)edx >> 1u); 2454 ecx = edx; /* 0x2B02710C: mov ecx, edx */ 2455 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B02710E: shr ecx, 0x1f */ 2456 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2457 ecx = ecx >> 31u; /* 0x2B02710E: shr ecx, 0x1f */ 2458 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2460 edx = edx + ecx; /* 0x2B027111: add edx, ecx */ 2461 _flag_k = FK_ADD; 2462 ebx = edx; /* 0x2B027113: mov ebx, edx */ 2463 L_2B027115: 2464 ecx = esi; /* 0x2B027115: mov ecx, esi */ 2465 RECOMP_ICALL(0x2B028430u); /* 0x2B027117: call 0x2b028430 */ /* not lifted */ 2466 RECOMP_FLAGS_IN(); 2467 /* cmp ebx, eax */ /* 0x2B02711C: cmp ebx, eax */ 2468 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2470 _flag_k = FK_CMP; 2471 if (CMP_A(_flag_a, _flag_b)) goto L_2B027158; /* 0x2B02711E: ja 0x2b027158 */ 2472 L_2B027120: 2473 edx = MEM32(esi + 0x4); /* 0x2B027120: mov edx, dword ptr [esi + 4] */ 2474 eax = MEM32(edi + 0x8); /* 0x2B027123: mov eax, dword ptr [edi + 8] */ 2475 ecx = MEM32(edi + 0x4); /* 0x2B027126: mov ecx, dword ptr [edi + 4] */ 2476 PUSH32(esp, edx); /* 0x2B027129: push edx */ 2477 PUSH32(esp, eax); /* 0x2B02712A: push eax */ 2478 PUSH32(esp, ecx); /* 0x2B02712B: push ecx */ 2479 RECOMP_ICALL(0x2B02A7E0u); /* 0x2B02712C: call 0x2b02a7e0 */ /* not lifted */ 2480 RECOMP_FLAGS_IN(); 2481 ecx = MEM32(esi + 0x8); /* 0x2B027131: mov ecx, dword ptr [esi + 8] */ 2482 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2484 esp = esp + 0xCu; /* 0x2B027134: add esp, 0xc */ 2485 _flag_k = FK_ADD; 2486 PUSH32(esp, ecx); /* 0x2B027137: push ecx */ 2487 PUSH32(esp, eax); /* 0x2B027138: push eax */ 2488 ecx = esi; /* 0x2B027139: mov ecx, esi */ 2489 RECOMP_ICALL(0x2B0292C0u); /* 0x2B02713B: call 0x2b0292c0 */ /* not lifted */ 2490 RECOMP_FLAGS_IN(); 2491 ecx = edi; /* 0x2B027140: mov ecx, edi */ 2492 RECOMP_ICALL(0x2B028430u); /* 0x2B027142: call 0x2b028430 */ /* not lifted */ 2493 RECOMP_FLAGS_IN(); 2494 edx = eax + eax * 2; /* 0x2B027147: lea edx, [eax + eax*2] */ 2495 eax = MEM32(esi + 0x4); /* 0x2B02714A: mov eax, dword ptr [esi + 4] */ 2496 ecx = eax + edx * 4; /* 0x2B02714D: lea ecx, [eax + edx*4] */ 2497 MEM32(esi + 0x8) = ecx; /* 0x2B027150: mov dword ptr [esi + 8], ecx */ 2498 goto L_2B027202; /* 0x2B027153: jmp 0x2b027202 */ 2499 L_2B027158: 2500 ecx = edi; /* 0x2B027158: mov ecx, edi */ 2501 RECOMP_ICALL(0x2B028430u); /* 0x2B02715A: call 0x2b028430 */ /* not lifted */ 2502 RECOMP_FLAGS_IN(); 2503 ecx = esi; /* 0x2B02715F: mov ecx, esi */ 2504 ebx = eax; /* 0x2B027161: mov ebx, eax */ 2505 RECOMP_ICALL(0x2B028A30u); /* 0x2B027163: call 0x2b028a30 */ /* not lifted */ 2506 RECOMP_FLAGS_IN(); 2507 /* cmp ebx, eax */ /* 0x2B027168: cmp ebx, eax */ 2508 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2510 _flag_k = FK_CMP; 2511 if (CMP_A(_flag_a, _flag_b)) goto L_2B0271B2; /* 0x2B02716A: ja 0x2b0271b2 */ 2512 L_2B02716C: 2513 ebx = MEM32(edi + 0x4); /* 0x2B02716C: mov ebx, dword ptr [edi + 4] */ 2514 ecx = esi; /* 0x2B02716F: mov ecx, esi */ 2515 RECOMP_ICALL(0x2B028430u); /* 0x2B027171: call 0x2b028430 */ /* not lifted */ 2516 RECOMP_FLAGS_IN(); 2517 ecx = MEM32(edi + 0x4); /* 0x2B027176: mov ecx, dword ptr [edi + 4] */ 2518 edx = eax + eax * 2; /* 0x2B027179: lea edx, [eax + eax*2] */ 2519 eax = MEM32(esi + 0x4); /* 0x2B02717C: mov eax, dword ptr [esi + 4] */ 2520 PUSH32(esp, eax); /* 0x2B02717F: push eax */ 2521 ebx = ebx + edx * 4; /* 0x2B027180: lea ebx, [ebx + edx*4] */ 2522 PUSH32(esp, ebx); /* 0x2B027183: push ebx */ 2523 PUSH32(esp, ecx); /* 0x2B027184: push ecx */ 2524 RECOMP_ICALL(0x2B02A7E0u); /* 0x2B027185: call 0x2b02a7e0 */ /* not lifted */ 2525 RECOMP_FLAGS_IN(); 2526 edx = MEM32(esi + 0x8); /* 0x2B02718A: mov edx, dword ptr [esi + 8] */ 2527 eax = MEM32(edi + 0x8); /* 0x2B02718D: mov eax, dword ptr [edi + 8] */ 2528 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2529 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2530 esp = esp + 0xCu; /* 0x2B027190: add esp, 0xc */ 2531 _flag_k = FK_ADD; 2532 PUSH32(esp, edx); /* 0x2B027193: push edx */ 2533 PUSH32(esp, eax); /* 0x2B027194: push eax */ 2534 PUSH32(esp, ebx); /* 0x2B027195: push ebx */ 2535 ecx = esi; /* 0x2B027196: mov ecx, esi */ 2536 RECOMP_ICALL(0x2B028C80u); /* 0x2B027198: call 0x2b028c80 */ /* not lifted */ 2537 RECOMP_FLAGS_IN(); 2538 ecx = edi; /* 0x2B02719D: mov ecx, edi */ 2539 RECOMP_ICALL(0x2B028430u); /* 0x2B02719F: call 0x2b028430 */ /* not lifted */ 2540 RECOMP_FLAGS_IN(); 2541 edx = MEM32(esi + 0x4); /* 0x2B0271A4: mov edx, dword ptr [esi + 4] */ 2542 ecx = eax + eax * 2; /* 0x2B0271A7: lea ecx, [eax + eax*2] */ 2543 eax = edx + ecx * 4; /* 0x2B0271AA: lea eax, [edx + ecx*4] */ 2544 MEM32(esi + 0x8) = eax; /* 0x2B0271AD: mov dword ptr [esi + 8], eax */ 2545 goto L_2B027202; /* 0x2B0271B0: jmp 0x2b027202 */ 2546 L_2B0271B2: 2547 ecx = MEM32(esi + 0x8); /* 0x2B0271B2: mov ecx, dword ptr [esi + 8] */ 2548 edx = MEM32(esi + 0x4); /* 0x2B0271B5: mov edx, dword ptr [esi + 4] */ 2549 PUSH32(esp, ecx); /* 0x2B0271B8: push ecx */ 2550 PUSH32(esp, edx); /* 0x2B0271B9: push edx */ 2551 ecx = esi; /* 0x2B0271BA: mov ecx, esi */ 2552 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0271BC: call 0x2b0292c0 */ /* not lifted */ 2553 RECOMP_FLAGS_IN(); 2554 eax = MEM32(esi + 0x4); /* 0x2B0271C1: mov eax, dword ptr [esi + 4] */ 2555 PUSH32(esp, eax); /* 0x2B0271C4: push eax */ 2556 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0271C5: call 0x2b0ab1ba */ /* not lifted */ 2557 RECOMP_FLAGS_IN(); 2558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2560 esp = esp + 4; /* 0x2B0271CA: add esp, 4 */ 2561 _flag_k = FK_ADD; 2562 ecx = edi; /* 0x2B0271CD: mov ecx, edi */ 2563 RECOMP_ICALL(0x2B028430u); /* 0x2B0271CF: call 0x2b028430 */ /* not lifted */ 2564 RECOMP_FLAGS_IN(); 2565 /* test eax, eax */ /* 0x2B0271D4: test eax, eax */ 2566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2567 _cf = 0; 2568 _flag_k = FK_TEST; 2569 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0271DA; /* 0x2B0271D6: jge 0x2b0271da */ 2570 L_2B0271D8: 2571 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2572 eax = 0; /* 0x2B0271D8: xor eax, eax */ 2573 _cf = 0; 2574 _flag_k = FK_TEST; 2575 L_2B0271DA: 2576 ecx = eax + eax * 2; /* 0x2B0271DA: lea ecx, [eax + eax*2] */ 2577 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x2B0271DD: shl ecx, 2 */ 2578 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2579 ecx = ecx << 2u; /* 0x2B0271DD: shl ecx, 2 */ 2580 PUSH32(esp, ecx); /* 0x2B0271E0: push ecx */ 2581 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0271E1: call 0x2b0ab212 */ /* not lifted */ 2582 RECOMP_FLAGS_IN(); 2583 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2584 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2585 esp = esp + 4; /* 0x2B0271E6: add esp, 4 */ 2586 _flag_k = FK_ADD; 2587 MEM32(esi + 0x4) = eax; /* 0x2B0271E9: mov dword ptr [esi + 4], eax */ 2588 ecx = MEM32(edi + 0x8); /* 0x2B0271EC: mov ecx, dword ptr [edi + 8] */ 2589 edx = MEM32(edi + 0x4); /* 0x2B0271EF: mov edx, dword ptr [edi + 4] */ 2590 PUSH32(esp, eax); /* 0x2B0271F2: push eax */ 2591 PUSH32(esp, ecx); /* 0x2B0271F3: push ecx */ 2592 PUSH32(esp, edx); /* 0x2B0271F4: push edx */ 2593 ecx = esi; /* 0x2B0271F5: mov ecx, esi */ 2594 RECOMP_ICALL(0x2B028C80u); /* 0x2B0271F7: call 0x2b028c80 */ /* not lifted */ 2595 RECOMP_FLAGS_IN(); 2596 MEM32(esi + 0x8) = eax; /* 0x2B0271FC: mov dword ptr [esi + 8], eax */ 2597 MEM32(esi + 0xC) = eax; /* 0x2B0271FF: mov dword ptr [esi + 0xc], eax */ 2598 L_2B027202: 2599 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2600 ecx = 0; /* 0x2B027202: xor ecx, ecx */ 2601 _cf = 0; 2602 _flag_k = FK_TEST; 2603 L_2B027204: 2604 eax = MEM32(edi + 0x4); /* 0x2B027204: mov eax, dword ptr [edi + 4] */ 2605 /* cmp eax, ecx */ /* 0x2B027207: cmp eax, ecx */ 2606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2608 _flag_k = FK_CMP; 2609 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02720F; /* 0x2B027209: jne 0x2b02720f */ 2610 L_2B02720B: 2611 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2612 ebx = 0; /* 0x2B02720B: xor ebx, ebx */ 2613 _cf = 0; 2614 _flag_k = FK_TEST; 2615 goto L_2B027226; /* 0x2B02720D: jmp 0x2b027226 */ 2616 L_2B02720F: 2617 edi = MEM32(edi + 0x8); /* 0x2B02720F: mov edi, dword ptr [edi + 8] */ 2618 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2620 edi = edi - eax; /* 0x2B027212: sub edi, eax */ 2621 _flag_k = FK_CMP; 2622 eax = 0x2AAAAAABu; /* 0x2B027214: mov eax, 0x2aaaaaab */ 2623 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edi); /* 0x2B027219: imul edi */ 2624 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2625 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2626 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B02721B: sar edx, 1 */ 2627 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2628 edx = (uint32_t)((int32_t)edx >> 1u); 2629 eax = edx; /* 0x2B02721D: mov eax, edx */ 2630 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B02721F: shr eax, 0x1f */ 2631 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2632 eax = eax >> 31u; /* 0x2B02721F: shr eax, 0x1f */ 2633 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2635 edx = edx + eax; /* 0x2B027222: add edx, eax */ 2636 _flag_k = FK_ADD; 2637 ebx = edx; /* 0x2B027224: mov ebx, edx */ 2638 L_2B027226: 2639 eax = MEM32(ebp + 0xC); /* 0x2B027226: mov eax, dword ptr [ebp + 0xc] */ 2640 /* cmp eax, ecx */ /* 0x2B027229: cmp eax, ecx */ 2641 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2643 _flag_k = FK_CMP; 2644 MEM32(esi + 0x34) = ebx; /* 0x2B02722B: mov dword ptr [esi + 0x34], ebx */ 2645 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0272BC; /* 0x2B02722E: jne 0x2b0272bc */ 2646 L_2B027234: 2647 eax = MEM32(esi + 0x14); /* 0x2B027234: mov eax, dword ptr [esi + 0x14] */ 2648 /* cmp eax, ecx */ /* 0x2B027237: cmp eax, ecx */ 2649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2651 _flag_k = FK_CMP; 2652 edi = esi + 0x10; /* 0x2B027239: lea edi, [esi + 0x10] */ 2653 MEM32(ebp + (-0x18)) = 0; /* 0x2B02723C: mov dword ptr [ebp - 0x18], 0 */ 2654 MEM32(ebp + (-0x14)) = 0; /* 0x2B027243: mov dword ptr [ebp - 0x14], 0 */ 2655 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027254; /* 0x2B02724A: je 0x2b027254 */ 2656 L_2B02724C: 2657 ecx = MEM32(edi + 0x8); /* 0x2B02724C: mov ecx, dword ptr [edi + 8] */ 2658 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2660 ecx = ecx - eax; /* 0x2B02724F: sub ecx, eax */ 2661 _flag_k = FK_CMP; 2662 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B027251: sar ecx, 3 */ 2663 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2664 ecx = (uint32_t)((int32_t)ecx >> 3u); 2665 L_2B027254: 2666 /* cmp ecx, ebx */ /* 0x2B027254: cmp ecx, ebx */ 2667 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2669 _flag_k = FK_CMP; 2670 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027279; /* 0x2B027256: jae 0x2b027279 */ 2671 L_2B027258: 2672 ecx = MEM32(edi + 0x8); /* 0x2B027258: mov ecx, dword ptr [edi + 8] */ 2673 edx = ebp + (-0x18); /* 0x2B02725B: lea edx, [ebp - 0x18] */ 2674 MEM32(ebp + 0x8) = ecx; /* 0x2B02725E: mov dword ptr [ebp + 8], ecx */ 2675 PUSH32(esp, edx); /* 0x2B027261: push edx */ 2676 ecx = edi; /* 0x2B027262: mov ecx, edi */ 2677 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027264: call 0x2b02bbf0 */ /* not lifted */ 2678 RECOMP_FLAGS_IN(); 2679 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2681 ebx = ebx - eax; /* 0x2B027269: sub ebx, eax */ 2682 _flag_k = FK_CMP; 2683 eax = MEM32(ebp + 0x8); /* 0x2B02726B: mov eax, dword ptr [ebp + 8] */ 2684 PUSH32(esp, ebx); /* 0x2B02726E: push ebx */ 2685 PUSH32(esp, eax); /* 0x2B02726F: push eax */ 2686 ecx = edi; /* 0x2B027270: mov ecx, edi */ 2687 RECOMP_ICALL(0x2B0320B0u); /* 0x2B027272: call 0x2b0320b0 */ /* not lifted */ 2688 RECOMP_FLAGS_IN(); 2689 goto L_2B027296; /* 0x2B027277: jmp 0x2b027296 */ 2690 L_2B027279: 2691 ecx = edi; /* 0x2B027279: mov ecx, edi */ 2692 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B02727B: call 0x2b02bbf0 */ /* not lifted */ 2693 RECOMP_FLAGS_IN(); 2694 /* cmp ebx, eax */ /* 0x2B027280: cmp ebx, eax */ 2695 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2697 _flag_k = FK_CMP; 2698 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027296; /* 0x2B027282: jae 0x2b027296 */ 2699 L_2B027284: 2700 ecx = MEM32(edi + 0x8); /* 0x2B027284: mov ecx, dword ptr [edi + 8] */ 2701 edx = MEM32(edi + 0x4); /* 0x2B027287: mov edx, dword ptr [edi + 4] */ 2702 PUSH32(esp, ecx); /* 0x2B02728A: push ecx */ 2703 eax = edx + ebx * 8; /* 0x2B02728B: lea eax, [edx + ebx*8] */ 2704 PUSH32(esp, eax); /* 0x2B02728E: push eax */ 2705 ecx = edi; /* 0x2B02728F: mov ecx, edi */ 2706 RECOMP_ICALL(0x2B028CD0u); /* 0x2B027291: call 0x2b028cd0 */ /* not lifted */ 2707 RECOMP_FLAGS_IN(); 2708 L_2B027296: 2709 ecx = MEM32(esi + 0x34); /* 0x2B027296: mov ecx, dword ptr [esi + 0x34] */ 2710 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2711 eax = 0; /* 0x2B027299: xor eax, eax */ 2712 _cf = 0; 2713 _flag_k = FK_TEST; 2714 /* test ecx, ecx */ /* 0x2B02729B: test ecx, ecx */ 2715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2716 _cf = 0; 2717 _flag_k = FK_TEST; 2718 if (TEST_LE(_flag_a, _flag_b)) goto L_2B0272C5; /* 0x2B02729D: jle 0x2b0272c5 */ 2719 L_2B02729F: 2720 ecx = 0xBFEFAE14u; /* 0x2B02729F: mov ecx, 0xbfefae14 */ 2721 L_2B0272A4: 2722 edx = MEM32(esi + 0x14); /* 0x2B0272A4: mov edx, dword ptr [esi + 0x14] */ 2723 MEM32(edx + eax * 8) = 0x7AE147AEu; /* 0x2B0272A7: mov dword ptr [edx + eax*8], 0x7ae147ae */ 2724 MEM32(edx + eax * 8 + 0x4) = ecx; /* 0x2B0272AE: mov dword ptr [edx + eax*8 + 4], ecx */ 2725 edx = MEM32(esi + 0x34); /* 0x2B0272B2: mov edx, dword ptr [esi + 0x34] */ 2726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2727 eax = eax + 1; /* 0x2B0272B5: inc eax */ 2728 _flag_k = FK_INC; 2729 /* cmp eax, edx */ /* 0x2B0272B6: cmp eax, edx */ 2730 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2732 _flag_k = FK_CMP; 2733 RECOMP_BACKEDGE(); 2734 if (CMP_L(_flag_a, _flag_b)) goto L_2B0272A4; /* 0x2B0272B8: jl 0x2b0272a4 */ 2735 L_2B0272BA: 2736 goto L_2B0272C5; /* 0x2B0272BA: jmp 0x2b0272c5 */ 2737 L_2B0272BC: 2738 PUSH32(esp, eax); /* 0x2B0272BC: push eax */ 2739 ecx = esi + 0x10; /* 0x2B0272BD: lea ecx, [esi + 0x10] */ 2740 RECOMP_ICALL(0x2B01D690u); /* 0x2B0272C0: call 0x2b01d690 */ /* not lifted */ 2741 RECOMP_FLAGS_IN(); 2742 L_2B0272C5: 2743 ebx = MEM32(esi + 0x34); /* 0x2B0272C5: mov ebx, dword ptr [esi + 0x34] */ 2744 ecx = MEM32(esi + 0x24); /* 0x2B0272C8: mov ecx, dword ptr [esi + 0x24] */ 2745 edi = esi + 0x20; /* 0x2B0272CB: lea edi, [esi + 0x20] */ 2746 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 2747 ebx = ebx + 1; /* 0x2B0272CE: inc ebx */ 2748 _flag_k = FK_INC; 2749 /* test ecx, ecx */ /* 0x2B0272CF: test ecx, ecx */ 2750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2751 _cf = 0; 2752 _flag_k = FK_TEST; 2753 MEM32(ebp + (-0x18)) = 0; /* 0x2B0272D1: mov dword ptr [ebp - 0x18], 0 */ 2754 MEM32(ebp + (-0x14)) = 0; /* 0x2B0272D8: mov dword ptr [ebp - 0x14], 0 */ 2755 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0272E5; /* 0x2B0272DF: jne 0x2b0272e5 */ 2756 L_2B0272E1: 2757 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2758 eax = 0; /* 0x2B0272E1: xor eax, eax */ 2759 _cf = 0; 2760 _flag_k = FK_TEST; 2761 goto L_2B0272ED; /* 0x2B0272E3: jmp 0x2b0272ed */ 2762 L_2B0272E5: 2763 eax = MEM32(edi + 0x8); /* 0x2B0272E5: mov eax, dword ptr [edi + 8] */ 2764 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2766 eax = eax - ecx; /* 0x2B0272E8: sub eax, ecx */ 2767 _flag_k = FK_CMP; 2768 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B0272EA: sar eax, 3 */ 2769 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2770 eax = (uint32_t)((int32_t)eax >> 3u); 2771 L_2B0272ED: 2772 /* cmp eax, ebx */ /* 0x2B0272ED: cmp eax, ebx */ 2773 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2775 _flag_k = FK_CMP; 2776 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027312; /* 0x2B0272EF: jae 0x2b027312 */ 2777 L_2B0272F1: 2778 eax = MEM32(edi + 0x8); /* 0x2B0272F1: mov eax, dword ptr [edi + 8] */ 2779 ecx = ebp + (-0x18); /* 0x2B0272F4: lea ecx, [ebp - 0x18] */ 2780 PUSH32(esp, ecx); /* 0x2B0272F7: push ecx */ 2781 ecx = edi; /* 0x2B0272F8: mov ecx, edi */ 2782 MEM32(ebp + 0x8) = eax; /* 0x2B0272FA: mov dword ptr [ebp + 8], eax */ 2783 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B0272FD: call 0x2b02bbf0 */ /* not lifted */ 2784 RECOMP_FLAGS_IN(); 2785 edx = MEM32(ebp + 0x8); /* 0x2B027302: mov edx, dword ptr [ebp + 8] */ 2786 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2788 ebx = ebx - eax; /* 0x2B027305: sub ebx, eax */ 2789 _flag_k = FK_CMP; 2790 PUSH32(esp, ebx); /* 0x2B027307: push ebx */ 2791 PUSH32(esp, edx); /* 0x2B027308: push edx */ 2792 ecx = edi; /* 0x2B027309: mov ecx, edi */ 2793 RECOMP_ICALL(0x2B0320B0u); /* 0x2B02730B: call 0x2b0320b0 */ /* not lifted */ 2794 RECOMP_FLAGS_IN(); 2795 goto L_2B02732F; /* 0x2B027310: jmp 0x2b02732f */ 2796 L_2B027312: 2797 ecx = edi; /* 0x2B027312: mov ecx, edi */ 2798 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027314: call 0x2b02bbf0 */ /* not lifted */ 2799 RECOMP_FLAGS_IN(); 2800 /* cmp ebx, eax */ /* 0x2B027319: cmp ebx, eax */ 2801 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2803 _flag_k = FK_CMP; 2804 if (CMP_AE(_flag_a, _flag_b)) goto L_2B02732F; /* 0x2B02731B: jae 0x2b02732f */ 2805 L_2B02731D: 2806 ecx = MEM32(edi + 0x4); /* 0x2B02731D: mov ecx, dword ptr [edi + 4] */ 2807 eax = MEM32(edi + 0x8); /* 0x2B027320: mov eax, dword ptr [edi + 8] */ 2808 edx = ecx + ebx * 8; /* 0x2B027323: lea edx, [ecx + ebx*8] */ 2809 PUSH32(esp, eax); /* 0x2B027326: push eax */ 2810 PUSH32(esp, edx); /* 0x2B027327: push edx */ 2811 ecx = edi; /* 0x2B027328: mov ecx, edi */ 2812 RECOMP_ICALL(0x2B028CD0u); /* 0x2B02732A: call 0x2b028cd0 */ /* not lifted */ 2813 RECOMP_FLAGS_IN(); 2814 L_2B02732F: 2815 ecx = MEM32(esi + 0x34); /* 0x2B02732F: mov ecx, dword ptr [esi + 0x34] */ 2816 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2817 eax = 0; /* 0x2B027332: xor eax, eax */ 2818 _cf = 0; 2819 _flag_k = FK_TEST; 2820 /* test ecx, ecx */ /* 0x2B027334: test ecx, ecx */ 2821 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2822 _cf = 0; 2823 _flag_k = FK_TEST; 2824 MEM32(ebp + 0x8) = eax; /* 0x2B027336: mov dword ptr [ebp + 8], eax */ 2825 if (TEST_S(_flag_a, _flag_b)) goto L_2B027358; /* 0x2B027339: jl 0x2b027358 */ 2826 L_2B02733B: 2827 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B02733B: fild dword ptr [ebp + 8] */ 2828 ecx = MEM32(esi + 0x24); /* 0x2B02733E: mov ecx, dword ptr [esi + 0x24] */ 2829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2830 eax = eax + 1; /* 0x2B027341: inc eax */ 2831 _flag_k = FK_INC; 2832 MEM32(ebp + 0x8) = eax; /* 0x2B027342: mov dword ptr [ebp + 8], eax */ 2833 { double _v = fp_pop(); *(double*)ADDR(ecx + eax * 8 + (-0x8)) = _v; } /* 0x2B027345: fstp qword ptr [ecx + eax*8 - 8] */ 2834 ecx = MEM32(esi + 0x34); /* 0x2B027349: mov ecx, dword ptr [esi + 0x34] */ 2835 /* cmp eax, ecx */ /* 0x2B02734C: cmp eax, ecx */ 2836 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2838 _flag_k = FK_CMP; 2839 RECOMP_BACKEDGE(); 2840 if (CMP_LE(_flag_a, _flag_b)) goto L_2B02733B; /* 0x2B02734E: jle 0x2b02733b */ 2841 L_2B027350: 2842 edx = MEM32(ebp + 0x10); /* 0x2B027350: mov edx, dword ptr [ebp + 0x10] */ 2843 MEM32(esi + 0x30) = edx; /* 0x2B027353: mov dword ptr [esi + 0x30], edx */ 2844 goto L_2B02735E; /* 0x2B027356: jmp 0x2b02735e */ 2845 L_2B027358: 2846 eax = MEM32(ebp + 0x10); /* 0x2B027358: mov eax, dword ptr [ebp + 0x10] */ 2847 MEM32(esi + 0x30) = eax; /* 0x2B02735B: mov dword ptr [esi + 0x30], eax */ 2848 L_2B02735E: 2849 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 2850 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 2851 eax = esi; /* 0x2B027362: mov eax, esi */ 2852 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 2853 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 2854 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 2855 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 2856 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 2857 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 2858 RECOMP_REGS_OUT(); 2859 } 2860 2861 void sub_2B027202(void) { 2862 int _fpu_cmp = 0; 2863 uint32_t _cf = 0; 2864 int _df = 1; 2865 uint32_t _flag_k = FK_NONE; 2866 uint32_t _flag_a = 0, _flag_b = 0; 2867 uint32_t _itail_tgt = 0; 2868 RECOMP_REGS_LOCALS 2869 RECOMP_ENTER(0x2B027202u); 2870 2871 L_2B027202: 2872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2873 ecx = 0; /* 0x2B027202: xor ecx, ecx */ 2874 _cf = 0; 2875 _flag_k = FK_TEST; 2876 eax = MEM32(edi + 0x4); /* 0x2B027204: mov eax, dword ptr [edi + 4] */ 2877 /* cmp eax, ecx */ /* 0x2B027207: cmp eax, ecx */ 2878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2880 _flag_k = FK_CMP; 2881 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02720F; /* 0x2B027209: jne 0x2b02720f */ 2882 L_2B02720B: 2883 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2884 ebx = 0; /* 0x2B02720B: xor ebx, ebx */ 2885 _cf = 0; 2886 _flag_k = FK_TEST; 2887 goto L_2B027226; /* 0x2B02720D: jmp 0x2b027226 */ 2888 L_2B02720F: 2889 edi = MEM32(edi + 0x8); /* 0x2B02720F: mov edi, dword ptr [edi + 8] */ 2890 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2892 edi = edi - eax; /* 0x2B027212: sub edi, eax */ 2893 _flag_k = FK_CMP; 2894 eax = 0x2AAAAAABu; /* 0x2B027214: mov eax, 0x2aaaaaab */ 2895 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edi); /* 0x2B027219: imul edi */ 2896 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2897 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2898 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B02721B: sar edx, 1 */ 2899 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2900 edx = (uint32_t)((int32_t)edx >> 1u); 2901 eax = edx; /* 0x2B02721D: mov eax, edx */ 2902 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B02721F: shr eax, 0x1f */ 2903 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2904 eax = eax >> 31u; /* 0x2B02721F: shr eax, 0x1f */ 2905 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2906 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2907 edx = edx + eax; /* 0x2B027222: add edx, eax */ 2908 _flag_k = FK_ADD; 2909 ebx = edx; /* 0x2B027224: mov ebx, edx */ 2910 L_2B027226: 2911 eax = MEM32(ebp + 0xC); /* 0x2B027226: mov eax, dword ptr [ebp + 0xc] */ 2912 /* cmp eax, ecx */ /* 0x2B027229: cmp eax, ecx */ 2913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2915 _flag_k = FK_CMP; 2916 MEM32(esi + 0x34) = ebx; /* 0x2B02722B: mov dword ptr [esi + 0x34], ebx */ 2917 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0272BC; /* 0x2B02722E: jne 0x2b0272bc */ 2918 L_2B027234: 2919 eax = MEM32(esi + 0x14); /* 0x2B027234: mov eax, dword ptr [esi + 0x14] */ 2920 /* cmp eax, ecx */ /* 0x2B027237: cmp eax, ecx */ 2921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2923 _flag_k = FK_CMP; 2924 edi = esi + 0x10; /* 0x2B027239: lea edi, [esi + 0x10] */ 2925 MEM32(ebp + (-0x18)) = 0; /* 0x2B02723C: mov dword ptr [ebp - 0x18], 0 */ 2926 MEM32(ebp + (-0x14)) = 0; /* 0x2B027243: mov dword ptr [ebp - 0x14], 0 */ 2927 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027254; /* 0x2B02724A: je 0x2b027254 */ 2928 L_2B02724C: 2929 ecx = MEM32(edi + 0x8); /* 0x2B02724C: mov ecx, dword ptr [edi + 8] */ 2930 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2932 ecx = ecx - eax; /* 0x2B02724F: sub ecx, eax */ 2933 _flag_k = FK_CMP; 2934 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B027251: sar ecx, 3 */ 2935 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2936 ecx = (uint32_t)((int32_t)ecx >> 3u); 2937 L_2B027254: 2938 /* cmp ecx, ebx */ /* 0x2B027254: cmp ecx, ebx */ 2939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2941 _flag_k = FK_CMP; 2942 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027279; /* 0x2B027256: jae 0x2b027279 */ 2943 L_2B027258: 2944 ecx = MEM32(edi + 0x8); /* 0x2B027258: mov ecx, dword ptr [edi + 8] */ 2945 edx = ebp + (-0x18); /* 0x2B02725B: lea edx, [ebp - 0x18] */ 2946 MEM32(ebp + 0x8) = ecx; /* 0x2B02725E: mov dword ptr [ebp + 8], ecx */ 2947 PUSH32(esp, edx); /* 0x2B027261: push edx */ 2948 ecx = edi; /* 0x2B027262: mov ecx, edi */ 2949 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027264: call 0x2b02bbf0 */ /* not lifted */ 2950 RECOMP_FLAGS_IN(); 2951 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2953 ebx = ebx - eax; /* 0x2B027269: sub ebx, eax */ 2954 _flag_k = FK_CMP; 2955 eax = MEM32(ebp + 0x8); /* 0x2B02726B: mov eax, dword ptr [ebp + 8] */ 2956 PUSH32(esp, ebx); /* 0x2B02726E: push ebx */ 2957 PUSH32(esp, eax); /* 0x2B02726F: push eax */ 2958 ecx = edi; /* 0x2B027270: mov ecx, edi */ 2959 RECOMP_ICALL(0x2B0320B0u); /* 0x2B027272: call 0x2b0320b0 */ /* not lifted */ 2960 RECOMP_FLAGS_IN(); 2961 goto L_2B027296; /* 0x2B027277: jmp 0x2b027296 */ 2962 L_2B027279: 2963 ecx = edi; /* 0x2B027279: mov ecx, edi */ 2964 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B02727B: call 0x2b02bbf0 */ /* not lifted */ 2965 RECOMP_FLAGS_IN(); 2966 /* cmp ebx, eax */ /* 0x2B027280: cmp ebx, eax */ 2967 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2969 _flag_k = FK_CMP; 2970 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027296; /* 0x2B027282: jae 0x2b027296 */ 2971 L_2B027284: 2972 ecx = MEM32(edi + 0x8); /* 0x2B027284: mov ecx, dword ptr [edi + 8] */ 2973 edx = MEM32(edi + 0x4); /* 0x2B027287: mov edx, dword ptr [edi + 4] */ 2974 PUSH32(esp, ecx); /* 0x2B02728A: push ecx */ 2975 eax = edx + ebx * 8; /* 0x2B02728B: lea eax, [edx + ebx*8] */ 2976 PUSH32(esp, eax); /* 0x2B02728E: push eax */ 2977 ecx = edi; /* 0x2B02728F: mov ecx, edi */ 2978 RECOMP_ICALL(0x2B028CD0u); /* 0x2B027291: call 0x2b028cd0 */ /* not lifted */ 2979 RECOMP_FLAGS_IN(); 2980 L_2B027296: 2981 ecx = MEM32(esi + 0x34); /* 0x2B027296: mov ecx, dword ptr [esi + 0x34] */ 2982 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2983 eax = 0; /* 0x2B027299: xor eax, eax */ 2984 _cf = 0; 2985 _flag_k = FK_TEST; 2986 /* test ecx, ecx */ /* 0x2B02729B: test ecx, ecx */ 2987 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2988 _cf = 0; 2989 _flag_k = FK_TEST; 2990 if (TEST_LE(_flag_a, _flag_b)) goto L_2B0272C5; /* 0x2B02729D: jle 0x2b0272c5 */ 2991 L_2B02729F: 2992 ecx = 0xBFEFAE14u; /* 0x2B02729F: mov ecx, 0xbfefae14 */ 2993 L_2B0272A4: 2994 edx = MEM32(esi + 0x14); /* 0x2B0272A4: mov edx, dword ptr [esi + 0x14] */ 2995 MEM32(edx + eax * 8) = 0x7AE147AEu; /* 0x2B0272A7: mov dword ptr [edx + eax*8], 0x7ae147ae */ 2996 MEM32(edx + eax * 8 + 0x4) = ecx; /* 0x2B0272AE: mov dword ptr [edx + eax*8 + 4], ecx */ 2997 edx = MEM32(esi + 0x34); /* 0x2B0272B2: mov edx, dword ptr [esi + 0x34] */ 2998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2999 eax = eax + 1; /* 0x2B0272B5: inc eax */ 3000 _flag_k = FK_INC; 3001 /* cmp eax, edx */ /* 0x2B0272B6: cmp eax, edx */ 3002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3004 _flag_k = FK_CMP; 3005 RECOMP_BACKEDGE(); 3006 if (CMP_L(_flag_a, _flag_b)) goto L_2B0272A4; /* 0x2B0272B8: jl 0x2b0272a4 */ 3007 L_2B0272BA: 3008 goto L_2B0272C5; /* 0x2B0272BA: jmp 0x2b0272c5 */ 3009 L_2B0272BC: 3010 PUSH32(esp, eax); /* 0x2B0272BC: push eax */ 3011 ecx = esi + 0x10; /* 0x2B0272BD: lea ecx, [esi + 0x10] */ 3012 RECOMP_ICALL(0x2B01D690u); /* 0x2B0272C0: call 0x2b01d690 */ /* not lifted */ 3013 RECOMP_FLAGS_IN(); 3014 L_2B0272C5: 3015 ebx = MEM32(esi + 0x34); /* 0x2B0272C5: mov ebx, dword ptr [esi + 0x34] */ 3016 ecx = MEM32(esi + 0x24); /* 0x2B0272C8: mov ecx, dword ptr [esi + 0x24] */ 3017 edi = esi + 0x20; /* 0x2B0272CB: lea edi, [esi + 0x20] */ 3018 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3019 ebx = ebx + 1; /* 0x2B0272CE: inc ebx */ 3020 _flag_k = FK_INC; 3021 /* test ecx, ecx */ /* 0x2B0272CF: test ecx, ecx */ 3022 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3023 _cf = 0; 3024 _flag_k = FK_TEST; 3025 MEM32(ebp + (-0x18)) = 0; /* 0x2B0272D1: mov dword ptr [ebp - 0x18], 0 */ 3026 MEM32(ebp + (-0x14)) = 0; /* 0x2B0272D8: mov dword ptr [ebp - 0x14], 0 */ 3027 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0272E5; /* 0x2B0272DF: jne 0x2b0272e5 */ 3028 L_2B0272E1: 3029 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3030 eax = 0; /* 0x2B0272E1: xor eax, eax */ 3031 _cf = 0; 3032 _flag_k = FK_TEST; 3033 goto L_2B0272ED; /* 0x2B0272E3: jmp 0x2b0272ed */ 3034 L_2B0272E5: 3035 eax = MEM32(edi + 0x8); /* 0x2B0272E5: mov eax, dword ptr [edi + 8] */ 3036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3038 eax = eax - ecx; /* 0x2B0272E8: sub eax, ecx */ 3039 _flag_k = FK_CMP; 3040 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B0272EA: sar eax, 3 */ 3041 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3042 eax = (uint32_t)((int32_t)eax >> 3u); 3043 L_2B0272ED: 3044 /* cmp eax, ebx */ /* 0x2B0272ED: cmp eax, ebx */ 3045 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3047 _flag_k = FK_CMP; 3048 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027312; /* 0x2B0272EF: jae 0x2b027312 */ 3049 L_2B0272F1: 3050 eax = MEM32(edi + 0x8); /* 0x2B0272F1: mov eax, dword ptr [edi + 8] */ 3051 ecx = ebp + (-0x18); /* 0x2B0272F4: lea ecx, [ebp - 0x18] */ 3052 PUSH32(esp, ecx); /* 0x2B0272F7: push ecx */ 3053 ecx = edi; /* 0x2B0272F8: mov ecx, edi */ 3054 MEM32(ebp + 0x8) = eax; /* 0x2B0272FA: mov dword ptr [ebp + 8], eax */ 3055 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B0272FD: call 0x2b02bbf0 */ /* not lifted */ 3056 RECOMP_FLAGS_IN(); 3057 edx = MEM32(ebp + 0x8); /* 0x2B027302: mov edx, dword ptr [ebp + 8] */ 3058 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3060 ebx = ebx - eax; /* 0x2B027305: sub ebx, eax */ 3061 _flag_k = FK_CMP; 3062 PUSH32(esp, ebx); /* 0x2B027307: push ebx */ 3063 PUSH32(esp, edx); /* 0x2B027308: push edx */ 3064 ecx = edi; /* 0x2B027309: mov ecx, edi */ 3065 RECOMP_ICALL(0x2B0320B0u); /* 0x2B02730B: call 0x2b0320b0 */ /* not lifted */ 3066 RECOMP_FLAGS_IN(); 3067 goto L_2B02732F; /* 0x2B027310: jmp 0x2b02732f */ 3068 L_2B027312: 3069 ecx = edi; /* 0x2B027312: mov ecx, edi */ 3070 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027314: call 0x2b02bbf0 */ /* not lifted */ 3071 RECOMP_FLAGS_IN(); 3072 /* cmp ebx, eax */ /* 0x2B027319: cmp ebx, eax */ 3073 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3075 _flag_k = FK_CMP; 3076 if (CMP_AE(_flag_a, _flag_b)) goto L_2B02732F; /* 0x2B02731B: jae 0x2b02732f */ 3077 L_2B02731D: 3078 ecx = MEM32(edi + 0x4); /* 0x2B02731D: mov ecx, dword ptr [edi + 4] */ 3079 eax = MEM32(edi + 0x8); /* 0x2B027320: mov eax, dword ptr [edi + 8] */ 3080 edx = ecx + ebx * 8; /* 0x2B027323: lea edx, [ecx + ebx*8] */ 3081 PUSH32(esp, eax); /* 0x2B027326: push eax */ 3082 PUSH32(esp, edx); /* 0x2B027327: push edx */ 3083 ecx = edi; /* 0x2B027328: mov ecx, edi */ 3084 RECOMP_ICALL(0x2B028CD0u); /* 0x2B02732A: call 0x2b028cd0 */ /* not lifted */ 3085 RECOMP_FLAGS_IN(); 3086 L_2B02732F: 3087 ecx = MEM32(esi + 0x34); /* 0x2B02732F: mov ecx, dword ptr [esi + 0x34] */ 3088 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3089 eax = 0; /* 0x2B027332: xor eax, eax */ 3090 _cf = 0; 3091 _flag_k = FK_TEST; 3092 /* test ecx, ecx */ /* 0x2B027334: test ecx, ecx */ 3093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3094 _cf = 0; 3095 _flag_k = FK_TEST; 3096 MEM32(ebp + 0x8) = eax; /* 0x2B027336: mov dword ptr [ebp + 8], eax */ 3097 if (TEST_S(_flag_a, _flag_b)) goto L_2B027358; /* 0x2B027339: jl 0x2b027358 */ 3098 L_2B02733B: 3099 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B02733B: fild dword ptr [ebp + 8] */ 3100 ecx = MEM32(esi + 0x24); /* 0x2B02733E: mov ecx, dword ptr [esi + 0x24] */ 3101 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3102 eax = eax + 1; /* 0x2B027341: inc eax */ 3103 _flag_k = FK_INC; 3104 MEM32(ebp + 0x8) = eax; /* 0x2B027342: mov dword ptr [ebp + 8], eax */ 3105 { double _v = fp_pop(); *(double*)ADDR(ecx + eax * 8 + (-0x8)) = _v; } /* 0x2B027345: fstp qword ptr [ecx + eax*8 - 8] */ 3106 ecx = MEM32(esi + 0x34); /* 0x2B027349: mov ecx, dword ptr [esi + 0x34] */ 3107 /* cmp eax, ecx */ /* 0x2B02734C: cmp eax, ecx */ 3108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3110 _flag_k = FK_CMP; 3111 RECOMP_BACKEDGE(); 3112 if (CMP_LE(_flag_a, _flag_b)) goto L_2B02733B; /* 0x2B02734E: jle 0x2b02733b */ 3113 L_2B027350: 3114 edx = MEM32(ebp + 0x10); /* 0x2B027350: mov edx, dword ptr [ebp + 0x10] */ 3115 MEM32(esi + 0x30) = edx; /* 0x2B027353: mov dword ptr [esi + 0x30], edx */ 3116 goto L_2B02735E; /* 0x2B027356: jmp 0x2b02735e */ 3117 L_2B027358: 3118 eax = MEM32(ebp + 0x10); /* 0x2B027358: mov eax, dword ptr [ebp + 0x10] */ 3119 MEM32(esi + 0x30) = eax; /* 0x2B02735B: mov dword ptr [esi + 0x30], eax */ 3120 L_2B02735E: 3121 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 3122 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 3123 eax = esi; /* 0x2B027362: mov eax, esi */ 3124 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 3125 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 3126 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 3127 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 3128 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 3129 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 3130 RECOMP_REGS_OUT(); 3131 } 3132 3133 void sub_2B027226(void) { 3134 int _fpu_cmp = 0; 3135 uint32_t _cf = 0; 3136 int _df = 1; 3137 uint32_t _flag_k = FK_NONE; 3138 uint32_t _flag_a = 0, _flag_b = 0; 3139 uint32_t _itail_tgt = 0; 3140 RECOMP_REGS_LOCALS 3141 RECOMP_ENTER(0x2B027226u); 3142 3143 L_2B027226: 3144 eax = MEM32(ebp + 0xC); /* 0x2B027226: mov eax, dword ptr [ebp + 0xc] */ 3145 /* cmp eax, ecx */ /* 0x2B027229: cmp eax, ecx */ 3146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3148 _flag_k = FK_CMP; 3149 MEM32(esi + 0x34) = ebx; /* 0x2B02722B: mov dword ptr [esi + 0x34], ebx */ 3150 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0272BC; /* 0x2B02722E: jne 0x2b0272bc */ 3151 L_2B027234: 3152 eax = MEM32(esi + 0x14); /* 0x2B027234: mov eax, dword ptr [esi + 0x14] */ 3153 /* cmp eax, ecx */ /* 0x2B027237: cmp eax, ecx */ 3154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3156 _flag_k = FK_CMP; 3157 edi = esi + 0x10; /* 0x2B027239: lea edi, [esi + 0x10] */ 3158 MEM32(ebp + (-0x18)) = 0; /* 0x2B02723C: mov dword ptr [ebp - 0x18], 0 */ 3159 MEM32(ebp + (-0x14)) = 0; /* 0x2B027243: mov dword ptr [ebp - 0x14], 0 */ 3160 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027254; /* 0x2B02724A: je 0x2b027254 */ 3161 L_2B02724C: 3162 ecx = MEM32(edi + 0x8); /* 0x2B02724C: mov ecx, dword ptr [edi + 8] */ 3163 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3165 ecx = ecx - eax; /* 0x2B02724F: sub ecx, eax */ 3166 _flag_k = FK_CMP; 3167 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B027251: sar ecx, 3 */ 3168 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3169 ecx = (uint32_t)((int32_t)ecx >> 3u); 3170 L_2B027254: 3171 /* cmp ecx, ebx */ /* 0x2B027254: cmp ecx, ebx */ 3172 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3174 _flag_k = FK_CMP; 3175 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027279; /* 0x2B027256: jae 0x2b027279 */ 3176 L_2B027258: 3177 ecx = MEM32(edi + 0x8); /* 0x2B027258: mov ecx, dword ptr [edi + 8] */ 3178 edx = ebp + (-0x18); /* 0x2B02725B: lea edx, [ebp - 0x18] */ 3179 MEM32(ebp + 0x8) = ecx; /* 0x2B02725E: mov dword ptr [ebp + 8], ecx */ 3180 PUSH32(esp, edx); /* 0x2B027261: push edx */ 3181 ecx = edi; /* 0x2B027262: mov ecx, edi */ 3182 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027264: call 0x2b02bbf0 */ /* not lifted */ 3183 RECOMP_FLAGS_IN(); 3184 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3186 ebx = ebx - eax; /* 0x2B027269: sub ebx, eax */ 3187 _flag_k = FK_CMP; 3188 eax = MEM32(ebp + 0x8); /* 0x2B02726B: mov eax, dword ptr [ebp + 8] */ 3189 PUSH32(esp, ebx); /* 0x2B02726E: push ebx */ 3190 PUSH32(esp, eax); /* 0x2B02726F: push eax */ 3191 ecx = edi; /* 0x2B027270: mov ecx, edi */ 3192 RECOMP_ICALL(0x2B0320B0u); /* 0x2B027272: call 0x2b0320b0 */ /* not lifted */ 3193 RECOMP_FLAGS_IN(); 3194 goto L_2B027296; /* 0x2B027277: jmp 0x2b027296 */ 3195 L_2B027279: 3196 ecx = edi; /* 0x2B027279: mov ecx, edi */ 3197 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B02727B: call 0x2b02bbf0 */ /* not lifted */ 3198 RECOMP_FLAGS_IN(); 3199 /* cmp ebx, eax */ /* 0x2B027280: cmp ebx, eax */ 3200 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3202 _flag_k = FK_CMP; 3203 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027296; /* 0x2B027282: jae 0x2b027296 */ 3204 L_2B027284: 3205 ecx = MEM32(edi + 0x8); /* 0x2B027284: mov ecx, dword ptr [edi + 8] */ 3206 edx = MEM32(edi + 0x4); /* 0x2B027287: mov edx, dword ptr [edi + 4] */ 3207 PUSH32(esp, ecx); /* 0x2B02728A: push ecx */ 3208 eax = edx + ebx * 8; /* 0x2B02728B: lea eax, [edx + ebx*8] */ 3209 PUSH32(esp, eax); /* 0x2B02728E: push eax */ 3210 ecx = edi; /* 0x2B02728F: mov ecx, edi */ 3211 RECOMP_ICALL(0x2B028CD0u); /* 0x2B027291: call 0x2b028cd0 */ /* not lifted */ 3212 RECOMP_FLAGS_IN(); 3213 L_2B027296: 3214 ecx = MEM32(esi + 0x34); /* 0x2B027296: mov ecx, dword ptr [esi + 0x34] */ 3215 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3216 eax = 0; /* 0x2B027299: xor eax, eax */ 3217 _cf = 0; 3218 _flag_k = FK_TEST; 3219 /* test ecx, ecx */ /* 0x2B02729B: test ecx, ecx */ 3220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3221 _cf = 0; 3222 _flag_k = FK_TEST; 3223 if (TEST_LE(_flag_a, _flag_b)) goto L_2B0272C5; /* 0x2B02729D: jle 0x2b0272c5 */ 3224 L_2B02729F: 3225 ecx = 0xBFEFAE14u; /* 0x2B02729F: mov ecx, 0xbfefae14 */ 3226 L_2B0272A4: 3227 edx = MEM32(esi + 0x14); /* 0x2B0272A4: mov edx, dword ptr [esi + 0x14] */ 3228 MEM32(edx + eax * 8) = 0x7AE147AEu; /* 0x2B0272A7: mov dword ptr [edx + eax*8], 0x7ae147ae */ 3229 MEM32(edx + eax * 8 + 0x4) = ecx; /* 0x2B0272AE: mov dword ptr [edx + eax*8 + 4], ecx */ 3230 edx = MEM32(esi + 0x34); /* 0x2B0272B2: mov edx, dword ptr [esi + 0x34] */ 3231 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3232 eax = eax + 1; /* 0x2B0272B5: inc eax */ 3233 _flag_k = FK_INC; 3234 /* cmp eax, edx */ /* 0x2B0272B6: cmp eax, edx */ 3235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3237 _flag_k = FK_CMP; 3238 RECOMP_BACKEDGE(); 3239 if (CMP_L(_flag_a, _flag_b)) goto L_2B0272A4; /* 0x2B0272B8: jl 0x2b0272a4 */ 3240 L_2B0272BA: 3241 goto L_2B0272C5; /* 0x2B0272BA: jmp 0x2b0272c5 */ 3242 L_2B0272BC: 3243 PUSH32(esp, eax); /* 0x2B0272BC: push eax */ 3244 ecx = esi + 0x10; /* 0x2B0272BD: lea ecx, [esi + 0x10] */ 3245 RECOMP_ICALL(0x2B01D690u); /* 0x2B0272C0: call 0x2b01d690 */ /* not lifted */ 3246 RECOMP_FLAGS_IN(); 3247 L_2B0272C5: 3248 ebx = MEM32(esi + 0x34); /* 0x2B0272C5: mov ebx, dword ptr [esi + 0x34] */ 3249 ecx = MEM32(esi + 0x24); /* 0x2B0272C8: mov ecx, dword ptr [esi + 0x24] */ 3250 edi = esi + 0x20; /* 0x2B0272CB: lea edi, [esi + 0x20] */ 3251 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3252 ebx = ebx + 1; /* 0x2B0272CE: inc ebx */ 3253 _flag_k = FK_INC; 3254 /* test ecx, ecx */ /* 0x2B0272CF: test ecx, ecx */ 3255 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3256 _cf = 0; 3257 _flag_k = FK_TEST; 3258 MEM32(ebp + (-0x18)) = 0; /* 0x2B0272D1: mov dword ptr [ebp - 0x18], 0 */ 3259 MEM32(ebp + (-0x14)) = 0; /* 0x2B0272D8: mov dword ptr [ebp - 0x14], 0 */ 3260 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0272E5; /* 0x2B0272DF: jne 0x2b0272e5 */ 3261 L_2B0272E1: 3262 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3263 eax = 0; /* 0x2B0272E1: xor eax, eax */ 3264 _cf = 0; 3265 _flag_k = FK_TEST; 3266 goto L_2B0272ED; /* 0x2B0272E3: jmp 0x2b0272ed */ 3267 L_2B0272E5: 3268 eax = MEM32(edi + 0x8); /* 0x2B0272E5: mov eax, dword ptr [edi + 8] */ 3269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3271 eax = eax - ecx; /* 0x2B0272E8: sub eax, ecx */ 3272 _flag_k = FK_CMP; 3273 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B0272EA: sar eax, 3 */ 3274 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3275 eax = (uint32_t)((int32_t)eax >> 3u); 3276 L_2B0272ED: 3277 /* cmp eax, ebx */ /* 0x2B0272ED: cmp eax, ebx */ 3278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3280 _flag_k = FK_CMP; 3281 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027312; /* 0x2B0272EF: jae 0x2b027312 */ 3282 L_2B0272F1: 3283 eax = MEM32(edi + 0x8); /* 0x2B0272F1: mov eax, dword ptr [edi + 8] */ 3284 ecx = ebp + (-0x18); /* 0x2B0272F4: lea ecx, [ebp - 0x18] */ 3285 PUSH32(esp, ecx); /* 0x2B0272F7: push ecx */ 3286 ecx = edi; /* 0x2B0272F8: mov ecx, edi */ 3287 MEM32(ebp + 0x8) = eax; /* 0x2B0272FA: mov dword ptr [ebp + 8], eax */ 3288 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B0272FD: call 0x2b02bbf0 */ /* not lifted */ 3289 RECOMP_FLAGS_IN(); 3290 edx = MEM32(ebp + 0x8); /* 0x2B027302: mov edx, dword ptr [ebp + 8] */ 3291 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3293 ebx = ebx - eax; /* 0x2B027305: sub ebx, eax */ 3294 _flag_k = FK_CMP; 3295 PUSH32(esp, ebx); /* 0x2B027307: push ebx */ 3296 PUSH32(esp, edx); /* 0x2B027308: push edx */ 3297 ecx = edi; /* 0x2B027309: mov ecx, edi */ 3298 RECOMP_ICALL(0x2B0320B0u); /* 0x2B02730B: call 0x2b0320b0 */ /* not lifted */ 3299 RECOMP_FLAGS_IN(); 3300 goto L_2B02732F; /* 0x2B027310: jmp 0x2b02732f */ 3301 L_2B027312: 3302 ecx = edi; /* 0x2B027312: mov ecx, edi */ 3303 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027314: call 0x2b02bbf0 */ /* not lifted */ 3304 RECOMP_FLAGS_IN(); 3305 /* cmp ebx, eax */ /* 0x2B027319: cmp ebx, eax */ 3306 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3308 _flag_k = FK_CMP; 3309 if (CMP_AE(_flag_a, _flag_b)) goto L_2B02732F; /* 0x2B02731B: jae 0x2b02732f */ 3310 L_2B02731D: 3311 ecx = MEM32(edi + 0x4); /* 0x2B02731D: mov ecx, dword ptr [edi + 4] */ 3312 eax = MEM32(edi + 0x8); /* 0x2B027320: mov eax, dword ptr [edi + 8] */ 3313 edx = ecx + ebx * 8; /* 0x2B027323: lea edx, [ecx + ebx*8] */ 3314 PUSH32(esp, eax); /* 0x2B027326: push eax */ 3315 PUSH32(esp, edx); /* 0x2B027327: push edx */ 3316 ecx = edi; /* 0x2B027328: mov ecx, edi */ 3317 RECOMP_ICALL(0x2B028CD0u); /* 0x2B02732A: call 0x2b028cd0 */ /* not lifted */ 3318 RECOMP_FLAGS_IN(); 3319 L_2B02732F: 3320 ecx = MEM32(esi + 0x34); /* 0x2B02732F: mov ecx, dword ptr [esi + 0x34] */ 3321 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3322 eax = 0; /* 0x2B027332: xor eax, eax */ 3323 _cf = 0; 3324 _flag_k = FK_TEST; 3325 /* test ecx, ecx */ /* 0x2B027334: test ecx, ecx */ 3326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3327 _cf = 0; 3328 _flag_k = FK_TEST; 3329 MEM32(ebp + 0x8) = eax; /* 0x2B027336: mov dword ptr [ebp + 8], eax */ 3330 if (TEST_S(_flag_a, _flag_b)) goto L_2B027358; /* 0x2B027339: jl 0x2b027358 */ 3331 L_2B02733B: 3332 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B02733B: fild dword ptr [ebp + 8] */ 3333 ecx = MEM32(esi + 0x24); /* 0x2B02733E: mov ecx, dword ptr [esi + 0x24] */ 3334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3335 eax = eax + 1; /* 0x2B027341: inc eax */ 3336 _flag_k = FK_INC; 3337 MEM32(ebp + 0x8) = eax; /* 0x2B027342: mov dword ptr [ebp + 8], eax */ 3338 { double _v = fp_pop(); *(double*)ADDR(ecx + eax * 8 + (-0x8)) = _v; } /* 0x2B027345: fstp qword ptr [ecx + eax*8 - 8] */ 3339 ecx = MEM32(esi + 0x34); /* 0x2B027349: mov ecx, dword ptr [esi + 0x34] */ 3340 /* cmp eax, ecx */ /* 0x2B02734C: cmp eax, ecx */ 3341 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3343 _flag_k = FK_CMP; 3344 RECOMP_BACKEDGE(); 3345 if (CMP_LE(_flag_a, _flag_b)) goto L_2B02733B; /* 0x2B02734E: jle 0x2b02733b */ 3346 L_2B027350: 3347 edx = MEM32(ebp + 0x10); /* 0x2B027350: mov edx, dword ptr [ebp + 0x10] */ 3348 MEM32(esi + 0x30) = edx; /* 0x2B027353: mov dword ptr [esi + 0x30], edx */ 3349 goto L_2B02735E; /* 0x2B027356: jmp 0x2b02735e */ 3350 L_2B027358: 3351 eax = MEM32(ebp + 0x10); /* 0x2B027358: mov eax, dword ptr [ebp + 0x10] */ 3352 MEM32(esi + 0x30) = eax; /* 0x2B02735B: mov dword ptr [esi + 0x30], eax */ 3353 L_2B02735E: 3354 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 3355 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 3356 eax = esi; /* 0x2B027362: mov eax, esi */ 3357 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 3358 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 3359 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 3360 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 3361 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 3362 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 3363 RECOMP_REGS_OUT(); 3364 } 3365 3366 void sub_2B027243(void) { 3367 int _fpu_cmp = 0; 3368 uint32_t _cf = 0; 3369 int _df = 1; 3370 uint32_t _flag_k = FK_NONE; 3371 uint32_t _flag_a = 0, _flag_b = 0; 3372 uint32_t _itail_tgt = 0; 3373 RECOMP_REGS_LOCALS 3374 RECOMP_ENTER(0x2B027243u); 3375 3376 L_2B027243: 3377 MEM32(ebp + (-0x14)) = 0; /* 0x2B027243: mov dword ptr [ebp - 0x14], 0 */ 3378 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B027254; /* 0x2B02724A: je 0x2b027254 */ 3379 L_2B02724C: 3380 ecx = MEM32(edi + 0x8); /* 0x2B02724C: mov ecx, dword ptr [edi + 8] */ 3381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3383 ecx = ecx - eax; /* 0x2B02724F: sub ecx, eax */ 3384 _flag_k = FK_CMP; 3385 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B027251: sar ecx, 3 */ 3386 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3387 ecx = (uint32_t)((int32_t)ecx >> 3u); 3388 L_2B027254: 3389 /* cmp ecx, ebx */ /* 0x2B027254: cmp ecx, ebx */ 3390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3392 _flag_k = FK_CMP; 3393 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027279; /* 0x2B027256: jae 0x2b027279 */ 3394 L_2B027258: 3395 ecx = MEM32(edi + 0x8); /* 0x2B027258: mov ecx, dword ptr [edi + 8] */ 3396 edx = ebp + (-0x18); /* 0x2B02725B: lea edx, [ebp - 0x18] */ 3397 MEM32(ebp + 0x8) = ecx; /* 0x2B02725E: mov dword ptr [ebp + 8], ecx */ 3398 PUSH32(esp, edx); /* 0x2B027261: push edx */ 3399 ecx = edi; /* 0x2B027262: mov ecx, edi */ 3400 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027264: call 0x2b02bbf0 */ /* not lifted */ 3401 RECOMP_FLAGS_IN(); 3402 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3404 ebx = ebx - eax; /* 0x2B027269: sub ebx, eax */ 3405 _flag_k = FK_CMP; 3406 eax = MEM32(ebp + 0x8); /* 0x2B02726B: mov eax, dword ptr [ebp + 8] */ 3407 PUSH32(esp, ebx); /* 0x2B02726E: push ebx */ 3408 PUSH32(esp, eax); /* 0x2B02726F: push eax */ 3409 ecx = edi; /* 0x2B027270: mov ecx, edi */ 3410 RECOMP_ICALL(0x2B0320B0u); /* 0x2B027272: call 0x2b0320b0 */ /* not lifted */ 3411 RECOMP_FLAGS_IN(); 3412 goto L_2B027296; /* 0x2B027277: jmp 0x2b027296 */ 3413 L_2B027279: 3414 ecx = edi; /* 0x2B027279: mov ecx, edi */ 3415 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B02727B: call 0x2b02bbf0 */ /* not lifted */ 3416 RECOMP_FLAGS_IN(); 3417 /* cmp ebx, eax */ /* 0x2B027280: cmp ebx, eax */ 3418 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3420 _flag_k = FK_CMP; 3421 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027296; /* 0x2B027282: jae 0x2b027296 */ 3422 L_2B027284: 3423 ecx = MEM32(edi + 0x8); /* 0x2B027284: mov ecx, dword ptr [edi + 8] */ 3424 edx = MEM32(edi + 0x4); /* 0x2B027287: mov edx, dword ptr [edi + 4] */ 3425 PUSH32(esp, ecx); /* 0x2B02728A: push ecx */ 3426 eax = edx + ebx * 8; /* 0x2B02728B: lea eax, [edx + ebx*8] */ 3427 PUSH32(esp, eax); /* 0x2B02728E: push eax */ 3428 ecx = edi; /* 0x2B02728F: mov ecx, edi */ 3429 RECOMP_ICALL(0x2B028CD0u); /* 0x2B027291: call 0x2b028cd0 */ /* not lifted */ 3430 RECOMP_FLAGS_IN(); 3431 L_2B027296: 3432 ecx = MEM32(esi + 0x34); /* 0x2B027296: mov ecx, dword ptr [esi + 0x34] */ 3433 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3434 eax = 0; /* 0x2B027299: xor eax, eax */ 3435 _cf = 0; 3436 _flag_k = FK_TEST; 3437 /* test ecx, ecx */ /* 0x2B02729B: test ecx, ecx */ 3438 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3439 _cf = 0; 3440 _flag_k = FK_TEST; 3441 if (TEST_LE(_flag_a, _flag_b)) goto L_2B0272C5; /* 0x2B02729D: jle 0x2b0272c5 */ 3442 L_2B02729F: 3443 ecx = 0xBFEFAE14u; /* 0x2B02729F: mov ecx, 0xbfefae14 */ 3444 L_2B0272A4: 3445 edx = MEM32(esi + 0x14); /* 0x2B0272A4: mov edx, dword ptr [esi + 0x14] */ 3446 MEM32(edx + eax * 8) = 0x7AE147AEu; /* 0x2B0272A7: mov dword ptr [edx + eax*8], 0x7ae147ae */ 3447 MEM32(edx + eax * 8 + 0x4) = ecx; /* 0x2B0272AE: mov dword ptr [edx + eax*8 + 4], ecx */ 3448 edx = MEM32(esi + 0x34); /* 0x2B0272B2: mov edx, dword ptr [esi + 0x34] */ 3449 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3450 eax = eax + 1; /* 0x2B0272B5: inc eax */ 3451 _flag_k = FK_INC; 3452 /* cmp eax, edx */ /* 0x2B0272B6: cmp eax, edx */ 3453 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3455 _flag_k = FK_CMP; 3456 RECOMP_BACKEDGE(); 3457 if (CMP_L(_flag_a, _flag_b)) goto L_2B0272A4; /* 0x2B0272B8: jl 0x2b0272a4 */ 3458 L_2B0272BA: 3459 goto L_2B0272C5; /* 0x2B0272BA: jmp 0x2b0272c5 */ 3460 L_2B0272C5: 3461 ebx = MEM32(esi + 0x34); /* 0x2B0272C5: mov ebx, dword ptr [esi + 0x34] */ 3462 ecx = MEM32(esi + 0x24); /* 0x2B0272C8: mov ecx, dword ptr [esi + 0x24] */ 3463 edi = esi + 0x20; /* 0x2B0272CB: lea edi, [esi + 0x20] */ 3464 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3465 ebx = ebx + 1; /* 0x2B0272CE: inc ebx */ 3466 _flag_k = FK_INC; 3467 /* test ecx, ecx */ /* 0x2B0272CF: test ecx, ecx */ 3468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3469 _cf = 0; 3470 _flag_k = FK_TEST; 3471 MEM32(ebp + (-0x18)) = 0; /* 0x2B0272D1: mov dword ptr [ebp - 0x18], 0 */ 3472 MEM32(ebp + (-0x14)) = 0; /* 0x2B0272D8: mov dword ptr [ebp - 0x14], 0 */ 3473 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0272E5; /* 0x2B0272DF: jne 0x2b0272e5 */ 3474 L_2B0272E1: 3475 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3476 eax = 0; /* 0x2B0272E1: xor eax, eax */ 3477 _cf = 0; 3478 _flag_k = FK_TEST; 3479 goto L_2B0272ED; /* 0x2B0272E3: jmp 0x2b0272ed */ 3480 L_2B0272E5: 3481 eax = MEM32(edi + 0x8); /* 0x2B0272E5: mov eax, dword ptr [edi + 8] */ 3482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3484 eax = eax - ecx; /* 0x2B0272E8: sub eax, ecx */ 3485 _flag_k = FK_CMP; 3486 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B0272EA: sar eax, 3 */ 3487 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3488 eax = (uint32_t)((int32_t)eax >> 3u); 3489 L_2B0272ED: 3490 /* cmp eax, ebx */ /* 0x2B0272ED: cmp eax, ebx */ 3491 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3493 _flag_k = FK_CMP; 3494 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027312; /* 0x2B0272EF: jae 0x2b027312 */ 3495 L_2B0272F1: 3496 eax = MEM32(edi + 0x8); /* 0x2B0272F1: mov eax, dword ptr [edi + 8] */ 3497 ecx = ebp + (-0x18); /* 0x2B0272F4: lea ecx, [ebp - 0x18] */ 3498 PUSH32(esp, ecx); /* 0x2B0272F7: push ecx */ 3499 ecx = edi; /* 0x2B0272F8: mov ecx, edi */ 3500 MEM32(ebp + 0x8) = eax; /* 0x2B0272FA: mov dword ptr [ebp + 8], eax */ 3501 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B0272FD: call 0x2b02bbf0 */ /* not lifted */ 3502 RECOMP_FLAGS_IN(); 3503 edx = MEM32(ebp + 0x8); /* 0x2B027302: mov edx, dword ptr [ebp + 8] */ 3504 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3506 ebx = ebx - eax; /* 0x2B027305: sub ebx, eax */ 3507 _flag_k = FK_CMP; 3508 PUSH32(esp, ebx); /* 0x2B027307: push ebx */ 3509 PUSH32(esp, edx); /* 0x2B027308: push edx */ 3510 ecx = edi; /* 0x2B027309: mov ecx, edi */ 3511 RECOMP_ICALL(0x2B0320B0u); /* 0x2B02730B: call 0x2b0320b0 */ /* not lifted */ 3512 RECOMP_FLAGS_IN(); 3513 goto L_2B02732F; /* 0x2B027310: jmp 0x2b02732f */ 3514 L_2B027312: 3515 ecx = edi; /* 0x2B027312: mov ecx, edi */ 3516 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027314: call 0x2b02bbf0 */ /* not lifted */ 3517 RECOMP_FLAGS_IN(); 3518 /* cmp ebx, eax */ /* 0x2B027319: cmp ebx, eax */ 3519 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3521 _flag_k = FK_CMP; 3522 if (CMP_AE(_flag_a, _flag_b)) goto L_2B02732F; /* 0x2B02731B: jae 0x2b02732f */ 3523 L_2B02731D: 3524 ecx = MEM32(edi + 0x4); /* 0x2B02731D: mov ecx, dword ptr [edi + 4] */ 3525 eax = MEM32(edi + 0x8); /* 0x2B027320: mov eax, dword ptr [edi + 8] */ 3526 edx = ecx + ebx * 8; /* 0x2B027323: lea edx, [ecx + ebx*8] */ 3527 PUSH32(esp, eax); /* 0x2B027326: push eax */ 3528 PUSH32(esp, edx); /* 0x2B027327: push edx */ 3529 ecx = edi; /* 0x2B027328: mov ecx, edi */ 3530 RECOMP_ICALL(0x2B028CD0u); /* 0x2B02732A: call 0x2b028cd0 */ /* not lifted */ 3531 RECOMP_FLAGS_IN(); 3532 L_2B02732F: 3533 ecx = MEM32(esi + 0x34); /* 0x2B02732F: mov ecx, dword ptr [esi + 0x34] */ 3534 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3535 eax = 0; /* 0x2B027332: xor eax, eax */ 3536 _cf = 0; 3537 _flag_k = FK_TEST; 3538 /* test ecx, ecx */ /* 0x2B027334: test ecx, ecx */ 3539 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3540 _cf = 0; 3541 _flag_k = FK_TEST; 3542 MEM32(ebp + 0x8) = eax; /* 0x2B027336: mov dword ptr [ebp + 8], eax */ 3543 if (TEST_S(_flag_a, _flag_b)) goto L_2B027358; /* 0x2B027339: jl 0x2b027358 */ 3544 L_2B02733B: 3545 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B02733B: fild dword ptr [ebp + 8] */ 3546 ecx = MEM32(esi + 0x24); /* 0x2B02733E: mov ecx, dword ptr [esi + 0x24] */ 3547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3548 eax = eax + 1; /* 0x2B027341: inc eax */ 3549 _flag_k = FK_INC; 3550 MEM32(ebp + 0x8) = eax; /* 0x2B027342: mov dword ptr [ebp + 8], eax */ 3551 { double _v = fp_pop(); *(double*)ADDR(ecx + eax * 8 + (-0x8)) = _v; } /* 0x2B027345: fstp qword ptr [ecx + eax*8 - 8] */ 3552 ecx = MEM32(esi + 0x34); /* 0x2B027349: mov ecx, dword ptr [esi + 0x34] */ 3553 /* cmp eax, ecx */ /* 0x2B02734C: cmp eax, ecx */ 3554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3556 _flag_k = FK_CMP; 3557 RECOMP_BACKEDGE(); 3558 if (CMP_LE(_flag_a, _flag_b)) goto L_2B02733B; /* 0x2B02734E: jle 0x2b02733b */ 3559 L_2B027350: 3560 edx = MEM32(ebp + 0x10); /* 0x2B027350: mov edx, dword ptr [ebp + 0x10] */ 3561 MEM32(esi + 0x30) = edx; /* 0x2B027353: mov dword ptr [esi + 0x30], edx */ 3562 goto L_2B02735E; /* 0x2B027356: jmp 0x2b02735e */ 3563 L_2B027358: 3564 eax = MEM32(ebp + 0x10); /* 0x2B027358: mov eax, dword ptr [ebp + 0x10] */ 3565 MEM32(esi + 0x30) = eax; /* 0x2B02735B: mov dword ptr [esi + 0x30], eax */ 3566 L_2B02735E: 3567 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 3568 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 3569 eax = esi; /* 0x2B027362: mov eax, esi */ 3570 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 3571 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 3572 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 3573 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 3574 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 3575 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 3576 RECOMP_REGS_OUT(); 3577 } 3578 3579 void sub_2B027296(void) { 3580 int _fpu_cmp = 0; 3581 uint32_t _cf = 0; 3582 int _df = 1; 3583 uint32_t _flag_k = FK_NONE; 3584 uint32_t _flag_a = 0, _flag_b = 0; 3585 uint32_t _itail_tgt = 0; 3586 RECOMP_REGS_LOCALS 3587 RECOMP_ENTER(0x2B027296u); 3588 3589 L_2B027296: 3590 ecx = MEM32(esi + 0x34); /* 0x2B027296: mov ecx, dword ptr [esi + 0x34] */ 3591 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3592 eax = 0; /* 0x2B027299: xor eax, eax */ 3593 _cf = 0; 3594 _flag_k = FK_TEST; 3595 /* test ecx, ecx */ /* 0x2B02729B: test ecx, ecx */ 3596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3597 _cf = 0; 3598 _flag_k = FK_TEST; 3599 if (TEST_LE(_flag_a, _flag_b)) goto L_2B0272C5; /* 0x2B02729D: jle 0x2b0272c5 */ 3600 L_2B02729F: 3601 ecx = 0xBFEFAE14u; /* 0x2B02729F: mov ecx, 0xbfefae14 */ 3602 L_2B0272A4: 3603 edx = MEM32(esi + 0x14); /* 0x2B0272A4: mov edx, dword ptr [esi + 0x14] */ 3604 MEM32(edx + eax * 8) = 0x7AE147AEu; /* 0x2B0272A7: mov dword ptr [edx + eax*8], 0x7ae147ae */ 3605 MEM32(edx + eax * 8 + 0x4) = ecx; /* 0x2B0272AE: mov dword ptr [edx + eax*8 + 4], ecx */ 3606 edx = MEM32(esi + 0x34); /* 0x2B0272B2: mov edx, dword ptr [esi + 0x34] */ 3607 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3608 eax = eax + 1; /* 0x2B0272B5: inc eax */ 3609 _flag_k = FK_INC; 3610 /* cmp eax, edx */ /* 0x2B0272B6: cmp eax, edx */ 3611 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3613 _flag_k = FK_CMP; 3614 RECOMP_BACKEDGE(); 3615 if (CMP_L(_flag_a, _flag_b)) goto L_2B0272A4; /* 0x2B0272B8: jl 0x2b0272a4 */ 3616 L_2B0272BA: 3617 goto L_2B0272C5; /* 0x2B0272BA: jmp 0x2b0272c5 */ 3618 L_2B0272C5: 3619 ebx = MEM32(esi + 0x34); /* 0x2B0272C5: mov ebx, dword ptr [esi + 0x34] */ 3620 ecx = MEM32(esi + 0x24); /* 0x2B0272C8: mov ecx, dword ptr [esi + 0x24] */ 3621 edi = esi + 0x20; /* 0x2B0272CB: lea edi, [esi + 0x20] */ 3622 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3623 ebx = ebx + 1; /* 0x2B0272CE: inc ebx */ 3624 _flag_k = FK_INC; 3625 /* test ecx, ecx */ /* 0x2B0272CF: test ecx, ecx */ 3626 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3627 _cf = 0; 3628 _flag_k = FK_TEST; 3629 MEM32(ebp + (-0x18)) = 0; /* 0x2B0272D1: mov dword ptr [ebp - 0x18], 0 */ 3630 MEM32(ebp + (-0x14)) = 0; /* 0x2B0272D8: mov dword ptr [ebp - 0x14], 0 */ 3631 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0272E5; /* 0x2B0272DF: jne 0x2b0272e5 */ 3632 L_2B0272E1: 3633 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3634 eax = 0; /* 0x2B0272E1: xor eax, eax */ 3635 _cf = 0; 3636 _flag_k = FK_TEST; 3637 goto L_2B0272ED; /* 0x2B0272E3: jmp 0x2b0272ed */ 3638 L_2B0272E5: 3639 eax = MEM32(edi + 0x8); /* 0x2B0272E5: mov eax, dword ptr [edi + 8] */ 3640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3642 eax = eax - ecx; /* 0x2B0272E8: sub eax, ecx */ 3643 _flag_k = FK_CMP; 3644 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B0272EA: sar eax, 3 */ 3645 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3646 eax = (uint32_t)((int32_t)eax >> 3u); 3647 L_2B0272ED: 3648 /* cmp eax, ebx */ /* 0x2B0272ED: cmp eax, ebx */ 3649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3651 _flag_k = FK_CMP; 3652 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027312; /* 0x2B0272EF: jae 0x2b027312 */ 3653 L_2B0272F1: 3654 eax = MEM32(edi + 0x8); /* 0x2B0272F1: mov eax, dword ptr [edi + 8] */ 3655 ecx = ebp + (-0x18); /* 0x2B0272F4: lea ecx, [ebp - 0x18] */ 3656 PUSH32(esp, ecx); /* 0x2B0272F7: push ecx */ 3657 ecx = edi; /* 0x2B0272F8: mov ecx, edi */ 3658 MEM32(ebp + 0x8) = eax; /* 0x2B0272FA: mov dword ptr [ebp + 8], eax */ 3659 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B0272FD: call 0x2b02bbf0 */ /* not lifted */ 3660 RECOMP_FLAGS_IN(); 3661 edx = MEM32(ebp + 0x8); /* 0x2B027302: mov edx, dword ptr [ebp + 8] */ 3662 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3664 ebx = ebx - eax; /* 0x2B027305: sub ebx, eax */ 3665 _flag_k = FK_CMP; 3666 PUSH32(esp, ebx); /* 0x2B027307: push ebx */ 3667 PUSH32(esp, edx); /* 0x2B027308: push edx */ 3668 ecx = edi; /* 0x2B027309: mov ecx, edi */ 3669 RECOMP_ICALL(0x2B0320B0u); /* 0x2B02730B: call 0x2b0320b0 */ /* not lifted */ 3670 RECOMP_FLAGS_IN(); 3671 goto L_2B02732F; /* 0x2B027310: jmp 0x2b02732f */ 3672 L_2B027312: 3673 ecx = edi; /* 0x2B027312: mov ecx, edi */ 3674 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027314: call 0x2b02bbf0 */ /* not lifted */ 3675 RECOMP_FLAGS_IN(); 3676 /* cmp ebx, eax */ /* 0x2B027319: cmp ebx, eax */ 3677 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3679 _flag_k = FK_CMP; 3680 if (CMP_AE(_flag_a, _flag_b)) goto L_2B02732F; /* 0x2B02731B: jae 0x2b02732f */ 3681 L_2B02731D: 3682 ecx = MEM32(edi + 0x4); /* 0x2B02731D: mov ecx, dword ptr [edi + 4] */ 3683 eax = MEM32(edi + 0x8); /* 0x2B027320: mov eax, dword ptr [edi + 8] */ 3684 edx = ecx + ebx * 8; /* 0x2B027323: lea edx, [ecx + ebx*8] */ 3685 PUSH32(esp, eax); /* 0x2B027326: push eax */ 3686 PUSH32(esp, edx); /* 0x2B027327: push edx */ 3687 ecx = edi; /* 0x2B027328: mov ecx, edi */ 3688 RECOMP_ICALL(0x2B028CD0u); /* 0x2B02732A: call 0x2b028cd0 */ /* not lifted */ 3689 RECOMP_FLAGS_IN(); 3690 L_2B02732F: 3691 ecx = MEM32(esi + 0x34); /* 0x2B02732F: mov ecx, dword ptr [esi + 0x34] */ 3692 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3693 eax = 0; /* 0x2B027332: xor eax, eax */ 3694 _cf = 0; 3695 _flag_k = FK_TEST; 3696 /* test ecx, ecx */ /* 0x2B027334: test ecx, ecx */ 3697 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3698 _cf = 0; 3699 _flag_k = FK_TEST; 3700 MEM32(ebp + 0x8) = eax; /* 0x2B027336: mov dword ptr [ebp + 8], eax */ 3701 if (TEST_S(_flag_a, _flag_b)) goto L_2B027358; /* 0x2B027339: jl 0x2b027358 */ 3702 L_2B02733B: 3703 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B02733B: fild dword ptr [ebp + 8] */ 3704 ecx = MEM32(esi + 0x24); /* 0x2B02733E: mov ecx, dword ptr [esi + 0x24] */ 3705 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3706 eax = eax + 1; /* 0x2B027341: inc eax */ 3707 _flag_k = FK_INC; 3708 MEM32(ebp + 0x8) = eax; /* 0x2B027342: mov dword ptr [ebp + 8], eax */ 3709 { double _v = fp_pop(); *(double*)ADDR(ecx + eax * 8 + (-0x8)) = _v; } /* 0x2B027345: fstp qword ptr [ecx + eax*8 - 8] */ 3710 ecx = MEM32(esi + 0x34); /* 0x2B027349: mov ecx, dword ptr [esi + 0x34] */ 3711 /* cmp eax, ecx */ /* 0x2B02734C: cmp eax, ecx */ 3712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3714 _flag_k = FK_CMP; 3715 RECOMP_BACKEDGE(); 3716 if (CMP_LE(_flag_a, _flag_b)) goto L_2B02733B; /* 0x2B02734E: jle 0x2b02733b */ 3717 L_2B027350: 3718 edx = MEM32(ebp + 0x10); /* 0x2B027350: mov edx, dword ptr [ebp + 0x10] */ 3719 MEM32(esi + 0x30) = edx; /* 0x2B027353: mov dword ptr [esi + 0x30], edx */ 3720 goto L_2B02735E; /* 0x2B027356: jmp 0x2b02735e */ 3721 L_2B027358: 3722 eax = MEM32(ebp + 0x10); /* 0x2B027358: mov eax, dword ptr [ebp + 0x10] */ 3723 MEM32(esi + 0x30) = eax; /* 0x2B02735B: mov dword ptr [esi + 0x30], eax */ 3724 L_2B02735E: 3725 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 3726 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 3727 eax = esi; /* 0x2B027362: mov eax, esi */ 3728 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 3729 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 3730 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 3731 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 3732 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 3733 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 3734 RECOMP_REGS_OUT(); 3735 } 3736 3737 void sub_2B0272C5(void) { 3738 int _fpu_cmp = 0; 3739 uint32_t _cf = 0; 3740 int _df = 1; 3741 uint32_t _flag_k = FK_NONE; 3742 uint32_t _flag_a = 0, _flag_b = 0; 3743 uint32_t _itail_tgt = 0; 3744 RECOMP_REGS_LOCALS 3745 RECOMP_ENTER(0x2B0272C5u); 3746 3747 L_2B0272C5: 3748 ebx = MEM32(esi + 0x34); /* 0x2B0272C5: mov ebx, dword ptr [esi + 0x34] */ 3749 ecx = MEM32(esi + 0x24); /* 0x2B0272C8: mov ecx, dword ptr [esi + 0x24] */ 3750 edi = esi + 0x20; /* 0x2B0272CB: lea edi, [esi + 0x20] */ 3751 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3752 ebx = ebx + 1; /* 0x2B0272CE: inc ebx */ 3753 _flag_k = FK_INC; 3754 /* test ecx, ecx */ /* 0x2B0272CF: test ecx, ecx */ 3755 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3756 _cf = 0; 3757 _flag_k = FK_TEST; 3758 MEM32(ebp + (-0x18)) = 0; /* 0x2B0272D1: mov dword ptr [ebp - 0x18], 0 */ 3759 MEM32(ebp + (-0x14)) = 0; /* 0x2B0272D8: mov dword ptr [ebp - 0x14], 0 */ 3760 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0272E5; /* 0x2B0272DF: jne 0x2b0272e5 */ 3761 L_2B0272E1: 3762 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3763 eax = 0; /* 0x2B0272E1: xor eax, eax */ 3764 _cf = 0; 3765 _flag_k = FK_TEST; 3766 goto L_2B0272ED; /* 0x2B0272E3: jmp 0x2b0272ed */ 3767 L_2B0272E5: 3768 eax = MEM32(edi + 0x8); /* 0x2B0272E5: mov eax, dword ptr [edi + 8] */ 3769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3771 eax = eax - ecx; /* 0x2B0272E8: sub eax, ecx */ 3772 _flag_k = FK_CMP; 3773 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B0272EA: sar eax, 3 */ 3774 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3775 eax = (uint32_t)((int32_t)eax >> 3u); 3776 L_2B0272ED: 3777 /* cmp eax, ebx */ /* 0x2B0272ED: cmp eax, ebx */ 3778 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3780 _flag_k = FK_CMP; 3781 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027312; /* 0x2B0272EF: jae 0x2b027312 */ 3782 L_2B0272F1: 3783 eax = MEM32(edi + 0x8); /* 0x2B0272F1: mov eax, dword ptr [edi + 8] */ 3784 ecx = ebp + (-0x18); /* 0x2B0272F4: lea ecx, [ebp - 0x18] */ 3785 PUSH32(esp, ecx); /* 0x2B0272F7: push ecx */ 3786 ecx = edi; /* 0x2B0272F8: mov ecx, edi */ 3787 MEM32(ebp + 0x8) = eax; /* 0x2B0272FA: mov dword ptr [ebp + 8], eax */ 3788 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B0272FD: call 0x2b02bbf0 */ /* not lifted */ 3789 RECOMP_FLAGS_IN(); 3790 edx = MEM32(ebp + 0x8); /* 0x2B027302: mov edx, dword ptr [ebp + 8] */ 3791 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3793 ebx = ebx - eax; /* 0x2B027305: sub ebx, eax */ 3794 _flag_k = FK_CMP; 3795 PUSH32(esp, ebx); /* 0x2B027307: push ebx */ 3796 PUSH32(esp, edx); /* 0x2B027308: push edx */ 3797 ecx = edi; /* 0x2B027309: mov ecx, edi */ 3798 RECOMP_ICALL(0x2B0320B0u); /* 0x2B02730B: call 0x2b0320b0 */ /* not lifted */ 3799 RECOMP_FLAGS_IN(); 3800 goto L_2B02732F; /* 0x2B027310: jmp 0x2b02732f */ 3801 L_2B027312: 3802 ecx = edi; /* 0x2B027312: mov ecx, edi */ 3803 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027314: call 0x2b02bbf0 */ /* not lifted */ 3804 RECOMP_FLAGS_IN(); 3805 /* cmp ebx, eax */ /* 0x2B027319: cmp ebx, eax */ 3806 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3808 _flag_k = FK_CMP; 3809 if (CMP_AE(_flag_a, _flag_b)) goto L_2B02732F; /* 0x2B02731B: jae 0x2b02732f */ 3810 L_2B02731D: 3811 ecx = MEM32(edi + 0x4); /* 0x2B02731D: mov ecx, dword ptr [edi + 4] */ 3812 eax = MEM32(edi + 0x8); /* 0x2B027320: mov eax, dword ptr [edi + 8] */ 3813 edx = ecx + ebx * 8; /* 0x2B027323: lea edx, [ecx + ebx*8] */ 3814 PUSH32(esp, eax); /* 0x2B027326: push eax */ 3815 PUSH32(esp, edx); /* 0x2B027327: push edx */ 3816 ecx = edi; /* 0x2B027328: mov ecx, edi */ 3817 RECOMP_ICALL(0x2B028CD0u); /* 0x2B02732A: call 0x2b028cd0 */ /* not lifted */ 3818 RECOMP_FLAGS_IN(); 3819 L_2B02732F: 3820 ecx = MEM32(esi + 0x34); /* 0x2B02732F: mov ecx, dword ptr [esi + 0x34] */ 3821 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3822 eax = 0; /* 0x2B027332: xor eax, eax */ 3823 _cf = 0; 3824 _flag_k = FK_TEST; 3825 /* test ecx, ecx */ /* 0x2B027334: test ecx, ecx */ 3826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3827 _cf = 0; 3828 _flag_k = FK_TEST; 3829 MEM32(ebp + 0x8) = eax; /* 0x2B027336: mov dword ptr [ebp + 8], eax */ 3830 if (TEST_S(_flag_a, _flag_b)) goto L_2B027358; /* 0x2B027339: jl 0x2b027358 */ 3831 L_2B02733B: 3832 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B02733B: fild dword ptr [ebp + 8] */ 3833 ecx = MEM32(esi + 0x24); /* 0x2B02733E: mov ecx, dword ptr [esi + 0x24] */ 3834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3835 eax = eax + 1; /* 0x2B027341: inc eax */ 3836 _flag_k = FK_INC; 3837 MEM32(ebp + 0x8) = eax; /* 0x2B027342: mov dword ptr [ebp + 8], eax */ 3838 { double _v = fp_pop(); *(double*)ADDR(ecx + eax * 8 + (-0x8)) = _v; } /* 0x2B027345: fstp qword ptr [ecx + eax*8 - 8] */ 3839 ecx = MEM32(esi + 0x34); /* 0x2B027349: mov ecx, dword ptr [esi + 0x34] */ 3840 /* cmp eax, ecx */ /* 0x2B02734C: cmp eax, ecx */ 3841 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3843 _flag_k = FK_CMP; 3844 RECOMP_BACKEDGE(); 3845 if (CMP_LE(_flag_a, _flag_b)) goto L_2B02733B; /* 0x2B02734E: jle 0x2b02733b */ 3846 L_2B027350: 3847 edx = MEM32(ebp + 0x10); /* 0x2B027350: mov edx, dword ptr [ebp + 0x10] */ 3848 MEM32(esi + 0x30) = edx; /* 0x2B027353: mov dword ptr [esi + 0x30], edx */ 3849 goto L_2B02735E; /* 0x2B027356: jmp 0x2b02735e */ 3850 L_2B027358: 3851 eax = MEM32(ebp + 0x10); /* 0x2B027358: mov eax, dword ptr [ebp + 0x10] */ 3852 MEM32(esi + 0x30) = eax; /* 0x2B02735B: mov dword ptr [esi + 0x30], eax */ 3853 L_2B02735E: 3854 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 3855 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 3856 eax = esi; /* 0x2B027362: mov eax, esi */ 3857 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 3858 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 3859 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 3860 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 3861 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 3862 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 3863 RECOMP_REGS_OUT(); 3864 } 3865 3866 void sub_2B0272D8(void) { 3867 int _fpu_cmp = 0; 3868 uint32_t _cf = 0; 3869 int _df = 1; 3870 uint32_t _flag_k = FK_NONE; 3871 uint32_t _flag_a = 0, _flag_b = 0; 3872 uint32_t _itail_tgt = 0; 3873 RECOMP_REGS_LOCALS 3874 RECOMP_ENTER(0x2B0272D8u); 3875 3876 L_2B0272D8: 3877 MEM32(ebp + (-0x14)) = 0; /* 0x2B0272D8: mov dword ptr [ebp - 0x14], 0 */ 3878 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2B0272E5; /* 0x2B0272DF: jne 0x2b0272e5 */ 3879 L_2B0272E1: 3880 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3881 eax = 0; /* 0x2B0272E1: xor eax, eax */ 3882 _cf = 0; 3883 _flag_k = FK_TEST; 3884 goto L_2B0272ED; /* 0x2B0272E3: jmp 0x2b0272ed */ 3885 L_2B0272E5: 3886 eax = MEM32(edi + 0x8); /* 0x2B0272E5: mov eax, dword ptr [edi + 8] */ 3887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3889 eax = eax - ecx; /* 0x2B0272E8: sub eax, ecx */ 3890 _flag_k = FK_CMP; 3891 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B0272EA: sar eax, 3 */ 3892 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3893 eax = (uint32_t)((int32_t)eax >> 3u); 3894 L_2B0272ED: 3895 /* cmp eax, ebx */ /* 0x2B0272ED: cmp eax, ebx */ 3896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3898 _flag_k = FK_CMP; 3899 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027312; /* 0x2B0272EF: jae 0x2b027312 */ 3900 L_2B0272F1: 3901 eax = MEM32(edi + 0x8); /* 0x2B0272F1: mov eax, dword ptr [edi + 8] */ 3902 ecx = ebp + (-0x18); /* 0x2B0272F4: lea ecx, [ebp - 0x18] */ 3903 PUSH32(esp, ecx); /* 0x2B0272F7: push ecx */ 3904 ecx = edi; /* 0x2B0272F8: mov ecx, edi */ 3905 MEM32(ebp + 0x8) = eax; /* 0x2B0272FA: mov dword ptr [ebp + 8], eax */ 3906 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B0272FD: call 0x2b02bbf0 */ /* not lifted */ 3907 RECOMP_FLAGS_IN(); 3908 edx = MEM32(ebp + 0x8); /* 0x2B027302: mov edx, dword ptr [ebp + 8] */ 3909 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3911 ebx = ebx - eax; /* 0x2B027305: sub ebx, eax */ 3912 _flag_k = FK_CMP; 3913 PUSH32(esp, ebx); /* 0x2B027307: push ebx */ 3914 PUSH32(esp, edx); /* 0x2B027308: push edx */ 3915 ecx = edi; /* 0x2B027309: mov ecx, edi */ 3916 RECOMP_ICALL(0x2B0320B0u); /* 0x2B02730B: call 0x2b0320b0 */ /* not lifted */ 3917 RECOMP_FLAGS_IN(); 3918 goto L_2B02732F; /* 0x2B027310: jmp 0x2b02732f */ 3919 L_2B027312: 3920 ecx = edi; /* 0x2B027312: mov ecx, edi */ 3921 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027314: call 0x2b02bbf0 */ /* not lifted */ 3922 RECOMP_FLAGS_IN(); 3923 /* cmp ebx, eax */ /* 0x2B027319: cmp ebx, eax */ 3924 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3926 _flag_k = FK_CMP; 3927 if (CMP_AE(_flag_a, _flag_b)) goto L_2B02732F; /* 0x2B02731B: jae 0x2b02732f */ 3928 L_2B02731D: 3929 ecx = MEM32(edi + 0x4); /* 0x2B02731D: mov ecx, dword ptr [edi + 4] */ 3930 eax = MEM32(edi + 0x8); /* 0x2B027320: mov eax, dword ptr [edi + 8] */ 3931 edx = ecx + ebx * 8; /* 0x2B027323: lea edx, [ecx + ebx*8] */ 3932 PUSH32(esp, eax); /* 0x2B027326: push eax */ 3933 PUSH32(esp, edx); /* 0x2B027327: push edx */ 3934 ecx = edi; /* 0x2B027328: mov ecx, edi */ 3935 RECOMP_ICALL(0x2B028CD0u); /* 0x2B02732A: call 0x2b028cd0 */ /* not lifted */ 3936 RECOMP_FLAGS_IN(); 3937 L_2B02732F: 3938 ecx = MEM32(esi + 0x34); /* 0x2B02732F: mov ecx, dword ptr [esi + 0x34] */ 3939 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3940 eax = 0; /* 0x2B027332: xor eax, eax */ 3941 _cf = 0; 3942 _flag_k = FK_TEST; 3943 /* test ecx, ecx */ /* 0x2B027334: test ecx, ecx */ 3944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3945 _cf = 0; 3946 _flag_k = FK_TEST; 3947 MEM32(ebp + 0x8) = eax; /* 0x2B027336: mov dword ptr [ebp + 8], eax */ 3948 if (TEST_S(_flag_a, _flag_b)) goto L_2B027358; /* 0x2B027339: jl 0x2b027358 */ 3949 L_2B02733B: 3950 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B02733B: fild dword ptr [ebp + 8] */ 3951 ecx = MEM32(esi + 0x24); /* 0x2B02733E: mov ecx, dword ptr [esi + 0x24] */ 3952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3953 eax = eax + 1; /* 0x2B027341: inc eax */ 3954 _flag_k = FK_INC; 3955 MEM32(ebp + 0x8) = eax; /* 0x2B027342: mov dword ptr [ebp + 8], eax */ 3956 { double _v = fp_pop(); *(double*)ADDR(ecx + eax * 8 + (-0x8)) = _v; } /* 0x2B027345: fstp qword ptr [ecx + eax*8 - 8] */ 3957 ecx = MEM32(esi + 0x34); /* 0x2B027349: mov ecx, dword ptr [esi + 0x34] */ 3958 /* cmp eax, ecx */ /* 0x2B02734C: cmp eax, ecx */ 3959 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3961 _flag_k = FK_CMP; 3962 RECOMP_BACKEDGE(); 3963 if (CMP_LE(_flag_a, _flag_b)) goto L_2B02733B; /* 0x2B02734E: jle 0x2b02733b */ 3964 L_2B027350: 3965 edx = MEM32(ebp + 0x10); /* 0x2B027350: mov edx, dword ptr [ebp + 0x10] */ 3966 MEM32(esi + 0x30) = edx; /* 0x2B027353: mov dword ptr [esi + 0x30], edx */ 3967 goto L_2B02735E; /* 0x2B027356: jmp 0x2b02735e */ 3968 L_2B027358: 3969 eax = MEM32(ebp + 0x10); /* 0x2B027358: mov eax, dword ptr [ebp + 0x10] */ 3970 MEM32(esi + 0x30) = eax; /* 0x2B02735B: mov dword ptr [esi + 0x30], eax */ 3971 L_2B02735E: 3972 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 3973 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 3974 eax = esi; /* 0x2B027362: mov eax, esi */ 3975 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 3976 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 3977 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 3978 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 3979 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 3980 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 3981 RECOMP_REGS_OUT(); 3982 } 3983 3984 void sub_2B0272ED(void) { 3985 int _fpu_cmp = 0; 3986 uint32_t _cf = 0; 3987 int _df = 1; 3988 uint32_t _flag_k = FK_NONE; 3989 uint32_t _flag_a = 0, _flag_b = 0; 3990 uint32_t _itail_tgt = 0; 3991 RECOMP_REGS_LOCALS 3992 RECOMP_ENTER(0x2B0272EDu); 3993 3994 L_2B0272ED: 3995 /* cmp eax, ebx */ /* 0x2B0272ED: cmp eax, ebx */ 3996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3998 _flag_k = FK_CMP; 3999 if (CMP_AE(_flag_a, _flag_b)) goto L_2B027312; /* 0x2B0272EF: jae 0x2b027312 */ 4000 L_2B0272F1: 4001 eax = MEM32(edi + 0x8); /* 0x2B0272F1: mov eax, dword ptr [edi + 8] */ 4002 ecx = ebp + (-0x18); /* 0x2B0272F4: lea ecx, [ebp - 0x18] */ 4003 PUSH32(esp, ecx); /* 0x2B0272F7: push ecx */ 4004 ecx = edi; /* 0x2B0272F8: mov ecx, edi */ 4005 MEM32(ebp + 0x8) = eax; /* 0x2B0272FA: mov dword ptr [ebp + 8], eax */ 4006 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B0272FD: call 0x2b02bbf0 */ /* not lifted */ 4007 RECOMP_FLAGS_IN(); 4008 edx = MEM32(ebp + 0x8); /* 0x2B027302: mov edx, dword ptr [ebp + 8] */ 4009 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4011 ebx = ebx - eax; /* 0x2B027305: sub ebx, eax */ 4012 _flag_k = FK_CMP; 4013 PUSH32(esp, ebx); /* 0x2B027307: push ebx */ 4014 PUSH32(esp, edx); /* 0x2B027308: push edx */ 4015 ecx = edi; /* 0x2B027309: mov ecx, edi */ 4016 RECOMP_ICALL(0x2B0320B0u); /* 0x2B02730B: call 0x2b0320b0 */ /* not lifted */ 4017 RECOMP_FLAGS_IN(); 4018 goto L_2B02732F; /* 0x2B027310: jmp 0x2b02732f */ 4019 L_2B027312: 4020 ecx = edi; /* 0x2B027312: mov ecx, edi */ 4021 RECOMP_ICALL(0x2B02BBF0u); /* 0x2B027314: call 0x2b02bbf0 */ /* not lifted */ 4022 RECOMP_FLAGS_IN(); 4023 /* cmp ebx, eax */ /* 0x2B027319: cmp ebx, eax */ 4024 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4026 _flag_k = FK_CMP; 4027 if (CMP_AE(_flag_a, _flag_b)) goto L_2B02732F; /* 0x2B02731B: jae 0x2b02732f */ 4028 L_2B02731D: 4029 ecx = MEM32(edi + 0x4); /* 0x2B02731D: mov ecx, dword ptr [edi + 4] */ 4030 eax = MEM32(edi + 0x8); /* 0x2B027320: mov eax, dword ptr [edi + 8] */ 4031 edx = ecx + ebx * 8; /* 0x2B027323: lea edx, [ecx + ebx*8] */ 4032 PUSH32(esp, eax); /* 0x2B027326: push eax */ 4033 PUSH32(esp, edx); /* 0x2B027327: push edx */ 4034 ecx = edi; /* 0x2B027328: mov ecx, edi */ 4035 RECOMP_ICALL(0x2B028CD0u); /* 0x2B02732A: call 0x2b028cd0 */ /* not lifted */ 4036 RECOMP_FLAGS_IN(); 4037 L_2B02732F: 4038 ecx = MEM32(esi + 0x34); /* 0x2B02732F: mov ecx, dword ptr [esi + 0x34] */ 4039 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4040 eax = 0; /* 0x2B027332: xor eax, eax */ 4041 _cf = 0; 4042 _flag_k = FK_TEST; 4043 /* test ecx, ecx */ /* 0x2B027334: test ecx, ecx */ 4044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4045 _cf = 0; 4046 _flag_k = FK_TEST; 4047 MEM32(ebp + 0x8) = eax; /* 0x2B027336: mov dword ptr [ebp + 8], eax */ 4048 if (TEST_S(_flag_a, _flag_b)) goto L_2B027358; /* 0x2B027339: jl 0x2b027358 */ 4049 L_2B02733B: 4050 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B02733B: fild dword ptr [ebp + 8] */ 4051 ecx = MEM32(esi + 0x24); /* 0x2B02733E: mov ecx, dword ptr [esi + 0x24] */ 4052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4053 eax = eax + 1; /* 0x2B027341: inc eax */ 4054 _flag_k = FK_INC; 4055 MEM32(ebp + 0x8) = eax; /* 0x2B027342: mov dword ptr [ebp + 8], eax */ 4056 { double _v = fp_pop(); *(double*)ADDR(ecx + eax * 8 + (-0x8)) = _v; } /* 0x2B027345: fstp qword ptr [ecx + eax*8 - 8] */ 4057 ecx = MEM32(esi + 0x34); /* 0x2B027349: mov ecx, dword ptr [esi + 0x34] */ 4058 /* cmp eax, ecx */ /* 0x2B02734C: cmp eax, ecx */ 4059 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4061 _flag_k = FK_CMP; 4062 RECOMP_BACKEDGE(); 4063 if (CMP_LE(_flag_a, _flag_b)) goto L_2B02733B; /* 0x2B02734E: jle 0x2b02733b */ 4064 L_2B027350: 4065 edx = MEM32(ebp + 0x10); /* 0x2B027350: mov edx, dword ptr [ebp + 0x10] */ 4066 MEM32(esi + 0x30) = edx; /* 0x2B027353: mov dword ptr [esi + 0x30], edx */ 4067 goto L_2B02735E; /* 0x2B027356: jmp 0x2b02735e */ 4068 L_2B027358: 4069 eax = MEM32(ebp + 0x10); /* 0x2B027358: mov eax, dword ptr [ebp + 0x10] */ 4070 MEM32(esi + 0x30) = eax; /* 0x2B02735B: mov dword ptr [esi + 0x30], eax */ 4071 L_2B02735E: 4072 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 4073 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 4074 eax = esi; /* 0x2B027362: mov eax, esi */ 4075 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 4076 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 4077 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 4078 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 4079 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 4080 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 4081 RECOMP_REGS_OUT(); 4082 } 4083 4084 void sub_2B02732F(void) { 4085 int _fpu_cmp = 0; 4086 uint32_t _cf = 0; 4087 int _df = 1; 4088 uint32_t _flag_k = FK_NONE; 4089 uint32_t _flag_a = 0, _flag_b = 0; 4090 uint32_t _itail_tgt = 0; 4091 RECOMP_REGS_LOCALS 4092 RECOMP_ENTER(0x2B02732Fu); 4093 4094 L_2B02732F: 4095 ecx = MEM32(esi + 0x34); /* 0x2B02732F: mov ecx, dword ptr [esi + 0x34] */ 4096 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4097 eax = 0; /* 0x2B027332: xor eax, eax */ 4098 _cf = 0; 4099 _flag_k = FK_TEST; 4100 /* test ecx, ecx */ /* 0x2B027334: test ecx, ecx */ 4101 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4102 _cf = 0; 4103 _flag_k = FK_TEST; 4104 MEM32(ebp + 0x8) = eax; /* 0x2B027336: mov dword ptr [ebp + 8], eax */ 4105 if (TEST_S(_flag_a, _flag_b)) goto L_2B027358; /* 0x2B027339: jl 0x2b027358 */ 4106 L_2B02733B: 4107 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B02733B: fild dword ptr [ebp + 8] */ 4108 ecx = MEM32(esi + 0x24); /* 0x2B02733E: mov ecx, dword ptr [esi + 0x24] */ 4109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4110 eax = eax + 1; /* 0x2B027341: inc eax */ 4111 _flag_k = FK_INC; 4112 MEM32(ebp + 0x8) = eax; /* 0x2B027342: mov dword ptr [ebp + 8], eax */ 4113 { double _v = fp_pop(); *(double*)ADDR(ecx + eax * 8 + (-0x8)) = _v; } /* 0x2B027345: fstp qword ptr [ecx + eax*8 - 8] */ 4114 ecx = MEM32(esi + 0x34); /* 0x2B027349: mov ecx, dword ptr [esi + 0x34] */ 4115 /* cmp eax, ecx */ /* 0x2B02734C: cmp eax, ecx */ 4116 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4118 _flag_k = FK_CMP; 4119 RECOMP_BACKEDGE(); 4120 if (CMP_LE(_flag_a, _flag_b)) goto L_2B02733B; /* 0x2B02734E: jle 0x2b02733b */ 4121 L_2B027350: 4122 edx = MEM32(ebp + 0x10); /* 0x2B027350: mov edx, dword ptr [ebp + 0x10] */ 4123 MEM32(esi + 0x30) = edx; /* 0x2B027353: mov dword ptr [esi + 0x30], edx */ 4124 goto L_2B02735E; /* 0x2B027356: jmp 0x2b02735e */ 4125 L_2B027358: 4126 eax = MEM32(ebp + 0x10); /* 0x2B027358: mov eax, dword ptr [ebp + 0x10] */ 4127 MEM32(esi + 0x30) = eax; /* 0x2B02735B: mov dword ptr [esi + 0x30], eax */ 4128 L_2B02735E: 4129 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 4130 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 4131 eax = esi; /* 0x2B027362: mov eax, esi */ 4132 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 4133 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 4134 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 4135 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 4136 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 4137 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 4138 RECOMP_REGS_OUT(); 4139 } 4140 4141 void sub_2B02735E(void) { 4142 int _fpu_cmp = 0; 4143 uint32_t _cf = 0; 4144 int _df = 1; 4145 uint32_t _flag_k = FK_NONE; 4146 uint32_t _flag_a = 0, _flag_b = 0; 4147 uint32_t _itail_tgt = 0; 4148 RECOMP_REGS_LOCALS 4149 RECOMP_ENTER(0x2B02735Eu); 4150 4151 L_2B02735E: 4152 ecx = MEM32(ebp + (-0xC)); /* 0x2B02735E: mov ecx, dword ptr [ebp - 0xc] */ 4153 edi = POP32_VAL(esp); /* 0x2B027361: pop edi */ 4154 eax = esi; /* 0x2B027362: mov eax, esi */ 4155 esi = POP32_VAL(esp); /* 0x2B027364: pop esi */ 4156 ebx = POP32_VAL(esp); /* 0x2B027365: pop ebx */ 4157 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027366: mov dword ptr fs:[0], ecx */ 4158 esp = ebp; /* 0x2B02736D: mov esp, ebp */ 4159 ebp = POP32_VAL(esp); /* 0x2B02736F: pop ebp */ 4160 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027370: ret 0xc */ 4161 RECOMP_REGS_OUT(); 4162 } 4163 4164 void sub_2B027380(void) { 4165 int _fpu_cmp = 0; 4166 uint32_t _cf = 0; 4167 int _df = 1; 4168 uint32_t _flag_k = FK_NONE; 4169 uint32_t _flag_a = 0, _flag_b = 0; 4170 uint32_t _itail_tgt = 0; 4171 RECOMP_REGS_LOCALS 4172 RECOMP_ENTER(0x2B027380u); 4173 4174 L_2B027380: 4175 PUSH32(esp, ebp); /* 0x2B027380: push ebp */ 4176 ebp = esp; /* 0x2B027381: mov ebp, esp */ 4177 edx = MEM32(ebp + 0x8); /* 0x2B027383: mov edx, dword ptr [ebp + 8] */ 4178 PUSH32(esp, esi); /* 0x2B027386: push esi */ 4179 eax = ecx; /* 0x2B027387: mov eax, ecx */ 4180 esi = MEM32(eax); /* 0x2B027389: mov esi, dword ptr [eax] */ 4181 MEM32(edx) = esi; /* 0x2B02738B: mov dword ptr [edx], esi */ 4182 esi = MEM32(eax + 0x4); /* 0x2B02738D: mov esi, dword ptr [eax + 4] */ 4183 MEM32(edx + 0x4) = esi; /* 0x2B027390: mov dword ptr [edx + 4], esi */ 4184 eax = MEM32(eax + 0x8); /* 0x2B027393: mov eax, dword ptr [eax + 8] */ 4185 MEM32(edx + 0x8) = eax; /* 0x2B027396: mov dword ptr [edx + 8], eax */ 4186 eax = MEM32(ebp + 0xC); /* 0x2B027399: mov eax, dword ptr [ebp + 0xc] */ 4187 edx = ecx + 0xC; /* 0x2B02739C: lea edx, [ecx + 0xc] */ 4188 esi = MEM32(edx); /* 0x2B02739F: mov esi, dword ptr [edx] */ 4189 MEM32(eax) = esi; /* 0x2B0273A1: mov dword ptr [eax], esi */ 4190 esi = MEM32(edx + 0x4); /* 0x2B0273A3: mov esi, dword ptr [edx + 4] */ 4191 MEM32(eax + 0x4) = esi; /* 0x2B0273A6: mov dword ptr [eax + 4], esi */ 4192 esi = MEM32(edx + 0x8); /* 0x2B0273A9: mov esi, dword ptr [edx + 8] */ 4193 MEM32(eax + 0x8) = esi; /* 0x2B0273AC: mov dword ptr [eax + 8], esi */ 4194 edx = MEM32(edx + 0xC); /* 0x2B0273AF: mov edx, dword ptr [edx + 0xc] */ 4195 MEM32(eax + 0xC) = edx; /* 0x2B0273B2: mov dword ptr [eax + 0xc], edx */ 4196 eax = MEM32(ecx + 0x1C); /* 0x2B0273B5: mov eax, dword ptr [ecx + 0x1c] */ 4197 ecx = MEM32(ebp + 0x10); /* 0x2B0273B8: mov ecx, dword ptr [ebp + 0x10] */ 4198 MEM32(ecx) = eax; /* 0x2B0273BB: mov dword ptr [ecx], eax */ 4199 esi = POP32_VAL(esp); /* 0x2B0273BD: pop esi */ 4200 ebp = POP32_VAL(esp); /* 0x2B0273BE: pop ebp */ 4201 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B0273BF: ret 0xc */ 4202 RECOMP_REGS_OUT(); 4203 } 4204 4205 void sub_2B0273D0(void) { 4206 int _fpu_cmp = 0; 4207 uint32_t _cf = 0; 4208 int _df = 1; 4209 uint32_t _flag_k = FK_NONE; 4210 uint32_t _flag_a = 0, _flag_b = 0; 4211 uint32_t _itail_tgt = 0; 4212 RECOMP_REGS_LOCALS 4213 RECOMP_ENTER(0x2B0273D0u); 4214 4215 L_2B0273D0: 4216 PUSH32(esp, ebp); /* 0x2B0273D0: push ebp */ 4217 ebp = esp; /* 0x2B0273D1: mov ebp, esp */ 4218 PUSH32(esp, ecx); /* 0x2B0273D3: push ecx */ 4219 PUSH32(esp, esi); /* 0x2B0273D4: push esi */ 4220 esi = MEM32(ebp + 0x8); /* 0x2B0273D5: mov esi, dword ptr [ebp + 8] */ 4221 PUSH32(esp, edi); /* 0x2B0273D8: push edi */ 4222 edi = ecx; /* 0x2B0273D9: mov edi, ecx */ 4223 PUSH32(esp, esi); /* 0x2B0273DB: push esi */ 4224 RECOMP_ICALL(0x2B02A500u); /* 0x2B0273DC: call 0x2b02a500 */ /* not lifted */ 4225 RECOMP_FLAGS_IN(); 4226 /* cmp eax, MEM32(edi + 0x4) */ /* 0x2B0273E1: cmp eax, dword ptr [edi + 4] */ 4227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 4228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4229 _flag_k = FK_CMP; 4230 MEM32(ebp + 0x8) = eax; /* 0x2B0273E4: mov dword ptr [ebp + 8], eax */ 4231 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02740A; /* 0x2B0273E7: je 0x2b02740a */ 4232 L_2B0273E9: 4233 ecx = MEM32(eax + 0x14); /* 0x2B0273E9: mov ecx, dword ptr [eax + 0x14] */ 4234 eax = MEM32(eax + 0x10); /* 0x2B0273EC: mov eax, dword ptr [eax + 0x10] */ 4235 edx = MEM32(esi + 0x8); /* 0x2B0273EF: mov edx, dword ptr [esi + 8] */ 4236 esi = MEM32(esi + 0x4); /* 0x2B0273F2: mov esi, dword ptr [esi + 4] */ 4237 PUSH32(esp, ecx); /* 0x2B0273F5: push ecx */ 4238 PUSH32(esp, eax); /* 0x2B0273F6: push eax */ 4239 PUSH32(esp, edx); /* 0x2B0273F7: push edx */ 4240 PUSH32(esp, esi); /* 0x2B0273F8: push esi */ 4241 RECOMP_ICALL(0x2B02ABB0u); /* 0x2B0273F9: call 0x2b02abb0 */ /* not lifted */ 4242 RECOMP_FLAGS_IN(); 4243 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4245 esp = esp + 0x10u; /* 0x2B0273FE: add esp, 0x10 */ 4246 _flag_k = FK_ADD; 4247 /* test LO8(eax), LO8(eax) */ /* 0x2B027401: test al, al */ 4248 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4249 _cf = 0; 4250 _flag_k = FK_NARROW(FK_TEST, 24); 4251 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02740A; /* 0x2B027403: jne 0x2b02740a */ 4252 L_2B027405: 4253 eax = ebp + 0x8; /* 0x2B027405: lea eax, [ebp + 8] */ 4254 goto L_2B027413; /* 0x2B027408: jmp 0x2b027413 */ 4255 L_2B02740A: 4256 eax = MEM32(edi + 0x4); /* 0x2B02740A: mov eax, dword ptr [edi + 4] */ 4257 MEM32(ebp + (-0x4)) = eax; /* 0x2B02740D: mov dword ptr [ebp - 4], eax */ 4258 eax = ebp + (-0x4); /* 0x2B027410: lea eax, [ebp - 4] */ 4259 L_2B027413: 4260 eax = MEM32(eax); /* 0x2B027413: mov eax, dword ptr [eax] */ 4261 edi = MEM32(edi + 0x4); /* 0x2B027415: mov edi, dword ptr [edi + 4] */ 4262 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4263 ecx = 0; /* 0x2B027418: xor ecx, ecx */ 4264 _cf = 0; 4265 _flag_k = FK_TEST; 4266 /* cmp eax, edi */ /* 0x2B02741A: cmp eax, edi */ 4267 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4269 _flag_k = FK_CMP; 4270 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B02741C: setne cl */ 4271 edi = POP32_VAL(esp); /* 0x2B02741F: pop edi */ 4272 SET_LO8(eax, LO8(ecx)); /* 0x2B027420: mov al, cl */ 4273 esi = POP32_VAL(esp); /* 0x2B027422: pop esi */ 4274 esp = ebp; /* 0x2B027423: mov esp, ebp */ 4275 ebp = POP32_VAL(esp); /* 0x2B027425: pop ebp */ 4276 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027426: ret 4 */ 4277 RECOMP_REGS_OUT(); 4278 } 4279 4280 void sub_2B027430(void) { 4281 int _fpu_cmp = 0; 4282 uint32_t _cf = 0; 4283 int _df = 1; 4284 uint32_t _flag_k = FK_NONE; 4285 uint32_t _flag_a = 0, _flag_b = 0; 4286 uint32_t _itail_tgt = 0; 4287 RECOMP_REGS_LOCALS 4288 RECOMP_ENTER(0x2B027430u); 4289 4290 L_2B027430: 4291 PUSH32(esp, esi); /* 0x2B027430: push esi */ 4292 esi = ecx; /* 0x2B027431: mov esi, ecx */ 4293 SET_LO8(eax, MEM8(esi + 0x99)); /* 0x2B027433: mov al, byte ptr [esi + 0x99] */ 4294 /* test LO8(eax), LO8(eax) */ /* 0x2B027439: test al, al */ 4295 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4296 _cf = 0; 4297 _flag_k = FK_NARROW(FK_TEST, 24); 4298 if (TEST_Z(_flag_a, _flag_b)) goto L_2B02747C; /* 0x2B02743B: je 0x2b02747c */ 4299 L_2B02743D: 4300 eax = esi + 0x5C; /* 0x2B02743D: lea eax, [esi + 0x5c] */ 4301 PUSH32(esp, eax); /* 0x2B027440: push eax */ 4302 ecx = esi + 0x80; /* 0x2B027441: lea ecx, [esi + 0x80] */ 4303 RECOMP_ICALL(0x2B028880u); /* 0x2B027447: call 0x2b028880 */ /* not lifted */ 4304 RECOMP_FLAGS_IN(); 4305 ecx = MEM32(eax + 0x4); /* 0x2B02744C: mov ecx, dword ptr [eax + 4] */ 4306 /* test ecx, ecx */ /* 0x2B02744F: test ecx, ecx */ 4307 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4308 _cf = 0; 4309 _flag_k = FK_TEST; 4310 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027465; /* 0x2B027451: jne 0x2b027465 */ 4311 L_2B027453: 4312 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4313 eax = 0; /* 0x2B027453: xor eax, eax */ 4314 _cf = 0; 4315 _flag_k = FK_TEST; 4316 PUSH32(esp, eax); /* 0x2B027455: push eax */ 4317 ecx = esi; /* 0x2B027456: mov ecx, esi */ 4318 MEM8(esi + 0x99) = (uint8_t)(LO8(eax)); /* 0x2B027458: mov byte ptr [esi + 0x99], al */ 4319 RECOMP_ICALL(0x2B0264F0u); /* 0x2B02745E: call 0x2b0264f0 */ /* not lifted */ 4320 RECOMP_FLAGS_IN(); 4321 esi = POP32_VAL(esp); /* 0x2B027463: pop esi */ 4322 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B027464: ret */ 4323 L_2B027465: 4324 eax = MEM32(eax + 0x8); /* 0x2B027465: mov eax, dword ptr [eax + 8] */ 4325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4327 eax = eax - ecx; /* 0x2B027468: sub eax, ecx */ 4328 _flag_k = FK_CMP; 4329 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B02746A: sar eax, 4 */ 4330 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4331 eax = (uint32_t)((int32_t)eax >> 4u); 4332 PUSH32(esp, eax); /* 0x2B02746D: push eax */ 4333 ecx = esi; /* 0x2B02746E: mov ecx, esi */ 4334 MEM8(esi + 0x99) = (uint8_t)(0); /* 0x2B027470: mov byte ptr [esi + 0x99], 0 */ 4335 RECOMP_ICALL(0x2B0264F0u); /* 0x2B027477: call 0x2b0264f0 */ /* not lifted */ 4336 RECOMP_FLAGS_IN(); 4337 L_2B02747C: 4338 esi = POP32_VAL(esp); /* 0x2B02747C: pop esi */ 4339 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B02747D: ret */ 4340 RECOMP_REGS_OUT(); 4341 } 4342 4343 void sub_2B027480(void) { 4344 int _fpu_cmp = 0; 4345 uint32_t _cf = 0; 4346 int _df = 1; 4347 uint32_t _flag_k = FK_NONE; 4348 uint32_t _flag_a = 0, _flag_b = 0; 4349 uint32_t _itail_tgt = 0; 4350 RECOMP_REGS_LOCALS 4351 RECOMP_ENTER(0x2B027480u); 4352 4353 L_2B027480: 4354 PUSH32(esp, ebp); /* 0x2B027480: push ebp */ 4355 ebp = esp; /* 0x2B027481: mov ebp, esp */ 4356 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B027483: push -1 */ 4357 PUSH32(esp, 0x2B0ADB7Bu); /* 0x2B027485: push 0x2b0adb7b */ 4358 eax = MEM32(FS_BASE + (0)); /* 0x2B02748A: mov eax, dword ptr fs:[0] */ 4359 PUSH32(esp, eax); /* 0x2B027490: push eax */ 4360 MEM32(FS_BASE + (0)) = esp; /* 0x2B027491: mov dword ptr fs:[0], esp */ 4361 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xD0u); 4362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4363 esp = esp - 0xD0u; /* 0x2B027498: sub esp, 0xd0 */ 4364 _flag_k = FK_CMP; 4365 PUSH32(esp, ebx); /* 0x2B02749E: push ebx */ 4366 PUSH32(esp, esi); /* 0x2B02749F: push esi */ 4367 PUSH32(esp, edi); /* 0x2B0274A0: push edi */ 4368 edi = ecx; /* 0x2B0274A1: mov edi, ecx */ 4369 SET_LO8(eax, MEM8(edi + 0x99)); /* 0x2B0274A3: mov al, byte ptr [edi + 0x99] */ 4370 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4371 ebx = 0; /* 0x2B0274A9: xor ebx, ebx */ 4372 _cf = 0; 4373 _flag_k = FK_TEST; 4374 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0274AB: cmp al, bl */ 4375 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4377 _flag_k = FK_NARROW(FK_CMP, 24); 4378 MEM32(ebp + (-0x14)) = edi; /* 0x2B0274AD: mov dword ptr [ebp - 0x14], edi */ 4379 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027C5F; /* 0x2B0274B0: je 0x2b027c5f */ 4380 L_2B0274B6: 4381 eax = edi + 0x5C; /* 0x2B0274B6: lea eax, [edi + 0x5c] */ 4382 PUSH32(esp, eax); /* 0x2B0274B9: push eax */ 4383 ecx = edi + 0x80; /* 0x2B0274BA: lea ecx, [edi + 0x80] */ 4384 RECOMP_ICALL(0x2B028880u); /* 0x2B0274C0: call 0x2b028880 */ /* not lifted */ 4385 RECOMP_FLAGS_IN(); 4386 esi = eax; /* 0x2B0274C5: mov esi, eax */ 4387 fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x2B0274C7: fld dword ptr [esi + 0x10] */ 4388 _st[0] = (double)*(float*)ADDR(ebp + 0x8) / _st[0]; /* 0x2B0274CA: fdivr dword ptr [ebp + 8] */ 4389 _st[0] += (double)*(float*)ADDR(edi + 0xAC); /* 0x2B0274CD: fadd dword ptr [edi + 0xac] */ 4390 { float _v = (float)_st[0]; *(float*)ADDR(edi + 0xAC) = _v; } /* 0x2B0274D3: fst dword ptr [edi + 0xac] */ 4391 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x2B0B63C0)); /* 0x2B0274D9: fcomp qword ptr [0x2b0b63c0] */ 4392 fp_pop(); 4393 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0274DF: fnstsw ax */ 4394 /* test HI8(eax), 1 */ /* 0x2B0274E1: test ah, 1 */ 4395 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4396 _cf = 0; 4397 _flag_k = FK_NARROW(FK_TEST, 24); 4398 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0274F0; /* 0x2B0274E4: jne 0x2b0274f0 */ 4399 L_2B0274E6: 4400 MEM32(edi + 0xAC) = 0x3F800000u; /* 0x2B0274E6: mov dword ptr [edi + 0xac], 0x3f800000 */ 4401 L_2B0274F0: 4402 fp_push(*(float*)&MEM32(edi + 0xAC)); /* 0x2B0274F0: fld dword ptr [edi + 0xac] */ 4403 MEM32(ebp + (-0x48)) = 0; /* 0x2B0274F6: mov dword ptr [ebp - 0x48], 0 */ 4404 _st[0] *= *(double*)ADDR(0x2B0B6570); /* 0x2B0274FD: fmul qword ptr [0x2b0b6570] */ 4405 MEM32(ebp + (-0x60)) = 0; /* 0x2B027503: mov dword ptr [ebp - 0x60], 0 */ 4406 MEM32(ebp + (-0x5C)) = 0; /* 0x2B02750A: mov dword ptr [ebp - 0x5c], 0 */ 4407 MEM32(ebp + (-0x58)) = 0; /* 0x2B027511: mov dword ptr [ebp - 0x58], 0 */ 4408 _st[0] -= *(double*)ADDR(0x2B0B6570); /* 0x2B027518: fsub qword ptr [0x2b0b6570] */ 4409 MEM32(ebp + (-0x7C)) = 0; /* 0x2B02751E: mov dword ptr [ebp - 0x7c], 0 */ 4410 MEM32(ebp + (-0x78)) = 0; /* 0x2B027525: mov dword ptr [ebp - 0x78], 0 */ 4411 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2B02752C: fcos */ 4412 MEM32(ebp + (-0x74)) = 0; /* 0x2B02752E: mov dword ptr [ebp - 0x74], 0 */ 4413 MEM32(ebp + (-0x70)) = 0x3F800000u; /* 0x2B027535: mov dword ptr [ebp - 0x70], 0x3f800000 */ 4414 MEM32(ebp + (-0x8C)) = 0; /* 0x2B02753C: mov dword ptr [ebp - 0x8c], 0 */ 4415 MEM32(ebp + (-0x88)) = 0; /* 0x2B027546: mov dword ptr [ebp - 0x88], 0 */ 4416 MEM32(ebp + (-0x84)) = 0; /* 0x2B027550: mov dword ptr [ebp - 0x84], 0 */ 4417 MEM32(ebp + (-0x80)) = 0x3F800000u; /* 0x2B02755A: mov dword ptr [ebp - 0x80], 0x3f800000 */ 4418 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4419 edi = 0; /* 0x2B027561: xor edi, edi */ 4420 _cf = 0; 4421 _flag_k = FK_TEST; 4422 _st[0] += *(double*)ADDR(0x2B0B63C0); /* 0x2B027563: fadd qword ptr [0x2b0b63c0] */ 4423 _st[0] *= *(double*)ADDR(0x2B0B64D0); /* 0x2B027569: fmul qword ptr [0x2b0b64d0] */ 4424 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x2B02756F: fstp dword ptr [ebp - 0x44] */ 4425 L_2B027572: 4426 ecx = MEM32(esi + 0x4); /* 0x2B027572: mov ecx, dword ptr [esi + 4] */ 4427 /* cmp ecx, ebx */ /* 0x2B027575: cmp ecx, ebx */ 4428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4430 _flag_k = FK_CMP; 4431 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02757D; /* 0x2B027577: jne 0x2b02757d */ 4432 L_2B027579: 4433 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4434 eax = 0; /* 0x2B027579: xor eax, eax */ 4435 _cf = 0; 4436 _flag_k = FK_TEST; 4437 goto L_2B027585; /* 0x2B02757B: jmp 0x2b027585 */ 4438 L_2B02757D: 4439 eax = MEM32(esi + 0x8); /* 0x2B02757D: mov eax, dword ptr [esi + 8] */ 4440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4442 eax = eax - ecx; /* 0x2B027580: sub eax, ecx */ 4443 _flag_k = FK_CMP; 4444 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B027582: sar eax, 4 */ 4445 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4446 eax = (uint32_t)((int32_t)eax >> 4u); 4447 L_2B027585: 4448 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4449 eax = eax - 1; /* 0x2B027585: dec eax */ 4450 _flag_k = FK_DEC; 4451 /* cmp edi, eax */ /* 0x2B027586: cmp edi, eax */ 4452 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4454 _flag_k = FK_CMP; 4455 if (CMP_GE(_flag_a, _flag_b)) goto L_2B0276C9; /* 0x2B027588: jge 0x2b0276c9 */ 4456 L_2B02758E: 4457 PUSH32(esp, edi); /* 0x2B02758E: push edi */ 4458 ecx = ebp + (-0x24); /* 0x2B02758F: lea ecx, [ebp - 0x24] */ 4459 PUSH32(esp, ecx); /* 0x2B027592: push ecx */ 4460 ecx = esi; /* 0x2B027593: mov ecx, esi */ 4461 RECOMP_ICALL(0x2B0224C0u); /* 0x2B027595: call 0x2b0224c0 */ /* not lifted */ 4462 RECOMP_FLAGS_IN(); 4463 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4464 edi = edi + 1; /* 0x2B02759A: inc edi */ 4465 _flag_k = FK_INC; 4466 PUSH32(esp, edi); /* 0x2B02759B: push edi */ 4467 edx = ebp + (-0x34); /* 0x2B02759C: lea edx, [ebp - 0x34] */ 4468 PUSH32(esp, edx); /* 0x2B02759F: push edx */ 4469 ecx = esi; /* 0x2B0275A0: mov ecx, esi */ 4470 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0275A2: mov dword ptr [ebp - 4], ebx */ 4471 RECOMP_ICALL(0x2B0224C0u); /* 0x2B0275A5: call 0x2b0224c0 */ /* not lifted */ 4472 RECOMP_FLAGS_IN(); 4473 eax = MEM32(ebp + (-0x14)); /* 0x2B0275AA: mov eax, dword ptr [ebp - 0x14] */ 4474 edx = ebp + (-0x24); /* 0x2B0275AD: lea edx, [ebp - 0x24] */ 4475 ecx = eax + 0x6C; /* 0x2B0275B0: lea ecx, [eax + 0x6c] */ 4476 PUSH32(esp, edx); /* 0x2B0275B3: push edx */ 4477 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B0275B4: mov byte ptr [ebp - 4], 1 */ 4478 RECOMP_ICALL(0x2B028450u); /* 0x2B0275B8: call 0x2b028450 */ /* not lifted */ 4479 RECOMP_FLAGS_IN(); 4480 ecx = eax; /* 0x2B0275BD: mov ecx, eax */ 4481 edx = MEM32(ecx); /* 0x2B0275BF: mov edx, dword ptr [ecx] */ 4482 MEM32(ebp + (-0x40)) = edx; /* 0x2B0275C1: mov dword ptr [ebp - 0x40], edx */ 4483 edx = MEM32(ecx + 0x4); /* 0x2B0275C4: mov edx, dword ptr [ecx + 4] */ 4484 ecx = MEM32(ecx + 0x8); /* 0x2B0275C7: mov ecx, dword ptr [ecx + 8] */ 4485 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 4486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4487 eax = eax + 0xCu; /* 0x2B0275CA: add eax, 0xc */ 4488 _flag_k = FK_ADD; 4489 MEM32(ebp + (-0x3C)) = edx; /* 0x2B0275CD: mov dword ptr [ebp - 0x3c], edx */ 4490 edx = MEM32(eax); /* 0x2B0275D0: mov edx, dword ptr [eax] */ 4491 MEM32(ebp + (-0x7C)) = edx; /* 0x2B0275D2: mov dword ptr [ebp - 0x7c], edx */ 4492 MEM32(ebp + (-0x38)) = ecx; /* 0x2B0275D5: mov dword ptr [ebp - 0x38], ecx */ 4493 ecx = MEM32(eax + 0x4); /* 0x2B0275D8: mov ecx, dword ptr [eax + 4] */ 4494 MEM32(ebp + (-0x78)) = ecx; /* 0x2B0275DB: mov dword ptr [ebp - 0x78], ecx */ 4495 edx = MEM32(eax + 0x8); /* 0x2B0275DE: mov edx, dword ptr [eax + 8] */ 4496 MEM32(ebp + (-0x74)) = edx; /* 0x2B0275E1: mov dword ptr [ebp - 0x74], edx */ 4497 edx = MEM32(ebp + (-0x14)); /* 0x2B0275E4: mov edx, dword ptr [ebp - 0x14] */ 4498 eax = MEM32(eax + 0xC); /* 0x2B0275E7: mov eax, dword ptr [eax + 0xc] */ 4499 ecx = ebp + (-0x34); /* 0x2B0275EA: lea ecx, [ebp - 0x34] */ 4500 PUSH32(esp, ecx); /* 0x2B0275ED: push ecx */ 4501 ecx = edx + 0x6C; /* 0x2B0275EE: lea ecx, [edx + 0x6c] */ 4502 MEM32(ebp + (-0x70)) = eax; /* 0x2B0275F1: mov dword ptr [ebp - 0x70], eax */ 4503 RECOMP_ICALL(0x2B028450u); /* 0x2B0275F4: call 0x2b028450 */ /* not lifted */ 4504 RECOMP_FLAGS_IN(); 4505 ecx = eax; /* 0x2B0275F9: mov ecx, eax */ 4506 edx = MEM32(ecx); /* 0x2B0275FB: mov edx, dword ptr [ecx] */ 4507 MEM32(ebp + (-0x60)) = edx; /* 0x2B0275FD: mov dword ptr [ebp - 0x60], edx */ 4508 edx = MEM32(ecx + 0x4); /* 0x2B027600: mov edx, dword ptr [ecx + 4] */ 4509 MEM32(ebp + (-0x5C)) = edx; /* 0x2B027603: mov dword ptr [ebp - 0x5c], edx */ 4510 ecx = MEM32(ecx + 0x8); /* 0x2B027606: mov ecx, dword ptr [ecx + 8] */ 4511 MEM32(ebp + (-0x58)) = ecx; /* 0x2B027609: mov dword ptr [ebp - 0x58], ecx */ 4512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 4513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4514 eax = eax + 0xCu; /* 0x2B02760C: add eax, 0xc */ 4515 _flag_k = FK_ADD; 4516 edx = MEM32(eax); /* 0x2B02760F: mov edx, dword ptr [eax] */ 4517 MEM32(ebp + (-0x8C)) = edx; /* 0x2B027611: mov dword ptr [ebp - 0x8c], edx */ 4518 ecx = MEM32(eax + 0x4); /* 0x2B027617: mov ecx, dword ptr [eax + 4] */ 4519 MEM32(ebp + (-0x88)) = ecx; /* 0x2B02761A: mov dword ptr [ebp - 0x88], ecx */ 4520 edx = MEM32(eax + 0x8); /* 0x2B027620: mov edx, dword ptr [eax + 8] */ 4521 ecx = MEM32(ebp + (-0x40)); /* 0x2B027623: mov ecx, dword ptr [ebp - 0x40] */ 4522 MEM32(ebp + (-0x84)) = edx; /* 0x2B027626: mov dword ptr [ebp - 0x84], edx */ 4523 eax = MEM32(eax + 0xC); /* 0x2B02762C: mov eax, dword ptr [eax + 0xc] */ 4524 edx = MEM32(ebp + (-0x3C)); /* 0x2B02762F: mov edx, dword ptr [ebp - 0x3c] */ 4525 MEM32(ebp + (-0x6C)) = ecx; /* 0x2B027632: mov dword ptr [ebp - 0x6c], ecx */ 4526 ecx = ebp + (-0x60); /* 0x2B027635: lea ecx, [ebp - 0x60] */ 4527 MEM32(ebp + (-0x80)) = eax; /* 0x2B027638: mov dword ptr [ebp - 0x80], eax */ 4528 eax = MEM32(ebp + (-0x38)); /* 0x2B02763B: mov eax, dword ptr [ebp - 0x38] */ 4529 PUSH32(esp, ecx); /* 0x2B02763E: push ecx */ 4530 ecx = ebp + (-0x6C); /* 0x2B02763F: lea ecx, [ebp - 0x6c] */ 4531 MEM32(ebp + (-0x68)) = edx; /* 0x2B027642: mov dword ptr [ebp - 0x68], edx */ 4532 MEM32(ebp + (-0x64)) = eax; /* 0x2B027645: mov dword ptr [ebp - 0x64], eax */ 4533 RECOMP_ICALL(MEM32(0x2B0B60E8)); /* 0x2B027648: call dword ptr [0x2b0b60e8] */ 4534 RECOMP_FLAGS_IN(); 4535 edx = MEM32(eax); /* 0x2B02764E: mov edx, dword ptr [eax] */ 4536 MEM32(ebp + (-0x54)) = edx; /* 0x2B027650: mov dword ptr [ebp - 0x54], edx */ 4537 ecx = MEM32(eax + 0x4); /* 0x2B027653: mov ecx, dword ptr [eax + 4] */ 4538 MEM32(ebp + (-0x50)) = ecx; /* 0x2B027656: mov dword ptr [ebp - 0x50], ecx */ 4539 edx = MEM32(eax + 0x8); /* 0x2B027659: mov edx, dword ptr [eax + 8] */ 4540 ecx = ebp + (-0x54); /* 0x2B02765C: lea ecx, [ebp - 0x54] */ 4541 MEM32(ebp + (-0x4C)) = edx; /* 0x2B02765F: mov dword ptr [ebp - 0x4c], edx */ 4542 RECOMP_ICALL(MEM32(0x2B0B60F4)); /* 0x2B027662: call dword ptr [0x2b0b60f4] */ 4543 RECOMP_FLAGS_IN(); 4544 _st[0] = sqrt(_st[0]); /* 0x2B027668: fsqrt */ 4545 eax = MEM32(ebp + (-0x2C)); /* 0x2B02766A: mov eax, dword ptr [ebp - 0x2c] */ 4546 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B02766D: mov byte ptr [ebp - 4], bl */ 4547 PUSH32(esp, eax); /* 0x2B027670: push eax */ 4548 _st[0] += (double)*(float*)ADDR(ebp + (-0x48)); /* 0x2B027671: fadd dword ptr [ebp - 0x48] */ 4549 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x2B027674: fstp dword ptr [ebp - 0x48] */ 4550 ecx = MEM32(ebp + (-0x30)); /* 0x2B027677: mov ecx, dword ptr [ebp - 0x30] */ 4551 PUSH32(esp, ecx); /* 0x2B02767A: push ecx */ 4552 ecx = ebp + (-0x34); /* 0x2B02767B: lea ecx, [ebp - 0x34] */ 4553 RECOMP_ICALL(0x2B0292C0u); /* 0x2B02767E: call 0x2b0292c0 */ /* not lifted */ 4554 RECOMP_FLAGS_IN(); 4555 edx = MEM32(ebp + (-0x30)); /* 0x2B027683: mov edx, dword ptr [ebp - 0x30] */ 4556 PUSH32(esp, edx); /* 0x2B027686: push edx */ 4557 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027687: call 0x2b0ab1ba */ /* not lifted */ 4558 RECOMP_FLAGS_IN(); 4559 eax = MEM32(ebp + (-0x1C)); /* 0x2B02768C: mov eax, dword ptr [ebp - 0x1c] */ 4560 ecx = MEM32(ebp + (-0x20)); /* 0x2B02768F: mov ecx, dword ptr [ebp - 0x20] */ 4561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4563 esp = esp + 4; /* 0x2B027692: add esp, 4 */ 4564 _flag_k = FK_ADD; 4565 PUSH32(esp, eax); /* 0x2B027695: push eax */ 4566 PUSH32(esp, ecx); /* 0x2B027696: push ecx */ 4567 ecx = ebp + (-0x24); /* 0x2B027697: lea ecx, [ebp - 0x24] */ 4568 MEM32(ebp + (-0x30)) = ebx; /* 0x2B02769A: mov dword ptr [ebp - 0x30], ebx */ 4569 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B02769D: mov dword ptr [ebp - 0x2c], ebx */ 4570 MEM32(ebp + (-0x28)) = ebx; /* 0x2B0276A0: mov dword ptr [ebp - 0x28], ebx */ 4571 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0276A3: mov dword ptr [ebp - 4], 0xffffffff */ 4572 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0276AA: call 0x2b0292c0 */ /* not lifted */ 4573 RECOMP_FLAGS_IN(); 4574 edx = MEM32(ebp + (-0x20)); /* 0x2B0276AF: mov edx, dword ptr [ebp - 0x20] */ 4575 PUSH32(esp, edx); /* 0x2B0276B2: push edx */ 4576 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0276B3: call 0x2b0ab1ba */ /* not lifted */ 4577 RECOMP_FLAGS_IN(); 4578 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4579 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4580 esp = esp + 4; /* 0x2B0276B8: add esp, 4 */ 4581 _flag_k = FK_ADD; 4582 MEM32(ebp + (-0x20)) = ebx; /* 0x2B0276BB: mov dword ptr [ebp - 0x20], ebx */ 4583 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B0276BE: mov dword ptr [ebp - 0x1c], ebx */ 4584 MEM32(ebp + (-0x18)) = ebx; /* 0x2B0276C1: mov dword ptr [ebp - 0x18], ebx */ 4585 RECOMP_BACKEDGE(); 4586 goto L_2B027572; /* 0x2B0276C4: jmp 0x2b027572 */ 4587 L_2B0276C9: 4588 edi = MEM32(ebp + (-0x14)); /* 0x2B0276C9: mov edi, dword ptr [ebp - 0x14] */ 4589 eax = edi + 0x28; /* 0x2B0276CC: lea eax, [edi + 0x28] */ 4590 ecx = MEM32(eax); /* 0x2B0276CF: mov ecx, dword ptr [eax] */ 4591 edx = MEM32(eax + 0x4); /* 0x2B0276D1: mov edx, dword ptr [eax + 4] */ 4592 eax = MEM32(eax + 0x8); /* 0x2B0276D4: mov eax, dword ptr [eax + 8] */ 4593 MEM32(ebp + (-0xC4)) = eax; /* 0x2B0276D7: mov dword ptr [ebp - 0xc4], eax */ 4594 MEM32(ebp + (-0xCC)) = ecx; /* 0x2B0276DD: mov dword ptr [ebp - 0xcc], ecx */ 4595 eax = edi + 0x34; /* 0x2B0276E3: lea eax, [edi + 0x34] */ 4596 ecx = MEM32(eax); /* 0x2B0276E6: mov ecx, dword ptr [eax] */ 4597 MEM32(ebp + (-0xC8)) = edx; /* 0x2B0276E8: mov dword ptr [ebp - 0xc8], edx */ 4598 edx = MEM32(eax + 0x4); /* 0x2B0276EE: mov edx, dword ptr [eax + 4] */ 4599 MEM32(ebp + (-0xDC)) = ecx; /* 0x2B0276F1: mov dword ptr [ebp - 0xdc], ecx */ 4600 ecx = MEM32(eax + 0x8); /* 0x2B0276F7: mov ecx, dword ptr [eax + 8] */ 4601 MEM32(ebp + (-0xD4)) = ecx; /* 0x2B0276FA: mov dword ptr [ebp - 0xd4], ecx */ 4602 MEM32(ebp + (-0xD8)) = edx; /* 0x2B027700: mov dword ptr [ebp - 0xd8], edx */ 4603 edx = MEM32(eax + 0xC); /* 0x2B027706: mov edx, dword ptr [eax + 0xc] */ 4604 eax = MEM32(edi + 0x44); /* 0x2B027709: mov eax, dword ptr [edi + 0x44] */ 4605 PUSH32(esp, ebx); /* 0x2B02770C: push ebx */ 4606 ecx = ebp + (-0xC0); /* 0x2B02770D: lea ecx, [ebp - 0xc0] */ 4607 PUSH32(esp, ecx); /* 0x2B027713: push ecx */ 4608 ecx = esi; /* 0x2B027714: mov ecx, esi */ 4609 MEM32(ebp + (-0xD0)) = edx; /* 0x2B027716: mov dword ptr [ebp - 0xd0], edx */ 4610 MEM32(ebp + (-0xA4)) = eax; /* 0x2B02771C: mov dword ptr [ebp - 0xa4], eax */ 4611 RECOMP_ICALL(0x2B0224C0u); /* 0x2B027722: call 0x2b0224c0 */ /* not lifted */ 4612 RECOMP_FLAGS_IN(); 4613 edx = ebp + (-0xC0); /* 0x2B027727: lea edx, [ebp - 0xc0] */ 4614 ecx = edi + 0x6C; /* 0x2B02772D: lea ecx, [edi + 0x6c] */ 4615 PUSH32(esp, edx); /* 0x2B027730: push edx */ 4616 MEM32(ebp + (-0x4)) = 2; /* 0x2B027731: mov dword ptr [ebp - 4], 2 */ 4617 RECOMP_ICALL(0x2B028450u); /* 0x2B027738: call 0x2b028450 */ /* not lifted */ 4618 RECOMP_FLAGS_IN(); 4619 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x2B02773D: fld dword ptr [ebp - 0x48] */ 4620 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B027740: fcomp dword ptr [0x2b0b61b8] */ 4621 fp_pop(); 4622 ecx = eax; /* 0x2B027746: mov ecx, eax */ 4623 edx = MEM32(ecx); /* 0x2B027748: mov edx, dword ptr [ecx] */ 4624 MEM32(ebp + (-0x10)) = eax; /* 0x2B02774A: mov dword ptr [ebp - 0x10], eax */ 4625 eax = edi + 0x28; /* 0x2B02774D: lea eax, [edi + 0x28] */ 4626 MEM32(eax) = edx; /* 0x2B027750: mov dword ptr [eax], edx */ 4627 edx = MEM32(ecx + 0x4); /* 0x2B027752: mov edx, dword ptr [ecx + 4] */ 4628 MEM32(eax + 0x4) = edx; /* 0x2B027755: mov dword ptr [eax + 4], edx */ 4629 ecx = MEM32(ecx + 0x8); /* 0x2B027758: mov ecx, dword ptr [ecx + 8] */ 4630 edx = MEM32(ebp + (-0x10)); /* 0x2B02775B: mov edx, dword ptr [ebp - 0x10] */ 4631 MEM32(eax + 0x8) = ecx; /* 0x2B02775E: mov dword ptr [eax + 8], ecx */ 4632 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 4633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4634 edx = edx + 0xCu; /* 0x2B027761: add edx, 0xc */ 4635 _flag_k = FK_ADD; 4636 ecx = MEM32(edx); /* 0x2B027764: mov ecx, dword ptr [edx] */ 4637 eax = edi + 0x34; /* 0x2B027766: lea eax, [edi + 0x34] */ 4638 MEM32(eax) = ecx; /* 0x2B027769: mov dword ptr [eax], ecx */ 4639 ecx = MEM32(edx + 0x4); /* 0x2B02776B: mov ecx, dword ptr [edx + 4] */ 4640 MEM32(eax + 0x4) = ecx; /* 0x2B02776E: mov dword ptr [eax + 4], ecx */ 4641 ecx = MEM32(edx + 0x8); /* 0x2B027771: mov ecx, dword ptr [edx + 8] */ 4642 MEM32(eax + 0x8) = ecx; /* 0x2B027774: mov dword ptr [eax + 8], ecx */ 4643 edx = MEM32(edx + 0xC); /* 0x2B027777: mov edx, dword ptr [edx + 0xc] */ 4644 MEM32(eax + 0xC) = edx; /* 0x2B02777A: mov dword ptr [eax + 0xc], edx */ 4645 eax = MEM32(ebp + (-0x10)); /* 0x2B02777D: mov eax, dword ptr [ebp - 0x10] */ 4646 ecx = MEM32(eax + 0x1C); /* 0x2B027780: mov ecx, dword ptr [eax + 0x1c] */ 4647 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027783: fnstsw ax */ 4648 MEM32(edi + 0x44) = ecx; /* 0x2B027785: mov dword ptr [edi + 0x44], ecx */ 4649 /* test HI8(eax), 0x41u */ /* 0x2B027788: test ah, 0x41 */ 4650 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4651 _cf = 0; 4652 _flag_k = FK_NARROW(FK_TEST, 24); 4653 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027B31; /* 0x2B02778B: jne 0x2b027b31 */ 4654 L_2B027791: 4655 ecx = MEM32(esi + 0x4); /* 0x2B027791: mov ecx, dword ptr [esi + 4] */ 4656 /* cmp ecx, ebx */ /* 0x2B027794: cmp ecx, ebx */ 4657 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4659 _flag_k = FK_CMP; 4660 MEM32(ebp + (-0x10)) = 0; /* 0x2B027796: mov dword ptr [ebp - 0x10], 0 */ 4661 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0277A7; /* 0x2B02779D: jne 0x2b0277a7 */ 4662 L_2B02779F: 4663 MEM32(ebp + (-0x9C)) = ebx; /* 0x2B02779F: mov dword ptr [ebp - 0x9c], ebx */ 4664 goto L_2B0277B5; /* 0x2B0277A5: jmp 0x2b0277b5 */ 4665 L_2B0277A7: 4666 eax = MEM32(esi + 0x8); /* 0x2B0277A7: mov eax, dword ptr [esi + 8] */ 4667 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4669 eax = eax - ecx; /* 0x2B0277AA: sub eax, ecx */ 4670 _flag_k = FK_CMP; 4671 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0277AC: sar eax, 4 */ 4672 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4673 eax = (uint32_t)((int32_t)eax >> 4u); 4674 MEM32(ebp + (-0x9C)) = eax; /* 0x2B0277AF: mov dword ptr [ebp - 0x9c], eax */ 4675 L_2B0277B5: 4676 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4677 edi = 0; /* 0x2B0277B5: xor edi, edi */ 4678 _cf = 0; 4679 _flag_k = FK_TEST; 4680 L_2B0277B7: 4681 ecx = MEM32(esi + 0x4); /* 0x2B0277B7: mov ecx, dword ptr [esi + 4] */ 4682 /* cmp ecx, ebx */ /* 0x2B0277BA: cmp ecx, ebx */ 4683 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4685 _flag_k = FK_CMP; 4686 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0277C2; /* 0x2B0277BC: jne 0x2b0277c2 */ 4687 L_2B0277BE: 4688 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4689 eax = 0; /* 0x2B0277BE: xor eax, eax */ 4690 _cf = 0; 4691 _flag_k = FK_TEST; 4692 goto L_2B0277CA; /* 0x2B0277C0: jmp 0x2b0277ca */ 4693 L_2B0277C2: 4694 eax = MEM32(esi + 0x8); /* 0x2B0277C2: mov eax, dword ptr [esi + 8] */ 4695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4697 eax = eax - ecx; /* 0x2B0277C5: sub eax, ecx */ 4698 _flag_k = FK_CMP; 4699 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0277C7: sar eax, 4 */ 4700 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4701 eax = (uint32_t)((int32_t)eax >> 4u); 4702 L_2B0277CA: 4703 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4704 eax = eax - 1; /* 0x2B0277CA: dec eax */ 4705 _flag_k = FK_DEC; 4706 /* cmp edi, eax */ /* 0x2B0277CB: cmp edi, eax */ 4707 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4709 _flag_k = FK_CMP; 4710 if (CMP_GE(_flag_a, _flag_b)) goto L_2B027B2E; /* 0x2B0277CD: jge 0x2b027b2e */ 4711 L_2B0277D3: 4712 PUSH32(esp, edi); /* 0x2B0277D3: push edi */ 4713 edx = ebp + (-0x34); /* 0x2B0277D4: lea edx, [ebp - 0x34] */ 4714 PUSH32(esp, edx); /* 0x2B0277D7: push edx */ 4715 ecx = esi; /* 0x2B0277D8: mov ecx, esi */ 4716 RECOMP_ICALL(0x2B0224C0u); /* 0x2B0277DA: call 0x2b0224c0 */ /* not lifted */ 4717 RECOMP_FLAGS_IN(); 4718 eax = edi + 0x1; /* 0x2B0277DF: lea eax, [edi + 1] */ 4719 PUSH32(esp, eax); /* 0x2B0277E2: push eax */ 4720 MEM32(ebp + (-0xA8)) = eax; /* 0x2B0277E3: mov dword ptr [ebp - 0xa8], eax */ 4721 eax = ebp + (-0x24); /* 0x2B0277E9: lea eax, [ebp - 0x24] */ 4722 PUSH32(esp, eax); /* 0x2B0277EC: push eax */ 4723 ecx = esi; /* 0x2B0277ED: mov ecx, esi */ 4724 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B0277EF: mov byte ptr [ebp - 4], 3 */ 4725 RECOMP_ICALL(0x2B0224C0u); /* 0x2B0277F3: call 0x2b0224c0 */ /* not lifted */ 4726 RECOMP_FLAGS_IN(); 4727 edx = MEM32(ebp + (-0x14)); /* 0x2B0277F8: mov edx, dword ptr [ebp - 0x14] */ 4728 ecx = ebp + (-0x34); /* 0x2B0277FB: lea ecx, [ebp - 0x34] */ 4729 PUSH32(esp, ecx); /* 0x2B0277FE: push ecx */ 4730 ecx = edx + 0x6C; /* 0x2B0277FF: lea ecx, [edx + 0x6c] */ 4731 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B027802: mov byte ptr [ebp - 4], 4 */ 4732 RECOMP_ICALL(0x2B028450u); /* 0x2B027806: call 0x2b028450 */ /* not lifted */ 4733 RECOMP_FLAGS_IN(); 4734 ecx = eax; /* 0x2B02780B: mov ecx, eax */ 4735 edx = MEM32(ecx); /* 0x2B02780D: mov edx, dword ptr [ecx] */ 4736 MEM32(ebp + (-0x40)) = edx; /* 0x2B02780F: mov dword ptr [ebp - 0x40], edx */ 4737 edx = MEM32(ecx + 0x4); /* 0x2B027812: mov edx, dword ptr [ecx + 4] */ 4738 ecx = MEM32(ecx + 0x8); /* 0x2B027815: mov ecx, dword ptr [ecx + 8] */ 4739 MEM32(ebp + (-0x3C)) = edx; /* 0x2B027818: mov dword ptr [ebp - 0x3c], edx */ 4740 MEM32(ebp + (-0x38)) = ecx; /* 0x2B02781B: mov dword ptr [ebp - 0x38], ecx */ 4741 edx = eax + 0xC; /* 0x2B02781E: lea edx, [eax + 0xc] */ 4742 ecx = MEM32(edx); /* 0x2B027821: mov ecx, dword ptr [edx] */ 4743 MEM32(ebp + (-0x7C)) = ecx; /* 0x2B027823: mov dword ptr [ebp - 0x7c], ecx */ 4744 ecx = MEM32(edx + 0x4); /* 0x2B027826: mov ecx, dword ptr [edx + 4] */ 4745 MEM32(ebp + (-0x78)) = ecx; /* 0x2B027829: mov dword ptr [ebp - 0x78], ecx */ 4746 ecx = MEM32(edx + 0x8); /* 0x2B02782C: mov ecx, dword ptr [edx + 8] */ 4747 MEM32(ebp + (-0x74)) = ecx; /* 0x2B02782F: mov dword ptr [ebp - 0x74], ecx */ 4748 edx = MEM32(edx + 0xC); /* 0x2B027832: mov edx, dword ptr [edx + 0xc] */ 4749 MEM32(ebp + (-0x70)) = edx; /* 0x2B027835: mov dword ptr [ebp - 0x70], edx */ 4750 edx = MEM32(ebp + (-0x14)); /* 0x2B027838: mov edx, dword ptr [ebp - 0x14] */ 4751 eax = MEM32(eax + 0x1C); /* 0x2B02783B: mov eax, dword ptr [eax + 0x1c] */ 4752 ecx = ebp + (-0x24); /* 0x2B02783E: lea ecx, [ebp - 0x24] */ 4753 PUSH32(esp, ecx); /* 0x2B027841: push ecx */ 4754 ecx = edx + 0x6C; /* 0x2B027842: lea ecx, [edx + 0x6c] */ 4755 MEM32(ebp + (-0xA0)) = eax; /* 0x2B027845: mov dword ptr [ebp - 0xa0], eax */ 4756 RECOMP_ICALL(0x2B028450u); /* 0x2B02784B: call 0x2b028450 */ /* not lifted */ 4757 RECOMP_FLAGS_IN(); 4758 ecx = eax; /* 0x2B027850: mov ecx, eax */ 4759 edx = MEM32(ecx); /* 0x2B027852: mov edx, dword ptr [ecx] */ 4760 MEM32(ebp + (-0x60)) = edx; /* 0x2B027854: mov dword ptr [ebp - 0x60], edx */ 4761 edx = MEM32(ecx + 0x4); /* 0x2B027857: mov edx, dword ptr [ecx + 4] */ 4762 MEM32(ebp + (-0x5C)) = edx; /* 0x2B02785A: mov dword ptr [ebp - 0x5c], edx */ 4763 ecx = MEM32(ecx + 0x8); /* 0x2B02785D: mov ecx, dword ptr [ecx + 8] */ 4764 MEM32(ebp + (-0x58)) = ecx; /* 0x2B027860: mov dword ptr [ebp - 0x58], ecx */ 4765 edx = eax + 0xC; /* 0x2B027863: lea edx, [eax + 0xc] */ 4766 ecx = MEM32(edx); /* 0x2B027866: mov ecx, dword ptr [edx] */ 4767 MEM32(ebp + (-0x8C)) = ecx; /* 0x2B027868: mov dword ptr [ebp - 0x8c], ecx */ 4768 ecx = MEM32(edx + 0x4); /* 0x2B02786E: mov ecx, dword ptr [edx + 4] */ 4769 MEM32(ebp + (-0x88)) = ecx; /* 0x2B027871: mov dword ptr [ebp - 0x88], ecx */ 4770 ecx = MEM32(edx + 0x8); /* 0x2B027877: mov ecx, dword ptr [edx + 8] */ 4771 MEM32(ebp + (-0x84)) = ecx; /* 0x2B02787A: mov dword ptr [ebp - 0x84], ecx */ 4772 edx = MEM32(edx + 0xC); /* 0x2B027880: mov edx, dword ptr [edx + 0xc] */ 4773 ecx = MEM32(ebp + (-0x40)); /* 0x2B027883: mov ecx, dword ptr [ebp - 0x40] */ 4774 MEM32(ebp + (-0x80)) = edx; /* 0x2B027886: mov dword ptr [ebp - 0x80], edx */ 4775 eax = MEM32(eax + 0x1C); /* 0x2B027889: mov eax, dword ptr [eax + 0x1c] */ 4776 edx = MEM32(ebp + (-0x3C)); /* 0x2B02788C: mov edx, dword ptr [ebp - 0x3c] */ 4777 MEM32(ebp + (-0x54)) = ecx; /* 0x2B02788F: mov dword ptr [ebp - 0x54], ecx */ 4778 ecx = ebp + (-0x60); /* 0x2B027892: lea ecx, [ebp - 0x60] */ 4779 MEM32(ebp + (-0xAC)) = eax; /* 0x2B027895: mov dword ptr [ebp - 0xac], eax */ 4780 eax = MEM32(ebp + (-0x38)); /* 0x2B02789B: mov eax, dword ptr [ebp - 0x38] */ 4781 PUSH32(esp, ecx); /* 0x2B02789E: push ecx */ 4782 ecx = ebp + (-0x54); /* 0x2B02789F: lea ecx, [ebp - 0x54] */ 4783 MEM32(ebp + (-0x50)) = edx; /* 0x2B0278A2: mov dword ptr [ebp - 0x50], edx */ 4784 MEM32(ebp + (-0x4C)) = eax; /* 0x2B0278A5: mov dword ptr [ebp - 0x4c], eax */ 4785 RECOMP_ICALL(MEM32(0x2B0B60E8)); /* 0x2B0278A8: call dword ptr [0x2b0b60e8] */ 4786 RECOMP_FLAGS_IN(); 4787 edx = MEM32(eax); /* 0x2B0278AE: mov edx, dword ptr [eax] */ 4788 MEM32(ebp + (-0x6C)) = edx; /* 0x2B0278B0: mov dword ptr [ebp - 0x6c], edx */ 4789 ecx = MEM32(eax + 0x4); /* 0x2B0278B3: mov ecx, dword ptr [eax + 4] */ 4790 MEM32(ebp + (-0x68)) = ecx; /* 0x2B0278B6: mov dword ptr [ebp - 0x68], ecx */ 4791 edx = MEM32(eax + 0x8); /* 0x2B0278B9: mov edx, dword ptr [eax + 8] */ 4792 ecx = ebp + (-0x6C); /* 0x2B0278BC: lea ecx, [ebp - 0x6c] */ 4793 MEM32(ebp + (-0x64)) = edx; /* 0x2B0278BF: mov dword ptr [ebp - 0x64], edx */ 4794 RECOMP_ICALL(MEM32(0x2B0B60F4)); /* 0x2B0278C2: call dword ptr [0x2b0b60f4] */ 4795 RECOMP_FLAGS_IN(); 4796 _st[0] = sqrt(_st[0]); /* 0x2B0278C8: fsqrt */ 4797 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B656C)); /* 0x2B0278CA: fcom dword ptr [0x2b0b656c] */ 4798 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0278D0: fnstsw ax */ 4799 /* test HI8(eax), 1 */ /* 0x2B0278D2: test ah, 1 */ 4800 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4801 _cf = 0; 4802 _flag_k = FK_NARROW(FK_TEST, 24); 4803 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02796A; /* 0x2B0278D5: jne 0x2b02796a */ 4804 L_2B0278DB: 4805 fp_push(_st[0]); /* 0x2B0278DB: fld st(0) */ 4806 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2B0278DD: fadd dword ptr [ebp - 0x10] */ 4807 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B0278E0: fst dword ptr [ebp - 0x10] */ 4808 _st[0] /= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x2B0278E3: fdiv dword ptr [ebp - 0x48] */ 4809 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x2B0278E6: fst dword ptr [ebp - 0xb0] */ 4810 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x44))); /* 0x2B0278EC: fcomp dword ptr [ebp - 0x44] */ 4811 fp_pop(); 4812 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0278EF: fnstsw ax */ 4813 /* test HI8(eax), 0x41u */ /* 0x2B0278F1: test ah, 0x41 */ 4814 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4815 _cf = 0; 4816 _flag_k = FK_NARROW(FK_TEST, 24); 4817 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027A00; /* 0x2B0278F4: je 0x2b027a00 */ 4818 L_2B0278FA: 4819 eax = MEM32(ebp + (-0x9C)); /* 0x2B0278FA: mov eax, dword ptr [ebp - 0x9c] */ 4820 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu); 4821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4822 eax = eax + 0xFFFFFFFEu; /* 0x2B027900: add eax, -2 */ 4823 _flag_k = FK_ADD; 4824 /* cmp edi, eax */ /* 0x2B027903: cmp edi, eax */ 4825 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4827 _flag_k = FK_CMP; 4828 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027A00; /* 0x2B027905: je 0x2b027a00 */ 4829 L_2B02790B: 4830 ecx = MEM32(ebp + (-0x1C)); /* 0x2B02790B: mov ecx, dword ptr [ebp - 0x1c] */ 4831 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B02790E: fstp st(0) */ 4832 edx = MEM32(ebp + (-0x20)); /* 0x2B027910: mov edx, dword ptr [ebp - 0x20] */ 4833 PUSH32(esp, ecx); /* 0x2B027913: push ecx */ 4834 PUSH32(esp, edx); /* 0x2B027914: push edx */ 4835 ecx = ebp + (-0x24); /* 0x2B027915: lea ecx, [ebp - 0x24] */ 4836 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027918: mov byte ptr [ebp - 4], 3 */ 4837 RECOMP_ICALL(0x2B0292C0u); /* 0x2B02791C: call 0x2b0292c0 */ /* not lifted */ 4838 RECOMP_FLAGS_IN(); 4839 eax = MEM32(ebp + (-0x20)); /* 0x2B027921: mov eax, dword ptr [ebp - 0x20] */ 4840 PUSH32(esp, eax); /* 0x2B027924: push eax */ 4841 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027925: call 0x2b0ab1ba */ /* not lifted */ 4842 RECOMP_FLAGS_IN(); 4843 ecx = MEM32(ebp + (-0x2C)); /* 0x2B02792A: mov ecx, dword ptr [ebp - 0x2c] */ 4844 edx = MEM32(ebp + (-0x30)); /* 0x2B02792D: mov edx, dword ptr [ebp - 0x30] */ 4845 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4847 esp = esp + 4; /* 0x2B027930: add esp, 4 */ 4848 _flag_k = FK_ADD; 4849 PUSH32(esp, ecx); /* 0x2B027933: push ecx */ 4850 PUSH32(esp, edx); /* 0x2B027934: push edx */ 4851 ecx = ebp + (-0x34); /* 0x2B027935: lea ecx, [ebp - 0x34] */ 4852 MEM32(ebp + (-0x20)) = ebx; /* 0x2B027938: mov dword ptr [ebp - 0x20], ebx */ 4853 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B02793B: mov dword ptr [ebp - 0x1c], ebx */ 4854 MEM32(ebp + (-0x18)) = ebx; /* 0x2B02793E: mov dword ptr [ebp - 0x18], ebx */ 4855 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B027941: mov byte ptr [ebp - 4], 2 */ 4856 RECOMP_ICALL(0x2B0292C0u); /* 0x2B027945: call 0x2b0292c0 */ /* not lifted */ 4857 RECOMP_FLAGS_IN(); 4858 eax = MEM32(ebp + (-0x30)); /* 0x2B02794A: mov eax, dword ptr [ebp - 0x30] */ 4859 PUSH32(esp, eax); /* 0x2B02794D: push eax */ 4860 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02794E: call 0x2b0ab1ba */ /* not lifted */ 4861 RECOMP_FLAGS_IN(); 4862 edi = MEM32(ebp + (-0xA8)); /* 0x2B027953: mov edi, dword ptr [ebp - 0xa8] */ 4863 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4865 esp = esp + 4; /* 0x2B027959: add esp, 4 */ 4866 _flag_k = FK_ADD; 4867 MEM32(ebp + (-0x30)) = ebx; /* 0x2B02795C: mov dword ptr [ebp - 0x30], ebx */ 4868 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B02795F: mov dword ptr [ebp - 0x2c], ebx */ 4869 MEM32(ebp + (-0x28)) = ebx; /* 0x2B027962: mov dword ptr [ebp - 0x28], ebx */ 4870 RECOMP_BACKEDGE(); 4871 goto L_2B0277B7; /* 0x2B027965: jmp 0x2b0277b7 */ 4872 L_2B02796A: 4873 ecx = MEM32(ebp + (-0x1C)); /* 0x2B02796A: mov ecx, dword ptr [ebp - 0x1c] */ 4874 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B02796D: fstp st(0) */ 4875 edx = MEM32(ebp + (-0x20)); /* 0x2B02796F: mov edx, dword ptr [ebp - 0x20] */ 4876 PUSH32(esp, ecx); /* 0x2B027972: push ecx */ 4877 PUSH32(esp, edx); /* 0x2B027973: push edx */ 4878 ecx = ebp + (-0x24); /* 0x2B027974: lea ecx, [ebp - 0x24] */ 4879 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027977: mov byte ptr [ebp - 4], 3 */ 4880 RECOMP_ICALL(0x2B0292C0u); /* 0x2B02797B: call 0x2b0292c0 */ /* not lifted */ 4881 RECOMP_FLAGS_IN(); 4882 eax = MEM32(ebp + (-0x20)); /* 0x2B027980: mov eax, dword ptr [ebp - 0x20] */ 4883 PUSH32(esp, eax); /* 0x2B027983: push eax */ 4884 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027984: call 0x2b0ab1ba */ /* not lifted */ 4885 RECOMP_FLAGS_IN(); 4886 ecx = MEM32(ebp + (-0x2C)); /* 0x2B027989: mov ecx, dword ptr [ebp - 0x2c] */ 4887 edx = MEM32(ebp + (-0x30)); /* 0x2B02798C: mov edx, dword ptr [ebp - 0x30] */ 4888 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4889 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4890 esp = esp + 4; /* 0x2B02798F: add esp, 4 */ 4891 _flag_k = FK_ADD; 4892 PUSH32(esp, ecx); /* 0x2B027992: push ecx */ 4893 PUSH32(esp, edx); /* 0x2B027993: push edx */ 4894 ecx = ebp + (-0x34); /* 0x2B027994: lea ecx, [ebp - 0x34] */ 4895 MEM32(ebp + (-0x20)) = ebx; /* 0x2B027997: mov dword ptr [ebp - 0x20], ebx */ 4896 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B02799A: mov dword ptr [ebp - 0x1c], ebx */ 4897 MEM32(ebp + (-0x18)) = ebx; /* 0x2B02799D: mov dword ptr [ebp - 0x18], ebx */ 4898 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B0279A0: mov byte ptr [ebp - 4], 2 */ 4899 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0279A4: call 0x2b0292c0 */ /* not lifted */ 4900 RECOMP_FLAGS_IN(); 4901 eax = MEM32(ebp + (-0x30)); /* 0x2B0279A9: mov eax, dword ptr [ebp - 0x30] */ 4902 PUSH32(esp, eax); /* 0x2B0279AC: push eax */ 4903 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0279AD: call 0x2b0ab1ba */ /* not lifted */ 4904 RECOMP_FLAGS_IN(); 4905 ecx = MEM32(ebp + (-0xB8)); /* 0x2B0279B2: mov ecx, dword ptr [ebp - 0xb8] */ 4906 edx = MEM32(ebp + (-0xBC)); /* 0x2B0279B8: mov edx, dword ptr [ebp - 0xbc] */ 4907 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4908 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4909 esp = esp + 4; /* 0x2B0279BE: add esp, 4 */ 4910 _flag_k = FK_ADD; 4911 PUSH32(esp, ecx); /* 0x2B0279C1: push ecx */ 4912 PUSH32(esp, edx); /* 0x2B0279C2: push edx */ 4913 ecx = ebp + (-0xC0); /* 0x2B0279C3: lea ecx, [ebp - 0xc0] */ 4914 MEM32(ebp + (-0x30)) = ebx; /* 0x2B0279C9: mov dword ptr [ebp - 0x30], ebx */ 4915 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B0279CC: mov dword ptr [ebp - 0x2c], ebx */ 4916 MEM32(ebp + (-0x28)) = ebx; /* 0x2B0279CF: mov dword ptr [ebp - 0x28], ebx */ 4917 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0279D2: mov dword ptr [ebp - 4], 0xffffffff */ 4918 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0279D9: call 0x2b0292c0 */ /* not lifted */ 4919 RECOMP_FLAGS_IN(); 4920 eax = MEM32(ebp + (-0xBC)); /* 0x2B0279DE: mov eax, dword ptr [ebp - 0xbc] */ 4921 PUSH32(esp, eax); /* 0x2B0279E4: push eax */ 4922 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0279E5: call 0x2b0ab1ba */ /* not lifted */ 4923 RECOMP_FLAGS_IN(); 4924 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4925 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4926 esp = esp + 4; /* 0x2B0279EA: add esp, 4 */ 4927 _flag_k = FK_ADD; 4928 edi = POP32_VAL(esp); /* 0x2B0279ED: pop edi */ 4929 esi = POP32_VAL(esp); /* 0x2B0279EE: pop esi */ 4930 ebx = POP32_VAL(esp); /* 0x2B0279EF: pop ebx */ 4931 ecx = MEM32(ebp + (-0xC)); /* 0x2B0279F0: mov ecx, dword ptr [ebp - 0xc] */ 4932 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0279F3: mov dword ptr fs:[0], ecx */ 4933 esp = ebp; /* 0x2B0279FA: mov esp, ebp */ 4934 ebp = POP32_VAL(esp); /* 0x2B0279FC: pop ebp */ 4935 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0279FD: ret 4 */ 4936 L_2B027A00: 4937 _st[0] /= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x2B027A00: fdiv dword ptr [ebp - 0x48] */ 4938 ecx = MEM32(ebp + (-0x60)); /* 0x2B027A03: mov ecx, dword ptr [ebp - 0x60] */ 4939 edx = MEM32(ebp + (-0x5C)); /* 0x2B027A06: mov edx, dword ptr [ebp - 0x5c] */ 4940 eax = MEM32(ebp + (-0x58)); /* 0x2B027A09: mov eax, dword ptr [ebp - 0x58] */ 4941 MEM32(ebp + (-0x54)) = ecx; /* 0x2B027A0C: mov dword ptr [ebp - 0x54], ecx */ 4942 ecx = ebp + (-0x54); /* 0x2B027A0F: lea ecx, [ebp - 0x54] */ 4943 MEM32(ebp + (-0x50)) = edx; /* 0x2B027A12: mov dword ptr [ebp - 0x50], edx */ 4944 MEM32(ebp + (-0x4C)) = eax; /* 0x2B027A15: mov dword ptr [ebp - 0x4c], eax */ 4945 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x2B027A18: fld dword ptr [ebp - 0xb0] */ 4946 _st[0] -= _st[1]; /* 0x2B027A1E: fsub st(1) */ 4947 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x2B027A20: fld dword ptr [ebp - 0x44] */ 4948 _st[0] -= _st[1]; /* 0x2B027A23: fsub st(1) */ 4949 _st[0] /= _st[2]; /* 0x2B027A25: fdiv st(2) */ 4950 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B027A27: fstp dword ptr [ebp - 0x10] */ 4951 esi = MEM32(ebp + (-0x10)); /* 0x2B027A2A: mov esi, dword ptr [ebp - 0x10] */ 4952 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027A2D: fstp st(0) */ 4953 PUSH32(esp, esi); /* 0x2B027A2F: push esi */ 4954 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027A30: fstp st(0) */ 4955 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027A32: call dword ptr [0x2b0b60cc] */ 4956 RECOMP_FLAGS_IN(); 4957 ecx = MEM32(eax); /* 0x2B027A38: mov ecx, dword ptr [eax] */ 4958 fp_push(*(float*)&MEM32(0x2B0B63D0)); /* 0x2B027A3A: fld dword ptr [0x2b0b63d0] */ 4959 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2B027A40: fsub dword ptr [ebp - 0x10] */ 4960 MEM32(ebp + (-0x98)) = ecx; /* 0x2B027A43: mov dword ptr [ebp - 0x98], ecx */ 4961 edx = MEM32(eax + 0x4); /* 0x2B027A49: mov edx, dword ptr [eax + 4] */ 4962 ecx = MEM32(ebp + (-0x40)); /* 0x2B027A4C: mov ecx, dword ptr [ebp - 0x40] */ 4963 MEM32(ebp + (-0x94)) = edx; /* 0x2B027A4F: mov dword ptr [ebp - 0x94], edx */ 4964 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x2B027A55: fstp dword ptr [ebp - 0x44] */ 4965 eax = MEM32(eax + 0x8); /* 0x2B027A58: mov eax, dword ptr [eax + 8] */ 4966 edx = MEM32(ebp + (-0x3C)); /* 0x2B027A5B: mov edx, dword ptr [ebp - 0x3c] */ 4967 MEM32(ebp + (-0x6C)) = ecx; /* 0x2B027A5E: mov dword ptr [ebp - 0x6c], ecx */ 4968 ecx = MEM32(ebp + (-0x44)); /* 0x2B027A61: mov ecx, dword ptr [ebp - 0x44] */ 4969 MEM32(ebp + (-0x90)) = eax; /* 0x2B027A64: mov dword ptr [ebp - 0x90], eax */ 4970 eax = MEM32(ebp + (-0x38)); /* 0x2B027A6A: mov eax, dword ptr [ebp - 0x38] */ 4971 PUSH32(esp, ecx); /* 0x2B027A6D: push ecx */ 4972 ecx = ebp + (-0x6C); /* 0x2B027A6E: lea ecx, [ebp - 0x6c] */ 4973 MEM32(ebp + (-0x68)) = edx; /* 0x2B027A71: mov dword ptr [ebp - 0x68], edx */ 4974 MEM32(ebp + (-0x64)) = eax; /* 0x2B027A74: mov dword ptr [ebp - 0x64], eax */ 4975 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027A77: call dword ptr [0x2b0b60cc] */ 4976 RECOMP_FLAGS_IN(); 4977 edx = MEM32(eax); /* 0x2B027A7D: mov edx, dword ptr [eax] */ 4978 ecx = MEM32(eax + 0x4); /* 0x2B027A7F: mov ecx, dword ptr [eax + 4] */ 4979 MEM32(ebp + (-0x40)) = edx; /* 0x2B027A82: mov dword ptr [ebp - 0x40], edx */ 4980 edx = MEM32(eax + 0x8); /* 0x2B027A85: mov edx, dword ptr [eax + 8] */ 4981 eax = ebp + (-0x98); /* 0x2B027A88: lea eax, [ebp - 0x98] */ 4982 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B027A8E: mov dword ptr [ebp - 0x3c], ecx */ 4983 PUSH32(esp, eax); /* 0x2B027A91: push eax */ 4984 ecx = ebp + (-0x40); /* 0x2B027A92: lea ecx, [ebp - 0x40] */ 4985 MEM32(ebp + (-0x38)) = edx; /* 0x2B027A95: mov dword ptr [ebp - 0x38], edx */ 4986 RECOMP_ICALL(MEM32(0x2B0B60D4)); /* 0x2B027A98: call dword ptr [0x2b0b60d4] */ 4987 RECOMP_FLAGS_IN(); 4988 ecx = MEM32(ebp + (-0x14)); /* 0x2B027A9E: mov ecx, dword ptr [ebp - 0x14] */ 4989 edx = eax; /* 0x2B027AA1: mov edx, eax */ 4990 edi = MEM32(edx); /* 0x2B027AA3: mov edi, dword ptr [edx] */ 4991 eax = ecx + 0x28; /* 0x2B027AA5: lea eax, [ecx + 0x28] */ 4992 MEM32(eax) = edi; /* 0x2B027AA8: mov dword ptr [eax], edi */ 4993 edi = MEM32(edx + 0x4); /* 0x2B027AAA: mov edi, dword ptr [edx + 4] */ 4994 MEM32(eax + 0x4) = edi; /* 0x2B027AAD: mov dword ptr [eax + 4], edi */ 4995 edx = MEM32(edx + 0x8); /* 0x2B027AB0: mov edx, dword ptr [edx + 8] */ 4996 MEM32(eax + 0x8) = edx; /* 0x2B027AB3: mov dword ptr [eax + 8], edx */ 4997 PUSH32(esp, esi); /* 0x2B027AB6: push esi */ 4998 eax = ebp + (-0x8C); /* 0x2B027AB7: lea eax, [ebp - 0x8c] */ 4999 PUSH32(esp, eax); /* 0x2B027ABD: push eax */ 5000 edx = ebp + (-0x7C); /* 0x2B027ABE: lea edx, [ebp - 0x7c] */ 5001 PUSH32(esp, edx); /* 0x2B027AC1: push edx */ 5002 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 5003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5004 ecx = ecx + 0x34u; /* 0x2B027AC2: add ecx, 0x34 */ 5005 _flag_k = FK_ADD; 5006 RECOMP_ICALL(MEM32(0x2B0B6100)); /* 0x2B027AC5: call dword ptr [0x2b0b6100] */ 5007 RECOMP_FLAGS_IN(); 5008 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x2B027ACB: fld dword ptr [ebp - 0x44] */ 5009 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA0)); /* 0x2B027ACE: fmul dword ptr [ebp - 0xa0] */ 5010 ecx = MEM32(ebp + (-0x1C)); /* 0x2B027AD4: mov ecx, dword ptr [ebp - 0x1c] */ 5011 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2B027AD7: fld dword ptr [ebp - 0x10] */ 5012 edx = MEM32(ebp + (-0x20)); /* 0x2B027ADA: mov edx, dword ptr [ebp - 0x20] */ 5013 _st[0] *= (double)*(float*)ADDR(ebp + (-0xAC)); /* 0x2B027ADD: fmul dword ptr [ebp - 0xac] */ 5014 eax = MEM32(ebp + (-0x14)); /* 0x2B027AE3: mov eax, dword ptr [ebp - 0x14] */ 5015 PUSH32(esp, ecx); /* 0x2B027AE6: push ecx */ 5016 PUSH32(esp, edx); /* 0x2B027AE7: push edx */ 5017 { double _v = fp_pop(); _st[0] += _v; } /* 0x2B027AE8: faddp st(1) */ 5018 ecx = ebp + (-0x24); /* 0x2B027AEA: lea ecx, [ebp - 0x24] */ 5019 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027AED: mov byte ptr [ebp - 4], 3 */ 5020 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x44) = _v; } /* 0x2B027AF1: fstp dword ptr [eax + 0x44] */ 5021 RECOMP_ICALL(0x2B0292C0u); /* 0x2B027AF4: call 0x2b0292c0 */ /* not lifted */ 5022 RECOMP_FLAGS_IN(); 5023 eax = MEM32(ebp + (-0x20)); /* 0x2B027AF9: mov eax, dword ptr [ebp - 0x20] */ 5024 PUSH32(esp, eax); /* 0x2B027AFC: push eax */ 5025 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027AFD: call 0x2b0ab1ba */ /* not lifted */ 5026 RECOMP_FLAGS_IN(); 5027 ecx = MEM32(ebp + (-0x2C)); /* 0x2B027B02: mov ecx, dword ptr [ebp - 0x2c] */ 5028 edx = MEM32(ebp + (-0x30)); /* 0x2B027B05: mov edx, dword ptr [ebp - 0x30] */ 5029 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5030 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5031 esp = esp + 4; /* 0x2B027B08: add esp, 4 */ 5032 _flag_k = FK_ADD; 5033 PUSH32(esp, ecx); /* 0x2B027B0B: push ecx */ 5034 PUSH32(esp, edx); /* 0x2B027B0C: push edx */ 5035 ecx = ebp + (-0x34); /* 0x2B027B0D: lea ecx, [ebp - 0x34] */ 5036 MEM32(ebp + (-0x20)) = ebx; /* 0x2B027B10: mov dword ptr [ebp - 0x20], ebx */ 5037 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B027B13: mov dword ptr [ebp - 0x1c], ebx */ 5038 MEM32(ebp + (-0x18)) = ebx; /* 0x2B027B16: mov dword ptr [ebp - 0x18], ebx */ 5039 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B027B19: mov byte ptr [ebp - 4], 2 */ 5040 RECOMP_ICALL(0x2B0292C0u); /* 0x2B027B1D: call 0x2b0292c0 */ /* not lifted */ 5041 RECOMP_FLAGS_IN(); 5042 eax = MEM32(ebp + (-0x30)); /* 0x2B027B22: mov eax, dword ptr [ebp - 0x30] */ 5043 PUSH32(esp, eax); /* 0x2B027B25: push eax */ 5044 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027B26: call 0x2b0ab1ba */ /* not lifted */ 5045 RECOMP_FLAGS_IN(); 5046 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5047 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5048 esp = esp + 4; /* 0x2B027B2B: add esp, 4 */ 5049 _flag_k = FK_ADD; 5050 L_2B027B2E: 5051 edi = MEM32(ebp + (-0x14)); /* 0x2B027B2E: mov edi, dword ptr [ebp - 0x14] */ 5052 L_2B027B31: 5053 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027B31: fld dword ptr [ebp + 8] */ 5054 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6568)); /* 0x2B027B34: fcomp dword ptr [0x2b0b6568] */ 5055 fp_pop(); 5056 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027B3A: fnstsw ax */ 5057 /* test HI8(eax), 1 */ /* 0x2B027B3C: test ah, 1 */ 5058 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5059 _cf = 0; 5060 _flag_k = FK_NARROW(FK_TEST, 24); 5061 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027B46; /* 0x2B027B3F: je 0x2b027b46 */ 5062 L_2B027B41: 5063 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027B41: fld dword ptr [ebp + 8] */ 5064 goto L_2B027B4C; /* 0x2B027B44: jmp 0x2b027b4c */ 5065 L_2B027B46: 5066 fp_push(*(float*)&MEM32(0x2B0B6568)); /* 0x2B027B46: fld dword ptr [0x2b0b6568] */ 5067 L_2B027B4C: 5068 fp_push(*(float*)&MEM32(0x2B0B6568)); /* 0x2B027B4C: fld dword ptr [0x2b0b6568] */ 5069 esi = edi + 0x28; /* 0x2B027B52: lea esi, [edi + 0x28] */ 5070 _st[0] -= _st[1]; /* 0x2B027B55: fsub st(1) */ 5071 ecx = esi; /* 0x2B027B57: mov ecx, esi */ 5072 edx = MEM32(ecx); /* 0x2B027B59: mov edx, dword ptr [ecx] */ 5073 eax = MEM32(ecx + 0x4); /* 0x2B027B5B: mov eax, dword ptr [ecx + 4] */ 5074 ecx = MEM32(ecx + 0x8); /* 0x2B027B5E: mov ecx, dword ptr [ecx + 8] */ 5075 _st[0] += (double)*(float*)ADDR(0x2B0B6564); /* 0x2B027B61: fadd dword ptr [0x2b0b6564] */ 5076 MEM32(ebp + (-0x98)) = edx; /* 0x2B027B67: mov dword ptr [ebp - 0x98], edx */ 5077 MEM32(ebp + (-0x90)) = ecx; /* 0x2B027B6D: mov dword ptr [ebp - 0x90], ecx */ 5078 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2B027B73: fstp dword ptr [ebp + 8] */ 5079 ecx = ebp + (-0x98); /* 0x2B027B76: lea ecx, [ebp - 0x98] */ 5080 MEM32(ebp + (-0x94)) = eax; /* 0x2B027B7C: mov dword ptr [ebp - 0x94], eax */ 5081 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027B82: fstp st(0) */ 5082 fp_push(*(float*)&MEM32(0x2B0B63D0)); /* 0x2B027B84: fld dword ptr [0x2b0b63d0] */ 5083 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x2B027B8A: fsub dword ptr [ebp + 8] */ 5084 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B027B8D: fstp dword ptr [ebp - 0x10] */ 5085 edx = MEM32(ebp + (-0x10)); /* 0x2B027B90: mov edx, dword ptr [ebp - 0x10] */ 5086 PUSH32(esp, edx); /* 0x2B027B93: push edx */ 5087 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027B94: call dword ptr [0x2b0b60cc] */ 5088 RECOMP_FLAGS_IN(); 5089 ecx = MEM32(eax); /* 0x2B027B9A: mov ecx, dword ptr [eax] */ 5090 MEM32(ebp + (-0x54)) = ecx; /* 0x2B027B9C: mov dword ptr [ebp - 0x54], ecx */ 5091 edx = MEM32(eax + 0x4); /* 0x2B027B9F: mov edx, dword ptr [eax + 4] */ 5092 MEM32(ebp + (-0x50)) = edx; /* 0x2B027BA2: mov dword ptr [ebp - 0x50], edx */ 5093 eax = MEM32(eax + 0x8); /* 0x2B027BA5: mov eax, dword ptr [eax + 8] */ 5094 ecx = ebp + (-0x54); /* 0x2B027BA8: lea ecx, [ebp - 0x54] */ 5095 PUSH32(esp, ecx); /* 0x2B027BAB: push ecx */ 5096 edx = ebp + (-0x6C); /* 0x2B027BAC: lea edx, [ebp - 0x6c] */ 5097 MEM32(ebp + (-0x4C)) = eax; /* 0x2B027BAF: mov dword ptr [ebp - 0x4c], eax */ 5098 eax = MEM32(ebp + 0x8); /* 0x2B027BB2: mov eax, dword ptr [ebp + 8] */ 5099 PUSH32(esp, edx); /* 0x2B027BB5: push edx */ 5100 PUSH32(esp, eax); /* 0x2B027BB6: push eax */ 5101 ecx = ebp + (-0x40); /* 0x2B027BB7: lea ecx, [ebp - 0x40] */ 5102 PUSH32(esp, ecx); /* 0x2B027BBA: push ecx */ 5103 ecx = ebp + (-0xCC); /* 0x2B027BBB: lea ecx, [ebp - 0xcc] */ 5104 RECOMP_ICALL(MEM32(0x2B0B60E4)); /* 0x2B027BC1: call dword ptr [0x2b0b60e4] */ 5105 RECOMP_FLAGS_IN(); 5106 ecx = eax; /* 0x2B027BC7: mov ecx, eax */ 5107 RECOMP_ICALL(MEM32(0x2B0B60E0)); /* 0x2B027BC9: call dword ptr [0x2b0b60e0] */ 5108 RECOMP_FLAGS_IN(); 5109 ecx = MEM32(eax); /* 0x2B027BCF: mov ecx, dword ptr [eax] */ 5110 edx = esi; /* 0x2B027BD1: mov edx, esi */ 5111 MEM32(edx) = ecx; /* 0x2B027BD3: mov dword ptr [edx], ecx */ 5112 ecx = MEM32(eax + 0x4); /* 0x2B027BD5: mov ecx, dword ptr [eax + 4] */ 5113 MEM32(edx + 0x4) = ecx; /* 0x2B027BD8: mov dword ptr [edx + 4], ecx */ 5114 ecx = MEM32(ebp + (-0x10)); /* 0x2B027BDB: mov ecx, dword ptr [ebp - 0x10] */ 5115 eax = MEM32(eax + 0x8); /* 0x2B027BDE: mov eax, dword ptr [eax + 8] */ 5116 PUSH32(esp, ecx); /* 0x2B027BE1: push ecx */ 5117 ecx = edi + 0x34; /* 0x2B027BE2: lea ecx, [edi + 0x34] */ 5118 MEM32(edx + 0x8) = eax; /* 0x2B027BE5: mov dword ptr [edx + 8], eax */ 5119 PUSH32(esp, ecx); /* 0x2B027BE8: push ecx */ 5120 edx = ebp + (-0xDC); /* 0x2B027BE9: lea edx, [ebp - 0xdc] */ 5121 PUSH32(esp, edx); /* 0x2B027BEF: push edx */ 5122 RECOMP_ICALL(MEM32(0x2B0B6100)); /* 0x2B027BF0: call dword ptr [0x2b0b6100] */ 5123 RECOMP_FLAGS_IN(); 5124 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027BF6: fld dword ptr [ebp + 8] */ 5125 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x2B027BF9: fmul dword ptr [ebp - 0xa4] */ 5126 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2B027BFF: fld dword ptr [ebp - 0x10] */ 5127 _st[0] *= (double)*(float*)ADDR(edi + 0x44); /* 0x2B027C02: fmul dword ptr [edi + 0x44] */ 5128 { double _v = fp_pop(); _st[0] += _v; } /* 0x2B027C05: faddp st(1) */ 5129 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x44) = _v; } /* 0x2B027C07: fstp dword ptr [edi + 0x44] */ 5130 fp_push(*(float*)&MEM32(edi + 0xAC)); /* 0x2B027C0A: fld dword ptr [edi + 0xac] */ 5131 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B63D0)); /* 0x2B027C10: fcomp dword ptr [0x2b0b63d0] */ 5132 fp_pop(); 5133 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027C16: fnstsw ax */ 5134 /* test HI8(eax), 1 */ /* 0x2B027C18: test ah, 1 */ 5135 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5136 _cf = 0; 5137 _flag_k = FK_NARROW(FK_TEST, 24); 5138 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027C4D; /* 0x2B027C1B: jne 0x2b027c4d */ 5139 L_2B027C1D: 5140 eax = ebp + (-0x60); /* 0x2B027C1D: lea eax, [ebp - 0x60] */ 5141 PUSH32(esp, eax); /* 0x2B027C20: push eax */ 5142 ecx = ebp + (-0x98); /* 0x2B027C21: lea ecx, [ebp - 0x98] */ 5143 PUSH32(esp, ecx); /* 0x2B027C27: push ecx */ 5144 ecx = esi; /* 0x2B027C28: mov ecx, esi */ 5145 RECOMP_ICALL(MEM32(0x2B0B60DC)); /* 0x2B027C2A: call dword ptr [0x2b0b60dc] */ 5146 RECOMP_FLAGS_IN(); 5147 ecx = eax; /* 0x2B027C30: mov ecx, eax */ 5148 RECOMP_ICALL(MEM32(0x2B0B60F4)); /* 0x2B027C32: call dword ptr [0x2b0b60f4] */ 5149 RECOMP_FLAGS_IN(); 5150 _st[0] = sqrt(_st[0]); /* 0x2B027C38: fsqrt */ 5151 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6560)); /* 0x2B027C3A: fcomp dword ptr [0x2b0b6560] */ 5152 fp_pop(); 5153 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027C40: fnstsw ax */ 5154 /* test HI8(eax), 1 */ /* 0x2B027C42: test ah, 1 */ 5155 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5156 _cf = 0; 5157 _flag_k = FK_NARROW(FK_TEST, 24); 5158 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027C4D; /* 0x2B027C45: je 0x2b027c4d */ 5159 L_2B027C47: 5160 MEM8(edi + 0x99) = (uint8_t)(LO8(ebx)); /* 0x2B027C47: mov byte ptr [edi + 0x99], bl */ 5161 L_2B027C4D: 5162 ecx = ebp + (-0xC0); /* 0x2B027C4D: lea ecx, [ebp - 0xc0] */ 5163 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B027C53: mov dword ptr [ebp - 4], 0xffffffff */ 5164 RECOMP_ICALL(0x2B012D80u); /* 0x2B027C5A: call 0x2b012d80 */ /* not lifted */ 5165 RECOMP_FLAGS_IN(); 5166 L_2B027C5F: 5167 ecx = MEM32(ebp + (-0xC)); /* 0x2B027C5F: mov ecx, dword ptr [ebp - 0xc] */ 5168 edi = POP32_VAL(esp); /* 0x2B027C62: pop edi */ 5169 esi = POP32_VAL(esp); /* 0x2B027C63: pop esi */ 5170 ebx = POP32_VAL(esp); /* 0x2B027C64: pop ebx */ 5171 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027C65: mov dword ptr fs:[0], ecx */ 5172 esp = ebp; /* 0x2B027C6C: mov esp, ebp */ 5173 ebp = POP32_VAL(esp); /* 0x2B027C6E: pop ebp */ 5174 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027C6F: ret 4 */ 5175 RECOMP_REGS_OUT(); 5176 } 5177 5178 void sub_2B0277B7(void) { 5179 int _fpu_cmp = 0; 5180 uint32_t _cf = 0; 5181 int _df = 1; 5182 uint32_t _flag_k = FK_NONE; 5183 uint32_t _flag_a = 0, _flag_b = 0; 5184 uint32_t _itail_tgt = 0; 5185 RECOMP_REGS_LOCALS 5186 RECOMP_ENTER(0x2B0277B7u); 5187 5188 L_2B0277B7: 5189 ecx = MEM32(esi + 0x4); /* 0x2B0277B7: mov ecx, dword ptr [esi + 4] */ 5190 /* cmp ecx, ebx */ /* 0x2B0277BA: cmp ecx, ebx */ 5191 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5193 _flag_k = FK_CMP; 5194 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0277C2; /* 0x2B0277BC: jne 0x2b0277c2 */ 5195 L_2B0277BE: 5196 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5197 eax = 0; /* 0x2B0277BE: xor eax, eax */ 5198 _cf = 0; 5199 _flag_k = FK_TEST; 5200 goto L_2B0277CA; /* 0x2B0277C0: jmp 0x2b0277ca */ 5201 L_2B0277C2: 5202 eax = MEM32(esi + 0x8); /* 0x2B0277C2: mov eax, dword ptr [esi + 8] */ 5203 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5205 eax = eax - ecx; /* 0x2B0277C5: sub eax, ecx */ 5206 _flag_k = FK_CMP; 5207 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0277C7: sar eax, 4 */ 5208 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5209 eax = (uint32_t)((int32_t)eax >> 4u); 5210 L_2B0277CA: 5211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5212 eax = eax - 1; /* 0x2B0277CA: dec eax */ 5213 _flag_k = FK_DEC; 5214 /* cmp edi, eax */ /* 0x2B0277CB: cmp edi, eax */ 5215 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5217 _flag_k = FK_CMP; 5218 if (CMP_GE(_flag_a, _flag_b)) goto L_2B027B2E; /* 0x2B0277CD: jge 0x2b027b2e */ 5219 L_2B0277D3: 5220 PUSH32(esp, edi); /* 0x2B0277D3: push edi */ 5221 edx = ebp + (-0x34); /* 0x2B0277D4: lea edx, [ebp - 0x34] */ 5222 PUSH32(esp, edx); /* 0x2B0277D7: push edx */ 5223 ecx = esi; /* 0x2B0277D8: mov ecx, esi */ 5224 RECOMP_ICALL(0x2B0224C0u); /* 0x2B0277DA: call 0x2b0224c0 */ /* not lifted */ 5225 RECOMP_FLAGS_IN(); 5226 eax = edi + 0x1; /* 0x2B0277DF: lea eax, [edi + 1] */ 5227 PUSH32(esp, eax); /* 0x2B0277E2: push eax */ 5228 MEM32(ebp + (-0xA8)) = eax; /* 0x2B0277E3: mov dword ptr [ebp - 0xa8], eax */ 5229 eax = ebp + (-0x24); /* 0x2B0277E9: lea eax, [ebp - 0x24] */ 5230 PUSH32(esp, eax); /* 0x2B0277EC: push eax */ 5231 ecx = esi; /* 0x2B0277ED: mov ecx, esi */ 5232 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B0277EF: mov byte ptr [ebp - 4], 3 */ 5233 RECOMP_ICALL(0x2B0224C0u); /* 0x2B0277F3: call 0x2b0224c0 */ /* not lifted */ 5234 RECOMP_FLAGS_IN(); 5235 edx = MEM32(ebp + (-0x14)); /* 0x2B0277F8: mov edx, dword ptr [ebp - 0x14] */ 5236 ecx = ebp + (-0x34); /* 0x2B0277FB: lea ecx, [ebp - 0x34] */ 5237 PUSH32(esp, ecx); /* 0x2B0277FE: push ecx */ 5238 ecx = edx + 0x6C; /* 0x2B0277FF: lea ecx, [edx + 0x6c] */ 5239 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B027802: mov byte ptr [ebp - 4], 4 */ 5240 RECOMP_ICALL(0x2B028450u); /* 0x2B027806: call 0x2b028450 */ /* not lifted */ 5241 RECOMP_FLAGS_IN(); 5242 ecx = eax; /* 0x2B02780B: mov ecx, eax */ 5243 edx = MEM32(ecx); /* 0x2B02780D: mov edx, dword ptr [ecx] */ 5244 MEM32(ebp + (-0x40)) = edx; /* 0x2B02780F: mov dword ptr [ebp - 0x40], edx */ 5245 edx = MEM32(ecx + 0x4); /* 0x2B027812: mov edx, dword ptr [ecx + 4] */ 5246 ecx = MEM32(ecx + 0x8); /* 0x2B027815: mov ecx, dword ptr [ecx + 8] */ 5247 MEM32(ebp + (-0x3C)) = edx; /* 0x2B027818: mov dword ptr [ebp - 0x3c], edx */ 5248 MEM32(ebp + (-0x38)) = ecx; /* 0x2B02781B: mov dword ptr [ebp - 0x38], ecx */ 5249 edx = eax + 0xC; /* 0x2B02781E: lea edx, [eax + 0xc] */ 5250 ecx = MEM32(edx); /* 0x2B027821: mov ecx, dword ptr [edx] */ 5251 MEM32(ebp + (-0x7C)) = ecx; /* 0x2B027823: mov dword ptr [ebp - 0x7c], ecx */ 5252 ecx = MEM32(edx + 0x4); /* 0x2B027826: mov ecx, dword ptr [edx + 4] */ 5253 MEM32(ebp + (-0x78)) = ecx; /* 0x2B027829: mov dword ptr [ebp - 0x78], ecx */ 5254 ecx = MEM32(edx + 0x8); /* 0x2B02782C: mov ecx, dword ptr [edx + 8] */ 5255 MEM32(ebp + (-0x74)) = ecx; /* 0x2B02782F: mov dword ptr [ebp - 0x74], ecx */ 5256 edx = MEM32(edx + 0xC); /* 0x2B027832: mov edx, dword ptr [edx + 0xc] */ 5257 MEM32(ebp + (-0x70)) = edx; /* 0x2B027835: mov dword ptr [ebp - 0x70], edx */ 5258 edx = MEM32(ebp + (-0x14)); /* 0x2B027838: mov edx, dword ptr [ebp - 0x14] */ 5259 eax = MEM32(eax + 0x1C); /* 0x2B02783B: mov eax, dword ptr [eax + 0x1c] */ 5260 ecx = ebp + (-0x24); /* 0x2B02783E: lea ecx, [ebp - 0x24] */ 5261 PUSH32(esp, ecx); /* 0x2B027841: push ecx */ 5262 ecx = edx + 0x6C; /* 0x2B027842: lea ecx, [edx + 0x6c] */ 5263 MEM32(ebp + (-0xA0)) = eax; /* 0x2B027845: mov dword ptr [ebp - 0xa0], eax */ 5264 RECOMP_ICALL(0x2B028450u); /* 0x2B02784B: call 0x2b028450 */ /* not lifted */ 5265 RECOMP_FLAGS_IN(); 5266 ecx = eax; /* 0x2B027850: mov ecx, eax */ 5267 edx = MEM32(ecx); /* 0x2B027852: mov edx, dword ptr [ecx] */ 5268 MEM32(ebp + (-0x60)) = edx; /* 0x2B027854: mov dword ptr [ebp - 0x60], edx */ 5269 edx = MEM32(ecx + 0x4); /* 0x2B027857: mov edx, dword ptr [ecx + 4] */ 5270 MEM32(ebp + (-0x5C)) = edx; /* 0x2B02785A: mov dword ptr [ebp - 0x5c], edx */ 5271 ecx = MEM32(ecx + 0x8); /* 0x2B02785D: mov ecx, dword ptr [ecx + 8] */ 5272 MEM32(ebp + (-0x58)) = ecx; /* 0x2B027860: mov dword ptr [ebp - 0x58], ecx */ 5273 edx = eax + 0xC; /* 0x2B027863: lea edx, [eax + 0xc] */ 5274 ecx = MEM32(edx); /* 0x2B027866: mov ecx, dword ptr [edx] */ 5275 MEM32(ebp + (-0x8C)) = ecx; /* 0x2B027868: mov dword ptr [ebp - 0x8c], ecx */ 5276 ecx = MEM32(edx + 0x4); /* 0x2B02786E: mov ecx, dword ptr [edx + 4] */ 5277 MEM32(ebp + (-0x88)) = ecx; /* 0x2B027871: mov dword ptr [ebp - 0x88], ecx */ 5278 ecx = MEM32(edx + 0x8); /* 0x2B027877: mov ecx, dword ptr [edx + 8] */ 5279 MEM32(ebp + (-0x84)) = ecx; /* 0x2B02787A: mov dword ptr [ebp - 0x84], ecx */ 5280 edx = MEM32(edx + 0xC); /* 0x2B027880: mov edx, dword ptr [edx + 0xc] */ 5281 ecx = MEM32(ebp + (-0x40)); /* 0x2B027883: mov ecx, dword ptr [ebp - 0x40] */ 5282 MEM32(ebp + (-0x80)) = edx; /* 0x2B027886: mov dword ptr [ebp - 0x80], edx */ 5283 eax = MEM32(eax + 0x1C); /* 0x2B027889: mov eax, dword ptr [eax + 0x1c] */ 5284 edx = MEM32(ebp + (-0x3C)); /* 0x2B02788C: mov edx, dword ptr [ebp - 0x3c] */ 5285 MEM32(ebp + (-0x54)) = ecx; /* 0x2B02788F: mov dword ptr [ebp - 0x54], ecx */ 5286 ecx = ebp + (-0x60); /* 0x2B027892: lea ecx, [ebp - 0x60] */ 5287 MEM32(ebp + (-0xAC)) = eax; /* 0x2B027895: mov dword ptr [ebp - 0xac], eax */ 5288 eax = MEM32(ebp + (-0x38)); /* 0x2B02789B: mov eax, dword ptr [ebp - 0x38] */ 5289 PUSH32(esp, ecx); /* 0x2B02789E: push ecx */ 5290 ecx = ebp + (-0x54); /* 0x2B02789F: lea ecx, [ebp - 0x54] */ 5291 MEM32(ebp + (-0x50)) = edx; /* 0x2B0278A2: mov dword ptr [ebp - 0x50], edx */ 5292 MEM32(ebp + (-0x4C)) = eax; /* 0x2B0278A5: mov dword ptr [ebp - 0x4c], eax */ 5293 RECOMP_ICALL(MEM32(0x2B0B60E8)); /* 0x2B0278A8: call dword ptr [0x2b0b60e8] */ 5294 RECOMP_FLAGS_IN(); 5295 edx = MEM32(eax); /* 0x2B0278AE: mov edx, dword ptr [eax] */ 5296 MEM32(ebp + (-0x6C)) = edx; /* 0x2B0278B0: mov dword ptr [ebp - 0x6c], edx */ 5297 ecx = MEM32(eax + 0x4); /* 0x2B0278B3: mov ecx, dword ptr [eax + 4] */ 5298 MEM32(ebp + (-0x68)) = ecx; /* 0x2B0278B6: mov dword ptr [ebp - 0x68], ecx */ 5299 edx = MEM32(eax + 0x8); /* 0x2B0278B9: mov edx, dword ptr [eax + 8] */ 5300 ecx = ebp + (-0x6C); /* 0x2B0278BC: lea ecx, [ebp - 0x6c] */ 5301 MEM32(ebp + (-0x64)) = edx; /* 0x2B0278BF: mov dword ptr [ebp - 0x64], edx */ 5302 RECOMP_ICALL(MEM32(0x2B0B60F4)); /* 0x2B0278C2: call dword ptr [0x2b0b60f4] */ 5303 RECOMP_FLAGS_IN(); 5304 _st[0] = sqrt(_st[0]); /* 0x2B0278C8: fsqrt */ 5305 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B656C)); /* 0x2B0278CA: fcom dword ptr [0x2b0b656c] */ 5306 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0278D0: fnstsw ax */ 5307 /* test HI8(eax), 1 */ /* 0x2B0278D2: test ah, 1 */ 5308 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5309 _cf = 0; 5310 _flag_k = FK_NARROW(FK_TEST, 24); 5311 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02796A; /* 0x2B0278D5: jne 0x2b02796a */ 5312 L_2B0278DB: 5313 fp_push(_st[0]); /* 0x2B0278DB: fld st(0) */ 5314 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2B0278DD: fadd dword ptr [ebp - 0x10] */ 5315 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B0278E0: fst dword ptr [ebp - 0x10] */ 5316 _st[0] /= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x2B0278E3: fdiv dword ptr [ebp - 0x48] */ 5317 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x2B0278E6: fst dword ptr [ebp - 0xb0] */ 5318 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x44))); /* 0x2B0278EC: fcomp dword ptr [ebp - 0x44] */ 5319 fp_pop(); 5320 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0278EF: fnstsw ax */ 5321 /* test HI8(eax), 0x41u */ /* 0x2B0278F1: test ah, 0x41 */ 5322 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5323 _cf = 0; 5324 _flag_k = FK_NARROW(FK_TEST, 24); 5325 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027A00; /* 0x2B0278F4: je 0x2b027a00 */ 5326 L_2B0278FA: 5327 eax = MEM32(ebp + (-0x9C)); /* 0x2B0278FA: mov eax, dword ptr [ebp - 0x9c] */ 5328 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu); 5329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5330 eax = eax + 0xFFFFFFFEu; /* 0x2B027900: add eax, -2 */ 5331 _flag_k = FK_ADD; 5332 /* cmp edi, eax */ /* 0x2B027903: cmp edi, eax */ 5333 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5335 _flag_k = FK_CMP; 5336 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027A00; /* 0x2B027905: je 0x2b027a00 */ 5337 L_2B02790B: 5338 ecx = MEM32(ebp + (-0x1C)); /* 0x2B02790B: mov ecx, dword ptr [ebp - 0x1c] */ 5339 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B02790E: fstp st(0) */ 5340 edx = MEM32(ebp + (-0x20)); /* 0x2B027910: mov edx, dword ptr [ebp - 0x20] */ 5341 PUSH32(esp, ecx); /* 0x2B027913: push ecx */ 5342 PUSH32(esp, edx); /* 0x2B027914: push edx */ 5343 ecx = ebp + (-0x24); /* 0x2B027915: lea ecx, [ebp - 0x24] */ 5344 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027918: mov byte ptr [ebp - 4], 3 */ 5345 RECOMP_ICALL(0x2B0292C0u); /* 0x2B02791C: call 0x2b0292c0 */ /* not lifted */ 5346 RECOMP_FLAGS_IN(); 5347 eax = MEM32(ebp + (-0x20)); /* 0x2B027921: mov eax, dword ptr [ebp - 0x20] */ 5348 PUSH32(esp, eax); /* 0x2B027924: push eax */ 5349 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027925: call 0x2b0ab1ba */ /* not lifted */ 5350 RECOMP_FLAGS_IN(); 5351 ecx = MEM32(ebp + (-0x2C)); /* 0x2B02792A: mov ecx, dword ptr [ebp - 0x2c] */ 5352 edx = MEM32(ebp + (-0x30)); /* 0x2B02792D: mov edx, dword ptr [ebp - 0x30] */ 5353 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5355 esp = esp + 4; /* 0x2B027930: add esp, 4 */ 5356 _flag_k = FK_ADD; 5357 PUSH32(esp, ecx); /* 0x2B027933: push ecx */ 5358 PUSH32(esp, edx); /* 0x2B027934: push edx */ 5359 ecx = ebp + (-0x34); /* 0x2B027935: lea ecx, [ebp - 0x34] */ 5360 MEM32(ebp + (-0x20)) = ebx; /* 0x2B027938: mov dword ptr [ebp - 0x20], ebx */ 5361 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B02793B: mov dword ptr [ebp - 0x1c], ebx */ 5362 MEM32(ebp + (-0x18)) = ebx; /* 0x2B02793E: mov dword ptr [ebp - 0x18], ebx */ 5363 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B027941: mov byte ptr [ebp - 4], 2 */ 5364 RECOMP_ICALL(0x2B0292C0u); /* 0x2B027945: call 0x2b0292c0 */ /* not lifted */ 5365 RECOMP_FLAGS_IN(); 5366 eax = MEM32(ebp + (-0x30)); /* 0x2B02794A: mov eax, dword ptr [ebp - 0x30] */ 5367 PUSH32(esp, eax); /* 0x2B02794D: push eax */ 5368 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02794E: call 0x2b0ab1ba */ /* not lifted */ 5369 RECOMP_FLAGS_IN(); 5370 edi = MEM32(ebp + (-0xA8)); /* 0x2B027953: mov edi, dword ptr [ebp - 0xa8] */ 5371 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5373 esp = esp + 4; /* 0x2B027959: add esp, 4 */ 5374 _flag_k = FK_ADD; 5375 MEM32(ebp + (-0x30)) = ebx; /* 0x2B02795C: mov dword ptr [ebp - 0x30], ebx */ 5376 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B02795F: mov dword ptr [ebp - 0x2c], ebx */ 5377 MEM32(ebp + (-0x28)) = ebx; /* 0x2B027962: mov dword ptr [ebp - 0x28], ebx */ 5378 RECOMP_BACKEDGE(); 5379 goto L_2B0277B7; /* 0x2B027965: jmp 0x2b0277b7 */ 5380 L_2B02796A: 5381 ecx = MEM32(ebp + (-0x1C)); /* 0x2B02796A: mov ecx, dword ptr [ebp - 0x1c] */ 5382 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B02796D: fstp st(0) */ 5383 edx = MEM32(ebp + (-0x20)); /* 0x2B02796F: mov edx, dword ptr [ebp - 0x20] */ 5384 PUSH32(esp, ecx); /* 0x2B027972: push ecx */ 5385 PUSH32(esp, edx); /* 0x2B027973: push edx */ 5386 ecx = ebp + (-0x24); /* 0x2B027974: lea ecx, [ebp - 0x24] */ 5387 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027977: mov byte ptr [ebp - 4], 3 */ 5388 RECOMP_ICALL(0x2B0292C0u); /* 0x2B02797B: call 0x2b0292c0 */ /* not lifted */ 5389 RECOMP_FLAGS_IN(); 5390 eax = MEM32(ebp + (-0x20)); /* 0x2B027980: mov eax, dword ptr [ebp - 0x20] */ 5391 PUSH32(esp, eax); /* 0x2B027983: push eax */ 5392 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027984: call 0x2b0ab1ba */ /* not lifted */ 5393 RECOMP_FLAGS_IN(); 5394 ecx = MEM32(ebp + (-0x2C)); /* 0x2B027989: mov ecx, dword ptr [ebp - 0x2c] */ 5395 edx = MEM32(ebp + (-0x30)); /* 0x2B02798C: mov edx, dword ptr [ebp - 0x30] */ 5396 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5397 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5398 esp = esp + 4; /* 0x2B02798F: add esp, 4 */ 5399 _flag_k = FK_ADD; 5400 PUSH32(esp, ecx); /* 0x2B027992: push ecx */ 5401 PUSH32(esp, edx); /* 0x2B027993: push edx */ 5402 ecx = ebp + (-0x34); /* 0x2B027994: lea ecx, [ebp - 0x34] */ 5403 MEM32(ebp + (-0x20)) = ebx; /* 0x2B027997: mov dword ptr [ebp - 0x20], ebx */ 5404 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B02799A: mov dword ptr [ebp - 0x1c], ebx */ 5405 MEM32(ebp + (-0x18)) = ebx; /* 0x2B02799D: mov dword ptr [ebp - 0x18], ebx */ 5406 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B0279A0: mov byte ptr [ebp - 4], 2 */ 5407 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0279A4: call 0x2b0292c0 */ /* not lifted */ 5408 RECOMP_FLAGS_IN(); 5409 eax = MEM32(ebp + (-0x30)); /* 0x2B0279A9: mov eax, dword ptr [ebp - 0x30] */ 5410 PUSH32(esp, eax); /* 0x2B0279AC: push eax */ 5411 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0279AD: call 0x2b0ab1ba */ /* not lifted */ 5412 RECOMP_FLAGS_IN(); 5413 ecx = MEM32(ebp + (-0xB8)); /* 0x2B0279B2: mov ecx, dword ptr [ebp - 0xb8] */ 5414 edx = MEM32(ebp + (-0xBC)); /* 0x2B0279B8: mov edx, dword ptr [ebp - 0xbc] */ 5415 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5416 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5417 esp = esp + 4; /* 0x2B0279BE: add esp, 4 */ 5418 _flag_k = FK_ADD; 5419 PUSH32(esp, ecx); /* 0x2B0279C1: push ecx */ 5420 PUSH32(esp, edx); /* 0x2B0279C2: push edx */ 5421 ecx = ebp + (-0xC0); /* 0x2B0279C3: lea ecx, [ebp - 0xc0] */ 5422 MEM32(ebp + (-0x30)) = ebx; /* 0x2B0279C9: mov dword ptr [ebp - 0x30], ebx */ 5423 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B0279CC: mov dword ptr [ebp - 0x2c], ebx */ 5424 MEM32(ebp + (-0x28)) = ebx; /* 0x2B0279CF: mov dword ptr [ebp - 0x28], ebx */ 5425 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0279D2: mov dword ptr [ebp - 4], 0xffffffff */ 5426 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0279D9: call 0x2b0292c0 */ /* not lifted */ 5427 RECOMP_FLAGS_IN(); 5428 eax = MEM32(ebp + (-0xBC)); /* 0x2B0279DE: mov eax, dword ptr [ebp - 0xbc] */ 5429 PUSH32(esp, eax); /* 0x2B0279E4: push eax */ 5430 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0279E5: call 0x2b0ab1ba */ /* not lifted */ 5431 RECOMP_FLAGS_IN(); 5432 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5434 esp = esp + 4; /* 0x2B0279EA: add esp, 4 */ 5435 _flag_k = FK_ADD; 5436 edi = POP32_VAL(esp); /* 0x2B0279ED: pop edi */ 5437 esi = POP32_VAL(esp); /* 0x2B0279EE: pop esi */ 5438 ebx = POP32_VAL(esp); /* 0x2B0279EF: pop ebx */ 5439 ecx = MEM32(ebp + (-0xC)); /* 0x2B0279F0: mov ecx, dword ptr [ebp - 0xc] */ 5440 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0279F3: mov dword ptr fs:[0], ecx */ 5441 esp = ebp; /* 0x2B0279FA: mov esp, ebp */ 5442 ebp = POP32_VAL(esp); /* 0x2B0279FC: pop ebp */ 5443 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0279FD: ret 4 */ 5444 L_2B027A00: 5445 _st[0] /= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x2B027A00: fdiv dword ptr [ebp - 0x48] */ 5446 ecx = MEM32(ebp + (-0x60)); /* 0x2B027A03: mov ecx, dword ptr [ebp - 0x60] */ 5447 edx = MEM32(ebp + (-0x5C)); /* 0x2B027A06: mov edx, dword ptr [ebp - 0x5c] */ 5448 eax = MEM32(ebp + (-0x58)); /* 0x2B027A09: mov eax, dword ptr [ebp - 0x58] */ 5449 MEM32(ebp + (-0x54)) = ecx; /* 0x2B027A0C: mov dword ptr [ebp - 0x54], ecx */ 5450 ecx = ebp + (-0x54); /* 0x2B027A0F: lea ecx, [ebp - 0x54] */ 5451 MEM32(ebp + (-0x50)) = edx; /* 0x2B027A12: mov dword ptr [ebp - 0x50], edx */ 5452 MEM32(ebp + (-0x4C)) = eax; /* 0x2B027A15: mov dword ptr [ebp - 0x4c], eax */ 5453 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x2B027A18: fld dword ptr [ebp - 0xb0] */ 5454 _st[0] -= _st[1]; /* 0x2B027A1E: fsub st(1) */ 5455 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x2B027A20: fld dword ptr [ebp - 0x44] */ 5456 _st[0] -= _st[1]; /* 0x2B027A23: fsub st(1) */ 5457 _st[0] /= _st[2]; /* 0x2B027A25: fdiv st(2) */ 5458 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B027A27: fstp dword ptr [ebp - 0x10] */ 5459 esi = MEM32(ebp + (-0x10)); /* 0x2B027A2A: mov esi, dword ptr [ebp - 0x10] */ 5460 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027A2D: fstp st(0) */ 5461 PUSH32(esp, esi); /* 0x2B027A2F: push esi */ 5462 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027A30: fstp st(0) */ 5463 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027A32: call dword ptr [0x2b0b60cc] */ 5464 RECOMP_FLAGS_IN(); 5465 ecx = MEM32(eax); /* 0x2B027A38: mov ecx, dword ptr [eax] */ 5466 fp_push(*(float*)&MEM32(0x2B0B63D0)); /* 0x2B027A3A: fld dword ptr [0x2b0b63d0] */ 5467 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2B027A40: fsub dword ptr [ebp - 0x10] */ 5468 MEM32(ebp + (-0x98)) = ecx; /* 0x2B027A43: mov dword ptr [ebp - 0x98], ecx */ 5469 edx = MEM32(eax + 0x4); /* 0x2B027A49: mov edx, dword ptr [eax + 4] */ 5470 ecx = MEM32(ebp + (-0x40)); /* 0x2B027A4C: mov ecx, dword ptr [ebp - 0x40] */ 5471 MEM32(ebp + (-0x94)) = edx; /* 0x2B027A4F: mov dword ptr [ebp - 0x94], edx */ 5472 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x2B027A55: fstp dword ptr [ebp - 0x44] */ 5473 eax = MEM32(eax + 0x8); /* 0x2B027A58: mov eax, dword ptr [eax + 8] */ 5474 edx = MEM32(ebp + (-0x3C)); /* 0x2B027A5B: mov edx, dword ptr [ebp - 0x3c] */ 5475 MEM32(ebp + (-0x6C)) = ecx; /* 0x2B027A5E: mov dword ptr [ebp - 0x6c], ecx */ 5476 ecx = MEM32(ebp + (-0x44)); /* 0x2B027A61: mov ecx, dword ptr [ebp - 0x44] */ 5477 MEM32(ebp + (-0x90)) = eax; /* 0x2B027A64: mov dword ptr [ebp - 0x90], eax */ 5478 eax = MEM32(ebp + (-0x38)); /* 0x2B027A6A: mov eax, dword ptr [ebp - 0x38] */ 5479 PUSH32(esp, ecx); /* 0x2B027A6D: push ecx */ 5480 ecx = ebp + (-0x6C); /* 0x2B027A6E: lea ecx, [ebp - 0x6c] */ 5481 MEM32(ebp + (-0x68)) = edx; /* 0x2B027A71: mov dword ptr [ebp - 0x68], edx */ 5482 MEM32(ebp + (-0x64)) = eax; /* 0x2B027A74: mov dword ptr [ebp - 0x64], eax */ 5483 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027A77: call dword ptr [0x2b0b60cc] */ 5484 RECOMP_FLAGS_IN(); 5485 edx = MEM32(eax); /* 0x2B027A7D: mov edx, dword ptr [eax] */ 5486 ecx = MEM32(eax + 0x4); /* 0x2B027A7F: mov ecx, dword ptr [eax + 4] */ 5487 MEM32(ebp + (-0x40)) = edx; /* 0x2B027A82: mov dword ptr [ebp - 0x40], edx */ 5488 edx = MEM32(eax + 0x8); /* 0x2B027A85: mov edx, dword ptr [eax + 8] */ 5489 eax = ebp + (-0x98); /* 0x2B027A88: lea eax, [ebp - 0x98] */ 5490 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B027A8E: mov dword ptr [ebp - 0x3c], ecx */ 5491 PUSH32(esp, eax); /* 0x2B027A91: push eax */ 5492 ecx = ebp + (-0x40); /* 0x2B027A92: lea ecx, [ebp - 0x40] */ 5493 MEM32(ebp + (-0x38)) = edx; /* 0x2B027A95: mov dword ptr [ebp - 0x38], edx */ 5494 RECOMP_ICALL(MEM32(0x2B0B60D4)); /* 0x2B027A98: call dword ptr [0x2b0b60d4] */ 5495 RECOMP_FLAGS_IN(); 5496 ecx = MEM32(ebp + (-0x14)); /* 0x2B027A9E: mov ecx, dword ptr [ebp - 0x14] */ 5497 edx = eax; /* 0x2B027AA1: mov edx, eax */ 5498 edi = MEM32(edx); /* 0x2B027AA3: mov edi, dword ptr [edx] */ 5499 eax = ecx + 0x28; /* 0x2B027AA5: lea eax, [ecx + 0x28] */ 5500 MEM32(eax) = edi; /* 0x2B027AA8: mov dword ptr [eax], edi */ 5501 edi = MEM32(edx + 0x4); /* 0x2B027AAA: mov edi, dword ptr [edx + 4] */ 5502 MEM32(eax + 0x4) = edi; /* 0x2B027AAD: mov dword ptr [eax + 4], edi */ 5503 edx = MEM32(edx + 0x8); /* 0x2B027AB0: mov edx, dword ptr [edx + 8] */ 5504 MEM32(eax + 0x8) = edx; /* 0x2B027AB3: mov dword ptr [eax + 8], edx */ 5505 PUSH32(esp, esi); /* 0x2B027AB6: push esi */ 5506 eax = ebp + (-0x8C); /* 0x2B027AB7: lea eax, [ebp - 0x8c] */ 5507 PUSH32(esp, eax); /* 0x2B027ABD: push eax */ 5508 edx = ebp + (-0x7C); /* 0x2B027ABE: lea edx, [ebp - 0x7c] */ 5509 PUSH32(esp, edx); /* 0x2B027AC1: push edx */ 5510 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 5511 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5512 ecx = ecx + 0x34u; /* 0x2B027AC2: add ecx, 0x34 */ 5513 _flag_k = FK_ADD; 5514 RECOMP_ICALL(MEM32(0x2B0B6100)); /* 0x2B027AC5: call dword ptr [0x2b0b6100] */ 5515 RECOMP_FLAGS_IN(); 5516 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x2B027ACB: fld dword ptr [ebp - 0x44] */ 5517 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA0)); /* 0x2B027ACE: fmul dword ptr [ebp - 0xa0] */ 5518 ecx = MEM32(ebp + (-0x1C)); /* 0x2B027AD4: mov ecx, dword ptr [ebp - 0x1c] */ 5519 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2B027AD7: fld dword ptr [ebp - 0x10] */ 5520 edx = MEM32(ebp + (-0x20)); /* 0x2B027ADA: mov edx, dword ptr [ebp - 0x20] */ 5521 _st[0] *= (double)*(float*)ADDR(ebp + (-0xAC)); /* 0x2B027ADD: fmul dword ptr [ebp - 0xac] */ 5522 eax = MEM32(ebp + (-0x14)); /* 0x2B027AE3: mov eax, dword ptr [ebp - 0x14] */ 5523 PUSH32(esp, ecx); /* 0x2B027AE6: push ecx */ 5524 PUSH32(esp, edx); /* 0x2B027AE7: push edx */ 5525 { double _v = fp_pop(); _st[0] += _v; } /* 0x2B027AE8: faddp st(1) */ 5526 ecx = ebp + (-0x24); /* 0x2B027AEA: lea ecx, [ebp - 0x24] */ 5527 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027AED: mov byte ptr [ebp - 4], 3 */ 5528 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x44) = _v; } /* 0x2B027AF1: fstp dword ptr [eax + 0x44] */ 5529 RECOMP_ICALL(0x2B0292C0u); /* 0x2B027AF4: call 0x2b0292c0 */ /* not lifted */ 5530 RECOMP_FLAGS_IN(); 5531 eax = MEM32(ebp + (-0x20)); /* 0x2B027AF9: mov eax, dword ptr [ebp - 0x20] */ 5532 PUSH32(esp, eax); /* 0x2B027AFC: push eax */ 5533 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027AFD: call 0x2b0ab1ba */ /* not lifted */ 5534 RECOMP_FLAGS_IN(); 5535 ecx = MEM32(ebp + (-0x2C)); /* 0x2B027B02: mov ecx, dword ptr [ebp - 0x2c] */ 5536 edx = MEM32(ebp + (-0x30)); /* 0x2B027B05: mov edx, dword ptr [ebp - 0x30] */ 5537 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5539 esp = esp + 4; /* 0x2B027B08: add esp, 4 */ 5540 _flag_k = FK_ADD; 5541 PUSH32(esp, ecx); /* 0x2B027B0B: push ecx */ 5542 PUSH32(esp, edx); /* 0x2B027B0C: push edx */ 5543 ecx = ebp + (-0x34); /* 0x2B027B0D: lea ecx, [ebp - 0x34] */ 5544 MEM32(ebp + (-0x20)) = ebx; /* 0x2B027B10: mov dword ptr [ebp - 0x20], ebx */ 5545 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B027B13: mov dword ptr [ebp - 0x1c], ebx */ 5546 MEM32(ebp + (-0x18)) = ebx; /* 0x2B027B16: mov dword ptr [ebp - 0x18], ebx */ 5547 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B027B19: mov byte ptr [ebp - 4], 2 */ 5548 RECOMP_ICALL(0x2B0292C0u); /* 0x2B027B1D: call 0x2b0292c0 */ /* not lifted */ 5549 RECOMP_FLAGS_IN(); 5550 eax = MEM32(ebp + (-0x30)); /* 0x2B027B22: mov eax, dword ptr [ebp - 0x30] */ 5551 PUSH32(esp, eax); /* 0x2B027B25: push eax */ 5552 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027B26: call 0x2b0ab1ba */ /* not lifted */ 5553 RECOMP_FLAGS_IN(); 5554 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5556 esp = esp + 4; /* 0x2B027B2B: add esp, 4 */ 5557 _flag_k = FK_ADD; 5558 L_2B027B2E: 5559 edi = MEM32(ebp + (-0x14)); /* 0x2B027B2E: mov edi, dword ptr [ebp - 0x14] */ 5560 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027B31: fld dword ptr [ebp + 8] */ 5561 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6568)); /* 0x2B027B34: fcomp dword ptr [0x2b0b6568] */ 5562 fp_pop(); 5563 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027B3A: fnstsw ax */ 5564 /* test HI8(eax), 1 */ /* 0x2B027B3C: test ah, 1 */ 5565 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5566 _cf = 0; 5567 _flag_k = FK_NARROW(FK_TEST, 24); 5568 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027B46; /* 0x2B027B3F: je 0x2b027b46 */ 5569 L_2B027B41: 5570 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027B41: fld dword ptr [ebp + 8] */ 5571 goto L_2B027B4C; /* 0x2B027B44: jmp 0x2b027b4c */ 5572 L_2B027B46: 5573 fp_push(*(float*)&MEM32(0x2B0B6568)); /* 0x2B027B46: fld dword ptr [0x2b0b6568] */ 5574 L_2B027B4C: 5575 fp_push(*(float*)&MEM32(0x2B0B6568)); /* 0x2B027B4C: fld dword ptr [0x2b0b6568] */ 5576 esi = edi + 0x28; /* 0x2B027B52: lea esi, [edi + 0x28] */ 5577 _st[0] -= _st[1]; /* 0x2B027B55: fsub st(1) */ 5578 ecx = esi; /* 0x2B027B57: mov ecx, esi */ 5579 edx = MEM32(ecx); /* 0x2B027B59: mov edx, dword ptr [ecx] */ 5580 eax = MEM32(ecx + 0x4); /* 0x2B027B5B: mov eax, dword ptr [ecx + 4] */ 5581 ecx = MEM32(ecx + 0x8); /* 0x2B027B5E: mov ecx, dword ptr [ecx + 8] */ 5582 _st[0] += (double)*(float*)ADDR(0x2B0B6564); /* 0x2B027B61: fadd dword ptr [0x2b0b6564] */ 5583 MEM32(ebp + (-0x98)) = edx; /* 0x2B027B67: mov dword ptr [ebp - 0x98], edx */ 5584 MEM32(ebp + (-0x90)) = ecx; /* 0x2B027B6D: mov dword ptr [ebp - 0x90], ecx */ 5585 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2B027B73: fstp dword ptr [ebp + 8] */ 5586 ecx = ebp + (-0x98); /* 0x2B027B76: lea ecx, [ebp - 0x98] */ 5587 MEM32(ebp + (-0x94)) = eax; /* 0x2B027B7C: mov dword ptr [ebp - 0x94], eax */ 5588 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027B82: fstp st(0) */ 5589 fp_push(*(float*)&MEM32(0x2B0B63D0)); /* 0x2B027B84: fld dword ptr [0x2b0b63d0] */ 5590 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x2B027B8A: fsub dword ptr [ebp + 8] */ 5591 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B027B8D: fstp dword ptr [ebp - 0x10] */ 5592 edx = MEM32(ebp + (-0x10)); /* 0x2B027B90: mov edx, dword ptr [ebp - 0x10] */ 5593 PUSH32(esp, edx); /* 0x2B027B93: push edx */ 5594 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027B94: call dword ptr [0x2b0b60cc] */ 5595 RECOMP_FLAGS_IN(); 5596 ecx = MEM32(eax); /* 0x2B027B9A: mov ecx, dword ptr [eax] */ 5597 MEM32(ebp + (-0x54)) = ecx; /* 0x2B027B9C: mov dword ptr [ebp - 0x54], ecx */ 5598 edx = MEM32(eax + 0x4); /* 0x2B027B9F: mov edx, dword ptr [eax + 4] */ 5599 MEM32(ebp + (-0x50)) = edx; /* 0x2B027BA2: mov dword ptr [ebp - 0x50], edx */ 5600 eax = MEM32(eax + 0x8); /* 0x2B027BA5: mov eax, dword ptr [eax + 8] */ 5601 ecx = ebp + (-0x54); /* 0x2B027BA8: lea ecx, [ebp - 0x54] */ 5602 PUSH32(esp, ecx); /* 0x2B027BAB: push ecx */ 5603 edx = ebp + (-0x6C); /* 0x2B027BAC: lea edx, [ebp - 0x6c] */ 5604 MEM32(ebp + (-0x4C)) = eax; /* 0x2B027BAF: mov dword ptr [ebp - 0x4c], eax */ 5605 eax = MEM32(ebp + 0x8); /* 0x2B027BB2: mov eax, dword ptr [ebp + 8] */ 5606 PUSH32(esp, edx); /* 0x2B027BB5: push edx */ 5607 PUSH32(esp, eax); /* 0x2B027BB6: push eax */ 5608 ecx = ebp + (-0x40); /* 0x2B027BB7: lea ecx, [ebp - 0x40] */ 5609 PUSH32(esp, ecx); /* 0x2B027BBA: push ecx */ 5610 ecx = ebp + (-0xCC); /* 0x2B027BBB: lea ecx, [ebp - 0xcc] */ 5611 RECOMP_ICALL(MEM32(0x2B0B60E4)); /* 0x2B027BC1: call dword ptr [0x2b0b60e4] */ 5612 RECOMP_FLAGS_IN(); 5613 ecx = eax; /* 0x2B027BC7: mov ecx, eax */ 5614 RECOMP_ICALL(MEM32(0x2B0B60E0)); /* 0x2B027BC9: call dword ptr [0x2b0b60e0] */ 5615 RECOMP_FLAGS_IN(); 5616 ecx = MEM32(eax); /* 0x2B027BCF: mov ecx, dword ptr [eax] */ 5617 edx = esi; /* 0x2B027BD1: mov edx, esi */ 5618 MEM32(edx) = ecx; /* 0x2B027BD3: mov dword ptr [edx], ecx */ 5619 ecx = MEM32(eax + 0x4); /* 0x2B027BD5: mov ecx, dword ptr [eax + 4] */ 5620 MEM32(edx + 0x4) = ecx; /* 0x2B027BD8: mov dword ptr [edx + 4], ecx */ 5621 ecx = MEM32(ebp + (-0x10)); /* 0x2B027BDB: mov ecx, dword ptr [ebp - 0x10] */ 5622 eax = MEM32(eax + 0x8); /* 0x2B027BDE: mov eax, dword ptr [eax + 8] */ 5623 PUSH32(esp, ecx); /* 0x2B027BE1: push ecx */ 5624 ecx = edi + 0x34; /* 0x2B027BE2: lea ecx, [edi + 0x34] */ 5625 MEM32(edx + 0x8) = eax; /* 0x2B027BE5: mov dword ptr [edx + 8], eax */ 5626 PUSH32(esp, ecx); /* 0x2B027BE8: push ecx */ 5627 edx = ebp + (-0xDC); /* 0x2B027BE9: lea edx, [ebp - 0xdc] */ 5628 PUSH32(esp, edx); /* 0x2B027BEF: push edx */ 5629 RECOMP_ICALL(MEM32(0x2B0B6100)); /* 0x2B027BF0: call dword ptr [0x2b0b6100] */ 5630 RECOMP_FLAGS_IN(); 5631 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027BF6: fld dword ptr [ebp + 8] */ 5632 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x2B027BF9: fmul dword ptr [ebp - 0xa4] */ 5633 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2B027BFF: fld dword ptr [ebp - 0x10] */ 5634 _st[0] *= (double)*(float*)ADDR(edi + 0x44); /* 0x2B027C02: fmul dword ptr [edi + 0x44] */ 5635 { double _v = fp_pop(); _st[0] += _v; } /* 0x2B027C05: faddp st(1) */ 5636 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x44) = _v; } /* 0x2B027C07: fstp dword ptr [edi + 0x44] */ 5637 fp_push(*(float*)&MEM32(edi + 0xAC)); /* 0x2B027C0A: fld dword ptr [edi + 0xac] */ 5638 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B63D0)); /* 0x2B027C10: fcomp dword ptr [0x2b0b63d0] */ 5639 fp_pop(); 5640 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027C16: fnstsw ax */ 5641 /* test HI8(eax), 1 */ /* 0x2B027C18: test ah, 1 */ 5642 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5643 _cf = 0; 5644 _flag_k = FK_NARROW(FK_TEST, 24); 5645 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027C4D; /* 0x2B027C1B: jne 0x2b027c4d */ 5646 L_2B027C1D: 5647 eax = ebp + (-0x60); /* 0x2B027C1D: lea eax, [ebp - 0x60] */ 5648 PUSH32(esp, eax); /* 0x2B027C20: push eax */ 5649 ecx = ebp + (-0x98); /* 0x2B027C21: lea ecx, [ebp - 0x98] */ 5650 PUSH32(esp, ecx); /* 0x2B027C27: push ecx */ 5651 ecx = esi; /* 0x2B027C28: mov ecx, esi */ 5652 RECOMP_ICALL(MEM32(0x2B0B60DC)); /* 0x2B027C2A: call dword ptr [0x2b0b60dc] */ 5653 RECOMP_FLAGS_IN(); 5654 ecx = eax; /* 0x2B027C30: mov ecx, eax */ 5655 RECOMP_ICALL(MEM32(0x2B0B60F4)); /* 0x2B027C32: call dword ptr [0x2b0b60f4] */ 5656 RECOMP_FLAGS_IN(); 5657 _st[0] = sqrt(_st[0]); /* 0x2B027C38: fsqrt */ 5658 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6560)); /* 0x2B027C3A: fcomp dword ptr [0x2b0b6560] */ 5659 fp_pop(); 5660 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027C40: fnstsw ax */ 5661 /* test HI8(eax), 1 */ /* 0x2B027C42: test ah, 1 */ 5662 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5663 _cf = 0; 5664 _flag_k = FK_NARROW(FK_TEST, 24); 5665 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027C4D; /* 0x2B027C45: je 0x2b027c4d */ 5666 L_2B027C47: 5667 MEM8(edi + 0x99) = (uint8_t)(LO8(ebx)); /* 0x2B027C47: mov byte ptr [edi + 0x99], bl */ 5668 L_2B027C4D: 5669 ecx = ebp + (-0xC0); /* 0x2B027C4D: lea ecx, [ebp - 0xc0] */ 5670 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B027C53: mov dword ptr [ebp - 4], 0xffffffff */ 5671 RECOMP_ICALL(0x2B012D80u); /* 0x2B027C5A: call 0x2b012d80 */ /* not lifted */ 5672 RECOMP_FLAGS_IN(); 5673 ecx = MEM32(ebp + (-0xC)); /* 0x2B027C5F: mov ecx, dword ptr [ebp - 0xc] */ 5674 edi = POP32_VAL(esp); /* 0x2B027C62: pop edi */ 5675 esi = POP32_VAL(esp); /* 0x2B027C63: pop esi */ 5676 ebx = POP32_VAL(esp); /* 0x2B027C64: pop ebx */ 5677 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027C65: mov dword ptr fs:[0], ecx */ 5678 esp = ebp; /* 0x2B027C6C: mov esp, ebp */ 5679 ebp = POP32_VAL(esp); /* 0x2B027C6E: pop ebp */ 5680 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027C6F: ret 4 */ 5681 RECOMP_REGS_OUT(); 5682 } 5683 5684 void sub_2B0277CA(void) { 5685 int _fpu_cmp = 0; 5686 uint32_t _cf = 0; 5687 int _df = 1; 5688 uint32_t _flag_k = FK_NONE; 5689 uint32_t _flag_a = 0, _flag_b = 0; 5690 uint32_t _itail_tgt = 0; 5691 RECOMP_REGS_LOCALS 5692 RECOMP_ENTER(0x2B0277CAu); 5693 5694 goto L_2B0277CA; 5695 L_2B0277B7: 5696 ecx = MEM32(esi + 0x4); /* 0x2B0277B7: mov ecx, dword ptr [esi + 4] */ 5697 /* cmp ecx, ebx */ /* 0x2B0277BA: cmp ecx, ebx */ 5698 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5700 _flag_k = FK_CMP; 5701 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0277C2; /* 0x2B0277BC: jne 0x2b0277c2 */ 5702 L_2B0277BE: 5703 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5704 eax = 0; /* 0x2B0277BE: xor eax, eax */ 5705 _cf = 0; 5706 _flag_k = FK_TEST; 5707 goto L_2B0277CA; /* 0x2B0277C0: jmp 0x2b0277ca */ 5708 L_2B0277C2: 5709 eax = MEM32(esi + 0x8); /* 0x2B0277C2: mov eax, dword ptr [esi + 8] */ 5710 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5712 eax = eax - ecx; /* 0x2B0277C5: sub eax, ecx */ 5713 _flag_k = FK_CMP; 5714 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0277C7: sar eax, 4 */ 5715 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5716 eax = (uint32_t)((int32_t)eax >> 4u); 5717 L_2B0277CA: 5718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5719 eax = eax - 1; /* 0x2B0277CA: dec eax */ 5720 _flag_k = FK_DEC; 5721 /* cmp edi, eax */ /* 0x2B0277CB: cmp edi, eax */ 5722 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5724 _flag_k = FK_CMP; 5725 if (CMP_GE(_flag_a, _flag_b)) goto L_2B027B2E; /* 0x2B0277CD: jge 0x2b027b2e */ 5726 L_2B0277D3: 5727 PUSH32(esp, edi); /* 0x2B0277D3: push edi */ 5728 edx = ebp + (-0x34); /* 0x2B0277D4: lea edx, [ebp - 0x34] */ 5729 PUSH32(esp, edx); /* 0x2B0277D7: push edx */ 5730 ecx = esi; /* 0x2B0277D8: mov ecx, esi */ 5731 RECOMP_ICALL(0x2B0224C0u); /* 0x2B0277DA: call 0x2b0224c0 */ /* not lifted */ 5732 RECOMP_FLAGS_IN(); 5733 eax = edi + 0x1; /* 0x2B0277DF: lea eax, [edi + 1] */ 5734 PUSH32(esp, eax); /* 0x2B0277E2: push eax */ 5735 MEM32(ebp + (-0xA8)) = eax; /* 0x2B0277E3: mov dword ptr [ebp - 0xa8], eax */ 5736 eax = ebp + (-0x24); /* 0x2B0277E9: lea eax, [ebp - 0x24] */ 5737 PUSH32(esp, eax); /* 0x2B0277EC: push eax */ 5738 ecx = esi; /* 0x2B0277ED: mov ecx, esi */ 5739 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B0277EF: mov byte ptr [ebp - 4], 3 */ 5740 RECOMP_ICALL(0x2B0224C0u); /* 0x2B0277F3: call 0x2b0224c0 */ /* not lifted */ 5741 RECOMP_FLAGS_IN(); 5742 edx = MEM32(ebp + (-0x14)); /* 0x2B0277F8: mov edx, dword ptr [ebp - 0x14] */ 5743 ecx = ebp + (-0x34); /* 0x2B0277FB: lea ecx, [ebp - 0x34] */ 5744 PUSH32(esp, ecx); /* 0x2B0277FE: push ecx */ 5745 ecx = edx + 0x6C; /* 0x2B0277FF: lea ecx, [edx + 0x6c] */ 5746 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B027802: mov byte ptr [ebp - 4], 4 */ 5747 RECOMP_ICALL(0x2B028450u); /* 0x2B027806: call 0x2b028450 */ /* not lifted */ 5748 RECOMP_FLAGS_IN(); 5749 ecx = eax; /* 0x2B02780B: mov ecx, eax */ 5750 edx = MEM32(ecx); /* 0x2B02780D: mov edx, dword ptr [ecx] */ 5751 MEM32(ebp + (-0x40)) = edx; /* 0x2B02780F: mov dword ptr [ebp - 0x40], edx */ 5752 edx = MEM32(ecx + 0x4); /* 0x2B027812: mov edx, dword ptr [ecx + 4] */ 5753 ecx = MEM32(ecx + 0x8); /* 0x2B027815: mov ecx, dword ptr [ecx + 8] */ 5754 MEM32(ebp + (-0x3C)) = edx; /* 0x2B027818: mov dword ptr [ebp - 0x3c], edx */ 5755 MEM32(ebp + (-0x38)) = ecx; /* 0x2B02781B: mov dword ptr [ebp - 0x38], ecx */ 5756 edx = eax + 0xC; /* 0x2B02781E: lea edx, [eax + 0xc] */ 5757 ecx = MEM32(edx); /* 0x2B027821: mov ecx, dword ptr [edx] */ 5758 MEM32(ebp + (-0x7C)) = ecx; /* 0x2B027823: mov dword ptr [ebp - 0x7c], ecx */ 5759 ecx = MEM32(edx + 0x4); /* 0x2B027826: mov ecx, dword ptr [edx + 4] */ 5760 MEM32(ebp + (-0x78)) = ecx; /* 0x2B027829: mov dword ptr [ebp - 0x78], ecx */ 5761 ecx = MEM32(edx + 0x8); /* 0x2B02782C: mov ecx, dword ptr [edx + 8] */ 5762 MEM32(ebp + (-0x74)) = ecx; /* 0x2B02782F: mov dword ptr [ebp - 0x74], ecx */ 5763 edx = MEM32(edx + 0xC); /* 0x2B027832: mov edx, dword ptr [edx + 0xc] */ 5764 MEM32(ebp + (-0x70)) = edx; /* 0x2B027835: mov dword ptr [ebp - 0x70], edx */ 5765 edx = MEM32(ebp + (-0x14)); /* 0x2B027838: mov edx, dword ptr [ebp - 0x14] */ 5766 eax = MEM32(eax + 0x1C); /* 0x2B02783B: mov eax, dword ptr [eax + 0x1c] */ 5767 ecx = ebp + (-0x24); /* 0x2B02783E: lea ecx, [ebp - 0x24] */ 5768 PUSH32(esp, ecx); /* 0x2B027841: push ecx */ 5769 ecx = edx + 0x6C; /* 0x2B027842: lea ecx, [edx + 0x6c] */ 5770 MEM32(ebp + (-0xA0)) = eax; /* 0x2B027845: mov dword ptr [ebp - 0xa0], eax */ 5771 RECOMP_ICALL(0x2B028450u); /* 0x2B02784B: call 0x2b028450 */ /* not lifted */ 5772 RECOMP_FLAGS_IN(); 5773 ecx = eax; /* 0x2B027850: mov ecx, eax */ 5774 edx = MEM32(ecx); /* 0x2B027852: mov edx, dword ptr [ecx] */ 5775 MEM32(ebp + (-0x60)) = edx; /* 0x2B027854: mov dword ptr [ebp - 0x60], edx */ 5776 edx = MEM32(ecx + 0x4); /* 0x2B027857: mov edx, dword ptr [ecx + 4] */ 5777 MEM32(ebp + (-0x5C)) = edx; /* 0x2B02785A: mov dword ptr [ebp - 0x5c], edx */ 5778 ecx = MEM32(ecx + 0x8); /* 0x2B02785D: mov ecx, dword ptr [ecx + 8] */ 5779 MEM32(ebp + (-0x58)) = ecx; /* 0x2B027860: mov dword ptr [ebp - 0x58], ecx */ 5780 edx = eax + 0xC; /* 0x2B027863: lea edx, [eax + 0xc] */ 5781 ecx = MEM32(edx); /* 0x2B027866: mov ecx, dword ptr [edx] */ 5782 MEM32(ebp + (-0x8C)) = ecx; /* 0x2B027868: mov dword ptr [ebp - 0x8c], ecx */ 5783 ecx = MEM32(edx + 0x4); /* 0x2B02786E: mov ecx, dword ptr [edx + 4] */ 5784 MEM32(ebp + (-0x88)) = ecx; /* 0x2B027871: mov dword ptr [ebp - 0x88], ecx */ 5785 ecx = MEM32(edx + 0x8); /* 0x2B027877: mov ecx, dword ptr [edx + 8] */ 5786 MEM32(ebp + (-0x84)) = ecx; /* 0x2B02787A: mov dword ptr [ebp - 0x84], ecx */ 5787 edx = MEM32(edx + 0xC); /* 0x2B027880: mov edx, dword ptr [edx + 0xc] */ 5788 ecx = MEM32(ebp + (-0x40)); /* 0x2B027883: mov ecx, dword ptr [ebp - 0x40] */ 5789 MEM32(ebp + (-0x80)) = edx; /* 0x2B027886: mov dword ptr [ebp - 0x80], edx */ 5790 eax = MEM32(eax + 0x1C); /* 0x2B027889: mov eax, dword ptr [eax + 0x1c] */ 5791 edx = MEM32(ebp + (-0x3C)); /* 0x2B02788C: mov edx, dword ptr [ebp - 0x3c] */ 5792 MEM32(ebp + (-0x54)) = ecx; /* 0x2B02788F: mov dword ptr [ebp - 0x54], ecx */ 5793 ecx = ebp + (-0x60); /* 0x2B027892: lea ecx, [ebp - 0x60] */ 5794 MEM32(ebp + (-0xAC)) = eax; /* 0x2B027895: mov dword ptr [ebp - 0xac], eax */ 5795 eax = MEM32(ebp + (-0x38)); /* 0x2B02789B: mov eax, dword ptr [ebp - 0x38] */ 5796 PUSH32(esp, ecx); /* 0x2B02789E: push ecx */ 5797 ecx = ebp + (-0x54); /* 0x2B02789F: lea ecx, [ebp - 0x54] */ 5798 MEM32(ebp + (-0x50)) = edx; /* 0x2B0278A2: mov dword ptr [ebp - 0x50], edx */ 5799 MEM32(ebp + (-0x4C)) = eax; /* 0x2B0278A5: mov dword ptr [ebp - 0x4c], eax */ 5800 RECOMP_ICALL(MEM32(0x2B0B60E8)); /* 0x2B0278A8: call dword ptr [0x2b0b60e8] */ 5801 RECOMP_FLAGS_IN(); 5802 edx = MEM32(eax); /* 0x2B0278AE: mov edx, dword ptr [eax] */ 5803 MEM32(ebp + (-0x6C)) = edx; /* 0x2B0278B0: mov dword ptr [ebp - 0x6c], edx */ 5804 ecx = MEM32(eax + 0x4); /* 0x2B0278B3: mov ecx, dword ptr [eax + 4] */ 5805 MEM32(ebp + (-0x68)) = ecx; /* 0x2B0278B6: mov dword ptr [ebp - 0x68], ecx */ 5806 edx = MEM32(eax + 0x8); /* 0x2B0278B9: mov edx, dword ptr [eax + 8] */ 5807 ecx = ebp + (-0x6C); /* 0x2B0278BC: lea ecx, [ebp - 0x6c] */ 5808 MEM32(ebp + (-0x64)) = edx; /* 0x2B0278BF: mov dword ptr [ebp - 0x64], edx */ 5809 RECOMP_ICALL(MEM32(0x2B0B60F4)); /* 0x2B0278C2: call dword ptr [0x2b0b60f4] */ 5810 RECOMP_FLAGS_IN(); 5811 _st[0] = sqrt(_st[0]); /* 0x2B0278C8: fsqrt */ 5812 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B656C)); /* 0x2B0278CA: fcom dword ptr [0x2b0b656c] */ 5813 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0278D0: fnstsw ax */ 5814 /* test HI8(eax), 1 */ /* 0x2B0278D2: test ah, 1 */ 5815 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5816 _cf = 0; 5817 _flag_k = FK_NARROW(FK_TEST, 24); 5818 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02796A; /* 0x2B0278D5: jne 0x2b02796a */ 5819 L_2B0278DB: 5820 fp_push(_st[0]); /* 0x2B0278DB: fld st(0) */ 5821 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2B0278DD: fadd dword ptr [ebp - 0x10] */ 5822 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B0278E0: fst dword ptr [ebp - 0x10] */ 5823 _st[0] /= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x2B0278E3: fdiv dword ptr [ebp - 0x48] */ 5824 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0xB0)) = _v; } /* 0x2B0278E6: fst dword ptr [ebp - 0xb0] */ 5825 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x44))); /* 0x2B0278EC: fcomp dword ptr [ebp - 0x44] */ 5826 fp_pop(); 5827 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0278EF: fnstsw ax */ 5828 /* test HI8(eax), 0x41u */ /* 0x2B0278F1: test ah, 0x41 */ 5829 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5830 _cf = 0; 5831 _flag_k = FK_NARROW(FK_TEST, 24); 5832 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027A00; /* 0x2B0278F4: je 0x2b027a00 */ 5833 L_2B0278FA: 5834 eax = MEM32(ebp + (-0x9C)); /* 0x2B0278FA: mov eax, dword ptr [ebp - 0x9c] */ 5835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu); 5836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5837 eax = eax + 0xFFFFFFFEu; /* 0x2B027900: add eax, -2 */ 5838 _flag_k = FK_ADD; 5839 /* cmp edi, eax */ /* 0x2B027903: cmp edi, eax */ 5840 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5842 _flag_k = FK_CMP; 5843 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027A00; /* 0x2B027905: je 0x2b027a00 */ 5844 L_2B02790B: 5845 ecx = MEM32(ebp + (-0x1C)); /* 0x2B02790B: mov ecx, dword ptr [ebp - 0x1c] */ 5846 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B02790E: fstp st(0) */ 5847 edx = MEM32(ebp + (-0x20)); /* 0x2B027910: mov edx, dword ptr [ebp - 0x20] */ 5848 PUSH32(esp, ecx); /* 0x2B027913: push ecx */ 5849 PUSH32(esp, edx); /* 0x2B027914: push edx */ 5850 ecx = ebp + (-0x24); /* 0x2B027915: lea ecx, [ebp - 0x24] */ 5851 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027918: mov byte ptr [ebp - 4], 3 */ 5852 RECOMP_ICALL(0x2B0292C0u); /* 0x2B02791C: call 0x2b0292c0 */ /* not lifted */ 5853 RECOMP_FLAGS_IN(); 5854 eax = MEM32(ebp + (-0x20)); /* 0x2B027921: mov eax, dword ptr [ebp - 0x20] */ 5855 PUSH32(esp, eax); /* 0x2B027924: push eax */ 5856 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027925: call 0x2b0ab1ba */ /* not lifted */ 5857 RECOMP_FLAGS_IN(); 5858 ecx = MEM32(ebp + (-0x2C)); /* 0x2B02792A: mov ecx, dword ptr [ebp - 0x2c] */ 5859 edx = MEM32(ebp + (-0x30)); /* 0x2B02792D: mov edx, dword ptr [ebp - 0x30] */ 5860 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5861 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5862 esp = esp + 4; /* 0x2B027930: add esp, 4 */ 5863 _flag_k = FK_ADD; 5864 PUSH32(esp, ecx); /* 0x2B027933: push ecx */ 5865 PUSH32(esp, edx); /* 0x2B027934: push edx */ 5866 ecx = ebp + (-0x34); /* 0x2B027935: lea ecx, [ebp - 0x34] */ 5867 MEM32(ebp + (-0x20)) = ebx; /* 0x2B027938: mov dword ptr [ebp - 0x20], ebx */ 5868 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B02793B: mov dword ptr [ebp - 0x1c], ebx */ 5869 MEM32(ebp + (-0x18)) = ebx; /* 0x2B02793E: mov dword ptr [ebp - 0x18], ebx */ 5870 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B027941: mov byte ptr [ebp - 4], 2 */ 5871 RECOMP_ICALL(0x2B0292C0u); /* 0x2B027945: call 0x2b0292c0 */ /* not lifted */ 5872 RECOMP_FLAGS_IN(); 5873 eax = MEM32(ebp + (-0x30)); /* 0x2B02794A: mov eax, dword ptr [ebp - 0x30] */ 5874 PUSH32(esp, eax); /* 0x2B02794D: push eax */ 5875 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02794E: call 0x2b0ab1ba */ /* not lifted */ 5876 RECOMP_FLAGS_IN(); 5877 edi = MEM32(ebp + (-0xA8)); /* 0x2B027953: mov edi, dword ptr [ebp - 0xa8] */ 5878 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5879 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5880 esp = esp + 4; /* 0x2B027959: add esp, 4 */ 5881 _flag_k = FK_ADD; 5882 MEM32(ebp + (-0x30)) = ebx; /* 0x2B02795C: mov dword ptr [ebp - 0x30], ebx */ 5883 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B02795F: mov dword ptr [ebp - 0x2c], ebx */ 5884 MEM32(ebp + (-0x28)) = ebx; /* 0x2B027962: mov dword ptr [ebp - 0x28], ebx */ 5885 RECOMP_BACKEDGE(); 5886 goto L_2B0277B7; /* 0x2B027965: jmp 0x2b0277b7 */ 5887 L_2B02796A: 5888 ecx = MEM32(ebp + (-0x1C)); /* 0x2B02796A: mov ecx, dword ptr [ebp - 0x1c] */ 5889 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B02796D: fstp st(0) */ 5890 edx = MEM32(ebp + (-0x20)); /* 0x2B02796F: mov edx, dword ptr [ebp - 0x20] */ 5891 PUSH32(esp, ecx); /* 0x2B027972: push ecx */ 5892 PUSH32(esp, edx); /* 0x2B027973: push edx */ 5893 ecx = ebp + (-0x24); /* 0x2B027974: lea ecx, [ebp - 0x24] */ 5894 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027977: mov byte ptr [ebp - 4], 3 */ 5895 RECOMP_ICALL(0x2B0292C0u); /* 0x2B02797B: call 0x2b0292c0 */ /* not lifted */ 5896 RECOMP_FLAGS_IN(); 5897 eax = MEM32(ebp + (-0x20)); /* 0x2B027980: mov eax, dword ptr [ebp - 0x20] */ 5898 PUSH32(esp, eax); /* 0x2B027983: push eax */ 5899 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027984: call 0x2b0ab1ba */ /* not lifted */ 5900 RECOMP_FLAGS_IN(); 5901 ecx = MEM32(ebp + (-0x2C)); /* 0x2B027989: mov ecx, dword ptr [ebp - 0x2c] */ 5902 edx = MEM32(ebp + (-0x30)); /* 0x2B02798C: mov edx, dword ptr [ebp - 0x30] */ 5903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5905 esp = esp + 4; /* 0x2B02798F: add esp, 4 */ 5906 _flag_k = FK_ADD; 5907 PUSH32(esp, ecx); /* 0x2B027992: push ecx */ 5908 PUSH32(esp, edx); /* 0x2B027993: push edx */ 5909 ecx = ebp + (-0x34); /* 0x2B027994: lea ecx, [ebp - 0x34] */ 5910 MEM32(ebp + (-0x20)) = ebx; /* 0x2B027997: mov dword ptr [ebp - 0x20], ebx */ 5911 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B02799A: mov dword ptr [ebp - 0x1c], ebx */ 5912 MEM32(ebp + (-0x18)) = ebx; /* 0x2B02799D: mov dword ptr [ebp - 0x18], ebx */ 5913 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B0279A0: mov byte ptr [ebp - 4], 2 */ 5914 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0279A4: call 0x2b0292c0 */ /* not lifted */ 5915 RECOMP_FLAGS_IN(); 5916 eax = MEM32(ebp + (-0x30)); /* 0x2B0279A9: mov eax, dword ptr [ebp - 0x30] */ 5917 PUSH32(esp, eax); /* 0x2B0279AC: push eax */ 5918 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0279AD: call 0x2b0ab1ba */ /* not lifted */ 5919 RECOMP_FLAGS_IN(); 5920 ecx = MEM32(ebp + (-0xB8)); /* 0x2B0279B2: mov ecx, dword ptr [ebp - 0xb8] */ 5921 edx = MEM32(ebp + (-0xBC)); /* 0x2B0279B8: mov edx, dword ptr [ebp - 0xbc] */ 5922 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5924 esp = esp + 4; /* 0x2B0279BE: add esp, 4 */ 5925 _flag_k = FK_ADD; 5926 PUSH32(esp, ecx); /* 0x2B0279C1: push ecx */ 5927 PUSH32(esp, edx); /* 0x2B0279C2: push edx */ 5928 ecx = ebp + (-0xC0); /* 0x2B0279C3: lea ecx, [ebp - 0xc0] */ 5929 MEM32(ebp + (-0x30)) = ebx; /* 0x2B0279C9: mov dword ptr [ebp - 0x30], ebx */ 5930 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B0279CC: mov dword ptr [ebp - 0x2c], ebx */ 5931 MEM32(ebp + (-0x28)) = ebx; /* 0x2B0279CF: mov dword ptr [ebp - 0x28], ebx */ 5932 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0279D2: mov dword ptr [ebp - 4], 0xffffffff */ 5933 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0279D9: call 0x2b0292c0 */ /* not lifted */ 5934 RECOMP_FLAGS_IN(); 5935 eax = MEM32(ebp + (-0xBC)); /* 0x2B0279DE: mov eax, dword ptr [ebp - 0xbc] */ 5936 PUSH32(esp, eax); /* 0x2B0279E4: push eax */ 5937 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0279E5: call 0x2b0ab1ba */ /* not lifted */ 5938 RECOMP_FLAGS_IN(); 5939 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5940 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5941 esp = esp + 4; /* 0x2B0279EA: add esp, 4 */ 5942 _flag_k = FK_ADD; 5943 edi = POP32_VAL(esp); /* 0x2B0279ED: pop edi */ 5944 esi = POP32_VAL(esp); /* 0x2B0279EE: pop esi */ 5945 ebx = POP32_VAL(esp); /* 0x2B0279EF: pop ebx */ 5946 ecx = MEM32(ebp + (-0xC)); /* 0x2B0279F0: mov ecx, dword ptr [ebp - 0xc] */ 5947 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0279F3: mov dword ptr fs:[0], ecx */ 5948 esp = ebp; /* 0x2B0279FA: mov esp, ebp */ 5949 ebp = POP32_VAL(esp); /* 0x2B0279FC: pop ebp */ 5950 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0279FD: ret 4 */ 5951 L_2B027A00: 5952 _st[0] /= (double)*(float*)ADDR(ebp + (-0x48)); /* 0x2B027A00: fdiv dword ptr [ebp - 0x48] */ 5953 ecx = MEM32(ebp + (-0x60)); /* 0x2B027A03: mov ecx, dword ptr [ebp - 0x60] */ 5954 edx = MEM32(ebp + (-0x5C)); /* 0x2B027A06: mov edx, dword ptr [ebp - 0x5c] */ 5955 eax = MEM32(ebp + (-0x58)); /* 0x2B027A09: mov eax, dword ptr [ebp - 0x58] */ 5956 MEM32(ebp + (-0x54)) = ecx; /* 0x2B027A0C: mov dword ptr [ebp - 0x54], ecx */ 5957 ecx = ebp + (-0x54); /* 0x2B027A0F: lea ecx, [ebp - 0x54] */ 5958 MEM32(ebp + (-0x50)) = edx; /* 0x2B027A12: mov dword ptr [ebp - 0x50], edx */ 5959 MEM32(ebp + (-0x4C)) = eax; /* 0x2B027A15: mov dword ptr [ebp - 0x4c], eax */ 5960 fp_push(*(float*)&MEM32(ebp + (-0xB0))); /* 0x2B027A18: fld dword ptr [ebp - 0xb0] */ 5961 _st[0] -= _st[1]; /* 0x2B027A1E: fsub st(1) */ 5962 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x2B027A20: fld dword ptr [ebp - 0x44] */ 5963 _st[0] -= _st[1]; /* 0x2B027A23: fsub st(1) */ 5964 _st[0] /= _st[2]; /* 0x2B027A25: fdiv st(2) */ 5965 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B027A27: fstp dword ptr [ebp - 0x10] */ 5966 esi = MEM32(ebp + (-0x10)); /* 0x2B027A2A: mov esi, dword ptr [ebp - 0x10] */ 5967 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027A2D: fstp st(0) */ 5968 PUSH32(esp, esi); /* 0x2B027A2F: push esi */ 5969 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027A30: fstp st(0) */ 5970 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027A32: call dword ptr [0x2b0b60cc] */ 5971 RECOMP_FLAGS_IN(); 5972 ecx = MEM32(eax); /* 0x2B027A38: mov ecx, dword ptr [eax] */ 5973 fp_push(*(float*)&MEM32(0x2B0B63D0)); /* 0x2B027A3A: fld dword ptr [0x2b0b63d0] */ 5974 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2B027A40: fsub dword ptr [ebp - 0x10] */ 5975 MEM32(ebp + (-0x98)) = ecx; /* 0x2B027A43: mov dword ptr [ebp - 0x98], ecx */ 5976 edx = MEM32(eax + 0x4); /* 0x2B027A49: mov edx, dword ptr [eax + 4] */ 5977 ecx = MEM32(ebp + (-0x40)); /* 0x2B027A4C: mov ecx, dword ptr [ebp - 0x40] */ 5978 MEM32(ebp + (-0x94)) = edx; /* 0x2B027A4F: mov dword ptr [ebp - 0x94], edx */ 5979 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x2B027A55: fstp dword ptr [ebp - 0x44] */ 5980 eax = MEM32(eax + 0x8); /* 0x2B027A58: mov eax, dword ptr [eax + 8] */ 5981 edx = MEM32(ebp + (-0x3C)); /* 0x2B027A5B: mov edx, dword ptr [ebp - 0x3c] */ 5982 MEM32(ebp + (-0x6C)) = ecx; /* 0x2B027A5E: mov dword ptr [ebp - 0x6c], ecx */ 5983 ecx = MEM32(ebp + (-0x44)); /* 0x2B027A61: mov ecx, dword ptr [ebp - 0x44] */ 5984 MEM32(ebp + (-0x90)) = eax; /* 0x2B027A64: mov dword ptr [ebp - 0x90], eax */ 5985 eax = MEM32(ebp + (-0x38)); /* 0x2B027A6A: mov eax, dword ptr [ebp - 0x38] */ 5986 PUSH32(esp, ecx); /* 0x2B027A6D: push ecx */ 5987 ecx = ebp + (-0x6C); /* 0x2B027A6E: lea ecx, [ebp - 0x6c] */ 5988 MEM32(ebp + (-0x68)) = edx; /* 0x2B027A71: mov dword ptr [ebp - 0x68], edx */ 5989 MEM32(ebp + (-0x64)) = eax; /* 0x2B027A74: mov dword ptr [ebp - 0x64], eax */ 5990 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027A77: call dword ptr [0x2b0b60cc] */ 5991 RECOMP_FLAGS_IN(); 5992 edx = MEM32(eax); /* 0x2B027A7D: mov edx, dword ptr [eax] */ 5993 ecx = MEM32(eax + 0x4); /* 0x2B027A7F: mov ecx, dword ptr [eax + 4] */ 5994 MEM32(ebp + (-0x40)) = edx; /* 0x2B027A82: mov dword ptr [ebp - 0x40], edx */ 5995 edx = MEM32(eax + 0x8); /* 0x2B027A85: mov edx, dword ptr [eax + 8] */ 5996 eax = ebp + (-0x98); /* 0x2B027A88: lea eax, [ebp - 0x98] */ 5997 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B027A8E: mov dword ptr [ebp - 0x3c], ecx */ 5998 PUSH32(esp, eax); /* 0x2B027A91: push eax */ 5999 ecx = ebp + (-0x40); /* 0x2B027A92: lea ecx, [ebp - 0x40] */ 6000 MEM32(ebp + (-0x38)) = edx; /* 0x2B027A95: mov dword ptr [ebp - 0x38], edx */ 6001 RECOMP_ICALL(MEM32(0x2B0B60D4)); /* 0x2B027A98: call dword ptr [0x2b0b60d4] */ 6002 RECOMP_FLAGS_IN(); 6003 ecx = MEM32(ebp + (-0x14)); /* 0x2B027A9E: mov ecx, dword ptr [ebp - 0x14] */ 6004 edx = eax; /* 0x2B027AA1: mov edx, eax */ 6005 edi = MEM32(edx); /* 0x2B027AA3: mov edi, dword ptr [edx] */ 6006 eax = ecx + 0x28; /* 0x2B027AA5: lea eax, [ecx + 0x28] */ 6007 MEM32(eax) = edi; /* 0x2B027AA8: mov dword ptr [eax], edi */ 6008 edi = MEM32(edx + 0x4); /* 0x2B027AAA: mov edi, dword ptr [edx + 4] */ 6009 MEM32(eax + 0x4) = edi; /* 0x2B027AAD: mov dword ptr [eax + 4], edi */ 6010 edx = MEM32(edx + 0x8); /* 0x2B027AB0: mov edx, dword ptr [edx + 8] */ 6011 MEM32(eax + 0x8) = edx; /* 0x2B027AB3: mov dword ptr [eax + 8], edx */ 6012 PUSH32(esp, esi); /* 0x2B027AB6: push esi */ 6013 eax = ebp + (-0x8C); /* 0x2B027AB7: lea eax, [ebp - 0x8c] */ 6014 PUSH32(esp, eax); /* 0x2B027ABD: push eax */ 6015 edx = ebp + (-0x7C); /* 0x2B027ABE: lea edx, [ebp - 0x7c] */ 6016 PUSH32(esp, edx); /* 0x2B027AC1: push edx */ 6017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 6018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6019 ecx = ecx + 0x34u; /* 0x2B027AC2: add ecx, 0x34 */ 6020 _flag_k = FK_ADD; 6021 RECOMP_ICALL(MEM32(0x2B0B6100)); /* 0x2B027AC5: call dword ptr [0x2b0b6100] */ 6022 RECOMP_FLAGS_IN(); 6023 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x2B027ACB: fld dword ptr [ebp - 0x44] */ 6024 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA0)); /* 0x2B027ACE: fmul dword ptr [ebp - 0xa0] */ 6025 ecx = MEM32(ebp + (-0x1C)); /* 0x2B027AD4: mov ecx, dword ptr [ebp - 0x1c] */ 6026 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2B027AD7: fld dword ptr [ebp - 0x10] */ 6027 edx = MEM32(ebp + (-0x20)); /* 0x2B027ADA: mov edx, dword ptr [ebp - 0x20] */ 6028 _st[0] *= (double)*(float*)ADDR(ebp + (-0xAC)); /* 0x2B027ADD: fmul dword ptr [ebp - 0xac] */ 6029 eax = MEM32(ebp + (-0x14)); /* 0x2B027AE3: mov eax, dword ptr [ebp - 0x14] */ 6030 PUSH32(esp, ecx); /* 0x2B027AE6: push ecx */ 6031 PUSH32(esp, edx); /* 0x2B027AE7: push edx */ 6032 { double _v = fp_pop(); _st[0] += _v; } /* 0x2B027AE8: faddp st(1) */ 6033 ecx = ebp + (-0x24); /* 0x2B027AEA: lea ecx, [ebp - 0x24] */ 6034 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027AED: mov byte ptr [ebp - 4], 3 */ 6035 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x44) = _v; } /* 0x2B027AF1: fstp dword ptr [eax + 0x44] */ 6036 RECOMP_ICALL(0x2B0292C0u); /* 0x2B027AF4: call 0x2b0292c0 */ /* not lifted */ 6037 RECOMP_FLAGS_IN(); 6038 eax = MEM32(ebp + (-0x20)); /* 0x2B027AF9: mov eax, dword ptr [ebp - 0x20] */ 6039 PUSH32(esp, eax); /* 0x2B027AFC: push eax */ 6040 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027AFD: call 0x2b0ab1ba */ /* not lifted */ 6041 RECOMP_FLAGS_IN(); 6042 ecx = MEM32(ebp + (-0x2C)); /* 0x2B027B02: mov ecx, dword ptr [ebp - 0x2c] */ 6043 edx = MEM32(ebp + (-0x30)); /* 0x2B027B05: mov edx, dword ptr [ebp - 0x30] */ 6044 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6045 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6046 esp = esp + 4; /* 0x2B027B08: add esp, 4 */ 6047 _flag_k = FK_ADD; 6048 PUSH32(esp, ecx); /* 0x2B027B0B: push ecx */ 6049 PUSH32(esp, edx); /* 0x2B027B0C: push edx */ 6050 ecx = ebp + (-0x34); /* 0x2B027B0D: lea ecx, [ebp - 0x34] */ 6051 MEM32(ebp + (-0x20)) = ebx; /* 0x2B027B10: mov dword ptr [ebp - 0x20], ebx */ 6052 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B027B13: mov dword ptr [ebp - 0x1c], ebx */ 6053 MEM32(ebp + (-0x18)) = ebx; /* 0x2B027B16: mov dword ptr [ebp - 0x18], ebx */ 6054 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B027B19: mov byte ptr [ebp - 4], 2 */ 6055 RECOMP_ICALL(0x2B0292C0u); /* 0x2B027B1D: call 0x2b0292c0 */ /* not lifted */ 6056 RECOMP_FLAGS_IN(); 6057 eax = MEM32(ebp + (-0x30)); /* 0x2B027B22: mov eax, dword ptr [ebp - 0x30] */ 6058 PUSH32(esp, eax); /* 0x2B027B25: push eax */ 6059 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027B26: call 0x2b0ab1ba */ /* not lifted */ 6060 RECOMP_FLAGS_IN(); 6061 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6063 esp = esp + 4; /* 0x2B027B2B: add esp, 4 */ 6064 _flag_k = FK_ADD; 6065 L_2B027B2E: 6066 edi = MEM32(ebp + (-0x14)); /* 0x2B027B2E: mov edi, dword ptr [ebp - 0x14] */ 6067 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027B31: fld dword ptr [ebp + 8] */ 6068 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6568)); /* 0x2B027B34: fcomp dword ptr [0x2b0b6568] */ 6069 fp_pop(); 6070 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027B3A: fnstsw ax */ 6071 /* test HI8(eax), 1 */ /* 0x2B027B3C: test ah, 1 */ 6072 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6073 _cf = 0; 6074 _flag_k = FK_NARROW(FK_TEST, 24); 6075 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027B46; /* 0x2B027B3F: je 0x2b027b46 */ 6076 L_2B027B41: 6077 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027B41: fld dword ptr [ebp + 8] */ 6078 goto L_2B027B4C; /* 0x2B027B44: jmp 0x2b027b4c */ 6079 L_2B027B46: 6080 fp_push(*(float*)&MEM32(0x2B0B6568)); /* 0x2B027B46: fld dword ptr [0x2b0b6568] */ 6081 L_2B027B4C: 6082 fp_push(*(float*)&MEM32(0x2B0B6568)); /* 0x2B027B4C: fld dword ptr [0x2b0b6568] */ 6083 esi = edi + 0x28; /* 0x2B027B52: lea esi, [edi + 0x28] */ 6084 _st[0] -= _st[1]; /* 0x2B027B55: fsub st(1) */ 6085 ecx = esi; /* 0x2B027B57: mov ecx, esi */ 6086 edx = MEM32(ecx); /* 0x2B027B59: mov edx, dword ptr [ecx] */ 6087 eax = MEM32(ecx + 0x4); /* 0x2B027B5B: mov eax, dword ptr [ecx + 4] */ 6088 ecx = MEM32(ecx + 0x8); /* 0x2B027B5E: mov ecx, dword ptr [ecx + 8] */ 6089 _st[0] += (double)*(float*)ADDR(0x2B0B6564); /* 0x2B027B61: fadd dword ptr [0x2b0b6564] */ 6090 MEM32(ebp + (-0x98)) = edx; /* 0x2B027B67: mov dword ptr [ebp - 0x98], edx */ 6091 MEM32(ebp + (-0x90)) = ecx; /* 0x2B027B6D: mov dword ptr [ebp - 0x90], ecx */ 6092 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2B027B73: fstp dword ptr [ebp + 8] */ 6093 ecx = ebp + (-0x98); /* 0x2B027B76: lea ecx, [ebp - 0x98] */ 6094 MEM32(ebp + (-0x94)) = eax; /* 0x2B027B7C: mov dword ptr [ebp - 0x94], eax */ 6095 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027B82: fstp st(0) */ 6096 fp_push(*(float*)&MEM32(0x2B0B63D0)); /* 0x2B027B84: fld dword ptr [0x2b0b63d0] */ 6097 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x2B027B8A: fsub dword ptr [ebp + 8] */ 6098 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B027B8D: fstp dword ptr [ebp - 0x10] */ 6099 edx = MEM32(ebp + (-0x10)); /* 0x2B027B90: mov edx, dword ptr [ebp - 0x10] */ 6100 PUSH32(esp, edx); /* 0x2B027B93: push edx */ 6101 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027B94: call dword ptr [0x2b0b60cc] */ 6102 RECOMP_FLAGS_IN(); 6103 ecx = MEM32(eax); /* 0x2B027B9A: mov ecx, dword ptr [eax] */ 6104 MEM32(ebp + (-0x54)) = ecx; /* 0x2B027B9C: mov dword ptr [ebp - 0x54], ecx */ 6105 edx = MEM32(eax + 0x4); /* 0x2B027B9F: mov edx, dword ptr [eax + 4] */ 6106 MEM32(ebp + (-0x50)) = edx; /* 0x2B027BA2: mov dword ptr [ebp - 0x50], edx */ 6107 eax = MEM32(eax + 0x8); /* 0x2B027BA5: mov eax, dword ptr [eax + 8] */ 6108 ecx = ebp + (-0x54); /* 0x2B027BA8: lea ecx, [ebp - 0x54] */ 6109 PUSH32(esp, ecx); /* 0x2B027BAB: push ecx */ 6110 edx = ebp + (-0x6C); /* 0x2B027BAC: lea edx, [ebp - 0x6c] */ 6111 MEM32(ebp + (-0x4C)) = eax; /* 0x2B027BAF: mov dword ptr [ebp - 0x4c], eax */ 6112 eax = MEM32(ebp + 0x8); /* 0x2B027BB2: mov eax, dword ptr [ebp + 8] */ 6113 PUSH32(esp, edx); /* 0x2B027BB5: push edx */ 6114 PUSH32(esp, eax); /* 0x2B027BB6: push eax */ 6115 ecx = ebp + (-0x40); /* 0x2B027BB7: lea ecx, [ebp - 0x40] */ 6116 PUSH32(esp, ecx); /* 0x2B027BBA: push ecx */ 6117 ecx = ebp + (-0xCC); /* 0x2B027BBB: lea ecx, [ebp - 0xcc] */ 6118 RECOMP_ICALL(MEM32(0x2B0B60E4)); /* 0x2B027BC1: call dword ptr [0x2b0b60e4] */ 6119 RECOMP_FLAGS_IN(); 6120 ecx = eax; /* 0x2B027BC7: mov ecx, eax */ 6121 RECOMP_ICALL(MEM32(0x2B0B60E0)); /* 0x2B027BC9: call dword ptr [0x2b0b60e0] */ 6122 RECOMP_FLAGS_IN(); 6123 ecx = MEM32(eax); /* 0x2B027BCF: mov ecx, dword ptr [eax] */ 6124 edx = esi; /* 0x2B027BD1: mov edx, esi */ 6125 MEM32(edx) = ecx; /* 0x2B027BD3: mov dword ptr [edx], ecx */ 6126 ecx = MEM32(eax + 0x4); /* 0x2B027BD5: mov ecx, dword ptr [eax + 4] */ 6127 MEM32(edx + 0x4) = ecx; /* 0x2B027BD8: mov dword ptr [edx + 4], ecx */ 6128 ecx = MEM32(ebp + (-0x10)); /* 0x2B027BDB: mov ecx, dword ptr [ebp - 0x10] */ 6129 eax = MEM32(eax + 0x8); /* 0x2B027BDE: mov eax, dword ptr [eax + 8] */ 6130 PUSH32(esp, ecx); /* 0x2B027BE1: push ecx */ 6131 ecx = edi + 0x34; /* 0x2B027BE2: lea ecx, [edi + 0x34] */ 6132 MEM32(edx + 0x8) = eax; /* 0x2B027BE5: mov dword ptr [edx + 8], eax */ 6133 PUSH32(esp, ecx); /* 0x2B027BE8: push ecx */ 6134 edx = ebp + (-0xDC); /* 0x2B027BE9: lea edx, [ebp - 0xdc] */ 6135 PUSH32(esp, edx); /* 0x2B027BEF: push edx */ 6136 RECOMP_ICALL(MEM32(0x2B0B6100)); /* 0x2B027BF0: call dword ptr [0x2b0b6100] */ 6137 RECOMP_FLAGS_IN(); 6138 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027BF6: fld dword ptr [ebp + 8] */ 6139 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x2B027BF9: fmul dword ptr [ebp - 0xa4] */ 6140 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2B027BFF: fld dword ptr [ebp - 0x10] */ 6141 _st[0] *= (double)*(float*)ADDR(edi + 0x44); /* 0x2B027C02: fmul dword ptr [edi + 0x44] */ 6142 { double _v = fp_pop(); _st[0] += _v; } /* 0x2B027C05: faddp st(1) */ 6143 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x44) = _v; } /* 0x2B027C07: fstp dword ptr [edi + 0x44] */ 6144 fp_push(*(float*)&MEM32(edi + 0xAC)); /* 0x2B027C0A: fld dword ptr [edi + 0xac] */ 6145 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B63D0)); /* 0x2B027C10: fcomp dword ptr [0x2b0b63d0] */ 6146 fp_pop(); 6147 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027C16: fnstsw ax */ 6148 /* test HI8(eax), 1 */ /* 0x2B027C18: test ah, 1 */ 6149 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6150 _cf = 0; 6151 _flag_k = FK_NARROW(FK_TEST, 24); 6152 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027C4D; /* 0x2B027C1B: jne 0x2b027c4d */ 6153 L_2B027C1D: 6154 eax = ebp + (-0x60); /* 0x2B027C1D: lea eax, [ebp - 0x60] */ 6155 PUSH32(esp, eax); /* 0x2B027C20: push eax */ 6156 ecx = ebp + (-0x98); /* 0x2B027C21: lea ecx, [ebp - 0x98] */ 6157 PUSH32(esp, ecx); /* 0x2B027C27: push ecx */ 6158 ecx = esi; /* 0x2B027C28: mov ecx, esi */ 6159 RECOMP_ICALL(MEM32(0x2B0B60DC)); /* 0x2B027C2A: call dword ptr [0x2b0b60dc] */ 6160 RECOMP_FLAGS_IN(); 6161 ecx = eax; /* 0x2B027C30: mov ecx, eax */ 6162 RECOMP_ICALL(MEM32(0x2B0B60F4)); /* 0x2B027C32: call dword ptr [0x2b0b60f4] */ 6163 RECOMP_FLAGS_IN(); 6164 _st[0] = sqrt(_st[0]); /* 0x2B027C38: fsqrt */ 6165 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6560)); /* 0x2B027C3A: fcomp dword ptr [0x2b0b6560] */ 6166 fp_pop(); 6167 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027C40: fnstsw ax */ 6168 /* test HI8(eax), 1 */ /* 0x2B027C42: test ah, 1 */ 6169 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6170 _cf = 0; 6171 _flag_k = FK_NARROW(FK_TEST, 24); 6172 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027C4D; /* 0x2B027C45: je 0x2b027c4d */ 6173 L_2B027C47: 6174 MEM8(edi + 0x99) = (uint8_t)(LO8(ebx)); /* 0x2B027C47: mov byte ptr [edi + 0x99], bl */ 6175 L_2B027C4D: 6176 ecx = ebp + (-0xC0); /* 0x2B027C4D: lea ecx, [ebp - 0xc0] */ 6177 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B027C53: mov dword ptr [ebp - 4], 0xffffffff */ 6178 RECOMP_ICALL(0x2B012D80u); /* 0x2B027C5A: call 0x2b012d80 */ /* not lifted */ 6179 RECOMP_FLAGS_IN(); 6180 ecx = MEM32(ebp + (-0xC)); /* 0x2B027C5F: mov ecx, dword ptr [ebp - 0xc] */ 6181 edi = POP32_VAL(esp); /* 0x2B027C62: pop edi */ 6182 esi = POP32_VAL(esp); /* 0x2B027C63: pop esi */ 6183 ebx = POP32_VAL(esp); /* 0x2B027C64: pop ebx */ 6184 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027C65: mov dword ptr fs:[0], ecx */ 6185 esp = ebp; /* 0x2B027C6C: mov esp, ebp */ 6186 ebp = POP32_VAL(esp); /* 0x2B027C6E: pop ebp */ 6187 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027C6F: ret 4 */ 6188 RECOMP_REGS_OUT(); 6189 } 6190 6191 void sub_2B027B4C(void) { 6192 int _fpu_cmp = 0; 6193 uint32_t _cf = 0; 6194 int _df = 1; 6195 uint32_t _flag_k = FK_NONE; 6196 uint32_t _flag_a = 0, _flag_b = 0; 6197 uint32_t _itail_tgt = 0; 6198 RECOMP_REGS_LOCALS 6199 RECOMP_ENTER(0x2B027B4Cu); 6200 6201 L_2B027B4C: 6202 fp_push(*(float*)&MEM32(0x2B0B6568)); /* 0x2B027B4C: fld dword ptr [0x2b0b6568] */ 6203 esi = edi + 0x28; /* 0x2B027B52: lea esi, [edi + 0x28] */ 6204 _st[0] -= _st[1]; /* 0x2B027B55: fsub st(1) */ 6205 ecx = esi; /* 0x2B027B57: mov ecx, esi */ 6206 edx = MEM32(ecx); /* 0x2B027B59: mov edx, dword ptr [ecx] */ 6207 eax = MEM32(ecx + 0x4); /* 0x2B027B5B: mov eax, dword ptr [ecx + 4] */ 6208 ecx = MEM32(ecx + 0x8); /* 0x2B027B5E: mov ecx, dword ptr [ecx + 8] */ 6209 _st[0] += (double)*(float*)ADDR(0x2B0B6564); /* 0x2B027B61: fadd dword ptr [0x2b0b6564] */ 6210 MEM32(ebp + (-0x98)) = edx; /* 0x2B027B67: mov dword ptr [ebp - 0x98], edx */ 6211 MEM32(ebp + (-0x90)) = ecx; /* 0x2B027B6D: mov dword ptr [ebp - 0x90], ecx */ 6212 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2B027B73: fstp dword ptr [ebp + 8] */ 6213 ecx = ebp + (-0x98); /* 0x2B027B76: lea ecx, [ebp - 0x98] */ 6214 MEM32(ebp + (-0x94)) = eax; /* 0x2B027B7C: mov dword ptr [ebp - 0x94], eax */ 6215 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B027B82: fstp st(0) */ 6216 fp_push(*(float*)&MEM32(0x2B0B63D0)); /* 0x2B027B84: fld dword ptr [0x2b0b63d0] */ 6217 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x2B027B8A: fsub dword ptr [ebp + 8] */ 6218 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B027B8D: fstp dword ptr [ebp - 0x10] */ 6219 edx = MEM32(ebp + (-0x10)); /* 0x2B027B90: mov edx, dword ptr [ebp - 0x10] */ 6220 PUSH32(esp, edx); /* 0x2B027B93: push edx */ 6221 RECOMP_ICALL(MEM32(0x2B0B60CC)); /* 0x2B027B94: call dword ptr [0x2b0b60cc] */ 6222 RECOMP_FLAGS_IN(); 6223 ecx = MEM32(eax); /* 0x2B027B9A: mov ecx, dword ptr [eax] */ 6224 MEM32(ebp + (-0x54)) = ecx; /* 0x2B027B9C: mov dword ptr [ebp - 0x54], ecx */ 6225 edx = MEM32(eax + 0x4); /* 0x2B027B9F: mov edx, dword ptr [eax + 4] */ 6226 MEM32(ebp + (-0x50)) = edx; /* 0x2B027BA2: mov dword ptr [ebp - 0x50], edx */ 6227 eax = MEM32(eax + 0x8); /* 0x2B027BA5: mov eax, dword ptr [eax + 8] */ 6228 ecx = ebp + (-0x54); /* 0x2B027BA8: lea ecx, [ebp - 0x54] */ 6229 PUSH32(esp, ecx); /* 0x2B027BAB: push ecx */ 6230 edx = ebp + (-0x6C); /* 0x2B027BAC: lea edx, [ebp - 0x6c] */ 6231 MEM32(ebp + (-0x4C)) = eax; /* 0x2B027BAF: mov dword ptr [ebp - 0x4c], eax */ 6232 eax = MEM32(ebp + 0x8); /* 0x2B027BB2: mov eax, dword ptr [ebp + 8] */ 6233 PUSH32(esp, edx); /* 0x2B027BB5: push edx */ 6234 PUSH32(esp, eax); /* 0x2B027BB6: push eax */ 6235 ecx = ebp + (-0x40); /* 0x2B027BB7: lea ecx, [ebp - 0x40] */ 6236 PUSH32(esp, ecx); /* 0x2B027BBA: push ecx */ 6237 ecx = ebp + (-0xCC); /* 0x2B027BBB: lea ecx, [ebp - 0xcc] */ 6238 RECOMP_ICALL(MEM32(0x2B0B60E4)); /* 0x2B027BC1: call dword ptr [0x2b0b60e4] */ 6239 RECOMP_FLAGS_IN(); 6240 ecx = eax; /* 0x2B027BC7: mov ecx, eax */ 6241 RECOMP_ICALL(MEM32(0x2B0B60E0)); /* 0x2B027BC9: call dword ptr [0x2b0b60e0] */ 6242 RECOMP_FLAGS_IN(); 6243 ecx = MEM32(eax); /* 0x2B027BCF: mov ecx, dword ptr [eax] */ 6244 edx = esi; /* 0x2B027BD1: mov edx, esi */ 6245 MEM32(edx) = ecx; /* 0x2B027BD3: mov dword ptr [edx], ecx */ 6246 ecx = MEM32(eax + 0x4); /* 0x2B027BD5: mov ecx, dword ptr [eax + 4] */ 6247 MEM32(edx + 0x4) = ecx; /* 0x2B027BD8: mov dword ptr [edx + 4], ecx */ 6248 ecx = MEM32(ebp + (-0x10)); /* 0x2B027BDB: mov ecx, dword ptr [ebp - 0x10] */ 6249 eax = MEM32(eax + 0x8); /* 0x2B027BDE: mov eax, dword ptr [eax + 8] */ 6250 PUSH32(esp, ecx); /* 0x2B027BE1: push ecx */ 6251 ecx = edi + 0x34; /* 0x2B027BE2: lea ecx, [edi + 0x34] */ 6252 MEM32(edx + 0x8) = eax; /* 0x2B027BE5: mov dword ptr [edx + 8], eax */ 6253 PUSH32(esp, ecx); /* 0x2B027BE8: push ecx */ 6254 edx = ebp + (-0xDC); /* 0x2B027BE9: lea edx, [ebp - 0xdc] */ 6255 PUSH32(esp, edx); /* 0x2B027BEF: push edx */ 6256 RECOMP_ICALL(MEM32(0x2B0B6100)); /* 0x2B027BF0: call dword ptr [0x2b0b6100] */ 6257 RECOMP_FLAGS_IN(); 6258 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B027BF6: fld dword ptr [ebp + 8] */ 6259 _st[0] *= (double)*(float*)ADDR(ebp + (-0xA4)); /* 0x2B027BF9: fmul dword ptr [ebp - 0xa4] */ 6260 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2B027BFF: fld dword ptr [ebp - 0x10] */ 6261 _st[0] *= (double)*(float*)ADDR(edi + 0x44); /* 0x2B027C02: fmul dword ptr [edi + 0x44] */ 6262 { double _v = fp_pop(); _st[0] += _v; } /* 0x2B027C05: faddp st(1) */ 6263 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x44) = _v; } /* 0x2B027C07: fstp dword ptr [edi + 0x44] */ 6264 fp_push(*(float*)&MEM32(edi + 0xAC)); /* 0x2B027C0A: fld dword ptr [edi + 0xac] */ 6265 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B63D0)); /* 0x2B027C10: fcomp dword ptr [0x2b0b63d0] */ 6266 fp_pop(); 6267 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027C16: fnstsw ax */ 6268 /* test HI8(eax), 1 */ /* 0x2B027C18: test ah, 1 */ 6269 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6270 _cf = 0; 6271 _flag_k = FK_NARROW(FK_TEST, 24); 6272 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027C4D; /* 0x2B027C1B: jne 0x2b027c4d */ 6273 L_2B027C1D: 6274 eax = ebp + (-0x60); /* 0x2B027C1D: lea eax, [ebp - 0x60] */ 6275 PUSH32(esp, eax); /* 0x2B027C20: push eax */ 6276 ecx = ebp + (-0x98); /* 0x2B027C21: lea ecx, [ebp - 0x98] */ 6277 PUSH32(esp, ecx); /* 0x2B027C27: push ecx */ 6278 ecx = esi; /* 0x2B027C28: mov ecx, esi */ 6279 RECOMP_ICALL(MEM32(0x2B0B60DC)); /* 0x2B027C2A: call dword ptr [0x2b0b60dc] */ 6280 RECOMP_FLAGS_IN(); 6281 ecx = eax; /* 0x2B027C30: mov ecx, eax */ 6282 RECOMP_ICALL(MEM32(0x2B0B60F4)); /* 0x2B027C32: call dword ptr [0x2b0b60f4] */ 6283 RECOMP_FLAGS_IN(); 6284 _st[0] = sqrt(_st[0]); /* 0x2B027C38: fsqrt */ 6285 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6560)); /* 0x2B027C3A: fcomp dword ptr [0x2b0b6560] */ 6286 fp_pop(); 6287 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B027C40: fnstsw ax */ 6288 /* test HI8(eax), 1 */ /* 0x2B027C42: test ah, 1 */ 6289 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6290 _cf = 0; 6291 _flag_k = FK_NARROW(FK_TEST, 24); 6292 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027C4D; /* 0x2B027C45: je 0x2b027c4d */ 6293 L_2B027C47: 6294 MEM8(edi + 0x99) = (uint8_t)(LO8(ebx)); /* 0x2B027C47: mov byte ptr [edi + 0x99], bl */ 6295 L_2B027C4D: 6296 ecx = ebp + (-0xC0); /* 0x2B027C4D: lea ecx, [ebp - 0xc0] */ 6297 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B027C53: mov dword ptr [ebp - 4], 0xffffffff */ 6298 RECOMP_ICALL(0x2B012D80u); /* 0x2B027C5A: call 0x2b012d80 */ /* not lifted */ 6299 RECOMP_FLAGS_IN(); 6300 ecx = MEM32(ebp + (-0xC)); /* 0x2B027C5F: mov ecx, dword ptr [ebp - 0xc] */ 6301 edi = POP32_VAL(esp); /* 0x2B027C62: pop edi */ 6302 esi = POP32_VAL(esp); /* 0x2B027C63: pop esi */ 6303 ebx = POP32_VAL(esp); /* 0x2B027C64: pop ebx */ 6304 MEM32(FS_BASE + (0)) = ecx; /* 0x2B027C65: mov dword ptr fs:[0], ecx */ 6305 esp = ebp; /* 0x2B027C6C: mov esp, ebp */ 6306 ebp = POP32_VAL(esp); /* 0x2B027C6E: pop ebp */ 6307 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027C6F: ret 4 */ 6308 RECOMP_REGS_OUT(); 6309 } 6310 6311 void sub_2B027C80(void) { 6312 int _fpu_cmp = 0; 6313 uint32_t _cf = 0; 6314 int _df = 1; 6315 uint32_t _flag_k = FK_NONE; 6316 uint32_t _flag_a = 0, _flag_b = 0; 6317 uint32_t _itail_tgt = 0; 6318 RECOMP_REGS_LOCALS 6319 RECOMP_ENTER(0x2B027C80u); 6320 6321 L_2B027C80: 6322 PUSH32(esp, ebp); /* 0x2B027C80: push ebp */ 6323 ebp = esp; /* 0x2B027C81: mov ebp, esp */ 6324 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 6325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6326 esp = esp - 0x20u; /* 0x2B027C83: sub esp, 0x20 */ 6327 _flag_k = FK_CMP; 6328 eax = MEM32(ebp + 0xC); /* 0x2B027C86: mov eax, dword ptr [ebp + 0xc] */ 6329 edx = MEM32(eax); /* 0x2B027C89: mov edx, dword ptr [eax] */ 6330 MEM32(ebp + (-0x20)) = edx; /* 0x2B027C8B: mov dword ptr [ebp - 0x20], edx */ 6331 edx = MEM32(eax + 0x4); /* 0x2B027C8E: mov edx, dword ptr [eax + 4] */ 6332 eax = MEM32(eax + 0x8); /* 0x2B027C91: mov eax, dword ptr [eax + 8] */ 6333 MEM32(ebp + (-0x1C)) = edx; /* 0x2B027C94: mov dword ptr [ebp - 0x1c], edx */ 6334 edx = MEM32(ebp + 0x10); /* 0x2B027C97: mov edx, dword ptr [ebp + 0x10] */ 6335 MEM32(ebp + (-0x18)) = eax; /* 0x2B027C9A: mov dword ptr [ebp - 0x18], eax */ 6336 eax = MEM32(edx); /* 0x2B027C9D: mov eax, dword ptr [edx] */ 6337 MEM32(ebp + (-0x14)) = eax; /* 0x2B027C9F: mov dword ptr [ebp - 0x14], eax */ 6338 eax = MEM32(edx + 0x4); /* 0x2B027CA2: mov eax, dword ptr [edx + 4] */ 6339 MEM32(ebp + (-0x10)) = eax; /* 0x2B027CA5: mov dword ptr [ebp - 0x10], eax */ 6340 eax = MEM32(edx + 0x8); /* 0x2B027CA8: mov eax, dword ptr [edx + 8] */ 6341 edx = MEM32(edx + 0xC); /* 0x2B027CAB: mov edx, dword ptr [edx + 0xc] */ 6342 PUSH32(esp, esi); /* 0x2B027CAE: push esi */ 6343 MEM32(ebp + (-0x8)) = edx; /* 0x2B027CAF: mov dword ptr [ebp - 8], edx */ 6344 edx = MEM32(ebp + 0x8); /* 0x2B027CB2: mov edx, dword ptr [ebp + 8] */ 6345 PUSH32(esp, edi); /* 0x2B027CB5: push edi */ 6346 MEM32(ebp + (-0xC)) = eax; /* 0x2B027CB6: mov dword ptr [ebp - 0xc], eax */ 6347 eax = MEM32(ebp + 0x14); /* 0x2B027CB9: mov eax, dword ptr [ebp + 0x14] */ 6348 PUSH32(esp, edx); /* 0x2B027CBC: push edx */ 6349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x6Cu); 6350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6351 ecx = ecx + 0x6Cu; /* 0x2B027CBD: add ecx, 0x6c */ 6352 _flag_k = FK_ADD; 6353 MEM32(ebp + (-0x4)) = eax; /* 0x2B027CC0: mov dword ptr [ebp - 4], eax */ 6354 RECOMP_ICALL(0x2B028450u); /* 0x2B027CC3: call 0x2b028450 */ /* not lifted */ 6355 RECOMP_FLAGS_IN(); 6356 ecx = 8; /* 0x2B027CC8: mov ecx, 8 */ 6357 esi = ebp + (-0x20); /* 0x2B027CCD: lea esi, [ebp - 0x20] */ 6358 edi = eax; /* 0x2B027CD0: mov edi, eax */ 6359 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B027CD2: 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; } 6360 edi = POP32_VAL(esp); /* 0x2B027CD4: pop edi */ 6361 esi = POP32_VAL(esp); /* 0x2B027CD5: pop esi */ 6362 esp = ebp; /* 0x2B027CD6: mov esp, ebp */ 6363 ebp = POP32_VAL(esp); /* 0x2B027CD8: pop ebp */ 6364 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B027CD9: ret 0x10 */ 6365 RECOMP_REGS_OUT(); 6366 } 6367 6368 void sub_2B027CE0(void) { 6369 int _fpu_cmp = 0; 6370 uint32_t _cf = 0; 6371 int _df = 1; 6372 uint32_t _flag_k = FK_NONE; 6373 uint32_t _flag_a = 0, _flag_b = 0; 6374 uint32_t _itail_tgt = 0; 6375 RECOMP_REGS_LOCALS 6376 RECOMP_ENTER(0x2B027CE0u); 6377 6378 L_2B027CE0: 6379 PUSH32(esp, ebp); /* 0x2B027CE0: push ebp */ 6380 ebp = esp; /* 0x2B027CE1: mov ebp, esp */ 6381 PUSH32(esp, ecx); /* 0x2B027CE3: push ecx */ 6382 PUSH32(esp, esi); /* 0x2B027CE4: push esi */ 6383 PUSH32(esp, edi); /* 0x2B027CE5: push edi */ 6384 edi = MEM32(ebp + 0x8); /* 0x2B027CE6: mov edi, dword ptr [ebp + 8] */ 6385 esi = ecx + 0x6C; /* 0x2B027CE9: lea esi, [ecx + 0x6c] */ 6386 PUSH32(esp, edi); /* 0x2B027CEC: push edi */ 6387 ecx = esi; /* 0x2B027CED: mov ecx, esi */ 6388 RECOMP_ICALL(0x2B02A500u); /* 0x2B027CEF: call 0x2b02a500 */ /* not lifted */ 6389 RECOMP_FLAGS_IN(); 6390 /* cmp eax, MEM32(esi + 0x4) */ /* 0x2B027CF4: cmp eax, dword ptr [esi + 4] */ 6391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6393 _flag_k = FK_CMP; 6394 MEM32(ebp + 0x8) = eax; /* 0x2B027CF7: mov dword ptr [ebp + 8], eax */ 6395 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027D1B; /* 0x2B027CFA: je 0x2b027d1b */ 6396 L_2B027CFC: 6397 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 6398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6399 eax = eax + 0xCu; /* 0x2B027CFC: add eax, 0xc */ 6400 _flag_k = FK_ADD; 6401 PUSH32(esp, eax); /* 0x2B027CFF: push eax */ 6402 ecx = edi; /* 0x2B027D00: mov ecx, edi */ 6403 RECOMP_ICALL(0x2B02AB60u); /* 0x2B027D02: call 0x2b02ab60 */ /* not lifted */ 6404 RECOMP_FLAGS_IN(); 6405 /* test LO8(eax), LO8(eax) */ /* 0x2B027D07: test al, al */ 6406 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6407 _cf = 0; 6408 _flag_k = FK_NARROW(FK_TEST, 24); 6409 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027D1B; /* 0x2B027D09: jne 0x2b027d1b */ 6410 L_2B027D0B: 6411 eax = ebp + 0x8; /* 0x2B027D0B: lea eax, [ebp + 8] */ 6412 eax = MEM32(eax); /* 0x2B027D0E: mov eax, dword ptr [eax] */ 6413 edi = POP32_VAL(esp); /* 0x2B027D10: pop edi */ 6414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 6415 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6416 eax = eax + 0x28u; /* 0x2B027D11: add eax, 0x28 */ 6417 _flag_k = FK_ADD; 6418 esi = POP32_VAL(esp); /* 0x2B027D14: pop esi */ 6419 esp = ebp; /* 0x2B027D15: mov esp, ebp */ 6420 ebp = POP32_VAL(esp); /* 0x2B027D17: pop ebp */ 6421 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027D18: ret 4 */ 6422 L_2B027D1B: 6423 eax = ebp + (-0x4); /* 0x2B027D1B: lea eax, [ebp - 4] */ 6424 PUSH32(esp, eax); /* 0x2B027D1E: push eax */ 6425 ecx = esi; /* 0x2B027D1F: mov ecx, esi */ 6426 RECOMP_ICALL(0x2B0292D0u); /* 0x2B027D21: call 0x2b0292d0 */ /* not lifted */ 6427 RECOMP_FLAGS_IN(); 6428 eax = MEM32(eax); /* 0x2B027D26: mov eax, dword ptr [eax] */ 6429 edi = POP32_VAL(esp); /* 0x2B027D28: pop edi */ 6430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 6431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6432 eax = eax + 0x28u; /* 0x2B027D29: add eax, 0x28 */ 6433 _flag_k = FK_ADD; 6434 esi = POP32_VAL(esp); /* 0x2B027D2C: pop esi */ 6435 esp = ebp; /* 0x2B027D2D: mov esp, ebp */ 6436 ebp = POP32_VAL(esp); /* 0x2B027D2F: pop ebp */ 6437 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027D30: ret 4 */ 6438 RECOMP_REGS_OUT(); 6439 } 6440 6441 void sub_2B027D40(void) { 6442 int _fpu_cmp = 0; 6443 uint32_t _cf = 0; 6444 int _df = 1; 6445 uint32_t _flag_k = FK_NONE; 6446 uint32_t _flag_a = 0, _flag_b = 0; 6447 uint32_t _itail_tgt = 0; 6448 RECOMP_REGS_LOCALS 6449 RECOMP_ENTER(0x2B027D40u); 6450 6451 L_2B027D40: 6452 PUSH32(esp, ebp); /* 0x2B027D40: push ebp */ 6453 ebp = esp; /* 0x2B027D41: mov ebp, esp */ 6454 PUSH32(esp, ecx); /* 0x2B027D43: push ecx */ 6455 PUSH32(esp, esi); /* 0x2B027D44: push esi */ 6456 PUSH32(esp, edi); /* 0x2B027D45: push edi */ 6457 edi = MEM32(ebp + 0x8); /* 0x2B027D46: mov edi, dword ptr [ebp + 8] */ 6458 esi = ecx + 0x6C; /* 0x2B027D49: lea esi, [ecx + 0x6c] */ 6459 PUSH32(esp, edi); /* 0x2B027D4C: push edi */ 6460 ecx = esi; /* 0x2B027D4D: mov ecx, esi */ 6461 RECOMP_ICALL(0x2B02A500u); /* 0x2B027D4F: call 0x2b02a500 */ /* not lifted */ 6462 RECOMP_FLAGS_IN(); 6463 /* cmp eax, MEM32(esi + 0x4) */ /* 0x2B027D54: cmp eax, dword ptr [esi + 4] */ 6464 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6466 _flag_k = FK_CMP; 6467 MEM32(ebp + 0x8) = eax; /* 0x2B027D57: mov dword ptr [ebp + 8], eax */ 6468 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027D7B; /* 0x2B027D5A: je 0x2b027d7b */ 6469 L_2B027D5C: 6470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 6471 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6472 eax = eax + 0xCu; /* 0x2B027D5C: add eax, 0xc */ 6473 _flag_k = FK_ADD; 6474 PUSH32(esp, eax); /* 0x2B027D5F: push eax */ 6475 ecx = edi; /* 0x2B027D60: mov ecx, edi */ 6476 RECOMP_ICALL(0x2B02AB60u); /* 0x2B027D62: call 0x2b02ab60 */ /* not lifted */ 6477 RECOMP_FLAGS_IN(); 6478 /* test LO8(eax), LO8(eax) */ /* 0x2B027D67: test al, al */ 6479 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6480 _cf = 0; 6481 _flag_k = FK_NARROW(FK_TEST, 24); 6482 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027D7B; /* 0x2B027D69: jne 0x2b027d7b */ 6483 L_2B027D6B: 6484 eax = ebp + 0x8; /* 0x2B027D6B: lea eax, [ebp + 8] */ 6485 eax = MEM32(eax); /* 0x2B027D6E: mov eax, dword ptr [eax] */ 6486 fp_push(*(float*)&MEM32(eax + 0x38)); /* 0x2B027D70: fld dword ptr [eax + 0x38] */ 6487 edi = POP32_VAL(esp); /* 0x2B027D73: pop edi */ 6488 esi = POP32_VAL(esp); /* 0x2B027D74: pop esi */ 6489 esp = ebp; /* 0x2B027D75: mov esp, ebp */ 6490 ebp = POP32_VAL(esp); /* 0x2B027D77: pop ebp */ 6491 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027D78: ret 4 */ 6492 L_2B027D7B: 6493 eax = ebp + (-0x4); /* 0x2B027D7B: lea eax, [ebp - 4] */ 6494 PUSH32(esp, eax); /* 0x2B027D7E: push eax */ 6495 ecx = esi; /* 0x2B027D7F: mov ecx, esi */ 6496 RECOMP_ICALL(0x2B0292D0u); /* 0x2B027D81: call 0x2b0292d0 */ /* not lifted */ 6497 RECOMP_FLAGS_IN(); 6498 eax = MEM32(eax); /* 0x2B027D86: mov eax, dword ptr [eax] */ 6499 fp_push(*(float*)&MEM32(eax + 0x38)); /* 0x2B027D88: fld dword ptr [eax + 0x38] */ 6500 edi = POP32_VAL(esp); /* 0x2B027D8B: pop edi */ 6501 esi = POP32_VAL(esp); /* 0x2B027D8C: pop esi */ 6502 esp = ebp; /* 0x2B027D8D: mov esp, ebp */ 6503 ebp = POP32_VAL(esp); /* 0x2B027D8F: pop ebp */ 6504 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027D90: ret 4 */ 6505 RECOMP_REGS_OUT(); 6506 } 6507 6508 void sub_2B027DA0(void) { 6509 int _fpu_cmp = 0; 6510 uint32_t _cf = 0; 6511 int _df = 1; 6512 uint32_t _flag_k = FK_NONE; 6513 uint32_t _flag_a = 0, _flag_b = 0; 6514 uint32_t _itail_tgt = 0; 6515 RECOMP_REGS_LOCALS 6516 RECOMP_ENTER(0x2B027DA0u); 6517 6518 L_2B027DA0: 6519 PUSH32(esp, ebp); /* 0x2B027DA0: push ebp */ 6520 ebp = esp; /* 0x2B027DA1: mov ebp, esp */ 6521 PUSH32(esp, ecx); /* 0x2B027DA3: push ecx */ 6522 PUSH32(esp, ebx); /* 0x2B027DA4: push ebx */ 6523 PUSH32(esp, esi); /* 0x2B027DA5: push esi */ 6524 PUSH32(esp, edi); /* 0x2B027DA6: push edi */ 6525 edi = MEM32(ebp + 0x8); /* 0x2B027DA7: mov edi, dword ptr [ebp + 8] */ 6526 esi = ecx + 0x6C; /* 0x2B027DAA: lea esi, [ecx + 0x6c] */ 6527 PUSH32(esp, edi); /* 0x2B027DAD: push edi */ 6528 ecx = esi; /* 0x2B027DAE: mov ecx, esi */ 6529 RECOMP_ICALL(0x2B02A6B0u); /* 0x2B027DB0: call 0x2b02a6b0 */ /* not lifted */ 6530 RECOMP_FLAGS_IN(); 6531 PUSH32(esp, edi); /* 0x2B027DB5: push edi */ 6532 ecx = esi; /* 0x2B027DB6: mov ecx, esi */ 6533 ebx = eax; /* 0x2B027DB8: mov ebx, eax */ 6534 RECOMP_ICALL(0x2B02A500u); /* 0x2B027DBA: call 0x2b02a500 */ /* not lifted */ 6535 RECOMP_FLAGS_IN(); 6536 edi = eax; /* 0x2B027DBF: mov edi, eax */ 6537 /* cmp edi, ebx */ /* 0x2B027DC1: cmp edi, ebx */ 6538 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6540 _flag_k = FK_CMP; 6541 MEM32(ebp + 0x8) = edi; /* 0x2B027DC3: mov dword ptr [ebp + 8], edi */ 6542 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027DD5; /* 0x2B027DC6: je 0x2b027dd5 */ 6543 L_2B027DC8: 6544 ecx = ebp + 0x8; /* 0x2B027DC8: lea ecx, [ebp + 8] */ 6545 RECOMP_ICALL(0x2B02A660u); /* 0x2B027DCB: call 0x2b02a660 */ /* not lifted */ 6546 RECOMP_FLAGS_IN(); 6547 /* cmp MEM32(ebp + 0x8), ebx */ /* 0x2B027DD0: cmp dword ptr [ebp + 8], ebx */ 6548 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(ebx); 6549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6550 _flag_k = FK_CMP; 6551 RECOMP_BACKEDGE(); 6552 if (CMP_NE(_flag_a, _flag_b)) goto L_2B027DC8; /* 0x2B027DD3: jne 0x2b027dc8 */ 6553 L_2B027DD5: 6554 PUSH32(esp, ebx); /* 0x2B027DD5: push ebx */ 6555 PUSH32(esp, edi); /* 0x2B027DD6: push edi */ 6556 eax = ebp + (-0x4); /* 0x2B027DD7: lea eax, [ebp - 4] */ 6557 PUSH32(esp, eax); /* 0x2B027DDA: push eax */ 6558 ecx = esi; /* 0x2B027DDB: mov ecx, esi */ 6559 RECOMP_ICALL(0x2B028D10u); /* 0x2B027DDD: call 0x2b028d10 */ /* not lifted */ 6560 RECOMP_FLAGS_IN(); 6561 edi = POP32_VAL(esp); /* 0x2B027DE2: pop edi */ 6562 esi = POP32_VAL(esp); /* 0x2B027DE3: pop esi */ 6563 ebx = POP32_VAL(esp); /* 0x2B027DE4: pop ebx */ 6564 esp = ebp; /* 0x2B027DE5: mov esp, ebp */ 6565 ebp = POP32_VAL(esp); /* 0x2B027DE7: pop ebp */ 6566 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027DE8: ret 4 */ 6567 RECOMP_REGS_OUT(); 6568 } 6569 6570 void sub_2B027DF0(void) { 6571 int _fpu_cmp = 0; 6572 uint32_t _cf = 0; 6573 int _df = 1; 6574 uint32_t _flag_k = FK_NONE; 6575 uint32_t _flag_a = 0, _flag_b = 0; 6576 uint32_t _itail_tgt = 0; 6577 RECOMP_REGS_LOCALS 6578 RECOMP_ENTER(0x2B027DF0u); 6579 6580 L_2B027DF0: 6581 PUSH32(esp, ebp); /* 0x2B027DF0: push ebp */ 6582 ebp = esp; /* 0x2B027DF1: mov ebp, esp */ 6583 PUSH32(esp, ecx); /* 0x2B027DF3: push ecx */ 6584 PUSH32(esp, ebx); /* 0x2B027DF4: push ebx */ 6585 PUSH32(esp, esi); /* 0x2B027DF5: push esi */ 6586 PUSH32(esp, edi); /* 0x2B027DF6: push edi */ 6587 edi = MEM32(ebp + 0x8); /* 0x2B027DF7: mov edi, dword ptr [ebp + 8] */ 6588 esi = ecx + 0x80; /* 0x2B027DFA: lea esi, [ecx + 0x80] */ 6589 PUSH32(esp, edi); /* 0x2B027E00: push edi */ 6590 ecx = esi; /* 0x2B027E01: mov ecx, esi */ 6591 RECOMP_ICALL(0x2B02A6B0u); /* 0x2B027E03: call 0x2b02a6b0 */ /* not lifted */ 6592 RECOMP_FLAGS_IN(); 6593 PUSH32(esp, edi); /* 0x2B027E08: push edi */ 6594 ecx = esi; /* 0x2B027E09: mov ecx, esi */ 6595 ebx = eax; /* 0x2B027E0B: mov ebx, eax */ 6596 RECOMP_ICALL(0x2B02A500u); /* 0x2B027E0D: call 0x2b02a500 */ /* not lifted */ 6597 RECOMP_FLAGS_IN(); 6598 edi = eax; /* 0x2B027E12: mov edi, eax */ 6599 /* cmp edi, ebx */ /* 0x2B027E14: cmp edi, ebx */ 6600 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6602 _flag_k = FK_CMP; 6603 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027E4A; /* 0x2B027E16: je 0x2b027e4a */ 6604 L_2B027E18: 6605 ecx = MEM32(eax + 0x8); /* 0x2B027E18: mov ecx, dword ptr [eax + 8] */ 6606 SET_LO8(edx, MEM8(ecx + 0x35)); /* 0x2B027E1B: mov dl, byte ptr [ecx + 0x35] */ 6607 /* test LO8(edx), LO8(edx) */ /* 0x2B027E1E: test dl, dl */ 6608 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6609 _cf = 0; 6610 _flag_k = FK_NARROW(FK_TEST, 24); 6611 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027E2D; /* 0x2B027E20: jne 0x2b027e2d */ 6612 L_2B027E22: 6613 PUSH32(esp, ecx); /* 0x2B027E22: push ecx */ 6614 RECOMP_ICALL(0x2B02A5E0u); /* 0x2B027E23: call 0x2b02a5e0 */ /* not lifted */ 6615 RECOMP_FLAGS_IN(); 6616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6618 esp = esp + 4; /* 0x2B027E28: add esp, 4 */ 6619 _flag_k = FK_ADD; 6620 goto L_2B027E46; /* 0x2B027E2B: jmp 0x2b027e46 */ 6621 L_2B027E2D: 6622 ecx = MEM32(eax + 0x4); /* 0x2B027E2D: mov ecx, dword ptr [eax + 4] */ 6623 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2B027E30: cmp eax, dword ptr [ecx + 8] */ 6624 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6626 _flag_k = FK_CMP; 6627 if (CMP_NE(_flag_a, _flag_b)) goto L_2B027E3F; /* 0x2B027E33: jne 0x2b027e3f */ 6628 L_2B027E35: 6629 eax = ecx; /* 0x2B027E35: mov eax, ecx */ 6630 ecx = MEM32(ecx + 0x4); /* 0x2B027E37: mov ecx, dword ptr [ecx + 4] */ 6631 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2B027E3A: cmp eax, dword ptr [ecx + 8] */ 6632 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6634 _flag_k = FK_CMP; 6635 RECOMP_BACKEDGE(); 6636 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027E35; /* 0x2B027E3D: je 0x2b027e35 */ 6637 L_2B027E3F: 6638 /* cmp MEM32(eax + 0x8), ecx */ /* 0x2B027E3F: cmp dword ptr [eax + 8], ecx */ 6639 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 6640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6641 _flag_k = FK_CMP; 6642 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027E46; /* 0x2B027E42: je 0x2b027e46 */ 6643 L_2B027E44: 6644 eax = ecx; /* 0x2B027E44: mov eax, ecx */ 6645 L_2B027E46: 6646 /* cmp eax, ebx */ /* 0x2B027E46: cmp eax, ebx */ 6647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6649 _flag_k = FK_CMP; 6650 RECOMP_BACKEDGE(); 6651 if (CMP_NE(_flag_a, _flag_b)) goto L_2B027E18; /* 0x2B027E48: jne 0x2b027e18 */ 6652 L_2B027E4A: 6653 eax = MEM32(esi + 0x10); /* 0x2B027E4A: mov eax, dword ptr [esi + 0x10] */ 6654 /* test eax, eax */ /* 0x2B027E4D: test eax, eax */ 6655 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6656 _cf = 0; 6657 _flag_k = FK_TEST; 6658 MEM32(ebp + 0x8) = edi; /* 0x2B027E4F: mov dword ptr [ebp + 8], edi */ 6659 if (TEST_Z(_flag_a, _flag_b)) goto L_2B027EB6; /* 0x2B027E52: je 0x2b027eb6 */ 6660 L_2B027E54: 6661 eax = MEM32(esi + 0x4); /* 0x2B027E54: mov eax, dword ptr [esi + 4] */ 6662 /* cmp edi, MEM32(eax) */ /* 0x2B027E57: cmp edi, dword ptr [eax] */ 6663 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 6664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6665 _flag_k = FK_CMP; 6666 if (CMP_NE(_flag_a, _flag_b)) goto L_2B027EB6; /* 0x2B027E59: jne 0x2b027eb6 */ 6667 L_2B027E5B: 6668 /* cmp ebx, eax */ /* 0x2B027E5B: cmp ebx, eax */ 6669 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6671 _flag_k = FK_CMP; 6672 if (CMP_NE(_flag_a, _flag_b)) goto L_2B027EB6; /* 0x2B027E5D: jne 0x2b027eb6 */ 6673 L_2B027E5F: 6674 ebx = MEM32(eax + 0x4); /* 0x2B027E5F: mov ebx, dword ptr [eax + 4] */ 6675 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x2B027E62: cmp ebx, dword ptr [esi + 8] */ 6676 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6678 _flag_k = FK_CMP; 6679 edi = ebx; /* 0x2B027E65: mov edi, ebx */ 6680 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027E92; /* 0x2B027E67: je 0x2b027e92 */ 6681 L_2B027E69: 6682 eax = MEM32(edi + 0x8); /* 0x2B027E69: mov eax, dword ptr [edi + 8] */ 6683 PUSH32(esp, eax); /* 0x2B027E6C: push eax */ 6684 ecx = esi; /* 0x2B027E6D: mov ecx, esi */ 6685 RECOMP_ICALL(0x2B029FD0u); /* 0x2B027E6F: call 0x2b029fd0 */ /* not lifted */ 6686 RECOMP_FLAGS_IN(); 6687 edi = MEM32(edi); /* 0x2B027E74: mov edi, dword ptr [edi] */ 6688 PUSH32(esp, 0); /* 0x2B027E76: push 0 */ 6689 ecx = ebx + 0xC; /* 0x2B027E78: lea ecx, [ebx + 0xc] */ 6690 RECOMP_ICALL(0x2B02AB30u); /* 0x2B027E7B: call 0x2b02ab30 */ /* not lifted */ 6691 RECOMP_FLAGS_IN(); 6692 PUSH32(esp, ebx); /* 0x2B027E80: push ebx */ 6693 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B027E81: call 0x2b0ab1ba */ /* not lifted */ 6694 RECOMP_FLAGS_IN(); 6695 eax = MEM32(esi + 0x8); /* 0x2B027E86: mov eax, dword ptr [esi + 8] */ 6696 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6698 esp = esp + 4; /* 0x2B027E89: add esp, 4 */ 6699 _flag_k = FK_ADD; 6700 /* cmp edi, eax */ /* 0x2B027E8C: cmp edi, eax */ 6701 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6703 _flag_k = FK_CMP; 6704 ebx = edi; /* 0x2B027E8E: mov ebx, edi */ 6705 RECOMP_BACKEDGE(); 6706 if (CMP_NE(_flag_a, _flag_b)) goto L_2B027E69; /* 0x2B027E90: jne 0x2b027e69 */ 6707 L_2B027E92: 6708 ecx = MEM32(esi + 0x4); /* 0x2B027E92: mov ecx, dword ptr [esi + 4] */ 6709 edx = MEM32(esi + 0x8); /* 0x2B027E95: mov edx, dword ptr [esi + 8] */ 6710 MEM32(ecx + 0x4) = edx; /* 0x2B027E98: mov dword ptr [ecx + 4], edx */ 6711 eax = MEM32(esi + 0x4); /* 0x2B027E9B: mov eax, dword ptr [esi + 4] */ 6712 MEM32(esi + 0x10) = 0; /* 0x2B027E9E: mov dword ptr [esi + 0x10], 0 */ 6713 MEM32(eax) = eax; /* 0x2B027EA5: mov dword ptr [eax], eax */ 6714 esi = MEM32(esi + 0x4); /* 0x2B027EA7: mov esi, dword ptr [esi + 4] */ 6715 edi = POP32_VAL(esp); /* 0x2B027EAA: pop edi */ 6716 MEM32(esi + 0x8) = esi; /* 0x2B027EAB: mov dword ptr [esi + 8], esi */ 6717 esi = POP32_VAL(esp); /* 0x2B027EAE: pop esi */ 6718 ebx = POP32_VAL(esp); /* 0x2B027EAF: pop ebx */ 6719 esp = ebp; /* 0x2B027EB0: mov esp, ebp */ 6720 ebp = POP32_VAL(esp); /* 0x2B027EB2: pop ebp */ 6721 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027EB3: ret 4 */ 6722 L_2B027EB6: 6723 /* cmp edi, ebx */ /* 0x2B027EB6: cmp edi, ebx */ 6724 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6726 _flag_k = FK_CMP; 6727 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027ED5; /* 0x2B027EB8: je 0x2b027ed5 */ 6728 L_2B027EBA: 6729 ecx = ebp + 0x8; /* 0x2B027EBA: lea ecx, [ebp + 8] */ 6730 RECOMP_ICALL(0x2B02A790u); /* 0x2B027EBD: call 0x2b02a790 */ /* not lifted */ 6731 RECOMP_FLAGS_IN(); 6732 PUSH32(esp, edi); /* 0x2B027EC2: push edi */ 6733 eax = ebp + (-0x4); /* 0x2B027EC3: lea eax, [ebp - 4] */ 6734 PUSH32(esp, eax); /* 0x2B027EC6: push eax */ 6735 ecx = esi; /* 0x2B027EC7: mov ecx, esi */ 6736 RECOMP_ICALL(0x2B029C00u); /* 0x2B027EC9: call 0x2b029c00 */ /* not lifted */ 6737 RECOMP_FLAGS_IN(); 6738 edi = MEM32(ebp + 0x8); /* 0x2B027ECE: mov edi, dword ptr [ebp + 8] */ 6739 /* cmp edi, ebx */ /* 0x2B027ED1: cmp edi, ebx */ 6740 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6742 _flag_k = FK_CMP; 6743 RECOMP_BACKEDGE(); 6744 if (CMP_NE(_flag_a, _flag_b)) goto L_2B027EBA; /* 0x2B027ED3: jne 0x2b027eba */ 6745 L_2B027ED5: 6746 edi = POP32_VAL(esp); /* 0x2B027ED5: pop edi */ 6747 esi = POP32_VAL(esp); /* 0x2B027ED6: pop esi */ 6748 ebx = POP32_VAL(esp); /* 0x2B027ED7: pop ebx */ 6749 esp = ebp; /* 0x2B027ED8: mov esp, ebp */ 6750 ebp = POP32_VAL(esp); /* 0x2B027EDA: pop ebp */ 6751 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B027EDB: ret 4 */ 6752 RECOMP_REGS_OUT(); 6753 } 6754 6755 void sub_2B027EE0(void) { 6756 int _fpu_cmp = 0; 6757 uint32_t _cf = 0; 6758 int _df = 1; 6759 uint32_t _flag_k = FK_NONE; 6760 uint32_t _flag_a = 0, _flag_b = 0; 6761 uint32_t _itail_tgt = 0; 6762 RECOMP_REGS_LOCALS 6763 RECOMP_ENTER(0x2B027EE0u); 6764 6765 L_2B027EE0: 6766 PUSH32(esp, ebp); /* 0x2B027EE0: push ebp */ 6767 ebp = esp; /* 0x2B027EE1: mov ebp, esp */ 6768 PUSH32(esp, ecx); /* 0x2B027EE3: push ecx */ 6769 PUSH32(esp, esi); /* 0x2B027EE4: push esi */ 6770 PUSH32(esp, edi); /* 0x2B027EE5: push edi */ 6771 edi = MEM32(ebp + 0x8); /* 0x2B027EE6: mov edi, dword ptr [ebp + 8] */ 6772 esi = ecx + 0x80; /* 0x2B027EE9: lea esi, [ecx + 0x80] */ 6773 PUSH32(esp, edi); /* 0x2B027EEF: push edi */ 6774 ecx = esi; /* 0x2B027EF0: mov ecx, esi */ 6775 RECOMP_ICALL(0x2B02A500u); /* 0x2B027EF2: call 0x2b02a500 */ /* not lifted */ 6776 RECOMP_FLAGS_IN(); 6777 /* cmp eax, MEM32(esi + 0x4) */ /* 0x2B027EF7: cmp eax, dword ptr [esi + 4] */ 6778 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6780 _flag_k = FK_CMP; 6781 MEM32(ebp + 0x8) = eax; /* 0x2B027EFA: mov dword ptr [ebp + 8], eax */ 6782 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B027F13; /* 0x2B027EFD: je 0x2b027f13 */ 6783 L_2B027EFF: 6784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 6785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6786 eax = eax + 0xCu; /* 0x2B027EFF: add eax, 0xc */ 6787 _flag_k = FK_ADD; 6788 PUSH32(esp, eax); /* 0x2B027F02: push eax */ 6789 ecx = edi; /* 0x2B027F03: mov ecx, edi */ 6790 RECOMP_ICALL(0x2B02AB60u); /* 0x2B027F05: call 0x2b02ab60 */ /* not lifted */ 6791 RECOMP_FLAGS_IN(); 6792 /* test LO8(eax), LO8(eax) */ /* 0x2B027F0A: test al, al */ 6793 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6794 _cf = 0; 6795 _flag_k = FK_NARROW(FK_TEST, 24); 6796 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B027F13; /* 0x2B027F0C: jne 0x2b027f13 */ 6797 L_2B027F0E: 6798 eax = ebp + 0x8; /* 0x2B027F0E: lea eax, [ebp + 8] */ 6799 goto L_2B027F1C; /* 0x2B027F11: jmp 0x2b027f1c */ 6800 L_2B027F13: 6801 eax = MEM32(esi + 0x4); /* 0x2B027F13: mov eax, dword ptr [esi + 4] */ 6802 MEM32(ebp + (-0x4)) = eax; /* 0x2B027F16: mov dword ptr [ebp - 4], eax */ 6803 eax = ebp + (-0x4); /* 0x2B027F19: lea eax, [ebp - 4] */ 6804 L_2B027F1C: 6805 eax = MEM32(eax); /* 0x2B027F1C: mov eax, dword ptr [eax] */ 6806 /* cmp eax, MEM32(esi + 0x4) */ /* 0x2B027F1E: cmp eax, dword ptr [esi + 4] */ 6807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6809 _flag_k = FK_CMP; 6810 if (CMP_NE(_flag_a, _flag_b)) goto L_2B027F33; /* 0x2B027F21: jne 0x2b027f33 */ 6811 L_2B027F23: 6812 ecx = MEM32(ebp + 0x10); /* 0x2B027F23: mov ecx, dword ptr [ebp + 0x10] */ 6813 edx = MEM32(ebp + 0xC); /* 0x2B027F26: mov edx, dword ptr [ebp + 0xc] */ 6814 PUSH32(esp, ecx); /* 0x2B027F29: push ecx */ 6815 PUSH32(esp, edx); /* 0x2B027F2A: push edx */ 6816 PUSH32(esp, edi); /* 0x2B027F2B: push edi */ 6817 ecx = esi; /* 0x2B027F2C: mov ecx, esi */ 6818 RECOMP_ICALL(0x2B027F40u); /* 0x2B027F2E: call 0x2b027f40 */ /* not lifted */ 6819 RECOMP_FLAGS_IN(); 6820 L_2B027F33: 6821 edi = POP32_VAL(esp); /* 0x2B027F33: pop edi */ 6822 esi = POP32_VAL(esp); /* 0x2B027F34: pop esi */ 6823 esp = ebp; /* 0x2B027F35: mov esp, ebp */ 6824 ebp = POP32_VAL(esp); /* 0x2B027F37: pop ebp */ 6825 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B027F38: ret 0xc */ 6826 RECOMP_REGS_OUT(); 6827 } 6828 6829 void sub_2B027F40(void) { 6830 int _fpu_cmp = 0; 6831 uint32_t _cf = 0; 6832 int _df = 1; 6833 uint32_t _flag_k = FK_NONE; 6834 uint32_t _flag_a = 0, _flag_b = 0; 6835 uint32_t _itail_tgt = 0; 6836 RECOMP_REGS_LOCALS 6837 RECOMP_ENTER(0x2B027F40u); 6838 6839 L_2B027F40: 6840 PUSH32(esp, ebp); /* 0x2B027F40: push ebp */ 6841 ebp = esp; /* 0x2B027F41: mov ebp, esp */ 6842 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B027F43: push -1 */ 6843 PUSH32(esp, 0x2B0ADBC9u); /* 0x2B027F45: push 0x2b0adbc9 */ 6844 eax = MEM32(FS_BASE + (0)); /* 0x2B027F4A: mov eax, dword ptr fs:[0] */ 6845 PUSH32(esp, eax); /* 0x2B027F50: push eax */ 6846 MEM32(FS_BASE + (0)) = esp; /* 0x2B027F51: mov dword ptr fs:[0], esp */ 6847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u); 6848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6849 esp = esp - 0x78u; /* 0x2B027F58: sub esp, 0x78 */ 6850 _flag_k = FK_CMP; 6851 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B027F5B: mov al, byte ptr [ebp + 0x13] */ 6852 PUSH32(esp, ebx); /* 0x2B027F5E: push ebx */ 6853 PUSH32(esp, esi); /* 0x2B027F5F: push esi */ 6854 PUSH32(esp, edi); /* 0x2B027F60: push edi */ 6855 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6856 edi = 0; /* 0x2B027F61: xor edi, edi */ 6857 _cf = 0; 6858 _flag_k = FK_TEST; 6859 esi = ecx; /* 0x2B027F63: mov esi, ecx */ 6860 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(eax)); /* 0x2B027F65: mov byte ptr [ebp - 0x44], al */ 6861 MEM32(ebp + (-0x40)) = edi; /* 0x2B027F68: mov dword ptr [ebp - 0x40], edi */ 6862 MEM32(ebp + (-0x3C)) = edi; /* 0x2B027F6B: mov dword ptr [ebp - 0x3c], edi */ 6863 MEM32(ebp + (-0x38)) = edi; /* 0x2B027F6E: mov dword ptr [ebp - 0x38], edi */ 6864 ecx = MEM32(ebp + 0x10); /* 0x2B027F71: mov ecx, dword ptr [ebp + 0x10] */ 6865 PUSH32(esp, ecx); /* 0x2B027F74: push ecx */ 6866 ecx = ebp + (-0x44); /* 0x2B027F75: lea ecx, [ebp - 0x44] */ 6867 MEM32(ebp + (-0x4)) = edi; /* 0x2B027F78: mov dword ptr [ebp - 4], edi */ 6868 RECOMP_ICALL(0x2B028640u); /* 0x2B027F7B: call 0x2b028640 */ /* not lifted */ 6869 RECOMP_FLAGS_IN(); 6870 edx = MEM32(ebp + 0xC); /* 0x2B027F80: mov edx, dword ptr [ebp + 0xc] */ 6871 MEM32(ebp + (-0x34)) = edx; /* 0x2B027F83: mov dword ptr [ebp - 0x34], edx */ 6872 eax = ebp + 0x13; /* 0x2B027F86: lea eax, [ebp + 0x13] */ 6873 PUSH32(esp, eax); /* 0x2B027F89: push eax */ 6874 ecx = ebp + (-0x5C); /* 0x2B027F8A: lea ecx, [ebp - 0x5c] */ 6875 MEM32(ebp + (-0x4)) = 1; /* 0x2B027F8D: mov dword ptr [ebp - 4], 1 */ 6876 RECOMP_ICALL(0x2B0285B0u); /* 0x2B027F94: call 0x2b0285b0 */ /* not lifted */ 6877 RECOMP_FLAGS_IN(); 6878 ecx = MEM32(ebp + 0x8); /* 0x2B027F99: mov ecx, dword ptr [ebp + 8] */ 6879 PUSH32(esp, ecx); /* 0x2B027F9C: push ecx */ 6880 SET_LO8(ebx, 2); /* 0x2B027F9D: mov bl, 2 */ 6881 ecx = ebp + (-0x84); /* 0x2B027F9F: lea ecx, [ebp - 0x84] */ 6882 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B027FA5: mov byte ptr [ebp - 4], bl */ 6883 RECOMP_ICALL(0x2B028540u); /* 0x2B027FA8: call 0x2b028540 */ /* not lifted */ 6884 RECOMP_FLAGS_IN(); 6885 edx = ebp + (-0x5C); /* 0x2B027FAD: lea edx, [ebp - 0x5c] */ 6886 PUSH32(esp, edx); /* 0x2B027FB0: push edx */ 6887 ecx = ebp + (-0x74); /* 0x2B027FB1: lea ecx, [ebp - 0x74] */ 6888 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B027FB4: mov byte ptr [ebp - 4], 3 */ 6889 RECOMP_ICALL(0x2B0280A0u); /* 0x2B027FB8: call 0x2b0280a0 */ /* not lifted */ 6890 RECOMP_FLAGS_IN(); 6891 eax = ebp + (-0x84); /* 0x2B027FBD: lea eax, [ebp - 0x84] */ 6892 PUSH32(esp, eax); /* 0x2B027FC3: push eax */ 6893 ecx = ebp + (-0x1C); /* 0x2B027FC4: lea ecx, [ebp - 0x1c] */ 6894 PUSH32(esp, ecx); /* 0x2B027FC7: push ecx */ 6895 ecx = esi; /* 0x2B027FC8: mov ecx, esi */ 6896 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B027FCA: mov byte ptr [ebp - 4], 4 */ 6897 RECOMP_ICALL(0x2B029980u); /* 0x2B027FCE: call 0x2b029980 */ /* not lifted */ 6898 RECOMP_FLAGS_IN(); 6899 edx = MEM32(eax); /* 0x2B027FD3: mov edx, dword ptr [eax] */ 6900 MEM32(ebp + (-0x14)) = edx; /* 0x2B027FD5: mov dword ptr [ebp - 0x14], edx */ 6901 eax = MEM32(eax + 0x4); /* 0x2B027FD8: mov eax, dword ptr [eax + 4] */ 6902 ecx = ebp + (-0x10); /* 0x2B027FDB: lea ecx, [ebp - 0x10] */ 6903 PUSH32(esp, ecx); /* 0x2B027FDE: push ecx */ 6904 edx = ebp + (-0x14); /* 0x2B027FDF: lea edx, [ebp - 0x14] */ 6905 PUSH32(esp, edx); /* 0x2B027FE2: push edx */ 6906 ecx = ebp + (-0x24); /* 0x2B027FE3: lea ecx, [ebp - 0x24] */ 6907 MEM32(ebp + (-0x10)) = eax; /* 0x2B027FE6: mov dword ptr [ebp - 0x10], eax */ 6908 RECOMP_ICALL(0x2B02A020u); /* 0x2B027FE9: call 0x2b02a020 */ /* not lifted */ 6909 RECOMP_FLAGS_IN(); 6910 esi = MEM32(eax); /* 0x2B027FEE: mov esi, dword ptr [eax] */ 6911 eax = MEM32(eax + 0x4); /* 0x2B027FF0: mov eax, dword ptr [eax + 4] */ 6912 MEM32(ebp + (-0x28)) = eax; /* 0x2B027FF3: mov dword ptr [ebp - 0x28], eax */ 6913 ecx = ebp + (-0x74); /* 0x2B027FF6: lea ecx, [ebp - 0x74] */ 6914 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B027FF9: mov byte ptr [ebp - 4], 5 */ 6915 RECOMP_ICALL(0x2B01D630u); /* 0x2B027FFD: call 0x2b01d630 */ /* not lifted */ 6916 RECOMP_FLAGS_IN(); 6917 ecx = ebp + (-0x84); /* 0x2B028002: lea ecx, [ebp - 0x84] */ 6918 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2B028008: mov byte ptr [ebp - 4], bl */ 6919 RECOMP_ICALL(0x2B012D80u); /* 0x2B02800B: call 0x2b012d80 */ /* not lifted */ 6920 RECOMP_FLAGS_IN(); 6921 ecx = ebp + (-0x5C); /* 0x2B028010: lea ecx, [ebp - 0x5c] */ 6922 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B028013: mov byte ptr [ebp - 4], 1 */ 6923 RECOMP_ICALL(0x2B01D630u); /* 0x2B028017: call 0x2b01d630 */ /* not lifted */ 6924 RECOMP_FLAGS_IN(); 6925 ecx = ebp + (-0x44); /* 0x2B02801C: lea ecx, [ebp - 0x44] */ 6926 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1Cu); 6927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6928 esi = esi + 0x1Cu; /* 0x2B02801F: add esi, 0x1c */ 6929 _flag_k = FK_ADD; 6930 PUSH32(esp, ecx); /* 0x2B028022: push ecx */ 6931 ecx = esi; /* 0x2B028023: mov ecx, esi */ 6932 RECOMP_ICALL(0x2B028640u); /* 0x2B028025: call 0x2b028640 */ /* not lifted */ 6933 RECOMP_FLAGS_IN(); 6934 edx = MEM32(ebp + (-0x34)); /* 0x2B02802A: mov edx, dword ptr [ebp - 0x34] */ 6935 MEM32(esi + 0x10) = edx; /* 0x2B02802D: mov dword ptr [esi + 0x10], edx */ 6936 eax = MEM32(ebp + (-0x30)); /* 0x2B028030: mov eax, dword ptr [ebp - 0x30] */ 6937 MEM32(esi + 0x14) = eax; /* 0x2B028033: mov dword ptr [esi + 0x14], eax */ 6938 eax = MEM32(ebp + (-0x3C)); /* 0x2B028036: mov eax, dword ptr [ebp - 0x3c] */ 6939 ecx = MEM32(ebp + (-0x40)); /* 0x2B028039: mov ecx, dword ptr [ebp - 0x40] */ 6940 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B02803C: mov dword ptr [ebp - 4], 0xffffffff */ 6941 ebx = eax; /* 0x2B028043: mov ebx, eax */ 6942 /* cmp ecx, eax */ /* 0x2B028045: cmp ecx, eax */ 6943 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6945 _flag_k = FK_CMP; 6946 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02807B; /* 0x2B028047: je 0x2b02807b */ 6947 L_2B028049: 6948 esi = ecx + 0x4; /* 0x2B028049: lea esi, [ecx + 4] */ 6949 L_2B02804C: 6950 ecx = MEM32(esi + 0x4); /* 0x2B02804C: mov ecx, dword ptr [esi + 4] */ 6951 edx = MEM32(esi); /* 0x2B02804F: mov edx, dword ptr [esi] */ 6952 PUSH32(esp, ecx); /* 0x2B028051: push ecx */ 6953 PUSH32(esp, edx); /* 0x2B028052: push edx */ 6954 ecx = esi + (-0x4); /* 0x2B028053: lea ecx, [esi - 4] */ 6955 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028056: call 0x2b0292c0 */ /* not lifted */ 6956 RECOMP_FLAGS_IN(); 6957 eax = MEM32(esi); /* 0x2B02805B: mov eax, dword ptr [esi] */ 6958 PUSH32(esp, eax); /* 0x2B02805D: push eax */ 6959 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02805E: call 0x2b0ab1ba */ /* not lifted */ 6960 RECOMP_FLAGS_IN(); 6961 MEM32(esi) = edi; /* 0x2B028063: mov dword ptr [esi], edi */ 6962 MEM32(esi + 0x4) = edi; /* 0x2B028065: mov dword ptr [esi + 4], edi */ 6963 MEM32(esi + 0x8) = edi; /* 0x2B028068: mov dword ptr [esi + 8], edi */ 6964 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 6965 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6966 esi = esi + 0x10u; /* 0x2B02806B: add esi, 0x10 */ 6967 _flag_k = FK_ADD; 6968 ecx = esi + (-0x4); /* 0x2B02806E: lea ecx, [esi - 4] */ 6969 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6970 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6971 esp = esp + 4; /* 0x2B028071: add esp, 4 */ 6972 _flag_k = FK_ADD; 6973 /* cmp ecx, ebx */ /* 0x2B028074: cmp ecx, ebx */ 6974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6976 _flag_k = FK_CMP; 6977 RECOMP_BACKEDGE(); 6978 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02804C; /* 0x2B028076: jne 0x2b02804c */ 6979 L_2B028078: 6980 ecx = MEM32(ebp + (-0x40)); /* 0x2B028078: mov ecx, dword ptr [ebp - 0x40] */ 6981 L_2B02807B: 6982 PUSH32(esp, ecx); /* 0x2B02807B: push ecx */ 6983 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02807C: call 0x2b0ab1ba */ /* not lifted */ 6984 RECOMP_FLAGS_IN(); 6985 ecx = MEM32(ebp + (-0xC)); /* 0x2B028081: mov ecx, dword ptr [ebp - 0xc] */ 6986 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6988 esp = esp + 4; /* 0x2B028084: add esp, 4 */ 6989 _flag_k = FK_ADD; 6990 edi = POP32_VAL(esp); /* 0x2B028087: pop edi */ 6991 esi = POP32_VAL(esp); /* 0x2B028088: pop esi */ 6992 ebx = POP32_VAL(esp); /* 0x2B028089: pop ebx */ 6993 MEM32(FS_BASE + (0)) = ecx; /* 0x2B02808A: mov dword ptr fs:[0], ecx */ 6994 esp = ebp; /* 0x2B028091: mov esp, ebp */ 6995 ebp = POP32_VAL(esp); /* 0x2B028093: pop ebp */ 6996 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B028094: ret 0xc */ 6997 RECOMP_REGS_OUT(); 6998 } 6999 7000 void sub_2B0280A0(void) { 7001 int _fpu_cmp = 0; 7002 uint32_t _cf = 0; 7003 int _df = 1; 7004 uint32_t _flag_k = FK_NONE; 7005 uint32_t _flag_a = 0, _flag_b = 0; 7006 uint32_t _itail_tgt = 0; 7007 RECOMP_REGS_LOCALS 7008 RECOMP_ENTER(0x2B0280A0u); 7009 7010 L_2B0280A0: 7011 PUSH32(esp, ebp); /* 0x2B0280A0: push ebp */ 7012 ebp = esp; /* 0x2B0280A1: mov ebp, esp */ 7013 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0280A3: push -1 */ 7014 PUSH32(esp, 0x2B0ADBF1u); /* 0x2B0280A5: push 0x2b0adbf1 */ 7015 eax = MEM32(FS_BASE + (0)); /* 0x2B0280AA: mov eax, dword ptr fs:[0] */ 7016 PUSH32(esp, eax); /* 0x2B0280B0: push eax */ 7017 MEM32(FS_BASE + (0)) = esp; /* 0x2B0280B1: mov dword ptr fs:[0], esp */ 7018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7020 esp = esp - 0x14u; /* 0x2B0280B8: sub esp, 0x14 */ 7021 _flag_k = FK_CMP; 7022 PUSH32(esp, ebx); /* 0x2B0280BB: push ebx */ 7023 PUSH32(esp, esi); /* 0x2B0280BC: push esi */ 7024 PUSH32(esp, edi); /* 0x2B0280BD: push edi */ 7025 edi = MEM32(ebp + 0x8); /* 0x2B0280BE: mov edi, dword ptr [ebp + 8] */ 7026 SET_LO8(eax, MEM8(edi)); /* 0x2B0280C1: mov al, byte ptr [edi] */ 7027 ebx = ecx; /* 0x2B0280C3: mov ebx, ecx */ 7028 MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x2B0280C5: mov byte ptr [ebx], al */ 7029 ecx = MEM32(edi + 0x4); /* 0x2B0280C7: mov ecx, dword ptr [edi + 4] */ 7030 /* test ecx, ecx */ /* 0x2B0280CA: test ecx, ecx */ 7031 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7032 _cf = 0; 7033 _flag_k = FK_TEST; 7034 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B0280CC: mov dword ptr [ebp - 0x1c], ebx */ 7035 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0280D5; /* 0x2B0280CF: jne 0x2b0280d5 */ 7036 L_2B0280D1: 7037 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7038 eax = 0; /* 0x2B0280D1: xor eax, eax */ 7039 _cf = 0; 7040 _flag_k = FK_TEST; 7041 goto L_2B0280DD; /* 0x2B0280D3: jmp 0x2b0280dd */ 7042 L_2B0280D5: 7043 eax = MEM32(edi + 0x8); /* 0x2B0280D5: mov eax, dword ptr [edi + 8] */ 7044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7046 eax = eax - ecx; /* 0x2B0280D8: sub eax, ecx */ 7047 _flag_k = FK_CMP; 7048 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0280DA: sar eax, 4 */ 7049 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7050 eax = (uint32_t)((int32_t)eax >> 4u); 7051 L_2B0280DD: 7052 /* test eax, eax */ /* 0x2B0280DD: test eax, eax */ 7053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7054 _cf = 0; 7055 _flag_k = FK_TEST; 7056 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0280E3; /* 0x2B0280DF: jge 0x2b0280e3 */ 7057 L_2B0280E1: 7058 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7059 eax = 0; /* 0x2B0280E1: xor eax, eax */ 7060 _cf = 0; 7061 _flag_k = FK_TEST; 7062 L_2B0280E3: 7063 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0280E3: shl eax, 4 */ 7064 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7065 eax = eax << 4u; /* 0x2B0280E3: shl eax, 4 */ 7066 PUSH32(esp, eax); /* 0x2B0280E6: push eax */ 7067 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0280E7: call 0x2b0ab212 */ /* not lifted */ 7068 RECOMP_FLAGS_IN(); 7069 MEM32(ebx + 0x4) = eax; /* 0x2B0280EC: mov dword ptr [ebx + 4], eax */ 7070 ecx = MEM32(edi + 0x8); /* 0x2B0280EF: mov ecx, dword ptr [edi + 8] */ 7071 edx = MEM32(edi + 0x4); /* 0x2B0280F2: mov edx, dword ptr [edi + 4] */ 7072 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7073 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7074 esp = esp + 4; /* 0x2B0280F5: add esp, 4 */ 7075 _flag_k = FK_ADD; 7076 /* cmp edx, ecx */ /* 0x2B0280F8: cmp edx, ecx */ 7077 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7079 _flag_k = FK_CMP; 7080 esi = eax; /* 0x2B0280FA: mov esi, eax */ 7081 MEM32(ebp + (-0x18)) = ecx; /* 0x2B0280FC: mov dword ptr [ebp - 0x18], ecx */ 7082 MEM32(ebp + (-0x10)) = esi; /* 0x2B0280FF: mov dword ptr [ebp - 0x10], esi */ 7083 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0281A6; /* 0x2B028102: je 0x2b0281a6 */ 7084 L_2B028108: 7085 ebx = edx + 0x4; /* 0x2B028108: lea ebx, [edx + 4] */ 7086 L_2B02810B: 7087 MEM32(ebp + (-0x20)) = esi; /* 0x2B02810B: mov dword ptr [ebp - 0x20], esi */ 7088 /* test esi, esi */ /* 0x2B02810E: test esi, esi */ 7089 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7090 _cf = 0; 7091 _flag_k = FK_TEST; 7092 MEM32(ebp + (-0x4)) = 0; /* 0x2B028110: mov dword ptr [ebp - 4], 0 */ 7093 if (TEST_Z(_flag_a, _flag_b)) goto L_2B028188; /* 0x2B028117: je 0x2b028188 */ 7094 L_2B028119: 7095 SET_LO8(ecx, MEM8(ebx + (-0x4))); /* 0x2B028119: mov cl, byte ptr [ebx - 4] */ 7096 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x2B02811C: mov byte ptr [esi], cl */ 7097 ecx = MEM32(ebx); /* 0x2B02811E: mov ecx, dword ptr [ebx] */ 7098 /* test ecx, ecx */ /* 0x2B028120: test ecx, ecx */ 7099 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7100 _cf = 0; 7101 _flag_k = FK_TEST; 7102 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028128; /* 0x2B028122: jne 0x2b028128 */ 7103 L_2B028124: 7104 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7105 eax = 0; /* 0x2B028124: xor eax, eax */ 7106 _cf = 0; 7107 _flag_k = FK_TEST; 7108 goto L_2B028130; /* 0x2B028126: jmp 0x2b028130 */ 7109 L_2B028128: 7110 eax = MEM32(ebx + 0x4); /* 0x2B028128: mov eax, dword ptr [ebx + 4] */ 7111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7113 eax = eax - ecx; /* 0x2B02812B: sub eax, ecx */ 7114 _flag_k = FK_CMP; 7115 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2B02812D: sar eax, 2 */ 7116 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7117 eax = (uint32_t)((int32_t)eax >> 2u); 7118 L_2B028130: 7119 /* test eax, eax */ /* 0x2B028130: test eax, eax */ 7120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7121 _cf = 0; 7122 _flag_k = FK_TEST; 7123 if (TEST_NS(_flag_a, _flag_b)) goto L_2B028136; /* 0x2B028132: jge 0x2b028136 */ 7124 L_2B028134: 7125 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7126 eax = 0; /* 0x2B028134: xor eax, eax */ 7127 _cf = 0; 7128 _flag_k = FK_TEST; 7129 L_2B028136: 7130 edx = eax * 4; /* 0x2B028136: lea edx, [eax*4] */ 7131 PUSH32(esp, edx); /* 0x2B02813D: push edx */ 7132 RECOMP_ICALL(0x2B0AB212u); /* 0x2B02813E: call 0x2b0ab212 */ /* not lifted */ 7133 RECOMP_FLAGS_IN(); 7134 MEM32(esi + 0x4) = eax; /* 0x2B028143: mov dword ptr [esi + 4], eax */ 7135 ecx = MEM32(ebx + 0x4); /* 0x2B028146: mov ecx, dword ptr [ebx + 4] */ 7136 edi = MEM32(ebx); /* 0x2B028149: mov edi, dword ptr [ebx] */ 7137 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7139 esp = esp + 4; /* 0x2B02814B: add esp, 4 */ 7140 _flag_k = FK_ADD; 7141 /* cmp edi, ecx */ /* 0x2B02814E: cmp edi, ecx */ 7142 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 7143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7144 _flag_k = FK_CMP; 7145 MEM32(ebp + (-0x14)) = ecx; /* 0x2B028150: mov dword ptr [ebp - 0x14], ecx */ 7146 esi = eax; /* 0x2B028153: mov esi, eax */ 7147 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028177; /* 0x2B028155: je 0x2b028177 */ 7148 L_2B028157: 7149 PUSH32(esp, esi); /* 0x2B028157: push esi */ 7150 PUSH32(esp, 4); /* 0x2B028158: push 4 */ 7151 RECOMP_ICALL(0x2B0281D0u); /* 0x2B02815A: call 0x2b0281d0 */ /* not lifted */ 7152 RECOMP_FLAGS_IN(); 7153 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7155 esp = esp + 8; /* 0x2B02815F: add esp, 8 */ 7156 _flag_k = FK_ADD; 7157 /* test eax, eax */ /* 0x2B028162: test eax, eax */ 7158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7159 _cf = 0; 7160 _flag_k = FK_TEST; 7161 if (TEST_Z(_flag_a, _flag_b)) goto L_2B02816A; /* 0x2B028164: je 0x2b02816a */ 7162 L_2B028166: 7163 ecx = MEM32(edi); /* 0x2B028166: mov ecx, dword ptr [edi] */ 7164 MEM32(eax) = ecx; /* 0x2B028168: mov dword ptr [eax], ecx */ 7165 L_2B02816A: 7166 eax = MEM32(ebp + (-0x14)); /* 0x2B02816A: mov eax, dword ptr [ebp - 0x14] */ 7167 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 7168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7169 edi = edi + 4; /* 0x2B02816D: add edi, 4 */ 7170 _flag_k = FK_ADD; 7171 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 7172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7173 esi = esi + 4; /* 0x2B028170: add esi, 4 */ 7174 _flag_k = FK_ADD; 7175 /* cmp edi, eax */ /* 0x2B028173: cmp edi, eax */ 7176 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7178 _flag_k = FK_CMP; 7179 RECOMP_BACKEDGE(); 7180 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028157; /* 0x2B028175: jne 0x2b028157 */ 7181 L_2B028177: 7182 eax = MEM32(ebp + (-0x10)); /* 0x2B028177: mov eax, dword ptr [ebp - 0x10] */ 7183 edi = MEM32(ebp + 0x8); /* 0x2B02817A: mov edi, dword ptr [ebp + 8] */ 7184 ecx = MEM32(ebp + (-0x18)); /* 0x2B02817D: mov ecx, dword ptr [ebp - 0x18] */ 7185 MEM32(eax + 0x8) = esi; /* 0x2B028180: mov dword ptr [eax + 8], esi */ 7186 MEM32(eax + 0xC) = esi; /* 0x2B028183: mov dword ptr [eax + 0xc], esi */ 7187 esi = eax; /* 0x2B028186: mov esi, eax */ 7188 L_2B028188: 7189 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 7190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7191 ebx = ebx + 0x10u; /* 0x2B028188: add ebx, 0x10 */ 7192 _flag_k = FK_ADD; 7193 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 7194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7195 esi = esi + 0x10u; /* 0x2B02818B: add esi, 0x10 */ 7196 _flag_k = FK_ADD; 7197 edx = ebx + (-0x4); /* 0x2B02818E: lea edx, [ebx - 4] */ 7198 /* cmp edx, ecx */ /* 0x2B028191: cmp edx, ecx */ 7199 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7201 _flag_k = FK_CMP; 7202 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B028193: mov dword ptr [ebp - 4], 0xffffffff */ 7203 MEM32(ebp + (-0x10)) = esi; /* 0x2B02819A: mov dword ptr [ebp - 0x10], esi */ 7204 RECOMP_BACKEDGE(); 7205 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02810B; /* 0x2B02819D: jne 0x2b02810b */ 7206 L_2B0281A3: 7207 ebx = MEM32(ebp + (-0x1C)); /* 0x2B0281A3: mov ebx, dword ptr [ebp - 0x1c] */ 7208 L_2B0281A6: 7209 MEM32(ebx + 0x8) = esi; /* 0x2B0281A6: mov dword ptr [ebx + 8], esi */ 7210 MEM32(ebx + 0xC) = esi; /* 0x2B0281A9: mov dword ptr [ebx + 0xc], esi */ 7211 eax = MEM32(edi + 0x10); /* 0x2B0281AC: mov eax, dword ptr [edi + 0x10] */ 7212 MEM32(ebx + 0x10) = eax; /* 0x2B0281AF: mov dword ptr [ebx + 0x10], eax */ 7213 ecx = MEM32(edi + 0x14); /* 0x2B0281B2: mov ecx, dword ptr [edi + 0x14] */ 7214 MEM32(ebx + 0x14) = ecx; /* 0x2B0281B5: mov dword ptr [ebx + 0x14], ecx */ 7215 ecx = MEM32(ebp + (-0xC)); /* 0x2B0281B8: mov ecx, dword ptr [ebp - 0xc] */ 7216 edi = POP32_VAL(esp); /* 0x2B0281BB: pop edi */ 7217 esi = POP32_VAL(esp); /* 0x2B0281BC: pop esi */ 7218 eax = ebx; /* 0x2B0281BD: mov eax, ebx */ 7219 ebx = POP32_VAL(esp); /* 0x2B0281BF: pop ebx */ 7220 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0281C0: mov dword ptr fs:[0], ecx */ 7221 esp = ebp; /* 0x2B0281C7: mov esp, ebp */ 7222 ebp = POP32_VAL(esp); /* 0x2B0281C9: pop ebp */ 7223 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0281CA: ret 4 */ 7224 RECOMP_REGS_OUT(); 7225 } 7226 7227 void sub_2B0281D0(void) { 7228 int _fpu_cmp = 0; 7229 uint32_t _cf = 0; 7230 int _df = 1; 7231 uint32_t _flag_k = FK_NONE; 7232 uint32_t _flag_a = 0, _flag_b = 0; 7233 uint32_t _itail_tgt = 0; 7234 RECOMP_REGS_LOCALS 7235 RECOMP_ENTER(0x2B0281D0u); 7236 7237 L_2B0281D0: 7238 PUSH32(esp, ebp); /* 0x2B0281D0: push ebp */ 7239 ebp = esp; /* 0x2B0281D1: mov ebp, esp */ 7240 eax = MEM32(ebp + 0xC); /* 0x2B0281D3: mov eax, dword ptr [ebp + 0xc] */ 7241 ebp = POP32_VAL(esp); /* 0x2B0281D6: pop ebp */ 7242 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0281D7: ret */ 7243 RECOMP_REGS_OUT(); 7244 } 7245 7246 void sub_2B0281E0(void) { 7247 int _fpu_cmp = 0; 7248 uint32_t _cf = 0; 7249 int _df = 1; 7250 uint32_t _flag_k = FK_NONE; 7251 uint32_t _flag_a = 0, _flag_b = 0; 7252 uint32_t _itail_tgt = 0; 7253 RECOMP_REGS_LOCALS 7254 RECOMP_ENTER(0x2B0281E0u); 7255 7256 L_2B0281E0: 7257 PUSH32(esp, ebp); /* 0x2B0281E0: push ebp */ 7258 ebp = esp; /* 0x2B0281E1: mov ebp, esp */ 7259 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0281E3: push -1 */ 7260 PUSH32(esp, 0x2B0ADC08u); /* 0x2B0281E5: push 0x2b0adc08 */ 7261 eax = MEM32(FS_BASE + (0)); /* 0x2B0281EA: mov eax, dword ptr fs:[0] */ 7262 PUSH32(esp, eax); /* 0x2B0281F0: push eax */ 7263 MEM32(FS_BASE + (0)) = esp; /* 0x2B0281F1: mov dword ptr fs:[0], esp */ 7264 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7266 esp = esp - 0x14u; /* 0x2B0281F8: sub esp, 0x14 */ 7267 _flag_k = FK_CMP; 7268 PUSH32(esp, esi); /* 0x2B0281FB: push esi */ 7269 esi = ecx; /* 0x2B0281FC: mov esi, ecx */ 7270 eax = MEM32(esi + 0x7C); /* 0x2B0281FE: mov eax, dword ptr [esi + 0x7c] */ 7271 /* test eax, eax */ /* 0x2B028201: test eax, eax */ 7272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7273 _cf = 0; 7274 _flag_k = FK_TEST; 7275 if (TEST_LE(_flag_a, _flag_b)) goto L_2B0283A7; /* 0x2B028203: jle 0x2b0283a7 */ 7276 L_2B028209: 7277 PUSH32(esp, ebx); /* 0x2B028209: push ebx */ 7278 PUSH32(esp, edi); /* 0x2B02820A: push edi */ 7279 PUSH32(esp, 0); /* 0x2B02820B: push 0 */ 7280 eax = ebp + (-0x20); /* 0x2B02820D: lea eax, [ebp - 0x20] */ 7281 edi = esi + 0x6C; /* 0x2B028210: lea edi, [esi + 0x6c] */ 7282 PUSH32(esp, eax); /* 0x2B028213: push eax */ 7283 ecx = edi; /* 0x2B028214: mov ecx, edi */ 7284 RECOMP_ICALL(0x2B0251D0u); /* 0x2B028216: call 0x2b0251d0 */ /* not lifted */ 7285 RECOMP_FLAGS_IN(); 7286 MEM32(ebp + (-0x4)) = 0; /* 0x2B02821B: mov dword ptr [ebp - 4], 0 */ 7287 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x4Cu); 7288 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7289 esi = esi + 0x4Cu; /* 0x2B028222: add esi, 0x4c */ 7290 _flag_k = FK_ADD; 7291 L_2B028225: 7292 ecx = ebp + (-0x20); /* 0x2B028225: lea ecx, [ebp - 0x20] */ 7293 /* cmp esi, ecx */ /* 0x2B028228: cmp esi, ecx */ 7294 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 7295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7296 _flag_k = FK_CMP; 7297 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028328; /* 0x2B02822A: je 0x2b028328 */ 7298 L_2B028230: 7299 eax = MEM32(ebp + (-0x1C)); /* 0x2B028230: mov eax, dword ptr [ebp - 0x1c] */ 7300 /* test eax, eax */ /* 0x2B028233: test eax, eax */ 7301 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7302 _cf = 0; 7303 _flag_k = FK_TEST; 7304 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02823B; /* 0x2B028235: jne 0x2b02823b */ 7305 L_2B028237: 7306 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7307 ebx = 0; /* 0x2B028237: xor ebx, ebx */ 7308 _cf = 0; 7309 _flag_k = FK_TEST; 7310 goto L_2B028243; /* 0x2B028239: jmp 0x2b028243 */ 7311 L_2B02823B: 7312 ebx = MEM32(ebp + (-0x18)); /* 0x2B02823B: mov ebx, dword ptr [ebp - 0x18] */ 7313 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7315 ebx = ebx - eax; /* 0x2B02823E: sub ebx, eax */ 7316 _flag_k = FK_CMP; 7317 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x2B028240: sar ebx, 2 */ 7318 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7319 ebx = (uint32_t)((int32_t)ebx >> 2u); 7320 L_2B028243: 7321 ecx = esi; /* 0x2B028243: mov ecx, esi */ 7322 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028245: call 0x2b01da00 */ /* not lifted */ 7323 RECOMP_FLAGS_IN(); 7324 /* cmp ebx, eax */ /* 0x2B02824A: cmp ebx, eax */ 7325 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7327 _flag_k = FK_CMP; 7328 if (CMP_A(_flag_a, _flag_b)) goto L_2B028284; /* 0x2B02824C: ja 0x2b028284 */ 7329 L_2B02824E: 7330 edx = MEM32(esi + 0x4); /* 0x2B02824E: mov edx, dword ptr [esi + 4] */ 7331 eax = MEM32(ebp + (-0x18)); /* 0x2B028251: mov eax, dword ptr [ebp - 0x18] */ 7332 ecx = MEM32(ebp + (-0x1C)); /* 0x2B028254: mov ecx, dword ptr [ebp - 0x1c] */ 7333 PUSH32(esp, edx); /* 0x2B028257: push edx */ 7334 PUSH32(esp, eax); /* 0x2B028258: push eax */ 7335 PUSH32(esp, ecx); /* 0x2B028259: push ecx */ 7336 RECOMP_ICALL(0x2B02A820u); /* 0x2B02825A: call 0x2b02a820 */ /* not lifted */ 7337 RECOMP_FLAGS_IN(); 7338 edx = MEM32(esi + 0x8); /* 0x2B02825F: mov edx, dword ptr [esi + 8] */ 7339 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7341 esp = esp + 0xCu; /* 0x2B028262: add esp, 0xc */ 7342 _flag_k = FK_ADD; 7343 PUSH32(esp, edx); /* 0x2B028265: push edx */ 7344 PUSH32(esp, eax); /* 0x2B028266: push eax */ 7345 ecx = esi; /* 0x2B028267: mov ecx, esi */ 7346 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028269: call 0x2b0292c0 */ /* not lifted */ 7347 RECOMP_FLAGS_IN(); 7348 ecx = ebp + (-0x20); /* 0x2B02826E: lea ecx, [ebp - 0x20] */ 7349 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028271: call 0x2b01da00 */ /* not lifted */ 7350 RECOMP_FLAGS_IN(); 7351 ecx = MEM32(esi + 0x4); /* 0x2B028276: mov ecx, dword ptr [esi + 4] */ 7352 edx = ecx + eax * 4; /* 0x2B028279: lea edx, [ecx + eax*4] */ 7353 MEM32(esi + 0x8) = edx; /* 0x2B02827C: mov dword ptr [esi + 8], edx */ 7354 goto L_2B028328; /* 0x2B02827F: jmp 0x2b028328 */ 7355 L_2B028284: 7356 ecx = esi; /* 0x2B028284: mov ecx, esi */ 7357 RECOMP_ICALL(0x2B028F10u); /* 0x2B028286: call 0x2b028f10 */ /* not lifted */ 7358 RECOMP_FLAGS_IN(); 7359 ecx = ebp + (-0x20); /* 0x2B02828B: lea ecx, [ebp - 0x20] */ 7360 ebx = eax; /* 0x2B02828E: mov ebx, eax */ 7361 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028290: call 0x2b01da00 */ /* not lifted */ 7362 RECOMP_FLAGS_IN(); 7363 /* cmp eax, ebx */ /* 0x2B028295: cmp eax, ebx */ 7364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7366 _flag_k = FK_CMP; 7367 if (CMP_A(_flag_a, _flag_b)) goto L_2B0282DA; /* 0x2B028297: ja 0x2b0282da */ 7368 L_2B028299: 7369 ebx = MEM32(ebp + (-0x1C)); /* 0x2B028299: mov ebx, dword ptr [ebp - 0x1c] */ 7370 ecx = esi; /* 0x2B02829C: mov ecx, esi */ 7371 RECOMP_ICALL(0x2B01DA00u); /* 0x2B02829E: call 0x2b01da00 */ /* not lifted */ 7372 RECOMP_FLAGS_IN(); 7373 ecx = MEM32(ebp + (-0x1C)); /* 0x2B0282A3: mov ecx, dword ptr [ebp - 0x1c] */ 7374 ebx = ebx + eax * 4; /* 0x2B0282A6: lea ebx, [ebx + eax*4] */ 7375 eax = MEM32(esi + 0x4); /* 0x2B0282A9: mov eax, dword ptr [esi + 4] */ 7376 PUSH32(esp, eax); /* 0x2B0282AC: push eax */ 7377 PUSH32(esp, ebx); /* 0x2B0282AD: push ebx */ 7378 PUSH32(esp, ecx); /* 0x2B0282AE: push ecx */ 7379 RECOMP_ICALL(0x2B02A820u); /* 0x2B0282AF: call 0x2b02a820 */ /* not lifted */ 7380 RECOMP_FLAGS_IN(); 7381 edx = MEM32(esi + 0x8); /* 0x2B0282B4: mov edx, dword ptr [esi + 8] */ 7382 eax = MEM32(ebp + (-0x18)); /* 0x2B0282B7: mov eax, dword ptr [ebp - 0x18] */ 7383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7385 esp = esp + 0xCu; /* 0x2B0282BA: add esp, 0xc */ 7386 _flag_k = FK_ADD; 7387 PUSH32(esp, edx); /* 0x2B0282BD: push edx */ 7388 PUSH32(esp, eax); /* 0x2B0282BE: push eax */ 7389 PUSH32(esp, ebx); /* 0x2B0282BF: push ebx */ 7390 ecx = esi; /* 0x2B0282C0: mov ecx, esi */ 7391 RECOMP_ICALL(0x2B01DA20u); /* 0x2B0282C2: call 0x2b01da20 */ /* not lifted */ 7392 RECOMP_FLAGS_IN(); 7393 ecx = ebp + (-0x20); /* 0x2B0282C7: lea ecx, [ebp - 0x20] */ 7394 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0282CA: call 0x2b01da00 */ /* not lifted */ 7395 RECOMP_FLAGS_IN(); 7396 ecx = MEM32(esi + 0x4); /* 0x2B0282CF: mov ecx, dword ptr [esi + 4] */ 7397 edx = ecx + eax * 4; /* 0x2B0282D2: lea edx, [ecx + eax*4] */ 7398 MEM32(esi + 0x8) = edx; /* 0x2B0282D5: mov dword ptr [esi + 8], edx */ 7399 goto L_2B028328; /* 0x2B0282D8: jmp 0x2b028328 */ 7400 L_2B0282DA: 7401 eax = MEM32(esi + 0x8); /* 0x2B0282DA: mov eax, dword ptr [esi + 8] */ 7402 ecx = MEM32(esi + 0x4); /* 0x2B0282DD: mov ecx, dword ptr [esi + 4] */ 7403 PUSH32(esp, eax); /* 0x2B0282E0: push eax */ 7404 PUSH32(esp, ecx); /* 0x2B0282E1: push ecx */ 7405 ecx = esi; /* 0x2B0282E2: mov ecx, esi */ 7406 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0282E4: call 0x2b0292c0 */ /* not lifted */ 7407 RECOMP_FLAGS_IN(); 7408 edx = MEM32(esi + 0x4); /* 0x2B0282E9: mov edx, dword ptr [esi + 4] */ 7409 PUSH32(esp, edx); /* 0x2B0282EC: push edx */ 7410 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0282ED: call 0x2b0ab1ba */ /* not lifted */ 7411 RECOMP_FLAGS_IN(); 7412 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7413 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7414 esp = esp + 4; /* 0x2B0282F2: add esp, 4 */ 7415 _flag_k = FK_ADD; 7416 ecx = ebp + (-0x20); /* 0x2B0282F5: lea ecx, [ebp - 0x20] */ 7417 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0282F8: call 0x2b01da00 */ /* not lifted */ 7418 RECOMP_FLAGS_IN(); 7419 /* test eax, eax */ /* 0x2B0282FD: test eax, eax */ 7420 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7421 _cf = 0; 7422 _flag_k = FK_TEST; 7423 if (TEST_NS(_flag_a, _flag_b)) goto L_2B028303; /* 0x2B0282FF: jge 0x2b028303 */ 7424 L_2B028301: 7425 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7426 eax = 0; /* 0x2B028301: xor eax, eax */ 7427 _cf = 0; 7428 _flag_k = FK_TEST; 7429 L_2B028303: 7430 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2B028303: shl eax, 2 */ 7431 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7432 eax = eax << 2u; /* 0x2B028303: shl eax, 2 */ 7433 PUSH32(esp, eax); /* 0x2B028306: push eax */ 7434 RECOMP_ICALL(0x2B0AB212u); /* 0x2B028307: call 0x2b0ab212 */ /* not lifted */ 7435 RECOMP_FLAGS_IN(); 7436 ecx = MEM32(ebp + (-0x18)); /* 0x2B02830C: mov ecx, dword ptr [ebp - 0x18] */ 7437 edx = MEM32(ebp + (-0x1C)); /* 0x2B02830F: mov edx, dword ptr [ebp - 0x1c] */ 7438 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7439 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7440 esp = esp + 4; /* 0x2B028312: add esp, 4 */ 7441 _flag_k = FK_ADD; 7442 PUSH32(esp, eax); /* 0x2B028315: push eax */ 7443 PUSH32(esp, ecx); /* 0x2B028316: push ecx */ 7444 PUSH32(esp, edx); /* 0x2B028317: push edx */ 7445 ecx = esi; /* 0x2B028318: mov ecx, esi */ 7446 MEM32(esi + 0x4) = eax; /* 0x2B02831A: mov dword ptr [esi + 4], eax */ 7447 RECOMP_ICALL(0x2B01DA20u); /* 0x2B02831D: call 0x2b01da20 */ /* not lifted */ 7448 RECOMP_FLAGS_IN(); 7449 MEM32(esi + 0x8) = eax; /* 0x2B028322: mov dword ptr [esi + 8], eax */ 7450 MEM32(esi + 0xC) = eax; /* 0x2B028325: mov dword ptr [esi + 0xc], eax */ 7451 L_2B028328: 7452 eax = MEM32(ebp + (-0x18)); /* 0x2B028328: mov eax, dword ptr [ebp - 0x18] */ 7453 ecx = eax + (-0x4); /* 0x2B02832B: lea ecx, [eax - 4] */ 7454 PUSH32(esp, ecx); /* 0x2B02832E: push ecx */ 7455 PUSH32(esp, eax); /* 0x2B02832F: push eax */ 7456 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 7457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7458 ecx = ecx + 4; /* 0x2B028330: add ecx, 4 */ 7459 _flag_k = FK_ADD; 7460 PUSH32(esp, ecx); /* 0x2B028333: push ecx */ 7461 RECOMP_ICALL(0x2B02A820u); /* 0x2B028334: call 0x2b02a820 */ /* not lifted */ 7462 RECOMP_FLAGS_IN(); 7463 eax = MEM32(ebp + (-0x18)); /* 0x2B028339: mov eax, dword ptr [ebp - 0x18] */ 7464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7466 esp = esp + 0xCu; /* 0x2B02833C: add esp, 0xc */ 7467 _flag_k = FK_ADD; 7468 PUSH32(esp, eax); /* 0x2B02833F: push eax */ 7469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 7470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7471 eax = eax + 0xFFFFFFFCu; /* 0x2B028340: add eax, -4 */ 7472 _flag_k = FK_ADD; 7473 PUSH32(esp, eax); /* 0x2B028343: push eax */ 7474 ecx = ebp + (-0x20); /* 0x2B028344: lea ecx, [ebp - 0x20] */ 7475 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028347: call 0x2b0292c0 */ /* not lifted */ 7476 RECOMP_FLAGS_IN(); 7477 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(4); 7478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7479 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) - 4; /* 0x2B02834C: sub dword ptr [ebp - 0x18], 4 */ 7480 _flag_k = FK_CMP; 7481 eax = ebp + (-0x20); /* 0x2B028350: lea eax, [ebp - 0x20] */ 7482 PUSH32(esp, eax); /* 0x2B028353: push eax */ 7483 ecx = ebp + (-0x10); /* 0x2B028354: lea ecx, [ebp - 0x10] */ 7484 PUSH32(esp, ecx); /* 0x2B028357: push ecx */ 7485 ecx = edi; /* 0x2B028358: mov ecx, edi */ 7486 RECOMP_ICALL(0x2B028E60u); /* 0x2B02835A: call 0x2b028e60 */ /* not lifted */ 7487 RECOMP_FLAGS_IN(); 7488 eax = MEM32(eax); /* 0x2B02835F: mov eax, dword ptr [eax] */ 7489 /* cmp eax, MEM32(edi + 0x4) */ /* 0x2B028361: cmp eax, dword ptr [edi + 4] */ 7490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7492 _flag_k = FK_CMP; 7493 RECOMP_BACKEDGE(); 7494 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028225; /* 0x2B028364: jne 0x2b028225 */ 7495 L_2B02836A: 7496 PUSH32(esp, esi); /* 0x2B02836A: push esi */ 7497 ecx = ebp + (-0x20); /* 0x2B02836B: lea ecx, [ebp - 0x20] */ 7498 RECOMP_ICALL(0x2B01E140u); /* 0x2B02836E: call 0x2b01e140 */ /* not lifted */ 7499 RECOMP_FLAGS_IN(); 7500 L_2B028373: 7501 edx = ebp + (-0x20); /* 0x2B028373: lea edx, [ebp - 0x20] */ 7502 PUSH32(esp, edx); /* 0x2B028376: push edx */ 7503 ecx = esi; /* 0x2B028377: mov ecx, esi */ 7504 RECOMP_ICALL(0x2B01E140u); /* 0x2B028379: call 0x2b01e140 */ /* not lifted */ 7505 RECOMP_FLAGS_IN(); 7506 eax = MEM32(ebp + (-0x1C)); /* 0x2B02837E: mov eax, dword ptr [ebp - 0x1c] */ 7507 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 7508 MEM32(eax) = MEM32(eax) - 1; /* 0x2B028381: dec dword ptr [eax] */ 7509 _flag_k = FK_DEC; 7510 eax = ebp + (-0x20); /* 0x2B028383: lea eax, [ebp - 0x20] */ 7511 PUSH32(esp, eax); /* 0x2B028386: push eax */ 7512 ecx = ebp + (-0x10); /* 0x2B028387: lea ecx, [ebp - 0x10] */ 7513 PUSH32(esp, ecx); /* 0x2B02838A: push ecx */ 7514 ecx = edi; /* 0x2B02838B: mov ecx, edi */ 7515 RECOMP_ICALL(0x2B028E60u); /* 0x2B02838D: call 0x2b028e60 */ /* not lifted */ 7516 RECOMP_FLAGS_IN(); 7517 eax = MEM32(eax); /* 0x2B028392: mov eax, dword ptr [eax] */ 7518 /* cmp eax, MEM32(edi + 0x4) */ /* 0x2B028394: cmp eax, dword ptr [edi + 4] */ 7519 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7521 _flag_k = FK_CMP; 7522 RECOMP_BACKEDGE(); 7523 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028373; /* 0x2B028397: jne 0x2b028373 */ 7524 L_2B028399: 7525 edx = MEM32(ebp + (-0x1C)); /* 0x2B028399: mov edx, dword ptr [ebp - 0x1c] */ 7526 PUSH32(esp, edx); /* 0x2B02839C: push edx */ 7527 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02839D: call 0x2b0ab1ba */ /* not lifted */ 7528 RECOMP_FLAGS_IN(); 7529 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7531 esp = esp + 4; /* 0x2B0283A2: add esp, 4 */ 7532 _flag_k = FK_ADD; 7533 edi = POP32_VAL(esp); /* 0x2B0283A5: pop edi */ 7534 ebx = POP32_VAL(esp); /* 0x2B0283A6: pop ebx */ 7535 L_2B0283A7: 7536 ecx = MEM32(ebp + (-0xC)); /* 0x2B0283A7: mov ecx, dword ptr [ebp - 0xc] */ 7537 esi = POP32_VAL(esp); /* 0x2B0283AA: pop esi */ 7538 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0283AB: mov dword ptr fs:[0], ecx */ 7539 esp = ebp; /* 0x2B0283B2: mov esp, ebp */ 7540 ebp = POP32_VAL(esp); /* 0x2B0283B4: pop ebp */ 7541 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0283B5: ret */ 7542 RECOMP_REGS_OUT(); 7543 } 7544 7545 void sub_2B028225(void) { 7546 int _fpu_cmp = 0; 7547 uint32_t _cf = 0; 7548 int _df = 1; 7549 uint32_t _flag_k = FK_NONE; 7550 uint32_t _flag_a = 0, _flag_b = 0; 7551 uint32_t _itail_tgt = 0; 7552 RECOMP_REGS_LOCALS 7553 RECOMP_ENTER(0x2B028225u); 7554 7555 L_2B028225: 7556 ecx = ebp + (-0x20); /* 0x2B028225: lea ecx, [ebp - 0x20] */ 7557 /* cmp esi, ecx */ /* 0x2B028228: cmp esi, ecx */ 7558 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 7559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7560 _flag_k = FK_CMP; 7561 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028328; /* 0x2B02822A: je 0x2b028328 */ 7562 L_2B028230: 7563 eax = MEM32(ebp + (-0x1C)); /* 0x2B028230: mov eax, dword ptr [ebp - 0x1c] */ 7564 /* test eax, eax */ /* 0x2B028233: test eax, eax */ 7565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7566 _cf = 0; 7567 _flag_k = FK_TEST; 7568 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02823B; /* 0x2B028235: jne 0x2b02823b */ 7569 L_2B028237: 7570 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7571 ebx = 0; /* 0x2B028237: xor ebx, ebx */ 7572 _cf = 0; 7573 _flag_k = FK_TEST; 7574 goto L_2B028243; /* 0x2B028239: jmp 0x2b028243 */ 7575 L_2B02823B: 7576 ebx = MEM32(ebp + (-0x18)); /* 0x2B02823B: mov ebx, dword ptr [ebp - 0x18] */ 7577 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7579 ebx = ebx - eax; /* 0x2B02823E: sub ebx, eax */ 7580 _flag_k = FK_CMP; 7581 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x2B028240: sar ebx, 2 */ 7582 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7583 ebx = (uint32_t)((int32_t)ebx >> 2u); 7584 L_2B028243: 7585 ecx = esi; /* 0x2B028243: mov ecx, esi */ 7586 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028245: call 0x2b01da00 */ /* not lifted */ 7587 RECOMP_FLAGS_IN(); 7588 /* cmp ebx, eax */ /* 0x2B02824A: cmp ebx, eax */ 7589 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7591 _flag_k = FK_CMP; 7592 if (CMP_A(_flag_a, _flag_b)) goto L_2B028284; /* 0x2B02824C: ja 0x2b028284 */ 7593 L_2B02824E: 7594 edx = MEM32(esi + 0x4); /* 0x2B02824E: mov edx, dword ptr [esi + 4] */ 7595 eax = MEM32(ebp + (-0x18)); /* 0x2B028251: mov eax, dword ptr [ebp - 0x18] */ 7596 ecx = MEM32(ebp + (-0x1C)); /* 0x2B028254: mov ecx, dword ptr [ebp - 0x1c] */ 7597 PUSH32(esp, edx); /* 0x2B028257: push edx */ 7598 PUSH32(esp, eax); /* 0x2B028258: push eax */ 7599 PUSH32(esp, ecx); /* 0x2B028259: push ecx */ 7600 RECOMP_ICALL(0x2B02A820u); /* 0x2B02825A: call 0x2b02a820 */ /* not lifted */ 7601 RECOMP_FLAGS_IN(); 7602 edx = MEM32(esi + 0x8); /* 0x2B02825F: mov edx, dword ptr [esi + 8] */ 7603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7605 esp = esp + 0xCu; /* 0x2B028262: add esp, 0xc */ 7606 _flag_k = FK_ADD; 7607 PUSH32(esp, edx); /* 0x2B028265: push edx */ 7608 PUSH32(esp, eax); /* 0x2B028266: push eax */ 7609 ecx = esi; /* 0x2B028267: mov ecx, esi */ 7610 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028269: call 0x2b0292c0 */ /* not lifted */ 7611 RECOMP_FLAGS_IN(); 7612 ecx = ebp + (-0x20); /* 0x2B02826E: lea ecx, [ebp - 0x20] */ 7613 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028271: call 0x2b01da00 */ /* not lifted */ 7614 RECOMP_FLAGS_IN(); 7615 ecx = MEM32(esi + 0x4); /* 0x2B028276: mov ecx, dword ptr [esi + 4] */ 7616 edx = ecx + eax * 4; /* 0x2B028279: lea edx, [ecx + eax*4] */ 7617 MEM32(esi + 0x8) = edx; /* 0x2B02827C: mov dword ptr [esi + 8], edx */ 7618 goto L_2B028328; /* 0x2B02827F: jmp 0x2b028328 */ 7619 L_2B028284: 7620 ecx = esi; /* 0x2B028284: mov ecx, esi */ 7621 RECOMP_ICALL(0x2B028F10u); /* 0x2B028286: call 0x2b028f10 */ /* not lifted */ 7622 RECOMP_FLAGS_IN(); 7623 ecx = ebp + (-0x20); /* 0x2B02828B: lea ecx, [ebp - 0x20] */ 7624 ebx = eax; /* 0x2B02828E: mov ebx, eax */ 7625 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028290: call 0x2b01da00 */ /* not lifted */ 7626 RECOMP_FLAGS_IN(); 7627 /* cmp eax, ebx */ /* 0x2B028295: cmp eax, ebx */ 7628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7630 _flag_k = FK_CMP; 7631 if (CMP_A(_flag_a, _flag_b)) goto L_2B0282DA; /* 0x2B028297: ja 0x2b0282da */ 7632 L_2B028299: 7633 ebx = MEM32(ebp + (-0x1C)); /* 0x2B028299: mov ebx, dword ptr [ebp - 0x1c] */ 7634 ecx = esi; /* 0x2B02829C: mov ecx, esi */ 7635 RECOMP_ICALL(0x2B01DA00u); /* 0x2B02829E: call 0x2b01da00 */ /* not lifted */ 7636 RECOMP_FLAGS_IN(); 7637 ecx = MEM32(ebp + (-0x1C)); /* 0x2B0282A3: mov ecx, dword ptr [ebp - 0x1c] */ 7638 ebx = ebx + eax * 4; /* 0x2B0282A6: lea ebx, [ebx + eax*4] */ 7639 eax = MEM32(esi + 0x4); /* 0x2B0282A9: mov eax, dword ptr [esi + 4] */ 7640 PUSH32(esp, eax); /* 0x2B0282AC: push eax */ 7641 PUSH32(esp, ebx); /* 0x2B0282AD: push ebx */ 7642 PUSH32(esp, ecx); /* 0x2B0282AE: push ecx */ 7643 RECOMP_ICALL(0x2B02A820u); /* 0x2B0282AF: call 0x2b02a820 */ /* not lifted */ 7644 RECOMP_FLAGS_IN(); 7645 edx = MEM32(esi + 0x8); /* 0x2B0282B4: mov edx, dword ptr [esi + 8] */ 7646 eax = MEM32(ebp + (-0x18)); /* 0x2B0282B7: mov eax, dword ptr [ebp - 0x18] */ 7647 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7648 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7649 esp = esp + 0xCu; /* 0x2B0282BA: add esp, 0xc */ 7650 _flag_k = FK_ADD; 7651 PUSH32(esp, edx); /* 0x2B0282BD: push edx */ 7652 PUSH32(esp, eax); /* 0x2B0282BE: push eax */ 7653 PUSH32(esp, ebx); /* 0x2B0282BF: push ebx */ 7654 ecx = esi; /* 0x2B0282C0: mov ecx, esi */ 7655 RECOMP_ICALL(0x2B01DA20u); /* 0x2B0282C2: call 0x2b01da20 */ /* not lifted */ 7656 RECOMP_FLAGS_IN(); 7657 ecx = ebp + (-0x20); /* 0x2B0282C7: lea ecx, [ebp - 0x20] */ 7658 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0282CA: call 0x2b01da00 */ /* not lifted */ 7659 RECOMP_FLAGS_IN(); 7660 ecx = MEM32(esi + 0x4); /* 0x2B0282CF: mov ecx, dword ptr [esi + 4] */ 7661 edx = ecx + eax * 4; /* 0x2B0282D2: lea edx, [ecx + eax*4] */ 7662 MEM32(esi + 0x8) = edx; /* 0x2B0282D5: mov dword ptr [esi + 8], edx */ 7663 goto L_2B028328; /* 0x2B0282D8: jmp 0x2b028328 */ 7664 L_2B0282DA: 7665 eax = MEM32(esi + 0x8); /* 0x2B0282DA: mov eax, dword ptr [esi + 8] */ 7666 ecx = MEM32(esi + 0x4); /* 0x2B0282DD: mov ecx, dword ptr [esi + 4] */ 7667 PUSH32(esp, eax); /* 0x2B0282E0: push eax */ 7668 PUSH32(esp, ecx); /* 0x2B0282E1: push ecx */ 7669 ecx = esi; /* 0x2B0282E2: mov ecx, esi */ 7670 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0282E4: call 0x2b0292c0 */ /* not lifted */ 7671 RECOMP_FLAGS_IN(); 7672 edx = MEM32(esi + 0x4); /* 0x2B0282E9: mov edx, dword ptr [esi + 4] */ 7673 PUSH32(esp, edx); /* 0x2B0282EC: push edx */ 7674 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0282ED: call 0x2b0ab1ba */ /* not lifted */ 7675 RECOMP_FLAGS_IN(); 7676 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7678 esp = esp + 4; /* 0x2B0282F2: add esp, 4 */ 7679 _flag_k = FK_ADD; 7680 ecx = ebp + (-0x20); /* 0x2B0282F5: lea ecx, [ebp - 0x20] */ 7681 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0282F8: call 0x2b01da00 */ /* not lifted */ 7682 RECOMP_FLAGS_IN(); 7683 /* test eax, eax */ /* 0x2B0282FD: test eax, eax */ 7684 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7685 _cf = 0; 7686 _flag_k = FK_TEST; 7687 if (TEST_NS(_flag_a, _flag_b)) goto L_2B028303; /* 0x2B0282FF: jge 0x2b028303 */ 7688 L_2B028301: 7689 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7690 eax = 0; /* 0x2B028301: xor eax, eax */ 7691 _cf = 0; 7692 _flag_k = FK_TEST; 7693 L_2B028303: 7694 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2B028303: shl eax, 2 */ 7695 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7696 eax = eax << 2u; /* 0x2B028303: shl eax, 2 */ 7697 PUSH32(esp, eax); /* 0x2B028306: push eax */ 7698 RECOMP_ICALL(0x2B0AB212u); /* 0x2B028307: call 0x2b0ab212 */ /* not lifted */ 7699 RECOMP_FLAGS_IN(); 7700 ecx = MEM32(ebp + (-0x18)); /* 0x2B02830C: mov ecx, dword ptr [ebp - 0x18] */ 7701 edx = MEM32(ebp + (-0x1C)); /* 0x2B02830F: mov edx, dword ptr [ebp - 0x1c] */ 7702 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7703 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7704 esp = esp + 4; /* 0x2B028312: add esp, 4 */ 7705 _flag_k = FK_ADD; 7706 PUSH32(esp, eax); /* 0x2B028315: push eax */ 7707 PUSH32(esp, ecx); /* 0x2B028316: push ecx */ 7708 PUSH32(esp, edx); /* 0x2B028317: push edx */ 7709 ecx = esi; /* 0x2B028318: mov ecx, esi */ 7710 MEM32(esi + 0x4) = eax; /* 0x2B02831A: mov dword ptr [esi + 4], eax */ 7711 RECOMP_ICALL(0x2B01DA20u); /* 0x2B02831D: call 0x2b01da20 */ /* not lifted */ 7712 RECOMP_FLAGS_IN(); 7713 MEM32(esi + 0x8) = eax; /* 0x2B028322: mov dword ptr [esi + 8], eax */ 7714 MEM32(esi + 0xC) = eax; /* 0x2B028325: mov dword ptr [esi + 0xc], eax */ 7715 L_2B028328: 7716 eax = MEM32(ebp + (-0x18)); /* 0x2B028328: mov eax, dword ptr [ebp - 0x18] */ 7717 ecx = eax + (-0x4); /* 0x2B02832B: lea ecx, [eax - 4] */ 7718 PUSH32(esp, ecx); /* 0x2B02832E: push ecx */ 7719 PUSH32(esp, eax); /* 0x2B02832F: push eax */ 7720 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 7721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7722 ecx = ecx + 4; /* 0x2B028330: add ecx, 4 */ 7723 _flag_k = FK_ADD; 7724 PUSH32(esp, ecx); /* 0x2B028333: push ecx */ 7725 RECOMP_ICALL(0x2B02A820u); /* 0x2B028334: call 0x2b02a820 */ /* not lifted */ 7726 RECOMP_FLAGS_IN(); 7727 eax = MEM32(ebp + (-0x18)); /* 0x2B028339: mov eax, dword ptr [ebp - 0x18] */ 7728 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7730 esp = esp + 0xCu; /* 0x2B02833C: add esp, 0xc */ 7731 _flag_k = FK_ADD; 7732 PUSH32(esp, eax); /* 0x2B02833F: push eax */ 7733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 7734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7735 eax = eax + 0xFFFFFFFCu; /* 0x2B028340: add eax, -4 */ 7736 _flag_k = FK_ADD; 7737 PUSH32(esp, eax); /* 0x2B028343: push eax */ 7738 ecx = ebp + (-0x20); /* 0x2B028344: lea ecx, [ebp - 0x20] */ 7739 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028347: call 0x2b0292c0 */ /* not lifted */ 7740 RECOMP_FLAGS_IN(); 7741 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(4); 7742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7743 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) - 4; /* 0x2B02834C: sub dword ptr [ebp - 0x18], 4 */ 7744 _flag_k = FK_CMP; 7745 eax = ebp + (-0x20); /* 0x2B028350: lea eax, [ebp - 0x20] */ 7746 PUSH32(esp, eax); /* 0x2B028353: push eax */ 7747 ecx = ebp + (-0x10); /* 0x2B028354: lea ecx, [ebp - 0x10] */ 7748 PUSH32(esp, ecx); /* 0x2B028357: push ecx */ 7749 ecx = edi; /* 0x2B028358: mov ecx, edi */ 7750 RECOMP_ICALL(0x2B028E60u); /* 0x2B02835A: call 0x2b028e60 */ /* not lifted */ 7751 RECOMP_FLAGS_IN(); 7752 eax = MEM32(eax); /* 0x2B02835F: mov eax, dword ptr [eax] */ 7753 /* cmp eax, MEM32(edi + 0x4) */ /* 0x2B028361: cmp eax, dword ptr [edi + 4] */ 7754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7756 _flag_k = FK_CMP; 7757 RECOMP_BACKEDGE(); 7758 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028225; /* 0x2B028364: jne 0x2b028225 */ 7759 L_2B02836A: 7760 PUSH32(esp, esi); /* 0x2B02836A: push esi */ 7761 ecx = ebp + (-0x20); /* 0x2B02836B: lea ecx, [ebp - 0x20] */ 7762 RECOMP_ICALL(0x2B01E140u); /* 0x2B02836E: call 0x2b01e140 */ /* not lifted */ 7763 RECOMP_FLAGS_IN(); 7764 L_2B028373: 7765 edx = ebp + (-0x20); /* 0x2B028373: lea edx, [ebp - 0x20] */ 7766 PUSH32(esp, edx); /* 0x2B028376: push edx */ 7767 ecx = esi; /* 0x2B028377: mov ecx, esi */ 7768 RECOMP_ICALL(0x2B01E140u); /* 0x2B028379: call 0x2b01e140 */ /* not lifted */ 7769 RECOMP_FLAGS_IN(); 7770 eax = MEM32(ebp + (-0x1C)); /* 0x2B02837E: mov eax, dword ptr [ebp - 0x1c] */ 7771 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 7772 MEM32(eax) = MEM32(eax) - 1; /* 0x2B028381: dec dword ptr [eax] */ 7773 _flag_k = FK_DEC; 7774 eax = ebp + (-0x20); /* 0x2B028383: lea eax, [ebp - 0x20] */ 7775 PUSH32(esp, eax); /* 0x2B028386: push eax */ 7776 ecx = ebp + (-0x10); /* 0x2B028387: lea ecx, [ebp - 0x10] */ 7777 PUSH32(esp, ecx); /* 0x2B02838A: push ecx */ 7778 ecx = edi; /* 0x2B02838B: mov ecx, edi */ 7779 RECOMP_ICALL(0x2B028E60u); /* 0x2B02838D: call 0x2b028e60 */ /* not lifted */ 7780 RECOMP_FLAGS_IN(); 7781 eax = MEM32(eax); /* 0x2B028392: mov eax, dword ptr [eax] */ 7782 /* cmp eax, MEM32(edi + 0x4) */ /* 0x2B028394: cmp eax, dword ptr [edi + 4] */ 7783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7785 _flag_k = FK_CMP; 7786 RECOMP_BACKEDGE(); 7787 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028373; /* 0x2B028397: jne 0x2b028373 */ 7788 L_2B028399: 7789 edx = MEM32(ebp + (-0x1C)); /* 0x2B028399: mov edx, dword ptr [ebp - 0x1c] */ 7790 PUSH32(esp, edx); /* 0x2B02839C: push edx */ 7791 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02839D: call 0x2b0ab1ba */ /* not lifted */ 7792 RECOMP_FLAGS_IN(); 7793 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7794 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7795 esp = esp + 4; /* 0x2B0283A2: add esp, 4 */ 7796 _flag_k = FK_ADD; 7797 edi = POP32_VAL(esp); /* 0x2B0283A5: pop edi */ 7798 ebx = POP32_VAL(esp); /* 0x2B0283A6: pop ebx */ 7799 ecx = MEM32(ebp + (-0xC)); /* 0x2B0283A7: mov ecx, dword ptr [ebp - 0xc] */ 7800 esi = POP32_VAL(esp); /* 0x2B0283AA: pop esi */ 7801 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0283AB: mov dword ptr fs:[0], ecx */ 7802 esp = ebp; /* 0x2B0283B2: mov esp, ebp */ 7803 ebp = POP32_VAL(esp); /* 0x2B0283B4: pop ebp */ 7804 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0283B5: ret */ 7805 RECOMP_REGS_OUT(); 7806 } 7807 7808 void sub_2B028243(void) { 7809 int _fpu_cmp = 0; 7810 uint32_t _cf = 0; 7811 int _df = 1; 7812 uint32_t _flag_k = FK_NONE; 7813 uint32_t _flag_a = 0, _flag_b = 0; 7814 uint32_t _itail_tgt = 0; 7815 RECOMP_REGS_LOCALS 7816 RECOMP_ENTER(0x2B028243u); 7817 7818 goto L_2B028243; 7819 L_2B028225: 7820 ecx = ebp + (-0x20); /* 0x2B028225: lea ecx, [ebp - 0x20] */ 7821 /* cmp esi, ecx */ /* 0x2B028228: cmp esi, ecx */ 7822 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 7823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7824 _flag_k = FK_CMP; 7825 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028328; /* 0x2B02822A: je 0x2b028328 */ 7826 L_2B028230: 7827 eax = MEM32(ebp + (-0x1C)); /* 0x2B028230: mov eax, dword ptr [ebp - 0x1c] */ 7828 /* test eax, eax */ /* 0x2B028233: test eax, eax */ 7829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7830 _cf = 0; 7831 _flag_k = FK_TEST; 7832 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02823B; /* 0x2B028235: jne 0x2b02823b */ 7833 L_2B028237: 7834 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7835 ebx = 0; /* 0x2B028237: xor ebx, ebx */ 7836 _cf = 0; 7837 _flag_k = FK_TEST; 7838 goto L_2B028243; /* 0x2B028239: jmp 0x2b028243 */ 7839 L_2B02823B: 7840 ebx = MEM32(ebp + (-0x18)); /* 0x2B02823B: mov ebx, dword ptr [ebp - 0x18] */ 7841 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7843 ebx = ebx - eax; /* 0x2B02823E: sub ebx, eax */ 7844 _flag_k = FK_CMP; 7845 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x2B028240: sar ebx, 2 */ 7846 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7847 ebx = (uint32_t)((int32_t)ebx >> 2u); 7848 L_2B028243: 7849 ecx = esi; /* 0x2B028243: mov ecx, esi */ 7850 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028245: call 0x2b01da00 */ /* not lifted */ 7851 RECOMP_FLAGS_IN(); 7852 /* cmp ebx, eax */ /* 0x2B02824A: cmp ebx, eax */ 7853 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7855 _flag_k = FK_CMP; 7856 if (CMP_A(_flag_a, _flag_b)) goto L_2B028284; /* 0x2B02824C: ja 0x2b028284 */ 7857 L_2B02824E: 7858 edx = MEM32(esi + 0x4); /* 0x2B02824E: mov edx, dword ptr [esi + 4] */ 7859 eax = MEM32(ebp + (-0x18)); /* 0x2B028251: mov eax, dword ptr [ebp - 0x18] */ 7860 ecx = MEM32(ebp + (-0x1C)); /* 0x2B028254: mov ecx, dword ptr [ebp - 0x1c] */ 7861 PUSH32(esp, edx); /* 0x2B028257: push edx */ 7862 PUSH32(esp, eax); /* 0x2B028258: push eax */ 7863 PUSH32(esp, ecx); /* 0x2B028259: push ecx */ 7864 RECOMP_ICALL(0x2B02A820u); /* 0x2B02825A: call 0x2b02a820 */ /* not lifted */ 7865 RECOMP_FLAGS_IN(); 7866 edx = MEM32(esi + 0x8); /* 0x2B02825F: mov edx, dword ptr [esi + 8] */ 7867 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7868 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7869 esp = esp + 0xCu; /* 0x2B028262: add esp, 0xc */ 7870 _flag_k = FK_ADD; 7871 PUSH32(esp, edx); /* 0x2B028265: push edx */ 7872 PUSH32(esp, eax); /* 0x2B028266: push eax */ 7873 ecx = esi; /* 0x2B028267: mov ecx, esi */ 7874 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028269: call 0x2b0292c0 */ /* not lifted */ 7875 RECOMP_FLAGS_IN(); 7876 ecx = ebp + (-0x20); /* 0x2B02826E: lea ecx, [ebp - 0x20] */ 7877 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028271: call 0x2b01da00 */ /* not lifted */ 7878 RECOMP_FLAGS_IN(); 7879 ecx = MEM32(esi + 0x4); /* 0x2B028276: mov ecx, dword ptr [esi + 4] */ 7880 edx = ecx + eax * 4; /* 0x2B028279: lea edx, [ecx + eax*4] */ 7881 MEM32(esi + 0x8) = edx; /* 0x2B02827C: mov dword ptr [esi + 8], edx */ 7882 goto L_2B028328; /* 0x2B02827F: jmp 0x2b028328 */ 7883 L_2B028284: 7884 ecx = esi; /* 0x2B028284: mov ecx, esi */ 7885 RECOMP_ICALL(0x2B028F10u); /* 0x2B028286: call 0x2b028f10 */ /* not lifted */ 7886 RECOMP_FLAGS_IN(); 7887 ecx = ebp + (-0x20); /* 0x2B02828B: lea ecx, [ebp - 0x20] */ 7888 ebx = eax; /* 0x2B02828E: mov ebx, eax */ 7889 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028290: call 0x2b01da00 */ /* not lifted */ 7890 RECOMP_FLAGS_IN(); 7891 /* cmp eax, ebx */ /* 0x2B028295: cmp eax, ebx */ 7892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7894 _flag_k = FK_CMP; 7895 if (CMP_A(_flag_a, _flag_b)) goto L_2B0282DA; /* 0x2B028297: ja 0x2b0282da */ 7896 L_2B028299: 7897 ebx = MEM32(ebp + (-0x1C)); /* 0x2B028299: mov ebx, dword ptr [ebp - 0x1c] */ 7898 ecx = esi; /* 0x2B02829C: mov ecx, esi */ 7899 RECOMP_ICALL(0x2B01DA00u); /* 0x2B02829E: call 0x2b01da00 */ /* not lifted */ 7900 RECOMP_FLAGS_IN(); 7901 ecx = MEM32(ebp + (-0x1C)); /* 0x2B0282A3: mov ecx, dword ptr [ebp - 0x1c] */ 7902 ebx = ebx + eax * 4; /* 0x2B0282A6: lea ebx, [ebx + eax*4] */ 7903 eax = MEM32(esi + 0x4); /* 0x2B0282A9: mov eax, dword ptr [esi + 4] */ 7904 PUSH32(esp, eax); /* 0x2B0282AC: push eax */ 7905 PUSH32(esp, ebx); /* 0x2B0282AD: push ebx */ 7906 PUSH32(esp, ecx); /* 0x2B0282AE: push ecx */ 7907 RECOMP_ICALL(0x2B02A820u); /* 0x2B0282AF: call 0x2b02a820 */ /* not lifted */ 7908 RECOMP_FLAGS_IN(); 7909 edx = MEM32(esi + 0x8); /* 0x2B0282B4: mov edx, dword ptr [esi + 8] */ 7910 eax = MEM32(ebp + (-0x18)); /* 0x2B0282B7: mov eax, dword ptr [ebp - 0x18] */ 7911 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7912 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7913 esp = esp + 0xCu; /* 0x2B0282BA: add esp, 0xc */ 7914 _flag_k = FK_ADD; 7915 PUSH32(esp, edx); /* 0x2B0282BD: push edx */ 7916 PUSH32(esp, eax); /* 0x2B0282BE: push eax */ 7917 PUSH32(esp, ebx); /* 0x2B0282BF: push ebx */ 7918 ecx = esi; /* 0x2B0282C0: mov ecx, esi */ 7919 RECOMP_ICALL(0x2B01DA20u); /* 0x2B0282C2: call 0x2b01da20 */ /* not lifted */ 7920 RECOMP_FLAGS_IN(); 7921 ecx = ebp + (-0x20); /* 0x2B0282C7: lea ecx, [ebp - 0x20] */ 7922 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0282CA: call 0x2b01da00 */ /* not lifted */ 7923 RECOMP_FLAGS_IN(); 7924 ecx = MEM32(esi + 0x4); /* 0x2B0282CF: mov ecx, dword ptr [esi + 4] */ 7925 edx = ecx + eax * 4; /* 0x2B0282D2: lea edx, [ecx + eax*4] */ 7926 MEM32(esi + 0x8) = edx; /* 0x2B0282D5: mov dword ptr [esi + 8], edx */ 7927 goto L_2B028328; /* 0x2B0282D8: jmp 0x2b028328 */ 7928 L_2B0282DA: 7929 eax = MEM32(esi + 0x8); /* 0x2B0282DA: mov eax, dword ptr [esi + 8] */ 7930 ecx = MEM32(esi + 0x4); /* 0x2B0282DD: mov ecx, dword ptr [esi + 4] */ 7931 PUSH32(esp, eax); /* 0x2B0282E0: push eax */ 7932 PUSH32(esp, ecx); /* 0x2B0282E1: push ecx */ 7933 ecx = esi; /* 0x2B0282E2: mov ecx, esi */ 7934 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0282E4: call 0x2b0292c0 */ /* not lifted */ 7935 RECOMP_FLAGS_IN(); 7936 edx = MEM32(esi + 0x4); /* 0x2B0282E9: mov edx, dword ptr [esi + 4] */ 7937 PUSH32(esp, edx); /* 0x2B0282EC: push edx */ 7938 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0282ED: call 0x2b0ab1ba */ /* not lifted */ 7939 RECOMP_FLAGS_IN(); 7940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7942 esp = esp + 4; /* 0x2B0282F2: add esp, 4 */ 7943 _flag_k = FK_ADD; 7944 ecx = ebp + (-0x20); /* 0x2B0282F5: lea ecx, [ebp - 0x20] */ 7945 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0282F8: call 0x2b01da00 */ /* not lifted */ 7946 RECOMP_FLAGS_IN(); 7947 /* test eax, eax */ /* 0x2B0282FD: test eax, eax */ 7948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7949 _cf = 0; 7950 _flag_k = FK_TEST; 7951 if (TEST_NS(_flag_a, _flag_b)) goto L_2B028303; /* 0x2B0282FF: jge 0x2b028303 */ 7952 L_2B028301: 7953 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7954 eax = 0; /* 0x2B028301: xor eax, eax */ 7955 _cf = 0; 7956 _flag_k = FK_TEST; 7957 L_2B028303: 7958 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2B028303: shl eax, 2 */ 7959 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7960 eax = eax << 2u; /* 0x2B028303: shl eax, 2 */ 7961 PUSH32(esp, eax); /* 0x2B028306: push eax */ 7962 RECOMP_ICALL(0x2B0AB212u); /* 0x2B028307: call 0x2b0ab212 */ /* not lifted */ 7963 RECOMP_FLAGS_IN(); 7964 ecx = MEM32(ebp + (-0x18)); /* 0x2B02830C: mov ecx, dword ptr [ebp - 0x18] */ 7965 edx = MEM32(ebp + (-0x1C)); /* 0x2B02830F: mov edx, dword ptr [ebp - 0x1c] */ 7966 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7967 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7968 esp = esp + 4; /* 0x2B028312: add esp, 4 */ 7969 _flag_k = FK_ADD; 7970 PUSH32(esp, eax); /* 0x2B028315: push eax */ 7971 PUSH32(esp, ecx); /* 0x2B028316: push ecx */ 7972 PUSH32(esp, edx); /* 0x2B028317: push edx */ 7973 ecx = esi; /* 0x2B028318: mov ecx, esi */ 7974 MEM32(esi + 0x4) = eax; /* 0x2B02831A: mov dword ptr [esi + 4], eax */ 7975 RECOMP_ICALL(0x2B01DA20u); /* 0x2B02831D: call 0x2b01da20 */ /* not lifted */ 7976 RECOMP_FLAGS_IN(); 7977 MEM32(esi + 0x8) = eax; /* 0x2B028322: mov dword ptr [esi + 8], eax */ 7978 MEM32(esi + 0xC) = eax; /* 0x2B028325: mov dword ptr [esi + 0xc], eax */ 7979 L_2B028328: 7980 eax = MEM32(ebp + (-0x18)); /* 0x2B028328: mov eax, dword ptr [ebp - 0x18] */ 7981 ecx = eax + (-0x4); /* 0x2B02832B: lea ecx, [eax - 4] */ 7982 PUSH32(esp, ecx); /* 0x2B02832E: push ecx */ 7983 PUSH32(esp, eax); /* 0x2B02832F: push eax */ 7984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 7985 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7986 ecx = ecx + 4; /* 0x2B028330: add ecx, 4 */ 7987 _flag_k = FK_ADD; 7988 PUSH32(esp, ecx); /* 0x2B028333: push ecx */ 7989 RECOMP_ICALL(0x2B02A820u); /* 0x2B028334: call 0x2b02a820 */ /* not lifted */ 7990 RECOMP_FLAGS_IN(); 7991 eax = MEM32(ebp + (-0x18)); /* 0x2B028339: mov eax, dword ptr [ebp - 0x18] */ 7992 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7994 esp = esp + 0xCu; /* 0x2B02833C: add esp, 0xc */ 7995 _flag_k = FK_ADD; 7996 PUSH32(esp, eax); /* 0x2B02833F: push eax */ 7997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 7998 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7999 eax = eax + 0xFFFFFFFCu; /* 0x2B028340: add eax, -4 */ 8000 _flag_k = FK_ADD; 8001 PUSH32(esp, eax); /* 0x2B028343: push eax */ 8002 ecx = ebp + (-0x20); /* 0x2B028344: lea ecx, [ebp - 0x20] */ 8003 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028347: call 0x2b0292c0 */ /* not lifted */ 8004 RECOMP_FLAGS_IN(); 8005 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(4); 8006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8007 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) - 4; /* 0x2B02834C: sub dword ptr [ebp - 0x18], 4 */ 8008 _flag_k = FK_CMP; 8009 eax = ebp + (-0x20); /* 0x2B028350: lea eax, [ebp - 0x20] */ 8010 PUSH32(esp, eax); /* 0x2B028353: push eax */ 8011 ecx = ebp + (-0x10); /* 0x2B028354: lea ecx, [ebp - 0x10] */ 8012 PUSH32(esp, ecx); /* 0x2B028357: push ecx */ 8013 ecx = edi; /* 0x2B028358: mov ecx, edi */ 8014 RECOMP_ICALL(0x2B028E60u); /* 0x2B02835A: call 0x2b028e60 */ /* not lifted */ 8015 RECOMP_FLAGS_IN(); 8016 eax = MEM32(eax); /* 0x2B02835F: mov eax, dword ptr [eax] */ 8017 /* cmp eax, MEM32(edi + 0x4) */ /* 0x2B028361: cmp eax, dword ptr [edi + 4] */ 8018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8020 _flag_k = FK_CMP; 8021 RECOMP_BACKEDGE(); 8022 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028225; /* 0x2B028364: jne 0x2b028225 */ 8023 L_2B02836A: 8024 PUSH32(esp, esi); /* 0x2B02836A: push esi */ 8025 ecx = ebp + (-0x20); /* 0x2B02836B: lea ecx, [ebp - 0x20] */ 8026 RECOMP_ICALL(0x2B01E140u); /* 0x2B02836E: call 0x2b01e140 */ /* not lifted */ 8027 RECOMP_FLAGS_IN(); 8028 L_2B028373: 8029 edx = ebp + (-0x20); /* 0x2B028373: lea edx, [ebp - 0x20] */ 8030 PUSH32(esp, edx); /* 0x2B028376: push edx */ 8031 ecx = esi; /* 0x2B028377: mov ecx, esi */ 8032 RECOMP_ICALL(0x2B01E140u); /* 0x2B028379: call 0x2b01e140 */ /* not lifted */ 8033 RECOMP_FLAGS_IN(); 8034 eax = MEM32(ebp + (-0x1C)); /* 0x2B02837E: mov eax, dword ptr [ebp - 0x1c] */ 8035 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 8036 MEM32(eax) = MEM32(eax) - 1; /* 0x2B028381: dec dword ptr [eax] */ 8037 _flag_k = FK_DEC; 8038 eax = ebp + (-0x20); /* 0x2B028383: lea eax, [ebp - 0x20] */ 8039 PUSH32(esp, eax); /* 0x2B028386: push eax */ 8040 ecx = ebp + (-0x10); /* 0x2B028387: lea ecx, [ebp - 0x10] */ 8041 PUSH32(esp, ecx); /* 0x2B02838A: push ecx */ 8042 ecx = edi; /* 0x2B02838B: mov ecx, edi */ 8043 RECOMP_ICALL(0x2B028E60u); /* 0x2B02838D: call 0x2b028e60 */ /* not lifted */ 8044 RECOMP_FLAGS_IN(); 8045 eax = MEM32(eax); /* 0x2B028392: mov eax, dword ptr [eax] */ 8046 /* cmp eax, MEM32(edi + 0x4) */ /* 0x2B028394: cmp eax, dword ptr [edi + 4] */ 8047 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8049 _flag_k = FK_CMP; 8050 RECOMP_BACKEDGE(); 8051 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028373; /* 0x2B028397: jne 0x2b028373 */ 8052 L_2B028399: 8053 edx = MEM32(ebp + (-0x1C)); /* 0x2B028399: mov edx, dword ptr [ebp - 0x1c] */ 8054 PUSH32(esp, edx); /* 0x2B02839C: push edx */ 8055 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02839D: call 0x2b0ab1ba */ /* not lifted */ 8056 RECOMP_FLAGS_IN(); 8057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8059 esp = esp + 4; /* 0x2B0283A2: add esp, 4 */ 8060 _flag_k = FK_ADD; 8061 edi = POP32_VAL(esp); /* 0x2B0283A5: pop edi */ 8062 ebx = POP32_VAL(esp); /* 0x2B0283A6: pop ebx */ 8063 ecx = MEM32(ebp + (-0xC)); /* 0x2B0283A7: mov ecx, dword ptr [ebp - 0xc] */ 8064 esi = POP32_VAL(esp); /* 0x2B0283AA: pop esi */ 8065 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0283AB: mov dword ptr fs:[0], ecx */ 8066 esp = ebp; /* 0x2B0283B2: mov esp, ebp */ 8067 ebp = POP32_VAL(esp); /* 0x2B0283B4: pop ebp */ 8068 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0283B5: ret */ 8069 RECOMP_REGS_OUT(); 8070 } 8071 8072 void sub_2B028328(void) { 8073 int _fpu_cmp = 0; 8074 uint32_t _cf = 0; 8075 int _df = 1; 8076 uint32_t _flag_k = FK_NONE; 8077 uint32_t _flag_a = 0, _flag_b = 0; 8078 uint32_t _itail_tgt = 0; 8079 RECOMP_REGS_LOCALS 8080 RECOMP_ENTER(0x2B028328u); 8081 8082 goto L_2B028328; 8083 L_2B028225: 8084 ecx = ebp + (-0x20); /* 0x2B028225: lea ecx, [ebp - 0x20] */ 8085 /* cmp esi, ecx */ /* 0x2B028228: cmp esi, ecx */ 8086 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 8087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8088 _flag_k = FK_CMP; 8089 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028328; /* 0x2B02822A: je 0x2b028328 */ 8090 L_2B028230: 8091 eax = MEM32(ebp + (-0x1C)); /* 0x2B028230: mov eax, dword ptr [ebp - 0x1c] */ 8092 /* test eax, eax */ /* 0x2B028233: test eax, eax */ 8093 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8094 _cf = 0; 8095 _flag_k = FK_TEST; 8096 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02823B; /* 0x2B028235: jne 0x2b02823b */ 8097 L_2B028237: 8098 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8099 ebx = 0; /* 0x2B028237: xor ebx, ebx */ 8100 _cf = 0; 8101 _flag_k = FK_TEST; 8102 goto L_2B028243; /* 0x2B028239: jmp 0x2b028243 */ 8103 L_2B02823B: 8104 ebx = MEM32(ebp + (-0x18)); /* 0x2B02823B: mov ebx, dword ptr [ebp - 0x18] */ 8105 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 8106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8107 ebx = ebx - eax; /* 0x2B02823E: sub ebx, eax */ 8108 _flag_k = FK_CMP; 8109 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x2B028240: sar ebx, 2 */ 8110 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8111 ebx = (uint32_t)((int32_t)ebx >> 2u); 8112 L_2B028243: 8113 ecx = esi; /* 0x2B028243: mov ecx, esi */ 8114 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028245: call 0x2b01da00 */ /* not lifted */ 8115 RECOMP_FLAGS_IN(); 8116 /* cmp ebx, eax */ /* 0x2B02824A: cmp ebx, eax */ 8117 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 8118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8119 _flag_k = FK_CMP; 8120 if (CMP_A(_flag_a, _flag_b)) goto L_2B028284; /* 0x2B02824C: ja 0x2b028284 */ 8121 L_2B02824E: 8122 edx = MEM32(esi + 0x4); /* 0x2B02824E: mov edx, dword ptr [esi + 4] */ 8123 eax = MEM32(ebp + (-0x18)); /* 0x2B028251: mov eax, dword ptr [ebp - 0x18] */ 8124 ecx = MEM32(ebp + (-0x1C)); /* 0x2B028254: mov ecx, dword ptr [ebp - 0x1c] */ 8125 PUSH32(esp, edx); /* 0x2B028257: push edx */ 8126 PUSH32(esp, eax); /* 0x2B028258: push eax */ 8127 PUSH32(esp, ecx); /* 0x2B028259: push ecx */ 8128 RECOMP_ICALL(0x2B02A820u); /* 0x2B02825A: call 0x2b02a820 */ /* not lifted */ 8129 RECOMP_FLAGS_IN(); 8130 edx = MEM32(esi + 0x8); /* 0x2B02825F: mov edx, dword ptr [esi + 8] */ 8131 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8133 esp = esp + 0xCu; /* 0x2B028262: add esp, 0xc */ 8134 _flag_k = FK_ADD; 8135 PUSH32(esp, edx); /* 0x2B028265: push edx */ 8136 PUSH32(esp, eax); /* 0x2B028266: push eax */ 8137 ecx = esi; /* 0x2B028267: mov ecx, esi */ 8138 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028269: call 0x2b0292c0 */ /* not lifted */ 8139 RECOMP_FLAGS_IN(); 8140 ecx = ebp + (-0x20); /* 0x2B02826E: lea ecx, [ebp - 0x20] */ 8141 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028271: call 0x2b01da00 */ /* not lifted */ 8142 RECOMP_FLAGS_IN(); 8143 ecx = MEM32(esi + 0x4); /* 0x2B028276: mov ecx, dword ptr [esi + 4] */ 8144 edx = ecx + eax * 4; /* 0x2B028279: lea edx, [ecx + eax*4] */ 8145 MEM32(esi + 0x8) = edx; /* 0x2B02827C: mov dword ptr [esi + 8], edx */ 8146 goto L_2B028328; /* 0x2B02827F: jmp 0x2b028328 */ 8147 L_2B028284: 8148 ecx = esi; /* 0x2B028284: mov ecx, esi */ 8149 RECOMP_ICALL(0x2B028F10u); /* 0x2B028286: call 0x2b028f10 */ /* not lifted */ 8150 RECOMP_FLAGS_IN(); 8151 ecx = ebp + (-0x20); /* 0x2B02828B: lea ecx, [ebp - 0x20] */ 8152 ebx = eax; /* 0x2B02828E: mov ebx, eax */ 8153 RECOMP_ICALL(0x2B01DA00u); /* 0x2B028290: call 0x2b01da00 */ /* not lifted */ 8154 RECOMP_FLAGS_IN(); 8155 /* cmp eax, ebx */ /* 0x2B028295: cmp eax, ebx */ 8156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8158 _flag_k = FK_CMP; 8159 if (CMP_A(_flag_a, _flag_b)) goto L_2B0282DA; /* 0x2B028297: ja 0x2b0282da */ 8160 L_2B028299: 8161 ebx = MEM32(ebp + (-0x1C)); /* 0x2B028299: mov ebx, dword ptr [ebp - 0x1c] */ 8162 ecx = esi; /* 0x2B02829C: mov ecx, esi */ 8163 RECOMP_ICALL(0x2B01DA00u); /* 0x2B02829E: call 0x2b01da00 */ /* not lifted */ 8164 RECOMP_FLAGS_IN(); 8165 ecx = MEM32(ebp + (-0x1C)); /* 0x2B0282A3: mov ecx, dword ptr [ebp - 0x1c] */ 8166 ebx = ebx + eax * 4; /* 0x2B0282A6: lea ebx, [ebx + eax*4] */ 8167 eax = MEM32(esi + 0x4); /* 0x2B0282A9: mov eax, dword ptr [esi + 4] */ 8168 PUSH32(esp, eax); /* 0x2B0282AC: push eax */ 8169 PUSH32(esp, ebx); /* 0x2B0282AD: push ebx */ 8170 PUSH32(esp, ecx); /* 0x2B0282AE: push ecx */ 8171 RECOMP_ICALL(0x2B02A820u); /* 0x2B0282AF: call 0x2b02a820 */ /* not lifted */ 8172 RECOMP_FLAGS_IN(); 8173 edx = MEM32(esi + 0x8); /* 0x2B0282B4: mov edx, dword ptr [esi + 8] */ 8174 eax = MEM32(ebp + (-0x18)); /* 0x2B0282B7: mov eax, dword ptr [ebp - 0x18] */ 8175 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8177 esp = esp + 0xCu; /* 0x2B0282BA: add esp, 0xc */ 8178 _flag_k = FK_ADD; 8179 PUSH32(esp, edx); /* 0x2B0282BD: push edx */ 8180 PUSH32(esp, eax); /* 0x2B0282BE: push eax */ 8181 PUSH32(esp, ebx); /* 0x2B0282BF: push ebx */ 8182 ecx = esi; /* 0x2B0282C0: mov ecx, esi */ 8183 RECOMP_ICALL(0x2B01DA20u); /* 0x2B0282C2: call 0x2b01da20 */ /* not lifted */ 8184 RECOMP_FLAGS_IN(); 8185 ecx = ebp + (-0x20); /* 0x2B0282C7: lea ecx, [ebp - 0x20] */ 8186 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0282CA: call 0x2b01da00 */ /* not lifted */ 8187 RECOMP_FLAGS_IN(); 8188 ecx = MEM32(esi + 0x4); /* 0x2B0282CF: mov ecx, dword ptr [esi + 4] */ 8189 edx = ecx + eax * 4; /* 0x2B0282D2: lea edx, [ecx + eax*4] */ 8190 MEM32(esi + 0x8) = edx; /* 0x2B0282D5: mov dword ptr [esi + 8], edx */ 8191 goto L_2B028328; /* 0x2B0282D8: jmp 0x2b028328 */ 8192 L_2B0282DA: 8193 eax = MEM32(esi + 0x8); /* 0x2B0282DA: mov eax, dword ptr [esi + 8] */ 8194 ecx = MEM32(esi + 0x4); /* 0x2B0282DD: mov ecx, dword ptr [esi + 4] */ 8195 PUSH32(esp, eax); /* 0x2B0282E0: push eax */ 8196 PUSH32(esp, ecx); /* 0x2B0282E1: push ecx */ 8197 ecx = esi; /* 0x2B0282E2: mov ecx, esi */ 8198 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0282E4: call 0x2b0292c0 */ /* not lifted */ 8199 RECOMP_FLAGS_IN(); 8200 edx = MEM32(esi + 0x4); /* 0x2B0282E9: mov edx, dword ptr [esi + 4] */ 8201 PUSH32(esp, edx); /* 0x2B0282EC: push edx */ 8202 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0282ED: call 0x2b0ab1ba */ /* not lifted */ 8203 RECOMP_FLAGS_IN(); 8204 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8205 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8206 esp = esp + 4; /* 0x2B0282F2: add esp, 4 */ 8207 _flag_k = FK_ADD; 8208 ecx = ebp + (-0x20); /* 0x2B0282F5: lea ecx, [ebp - 0x20] */ 8209 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0282F8: call 0x2b01da00 */ /* not lifted */ 8210 RECOMP_FLAGS_IN(); 8211 /* test eax, eax */ /* 0x2B0282FD: test eax, eax */ 8212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8213 _cf = 0; 8214 _flag_k = FK_TEST; 8215 if (TEST_NS(_flag_a, _flag_b)) goto L_2B028303; /* 0x2B0282FF: jge 0x2b028303 */ 8216 L_2B028301: 8217 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8218 eax = 0; /* 0x2B028301: xor eax, eax */ 8219 _cf = 0; 8220 _flag_k = FK_TEST; 8221 L_2B028303: 8222 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2B028303: shl eax, 2 */ 8223 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8224 eax = eax << 2u; /* 0x2B028303: shl eax, 2 */ 8225 PUSH32(esp, eax); /* 0x2B028306: push eax */ 8226 RECOMP_ICALL(0x2B0AB212u); /* 0x2B028307: call 0x2b0ab212 */ /* not lifted */ 8227 RECOMP_FLAGS_IN(); 8228 ecx = MEM32(ebp + (-0x18)); /* 0x2B02830C: mov ecx, dword ptr [ebp - 0x18] */ 8229 edx = MEM32(ebp + (-0x1C)); /* 0x2B02830F: mov edx, dword ptr [ebp - 0x1c] */ 8230 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8231 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8232 esp = esp + 4; /* 0x2B028312: add esp, 4 */ 8233 _flag_k = FK_ADD; 8234 PUSH32(esp, eax); /* 0x2B028315: push eax */ 8235 PUSH32(esp, ecx); /* 0x2B028316: push ecx */ 8236 PUSH32(esp, edx); /* 0x2B028317: push edx */ 8237 ecx = esi; /* 0x2B028318: mov ecx, esi */ 8238 MEM32(esi + 0x4) = eax; /* 0x2B02831A: mov dword ptr [esi + 4], eax */ 8239 RECOMP_ICALL(0x2B01DA20u); /* 0x2B02831D: call 0x2b01da20 */ /* not lifted */ 8240 RECOMP_FLAGS_IN(); 8241 MEM32(esi + 0x8) = eax; /* 0x2B028322: mov dword ptr [esi + 8], eax */ 8242 MEM32(esi + 0xC) = eax; /* 0x2B028325: mov dword ptr [esi + 0xc], eax */ 8243 L_2B028328: 8244 eax = MEM32(ebp + (-0x18)); /* 0x2B028328: mov eax, dword ptr [ebp - 0x18] */ 8245 ecx = eax + (-0x4); /* 0x2B02832B: lea ecx, [eax - 4] */ 8246 PUSH32(esp, ecx); /* 0x2B02832E: push ecx */ 8247 PUSH32(esp, eax); /* 0x2B02832F: push eax */ 8248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 8249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8250 ecx = ecx + 4; /* 0x2B028330: add ecx, 4 */ 8251 _flag_k = FK_ADD; 8252 PUSH32(esp, ecx); /* 0x2B028333: push ecx */ 8253 RECOMP_ICALL(0x2B02A820u); /* 0x2B028334: call 0x2b02a820 */ /* not lifted */ 8254 RECOMP_FLAGS_IN(); 8255 eax = MEM32(ebp + (-0x18)); /* 0x2B028339: mov eax, dword ptr [ebp - 0x18] */ 8256 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8258 esp = esp + 0xCu; /* 0x2B02833C: add esp, 0xc */ 8259 _flag_k = FK_ADD; 8260 PUSH32(esp, eax); /* 0x2B02833F: push eax */ 8261 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 8262 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8263 eax = eax + 0xFFFFFFFCu; /* 0x2B028340: add eax, -4 */ 8264 _flag_k = FK_ADD; 8265 PUSH32(esp, eax); /* 0x2B028343: push eax */ 8266 ecx = ebp + (-0x20); /* 0x2B028344: lea ecx, [ebp - 0x20] */ 8267 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028347: call 0x2b0292c0 */ /* not lifted */ 8268 RECOMP_FLAGS_IN(); 8269 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(4); 8270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8271 MEM32(ebp + (-0x18)) = MEM32(ebp + (-0x18)) - 4; /* 0x2B02834C: sub dword ptr [ebp - 0x18], 4 */ 8272 _flag_k = FK_CMP; 8273 eax = ebp + (-0x20); /* 0x2B028350: lea eax, [ebp - 0x20] */ 8274 PUSH32(esp, eax); /* 0x2B028353: push eax */ 8275 ecx = ebp + (-0x10); /* 0x2B028354: lea ecx, [ebp - 0x10] */ 8276 PUSH32(esp, ecx); /* 0x2B028357: push ecx */ 8277 ecx = edi; /* 0x2B028358: mov ecx, edi */ 8278 RECOMP_ICALL(0x2B028E60u); /* 0x2B02835A: call 0x2b028e60 */ /* not lifted */ 8279 RECOMP_FLAGS_IN(); 8280 eax = MEM32(eax); /* 0x2B02835F: mov eax, dword ptr [eax] */ 8281 /* cmp eax, MEM32(edi + 0x4) */ /* 0x2B028361: cmp eax, dword ptr [edi + 4] */ 8282 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8284 _flag_k = FK_CMP; 8285 RECOMP_BACKEDGE(); 8286 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028225; /* 0x2B028364: jne 0x2b028225 */ 8287 L_2B02836A: 8288 PUSH32(esp, esi); /* 0x2B02836A: push esi */ 8289 ecx = ebp + (-0x20); /* 0x2B02836B: lea ecx, [ebp - 0x20] */ 8290 RECOMP_ICALL(0x2B01E140u); /* 0x2B02836E: call 0x2b01e140 */ /* not lifted */ 8291 RECOMP_FLAGS_IN(); 8292 L_2B028373: 8293 edx = ebp + (-0x20); /* 0x2B028373: lea edx, [ebp - 0x20] */ 8294 PUSH32(esp, edx); /* 0x2B028376: push edx */ 8295 ecx = esi; /* 0x2B028377: mov ecx, esi */ 8296 RECOMP_ICALL(0x2B01E140u); /* 0x2B028379: call 0x2b01e140 */ /* not lifted */ 8297 RECOMP_FLAGS_IN(); 8298 eax = MEM32(ebp + (-0x1C)); /* 0x2B02837E: mov eax, dword ptr [ebp - 0x1c] */ 8299 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 8300 MEM32(eax) = MEM32(eax) - 1; /* 0x2B028381: dec dword ptr [eax] */ 8301 _flag_k = FK_DEC; 8302 eax = ebp + (-0x20); /* 0x2B028383: lea eax, [ebp - 0x20] */ 8303 PUSH32(esp, eax); /* 0x2B028386: push eax */ 8304 ecx = ebp + (-0x10); /* 0x2B028387: lea ecx, [ebp - 0x10] */ 8305 PUSH32(esp, ecx); /* 0x2B02838A: push ecx */ 8306 ecx = edi; /* 0x2B02838B: mov ecx, edi */ 8307 RECOMP_ICALL(0x2B028E60u); /* 0x2B02838D: call 0x2b028e60 */ /* not lifted */ 8308 RECOMP_FLAGS_IN(); 8309 eax = MEM32(eax); /* 0x2B028392: mov eax, dword ptr [eax] */ 8310 /* cmp eax, MEM32(edi + 0x4) */ /* 0x2B028394: cmp eax, dword ptr [edi + 4] */ 8311 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8313 _flag_k = FK_CMP; 8314 RECOMP_BACKEDGE(); 8315 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028373; /* 0x2B028397: jne 0x2b028373 */ 8316 L_2B028399: 8317 edx = MEM32(ebp + (-0x1C)); /* 0x2B028399: mov edx, dword ptr [ebp - 0x1c] */ 8318 PUSH32(esp, edx); /* 0x2B02839C: push edx */ 8319 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02839D: call 0x2b0ab1ba */ /* not lifted */ 8320 RECOMP_FLAGS_IN(); 8321 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8323 esp = esp + 4; /* 0x2B0283A2: add esp, 4 */ 8324 _flag_k = FK_ADD; 8325 edi = POP32_VAL(esp); /* 0x2B0283A5: pop edi */ 8326 ebx = POP32_VAL(esp); /* 0x2B0283A6: pop ebx */ 8327 ecx = MEM32(ebp + (-0xC)); /* 0x2B0283A7: mov ecx, dword ptr [ebp - 0xc] */ 8328 esi = POP32_VAL(esp); /* 0x2B0283AA: pop esi */ 8329 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0283AB: mov dword ptr fs:[0], ecx */ 8330 esp = ebp; /* 0x2B0283B2: mov esp, ebp */ 8331 ebp = POP32_VAL(esp); /* 0x2B0283B4: pop ebp */ 8332 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0283B5: ret */ 8333 RECOMP_REGS_OUT(); 8334 } 8335 8336 void sub_2B0283C0(void) { 8337 int _fpu_cmp = 0; 8338 uint32_t _cf = 0; 8339 int _df = 1; 8340 uint32_t _flag_k = FK_NONE; 8341 uint32_t _flag_a = 0, _flag_b = 0; 8342 uint32_t _itail_tgt = 0; 8343 RECOMP_REGS_LOCALS 8344 RECOMP_ENTER(0x2B0283C0u); 8345 8346 L_2B0283C0: 8347 PUSH32(esp, ebp); /* 0x2B0283C0: push ebp */ 8348 ebp = esp; /* 0x2B0283C1: mov ebp, esp */ 8349 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8351 esp = esp - 8; /* 0x2B0283C3: sub esp, 8 */ 8352 _flag_k = FK_CMP; 8353 SET_LO8(eax, MEM8(ecx + 0x99)); /* 0x2B0283C6: mov al, byte ptr [ecx + 0x99] */ 8354 /* test LO8(eax), LO8(eax) */ /* 0x2B0283CC: test al, al */ 8355 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8356 _cf = 0; 8357 _flag_k = FK_NARROW(FK_TEST, 24); 8358 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0283DA; /* 0x2B0283CE: jne 0x2b0283da */ 8359 L_2B0283D0: 8360 fp_push(*(float*)&MEM32(0x2B0B61B8)); /* 0x2B0283D0: fld dword ptr [0x2b0b61b8] */ 8361 esp = ebp; /* 0x2B0283D6: mov esp, ebp */ 8362 ebp = POP32_VAL(esp); /* 0x2B0283D8: pop ebp */ 8363 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0283D9: ret */ 8364 L_2B0283DA: 8365 PUSH32(esp, esi); /* 0x2B0283DA: push esi */ 8366 PUSH32(esp, edi); /* 0x2B0283DB: push edi */ 8367 edi = ecx + 0x5C; /* 0x2B0283DC: lea edi, [ecx + 0x5c] */ 8368 esi = ecx + 0x80; /* 0x2B0283DF: lea esi, [ecx + 0x80] */ 8369 PUSH32(esp, edi); /* 0x2B0283E5: push edi */ 8370 ecx = esi; /* 0x2B0283E6: mov ecx, esi */ 8371 RECOMP_ICALL(0x2B02A500u); /* 0x2B0283E8: call 0x2b02a500 */ /* not lifted */ 8372 RECOMP_FLAGS_IN(); 8373 /* cmp eax, MEM32(esi + 0x4) */ /* 0x2B0283ED: cmp eax, dword ptr [esi + 4] */ 8374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8376 _flag_k = FK_CMP; 8377 MEM32(ebp + (-0x4)) = eax; /* 0x2B0283F0: mov dword ptr [ebp - 4], eax */ 8378 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028412; /* 0x2B0283F3: je 0x2b028412 */ 8379 L_2B0283F5: 8380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 8381 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8382 eax = eax + 0xCu; /* 0x2B0283F5: add eax, 0xc */ 8383 _flag_k = FK_ADD; 8384 PUSH32(esp, eax); /* 0x2B0283F8: push eax */ 8385 ecx = edi; /* 0x2B0283F9: mov ecx, edi */ 8386 RECOMP_ICALL(0x2B02AB60u); /* 0x2B0283FB: call 0x2b02ab60 */ /* not lifted */ 8387 RECOMP_FLAGS_IN(); 8388 /* test LO8(eax), LO8(eax) */ /* 0x2B028400: test al, al */ 8389 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8390 _cf = 0; 8391 _flag_k = FK_NARROW(FK_TEST, 24); 8392 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028412; /* 0x2B028402: jne 0x2b028412 */ 8393 L_2B028404: 8394 eax = ebp + (-0x4); /* 0x2B028404: lea eax, [ebp - 4] */ 8395 eax = MEM32(eax); /* 0x2B028407: mov eax, dword ptr [eax] */ 8396 fp_push(*(float*)&MEM32(eax + 0x2C)); /* 0x2B028409: fld dword ptr [eax + 0x2c] */ 8397 edi = POP32_VAL(esp); /* 0x2B02840C: pop edi */ 8398 esi = POP32_VAL(esp); /* 0x2B02840D: pop esi */ 8399 esp = ebp; /* 0x2B02840E: mov esp, ebp */ 8400 ebp = POP32_VAL(esp); /* 0x2B028410: pop ebp */ 8401 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028411: ret */ 8402 L_2B028412: 8403 eax = ebp + (-0x8); /* 0x2B028412: lea eax, [ebp - 8] */ 8404 PUSH32(esp, eax); /* 0x2B028415: push eax */ 8405 ecx = esi; /* 0x2B028416: mov ecx, esi */ 8406 RECOMP_ICALL(0x2B0292D0u); /* 0x2B028418: call 0x2b0292d0 */ /* not lifted */ 8407 RECOMP_FLAGS_IN(); 8408 eax = MEM32(eax); /* 0x2B02841D: mov eax, dword ptr [eax] */ 8409 fp_push(*(float*)&MEM32(eax + 0x2C)); /* 0x2B02841F: fld dword ptr [eax + 0x2c] */ 8410 edi = POP32_VAL(esp); /* 0x2B028422: pop edi */ 8411 esi = POP32_VAL(esp); /* 0x2B028423: pop esi */ 8412 esp = ebp; /* 0x2B028424: mov esp, ebp */ 8413 ebp = POP32_VAL(esp); /* 0x2B028426: pop ebp */ 8414 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028427: ret */ 8415 RECOMP_REGS_OUT(); 8416 } 8417 8418 void sub_2B028430(void) { 8419 int _fpu_cmp = 0; 8420 uint32_t _cf = 0; 8421 int _df = 1; 8422 uint32_t _flag_k = FK_NONE; 8423 uint32_t _flag_a = 0, _flag_b = 0; 8424 uint32_t _itail_tgt = 0; 8425 RECOMP_REGS_LOCALS 8426 RECOMP_ENTER(0x2B028430u); 8427 8428 L_2B028430: 8429 eax = MEM32(ecx + 0x4); /* 0x2B028430: mov eax, dword ptr [ecx + 4] */ 8430 /* test eax, eax */ /* 0x2B028433: test eax, eax */ 8431 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8432 _cf = 0; 8433 _flag_k = FK_TEST; 8434 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028438; /* 0x2B028435: jne 0x2b028438 */ 8435 L_2B028437: 8436 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028437: ret */ 8437 L_2B028438: 8438 ecx = MEM32(ecx + 0x8); /* 0x2B028438: mov ecx, dword ptr [ecx + 8] */ 8439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8441 ecx = ecx - eax; /* 0x2B02843B: sub ecx, eax */ 8442 _flag_k = FK_CMP; 8443 eax = 0x2AAAAAABu; /* 0x2B02843D: mov eax, 0x2aaaaaab */ 8444 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B028442: imul ecx */ 8445 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 8446 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8447 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B028444: sar edx, 1 */ 8448 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8449 edx = (uint32_t)((int32_t)edx >> 1u); 8450 eax = edx; /* 0x2B028446: mov eax, edx */ 8451 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B028448: shr eax, 0x1f */ 8452 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8453 eax = eax >> 31u; /* 0x2B028448: shr eax, 0x1f */ 8454 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8455 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8456 edx = edx + eax; /* 0x2B02844B: add edx, eax */ 8457 _flag_k = FK_ADD; 8458 eax = edx; /* 0x2B02844D: mov eax, edx */ 8459 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B02844F: ret */ 8460 RECOMP_REGS_OUT(); 8461 } 8462 8463 void sub_2B028450(void) { 8464 int _fpu_cmp = 0; 8465 uint32_t _cf = 0; 8466 int _df = 1; 8467 uint32_t _flag_k = FK_NONE; 8468 uint32_t _flag_a = 0, _flag_b = 0; 8469 uint32_t _itail_tgt = 0; 8470 RECOMP_REGS_LOCALS 8471 RECOMP_ENTER(0x2B028450u); 8472 8473 L_2B028450: 8474 PUSH32(esp, ebp); /* 0x2B028450: push ebp */ 8475 ebp = esp; /* 0x2B028451: mov ebp, esp */ 8476 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B028453: push -1 */ 8477 PUSH32(esp, 0x2B0ADC28u); /* 0x2B028455: push 0x2b0adc28 */ 8478 eax = MEM32(FS_BASE + (0)); /* 0x2B02845A: mov eax, dword ptr fs:[0] */ 8479 PUSH32(esp, eax); /* 0x2B028460: push eax */ 8480 MEM32(FS_BASE + (0)) = esp; /* 0x2B028461: mov dword ptr fs:[0], esp */ 8481 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u); 8482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8483 esp = esp - 0x58u; /* 0x2B028468: sub esp, 0x58 */ 8484 _flag_k = FK_CMP; 8485 PUSH32(esp, ebx); /* 0x2B02846B: push ebx */ 8486 PUSH32(esp, esi); /* 0x2B02846C: push esi */ 8487 esi = MEM32(ebp + 0x8); /* 0x2B02846D: mov esi, dword ptr [ebp + 8] */ 8488 SET_LO8(eax, MEM8(esi)); /* 0x2B028470: mov al, byte ptr [esi] */ 8489 ebx = ecx; /* 0x2B028472: mov ebx, ecx */ 8490 ecx = MEM32(esi + 0x4); /* 0x2B028474: mov ecx, dword ptr [esi + 4] */ 8491 /* test ecx, ecx */ /* 0x2B028477: test ecx, ecx */ 8492 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8493 _cf = 0; 8494 _flag_k = FK_TEST; 8495 PUSH32(esp, edi); /* 0x2B028479: push edi */ 8496 MEM32(ebp + (-0x34)) = 0; /* 0x2B02847A: mov dword ptr [ebp - 0x34], 0 */ 8497 MEM32(ebp + (-0x30)) = 0; /* 0x2B028481: mov dword ptr [ebp - 0x30], 0 */ 8498 MEM32(ebp + (-0x2C)) = 0; /* 0x2B028488: mov dword ptr [ebp - 0x2c], 0 */ 8499 MEM32(ebp + (-0x28)) = 0; /* 0x2B02848F: mov dword ptr [ebp - 0x28], 0 */ 8500 MEM32(ebp + (-0x24)) = 0; /* 0x2B028496: mov dword ptr [ebp - 0x24], 0 */ 8501 MEM32(ebp + (-0x20)) = 0; /* 0x2B02849D: mov dword ptr [ebp - 0x20], 0 */ 8502 MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x2B0284A4: mov dword ptr [ebp - 0x1c], 0x3f800000 */ 8503 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B0284AB: mov byte ptr [ebp - 0x64], al */ 8504 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0284B4; /* 0x2B0284AE: jne 0x2b0284b4 */ 8505 L_2B0284B0: 8506 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8507 eax = 0; /* 0x2B0284B0: xor eax, eax */ 8508 _cf = 0; 8509 _flag_k = FK_TEST; 8510 goto L_2B0284BC; /* 0x2B0284B2: jmp 0x2b0284bc */ 8511 L_2B0284B4: 8512 eax = MEM32(esi + 0x8); /* 0x2B0284B4: mov eax, dword ptr [esi + 8] */ 8513 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8515 eax = eax - ecx; /* 0x2B0284B7: sub eax, ecx */ 8516 _flag_k = FK_CMP; 8517 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2B0284B9: sar eax, 2 */ 8518 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8519 eax = (uint32_t)((int32_t)eax >> 2u); 8520 L_2B0284BC: 8521 /* test eax, eax */ /* 0x2B0284BC: test eax, eax */ 8522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8523 _cf = 0; 8524 _flag_k = FK_TEST; 8525 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0284C2; /* 0x2B0284BE: jge 0x2b0284c2 */ 8526 L_2B0284C0: 8527 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8528 eax = 0; /* 0x2B0284C0: xor eax, eax */ 8529 _cf = 0; 8530 _flag_k = FK_TEST; 8531 L_2B0284C2: 8532 ecx = eax * 4; /* 0x2B0284C2: lea ecx, [eax*4] */ 8533 PUSH32(esp, ecx); /* 0x2B0284C9: push ecx */ 8534 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0284CA: call 0x2b0ab212 */ /* not lifted */ 8535 RECOMP_FLAGS_IN(); 8536 ecx = MEM32(esi + 0x8); /* 0x2B0284CF: mov ecx, dword ptr [esi + 8] */ 8537 esi = MEM32(esi + 0x4); /* 0x2B0284D2: mov esi, dword ptr [esi + 4] */ 8538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8540 esp = esp + 4; /* 0x2B0284D5: add esp, 4 */ 8541 _flag_k = FK_ADD; 8542 PUSH32(esp, eax); /* 0x2B0284D8: push eax */ 8543 PUSH32(esp, ecx); /* 0x2B0284D9: push ecx */ 8544 PUSH32(esp, esi); /* 0x2B0284DA: push esi */ 8545 ecx = ebp + (-0x64); /* 0x2B0284DB: lea ecx, [ebp - 0x64] */ 8546 MEM32(ebp + (-0x60)) = eax; /* 0x2B0284DE: mov dword ptr [ebp - 0x60], eax */ 8547 RECOMP_ICALL(0x2B01DA20u); /* 0x2B0284E1: call 0x2b01da20 */ /* not lifted */ 8548 RECOMP_FLAGS_IN(); 8549 ecx = 8; /* 0x2B0284E6: mov ecx, 8 */ 8550 esi = ebp + (-0x34); /* 0x2B0284EB: lea esi, [ebp - 0x34] */ 8551 edi = ebp + (-0x54); /* 0x2B0284EE: lea edi, [ebp - 0x54] */ 8552 MEM32(ebp + (-0x5C)) = eax; /* 0x2B0284F1: mov dword ptr [ebp - 0x5c], eax */ 8553 MEM32(ebp + (-0x58)) = eax; /* 0x2B0284F4: mov dword ptr [ebp - 0x58], eax */ 8554 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0284F7: 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; } 8555 edx = ebp + (-0x64); /* 0x2B0284F9: lea edx, [ebp - 0x64] */ 8556 PUSH32(esp, edx); /* 0x2B0284FC: push edx */ 8557 eax = ebp + (-0x14); /* 0x2B0284FD: lea eax, [ebp - 0x14] */ 8558 PUSH32(esp, eax); /* 0x2B028500: push eax */ 8559 ecx = ebx; /* 0x2B028501: mov ecx, ebx */ 8560 MEM32(ebp + (-0x4)) = 0; /* 0x2B028503: mov dword ptr [ebp - 4], 0 */ 8561 RECOMP_ICALL(0x2B0292E0u); /* 0x2B02850A: call 0x2b0292e0 */ /* not lifted */ 8562 RECOMP_FLAGS_IN(); 8563 esi = MEM32(eax); /* 0x2B02850F: mov esi, dword ptr [eax] */ 8564 edx = MEM32(ebp + (-0x60)); /* 0x2B028511: mov edx, dword ptr [ebp - 0x60] */ 8565 ecx = MEM32(eax + 0x4); /* 0x2B028514: mov ecx, dword ptr [eax + 4] */ 8566 PUSH32(esp, edx); /* 0x2B028517: push edx */ 8567 MEM32(ebp + (-0x10)) = ecx; /* 0x2B028518: mov dword ptr [ebp - 0x10], ecx */ 8568 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02851B: call 0x2b0ab1ba */ /* not lifted */ 8569 RECOMP_FLAGS_IN(); 8570 ecx = MEM32(ebp + (-0xC)); /* 0x2B028520: mov ecx, dword ptr [ebp - 0xc] */ 8571 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8573 esp = esp + 4; /* 0x2B028523: add esp, 4 */ 8574 _flag_k = FK_ADD; 8575 edi = POP32_VAL(esp); /* 0x2B028526: pop edi */ 8576 eax = esi + 0x1C; /* 0x2B028527: lea eax, [esi + 0x1c] */ 8577 esi = POP32_VAL(esp); /* 0x2B02852A: pop esi */ 8578 ebx = POP32_VAL(esp); /* 0x2B02852B: pop ebx */ 8579 MEM32(FS_BASE + (0)) = ecx; /* 0x2B02852C: mov dword ptr fs:[0], ecx */ 8580 esp = ebp; /* 0x2B028533: mov esp, ebp */ 8581 ebp = POP32_VAL(esp); /* 0x2B028535: pop ebp */ 8582 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B028536: ret 4 */ 8583 RECOMP_REGS_OUT(); 8584 } 8585 8586 void sub_2B028540(void) { 8587 int _fpu_cmp = 0; 8588 uint32_t _cf = 0; 8589 int _df = 1; 8590 uint32_t _flag_k = FK_NONE; 8591 uint32_t _flag_a = 0, _flag_b = 0; 8592 uint32_t _itail_tgt = 0; 8593 RECOMP_REGS_LOCALS 8594 RECOMP_ENTER(0x2B028540u); 8595 8596 L_2B028540: 8597 PUSH32(esp, ebp); /* 0x2B028540: push ebp */ 8598 ebp = esp; /* 0x2B028541: mov ebp, esp */ 8599 PUSH32(esp, esi); /* 0x2B028543: push esi */ 8600 esi = MEM32(ebp + 0x8); /* 0x2B028544: mov esi, dword ptr [ebp + 8] */ 8601 SET_LO8(eax, MEM8(esi)); /* 0x2B028547: mov al, byte ptr [esi] */ 8602 PUSH32(esp, edi); /* 0x2B028549: push edi */ 8603 edi = ecx; /* 0x2B02854A: mov edi, ecx */ 8604 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x2B02854C: mov byte ptr [edi], al */ 8605 ecx = MEM32(esi + 0x4); /* 0x2B02854E: mov ecx, dword ptr [esi + 4] */ 8606 /* test ecx, ecx */ /* 0x2B028551: test ecx, ecx */ 8607 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8608 _cf = 0; 8609 _flag_k = FK_TEST; 8610 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028559; /* 0x2B028553: jne 0x2b028559 */ 8611 L_2B028555: 8612 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8613 eax = 0; /* 0x2B028555: xor eax, eax */ 8614 _cf = 0; 8615 _flag_k = FK_TEST; 8616 goto L_2B028561; /* 0x2B028557: jmp 0x2b028561 */ 8617 L_2B028559: 8618 eax = MEM32(esi + 0x8); /* 0x2B028559: mov eax, dword ptr [esi + 8] */ 8619 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8621 eax = eax - ecx; /* 0x2B02855C: sub eax, ecx */ 8622 _flag_k = FK_CMP; 8623 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2B02855E: sar eax, 2 */ 8624 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8625 eax = (uint32_t)((int32_t)eax >> 2u); 8626 L_2B028561: 8627 /* test eax, eax */ /* 0x2B028561: test eax, eax */ 8628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8629 _cf = 0; 8630 _flag_k = FK_TEST; 8631 if (TEST_NS(_flag_a, _flag_b)) goto L_2B028567; /* 0x2B028563: jge 0x2b028567 */ 8632 L_2B028565: 8633 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8634 eax = 0; /* 0x2B028565: xor eax, eax */ 8635 _cf = 0; 8636 _flag_k = FK_TEST; 8637 L_2B028567: 8638 ecx = eax * 4; /* 0x2B028567: lea ecx, [eax*4] */ 8639 PUSH32(esp, ecx); /* 0x2B02856E: push ecx */ 8640 RECOMP_ICALL(0x2B0AB212u); /* 0x2B02856F: call 0x2b0ab212 */ /* not lifted */ 8641 RECOMP_FLAGS_IN(); 8642 MEM32(edi + 0x4) = eax; /* 0x2B028574: mov dword ptr [edi + 4], eax */ 8643 edx = MEM32(esi + 0x8); /* 0x2B028577: mov edx, dword ptr [esi + 8] */ 8644 ecx = eax; /* 0x2B02857A: mov ecx, eax */ 8645 eax = MEM32(esi + 0x4); /* 0x2B02857C: mov eax, dword ptr [esi + 4] */ 8646 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8647 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8648 esp = esp + 4; /* 0x2B02857F: add esp, 4 */ 8649 _flag_k = FK_ADD; 8650 /* cmp eax, edx */ /* 0x2B028582: cmp eax, edx */ 8651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8653 _flag_k = FK_CMP; 8654 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028598; /* 0x2B028584: je 0x2b028598 */ 8655 L_2B028586: 8656 /* test ecx, ecx */ /* 0x2B028586: test ecx, ecx */ 8657 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8658 _cf = 0; 8659 _flag_k = FK_TEST; 8660 if (TEST_Z(_flag_a, _flag_b)) goto L_2B02858E; /* 0x2B028588: je 0x2b02858e */ 8661 L_2B02858A: 8662 esi = MEM32(eax); /* 0x2B02858A: mov esi, dword ptr [eax] */ 8663 MEM32(ecx) = esi; /* 0x2B02858C: mov dword ptr [ecx], esi */ 8664 L_2B02858E: 8665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 8666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8667 eax = eax + 4; /* 0x2B02858E: add eax, 4 */ 8668 _flag_k = FK_ADD; 8669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 8670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8671 ecx = ecx + 4; /* 0x2B028591: add ecx, 4 */ 8672 _flag_k = FK_ADD; 8673 /* cmp eax, edx */ /* 0x2B028594: cmp eax, edx */ 8674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8676 _flag_k = FK_CMP; 8677 RECOMP_BACKEDGE(); 8678 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028586; /* 0x2B028596: jne 0x2b028586 */ 8679 L_2B028598: 8680 MEM32(edi + 0x8) = ecx; /* 0x2B028598: mov dword ptr [edi + 8], ecx */ 8681 MEM32(edi + 0xC) = ecx; /* 0x2B02859B: mov dword ptr [edi + 0xc], ecx */ 8682 eax = edi; /* 0x2B02859E: mov eax, edi */ 8683 edi = POP32_VAL(esp); /* 0x2B0285A0: pop edi */ 8684 esi = POP32_VAL(esp); /* 0x2B0285A1: pop esi */ 8685 ebp = POP32_VAL(esp); /* 0x2B0285A2: pop ebp */ 8686 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0285A3: ret 4 */ 8687 RECOMP_REGS_OUT(); 8688 } 8689 8690 void sub_2B0285B0(void) { 8691 int _fpu_cmp = 0; 8692 uint32_t _cf = 0; 8693 int _df = 1; 8694 uint32_t _flag_k = FK_NONE; 8695 uint32_t _flag_a = 0, _flag_b = 0; 8696 uint32_t _itail_tgt = 0; 8697 RECOMP_REGS_LOCALS 8698 RECOMP_ENTER(0x2B0285B0u); 8699 8700 L_2B0285B0: 8701 PUSH32(esp, ebp); /* 0x2B0285B0: push ebp */ 8702 ebp = esp; /* 0x2B0285B1: mov ebp, esp */ 8703 eax = ecx; /* 0x2B0285B3: mov eax, ecx */ 8704 ecx = MEM32(ebp + 0x8); /* 0x2B0285B5: mov ecx, dword ptr [ebp + 8] */ 8705 SET_LO8(edx, MEM8(ecx)); /* 0x2B0285B8: mov dl, byte ptr [ecx] */ 8706 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8707 ecx = 0; /* 0x2B0285BA: xor ecx, ecx */ 8708 _cf = 0; 8709 _flag_k = FK_TEST; 8710 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x2B0285BC: mov byte ptr [eax], dl */ 8711 MEM32(eax + 0x4) = ecx; /* 0x2B0285BE: mov dword ptr [eax + 4], ecx */ 8712 MEM32(eax + 0x8) = ecx; /* 0x2B0285C1: mov dword ptr [eax + 8], ecx */ 8713 MEM32(eax + 0xC) = ecx; /* 0x2B0285C4: mov dword ptr [eax + 0xc], ecx */ 8714 ebp = POP32_VAL(esp); /* 0x2B0285C7: pop ebp */ 8715 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0285C8: ret 4 */ 8716 RECOMP_REGS_OUT(); 8717 } 8718 8719 void sub_2B0285D0(void) { 8720 int _fpu_cmp = 0; 8721 uint32_t _cf = 0; 8722 int _df = 1; 8723 uint32_t _flag_k = FK_NONE; 8724 uint32_t _flag_a = 0, _flag_b = 0; 8725 uint32_t _itail_tgt = 0; 8726 RECOMP_REGS_LOCALS 8727 RECOMP_ENTER(0x2B0285D0u); 8728 8729 L_2B0285D0: 8730 PUSH32(esp, ebp); /* 0x2B0285D0: push ebp */ 8731 ebp = esp; /* 0x2B0285D1: mov ebp, esp */ 8732 PUSH32(esp, ecx); /* 0x2B0285D3: push ecx */ 8733 PUSH32(esp, ebx); /* 0x2B0285D4: push ebx */ 8734 PUSH32(esp, esi); /* 0x2B0285D5: push esi */ 8735 esi = MEM32(ebp + 0x8); /* 0x2B0285D6: mov esi, dword ptr [ebp + 8] */ 8736 SET_LO8(eax, MEM8(esi)); /* 0x2B0285D9: mov al, byte ptr [esi] */ 8737 PUSH32(esp, edi); /* 0x2B0285DB: push edi */ 8738 edi = ecx; /* 0x2B0285DC: mov edi, ecx */ 8739 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x2B0285DE: mov byte ptr [edi], al */ 8740 ecx = MEM32(esi + 0x4); /* 0x2B0285E0: mov ecx, dword ptr [esi + 4] */ 8741 /* test ecx, ecx */ /* 0x2B0285E3: test ecx, ecx */ 8742 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8743 _cf = 0; 8744 _flag_k = FK_TEST; 8745 MEM32(ebp + (-0x4)) = edi; /* 0x2B0285E5: mov dword ptr [ebp - 4], edi */ 8746 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0285EE; /* 0x2B0285E8: jne 0x2b0285ee */ 8747 L_2B0285EA: 8748 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8749 eax = 0; /* 0x2B0285EA: xor eax, eax */ 8750 _cf = 0; 8751 _flag_k = FK_TEST; 8752 goto L_2B0285F6; /* 0x2B0285EC: jmp 0x2b0285f6 */ 8753 L_2B0285EE: 8754 eax = MEM32(esi + 0x8); /* 0x2B0285EE: mov eax, dword ptr [esi + 8] */ 8755 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8757 eax = eax - ecx; /* 0x2B0285F1: sub eax, ecx */ 8758 _flag_k = FK_CMP; 8759 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0285F3: sar eax, 4 */ 8760 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8761 eax = (uint32_t)((int32_t)eax >> 4u); 8762 L_2B0285F6: 8763 /* test eax, eax */ /* 0x2B0285F6: test eax, eax */ 8764 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8765 _cf = 0; 8766 _flag_k = FK_TEST; 8767 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0285FC; /* 0x2B0285F8: jge 0x2b0285fc */ 8768 L_2B0285FA: 8769 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8770 eax = 0; /* 0x2B0285FA: xor eax, eax */ 8771 _cf = 0; 8772 _flag_k = FK_TEST; 8773 L_2B0285FC: 8774 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0285FC: shl eax, 4 */ 8775 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8776 eax = eax << 4u; /* 0x2B0285FC: shl eax, 4 */ 8777 PUSH32(esp, eax); /* 0x2B0285FF: push eax */ 8778 RECOMP_ICALL(0x2B0AB212u); /* 0x2B028600: call 0x2b0ab212 */ /* not lifted */ 8779 RECOMP_FLAGS_IN(); 8780 MEM32(edi + 0x4) = eax; /* 0x2B028605: mov dword ptr [edi + 4], eax */ 8781 ebx = MEM32(esi + 0x8); /* 0x2B028608: mov ebx, dword ptr [esi + 8] */ 8782 esi = MEM32(esi + 0x4); /* 0x2B02860B: mov esi, dword ptr [esi + 4] */ 8783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8785 esp = esp + 4; /* 0x2B02860E: add esp, 4 */ 8786 _flag_k = FK_ADD; 8787 /* cmp esi, ebx */ /* 0x2B028611: cmp esi, ebx */ 8788 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 8789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8790 _flag_k = FK_CMP; 8791 edi = eax; /* 0x2B028613: mov edi, eax */ 8792 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02862B; /* 0x2B028615: je 0x2b02862b */ 8793 L_2B028617: 8794 PUSH32(esp, esi); /* 0x2B028617: push esi */ 8795 PUSH32(esp, edi); /* 0x2B028618: push edi */ 8796 RECOMP_ICALL(0x2B01E7A0u); /* 0x2B028619: call 0x2b01e7a0 */ /* not lifted */ 8797 RECOMP_FLAGS_IN(); 8798 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 8799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8800 esi = esi + 0x10u; /* 0x2B02861E: add esi, 0x10 */ 8801 _flag_k = FK_ADD; 8802 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8803 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8804 esp = esp + 8; /* 0x2B028621: add esp, 8 */ 8805 _flag_k = FK_ADD; 8806 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 8807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8808 edi = edi + 0x10u; /* 0x2B028624: add edi, 0x10 */ 8809 _flag_k = FK_ADD; 8810 /* cmp esi, ebx */ /* 0x2B028627: cmp esi, ebx */ 8811 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 8812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8813 _flag_k = FK_CMP; 8814 RECOMP_BACKEDGE(); 8815 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028617; /* 0x2B028629: jne 0x2b028617 */ 8816 L_2B02862B: 8817 eax = MEM32(ebp + (-0x4)); /* 0x2B02862B: mov eax, dword ptr [ebp - 4] */ 8818 MEM32(eax + 0x8) = edi; /* 0x2B02862E: mov dword ptr [eax + 8], edi */ 8819 MEM32(eax + 0xC) = edi; /* 0x2B028631: mov dword ptr [eax + 0xc], edi */ 8820 edi = POP32_VAL(esp); /* 0x2B028634: pop edi */ 8821 esi = POP32_VAL(esp); /* 0x2B028635: pop esi */ 8822 ebx = POP32_VAL(esp); /* 0x2B028636: pop ebx */ 8823 esp = ebp; /* 0x2B028637: mov esp, ebp */ 8824 ebp = POP32_VAL(esp); /* 0x2B028639: pop ebp */ 8825 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B02863A: ret 4 */ 8826 RECOMP_REGS_OUT(); 8827 } 8828 8829 void sub_2B028640(void) { 8830 int _fpu_cmp = 0; 8831 uint32_t _cf = 0; 8832 int _df = 1; 8833 uint32_t _flag_k = FK_NONE; 8834 uint32_t _flag_a = 0, _flag_b = 0; 8835 uint32_t _itail_tgt = 0; 8836 RECOMP_REGS_LOCALS 8837 RECOMP_ENTER(0x2B028640u); 8838 8839 L_2B028640: 8840 PUSH32(esp, ebp); /* 0x2B028640: push ebp */ 8841 ebp = esp; /* 0x2B028641: mov ebp, esp */ 8842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8844 esp = esp - 8; /* 0x2B028643: sub esp, 8 */ 8845 _flag_k = FK_CMP; 8846 PUSH32(esp, ebx); /* 0x2B028646: push ebx */ 8847 ebx = MEM32(ebp + 0x8); /* 0x2B028647: mov ebx, dword ptr [ebp + 8] */ 8848 edx = ecx; /* 0x2B02864A: mov edx, ecx */ 8849 /* cmp edx, ebx */ /* 0x2B02864C: cmp edx, ebx */ 8850 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 8851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8852 _flag_k = FK_CMP; 8853 PUSH32(esp, esi); /* 0x2B02864E: push esi */ 8854 PUSH32(esp, edi); /* 0x2B02864F: push edi */ 8855 MEM32(ebp + (-0x4)) = edx; /* 0x2B028650: mov dword ptr [ebp - 4], edx */ 8856 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0286DE; /* 0x2B028653: je 0x2b0286de */ 8857 L_2B028659: 8858 esi = MEM32(ebx + 0x4); /* 0x2B028659: mov esi, dword ptr [ebx + 4] */ 8859 /* test esi, esi */ /* 0x2B02865C: test esi, esi */ 8860 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8861 _cf = 0; 8862 _flag_k = FK_TEST; 8863 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028664; /* 0x2B02865E: jne 0x2b028664 */ 8864 L_2B028660: 8865 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8866 edi = 0; /* 0x2B028660: xor edi, edi */ 8867 _cf = 0; 8868 _flag_k = FK_TEST; 8869 goto L_2B02866C; /* 0x2B028662: jmp 0x2b02866c */ 8870 L_2B028664: 8871 edi = MEM32(ebx + 0x8); /* 0x2B028664: mov edi, dword ptr [ebx + 8] */ 8872 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 8873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8874 edi = edi - esi; /* 0x2B028667: sub edi, esi */ 8875 _flag_k = FK_CMP; 8876 if (4u) _cf = (((edi) >> 3) & 1u); /* 0x2B028669: sar edi, 4 */ 8877 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8878 edi = (uint32_t)((int32_t)edi >> 4u); 8879 L_2B02866C: 8880 ecx = MEM32(edx + 0x4); /* 0x2B02866C: mov ecx, dword ptr [edx + 4] */ 8881 /* test ecx, ecx */ /* 0x2B02866F: test ecx, ecx */ 8882 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8883 _cf = 0; 8884 _flag_k = FK_TEST; 8885 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028677; /* 0x2B028671: jne 0x2b028677 */ 8886 L_2B028673: 8887 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8888 eax = 0; /* 0x2B028673: xor eax, eax */ 8889 _cf = 0; 8890 _flag_k = FK_TEST; 8891 goto L_2B02867F; /* 0x2B028675: jmp 0x2b02867f */ 8892 L_2B028677: 8893 eax = MEM32(edx + 0x8); /* 0x2B028677: mov eax, dword ptr [edx + 8] */ 8894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8896 eax = eax - ecx; /* 0x2B02867A: sub eax, ecx */ 8897 _flag_k = FK_CMP; 8898 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B02867C: sar eax, 4 */ 8899 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8900 eax = (uint32_t)((int32_t)eax >> 4u); 8901 L_2B02867F: 8902 /* cmp edi, eax */ /* 0x2B02867F: cmp edi, eax */ 8903 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8905 _flag_k = FK_CMP; 8906 if (CMP_A(_flag_a, _flag_b)) goto L_2B0286E9; /* 0x2B028681: ja 0x2b0286e9 */ 8907 L_2B028683: 8908 ebx = MEM32(ebx + 0x8); /* 0x2B028683: mov ebx, dword ptr [ebx + 8] */ 8909 /* cmp esi, ebx */ /* 0x2B028686: cmp esi, ebx */ 8910 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 8911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8912 _flag_k = FK_CMP; 8913 edi = ecx; /* 0x2B028688: mov edi, ecx */ 8914 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0286A1; /* 0x2B02868A: je 0x2b0286a1 */ 8915 L_2B02868C: 8916 PUSH32(esp, esi); /* 0x2B02868C: push esi */ 8917 ecx = edi; /* 0x2B02868D: mov ecx, edi */ 8918 RECOMP_ICALL(0x2B01E140u); /* 0x2B02868F: call 0x2b01e140 */ /* not lifted */ 8919 RECOMP_FLAGS_IN(); 8920 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 8921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8922 esi = esi + 0x10u; /* 0x2B028694: add esi, 0x10 */ 8923 _flag_k = FK_ADD; 8924 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 8925 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8926 edi = edi + 0x10u; /* 0x2B028697: add edi, 0x10 */ 8927 _flag_k = FK_ADD; 8928 /* cmp esi, ebx */ /* 0x2B02869A: cmp esi, ebx */ 8929 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 8930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8931 _flag_k = FK_CMP; 8932 RECOMP_BACKEDGE(); 8933 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02868C; /* 0x2B02869C: jne 0x2b02868c */ 8934 L_2B02869E: 8935 edx = MEM32(ebp + (-0x4)); /* 0x2B02869E: mov edx, dword ptr [ebp - 4] */ 8936 L_2B0286A1: 8937 ebx = MEM32(edx + 0x8); /* 0x2B0286A1: mov ebx, dword ptr [edx + 8] */ 8938 /* cmp edi, ebx */ /* 0x2B0286A4: cmp edi, ebx */ 8939 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8941 _flag_k = FK_CMP; 8942 esi = edi; /* 0x2B0286A6: mov esi, edi */ 8943 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0286BD; /* 0x2B0286A8: je 0x2b0286bd */ 8944 L_2B0286AA: 8945 PUSH32(esp, 0); /* 0x2B0286AA: push 0 */ 8946 ecx = esi; /* 0x2B0286AC: mov ecx, esi */ 8947 RECOMP_ICALL(0x2B01E840u); /* 0x2B0286AE: call 0x2b01e840 */ /* not lifted */ 8948 RECOMP_FLAGS_IN(); 8949 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 8950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8951 esi = esi + 0x10u; /* 0x2B0286B3: add esi, 0x10 */ 8952 _flag_k = FK_ADD; 8953 /* cmp esi, ebx */ /* 0x2B0286B6: cmp esi, ebx */ 8954 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 8955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8956 _flag_k = FK_CMP; 8957 RECOMP_BACKEDGE(); 8958 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0286AA; /* 0x2B0286B8: jne 0x2b0286aa */ 8959 L_2B0286BA: 8960 edx = MEM32(ebp + (-0x4)); /* 0x2B0286BA: mov edx, dword ptr [ebp - 4] */ 8961 L_2B0286BD: 8962 eax = MEM32(ebp + 0x8); /* 0x2B0286BD: mov eax, dword ptr [ebp + 8] */ 8963 ecx = MEM32(eax + 0x4); /* 0x2B0286C0: mov ecx, dword ptr [eax + 4] */ 8964 /* test ecx, ecx */ /* 0x2B0286C3: test ecx, ecx */ 8965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8966 _cf = 0; 8967 _flag_k = FK_TEST; 8968 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0286CB; /* 0x2B0286C5: jne 0x2b0286cb */ 8969 L_2B0286C7: 8970 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8971 eax = 0; /* 0x2B0286C7: xor eax, eax */ 8972 _cf = 0; 8973 _flag_k = FK_TEST; 8974 goto L_2B0286D3; /* 0x2B0286C9: jmp 0x2b0286d3 */ 8975 L_2B0286CB: 8976 eax = MEM32(eax + 0x8); /* 0x2B0286CB: mov eax, dword ptr [eax + 8] */ 8977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8979 eax = eax - ecx; /* 0x2B0286CE: sub eax, ecx */ 8980 _flag_k = FK_CMP; 8981 L_2B0286D0: 8982 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0286D0: sar eax, 4 */ 8983 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8984 eax = (uint32_t)((int32_t)eax >> 4u); 8985 L_2B0286D3: 8986 ecx = MEM32(edx + 0x4); /* 0x2B0286D3: mov ecx, dword ptr [edx + 4] */ 8987 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0286D6: shl eax, 4 */ 8988 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8989 eax = eax << 4u; /* 0x2B0286D6: shl eax, 4 */ 8990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8991 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8992 eax = eax + ecx; /* 0x2B0286D9: add eax, ecx */ 8993 _flag_k = FK_ADD; 8994 MEM32(edx + 0x8) = eax; /* 0x2B0286DB: mov dword ptr [edx + 8], eax */ 8995 L_2B0286DE: 8996 edi = POP32_VAL(esp); /* 0x2B0286DE: pop edi */ 8997 esi = POP32_VAL(esp); /* 0x2B0286DF: pop esi */ 8998 eax = edx; /* 0x2B0286E0: mov eax, edx */ 8999 ebx = POP32_VAL(esp); /* 0x2B0286E2: pop ebx */ 9000 esp = ebp; /* 0x2B0286E3: mov esp, ebp */ 9001 ebp = POP32_VAL(esp); /* 0x2B0286E5: pop ebp */ 9002 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0286E6: ret 4 */ 9003 L_2B0286E9: 9004 /* test esi, esi */ /* 0x2B0286E9: test esi, esi */ 9005 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9006 _cf = 0; 9007 _flag_k = FK_TEST; 9008 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0286F1; /* 0x2B0286EB: jne 0x2b0286f1 */ 9009 L_2B0286ED: 9010 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9011 edi = 0; /* 0x2B0286ED: xor edi, edi */ 9012 _cf = 0; 9013 _flag_k = FK_TEST; 9014 goto L_2B0286F9; /* 0x2B0286EF: jmp 0x2b0286f9 */ 9015 L_2B0286F1: 9016 edi = MEM32(ebx + 0x8); /* 0x2B0286F1: mov edi, dword ptr [ebx + 8] */ 9017 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 9018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9019 edi = edi - esi; /* 0x2B0286F4: sub edi, esi */ 9020 _flag_k = FK_CMP; 9021 if (4u) _cf = (((edi) >> 3) & 1u); /* 0x2B0286F6: sar edi, 4 */ 9022 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9023 edi = (uint32_t)((int32_t)edi >> 4u); 9024 L_2B0286F9: 9025 /* test ecx, ecx */ /* 0x2B0286F9: test ecx, ecx */ 9026 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9027 _cf = 0; 9028 _flag_k = FK_TEST; 9029 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028701; /* 0x2B0286FB: jne 0x2b028701 */ 9030 L_2B0286FD: 9031 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9032 eax = 0; /* 0x2B0286FD: xor eax, eax */ 9033 _cf = 0; 9034 _flag_k = FK_TEST; 9035 goto L_2B028709; /* 0x2B0286FF: jmp 0x2b028709 */ 9036 L_2B028701: 9037 eax = MEM32(edx + 0xC); /* 0x2B028701: mov eax, dword ptr [edx + 0xc] */ 9038 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9040 eax = eax - ecx; /* 0x2B028704: sub eax, ecx */ 9041 _flag_k = FK_CMP; 9042 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B028706: sar eax, 4 */ 9043 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9044 eax = (uint32_t)((int32_t)eax >> 4u); 9045 L_2B028709: 9046 /* cmp edi, eax */ /* 0x2B028709: cmp edi, eax */ 9047 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9049 _flag_k = FK_CMP; 9050 if (CMP_A(_flag_a, _flag_b)) goto L_2B028786; /* 0x2B02870B: ja 0x2b028786 */ 9051 L_2B02870D: 9052 /* test ecx, ecx */ /* 0x2B02870D: test ecx, ecx */ 9053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9054 _cf = 0; 9055 _flag_k = FK_TEST; 9056 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028715; /* 0x2B02870F: jne 0x2b028715 */ 9057 L_2B028711: 9058 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9059 eax = 0; /* 0x2B028711: xor eax, eax */ 9060 _cf = 0; 9061 _flag_k = FK_TEST; 9062 goto L_2B02871D; /* 0x2B028713: jmp 0x2b02871d */ 9063 L_2B028715: 9064 eax = MEM32(edx + 0x8); /* 0x2B028715: mov eax, dword ptr [edx + 8] */ 9065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9067 eax = eax - ecx; /* 0x2B028718: sub eax, ecx */ 9068 _flag_k = FK_CMP; 9069 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B02871A: sar eax, 4 */ 9070 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9071 eax = (uint32_t)((int32_t)eax >> 4u); 9072 L_2B02871D: 9073 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B02871D: shl eax, 4 */ 9074 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9075 eax = eax << 4u; /* 0x2B02871D: shl eax, 4 */ 9076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9077 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9078 eax = eax + esi; /* 0x2B028720: add eax, esi */ 9079 _flag_k = FK_ADD; 9080 edi = eax; /* 0x2B028722: mov edi, eax */ 9081 /* cmp esi, edi */ /* 0x2B028724: cmp esi, edi */ 9082 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 9083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9084 _flag_k = FK_CMP; 9085 ebx = ecx; /* 0x2B028726: mov ebx, ecx */ 9086 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02873C; /* 0x2B028728: je 0x2b02873c */ 9087 L_2B02872A: 9088 PUSH32(esp, esi); /* 0x2B02872A: push esi */ 9089 ecx = ebx; /* 0x2B02872B: mov ecx, ebx */ 9090 RECOMP_ICALL(0x2B01E140u); /* 0x2B02872D: call 0x2b01e140 */ /* not lifted */ 9091 RECOMP_FLAGS_IN(); 9092 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9094 esi = esi + 0x10u; /* 0x2B028732: add esi, 0x10 */ 9095 _flag_k = FK_ADD; 9096 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 9097 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9098 ebx = ebx + 0x10u; /* 0x2B028735: add ebx, 0x10 */ 9099 _flag_k = FK_ADD; 9100 /* cmp esi, edi */ /* 0x2B028738: cmp esi, edi */ 9101 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 9102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9103 _flag_k = FK_CMP; 9104 RECOMP_BACKEDGE(); 9105 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02872A; /* 0x2B02873A: jne 0x2b02872a */ 9106 L_2B02873C: 9107 ecx = MEM32(ebp + 0x8); /* 0x2B02873C: mov ecx, dword ptr [ebp + 8] */ 9108 eax = MEM32(ecx + 0x8); /* 0x2B02873F: mov eax, dword ptr [ecx + 8] */ 9109 /* cmp edi, eax */ /* 0x2B028742: cmp edi, eax */ 9110 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9112 _flag_k = FK_CMP; 9113 edx = MEM32(ebp + (-0x4)); /* 0x2B028744: mov edx, dword ptr [ebp - 4] */ 9114 ebx = MEM32(edx + 0x8); /* 0x2B028747: mov ebx, dword ptr [edx + 8] */ 9115 MEM32(ebp + (-0x8)) = eax; /* 0x2B02874A: mov dword ptr [ebp - 8], eax */ 9116 esi = edi; /* 0x2B02874D: mov esi, edi */ 9117 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02876E; /* 0x2B02874F: je 0x2b02876e */ 9118 L_2B028751: 9119 PUSH32(esp, esi); /* 0x2B028751: push esi */ 9120 PUSH32(esp, ebx); /* 0x2B028752: push ebx */ 9121 RECOMP_ICALL(0x2B01E7A0u); /* 0x2B028753: call 0x2b01e7a0 */ /* not lifted */ 9122 RECOMP_FLAGS_IN(); 9123 eax = MEM32(ebp + (-0x8)); /* 0x2B028758: mov eax, dword ptr [ebp - 8] */ 9124 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9125 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9126 esi = esi + 0x10u; /* 0x2B02875B: add esi, 0x10 */ 9127 _flag_k = FK_ADD; 9128 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9129 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9130 esp = esp + 8; /* 0x2B02875E: add esp, 8 */ 9131 _flag_k = FK_ADD; 9132 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 9133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9134 ebx = ebx + 0x10u; /* 0x2B028761: add ebx, 0x10 */ 9135 _flag_k = FK_ADD; 9136 /* cmp esi, eax */ /* 0x2B028764: cmp esi, eax */ 9137 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9139 _flag_k = FK_CMP; 9140 RECOMP_BACKEDGE(); 9141 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028751; /* 0x2B028766: jne 0x2b028751 */ 9142 L_2B028768: 9143 edx = MEM32(ebp + (-0x4)); /* 0x2B028768: mov edx, dword ptr [ebp - 4] */ 9144 ecx = MEM32(ebp + 0x8); /* 0x2B02876B: mov ecx, dword ptr [ebp + 8] */ 9145 L_2B02876E: 9146 esi = MEM32(ecx + 0x4); /* 0x2B02876E: mov esi, dword ptr [ecx + 4] */ 9147 /* test esi, esi */ /* 0x2B028771: test esi, esi */ 9148 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9149 _cf = 0; 9150 _flag_k = FK_TEST; 9151 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02877C; /* 0x2B028773: jne 0x2b02877c */ 9152 L_2B028775: 9153 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9154 eax = 0; /* 0x2B028775: xor eax, eax */ 9155 _cf = 0; 9156 _flag_k = FK_TEST; 9157 RECOMP_BACKEDGE(); 9158 goto L_2B0286D3; /* 0x2B028777: jmp 0x2b0286d3 */ 9159 L_2B02877C: 9160 eax = MEM32(ecx + 0x8); /* 0x2B02877C: mov eax, dword ptr [ecx + 8] */ 9161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9163 eax = eax - esi; /* 0x2B02877F: sub eax, esi */ 9164 _flag_k = FK_CMP; 9165 RECOMP_BACKEDGE(); 9166 goto L_2B0286D0; /* 0x2B028781: jmp 0x2b0286d0 */ 9167 L_2B028786: 9168 edi = MEM32(edx + 0x8); /* 0x2B028786: mov edi, dword ptr [edx + 8] */ 9169 esi = ecx; /* 0x2B028789: mov esi, ecx */ 9170 /* cmp esi, edi */ /* 0x2B02878B: cmp esi, edi */ 9171 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 9172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9173 _flag_k = FK_CMP; 9174 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0287A0; /* 0x2B02878D: je 0x2b0287a0 */ 9175 L_2B02878F: 9176 ecx = esi; /* 0x2B02878F: mov ecx, esi */ 9177 RECOMP_ICALL(0x2B012D80u); /* 0x2B028791: call 0x2b012d80 */ /* not lifted */ 9178 RECOMP_FLAGS_IN(); 9179 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9181 esi = esi + 0x10u; /* 0x2B028796: add esi, 0x10 */ 9182 _flag_k = FK_ADD; 9183 /* cmp esi, edi */ /* 0x2B028799: cmp esi, edi */ 9184 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 9185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9186 _flag_k = FK_CMP; 9187 RECOMP_BACKEDGE(); 9188 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02878F; /* 0x2B02879B: jne 0x2b02878f */ 9189 L_2B02879D: 9190 edx = MEM32(ebp + (-0x4)); /* 0x2B02879D: mov edx, dword ptr [ebp - 4] */ 9191 L_2B0287A0: 9192 eax = MEM32(edx + 0x4); /* 0x2B0287A0: mov eax, dword ptr [edx + 4] */ 9193 PUSH32(esp, eax); /* 0x2B0287A3: push eax */ 9194 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0287A4: call 0x2b0ab1ba */ /* not lifted */ 9195 RECOMP_FLAGS_IN(); 9196 esi = MEM32(ebp + 0x8); /* 0x2B0287A9: mov esi, dword ptr [ebp + 8] */ 9197 ecx = MEM32(esi + 0x4); /* 0x2B0287AC: mov ecx, dword ptr [esi + 4] */ 9198 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9200 esp = esp + 4; /* 0x2B0287AF: add esp, 4 */ 9201 _flag_k = FK_ADD; 9202 /* test ecx, ecx */ /* 0x2B0287B2: test ecx, ecx */ 9203 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9204 _cf = 0; 9205 _flag_k = FK_TEST; 9206 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0287BA; /* 0x2B0287B4: jne 0x2b0287ba */ 9207 L_2B0287B6: 9208 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9209 eax = 0; /* 0x2B0287B6: xor eax, eax */ 9210 _cf = 0; 9211 _flag_k = FK_TEST; 9212 goto L_2B0287C2; /* 0x2B0287B8: jmp 0x2b0287c2 */ 9213 L_2B0287BA: 9214 eax = MEM32(esi + 0x8); /* 0x2B0287BA: mov eax, dword ptr [esi + 8] */ 9215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9217 eax = eax - ecx; /* 0x2B0287BD: sub eax, ecx */ 9218 _flag_k = FK_CMP; 9219 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0287BF: sar eax, 4 */ 9220 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9221 eax = (uint32_t)((int32_t)eax >> 4u); 9222 L_2B0287C2: 9223 /* test eax, eax */ /* 0x2B0287C2: test eax, eax */ 9224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9225 _cf = 0; 9226 _flag_k = FK_TEST; 9227 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0287C8; /* 0x2B0287C4: jge 0x2b0287c8 */ 9228 L_2B0287C6: 9229 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9230 eax = 0; /* 0x2B0287C6: xor eax, eax */ 9231 _cf = 0; 9232 _flag_k = FK_TEST; 9233 L_2B0287C8: 9234 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0287C8: shl eax, 4 */ 9235 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9236 eax = eax << 4u; /* 0x2B0287C8: shl eax, 4 */ 9237 PUSH32(esp, eax); /* 0x2B0287CB: push eax */ 9238 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0287CC: call 0x2b0ab212 */ /* not lifted */ 9239 RECOMP_FLAGS_IN(); 9240 ecx = MEM32(ebp + (-0x4)); /* 0x2B0287D1: mov ecx, dword ptr [ebp - 4] */ 9241 edx = MEM32(ebp + 0x8); /* 0x2B0287D4: mov edx, dword ptr [ebp + 8] */ 9242 MEM32(ecx + 0x4) = eax; /* 0x2B0287D7: mov dword ptr [ecx + 4], eax */ 9243 ebx = MEM32(esi + 0x8); /* 0x2B0287DA: mov ebx, dword ptr [esi + 8] */ 9244 esi = MEM32(edx + 0x4); /* 0x2B0287DD: mov esi, dword ptr [edx + 4] */ 9245 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9246 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9247 esp = esp + 4; /* 0x2B0287E0: add esp, 4 */ 9248 _flag_k = FK_ADD; 9249 /* cmp esi, ebx */ /* 0x2B0287E3: cmp esi, ebx */ 9250 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9252 _flag_k = FK_CMP; 9253 edi = eax; /* 0x2B0287E5: mov edi, eax */ 9254 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0287FD; /* 0x2B0287E7: je 0x2b0287fd */ 9255 L_2B0287E9: 9256 PUSH32(esp, esi); /* 0x2B0287E9: push esi */ 9257 PUSH32(esp, edi); /* 0x2B0287EA: push edi */ 9258 RECOMP_ICALL(0x2B01E7A0u); /* 0x2B0287EB: call 0x2b01e7a0 */ /* not lifted */ 9259 RECOMP_FLAGS_IN(); 9260 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9261 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9262 esi = esi + 0x10u; /* 0x2B0287F0: add esi, 0x10 */ 9263 _flag_k = FK_ADD; 9264 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9265 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9266 esp = esp + 8; /* 0x2B0287F3: add esp, 8 */ 9267 _flag_k = FK_ADD; 9268 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 9269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9270 edi = edi + 0x10u; /* 0x2B0287F6: add edi, 0x10 */ 9271 _flag_k = FK_ADD; 9272 /* cmp esi, ebx */ /* 0x2B0287F9: cmp esi, ebx */ 9273 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9275 _flag_k = FK_CMP; 9276 RECOMP_BACKEDGE(); 9277 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0287E9; /* 0x2B0287FB: jne 0x2b0287e9 */ 9278 L_2B0287FD: 9279 eax = MEM32(ebp + (-0x4)); /* 0x2B0287FD: mov eax, dword ptr [ebp - 4] */ 9280 MEM32(eax + 0x8) = edi; /* 0x2B028800: mov dword ptr [eax + 8], edi */ 9281 MEM32(eax + 0xC) = edi; /* 0x2B028803: mov dword ptr [eax + 0xc], edi */ 9282 edi = POP32_VAL(esp); /* 0x2B028806: pop edi */ 9283 esi = POP32_VAL(esp); /* 0x2B028807: pop esi */ 9284 ebx = POP32_VAL(esp); /* 0x2B028808: pop ebx */ 9285 esp = ebp; /* 0x2B028809: mov esp, ebp */ 9286 ebp = POP32_VAL(esp); /* 0x2B02880B: pop ebp */ 9287 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B02880C: ret 4 */ 9288 RECOMP_REGS_OUT(); 9289 } 9290 9291 void sub_2B0286D0(void) { 9292 int _fpu_cmp = 0; 9293 uint32_t _cf = 0; 9294 int _df = 1; 9295 uint32_t _flag_k = FK_NONE; 9296 uint32_t _flag_a = 0, _flag_b = 0; 9297 uint32_t _itail_tgt = 0; 9298 RECOMP_REGS_LOCALS 9299 RECOMP_ENTER(0x2B0286D0u); 9300 9301 L_2B0286D0: 9302 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0286D0: sar eax, 4 */ 9303 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9304 eax = (uint32_t)((int32_t)eax >> 4u); 9305 ecx = MEM32(edx + 0x4); /* 0x2B0286D3: mov ecx, dword ptr [edx + 4] */ 9306 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0286D6: shl eax, 4 */ 9307 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9308 eax = eax << 4u; /* 0x2B0286D6: shl eax, 4 */ 9309 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9311 eax = eax + ecx; /* 0x2B0286D9: add eax, ecx */ 9312 _flag_k = FK_ADD; 9313 MEM32(edx + 0x8) = eax; /* 0x2B0286DB: mov dword ptr [edx + 8], eax */ 9314 edi = POP32_VAL(esp); /* 0x2B0286DE: pop edi */ 9315 esi = POP32_VAL(esp); /* 0x2B0286DF: pop esi */ 9316 eax = edx; /* 0x2B0286E0: mov eax, edx */ 9317 ebx = POP32_VAL(esp); /* 0x2B0286E2: pop ebx */ 9318 esp = ebp; /* 0x2B0286E3: mov esp, ebp */ 9319 ebp = POP32_VAL(esp); /* 0x2B0286E5: pop ebp */ 9320 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0286E6: ret 4 */ 9321 RECOMP_REGS_OUT(); 9322 } 9323 9324 void sub_2B0286D3(void) { 9325 int _fpu_cmp = 0; 9326 uint32_t _cf = 0; 9327 int _df = 1; 9328 uint32_t _flag_k = FK_NONE; 9329 uint32_t _flag_a = 0, _flag_b = 0; 9330 uint32_t _itail_tgt = 0; 9331 RECOMP_REGS_LOCALS 9332 RECOMP_ENTER(0x2B0286D3u); 9333 9334 L_2B0286D3: 9335 ecx = MEM32(edx + 0x4); /* 0x2B0286D3: mov ecx, dword ptr [edx + 4] */ 9336 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0286D6: shl eax, 4 */ 9337 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9338 eax = eax << 4u; /* 0x2B0286D6: shl eax, 4 */ 9339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9341 eax = eax + ecx; /* 0x2B0286D9: add eax, ecx */ 9342 _flag_k = FK_ADD; 9343 MEM32(edx + 0x8) = eax; /* 0x2B0286DB: mov dword ptr [edx + 8], eax */ 9344 edi = POP32_VAL(esp); /* 0x2B0286DE: pop edi */ 9345 esi = POP32_VAL(esp); /* 0x2B0286DF: pop esi */ 9346 eax = edx; /* 0x2B0286E0: mov eax, edx */ 9347 ebx = POP32_VAL(esp); /* 0x2B0286E2: pop ebx */ 9348 esp = ebp; /* 0x2B0286E3: mov esp, ebp */ 9349 ebp = POP32_VAL(esp); /* 0x2B0286E5: pop ebp */ 9350 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0286E6: ret 4 */ 9351 RECOMP_REGS_OUT(); 9352 } 9353 9354 void sub_2B028810(void) { 9355 int _fpu_cmp = 0; 9356 uint32_t _cf = 0; 9357 int _df = 1; 9358 uint32_t _flag_k = FK_NONE; 9359 uint32_t _flag_a = 0, _flag_b = 0; 9360 uint32_t _itail_tgt = 0; 9361 RECOMP_REGS_LOCALS 9362 RECOMP_ENTER(0x2B028810u); 9363 9364 L_2B028810: 9365 PUSH32(esp, ebp); /* 0x2B028810: push ebp */ 9366 ebp = esp; /* 0x2B028811: mov ebp, esp */ 9367 eax = MEM32(ebp + 0xC); /* 0x2B028813: mov eax, dword ptr [ebp + 0xc] */ 9368 edx = MEM32(ebp + 0x8); /* 0x2B028816: mov edx, dword ptr [ebp + 8] */ 9369 PUSH32(esp, ebx); /* 0x2B028819: push ebx */ 9370 PUSH32(esp, esi); /* 0x2B02881A: push esi */ 9371 esi = ecx; /* 0x2B02881B: mov esi, ecx */ 9372 SET_LO8(ecx, MEM8(eax)); /* 0x2B02881D: mov cl, byte ptr [eax] */ 9373 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x2B02881F: mov byte ptr [esi], cl */ 9374 SET_LO8(eax, MEM8(edx)); /* 0x2B028821: mov al, byte ptr [edx] */ 9375 PUSH32(esp, edi); /* 0x2B028823: push edi */ 9376 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9377 ebx = 0; /* 0x2B028824: xor ebx, ebx */ 9378 _cf = 0; 9379 _flag_k = FK_TEST; 9380 PUSH32(esp, 0x38u); /* 0x2B028826: push 0x38 */ 9381 MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x2B028828: mov byte ptr [esi + 1], al */ 9382 MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x2B02882B: mov byte ptr [esi + 0xc], bl */ 9383 RECOMP_ICALL(0x2B0AB212u); /* 0x2B02882E: call 0x2b0ab212 */ /* not lifted */ 9384 RECOMP_FLAGS_IN(); 9385 MEM32(eax + 0x4) = ebx; /* 0x2B028833: mov dword ptr [eax + 4], ebx */ 9386 MEM8(eax + 0x35) = (uint8_t)(LO8(ebx)); /* 0x2B028836: mov byte ptr [eax + 0x35], bl */ 9387 SET_LO8(ecx, 1); /* 0x2B028839: mov cl, 1 */ 9388 MEM8(eax + 0x34) = (uint8_t)(LO8(ecx)); /* 0x2B02883B: mov byte ptr [eax + 0x34], cl */ 9389 MEM32(esi + 0x8) = eax; /* 0x2B02883E: mov dword ptr [esi + 8], eax */ 9390 MEM8(eax + 0x35) = (uint8_t)(LO8(ecx)); /* 0x2B028841: mov byte ptr [eax + 0x35], cl */ 9391 ecx = MEM32(esi + 0x8); /* 0x2B028844: mov ecx, dword ptr [esi + 8] */ 9392 MEM32(ecx) = ebx; /* 0x2B028847: mov dword ptr [ecx], ebx */ 9393 edx = MEM32(esi + 0x8); /* 0x2B028849: mov edx, dword ptr [esi + 8] */ 9394 MEM32(edx + 0x8) = ebx; /* 0x2B02884C: mov dword ptr [edx + 8], ebx */ 9395 edi = MEM32(esi + 0x8); /* 0x2B02884F: mov edi, dword ptr [esi + 8] */ 9396 PUSH32(esp, 0x38u); /* 0x2B028852: push 0x38 */ 9397 RECOMP_ICALL(0x2B0AB212u); /* 0x2B028854: call 0x2b0ab212 */ /* not lifted */ 9398 RECOMP_FLAGS_IN(); 9399 MEM32(eax + 0x4) = edi; /* 0x2B028859: mov dword ptr [eax + 4], edi */ 9400 MEM8(eax + 0x34) = (uint8_t)(LO8(ebx)); /* 0x2B02885C: mov byte ptr [eax + 0x34], bl */ 9401 MEM8(eax + 0x35) = (uint8_t)(LO8(ebx)); /* 0x2B02885F: mov byte ptr [eax + 0x35], bl */ 9402 MEM32(esi + 0x4) = eax; /* 0x2B028862: mov dword ptr [esi + 4], eax */ 9403 MEM32(eax) = eax; /* 0x2B028865: mov dword ptr [eax], eax */ 9404 eax = MEM32(esi + 0x4); /* 0x2B028867: mov eax, dword ptr [esi + 4] */ 9405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9407 esp = esp + 8; /* 0x2B02886A: add esp, 8 */ 9408 _flag_k = FK_ADD; 9409 MEM32(eax + 0x8) = eax; /* 0x2B02886D: mov dword ptr [eax + 8], eax */ 9410 edi = POP32_VAL(esp); /* 0x2B028870: pop edi */ 9411 MEM32(esi + 0x10) = ebx; /* 0x2B028871: mov dword ptr [esi + 0x10], ebx */ 9412 eax = esi; /* 0x2B028874: mov eax, esi */ 9413 esi = POP32_VAL(esp); /* 0x2B028876: pop esi */ 9414 ebx = POP32_VAL(esp); /* 0x2B028877: pop ebx */ 9415 ebp = POP32_VAL(esp); /* 0x2B028878: pop ebp */ 9416 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B028879: ret 8 */ 9417 RECOMP_REGS_OUT(); 9418 } 9419 9420 void sub_2B028880(void) { 9421 int _fpu_cmp = 0; 9422 uint32_t _cf = 0; 9423 int _df = 1; 9424 uint32_t _flag_k = FK_NONE; 9425 uint32_t _flag_a = 0, _flag_b = 0; 9426 uint32_t _itail_tgt = 0; 9427 RECOMP_REGS_LOCALS 9428 RECOMP_ENTER(0x2B028880u); 9429 9430 L_2B028880: 9431 PUSH32(esp, ebp); /* 0x2B028880: push ebp */ 9432 ebp = esp; /* 0x2B028881: mov ebp, esp */ 9433 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B028883: push -1 */ 9434 PUSH32(esp, 0x2B0ADC58u); /* 0x2B028885: push 0x2b0adc58 */ 9435 eax = MEM32(FS_BASE + (0)); /* 0x2B02888A: mov eax, dword ptr fs:[0] */ 9436 PUSH32(esp, eax); /* 0x2B028890: push eax */ 9437 MEM32(FS_BASE + (0)) = esp; /* 0x2B028891: mov dword ptr fs:[0], esp */ 9438 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 9439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9440 esp = esp - 0x50u; /* 0x2B028898: sub esp, 0x50 */ 9441 _flag_k = FK_CMP; 9442 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B02889B: mov al, byte ptr [ebp + 0xb] */ 9443 PUSH32(esp, ebx); /* 0x2B02889E: push ebx */ 9444 PUSH32(esp, esi); /* 0x2B02889F: push esi */ 9445 PUSH32(esp, edi); /* 0x2B0288A0: push edi */ 9446 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9447 edi = 0; /* 0x2B0288A1: xor edi, edi */ 9448 _cf = 0; 9449 _flag_k = FK_TEST; 9450 ebx = ecx; /* 0x2B0288A3: mov ebx, ecx */ 9451 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x2B0288A5: mov byte ptr [ebp - 0x34], al */ 9452 MEM32(ebp + (-0x30)) = edi; /* 0x2B0288A8: mov dword ptr [ebp - 0x30], edi */ 9453 MEM32(ebp + (-0x2C)) = edi; /* 0x2B0288AB: mov dword ptr [ebp - 0x2c], edi */ 9454 MEM32(ebp + (-0x28)) = edi; /* 0x2B0288AE: mov dword ptr [ebp - 0x28], edi */ 9455 esi = MEM32(ebp + 0x8); /* 0x2B0288B1: mov esi, dword ptr [ebp + 8] */ 9456 SET_LO8(ecx, MEM8(esi)); /* 0x2B0288B4: mov cl, byte ptr [esi] */ 9457 MEM8(ebp + (-0x5C)) = (uint8_t)(LO8(ecx)); /* 0x2B0288B6: mov byte ptr [ebp - 0x5c], cl */ 9458 ecx = esi; /* 0x2B0288B9: mov ecx, esi */ 9459 MEM32(ebp + (-0x4)) = edi; /* 0x2B0288BB: mov dword ptr [ebp - 4], edi */ 9460 RECOMP_ICALL(0x2B01DA00u); /* 0x2B0288BE: call 0x2b01da00 */ /* not lifted */ 9461 RECOMP_FLAGS_IN(); 9462 /* cmp eax, edi */ /* 0x2B0288C3: cmp eax, edi */ 9463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9465 _flag_k = FK_CMP; 9466 if (CMP_GE(_flag_a, _flag_b)) goto L_2B0288C9; /* 0x2B0288C5: jge 0x2b0288c9 */ 9467 L_2B0288C7: 9468 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9469 eax = 0; /* 0x2B0288C7: xor eax, eax */ 9470 _cf = 0; 9471 _flag_k = FK_TEST; 9472 L_2B0288C9: 9473 edx = eax * 4; /* 0x2B0288C9: lea edx, [eax*4] */ 9474 PUSH32(esp, edx); /* 0x2B0288D0: push edx */ 9475 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0288D1: call 0x2b0ab212 */ /* not lifted */ 9476 RECOMP_FLAGS_IN(); 9477 ecx = MEM32(esi + 0x8); /* 0x2B0288D6: mov ecx, dword ptr [esi + 8] */ 9478 esi = MEM32(esi + 0x4); /* 0x2B0288D9: mov esi, dword ptr [esi + 4] */ 9479 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9481 esp = esp + 4; /* 0x2B0288DC: add esp, 4 */ 9482 _flag_k = FK_ADD; 9483 PUSH32(esp, eax); /* 0x2B0288DF: push eax */ 9484 PUSH32(esp, ecx); /* 0x2B0288E0: push ecx */ 9485 PUSH32(esp, esi); /* 0x2B0288E1: push esi */ 9486 ecx = ebp + (-0x5C); /* 0x2B0288E2: lea ecx, [ebp - 0x5c] */ 9487 MEM32(ebp + (-0x58)) = eax; /* 0x2B0288E5: mov dword ptr [ebp - 0x58], eax */ 9488 RECOMP_ICALL(0x2B01DA20u); /* 0x2B0288E8: call 0x2b01da20 */ /* not lifted */ 9489 RECOMP_FLAGS_IN(); 9490 MEM32(ebp + (-0x54)) = eax; /* 0x2B0288ED: mov dword ptr [ebp - 0x54], eax */ 9491 MEM32(ebp + (-0x50)) = eax; /* 0x2B0288F0: mov dword ptr [ebp - 0x50], eax */ 9492 eax = ebp + (-0x34); /* 0x2B0288F3: lea eax, [ebp - 0x34] */ 9493 PUSH32(esp, eax); /* 0x2B0288F6: push eax */ 9494 ecx = ebp + (-0x4C); /* 0x2B0288F7: lea ecx, [ebp - 0x4c] */ 9495 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B0288FA: mov byte ptr [ebp - 4], 1 */ 9496 RECOMP_ICALL(0x2B0280A0u); /* 0x2B0288FE: call 0x2b0280a0 */ /* not lifted */ 9497 RECOMP_FLAGS_IN(); 9498 ecx = ebp + (-0x5C); /* 0x2B028903: lea ecx, [ebp - 0x5c] */ 9499 PUSH32(esp, ecx); /* 0x2B028906: push ecx */ 9500 edx = ebp + (-0x1C); /* 0x2B028907: lea edx, [ebp - 0x1c] */ 9501 PUSH32(esp, edx); /* 0x2B02890A: push edx */ 9502 ecx = ebx; /* 0x2B02890B: mov ecx, ebx */ 9503 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B02890D: mov byte ptr [ebp - 4], 2 */ 9504 RECOMP_ICALL(0x2B029980u); /* 0x2B028911: call 0x2b029980 */ /* not lifted */ 9505 RECOMP_FLAGS_IN(); 9506 ecx = MEM32(eax); /* 0x2B028916: mov ecx, dword ptr [eax] */ 9507 edx = MEM32(eax + 0x4); /* 0x2B028918: mov edx, dword ptr [eax + 4] */ 9508 MEM32(ebp + (-0x14)) = ecx; /* 0x2B02891B: mov dword ptr [ebp - 0x14], ecx */ 9509 ecx = ebp + (-0x4C); /* 0x2B02891E: lea ecx, [ebp - 0x4c] */ 9510 MEM32(ebp + (-0x10)) = edx; /* 0x2B028921: mov dword ptr [ebp - 0x10], edx */ 9511 RECOMP_ICALL(0x2B01D630u); /* 0x2B028924: call 0x2b01d630 */ /* not lifted */ 9512 RECOMP_FLAGS_IN(); 9513 eax = MEM32(ebp + (-0x58)); /* 0x2B028929: mov eax, dword ptr [ebp - 0x58] */ 9514 PUSH32(esp, eax); /* 0x2B02892C: push eax */ 9515 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B02892D: call 0x2b0ab1ba */ /* not lifted */ 9516 RECOMP_FLAGS_IN(); 9517 eax = MEM32(ebp + (-0x2C)); /* 0x2B028932: mov eax, dword ptr [ebp - 0x2c] */ 9518 esi = MEM32(ebp + (-0x30)); /* 0x2B028935: mov esi, dword ptr [ebp - 0x30] */ 9519 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9520 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9521 esp = esp + 4; /* 0x2B028938: add esp, 4 */ 9522 _flag_k = FK_ADD; 9523 /* cmp esi, eax */ /* 0x2B02893B: cmp esi, eax */ 9524 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9526 _flag_k = FK_CMP; 9527 MEM32(ebp + (-0x58)) = edi; /* 0x2B02893D: mov dword ptr [ebp - 0x58], edi */ 9528 MEM32(ebp + (-0x54)) = edi; /* 0x2B028940: mov dword ptr [ebp - 0x54], edi */ 9529 MEM32(ebp + (-0x50)) = edi; /* 0x2B028943: mov dword ptr [ebp - 0x50], edi */ 9530 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B028946: mov dword ptr [ebp - 4], 0xffffffff */ 9531 ebx = eax; /* 0x2B02894D: mov ebx, eax */ 9532 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028963; /* 0x2B02894F: je 0x2b028963 */ 9533 L_2B028951: 9534 PUSH32(esp, edi); /* 0x2B028951: push edi */ 9535 ecx = esi; /* 0x2B028952: mov ecx, esi */ 9536 RECOMP_ICALL(0x2B01E840u); /* 0x2B028954: call 0x2b01e840 */ /* not lifted */ 9537 RECOMP_FLAGS_IN(); 9538 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9540 esi = esi + 0x10u; /* 0x2B028959: add esi, 0x10 */ 9541 _flag_k = FK_ADD; 9542 /* cmp esi, ebx */ /* 0x2B02895C: cmp esi, ebx */ 9543 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9545 _flag_k = FK_CMP; 9546 RECOMP_BACKEDGE(); 9547 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028951; /* 0x2B02895E: jne 0x2b028951 */ 9548 L_2B028960: 9549 esi = MEM32(ebp + (-0x30)); /* 0x2B028960: mov esi, dword ptr [ebp - 0x30] */ 9550 L_2B028963: 9551 PUSH32(esp, esi); /* 0x2B028963: push esi */ 9552 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B028964: call 0x2b0ab1ba */ /* not lifted */ 9553 RECOMP_FLAGS_IN(); 9554 ecx = MEM32(ebp + (-0x14)); /* 0x2B028969: mov ecx, dword ptr [ebp - 0x14] */ 9555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9557 esp = esp + 4; /* 0x2B02896C: add esp, 4 */ 9558 _flag_k = FK_ADD; 9559 edi = POP32_VAL(esp); /* 0x2B02896F: pop edi */ 9560 eax = ecx + 0x1C; /* 0x2B028970: lea eax, [ecx + 0x1c] */ 9561 ecx = MEM32(ebp + (-0xC)); /* 0x2B028973: mov ecx, dword ptr [ebp - 0xc] */ 9562 esi = POP32_VAL(esp); /* 0x2B028976: pop esi */ 9563 ebx = POP32_VAL(esp); /* 0x2B028977: pop ebx */ 9564 MEM32(FS_BASE + (0)) = ecx; /* 0x2B028978: mov dword ptr fs:[0], ecx */ 9565 esp = ebp; /* 0x2B02897F: mov esp, ebp */ 9566 ebp = POP32_VAL(esp); /* 0x2B028981: pop ebp */ 9567 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B028982: ret 4 */ 9568 RECOMP_REGS_OUT(); 9569 } 9570 9571 void sub_2B028990(void) { 9572 int _fpu_cmp = 0; 9573 uint32_t _cf = 0; 9574 int _df = 1; 9575 uint32_t _flag_k = FK_NONE; 9576 uint32_t _flag_a = 0, _flag_b = 0; 9577 uint32_t _itail_tgt = 0; 9578 RECOMP_REGS_LOCALS 9579 RECOMP_ENTER(0x2B028990u); 9580 9581 L_2B028990: 9582 PUSH32(esp, ebp); /* 0x2B028990: push ebp */ 9583 ebp = esp; /* 0x2B028991: mov ebp, esp */ 9584 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B028993: push -1 */ 9585 PUSH32(esp, 0x2B0ADC78u); /* 0x2B028995: push 0x2b0adc78 */ 9586 eax = MEM32(FS_BASE + (0)); /* 0x2B02899A: mov eax, dword ptr fs:[0] */ 9587 PUSH32(esp, eax); /* 0x2B0289A0: push eax */ 9588 MEM32(FS_BASE + (0)) = esp; /* 0x2B0289A1: mov dword ptr fs:[0], esp */ 9589 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9591 esp = esp - 8; /* 0x2B0289A8: sub esp, 8 */ 9592 _flag_k = FK_CMP; 9593 PUSH32(esp, ebx); /* 0x2B0289AB: push ebx */ 9594 PUSH32(esp, esi); /* 0x2B0289AC: push esi */ 9595 PUSH32(esp, edi); /* 0x2B0289AD: push edi */ 9596 edi = ecx; /* 0x2B0289AE: mov edi, ecx */ 9597 MEM32(ebp + (-0x14)) = edi; /* 0x2B0289B0: mov dword ptr [ebp - 0x14], edi */ 9598 eax = MEM32(edi + 0x18); /* 0x2B0289B3: mov eax, dword ptr [edi + 0x18] */ 9599 esi = MEM32(edi + 0x14); /* 0x2B0289B6: mov esi, dword ptr [edi + 0x14] */ 9600 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9601 ebx = 0; /* 0x2B0289B9: xor ebx, ebx */ 9602 _cf = 0; 9603 _flag_k = FK_TEST; 9604 /* cmp esi, eax */ /* 0x2B0289BB: cmp esi, eax */ 9605 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9607 _flag_k = FK_CMP; 9608 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0289BD: mov dword ptr [ebp - 4], ebx */ 9609 MEM32(ebp + (-0x10)) = eax; /* 0x2B0289C0: mov dword ptr [ebp - 0x10], eax */ 9610 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0289F3; /* 0x2B0289C3: je 0x2b0289f3 */ 9611 L_2B0289C5: 9612 eax = MEM32(esi + 0x8); /* 0x2B0289C5: mov eax, dword ptr [esi + 8] */ 9613 ecx = MEM32(esi + 0x4); /* 0x2B0289C8: mov ecx, dword ptr [esi + 4] */ 9614 PUSH32(esp, eax); /* 0x2B0289CB: push eax */ 9615 PUSH32(esp, ecx); /* 0x2B0289CC: push ecx */ 9616 ecx = esi; /* 0x2B0289CD: mov ecx, esi */ 9617 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0289CF: call 0x2b0292c0 */ /* not lifted */ 9618 RECOMP_FLAGS_IN(); 9619 edx = MEM32(esi + 0x4); /* 0x2B0289D4: mov edx, dword ptr [esi + 4] */ 9620 PUSH32(esp, edx); /* 0x2B0289D7: push edx */ 9621 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0289D8: call 0x2b0ab1ba */ /* not lifted */ 9622 RECOMP_FLAGS_IN(); 9623 eax = MEM32(ebp + (-0x10)); /* 0x2B0289DD: mov eax, dword ptr [ebp - 0x10] */ 9624 MEM32(esi + 0x4) = ebx; /* 0x2B0289E0: mov dword ptr [esi + 4], ebx */ 9625 MEM32(esi + 0x8) = ebx; /* 0x2B0289E3: mov dword ptr [esi + 8], ebx */ 9626 MEM32(esi + 0xC) = ebx; /* 0x2B0289E6: mov dword ptr [esi + 0xc], ebx */ 9627 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 9628 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9629 esi = esi + 0x10u; /* 0x2B0289E9: add esi, 0x10 */ 9630 _flag_k = FK_ADD; 9631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9632 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9633 esp = esp + 4; /* 0x2B0289EC: add esp, 4 */ 9634 _flag_k = FK_ADD; 9635 /* cmp esi, eax */ /* 0x2B0289EF: cmp esi, eax */ 9636 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9638 _flag_k = FK_CMP; 9639 RECOMP_BACKEDGE(); 9640 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0289C5; /* 0x2B0289F1: jne 0x2b0289c5 */ 9641 L_2B0289F3: 9642 eax = MEM32(edi + 0x14); /* 0x2B0289F3: mov eax, dword ptr [edi + 0x14] */ 9643 PUSH32(esp, eax); /* 0x2B0289F6: push eax */ 9644 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0289F7: call 0x2b0ab1ba */ /* not lifted */ 9645 RECOMP_FLAGS_IN(); 9646 MEM32(edi + 0x14) = ebx; /* 0x2B0289FC: mov dword ptr [edi + 0x14], ebx */ 9647 MEM32(edi + 0x18) = ebx; /* 0x2B0289FF: mov dword ptr [edi + 0x18], ebx */ 9648 MEM32(edi + 0x1C) = ebx; /* 0x2B028A02: mov dword ptr [edi + 0x1c], ebx */ 9649 eax = MEM32(edi + 0x4); /* 0x2B028A05: mov eax, dword ptr [edi + 4] */ 9650 PUSH32(esp, eax); /* 0x2B028A08: push eax */ 9651 MEM32(ebp + (-0x14)) = eax; /* 0x2B028A09: mov dword ptr [ebp - 0x14], eax */ 9652 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B028A0C: call 0x2b0ab1ba */ /* not lifted */ 9653 RECOMP_FLAGS_IN(); 9654 ecx = MEM32(ebp + (-0xC)); /* 0x2B028A11: mov ecx, dword ptr [ebp - 0xc] */ 9655 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9656 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9657 esp = esp + 8; /* 0x2B028A14: add esp, 8 */ 9658 _flag_k = FK_ADD; 9659 MEM32(edi + 0x4) = ebx; /* 0x2B028A17: mov dword ptr [edi + 4], ebx */ 9660 MEM32(edi + 0x8) = ebx; /* 0x2B028A1A: mov dword ptr [edi + 8], ebx */ 9661 MEM32(edi + 0xC) = ebx; /* 0x2B028A1D: mov dword ptr [edi + 0xc], ebx */ 9662 edi = POP32_VAL(esp); /* 0x2B028A20: pop edi */ 9663 esi = POP32_VAL(esp); /* 0x2B028A21: pop esi */ 9664 ebx = POP32_VAL(esp); /* 0x2B028A22: pop ebx */ 9665 MEM32(FS_BASE + (0)) = ecx; /* 0x2B028A23: mov dword ptr fs:[0], ecx */ 9666 esp = ebp; /* 0x2B028A2A: mov esp, ebp */ 9667 ebp = POP32_VAL(esp); /* 0x2B028A2C: pop ebp */ 9668 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028A2D: ret */ 9669 RECOMP_REGS_OUT(); 9670 } 9671 9672 void sub_2B028A30(void) { 9673 int _fpu_cmp = 0; 9674 uint32_t _cf = 0; 9675 int _df = 1; 9676 uint32_t _flag_k = FK_NONE; 9677 uint32_t _flag_a = 0, _flag_b = 0; 9678 uint32_t _itail_tgt = 0; 9679 RECOMP_REGS_LOCALS 9680 RECOMP_ENTER(0x2B028A30u); 9681 9682 L_2B028A30: 9683 eax = MEM32(ecx + 0x4); /* 0x2B028A30: mov eax, dword ptr [ecx + 4] */ 9684 /* test eax, eax */ /* 0x2B028A33: test eax, eax */ 9685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9686 _cf = 0; 9687 _flag_k = FK_TEST; 9688 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028A38; /* 0x2B028A35: jne 0x2b028a38 */ 9689 L_2B028A37: 9690 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028A37: ret */ 9691 L_2B028A38: 9692 ecx = MEM32(ecx + 0xC); /* 0x2B028A38: mov ecx, dword ptr [ecx + 0xc] */ 9693 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9695 ecx = ecx - eax; /* 0x2B028A3B: sub ecx, eax */ 9696 _flag_k = FK_CMP; 9697 eax = 0x2AAAAAABu; /* 0x2B028A3D: mov eax, 0x2aaaaaab */ 9698 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B028A42: imul ecx */ 9699 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9700 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9701 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B028A44: sar edx, 1 */ 9702 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9703 edx = (uint32_t)((int32_t)edx >> 1u); 9704 eax = edx; /* 0x2B028A46: mov eax, edx */ 9705 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B028A48: shr eax, 0x1f */ 9706 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9707 eax = eax >> 31u; /* 0x2B028A48: shr eax, 0x1f */ 9708 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9709 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9710 edx = edx + eax; /* 0x2B028A4B: add edx, eax */ 9711 _flag_k = FK_ADD; 9712 eax = edx; /* 0x2B028A4D: mov eax, edx */ 9713 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028A4F: ret */ 9714 RECOMP_REGS_OUT(); 9715 } 9716 9717 void sub_2B028A50(void) { 9718 int _fpu_cmp = 0; 9719 uint32_t _cf = 0; 9720 int _df = 1; 9721 uint32_t _flag_k = FK_NONE; 9722 uint32_t _flag_a = 0, _flag_b = 0; 9723 uint32_t _itail_tgt = 0; 9724 RECOMP_REGS_LOCALS 9725 RECOMP_ENTER(0x2B028A50u); 9726 9727 L_2B028A50: 9728 PUSH32(esp, ebp); /* 0x2B028A50: push ebp */ 9729 ebp = esp; /* 0x2B028A51: mov ebp, esp */ 9730 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9732 esp = esp - 0xCu; /* 0x2B028A53: sub esp, 0xc */ 9733 _flag_k = FK_CMP; 9734 PUSH32(esp, ebx); /* 0x2B028A56: push ebx */ 9735 PUSH32(esp, esi); /* 0x2B028A57: push esi */ 9736 esi = ecx; /* 0x2B028A58: mov esi, ecx */ 9737 ebx = MEM32(esi + 0x4); /* 0x2B028A5A: mov ebx, dword ptr [esi + 4] */ 9738 PUSH32(esp, edi); /* 0x2B028A5D: push edi */ 9739 edi = MEM32(ebp + 0x8); /* 0x2B028A5E: mov edi, dword ptr [ebp + 8] */ 9740 ecx = edi; /* 0x2B028A61: mov ecx, edi */ 9741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 9742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9743 ecx = ecx - ebx; /* 0x2B028A63: sub ecx, ebx */ 9744 _flag_k = FK_CMP; 9745 eax = 0x2AAAAAABu; /* 0x2B028A65: mov eax, 0x2aaaaaab */ 9746 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B028A6A: imul ecx */ 9747 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9748 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9749 ecx = MEM32(esi + 0x8); /* 0x2B028A6C: mov ecx, dword ptr [esi + 8] */ 9750 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B028A6F: sar edx, 1 */ 9751 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9752 edx = (uint32_t)((int32_t)edx >> 1u); 9753 eax = edx; /* 0x2B028A71: mov eax, edx */ 9754 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B028A73: shr eax, 0x1f */ 9755 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9756 eax = eax >> 31u; /* 0x2B028A73: shr eax, 0x1f */ 9757 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9759 edx = edx + eax; /* 0x2B028A76: add edx, eax */ 9760 _flag_k = FK_ADD; 9761 MEM32(ebp + (-0xC)) = edx; /* 0x2B028A78: mov dword ptr [ebp - 0xc], edx */ 9762 edx = MEM32(esi + 0xC); /* 0x2B028A7B: mov edx, dword ptr [esi + 0xc] */ 9763 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9765 edx = edx - ecx; /* 0x2B028A7E: sub edx, ecx */ 9766 _flag_k = FK_CMP; 9767 eax = 0x2AAAAAABu; /* 0x2B028A80: mov eax, 0x2aaaaaab */ 9768 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B028A85: imul edx */ 9769 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9770 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9771 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B028A87: sar edx, 1 */ 9772 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9773 edx = (uint32_t)((int32_t)edx >> 1u); 9774 eax = edx; /* 0x2B028A89: mov eax, edx */ 9775 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B028A8B: shr eax, 0x1f */ 9776 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9777 eax = eax >> 31u; /* 0x2B028A8B: shr eax, 0x1f */ 9778 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9779 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9780 edx = edx + eax; /* 0x2B028A8E: add edx, eax */ 9781 _flag_k = FK_ADD; 9782 /* cmp edx, 1 */ /* 0x2B028A90: cmp edx, 1 */ 9783 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9785 _flag_k = FK_CMP; 9786 if (CMP_AE(_flag_a, _flag_b)) goto L_2B028B87; /* 0x2B028A93: jae 0x2b028b87 */ 9787 L_2B028A99: 9788 /* test ebx, ebx */ /* 0x2B028A99: test ebx, ebx */ 9789 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9790 _cf = 0; 9791 _flag_k = FK_TEST; 9792 if (TEST_Z(_flag_a, _flag_b)) goto L_2B028AB9; /* 0x2B028A9B: je 0x2b028ab9 */ 9793 L_2B028A9D: 9794 edx = ecx; /* 0x2B028A9D: mov edx, ecx */ 9795 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 9796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9797 edx = edx - ebx; /* 0x2B028A9F: sub edx, ebx */ 9798 _flag_k = FK_CMP; 9799 eax = 0x2AAAAAABu; /* 0x2B028AA1: mov eax, 0x2aaaaaab */ 9800 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B028AA6: imul edx */ 9801 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9802 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9803 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B028AA8: sar edx, 1 */ 9804 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9805 edx = (uint32_t)((int32_t)edx >> 1u); 9806 eax = edx; /* 0x2B028AAA: mov eax, edx */ 9807 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B028AAC: shr eax, 0x1f */ 9808 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9809 eax = eax >> 31u; /* 0x2B028AAC: shr eax, 0x1f */ 9810 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9812 edx = edx + eax; /* 0x2B028AAF: add edx, eax */ 9813 _flag_k = FK_ADD; 9814 /* cmp edx, 1 */ /* 0x2B028AB1: cmp edx, 1 */ 9815 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9817 _flag_k = FK_CMP; 9818 MEM32(ebp + 0x8) = edx; /* 0x2B028AB4: mov dword ptr [ebp + 8], edx */ 9819 if (CMP_A(_flag_a, _flag_b)) goto L_2B028AC0; /* 0x2B028AB7: ja 0x2b028ac0 */ 9820 L_2B028AB9: 9821 MEM32(ebp + 0x8) = 1; /* 0x2B028AB9: mov dword ptr [ebp + 8], 1 */ 9822 L_2B028AC0: 9823 /* test ebx, ebx */ /* 0x2B028AC0: test ebx, ebx */ 9824 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9825 _cf = 0; 9826 _flag_k = FK_TEST; 9827 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028AC8; /* 0x2B028AC2: jne 0x2b028ac8 */ 9828 L_2B028AC4: 9829 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9830 edx = 0; /* 0x2B028AC4: xor edx, edx */ 9831 _cf = 0; 9832 _flag_k = FK_TEST; 9833 goto L_2B028ADA; /* 0x2B028AC6: jmp 0x2b028ada */ 9834 L_2B028AC8: 9835 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 9836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9837 ecx = ecx - ebx; /* 0x2B028AC8: sub ecx, ebx */ 9838 _flag_k = FK_CMP; 9839 eax = 0x2AAAAAABu; /* 0x2B028ACA: mov eax, 0x2aaaaaab */ 9840 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B028ACF: imul ecx */ 9841 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9842 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9843 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B028AD1: sar edx, 1 */ 9844 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9845 edx = (uint32_t)((int32_t)edx >> 1u); 9846 ecx = edx; /* 0x2B028AD3: mov ecx, edx */ 9847 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B028AD5: shr ecx, 0x1f */ 9848 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9849 ecx = ecx >> 31u; /* 0x2B028AD5: shr ecx, 0x1f */ 9850 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9851 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9852 edx = edx + ecx; /* 0x2B028AD8: add edx, ecx */ 9853 _flag_k = FK_ADD; 9854 L_2B028ADA: 9855 eax = MEM32(ebp + 0x8); /* 0x2B028ADA: mov eax, dword ptr [ebp + 8] */ 9856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9858 eax = eax + edx; /* 0x2B028ADD: add eax, edx */ 9859 _flag_k = FK_ADD; 9860 /* test eax, eax */ /* 0x2B028ADF: test eax, eax */ 9861 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9862 _cf = 0; 9863 _flag_k = FK_TEST; 9864 MEM32(ebp + (-0x4)) = eax; /* 0x2B028AE1: mov dword ptr [ebp - 4], eax */ 9865 if (TEST_NS(_flag_a, _flag_b)) goto L_2B028AE8; /* 0x2B028AE4: jge 0x2b028ae8 */ 9866 L_2B028AE6: 9867 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9868 eax = 0; /* 0x2B028AE6: xor eax, eax */ 9869 _cf = 0; 9870 _flag_k = FK_TEST; 9871 L_2B028AE8: 9872 ecx = eax + eax * 2; /* 0x2B028AE8: lea ecx, [eax + eax*2] */ 9873 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x2B028AEB: shl ecx, 2 */ 9874 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9875 ecx = ecx << 2u; /* 0x2B028AEB: shl ecx, 2 */ 9876 PUSH32(esp, ecx); /* 0x2B028AEE: push ecx */ 9877 RECOMP_ICALL(0x2B0AB212u); /* 0x2B028AEF: call 0x2b0ab212 */ /* not lifted */ 9878 RECOMP_FLAGS_IN(); 9879 ebx = MEM32(esi + 0x4); /* 0x2B028AF4: mov ebx, dword ptr [esi + 4] */ 9880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9882 esp = esp + 4; /* 0x2B028AF7: add esp, 4 */ 9883 _flag_k = FK_ADD; 9884 /* cmp ebx, edi */ /* 0x2B028AFA: cmp ebx, edi */ 9885 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 9886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9887 _flag_k = FK_CMP; 9888 MEM32(ebp + (-0x8)) = eax; /* 0x2B028AFC: mov dword ptr [ebp - 8], eax */ 9889 MEM32(ebp + 0x8) = eax; /* 0x2B028AFF: mov dword ptr [ebp + 8], eax */ 9890 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028B21; /* 0x2B028B02: je 0x2b028b21 */ 9891 L_2B028B04: 9892 edx = MEM32(ebp + 0x8); /* 0x2B028B04: mov edx, dword ptr [ebp + 8] */ 9893 PUSH32(esp, ebx); /* 0x2B028B07: push ebx */ 9894 PUSH32(esp, edx); /* 0x2B028B08: push edx */ 9895 RECOMP_ICALL(0x2B02A850u); /* 0x2B028B09: call 0x2b02a850 */ /* not lifted */ 9896 RECOMP_FLAGS_IN(); 9897 edx = MEM32(ebp + 0x8); /* 0x2B028B0E: mov edx, dword ptr [ebp + 8] */ 9898 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 9899 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9900 edx = edx + 0xCu; /* 0x2B028B11: add edx, 0xc */ 9901 _flag_k = FK_ADD; 9902 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 9903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9904 ebx = ebx + 0xCu; /* 0x2B028B14: add ebx, 0xc */ 9905 _flag_k = FK_ADD; 9906 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9908 esp = esp + 8; /* 0x2B028B17: add esp, 8 */ 9909 _flag_k = FK_ADD; 9910 /* cmp ebx, edi */ /* 0x2B028B1A: cmp ebx, edi */ 9911 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 9912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9913 _flag_k = FK_CMP; 9914 MEM32(ebp + 0x8) = edx; /* 0x2B028B1C: mov dword ptr [ebp + 8], edx */ 9915 RECOMP_BACKEDGE(); 9916 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028B04; /* 0x2B028B1F: jne 0x2b028b04 */ 9917 L_2B028B21: 9918 eax = MEM32(ebp + 0xC); /* 0x2B028B21: mov eax, dword ptr [ebp + 0xc] */ 9919 ecx = MEM32(ebp + 0x8); /* 0x2B028B24: mov ecx, dword ptr [ebp + 8] */ 9920 PUSH32(esp, eax); /* 0x2B028B27: push eax */ 9921 PUSH32(esp, ecx); /* 0x2B028B28: push ecx */ 9922 RECOMP_ICALL(0x2B02A850u); /* 0x2B028B29: call 0x2b02a850 */ /* not lifted */ 9923 RECOMP_FLAGS_IN(); 9924 edx = MEM32(ebp + 0x8); /* 0x2B028B2E: mov edx, dword ptr [ebp + 8] */ 9925 eax = MEM32(esi + 0x8); /* 0x2B028B31: mov eax, dword ptr [esi + 8] */ 9926 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9928 esp = esp + 8; /* 0x2B028B34: add esp, 8 */ 9929 _flag_k = FK_ADD; 9930 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 9931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9932 edx = edx + 0xCu; /* 0x2B028B37: add edx, 0xc */ 9933 _flag_k = FK_ADD; 9934 PUSH32(esp, edx); /* 0x2B028B3A: push edx */ 9935 PUSH32(esp, eax); /* 0x2B028B3B: push eax */ 9936 PUSH32(esp, edi); /* 0x2B028B3C: push edi */ 9937 ecx = esi; /* 0x2B028B3D: mov ecx, esi */ 9938 RECOMP_ICALL(0x2B028C80u); /* 0x2B028B3F: call 0x2b028c80 */ /* not lifted */ 9939 RECOMP_FLAGS_IN(); 9940 ecx = MEM32(esi + 0x8); /* 0x2B028B44: mov ecx, dword ptr [esi + 8] */ 9941 edx = MEM32(esi + 0x4); /* 0x2B028B47: mov edx, dword ptr [esi + 4] */ 9942 PUSH32(esp, ecx); /* 0x2B028B4A: push ecx */ 9943 PUSH32(esp, edx); /* 0x2B028B4B: push edx */ 9944 ecx = esi; /* 0x2B028B4C: mov ecx, esi */ 9945 RECOMP_ICALL(0x2B0292C0u); /* 0x2B028B4E: call 0x2b0292c0 */ /* not lifted */ 9946 RECOMP_FLAGS_IN(); 9947 eax = MEM32(esi + 0x4); /* 0x2B028B53: mov eax, dword ptr [esi + 4] */ 9948 PUSH32(esp, eax); /* 0x2B028B56: push eax */ 9949 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B028B57: call 0x2b0ab1ba */ /* not lifted */ 9950 RECOMP_FLAGS_IN(); 9951 eax = MEM32(ebp + (-0x4)); /* 0x2B028B5C: mov eax, dword ptr [ebp - 4] */ 9952 edi = MEM32(ebp + (-0x8)); /* 0x2B028B5F: mov edi, dword ptr [ebp - 8] */ 9953 ecx = eax + eax * 2; /* 0x2B028B62: lea ecx, [eax + eax*2] */ 9954 edx = edi + ecx * 4; /* 0x2B028B65: lea edx, [edi + ecx*4] */ 9955 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9956 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9957 esp = esp + 4; /* 0x2B028B68: add esp, 4 */ 9958 _flag_k = FK_ADD; 9959 ecx = esi; /* 0x2B028B6B: mov ecx, esi */ 9960 MEM32(esi + 0xC) = edx; /* 0x2B028B6D: mov dword ptr [esi + 0xc], edx */ 9961 RECOMP_ICALL(0x2B028430u); /* 0x2B028B70: call 0x2b028430 */ /* not lifted */ 9962 RECOMP_FLAGS_IN(); 9963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9964 eax = eax + 1; /* 0x2B028B75: inc eax */ 9965 _flag_k = FK_INC; 9966 eax = eax + eax * 2; /* 0x2B028B76: lea eax, [eax + eax*2] */ 9967 ecx = edi + eax * 4; /* 0x2B028B79: lea ecx, [edi + eax*4] */ 9968 MEM32(esi + 0x8) = ecx; /* 0x2B028B7C: mov dword ptr [esi + 8], ecx */ 9969 MEM32(esi + 0x4) = edi; /* 0x2B028B7F: mov dword ptr [esi + 4], edi */ 9970 goto L_2B028C5F; /* 0x2B028B82: jmp 0x2b028c5f */ 9971 L_2B028B87: 9972 edx = ecx; /* 0x2B028B87: mov edx, ecx */ 9973 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9975 edx = edx - edi; /* 0x2B028B89: sub edx, edi */ 9976 _flag_k = FK_CMP; 9977 eax = 0x2AAAAAABu; /* 0x2B028B8B: mov eax, 0x2aaaaaab */ 9978 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B028B90: imul edx */ 9979 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9980 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9981 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B028B92: sar edx, 1 */ 9982 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9983 edx = (uint32_t)((int32_t)edx >> 1u); 9984 eax = edx; /* 0x2B028B94: mov eax, edx */ 9985 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B028B96: shr eax, 0x1f */ 9986 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9987 eax = eax >> 31u; /* 0x2B028B96: shr eax, 0x1f */ 9988 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9990 edx = edx + eax; /* 0x2B028B99: add edx, eax */ 9991 _flag_k = FK_ADD; 9992 /* cmp edx, 1 */ /* 0x2B028B9B: cmp edx, 1 */ 9993 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9995 _flag_k = FK_CMP; 9996 if (CMP_AE(_flag_a, _flag_b)) goto L_2B028BFD; /* 0x2B028B9E: jae 0x2b028bfd */ 9997 L_2B028BA0: 9998 edx = edi + 0xC; /* 0x2B028BA0: lea edx, [edi + 0xc] */ 9999 PUSH32(esp, edx); /* 0x2B028BA3: push edx */ 10000 PUSH32(esp, ecx); /* 0x2B028BA4: push ecx */ 10001 PUSH32(esp, edi); /* 0x2B028BA5: push edi */ 10002 ecx = esi; /* 0x2B028BA6: mov ecx, esi */ 10003 RECOMP_ICALL(0x2B028C80u); /* 0x2B028BA8: call 0x2b028c80 */ /* not lifted */ 10004 RECOMP_FLAGS_IN(); 10005 ebx = MEM32(esi + 0x8); /* 0x2B028BAD: mov ebx, dword ptr [esi + 8] */ 10006 eax = MEM32(ebp + 0xC); /* 0x2B028BB0: mov eax, dword ptr [ebp + 0xc] */ 10007 PUSH32(esp, eax); /* 0x2B028BB3: push eax */ 10008 ecx = ebx; /* 0x2B028BB4: mov ecx, ebx */ 10009 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10011 ecx = ecx - edi; /* 0x2B028BB6: sub ecx, edi */ 10012 _flag_k = FK_CMP; 10013 eax = 0x2AAAAAABu; /* 0x2B028BB8: mov eax, 0x2aaaaaab */ 10014 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B028BBD: imul ecx */ 10015 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 10016 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 10017 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B028BBF: sar edx, 1 */ 10018 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10019 edx = (uint32_t)((int32_t)edx >> 1u); 10020 ecx = edx; /* 0x2B028BC1: mov ecx, edx */ 10021 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B028BC3: shr ecx, 0x1f */ 10022 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10023 ecx = ecx >> 31u; /* 0x2B028BC3: shr ecx, 0x1f */ 10024 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10025 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10026 edx = edx + ecx; /* 0x2B028BC6: add edx, ecx */ 10027 _flag_k = FK_ADD; 10028 eax = 1; /* 0x2B028BC8: mov eax, 1 */ 10029 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10031 eax = eax - edx; /* 0x2B028BCD: sub eax, edx */ 10032 _flag_k = FK_CMP; 10033 PUSH32(esp, eax); /* 0x2B028BCF: push eax */ 10034 PUSH32(esp, ebx); /* 0x2B028BD0: push ebx */ 10035 ecx = esi; /* 0x2B028BD1: mov ecx, esi */ 10036 RECOMP_ICALL(0x2B02A040u); /* 0x2B028BD3: call 0x2b02a040 */ /* not lifted */ 10037 RECOMP_FLAGS_IN(); 10038 eax = MEM32(esi + 0x8); /* 0x2B028BD8: mov eax, dword ptr [esi + 8] */ 10039 /* cmp edi, eax */ /* 0x2B028BDB: cmp edi, eax */ 10040 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10042 _flag_k = FK_CMP; 10043 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028C5B; /* 0x2B028BDD: je 0x2b028c5b */ 10044 L_2B028BDF: 10045 ecx = MEM32(ebp + 0xC); /* 0x2B028BDF: mov ecx, dword ptr [ebp + 0xc] */ 10046 ebx = MEM32(ecx); /* 0x2B028BE2: mov ebx, dword ptr [ecx] */ 10047 edx = edi; /* 0x2B028BE4: mov edx, edi */ 10048 MEM32(edx) = ebx; /* 0x2B028BE6: mov dword ptr [edx], ebx */ 10049 ebx = MEM32(ecx + 0x4); /* 0x2B028BE8: mov ebx, dword ptr [ecx + 4] */ 10050 MEM32(edx + 0x4) = ebx; /* 0x2B028BEB: mov dword ptr [edx + 4], ebx */ 10051 ecx = MEM32(ecx + 0x8); /* 0x2B028BEE: mov ecx, dword ptr [ecx + 8] */ 10052 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 10053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10054 edi = edi + 0xCu; /* 0x2B028BF1: add edi, 0xc */ 10055 _flag_k = FK_ADD; 10056 /* cmp edi, eax */ /* 0x2B028BF4: cmp edi, eax */ 10057 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10059 _flag_k = FK_CMP; 10060 MEM32(edx + 0x8) = ecx; /* 0x2B028BF6: mov dword ptr [edx + 8], ecx */ 10061 RECOMP_BACKEDGE(); 10062 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028BDF; /* 0x2B028BF9: jne 0x2b028bdf */ 10063 L_2B028BFB: 10064 goto L_2B028C5B; /* 0x2B028BFB: jmp 0x2b028c5b */ 10065 L_2B028BFD: 10066 PUSH32(esp, ecx); /* 0x2B028BFD: push ecx */ 10067 PUSH32(esp, ecx); /* 0x2B028BFE: push ecx */ 10068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF4u); 10069 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10070 ecx = ecx + 0xFFFFFFF4u; /* 0x2B028BFF: add ecx, -0xc */ 10071 _flag_k = FK_ADD; 10072 PUSH32(esp, ecx); /* 0x2B028C02: push ecx */ 10073 ecx = esi; /* 0x2B028C03: mov ecx, esi */ 10074 RECOMP_ICALL(0x2B028C80u); /* 0x2B028C05: call 0x2b028c80 */ /* not lifted */ 10075 RECOMP_FLAGS_IN(); 10076 ecx = MEM32(esi + 0x8); /* 0x2B028C0A: mov ecx, dword ptr [esi + 8] */ 10077 eax = ecx + (-0xC); /* 0x2B028C0D: lea eax, [ecx - 0xc] */ 10078 /* cmp edi, eax */ /* 0x2B028C10: cmp edi, eax */ 10079 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10081 _flag_k = FK_CMP; 10082 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028C38; /* 0x2B028C12: je 0x2b028c38 */ 10083 L_2B028C14: 10084 goto L_2B028C19; /* 0x2B028C14: jmp 0x2b028c19 */ 10085 L_2B028C16: 10086 ecx = MEM32(ebp + 0x8); /* 0x2B028C16: mov ecx, dword ptr [ebp + 8] */ 10087 L_2B028C19: 10088 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 10089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10090 eax = eax - 0xCu; /* 0x2B028C19: sub eax, 0xc */ 10091 _flag_k = FK_CMP; 10092 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 10093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10094 ecx = ecx - 0xCu; /* 0x2B028C1C: sub ecx, 0xc */ 10095 _flag_k = FK_CMP; 10096 /* cmp eax, edi */ /* 0x2B028C1F: cmp eax, edi */ 10097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10099 _flag_k = FK_CMP; 10100 edx = eax; /* 0x2B028C21: mov edx, eax */ 10101 ebx = MEM32(edx); /* 0x2B028C23: mov ebx, dword ptr [edx] */ 10102 MEM32(ebp + 0x8) = ecx; /* 0x2B028C25: mov dword ptr [ebp + 8], ecx */ 10103 MEM32(ecx) = ebx; /* 0x2B028C28: mov dword ptr [ecx], ebx */ 10104 ebx = MEM32(edx + 0x4); /* 0x2B028C2A: mov ebx, dword ptr [edx + 4] */ 10105 MEM32(ecx + 0x4) = ebx; /* 0x2B028C2D: mov dword ptr [ecx + 4], ebx */ 10106 edx = MEM32(edx + 0x8); /* 0x2B028C30: mov edx, dword ptr [edx + 8] */ 10107 MEM32(ecx + 0x8) = edx; /* 0x2B028C33: mov dword ptr [ecx + 8], edx */ 10108 RECOMP_BACKEDGE(); 10109 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028C16; /* 0x2B028C36: jne 0x2b028c16 */ 10110 L_2B028C38: 10111 eax = edi + 0xC; /* 0x2B028C38: lea eax, [edi + 0xc] */ 10112 /* cmp edi, eax */ /* 0x2B028C3B: cmp edi, eax */ 10113 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10115 _flag_k = FK_CMP; 10116 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028C5B; /* 0x2B028C3D: je 0x2b028c5b */ 10117 L_2B028C3F: 10118 ecx = MEM32(ebp + 0xC); /* 0x2B028C3F: mov ecx, dword ptr [ebp + 0xc] */ 10119 ebx = MEM32(ecx); /* 0x2B028C42: mov ebx, dword ptr [ecx] */ 10120 edx = edi; /* 0x2B028C44: mov edx, edi */ 10121 MEM32(edx) = ebx; /* 0x2B028C46: mov dword ptr [edx], ebx */ 10122 ebx = MEM32(ecx + 0x4); /* 0x2B028C48: mov ebx, dword ptr [ecx + 4] */ 10123 MEM32(edx + 0x4) = ebx; /* 0x2B028C4B: mov dword ptr [edx + 4], ebx */ 10124 ecx = MEM32(ecx + 0x8); /* 0x2B028C4E: mov ecx, dword ptr [ecx + 8] */ 10125 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 10126 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10127 edi = edi + 0xCu; /* 0x2B028C51: add edi, 0xc */ 10128 _flag_k = FK_ADD; 10129 /* cmp edi, eax */ /* 0x2B028C54: cmp edi, eax */ 10130 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10132 _flag_k = FK_CMP; 10133 MEM32(edx + 0x8) = ecx; /* 0x2B028C56: mov dword ptr [edx + 8], ecx */ 10134 RECOMP_BACKEDGE(); 10135 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028C3F; /* 0x2B028C59: jne 0x2b028c3f */ 10136 L_2B028C5B: 10137 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0xCu); 10138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10139 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0xCu; /* 0x2B028C5B: add dword ptr [esi + 8], 0xc */ 10140 _flag_k = FK_ADD; 10141 L_2B028C5F: 10142 eax = MEM32(ebp + (-0xC)); /* 0x2B028C5F: mov eax, dword ptr [ebp - 0xc] */ 10143 edx = eax + eax * 2; /* 0x2B028C62: lea edx, [eax + eax*2] */ 10144 eax = MEM32(esi + 0x4); /* 0x2B028C65: mov eax, dword ptr [esi + 4] */ 10145 edi = POP32_VAL(esp); /* 0x2B028C68: pop edi */ 10146 esi = POP32_VAL(esp); /* 0x2B028C69: pop esi */ 10147 eax = eax + edx * 4; /* 0x2B028C6A: lea eax, [eax + edx*4] */ 10148 ebx = POP32_VAL(esp); /* 0x2B028C6D: pop ebx */ 10149 esp = ebp; /* 0x2B028C6E: mov esp, ebp */ 10150 ebp = POP32_VAL(esp); /* 0x2B028C70: pop ebp */ 10151 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B028C71: ret 8 */ 10152 RECOMP_REGS_OUT(); 10153 } 10154 10155 void sub_2B028C5F(void) { 10156 int _fpu_cmp = 0; 10157 uint32_t _cf = 0; 10158 int _df = 1; 10159 uint32_t _flag_k = FK_NONE; 10160 uint32_t _flag_a = 0, _flag_b = 0; 10161 uint32_t _itail_tgt = 0; 10162 RECOMP_REGS_LOCALS 10163 RECOMP_ENTER(0x2B028C5Fu); 10164 10165 L_2B028C5F: 10166 eax = MEM32(ebp + (-0xC)); /* 0x2B028C5F: mov eax, dword ptr [ebp - 0xc] */ 10167 edx = eax + eax * 2; /* 0x2B028C62: lea edx, [eax + eax*2] */ 10168 eax = MEM32(esi + 0x4); /* 0x2B028C65: mov eax, dword ptr [esi + 4] */ 10169 edi = POP32_VAL(esp); /* 0x2B028C68: pop edi */ 10170 esi = POP32_VAL(esp); /* 0x2B028C69: pop esi */ 10171 eax = eax + edx * 4; /* 0x2B028C6A: lea eax, [eax + edx*4] */ 10172 ebx = POP32_VAL(esp); /* 0x2B028C6D: pop ebx */ 10173 esp = ebp; /* 0x2B028C6E: mov esp, ebp */ 10174 ebp = POP32_VAL(esp); /* 0x2B028C70: pop ebp */ 10175 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B028C71: ret 8 */ 10176 RECOMP_REGS_OUT(); 10177 } 10178 10179 void sub_2B028C80(void) { 10180 int _fpu_cmp = 0; 10181 uint32_t _cf = 0; 10182 int _df = 1; 10183 uint32_t _flag_k = FK_NONE; 10184 uint32_t _flag_a = 0, _flag_b = 0; 10185 uint32_t _itail_tgt = 0; 10186 RECOMP_REGS_LOCALS 10187 RECOMP_ENTER(0x2B028C80u); 10188 10189 L_2B028C80: 10190 PUSH32(esp, ebp); /* 0x2B028C80: push ebp */ 10191 ebp = esp; /* 0x2B028C81: mov ebp, esp */ 10192 ecx = MEM32(ebp + 0x8); /* 0x2B028C83: mov ecx, dword ptr [ebp + 8] */ 10193 edx = MEM32(ebp + 0xC); /* 0x2B028C86: mov edx, dword ptr [ebp + 0xc] */ 10194 /* cmp ecx, edx */ /* 0x2B028C89: cmp ecx, edx */ 10195 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10197 _flag_k = FK_CMP; 10198 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028CBC; /* 0x2B028C8B: je 0x2b028cbc */ 10199 L_2B028C8D: 10200 eax = MEM32(ebp + 0x10); /* 0x2B028C8D: mov eax, dword ptr [ebp + 0x10] */ 10201 PUSH32(esp, ebx); /* 0x2B028C90: push ebx */ 10202 PUSH32(esp, esi); /* 0x2B028C91: push esi */ 10203 PUSH32(esp, edi); /* 0x2B028C92: push edi */ 10204 L_2B028C93: 10205 /* test eax, eax */ /* 0x2B028C93: test eax, eax */ 10206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10207 _cf = 0; 10208 _flag_k = FK_TEST; 10209 if (TEST_Z(_flag_a, _flag_b)) goto L_2B028CAB; /* 0x2B028C95: je 0x2b028cab */ 10210 L_2B028C97: 10211 esi = ecx; /* 0x2B028C97: mov esi, ecx */ 10212 ebx = MEM32(esi); /* 0x2B028C99: mov ebx, dword ptr [esi] */ 10213 edi = eax; /* 0x2B028C9B: mov edi, eax */ 10214 MEM32(edi) = ebx; /* 0x2B028C9D: mov dword ptr [edi], ebx */ 10215 ebx = MEM32(esi + 0x4); /* 0x2B028C9F: mov ebx, dword ptr [esi + 4] */ 10216 MEM32(edi + 0x4) = ebx; /* 0x2B028CA2: mov dword ptr [edi + 4], ebx */ 10217 esi = MEM32(esi + 0x8); /* 0x2B028CA5: mov esi, dword ptr [esi + 8] */ 10218 MEM32(edi + 0x8) = esi; /* 0x2B028CA8: mov dword ptr [edi + 8], esi */ 10219 L_2B028CAB: 10220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 10221 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10222 ecx = ecx + 0xCu; /* 0x2B028CAB: add ecx, 0xc */ 10223 _flag_k = FK_ADD; 10224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 10225 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10226 eax = eax + 0xCu; /* 0x2B028CAE: add eax, 0xc */ 10227 _flag_k = FK_ADD; 10228 /* cmp ecx, edx */ /* 0x2B028CB1: cmp ecx, edx */ 10229 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10231 _flag_k = FK_CMP; 10232 RECOMP_BACKEDGE(); 10233 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028C93; /* 0x2B028CB3: jne 0x2b028c93 */ 10234 L_2B028CB5: 10235 edi = POP32_VAL(esp); /* 0x2B028CB5: pop edi */ 10236 esi = POP32_VAL(esp); /* 0x2B028CB6: pop esi */ 10237 ebx = POP32_VAL(esp); /* 0x2B028CB7: pop ebx */ 10238 ebp = POP32_VAL(esp); /* 0x2B028CB8: pop ebp */ 10239 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B028CB9: ret 0xc */ 10240 L_2B028CBC: 10241 eax = MEM32(ebp + 0x10); /* 0x2B028CBC: mov eax, dword ptr [ebp + 0x10] */ 10242 ebp = POP32_VAL(esp); /* 0x2B028CBF: pop ebp */ 10243 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B028CC0: ret 0xc */ 10244 RECOMP_REGS_OUT(); 10245 } 10246 10247 void sub_2B028CD0(void) { 10248 int _fpu_cmp = 0; 10249 uint32_t _cf = 0; 10250 int _df = 1; 10251 uint32_t _flag_k = FK_NONE; 10252 uint32_t _flag_a = 0, _flag_b = 0; 10253 uint32_t _itail_tgt = 0; 10254 RECOMP_REGS_LOCALS 10255 RECOMP_ENTER(0x2B028CD0u); 10256 10257 L_2B028CD0: 10258 PUSH32(esp, ebp); /* 0x2B028CD0: push ebp */ 10259 ebp = esp; /* 0x2B028CD1: mov ebp, esp */ 10260 edx = MEM32(ebp + 0xC); /* 0x2B028CD3: mov edx, dword ptr [ebp + 0xc] */ 10261 eax = MEM32(ebp + 0x8); /* 0x2B028CD6: mov eax, dword ptr [ebp + 8] */ 10262 PUSH32(esp, esi); /* 0x2B028CD9: push esi */ 10263 PUSH32(esp, edi); /* 0x2B028CDA: push edi */ 10264 edi = MEM32(ecx + 0x8); /* 0x2B028CDB: mov edi, dword ptr [ecx + 8] */ 10265 /* cmp edx, edi */ /* 0x2B028CDE: cmp edx, edi */ 10266 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10268 _flag_k = FK_CMP; 10269 esi = eax; /* 0x2B028CE0: mov esi, eax */ 10270 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028CFA; /* 0x2B028CE2: je 0x2b028cfa */ 10271 L_2B028CE4: 10272 PUSH32(esp, ebx); /* 0x2B028CE4: push ebx */ 10273 L_2B028CE5: 10274 ebx = MEM32(edx); /* 0x2B028CE5: mov ebx, dword ptr [edx] */ 10275 MEM32(esi) = ebx; /* 0x2B028CE7: mov dword ptr [esi], ebx */ 10276 ebx = MEM32(edx + 0x4); /* 0x2B028CE9: mov ebx, dword ptr [edx + 4] */ 10277 MEM32(esi + 0x4) = ebx; /* 0x2B028CEC: mov dword ptr [esi + 4], ebx */ 10278 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 10279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10280 edx = edx + 8; /* 0x2B028CEF: add edx, 8 */ 10281 _flag_k = FK_ADD; 10282 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 10283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10284 esi = esi + 8; /* 0x2B028CF2: add esi, 8 */ 10285 _flag_k = FK_ADD; 10286 /* cmp edx, edi */ /* 0x2B028CF5: cmp edx, edi */ 10287 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10289 _flag_k = FK_CMP; 10290 RECOMP_BACKEDGE(); 10291 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028CE5; /* 0x2B028CF7: jne 0x2b028ce5 */ 10292 L_2B028CF9: 10293 ebx = POP32_VAL(esp); /* 0x2B028CF9: pop ebx */ 10294 L_2B028CFA: 10295 edx = MEM32(ecx + 0x8); /* 0x2B028CFA: mov edx, dword ptr [ecx + 8] */ 10296 edi = POP32_VAL(esp); /* 0x2B028CFD: pop edi */ 10297 MEM32(ecx + 0x8) = esi; /* 0x2B028CFE: mov dword ptr [ecx + 8], esi */ 10298 MEM32(ebp + 0x8) = edx; /* 0x2B028D01: mov dword ptr [ebp + 8], edx */ 10299 esi = POP32_VAL(esp); /* 0x2B028D04: pop esi */ 10300 ebp = POP32_VAL(esp); /* 0x2B028D05: pop ebp */ 10301 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B028D06: ret 8 */ 10302 RECOMP_REGS_OUT(); 10303 } 10304 10305 void sub_2B028D10(void) { 10306 int _fpu_cmp = 0; 10307 uint32_t _cf = 0; 10308 int _df = 1; 10309 uint32_t _flag_k = FK_NONE; 10310 uint32_t _flag_a = 0, _flag_b = 0; 10311 uint32_t _itail_tgt = 0; 10312 RECOMP_REGS_LOCALS 10313 RECOMP_ENTER(0x2B028D10u); 10314 10315 L_2B028D10: 10316 PUSH32(esp, ebp); /* 0x2B028D10: push ebp */ 10317 ebp = esp; /* 0x2B028D11: mov ebp, esp */ 10318 PUSH32(esp, ebx); /* 0x2B028D13: push ebx */ 10319 ebx = MEM32(ebp + 0x10); /* 0x2B028D14: mov ebx, dword ptr [ebp + 0x10] */ 10320 PUSH32(esp, esi); /* 0x2B028D17: push esi */ 10321 esi = ecx; /* 0x2B028D18: mov esi, ecx */ 10322 eax = MEM32(esi + 0x10); /* 0x2B028D1A: mov eax, dword ptr [esi + 0x10] */ 10323 /* test eax, eax */ /* 0x2B028D1D: test eax, eax */ 10324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10325 _cf = 0; 10326 _flag_k = FK_TEST; 10327 ecx = MEM32(ebp + 0xC); /* 0x2B028D1F: mov ecx, dword ptr [ebp + 0xc] */ 10328 PUSH32(esp, edi); /* 0x2B028D22: push edi */ 10329 if (TEST_Z(_flag_a, _flag_b)) goto L_2B028D8D; /* 0x2B028D23: je 0x2b028d8d */ 10330 L_2B028D25: 10331 eax = MEM32(esi + 0x4); /* 0x2B028D25: mov eax, dword ptr [esi + 4] */ 10332 /* cmp ecx, MEM32(eax) */ /* 0x2B028D28: cmp ecx, dword ptr [eax] */ 10333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 10334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10335 _flag_k = FK_CMP; 10336 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028D8D; /* 0x2B028D2A: jne 0x2b028d8d */ 10337 L_2B028D2C: 10338 /* cmp ebx, eax */ /* 0x2B028D2C: cmp ebx, eax */ 10339 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 10340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10341 _flag_k = FK_CMP; 10342 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028D8D; /* 0x2B028D2E: jne 0x2b028d8d */ 10343 L_2B028D30: 10344 ebx = MEM32(eax + 0x4); /* 0x2B028D30: mov ebx, dword ptr [eax + 4] */ 10345 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x2B028D33: cmp ebx, dword ptr [esi + 8] */ 10346 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10348 _flag_k = FK_CMP; 10349 edi = ebx; /* 0x2B028D36: mov edi, ebx */ 10350 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028D61; /* 0x2B028D38: je 0x2b028d61 */ 10351 L_2B028D3A: 10352 eax = MEM32(edi + 0x8); /* 0x2B028D3A: mov eax, dword ptr [edi + 8] */ 10353 PUSH32(esp, eax); /* 0x2B028D3D: push eax */ 10354 ecx = esi; /* 0x2B028D3E: mov ecx, esi */ 10355 RECOMP_ICALL(0x2B029930u); /* 0x2B028D40: call 0x2b029930 */ /* not lifted */ 10356 RECOMP_FLAGS_IN(); 10357 edi = MEM32(edi); /* 0x2B028D45: mov edi, dword ptr [edi] */ 10358 ecx = ebx + 0xC; /* 0x2B028D47: lea ecx, [ebx + 0xc] */ 10359 RECOMP_ICALL(0x2B012D80u); /* 0x2B028D4A: call 0x2b012d80 */ /* not lifted */ 10360 RECOMP_FLAGS_IN(); 10361 PUSH32(esp, ebx); /* 0x2B028D4F: push ebx */ 10362 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B028D50: call 0x2b0ab1ba */ /* not lifted */ 10363 RECOMP_FLAGS_IN(); 10364 eax = MEM32(esi + 0x8); /* 0x2B028D55: mov eax, dword ptr [esi + 8] */ 10365 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10366 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10367 esp = esp + 4; /* 0x2B028D58: add esp, 4 */ 10368 _flag_k = FK_ADD; 10369 /* cmp edi, eax */ /* 0x2B028D5B: cmp edi, eax */ 10370 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10372 _flag_k = FK_CMP; 10373 ebx = edi; /* 0x2B028D5D: mov ebx, edi */ 10374 RECOMP_BACKEDGE(); 10375 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028D3A; /* 0x2B028D5F: jne 0x2b028d3a */ 10376 L_2B028D61: 10377 ecx = MEM32(esi + 0x4); /* 0x2B028D61: mov ecx, dword ptr [esi + 4] */ 10378 edx = MEM32(esi + 0x8); /* 0x2B028D64: mov edx, dword ptr [esi + 8] */ 10379 MEM32(ecx + 0x4) = edx; /* 0x2B028D67: mov dword ptr [ecx + 4], edx */ 10380 eax = MEM32(esi + 0x4); /* 0x2B028D6A: mov eax, dword ptr [esi + 4] */ 10381 MEM32(esi + 0x10) = 0; /* 0x2B028D6D: mov dword ptr [esi + 0x10], 0 */ 10382 MEM32(eax) = eax; /* 0x2B028D74: mov dword ptr [eax], eax */ 10383 eax = MEM32(esi + 0x4); /* 0x2B028D76: mov eax, dword ptr [esi + 4] */ 10384 MEM32(eax + 0x8) = eax; /* 0x2B028D79: mov dword ptr [eax + 8], eax */ 10385 eax = MEM32(esi + 0x4); /* 0x2B028D7C: mov eax, dword ptr [esi + 4] */ 10386 ecx = MEM32(eax); /* 0x2B028D7F: mov ecx, dword ptr [eax] */ 10387 eax = MEM32(ebp + 0x8); /* 0x2B028D81: mov eax, dword ptr [ebp + 8] */ 10388 edi = POP32_VAL(esp); /* 0x2B028D84: pop edi */ 10389 esi = POP32_VAL(esp); /* 0x2B028D85: pop esi */ 10390 MEM32(eax) = ecx; /* 0x2B028D86: mov dword ptr [eax], ecx */ 10391 ebx = POP32_VAL(esp); /* 0x2B028D88: pop ebx */ 10392 ebp = POP32_VAL(esp); /* 0x2B028D89: pop ebp */ 10393 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B028D8A: ret 0xc */ 10394 L_2B028D8D: 10395 /* cmp ecx, ebx */ /* 0x2B028D8D: cmp ecx, ebx */ 10396 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 10397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10398 _flag_k = FK_CMP; 10399 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028DAE; /* 0x2B028D8F: je 0x2b028dae */ 10400 L_2B028D91: 10401 edi = ecx; /* 0x2B028D91: mov edi, ecx */ 10402 ecx = ebp + 0xC; /* 0x2B028D93: lea ecx, [ebp + 0xc] */ 10403 RECOMP_ICALL(0x2B02A660u); /* 0x2B028D96: call 0x2b02a660 */ /* not lifted */ 10404 RECOMP_FLAGS_IN(); 10405 PUSH32(esp, edi); /* 0x2B028D9B: push edi */ 10406 ecx = ebp + 0x10; /* 0x2B028D9C: lea ecx, [ebp + 0x10] */ 10407 PUSH32(esp, ecx); /* 0x2B028D9F: push ecx */ 10408 ecx = esi; /* 0x2B028DA0: mov ecx, esi */ 10409 RECOMP_ICALL(0x2B029560u); /* 0x2B028DA2: call 0x2b029560 */ /* not lifted */ 10410 RECOMP_FLAGS_IN(); 10411 ecx = MEM32(ebp + 0xC); /* 0x2B028DA7: mov ecx, dword ptr [ebp + 0xc] */ 10412 /* cmp ecx, ebx */ /* 0x2B028DAA: cmp ecx, ebx */ 10413 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 10414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10415 _flag_k = FK_CMP; 10416 RECOMP_BACKEDGE(); 10417 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028D91; /* 0x2B028DAC: jne 0x2b028d91 */ 10418 L_2B028DAE: 10419 eax = MEM32(ebp + 0x8); /* 0x2B028DAE: mov eax, dword ptr [ebp + 8] */ 10420 edi = POP32_VAL(esp); /* 0x2B028DB1: pop edi */ 10421 esi = POP32_VAL(esp); /* 0x2B028DB2: pop esi */ 10422 MEM32(eax) = ecx; /* 0x2B028DB3: mov dword ptr [eax], ecx */ 10423 ebx = POP32_VAL(esp); /* 0x2B028DB5: pop ebx */ 10424 ebp = POP32_VAL(esp); /* 0x2B028DB6: pop ebp */ 10425 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B028DB7: ret 0xc */ 10426 RECOMP_REGS_OUT(); 10427 } 10428 10429 void sub_2B028DC0(void) { 10430 int _fpu_cmp = 0; 10431 uint32_t _cf = 0; 10432 int _df = 1; 10433 uint32_t _flag_k = FK_NONE; 10434 uint32_t _flag_a = 0, _flag_b = 0; 10435 uint32_t _itail_tgt = 0; 10436 RECOMP_REGS_LOCALS 10437 RECOMP_ENTER(0x2B028DC0u); 10438 10439 L_2B028DC0: 10440 PUSH32(esp, ebp); /* 0x2B028DC0: push ebp */ 10441 ebp = esp; /* 0x2B028DC1: mov ebp, esp */ 10442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10444 esp = esp - 8; /* 0x2B028DC3: sub esp, 8 */ 10445 _flag_k = FK_CMP; 10446 PUSH32(esp, ebx); /* 0x2B028DC6: push ebx */ 10447 PUSH32(esp, esi); /* 0x2B028DC7: push esi */ 10448 esi = ecx; /* 0x2B028DC8: mov esi, ecx */ 10449 ecx = MEM32(esi + 0x10); /* 0x2B028DCA: mov ecx, dword ptr [esi + 0x10] */ 10450 /* test ecx, ecx */ /* 0x2B028DCD: test ecx, ecx */ 10451 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10452 _cf = 0; 10453 _flag_k = FK_TEST; 10454 PUSH32(esp, edi); /* 0x2B028DCF: push edi */ 10455 edi = MEM32(esi + 0x4); /* 0x2B028DD0: mov edi, dword ptr [esi + 4] */ 10456 eax = MEM32(edi); /* 0x2B028DD3: mov eax, dword ptr [edi] */ 10457 MEM32(ebp + (-0x4)) = eax; /* 0x2B028DD5: mov dword ptr [ebp - 4], eax */ 10458 if (TEST_Z(_flag_a, _flag_b)) goto L_2B028E37; /* 0x2B028DD8: je 0x2b028e37 */ 10459 L_2B028DDA: 10460 ecx = eax; /* 0x2B028DDA: mov ecx, eax */ 10461 /* cmp eax, ecx */ /* 0x2B028DDC: cmp eax, ecx */ 10462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10464 _flag_k = FK_CMP; 10465 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028E37; /* 0x2B028DDE: jne 0x2b028e37 */ 10466 L_2B028DE0: 10467 /* cmp edi, edi */ /* 0x2B028DE0: cmp edi, edi */ 10468 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10470 _flag_k = FK_CMP; 10471 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028E37; /* 0x2B028DE2: jne 0x2b028e37 */ 10472 L_2B028DE4: 10473 ebx = MEM32(edi + 0x4); /* 0x2B028DE4: mov ebx, dword ptr [edi + 4] */ 10474 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x2B028DE7: cmp ebx, dword ptr [esi + 8] */ 10475 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10477 _flag_k = FK_CMP; 10478 edi = ebx; /* 0x2B028DEA: mov edi, ebx */ 10479 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028E15; /* 0x2B028DEC: je 0x2b028e15 */ 10480 L_2B028DEE: 10481 eax = MEM32(edi + 0x8); /* 0x2B028DEE: mov eax, dword ptr [edi + 8] */ 10482 PUSH32(esp, eax); /* 0x2B028DF1: push eax */ 10483 ecx = esi; /* 0x2B028DF2: mov ecx, esi */ 10484 RECOMP_ICALL(0x2B029930u); /* 0x2B028DF4: call 0x2b029930 */ /* not lifted */ 10485 RECOMP_FLAGS_IN(); 10486 edi = MEM32(edi); /* 0x2B028DF9: mov edi, dword ptr [edi] */ 10487 ecx = ebx + 0xC; /* 0x2B028DFB: lea ecx, [ebx + 0xc] */ 10488 RECOMP_ICALL(0x2B012D80u); /* 0x2B028DFE: call 0x2b012d80 */ /* not lifted */ 10489 RECOMP_FLAGS_IN(); 10490 PUSH32(esp, ebx); /* 0x2B028E03: push ebx */ 10491 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B028E04: call 0x2b0ab1ba */ /* not lifted */ 10492 RECOMP_FLAGS_IN(); 10493 eax = MEM32(esi + 0x8); /* 0x2B028E09: mov eax, dword ptr [esi + 8] */ 10494 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10495 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10496 esp = esp + 4; /* 0x2B028E0C: add esp, 4 */ 10497 _flag_k = FK_ADD; 10498 /* cmp edi, eax */ /* 0x2B028E0F: cmp edi, eax */ 10499 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10501 _flag_k = FK_CMP; 10502 ebx = edi; /* 0x2B028E11: mov ebx, edi */ 10503 RECOMP_BACKEDGE(); 10504 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028DEE; /* 0x2B028E13: jne 0x2b028dee */ 10505 L_2B028E15: 10506 ecx = MEM32(esi + 0x4); /* 0x2B028E15: mov ecx, dword ptr [esi + 4] */ 10507 edx = MEM32(esi + 0x8); /* 0x2B028E18: mov edx, dword ptr [esi + 8] */ 10508 MEM32(ecx + 0x4) = edx; /* 0x2B028E1B: mov dword ptr [ecx + 4], edx */ 10509 eax = MEM32(esi + 0x4); /* 0x2B028E1E: mov eax, dword ptr [esi + 4] */ 10510 MEM32(esi + 0x10) = 0; /* 0x2B028E21: mov dword ptr [esi + 0x10], 0 */ 10511 MEM32(eax) = eax; /* 0x2B028E28: mov dword ptr [eax], eax */ 10512 esi = MEM32(esi + 0x4); /* 0x2B028E2A: mov esi, dword ptr [esi + 4] */ 10513 edi = POP32_VAL(esp); /* 0x2B028E2D: pop edi */ 10514 MEM32(esi + 0x8) = esi; /* 0x2B028E2E: mov dword ptr [esi + 8], esi */ 10515 esi = POP32_VAL(esp); /* 0x2B028E31: pop esi */ 10516 ebx = POP32_VAL(esp); /* 0x2B028E32: pop ebx */ 10517 esp = ebp; /* 0x2B028E33: mov esp, ebp */ 10518 ebp = POP32_VAL(esp); /* 0x2B028E35: pop ebp */ 10519 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028E36: ret */ 10520 L_2B028E37: 10521 /* cmp eax, edi */ /* 0x2B028E37: cmp eax, edi */ 10522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10524 _flag_k = FK_CMP; 10525 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028E58; /* 0x2B028E39: je 0x2b028e58 */ 10526 L_2B028E3B: 10527 ecx = ebp + (-0x4); /* 0x2B028E3B: lea ecx, [ebp - 4] */ 10528 ebx = eax; /* 0x2B028E3E: mov ebx, eax */ 10529 RECOMP_ICALL(0x2B02A660u); /* 0x2B028E40: call 0x2b02a660 */ /* not lifted */ 10530 RECOMP_FLAGS_IN(); 10531 PUSH32(esp, ebx); /* 0x2B028E45: push ebx */ 10532 eax = ebp + (-0x8); /* 0x2B028E46: lea eax, [ebp - 8] */ 10533 PUSH32(esp, eax); /* 0x2B028E49: push eax */ 10534 ecx = esi; /* 0x2B028E4A: mov ecx, esi */ 10535 RECOMP_ICALL(0x2B029560u); /* 0x2B028E4C: call 0x2b029560 */ /* not lifted */ 10536 RECOMP_FLAGS_IN(); 10537 eax = MEM32(ebp + (-0x4)); /* 0x2B028E51: mov eax, dword ptr [ebp - 4] */ 10538 /* cmp eax, edi */ /* 0x2B028E54: cmp eax, edi */ 10539 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10541 _flag_k = FK_CMP; 10542 RECOMP_BACKEDGE(); 10543 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028E3B; /* 0x2B028E56: jne 0x2b028e3b */ 10544 L_2B028E58: 10545 edi = POP32_VAL(esp); /* 0x2B028E58: pop edi */ 10546 esi = POP32_VAL(esp); /* 0x2B028E59: pop esi */ 10547 ebx = POP32_VAL(esp); /* 0x2B028E5A: pop ebx */ 10548 esp = ebp; /* 0x2B028E5B: mov esp, ebp */ 10549 ebp = POP32_VAL(esp); /* 0x2B028E5D: pop ebp */ 10550 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028E5E: ret */ 10551 RECOMP_REGS_OUT(); 10552 } 10553 10554 void sub_2B028E60(void) { 10555 int _fpu_cmp = 0; 10556 uint32_t _cf = 0; 10557 int _df = 1; 10558 uint32_t _flag_k = FK_NONE; 10559 uint32_t _flag_a = 0, _flag_b = 0; 10560 uint32_t _itail_tgt = 0; 10561 RECOMP_REGS_LOCALS 10562 RECOMP_ENTER(0x2B028E60u); 10563 10564 L_2B028E60: 10565 PUSH32(esp, ebp); /* 0x2B028E60: push ebp */ 10566 ebp = esp; /* 0x2B028E61: mov ebp, esp */ 10567 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10569 esp = esp - 0xCu; /* 0x2B028E63: sub esp, 0xc */ 10570 _flag_k = FK_CMP; 10571 PUSH32(esp, ebx); /* 0x2B028E66: push ebx */ 10572 PUSH32(esp, esi); /* 0x2B028E67: push esi */ 10573 ebx = ecx; /* 0x2B028E68: mov ebx, ecx */ 10574 eax = MEM32(ebx + 0x8); /* 0x2B028E6A: mov eax, dword ptr [ebx + 8] */ 10575 PUSH32(esp, edi); /* 0x2B028E6D: push edi */ 10576 edi = MEM32(ebx + 0x4); /* 0x2B028E6E: mov edi, dword ptr [ebx + 4] */ 10577 esi = MEM32(edi + 0x4); /* 0x2B028E71: mov esi, dword ptr [edi + 4] */ 10578 /* cmp esi, eax */ /* 0x2B028E74: cmp esi, eax */ 10579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 10580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10581 _flag_k = FK_CMP; 10582 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028E96; /* 0x2B028E76: je 0x2b028e96 */ 10583 L_2B028E78: 10584 eax = MEM32(ebp + 0xC); /* 0x2B028E78: mov eax, dword ptr [ebp + 0xc] */ 10585 PUSH32(esp, eax); /* 0x2B028E7B: push eax */ 10586 ecx = esi + 0xC; /* 0x2B028E7C: lea ecx, [esi + 0xc] */ 10587 RECOMP_ICALL(0x2B02AB60u); /* 0x2B028E7F: call 0x2b02ab60 */ /* not lifted */ 10588 RECOMP_FLAGS_IN(); 10589 /* test LO8(eax), LO8(eax) */ /* 0x2B028E84: test al, al */ 10590 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10591 _cf = 0; 10592 _flag_k = FK_NARROW(FK_TEST, 24); 10593 if (TEST_Z(_flag_a, _flag_b)) goto L_2B028E8D; /* 0x2B028E86: je 0x2b028e8d */ 10594 L_2B028E88: 10595 esi = MEM32(esi + 0x8); /* 0x2B028E88: mov esi, dword ptr [esi + 8] */ 10596 goto L_2B028E91; /* 0x2B028E8B: jmp 0x2b028e91 */ 10597 L_2B028E8D: 10598 edi = esi; /* 0x2B028E8D: mov edi, esi */ 10599 esi = MEM32(esi); /* 0x2B028E8F: mov esi, dword ptr [esi] */ 10600 L_2B028E91: 10601 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B028E91: cmp esi, dword ptr [ebx + 8] */ 10602 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 10603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10604 _flag_k = FK_CMP; 10605 RECOMP_BACKEDGE(); 10606 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028E78; /* 0x2B028E94: jne 0x2b028e78 */ 10607 L_2B028E96: 10608 ebx = MEM32(ebx + 0x4); /* 0x2B028E96: mov ebx, dword ptr [ebx + 4] */ 10609 /* cmp edi, ebx */ /* 0x2B028E99: cmp edi, ebx */ 10610 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10612 _flag_k = FK_CMP; 10613 MEM32(ebp + (-0x8)) = edi; /* 0x2B028E9B: mov dword ptr [ebp - 8], edi */ 10614 MEM32(ebp + (-0xC)) = ebx; /* 0x2B028E9E: mov dword ptr [ebp - 0xc], ebx */ 10615 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028EF0; /* 0x2B028EA1: je 0x2b028ef0 */ 10616 L_2B028EA3: 10617 eax = MEM32(ebp + 0xC); /* 0x2B028EA3: mov eax, dword ptr [ebp + 0xc] */ 10618 ebx = MEM32(eax + 0x8); /* 0x2B028EA6: mov ebx, dword ptr [eax + 8] */ 10619 ecx = MEM32(edi + 0x14); /* 0x2B028EA9: mov ecx, dword ptr [edi + 0x14] */ 10620 eax = MEM32(eax + 0x4); /* 0x2B028EAC: mov eax, dword ptr [eax + 4] */ 10621 /* cmp eax, ebx */ /* 0x2B028EAF: cmp eax, ebx */ 10622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10624 _flag_k = FK_CMP; 10625 MEM32(ebp + (-0x4)) = ecx; /* 0x2B028EB1: mov dword ptr [ebp - 4], ecx */ 10626 ecx = MEM32(edi + 0x10); /* 0x2B028EB4: mov ecx, dword ptr [edi + 0x10] */ 10627 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028ED8; /* 0x2B028EB7: je 0x2b028ed8 */ 10628 L_2B028EB9: 10629 /* cmp ecx, MEM32(ebp + (-0x4)) */ /* 0x2B028EB9: cmp ecx, dword ptr [ebp - 4] */ 10630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 10631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10632 _flag_k = FK_CMP; 10633 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028ED4; /* 0x2B028EBC: je 0x2b028ed4 */ 10634 L_2B028EBE: 10635 edx = MEM32(eax); /* 0x2B028EBE: mov edx, dword ptr [eax] */ 10636 esi = MEM32(ecx); /* 0x2B028EC0: mov esi, dword ptr [ecx] */ 10637 /* cmp esi, edx */ /* 0x2B028EC2: cmp esi, edx */ 10638 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 10639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10640 _flag_k = FK_CMP; 10641 if (CMP_G(_flag_a, _flag_b)) goto L_2B028EF0; /* 0x2B028EC4: jg 0x2b028ef0 */ 10642 L_2B028EC6: 10643 if (CMP_L(_flag_a, _flag_b)) goto L_2B028EDD; /* 0x2B028EC6: jl 0x2b028edd */ 10644 L_2B028EC8: 10645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 10646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10647 eax = eax + 4; /* 0x2B028EC8: add eax, 4 */ 10648 _flag_k = FK_ADD; 10649 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 10650 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10651 ecx = ecx + 4; /* 0x2B028ECB: add ecx, 4 */ 10652 _flag_k = FK_ADD; 10653 /* cmp eax, ebx */ /* 0x2B028ECE: cmp eax, ebx */ 10654 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10656 _flag_k = FK_CMP; 10657 RECOMP_BACKEDGE(); 10658 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028EB9; /* 0x2B028ED0: jne 0x2b028eb9 */ 10659 L_2B028ED2: 10660 goto L_2B028ED8; /* 0x2B028ED2: jmp 0x2b028ed8 */ 10661 L_2B028ED4: 10662 /* cmp eax, ebx */ /* 0x2B028ED4: cmp eax, ebx */ 10663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10665 _flag_k = FK_CMP; 10666 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028EDD; /* 0x2B028ED6: jne 0x2b028edd */ 10667 L_2B028ED8: 10668 /* cmp ecx, MEM32(ebp + (-0x4)) */ /* 0x2B028ED8: cmp ecx, dword ptr [ebp - 4] */ 10669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 10670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10671 _flag_k = FK_CMP; 10672 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028EF0; /* 0x2B028EDB: jne 0x2b028ef0 */ 10673 L_2B028EDD: 10674 eax = ebp + (-0x8); /* 0x2B028EDD: lea eax, [ebp - 8] */ 10675 ecx = MEM32(eax); /* 0x2B028EE0: mov ecx, dword ptr [eax] */ 10676 eax = MEM32(ebp + 0x8); /* 0x2B028EE2: mov eax, dword ptr [ebp + 8] */ 10677 edi = POP32_VAL(esp); /* 0x2B028EE5: pop edi */ 10678 esi = POP32_VAL(esp); /* 0x2B028EE6: pop esi */ 10679 MEM32(eax) = ecx; /* 0x2B028EE7: mov dword ptr [eax], ecx */ 10680 ebx = POP32_VAL(esp); /* 0x2B028EE9: pop ebx */ 10681 esp = ebp; /* 0x2B028EEA: mov esp, ebp */ 10682 ebp = POP32_VAL(esp); /* 0x2B028EEC: pop ebp */ 10683 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B028EED: ret 8 */ 10684 L_2B028EF0: 10685 edx = MEM32(ebp + (-0xC)); /* 0x2B028EF0: mov edx, dword ptr [ebp - 0xc] */ 10686 eax = ebp + 0xC; /* 0x2B028EF3: lea eax, [ebp + 0xc] */ 10687 edi = POP32_VAL(esp); /* 0x2B028EF6: pop edi */ 10688 MEM32(ebp + 0xC) = edx; /* 0x2B028EF7: mov dword ptr [ebp + 0xc], edx */ 10689 ecx = MEM32(eax); /* 0x2B028EFA: mov ecx, dword ptr [eax] */ 10690 eax = MEM32(ebp + 0x8); /* 0x2B028EFC: mov eax, dword ptr [ebp + 8] */ 10691 esi = POP32_VAL(esp); /* 0x2B028EFF: pop esi */ 10692 MEM32(eax) = ecx; /* 0x2B028F00: mov dword ptr [eax], ecx */ 10693 ebx = POP32_VAL(esp); /* 0x2B028F02: pop ebx */ 10694 esp = ebp; /* 0x2B028F03: mov esp, ebp */ 10695 ebp = POP32_VAL(esp); /* 0x2B028F05: pop ebp */ 10696 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B028F06: ret 8 */ 10697 RECOMP_REGS_OUT(); 10698 } 10699 10700 void sub_2B028F10(void) { 10701 int _fpu_cmp = 0; 10702 uint32_t _cf = 0; 10703 int _df = 1; 10704 uint32_t _flag_k = FK_NONE; 10705 uint32_t _flag_a = 0, _flag_b = 0; 10706 uint32_t _itail_tgt = 0; 10707 RECOMP_REGS_LOCALS 10708 RECOMP_ENTER(0x2B028F10u); 10709 10710 L_2B028F10: 10711 edx = MEM32(ecx + 0x4); /* 0x2B028F10: mov edx, dword ptr [ecx + 4] */ 10712 /* test edx, edx */ /* 0x2B028F13: test edx, edx */ 10713 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10714 _cf = 0; 10715 _flag_k = FK_TEST; 10716 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B028F1A; /* 0x2B028F15: jne 0x2b028f1a */ 10717 L_2B028F17: 10718 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10719 eax = 0; /* 0x2B028F17: xor eax, eax */ 10720 _cf = 0; 10721 _flag_k = FK_TEST; 10722 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028F19: ret */ 10723 L_2B028F1A: 10724 eax = MEM32(ecx + 0xC); /* 0x2B028F1A: mov eax, dword ptr [ecx + 0xc] */ 10725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10727 eax = eax - edx; /* 0x2B028F1D: sub eax, edx */ 10728 _flag_k = FK_CMP; 10729 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2B028F1F: sar eax, 2 */ 10730 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10731 eax = (uint32_t)((int32_t)eax >> 2u); 10732 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B028F22: ret */ 10733 RECOMP_REGS_OUT(); 10734 } 10735 10736 void sub_2B028F30(void) { 10737 int _fpu_cmp = 0; 10738 uint32_t _cf = 0; 10739 int _df = 1; 10740 uint32_t _flag_k = FK_NONE; 10741 uint32_t _flag_a = 0, _flag_b = 0; 10742 uint32_t _itail_tgt = 0; 10743 RECOMP_REGS_LOCALS 10744 RECOMP_ENTER(0x2B028F30u); 10745 10746 L_2B028F30: 10747 PUSH32(esp, ebp); /* 0x2B028F30: push ebp */ 10748 ebp = esp; /* 0x2B028F31: mov ebp, esp */ 10749 eax = MEM32(ebp + 0x8); /* 0x2B028F33: mov eax, dword ptr [ebp + 8] */ 10750 PUSH32(esp, esi); /* 0x2B028F36: push esi */ 10751 esi = MEM32(ecx + 0x8); /* 0x2B028F37: mov esi, dword ptr [ecx + 8] */ 10752 edx = eax + 0x4; /* 0x2B028F3A: lea edx, [eax + 4] */ 10753 /* cmp edx, esi */ /* 0x2B028F3D: cmp edx, esi */ 10754 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 10755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10756 _flag_k = FK_CMP; 10757 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028F55; /* 0x2B028F3F: je 0x2b028f55 */ 10758 L_2B028F41: 10759 PUSH32(esp, ebx); /* 0x2B028F41: push ebx */ 10760 PUSH32(esp, edi); /* 0x2B028F42: push edi */ 10761 edi = eax; /* 0x2B028F43: mov edi, eax */ 10762 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 10763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10764 edi = edi - edx; /* 0x2B028F45: sub edi, edx */ 10765 _flag_k = FK_CMP; 10766 L_2B028F47: 10767 ebx = MEM32(edx); /* 0x2B028F47: mov ebx, dword ptr [edx] */ 10768 MEM32(edi + edx) = ebx; /* 0x2B028F49: mov dword ptr [edi + edx], ebx */ 10769 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 10770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10771 edx = edx + 4; /* 0x2B028F4C: add edx, 4 */ 10772 _flag_k = FK_ADD; 10773 /* cmp edx, esi */ /* 0x2B028F4F: cmp edx, esi */ 10774 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 10775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10776 _flag_k = FK_CMP; 10777 RECOMP_BACKEDGE(); 10778 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028F47; /* 0x2B028F51: jne 0x2b028f47 */ 10779 L_2B028F53: 10780 edi = POP32_VAL(esp); /* 0x2B028F53: pop edi */ 10781 ebx = POP32_VAL(esp); /* 0x2B028F54: pop ebx */ 10782 L_2B028F55: 10783 edx = MEM32(ecx + 0x8); /* 0x2B028F55: mov edx, dword ptr [ecx + 8] */ 10784 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 10785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10786 edx = edx + 0xFFFFFFFCu; /* 0x2B028F58: add edx, -4 */ 10787 _flag_k = FK_ADD; 10788 MEM32(ebp + 0x8) = edx; /* 0x2B028F5B: mov dword ptr [ebp + 8], edx */ 10789 MEM32(ecx + 0x8) = edx; /* 0x2B028F5E: mov dword ptr [ecx + 8], edx */ 10790 esi = POP32_VAL(esp); /* 0x2B028F61: pop esi */ 10791 ebp = POP32_VAL(esp); /* 0x2B028F62: pop ebp */ 10792 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B028F63: ret 4 */ 10793 RECOMP_REGS_OUT(); 10794 } 10795 10796 void sub_2B028F70(void) { 10797 int _fpu_cmp = 0; 10798 uint32_t _cf = 0; 10799 int _df = 1; 10800 uint32_t _flag_k = FK_NONE; 10801 uint32_t _flag_a = 0, _flag_b = 0; 10802 uint32_t _itail_tgt = 0; 10803 RECOMP_REGS_LOCALS 10804 RECOMP_ENTER(0x2B028F70u); 10805 10806 L_2B028F70: 10807 PUSH32(esp, ebp); /* 0x2B028F70: push ebp */ 10808 ebp = esp; /* 0x2B028F71: mov ebp, esp */ 10809 edx = MEM32(ebp + 0xC); /* 0x2B028F73: mov edx, dword ptr [ebp + 0xc] */ 10810 eax = MEM32(ebp + 0x8); /* 0x2B028F76: mov eax, dword ptr [ebp + 8] */ 10811 PUSH32(esp, esi); /* 0x2B028F79: push esi */ 10812 PUSH32(esp, edi); /* 0x2B028F7A: push edi */ 10813 edi = MEM32(ecx + 0x8); /* 0x2B028F7B: mov edi, dword ptr [ecx + 8] */ 10814 /* cmp edx, edi */ /* 0x2B028F7E: cmp edx, edi */ 10815 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10817 _flag_k = FK_CMP; 10818 esi = eax; /* 0x2B028F80: mov esi, eax */ 10819 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028F94; /* 0x2B028F82: je 0x2b028f94 */ 10820 L_2B028F84: 10821 PUSH32(esp, ebx); /* 0x2B028F84: push ebx */ 10822 L_2B028F85: 10823 ebx = MEM32(edx); /* 0x2B028F85: mov ebx, dword ptr [edx] */ 10824 MEM32(esi) = ebx; /* 0x2B028F87: mov dword ptr [esi], ebx */ 10825 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 10826 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10827 edx = edx + 4; /* 0x2B028F89: add edx, 4 */ 10828 _flag_k = FK_ADD; 10829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 10830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10831 esi = esi + 4; /* 0x2B028F8C: add esi, 4 */ 10832 _flag_k = FK_ADD; 10833 /* cmp edx, edi */ /* 0x2B028F8F: cmp edx, edi */ 10834 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10836 _flag_k = FK_CMP; 10837 RECOMP_BACKEDGE(); 10838 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028F85; /* 0x2B028F91: jne 0x2b028f85 */ 10839 L_2B028F93: 10840 ebx = POP32_VAL(esp); /* 0x2B028F93: pop ebx */ 10841 L_2B028F94: 10842 edx = MEM32(ecx + 0x8); /* 0x2B028F94: mov edx, dword ptr [ecx + 8] */ 10843 edi = POP32_VAL(esp); /* 0x2B028F97: pop edi */ 10844 MEM32(ecx + 0x8) = esi; /* 0x2B028F98: mov dword ptr [ecx + 8], esi */ 10845 MEM32(ebp + 0x8) = edx; /* 0x2B028F9B: mov dword ptr [ebp + 8], edx */ 10846 esi = POP32_VAL(esp); /* 0x2B028F9E: pop esi */ 10847 ebp = POP32_VAL(esp); /* 0x2B028F9F: pop ebp */ 10848 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B028FA0: ret 8 */ 10849 RECOMP_REGS_OUT(); 10850 } 10851 10852 void sub_2B028FB0(void) { 10853 int _fpu_cmp = 0; 10854 uint32_t _cf = 0; 10855 int _df = 1; 10856 uint32_t _flag_k = FK_NONE; 10857 uint32_t _flag_a = 0, _flag_b = 0; 10858 uint32_t _itail_tgt = 0; 10859 RECOMP_REGS_LOCALS 10860 RECOMP_ENTER(0x2B028FB0u); 10861 10862 L_2B028FB0: 10863 PUSH32(esp, ebp); /* 0x2B028FB0: push ebp */ 10864 ebp = esp; /* 0x2B028FB1: mov ebp, esp */ 10865 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10867 esp = esp - 0x10u; /* 0x2B028FB3: sub esp, 0x10 */ 10868 _flag_k = FK_CMP; 10869 PUSH32(esp, ebx); /* 0x2B028FB6: push ebx */ 10870 PUSH32(esp, esi); /* 0x2B028FB7: push esi */ 10871 PUSH32(esp, edi); /* 0x2B028FB8: push edi */ 10872 edi = ecx; /* 0x2B028FB9: mov edi, ecx */ 10873 ebx = MEM32(edi + 0x4); /* 0x2B028FBB: mov ebx, dword ptr [edi + 4] */ 10874 esi = MEM32(ebx + 0x4); /* 0x2B028FBE: mov esi, dword ptr [ebx + 4] */ 10875 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B028FC1: cmp esi, dword ptr [edi + 8] */ 10876 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10878 _flag_k = FK_CMP; 10879 SET_LO8(eax, 1); /* 0x2B028FC4: mov al, 1 */ 10880 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B028FE6; /* 0x2B028FC6: je 0x2b028fe6 */ 10881 L_2B028FC8: 10882 ecx = MEM32(ebp + 0xC); /* 0x2B028FC8: mov ecx, dword ptr [ebp + 0xc] */ 10883 eax = esi + 0xC; /* 0x2B028FCB: lea eax, [esi + 0xc] */ 10884 PUSH32(esp, eax); /* 0x2B028FCE: push eax */ 10885 ebx = esi; /* 0x2B028FCF: mov ebx, esi */ 10886 RECOMP_ICALL(0x2B02AB60u); /* 0x2B028FD1: call 0x2b02ab60 */ /* not lifted */ 10887 RECOMP_FLAGS_IN(); 10888 /* test LO8(eax), LO8(eax) */ /* 0x2B028FD6: test al, al */ 10889 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10890 _cf = 0; 10891 _flag_k = FK_NARROW(FK_TEST, 24); 10892 if (TEST_Z(_flag_a, _flag_b)) goto L_2B028FDE; /* 0x2B028FD8: je 0x2b028fde */ 10893 L_2B028FDA: 10894 esi = MEM32(esi); /* 0x2B028FDA: mov esi, dword ptr [esi] */ 10895 goto L_2B028FE1; /* 0x2B028FDC: jmp 0x2b028fe1 */ 10896 L_2B028FDE: 10897 esi = MEM32(esi + 0x8); /* 0x2B028FDE: mov esi, dword ptr [esi + 8] */ 10898 L_2B028FE1: 10899 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B028FE1: cmp esi, dword ptr [edi + 8] */ 10900 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10902 _flag_k = FK_CMP; 10903 RECOMP_BACKEDGE(); 10904 if (CMP_NE(_flag_a, _flag_b)) goto L_2B028FC8; /* 0x2B028FE4: jne 0x2b028fc8 */ 10905 L_2B028FE6: 10906 SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x2B028FE6: mov cl, byte ptr [edi + 0xc] */ 10907 /* test LO8(ecx), LO8(ecx) */ /* 0x2B028FE9: test cl, cl */ 10908 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 10909 _cf = 0; 10910 _flag_k = FK_NARROW(FK_TEST, 24); 10911 if (TEST_Z(_flag_a, _flag_b)) goto L_2B02900B; /* 0x2B028FEB: je 0x2b02900b */ 10912 L_2B028FED: 10913 ecx = MEM32(ebp + 0xC); /* 0x2B028FED: mov ecx, dword ptr [ebp + 0xc] */ 10914 PUSH32(esp, ecx); /* 0x2B028FF0: push ecx */ 10915 PUSH32(esp, ebx); /* 0x2B028FF1: push ebx */ 10916 PUSH32(esp, esi); /* 0x2B028FF2: push esi */ 10917 edx = ebp + (-0x8); /* 0x2B028FF3: lea edx, [ebp - 8] */ 10918 PUSH32(esp, edx); /* 0x2B028FF6: push edx */ 10919 ecx = edi; /* 0x2B028FF7: mov ecx, edi */ 10920 RECOMP_ICALL(0x2B02A2C0u); /* 0x2B028FF9: call 0x2b02a2c0 */ /* not lifted */ 10921 RECOMP_FLAGS_IN(); 10922 eax = MEM32(eax); /* 0x2B028FFE: mov eax, dword ptr [eax] */ 10923 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x2B029000: mov byte ptr [ebp - 0xc], 1 */ 10924 ecx = eax; /* 0x2B029004: mov ecx, eax */ 10925 eax = MEM32(ebp + (-0xC)); /* 0x2B029006: mov eax, dword ptr [ebp - 0xc] */ 10926 goto L_2B02907A; /* 0x2B029009: jmp 0x2b02907a */ 10927 L_2B02900B: 10928 /* test LO8(eax), LO8(eax) */ /* 0x2B02900B: test al, al */ 10929 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10930 _cf = 0; 10931 _flag_k = FK_NARROW(FK_TEST, 24); 10932 MEM32(ebp + (-0x4)) = ebx; /* 0x2B02900D: mov dword ptr [ebp - 4], ebx */ 10933 if (TEST_Z(_flag_a, _flag_b)) goto L_2B02903F; /* 0x2B029010: je 0x2b02903f */ 10934 L_2B029012: 10935 eax = MEM32(edi + 0x4); /* 0x2B029012: mov eax, dword ptr [edi + 4] */ 10936 /* cmp ebx, MEM32(eax) */ /* 0x2B029015: cmp ebx, dword ptr [eax] */ 10937 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 10938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10939 _flag_k = FK_CMP; 10940 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029037; /* 0x2B029017: jne 0x2b029037 */ 10941 L_2B029019: 10942 ecx = MEM32(ebp + 0xC); /* 0x2B029019: mov ecx, dword ptr [ebp + 0xc] */ 10943 PUSH32(esp, ecx); /* 0x2B02901C: push ecx */ 10944 PUSH32(esp, ebx); /* 0x2B02901D: push ebx */ 10945 PUSH32(esp, esi); /* 0x2B02901E: push esi */ 10946 edx = ebp + (-0xC); /* 0x2B02901F: lea edx, [ebp - 0xc] */ 10947 PUSH32(esp, edx); /* 0x2B029022: push edx */ 10948 ecx = edi; /* 0x2B029023: mov ecx, edi */ 10949 RECOMP_ICALL(0x2B02A2C0u); /* 0x2B029025: call 0x2b02a2c0 */ /* not lifted */ 10950 RECOMP_FLAGS_IN(); 10951 eax = MEM32(eax); /* 0x2B02902A: mov eax, dword ptr [eax] */ 10952 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x2B02902C: mov byte ptr [ebp - 0xc], 1 */ 10953 ecx = eax; /* 0x2B029030: mov ecx, eax */ 10954 eax = MEM32(ebp + (-0xC)); /* 0x2B029032: mov eax, dword ptr [ebp - 0xc] */ 10955 goto L_2B02907A; /* 0x2B029035: jmp 0x2b02907a */ 10956 L_2B029037: 10957 ecx = ebp + (-0x4); /* 0x2B029037: lea ecx, [ebp - 4] */ 10958 RECOMP_ICALL(0x2B02A730u); /* 0x2B02903A: call 0x2b02a730 */ /* not lifted */ 10959 RECOMP_FLAGS_IN(); 10960 L_2B02903F: 10961 eax = MEM32(ebp + (-0x4)); /* 0x2B02903F: mov eax, dword ptr [ebp - 4] */ 10962 edx = MEM32(ebp + 0xC); /* 0x2B029042: mov edx, dword ptr [ebp + 0xc] */ 10963 ecx = eax + 0xC; /* 0x2B029045: lea ecx, [eax + 0xc] */ 10964 PUSH32(esp, edx); /* 0x2B029048: push edx */ 10965 RECOMP_ICALL(0x2B02AB60u); /* 0x2B029049: call 0x2b02ab60 */ /* not lifted */ 10966 RECOMP_FLAGS_IN(); 10967 /* test LO8(eax), LO8(eax) */ /* 0x2B02904E: test al, al */ 10968 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10969 _cf = 0; 10970 _flag_k = FK_NARROW(FK_TEST, 24); 10971 if (TEST_Z(_flag_a, _flag_b)) goto L_2B029070; /* 0x2B029050: je 0x2b029070 */ 10972 L_2B029052: 10973 eax = MEM32(ebp + 0xC); /* 0x2B029052: mov eax, dword ptr [ebp + 0xc] */ 10974 PUSH32(esp, eax); /* 0x2B029055: push eax */ 10975 PUSH32(esp, ebx); /* 0x2B029056: push ebx */ 10976 PUSH32(esp, esi); /* 0x2B029057: push esi */ 10977 ecx = ebp + 0xC; /* 0x2B029058: lea ecx, [ebp + 0xc] */ 10978 PUSH32(esp, ecx); /* 0x2B02905B: push ecx */ 10979 ecx = edi; /* 0x2B02905C: mov ecx, edi */ 10980 RECOMP_ICALL(0x2B02A2C0u); /* 0x2B02905E: call 0x2b02a2c0 */ /* not lifted */ 10981 RECOMP_FLAGS_IN(); 10982 eax = MEM32(eax); /* 0x2B029063: mov eax, dword ptr [eax] */ 10983 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x2B029065: mov byte ptr [ebp - 0xc], 1 */ 10984 ecx = eax; /* 0x2B029069: mov ecx, eax */ 10985 eax = MEM32(ebp + (-0xC)); /* 0x2B02906B: mov eax, dword ptr [ebp - 0xc] */ 10986 goto L_2B02907A; /* 0x2B02906E: jmp 0x2b02907a */ 10987 L_2B029070: 10988 ecx = MEM32(ebp + (-0x4)); /* 0x2B029070: mov ecx, dword ptr [ebp - 4] */ 10989 MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x2B029073: mov byte ptr [ebp - 0xc], 0 */ 10990 eax = MEM32(ebp + (-0xC)); /* 0x2B029077: mov eax, dword ptr [ebp - 0xc] */ 10991 L_2B02907A: 10992 MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x2B02907A: mov byte ptr [ebp - 0xc], al */ 10993 eax = MEM32(ebp + 0x8); /* 0x2B02907D: mov eax, dword ptr [ebp + 8] */ 10994 edx = MEM32(ebp + (-0xC)); /* 0x2B029080: mov edx, dword ptr [ebp - 0xc] */ 10995 edi = POP32_VAL(esp); /* 0x2B029083: pop edi */ 10996 esi = POP32_VAL(esp); /* 0x2B029084: pop esi */ 10997 MEM32(eax) = ecx; /* 0x2B029085: mov dword ptr [eax], ecx */ 10998 MEM32(eax + 0x4) = edx; /* 0x2B029087: mov dword ptr [eax + 4], edx */ 10999 ebx = POP32_VAL(esp); /* 0x2B02908A: pop ebx */ 11000 esp = ebp; /* 0x2B02908B: mov esp, ebp */ 11001 ebp = POP32_VAL(esp); /* 0x2B02908D: pop ebp */ 11002 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02908E: ret 8 */ 11003 RECOMP_REGS_OUT(); 11004 } 11005 11006 void sub_2B0290A0(void) { 11007 int _fpu_cmp = 0; 11008 uint32_t _cf = 0; 11009 int _df = 1; 11010 uint32_t _flag_k = FK_NONE; 11011 uint32_t _flag_a = 0, _flag_b = 0; 11012 uint32_t _itail_tgt = 0; 11013 RECOMP_REGS_LOCALS 11014 RECOMP_ENTER(0x2B0290A0u); 11015 11016 L_2B0290A0: 11017 PUSH32(esp, ebp); /* 0x2B0290A0: push ebp */ 11018 ebp = esp; /* 0x2B0290A1: mov ebp, esp */ 11019 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11021 esp = esp - 8; /* 0x2B0290A3: sub esp, 8 */ 11022 _flag_k = FK_CMP; 11023 PUSH32(esp, ebx); /* 0x2B0290A6: push ebx */ 11024 PUSH32(esp, esi); /* 0x2B0290A7: push esi */ 11025 esi = ecx; /* 0x2B0290A8: mov esi, ecx */ 11026 ecx = MEM32(esi + 0x10); /* 0x2B0290AA: mov ecx, dword ptr [esi + 0x10] */ 11027 /* test ecx, ecx */ /* 0x2B0290AD: test ecx, ecx */ 11028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11029 _cf = 0; 11030 _flag_k = FK_TEST; 11031 PUSH32(esp, edi); /* 0x2B0290AF: push edi */ 11032 edi = MEM32(esi + 0x4); /* 0x2B0290B0: mov edi, dword ptr [esi + 4] */ 11033 eax = MEM32(edi); /* 0x2B0290B3: mov eax, dword ptr [edi] */ 11034 MEM32(ebp + (-0x4)) = eax; /* 0x2B0290B5: mov dword ptr [ebp - 4], eax */ 11035 if (TEST_Z(_flag_a, _flag_b)) goto L_2B029117; /* 0x2B0290B8: je 0x2b029117 */ 11036 L_2B0290BA: 11037 ecx = eax; /* 0x2B0290BA: mov ecx, eax */ 11038 /* cmp eax, ecx */ /* 0x2B0290BC: cmp eax, ecx */ 11039 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11041 _flag_k = FK_CMP; 11042 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029117; /* 0x2B0290BE: jne 0x2b029117 */ 11043 L_2B0290C0: 11044 /* cmp edi, edi */ /* 0x2B0290C0: cmp edi, edi */ 11045 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11047 _flag_k = FK_CMP; 11048 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029117; /* 0x2B0290C2: jne 0x2b029117 */ 11049 L_2B0290C4: 11050 ebx = MEM32(edi + 0x4); /* 0x2B0290C4: mov ebx, dword ptr [edi + 4] */ 11051 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x2B0290C7: cmp ebx, dword ptr [esi + 8] */ 11052 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11054 _flag_k = FK_CMP; 11055 edi = ebx; /* 0x2B0290CA: mov edi, ebx */ 11056 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0290F5; /* 0x2B0290CC: je 0x2b0290f5 */ 11057 L_2B0290CE: 11058 eax = MEM32(edi + 0x8); /* 0x2B0290CE: mov eax, dword ptr [edi + 8] */ 11059 PUSH32(esp, eax); /* 0x2B0290D1: push eax */ 11060 ecx = esi; /* 0x2B0290D2: mov ecx, esi */ 11061 RECOMP_ICALL(0x2B029FD0u); /* 0x2B0290D4: call 0x2b029fd0 */ /* not lifted */ 11062 RECOMP_FLAGS_IN(); 11063 edi = MEM32(edi); /* 0x2B0290D9: mov edi, dword ptr [edi] */ 11064 ecx = ebx + 0xC; /* 0x2B0290DB: lea ecx, [ebx + 0xc] */ 11065 RECOMP_ICALL(0x2B028990u); /* 0x2B0290DE: call 0x2b028990 */ /* not lifted */ 11066 RECOMP_FLAGS_IN(); 11067 PUSH32(esp, ebx); /* 0x2B0290E3: push ebx */ 11068 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0290E4: call 0x2b0ab1ba */ /* not lifted */ 11069 RECOMP_FLAGS_IN(); 11070 eax = MEM32(esi + 0x8); /* 0x2B0290E9: mov eax, dword ptr [esi + 8] */ 11071 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11073 esp = esp + 4; /* 0x2B0290EC: add esp, 4 */ 11074 _flag_k = FK_ADD; 11075 /* cmp edi, eax */ /* 0x2B0290EF: cmp edi, eax */ 11076 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11078 _flag_k = FK_CMP; 11079 ebx = edi; /* 0x2B0290F1: mov ebx, edi */ 11080 RECOMP_BACKEDGE(); 11081 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0290CE; /* 0x2B0290F3: jne 0x2b0290ce */ 11082 L_2B0290F5: 11083 ecx = MEM32(esi + 0x4); /* 0x2B0290F5: mov ecx, dword ptr [esi + 4] */ 11084 edx = MEM32(esi + 0x8); /* 0x2B0290F8: mov edx, dword ptr [esi + 8] */ 11085 MEM32(ecx + 0x4) = edx; /* 0x2B0290FB: mov dword ptr [ecx + 4], edx */ 11086 eax = MEM32(esi + 0x4); /* 0x2B0290FE: mov eax, dword ptr [esi + 4] */ 11087 MEM32(esi + 0x10) = 0; /* 0x2B029101: mov dword ptr [esi + 0x10], 0 */ 11088 MEM32(eax) = eax; /* 0x2B029108: mov dword ptr [eax], eax */ 11089 esi = MEM32(esi + 0x4); /* 0x2B02910A: mov esi, dword ptr [esi + 4] */ 11090 edi = POP32_VAL(esp); /* 0x2B02910D: pop edi */ 11091 MEM32(esi + 0x8) = esi; /* 0x2B02910E: mov dword ptr [esi + 8], esi */ 11092 esi = POP32_VAL(esp); /* 0x2B029111: pop esi */ 11093 ebx = POP32_VAL(esp); /* 0x2B029112: pop ebx */ 11094 esp = ebp; /* 0x2B029113: mov esp, ebp */ 11095 ebp = POP32_VAL(esp); /* 0x2B029115: pop ebp */ 11096 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B029116: ret */ 11097 L_2B029117: 11098 /* cmp eax, edi */ /* 0x2B029117: cmp eax, edi */ 11099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11101 _flag_k = FK_CMP; 11102 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029138; /* 0x2B029119: je 0x2b029138 */ 11103 L_2B02911B: 11104 ecx = ebp + (-0x4); /* 0x2B02911B: lea ecx, [ebp - 4] */ 11105 ebx = eax; /* 0x2B02911E: mov ebx, eax */ 11106 RECOMP_ICALL(0x2B02A790u); /* 0x2B029120: call 0x2b02a790 */ /* not lifted */ 11107 RECOMP_FLAGS_IN(); 11108 PUSH32(esp, ebx); /* 0x2B029125: push ebx */ 11109 eax = ebp + (-0x8); /* 0x2B029126: lea eax, [ebp - 8] */ 11110 PUSH32(esp, eax); /* 0x2B029129: push eax */ 11111 ecx = esi; /* 0x2B02912A: mov ecx, esi */ 11112 RECOMP_ICALL(0x2B029C00u); /* 0x2B02912C: call 0x2b029c00 */ /* not lifted */ 11113 RECOMP_FLAGS_IN(); 11114 eax = MEM32(ebp + (-0x4)); /* 0x2B029131: mov eax, dword ptr [ebp - 4] */ 11115 /* cmp eax, edi */ /* 0x2B029134: cmp eax, edi */ 11116 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11118 _flag_k = FK_CMP; 11119 RECOMP_BACKEDGE(); 11120 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02911B; /* 0x2B029136: jne 0x2b02911b */ 11121 L_2B029138: 11122 edi = POP32_VAL(esp); /* 0x2B029138: pop edi */ 11123 esi = POP32_VAL(esp); /* 0x2B029139: pop esi */ 11124 ebx = POP32_VAL(esp); /* 0x2B02913A: pop ebx */ 11125 esp = ebp; /* 0x2B02913B: mov esp, ebp */ 11126 ebp = POP32_VAL(esp); /* 0x2B02913D: pop ebp */ 11127 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B02913E: ret */ 11128 RECOMP_REGS_OUT(); 11129 } 11130 11131 void sub_2B029140(void) { 11132 int _fpu_cmp = 0; 11133 uint32_t _cf = 0; 11134 int _df = 1; 11135 uint32_t _flag_k = FK_NONE; 11136 uint32_t _flag_a = 0, _flag_b = 0; 11137 uint32_t _itail_tgt = 0; 11138 RECOMP_REGS_LOCALS 11139 RECOMP_ENTER(0x2B029140u); 11140 11141 L_2B029140: 11142 PUSH32(esp, ebp); /* 0x2B029140: push ebp */ 11143 ebp = esp; /* 0x2B029141: mov ebp, esp */ 11144 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B029143: push -1 */ 11145 PUSH32(esp, 0x2B0ADCA9u); /* 0x2B029145: push 0x2b0adca9 */ 11146 eax = MEM32(FS_BASE + (0)); /* 0x2B02914A: mov eax, dword ptr fs:[0] */ 11147 PUSH32(esp, eax); /* 0x2B029150: push eax */ 11148 MEM32(FS_BASE + (0)) = esp; /* 0x2B029151: mov dword ptr fs:[0], esp */ 11149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11151 esp = esp - 0x10u; /* 0x2B029158: sub esp, 0x10 */ 11152 _flag_k = FK_CMP; 11153 PUSH32(esp, ebx); /* 0x2B02915B: push ebx */ 11154 PUSH32(esp, esi); /* 0x2B02915C: push esi */ 11155 esi = MEM32(ebp + 0x8); /* 0x2B02915D: mov esi, dword ptr [ebp + 8] */ 11156 SET_LO8(eax, MEM8(esi)); /* 0x2B029160: mov al, byte ptr [esi] */ 11157 PUSH32(esp, edi); /* 0x2B029162: push edi */ 11158 edi = ecx; /* 0x2B029163: mov edi, ecx */ 11159 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x2B029165: mov byte ptr [edi], al */ 11160 ecx = MEM32(esi + 0x4); /* 0x2B029167: mov ecx, dword ptr [esi + 4] */ 11161 /* test ecx, ecx */ /* 0x2B02916A: test ecx, ecx */ 11162 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11163 _cf = 0; 11164 _flag_k = FK_TEST; 11165 MEM32(ebp + (-0x14)) = edi; /* 0x2B02916C: mov dword ptr [ebp - 0x14], edi */ 11166 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029175; /* 0x2B02916F: jne 0x2b029175 */ 11167 L_2B029171: 11168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11169 eax = 0; /* 0x2B029171: xor eax, eax */ 11170 _cf = 0; 11171 _flag_k = FK_TEST; 11172 goto L_2B02917D; /* 0x2B029173: jmp 0x2b02917d */ 11173 L_2B029175: 11174 eax = MEM32(esi + 0x8); /* 0x2B029175: mov eax, dword ptr [esi + 8] */ 11175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11177 eax = eax - ecx; /* 0x2B029178: sub eax, ecx */ 11178 _flag_k = FK_CMP; 11179 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2B02917A: sar eax, 2 */ 11180 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11181 eax = (uint32_t)((int32_t)eax >> 2u); 11182 L_2B02917D: 11183 /* test eax, eax */ /* 0x2B02917D: test eax, eax */ 11184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11185 _cf = 0; 11186 _flag_k = FK_TEST; 11187 if (TEST_NS(_flag_a, _flag_b)) goto L_2B029183; /* 0x2B02917F: jge 0x2b029183 */ 11188 L_2B029181: 11189 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11190 eax = 0; /* 0x2B029181: xor eax, eax */ 11191 _cf = 0; 11192 _flag_k = FK_TEST; 11193 L_2B029183: 11194 ecx = eax * 4; /* 0x2B029183: lea ecx, [eax*4] */ 11195 PUSH32(esp, ecx); /* 0x2B02918A: push ecx */ 11196 RECOMP_ICALL(0x2B0AB212u); /* 0x2B02918B: call 0x2b0ab212 */ /* not lifted */ 11197 RECOMP_FLAGS_IN(); 11198 MEM32(edi + 0x4) = eax; /* 0x2B029190: mov dword ptr [edi + 4], eax */ 11199 edx = MEM32(esi + 0x8); /* 0x2B029193: mov edx, dword ptr [esi + 8] */ 11200 ecx = MEM32(esi + 0x4); /* 0x2B029196: mov ecx, dword ptr [esi + 4] */ 11201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11203 esp = esp + 4; /* 0x2B029199: add esp, 4 */ 11204 _flag_k = FK_ADD; 11205 /* cmp ecx, edx */ /* 0x2B02919C: cmp ecx, edx */ 11206 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11208 _flag_k = FK_CMP; 11209 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0291B2; /* 0x2B02919E: je 0x2b0291b2 */ 11210 L_2B0291A0: 11211 /* test eax, eax */ /* 0x2B0291A0: test eax, eax */ 11212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11213 _cf = 0; 11214 _flag_k = FK_TEST; 11215 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0291A8; /* 0x2B0291A2: je 0x2b0291a8 */ 11216 L_2B0291A4: 11217 esi = MEM32(ecx); /* 0x2B0291A4: mov esi, dword ptr [ecx] */ 11218 MEM32(eax) = esi; /* 0x2B0291A6: mov dword ptr [eax], esi */ 11219 L_2B0291A8: 11220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11221 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11222 ecx = ecx + 4; /* 0x2B0291A8: add ecx, 4 */ 11223 _flag_k = FK_ADD; 11224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 11225 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11226 eax = eax + 4; /* 0x2B0291AB: add eax, 4 */ 11227 _flag_k = FK_ADD; 11228 /* cmp ecx, edx */ /* 0x2B0291AE: cmp ecx, edx */ 11229 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11231 _flag_k = FK_CMP; 11232 RECOMP_BACKEDGE(); 11233 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0291A0; /* 0x2B0291B0: jne 0x2b0291a0 */ 11234 L_2B0291B2: 11235 MEM32(edi + 0x8) = eax; /* 0x2B0291B2: mov dword ptr [edi + 8], eax */ 11236 MEM32(edi + 0xC) = eax; /* 0x2B0291B5: mov dword ptr [edi + 0xc], eax */ 11237 ebx = MEM32(ebp + 0xC); /* 0x2B0291B8: mov ebx, dword ptr [ebp + 0xc] */ 11238 SET_LO8(edx, MEM8(ebx)); /* 0x2B0291BB: mov dl, byte ptr [ebx] */ 11239 MEM8(edi + 0x10) = (uint8_t)(LO8(edx)); /* 0x2B0291BD: mov byte ptr [edi + 0x10], dl */ 11240 ecx = MEM32(ebx + 0x4); /* 0x2B0291C0: mov ecx, dword ptr [ebx + 4] */ 11241 /* test ecx, ecx */ /* 0x2B0291C3: test ecx, ecx */ 11242 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11243 _cf = 0; 11244 _flag_k = FK_TEST; 11245 MEM32(ebp + (-0x4)) = 0; /* 0x2B0291C5: mov dword ptr [ebp - 4], 0 */ 11246 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0291D2; /* 0x2B0291CC: jne 0x2b0291d2 */ 11247 L_2B0291CE: 11248 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11249 eax = 0; /* 0x2B0291CE: xor eax, eax */ 11250 _cf = 0; 11251 _flag_k = FK_TEST; 11252 goto L_2B0291DA; /* 0x2B0291D0: jmp 0x2b0291da */ 11253 L_2B0291D2: 11254 eax = MEM32(ebx + 0x8); /* 0x2B0291D2: mov eax, dword ptr [ebx + 8] */ 11255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11257 eax = eax - ecx; /* 0x2B0291D5: sub eax, ecx */ 11258 _flag_k = FK_CMP; 11259 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B0291D7: sar eax, 4 */ 11260 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11261 eax = (uint32_t)((int32_t)eax >> 4u); 11262 L_2B0291DA: 11263 /* test eax, eax */ /* 0x2B0291DA: test eax, eax */ 11264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11265 _cf = 0; 11266 _flag_k = FK_TEST; 11267 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0291E0; /* 0x2B0291DC: jge 0x2b0291e0 */ 11268 L_2B0291DE: 11269 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11270 eax = 0; /* 0x2B0291DE: xor eax, eax */ 11271 _cf = 0; 11272 _flag_k = FK_TEST; 11273 L_2B0291E0: 11274 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0291E0: shl eax, 4 */ 11275 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11276 eax = eax << 4u; /* 0x2B0291E0: shl eax, 4 */ 11277 PUSH32(esp, eax); /* 0x2B0291E3: push eax */ 11278 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0291E4: call 0x2b0ab212 */ /* not lifted */ 11279 RECOMP_FLAGS_IN(); 11280 MEM32(edi + 0x14) = eax; /* 0x2B0291E9: mov dword ptr [edi + 0x14], eax */ 11281 ecx = MEM32(ebx + 0x8); /* 0x2B0291EC: mov ecx, dword ptr [ebx + 8] */ 11282 edx = MEM32(ebx + 0x4); /* 0x2B0291EF: mov edx, dword ptr [ebx + 4] */ 11283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11285 esp = esp + 4; /* 0x2B0291F2: add esp, 4 */ 11286 _flag_k = FK_ADD; 11287 /* cmp edx, ecx */ /* 0x2B0291F5: cmp edx, ecx */ 11288 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11290 _flag_k = FK_CMP; 11291 esi = eax; /* 0x2B0291F7: mov esi, eax */ 11292 MEM32(ebp + (-0x18)) = ecx; /* 0x2B0291F9: mov dword ptr [ebp - 0x18], ecx */ 11293 MEM32(ebp + 0x8) = esi; /* 0x2B0291FC: mov dword ptr [ebp + 8], esi */ 11294 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029294; /* 0x2B0291FF: je 0x2b029294 */ 11295 L_2B029205: 11296 ebx = edx + 0x4; /* 0x2B029205: lea ebx, [edx + 4] */ 11297 L_2B029208: 11298 MEM32(ebp + (-0x1C)) = esi; /* 0x2B029208: mov dword ptr [ebp - 0x1c], esi */ 11299 /* test esi, esi */ /* 0x2B02920B: test esi, esi */ 11300 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11301 _cf = 0; 11302 _flag_k = FK_TEST; 11303 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B02920D: mov byte ptr [ebp - 4], 1 */ 11304 if (TEST_Z(_flag_a, _flag_b)) goto L_2B029279; /* 0x2B029211: je 0x2b029279 */ 11305 L_2B029213: 11306 SET_LO8(eax, MEM8(ebx + (-0x4))); /* 0x2B029213: mov al, byte ptr [ebx - 4] */ 11307 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x2B029216: mov byte ptr [esi], al */ 11308 ecx = MEM32(ebx); /* 0x2B029218: mov ecx, dword ptr [ebx] */ 11309 /* test ecx, ecx */ /* 0x2B02921A: test ecx, ecx */ 11310 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11311 _cf = 0; 11312 _flag_k = FK_TEST; 11313 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029222; /* 0x2B02921C: jne 0x2b029222 */ 11314 L_2B02921E: 11315 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11316 eax = 0; /* 0x2B02921E: xor eax, eax */ 11317 _cf = 0; 11318 _flag_k = FK_TEST; 11319 goto L_2B02922A; /* 0x2B029220: jmp 0x2b02922a */ 11320 L_2B029222: 11321 eax = MEM32(ebx + 0x4); /* 0x2B029222: mov eax, dword ptr [ebx + 4] */ 11322 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11324 eax = eax - ecx; /* 0x2B029225: sub eax, ecx */ 11325 _flag_k = FK_CMP; 11326 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2B029227: sar eax, 2 */ 11327 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11328 eax = (uint32_t)((int32_t)eax >> 2u); 11329 L_2B02922A: 11330 /* test eax, eax */ /* 0x2B02922A: test eax, eax */ 11331 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11332 _cf = 0; 11333 _flag_k = FK_TEST; 11334 if (TEST_NS(_flag_a, _flag_b)) goto L_2B029230; /* 0x2B02922C: jge 0x2b029230 */ 11335 L_2B02922E: 11336 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11337 eax = 0; /* 0x2B02922E: xor eax, eax */ 11338 _cf = 0; 11339 _flag_k = FK_TEST; 11340 L_2B029230: 11341 ecx = eax * 4; /* 0x2B029230: lea ecx, [eax*4] */ 11342 PUSH32(esp, ecx); /* 0x2B029237: push ecx */ 11343 RECOMP_ICALL(0x2B0AB212u); /* 0x2B029238: call 0x2b0ab212 */ /* not lifted */ 11344 RECOMP_FLAGS_IN(); 11345 MEM32(esi + 0x4) = eax; /* 0x2B02923D: mov dword ptr [esi + 4], eax */ 11346 ecx = MEM32(ebx + 0x4); /* 0x2B029240: mov ecx, dword ptr [ebx + 4] */ 11347 esi = MEM32(ebx); /* 0x2B029243: mov esi, dword ptr [ebx] */ 11348 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11350 esp = esp + 4; /* 0x2B029245: add esp, 4 */ 11351 _flag_k = FK_ADD; 11352 /* cmp esi, ecx */ /* 0x2B029248: cmp esi, ecx */ 11353 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 11354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11355 _flag_k = FK_CMP; 11356 MEM32(ebp + (-0x10)) = ecx; /* 0x2B02924A: mov dword ptr [ebp - 0x10], ecx */ 11357 edi = eax; /* 0x2B02924D: mov edi, eax */ 11358 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029268; /* 0x2B02924F: je 0x2b029268 */ 11359 L_2B029251: 11360 PUSH32(esp, esi); /* 0x2B029251: push esi */ 11361 PUSH32(esp, edi); /* 0x2B029252: push edi */ 11362 RECOMP_ICALL(0x2B02AAE0u); /* 0x2B029253: call 0x2b02aae0 */ /* not lifted */ 11363 RECOMP_FLAGS_IN(); 11364 eax = MEM32(ebp + (-0x10)); /* 0x2B029258: mov eax, dword ptr [ebp - 0x10] */ 11365 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 11366 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11367 esi = esi + 4; /* 0x2B02925B: add esi, 4 */ 11368 _flag_k = FK_ADD; 11369 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11371 esp = esp + 8; /* 0x2B02925E: add esp, 8 */ 11372 _flag_k = FK_ADD; 11373 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 11374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11375 edi = edi + 4; /* 0x2B029261: add edi, 4 */ 11376 _flag_k = FK_ADD; 11377 /* cmp esi, eax */ /* 0x2B029264: cmp esi, eax */ 11378 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 11379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11380 _flag_k = FK_CMP; 11381 RECOMP_BACKEDGE(); 11382 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029251; /* 0x2B029266: jne 0x2b029251 */ 11383 L_2B029268: 11384 eax = MEM32(ebp + 0x8); /* 0x2B029268: mov eax, dword ptr [ebp + 8] */ 11385 ecx = MEM32(ebp + (-0x18)); /* 0x2B02926B: mov ecx, dword ptr [ebp - 0x18] */ 11386 MEM32(eax + 0x8) = edi; /* 0x2B02926E: mov dword ptr [eax + 8], edi */ 11387 MEM32(eax + 0xC) = edi; /* 0x2B029271: mov dword ptr [eax + 0xc], edi */ 11388 edi = MEM32(ebp + (-0x14)); /* 0x2B029274: mov edi, dword ptr [ebp - 0x14] */ 11389 esi = eax; /* 0x2B029277: mov esi, eax */ 11390 L_2B029279: 11391 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 11392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11393 ebx = ebx + 0x10u; /* 0x2B029279: add ebx, 0x10 */ 11394 _flag_k = FK_ADD; 11395 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 11396 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11397 esi = esi + 0x10u; /* 0x2B02927C: add esi, 0x10 */ 11398 _flag_k = FK_ADD; 11399 edx = ebx + (-0x4); /* 0x2B02927F: lea edx, [ebx - 4] */ 11400 /* cmp edx, ecx */ /* 0x2B029282: cmp edx, ecx */ 11401 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11403 _flag_k = FK_CMP; 11404 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B029284: mov byte ptr [ebp - 4], 0 */ 11405 MEM32(ebp + 0x8) = esi; /* 0x2B029288: mov dword ptr [ebp + 8], esi */ 11406 RECOMP_BACKEDGE(); 11407 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029208; /* 0x2B02928B: jne 0x2b029208 */ 11408 L_2B029291: 11409 ebx = MEM32(ebp + 0xC); /* 0x2B029291: mov ebx, dword ptr [ebp + 0xc] */ 11410 L_2B029294: 11411 MEM32(edi + 0x18) = esi; /* 0x2B029294: mov dword ptr [edi + 0x18], esi */ 11412 MEM32(edi + 0x1C) = esi; /* 0x2B029297: mov dword ptr [edi + 0x1c], esi */ 11413 eax = MEM32(ebx + 0x10); /* 0x2B02929A: mov eax, dword ptr [ebx + 0x10] */ 11414 MEM32(edi + 0x20) = eax; /* 0x2B02929D: mov dword ptr [edi + 0x20], eax */ 11415 ecx = MEM32(ebx + 0x14); /* 0x2B0292A0: mov ecx, dword ptr [ebx + 0x14] */ 11416 MEM32(edi + 0x24) = ecx; /* 0x2B0292A3: mov dword ptr [edi + 0x24], ecx */ 11417 ecx = MEM32(ebp + (-0xC)); /* 0x2B0292A6: mov ecx, dword ptr [ebp - 0xc] */ 11418 eax = edi; /* 0x2B0292A9: mov eax, edi */ 11419 edi = POP32_VAL(esp); /* 0x2B0292AB: pop edi */ 11420 esi = POP32_VAL(esp); /* 0x2B0292AC: pop esi */ 11421 ebx = POP32_VAL(esp); /* 0x2B0292AD: pop ebx */ 11422 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0292AE: mov dword ptr fs:[0], ecx */ 11423 esp = ebp; /* 0x2B0292B5: mov esp, ebp */ 11424 ebp = POP32_VAL(esp); /* 0x2B0292B7: pop ebp */ 11425 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0292B8: ret 8 */ 11426 RECOMP_REGS_OUT(); 11427 } 11428 11429 void sub_2B0292C0(void) { 11430 int _fpu_cmp = 0; 11431 uint32_t _cf = 0; 11432 int _df = 1; 11433 uint32_t _flag_k = FK_NONE; 11434 uint32_t _flag_a = 0, _flag_b = 0; 11435 uint32_t _itail_tgt = 0; 11436 RECOMP_REGS_LOCALS 11437 RECOMP_ENTER(0x2B0292C0u); 11438 11439 L_2B0292C0: 11440 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0292C0: ret 8 */ 11441 RECOMP_REGS_OUT(); 11442 } 11443 11444 void sub_2B0292D0(void) { 11445 int _fpu_cmp = 0; 11446 uint32_t _cf = 0; 11447 int _df = 1; 11448 uint32_t _flag_k = FK_NONE; 11449 uint32_t _flag_a = 0, _flag_b = 0; 11450 uint32_t _itail_tgt = 0; 11451 RECOMP_REGS_LOCALS 11452 RECOMP_ENTER(0x2B0292D0u); 11453 11454 L_2B0292D0: 11455 PUSH32(esp, ebp); /* 0x2B0292D0: push ebp */ 11456 ebp = esp; /* 0x2B0292D1: mov ebp, esp */ 11457 ecx = MEM32(ecx + 0x4); /* 0x2B0292D3: mov ecx, dword ptr [ecx + 4] */ 11458 eax = MEM32(ebp + 0x8); /* 0x2B0292D6: mov eax, dword ptr [ebp + 8] */ 11459 MEM32(eax) = ecx; /* 0x2B0292D9: mov dword ptr [eax], ecx */ 11460 ebp = POP32_VAL(esp); /* 0x2B0292DB: pop ebp */ 11461 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0292DC: ret 4 */ 11462 RECOMP_REGS_OUT(); 11463 } 11464 11465 void sub_2B0292E0(void) { 11466 int _fpu_cmp = 0; 11467 uint32_t _cf = 0; 11468 int _df = 1; 11469 uint32_t _flag_k = FK_NONE; 11470 uint32_t _flag_a = 0, _flag_b = 0; 11471 uint32_t _itail_tgt = 0; 11472 RECOMP_REGS_LOCALS 11473 RECOMP_ENTER(0x2B0292E0u); 11474 11475 L_2B0292E0: 11476 PUSH32(esp, ebp); /* 0x2B0292E0: push ebp */ 11477 ebp = esp; /* 0x2B0292E1: mov ebp, esp */ 11478 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11480 esp = esp - 0x10u; /* 0x2B0292E3: sub esp, 0x10 */ 11481 _flag_k = FK_CMP; 11482 PUSH32(esp, ebx); /* 0x2B0292E6: push ebx */ 11483 PUSH32(esp, esi); /* 0x2B0292E7: push esi */ 11484 PUSH32(esp, edi); /* 0x2B0292E8: push edi */ 11485 edi = ecx; /* 0x2B0292E9: mov edi, ecx */ 11486 ebx = MEM32(edi + 0x4); /* 0x2B0292EB: mov ebx, dword ptr [edi + 4] */ 11487 esi = MEM32(ebx + 0x4); /* 0x2B0292EE: mov esi, dword ptr [ebx + 4] */ 11488 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0292F1: cmp esi, dword ptr [edi + 8] */ 11489 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11491 _flag_k = FK_CMP; 11492 SET_LO8(eax, 1); /* 0x2B0292F4: mov al, 1 */ 11493 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02932E; /* 0x2B0292F6: je 0x2b02932e */ 11494 L_2B0292F8: 11495 eax = MEM32(esi + 0x14); /* 0x2B0292F8: mov eax, dword ptr [esi + 0x14] */ 11496 edx = MEM32(ebp + 0xC); /* 0x2B0292FB: mov edx, dword ptr [ebp + 0xc] */ 11497 edx = MEM32(edx + 0x8); /* 0x2B0292FE: mov edx, dword ptr [edx + 8] */ 11498 ecx = MEM32(esi + 0x10); /* 0x2B029301: mov ecx, dword ptr [esi + 0x10] */ 11499 PUSH32(esp, eax); /* 0x2B029304: push eax */ 11500 MEM32(ebp + (-0x4)) = edx; /* 0x2B029305: mov dword ptr [ebp - 4], edx */ 11501 eax = MEM32(ebp + (-0x4)); /* 0x2B029308: mov eax, dword ptr [ebp - 4] */ 11502 edx = MEM32(ebp + 0xC); /* 0x2B02930B: mov edx, dword ptr [ebp + 0xc] */ 11503 edx = MEM32(edx + 0x4); /* 0x2B02930E: mov edx, dword ptr [edx + 4] */ 11504 PUSH32(esp, ecx); /* 0x2B029311: push ecx */ 11505 PUSH32(esp, eax); /* 0x2B029312: push eax */ 11506 PUSH32(esp, edx); /* 0x2B029313: push edx */ 11507 ebx = esi; /* 0x2B029314: mov ebx, esi */ 11508 RECOMP_ICALL(0x2B02ABB0u); /* 0x2B029316: call 0x2b02abb0 */ /* not lifted */ 11509 RECOMP_FLAGS_IN(); 11510 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11511 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11512 esp = esp + 0x10u; /* 0x2B02931B: add esp, 0x10 */ 11513 _flag_k = FK_ADD; 11514 /* test LO8(eax), LO8(eax) */ /* 0x2B02931E: test al, al */ 11515 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11516 _cf = 0; 11517 _flag_k = FK_NARROW(FK_TEST, 24); 11518 if (TEST_Z(_flag_a, _flag_b)) goto L_2B029326; /* 0x2B029320: je 0x2b029326 */ 11519 L_2B029322: 11520 esi = MEM32(esi); /* 0x2B029322: mov esi, dword ptr [esi] */ 11521 goto L_2B029329; /* 0x2B029324: jmp 0x2b029329 */ 11522 L_2B029326: 11523 esi = MEM32(esi + 0x8); /* 0x2B029326: mov esi, dword ptr [esi + 8] */ 11524 L_2B029329: 11525 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029329: cmp esi, dword ptr [edi + 8] */ 11526 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11528 _flag_k = FK_CMP; 11529 RECOMP_BACKEDGE(); 11530 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0292F8; /* 0x2B02932C: jne 0x2b0292f8 */ 11531 L_2B02932E: 11532 SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x2B02932E: mov cl, byte ptr [edi + 0xc] */ 11533 /* test LO8(ecx), LO8(ecx) */ /* 0x2B029331: test cl, cl */ 11534 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11535 _cf = 0; 11536 _flag_k = FK_NARROW(FK_TEST, 24); 11537 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0294B0; /* 0x2B029333: je 0x2b0294b0 */ 11538 L_2B029339: 11539 PUSH32(esp, 0); /* 0x2B029339: push 0 */ 11540 PUSH32(esp, ebx); /* 0x2B02933B: push ebx */ 11541 ecx = edi; /* 0x2B02933C: mov ecx, edi */ 11542 RECOMP_ICALL(0x2B081460u); /* 0x2B02933E: call 0x2b081460 */ /* not lifted */ 11543 RECOMP_FLAGS_IN(); 11544 ecx = MEM32(edi + 0x8); /* 0x2B029343: mov ecx, dword ptr [edi + 8] */ 11545 MEM32(eax) = ecx; /* 0x2B029346: mov dword ptr [eax], ecx */ 11546 edx = MEM32(edi + 0x8); /* 0x2B029348: mov edx, dword ptr [edi + 8] */ 11547 ecx = MEM32(ebp + 0xC); /* 0x2B02934B: mov ecx, dword ptr [ebp + 0xc] */ 11548 MEM32(ebp + (-0x4)) = eax; /* 0x2B02934E: mov dword ptr [ebp - 4], eax */ 11549 MEM32(eax + 0x8) = edx; /* 0x2B029351: mov dword ptr [eax + 8], edx */ 11550 PUSH32(esp, ecx); /* 0x2B029354: push ecx */ 11551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 11552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11553 eax = eax + 0xCu; /* 0x2B029355: add eax, 0xc */ 11554 _flag_k = FK_ADD; 11555 PUSH32(esp, eax); /* 0x2B029358: push eax */ 11556 RECOMP_ICALL(0x2B02A870u); /* 0x2B029359: call 0x2b02a870 */ /* not lifted */ 11557 RECOMP_FLAGS_IN(); 11558 ecx = MEM32(edi + 0x10); /* 0x2B02935E: mov ecx, dword ptr [edi + 0x10] */ 11559 eax = MEM32(edi + 0x4); /* 0x2B029361: mov eax, dword ptr [edi + 4] */ 11560 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11561 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11562 esp = esp + 8; /* 0x2B029364: add esp, 8 */ 11563 _flag_k = FK_ADD; 11564 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11565 ecx = ecx + 1; /* 0x2B029367: inc ecx */ 11566 _flag_k = FK_INC; 11567 /* cmp ebx, eax */ /* 0x2B029368: cmp ebx, eax */ 11568 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 11569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11570 _flag_k = FK_CMP; 11571 MEM32(edi + 0x10) = ecx; /* 0x2B02936A: mov dword ptr [edi + 0x10], ecx */ 11572 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029397; /* 0x2B02936D: je 0x2b029397 */ 11573 L_2B02936F: 11574 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B02936F: cmp esi, dword ptr [edi + 8] */ 11575 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11577 _flag_k = FK_CMP; 11578 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029397; /* 0x2B029372: jne 0x2b029397 */ 11579 L_2B029374: 11580 ecx = MEM32(ebp + 0xC); /* 0x2B029374: mov ecx, dword ptr [ebp + 0xc] */ 11581 edx = ebx + 0xC; /* 0x2B029377: lea edx, [ebx + 0xc] */ 11582 PUSH32(esp, edx); /* 0x2B02937A: push edx */ 11583 RECOMP_ICALL(0x2B02AB60u); /* 0x2B02937B: call 0x2b02ab60 */ /* not lifted */ 11584 RECOMP_FLAGS_IN(); 11585 /* test LO8(eax), LO8(eax) */ /* 0x2B029380: test al, al */ 11586 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11587 _cf = 0; 11588 _flag_k = FK_NARROW(FK_TEST, 24); 11589 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029397; /* 0x2B029382: jne 0x2b029397 */ 11590 L_2B029384: 11591 ecx = MEM32(ebp + (-0x4)); /* 0x2B029384: mov ecx, dword ptr [ebp - 4] */ 11592 MEM32(ebx + 0x8) = ecx; /* 0x2B029387: mov dword ptr [ebx + 8], ecx */ 11593 eax = MEM32(edi + 0x4); /* 0x2B02938A: mov eax, dword ptr [edi + 4] */ 11594 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x2B02938D: cmp ebx, dword ptr [eax + 8] */ 11595 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 11596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11597 _flag_k = FK_CMP; 11598 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0293B7; /* 0x2B029390: jne 0x2b0293b7 */ 11599 L_2B029392: 11600 MEM32(eax + 0x8) = ecx; /* 0x2B029392: mov dword ptr [eax + 8], ecx */ 11601 goto L_2B0293B7; /* 0x2B029395: jmp 0x2b0293b7 */ 11602 L_2B029397: 11603 ecx = MEM32(ebp + (-0x4)); /* 0x2B029397: mov ecx, dword ptr [ebp - 4] */ 11604 MEM32(ebx) = ecx; /* 0x2B02939A: mov dword ptr [ebx], ecx */ 11605 eax = MEM32(edi + 0x4); /* 0x2B02939C: mov eax, dword ptr [edi + 4] */ 11606 /* cmp ebx, eax */ /* 0x2B02939F: cmp ebx, eax */ 11607 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 11608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11609 _flag_k = FK_CMP; 11610 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0293AE; /* 0x2B0293A1: jne 0x2b0293ae */ 11611 L_2B0293A3: 11612 MEM32(eax + 0x4) = ecx; /* 0x2B0293A3: mov dword ptr [eax + 4], ecx */ 11613 eax = MEM32(edi + 0x4); /* 0x2B0293A6: mov eax, dword ptr [edi + 4] */ 11614 MEM32(eax + 0x8) = ecx; /* 0x2B0293A9: mov dword ptr [eax + 8], ecx */ 11615 goto L_2B0293B7; /* 0x2B0293AC: jmp 0x2b0293b7 */ 11616 L_2B0293AE: 11617 /* cmp ebx, MEM32(eax) */ /* 0x2B0293AE: cmp ebx, dword ptr [eax] */ 11618 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 11619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11620 _flag_k = FK_CMP; 11621 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0293B7; /* 0x2B0293B0: jne 0x2b0293b7 */ 11622 L_2B0293B2: 11623 ecx = MEM32(ebp + (-0x4)); /* 0x2B0293B2: mov ecx, dword ptr [ebp - 4] */ 11624 MEM32(eax) = ecx; /* 0x2B0293B5: mov dword ptr [eax], ecx */ 11625 L_2B0293B7: 11626 edx = MEM32(edi + 0x4); /* 0x2B0293B7: mov edx, dword ptr [edi + 4] */ 11627 esi = MEM32(ebp + (-0x4)); /* 0x2B0293BA: mov esi, dword ptr [ebp - 4] */ 11628 /* cmp esi, MEM32(edx + 0x4) */ /* 0x2B0293BD: cmp esi, dword ptr [edx + 4] */ 11629 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11631 _flag_k = FK_CMP; 11632 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02948B; /* 0x2B0293C0: je 0x2b02948b */ 11633 L_2B0293C6: 11634 eax = MEM32(esi + 0x4); /* 0x2B0293C6: mov eax, dword ptr [esi + 4] */ 11635 SET_LO8(ecx, MEM8(eax + 0x3C)); /* 0x2B0293C9: mov cl, byte ptr [eax + 0x3c] */ 11636 /* test LO8(ecx), LO8(ecx) */ /* 0x2B0293CC: test cl, cl */ 11637 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11638 _cf = 0; 11639 _flag_k = FK_NARROW(FK_TEST, 24); 11640 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02948B; /* 0x2B0293CE: jne 0x2b02948b */ 11641 L_2B0293D4: 11642 edx = MEM32(eax + 0x4); /* 0x2B0293D4: mov edx, dword ptr [eax + 4] */ 11643 ecx = MEM32(edx); /* 0x2B0293D7: mov ecx, dword ptr [edx] */ 11644 /* cmp eax, ecx */ /* 0x2B0293D9: cmp eax, ecx */ 11645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11647 _flag_k = FK_CMP; 11648 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029431; /* 0x2B0293DB: jne 0x2b029431 */ 11649 L_2B0293DD: 11650 ecx = MEM32(edx + 0x8); /* 0x2B0293DD: mov ecx, dword ptr [edx + 8] */ 11651 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B0293E0: mov dl, byte ptr [ecx + 0x3c] */ 11652 /* test LO8(edx), LO8(edx) */ /* 0x2B0293E3: test dl, dl */ 11653 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11654 _cf = 0; 11655 _flag_k = FK_NARROW(FK_TEST, 24); 11656 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029401; /* 0x2B0293E5: jne 0x2b029401 */ 11657 L_2B0293E7: 11658 MEM8(eax + 0x3C) = (uint8_t)(1); /* 0x2B0293E7: mov byte ptr [eax + 0x3c], 1 */ 11659 MEM8(ecx + 0x3C) = (uint8_t)(1); /* 0x2B0293EB: mov byte ptr [ecx + 0x3c], 1 */ 11660 eax = MEM32(esi + 0x4); /* 0x2B0293EF: mov eax, dword ptr [esi + 4] */ 11661 ecx = MEM32(eax + 0x4); /* 0x2B0293F2: mov ecx, dword ptr [eax + 4] */ 11662 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B0293F5: mov byte ptr [ecx + 0x3c], 0 */ 11663 edx = MEM32(esi + 0x4); /* 0x2B0293F9: mov edx, dword ptr [esi + 4] */ 11664 esi = MEM32(edx + 0x4); /* 0x2B0293FC: mov esi, dword ptr [edx + 4] */ 11665 goto L_2B02947F; /* 0x2B0293FF: jmp 0x2b02947f */ 11666 L_2B029401: 11667 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B029401: cmp esi, dword ptr [eax + 8] */ 11668 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 11669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11670 _flag_k = FK_CMP; 11671 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029410; /* 0x2B029404: jne 0x2b029410 */ 11672 L_2B029406: 11673 esi = eax; /* 0x2B029406: mov esi, eax */ 11674 PUSH32(esp, esi); /* 0x2B029408: push esi */ 11675 ecx = edi; /* 0x2B029409: mov ecx, edi */ 11676 RECOMP_ICALL(0x2B02A580u); /* 0x2B02940B: call 0x2b02a580 */ /* not lifted */ 11677 RECOMP_FLAGS_IN(); 11678 L_2B029410: 11679 eax = MEM32(esi + 0x4); /* 0x2B029410: mov eax, dword ptr [esi + 4] */ 11680 MEM8(eax + 0x3C) = (uint8_t)(1); /* 0x2B029413: mov byte ptr [eax + 0x3c], 1 */ 11681 ecx = MEM32(esi + 0x4); /* 0x2B029417: mov ecx, dword ptr [esi + 4] */ 11682 edx = MEM32(ecx + 0x4); /* 0x2B02941A: mov edx, dword ptr [ecx + 4] */ 11683 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x2B02941D: mov byte ptr [edx + 0x3c], 0 */ 11684 eax = MEM32(esi + 0x4); /* 0x2B029421: mov eax, dword ptr [esi + 4] */ 11685 ecx = MEM32(eax + 0x4); /* 0x2B029424: mov ecx, dword ptr [eax + 4] */ 11686 PUSH32(esp, ecx); /* 0x2B029427: push ecx */ 11687 ecx = edi; /* 0x2B029428: mov ecx, edi */ 11688 RECOMP_ICALL(0x2B08B210u); /* 0x2B02942A: call 0x2b08b210 */ /* not lifted */ 11689 RECOMP_FLAGS_IN(); 11690 goto L_2B02947F; /* 0x2B02942F: jmp 0x2b02947f */ 11691 L_2B029431: 11692 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029431: mov dl, byte ptr [ecx + 0x3c] */ 11693 /* test LO8(edx), LO8(edx) */ /* 0x2B029434: test dl, dl */ 11694 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11695 _cf = 0; 11696 _flag_k = FK_NARROW(FK_TEST, 24); 11697 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029452; /* 0x2B029436: jne 0x2b029452 */ 11698 L_2B029438: 11699 MEM8(eax + 0x3C) = (uint8_t)(1); /* 0x2B029438: mov byte ptr [eax + 0x3c], 1 */ 11700 MEM8(ecx + 0x3C) = (uint8_t)(1); /* 0x2B02943C: mov byte ptr [ecx + 0x3c], 1 */ 11701 edx = MEM32(esi + 0x4); /* 0x2B029440: mov edx, dword ptr [esi + 4] */ 11702 eax = MEM32(edx + 0x4); /* 0x2B029443: mov eax, dword ptr [edx + 4] */ 11703 MEM8(eax + 0x3C) = (uint8_t)(0); /* 0x2B029446: mov byte ptr [eax + 0x3c], 0 */ 11704 ecx = MEM32(esi + 0x4); /* 0x2B02944A: mov ecx, dword ptr [esi + 4] */ 11705 esi = MEM32(ecx + 0x4); /* 0x2B02944D: mov esi, dword ptr [ecx + 4] */ 11706 goto L_2B02947F; /* 0x2B029450: jmp 0x2b02947f */ 11707 L_2B029452: 11708 /* cmp esi, MEM32(eax) */ /* 0x2B029452: cmp esi, dword ptr [eax] */ 11709 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 11710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11711 _flag_k = FK_CMP; 11712 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029460; /* 0x2B029454: jne 0x2b029460 */ 11713 L_2B029456: 11714 esi = eax; /* 0x2B029456: mov esi, eax */ 11715 PUSH32(esp, esi); /* 0x2B029458: push esi */ 11716 ecx = edi; /* 0x2B029459: mov ecx, edi */ 11717 RECOMP_ICALL(0x2B08B210u); /* 0x2B02945B: call 0x2b08b210 */ /* not lifted */ 11718 RECOMP_FLAGS_IN(); 11719 L_2B029460: 11720 edx = MEM32(esi + 0x4); /* 0x2B029460: mov edx, dword ptr [esi + 4] */ 11721 MEM8(edx + 0x3C) = (uint8_t)(1); /* 0x2B029463: mov byte ptr [edx + 0x3c], 1 */ 11722 eax = MEM32(esi + 0x4); /* 0x2B029467: mov eax, dword ptr [esi + 4] */ 11723 ecx = MEM32(eax + 0x4); /* 0x2B02946A: mov ecx, dword ptr [eax + 4] */ 11724 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B02946D: mov byte ptr [ecx + 0x3c], 0 */ 11725 edx = MEM32(esi + 0x4); /* 0x2B029471: mov edx, dword ptr [esi + 4] */ 11726 eax = MEM32(edx + 0x4); /* 0x2B029474: mov eax, dword ptr [edx + 4] */ 11727 PUSH32(esp, eax); /* 0x2B029477: push eax */ 11728 ecx = edi; /* 0x2B029478: mov ecx, edi */ 11729 RECOMP_ICALL(0x2B02A580u); /* 0x2B02947A: call 0x2b02a580 */ /* not lifted */ 11730 RECOMP_FLAGS_IN(); 11731 L_2B02947F: 11732 ecx = MEM32(edi + 0x4); /* 0x2B02947F: mov ecx, dword ptr [edi + 4] */ 11733 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x2B029482: cmp esi, dword ptr [ecx + 4] */ 11734 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11736 _flag_k = FK_CMP; 11737 RECOMP_BACKEDGE(); 11738 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0293C6; /* 0x2B029485: jne 0x2b0293c6 */ 11739 L_2B02948B: 11740 edx = MEM32(edi + 0x4); /* 0x2B02948B: mov edx, dword ptr [edi + 4] */ 11741 eax = MEM32(edx + 0x4); /* 0x2B02948E: mov eax, dword ptr [edx + 4] */ 11742 ecx = MEM32(ebp + (-0x4)); /* 0x2B029491: mov ecx, dword ptr [ebp - 4] */ 11743 MEM8(eax + 0x3C) = (uint8_t)(1); /* 0x2B029494: mov byte ptr [eax + 0x3c], 1 */ 11744 eax = MEM32(ebp + 0x8); /* 0x2B029498: mov eax, dword ptr [ebp + 8] */ 11745 edi = POP32_VAL(esp); /* 0x2B02949B: pop edi */ 11746 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x2B02949C: mov byte ptr [ebp - 0xc], 1 */ 11747 edx = MEM32(ebp + (-0xC)); /* 0x2B0294A0: mov edx, dword ptr [ebp - 0xc] */ 11748 esi = POP32_VAL(esp); /* 0x2B0294A3: pop esi */ 11749 MEM32(eax) = ecx; /* 0x2B0294A4: mov dword ptr [eax], ecx */ 11750 MEM32(eax + 0x4) = edx; /* 0x2B0294A6: mov dword ptr [eax + 4], edx */ 11751 ebx = POP32_VAL(esp); /* 0x2B0294A9: pop ebx */ 11752 esp = ebp; /* 0x2B0294AA: mov esp, ebp */ 11753 ebp = POP32_VAL(esp); /* 0x2B0294AC: pop ebp */ 11754 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0294AD: ret 8 */ 11755 L_2B0294B0: 11756 /* test LO8(eax), LO8(eax) */ /* 0x2B0294B0: test al, al */ 11757 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11758 _cf = 0; 11759 _flag_k = FK_NARROW(FK_TEST, 24); 11760 MEM32(ebp + (-0xC)) = ebx; /* 0x2B0294B2: mov dword ptr [ebp - 0xc], ebx */ 11761 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0294F1; /* 0x2B0294B5: je 0x2b0294f1 */ 11762 L_2B0294B7: 11763 eax = MEM32(edi + 0x4); /* 0x2B0294B7: mov eax, dword ptr [edi + 4] */ 11764 /* cmp ebx, MEM32(eax) */ /* 0x2B0294BA: cmp ebx, dword ptr [eax] */ 11765 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 11766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11767 _flag_k = FK_CMP; 11768 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0294E9; /* 0x2B0294BC: jne 0x2b0294e9 */ 11769 L_2B0294BE: 11770 ecx = MEM32(ebp + 0xC); /* 0x2B0294BE: mov ecx, dword ptr [ebp + 0xc] */ 11771 PUSH32(esp, ecx); /* 0x2B0294C1: push ecx */ 11772 PUSH32(esp, ebx); /* 0x2B0294C2: push ebx */ 11773 PUSH32(esp, esi); /* 0x2B0294C3: push esi */ 11774 edx = ebp + 0xC; /* 0x2B0294C4: lea edx, [ebp + 0xc] */ 11775 PUSH32(esp, edx); /* 0x2B0294C7: push edx */ 11776 ecx = edi; /* 0x2B0294C8: mov ecx, edi */ 11777 RECOMP_ICALL(0x2B02A080u); /* 0x2B0294CA: call 0x2b02a080 */ /* not lifted */ 11778 RECOMP_FLAGS_IN(); 11779 ecx = MEM32(eax); /* 0x2B0294CF: mov ecx, dword ptr [eax] */ 11780 eax = MEM32(ebp + 0x8); /* 0x2B0294D1: mov eax, dword ptr [ebp + 8] */ 11781 edi = POP32_VAL(esp); /* 0x2B0294D4: pop edi */ 11782 MEM32(eax) = ecx; /* 0x2B0294D5: mov dword ptr [eax], ecx */ 11783 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x2B0294D7: mov byte ptr [ebp - 0xc], 1 */ 11784 ecx = MEM32(ebp + (-0xC)); /* 0x2B0294DB: mov ecx, dword ptr [ebp - 0xc] */ 11785 esi = POP32_VAL(esp); /* 0x2B0294DE: pop esi */ 11786 MEM32(eax + 0x4) = ecx; /* 0x2B0294DF: mov dword ptr [eax + 4], ecx */ 11787 ebx = POP32_VAL(esp); /* 0x2B0294E2: pop ebx */ 11788 esp = ebp; /* 0x2B0294E3: mov esp, ebp */ 11789 ebp = POP32_VAL(esp); /* 0x2B0294E5: pop ebp */ 11790 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0294E6: ret 8 */ 11791 L_2B0294E9: 11792 ecx = ebp + (-0xC); /* 0x2B0294E9: lea ecx, [ebp - 0xc] */ 11793 RECOMP_ICALL(0x2B081530u); /* 0x2B0294EC: call 0x2b081530 */ /* not lifted */ 11794 RECOMP_FLAGS_IN(); 11795 L_2B0294F1: 11796 edx = MEM32(ebp + (-0xC)); /* 0x2B0294F1: mov edx, dword ptr [ebp - 0xc] */ 11797 eax = MEM32(ebp + 0xC); /* 0x2B0294F4: mov eax, dword ptr [ebp + 0xc] */ 11798 ecx = edx + 0xC; /* 0x2B0294F7: lea ecx, [edx + 0xc] */ 11799 PUSH32(esp, eax); /* 0x2B0294FA: push eax */ 11800 RECOMP_ICALL(0x2B02AB60u); /* 0x2B0294FB: call 0x2b02ab60 */ /* not lifted */ 11801 RECOMP_FLAGS_IN(); 11802 /* test LO8(eax), LO8(eax) */ /* 0x2B029500: test al, al */ 11803 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11804 _cf = 0; 11805 _flag_k = FK_NARROW(FK_TEST, 24); 11806 if (TEST_Z(_flag_a, _flag_b)) goto L_2B02952F; /* 0x2B029502: je 0x2b02952f */ 11807 L_2B029504: 11808 ecx = MEM32(ebp + 0xC); /* 0x2B029504: mov ecx, dword ptr [ebp + 0xc] */ 11809 PUSH32(esp, ecx); /* 0x2B029507: push ecx */ 11810 PUSH32(esp, ebx); /* 0x2B029508: push ebx */ 11811 PUSH32(esp, esi); /* 0x2B029509: push esi */ 11812 edx = ebp + 0xC; /* 0x2B02950A: lea edx, [ebp + 0xc] */ 11813 PUSH32(esp, edx); /* 0x2B02950D: push edx */ 11814 ecx = edi; /* 0x2B02950E: mov ecx, edi */ 11815 RECOMP_ICALL(0x2B02A080u); /* 0x2B029510: call 0x2b02a080 */ /* not lifted */ 11816 RECOMP_FLAGS_IN(); 11817 ecx = MEM32(eax); /* 0x2B029515: mov ecx, dword ptr [eax] */ 11818 eax = MEM32(ebp + 0x8); /* 0x2B029517: mov eax, dword ptr [ebp + 8] */ 11819 edi = POP32_VAL(esp); /* 0x2B02951A: pop edi */ 11820 MEM32(eax) = ecx; /* 0x2B02951B: mov dword ptr [eax], ecx */ 11821 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x2B02951D: mov byte ptr [ebp - 0xc], 1 */ 11822 ecx = MEM32(ebp + (-0xC)); /* 0x2B029521: mov ecx, dword ptr [ebp - 0xc] */ 11823 esi = POP32_VAL(esp); /* 0x2B029524: pop esi */ 11824 MEM32(eax + 0x4) = ecx; /* 0x2B029525: mov dword ptr [eax + 4], ecx */ 11825 ebx = POP32_VAL(esp); /* 0x2B029528: pop ebx */ 11826 esp = ebp; /* 0x2B029529: mov esp, ebp */ 11827 ebp = POP32_VAL(esp); /* 0x2B02952B: pop ebp */ 11828 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02952C: ret 8 */ 11829 L_2B02952F: 11830 edx = ebp + 0xF; /* 0x2B02952F: lea edx, [ebp + 0xf] */ 11831 PUSH32(esp, edx); /* 0x2B029532: push edx */ 11832 eax = ebp + (-0xC); /* 0x2B029533: lea eax, [ebp - 0xc] */ 11833 PUSH32(esp, eax); /* 0x2B029536: push eax */ 11834 ecx = ebp + (-0x8); /* 0x2B029537: lea ecx, [ebp - 8] */ 11835 MEM8(ebp + 0xF) = (uint8_t)(0); /* 0x2B02953A: mov byte ptr [ebp + 0xf], 0 */ 11836 RECOMP_ICALL(0x2B02A020u); /* 0x2B02953E: call 0x2b02a020 */ /* not lifted */ 11837 RECOMP_FLAGS_IN(); 11838 ecx = eax; /* 0x2B029543: mov ecx, eax */ 11839 edx = MEM32(ecx); /* 0x2B029545: mov edx, dword ptr [ecx] */ 11840 eax = MEM32(ebp + 0x8); /* 0x2B029547: mov eax, dword ptr [ebp + 8] */ 11841 edi = POP32_VAL(esp); /* 0x2B02954A: pop edi */ 11842 MEM32(eax) = edx; /* 0x2B02954B: mov dword ptr [eax], edx */ 11843 ecx = MEM32(ecx + 0x4); /* 0x2B02954D: mov ecx, dword ptr [ecx + 4] */ 11844 esi = POP32_VAL(esp); /* 0x2B029550: pop esi */ 11845 MEM32(eax + 0x4) = ecx; /* 0x2B029551: mov dword ptr [eax + 4], ecx */ 11846 ebx = POP32_VAL(esp); /* 0x2B029554: pop ebx */ 11847 esp = ebp; /* 0x2B029555: mov esp, ebp */ 11848 ebp = POP32_VAL(esp); /* 0x2B029557: pop ebp */ 11849 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B029558: ret 8 */ 11850 RECOMP_REGS_OUT(); 11851 } 11852 11853 void sub_2B029560(void) { 11854 int _fpu_cmp = 0; 11855 uint32_t _cf = 0; 11856 int _df = 1; 11857 uint32_t _flag_k = FK_NONE; 11858 uint32_t _flag_a = 0, _flag_b = 0; 11859 uint32_t _itail_tgt = 0; 11860 RECOMP_REGS_LOCALS 11861 RECOMP_ENTER(0x2B029560u); 11862 11863 L_2B029560: 11864 PUSH32(esp, ebp); /* 0x2B029560: push ebp */ 11865 ebp = esp; /* 0x2B029561: mov ebp, esp */ 11866 PUSH32(esp, ecx); /* 0x2B029563: push ecx */ 11867 PUSH32(esp, ebx); /* 0x2B029564: push ebx */ 11868 PUSH32(esp, esi); /* 0x2B029565: push esi */ 11869 esi = MEM32(ebp + 0xC); /* 0x2B029566: mov esi, dword ptr [ebp + 0xc] */ 11870 PUSH32(esp, edi); /* 0x2B029569: push edi */ 11871 edi = ecx; /* 0x2B02956A: mov edi, ecx */ 11872 ecx = ebp + 0xC; /* 0x2B02956C: lea ecx, [ebp + 0xc] */ 11873 RECOMP_ICALL(0x2B02A660u); /* 0x2B02956F: call 0x2b02a660 */ /* not lifted */ 11874 RECOMP_FLAGS_IN(); 11875 edx = MEM32(esi); /* 0x2B029574: mov edx, dword ptr [esi] */ 11876 eax = MEM32(edi + 0x8); /* 0x2B029576: mov eax, dword ptr [edi + 8] */ 11877 /* cmp edx, eax */ /* 0x2B029579: cmp edx, eax */ 11878 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11880 _flag_k = FK_CMP; 11881 MEM32(ebp + (-0x4)) = esi; /* 0x2B02957B: mov dword ptr [ebp - 4], esi */ 11882 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0295A0; /* 0x2B02957E: jne 0x2b0295a0 */ 11883 L_2B029580: 11884 eax = MEM32(esi + 0x8); /* 0x2B029580: mov eax, dword ptr [esi + 8] */ 11885 L_2B029583: 11886 ecx = MEM32(ebp + (-0x4)); /* 0x2B029583: mov ecx, dword ptr [ebp - 4] */ 11887 edx = MEM32(ecx + 0x4); /* 0x2B029586: mov edx, dword ptr [ecx + 4] */ 11888 MEM32(eax + 0x4) = edx; /* 0x2B029589: mov dword ptr [eax + 4], edx */ 11889 ecx = MEM32(edi + 0x4); /* 0x2B02958C: mov ecx, dword ptr [edi + 4] */ 11890 /* cmp MEM32(ecx + 0x4), esi */ /* 0x2B02958F: cmp dword ptr [ecx + 4], esi */ 11891 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 11892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11893 _flag_k = FK_CMP; 11894 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029623; /* 0x2B029592: jne 0x2b029623 */ 11895 L_2B029598: 11896 MEM32(ecx + 0x4) = eax; /* 0x2B029598: mov dword ptr [ecx + 4], eax */ 11897 goto L_2B029631; /* 0x2B02959B: jmp 0x2b029631 */ 11898 L_2B0295A0: 11899 ecx = MEM32(esi + 0x8); /* 0x2B0295A0: mov ecx, dword ptr [esi + 8] */ 11900 /* cmp ecx, eax */ /* 0x2B0295A3: cmp ecx, eax */ 11901 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11903 _flag_k = FK_CMP; 11904 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0295AB; /* 0x2B0295A5: jne 0x2b0295ab */ 11905 L_2B0295A7: 11906 eax = edx; /* 0x2B0295A7: mov eax, edx */ 11907 RECOMP_BACKEDGE(); 11908 goto L_2B029583; /* 0x2B0295A9: jmp 0x2b029583 */ 11909 L_2B0295AB: 11910 eax = MEM32(ecx); /* 0x2B0295AB: mov eax, dword ptr [ecx] */ 11911 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x2B0295AD: mov bl, byte ptr [eax + 0x3d] */ 11912 /* test LO8(ebx), LO8(ebx) */ /* 0x2B0295B0: test bl, bl */ 11913 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11914 _cf = 0; 11915 _flag_k = FK_NARROW(FK_TEST, 24); 11916 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0295BF; /* 0x2B0295B2: jne 0x2b0295bf */ 11917 L_2B0295B4: 11918 ecx = eax; /* 0x2B0295B4: mov ecx, eax */ 11919 eax = MEM32(ecx); /* 0x2B0295B6: mov eax, dword ptr [ecx] */ 11920 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x2B0295B8: mov bl, byte ptr [eax + 0x3d] */ 11921 /* test LO8(ebx), LO8(ebx) */ /* 0x2B0295BB: test bl, bl */ 11922 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11923 _cf = 0; 11924 _flag_k = FK_NARROW(FK_TEST, 24); 11925 RECOMP_BACKEDGE(); 11926 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0295B4; /* 0x2B0295BD: je 0x2b0295b4 */ 11927 L_2B0295BF: 11928 /* cmp ecx, esi */ /* 0x2B0295BF: cmp ecx, esi */ 11929 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 11930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11931 _flag_k = FK_CMP; 11932 eax = MEM32(ecx + 0x8); /* 0x2B0295C1: mov eax, dword ptr [ecx + 8] */ 11933 MEM32(ebp + (-0x4)) = ecx; /* 0x2B0295C4: mov dword ptr [ebp - 4], ecx */ 11934 RECOMP_BACKEDGE(); 11935 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029583; /* 0x2B0295C7: je 0x2b029583 */ 11936 L_2B0295C9: 11937 MEM32(edx + 0x4) = ecx; /* 0x2B0295C9: mov dword ptr [edx + 4], ecx */ 11938 edx = MEM32(esi); /* 0x2B0295CC: mov edx, dword ptr [esi] */ 11939 MEM32(ecx) = edx; /* 0x2B0295CE: mov dword ptr [ecx], edx */ 11940 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0295D0: cmp ecx, dword ptr [esi + 8] */ 11941 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11943 _flag_k = FK_CMP; 11944 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0295DA; /* 0x2B0295D3: jne 0x2b0295da */ 11945 L_2B0295D5: 11946 MEM32(eax + 0x4) = ecx; /* 0x2B0295D5: mov dword ptr [eax + 4], ecx */ 11947 goto L_2B0295F1; /* 0x2B0295D8: jmp 0x2b0295f1 */ 11948 L_2B0295DA: 11949 edx = MEM32(ecx + 0x4); /* 0x2B0295DA: mov edx, dword ptr [ecx + 4] */ 11950 MEM32(eax + 0x4) = edx; /* 0x2B0295DD: mov dword ptr [eax + 4], edx */ 11951 edx = MEM32(ecx + 0x4); /* 0x2B0295E0: mov edx, dword ptr [ecx + 4] */ 11952 MEM32(edx) = eax; /* 0x2B0295E3: mov dword ptr [edx], eax */ 11953 edx = MEM32(esi + 0x8); /* 0x2B0295E5: mov edx, dword ptr [esi + 8] */ 11954 MEM32(ecx + 0x8) = edx; /* 0x2B0295E8: mov dword ptr [ecx + 8], edx */ 11955 edx = MEM32(esi + 0x8); /* 0x2B0295EB: mov edx, dword ptr [esi + 8] */ 11956 MEM32(edx + 0x4) = ecx; /* 0x2B0295EE: mov dword ptr [edx + 4], ecx */ 11957 L_2B0295F1: 11958 edx = MEM32(edi + 0x4); /* 0x2B0295F1: mov edx, dword ptr [edi + 4] */ 11959 /* cmp MEM32(edx + 0x4), esi */ /* 0x2B0295F4: cmp dword ptr [edx + 4], esi */ 11960 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 11961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11962 _flag_k = FK_CMP; 11963 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0295FE; /* 0x2B0295F7: jne 0x2b0295fe */ 11964 L_2B0295F9: 11965 MEM32(edx + 0x4) = ecx; /* 0x2B0295F9: mov dword ptr [edx + 4], ecx */ 11966 goto L_2B02960C; /* 0x2B0295FC: jmp 0x2b02960c */ 11967 L_2B0295FE: 11968 edx = MEM32(esi + 0x4); /* 0x2B0295FE: mov edx, dword ptr [esi + 4] */ 11969 /* cmp MEM32(edx), esi */ /* 0x2B029601: cmp dword ptr [edx], esi */ 11970 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 11971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11972 _flag_k = FK_CMP; 11973 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029609; /* 0x2B029603: jne 0x2b029609 */ 11974 L_2B029605: 11975 MEM32(edx) = ecx; /* 0x2B029605: mov dword ptr [edx], ecx */ 11976 goto L_2B02960C; /* 0x2B029607: jmp 0x2b02960c */ 11977 L_2B029609: 11978 MEM32(edx + 0x8) = ecx; /* 0x2B029609: mov dword ptr [edx + 8], ecx */ 11979 L_2B02960C: 11980 edx = MEM32(esi + 0x4); /* 0x2B02960C: mov edx, dword ptr [esi + 4] */ 11981 MEM32(ecx + 0x4) = edx; /* 0x2B02960F: mov dword ptr [ecx + 4], edx */ 11982 SET_LO8(ebx, MEM8(esi + 0x3C)); /* 0x2B029612: mov bl, byte ptr [esi + 0x3c] */ 11983 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029615: mov dl, byte ptr [ecx + 0x3c] */ 11984 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029618: mov byte ptr [ecx + 0x3c], bl */ 11985 MEM8(esi + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B02961B: mov byte ptr [esi + 0x3c], dl */ 11986 MEM32(ebp + (-0x4)) = esi; /* 0x2B02961E: mov dword ptr [ebp - 4], esi */ 11987 goto L_2B029688; /* 0x2B029621: jmp 0x2b029688 */ 11988 L_2B029623: 11989 ecx = MEM32(esi + 0x4); /* 0x2B029623: mov ecx, dword ptr [esi + 4] */ 11990 /* cmp MEM32(ecx), esi */ /* 0x2B029626: cmp dword ptr [ecx], esi */ 11991 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 11992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11993 _flag_k = FK_CMP; 11994 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02962E; /* 0x2B029628: jne 0x2b02962e */ 11995 L_2B02962A: 11996 MEM32(ecx) = eax; /* 0x2B02962A: mov dword ptr [ecx], eax */ 11997 goto L_2B029631; /* 0x2B02962C: jmp 0x2b029631 */ 11998 L_2B02962E: 11999 MEM32(ecx + 0x8) = eax; /* 0x2B02962E: mov dword ptr [ecx + 8], eax */ 12000 L_2B029631: 12001 ebx = MEM32(edi + 0x4); /* 0x2B029631: mov ebx, dword ptr [edi + 4] */ 12002 /* cmp MEM32(ebx), esi */ /* 0x2B029634: cmp dword ptr [ebx], esi */ 12003 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 12004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12005 _flag_k = FK_CMP; 12006 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02965B; /* 0x2B029636: jne 0x2b02965b */ 12007 L_2B029638: 12008 ecx = MEM32(esi + 0x8); /* 0x2B029638: mov ecx, dword ptr [esi + 8] */ 12009 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2B02963B: cmp ecx, dword ptr [edi + 8] */ 12010 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12012 _flag_k = FK_CMP; 12013 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029645; /* 0x2B02963E: jne 0x2b029645 */ 12014 L_2B029640: 12015 edx = MEM32(esi + 0x4); /* 0x2B029640: mov edx, dword ptr [esi + 4] */ 12016 goto L_2B029659; /* 0x2B029643: jmp 0x2b029659 */ 12017 L_2B029645: 12018 ecx = MEM32(eax); /* 0x2B029645: mov ecx, dword ptr [eax] */ 12019 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B029647: cmp byte ptr [ecx + 0x3d], 0 */ 12020 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 12021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12022 _flag_k = FK_NARROW(FK_CMP, 24); 12023 edx = eax; /* 0x2B02964B: mov edx, eax */ 12024 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029659; /* 0x2B02964D: jne 0x2b029659 */ 12025 L_2B02964F: 12026 edx = ecx; /* 0x2B02964F: mov edx, ecx */ 12027 ecx = MEM32(edx); /* 0x2B029651: mov ecx, dword ptr [edx] */ 12028 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B029653: cmp byte ptr [ecx + 0x3d], 0 */ 12029 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 12030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12031 _flag_k = FK_NARROW(FK_CMP, 24); 12032 RECOMP_BACKEDGE(); 12033 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02964F; /* 0x2B029657: je 0x2b02964f */ 12034 L_2B029659: 12035 MEM32(ebx) = edx; /* 0x2B029659: mov dword ptr [ebx], edx */ 12036 L_2B02965B: 12037 ebx = MEM32(edi + 0x4); /* 0x2B02965B: mov ebx, dword ptr [edi + 4] */ 12038 /* cmp MEM32(ebx + 0x8), esi */ /* 0x2B02965E: cmp dword ptr [ebx + 8], esi */ 12039 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 12040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12041 _flag_k = FK_CMP; 12042 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029688; /* 0x2B029661: jne 0x2b029688 */ 12043 L_2B029663: 12044 ecx = MEM32(esi); /* 0x2B029663: mov ecx, dword ptr [esi] */ 12045 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2B029665: cmp ecx, dword ptr [edi + 8] */ 12046 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12048 _flag_k = FK_CMP; 12049 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02966F; /* 0x2B029668: jne 0x2b02966f */ 12050 L_2B02966A: 12051 edx = MEM32(esi + 0x4); /* 0x2B02966A: mov edx, dword ptr [esi + 4] */ 12052 goto L_2B029685; /* 0x2B02966D: jmp 0x2b029685 */ 12053 L_2B02966F: 12054 ecx = MEM32(eax + 0x8); /* 0x2B02966F: mov ecx, dword ptr [eax + 8] */ 12055 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B029672: cmp byte ptr [ecx + 0x3d], 0 */ 12056 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 12057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12058 _flag_k = FK_NARROW(FK_CMP, 24); 12059 edx = eax; /* 0x2B029676: mov edx, eax */ 12060 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029685; /* 0x2B029678: jne 0x2b029685 */ 12061 L_2B02967A: 12062 edx = ecx; /* 0x2B02967A: mov edx, ecx */ 12063 ecx = MEM32(edx + 0x8); /* 0x2B02967C: mov ecx, dword ptr [edx + 8] */ 12064 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B02967F: cmp byte ptr [ecx + 0x3d], 0 */ 12065 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 12066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12067 _flag_k = FK_NARROW(FK_CMP, 24); 12068 RECOMP_BACKEDGE(); 12069 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02967A; /* 0x2B029683: je 0x2b02967a */ 12070 L_2B029685: 12071 MEM32(ebx + 0x8) = edx; /* 0x2B029685: mov dword ptr [ebx + 8], edx */ 12072 L_2B029688: 12073 esi = MEM32(ebp + (-0x4)); /* 0x2B029688: mov esi, dword ptr [ebp - 4] */ 12074 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x2B02968B: mov cl, byte ptr [esi + 0x3c] */ 12075 SET_LO8(ebx, 1); /* 0x2B02968E: mov bl, 1 */ 12076 /* cmp LO8(ecx), LO8(ebx) */ /* 0x2B029690: cmp cl, bl */ 12077 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12079 _flag_k = FK_NARROW(FK_CMP, 24); 12080 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F8; /* 0x2B029692: jne 0x2b0298f8 */ 12081 L_2B029698: 12082 ecx = MEM32(edi + 0x4); /* 0x2B029698: mov ecx, dword ptr [edi + 4] */ 12083 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B02969B: cmp eax, dword ptr [ecx + 4] */ 12084 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12086 _flag_k = FK_CMP; 12087 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B02969E: je 0x2b0298f2 */ 12088 L_2B0296A4: 12089 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x2B0296A4: cmp byte ptr [eax + 0x3c], bl */ 12090 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12092 _flag_k = FK_NARROW(FK_CMP, 24); 12093 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B0296A7: jne 0x2b0298f2 */ 12094 L_2B0296AD: 12095 edx = MEM32(eax + 0x4); /* 0x2B0296AD: mov edx, dword ptr [eax + 4] */ 12096 ecx = MEM32(edx); /* 0x2B0296B0: mov ecx, dword ptr [edx] */ 12097 /* cmp eax, ecx */ /* 0x2B0296B2: cmp eax, ecx */ 12098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12100 _flag_k = FK_CMP; 12101 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029724; /* 0x2B0296B4: jne 0x2b029724 */ 12102 L_2B0296B6: 12103 ecx = MEM32(edx + 0x8); /* 0x2B0296B6: mov ecx, dword ptr [edx + 8] */ 12104 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B0296B9: mov dl, byte ptr [ecx + 0x3c] */ 12105 /* test LO8(edx), LO8(edx) */ /* 0x2B0296BC: test dl, dl */ 12106 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12107 _cf = 0; 12108 _flag_k = FK_NARROW(FK_TEST, 24); 12109 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02970B; /* 0x2B0296BE: jne 0x2b02970b */ 12110 L_2B0296C0: 12111 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0296C0: mov byte ptr [ecx + 0x3c], bl */ 12112 edx = MEM32(eax + 0x4); /* 0x2B0296C3: mov edx, dword ptr [eax + 4] */ 12113 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x2B0296C6: mov byte ptr [edx + 0x3c], 0 */ 12114 ecx = MEM32(eax + 0x4); /* 0x2B0296CA: mov ecx, dword ptr [eax + 4] */ 12115 edx = MEM32(ecx + 0x8); /* 0x2B0296CD: mov edx, dword ptr [ecx + 8] */ 12116 esi = MEM32(edx); /* 0x2B0296D0: mov esi, dword ptr [edx] */ 12117 MEM32(ecx + 0x8) = esi; /* 0x2B0296D2: mov dword ptr [ecx + 8], esi */ 12118 esi = MEM32(edx); /* 0x2B0296D5: mov esi, dword ptr [edx] */ 12119 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0296D7: cmp esi, dword ptr [edi + 8] */ 12120 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12122 _flag_k = FK_CMP; 12123 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0296DF; /* 0x2B0296DA: je 0x2b0296df */ 12124 L_2B0296DC: 12125 MEM32(esi + 0x4) = ecx; /* 0x2B0296DC: mov dword ptr [esi + 4], ecx */ 12126 L_2B0296DF: 12127 esi = MEM32(ecx + 0x4); /* 0x2B0296DF: mov esi, dword ptr [ecx + 4] */ 12128 MEM32(edx + 0x4) = esi; /* 0x2B0296E2: mov dword ptr [edx + 4], esi */ 12129 esi = MEM32(edi + 0x4); /* 0x2B0296E5: mov esi, dword ptr [edi + 4] */ 12130 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0296E8: cmp ecx, dword ptr [esi + 4] */ 12131 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12133 _flag_k = FK_CMP; 12134 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296F2; /* 0x2B0296EB: jne 0x2b0296f2 */ 12135 L_2B0296ED: 12136 MEM32(esi + 0x4) = edx; /* 0x2B0296ED: mov dword ptr [esi + 4], edx */ 12137 goto L_2B029700; /* 0x2B0296F0: jmp 0x2b029700 */ 12138 L_2B0296F2: 12139 esi = MEM32(ecx + 0x4); /* 0x2B0296F2: mov esi, dword ptr [ecx + 4] */ 12140 /* cmp ecx, MEM32(esi) */ /* 0x2B0296F5: cmp ecx, dword ptr [esi] */ 12141 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12143 _flag_k = FK_CMP; 12144 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296FD; /* 0x2B0296F7: jne 0x2b0296fd */ 12145 L_2B0296F9: 12146 MEM32(esi) = edx; /* 0x2B0296F9: mov dword ptr [esi], edx */ 12147 goto L_2B029700; /* 0x2B0296FB: jmp 0x2b029700 */ 12148 L_2B0296FD: 12149 MEM32(esi + 0x8) = edx; /* 0x2B0296FD: mov dword ptr [esi + 8], edx */ 12150 L_2B029700: 12151 MEM32(edx) = ecx; /* 0x2B029700: mov dword ptr [edx], ecx */ 12152 MEM32(ecx + 0x4) = edx; /* 0x2B029702: mov dword ptr [ecx + 4], edx */ 12153 ecx = MEM32(eax + 0x4); /* 0x2B029705: mov ecx, dword ptr [eax + 4] */ 12154 ecx = MEM32(ecx + 0x8); /* 0x2B029708: mov ecx, dword ptr [ecx + 8] */ 12155 L_2B02970B: 12156 edx = MEM32(ecx); /* 0x2B02970B: mov edx, dword ptr [ecx] */ 12157 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02970D: cmp byte ptr [edx + 0x3c], bl */ 12158 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12160 _flag_k = FK_NARROW(FK_CMP, 24); 12161 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B029710: jne 0x2b0297a6 */ 12162 L_2B029716: 12163 edx = MEM32(ecx + 0x8); /* 0x2B029716: mov edx, dword ptr [ecx + 8] */ 12164 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029719: cmp byte ptr [edx + 0x3c], bl */ 12165 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12167 _flag_k = FK_NARROW(FK_CMP, 24); 12168 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B02971C: jne 0x2b0297a6 */ 12169 L_2B029722: 12170 goto L_2B02978E; /* 0x2B029722: jmp 0x2b02978e */ 12171 L_2B029724: 12172 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029724: mov dl, byte ptr [ecx + 0x3c] */ 12173 /* test LO8(edx), LO8(edx) */ /* 0x2B029727: test dl, dl */ 12174 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12175 _cf = 0; 12176 _flag_k = FK_NARROW(FK_TEST, 24); 12177 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029777; /* 0x2B029729: jne 0x2b029777 */ 12178 L_2B02972B: 12179 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02972B: mov byte ptr [ecx + 0x3c], bl */ 12180 ecx = MEM32(eax + 0x4); /* 0x2B02972E: mov ecx, dword ptr [eax + 4] */ 12181 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029731: mov byte ptr [ecx + 0x3c], 0 */ 12182 ecx = MEM32(eax + 0x4); /* 0x2B029735: mov ecx, dword ptr [eax + 4] */ 12183 edx = MEM32(ecx); /* 0x2B029738: mov edx, dword ptr [ecx] */ 12184 esi = MEM32(edx + 0x8); /* 0x2B02973A: mov esi, dword ptr [edx + 8] */ 12185 MEM32(ecx) = esi; /* 0x2B02973D: mov dword ptr [ecx], esi */ 12186 esi = MEM32(edx + 0x8); /* 0x2B02973F: mov esi, dword ptr [edx + 8] */ 12187 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029742: cmp esi, dword ptr [edi + 8] */ 12188 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12190 _flag_k = FK_CMP; 12191 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02974A; /* 0x2B029745: je 0x2b02974a */ 12192 L_2B029747: 12193 MEM32(esi + 0x4) = ecx; /* 0x2B029747: mov dword ptr [esi + 4], ecx */ 12194 L_2B02974A: 12195 esi = MEM32(ecx + 0x4); /* 0x2B02974A: mov esi, dword ptr [ecx + 4] */ 12196 MEM32(edx + 0x4) = esi; /* 0x2B02974D: mov dword ptr [edx + 4], esi */ 12197 esi = MEM32(edi + 0x4); /* 0x2B029750: mov esi, dword ptr [edi + 4] */ 12198 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B029753: cmp ecx, dword ptr [esi + 4] */ 12199 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12201 _flag_k = FK_CMP; 12202 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02975D; /* 0x2B029756: jne 0x2b02975d */ 12203 L_2B029758: 12204 MEM32(esi + 0x4) = edx; /* 0x2B029758: mov dword ptr [esi + 4], edx */ 12205 goto L_2B02976C; /* 0x2B02975B: jmp 0x2b02976c */ 12206 L_2B02975D: 12207 esi = MEM32(ecx + 0x4); /* 0x2B02975D: mov esi, dword ptr [ecx + 4] */ 12208 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B029760: cmp ecx, dword ptr [esi + 8] */ 12209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12211 _flag_k = FK_CMP; 12212 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02976A; /* 0x2B029763: jne 0x2b02976a */ 12213 L_2B029765: 12214 MEM32(esi + 0x8) = edx; /* 0x2B029765: mov dword ptr [esi + 8], edx */ 12215 goto L_2B02976C; /* 0x2B029768: jmp 0x2b02976c */ 12216 L_2B02976A: 12217 MEM32(esi) = edx; /* 0x2B02976A: mov dword ptr [esi], edx */ 12218 L_2B02976C: 12219 MEM32(edx + 0x8) = ecx; /* 0x2B02976C: mov dword ptr [edx + 8], ecx */ 12220 MEM32(ecx + 0x4) = edx; /* 0x2B02976F: mov dword ptr [ecx + 4], edx */ 12221 edx = MEM32(eax + 0x4); /* 0x2B029772: mov edx, dword ptr [eax + 4] */ 12222 ecx = MEM32(edx); /* 0x2B029775: mov ecx, dword ptr [edx] */ 12223 L_2B029777: 12224 edx = MEM32(ecx + 0x8); /* 0x2B029777: mov edx, dword ptr [ecx + 8] */ 12225 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02977A: cmp byte ptr [edx + 0x3c], bl */ 12226 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12228 _flag_k = FK_NARROW(FK_CMP, 24); 12229 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B02977D: jne 0x2b029853 */ 12230 L_2B029783: 12231 edx = MEM32(ecx); /* 0x2B029783: mov edx, dword ptr [ecx] */ 12232 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029785: cmp byte ptr [edx + 0x3c], bl */ 12233 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12235 _flag_k = FK_NARROW(FK_CMP, 24); 12236 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B029788: jne 0x2b029853 */ 12237 L_2B02978E: 12238 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B02978E: mov byte ptr [ecx + 0x3c], 0 */ 12239 ecx = MEM32(edi + 0x4); /* 0x2B029792: mov ecx, dword ptr [edi + 4] */ 12240 eax = MEM32(eax + 0x4); /* 0x2B029795: mov eax, dword ptr [eax + 4] */ 12241 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B029798: cmp eax, dword ptr [ecx + 4] */ 12242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12244 _flag_k = FK_CMP; 12245 RECOMP_BACKEDGE(); 12246 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296A4; /* 0x2B02979B: jne 0x2b0296a4 */ 12247 L_2B0297A1: 12248 goto L_2B0298F2; /* 0x2B0297A1: jmp 0x2b0298f2 */ 12249 L_2B0297A6: 12250 edx = MEM32(ecx + 0x8); /* 0x2B0297A6: mov edx, dword ptr [ecx + 8] */ 12251 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B0297A9: cmp byte ptr [edx + 0x3c], bl */ 12252 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12254 _flag_k = FK_NARROW(FK_CMP, 24); 12255 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297F7; /* 0x2B0297AC: jne 0x2b0297f7 */ 12256 L_2B0297AE: 12257 edx = MEM32(ecx); /* 0x2B0297AE: mov edx, dword ptr [ecx] */ 12258 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0297B0: mov byte ptr [edx + 0x3c], bl */ 12259 edx = MEM32(ecx); /* 0x2B0297B3: mov edx, dword ptr [ecx] */ 12260 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B0297B5: mov byte ptr [ecx + 0x3c], 0 */ 12261 esi = MEM32(edx + 0x8); /* 0x2B0297B9: mov esi, dword ptr [edx + 8] */ 12262 MEM32(ecx) = esi; /* 0x2B0297BC: mov dword ptr [ecx], esi */ 12263 esi = MEM32(edx + 0x8); /* 0x2B0297BE: mov esi, dword ptr [edx + 8] */ 12264 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0297C1: cmp esi, dword ptr [edi + 8] */ 12265 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12267 _flag_k = FK_CMP; 12268 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0297C9; /* 0x2B0297C4: je 0x2b0297c9 */ 12269 L_2B0297C6: 12270 MEM32(esi + 0x4) = ecx; /* 0x2B0297C6: mov dword ptr [esi + 4], ecx */ 12271 L_2B0297C9: 12272 esi = MEM32(ecx + 0x4); /* 0x2B0297C9: mov esi, dword ptr [ecx + 4] */ 12273 MEM32(edx + 0x4) = esi; /* 0x2B0297CC: mov dword ptr [edx + 4], esi */ 12274 esi = MEM32(edi + 0x4); /* 0x2B0297CF: mov esi, dword ptr [edi + 4] */ 12275 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0297D2: cmp ecx, dword ptr [esi + 4] */ 12276 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12278 _flag_k = FK_CMP; 12279 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297DC; /* 0x2B0297D5: jne 0x2b0297dc */ 12280 L_2B0297D7: 12281 MEM32(esi + 0x4) = edx; /* 0x2B0297D7: mov dword ptr [esi + 4], edx */ 12282 goto L_2B0297EB; /* 0x2B0297DA: jmp 0x2b0297eb */ 12283 L_2B0297DC: 12284 esi = MEM32(ecx + 0x4); /* 0x2B0297DC: mov esi, dword ptr [ecx + 4] */ 12285 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0297DF: cmp ecx, dword ptr [esi + 8] */ 12286 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12288 _flag_k = FK_CMP; 12289 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297E9; /* 0x2B0297E2: jne 0x2b0297e9 */ 12290 L_2B0297E4: 12291 MEM32(esi + 0x8) = edx; /* 0x2B0297E4: mov dword ptr [esi + 8], edx */ 12292 goto L_2B0297EB; /* 0x2B0297E7: jmp 0x2b0297eb */ 12293 L_2B0297E9: 12294 MEM32(esi) = edx; /* 0x2B0297E9: mov dword ptr [esi], edx */ 12295 L_2B0297EB: 12296 MEM32(edx + 0x8) = ecx; /* 0x2B0297EB: mov dword ptr [edx + 8], ecx */ 12297 MEM32(ecx + 0x4) = edx; /* 0x2B0297EE: mov dword ptr [ecx + 4], edx */ 12298 ecx = MEM32(eax + 0x4); /* 0x2B0297F1: mov ecx, dword ptr [eax + 4] */ 12299 ecx = MEM32(ecx + 0x8); /* 0x2B0297F4: mov ecx, dword ptr [ecx + 8] */ 12300 L_2B0297F7: 12301 edx = MEM32(eax + 0x4); /* 0x2B0297F7: mov edx, dword ptr [eax + 4] */ 12302 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0297FA: mov dl, byte ptr [edx + 0x3c] */ 12303 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0297FD: mov byte ptr [ecx + 0x3c], dl */ 12304 edx = MEM32(eax + 0x4); /* 0x2B029800: mov edx, dword ptr [eax + 4] */ 12305 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029803: mov byte ptr [edx + 0x3c], bl */ 12306 ecx = MEM32(ecx + 0x8); /* 0x2B029806: mov ecx, dword ptr [ecx + 8] */ 12307 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029809: mov byte ptr [ecx + 0x3c], bl */ 12308 ecx = MEM32(eax + 0x4); /* 0x2B02980C: mov ecx, dword ptr [eax + 4] */ 12309 edx = MEM32(ecx + 0x8); /* 0x2B02980F: mov edx, dword ptr [ecx + 8] */ 12310 esi = MEM32(edx); /* 0x2B029812: mov esi, dword ptr [edx] */ 12311 MEM32(ecx + 0x8) = esi; /* 0x2B029814: mov dword ptr [ecx + 8], esi */ 12312 esi = MEM32(edx); /* 0x2B029817: mov esi, dword ptr [edx] */ 12313 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029819: cmp esi, dword ptr [edi + 8] */ 12314 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12316 _flag_k = FK_CMP; 12317 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029821; /* 0x2B02981C: je 0x2b029821 */ 12318 L_2B02981E: 12319 MEM32(esi + 0x4) = ecx; /* 0x2B02981E: mov dword ptr [esi + 4], ecx */ 12320 L_2B029821: 12321 esi = MEM32(ecx + 0x4); /* 0x2B029821: mov esi, dword ptr [ecx + 4] */ 12322 MEM32(edx + 0x4) = esi; /* 0x2B029824: mov dword ptr [edx + 4], esi */ 12323 esi = MEM32(edi + 0x4); /* 0x2B029827: mov esi, dword ptr [edi + 4] */ 12324 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02982A: cmp ecx, dword ptr [esi + 4] */ 12325 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12327 _flag_k = FK_CMP; 12328 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029839; /* 0x2B02982D: jne 0x2b029839 */ 12329 L_2B02982F: 12330 MEM32(esi + 0x4) = edx; /* 0x2B02982F: mov dword ptr [esi + 4], edx */ 12331 MEM32(edx) = ecx; /* 0x2B029832: mov dword ptr [edx], ecx */ 12332 goto L_2B0298EF; /* 0x2B029834: jmp 0x2b0298ef */ 12333 L_2B029839: 12334 esi = MEM32(ecx + 0x4); /* 0x2B029839: mov esi, dword ptr [ecx + 4] */ 12335 /* cmp ecx, MEM32(esi) */ /* 0x2B02983C: cmp ecx, dword ptr [esi] */ 12336 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12338 _flag_k = FK_CMP; 12339 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029849; /* 0x2B02983E: jne 0x2b029849 */ 12340 L_2B029840: 12341 MEM32(esi) = edx; /* 0x2B029840: mov dword ptr [esi], edx */ 12342 MEM32(edx) = ecx; /* 0x2B029842: mov dword ptr [edx], ecx */ 12343 goto L_2B0298EF; /* 0x2B029844: jmp 0x2b0298ef */ 12344 L_2B029849: 12345 MEM32(esi + 0x8) = edx; /* 0x2B029849: mov dword ptr [esi + 8], edx */ 12346 MEM32(edx) = ecx; /* 0x2B02984C: mov dword ptr [edx], ecx */ 12347 goto L_2B0298EF; /* 0x2B02984E: jmp 0x2b0298ef */ 12348 L_2B029853: 12349 edx = MEM32(ecx); /* 0x2B029853: mov edx, dword ptr [ecx] */ 12350 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029855: cmp byte ptr [edx + 0x3c], bl */ 12351 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12353 _flag_k = FK_NARROW(FK_CMP, 24); 12354 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298A1; /* 0x2B029858: jne 0x2b0298a1 */ 12355 L_2B02985A: 12356 edx = MEM32(ecx + 0x8); /* 0x2B02985A: mov edx, dword ptr [ecx + 8] */ 12357 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02985D: mov byte ptr [edx + 0x3c], bl */ 12358 edx = MEM32(ecx + 0x8); /* 0x2B029860: mov edx, dword ptr [ecx + 8] */ 12359 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029863: mov byte ptr [ecx + 0x3c], 0 */ 12360 esi = MEM32(edx); /* 0x2B029867: mov esi, dword ptr [edx] */ 12361 MEM32(ecx + 0x8) = esi; /* 0x2B029869: mov dword ptr [ecx + 8], esi */ 12362 esi = MEM32(edx); /* 0x2B02986C: mov esi, dword ptr [edx] */ 12363 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B02986E: cmp esi, dword ptr [edi + 8] */ 12364 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12366 _flag_k = FK_CMP; 12367 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029876; /* 0x2B029871: je 0x2b029876 */ 12368 L_2B029873: 12369 MEM32(esi + 0x4) = ecx; /* 0x2B029873: mov dword ptr [esi + 4], ecx */ 12370 L_2B029876: 12371 esi = MEM32(ecx + 0x4); /* 0x2B029876: mov esi, dword ptr [ecx + 4] */ 12372 MEM32(edx + 0x4) = esi; /* 0x2B029879: mov dword ptr [edx + 4], esi */ 12373 esi = MEM32(edi + 0x4); /* 0x2B02987C: mov esi, dword ptr [edi + 4] */ 12374 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02987F: cmp ecx, dword ptr [esi + 4] */ 12375 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12377 _flag_k = FK_CMP; 12378 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029889; /* 0x2B029882: jne 0x2b029889 */ 12379 L_2B029884: 12380 MEM32(esi + 0x4) = edx; /* 0x2B029884: mov dword ptr [esi + 4], edx */ 12381 goto L_2B029897; /* 0x2B029887: jmp 0x2b029897 */ 12382 L_2B029889: 12383 esi = MEM32(ecx + 0x4); /* 0x2B029889: mov esi, dword ptr [ecx + 4] */ 12384 /* cmp ecx, MEM32(esi) */ /* 0x2B02988C: cmp ecx, dword ptr [esi] */ 12385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12387 _flag_k = FK_CMP; 12388 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029894; /* 0x2B02988E: jne 0x2b029894 */ 12389 L_2B029890: 12390 MEM32(esi) = edx; /* 0x2B029890: mov dword ptr [esi], edx */ 12391 goto L_2B029897; /* 0x2B029892: jmp 0x2b029897 */ 12392 L_2B029894: 12393 MEM32(esi + 0x8) = edx; /* 0x2B029894: mov dword ptr [esi + 8], edx */ 12394 L_2B029897: 12395 MEM32(edx) = ecx; /* 0x2B029897: mov dword ptr [edx], ecx */ 12396 MEM32(ecx + 0x4) = edx; /* 0x2B029899: mov dword ptr [ecx + 4], edx */ 12397 ecx = MEM32(eax + 0x4); /* 0x2B02989C: mov ecx, dword ptr [eax + 4] */ 12398 ecx = MEM32(ecx); /* 0x2B02989F: mov ecx, dword ptr [ecx] */ 12399 L_2B0298A1: 12400 edx = MEM32(eax + 0x4); /* 0x2B0298A1: mov edx, dword ptr [eax + 4] */ 12401 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0298A4: mov dl, byte ptr [edx + 0x3c] */ 12402 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0298A7: mov byte ptr [ecx + 0x3c], dl */ 12403 edx = MEM32(eax + 0x4); /* 0x2B0298AA: mov edx, dword ptr [eax + 4] */ 12404 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298AD: mov byte ptr [edx + 0x3c], bl */ 12405 ecx = MEM32(ecx); /* 0x2B0298B0: mov ecx, dword ptr [ecx] */ 12406 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298B2: mov byte ptr [ecx + 0x3c], bl */ 12407 ecx = MEM32(eax + 0x4); /* 0x2B0298B5: mov ecx, dword ptr [eax + 4] */ 12408 edx = MEM32(ecx); /* 0x2B0298B8: mov edx, dword ptr [ecx] */ 12409 esi = MEM32(edx + 0x8); /* 0x2B0298BA: mov esi, dword ptr [edx + 8] */ 12410 MEM32(ecx) = esi; /* 0x2B0298BD: mov dword ptr [ecx], esi */ 12411 esi = MEM32(edx + 0x8); /* 0x2B0298BF: mov esi, dword ptr [edx + 8] */ 12412 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0298C2: cmp esi, dword ptr [edi + 8] */ 12413 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12415 _flag_k = FK_CMP; 12416 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298CA; /* 0x2B0298C5: je 0x2b0298ca */ 12417 L_2B0298C7: 12418 MEM32(esi + 0x4) = ecx; /* 0x2B0298C7: mov dword ptr [esi + 4], ecx */ 12419 L_2B0298CA: 12420 esi = MEM32(ecx + 0x4); /* 0x2B0298CA: mov esi, dword ptr [ecx + 4] */ 12421 MEM32(edx + 0x4) = esi; /* 0x2B0298CD: mov dword ptr [edx + 4], esi */ 12422 esi = MEM32(edi + 0x4); /* 0x2B0298D0: mov esi, dword ptr [edi + 4] */ 12423 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0298D3: cmp ecx, dword ptr [esi + 4] */ 12424 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12426 _flag_k = FK_CMP; 12427 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298DD; /* 0x2B0298D6: jne 0x2b0298dd */ 12428 L_2B0298D8: 12429 MEM32(esi + 0x4) = edx; /* 0x2B0298D8: mov dword ptr [esi + 4], edx */ 12430 goto L_2B0298EC; /* 0x2B0298DB: jmp 0x2b0298ec */ 12431 L_2B0298DD: 12432 esi = MEM32(ecx + 0x4); /* 0x2B0298DD: mov esi, dword ptr [ecx + 4] */ 12433 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0298E0: cmp ecx, dword ptr [esi + 8] */ 12434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12436 _flag_k = FK_CMP; 12437 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298EA; /* 0x2B0298E3: jne 0x2b0298ea */ 12438 L_2B0298E5: 12439 MEM32(esi + 0x8) = edx; /* 0x2B0298E5: mov dword ptr [esi + 8], edx */ 12440 goto L_2B0298EC; /* 0x2B0298E8: jmp 0x2b0298ec */ 12441 L_2B0298EA: 12442 MEM32(esi) = edx; /* 0x2B0298EA: mov dword ptr [esi], edx */ 12443 L_2B0298EC: 12444 MEM32(edx + 0x8) = ecx; /* 0x2B0298EC: mov dword ptr [edx + 8], ecx */ 12445 L_2B0298EF: 12446 MEM32(ecx + 0x4) = edx; /* 0x2B0298EF: mov dword ptr [ecx + 4], edx */ 12447 L_2B0298F2: 12448 esi = MEM32(ebp + (-0x4)); /* 0x2B0298F2: mov esi, dword ptr [ebp - 4] */ 12449 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298F5: mov byte ptr [eax + 0x3c], bl */ 12450 L_2B0298F8: 12451 ecx = esi + 0xC; /* 0x2B0298F8: lea ecx, [esi + 0xc] */ 12452 RECOMP_ICALL(0x2B012D80u); /* 0x2B0298FB: call 0x2b012d80 */ /* not lifted */ 12453 RECOMP_FLAGS_IN(); 12454 PUSH32(esp, esi); /* 0x2B029900: push esi */ 12455 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B029901: call 0x2b0ab1ba */ /* not lifted */ 12456 RECOMP_FLAGS_IN(); 12457 eax = MEM32(edi + 0x10); /* 0x2B029906: mov eax, dword ptr [edi + 0x10] */ 12458 edx = MEM32(ebp + 0xC); /* 0x2B029909: mov edx, dword ptr [ebp + 0xc] */ 12459 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12461 esp = esp + 4; /* 0x2B02990C: add esp, 4 */ 12462 _flag_k = FK_ADD; 12463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12464 eax = eax - 1; /* 0x2B02990F: dec eax */ 12465 _flag_k = FK_DEC; 12466 MEM32(edi + 0x10) = eax; /* 0x2B029910: mov dword ptr [edi + 0x10], eax */ 12467 eax = MEM32(ebp + 0x8); /* 0x2B029913: mov eax, dword ptr [ebp + 8] */ 12468 edi = POP32_VAL(esp); /* 0x2B029916: pop edi */ 12469 esi = POP32_VAL(esp); /* 0x2B029917: pop esi */ 12470 MEM32(eax) = edx; /* 0x2B029918: mov dword ptr [eax], edx */ 12471 ebx = POP32_VAL(esp); /* 0x2B02991A: pop ebx */ 12472 esp = ebp; /* 0x2B02991B: mov esp, ebp */ 12473 ebp = POP32_VAL(esp); /* 0x2B02991D: pop ebp */ 12474 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02991E: ret 8 */ 12475 RECOMP_REGS_OUT(); 12476 } 12477 12478 void sub_2B029631(void) { 12479 int _fpu_cmp = 0; 12480 uint32_t _cf = 0; 12481 int _df = 1; 12482 uint32_t _flag_k = FK_NONE; 12483 uint32_t _flag_a = 0, _flag_b = 0; 12484 uint32_t _itail_tgt = 0; 12485 RECOMP_REGS_LOCALS 12486 RECOMP_ENTER(0x2B029631u); 12487 12488 L_2B029631: 12489 ebx = MEM32(edi + 0x4); /* 0x2B029631: mov ebx, dword ptr [edi + 4] */ 12490 /* cmp MEM32(ebx), esi */ /* 0x2B029634: cmp dword ptr [ebx], esi */ 12491 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 12492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12493 _flag_k = FK_CMP; 12494 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02965B; /* 0x2B029636: jne 0x2b02965b */ 12495 L_2B029638: 12496 ecx = MEM32(esi + 0x8); /* 0x2B029638: mov ecx, dword ptr [esi + 8] */ 12497 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2B02963B: cmp ecx, dword ptr [edi + 8] */ 12498 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12500 _flag_k = FK_CMP; 12501 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029645; /* 0x2B02963E: jne 0x2b029645 */ 12502 L_2B029640: 12503 edx = MEM32(esi + 0x4); /* 0x2B029640: mov edx, dword ptr [esi + 4] */ 12504 goto L_2B029659; /* 0x2B029643: jmp 0x2b029659 */ 12505 L_2B029645: 12506 ecx = MEM32(eax); /* 0x2B029645: mov ecx, dword ptr [eax] */ 12507 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B029647: cmp byte ptr [ecx + 0x3d], 0 */ 12508 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 12509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12510 _flag_k = FK_NARROW(FK_CMP, 24); 12511 edx = eax; /* 0x2B02964B: mov edx, eax */ 12512 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029659; /* 0x2B02964D: jne 0x2b029659 */ 12513 L_2B02964F: 12514 edx = ecx; /* 0x2B02964F: mov edx, ecx */ 12515 ecx = MEM32(edx); /* 0x2B029651: mov ecx, dword ptr [edx] */ 12516 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B029653: cmp byte ptr [ecx + 0x3d], 0 */ 12517 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 12518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12519 _flag_k = FK_NARROW(FK_CMP, 24); 12520 RECOMP_BACKEDGE(); 12521 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02964F; /* 0x2B029657: je 0x2b02964f */ 12522 L_2B029659: 12523 MEM32(ebx) = edx; /* 0x2B029659: mov dword ptr [ebx], edx */ 12524 L_2B02965B: 12525 ebx = MEM32(edi + 0x4); /* 0x2B02965B: mov ebx, dword ptr [edi + 4] */ 12526 /* cmp MEM32(ebx + 0x8), esi */ /* 0x2B02965E: cmp dword ptr [ebx + 8], esi */ 12527 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 12528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12529 _flag_k = FK_CMP; 12530 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029688; /* 0x2B029661: jne 0x2b029688 */ 12531 L_2B029663: 12532 ecx = MEM32(esi); /* 0x2B029663: mov ecx, dword ptr [esi] */ 12533 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2B029665: cmp ecx, dword ptr [edi + 8] */ 12534 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12536 _flag_k = FK_CMP; 12537 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02966F; /* 0x2B029668: jne 0x2b02966f */ 12538 L_2B02966A: 12539 edx = MEM32(esi + 0x4); /* 0x2B02966A: mov edx, dword ptr [esi + 4] */ 12540 goto L_2B029685; /* 0x2B02966D: jmp 0x2b029685 */ 12541 L_2B02966F: 12542 ecx = MEM32(eax + 0x8); /* 0x2B02966F: mov ecx, dword ptr [eax + 8] */ 12543 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B029672: cmp byte ptr [ecx + 0x3d], 0 */ 12544 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 12545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12546 _flag_k = FK_NARROW(FK_CMP, 24); 12547 edx = eax; /* 0x2B029676: mov edx, eax */ 12548 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029685; /* 0x2B029678: jne 0x2b029685 */ 12549 L_2B02967A: 12550 edx = ecx; /* 0x2B02967A: mov edx, ecx */ 12551 ecx = MEM32(edx + 0x8); /* 0x2B02967C: mov ecx, dword ptr [edx + 8] */ 12552 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B02967F: cmp byte ptr [ecx + 0x3d], 0 */ 12553 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 12554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12555 _flag_k = FK_NARROW(FK_CMP, 24); 12556 RECOMP_BACKEDGE(); 12557 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02967A; /* 0x2B029683: je 0x2b02967a */ 12558 L_2B029685: 12559 MEM32(ebx + 0x8) = edx; /* 0x2B029685: mov dword ptr [ebx + 8], edx */ 12560 L_2B029688: 12561 esi = MEM32(ebp + (-0x4)); /* 0x2B029688: mov esi, dword ptr [ebp - 4] */ 12562 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x2B02968B: mov cl, byte ptr [esi + 0x3c] */ 12563 SET_LO8(ebx, 1); /* 0x2B02968E: mov bl, 1 */ 12564 /* cmp LO8(ecx), LO8(ebx) */ /* 0x2B029690: cmp cl, bl */ 12565 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12567 _flag_k = FK_NARROW(FK_CMP, 24); 12568 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F8; /* 0x2B029692: jne 0x2b0298f8 */ 12569 L_2B029698: 12570 ecx = MEM32(edi + 0x4); /* 0x2B029698: mov ecx, dword ptr [edi + 4] */ 12571 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B02969B: cmp eax, dword ptr [ecx + 4] */ 12572 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12574 _flag_k = FK_CMP; 12575 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B02969E: je 0x2b0298f2 */ 12576 L_2B0296A4: 12577 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x2B0296A4: cmp byte ptr [eax + 0x3c], bl */ 12578 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12580 _flag_k = FK_NARROW(FK_CMP, 24); 12581 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B0296A7: jne 0x2b0298f2 */ 12582 L_2B0296AD: 12583 edx = MEM32(eax + 0x4); /* 0x2B0296AD: mov edx, dword ptr [eax + 4] */ 12584 ecx = MEM32(edx); /* 0x2B0296B0: mov ecx, dword ptr [edx] */ 12585 /* cmp eax, ecx */ /* 0x2B0296B2: cmp eax, ecx */ 12586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12588 _flag_k = FK_CMP; 12589 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029724; /* 0x2B0296B4: jne 0x2b029724 */ 12590 L_2B0296B6: 12591 ecx = MEM32(edx + 0x8); /* 0x2B0296B6: mov ecx, dword ptr [edx + 8] */ 12592 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B0296B9: mov dl, byte ptr [ecx + 0x3c] */ 12593 /* test LO8(edx), LO8(edx) */ /* 0x2B0296BC: test dl, dl */ 12594 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12595 _cf = 0; 12596 _flag_k = FK_NARROW(FK_TEST, 24); 12597 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02970B; /* 0x2B0296BE: jne 0x2b02970b */ 12598 L_2B0296C0: 12599 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0296C0: mov byte ptr [ecx + 0x3c], bl */ 12600 edx = MEM32(eax + 0x4); /* 0x2B0296C3: mov edx, dword ptr [eax + 4] */ 12601 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x2B0296C6: mov byte ptr [edx + 0x3c], 0 */ 12602 ecx = MEM32(eax + 0x4); /* 0x2B0296CA: mov ecx, dword ptr [eax + 4] */ 12603 edx = MEM32(ecx + 0x8); /* 0x2B0296CD: mov edx, dword ptr [ecx + 8] */ 12604 esi = MEM32(edx); /* 0x2B0296D0: mov esi, dword ptr [edx] */ 12605 MEM32(ecx + 0x8) = esi; /* 0x2B0296D2: mov dword ptr [ecx + 8], esi */ 12606 esi = MEM32(edx); /* 0x2B0296D5: mov esi, dword ptr [edx] */ 12607 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0296D7: cmp esi, dword ptr [edi + 8] */ 12608 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12610 _flag_k = FK_CMP; 12611 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0296DF; /* 0x2B0296DA: je 0x2b0296df */ 12612 L_2B0296DC: 12613 MEM32(esi + 0x4) = ecx; /* 0x2B0296DC: mov dword ptr [esi + 4], ecx */ 12614 L_2B0296DF: 12615 esi = MEM32(ecx + 0x4); /* 0x2B0296DF: mov esi, dword ptr [ecx + 4] */ 12616 MEM32(edx + 0x4) = esi; /* 0x2B0296E2: mov dword ptr [edx + 4], esi */ 12617 esi = MEM32(edi + 0x4); /* 0x2B0296E5: mov esi, dword ptr [edi + 4] */ 12618 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0296E8: cmp ecx, dword ptr [esi + 4] */ 12619 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12621 _flag_k = FK_CMP; 12622 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296F2; /* 0x2B0296EB: jne 0x2b0296f2 */ 12623 L_2B0296ED: 12624 MEM32(esi + 0x4) = edx; /* 0x2B0296ED: mov dword ptr [esi + 4], edx */ 12625 goto L_2B029700; /* 0x2B0296F0: jmp 0x2b029700 */ 12626 L_2B0296F2: 12627 esi = MEM32(ecx + 0x4); /* 0x2B0296F2: mov esi, dword ptr [ecx + 4] */ 12628 /* cmp ecx, MEM32(esi) */ /* 0x2B0296F5: cmp ecx, dword ptr [esi] */ 12629 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12631 _flag_k = FK_CMP; 12632 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296FD; /* 0x2B0296F7: jne 0x2b0296fd */ 12633 L_2B0296F9: 12634 MEM32(esi) = edx; /* 0x2B0296F9: mov dword ptr [esi], edx */ 12635 goto L_2B029700; /* 0x2B0296FB: jmp 0x2b029700 */ 12636 L_2B0296FD: 12637 MEM32(esi + 0x8) = edx; /* 0x2B0296FD: mov dword ptr [esi + 8], edx */ 12638 L_2B029700: 12639 MEM32(edx) = ecx; /* 0x2B029700: mov dword ptr [edx], ecx */ 12640 MEM32(ecx + 0x4) = edx; /* 0x2B029702: mov dword ptr [ecx + 4], edx */ 12641 ecx = MEM32(eax + 0x4); /* 0x2B029705: mov ecx, dword ptr [eax + 4] */ 12642 ecx = MEM32(ecx + 0x8); /* 0x2B029708: mov ecx, dword ptr [ecx + 8] */ 12643 L_2B02970B: 12644 edx = MEM32(ecx); /* 0x2B02970B: mov edx, dword ptr [ecx] */ 12645 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02970D: cmp byte ptr [edx + 0x3c], bl */ 12646 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12648 _flag_k = FK_NARROW(FK_CMP, 24); 12649 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B029710: jne 0x2b0297a6 */ 12650 L_2B029716: 12651 edx = MEM32(ecx + 0x8); /* 0x2B029716: mov edx, dword ptr [ecx + 8] */ 12652 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029719: cmp byte ptr [edx + 0x3c], bl */ 12653 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12655 _flag_k = FK_NARROW(FK_CMP, 24); 12656 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B02971C: jne 0x2b0297a6 */ 12657 L_2B029722: 12658 goto L_2B02978E; /* 0x2B029722: jmp 0x2b02978e */ 12659 L_2B029724: 12660 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029724: mov dl, byte ptr [ecx + 0x3c] */ 12661 /* test LO8(edx), LO8(edx) */ /* 0x2B029727: test dl, dl */ 12662 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12663 _cf = 0; 12664 _flag_k = FK_NARROW(FK_TEST, 24); 12665 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029777; /* 0x2B029729: jne 0x2b029777 */ 12666 L_2B02972B: 12667 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02972B: mov byte ptr [ecx + 0x3c], bl */ 12668 ecx = MEM32(eax + 0x4); /* 0x2B02972E: mov ecx, dword ptr [eax + 4] */ 12669 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029731: mov byte ptr [ecx + 0x3c], 0 */ 12670 ecx = MEM32(eax + 0x4); /* 0x2B029735: mov ecx, dword ptr [eax + 4] */ 12671 edx = MEM32(ecx); /* 0x2B029738: mov edx, dword ptr [ecx] */ 12672 esi = MEM32(edx + 0x8); /* 0x2B02973A: mov esi, dword ptr [edx + 8] */ 12673 MEM32(ecx) = esi; /* 0x2B02973D: mov dword ptr [ecx], esi */ 12674 esi = MEM32(edx + 0x8); /* 0x2B02973F: mov esi, dword ptr [edx + 8] */ 12675 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029742: cmp esi, dword ptr [edi + 8] */ 12676 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12678 _flag_k = FK_CMP; 12679 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02974A; /* 0x2B029745: je 0x2b02974a */ 12680 L_2B029747: 12681 MEM32(esi + 0x4) = ecx; /* 0x2B029747: mov dword ptr [esi + 4], ecx */ 12682 L_2B02974A: 12683 esi = MEM32(ecx + 0x4); /* 0x2B02974A: mov esi, dword ptr [ecx + 4] */ 12684 MEM32(edx + 0x4) = esi; /* 0x2B02974D: mov dword ptr [edx + 4], esi */ 12685 esi = MEM32(edi + 0x4); /* 0x2B029750: mov esi, dword ptr [edi + 4] */ 12686 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B029753: cmp ecx, dword ptr [esi + 4] */ 12687 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12689 _flag_k = FK_CMP; 12690 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02975D; /* 0x2B029756: jne 0x2b02975d */ 12691 L_2B029758: 12692 MEM32(esi + 0x4) = edx; /* 0x2B029758: mov dword ptr [esi + 4], edx */ 12693 goto L_2B02976C; /* 0x2B02975B: jmp 0x2b02976c */ 12694 L_2B02975D: 12695 esi = MEM32(ecx + 0x4); /* 0x2B02975D: mov esi, dword ptr [ecx + 4] */ 12696 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B029760: cmp ecx, dword ptr [esi + 8] */ 12697 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12699 _flag_k = FK_CMP; 12700 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02976A; /* 0x2B029763: jne 0x2b02976a */ 12701 L_2B029765: 12702 MEM32(esi + 0x8) = edx; /* 0x2B029765: mov dword ptr [esi + 8], edx */ 12703 goto L_2B02976C; /* 0x2B029768: jmp 0x2b02976c */ 12704 L_2B02976A: 12705 MEM32(esi) = edx; /* 0x2B02976A: mov dword ptr [esi], edx */ 12706 L_2B02976C: 12707 MEM32(edx + 0x8) = ecx; /* 0x2B02976C: mov dword ptr [edx + 8], ecx */ 12708 MEM32(ecx + 0x4) = edx; /* 0x2B02976F: mov dword ptr [ecx + 4], edx */ 12709 edx = MEM32(eax + 0x4); /* 0x2B029772: mov edx, dword ptr [eax + 4] */ 12710 ecx = MEM32(edx); /* 0x2B029775: mov ecx, dword ptr [edx] */ 12711 L_2B029777: 12712 edx = MEM32(ecx + 0x8); /* 0x2B029777: mov edx, dword ptr [ecx + 8] */ 12713 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02977A: cmp byte ptr [edx + 0x3c], bl */ 12714 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12716 _flag_k = FK_NARROW(FK_CMP, 24); 12717 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B02977D: jne 0x2b029853 */ 12718 L_2B029783: 12719 edx = MEM32(ecx); /* 0x2B029783: mov edx, dword ptr [ecx] */ 12720 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029785: cmp byte ptr [edx + 0x3c], bl */ 12721 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12723 _flag_k = FK_NARROW(FK_CMP, 24); 12724 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B029788: jne 0x2b029853 */ 12725 L_2B02978E: 12726 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B02978E: mov byte ptr [ecx + 0x3c], 0 */ 12727 ecx = MEM32(edi + 0x4); /* 0x2B029792: mov ecx, dword ptr [edi + 4] */ 12728 eax = MEM32(eax + 0x4); /* 0x2B029795: mov eax, dword ptr [eax + 4] */ 12729 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B029798: cmp eax, dword ptr [ecx + 4] */ 12730 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12732 _flag_k = FK_CMP; 12733 RECOMP_BACKEDGE(); 12734 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296A4; /* 0x2B02979B: jne 0x2b0296a4 */ 12735 L_2B0297A1: 12736 goto L_2B0298F2; /* 0x2B0297A1: jmp 0x2b0298f2 */ 12737 L_2B0297A6: 12738 edx = MEM32(ecx + 0x8); /* 0x2B0297A6: mov edx, dword ptr [ecx + 8] */ 12739 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B0297A9: cmp byte ptr [edx + 0x3c], bl */ 12740 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12742 _flag_k = FK_NARROW(FK_CMP, 24); 12743 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297F7; /* 0x2B0297AC: jne 0x2b0297f7 */ 12744 L_2B0297AE: 12745 edx = MEM32(ecx); /* 0x2B0297AE: mov edx, dword ptr [ecx] */ 12746 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0297B0: mov byte ptr [edx + 0x3c], bl */ 12747 edx = MEM32(ecx); /* 0x2B0297B3: mov edx, dword ptr [ecx] */ 12748 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B0297B5: mov byte ptr [ecx + 0x3c], 0 */ 12749 esi = MEM32(edx + 0x8); /* 0x2B0297B9: mov esi, dword ptr [edx + 8] */ 12750 MEM32(ecx) = esi; /* 0x2B0297BC: mov dword ptr [ecx], esi */ 12751 esi = MEM32(edx + 0x8); /* 0x2B0297BE: mov esi, dword ptr [edx + 8] */ 12752 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0297C1: cmp esi, dword ptr [edi + 8] */ 12753 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12755 _flag_k = FK_CMP; 12756 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0297C9; /* 0x2B0297C4: je 0x2b0297c9 */ 12757 L_2B0297C6: 12758 MEM32(esi + 0x4) = ecx; /* 0x2B0297C6: mov dword ptr [esi + 4], ecx */ 12759 L_2B0297C9: 12760 esi = MEM32(ecx + 0x4); /* 0x2B0297C9: mov esi, dword ptr [ecx + 4] */ 12761 MEM32(edx + 0x4) = esi; /* 0x2B0297CC: mov dword ptr [edx + 4], esi */ 12762 esi = MEM32(edi + 0x4); /* 0x2B0297CF: mov esi, dword ptr [edi + 4] */ 12763 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0297D2: cmp ecx, dword ptr [esi + 4] */ 12764 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12766 _flag_k = FK_CMP; 12767 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297DC; /* 0x2B0297D5: jne 0x2b0297dc */ 12768 L_2B0297D7: 12769 MEM32(esi + 0x4) = edx; /* 0x2B0297D7: mov dword ptr [esi + 4], edx */ 12770 goto L_2B0297EB; /* 0x2B0297DA: jmp 0x2b0297eb */ 12771 L_2B0297DC: 12772 esi = MEM32(ecx + 0x4); /* 0x2B0297DC: mov esi, dword ptr [ecx + 4] */ 12773 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0297DF: cmp ecx, dword ptr [esi + 8] */ 12774 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12776 _flag_k = FK_CMP; 12777 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297E9; /* 0x2B0297E2: jne 0x2b0297e9 */ 12778 L_2B0297E4: 12779 MEM32(esi + 0x8) = edx; /* 0x2B0297E4: mov dword ptr [esi + 8], edx */ 12780 goto L_2B0297EB; /* 0x2B0297E7: jmp 0x2b0297eb */ 12781 L_2B0297E9: 12782 MEM32(esi) = edx; /* 0x2B0297E9: mov dword ptr [esi], edx */ 12783 L_2B0297EB: 12784 MEM32(edx + 0x8) = ecx; /* 0x2B0297EB: mov dword ptr [edx + 8], ecx */ 12785 MEM32(ecx + 0x4) = edx; /* 0x2B0297EE: mov dword ptr [ecx + 4], edx */ 12786 ecx = MEM32(eax + 0x4); /* 0x2B0297F1: mov ecx, dword ptr [eax + 4] */ 12787 ecx = MEM32(ecx + 0x8); /* 0x2B0297F4: mov ecx, dword ptr [ecx + 8] */ 12788 L_2B0297F7: 12789 edx = MEM32(eax + 0x4); /* 0x2B0297F7: mov edx, dword ptr [eax + 4] */ 12790 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0297FA: mov dl, byte ptr [edx + 0x3c] */ 12791 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0297FD: mov byte ptr [ecx + 0x3c], dl */ 12792 edx = MEM32(eax + 0x4); /* 0x2B029800: mov edx, dword ptr [eax + 4] */ 12793 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029803: mov byte ptr [edx + 0x3c], bl */ 12794 ecx = MEM32(ecx + 0x8); /* 0x2B029806: mov ecx, dword ptr [ecx + 8] */ 12795 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029809: mov byte ptr [ecx + 0x3c], bl */ 12796 ecx = MEM32(eax + 0x4); /* 0x2B02980C: mov ecx, dword ptr [eax + 4] */ 12797 edx = MEM32(ecx + 0x8); /* 0x2B02980F: mov edx, dword ptr [ecx + 8] */ 12798 esi = MEM32(edx); /* 0x2B029812: mov esi, dword ptr [edx] */ 12799 MEM32(ecx + 0x8) = esi; /* 0x2B029814: mov dword ptr [ecx + 8], esi */ 12800 esi = MEM32(edx); /* 0x2B029817: mov esi, dword ptr [edx] */ 12801 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029819: cmp esi, dword ptr [edi + 8] */ 12802 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12804 _flag_k = FK_CMP; 12805 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029821; /* 0x2B02981C: je 0x2b029821 */ 12806 L_2B02981E: 12807 MEM32(esi + 0x4) = ecx; /* 0x2B02981E: mov dword ptr [esi + 4], ecx */ 12808 L_2B029821: 12809 esi = MEM32(ecx + 0x4); /* 0x2B029821: mov esi, dword ptr [ecx + 4] */ 12810 MEM32(edx + 0x4) = esi; /* 0x2B029824: mov dword ptr [edx + 4], esi */ 12811 esi = MEM32(edi + 0x4); /* 0x2B029827: mov esi, dword ptr [edi + 4] */ 12812 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02982A: cmp ecx, dword ptr [esi + 4] */ 12813 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12815 _flag_k = FK_CMP; 12816 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029839; /* 0x2B02982D: jne 0x2b029839 */ 12817 L_2B02982F: 12818 MEM32(esi + 0x4) = edx; /* 0x2B02982F: mov dword ptr [esi + 4], edx */ 12819 MEM32(edx) = ecx; /* 0x2B029832: mov dword ptr [edx], ecx */ 12820 goto L_2B0298EF; /* 0x2B029834: jmp 0x2b0298ef */ 12821 L_2B029839: 12822 esi = MEM32(ecx + 0x4); /* 0x2B029839: mov esi, dword ptr [ecx + 4] */ 12823 /* cmp ecx, MEM32(esi) */ /* 0x2B02983C: cmp ecx, dword ptr [esi] */ 12824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12826 _flag_k = FK_CMP; 12827 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029849; /* 0x2B02983E: jne 0x2b029849 */ 12828 L_2B029840: 12829 MEM32(esi) = edx; /* 0x2B029840: mov dword ptr [esi], edx */ 12830 MEM32(edx) = ecx; /* 0x2B029842: mov dword ptr [edx], ecx */ 12831 goto L_2B0298EF; /* 0x2B029844: jmp 0x2b0298ef */ 12832 L_2B029849: 12833 MEM32(esi + 0x8) = edx; /* 0x2B029849: mov dword ptr [esi + 8], edx */ 12834 MEM32(edx) = ecx; /* 0x2B02984C: mov dword ptr [edx], ecx */ 12835 goto L_2B0298EF; /* 0x2B02984E: jmp 0x2b0298ef */ 12836 L_2B029853: 12837 edx = MEM32(ecx); /* 0x2B029853: mov edx, dword ptr [ecx] */ 12838 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029855: cmp byte ptr [edx + 0x3c], bl */ 12839 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12841 _flag_k = FK_NARROW(FK_CMP, 24); 12842 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298A1; /* 0x2B029858: jne 0x2b0298a1 */ 12843 L_2B02985A: 12844 edx = MEM32(ecx + 0x8); /* 0x2B02985A: mov edx, dword ptr [ecx + 8] */ 12845 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02985D: mov byte ptr [edx + 0x3c], bl */ 12846 edx = MEM32(ecx + 0x8); /* 0x2B029860: mov edx, dword ptr [ecx + 8] */ 12847 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029863: mov byte ptr [ecx + 0x3c], 0 */ 12848 esi = MEM32(edx); /* 0x2B029867: mov esi, dword ptr [edx] */ 12849 MEM32(ecx + 0x8) = esi; /* 0x2B029869: mov dword ptr [ecx + 8], esi */ 12850 esi = MEM32(edx); /* 0x2B02986C: mov esi, dword ptr [edx] */ 12851 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B02986E: cmp esi, dword ptr [edi + 8] */ 12852 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12854 _flag_k = FK_CMP; 12855 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029876; /* 0x2B029871: je 0x2b029876 */ 12856 L_2B029873: 12857 MEM32(esi + 0x4) = ecx; /* 0x2B029873: mov dword ptr [esi + 4], ecx */ 12858 L_2B029876: 12859 esi = MEM32(ecx + 0x4); /* 0x2B029876: mov esi, dword ptr [ecx + 4] */ 12860 MEM32(edx + 0x4) = esi; /* 0x2B029879: mov dword ptr [edx + 4], esi */ 12861 esi = MEM32(edi + 0x4); /* 0x2B02987C: mov esi, dword ptr [edi + 4] */ 12862 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02987F: cmp ecx, dword ptr [esi + 4] */ 12863 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12865 _flag_k = FK_CMP; 12866 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029889; /* 0x2B029882: jne 0x2b029889 */ 12867 L_2B029884: 12868 MEM32(esi + 0x4) = edx; /* 0x2B029884: mov dword ptr [esi + 4], edx */ 12869 goto L_2B029897; /* 0x2B029887: jmp 0x2b029897 */ 12870 L_2B029889: 12871 esi = MEM32(ecx + 0x4); /* 0x2B029889: mov esi, dword ptr [ecx + 4] */ 12872 /* cmp ecx, MEM32(esi) */ /* 0x2B02988C: cmp ecx, dword ptr [esi] */ 12873 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12875 _flag_k = FK_CMP; 12876 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029894; /* 0x2B02988E: jne 0x2b029894 */ 12877 L_2B029890: 12878 MEM32(esi) = edx; /* 0x2B029890: mov dword ptr [esi], edx */ 12879 goto L_2B029897; /* 0x2B029892: jmp 0x2b029897 */ 12880 L_2B029894: 12881 MEM32(esi + 0x8) = edx; /* 0x2B029894: mov dword ptr [esi + 8], edx */ 12882 L_2B029897: 12883 MEM32(edx) = ecx; /* 0x2B029897: mov dword ptr [edx], ecx */ 12884 MEM32(ecx + 0x4) = edx; /* 0x2B029899: mov dword ptr [ecx + 4], edx */ 12885 ecx = MEM32(eax + 0x4); /* 0x2B02989C: mov ecx, dword ptr [eax + 4] */ 12886 ecx = MEM32(ecx); /* 0x2B02989F: mov ecx, dword ptr [ecx] */ 12887 L_2B0298A1: 12888 edx = MEM32(eax + 0x4); /* 0x2B0298A1: mov edx, dword ptr [eax + 4] */ 12889 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0298A4: mov dl, byte ptr [edx + 0x3c] */ 12890 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0298A7: mov byte ptr [ecx + 0x3c], dl */ 12891 edx = MEM32(eax + 0x4); /* 0x2B0298AA: mov edx, dword ptr [eax + 4] */ 12892 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298AD: mov byte ptr [edx + 0x3c], bl */ 12893 ecx = MEM32(ecx); /* 0x2B0298B0: mov ecx, dword ptr [ecx] */ 12894 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298B2: mov byte ptr [ecx + 0x3c], bl */ 12895 ecx = MEM32(eax + 0x4); /* 0x2B0298B5: mov ecx, dword ptr [eax + 4] */ 12896 edx = MEM32(ecx); /* 0x2B0298B8: mov edx, dword ptr [ecx] */ 12897 esi = MEM32(edx + 0x8); /* 0x2B0298BA: mov esi, dword ptr [edx + 8] */ 12898 MEM32(ecx) = esi; /* 0x2B0298BD: mov dword ptr [ecx], esi */ 12899 esi = MEM32(edx + 0x8); /* 0x2B0298BF: mov esi, dword ptr [edx + 8] */ 12900 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0298C2: cmp esi, dword ptr [edi + 8] */ 12901 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12903 _flag_k = FK_CMP; 12904 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298CA; /* 0x2B0298C5: je 0x2b0298ca */ 12905 L_2B0298C7: 12906 MEM32(esi + 0x4) = ecx; /* 0x2B0298C7: mov dword ptr [esi + 4], ecx */ 12907 L_2B0298CA: 12908 esi = MEM32(ecx + 0x4); /* 0x2B0298CA: mov esi, dword ptr [ecx + 4] */ 12909 MEM32(edx + 0x4) = esi; /* 0x2B0298CD: mov dword ptr [edx + 4], esi */ 12910 esi = MEM32(edi + 0x4); /* 0x2B0298D0: mov esi, dword ptr [edi + 4] */ 12911 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0298D3: cmp ecx, dword ptr [esi + 4] */ 12912 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12914 _flag_k = FK_CMP; 12915 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298DD; /* 0x2B0298D6: jne 0x2b0298dd */ 12916 L_2B0298D8: 12917 MEM32(esi + 0x4) = edx; /* 0x2B0298D8: mov dword ptr [esi + 4], edx */ 12918 goto L_2B0298EC; /* 0x2B0298DB: jmp 0x2b0298ec */ 12919 L_2B0298DD: 12920 esi = MEM32(ecx + 0x4); /* 0x2B0298DD: mov esi, dword ptr [ecx + 4] */ 12921 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0298E0: cmp ecx, dword ptr [esi + 8] */ 12922 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12924 _flag_k = FK_CMP; 12925 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298EA; /* 0x2B0298E3: jne 0x2b0298ea */ 12926 L_2B0298E5: 12927 MEM32(esi + 0x8) = edx; /* 0x2B0298E5: mov dword ptr [esi + 8], edx */ 12928 goto L_2B0298EC; /* 0x2B0298E8: jmp 0x2b0298ec */ 12929 L_2B0298EA: 12930 MEM32(esi) = edx; /* 0x2B0298EA: mov dword ptr [esi], edx */ 12931 L_2B0298EC: 12932 MEM32(edx + 0x8) = ecx; /* 0x2B0298EC: mov dword ptr [edx + 8], ecx */ 12933 L_2B0298EF: 12934 MEM32(ecx + 0x4) = edx; /* 0x2B0298EF: mov dword ptr [ecx + 4], edx */ 12935 L_2B0298F2: 12936 esi = MEM32(ebp + (-0x4)); /* 0x2B0298F2: mov esi, dword ptr [ebp - 4] */ 12937 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298F5: mov byte ptr [eax + 0x3c], bl */ 12938 L_2B0298F8: 12939 ecx = esi + 0xC; /* 0x2B0298F8: lea ecx, [esi + 0xc] */ 12940 RECOMP_ICALL(0x2B012D80u); /* 0x2B0298FB: call 0x2b012d80 */ /* not lifted */ 12941 RECOMP_FLAGS_IN(); 12942 PUSH32(esp, esi); /* 0x2B029900: push esi */ 12943 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B029901: call 0x2b0ab1ba */ /* not lifted */ 12944 RECOMP_FLAGS_IN(); 12945 eax = MEM32(edi + 0x10); /* 0x2B029906: mov eax, dword ptr [edi + 0x10] */ 12946 edx = MEM32(ebp + 0xC); /* 0x2B029909: mov edx, dword ptr [ebp + 0xc] */ 12947 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12948 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12949 esp = esp + 4; /* 0x2B02990C: add esp, 4 */ 12950 _flag_k = FK_ADD; 12951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12952 eax = eax - 1; /* 0x2B02990F: dec eax */ 12953 _flag_k = FK_DEC; 12954 MEM32(edi + 0x10) = eax; /* 0x2B029910: mov dword ptr [edi + 0x10], eax */ 12955 eax = MEM32(ebp + 0x8); /* 0x2B029913: mov eax, dword ptr [ebp + 8] */ 12956 edi = POP32_VAL(esp); /* 0x2B029916: pop edi */ 12957 esi = POP32_VAL(esp); /* 0x2B029917: pop esi */ 12958 MEM32(eax) = edx; /* 0x2B029918: mov dword ptr [eax], edx */ 12959 ebx = POP32_VAL(esp); /* 0x2B02991A: pop ebx */ 12960 esp = ebp; /* 0x2B02991B: mov esp, ebp */ 12961 ebp = POP32_VAL(esp); /* 0x2B02991D: pop ebp */ 12962 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02991E: ret 8 */ 12963 RECOMP_REGS_OUT(); 12964 } 12965 12966 void sub_2B029659(void) { 12967 int _fpu_cmp = 0; 12968 uint32_t _cf = 0; 12969 int _df = 1; 12970 uint32_t _flag_k = FK_NONE; 12971 uint32_t _flag_a = 0, _flag_b = 0; 12972 uint32_t _itail_tgt = 0; 12973 RECOMP_REGS_LOCALS 12974 RECOMP_ENTER(0x2B029659u); 12975 12976 L_2B029659: 12977 MEM32(ebx) = edx; /* 0x2B029659: mov dword ptr [ebx], edx */ 12978 ebx = MEM32(edi + 0x4); /* 0x2B02965B: mov ebx, dword ptr [edi + 4] */ 12979 /* cmp MEM32(ebx + 0x8), esi */ /* 0x2B02965E: cmp dword ptr [ebx + 8], esi */ 12980 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 12981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12982 _flag_k = FK_CMP; 12983 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029688; /* 0x2B029661: jne 0x2b029688 */ 12984 L_2B029663: 12985 ecx = MEM32(esi); /* 0x2B029663: mov ecx, dword ptr [esi] */ 12986 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2B029665: cmp ecx, dword ptr [edi + 8] */ 12987 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12989 _flag_k = FK_CMP; 12990 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02966F; /* 0x2B029668: jne 0x2b02966f */ 12991 L_2B02966A: 12992 edx = MEM32(esi + 0x4); /* 0x2B02966A: mov edx, dword ptr [esi + 4] */ 12993 goto L_2B029685; /* 0x2B02966D: jmp 0x2b029685 */ 12994 L_2B02966F: 12995 ecx = MEM32(eax + 0x8); /* 0x2B02966F: mov ecx, dword ptr [eax + 8] */ 12996 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B029672: cmp byte ptr [ecx + 0x3d], 0 */ 12997 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 12998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12999 _flag_k = FK_NARROW(FK_CMP, 24); 13000 edx = eax; /* 0x2B029676: mov edx, eax */ 13001 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029685; /* 0x2B029678: jne 0x2b029685 */ 13002 L_2B02967A: 13003 edx = ecx; /* 0x2B02967A: mov edx, ecx */ 13004 ecx = MEM32(edx + 0x8); /* 0x2B02967C: mov ecx, dword ptr [edx + 8] */ 13005 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x2B02967F: cmp byte ptr [ecx + 0x3d], 0 */ 13006 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 13007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13008 _flag_k = FK_NARROW(FK_CMP, 24); 13009 RECOMP_BACKEDGE(); 13010 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02967A; /* 0x2B029683: je 0x2b02967a */ 13011 L_2B029685: 13012 MEM32(ebx + 0x8) = edx; /* 0x2B029685: mov dword ptr [ebx + 8], edx */ 13013 L_2B029688: 13014 esi = MEM32(ebp + (-0x4)); /* 0x2B029688: mov esi, dword ptr [ebp - 4] */ 13015 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x2B02968B: mov cl, byte ptr [esi + 0x3c] */ 13016 SET_LO8(ebx, 1); /* 0x2B02968E: mov bl, 1 */ 13017 /* cmp LO8(ecx), LO8(ebx) */ /* 0x2B029690: cmp cl, bl */ 13018 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13020 _flag_k = FK_NARROW(FK_CMP, 24); 13021 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F8; /* 0x2B029692: jne 0x2b0298f8 */ 13022 L_2B029698: 13023 ecx = MEM32(edi + 0x4); /* 0x2B029698: mov ecx, dword ptr [edi + 4] */ 13024 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B02969B: cmp eax, dword ptr [ecx + 4] */ 13025 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13027 _flag_k = FK_CMP; 13028 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B02969E: je 0x2b0298f2 */ 13029 L_2B0296A4: 13030 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x2B0296A4: cmp byte ptr [eax + 0x3c], bl */ 13031 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13033 _flag_k = FK_NARROW(FK_CMP, 24); 13034 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B0296A7: jne 0x2b0298f2 */ 13035 L_2B0296AD: 13036 edx = MEM32(eax + 0x4); /* 0x2B0296AD: mov edx, dword ptr [eax + 4] */ 13037 ecx = MEM32(edx); /* 0x2B0296B0: mov ecx, dword ptr [edx] */ 13038 /* cmp eax, ecx */ /* 0x2B0296B2: cmp eax, ecx */ 13039 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13041 _flag_k = FK_CMP; 13042 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029724; /* 0x2B0296B4: jne 0x2b029724 */ 13043 L_2B0296B6: 13044 ecx = MEM32(edx + 0x8); /* 0x2B0296B6: mov ecx, dword ptr [edx + 8] */ 13045 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B0296B9: mov dl, byte ptr [ecx + 0x3c] */ 13046 /* test LO8(edx), LO8(edx) */ /* 0x2B0296BC: test dl, dl */ 13047 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13048 _cf = 0; 13049 _flag_k = FK_NARROW(FK_TEST, 24); 13050 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02970B; /* 0x2B0296BE: jne 0x2b02970b */ 13051 L_2B0296C0: 13052 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0296C0: mov byte ptr [ecx + 0x3c], bl */ 13053 edx = MEM32(eax + 0x4); /* 0x2B0296C3: mov edx, dword ptr [eax + 4] */ 13054 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x2B0296C6: mov byte ptr [edx + 0x3c], 0 */ 13055 ecx = MEM32(eax + 0x4); /* 0x2B0296CA: mov ecx, dword ptr [eax + 4] */ 13056 edx = MEM32(ecx + 0x8); /* 0x2B0296CD: mov edx, dword ptr [ecx + 8] */ 13057 esi = MEM32(edx); /* 0x2B0296D0: mov esi, dword ptr [edx] */ 13058 MEM32(ecx + 0x8) = esi; /* 0x2B0296D2: mov dword ptr [ecx + 8], esi */ 13059 esi = MEM32(edx); /* 0x2B0296D5: mov esi, dword ptr [edx] */ 13060 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0296D7: cmp esi, dword ptr [edi + 8] */ 13061 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13063 _flag_k = FK_CMP; 13064 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0296DF; /* 0x2B0296DA: je 0x2b0296df */ 13065 L_2B0296DC: 13066 MEM32(esi + 0x4) = ecx; /* 0x2B0296DC: mov dword ptr [esi + 4], ecx */ 13067 L_2B0296DF: 13068 esi = MEM32(ecx + 0x4); /* 0x2B0296DF: mov esi, dword ptr [ecx + 4] */ 13069 MEM32(edx + 0x4) = esi; /* 0x2B0296E2: mov dword ptr [edx + 4], esi */ 13070 esi = MEM32(edi + 0x4); /* 0x2B0296E5: mov esi, dword ptr [edi + 4] */ 13071 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0296E8: cmp ecx, dword ptr [esi + 4] */ 13072 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13074 _flag_k = FK_CMP; 13075 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296F2; /* 0x2B0296EB: jne 0x2b0296f2 */ 13076 L_2B0296ED: 13077 MEM32(esi + 0x4) = edx; /* 0x2B0296ED: mov dword ptr [esi + 4], edx */ 13078 goto L_2B029700; /* 0x2B0296F0: jmp 0x2b029700 */ 13079 L_2B0296F2: 13080 esi = MEM32(ecx + 0x4); /* 0x2B0296F2: mov esi, dword ptr [ecx + 4] */ 13081 /* cmp ecx, MEM32(esi) */ /* 0x2B0296F5: cmp ecx, dword ptr [esi] */ 13082 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13084 _flag_k = FK_CMP; 13085 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296FD; /* 0x2B0296F7: jne 0x2b0296fd */ 13086 L_2B0296F9: 13087 MEM32(esi) = edx; /* 0x2B0296F9: mov dword ptr [esi], edx */ 13088 goto L_2B029700; /* 0x2B0296FB: jmp 0x2b029700 */ 13089 L_2B0296FD: 13090 MEM32(esi + 0x8) = edx; /* 0x2B0296FD: mov dword ptr [esi + 8], edx */ 13091 L_2B029700: 13092 MEM32(edx) = ecx; /* 0x2B029700: mov dword ptr [edx], ecx */ 13093 MEM32(ecx + 0x4) = edx; /* 0x2B029702: mov dword ptr [ecx + 4], edx */ 13094 ecx = MEM32(eax + 0x4); /* 0x2B029705: mov ecx, dword ptr [eax + 4] */ 13095 ecx = MEM32(ecx + 0x8); /* 0x2B029708: mov ecx, dword ptr [ecx + 8] */ 13096 L_2B02970B: 13097 edx = MEM32(ecx); /* 0x2B02970B: mov edx, dword ptr [ecx] */ 13098 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02970D: cmp byte ptr [edx + 0x3c], bl */ 13099 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13101 _flag_k = FK_NARROW(FK_CMP, 24); 13102 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B029710: jne 0x2b0297a6 */ 13103 L_2B029716: 13104 edx = MEM32(ecx + 0x8); /* 0x2B029716: mov edx, dword ptr [ecx + 8] */ 13105 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029719: cmp byte ptr [edx + 0x3c], bl */ 13106 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13108 _flag_k = FK_NARROW(FK_CMP, 24); 13109 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B02971C: jne 0x2b0297a6 */ 13110 L_2B029722: 13111 goto L_2B02978E; /* 0x2B029722: jmp 0x2b02978e */ 13112 L_2B029724: 13113 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029724: mov dl, byte ptr [ecx + 0x3c] */ 13114 /* test LO8(edx), LO8(edx) */ /* 0x2B029727: test dl, dl */ 13115 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13116 _cf = 0; 13117 _flag_k = FK_NARROW(FK_TEST, 24); 13118 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029777; /* 0x2B029729: jne 0x2b029777 */ 13119 L_2B02972B: 13120 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02972B: mov byte ptr [ecx + 0x3c], bl */ 13121 ecx = MEM32(eax + 0x4); /* 0x2B02972E: mov ecx, dword ptr [eax + 4] */ 13122 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029731: mov byte ptr [ecx + 0x3c], 0 */ 13123 ecx = MEM32(eax + 0x4); /* 0x2B029735: mov ecx, dword ptr [eax + 4] */ 13124 edx = MEM32(ecx); /* 0x2B029738: mov edx, dword ptr [ecx] */ 13125 esi = MEM32(edx + 0x8); /* 0x2B02973A: mov esi, dword ptr [edx + 8] */ 13126 MEM32(ecx) = esi; /* 0x2B02973D: mov dword ptr [ecx], esi */ 13127 esi = MEM32(edx + 0x8); /* 0x2B02973F: mov esi, dword ptr [edx + 8] */ 13128 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029742: cmp esi, dword ptr [edi + 8] */ 13129 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13131 _flag_k = FK_CMP; 13132 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02974A; /* 0x2B029745: je 0x2b02974a */ 13133 L_2B029747: 13134 MEM32(esi + 0x4) = ecx; /* 0x2B029747: mov dword ptr [esi + 4], ecx */ 13135 L_2B02974A: 13136 esi = MEM32(ecx + 0x4); /* 0x2B02974A: mov esi, dword ptr [ecx + 4] */ 13137 MEM32(edx + 0x4) = esi; /* 0x2B02974D: mov dword ptr [edx + 4], esi */ 13138 esi = MEM32(edi + 0x4); /* 0x2B029750: mov esi, dword ptr [edi + 4] */ 13139 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B029753: cmp ecx, dword ptr [esi + 4] */ 13140 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13142 _flag_k = FK_CMP; 13143 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02975D; /* 0x2B029756: jne 0x2b02975d */ 13144 L_2B029758: 13145 MEM32(esi + 0x4) = edx; /* 0x2B029758: mov dword ptr [esi + 4], edx */ 13146 goto L_2B02976C; /* 0x2B02975B: jmp 0x2b02976c */ 13147 L_2B02975D: 13148 esi = MEM32(ecx + 0x4); /* 0x2B02975D: mov esi, dword ptr [ecx + 4] */ 13149 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B029760: cmp ecx, dword ptr [esi + 8] */ 13150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13152 _flag_k = FK_CMP; 13153 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02976A; /* 0x2B029763: jne 0x2b02976a */ 13154 L_2B029765: 13155 MEM32(esi + 0x8) = edx; /* 0x2B029765: mov dword ptr [esi + 8], edx */ 13156 goto L_2B02976C; /* 0x2B029768: jmp 0x2b02976c */ 13157 L_2B02976A: 13158 MEM32(esi) = edx; /* 0x2B02976A: mov dword ptr [esi], edx */ 13159 L_2B02976C: 13160 MEM32(edx + 0x8) = ecx; /* 0x2B02976C: mov dword ptr [edx + 8], ecx */ 13161 MEM32(ecx + 0x4) = edx; /* 0x2B02976F: mov dword ptr [ecx + 4], edx */ 13162 edx = MEM32(eax + 0x4); /* 0x2B029772: mov edx, dword ptr [eax + 4] */ 13163 ecx = MEM32(edx); /* 0x2B029775: mov ecx, dword ptr [edx] */ 13164 L_2B029777: 13165 edx = MEM32(ecx + 0x8); /* 0x2B029777: mov edx, dword ptr [ecx + 8] */ 13166 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02977A: cmp byte ptr [edx + 0x3c], bl */ 13167 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13169 _flag_k = FK_NARROW(FK_CMP, 24); 13170 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B02977D: jne 0x2b029853 */ 13171 L_2B029783: 13172 edx = MEM32(ecx); /* 0x2B029783: mov edx, dword ptr [ecx] */ 13173 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029785: cmp byte ptr [edx + 0x3c], bl */ 13174 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13176 _flag_k = FK_NARROW(FK_CMP, 24); 13177 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B029788: jne 0x2b029853 */ 13178 L_2B02978E: 13179 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B02978E: mov byte ptr [ecx + 0x3c], 0 */ 13180 ecx = MEM32(edi + 0x4); /* 0x2B029792: mov ecx, dword ptr [edi + 4] */ 13181 eax = MEM32(eax + 0x4); /* 0x2B029795: mov eax, dword ptr [eax + 4] */ 13182 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B029798: cmp eax, dword ptr [ecx + 4] */ 13183 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13185 _flag_k = FK_CMP; 13186 RECOMP_BACKEDGE(); 13187 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296A4; /* 0x2B02979B: jne 0x2b0296a4 */ 13188 L_2B0297A1: 13189 goto L_2B0298F2; /* 0x2B0297A1: jmp 0x2b0298f2 */ 13190 L_2B0297A6: 13191 edx = MEM32(ecx + 0x8); /* 0x2B0297A6: mov edx, dword ptr [ecx + 8] */ 13192 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B0297A9: cmp byte ptr [edx + 0x3c], bl */ 13193 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13195 _flag_k = FK_NARROW(FK_CMP, 24); 13196 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297F7; /* 0x2B0297AC: jne 0x2b0297f7 */ 13197 L_2B0297AE: 13198 edx = MEM32(ecx); /* 0x2B0297AE: mov edx, dword ptr [ecx] */ 13199 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0297B0: mov byte ptr [edx + 0x3c], bl */ 13200 edx = MEM32(ecx); /* 0x2B0297B3: mov edx, dword ptr [ecx] */ 13201 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B0297B5: mov byte ptr [ecx + 0x3c], 0 */ 13202 esi = MEM32(edx + 0x8); /* 0x2B0297B9: mov esi, dword ptr [edx + 8] */ 13203 MEM32(ecx) = esi; /* 0x2B0297BC: mov dword ptr [ecx], esi */ 13204 esi = MEM32(edx + 0x8); /* 0x2B0297BE: mov esi, dword ptr [edx + 8] */ 13205 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0297C1: cmp esi, dword ptr [edi + 8] */ 13206 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13208 _flag_k = FK_CMP; 13209 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0297C9; /* 0x2B0297C4: je 0x2b0297c9 */ 13210 L_2B0297C6: 13211 MEM32(esi + 0x4) = ecx; /* 0x2B0297C6: mov dword ptr [esi + 4], ecx */ 13212 L_2B0297C9: 13213 esi = MEM32(ecx + 0x4); /* 0x2B0297C9: mov esi, dword ptr [ecx + 4] */ 13214 MEM32(edx + 0x4) = esi; /* 0x2B0297CC: mov dword ptr [edx + 4], esi */ 13215 esi = MEM32(edi + 0x4); /* 0x2B0297CF: mov esi, dword ptr [edi + 4] */ 13216 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0297D2: cmp ecx, dword ptr [esi + 4] */ 13217 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13219 _flag_k = FK_CMP; 13220 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297DC; /* 0x2B0297D5: jne 0x2b0297dc */ 13221 L_2B0297D7: 13222 MEM32(esi + 0x4) = edx; /* 0x2B0297D7: mov dword ptr [esi + 4], edx */ 13223 goto L_2B0297EB; /* 0x2B0297DA: jmp 0x2b0297eb */ 13224 L_2B0297DC: 13225 esi = MEM32(ecx + 0x4); /* 0x2B0297DC: mov esi, dword ptr [ecx + 4] */ 13226 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0297DF: cmp ecx, dword ptr [esi + 8] */ 13227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13229 _flag_k = FK_CMP; 13230 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297E9; /* 0x2B0297E2: jne 0x2b0297e9 */ 13231 L_2B0297E4: 13232 MEM32(esi + 0x8) = edx; /* 0x2B0297E4: mov dword ptr [esi + 8], edx */ 13233 goto L_2B0297EB; /* 0x2B0297E7: jmp 0x2b0297eb */ 13234 L_2B0297E9: 13235 MEM32(esi) = edx; /* 0x2B0297E9: mov dword ptr [esi], edx */ 13236 L_2B0297EB: 13237 MEM32(edx + 0x8) = ecx; /* 0x2B0297EB: mov dword ptr [edx + 8], ecx */ 13238 MEM32(ecx + 0x4) = edx; /* 0x2B0297EE: mov dword ptr [ecx + 4], edx */ 13239 ecx = MEM32(eax + 0x4); /* 0x2B0297F1: mov ecx, dword ptr [eax + 4] */ 13240 ecx = MEM32(ecx + 0x8); /* 0x2B0297F4: mov ecx, dword ptr [ecx + 8] */ 13241 L_2B0297F7: 13242 edx = MEM32(eax + 0x4); /* 0x2B0297F7: mov edx, dword ptr [eax + 4] */ 13243 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0297FA: mov dl, byte ptr [edx + 0x3c] */ 13244 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0297FD: mov byte ptr [ecx + 0x3c], dl */ 13245 edx = MEM32(eax + 0x4); /* 0x2B029800: mov edx, dword ptr [eax + 4] */ 13246 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029803: mov byte ptr [edx + 0x3c], bl */ 13247 ecx = MEM32(ecx + 0x8); /* 0x2B029806: mov ecx, dword ptr [ecx + 8] */ 13248 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029809: mov byte ptr [ecx + 0x3c], bl */ 13249 ecx = MEM32(eax + 0x4); /* 0x2B02980C: mov ecx, dword ptr [eax + 4] */ 13250 edx = MEM32(ecx + 0x8); /* 0x2B02980F: mov edx, dword ptr [ecx + 8] */ 13251 esi = MEM32(edx); /* 0x2B029812: mov esi, dword ptr [edx] */ 13252 MEM32(ecx + 0x8) = esi; /* 0x2B029814: mov dword ptr [ecx + 8], esi */ 13253 esi = MEM32(edx); /* 0x2B029817: mov esi, dword ptr [edx] */ 13254 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029819: cmp esi, dword ptr [edi + 8] */ 13255 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13257 _flag_k = FK_CMP; 13258 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029821; /* 0x2B02981C: je 0x2b029821 */ 13259 L_2B02981E: 13260 MEM32(esi + 0x4) = ecx; /* 0x2B02981E: mov dword ptr [esi + 4], ecx */ 13261 L_2B029821: 13262 esi = MEM32(ecx + 0x4); /* 0x2B029821: mov esi, dword ptr [ecx + 4] */ 13263 MEM32(edx + 0x4) = esi; /* 0x2B029824: mov dword ptr [edx + 4], esi */ 13264 esi = MEM32(edi + 0x4); /* 0x2B029827: mov esi, dword ptr [edi + 4] */ 13265 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02982A: cmp ecx, dword ptr [esi + 4] */ 13266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13268 _flag_k = FK_CMP; 13269 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029839; /* 0x2B02982D: jne 0x2b029839 */ 13270 L_2B02982F: 13271 MEM32(esi + 0x4) = edx; /* 0x2B02982F: mov dword ptr [esi + 4], edx */ 13272 MEM32(edx) = ecx; /* 0x2B029832: mov dword ptr [edx], ecx */ 13273 goto L_2B0298EF; /* 0x2B029834: jmp 0x2b0298ef */ 13274 L_2B029839: 13275 esi = MEM32(ecx + 0x4); /* 0x2B029839: mov esi, dword ptr [ecx + 4] */ 13276 /* cmp ecx, MEM32(esi) */ /* 0x2B02983C: cmp ecx, dword ptr [esi] */ 13277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13279 _flag_k = FK_CMP; 13280 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029849; /* 0x2B02983E: jne 0x2b029849 */ 13281 L_2B029840: 13282 MEM32(esi) = edx; /* 0x2B029840: mov dword ptr [esi], edx */ 13283 MEM32(edx) = ecx; /* 0x2B029842: mov dword ptr [edx], ecx */ 13284 goto L_2B0298EF; /* 0x2B029844: jmp 0x2b0298ef */ 13285 L_2B029849: 13286 MEM32(esi + 0x8) = edx; /* 0x2B029849: mov dword ptr [esi + 8], edx */ 13287 MEM32(edx) = ecx; /* 0x2B02984C: mov dword ptr [edx], ecx */ 13288 goto L_2B0298EF; /* 0x2B02984E: jmp 0x2b0298ef */ 13289 L_2B029853: 13290 edx = MEM32(ecx); /* 0x2B029853: mov edx, dword ptr [ecx] */ 13291 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029855: cmp byte ptr [edx + 0x3c], bl */ 13292 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13294 _flag_k = FK_NARROW(FK_CMP, 24); 13295 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298A1; /* 0x2B029858: jne 0x2b0298a1 */ 13296 L_2B02985A: 13297 edx = MEM32(ecx + 0x8); /* 0x2B02985A: mov edx, dword ptr [ecx + 8] */ 13298 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02985D: mov byte ptr [edx + 0x3c], bl */ 13299 edx = MEM32(ecx + 0x8); /* 0x2B029860: mov edx, dword ptr [ecx + 8] */ 13300 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029863: mov byte ptr [ecx + 0x3c], 0 */ 13301 esi = MEM32(edx); /* 0x2B029867: mov esi, dword ptr [edx] */ 13302 MEM32(ecx + 0x8) = esi; /* 0x2B029869: mov dword ptr [ecx + 8], esi */ 13303 esi = MEM32(edx); /* 0x2B02986C: mov esi, dword ptr [edx] */ 13304 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B02986E: cmp esi, dword ptr [edi + 8] */ 13305 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13307 _flag_k = FK_CMP; 13308 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029876; /* 0x2B029871: je 0x2b029876 */ 13309 L_2B029873: 13310 MEM32(esi + 0x4) = ecx; /* 0x2B029873: mov dword ptr [esi + 4], ecx */ 13311 L_2B029876: 13312 esi = MEM32(ecx + 0x4); /* 0x2B029876: mov esi, dword ptr [ecx + 4] */ 13313 MEM32(edx + 0x4) = esi; /* 0x2B029879: mov dword ptr [edx + 4], esi */ 13314 esi = MEM32(edi + 0x4); /* 0x2B02987C: mov esi, dword ptr [edi + 4] */ 13315 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02987F: cmp ecx, dword ptr [esi + 4] */ 13316 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13318 _flag_k = FK_CMP; 13319 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029889; /* 0x2B029882: jne 0x2b029889 */ 13320 L_2B029884: 13321 MEM32(esi + 0x4) = edx; /* 0x2B029884: mov dword ptr [esi + 4], edx */ 13322 goto L_2B029897; /* 0x2B029887: jmp 0x2b029897 */ 13323 L_2B029889: 13324 esi = MEM32(ecx + 0x4); /* 0x2B029889: mov esi, dword ptr [ecx + 4] */ 13325 /* cmp ecx, MEM32(esi) */ /* 0x2B02988C: cmp ecx, dword ptr [esi] */ 13326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13328 _flag_k = FK_CMP; 13329 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029894; /* 0x2B02988E: jne 0x2b029894 */ 13330 L_2B029890: 13331 MEM32(esi) = edx; /* 0x2B029890: mov dword ptr [esi], edx */ 13332 goto L_2B029897; /* 0x2B029892: jmp 0x2b029897 */ 13333 L_2B029894: 13334 MEM32(esi + 0x8) = edx; /* 0x2B029894: mov dword ptr [esi + 8], edx */ 13335 L_2B029897: 13336 MEM32(edx) = ecx; /* 0x2B029897: mov dword ptr [edx], ecx */ 13337 MEM32(ecx + 0x4) = edx; /* 0x2B029899: mov dword ptr [ecx + 4], edx */ 13338 ecx = MEM32(eax + 0x4); /* 0x2B02989C: mov ecx, dword ptr [eax + 4] */ 13339 ecx = MEM32(ecx); /* 0x2B02989F: mov ecx, dword ptr [ecx] */ 13340 L_2B0298A1: 13341 edx = MEM32(eax + 0x4); /* 0x2B0298A1: mov edx, dword ptr [eax + 4] */ 13342 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0298A4: mov dl, byte ptr [edx + 0x3c] */ 13343 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0298A7: mov byte ptr [ecx + 0x3c], dl */ 13344 edx = MEM32(eax + 0x4); /* 0x2B0298AA: mov edx, dword ptr [eax + 4] */ 13345 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298AD: mov byte ptr [edx + 0x3c], bl */ 13346 ecx = MEM32(ecx); /* 0x2B0298B0: mov ecx, dword ptr [ecx] */ 13347 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298B2: mov byte ptr [ecx + 0x3c], bl */ 13348 ecx = MEM32(eax + 0x4); /* 0x2B0298B5: mov ecx, dword ptr [eax + 4] */ 13349 edx = MEM32(ecx); /* 0x2B0298B8: mov edx, dword ptr [ecx] */ 13350 esi = MEM32(edx + 0x8); /* 0x2B0298BA: mov esi, dword ptr [edx + 8] */ 13351 MEM32(ecx) = esi; /* 0x2B0298BD: mov dword ptr [ecx], esi */ 13352 esi = MEM32(edx + 0x8); /* 0x2B0298BF: mov esi, dword ptr [edx + 8] */ 13353 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0298C2: cmp esi, dword ptr [edi + 8] */ 13354 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13356 _flag_k = FK_CMP; 13357 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298CA; /* 0x2B0298C5: je 0x2b0298ca */ 13358 L_2B0298C7: 13359 MEM32(esi + 0x4) = ecx; /* 0x2B0298C7: mov dword ptr [esi + 4], ecx */ 13360 L_2B0298CA: 13361 esi = MEM32(ecx + 0x4); /* 0x2B0298CA: mov esi, dword ptr [ecx + 4] */ 13362 MEM32(edx + 0x4) = esi; /* 0x2B0298CD: mov dword ptr [edx + 4], esi */ 13363 esi = MEM32(edi + 0x4); /* 0x2B0298D0: mov esi, dword ptr [edi + 4] */ 13364 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0298D3: cmp ecx, dword ptr [esi + 4] */ 13365 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13367 _flag_k = FK_CMP; 13368 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298DD; /* 0x2B0298D6: jne 0x2b0298dd */ 13369 L_2B0298D8: 13370 MEM32(esi + 0x4) = edx; /* 0x2B0298D8: mov dword ptr [esi + 4], edx */ 13371 goto L_2B0298EC; /* 0x2B0298DB: jmp 0x2b0298ec */ 13372 L_2B0298DD: 13373 esi = MEM32(ecx + 0x4); /* 0x2B0298DD: mov esi, dword ptr [ecx + 4] */ 13374 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0298E0: cmp ecx, dword ptr [esi + 8] */ 13375 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13377 _flag_k = FK_CMP; 13378 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298EA; /* 0x2B0298E3: jne 0x2b0298ea */ 13379 L_2B0298E5: 13380 MEM32(esi + 0x8) = edx; /* 0x2B0298E5: mov dword ptr [esi + 8], edx */ 13381 goto L_2B0298EC; /* 0x2B0298E8: jmp 0x2b0298ec */ 13382 L_2B0298EA: 13383 MEM32(esi) = edx; /* 0x2B0298EA: mov dword ptr [esi], edx */ 13384 L_2B0298EC: 13385 MEM32(edx + 0x8) = ecx; /* 0x2B0298EC: mov dword ptr [edx + 8], ecx */ 13386 L_2B0298EF: 13387 MEM32(ecx + 0x4) = edx; /* 0x2B0298EF: mov dword ptr [ecx + 4], edx */ 13388 L_2B0298F2: 13389 esi = MEM32(ebp + (-0x4)); /* 0x2B0298F2: mov esi, dword ptr [ebp - 4] */ 13390 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298F5: mov byte ptr [eax + 0x3c], bl */ 13391 L_2B0298F8: 13392 ecx = esi + 0xC; /* 0x2B0298F8: lea ecx, [esi + 0xc] */ 13393 RECOMP_ICALL(0x2B012D80u); /* 0x2B0298FB: call 0x2b012d80 */ /* not lifted */ 13394 RECOMP_FLAGS_IN(); 13395 PUSH32(esp, esi); /* 0x2B029900: push esi */ 13396 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B029901: call 0x2b0ab1ba */ /* not lifted */ 13397 RECOMP_FLAGS_IN(); 13398 eax = MEM32(edi + 0x10); /* 0x2B029906: mov eax, dword ptr [edi + 0x10] */ 13399 edx = MEM32(ebp + 0xC); /* 0x2B029909: mov edx, dword ptr [ebp + 0xc] */ 13400 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13402 esp = esp + 4; /* 0x2B02990C: add esp, 4 */ 13403 _flag_k = FK_ADD; 13404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13405 eax = eax - 1; /* 0x2B02990F: dec eax */ 13406 _flag_k = FK_DEC; 13407 MEM32(edi + 0x10) = eax; /* 0x2B029910: mov dword ptr [edi + 0x10], eax */ 13408 eax = MEM32(ebp + 0x8); /* 0x2B029913: mov eax, dword ptr [ebp + 8] */ 13409 edi = POP32_VAL(esp); /* 0x2B029916: pop edi */ 13410 esi = POP32_VAL(esp); /* 0x2B029917: pop esi */ 13411 MEM32(eax) = edx; /* 0x2B029918: mov dword ptr [eax], edx */ 13412 ebx = POP32_VAL(esp); /* 0x2B02991A: pop ebx */ 13413 esp = ebp; /* 0x2B02991B: mov esp, ebp */ 13414 ebp = POP32_VAL(esp); /* 0x2B02991D: pop ebp */ 13415 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02991E: ret 8 */ 13416 RECOMP_REGS_OUT(); 13417 } 13418 13419 void sub_2B029685(void) { 13420 int _fpu_cmp = 0; 13421 uint32_t _cf = 0; 13422 int _df = 1; 13423 uint32_t _flag_k = FK_NONE; 13424 uint32_t _flag_a = 0, _flag_b = 0; 13425 uint32_t _itail_tgt = 0; 13426 RECOMP_REGS_LOCALS 13427 RECOMP_ENTER(0x2B029685u); 13428 13429 L_2B029685: 13430 MEM32(ebx + 0x8) = edx; /* 0x2B029685: mov dword ptr [ebx + 8], edx */ 13431 esi = MEM32(ebp + (-0x4)); /* 0x2B029688: mov esi, dword ptr [ebp - 4] */ 13432 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x2B02968B: mov cl, byte ptr [esi + 0x3c] */ 13433 SET_LO8(ebx, 1); /* 0x2B02968E: mov bl, 1 */ 13434 /* cmp LO8(ecx), LO8(ebx) */ /* 0x2B029690: cmp cl, bl */ 13435 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13437 _flag_k = FK_NARROW(FK_CMP, 24); 13438 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F8; /* 0x2B029692: jne 0x2b0298f8 */ 13439 L_2B029698: 13440 ecx = MEM32(edi + 0x4); /* 0x2B029698: mov ecx, dword ptr [edi + 4] */ 13441 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B02969B: cmp eax, dword ptr [ecx + 4] */ 13442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13444 _flag_k = FK_CMP; 13445 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B02969E: je 0x2b0298f2 */ 13446 L_2B0296A4: 13447 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x2B0296A4: cmp byte ptr [eax + 0x3c], bl */ 13448 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13450 _flag_k = FK_NARROW(FK_CMP, 24); 13451 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B0296A7: jne 0x2b0298f2 */ 13452 L_2B0296AD: 13453 edx = MEM32(eax + 0x4); /* 0x2B0296AD: mov edx, dword ptr [eax + 4] */ 13454 ecx = MEM32(edx); /* 0x2B0296B0: mov ecx, dword ptr [edx] */ 13455 /* cmp eax, ecx */ /* 0x2B0296B2: cmp eax, ecx */ 13456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13458 _flag_k = FK_CMP; 13459 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029724; /* 0x2B0296B4: jne 0x2b029724 */ 13460 L_2B0296B6: 13461 ecx = MEM32(edx + 0x8); /* 0x2B0296B6: mov ecx, dword ptr [edx + 8] */ 13462 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B0296B9: mov dl, byte ptr [ecx + 0x3c] */ 13463 /* test LO8(edx), LO8(edx) */ /* 0x2B0296BC: test dl, dl */ 13464 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13465 _cf = 0; 13466 _flag_k = FK_NARROW(FK_TEST, 24); 13467 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02970B; /* 0x2B0296BE: jne 0x2b02970b */ 13468 L_2B0296C0: 13469 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0296C0: mov byte ptr [ecx + 0x3c], bl */ 13470 edx = MEM32(eax + 0x4); /* 0x2B0296C3: mov edx, dword ptr [eax + 4] */ 13471 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x2B0296C6: mov byte ptr [edx + 0x3c], 0 */ 13472 ecx = MEM32(eax + 0x4); /* 0x2B0296CA: mov ecx, dword ptr [eax + 4] */ 13473 edx = MEM32(ecx + 0x8); /* 0x2B0296CD: mov edx, dword ptr [ecx + 8] */ 13474 esi = MEM32(edx); /* 0x2B0296D0: mov esi, dword ptr [edx] */ 13475 MEM32(ecx + 0x8) = esi; /* 0x2B0296D2: mov dword ptr [ecx + 8], esi */ 13476 esi = MEM32(edx); /* 0x2B0296D5: mov esi, dword ptr [edx] */ 13477 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0296D7: cmp esi, dword ptr [edi + 8] */ 13478 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13480 _flag_k = FK_CMP; 13481 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0296DF; /* 0x2B0296DA: je 0x2b0296df */ 13482 L_2B0296DC: 13483 MEM32(esi + 0x4) = ecx; /* 0x2B0296DC: mov dword ptr [esi + 4], ecx */ 13484 L_2B0296DF: 13485 esi = MEM32(ecx + 0x4); /* 0x2B0296DF: mov esi, dword ptr [ecx + 4] */ 13486 MEM32(edx + 0x4) = esi; /* 0x2B0296E2: mov dword ptr [edx + 4], esi */ 13487 esi = MEM32(edi + 0x4); /* 0x2B0296E5: mov esi, dword ptr [edi + 4] */ 13488 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0296E8: cmp ecx, dword ptr [esi + 4] */ 13489 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13491 _flag_k = FK_CMP; 13492 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296F2; /* 0x2B0296EB: jne 0x2b0296f2 */ 13493 L_2B0296ED: 13494 MEM32(esi + 0x4) = edx; /* 0x2B0296ED: mov dword ptr [esi + 4], edx */ 13495 goto L_2B029700; /* 0x2B0296F0: jmp 0x2b029700 */ 13496 L_2B0296F2: 13497 esi = MEM32(ecx + 0x4); /* 0x2B0296F2: mov esi, dword ptr [ecx + 4] */ 13498 /* cmp ecx, MEM32(esi) */ /* 0x2B0296F5: cmp ecx, dword ptr [esi] */ 13499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13501 _flag_k = FK_CMP; 13502 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296FD; /* 0x2B0296F7: jne 0x2b0296fd */ 13503 L_2B0296F9: 13504 MEM32(esi) = edx; /* 0x2B0296F9: mov dword ptr [esi], edx */ 13505 goto L_2B029700; /* 0x2B0296FB: jmp 0x2b029700 */ 13506 L_2B0296FD: 13507 MEM32(esi + 0x8) = edx; /* 0x2B0296FD: mov dword ptr [esi + 8], edx */ 13508 L_2B029700: 13509 MEM32(edx) = ecx; /* 0x2B029700: mov dword ptr [edx], ecx */ 13510 MEM32(ecx + 0x4) = edx; /* 0x2B029702: mov dword ptr [ecx + 4], edx */ 13511 ecx = MEM32(eax + 0x4); /* 0x2B029705: mov ecx, dword ptr [eax + 4] */ 13512 ecx = MEM32(ecx + 0x8); /* 0x2B029708: mov ecx, dword ptr [ecx + 8] */ 13513 L_2B02970B: 13514 edx = MEM32(ecx); /* 0x2B02970B: mov edx, dword ptr [ecx] */ 13515 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02970D: cmp byte ptr [edx + 0x3c], bl */ 13516 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13518 _flag_k = FK_NARROW(FK_CMP, 24); 13519 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B029710: jne 0x2b0297a6 */ 13520 L_2B029716: 13521 edx = MEM32(ecx + 0x8); /* 0x2B029716: mov edx, dword ptr [ecx + 8] */ 13522 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029719: cmp byte ptr [edx + 0x3c], bl */ 13523 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13525 _flag_k = FK_NARROW(FK_CMP, 24); 13526 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B02971C: jne 0x2b0297a6 */ 13527 L_2B029722: 13528 goto L_2B02978E; /* 0x2B029722: jmp 0x2b02978e */ 13529 L_2B029724: 13530 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029724: mov dl, byte ptr [ecx + 0x3c] */ 13531 /* test LO8(edx), LO8(edx) */ /* 0x2B029727: test dl, dl */ 13532 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13533 _cf = 0; 13534 _flag_k = FK_NARROW(FK_TEST, 24); 13535 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029777; /* 0x2B029729: jne 0x2b029777 */ 13536 L_2B02972B: 13537 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02972B: mov byte ptr [ecx + 0x3c], bl */ 13538 ecx = MEM32(eax + 0x4); /* 0x2B02972E: mov ecx, dword ptr [eax + 4] */ 13539 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029731: mov byte ptr [ecx + 0x3c], 0 */ 13540 ecx = MEM32(eax + 0x4); /* 0x2B029735: mov ecx, dword ptr [eax + 4] */ 13541 edx = MEM32(ecx); /* 0x2B029738: mov edx, dword ptr [ecx] */ 13542 esi = MEM32(edx + 0x8); /* 0x2B02973A: mov esi, dword ptr [edx + 8] */ 13543 MEM32(ecx) = esi; /* 0x2B02973D: mov dword ptr [ecx], esi */ 13544 esi = MEM32(edx + 0x8); /* 0x2B02973F: mov esi, dword ptr [edx + 8] */ 13545 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029742: cmp esi, dword ptr [edi + 8] */ 13546 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13548 _flag_k = FK_CMP; 13549 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02974A; /* 0x2B029745: je 0x2b02974a */ 13550 L_2B029747: 13551 MEM32(esi + 0x4) = ecx; /* 0x2B029747: mov dword ptr [esi + 4], ecx */ 13552 L_2B02974A: 13553 esi = MEM32(ecx + 0x4); /* 0x2B02974A: mov esi, dword ptr [ecx + 4] */ 13554 MEM32(edx + 0x4) = esi; /* 0x2B02974D: mov dword ptr [edx + 4], esi */ 13555 esi = MEM32(edi + 0x4); /* 0x2B029750: mov esi, dword ptr [edi + 4] */ 13556 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B029753: cmp ecx, dword ptr [esi + 4] */ 13557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13559 _flag_k = FK_CMP; 13560 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02975D; /* 0x2B029756: jne 0x2b02975d */ 13561 L_2B029758: 13562 MEM32(esi + 0x4) = edx; /* 0x2B029758: mov dword ptr [esi + 4], edx */ 13563 goto L_2B02976C; /* 0x2B02975B: jmp 0x2b02976c */ 13564 L_2B02975D: 13565 esi = MEM32(ecx + 0x4); /* 0x2B02975D: mov esi, dword ptr [ecx + 4] */ 13566 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B029760: cmp ecx, dword ptr [esi + 8] */ 13567 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13569 _flag_k = FK_CMP; 13570 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02976A; /* 0x2B029763: jne 0x2b02976a */ 13571 L_2B029765: 13572 MEM32(esi + 0x8) = edx; /* 0x2B029765: mov dword ptr [esi + 8], edx */ 13573 goto L_2B02976C; /* 0x2B029768: jmp 0x2b02976c */ 13574 L_2B02976A: 13575 MEM32(esi) = edx; /* 0x2B02976A: mov dword ptr [esi], edx */ 13576 L_2B02976C: 13577 MEM32(edx + 0x8) = ecx; /* 0x2B02976C: mov dword ptr [edx + 8], ecx */ 13578 MEM32(ecx + 0x4) = edx; /* 0x2B02976F: mov dword ptr [ecx + 4], edx */ 13579 edx = MEM32(eax + 0x4); /* 0x2B029772: mov edx, dword ptr [eax + 4] */ 13580 ecx = MEM32(edx); /* 0x2B029775: mov ecx, dword ptr [edx] */ 13581 L_2B029777: 13582 edx = MEM32(ecx + 0x8); /* 0x2B029777: mov edx, dword ptr [ecx + 8] */ 13583 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02977A: cmp byte ptr [edx + 0x3c], bl */ 13584 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13586 _flag_k = FK_NARROW(FK_CMP, 24); 13587 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B02977D: jne 0x2b029853 */ 13588 L_2B029783: 13589 edx = MEM32(ecx); /* 0x2B029783: mov edx, dword ptr [ecx] */ 13590 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029785: cmp byte ptr [edx + 0x3c], bl */ 13591 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13593 _flag_k = FK_NARROW(FK_CMP, 24); 13594 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B029788: jne 0x2b029853 */ 13595 L_2B02978E: 13596 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B02978E: mov byte ptr [ecx + 0x3c], 0 */ 13597 ecx = MEM32(edi + 0x4); /* 0x2B029792: mov ecx, dword ptr [edi + 4] */ 13598 eax = MEM32(eax + 0x4); /* 0x2B029795: mov eax, dword ptr [eax + 4] */ 13599 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B029798: cmp eax, dword ptr [ecx + 4] */ 13600 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13602 _flag_k = FK_CMP; 13603 RECOMP_BACKEDGE(); 13604 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296A4; /* 0x2B02979B: jne 0x2b0296a4 */ 13605 L_2B0297A1: 13606 goto L_2B0298F2; /* 0x2B0297A1: jmp 0x2b0298f2 */ 13607 L_2B0297A6: 13608 edx = MEM32(ecx + 0x8); /* 0x2B0297A6: mov edx, dword ptr [ecx + 8] */ 13609 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B0297A9: cmp byte ptr [edx + 0x3c], bl */ 13610 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13612 _flag_k = FK_NARROW(FK_CMP, 24); 13613 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297F7; /* 0x2B0297AC: jne 0x2b0297f7 */ 13614 L_2B0297AE: 13615 edx = MEM32(ecx); /* 0x2B0297AE: mov edx, dword ptr [ecx] */ 13616 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0297B0: mov byte ptr [edx + 0x3c], bl */ 13617 edx = MEM32(ecx); /* 0x2B0297B3: mov edx, dword ptr [ecx] */ 13618 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B0297B5: mov byte ptr [ecx + 0x3c], 0 */ 13619 esi = MEM32(edx + 0x8); /* 0x2B0297B9: mov esi, dword ptr [edx + 8] */ 13620 MEM32(ecx) = esi; /* 0x2B0297BC: mov dword ptr [ecx], esi */ 13621 esi = MEM32(edx + 0x8); /* 0x2B0297BE: mov esi, dword ptr [edx + 8] */ 13622 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0297C1: cmp esi, dword ptr [edi + 8] */ 13623 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13625 _flag_k = FK_CMP; 13626 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0297C9; /* 0x2B0297C4: je 0x2b0297c9 */ 13627 L_2B0297C6: 13628 MEM32(esi + 0x4) = ecx; /* 0x2B0297C6: mov dword ptr [esi + 4], ecx */ 13629 L_2B0297C9: 13630 esi = MEM32(ecx + 0x4); /* 0x2B0297C9: mov esi, dword ptr [ecx + 4] */ 13631 MEM32(edx + 0x4) = esi; /* 0x2B0297CC: mov dword ptr [edx + 4], esi */ 13632 esi = MEM32(edi + 0x4); /* 0x2B0297CF: mov esi, dword ptr [edi + 4] */ 13633 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0297D2: cmp ecx, dword ptr [esi + 4] */ 13634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13636 _flag_k = FK_CMP; 13637 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297DC; /* 0x2B0297D5: jne 0x2b0297dc */ 13638 L_2B0297D7: 13639 MEM32(esi + 0x4) = edx; /* 0x2B0297D7: mov dword ptr [esi + 4], edx */ 13640 goto L_2B0297EB; /* 0x2B0297DA: jmp 0x2b0297eb */ 13641 L_2B0297DC: 13642 esi = MEM32(ecx + 0x4); /* 0x2B0297DC: mov esi, dword ptr [ecx + 4] */ 13643 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0297DF: cmp ecx, dword ptr [esi + 8] */ 13644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13646 _flag_k = FK_CMP; 13647 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297E9; /* 0x2B0297E2: jne 0x2b0297e9 */ 13648 L_2B0297E4: 13649 MEM32(esi + 0x8) = edx; /* 0x2B0297E4: mov dword ptr [esi + 8], edx */ 13650 goto L_2B0297EB; /* 0x2B0297E7: jmp 0x2b0297eb */ 13651 L_2B0297E9: 13652 MEM32(esi) = edx; /* 0x2B0297E9: mov dword ptr [esi], edx */ 13653 L_2B0297EB: 13654 MEM32(edx + 0x8) = ecx; /* 0x2B0297EB: mov dword ptr [edx + 8], ecx */ 13655 MEM32(ecx + 0x4) = edx; /* 0x2B0297EE: mov dword ptr [ecx + 4], edx */ 13656 ecx = MEM32(eax + 0x4); /* 0x2B0297F1: mov ecx, dword ptr [eax + 4] */ 13657 ecx = MEM32(ecx + 0x8); /* 0x2B0297F4: mov ecx, dword ptr [ecx + 8] */ 13658 L_2B0297F7: 13659 edx = MEM32(eax + 0x4); /* 0x2B0297F7: mov edx, dword ptr [eax + 4] */ 13660 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0297FA: mov dl, byte ptr [edx + 0x3c] */ 13661 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0297FD: mov byte ptr [ecx + 0x3c], dl */ 13662 edx = MEM32(eax + 0x4); /* 0x2B029800: mov edx, dword ptr [eax + 4] */ 13663 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029803: mov byte ptr [edx + 0x3c], bl */ 13664 ecx = MEM32(ecx + 0x8); /* 0x2B029806: mov ecx, dword ptr [ecx + 8] */ 13665 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029809: mov byte ptr [ecx + 0x3c], bl */ 13666 ecx = MEM32(eax + 0x4); /* 0x2B02980C: mov ecx, dword ptr [eax + 4] */ 13667 edx = MEM32(ecx + 0x8); /* 0x2B02980F: mov edx, dword ptr [ecx + 8] */ 13668 esi = MEM32(edx); /* 0x2B029812: mov esi, dword ptr [edx] */ 13669 MEM32(ecx + 0x8) = esi; /* 0x2B029814: mov dword ptr [ecx + 8], esi */ 13670 esi = MEM32(edx); /* 0x2B029817: mov esi, dword ptr [edx] */ 13671 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029819: cmp esi, dword ptr [edi + 8] */ 13672 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13674 _flag_k = FK_CMP; 13675 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029821; /* 0x2B02981C: je 0x2b029821 */ 13676 L_2B02981E: 13677 MEM32(esi + 0x4) = ecx; /* 0x2B02981E: mov dword ptr [esi + 4], ecx */ 13678 L_2B029821: 13679 esi = MEM32(ecx + 0x4); /* 0x2B029821: mov esi, dword ptr [ecx + 4] */ 13680 MEM32(edx + 0x4) = esi; /* 0x2B029824: mov dword ptr [edx + 4], esi */ 13681 esi = MEM32(edi + 0x4); /* 0x2B029827: mov esi, dword ptr [edi + 4] */ 13682 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02982A: cmp ecx, dword ptr [esi + 4] */ 13683 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13685 _flag_k = FK_CMP; 13686 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029839; /* 0x2B02982D: jne 0x2b029839 */ 13687 L_2B02982F: 13688 MEM32(esi + 0x4) = edx; /* 0x2B02982F: mov dword ptr [esi + 4], edx */ 13689 MEM32(edx) = ecx; /* 0x2B029832: mov dword ptr [edx], ecx */ 13690 goto L_2B0298EF; /* 0x2B029834: jmp 0x2b0298ef */ 13691 L_2B029839: 13692 esi = MEM32(ecx + 0x4); /* 0x2B029839: mov esi, dword ptr [ecx + 4] */ 13693 /* cmp ecx, MEM32(esi) */ /* 0x2B02983C: cmp ecx, dword ptr [esi] */ 13694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13696 _flag_k = FK_CMP; 13697 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029849; /* 0x2B02983E: jne 0x2b029849 */ 13698 L_2B029840: 13699 MEM32(esi) = edx; /* 0x2B029840: mov dword ptr [esi], edx */ 13700 MEM32(edx) = ecx; /* 0x2B029842: mov dword ptr [edx], ecx */ 13701 goto L_2B0298EF; /* 0x2B029844: jmp 0x2b0298ef */ 13702 L_2B029849: 13703 MEM32(esi + 0x8) = edx; /* 0x2B029849: mov dword ptr [esi + 8], edx */ 13704 MEM32(edx) = ecx; /* 0x2B02984C: mov dword ptr [edx], ecx */ 13705 goto L_2B0298EF; /* 0x2B02984E: jmp 0x2b0298ef */ 13706 L_2B029853: 13707 edx = MEM32(ecx); /* 0x2B029853: mov edx, dword ptr [ecx] */ 13708 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029855: cmp byte ptr [edx + 0x3c], bl */ 13709 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13711 _flag_k = FK_NARROW(FK_CMP, 24); 13712 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298A1; /* 0x2B029858: jne 0x2b0298a1 */ 13713 L_2B02985A: 13714 edx = MEM32(ecx + 0x8); /* 0x2B02985A: mov edx, dword ptr [ecx + 8] */ 13715 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02985D: mov byte ptr [edx + 0x3c], bl */ 13716 edx = MEM32(ecx + 0x8); /* 0x2B029860: mov edx, dword ptr [ecx + 8] */ 13717 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029863: mov byte ptr [ecx + 0x3c], 0 */ 13718 esi = MEM32(edx); /* 0x2B029867: mov esi, dword ptr [edx] */ 13719 MEM32(ecx + 0x8) = esi; /* 0x2B029869: mov dword ptr [ecx + 8], esi */ 13720 esi = MEM32(edx); /* 0x2B02986C: mov esi, dword ptr [edx] */ 13721 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B02986E: cmp esi, dword ptr [edi + 8] */ 13722 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13724 _flag_k = FK_CMP; 13725 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029876; /* 0x2B029871: je 0x2b029876 */ 13726 L_2B029873: 13727 MEM32(esi + 0x4) = ecx; /* 0x2B029873: mov dword ptr [esi + 4], ecx */ 13728 L_2B029876: 13729 esi = MEM32(ecx + 0x4); /* 0x2B029876: mov esi, dword ptr [ecx + 4] */ 13730 MEM32(edx + 0x4) = esi; /* 0x2B029879: mov dword ptr [edx + 4], esi */ 13731 esi = MEM32(edi + 0x4); /* 0x2B02987C: mov esi, dword ptr [edi + 4] */ 13732 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02987F: cmp ecx, dword ptr [esi + 4] */ 13733 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13735 _flag_k = FK_CMP; 13736 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029889; /* 0x2B029882: jne 0x2b029889 */ 13737 L_2B029884: 13738 MEM32(esi + 0x4) = edx; /* 0x2B029884: mov dword ptr [esi + 4], edx */ 13739 goto L_2B029897; /* 0x2B029887: jmp 0x2b029897 */ 13740 L_2B029889: 13741 esi = MEM32(ecx + 0x4); /* 0x2B029889: mov esi, dword ptr [ecx + 4] */ 13742 /* cmp ecx, MEM32(esi) */ /* 0x2B02988C: cmp ecx, dword ptr [esi] */ 13743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13745 _flag_k = FK_CMP; 13746 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029894; /* 0x2B02988E: jne 0x2b029894 */ 13747 L_2B029890: 13748 MEM32(esi) = edx; /* 0x2B029890: mov dword ptr [esi], edx */ 13749 goto L_2B029897; /* 0x2B029892: jmp 0x2b029897 */ 13750 L_2B029894: 13751 MEM32(esi + 0x8) = edx; /* 0x2B029894: mov dword ptr [esi + 8], edx */ 13752 L_2B029897: 13753 MEM32(edx) = ecx; /* 0x2B029897: mov dword ptr [edx], ecx */ 13754 MEM32(ecx + 0x4) = edx; /* 0x2B029899: mov dword ptr [ecx + 4], edx */ 13755 ecx = MEM32(eax + 0x4); /* 0x2B02989C: mov ecx, dword ptr [eax + 4] */ 13756 ecx = MEM32(ecx); /* 0x2B02989F: mov ecx, dword ptr [ecx] */ 13757 L_2B0298A1: 13758 edx = MEM32(eax + 0x4); /* 0x2B0298A1: mov edx, dword ptr [eax + 4] */ 13759 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0298A4: mov dl, byte ptr [edx + 0x3c] */ 13760 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0298A7: mov byte ptr [ecx + 0x3c], dl */ 13761 edx = MEM32(eax + 0x4); /* 0x2B0298AA: mov edx, dword ptr [eax + 4] */ 13762 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298AD: mov byte ptr [edx + 0x3c], bl */ 13763 ecx = MEM32(ecx); /* 0x2B0298B0: mov ecx, dword ptr [ecx] */ 13764 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298B2: mov byte ptr [ecx + 0x3c], bl */ 13765 ecx = MEM32(eax + 0x4); /* 0x2B0298B5: mov ecx, dword ptr [eax + 4] */ 13766 edx = MEM32(ecx); /* 0x2B0298B8: mov edx, dword ptr [ecx] */ 13767 esi = MEM32(edx + 0x8); /* 0x2B0298BA: mov esi, dword ptr [edx + 8] */ 13768 MEM32(ecx) = esi; /* 0x2B0298BD: mov dword ptr [ecx], esi */ 13769 esi = MEM32(edx + 0x8); /* 0x2B0298BF: mov esi, dword ptr [edx + 8] */ 13770 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0298C2: cmp esi, dword ptr [edi + 8] */ 13771 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13773 _flag_k = FK_CMP; 13774 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298CA; /* 0x2B0298C5: je 0x2b0298ca */ 13775 L_2B0298C7: 13776 MEM32(esi + 0x4) = ecx; /* 0x2B0298C7: mov dword ptr [esi + 4], ecx */ 13777 L_2B0298CA: 13778 esi = MEM32(ecx + 0x4); /* 0x2B0298CA: mov esi, dword ptr [ecx + 4] */ 13779 MEM32(edx + 0x4) = esi; /* 0x2B0298CD: mov dword ptr [edx + 4], esi */ 13780 esi = MEM32(edi + 0x4); /* 0x2B0298D0: mov esi, dword ptr [edi + 4] */ 13781 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0298D3: cmp ecx, dword ptr [esi + 4] */ 13782 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13784 _flag_k = FK_CMP; 13785 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298DD; /* 0x2B0298D6: jne 0x2b0298dd */ 13786 L_2B0298D8: 13787 MEM32(esi + 0x4) = edx; /* 0x2B0298D8: mov dword ptr [esi + 4], edx */ 13788 goto L_2B0298EC; /* 0x2B0298DB: jmp 0x2b0298ec */ 13789 L_2B0298DD: 13790 esi = MEM32(ecx + 0x4); /* 0x2B0298DD: mov esi, dword ptr [ecx + 4] */ 13791 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0298E0: cmp ecx, dword ptr [esi + 8] */ 13792 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13794 _flag_k = FK_CMP; 13795 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298EA; /* 0x2B0298E3: jne 0x2b0298ea */ 13796 L_2B0298E5: 13797 MEM32(esi + 0x8) = edx; /* 0x2B0298E5: mov dword ptr [esi + 8], edx */ 13798 goto L_2B0298EC; /* 0x2B0298E8: jmp 0x2b0298ec */ 13799 L_2B0298EA: 13800 MEM32(esi) = edx; /* 0x2B0298EA: mov dword ptr [esi], edx */ 13801 L_2B0298EC: 13802 MEM32(edx + 0x8) = ecx; /* 0x2B0298EC: mov dword ptr [edx + 8], ecx */ 13803 L_2B0298EF: 13804 MEM32(ecx + 0x4) = edx; /* 0x2B0298EF: mov dword ptr [ecx + 4], edx */ 13805 L_2B0298F2: 13806 esi = MEM32(ebp + (-0x4)); /* 0x2B0298F2: mov esi, dword ptr [ebp - 4] */ 13807 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298F5: mov byte ptr [eax + 0x3c], bl */ 13808 L_2B0298F8: 13809 ecx = esi + 0xC; /* 0x2B0298F8: lea ecx, [esi + 0xc] */ 13810 RECOMP_ICALL(0x2B012D80u); /* 0x2B0298FB: call 0x2b012d80 */ /* not lifted */ 13811 RECOMP_FLAGS_IN(); 13812 PUSH32(esp, esi); /* 0x2B029900: push esi */ 13813 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B029901: call 0x2b0ab1ba */ /* not lifted */ 13814 RECOMP_FLAGS_IN(); 13815 eax = MEM32(edi + 0x10); /* 0x2B029906: mov eax, dword ptr [edi + 0x10] */ 13816 edx = MEM32(ebp + 0xC); /* 0x2B029909: mov edx, dword ptr [ebp + 0xc] */ 13817 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13819 esp = esp + 4; /* 0x2B02990C: add esp, 4 */ 13820 _flag_k = FK_ADD; 13821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13822 eax = eax - 1; /* 0x2B02990F: dec eax */ 13823 _flag_k = FK_DEC; 13824 MEM32(edi + 0x10) = eax; /* 0x2B029910: mov dword ptr [edi + 0x10], eax */ 13825 eax = MEM32(ebp + 0x8); /* 0x2B029913: mov eax, dword ptr [ebp + 8] */ 13826 edi = POP32_VAL(esp); /* 0x2B029916: pop edi */ 13827 esi = POP32_VAL(esp); /* 0x2B029917: pop esi */ 13828 MEM32(eax) = edx; /* 0x2B029918: mov dword ptr [eax], edx */ 13829 ebx = POP32_VAL(esp); /* 0x2B02991A: pop ebx */ 13830 esp = ebp; /* 0x2B02991B: mov esp, ebp */ 13831 ebp = POP32_VAL(esp); /* 0x2B02991D: pop ebp */ 13832 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02991E: ret 8 */ 13833 RECOMP_REGS_OUT(); 13834 } 13835 13836 void sub_2B0296A4(void) { 13837 int _fpu_cmp = 0; 13838 uint32_t _cf = 0; 13839 int _df = 1; 13840 uint32_t _flag_k = FK_NONE; 13841 uint32_t _flag_a = 0, _flag_b = 0; 13842 uint32_t _itail_tgt = 0; 13843 RECOMP_REGS_LOCALS 13844 RECOMP_ENTER(0x2B0296A4u); 13845 13846 L_2B0296A4: 13847 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x2B0296A4: cmp byte ptr [eax + 0x3c], bl */ 13848 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13850 _flag_k = FK_NARROW(FK_CMP, 24); 13851 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B0296A7: jne 0x2b0298f2 */ 13852 L_2B0296AD: 13853 edx = MEM32(eax + 0x4); /* 0x2B0296AD: mov edx, dword ptr [eax + 4] */ 13854 ecx = MEM32(edx); /* 0x2B0296B0: mov ecx, dword ptr [edx] */ 13855 /* cmp eax, ecx */ /* 0x2B0296B2: cmp eax, ecx */ 13856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13858 _flag_k = FK_CMP; 13859 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029724; /* 0x2B0296B4: jne 0x2b029724 */ 13860 L_2B0296B6: 13861 ecx = MEM32(edx + 0x8); /* 0x2B0296B6: mov ecx, dword ptr [edx + 8] */ 13862 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B0296B9: mov dl, byte ptr [ecx + 0x3c] */ 13863 /* test LO8(edx), LO8(edx) */ /* 0x2B0296BC: test dl, dl */ 13864 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13865 _cf = 0; 13866 _flag_k = FK_NARROW(FK_TEST, 24); 13867 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02970B; /* 0x2B0296BE: jne 0x2b02970b */ 13868 L_2B0296C0: 13869 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0296C0: mov byte ptr [ecx + 0x3c], bl */ 13870 edx = MEM32(eax + 0x4); /* 0x2B0296C3: mov edx, dword ptr [eax + 4] */ 13871 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x2B0296C6: mov byte ptr [edx + 0x3c], 0 */ 13872 ecx = MEM32(eax + 0x4); /* 0x2B0296CA: mov ecx, dword ptr [eax + 4] */ 13873 edx = MEM32(ecx + 0x8); /* 0x2B0296CD: mov edx, dword ptr [ecx + 8] */ 13874 esi = MEM32(edx); /* 0x2B0296D0: mov esi, dword ptr [edx] */ 13875 MEM32(ecx + 0x8) = esi; /* 0x2B0296D2: mov dword ptr [ecx + 8], esi */ 13876 esi = MEM32(edx); /* 0x2B0296D5: mov esi, dword ptr [edx] */ 13877 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0296D7: cmp esi, dword ptr [edi + 8] */ 13878 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13880 _flag_k = FK_CMP; 13881 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0296DF; /* 0x2B0296DA: je 0x2b0296df */ 13882 L_2B0296DC: 13883 MEM32(esi + 0x4) = ecx; /* 0x2B0296DC: mov dword ptr [esi + 4], ecx */ 13884 L_2B0296DF: 13885 esi = MEM32(ecx + 0x4); /* 0x2B0296DF: mov esi, dword ptr [ecx + 4] */ 13886 MEM32(edx + 0x4) = esi; /* 0x2B0296E2: mov dword ptr [edx + 4], esi */ 13887 esi = MEM32(edi + 0x4); /* 0x2B0296E5: mov esi, dword ptr [edi + 4] */ 13888 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0296E8: cmp ecx, dword ptr [esi + 4] */ 13889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13891 _flag_k = FK_CMP; 13892 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296F2; /* 0x2B0296EB: jne 0x2b0296f2 */ 13893 L_2B0296ED: 13894 MEM32(esi + 0x4) = edx; /* 0x2B0296ED: mov dword ptr [esi + 4], edx */ 13895 goto L_2B029700; /* 0x2B0296F0: jmp 0x2b029700 */ 13896 L_2B0296F2: 13897 esi = MEM32(ecx + 0x4); /* 0x2B0296F2: mov esi, dword ptr [ecx + 4] */ 13898 /* cmp ecx, MEM32(esi) */ /* 0x2B0296F5: cmp ecx, dword ptr [esi] */ 13899 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13901 _flag_k = FK_CMP; 13902 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296FD; /* 0x2B0296F7: jne 0x2b0296fd */ 13903 L_2B0296F9: 13904 MEM32(esi) = edx; /* 0x2B0296F9: mov dword ptr [esi], edx */ 13905 goto L_2B029700; /* 0x2B0296FB: jmp 0x2b029700 */ 13906 L_2B0296FD: 13907 MEM32(esi + 0x8) = edx; /* 0x2B0296FD: mov dword ptr [esi + 8], edx */ 13908 L_2B029700: 13909 MEM32(edx) = ecx; /* 0x2B029700: mov dword ptr [edx], ecx */ 13910 MEM32(ecx + 0x4) = edx; /* 0x2B029702: mov dword ptr [ecx + 4], edx */ 13911 ecx = MEM32(eax + 0x4); /* 0x2B029705: mov ecx, dword ptr [eax + 4] */ 13912 ecx = MEM32(ecx + 0x8); /* 0x2B029708: mov ecx, dword ptr [ecx + 8] */ 13913 L_2B02970B: 13914 edx = MEM32(ecx); /* 0x2B02970B: mov edx, dword ptr [ecx] */ 13915 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02970D: cmp byte ptr [edx + 0x3c], bl */ 13916 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13918 _flag_k = FK_NARROW(FK_CMP, 24); 13919 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B029710: jne 0x2b0297a6 */ 13920 L_2B029716: 13921 edx = MEM32(ecx + 0x8); /* 0x2B029716: mov edx, dword ptr [ecx + 8] */ 13922 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029719: cmp byte ptr [edx + 0x3c], bl */ 13923 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13925 _flag_k = FK_NARROW(FK_CMP, 24); 13926 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B02971C: jne 0x2b0297a6 */ 13927 L_2B029722: 13928 goto L_2B02978E; /* 0x2B029722: jmp 0x2b02978e */ 13929 L_2B029724: 13930 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029724: mov dl, byte ptr [ecx + 0x3c] */ 13931 /* test LO8(edx), LO8(edx) */ /* 0x2B029727: test dl, dl */ 13932 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13933 _cf = 0; 13934 _flag_k = FK_NARROW(FK_TEST, 24); 13935 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029777; /* 0x2B029729: jne 0x2b029777 */ 13936 L_2B02972B: 13937 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02972B: mov byte ptr [ecx + 0x3c], bl */ 13938 ecx = MEM32(eax + 0x4); /* 0x2B02972E: mov ecx, dword ptr [eax + 4] */ 13939 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029731: mov byte ptr [ecx + 0x3c], 0 */ 13940 ecx = MEM32(eax + 0x4); /* 0x2B029735: mov ecx, dword ptr [eax + 4] */ 13941 edx = MEM32(ecx); /* 0x2B029738: mov edx, dword ptr [ecx] */ 13942 esi = MEM32(edx + 0x8); /* 0x2B02973A: mov esi, dword ptr [edx + 8] */ 13943 MEM32(ecx) = esi; /* 0x2B02973D: mov dword ptr [ecx], esi */ 13944 esi = MEM32(edx + 0x8); /* 0x2B02973F: mov esi, dword ptr [edx + 8] */ 13945 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029742: cmp esi, dword ptr [edi + 8] */ 13946 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13948 _flag_k = FK_CMP; 13949 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02974A; /* 0x2B029745: je 0x2b02974a */ 13950 L_2B029747: 13951 MEM32(esi + 0x4) = ecx; /* 0x2B029747: mov dword ptr [esi + 4], ecx */ 13952 L_2B02974A: 13953 esi = MEM32(ecx + 0x4); /* 0x2B02974A: mov esi, dword ptr [ecx + 4] */ 13954 MEM32(edx + 0x4) = esi; /* 0x2B02974D: mov dword ptr [edx + 4], esi */ 13955 esi = MEM32(edi + 0x4); /* 0x2B029750: mov esi, dword ptr [edi + 4] */ 13956 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B029753: cmp ecx, dword ptr [esi + 4] */ 13957 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13959 _flag_k = FK_CMP; 13960 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02975D; /* 0x2B029756: jne 0x2b02975d */ 13961 L_2B029758: 13962 MEM32(esi + 0x4) = edx; /* 0x2B029758: mov dword ptr [esi + 4], edx */ 13963 goto L_2B02976C; /* 0x2B02975B: jmp 0x2b02976c */ 13964 L_2B02975D: 13965 esi = MEM32(ecx + 0x4); /* 0x2B02975D: mov esi, dword ptr [ecx + 4] */ 13966 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B029760: cmp ecx, dword ptr [esi + 8] */ 13967 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13969 _flag_k = FK_CMP; 13970 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02976A; /* 0x2B029763: jne 0x2b02976a */ 13971 L_2B029765: 13972 MEM32(esi + 0x8) = edx; /* 0x2B029765: mov dword ptr [esi + 8], edx */ 13973 goto L_2B02976C; /* 0x2B029768: jmp 0x2b02976c */ 13974 L_2B02976A: 13975 MEM32(esi) = edx; /* 0x2B02976A: mov dword ptr [esi], edx */ 13976 L_2B02976C: 13977 MEM32(edx + 0x8) = ecx; /* 0x2B02976C: mov dword ptr [edx + 8], ecx */ 13978 MEM32(ecx + 0x4) = edx; /* 0x2B02976F: mov dword ptr [ecx + 4], edx */ 13979 edx = MEM32(eax + 0x4); /* 0x2B029772: mov edx, dword ptr [eax + 4] */ 13980 ecx = MEM32(edx); /* 0x2B029775: mov ecx, dword ptr [edx] */ 13981 L_2B029777: 13982 edx = MEM32(ecx + 0x8); /* 0x2B029777: mov edx, dword ptr [ecx + 8] */ 13983 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02977A: cmp byte ptr [edx + 0x3c], bl */ 13984 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13986 _flag_k = FK_NARROW(FK_CMP, 24); 13987 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B02977D: jne 0x2b029853 */ 13988 L_2B029783: 13989 edx = MEM32(ecx); /* 0x2B029783: mov edx, dword ptr [ecx] */ 13990 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029785: cmp byte ptr [edx + 0x3c], bl */ 13991 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13993 _flag_k = FK_NARROW(FK_CMP, 24); 13994 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B029788: jne 0x2b029853 */ 13995 L_2B02978E: 13996 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B02978E: mov byte ptr [ecx + 0x3c], 0 */ 13997 ecx = MEM32(edi + 0x4); /* 0x2B029792: mov ecx, dword ptr [edi + 4] */ 13998 eax = MEM32(eax + 0x4); /* 0x2B029795: mov eax, dword ptr [eax + 4] */ 13999 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B029798: cmp eax, dword ptr [ecx + 4] */ 14000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14002 _flag_k = FK_CMP; 14003 RECOMP_BACKEDGE(); 14004 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296A4; /* 0x2B02979B: jne 0x2b0296a4 */ 14005 L_2B0297A1: 14006 goto L_2B0298F2; /* 0x2B0297A1: jmp 0x2b0298f2 */ 14007 L_2B0297A6: 14008 edx = MEM32(ecx + 0x8); /* 0x2B0297A6: mov edx, dword ptr [ecx + 8] */ 14009 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B0297A9: cmp byte ptr [edx + 0x3c], bl */ 14010 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14012 _flag_k = FK_NARROW(FK_CMP, 24); 14013 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297F7; /* 0x2B0297AC: jne 0x2b0297f7 */ 14014 L_2B0297AE: 14015 edx = MEM32(ecx); /* 0x2B0297AE: mov edx, dword ptr [ecx] */ 14016 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0297B0: mov byte ptr [edx + 0x3c], bl */ 14017 edx = MEM32(ecx); /* 0x2B0297B3: mov edx, dword ptr [ecx] */ 14018 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B0297B5: mov byte ptr [ecx + 0x3c], 0 */ 14019 esi = MEM32(edx + 0x8); /* 0x2B0297B9: mov esi, dword ptr [edx + 8] */ 14020 MEM32(ecx) = esi; /* 0x2B0297BC: mov dword ptr [ecx], esi */ 14021 esi = MEM32(edx + 0x8); /* 0x2B0297BE: mov esi, dword ptr [edx + 8] */ 14022 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0297C1: cmp esi, dword ptr [edi + 8] */ 14023 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14025 _flag_k = FK_CMP; 14026 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0297C9; /* 0x2B0297C4: je 0x2b0297c9 */ 14027 L_2B0297C6: 14028 MEM32(esi + 0x4) = ecx; /* 0x2B0297C6: mov dword ptr [esi + 4], ecx */ 14029 L_2B0297C9: 14030 esi = MEM32(ecx + 0x4); /* 0x2B0297C9: mov esi, dword ptr [ecx + 4] */ 14031 MEM32(edx + 0x4) = esi; /* 0x2B0297CC: mov dword ptr [edx + 4], esi */ 14032 esi = MEM32(edi + 0x4); /* 0x2B0297CF: mov esi, dword ptr [edi + 4] */ 14033 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0297D2: cmp ecx, dword ptr [esi + 4] */ 14034 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14036 _flag_k = FK_CMP; 14037 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297DC; /* 0x2B0297D5: jne 0x2b0297dc */ 14038 L_2B0297D7: 14039 MEM32(esi + 0x4) = edx; /* 0x2B0297D7: mov dword ptr [esi + 4], edx */ 14040 goto L_2B0297EB; /* 0x2B0297DA: jmp 0x2b0297eb */ 14041 L_2B0297DC: 14042 esi = MEM32(ecx + 0x4); /* 0x2B0297DC: mov esi, dword ptr [ecx + 4] */ 14043 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0297DF: cmp ecx, dword ptr [esi + 8] */ 14044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14046 _flag_k = FK_CMP; 14047 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297E9; /* 0x2B0297E2: jne 0x2b0297e9 */ 14048 L_2B0297E4: 14049 MEM32(esi + 0x8) = edx; /* 0x2B0297E4: mov dword ptr [esi + 8], edx */ 14050 goto L_2B0297EB; /* 0x2B0297E7: jmp 0x2b0297eb */ 14051 L_2B0297E9: 14052 MEM32(esi) = edx; /* 0x2B0297E9: mov dword ptr [esi], edx */ 14053 L_2B0297EB: 14054 MEM32(edx + 0x8) = ecx; /* 0x2B0297EB: mov dword ptr [edx + 8], ecx */ 14055 MEM32(ecx + 0x4) = edx; /* 0x2B0297EE: mov dword ptr [ecx + 4], edx */ 14056 ecx = MEM32(eax + 0x4); /* 0x2B0297F1: mov ecx, dword ptr [eax + 4] */ 14057 ecx = MEM32(ecx + 0x8); /* 0x2B0297F4: mov ecx, dword ptr [ecx + 8] */ 14058 L_2B0297F7: 14059 edx = MEM32(eax + 0x4); /* 0x2B0297F7: mov edx, dword ptr [eax + 4] */ 14060 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0297FA: mov dl, byte ptr [edx + 0x3c] */ 14061 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0297FD: mov byte ptr [ecx + 0x3c], dl */ 14062 edx = MEM32(eax + 0x4); /* 0x2B029800: mov edx, dword ptr [eax + 4] */ 14063 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029803: mov byte ptr [edx + 0x3c], bl */ 14064 ecx = MEM32(ecx + 0x8); /* 0x2B029806: mov ecx, dword ptr [ecx + 8] */ 14065 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029809: mov byte ptr [ecx + 0x3c], bl */ 14066 ecx = MEM32(eax + 0x4); /* 0x2B02980C: mov ecx, dword ptr [eax + 4] */ 14067 edx = MEM32(ecx + 0x8); /* 0x2B02980F: mov edx, dword ptr [ecx + 8] */ 14068 esi = MEM32(edx); /* 0x2B029812: mov esi, dword ptr [edx] */ 14069 MEM32(ecx + 0x8) = esi; /* 0x2B029814: mov dword ptr [ecx + 8], esi */ 14070 esi = MEM32(edx); /* 0x2B029817: mov esi, dword ptr [edx] */ 14071 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029819: cmp esi, dword ptr [edi + 8] */ 14072 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14074 _flag_k = FK_CMP; 14075 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029821; /* 0x2B02981C: je 0x2b029821 */ 14076 L_2B02981E: 14077 MEM32(esi + 0x4) = ecx; /* 0x2B02981E: mov dword ptr [esi + 4], ecx */ 14078 L_2B029821: 14079 esi = MEM32(ecx + 0x4); /* 0x2B029821: mov esi, dword ptr [ecx + 4] */ 14080 MEM32(edx + 0x4) = esi; /* 0x2B029824: mov dword ptr [edx + 4], esi */ 14081 esi = MEM32(edi + 0x4); /* 0x2B029827: mov esi, dword ptr [edi + 4] */ 14082 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02982A: cmp ecx, dword ptr [esi + 4] */ 14083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14085 _flag_k = FK_CMP; 14086 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029839; /* 0x2B02982D: jne 0x2b029839 */ 14087 L_2B02982F: 14088 MEM32(esi + 0x4) = edx; /* 0x2B02982F: mov dword ptr [esi + 4], edx */ 14089 MEM32(edx) = ecx; /* 0x2B029832: mov dword ptr [edx], ecx */ 14090 goto L_2B0298EF; /* 0x2B029834: jmp 0x2b0298ef */ 14091 L_2B029839: 14092 esi = MEM32(ecx + 0x4); /* 0x2B029839: mov esi, dword ptr [ecx + 4] */ 14093 /* cmp ecx, MEM32(esi) */ /* 0x2B02983C: cmp ecx, dword ptr [esi] */ 14094 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14096 _flag_k = FK_CMP; 14097 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029849; /* 0x2B02983E: jne 0x2b029849 */ 14098 L_2B029840: 14099 MEM32(esi) = edx; /* 0x2B029840: mov dword ptr [esi], edx */ 14100 MEM32(edx) = ecx; /* 0x2B029842: mov dword ptr [edx], ecx */ 14101 goto L_2B0298EF; /* 0x2B029844: jmp 0x2b0298ef */ 14102 L_2B029849: 14103 MEM32(esi + 0x8) = edx; /* 0x2B029849: mov dword ptr [esi + 8], edx */ 14104 MEM32(edx) = ecx; /* 0x2B02984C: mov dword ptr [edx], ecx */ 14105 goto L_2B0298EF; /* 0x2B02984E: jmp 0x2b0298ef */ 14106 L_2B029853: 14107 edx = MEM32(ecx); /* 0x2B029853: mov edx, dword ptr [ecx] */ 14108 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029855: cmp byte ptr [edx + 0x3c], bl */ 14109 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14111 _flag_k = FK_NARROW(FK_CMP, 24); 14112 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298A1; /* 0x2B029858: jne 0x2b0298a1 */ 14113 L_2B02985A: 14114 edx = MEM32(ecx + 0x8); /* 0x2B02985A: mov edx, dword ptr [ecx + 8] */ 14115 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02985D: mov byte ptr [edx + 0x3c], bl */ 14116 edx = MEM32(ecx + 0x8); /* 0x2B029860: mov edx, dword ptr [ecx + 8] */ 14117 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029863: mov byte ptr [ecx + 0x3c], 0 */ 14118 esi = MEM32(edx); /* 0x2B029867: mov esi, dword ptr [edx] */ 14119 MEM32(ecx + 0x8) = esi; /* 0x2B029869: mov dword ptr [ecx + 8], esi */ 14120 esi = MEM32(edx); /* 0x2B02986C: mov esi, dword ptr [edx] */ 14121 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B02986E: cmp esi, dword ptr [edi + 8] */ 14122 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14124 _flag_k = FK_CMP; 14125 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029876; /* 0x2B029871: je 0x2b029876 */ 14126 L_2B029873: 14127 MEM32(esi + 0x4) = ecx; /* 0x2B029873: mov dword ptr [esi + 4], ecx */ 14128 L_2B029876: 14129 esi = MEM32(ecx + 0x4); /* 0x2B029876: mov esi, dword ptr [ecx + 4] */ 14130 MEM32(edx + 0x4) = esi; /* 0x2B029879: mov dword ptr [edx + 4], esi */ 14131 esi = MEM32(edi + 0x4); /* 0x2B02987C: mov esi, dword ptr [edi + 4] */ 14132 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02987F: cmp ecx, dword ptr [esi + 4] */ 14133 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14135 _flag_k = FK_CMP; 14136 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029889; /* 0x2B029882: jne 0x2b029889 */ 14137 L_2B029884: 14138 MEM32(esi + 0x4) = edx; /* 0x2B029884: mov dword ptr [esi + 4], edx */ 14139 goto L_2B029897; /* 0x2B029887: jmp 0x2b029897 */ 14140 L_2B029889: 14141 esi = MEM32(ecx + 0x4); /* 0x2B029889: mov esi, dword ptr [ecx + 4] */ 14142 /* cmp ecx, MEM32(esi) */ /* 0x2B02988C: cmp ecx, dword ptr [esi] */ 14143 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14145 _flag_k = FK_CMP; 14146 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029894; /* 0x2B02988E: jne 0x2b029894 */ 14147 L_2B029890: 14148 MEM32(esi) = edx; /* 0x2B029890: mov dword ptr [esi], edx */ 14149 goto L_2B029897; /* 0x2B029892: jmp 0x2b029897 */ 14150 L_2B029894: 14151 MEM32(esi + 0x8) = edx; /* 0x2B029894: mov dword ptr [esi + 8], edx */ 14152 L_2B029897: 14153 MEM32(edx) = ecx; /* 0x2B029897: mov dword ptr [edx], ecx */ 14154 MEM32(ecx + 0x4) = edx; /* 0x2B029899: mov dword ptr [ecx + 4], edx */ 14155 ecx = MEM32(eax + 0x4); /* 0x2B02989C: mov ecx, dword ptr [eax + 4] */ 14156 ecx = MEM32(ecx); /* 0x2B02989F: mov ecx, dword ptr [ecx] */ 14157 L_2B0298A1: 14158 edx = MEM32(eax + 0x4); /* 0x2B0298A1: mov edx, dword ptr [eax + 4] */ 14159 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0298A4: mov dl, byte ptr [edx + 0x3c] */ 14160 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0298A7: mov byte ptr [ecx + 0x3c], dl */ 14161 edx = MEM32(eax + 0x4); /* 0x2B0298AA: mov edx, dword ptr [eax + 4] */ 14162 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298AD: mov byte ptr [edx + 0x3c], bl */ 14163 ecx = MEM32(ecx); /* 0x2B0298B0: mov ecx, dword ptr [ecx] */ 14164 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298B2: mov byte ptr [ecx + 0x3c], bl */ 14165 ecx = MEM32(eax + 0x4); /* 0x2B0298B5: mov ecx, dword ptr [eax + 4] */ 14166 edx = MEM32(ecx); /* 0x2B0298B8: mov edx, dword ptr [ecx] */ 14167 esi = MEM32(edx + 0x8); /* 0x2B0298BA: mov esi, dword ptr [edx + 8] */ 14168 MEM32(ecx) = esi; /* 0x2B0298BD: mov dword ptr [ecx], esi */ 14169 esi = MEM32(edx + 0x8); /* 0x2B0298BF: mov esi, dword ptr [edx + 8] */ 14170 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0298C2: cmp esi, dword ptr [edi + 8] */ 14171 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14173 _flag_k = FK_CMP; 14174 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298CA; /* 0x2B0298C5: je 0x2b0298ca */ 14175 L_2B0298C7: 14176 MEM32(esi + 0x4) = ecx; /* 0x2B0298C7: mov dword ptr [esi + 4], ecx */ 14177 L_2B0298CA: 14178 esi = MEM32(ecx + 0x4); /* 0x2B0298CA: mov esi, dword ptr [ecx + 4] */ 14179 MEM32(edx + 0x4) = esi; /* 0x2B0298CD: mov dword ptr [edx + 4], esi */ 14180 esi = MEM32(edi + 0x4); /* 0x2B0298D0: mov esi, dword ptr [edi + 4] */ 14181 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0298D3: cmp ecx, dword ptr [esi + 4] */ 14182 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14184 _flag_k = FK_CMP; 14185 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298DD; /* 0x2B0298D6: jne 0x2b0298dd */ 14186 L_2B0298D8: 14187 MEM32(esi + 0x4) = edx; /* 0x2B0298D8: mov dword ptr [esi + 4], edx */ 14188 goto L_2B0298EC; /* 0x2B0298DB: jmp 0x2b0298ec */ 14189 L_2B0298DD: 14190 esi = MEM32(ecx + 0x4); /* 0x2B0298DD: mov esi, dword ptr [ecx + 4] */ 14191 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0298E0: cmp ecx, dword ptr [esi + 8] */ 14192 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14194 _flag_k = FK_CMP; 14195 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298EA; /* 0x2B0298E3: jne 0x2b0298ea */ 14196 L_2B0298E5: 14197 MEM32(esi + 0x8) = edx; /* 0x2B0298E5: mov dword ptr [esi + 8], edx */ 14198 goto L_2B0298EC; /* 0x2B0298E8: jmp 0x2b0298ec */ 14199 L_2B0298EA: 14200 MEM32(esi) = edx; /* 0x2B0298EA: mov dword ptr [esi], edx */ 14201 L_2B0298EC: 14202 MEM32(edx + 0x8) = ecx; /* 0x2B0298EC: mov dword ptr [edx + 8], ecx */ 14203 L_2B0298EF: 14204 MEM32(ecx + 0x4) = edx; /* 0x2B0298EF: mov dword ptr [ecx + 4], edx */ 14205 L_2B0298F2: 14206 esi = MEM32(ebp + (-0x4)); /* 0x2B0298F2: mov esi, dword ptr [ebp - 4] */ 14207 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298F5: mov byte ptr [eax + 0x3c], bl */ 14208 ecx = esi + 0xC; /* 0x2B0298F8: lea ecx, [esi + 0xc] */ 14209 RECOMP_ICALL(0x2B012D80u); /* 0x2B0298FB: call 0x2b012d80 */ /* not lifted */ 14210 RECOMP_FLAGS_IN(); 14211 PUSH32(esp, esi); /* 0x2B029900: push esi */ 14212 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B029901: call 0x2b0ab1ba */ /* not lifted */ 14213 RECOMP_FLAGS_IN(); 14214 eax = MEM32(edi + 0x10); /* 0x2B029906: mov eax, dword ptr [edi + 0x10] */ 14215 edx = MEM32(ebp + 0xC); /* 0x2B029909: mov edx, dword ptr [ebp + 0xc] */ 14216 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14217 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14218 esp = esp + 4; /* 0x2B02990C: add esp, 4 */ 14219 _flag_k = FK_ADD; 14220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14221 eax = eax - 1; /* 0x2B02990F: dec eax */ 14222 _flag_k = FK_DEC; 14223 MEM32(edi + 0x10) = eax; /* 0x2B029910: mov dword ptr [edi + 0x10], eax */ 14224 eax = MEM32(ebp + 0x8); /* 0x2B029913: mov eax, dword ptr [ebp + 8] */ 14225 edi = POP32_VAL(esp); /* 0x2B029916: pop edi */ 14226 esi = POP32_VAL(esp); /* 0x2B029917: pop esi */ 14227 MEM32(eax) = edx; /* 0x2B029918: mov dword ptr [eax], edx */ 14228 ebx = POP32_VAL(esp); /* 0x2B02991A: pop ebx */ 14229 esp = ebp; /* 0x2B02991B: mov esp, ebp */ 14230 ebp = POP32_VAL(esp); /* 0x2B02991D: pop ebp */ 14231 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02991E: ret 8 */ 14232 RECOMP_REGS_OUT(); 14233 } 14234 14235 void sub_2B029700(void) { 14236 int _fpu_cmp = 0; 14237 uint32_t _cf = 0; 14238 int _df = 1; 14239 uint32_t _flag_k = FK_NONE; 14240 uint32_t _flag_a = 0, _flag_b = 0; 14241 uint32_t _itail_tgt = 0; 14242 RECOMP_REGS_LOCALS 14243 RECOMP_ENTER(0x2B029700u); 14244 14245 goto L_2B029700; 14246 L_2B0296A4: 14247 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x2B0296A4: cmp byte ptr [eax + 0x3c], bl */ 14248 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14250 _flag_k = FK_NARROW(FK_CMP, 24); 14251 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B0296A7: jne 0x2b0298f2 */ 14252 L_2B0296AD: 14253 edx = MEM32(eax + 0x4); /* 0x2B0296AD: mov edx, dword ptr [eax + 4] */ 14254 ecx = MEM32(edx); /* 0x2B0296B0: mov ecx, dword ptr [edx] */ 14255 /* cmp eax, ecx */ /* 0x2B0296B2: cmp eax, ecx */ 14256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14258 _flag_k = FK_CMP; 14259 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029724; /* 0x2B0296B4: jne 0x2b029724 */ 14260 L_2B0296B6: 14261 ecx = MEM32(edx + 0x8); /* 0x2B0296B6: mov ecx, dword ptr [edx + 8] */ 14262 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B0296B9: mov dl, byte ptr [ecx + 0x3c] */ 14263 /* test LO8(edx), LO8(edx) */ /* 0x2B0296BC: test dl, dl */ 14264 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14265 _cf = 0; 14266 _flag_k = FK_NARROW(FK_TEST, 24); 14267 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02970B; /* 0x2B0296BE: jne 0x2b02970b */ 14268 L_2B0296C0: 14269 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0296C0: mov byte ptr [ecx + 0x3c], bl */ 14270 edx = MEM32(eax + 0x4); /* 0x2B0296C3: mov edx, dword ptr [eax + 4] */ 14271 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x2B0296C6: mov byte ptr [edx + 0x3c], 0 */ 14272 ecx = MEM32(eax + 0x4); /* 0x2B0296CA: mov ecx, dword ptr [eax + 4] */ 14273 edx = MEM32(ecx + 0x8); /* 0x2B0296CD: mov edx, dword ptr [ecx + 8] */ 14274 esi = MEM32(edx); /* 0x2B0296D0: mov esi, dword ptr [edx] */ 14275 MEM32(ecx + 0x8) = esi; /* 0x2B0296D2: mov dword ptr [ecx + 8], esi */ 14276 esi = MEM32(edx); /* 0x2B0296D5: mov esi, dword ptr [edx] */ 14277 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0296D7: cmp esi, dword ptr [edi + 8] */ 14278 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14280 _flag_k = FK_CMP; 14281 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0296DF; /* 0x2B0296DA: je 0x2b0296df */ 14282 L_2B0296DC: 14283 MEM32(esi + 0x4) = ecx; /* 0x2B0296DC: mov dword ptr [esi + 4], ecx */ 14284 L_2B0296DF: 14285 esi = MEM32(ecx + 0x4); /* 0x2B0296DF: mov esi, dword ptr [ecx + 4] */ 14286 MEM32(edx + 0x4) = esi; /* 0x2B0296E2: mov dword ptr [edx + 4], esi */ 14287 esi = MEM32(edi + 0x4); /* 0x2B0296E5: mov esi, dword ptr [edi + 4] */ 14288 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0296E8: cmp ecx, dword ptr [esi + 4] */ 14289 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14291 _flag_k = FK_CMP; 14292 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296F2; /* 0x2B0296EB: jne 0x2b0296f2 */ 14293 L_2B0296ED: 14294 MEM32(esi + 0x4) = edx; /* 0x2B0296ED: mov dword ptr [esi + 4], edx */ 14295 goto L_2B029700; /* 0x2B0296F0: jmp 0x2b029700 */ 14296 L_2B0296F2: 14297 esi = MEM32(ecx + 0x4); /* 0x2B0296F2: mov esi, dword ptr [ecx + 4] */ 14298 /* cmp ecx, MEM32(esi) */ /* 0x2B0296F5: cmp ecx, dword ptr [esi] */ 14299 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14301 _flag_k = FK_CMP; 14302 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296FD; /* 0x2B0296F7: jne 0x2b0296fd */ 14303 L_2B0296F9: 14304 MEM32(esi) = edx; /* 0x2B0296F9: mov dword ptr [esi], edx */ 14305 goto L_2B029700; /* 0x2B0296FB: jmp 0x2b029700 */ 14306 L_2B0296FD: 14307 MEM32(esi + 0x8) = edx; /* 0x2B0296FD: mov dword ptr [esi + 8], edx */ 14308 L_2B029700: 14309 MEM32(edx) = ecx; /* 0x2B029700: mov dword ptr [edx], ecx */ 14310 MEM32(ecx + 0x4) = edx; /* 0x2B029702: mov dword ptr [ecx + 4], edx */ 14311 ecx = MEM32(eax + 0x4); /* 0x2B029705: mov ecx, dword ptr [eax + 4] */ 14312 ecx = MEM32(ecx + 0x8); /* 0x2B029708: mov ecx, dword ptr [ecx + 8] */ 14313 L_2B02970B: 14314 edx = MEM32(ecx); /* 0x2B02970B: mov edx, dword ptr [ecx] */ 14315 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02970D: cmp byte ptr [edx + 0x3c], bl */ 14316 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14318 _flag_k = FK_NARROW(FK_CMP, 24); 14319 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B029710: jne 0x2b0297a6 */ 14320 L_2B029716: 14321 edx = MEM32(ecx + 0x8); /* 0x2B029716: mov edx, dword ptr [ecx + 8] */ 14322 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029719: cmp byte ptr [edx + 0x3c], bl */ 14323 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14325 _flag_k = FK_NARROW(FK_CMP, 24); 14326 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B02971C: jne 0x2b0297a6 */ 14327 L_2B029722: 14328 goto L_2B02978E; /* 0x2B029722: jmp 0x2b02978e */ 14329 L_2B029724: 14330 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029724: mov dl, byte ptr [ecx + 0x3c] */ 14331 /* test LO8(edx), LO8(edx) */ /* 0x2B029727: test dl, dl */ 14332 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14333 _cf = 0; 14334 _flag_k = FK_NARROW(FK_TEST, 24); 14335 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029777; /* 0x2B029729: jne 0x2b029777 */ 14336 L_2B02972B: 14337 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02972B: mov byte ptr [ecx + 0x3c], bl */ 14338 ecx = MEM32(eax + 0x4); /* 0x2B02972E: mov ecx, dword ptr [eax + 4] */ 14339 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029731: mov byte ptr [ecx + 0x3c], 0 */ 14340 ecx = MEM32(eax + 0x4); /* 0x2B029735: mov ecx, dword ptr [eax + 4] */ 14341 edx = MEM32(ecx); /* 0x2B029738: mov edx, dword ptr [ecx] */ 14342 esi = MEM32(edx + 0x8); /* 0x2B02973A: mov esi, dword ptr [edx + 8] */ 14343 MEM32(ecx) = esi; /* 0x2B02973D: mov dword ptr [ecx], esi */ 14344 esi = MEM32(edx + 0x8); /* 0x2B02973F: mov esi, dword ptr [edx + 8] */ 14345 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029742: cmp esi, dword ptr [edi + 8] */ 14346 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14348 _flag_k = FK_CMP; 14349 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02974A; /* 0x2B029745: je 0x2b02974a */ 14350 L_2B029747: 14351 MEM32(esi + 0x4) = ecx; /* 0x2B029747: mov dword ptr [esi + 4], ecx */ 14352 L_2B02974A: 14353 esi = MEM32(ecx + 0x4); /* 0x2B02974A: mov esi, dword ptr [ecx + 4] */ 14354 MEM32(edx + 0x4) = esi; /* 0x2B02974D: mov dword ptr [edx + 4], esi */ 14355 esi = MEM32(edi + 0x4); /* 0x2B029750: mov esi, dword ptr [edi + 4] */ 14356 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B029753: cmp ecx, dword ptr [esi + 4] */ 14357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14359 _flag_k = FK_CMP; 14360 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02975D; /* 0x2B029756: jne 0x2b02975d */ 14361 L_2B029758: 14362 MEM32(esi + 0x4) = edx; /* 0x2B029758: mov dword ptr [esi + 4], edx */ 14363 goto L_2B02976C; /* 0x2B02975B: jmp 0x2b02976c */ 14364 L_2B02975D: 14365 esi = MEM32(ecx + 0x4); /* 0x2B02975D: mov esi, dword ptr [ecx + 4] */ 14366 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B029760: cmp ecx, dword ptr [esi + 8] */ 14367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14369 _flag_k = FK_CMP; 14370 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02976A; /* 0x2B029763: jne 0x2b02976a */ 14371 L_2B029765: 14372 MEM32(esi + 0x8) = edx; /* 0x2B029765: mov dword ptr [esi + 8], edx */ 14373 goto L_2B02976C; /* 0x2B029768: jmp 0x2b02976c */ 14374 L_2B02976A: 14375 MEM32(esi) = edx; /* 0x2B02976A: mov dword ptr [esi], edx */ 14376 L_2B02976C: 14377 MEM32(edx + 0x8) = ecx; /* 0x2B02976C: mov dword ptr [edx + 8], ecx */ 14378 MEM32(ecx + 0x4) = edx; /* 0x2B02976F: mov dword ptr [ecx + 4], edx */ 14379 edx = MEM32(eax + 0x4); /* 0x2B029772: mov edx, dword ptr [eax + 4] */ 14380 ecx = MEM32(edx); /* 0x2B029775: mov ecx, dword ptr [edx] */ 14381 L_2B029777: 14382 edx = MEM32(ecx + 0x8); /* 0x2B029777: mov edx, dword ptr [ecx + 8] */ 14383 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02977A: cmp byte ptr [edx + 0x3c], bl */ 14384 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14386 _flag_k = FK_NARROW(FK_CMP, 24); 14387 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B02977D: jne 0x2b029853 */ 14388 L_2B029783: 14389 edx = MEM32(ecx); /* 0x2B029783: mov edx, dword ptr [ecx] */ 14390 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029785: cmp byte ptr [edx + 0x3c], bl */ 14391 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14393 _flag_k = FK_NARROW(FK_CMP, 24); 14394 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B029788: jne 0x2b029853 */ 14395 L_2B02978E: 14396 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B02978E: mov byte ptr [ecx + 0x3c], 0 */ 14397 ecx = MEM32(edi + 0x4); /* 0x2B029792: mov ecx, dword ptr [edi + 4] */ 14398 eax = MEM32(eax + 0x4); /* 0x2B029795: mov eax, dword ptr [eax + 4] */ 14399 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B029798: cmp eax, dword ptr [ecx + 4] */ 14400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14402 _flag_k = FK_CMP; 14403 RECOMP_BACKEDGE(); 14404 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296A4; /* 0x2B02979B: jne 0x2b0296a4 */ 14405 L_2B0297A1: 14406 goto L_2B0298F2; /* 0x2B0297A1: jmp 0x2b0298f2 */ 14407 L_2B0297A6: 14408 edx = MEM32(ecx + 0x8); /* 0x2B0297A6: mov edx, dword ptr [ecx + 8] */ 14409 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B0297A9: cmp byte ptr [edx + 0x3c], bl */ 14410 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14412 _flag_k = FK_NARROW(FK_CMP, 24); 14413 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297F7; /* 0x2B0297AC: jne 0x2b0297f7 */ 14414 L_2B0297AE: 14415 edx = MEM32(ecx); /* 0x2B0297AE: mov edx, dword ptr [ecx] */ 14416 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0297B0: mov byte ptr [edx + 0x3c], bl */ 14417 edx = MEM32(ecx); /* 0x2B0297B3: mov edx, dword ptr [ecx] */ 14418 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B0297B5: mov byte ptr [ecx + 0x3c], 0 */ 14419 esi = MEM32(edx + 0x8); /* 0x2B0297B9: mov esi, dword ptr [edx + 8] */ 14420 MEM32(ecx) = esi; /* 0x2B0297BC: mov dword ptr [ecx], esi */ 14421 esi = MEM32(edx + 0x8); /* 0x2B0297BE: mov esi, dword ptr [edx + 8] */ 14422 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0297C1: cmp esi, dword ptr [edi + 8] */ 14423 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14425 _flag_k = FK_CMP; 14426 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0297C9; /* 0x2B0297C4: je 0x2b0297c9 */ 14427 L_2B0297C6: 14428 MEM32(esi + 0x4) = ecx; /* 0x2B0297C6: mov dword ptr [esi + 4], ecx */ 14429 L_2B0297C9: 14430 esi = MEM32(ecx + 0x4); /* 0x2B0297C9: mov esi, dword ptr [ecx + 4] */ 14431 MEM32(edx + 0x4) = esi; /* 0x2B0297CC: mov dword ptr [edx + 4], esi */ 14432 esi = MEM32(edi + 0x4); /* 0x2B0297CF: mov esi, dword ptr [edi + 4] */ 14433 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0297D2: cmp ecx, dword ptr [esi + 4] */ 14434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14436 _flag_k = FK_CMP; 14437 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297DC; /* 0x2B0297D5: jne 0x2b0297dc */ 14438 L_2B0297D7: 14439 MEM32(esi + 0x4) = edx; /* 0x2B0297D7: mov dword ptr [esi + 4], edx */ 14440 goto L_2B0297EB; /* 0x2B0297DA: jmp 0x2b0297eb */ 14441 L_2B0297DC: 14442 esi = MEM32(ecx + 0x4); /* 0x2B0297DC: mov esi, dword ptr [ecx + 4] */ 14443 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0297DF: cmp ecx, dword ptr [esi + 8] */ 14444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14446 _flag_k = FK_CMP; 14447 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297E9; /* 0x2B0297E2: jne 0x2b0297e9 */ 14448 L_2B0297E4: 14449 MEM32(esi + 0x8) = edx; /* 0x2B0297E4: mov dword ptr [esi + 8], edx */ 14450 goto L_2B0297EB; /* 0x2B0297E7: jmp 0x2b0297eb */ 14451 L_2B0297E9: 14452 MEM32(esi) = edx; /* 0x2B0297E9: mov dword ptr [esi], edx */ 14453 L_2B0297EB: 14454 MEM32(edx + 0x8) = ecx; /* 0x2B0297EB: mov dword ptr [edx + 8], ecx */ 14455 MEM32(ecx + 0x4) = edx; /* 0x2B0297EE: mov dword ptr [ecx + 4], edx */ 14456 ecx = MEM32(eax + 0x4); /* 0x2B0297F1: mov ecx, dword ptr [eax + 4] */ 14457 ecx = MEM32(ecx + 0x8); /* 0x2B0297F4: mov ecx, dword ptr [ecx + 8] */ 14458 L_2B0297F7: 14459 edx = MEM32(eax + 0x4); /* 0x2B0297F7: mov edx, dword ptr [eax + 4] */ 14460 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0297FA: mov dl, byte ptr [edx + 0x3c] */ 14461 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0297FD: mov byte ptr [ecx + 0x3c], dl */ 14462 edx = MEM32(eax + 0x4); /* 0x2B029800: mov edx, dword ptr [eax + 4] */ 14463 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029803: mov byte ptr [edx + 0x3c], bl */ 14464 ecx = MEM32(ecx + 0x8); /* 0x2B029806: mov ecx, dword ptr [ecx + 8] */ 14465 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029809: mov byte ptr [ecx + 0x3c], bl */ 14466 ecx = MEM32(eax + 0x4); /* 0x2B02980C: mov ecx, dword ptr [eax + 4] */ 14467 edx = MEM32(ecx + 0x8); /* 0x2B02980F: mov edx, dword ptr [ecx + 8] */ 14468 esi = MEM32(edx); /* 0x2B029812: mov esi, dword ptr [edx] */ 14469 MEM32(ecx + 0x8) = esi; /* 0x2B029814: mov dword ptr [ecx + 8], esi */ 14470 esi = MEM32(edx); /* 0x2B029817: mov esi, dword ptr [edx] */ 14471 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029819: cmp esi, dword ptr [edi + 8] */ 14472 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14474 _flag_k = FK_CMP; 14475 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029821; /* 0x2B02981C: je 0x2b029821 */ 14476 L_2B02981E: 14477 MEM32(esi + 0x4) = ecx; /* 0x2B02981E: mov dword ptr [esi + 4], ecx */ 14478 L_2B029821: 14479 esi = MEM32(ecx + 0x4); /* 0x2B029821: mov esi, dword ptr [ecx + 4] */ 14480 MEM32(edx + 0x4) = esi; /* 0x2B029824: mov dword ptr [edx + 4], esi */ 14481 esi = MEM32(edi + 0x4); /* 0x2B029827: mov esi, dword ptr [edi + 4] */ 14482 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02982A: cmp ecx, dword ptr [esi + 4] */ 14483 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14485 _flag_k = FK_CMP; 14486 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029839; /* 0x2B02982D: jne 0x2b029839 */ 14487 L_2B02982F: 14488 MEM32(esi + 0x4) = edx; /* 0x2B02982F: mov dword ptr [esi + 4], edx */ 14489 MEM32(edx) = ecx; /* 0x2B029832: mov dword ptr [edx], ecx */ 14490 goto L_2B0298EF; /* 0x2B029834: jmp 0x2b0298ef */ 14491 L_2B029839: 14492 esi = MEM32(ecx + 0x4); /* 0x2B029839: mov esi, dword ptr [ecx + 4] */ 14493 /* cmp ecx, MEM32(esi) */ /* 0x2B02983C: cmp ecx, dword ptr [esi] */ 14494 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14496 _flag_k = FK_CMP; 14497 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029849; /* 0x2B02983E: jne 0x2b029849 */ 14498 L_2B029840: 14499 MEM32(esi) = edx; /* 0x2B029840: mov dword ptr [esi], edx */ 14500 MEM32(edx) = ecx; /* 0x2B029842: mov dword ptr [edx], ecx */ 14501 goto L_2B0298EF; /* 0x2B029844: jmp 0x2b0298ef */ 14502 L_2B029849: 14503 MEM32(esi + 0x8) = edx; /* 0x2B029849: mov dword ptr [esi + 8], edx */ 14504 MEM32(edx) = ecx; /* 0x2B02984C: mov dword ptr [edx], ecx */ 14505 goto L_2B0298EF; /* 0x2B02984E: jmp 0x2b0298ef */ 14506 L_2B029853: 14507 edx = MEM32(ecx); /* 0x2B029853: mov edx, dword ptr [ecx] */ 14508 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029855: cmp byte ptr [edx + 0x3c], bl */ 14509 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14511 _flag_k = FK_NARROW(FK_CMP, 24); 14512 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298A1; /* 0x2B029858: jne 0x2b0298a1 */ 14513 L_2B02985A: 14514 edx = MEM32(ecx + 0x8); /* 0x2B02985A: mov edx, dword ptr [ecx + 8] */ 14515 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02985D: mov byte ptr [edx + 0x3c], bl */ 14516 edx = MEM32(ecx + 0x8); /* 0x2B029860: mov edx, dword ptr [ecx + 8] */ 14517 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029863: mov byte ptr [ecx + 0x3c], 0 */ 14518 esi = MEM32(edx); /* 0x2B029867: mov esi, dword ptr [edx] */ 14519 MEM32(ecx + 0x8) = esi; /* 0x2B029869: mov dword ptr [ecx + 8], esi */ 14520 esi = MEM32(edx); /* 0x2B02986C: mov esi, dword ptr [edx] */ 14521 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B02986E: cmp esi, dword ptr [edi + 8] */ 14522 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14524 _flag_k = FK_CMP; 14525 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029876; /* 0x2B029871: je 0x2b029876 */ 14526 L_2B029873: 14527 MEM32(esi + 0x4) = ecx; /* 0x2B029873: mov dword ptr [esi + 4], ecx */ 14528 L_2B029876: 14529 esi = MEM32(ecx + 0x4); /* 0x2B029876: mov esi, dword ptr [ecx + 4] */ 14530 MEM32(edx + 0x4) = esi; /* 0x2B029879: mov dword ptr [edx + 4], esi */ 14531 esi = MEM32(edi + 0x4); /* 0x2B02987C: mov esi, dword ptr [edi + 4] */ 14532 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02987F: cmp ecx, dword ptr [esi + 4] */ 14533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14535 _flag_k = FK_CMP; 14536 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029889; /* 0x2B029882: jne 0x2b029889 */ 14537 L_2B029884: 14538 MEM32(esi + 0x4) = edx; /* 0x2B029884: mov dword ptr [esi + 4], edx */ 14539 goto L_2B029897; /* 0x2B029887: jmp 0x2b029897 */ 14540 L_2B029889: 14541 esi = MEM32(ecx + 0x4); /* 0x2B029889: mov esi, dword ptr [ecx + 4] */ 14542 /* cmp ecx, MEM32(esi) */ /* 0x2B02988C: cmp ecx, dword ptr [esi] */ 14543 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14545 _flag_k = FK_CMP; 14546 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029894; /* 0x2B02988E: jne 0x2b029894 */ 14547 L_2B029890: 14548 MEM32(esi) = edx; /* 0x2B029890: mov dword ptr [esi], edx */ 14549 goto L_2B029897; /* 0x2B029892: jmp 0x2b029897 */ 14550 L_2B029894: 14551 MEM32(esi + 0x8) = edx; /* 0x2B029894: mov dword ptr [esi + 8], edx */ 14552 L_2B029897: 14553 MEM32(edx) = ecx; /* 0x2B029897: mov dword ptr [edx], ecx */ 14554 MEM32(ecx + 0x4) = edx; /* 0x2B029899: mov dword ptr [ecx + 4], edx */ 14555 ecx = MEM32(eax + 0x4); /* 0x2B02989C: mov ecx, dword ptr [eax + 4] */ 14556 ecx = MEM32(ecx); /* 0x2B02989F: mov ecx, dword ptr [ecx] */ 14557 L_2B0298A1: 14558 edx = MEM32(eax + 0x4); /* 0x2B0298A1: mov edx, dword ptr [eax + 4] */ 14559 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0298A4: mov dl, byte ptr [edx + 0x3c] */ 14560 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0298A7: mov byte ptr [ecx + 0x3c], dl */ 14561 edx = MEM32(eax + 0x4); /* 0x2B0298AA: mov edx, dword ptr [eax + 4] */ 14562 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298AD: mov byte ptr [edx + 0x3c], bl */ 14563 ecx = MEM32(ecx); /* 0x2B0298B0: mov ecx, dword ptr [ecx] */ 14564 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298B2: mov byte ptr [ecx + 0x3c], bl */ 14565 ecx = MEM32(eax + 0x4); /* 0x2B0298B5: mov ecx, dword ptr [eax + 4] */ 14566 edx = MEM32(ecx); /* 0x2B0298B8: mov edx, dword ptr [ecx] */ 14567 esi = MEM32(edx + 0x8); /* 0x2B0298BA: mov esi, dword ptr [edx + 8] */ 14568 MEM32(ecx) = esi; /* 0x2B0298BD: mov dword ptr [ecx], esi */ 14569 esi = MEM32(edx + 0x8); /* 0x2B0298BF: mov esi, dword ptr [edx + 8] */ 14570 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0298C2: cmp esi, dword ptr [edi + 8] */ 14571 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14573 _flag_k = FK_CMP; 14574 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298CA; /* 0x2B0298C5: je 0x2b0298ca */ 14575 L_2B0298C7: 14576 MEM32(esi + 0x4) = ecx; /* 0x2B0298C7: mov dword ptr [esi + 4], ecx */ 14577 L_2B0298CA: 14578 esi = MEM32(ecx + 0x4); /* 0x2B0298CA: mov esi, dword ptr [ecx + 4] */ 14579 MEM32(edx + 0x4) = esi; /* 0x2B0298CD: mov dword ptr [edx + 4], esi */ 14580 esi = MEM32(edi + 0x4); /* 0x2B0298D0: mov esi, dword ptr [edi + 4] */ 14581 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0298D3: cmp ecx, dword ptr [esi + 4] */ 14582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14584 _flag_k = FK_CMP; 14585 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298DD; /* 0x2B0298D6: jne 0x2b0298dd */ 14586 L_2B0298D8: 14587 MEM32(esi + 0x4) = edx; /* 0x2B0298D8: mov dword ptr [esi + 4], edx */ 14588 goto L_2B0298EC; /* 0x2B0298DB: jmp 0x2b0298ec */ 14589 L_2B0298DD: 14590 esi = MEM32(ecx + 0x4); /* 0x2B0298DD: mov esi, dword ptr [ecx + 4] */ 14591 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0298E0: cmp ecx, dword ptr [esi + 8] */ 14592 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14594 _flag_k = FK_CMP; 14595 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298EA; /* 0x2B0298E3: jne 0x2b0298ea */ 14596 L_2B0298E5: 14597 MEM32(esi + 0x8) = edx; /* 0x2B0298E5: mov dword ptr [esi + 8], edx */ 14598 goto L_2B0298EC; /* 0x2B0298E8: jmp 0x2b0298ec */ 14599 L_2B0298EA: 14600 MEM32(esi) = edx; /* 0x2B0298EA: mov dword ptr [esi], edx */ 14601 L_2B0298EC: 14602 MEM32(edx + 0x8) = ecx; /* 0x2B0298EC: mov dword ptr [edx + 8], ecx */ 14603 L_2B0298EF: 14604 MEM32(ecx + 0x4) = edx; /* 0x2B0298EF: mov dword ptr [ecx + 4], edx */ 14605 L_2B0298F2: 14606 esi = MEM32(ebp + (-0x4)); /* 0x2B0298F2: mov esi, dword ptr [ebp - 4] */ 14607 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298F5: mov byte ptr [eax + 0x3c], bl */ 14608 ecx = esi + 0xC; /* 0x2B0298F8: lea ecx, [esi + 0xc] */ 14609 RECOMP_ICALL(0x2B012D80u); /* 0x2B0298FB: call 0x2b012d80 */ /* not lifted */ 14610 RECOMP_FLAGS_IN(); 14611 PUSH32(esp, esi); /* 0x2B029900: push esi */ 14612 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B029901: call 0x2b0ab1ba */ /* not lifted */ 14613 RECOMP_FLAGS_IN(); 14614 eax = MEM32(edi + 0x10); /* 0x2B029906: mov eax, dword ptr [edi + 0x10] */ 14615 edx = MEM32(ebp + 0xC); /* 0x2B029909: mov edx, dword ptr [ebp + 0xc] */ 14616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14618 esp = esp + 4; /* 0x2B02990C: add esp, 4 */ 14619 _flag_k = FK_ADD; 14620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14621 eax = eax - 1; /* 0x2B02990F: dec eax */ 14622 _flag_k = FK_DEC; 14623 MEM32(edi + 0x10) = eax; /* 0x2B029910: mov dword ptr [edi + 0x10], eax */ 14624 eax = MEM32(ebp + 0x8); /* 0x2B029913: mov eax, dword ptr [ebp + 8] */ 14625 edi = POP32_VAL(esp); /* 0x2B029916: pop edi */ 14626 esi = POP32_VAL(esp); /* 0x2B029917: pop esi */ 14627 MEM32(eax) = edx; /* 0x2B029918: mov dword ptr [eax], edx */ 14628 ebx = POP32_VAL(esp); /* 0x2B02991A: pop ebx */ 14629 esp = ebp; /* 0x2B02991B: mov esp, ebp */ 14630 ebp = POP32_VAL(esp); /* 0x2B02991D: pop ebp */ 14631 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02991E: ret 8 */ 14632 RECOMP_REGS_OUT(); 14633 } 14634 14635 void sub_2B02970B(void) { 14636 int _fpu_cmp = 0; 14637 uint32_t _cf = 0; 14638 int _df = 1; 14639 uint32_t _flag_k = FK_NONE; 14640 uint32_t _flag_a = 0, _flag_b = 0; 14641 uint32_t _itail_tgt = 0; 14642 RECOMP_REGS_LOCALS 14643 RECOMP_ENTER(0x2B02970Bu); 14644 14645 goto L_2B02970B; 14646 L_2B0296A4: 14647 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x2B0296A4: cmp byte ptr [eax + 0x3c], bl */ 14648 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14650 _flag_k = FK_NARROW(FK_CMP, 24); 14651 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B0296A7: jne 0x2b0298f2 */ 14652 L_2B0296AD: 14653 edx = MEM32(eax + 0x4); /* 0x2B0296AD: mov edx, dword ptr [eax + 4] */ 14654 ecx = MEM32(edx); /* 0x2B0296B0: mov ecx, dword ptr [edx] */ 14655 /* cmp eax, ecx */ /* 0x2B0296B2: cmp eax, ecx */ 14656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14658 _flag_k = FK_CMP; 14659 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029724; /* 0x2B0296B4: jne 0x2b029724 */ 14660 L_2B0296B6: 14661 ecx = MEM32(edx + 0x8); /* 0x2B0296B6: mov ecx, dword ptr [edx + 8] */ 14662 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B0296B9: mov dl, byte ptr [ecx + 0x3c] */ 14663 /* test LO8(edx), LO8(edx) */ /* 0x2B0296BC: test dl, dl */ 14664 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14665 _cf = 0; 14666 _flag_k = FK_NARROW(FK_TEST, 24); 14667 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02970B; /* 0x2B0296BE: jne 0x2b02970b */ 14668 L_2B0296C0: 14669 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0296C0: mov byte ptr [ecx + 0x3c], bl */ 14670 edx = MEM32(eax + 0x4); /* 0x2B0296C3: mov edx, dword ptr [eax + 4] */ 14671 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x2B0296C6: mov byte ptr [edx + 0x3c], 0 */ 14672 ecx = MEM32(eax + 0x4); /* 0x2B0296CA: mov ecx, dword ptr [eax + 4] */ 14673 edx = MEM32(ecx + 0x8); /* 0x2B0296CD: mov edx, dword ptr [ecx + 8] */ 14674 esi = MEM32(edx); /* 0x2B0296D0: mov esi, dword ptr [edx] */ 14675 MEM32(ecx + 0x8) = esi; /* 0x2B0296D2: mov dword ptr [ecx + 8], esi */ 14676 esi = MEM32(edx); /* 0x2B0296D5: mov esi, dword ptr [edx] */ 14677 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0296D7: cmp esi, dword ptr [edi + 8] */ 14678 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14680 _flag_k = FK_CMP; 14681 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0296DF; /* 0x2B0296DA: je 0x2b0296df */ 14682 L_2B0296DC: 14683 MEM32(esi + 0x4) = ecx; /* 0x2B0296DC: mov dword ptr [esi + 4], ecx */ 14684 L_2B0296DF: 14685 esi = MEM32(ecx + 0x4); /* 0x2B0296DF: mov esi, dword ptr [ecx + 4] */ 14686 MEM32(edx + 0x4) = esi; /* 0x2B0296E2: mov dword ptr [edx + 4], esi */ 14687 esi = MEM32(edi + 0x4); /* 0x2B0296E5: mov esi, dword ptr [edi + 4] */ 14688 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0296E8: cmp ecx, dword ptr [esi + 4] */ 14689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14691 _flag_k = FK_CMP; 14692 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296F2; /* 0x2B0296EB: jne 0x2b0296f2 */ 14693 L_2B0296ED: 14694 MEM32(esi + 0x4) = edx; /* 0x2B0296ED: mov dword ptr [esi + 4], edx */ 14695 goto L_2B029700; /* 0x2B0296F0: jmp 0x2b029700 */ 14696 L_2B0296F2: 14697 esi = MEM32(ecx + 0x4); /* 0x2B0296F2: mov esi, dword ptr [ecx + 4] */ 14698 /* cmp ecx, MEM32(esi) */ /* 0x2B0296F5: cmp ecx, dword ptr [esi] */ 14699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14701 _flag_k = FK_CMP; 14702 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296FD; /* 0x2B0296F7: jne 0x2b0296fd */ 14703 L_2B0296F9: 14704 MEM32(esi) = edx; /* 0x2B0296F9: mov dword ptr [esi], edx */ 14705 goto L_2B029700; /* 0x2B0296FB: jmp 0x2b029700 */ 14706 L_2B0296FD: 14707 MEM32(esi + 0x8) = edx; /* 0x2B0296FD: mov dword ptr [esi + 8], edx */ 14708 L_2B029700: 14709 MEM32(edx) = ecx; /* 0x2B029700: mov dword ptr [edx], ecx */ 14710 MEM32(ecx + 0x4) = edx; /* 0x2B029702: mov dword ptr [ecx + 4], edx */ 14711 ecx = MEM32(eax + 0x4); /* 0x2B029705: mov ecx, dword ptr [eax + 4] */ 14712 ecx = MEM32(ecx + 0x8); /* 0x2B029708: mov ecx, dword ptr [ecx + 8] */ 14713 L_2B02970B: 14714 edx = MEM32(ecx); /* 0x2B02970B: mov edx, dword ptr [ecx] */ 14715 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02970D: cmp byte ptr [edx + 0x3c], bl */ 14716 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14718 _flag_k = FK_NARROW(FK_CMP, 24); 14719 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B029710: jne 0x2b0297a6 */ 14720 L_2B029716: 14721 edx = MEM32(ecx + 0x8); /* 0x2B029716: mov edx, dword ptr [ecx + 8] */ 14722 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029719: cmp byte ptr [edx + 0x3c], bl */ 14723 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14725 _flag_k = FK_NARROW(FK_CMP, 24); 14726 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B02971C: jne 0x2b0297a6 */ 14727 L_2B029722: 14728 goto L_2B02978E; /* 0x2B029722: jmp 0x2b02978e */ 14729 L_2B029724: 14730 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029724: mov dl, byte ptr [ecx + 0x3c] */ 14731 /* test LO8(edx), LO8(edx) */ /* 0x2B029727: test dl, dl */ 14732 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14733 _cf = 0; 14734 _flag_k = FK_NARROW(FK_TEST, 24); 14735 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029777; /* 0x2B029729: jne 0x2b029777 */ 14736 L_2B02972B: 14737 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02972B: mov byte ptr [ecx + 0x3c], bl */ 14738 ecx = MEM32(eax + 0x4); /* 0x2B02972E: mov ecx, dword ptr [eax + 4] */ 14739 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029731: mov byte ptr [ecx + 0x3c], 0 */ 14740 ecx = MEM32(eax + 0x4); /* 0x2B029735: mov ecx, dword ptr [eax + 4] */ 14741 edx = MEM32(ecx); /* 0x2B029738: mov edx, dword ptr [ecx] */ 14742 esi = MEM32(edx + 0x8); /* 0x2B02973A: mov esi, dword ptr [edx + 8] */ 14743 MEM32(ecx) = esi; /* 0x2B02973D: mov dword ptr [ecx], esi */ 14744 esi = MEM32(edx + 0x8); /* 0x2B02973F: mov esi, dword ptr [edx + 8] */ 14745 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029742: cmp esi, dword ptr [edi + 8] */ 14746 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14748 _flag_k = FK_CMP; 14749 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02974A; /* 0x2B029745: je 0x2b02974a */ 14750 L_2B029747: 14751 MEM32(esi + 0x4) = ecx; /* 0x2B029747: mov dword ptr [esi + 4], ecx */ 14752 L_2B02974A: 14753 esi = MEM32(ecx + 0x4); /* 0x2B02974A: mov esi, dword ptr [ecx + 4] */ 14754 MEM32(edx + 0x4) = esi; /* 0x2B02974D: mov dword ptr [edx + 4], esi */ 14755 esi = MEM32(edi + 0x4); /* 0x2B029750: mov esi, dword ptr [edi + 4] */ 14756 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B029753: cmp ecx, dword ptr [esi + 4] */ 14757 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14759 _flag_k = FK_CMP; 14760 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02975D; /* 0x2B029756: jne 0x2b02975d */ 14761 L_2B029758: 14762 MEM32(esi + 0x4) = edx; /* 0x2B029758: mov dword ptr [esi + 4], edx */ 14763 goto L_2B02976C; /* 0x2B02975B: jmp 0x2b02976c */ 14764 L_2B02975D: 14765 esi = MEM32(ecx + 0x4); /* 0x2B02975D: mov esi, dword ptr [ecx + 4] */ 14766 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B029760: cmp ecx, dword ptr [esi + 8] */ 14767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14769 _flag_k = FK_CMP; 14770 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02976A; /* 0x2B029763: jne 0x2b02976a */ 14771 L_2B029765: 14772 MEM32(esi + 0x8) = edx; /* 0x2B029765: mov dword ptr [esi + 8], edx */ 14773 goto L_2B02976C; /* 0x2B029768: jmp 0x2b02976c */ 14774 L_2B02976A: 14775 MEM32(esi) = edx; /* 0x2B02976A: mov dword ptr [esi], edx */ 14776 L_2B02976C: 14777 MEM32(edx + 0x8) = ecx; /* 0x2B02976C: mov dword ptr [edx + 8], ecx */ 14778 MEM32(ecx + 0x4) = edx; /* 0x2B02976F: mov dword ptr [ecx + 4], edx */ 14779 edx = MEM32(eax + 0x4); /* 0x2B029772: mov edx, dword ptr [eax + 4] */ 14780 ecx = MEM32(edx); /* 0x2B029775: mov ecx, dword ptr [edx] */ 14781 L_2B029777: 14782 edx = MEM32(ecx + 0x8); /* 0x2B029777: mov edx, dword ptr [ecx + 8] */ 14783 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02977A: cmp byte ptr [edx + 0x3c], bl */ 14784 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14786 _flag_k = FK_NARROW(FK_CMP, 24); 14787 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B02977D: jne 0x2b029853 */ 14788 L_2B029783: 14789 edx = MEM32(ecx); /* 0x2B029783: mov edx, dword ptr [ecx] */ 14790 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029785: cmp byte ptr [edx + 0x3c], bl */ 14791 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14793 _flag_k = FK_NARROW(FK_CMP, 24); 14794 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B029788: jne 0x2b029853 */ 14795 L_2B02978E: 14796 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B02978E: mov byte ptr [ecx + 0x3c], 0 */ 14797 ecx = MEM32(edi + 0x4); /* 0x2B029792: mov ecx, dword ptr [edi + 4] */ 14798 eax = MEM32(eax + 0x4); /* 0x2B029795: mov eax, dword ptr [eax + 4] */ 14799 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B029798: cmp eax, dword ptr [ecx + 4] */ 14800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14802 _flag_k = FK_CMP; 14803 RECOMP_BACKEDGE(); 14804 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296A4; /* 0x2B02979B: jne 0x2b0296a4 */ 14805 L_2B0297A1: 14806 goto L_2B0298F2; /* 0x2B0297A1: jmp 0x2b0298f2 */ 14807 L_2B0297A6: 14808 edx = MEM32(ecx + 0x8); /* 0x2B0297A6: mov edx, dword ptr [ecx + 8] */ 14809 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B0297A9: cmp byte ptr [edx + 0x3c], bl */ 14810 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14812 _flag_k = FK_NARROW(FK_CMP, 24); 14813 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297F7; /* 0x2B0297AC: jne 0x2b0297f7 */ 14814 L_2B0297AE: 14815 edx = MEM32(ecx); /* 0x2B0297AE: mov edx, dword ptr [ecx] */ 14816 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0297B0: mov byte ptr [edx + 0x3c], bl */ 14817 edx = MEM32(ecx); /* 0x2B0297B3: mov edx, dword ptr [ecx] */ 14818 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B0297B5: mov byte ptr [ecx + 0x3c], 0 */ 14819 esi = MEM32(edx + 0x8); /* 0x2B0297B9: mov esi, dword ptr [edx + 8] */ 14820 MEM32(ecx) = esi; /* 0x2B0297BC: mov dword ptr [ecx], esi */ 14821 esi = MEM32(edx + 0x8); /* 0x2B0297BE: mov esi, dword ptr [edx + 8] */ 14822 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0297C1: cmp esi, dword ptr [edi + 8] */ 14823 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14825 _flag_k = FK_CMP; 14826 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0297C9; /* 0x2B0297C4: je 0x2b0297c9 */ 14827 L_2B0297C6: 14828 MEM32(esi + 0x4) = ecx; /* 0x2B0297C6: mov dword ptr [esi + 4], ecx */ 14829 L_2B0297C9: 14830 esi = MEM32(ecx + 0x4); /* 0x2B0297C9: mov esi, dword ptr [ecx + 4] */ 14831 MEM32(edx + 0x4) = esi; /* 0x2B0297CC: mov dword ptr [edx + 4], esi */ 14832 esi = MEM32(edi + 0x4); /* 0x2B0297CF: mov esi, dword ptr [edi + 4] */ 14833 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0297D2: cmp ecx, dword ptr [esi + 4] */ 14834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14836 _flag_k = FK_CMP; 14837 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297DC; /* 0x2B0297D5: jne 0x2b0297dc */ 14838 L_2B0297D7: 14839 MEM32(esi + 0x4) = edx; /* 0x2B0297D7: mov dword ptr [esi + 4], edx */ 14840 goto L_2B0297EB; /* 0x2B0297DA: jmp 0x2b0297eb */ 14841 L_2B0297DC: 14842 esi = MEM32(ecx + 0x4); /* 0x2B0297DC: mov esi, dword ptr [ecx + 4] */ 14843 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0297DF: cmp ecx, dword ptr [esi + 8] */ 14844 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14846 _flag_k = FK_CMP; 14847 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297E9; /* 0x2B0297E2: jne 0x2b0297e9 */ 14848 L_2B0297E4: 14849 MEM32(esi + 0x8) = edx; /* 0x2B0297E4: mov dword ptr [esi + 8], edx */ 14850 goto L_2B0297EB; /* 0x2B0297E7: jmp 0x2b0297eb */ 14851 L_2B0297E9: 14852 MEM32(esi) = edx; /* 0x2B0297E9: mov dword ptr [esi], edx */ 14853 L_2B0297EB: 14854 MEM32(edx + 0x8) = ecx; /* 0x2B0297EB: mov dword ptr [edx + 8], ecx */ 14855 MEM32(ecx + 0x4) = edx; /* 0x2B0297EE: mov dword ptr [ecx + 4], edx */ 14856 ecx = MEM32(eax + 0x4); /* 0x2B0297F1: mov ecx, dword ptr [eax + 4] */ 14857 ecx = MEM32(ecx + 0x8); /* 0x2B0297F4: mov ecx, dword ptr [ecx + 8] */ 14858 L_2B0297F7: 14859 edx = MEM32(eax + 0x4); /* 0x2B0297F7: mov edx, dword ptr [eax + 4] */ 14860 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0297FA: mov dl, byte ptr [edx + 0x3c] */ 14861 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0297FD: mov byte ptr [ecx + 0x3c], dl */ 14862 edx = MEM32(eax + 0x4); /* 0x2B029800: mov edx, dword ptr [eax + 4] */ 14863 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029803: mov byte ptr [edx + 0x3c], bl */ 14864 ecx = MEM32(ecx + 0x8); /* 0x2B029806: mov ecx, dword ptr [ecx + 8] */ 14865 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029809: mov byte ptr [ecx + 0x3c], bl */ 14866 ecx = MEM32(eax + 0x4); /* 0x2B02980C: mov ecx, dword ptr [eax + 4] */ 14867 edx = MEM32(ecx + 0x8); /* 0x2B02980F: mov edx, dword ptr [ecx + 8] */ 14868 esi = MEM32(edx); /* 0x2B029812: mov esi, dword ptr [edx] */ 14869 MEM32(ecx + 0x8) = esi; /* 0x2B029814: mov dword ptr [ecx + 8], esi */ 14870 esi = MEM32(edx); /* 0x2B029817: mov esi, dword ptr [edx] */ 14871 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029819: cmp esi, dword ptr [edi + 8] */ 14872 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14874 _flag_k = FK_CMP; 14875 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029821; /* 0x2B02981C: je 0x2b029821 */ 14876 L_2B02981E: 14877 MEM32(esi + 0x4) = ecx; /* 0x2B02981E: mov dword ptr [esi + 4], ecx */ 14878 L_2B029821: 14879 esi = MEM32(ecx + 0x4); /* 0x2B029821: mov esi, dword ptr [ecx + 4] */ 14880 MEM32(edx + 0x4) = esi; /* 0x2B029824: mov dword ptr [edx + 4], esi */ 14881 esi = MEM32(edi + 0x4); /* 0x2B029827: mov esi, dword ptr [edi + 4] */ 14882 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02982A: cmp ecx, dword ptr [esi + 4] */ 14883 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14885 _flag_k = FK_CMP; 14886 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029839; /* 0x2B02982D: jne 0x2b029839 */ 14887 L_2B02982F: 14888 MEM32(esi + 0x4) = edx; /* 0x2B02982F: mov dword ptr [esi + 4], edx */ 14889 MEM32(edx) = ecx; /* 0x2B029832: mov dword ptr [edx], ecx */ 14890 goto L_2B0298EF; /* 0x2B029834: jmp 0x2b0298ef */ 14891 L_2B029839: 14892 esi = MEM32(ecx + 0x4); /* 0x2B029839: mov esi, dword ptr [ecx + 4] */ 14893 /* cmp ecx, MEM32(esi) */ /* 0x2B02983C: cmp ecx, dword ptr [esi] */ 14894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14896 _flag_k = FK_CMP; 14897 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029849; /* 0x2B02983E: jne 0x2b029849 */ 14898 L_2B029840: 14899 MEM32(esi) = edx; /* 0x2B029840: mov dword ptr [esi], edx */ 14900 MEM32(edx) = ecx; /* 0x2B029842: mov dword ptr [edx], ecx */ 14901 goto L_2B0298EF; /* 0x2B029844: jmp 0x2b0298ef */ 14902 L_2B029849: 14903 MEM32(esi + 0x8) = edx; /* 0x2B029849: mov dword ptr [esi + 8], edx */ 14904 MEM32(edx) = ecx; /* 0x2B02984C: mov dword ptr [edx], ecx */ 14905 goto L_2B0298EF; /* 0x2B02984E: jmp 0x2b0298ef */ 14906 L_2B029853: 14907 edx = MEM32(ecx); /* 0x2B029853: mov edx, dword ptr [ecx] */ 14908 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029855: cmp byte ptr [edx + 0x3c], bl */ 14909 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14911 _flag_k = FK_NARROW(FK_CMP, 24); 14912 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298A1; /* 0x2B029858: jne 0x2b0298a1 */ 14913 L_2B02985A: 14914 edx = MEM32(ecx + 0x8); /* 0x2B02985A: mov edx, dword ptr [ecx + 8] */ 14915 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02985D: mov byte ptr [edx + 0x3c], bl */ 14916 edx = MEM32(ecx + 0x8); /* 0x2B029860: mov edx, dword ptr [ecx + 8] */ 14917 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029863: mov byte ptr [ecx + 0x3c], 0 */ 14918 esi = MEM32(edx); /* 0x2B029867: mov esi, dword ptr [edx] */ 14919 MEM32(ecx + 0x8) = esi; /* 0x2B029869: mov dword ptr [ecx + 8], esi */ 14920 esi = MEM32(edx); /* 0x2B02986C: mov esi, dword ptr [edx] */ 14921 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B02986E: cmp esi, dword ptr [edi + 8] */ 14922 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14924 _flag_k = FK_CMP; 14925 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029876; /* 0x2B029871: je 0x2b029876 */ 14926 L_2B029873: 14927 MEM32(esi + 0x4) = ecx; /* 0x2B029873: mov dword ptr [esi + 4], ecx */ 14928 L_2B029876: 14929 esi = MEM32(ecx + 0x4); /* 0x2B029876: mov esi, dword ptr [ecx + 4] */ 14930 MEM32(edx + 0x4) = esi; /* 0x2B029879: mov dword ptr [edx + 4], esi */ 14931 esi = MEM32(edi + 0x4); /* 0x2B02987C: mov esi, dword ptr [edi + 4] */ 14932 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02987F: cmp ecx, dword ptr [esi + 4] */ 14933 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14935 _flag_k = FK_CMP; 14936 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029889; /* 0x2B029882: jne 0x2b029889 */ 14937 L_2B029884: 14938 MEM32(esi + 0x4) = edx; /* 0x2B029884: mov dword ptr [esi + 4], edx */ 14939 goto L_2B029897; /* 0x2B029887: jmp 0x2b029897 */ 14940 L_2B029889: 14941 esi = MEM32(ecx + 0x4); /* 0x2B029889: mov esi, dword ptr [ecx + 4] */ 14942 /* cmp ecx, MEM32(esi) */ /* 0x2B02988C: cmp ecx, dword ptr [esi] */ 14943 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14945 _flag_k = FK_CMP; 14946 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029894; /* 0x2B02988E: jne 0x2b029894 */ 14947 L_2B029890: 14948 MEM32(esi) = edx; /* 0x2B029890: mov dword ptr [esi], edx */ 14949 goto L_2B029897; /* 0x2B029892: jmp 0x2b029897 */ 14950 L_2B029894: 14951 MEM32(esi + 0x8) = edx; /* 0x2B029894: mov dword ptr [esi + 8], edx */ 14952 L_2B029897: 14953 MEM32(edx) = ecx; /* 0x2B029897: mov dword ptr [edx], ecx */ 14954 MEM32(ecx + 0x4) = edx; /* 0x2B029899: mov dword ptr [ecx + 4], edx */ 14955 ecx = MEM32(eax + 0x4); /* 0x2B02989C: mov ecx, dword ptr [eax + 4] */ 14956 ecx = MEM32(ecx); /* 0x2B02989F: mov ecx, dword ptr [ecx] */ 14957 L_2B0298A1: 14958 edx = MEM32(eax + 0x4); /* 0x2B0298A1: mov edx, dword ptr [eax + 4] */ 14959 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0298A4: mov dl, byte ptr [edx + 0x3c] */ 14960 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0298A7: mov byte ptr [ecx + 0x3c], dl */ 14961 edx = MEM32(eax + 0x4); /* 0x2B0298AA: mov edx, dword ptr [eax + 4] */ 14962 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298AD: mov byte ptr [edx + 0x3c], bl */ 14963 ecx = MEM32(ecx); /* 0x2B0298B0: mov ecx, dword ptr [ecx] */ 14964 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298B2: mov byte ptr [ecx + 0x3c], bl */ 14965 ecx = MEM32(eax + 0x4); /* 0x2B0298B5: mov ecx, dword ptr [eax + 4] */ 14966 edx = MEM32(ecx); /* 0x2B0298B8: mov edx, dword ptr [ecx] */ 14967 esi = MEM32(edx + 0x8); /* 0x2B0298BA: mov esi, dword ptr [edx + 8] */ 14968 MEM32(ecx) = esi; /* 0x2B0298BD: mov dword ptr [ecx], esi */ 14969 esi = MEM32(edx + 0x8); /* 0x2B0298BF: mov esi, dword ptr [edx + 8] */ 14970 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0298C2: cmp esi, dword ptr [edi + 8] */ 14971 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14973 _flag_k = FK_CMP; 14974 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298CA; /* 0x2B0298C5: je 0x2b0298ca */ 14975 L_2B0298C7: 14976 MEM32(esi + 0x4) = ecx; /* 0x2B0298C7: mov dword ptr [esi + 4], ecx */ 14977 L_2B0298CA: 14978 esi = MEM32(ecx + 0x4); /* 0x2B0298CA: mov esi, dword ptr [ecx + 4] */ 14979 MEM32(edx + 0x4) = esi; /* 0x2B0298CD: mov dword ptr [edx + 4], esi */ 14980 esi = MEM32(edi + 0x4); /* 0x2B0298D0: mov esi, dword ptr [edi + 4] */ 14981 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0298D3: cmp ecx, dword ptr [esi + 4] */ 14982 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14984 _flag_k = FK_CMP; 14985 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298DD; /* 0x2B0298D6: jne 0x2b0298dd */ 14986 L_2B0298D8: 14987 MEM32(esi + 0x4) = edx; /* 0x2B0298D8: mov dword ptr [esi + 4], edx */ 14988 goto L_2B0298EC; /* 0x2B0298DB: jmp 0x2b0298ec */ 14989 L_2B0298DD: 14990 esi = MEM32(ecx + 0x4); /* 0x2B0298DD: mov esi, dword ptr [ecx + 4] */ 14991 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0298E0: cmp ecx, dword ptr [esi + 8] */ 14992 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14994 _flag_k = FK_CMP; 14995 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298EA; /* 0x2B0298E3: jne 0x2b0298ea */ 14996 L_2B0298E5: 14997 MEM32(esi + 0x8) = edx; /* 0x2B0298E5: mov dword ptr [esi + 8], edx */ 14998 goto L_2B0298EC; /* 0x2B0298E8: jmp 0x2b0298ec */ 14999 L_2B0298EA: 15000 MEM32(esi) = edx; /* 0x2B0298EA: mov dword ptr [esi], edx */ 15001 L_2B0298EC: 15002 MEM32(edx + 0x8) = ecx; /* 0x2B0298EC: mov dword ptr [edx + 8], ecx */ 15003 L_2B0298EF: 15004 MEM32(ecx + 0x4) = edx; /* 0x2B0298EF: mov dword ptr [ecx + 4], edx */ 15005 L_2B0298F2: 15006 esi = MEM32(ebp + (-0x4)); /* 0x2B0298F2: mov esi, dword ptr [ebp - 4] */ 15007 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298F5: mov byte ptr [eax + 0x3c], bl */ 15008 ecx = esi + 0xC; /* 0x2B0298F8: lea ecx, [esi + 0xc] */ 15009 RECOMP_ICALL(0x2B012D80u); /* 0x2B0298FB: call 0x2b012d80 */ /* not lifted */ 15010 RECOMP_FLAGS_IN(); 15011 PUSH32(esp, esi); /* 0x2B029900: push esi */ 15012 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B029901: call 0x2b0ab1ba */ /* not lifted */ 15013 RECOMP_FLAGS_IN(); 15014 eax = MEM32(edi + 0x10); /* 0x2B029906: mov eax, dword ptr [edi + 0x10] */ 15015 edx = MEM32(ebp + 0xC); /* 0x2B029909: mov edx, dword ptr [ebp + 0xc] */ 15016 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15018 esp = esp + 4; /* 0x2B02990C: add esp, 4 */ 15019 _flag_k = FK_ADD; 15020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15021 eax = eax - 1; /* 0x2B02990F: dec eax */ 15022 _flag_k = FK_DEC; 15023 MEM32(edi + 0x10) = eax; /* 0x2B029910: mov dword ptr [edi + 0x10], eax */ 15024 eax = MEM32(ebp + 0x8); /* 0x2B029913: mov eax, dword ptr [ebp + 8] */ 15025 edi = POP32_VAL(esp); /* 0x2B029916: pop edi */ 15026 esi = POP32_VAL(esp); /* 0x2B029917: pop esi */ 15027 MEM32(eax) = edx; /* 0x2B029918: mov dword ptr [eax], edx */ 15028 ebx = POP32_VAL(esp); /* 0x2B02991A: pop ebx */ 15029 esp = ebp; /* 0x2B02991B: mov esp, ebp */ 15030 ebp = POP32_VAL(esp); /* 0x2B02991D: pop ebp */ 15031 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02991E: ret 8 */ 15032 RECOMP_REGS_OUT(); 15033 } 15034 15035 void sub_2B029724(void) { 15036 int _fpu_cmp = 0; 15037 uint32_t _cf = 0; 15038 int _df = 1; 15039 uint32_t _flag_k = FK_NONE; 15040 uint32_t _flag_a = 0, _flag_b = 0; 15041 uint32_t _itail_tgt = 0; 15042 RECOMP_REGS_LOCALS 15043 RECOMP_ENTER(0x2B029724u); 15044 15045 goto L_2B029724; 15046 L_2B0296A4: 15047 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x2B0296A4: cmp byte ptr [eax + 0x3c], bl */ 15048 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15050 _flag_k = FK_NARROW(FK_CMP, 24); 15051 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298F2; /* 0x2B0296A7: jne 0x2b0298f2 */ 15052 L_2B0296AD: 15053 edx = MEM32(eax + 0x4); /* 0x2B0296AD: mov edx, dword ptr [eax + 4] */ 15054 ecx = MEM32(edx); /* 0x2B0296B0: mov ecx, dword ptr [edx] */ 15055 /* cmp eax, ecx */ /* 0x2B0296B2: cmp eax, ecx */ 15056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15058 _flag_k = FK_CMP; 15059 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029724; /* 0x2B0296B4: jne 0x2b029724 */ 15060 L_2B0296B6: 15061 ecx = MEM32(edx + 0x8); /* 0x2B0296B6: mov ecx, dword ptr [edx + 8] */ 15062 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B0296B9: mov dl, byte ptr [ecx + 0x3c] */ 15063 /* test LO8(edx), LO8(edx) */ /* 0x2B0296BC: test dl, dl */ 15064 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15065 _cf = 0; 15066 _flag_k = FK_NARROW(FK_TEST, 24); 15067 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B02970B; /* 0x2B0296BE: jne 0x2b02970b */ 15068 L_2B0296C0: 15069 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0296C0: mov byte ptr [ecx + 0x3c], bl */ 15070 edx = MEM32(eax + 0x4); /* 0x2B0296C3: mov edx, dword ptr [eax + 4] */ 15071 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x2B0296C6: mov byte ptr [edx + 0x3c], 0 */ 15072 ecx = MEM32(eax + 0x4); /* 0x2B0296CA: mov ecx, dword ptr [eax + 4] */ 15073 edx = MEM32(ecx + 0x8); /* 0x2B0296CD: mov edx, dword ptr [ecx + 8] */ 15074 esi = MEM32(edx); /* 0x2B0296D0: mov esi, dword ptr [edx] */ 15075 MEM32(ecx + 0x8) = esi; /* 0x2B0296D2: mov dword ptr [ecx + 8], esi */ 15076 esi = MEM32(edx); /* 0x2B0296D5: mov esi, dword ptr [edx] */ 15077 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0296D7: cmp esi, dword ptr [edi + 8] */ 15078 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15080 _flag_k = FK_CMP; 15081 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0296DF; /* 0x2B0296DA: je 0x2b0296df */ 15082 L_2B0296DC: 15083 MEM32(esi + 0x4) = ecx; /* 0x2B0296DC: mov dword ptr [esi + 4], ecx */ 15084 L_2B0296DF: 15085 esi = MEM32(ecx + 0x4); /* 0x2B0296DF: mov esi, dword ptr [ecx + 4] */ 15086 MEM32(edx + 0x4) = esi; /* 0x2B0296E2: mov dword ptr [edx + 4], esi */ 15087 esi = MEM32(edi + 0x4); /* 0x2B0296E5: mov esi, dword ptr [edi + 4] */ 15088 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0296E8: cmp ecx, dword ptr [esi + 4] */ 15089 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15091 _flag_k = FK_CMP; 15092 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296F2; /* 0x2B0296EB: jne 0x2b0296f2 */ 15093 L_2B0296ED: 15094 MEM32(esi + 0x4) = edx; /* 0x2B0296ED: mov dword ptr [esi + 4], edx */ 15095 goto L_2B029700; /* 0x2B0296F0: jmp 0x2b029700 */ 15096 L_2B0296F2: 15097 esi = MEM32(ecx + 0x4); /* 0x2B0296F2: mov esi, dword ptr [ecx + 4] */ 15098 /* cmp ecx, MEM32(esi) */ /* 0x2B0296F5: cmp ecx, dword ptr [esi] */ 15099 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15101 _flag_k = FK_CMP; 15102 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296FD; /* 0x2B0296F7: jne 0x2b0296fd */ 15103 L_2B0296F9: 15104 MEM32(esi) = edx; /* 0x2B0296F9: mov dword ptr [esi], edx */ 15105 goto L_2B029700; /* 0x2B0296FB: jmp 0x2b029700 */ 15106 L_2B0296FD: 15107 MEM32(esi + 0x8) = edx; /* 0x2B0296FD: mov dword ptr [esi + 8], edx */ 15108 L_2B029700: 15109 MEM32(edx) = ecx; /* 0x2B029700: mov dword ptr [edx], ecx */ 15110 MEM32(ecx + 0x4) = edx; /* 0x2B029702: mov dword ptr [ecx + 4], edx */ 15111 ecx = MEM32(eax + 0x4); /* 0x2B029705: mov ecx, dword ptr [eax + 4] */ 15112 ecx = MEM32(ecx + 0x8); /* 0x2B029708: mov ecx, dword ptr [ecx + 8] */ 15113 L_2B02970B: 15114 edx = MEM32(ecx); /* 0x2B02970B: mov edx, dword ptr [ecx] */ 15115 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02970D: cmp byte ptr [edx + 0x3c], bl */ 15116 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15118 _flag_k = FK_NARROW(FK_CMP, 24); 15119 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B029710: jne 0x2b0297a6 */ 15120 L_2B029716: 15121 edx = MEM32(ecx + 0x8); /* 0x2B029716: mov edx, dword ptr [ecx + 8] */ 15122 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029719: cmp byte ptr [edx + 0x3c], bl */ 15123 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15125 _flag_k = FK_NARROW(FK_CMP, 24); 15126 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297A6; /* 0x2B02971C: jne 0x2b0297a6 */ 15127 L_2B029722: 15128 goto L_2B02978E; /* 0x2B029722: jmp 0x2b02978e */ 15129 L_2B029724: 15130 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2B029724: mov dl, byte ptr [ecx + 0x3c] */ 15131 /* test LO8(edx), LO8(edx) */ /* 0x2B029727: test dl, dl */ 15132 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15133 _cf = 0; 15134 _flag_k = FK_NARROW(FK_TEST, 24); 15135 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B029777; /* 0x2B029729: jne 0x2b029777 */ 15136 L_2B02972B: 15137 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02972B: mov byte ptr [ecx + 0x3c], bl */ 15138 ecx = MEM32(eax + 0x4); /* 0x2B02972E: mov ecx, dword ptr [eax + 4] */ 15139 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029731: mov byte ptr [ecx + 0x3c], 0 */ 15140 ecx = MEM32(eax + 0x4); /* 0x2B029735: mov ecx, dword ptr [eax + 4] */ 15141 edx = MEM32(ecx); /* 0x2B029738: mov edx, dword ptr [ecx] */ 15142 esi = MEM32(edx + 0x8); /* 0x2B02973A: mov esi, dword ptr [edx + 8] */ 15143 MEM32(ecx) = esi; /* 0x2B02973D: mov dword ptr [ecx], esi */ 15144 esi = MEM32(edx + 0x8); /* 0x2B02973F: mov esi, dword ptr [edx + 8] */ 15145 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029742: cmp esi, dword ptr [edi + 8] */ 15146 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15148 _flag_k = FK_CMP; 15149 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B02974A; /* 0x2B029745: je 0x2b02974a */ 15150 L_2B029747: 15151 MEM32(esi + 0x4) = ecx; /* 0x2B029747: mov dword ptr [esi + 4], ecx */ 15152 L_2B02974A: 15153 esi = MEM32(ecx + 0x4); /* 0x2B02974A: mov esi, dword ptr [ecx + 4] */ 15154 MEM32(edx + 0x4) = esi; /* 0x2B02974D: mov dword ptr [edx + 4], esi */ 15155 esi = MEM32(edi + 0x4); /* 0x2B029750: mov esi, dword ptr [edi + 4] */ 15156 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B029753: cmp ecx, dword ptr [esi + 4] */ 15157 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15159 _flag_k = FK_CMP; 15160 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02975D; /* 0x2B029756: jne 0x2b02975d */ 15161 L_2B029758: 15162 MEM32(esi + 0x4) = edx; /* 0x2B029758: mov dword ptr [esi + 4], edx */ 15163 goto L_2B02976C; /* 0x2B02975B: jmp 0x2b02976c */ 15164 L_2B02975D: 15165 esi = MEM32(ecx + 0x4); /* 0x2B02975D: mov esi, dword ptr [ecx + 4] */ 15166 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B029760: cmp ecx, dword ptr [esi + 8] */ 15167 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15169 _flag_k = FK_CMP; 15170 if (CMP_NE(_flag_a, _flag_b)) goto L_2B02976A; /* 0x2B029763: jne 0x2b02976a */ 15171 L_2B029765: 15172 MEM32(esi + 0x8) = edx; /* 0x2B029765: mov dword ptr [esi + 8], edx */ 15173 goto L_2B02976C; /* 0x2B029768: jmp 0x2b02976c */ 15174 L_2B02976A: 15175 MEM32(esi) = edx; /* 0x2B02976A: mov dword ptr [esi], edx */ 15176 L_2B02976C: 15177 MEM32(edx + 0x8) = ecx; /* 0x2B02976C: mov dword ptr [edx + 8], ecx */ 15178 MEM32(ecx + 0x4) = edx; /* 0x2B02976F: mov dword ptr [ecx + 4], edx */ 15179 edx = MEM32(eax + 0x4); /* 0x2B029772: mov edx, dword ptr [eax + 4] */ 15180 ecx = MEM32(edx); /* 0x2B029775: mov ecx, dword ptr [edx] */ 15181 L_2B029777: 15182 edx = MEM32(ecx + 0x8); /* 0x2B029777: mov edx, dword ptr [ecx + 8] */ 15183 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B02977A: cmp byte ptr [edx + 0x3c], bl */ 15184 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15186 _flag_k = FK_NARROW(FK_CMP, 24); 15187 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B02977D: jne 0x2b029853 */ 15188 L_2B029783: 15189 edx = MEM32(ecx); /* 0x2B029783: mov edx, dword ptr [ecx] */ 15190 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029785: cmp byte ptr [edx + 0x3c], bl */ 15191 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15193 _flag_k = FK_NARROW(FK_CMP, 24); 15194 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029853; /* 0x2B029788: jne 0x2b029853 */ 15195 L_2B02978E: 15196 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B02978E: mov byte ptr [ecx + 0x3c], 0 */ 15197 ecx = MEM32(edi + 0x4); /* 0x2B029792: mov ecx, dword ptr [edi + 4] */ 15198 eax = MEM32(eax + 0x4); /* 0x2B029795: mov eax, dword ptr [eax + 4] */ 15199 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2B029798: cmp eax, dword ptr [ecx + 4] */ 15200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 15201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15202 _flag_k = FK_CMP; 15203 RECOMP_BACKEDGE(); 15204 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0296A4; /* 0x2B02979B: jne 0x2b0296a4 */ 15205 L_2B0297A1: 15206 goto L_2B0298F2; /* 0x2B0297A1: jmp 0x2b0298f2 */ 15207 L_2B0297A6: 15208 edx = MEM32(ecx + 0x8); /* 0x2B0297A6: mov edx, dword ptr [ecx + 8] */ 15209 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B0297A9: cmp byte ptr [edx + 0x3c], bl */ 15210 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15212 _flag_k = FK_NARROW(FK_CMP, 24); 15213 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297F7; /* 0x2B0297AC: jne 0x2b0297f7 */ 15214 L_2B0297AE: 15215 edx = MEM32(ecx); /* 0x2B0297AE: mov edx, dword ptr [ecx] */ 15216 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0297B0: mov byte ptr [edx + 0x3c], bl */ 15217 edx = MEM32(ecx); /* 0x2B0297B3: mov edx, dword ptr [ecx] */ 15218 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B0297B5: mov byte ptr [ecx + 0x3c], 0 */ 15219 esi = MEM32(edx + 0x8); /* 0x2B0297B9: mov esi, dword ptr [edx + 8] */ 15220 MEM32(ecx) = esi; /* 0x2B0297BC: mov dword ptr [ecx], esi */ 15221 esi = MEM32(edx + 0x8); /* 0x2B0297BE: mov esi, dword ptr [edx + 8] */ 15222 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0297C1: cmp esi, dword ptr [edi + 8] */ 15223 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15225 _flag_k = FK_CMP; 15226 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0297C9; /* 0x2B0297C4: je 0x2b0297c9 */ 15227 L_2B0297C6: 15228 MEM32(esi + 0x4) = ecx; /* 0x2B0297C6: mov dword ptr [esi + 4], ecx */ 15229 L_2B0297C9: 15230 esi = MEM32(ecx + 0x4); /* 0x2B0297C9: mov esi, dword ptr [ecx + 4] */ 15231 MEM32(edx + 0x4) = esi; /* 0x2B0297CC: mov dword ptr [edx + 4], esi */ 15232 esi = MEM32(edi + 0x4); /* 0x2B0297CF: mov esi, dword ptr [edi + 4] */ 15233 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0297D2: cmp ecx, dword ptr [esi + 4] */ 15234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15236 _flag_k = FK_CMP; 15237 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297DC; /* 0x2B0297D5: jne 0x2b0297dc */ 15238 L_2B0297D7: 15239 MEM32(esi + 0x4) = edx; /* 0x2B0297D7: mov dword ptr [esi + 4], edx */ 15240 goto L_2B0297EB; /* 0x2B0297DA: jmp 0x2b0297eb */ 15241 L_2B0297DC: 15242 esi = MEM32(ecx + 0x4); /* 0x2B0297DC: mov esi, dword ptr [ecx + 4] */ 15243 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0297DF: cmp ecx, dword ptr [esi + 8] */ 15244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15246 _flag_k = FK_CMP; 15247 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0297E9; /* 0x2B0297E2: jne 0x2b0297e9 */ 15248 L_2B0297E4: 15249 MEM32(esi + 0x8) = edx; /* 0x2B0297E4: mov dword ptr [esi + 8], edx */ 15250 goto L_2B0297EB; /* 0x2B0297E7: jmp 0x2b0297eb */ 15251 L_2B0297E9: 15252 MEM32(esi) = edx; /* 0x2B0297E9: mov dword ptr [esi], edx */ 15253 L_2B0297EB: 15254 MEM32(edx + 0x8) = ecx; /* 0x2B0297EB: mov dword ptr [edx + 8], ecx */ 15255 MEM32(ecx + 0x4) = edx; /* 0x2B0297EE: mov dword ptr [ecx + 4], edx */ 15256 ecx = MEM32(eax + 0x4); /* 0x2B0297F1: mov ecx, dword ptr [eax + 4] */ 15257 ecx = MEM32(ecx + 0x8); /* 0x2B0297F4: mov ecx, dword ptr [ecx + 8] */ 15258 L_2B0297F7: 15259 edx = MEM32(eax + 0x4); /* 0x2B0297F7: mov edx, dword ptr [eax + 4] */ 15260 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0297FA: mov dl, byte ptr [edx + 0x3c] */ 15261 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0297FD: mov byte ptr [ecx + 0x3c], dl */ 15262 edx = MEM32(eax + 0x4); /* 0x2B029800: mov edx, dword ptr [eax + 4] */ 15263 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029803: mov byte ptr [edx + 0x3c], bl */ 15264 ecx = MEM32(ecx + 0x8); /* 0x2B029806: mov ecx, dword ptr [ecx + 8] */ 15265 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B029809: mov byte ptr [ecx + 0x3c], bl */ 15266 ecx = MEM32(eax + 0x4); /* 0x2B02980C: mov ecx, dword ptr [eax + 4] */ 15267 edx = MEM32(ecx + 0x8); /* 0x2B02980F: mov edx, dword ptr [ecx + 8] */ 15268 esi = MEM32(edx); /* 0x2B029812: mov esi, dword ptr [edx] */ 15269 MEM32(ecx + 0x8) = esi; /* 0x2B029814: mov dword ptr [ecx + 8], esi */ 15270 esi = MEM32(edx); /* 0x2B029817: mov esi, dword ptr [edx] */ 15271 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B029819: cmp esi, dword ptr [edi + 8] */ 15272 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15274 _flag_k = FK_CMP; 15275 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029821; /* 0x2B02981C: je 0x2b029821 */ 15276 L_2B02981E: 15277 MEM32(esi + 0x4) = ecx; /* 0x2B02981E: mov dword ptr [esi + 4], ecx */ 15278 L_2B029821: 15279 esi = MEM32(ecx + 0x4); /* 0x2B029821: mov esi, dword ptr [ecx + 4] */ 15280 MEM32(edx + 0x4) = esi; /* 0x2B029824: mov dword ptr [edx + 4], esi */ 15281 esi = MEM32(edi + 0x4); /* 0x2B029827: mov esi, dword ptr [edi + 4] */ 15282 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02982A: cmp ecx, dword ptr [esi + 4] */ 15283 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15285 _flag_k = FK_CMP; 15286 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029839; /* 0x2B02982D: jne 0x2b029839 */ 15287 L_2B02982F: 15288 MEM32(esi + 0x4) = edx; /* 0x2B02982F: mov dword ptr [esi + 4], edx */ 15289 MEM32(edx) = ecx; /* 0x2B029832: mov dword ptr [edx], ecx */ 15290 goto L_2B0298EF; /* 0x2B029834: jmp 0x2b0298ef */ 15291 L_2B029839: 15292 esi = MEM32(ecx + 0x4); /* 0x2B029839: mov esi, dword ptr [ecx + 4] */ 15293 /* cmp ecx, MEM32(esi) */ /* 0x2B02983C: cmp ecx, dword ptr [esi] */ 15294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15296 _flag_k = FK_CMP; 15297 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029849; /* 0x2B02983E: jne 0x2b029849 */ 15298 L_2B029840: 15299 MEM32(esi) = edx; /* 0x2B029840: mov dword ptr [esi], edx */ 15300 MEM32(edx) = ecx; /* 0x2B029842: mov dword ptr [edx], ecx */ 15301 goto L_2B0298EF; /* 0x2B029844: jmp 0x2b0298ef */ 15302 L_2B029849: 15303 MEM32(esi + 0x8) = edx; /* 0x2B029849: mov dword ptr [esi + 8], edx */ 15304 MEM32(edx) = ecx; /* 0x2B02984C: mov dword ptr [edx], ecx */ 15305 goto L_2B0298EF; /* 0x2B02984E: jmp 0x2b0298ef */ 15306 L_2B029853: 15307 edx = MEM32(ecx); /* 0x2B029853: mov edx, dword ptr [ecx] */ 15308 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x2B029855: cmp byte ptr [edx + 0x3c], bl */ 15309 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15311 _flag_k = FK_NARROW(FK_CMP, 24); 15312 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298A1; /* 0x2B029858: jne 0x2b0298a1 */ 15313 L_2B02985A: 15314 edx = MEM32(ecx + 0x8); /* 0x2B02985A: mov edx, dword ptr [ecx + 8] */ 15315 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B02985D: mov byte ptr [edx + 0x3c], bl */ 15316 edx = MEM32(ecx + 0x8); /* 0x2B029860: mov edx, dword ptr [ecx + 8] */ 15317 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2B029863: mov byte ptr [ecx + 0x3c], 0 */ 15318 esi = MEM32(edx); /* 0x2B029867: mov esi, dword ptr [edx] */ 15319 MEM32(ecx + 0x8) = esi; /* 0x2B029869: mov dword ptr [ecx + 8], esi */ 15320 esi = MEM32(edx); /* 0x2B02986C: mov esi, dword ptr [edx] */ 15321 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B02986E: cmp esi, dword ptr [edi + 8] */ 15322 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15324 _flag_k = FK_CMP; 15325 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B029876; /* 0x2B029871: je 0x2b029876 */ 15326 L_2B029873: 15327 MEM32(esi + 0x4) = ecx; /* 0x2B029873: mov dword ptr [esi + 4], ecx */ 15328 L_2B029876: 15329 esi = MEM32(ecx + 0x4); /* 0x2B029876: mov esi, dword ptr [ecx + 4] */ 15330 MEM32(edx + 0x4) = esi; /* 0x2B029879: mov dword ptr [edx + 4], esi */ 15331 esi = MEM32(edi + 0x4); /* 0x2B02987C: mov esi, dword ptr [edi + 4] */ 15332 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B02987F: cmp ecx, dword ptr [esi + 4] */ 15333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15335 _flag_k = FK_CMP; 15336 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029889; /* 0x2B029882: jne 0x2b029889 */ 15337 L_2B029884: 15338 MEM32(esi + 0x4) = edx; /* 0x2B029884: mov dword ptr [esi + 4], edx */ 15339 goto L_2B029897; /* 0x2B029887: jmp 0x2b029897 */ 15340 L_2B029889: 15341 esi = MEM32(ecx + 0x4); /* 0x2B029889: mov esi, dword ptr [ecx + 4] */ 15342 /* cmp ecx, MEM32(esi) */ /* 0x2B02988C: cmp ecx, dword ptr [esi] */ 15343 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15345 _flag_k = FK_CMP; 15346 if (CMP_NE(_flag_a, _flag_b)) goto L_2B029894; /* 0x2B02988E: jne 0x2b029894 */ 15347 L_2B029890: 15348 MEM32(esi) = edx; /* 0x2B029890: mov dword ptr [esi], edx */ 15349 goto L_2B029897; /* 0x2B029892: jmp 0x2b029897 */ 15350 L_2B029894: 15351 MEM32(esi + 0x8) = edx; /* 0x2B029894: mov dword ptr [esi + 8], edx */ 15352 L_2B029897: 15353 MEM32(edx) = ecx; /* 0x2B029897: mov dword ptr [edx], ecx */ 15354 MEM32(ecx + 0x4) = edx; /* 0x2B029899: mov dword ptr [ecx + 4], edx */ 15355 ecx = MEM32(eax + 0x4); /* 0x2B02989C: mov ecx, dword ptr [eax + 4] */ 15356 ecx = MEM32(ecx); /* 0x2B02989F: mov ecx, dword ptr [ecx] */ 15357 L_2B0298A1: 15358 edx = MEM32(eax + 0x4); /* 0x2B0298A1: mov edx, dword ptr [eax + 4] */ 15359 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x2B0298A4: mov dl, byte ptr [edx + 0x3c] */ 15360 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x2B0298A7: mov byte ptr [ecx + 0x3c], dl */ 15361 edx = MEM32(eax + 0x4); /* 0x2B0298AA: mov edx, dword ptr [eax + 4] */ 15362 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298AD: mov byte ptr [edx + 0x3c], bl */ 15363 ecx = MEM32(ecx); /* 0x2B0298B0: mov ecx, dword ptr [ecx] */ 15364 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298B2: mov byte ptr [ecx + 0x3c], bl */ 15365 ecx = MEM32(eax + 0x4); /* 0x2B0298B5: mov ecx, dword ptr [eax + 4] */ 15366 edx = MEM32(ecx); /* 0x2B0298B8: mov edx, dword ptr [ecx] */ 15367 esi = MEM32(edx + 0x8); /* 0x2B0298BA: mov esi, dword ptr [edx + 8] */ 15368 MEM32(ecx) = esi; /* 0x2B0298BD: mov dword ptr [ecx], esi */ 15369 esi = MEM32(edx + 0x8); /* 0x2B0298BF: mov esi, dword ptr [edx + 8] */ 15370 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2B0298C2: cmp esi, dword ptr [edi + 8] */ 15371 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15373 _flag_k = FK_CMP; 15374 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0298CA; /* 0x2B0298C5: je 0x2b0298ca */ 15375 L_2B0298C7: 15376 MEM32(esi + 0x4) = ecx; /* 0x2B0298C7: mov dword ptr [esi + 4], ecx */ 15377 L_2B0298CA: 15378 esi = MEM32(ecx + 0x4); /* 0x2B0298CA: mov esi, dword ptr [ecx + 4] */ 15379 MEM32(edx + 0x4) = esi; /* 0x2B0298CD: mov dword ptr [edx + 4], esi */ 15380 esi = MEM32(edi + 0x4); /* 0x2B0298D0: mov esi, dword ptr [edi + 4] */ 15381 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B0298D3: cmp ecx, dword ptr [esi + 4] */ 15382 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15384 _flag_k = FK_CMP; 15385 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298DD; /* 0x2B0298D6: jne 0x2b0298dd */ 15386 L_2B0298D8: 15387 MEM32(esi + 0x4) = edx; /* 0x2B0298D8: mov dword ptr [esi + 4], edx */ 15388 goto L_2B0298EC; /* 0x2B0298DB: jmp 0x2b0298ec */ 15389 L_2B0298DD: 15390 esi = MEM32(ecx + 0x4); /* 0x2B0298DD: mov esi, dword ptr [ecx + 4] */ 15391 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2B0298E0: cmp ecx, dword ptr [esi + 8] */ 15392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15394 _flag_k = FK_CMP; 15395 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0298EA; /* 0x2B0298E3: jne 0x2b0298ea */ 15396 L_2B0298E5: 15397 MEM32(esi + 0x8) = edx; /* 0x2B0298E5: mov dword ptr [esi + 8], edx */ 15398 goto L_2B0298EC; /* 0x2B0298E8: jmp 0x2b0298ec */ 15399 L_2B0298EA: 15400 MEM32(esi) = edx; /* 0x2B0298EA: mov dword ptr [esi], edx */ 15401 L_2B0298EC: 15402 MEM32(edx + 0x8) = ecx; /* 0x2B0298EC: mov dword ptr [edx + 8], ecx */ 15403 L_2B0298EF: 15404 MEM32(ecx + 0x4) = edx; /* 0x2B0298EF: mov dword ptr [ecx + 4], edx */ 15405 L_2B0298F2: 15406 esi = MEM32(ebp + (-0x4)); /* 0x2B0298F2: mov esi, dword ptr [ebp - 4] */ 15407 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2B0298F5: mov byte ptr [eax + 0x3c], bl */ 15408 ecx = esi + 0xC; /* 0x2B0298F8: lea ecx, [esi + 0xc] */ 15409 RECOMP_ICALL(0x2B012D80u); /* 0x2B0298FB: call 0x2b012d80 */ /* not lifted */ 15410 RECOMP_FLAGS_IN(); 15411 PUSH32(esp, esi); /* 0x2B029900: push esi */ 15412 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B029901: call 0x2b0ab1ba */ /* not lifted */ 15413 RECOMP_FLAGS_IN(); 15414 eax = MEM32(edi + 0x10); /* 0x2B029906: mov eax, dword ptr [edi + 0x10] */ 15415 edx = MEM32(ebp + 0xC); /* 0x2B029909: mov edx, dword ptr [ebp + 0xc] */ 15416 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15418 esp = esp + 4; /* 0x2B02990C: add esp, 4 */ 15419 _flag_k = FK_ADD; 15420 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15421 eax = eax - 1; /* 0x2B02990F: dec eax */ 15422 _flag_k = FK_DEC; 15423 MEM32(edi + 0x10) = eax; /* 0x2B029910: mov dword ptr [edi + 0x10], eax */ 15424 eax = MEM32(ebp + 0x8); /* 0x2B029913: mov eax, dword ptr [ebp + 8] */ 15425 edi = POP32_VAL(esp); /* 0x2B029916: pop edi */ 15426 esi = POP32_VAL(esp); /* 0x2B029917: pop esi */ 15427 MEM32(eax) = edx; /* 0x2B029918: mov dword ptr [eax], edx */ 15428 ebx = POP32_VAL(esp); /* 0x2B02991A: pop ebx */ 15429 esp = ebp; /* 0x2B02991B: mov esp, ebp */ 15430 ebp = POP32_VAL(esp); /* 0x2B02991D: pop ebp */ 15431 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B02991E: ret 8 */ 15432 RECOMP_REGS_OUT(); 15433 }