client/game/ddr.dll/lifted-0028.c (773056B)
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_2B0654A0(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(0x2B0654A0u); 17 18 L_2B0654A0: 19 PUSH32(esp, ebp); /* 0x2B0654A0: push ebp */ 20 ebp = esp; /* 0x2B0654A1: mov ebp, esp */ 21 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0654A3: push -1 */ 22 PUSH32(esp, 0x2B0B0AD7u); /* 0x2B0654A5: push 0x2b0b0ad7 */ 23 eax = MEM32(FS_BASE + (0)); /* 0x2B0654AA: mov eax, dword ptr fs:[0] */ 24 PUSH32(esp, eax); /* 0x2B0654B0: push eax */ 25 MEM32(FS_BASE + (0)) = esp; /* 0x2B0654B1: mov dword ptr fs:[0], esp */ 26 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 27 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28 esp = esp - 0x64u; /* 0x2B0654B8: sub esp, 0x64 */ 29 _flag_k = FK_CMP; 30 PUSH32(esp, ebx); /* 0x2B0654BB: push ebx */ 31 PUSH32(esp, esi); /* 0x2B0654BC: push esi */ 32 PUSH32(esp, edi); /* 0x2B0654BD: push edi */ 33 ebx = ecx; /* 0x2B0654BE: mov ebx, ecx */ 34 RECOMP_ICALL(0x2B065930u); /* 0x2B0654C0: call 0x2b065930 */ /* not lifted */ 35 RECOMP_FLAGS_IN(); 36 eax = MEM32(ebp + 0x8); /* 0x2B0654C5: mov eax, dword ptr [ebp + 8] */ 37 ecx = MEM32(eax); /* 0x2B0654C8: mov ecx, dword ptr [eax] */ 38 esi = ebx + 0x4C; /* 0x2B0654CA: lea esi, [ebx + 0x4c] */ 39 MEM32(esi) = ecx; /* 0x2B0654CD: mov dword ptr [esi], ecx */ 40 edx = MEM32(eax + 0x4); /* 0x2B0654CF: mov edx, dword ptr [eax + 4] */ 41 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 42 eax = eax | 0xFFFFFFFFu; /* 0x2B0654D2: or eax, 0xffffffff */ 43 _cf = 0; 44 _flag_k = FK_TEST; 45 MEM32(ebx + 0x3C) = eax; /* 0x2B0654D5: mov dword ptr [ebx + 0x3c], eax */ 46 MEM32(ebx + 0x40) = eax; /* 0x2B0654D8: mov dword ptr [ebx + 0x40], eax */ 47 eax = MEM32(ebp + 0xC); /* 0x2B0654DB: mov eax, dword ptr [ebp + 0xc] */ 48 PUSH32(esp, 1); /* 0x2B0654DE: push 1 */ 49 PUSH32(esp, esi); /* 0x2B0654E0: push esi */ 50 MEM32(esi + 0x4) = edx; /* 0x2B0654E1: mov dword ptr [esi + 4], edx */ 51 MEM8(ebx + 0x45) = (uint8_t)(1); /* 0x2B0654E4: mov byte ptr [ebx + 0x45], 1 */ 52 MEM32(ebx + 0x48) = eax; /* 0x2B0654E8: mov dword ptr [ebx + 0x48], eax */ 53 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0654EB: call dword ptr [0x2b0b5d6c] */ 54 RECOMP_FLAGS_IN(); 55 ecx = eax; /* 0x2B0654F1: mov ecx, eax */ 56 RECOMP_ICALL(MEM32(0x2B0B5EE0)); /* 0x2B0654F3: call dword ptr [0x2b0b5ee0] */ 57 RECOMP_FLAGS_IN(); 58 MEM32(ebp + (-0x24)) = eax; /* 0x2B0654F9: mov dword ptr [ebp - 0x24], eax */ 59 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 60 ecx = 0; /* 0x2B0654FC: xor ecx, ecx */ 61 _cf = 0; 62 _flag_k = FK_TEST; 63 MEM32(ebp + (-0x20)) = ecx; /* 0x2B0654FE: mov dword ptr [ebp - 0x20], ecx */ 64 fp_push_i64((int64_t)MEM64(ebp + (-0x24))); /* 0x2B065501: fild qword ptr [ebp - 0x24] */ 65 eax = MEM32(ebx + 0x2C); /* 0x2B065504: mov eax, dword ptr [ebx + 0x2c] */ 66 edi = MEM32(ebx + 0x28); /* 0x2B065507: mov edi, dword ptr [ebx + 0x28] */ 67 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 68 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 69 eax = eax - edi; /* 0x2B06550A: sub eax, edi */ 70 _flag_k = FK_CMP; 71 _st[0] = sqrt(_st[0]); /* 0x2B06550C: fsqrt */ 72 MEM32(ebp + (-0x24)) = eax; /* 0x2B06550E: mov dword ptr [ebp - 0x24], eax */ 73 MEM32(ebp + (-0x20)) = ecx; /* 0x2B065511: mov dword ptr [ebp - 0x20], ecx */ 74 _st[0] += _st[0]; /* 0x2B065514: fadd st(0), st(0) */ 75 _st[0] = sqrt(_st[0]); /* 0x2B065516: fsqrt */ 76 { float _v = (float)_st[0]; *(float*)ADDR(ebx + 0x34) = _v; } /* 0x2B065518: fst dword ptr [ebx + 0x34] */ 77 fp_push_i64((int64_t)MEM64(ebp + (-0x24))); /* 0x2B06551B: fild qword ptr [ebp - 0x24] */ 78 _st[0] *= _st[1]; /* 0x2B06551E: fmul st(1) */ 79 _st[0] *= (double)*(float*)ADDR(0x2B0B6D1C); /* 0x2B065520: fmul dword ptr [0x2b0b6d1c] */ 80 RECOMP_ICALL(0x2B0AB220u); /* 0x2B065526: call 0x2b0ab220 */ /* not lifted */ 81 RECOMP_FLAGS_IN(); 82 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B06552B: fstp st(0) */ 83 ecx = edi; /* 0x2B06552D: mov ecx, edi */ 84 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 85 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 86 ecx = ecx - eax; /* 0x2B06552F: sub ecx, eax */ 87 _flag_k = FK_CMP; 88 /* cmp ecx, edi */ /* 0x2B065531: cmp ecx, edi */ 89 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 90 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 91 _flag_k = FK_CMP; 92 MEM32(ebx + 0x30) = ecx; /* 0x2B065533: mov dword ptr [ebx + 0x30], ecx */ 93 if (CMP_AE(_flag_a, _flag_b)) goto L_2B06553D; /* 0x2B065536: jae 0x2b06553d */ 94 L_2B065538: 95 MEM32(ebx + 0x30) = edi; /* 0x2B065538: mov dword ptr [ebx + 0x30], edi */ 96 goto L_2B065547; /* 0x2B06553B: jmp 0x2b065547 */ 97 L_2B06553D: 98 eax = MEM32(ebx + 0x2C); /* 0x2B06553D: mov eax, dword ptr [ebx + 0x2c] */ 99 /* cmp ecx, eax */ /* 0x2B065540: cmp ecx, eax */ 100 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 102 _flag_k = FK_CMP; 103 if (CMP_BE(_flag_a, _flag_b)) goto L_2B065547; /* 0x2B065542: jbe 0x2b065547 */ 104 L_2B065544: 105 MEM32(ebx + 0x30) = eax; /* 0x2B065544: mov dword ptr [ebx + 0x30], eax */ 106 L_2B065547: 107 ecx = MEM32(ebp + 0x8); /* 0x2B065547: mov ecx, dword ptr [ebp + 8] */ 108 /* cmp MEM32(ecx), 0xC350u */ /* 0x2B06554A: cmp dword ptr [ecx], 0xc350 */ 109 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0xC350u); 110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 111 _flag_k = FK_CMP; 112 MEM32(ebp + (-0x14)) = 0x14u; /* 0x2B065550: mov dword ptr [ebp - 0x14], 0x14 */ 113 MEM32(ebp + (-0x10)) = 1; /* 0x2B065557: mov dword ptr [ebp - 0x10], 1 */ 114 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065595; /* 0x2B06555E: jne 0x2b065595 */ 115 L_2B065560: 116 ecx = MEM32(ebx); /* 0x2B065560: mov ecx, dword ptr [ebx] */ 117 MEM8(ebx + 0x44) = (uint8_t)(1); /* 0x2B065562: mov byte ptr [ebx + 0x44], 1 */ 118 edx = MEM32(ecx); /* 0x2B065566: mov edx, dword ptr [ecx] */ 119 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B065568: call dword ptr [edx + 8] */ 120 RECOMP_FLAGS_IN(); 121 ecx = MEM32(ebx + 0x8); /* 0x2B06556B: mov ecx, dword ptr [ebx + 8] */ 122 eax = MEM32(ecx); /* 0x2B06556E: mov eax, dword ptr [ecx] */ 123 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2B065570: call dword ptr [eax + 8] */ 124 RECOMP_FLAGS_IN(); 125 ecx = MEM32(ebx + 0x18); /* 0x2B065573: mov ecx, dword ptr [ebx + 0x18] */ 126 edx = MEM32(ecx); /* 0x2B065576: mov edx, dword ptr [ecx] */ 127 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B065578: call dword ptr [edx + 8] */ 128 RECOMP_FLAGS_IN(); 129 ecx = MEM32(ebx + 0x20); /* 0x2B06557B: mov ecx, dword ptr [ebx + 0x20] */ 130 eax = MEM32(ecx); /* 0x2B06557E: mov eax, dword ptr [ecx] */ 131 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2B065580: call dword ptr [eax + 8] */ 132 RECOMP_FLAGS_IN(); 133 ecx = MEM32(ebp + 0x10); /* 0x2B065583: mov ecx, dword ptr [ebp + 0x10] */ 134 PUSH32(esp, ecx); /* 0x2B065586: push ecx */ 135 ecx = MEM32(ebx); /* 0x2B065587: mov ecx, dword ptr [ebx] */ 136 RECOMP_ICALL(MEM32(0x2B0B54EC)); /* 0x2B065589: call dword ptr [0x2b0b54ec] */ 137 RECOMP_FLAGS_IN(); 138 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0xEu); 139 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 140 MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + 0xEu; /* 0x2B06558F: add dword ptr [ebp - 0x10], 0xe */ 141 _flag_k = FK_ADD; 142 goto L_2B065599; /* 0x2B065593: jmp 0x2b065599 */ 143 L_2B065595: 144 MEM8(ebx + 0x44) = (uint8_t)(0); /* 0x2B065595: mov byte ptr [ebx + 0x44], 0 */ 145 L_2B065599: 146 ecx = MEM32(ebx + 0x14); /* 0x2B065599: mov ecx, dword ptr [ebx + 0x14] */ 147 PUSH32(esp, 1); /* 0x2B06559C: push 1 */ 148 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 149 edi = 0; /* 0x2B06559E: xor edi, edi */ 150 _cf = 0; 151 _flag_k = FK_TEST; 152 PUSH32(esp, edi); /* 0x2B0655A0: push edi */ 153 PUSH32(esp, edi); /* 0x2B0655A1: push edi */ 154 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B0655A2: call dword ptr [0x2b0b564c] */ 155 RECOMP_FLAGS_IN(); 156 edx = MEM32(ebx + 0x14); /* 0x2B0655A8: mov edx, dword ptr [ebx + 0x14] */ 157 PUSH32(esp, edx); /* 0x2B0655AB: push edx */ 158 PUSH32(esp, 2); /* 0x2B0655AC: push 2 */ 159 PUSH32(esp, 2); /* 0x2B0655AE: push 2 */ 160 ecx = ebp + (-0x70); /* 0x2B0655B0: lea ecx, [ebp - 0x70] */ 161 RECOMP_ICALL(MEM32(0x2B0B5BF0)); /* 0x2B0655B3: call dword ptr [0x2b0b5bf0] */ 162 RECOMP_FLAGS_IN(); 163 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B0655B9: mov al, byte ptr [ebp + 0xb] */ 164 MEM32(ebp + (-0x4)) = edi; /* 0x2B0655BC: mov dword ptr [ebp - 4], edi */ 165 MEM32(ebp + (-0x40)) = 0x00FFFFFFu; /* 0x2B0655BF: mov dword ptr [ebp - 0x40], 0xffffff */ 166 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(eax)); /* 0x2B0655C6: mov byte ptr [ebp - 0x38], al */ 167 MEM32(ebp + (-0x34)) = edi; /* 0x2B0655C9: mov dword ptr [ebp - 0x34], edi */ 168 MEM32(ebp + (-0x30)) = edi; /* 0x2B0655CC: mov dword ptr [ebp - 0x30], edi */ 169 MEM32(ebp + (-0x2C)) = edi; /* 0x2B0655CF: mov dword ptr [ebp - 0x2c], edi */ 170 MEM32(ebp + (-0x28)) = edi; /* 0x2B0655D2: mov dword ptr [ebp - 0x28], edi */ 171 PUSH32(esp, esi); /* 0x2B0655D5: push esi */ 172 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B0655D6: mov byte ptr [ebp - 4], 1 */ 173 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0655DA: call dword ptr [0x2b0b5d6c] */ 174 RECOMP_FLAGS_IN(); 175 ecx = eax; /* 0x2B0655E0: mov ecx, eax */ 176 RECOMP_ICALL(MEM32(0x2B0B5DE0)); /* 0x2B0655E2: call dword ptr [0x2b0b5de0] */ 177 RECOMP_FLAGS_IN(); 178 esi = eax; /* 0x2B0655E8: mov esi, eax */ 179 /* cmp esi, edi */ /* 0x2B0655EA: cmp esi, edi */ 180 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 182 _flag_k = FK_CMP; 183 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0656C9; /* 0x2B0655EC: je 0x2b0656c9 */ 184 L_2B0655F2: 185 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 186 ecx = ecx | 0xFFFFFFFFu; /* 0x2B0655F2: or ecx, 0xffffffff */ 187 _cf = 0; 188 _flag_k = FK_TEST; 189 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 190 eax = 0; /* 0x2B0655F5: xor eax, eax */ 191 _cf = 0; 192 _flag_k = FK_TEST; 193 edi = esi; /* 0x2B0655F7: mov edi, esi */ 194 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B0655F9: repne scasb al, byte ptr es:[edi] */ 195 ecx = ~ecx; /* 0x2B0655FB: not ecx */ 196 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 197 ecx = ecx - 1; /* 0x2B0655FD: dec ecx */ 198 _flag_k = FK_DEC; 199 edi = ecx; /* 0x2B0655FE: mov edi, ecx */ 200 ecx = MEM32(0x2B0B515C); /* 0x2B065600: mov ecx, dword ptr [0x2b0b515c] */ 201 edx = MEM32(ecx); /* 0x2B065606: mov edx, dword ptr [ecx] */ 202 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x30))); 203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 204 edx = edx - MEM32(ebp + (-0x30)); /* 0x2B065608: sub edx, dword ptr [ebp - 0x30] */ 205 _flag_k = FK_CMP; 206 /* cmp edx, edi */ /* 0x2B06560B: cmp edx, edi */ 207 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 209 _flag_k = FK_CMP; 210 if (CMP_A(_flag_a, _flag_b)) goto L_2B065615; /* 0x2B06560D: ja 0x2b065615 */ 211 L_2B06560F: 212 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B06560F: call dword ptr [0x2b0b51a8] */ 213 RECOMP_FLAGS_IN(); 214 L_2B065615: 215 /* test edi, edi */ /* 0x2B065615: test edi, edi */ 216 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 217 _cf = 0; 218 _flag_k = FK_TEST; 219 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065659; /* 0x2B065617: jbe 0x2b065659 */ 220 L_2B065619: 221 eax = MEM32(ebp + (-0x30)); /* 0x2B065619: mov eax, dword ptr [ebp - 0x30] */ 222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 223 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 224 eax = eax + edi; /* 0x2B06561C: add eax, edi */ 225 _flag_k = FK_ADD; 226 PUSH32(esp, 0); /* 0x2B06561E: push 0 */ 227 PUSH32(esp, eax); /* 0x2B065620: push eax */ 228 ecx = ebp + (-0x38); /* 0x2B065621: lea ecx, [ebp - 0x38] */ 229 MEM32(ebp + 0x8) = eax; /* 0x2B065624: mov dword ptr [ebp + 8], eax */ 230 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B065627: call dword ptr [0x2b0b5154] */ 231 RECOMP_FLAGS_IN(); 232 /* test LO8(eax), LO8(eax) */ /* 0x2B06562D: test al, al */ 233 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 234 _cf = 0; 235 _flag_k = FK_NARROW(FK_TEST, 24); 236 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065659; /* 0x2B06562F: je 0x2b065659 */ 237 L_2B065631: 238 ecx = MEM32(ebp + (-0x34)); /* 0x2B065631: mov ecx, dword ptr [ebp - 0x34] */ 239 edx = MEM32(ebp + (-0x30)); /* 0x2B065634: mov edx, dword ptr [ebp - 0x30] */ 240 eax = edx + ecx; /* 0x2B065637: lea eax, [edx + ecx] */ 241 ecx = edi; /* 0x2B06563A: mov ecx, edi */ 242 edi = eax; /* 0x2B06563C: mov edi, eax */ 243 eax = ecx; /* 0x2B06563E: mov eax, ecx */ 244 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B065640: shr ecx, 2 */ 245 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 246 ecx = ecx >> 2u; /* 0x2B065640: shr ecx, 2 */ 247 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B065643: 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; } 248 ecx = eax; /* 0x2B065645: mov ecx, eax */ 249 eax = MEM32(ebp + 0x8); /* 0x2B065647: mov eax, dword ptr [ebp + 8] */ 250 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 251 ecx = ecx & 3; /* 0x2B06564A: and ecx, 3 */ 252 _cf = 0; 253 _flag_k = FK_TEST; 254 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B06564D: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 255 ecx = MEM32(ebp + (-0x34)); /* 0x2B06564F: mov ecx, dword ptr [ebp - 0x34] */ 256 MEM32(ebp + (-0x30)) = eax; /* 0x2B065652: mov dword ptr [ebp - 0x30], eax */ 257 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B065655: mov byte ptr [ecx + eax], 0 */ 258 L_2B065659: 259 edx = MEM32(0x2B0B515C); /* 0x2B065659: mov edx, dword ptr [0x2b0b515c] */ 260 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 261 eax = 0; /* 0x2B06565F: xor eax, eax */ 262 _cf = 0; 263 _flag_k = FK_TEST; 264 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 265 ecx = ecx | 0xFFFFFFFFu; /* 0x2B065661: or ecx, 0xffffffff */ 266 _cf = 0; 267 _flag_k = FK_TEST; 268 edi = 0x2B0E19F8u; /* 0x2B065664: mov edi, 0x2b0e19f8 */ 269 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B065669: repne scasb al, byte ptr es:[edi] */ 270 eax = MEM32(edx); /* 0x2B06566B: mov eax, dword ptr [edx] */ 271 edx = MEM32(ebp + (-0x30)); /* 0x2B06566D: mov edx, dword ptr [ebp - 0x30] */ 272 ecx = ~ecx; /* 0x2B065670: not ecx */ 273 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 274 ecx = ecx - 1; /* 0x2B065672: dec ecx */ 275 _flag_k = FK_DEC; 276 esi = ecx; /* 0x2B065673: mov esi, ecx */ 277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 279 eax = eax - edx; /* 0x2B065675: sub eax, edx */ 280 _flag_k = FK_CMP; 281 /* cmp eax, esi */ /* 0x2B065677: cmp eax, esi */ 282 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 284 _flag_k = FK_CMP; 285 if (CMP_A(_flag_a, _flag_b)) goto L_2B065681; /* 0x2B065679: ja 0x2b065681 */ 286 L_2B06567B: 287 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B06567B: call dword ptr [0x2b0b51a8] */ 288 RECOMP_FLAGS_IN(); 289 L_2B065681: 290 /* test esi, esi */ /* 0x2B065681: test esi, esi */ 291 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 292 _cf = 0; 293 _flag_k = FK_TEST; 294 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0656C9; /* 0x2B065683: jbe 0x2b0656c9 */ 295 L_2B065685: 296 ecx = MEM32(ebp + (-0x30)); /* 0x2B065685: mov ecx, dword ptr [ebp - 0x30] */ 297 eax = ecx + esi; /* 0x2B065688: lea eax, [ecx + esi] */ 298 PUSH32(esp, 0); /* 0x2B06568B: push 0 */ 299 PUSH32(esp, eax); /* 0x2B06568D: push eax */ 300 ecx = ebp + (-0x38); /* 0x2B06568E: lea ecx, [ebp - 0x38] */ 301 MEM32(ebp + 0x8) = eax; /* 0x2B065691: mov dword ptr [ebp + 8], eax */ 302 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B065694: call dword ptr [0x2b0b5154] */ 303 RECOMP_FLAGS_IN(); 304 /* test LO8(eax), LO8(eax) */ /* 0x2B06569A: test al, al */ 305 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 306 _cf = 0; 307 _flag_k = FK_NARROW(FK_TEST, 24); 308 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0656C9; /* 0x2B06569C: je 0x2b0656c9 */ 309 L_2B06569E: 310 eax = MEM32(ebp + (-0x30)); /* 0x2B06569E: mov eax, dword ptr [ebp - 0x30] */ 311 edx = MEM32(ebp + (-0x34)); /* 0x2B0656A1: mov edx, dword ptr [ebp - 0x34] */ 312 ecx = esi; /* 0x2B0656A4: mov ecx, esi */ 313 edi = eax + edx; /* 0x2B0656A6: lea edi, [eax + edx] */ 314 eax = MEM32(ebp + 0x8); /* 0x2B0656A9: mov eax, dword ptr [ebp + 8] */ 315 edx = ecx; /* 0x2B0656AC: mov edx, ecx */ 316 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B0656AE: shr ecx, 2 */ 317 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 318 ecx = ecx >> 2u; /* 0x2B0656AE: shr ecx, 2 */ 319 esi = 0x2B0E19F8u; /* 0x2B0656B1: mov esi, 0x2b0e19f8 */ 320 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0656B6: 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; } 321 ecx = edx; /* 0x2B0656B8: mov ecx, edx */ 322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 323 ecx = ecx & 3; /* 0x2B0656BA: and ecx, 3 */ 324 _cf = 0; 325 _flag_k = FK_TEST; 326 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B0656BD: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 327 ecx = MEM32(ebp + (-0x34)); /* 0x2B0656BF: mov ecx, dword ptr [ebp - 0x34] */ 328 MEM32(ebp + (-0x30)) = eax; /* 0x2B0656C2: mov dword ptr [ebp - 0x30], eax */ 329 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B0656C5: mov byte ptr [ecx + eax], 0 */ 330 L_2B0656C9: 331 eax = ebx + 0x4C; /* 0x2B0656C9: lea eax, [ebx + 0x4c] */ 332 PUSH32(esp, eax); /* 0x2B0656CC: push eax */ 333 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0656CD: call dword ptr [0x2b0b5d6c] */ 334 RECOMP_FLAGS_IN(); 335 ecx = eax; /* 0x2B0656D3: mov ecx, eax */ 336 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B0656D5: call dword ptr [0x2b0b5d50] */ 337 RECOMP_FLAGS_IN(); 338 MEM32(ebp + 0x8) = eax; /* 0x2B0656DB: mov dword ptr [ebp + 8], eax */ 339 esi = eax; /* 0x2B0656DE: mov esi, eax */ 340 edi = 0x2B0EAF84u; /* 0x2B0656E0: mov edi, 0x2b0eaf84 */ 341 L_2B0656E5: 342 SET_LO8(edx, MEM8(edi)); /* 0x2B0656E5: mov dl, byte ptr [edi] */ 343 SET_LO8(ecx, LO8(edx)); /* 0x2B0656E7: mov cl, dl */ 344 /* cmp LO8(edx), MEM8(esi) */ /* 0x2B0656E9: cmp dl, byte ptr [esi] */ 345 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24; 346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 347 _flag_k = FK_NARROW(FK_CMP, 24); 348 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065709; /* 0x2B0656EB: jne 0x2b065709 */ 349 L_2B0656ED: 350 /* test LO8(ecx), LO8(ecx) */ /* 0x2B0656ED: test cl, cl */ 351 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 352 _cf = 0; 353 _flag_k = FK_NARROW(FK_TEST, 24); 354 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065705; /* 0x2B0656EF: je 0x2b065705 */ 355 L_2B0656F1: 356 SET_LO8(edx, MEM8(edi + 0x1)); /* 0x2B0656F1: mov dl, byte ptr [edi + 1] */ 357 SET_LO8(ecx, LO8(edx)); /* 0x2B0656F4: mov cl, dl */ 358 /* cmp LO8(edx), MEM8(esi + 0x1) */ /* 0x2B0656F6: cmp dl, byte ptr [esi + 1] */ 359 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24; 360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 361 _flag_k = FK_NARROW(FK_CMP, 24); 362 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065709; /* 0x2B0656F9: jne 0x2b065709 */ 363 L_2B0656FB: 364 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 366 edi = edi + 2; /* 0x2B0656FB: add edi, 2 */ 367 _flag_k = FK_ADD; 368 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 370 esi = esi + 2; /* 0x2B0656FE: add esi, 2 */ 371 _flag_k = FK_ADD; 372 /* test LO8(ecx), LO8(ecx) */ /* 0x2B065701: test cl, cl */ 373 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 374 _cf = 0; 375 _flag_k = FK_NARROW(FK_TEST, 24); 376 RECOMP_BACKEDGE(); 377 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0656E5; /* 0x2B065703: jne 0x2b0656e5 */ 378 L_2B065705: 379 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 380 ecx = 0; /* 0x2B065705: xor ecx, ecx */ 381 _cf = 0; 382 _flag_k = FK_TEST; 383 goto L_2B06570E; /* 0x2B065707: jmp 0x2b06570e */ 384 L_2B065709: 385 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x2B065709: sbb ecx, ecx */ 386 ecx = _sc ? 0xFFFFFFFFu : 0; 387 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 388 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 389 { uint32_t _sa = ecx, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x2B06570B: sbb ecx, -1 */ 390 ecx = _sa - _sb - _sc; 391 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 392 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 393 L_2B06570E: 394 /* test ecx, ecx */ /* 0x2B06570E: test ecx, ecx */ 395 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 396 _cf = 0; 397 _flag_k = FK_TEST; 398 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B065754; /* 0x2B065710: jne 0x2b065754 */ 399 L_2B065712: 400 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 401 ecx = ecx | 0xFFFFFFFFu; /* 0x2B065712: or ecx, 0xffffffff */ 402 _cf = 0; 403 _flag_k = FK_TEST; 404 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 405 eax = 0; /* 0x2B065715: xor eax, eax */ 406 _cf = 0; 407 _flag_k = FK_TEST; 408 edi = 0x2B0EAF74u; /* 0x2B065717: mov edi, 0x2b0eaf74 */ 409 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B06571C: repne scasb al, byte ptr es:[edi] */ 410 ecx = ~ecx; /* 0x2B06571E: not ecx */ 411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 412 ecx = ecx - 1; /* 0x2B065720: dec ecx */ 413 _flag_k = FK_DEC; 414 esi = ecx; /* 0x2B065721: mov esi, ecx */ 415 PUSH32(esp, 1); /* 0x2B065723: push 1 */ 416 PUSH32(esp, esi); /* 0x2B065725: push esi */ 417 ecx = ebp + (-0x38); /* 0x2B065726: lea ecx, [ebp - 0x38] */ 418 MEM32(ebp + 0x8) = esi; /* 0x2B065729: mov dword ptr [ebp + 8], esi */ 419 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B06572C: call dword ptr [0x2b0b5154] */ 420 RECOMP_FLAGS_IN(); 421 /* test LO8(eax), LO8(eax) */ /* 0x2B065732: test al, al */ 422 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 423 _cf = 0; 424 _flag_k = FK_NARROW(FK_TEST, 24); 425 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0657BF; /* 0x2B065734: je 0x2b0657bf */ 426 L_2B06573A: 427 edi = MEM32(ebp + (-0x34)); /* 0x2B06573A: mov edi, dword ptr [ebp - 0x34] */ 428 ecx = esi; /* 0x2B06573D: mov ecx, esi */ 429 eax = ecx; /* 0x2B06573F: mov eax, ecx */ 430 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B065741: shr ecx, 2 */ 431 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 432 ecx = ecx >> 2u; /* 0x2B065741: shr ecx, 2 */ 433 esi = 0x2B0EAF74u; /* 0x2B065744: mov esi, 0x2b0eaf74 */ 434 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B065749: 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; } 435 ecx = eax; /* 0x2B06574B: mov ecx, eax */ 436 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 437 ecx = ecx & 3; /* 0x2B06574D: and ecx, 3 */ 438 _cf = 0; 439 _flag_k = FK_TEST; 440 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B065750: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 441 goto L_2B0657B5; /* 0x2B065752: jmp 0x2b0657b5 */ 442 L_2B065754: 443 edx = MEM32(0x2B0B515C); /* 0x2B065754: mov edx, dword ptr [0x2b0b515c] */ 444 edi = eax; /* 0x2B06575A: mov edi, eax */ 445 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 446 eax = 0; /* 0x2B06575C: xor eax, eax */ 447 _cf = 0; 448 _flag_k = FK_TEST; 449 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 450 ecx = ecx | 0xFFFFFFFFu; /* 0x2B06575E: or ecx, 0xffffffff */ 451 _cf = 0; 452 _flag_k = FK_TEST; 453 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B065761: repne scasb al, byte ptr es:[edi] */ 454 eax = MEM32(edx); /* 0x2B065763: mov eax, dword ptr [edx] */ 455 edx = MEM32(ebp + (-0x30)); /* 0x2B065765: mov edx, dword ptr [ebp - 0x30] */ 456 ecx = ~ecx; /* 0x2B065768: not ecx */ 457 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 458 ecx = ecx - 1; /* 0x2B06576A: dec ecx */ 459 _flag_k = FK_DEC; 460 esi = ecx; /* 0x2B06576B: mov esi, ecx */ 461 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 463 eax = eax - edx; /* 0x2B06576D: sub eax, edx */ 464 _flag_k = FK_CMP; 465 /* cmp eax, esi */ /* 0x2B06576F: cmp eax, esi */ 466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 468 _flag_k = FK_CMP; 469 if (CMP_A(_flag_a, _flag_b)) goto L_2B065779; /* 0x2B065771: ja 0x2b065779 */ 470 L_2B065773: 471 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B065773: call dword ptr [0x2b0b51a8] */ 472 RECOMP_FLAGS_IN(); 473 L_2B065779: 474 /* test esi, esi */ /* 0x2B065779: test esi, esi */ 475 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 476 _cf = 0; 477 _flag_k = FK_TEST; 478 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0657BF; /* 0x2B06577B: jbe 0x2b0657bf */ 479 L_2B06577D: 480 ecx = MEM32(ebp + (-0x30)); /* 0x2B06577D: mov ecx, dword ptr [ebp - 0x30] */ 481 eax = ecx + esi; /* 0x2B065780: lea eax, [ecx + esi] */ 482 PUSH32(esp, 0); /* 0x2B065783: push 0 */ 483 PUSH32(esp, eax); /* 0x2B065785: push eax */ 484 ecx = ebp + (-0x38); /* 0x2B065786: lea ecx, [ebp - 0x38] */ 485 MEM32(ebp + 0xC) = eax; /* 0x2B065789: mov dword ptr [ebp + 0xc], eax */ 486 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B06578C: call dword ptr [0x2b0b5154] */ 487 RECOMP_FLAGS_IN(); 488 /* test LO8(eax), LO8(eax) */ /* 0x2B065792: test al, al */ 489 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 490 _cf = 0; 491 _flag_k = FK_NARROW(FK_TEST, 24); 492 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0657BF; /* 0x2B065794: je 0x2b0657bf */ 493 L_2B065796: 494 edx = MEM32(ebp + (-0x34)); /* 0x2B065796: mov edx, dword ptr [ebp - 0x34] */ 495 eax = MEM32(ebp + (-0x30)); /* 0x2B065799: mov eax, dword ptr [ebp - 0x30] */ 496 ecx = esi; /* 0x2B06579C: mov ecx, esi */ 497 esi = MEM32(ebp + 0x8); /* 0x2B06579E: mov esi, dword ptr [ebp + 8] */ 498 edi = eax + edx; /* 0x2B0657A1: lea edi, [eax + edx] */ 499 eax = MEM32(ebp + 0xC); /* 0x2B0657A4: mov eax, dword ptr [ebp + 0xc] */ 500 edx = ecx; /* 0x2B0657A7: mov edx, ecx */ 501 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B0657A9: shr ecx, 2 */ 502 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 503 ecx = ecx >> 2u; /* 0x2B0657A9: shr ecx, 2 */ 504 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0657AC: 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; } 505 ecx = edx; /* 0x2B0657AE: mov ecx, edx */ 506 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 507 ecx = ecx & 3; /* 0x2B0657B0: and ecx, 3 */ 508 _cf = 0; 509 _flag_k = FK_TEST; 510 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B0657B3: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 511 L_2B0657B5: 512 ecx = MEM32(ebp + (-0x34)); /* 0x2B0657B5: mov ecx, dword ptr [ebp - 0x34] */ 513 MEM32(ebp + (-0x30)) = eax; /* 0x2B0657B8: mov dword ptr [ebp - 0x30], eax */ 514 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B0657BB: mov byte ptr [ecx + eax], 0 */ 515 L_2B0657BF: 516 edi = MEM32(0x2B0B59B8); /* 0x2B0657BF: mov edi, dword ptr [0x2b0b59b8] */ 517 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0657C5: push -1 */ 518 PUSH32(esp, 0); /* 0x2B0657C7: push 0 */ 519 PUSH32(esp, 2); /* 0x2B0657C9: push 2 */ 520 ecx = ebp + (-0x38); /* 0x2B0657CB: lea ecx, [ebp - 0x38] */ 521 RECOMP_ICALL(edi); /* 0x2B0657CE: call edi */ 522 RECOMP_FLAGS_IN(); 523 edx = MEM32(ebx + 0x14); /* 0x2B0657D0: mov edx, dword ptr [ebx + 0x14] */ 524 esi = eax; /* 0x2B0657D3: mov esi, eax */ 525 /* cmp esi, MEM32(edx + 0xC) */ /* 0x2B0657D5: cmp esi, dword ptr [edx + 0xc] */ 526 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0xC)); 527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 528 _flag_k = FK_CMP; 529 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0657FE; /* 0x2B0657D8: jle 0x2b0657fe */ 530 L_2B0657DA: 531 PUSH32(esp, 1); /* 0x2B0657DA: push 1 */ 532 ecx = ebp + (-0x70); /* 0x2B0657DC: lea ecx, [ebp - 0x70] */ 533 RECOMP_ICALL(MEM32(0x2B0B56FC)); /* 0x2B0657DF: call dword ptr [0x2b0b56fc] */ 534 RECOMP_FLAGS_IN(); 535 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0657E5: push -1 */ 536 PUSH32(esp, 0); /* 0x2B0657E7: push 0 */ 537 PUSH32(esp, 1); /* 0x2B0657E9: push 1 */ 538 ecx = ebp + (-0x38); /* 0x2B0657EB: lea ecx, [ebp - 0x38] */ 539 RECOMP_ICALL(edi); /* 0x2B0657EE: call edi */ 540 RECOMP_FLAGS_IN(); 541 esi = eax; /* 0x2B0657F0: mov esi, eax */ 542 eax = MEM32(ebx + 0x14); /* 0x2B0657F2: mov eax, dword ptr [ebx + 0x14] */ 543 eax = MEM32(eax + 0xC); /* 0x2B0657F5: mov eax, dword ptr [eax + 0xc] */ 544 /* cmp esi, eax */ /* 0x2B0657F8: cmp esi, eax */ 545 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 547 _flag_k = FK_CMP; 548 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0657FE; /* 0x2B0657FA: jle 0x2b0657fe */ 549 L_2B0657FC: 550 esi = eax; /* 0x2B0657FC: mov esi, eax */ 551 L_2B0657FE: 552 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 553 edi = 0; /* 0x2B0657FE: xor edi, edi */ 554 _cf = 0; 555 _flag_k = FK_TEST; 556 PUSH32(esp, edi); /* 0x2B065800: push edi */ 557 PUSH32(esp, edi); /* 0x2B065801: push edi */ 558 PUSH32(esp, edi); /* 0x2B065802: push edi */ 559 PUSH32(esp, 1); /* 0x2B065803: push 1 */ 560 ecx = ebp + (-0x38); /* 0x2B065805: lea ecx, [ebp - 0x38] */ 561 PUSH32(esp, ecx); /* 0x2B065808: push ecx */ 562 ecx = ebp + (-0x70); /* 0x2B065809: lea ecx, [ebp - 0x70] */ 563 RECOMP_ICALL(MEM32(0x2B0B5878)); /* 0x2B06580C: call dword ptr [0x2b0b5878] */ 564 RECOMP_FLAGS_IN(); 565 ecx = ebp + (-0x70); /* 0x2B065812: lea ecx, [ebp - 0x70] */ 566 RECOMP_ICALL(MEM32(0x2B0B56F8)); /* 0x2B065815: call dword ptr [0x2b0b56f8] */ 567 RECOMP_FLAGS_IN(); 568 ecx = MEM32(ebx + 0x10); /* 0x2B06581B: mov ecx, dword ptr [ebx + 0x10] */ 569 edx = ebp + (-0x1C); /* 0x2B06581E: lea edx, [ebp - 0x1c] */ 570 PUSH32(esp, edx); /* 0x2B065821: push edx */ 571 MEM32(ebp + (-0x1C)) = esi; /* 0x2B065822: mov dword ptr [ebp - 0x1c], esi */ 572 MEM32(ebp + (-0x18)) = eax; /* 0x2B065825: mov dword ptr [ebp - 0x18], eax */ 573 RECOMP_ICALL(MEM32(0x2B0B5558)); /* 0x2B065828: call dword ptr [0x2b0b5558] */ 574 RECOMP_FLAGS_IN(); 575 edx = MEM32(ebp + (-0x1C)); /* 0x2B06582E: mov edx, dword ptr [ebp - 0x1c] */ 576 eax = MEM32(ebx + 0x30); /* 0x2B065831: mov eax, dword ptr [ebx + 0x30] */ 577 esi = MEM32(ebx + 0x38); /* 0x2B065834: mov esi, dword ptr [ebx + 0x38] */ 578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 580 eax = eax - edx; /* 0x2B065837: sub eax, edx */ 581 _flag_k = FK_CMP; 582 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B065839: cdq */ 583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 585 eax = eax - edx; /* 0x2B06583A: sub eax, edx */ 586 _flag_k = FK_CMP; 587 ecx = eax; /* 0x2B06583C: mov ecx, eax */ 588 eax = MEM32(ebp + (-0x14)); /* 0x2B06583E: mov eax, dword ptr [ebp - 0x14] */ 589 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x2B065841: sar ecx, 1 */ 590 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 591 ecx = (uint32_t)((int32_t)ecx >> 1u); 592 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 594 ecx = ecx + esi; /* 0x2B065843: add ecx, esi */ 595 _flag_k = FK_ADD; 596 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 598 eax = eax + ecx; /* 0x2B065845: add eax, ecx */ 599 _flag_k = FK_ADD; 600 /* cmp eax, 0x14u */ /* 0x2B065847: cmp eax, 0x14 */ 601 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 603 _flag_k = FK_CMP; 604 MEM32(ebp + (-0x14)) = eax; /* 0x2B06584A: mov dword ptr [ebp - 0x14], eax */ 605 if (CMP_GE(_flag_a, _flag_b)) goto L_2B065856; /* 0x2B06584D: jge 0x2b065856 */ 606 L_2B06584F: 607 MEM32(ebp + (-0x14)) = 0x14u; /* 0x2B06584F: mov dword ptr [ebp - 0x14], 0x14 */ 608 L_2B065856: 609 ecx = MEM32(ebx + 0x10); /* 0x2B065856: mov ecx, dword ptr [ebx + 0x10] */ 610 edx = ebp + (-0x14); /* 0x2B065859: lea edx, [ebp - 0x14] */ 611 PUSH32(esp, edx); /* 0x2B06585C: push edx */ 612 RECOMP_ICALL(MEM32(0x2B0B5640)); /* 0x2B06585D: call dword ptr [0x2b0b5640] */ 613 RECOMP_FLAGS_IN(); 614 ecx = MEM32(ebx + 0x10); /* 0x2B065863: mov ecx, dword ptr [ebx + 0x10] */ 615 eax = MEM32(ecx); /* 0x2B065866: mov eax, dword ptr [ecx] */ 616 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2B065868: call dword ptr [eax + 8] */ 617 RECOMP_FLAGS_IN(); 618 ecx = MEM32(ebx + 0x10); /* 0x2B06586B: mov ecx, dword ptr [ebx + 0x10] */ 619 eax = MEM32(ebx + 0x14); /* 0x2B06586E: mov eax, dword ptr [ebx + 0x14] */ 620 edx = MEM32(ecx); /* 0x2B065871: mov edx, dword ptr [ecx] */ 621 PUSH32(esp, eax); /* 0x2B065873: push eax */ 622 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2B065874: call dword ptr [edx + 0x10] */ 623 RECOMP_FLAGS_IN(); 624 esi = MEM32(ebp + (-0x28)); /* 0x2B065877: mov esi, dword ptr [ebp - 0x28] */ 625 /* cmp esi, edi */ /* 0x2B06587A: cmp esi, edi */ 626 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 628 _flag_k = FK_CMP; 629 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0658D8; /* 0x2B06587C: je 0x2b0658d8 */ 630 L_2B06587E: 631 edx = MEM32(esi + 0x2C); /* 0x2B06587E: mov edx, dword ptr [esi + 0x2c] */ 632 eax = esi + 0x2C; /* 0x2B065881: lea eax, [esi + 0x2c] */ 633 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 634 edx = edx - 1; /* 0x2B065884: dec edx */ 635 _flag_k = FK_DEC; 636 ecx = edx; /* 0x2B065885: mov ecx, edx */ 637 /* cmp ecx, edi */ /* 0x2B065887: cmp ecx, edi */ 638 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 640 _flag_k = FK_CMP; 641 MEM32(eax) = edx; /* 0x2B065889: mov dword ptr [eax], edx */ 642 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0658D8; /* 0x2B06588B: jne 0x2b0658d8 */ 643 L_2B06588D: 644 /* cmp esi, edi */ /* 0x2B06588D: cmp esi, edi */ 645 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 647 _flag_k = FK_CMP; 648 MEM32(ebp + 0x8) = esi; /* 0x2B06588F: mov dword ptr [ebp + 8], esi */ 649 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0658D8; /* 0x2B065892: je 0x2b0658d8 */ 650 L_2B065894: 651 PUSH32(esp, 1); /* 0x2B065894: push 1 */ 652 ecx = esi + 0x1C; /* 0x2B065896: lea ecx, [esi + 0x1c] */ 653 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B065899: mov byte ptr [ebp - 4], 3 */ 654 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B06589D: call dword ptr [0x2b0b514c] */ 655 RECOMP_FLAGS_IN(); 656 eax = MEM32(esi + 0x10); /* 0x2B0658A3: mov eax, dword ptr [esi + 0x10] */ 657 /* cmp eax, edi */ /* 0x2B0658A6: cmp eax, edi */ 658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 660 _flag_k = FK_CMP; 661 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0658C6; /* 0x2B0658A8: je 0x2b0658c6 */ 662 L_2B0658AA: 663 ecx = eax + (-0x1); /* 0x2B0658AA: lea ecx, [eax - 1] */ 664 SET_LO8(eax, MEM8(ecx)); /* 0x2B0658AD: mov al, byte ptr [ecx] */ 665 /* test LO8(eax), LO8(eax) */ /* 0x2B0658AF: test al, al */ 666 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 667 _cf = 0; 668 _flag_k = FK_NARROW(FK_TEST, 24); 669 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0658BD; /* 0x2B0658B1: je 0x2b0658bd */ 670 L_2B0658B3: 671 /* cmp LO8(eax), 0xFFu */ /* 0x2B0658B3: cmp al, 0xff */ 672 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 674 _flag_k = FK_NARROW(FK_CMP, 24); 675 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0658BD; /* 0x2B0658B5: je 0x2b0658bd */ 676 L_2B0658B7: 677 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 678 SET_LO8(eax, LO8(eax) - 1); /* 0x2B0658B7: dec al */ 679 _flag_k = FK_NARROW(FK_DEC, 24); 680 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B0658B9: mov byte ptr [ecx], al */ 681 goto L_2B0658C6; /* 0x2B0658BB: jmp 0x2b0658c6 */ 682 L_2B0658BD: 683 PUSH32(esp, ecx); /* 0x2B0658BD: push ecx */ 684 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0658BE: call 0x2b0ab1ba */ /* not lifted */ 685 RECOMP_FLAGS_IN(); 686 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 688 esp = esp + 4; /* 0x2B0658C3: add esp, 4 */ 689 _flag_k = FK_ADD; 690 L_2B0658C6: 691 PUSH32(esp, esi); /* 0x2B0658C6: push esi */ 692 MEM32(esi + 0x10) = edi; /* 0x2B0658C7: mov dword ptr [esi + 0x10], edi */ 693 MEM32(esi + 0x14) = edi; /* 0x2B0658CA: mov dword ptr [esi + 0x14], edi */ 694 MEM32(esi + 0x18) = edi; /* 0x2B0658CD: mov dword ptr [esi + 0x18], edi */ 695 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0658D0: call 0x2b0ab1ba */ /* not lifted */ 696 RECOMP_FLAGS_IN(); 697 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 699 esp = esp + 4; /* 0x2B0658D5: add esp, 4 */ 700 _flag_k = FK_ADD; 701 L_2B0658D8: 702 eax = MEM32(ebp + (-0x34)); /* 0x2B0658D8: mov eax, dword ptr [ebp - 0x34] */ 703 /* cmp eax, edi */ /* 0x2B0658DB: cmp eax, edi */ 704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 706 _flag_k = FK_CMP; 707 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0658FB; /* 0x2B0658DD: je 0x2b0658fb */ 708 L_2B0658DF: 709 ecx = eax + (-0x1); /* 0x2B0658DF: lea ecx, [eax - 1] */ 710 SET_LO8(eax, MEM8(ecx)); /* 0x2B0658E2: mov al, byte ptr [ecx] */ 711 /* test LO8(eax), LO8(eax) */ /* 0x2B0658E4: test al, al */ 712 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 713 _cf = 0; 714 _flag_k = FK_NARROW(FK_TEST, 24); 715 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0658F2; /* 0x2B0658E6: je 0x2b0658f2 */ 716 L_2B0658E8: 717 /* cmp LO8(eax), 0xFFu */ /* 0x2B0658E8: cmp al, 0xff */ 718 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 720 _flag_k = FK_NARROW(FK_CMP, 24); 721 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0658F2; /* 0x2B0658EA: je 0x2b0658f2 */ 722 L_2B0658EC: 723 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 724 SET_LO8(eax, LO8(eax) - 1); /* 0x2B0658EC: dec al */ 725 _flag_k = FK_NARROW(FK_DEC, 24); 726 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B0658EE: mov byte ptr [ecx], al */ 727 goto L_2B0658FB; /* 0x2B0658F0: jmp 0x2b0658fb */ 728 L_2B0658F2: 729 PUSH32(esp, ecx); /* 0x2B0658F2: push ecx */ 730 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0658F3: call 0x2b0ab1ba */ /* not lifted */ 731 RECOMP_FLAGS_IN(); 732 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 734 esp = esp + 4; /* 0x2B0658F8: add esp, 4 */ 735 _flag_k = FK_ADD; 736 L_2B0658FB: 737 ecx = ebp + (-0x70); /* 0x2B0658FB: lea ecx, [ebp - 0x70] */ 738 MEM32(ebp + (-0x34)) = edi; /* 0x2B0658FE: mov dword ptr [ebp - 0x34], edi */ 739 MEM32(ebp + (-0x30)) = edi; /* 0x2B065901: mov dword ptr [ebp - 0x30], edi */ 740 MEM32(ebp + (-0x2C)) = edi; /* 0x2B065904: mov dword ptr [ebp - 0x2c], edi */ 741 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B065907: mov dword ptr [ebp - 4], 0xffffffff */ 742 RECOMP_ICALL(MEM32(0x2B0B5BBC)); /* 0x2B06590E: call dword ptr [0x2b0b5bbc] */ 743 RECOMP_FLAGS_IN(); 744 ecx = MEM32(ebp + (-0xC)); /* 0x2B065914: mov ecx, dword ptr [ebp - 0xc] */ 745 edi = POP32_VAL(esp); /* 0x2B065917: pop edi */ 746 esi = POP32_VAL(esp); /* 0x2B065918: pop esi */ 747 ebx = POP32_VAL(esp); /* 0x2B065919: pop ebx */ 748 MEM32(FS_BASE + (0)) = ecx; /* 0x2B06591A: mov dword ptr fs:[0], ecx */ 749 esp = ebp; /* 0x2B065921: mov esp, ebp */ 750 ebp = POP32_VAL(esp); /* 0x2B065923: pop ebp */ 751 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B065924: ret 0xc */ 752 RECOMP_REGS_OUT(); 753 } 754 755 void sub_2B065930(void) { 756 int _fpu_cmp = 0; 757 uint32_t _cf = 0; 758 int _df = 1; 759 uint32_t _flag_k = FK_NONE; 760 uint32_t _flag_a = 0, _flag_b = 0; 761 uint32_t _itail_tgt = 0; 762 RECOMP_REGS_LOCALS 763 RECOMP_ENTER(0x2B065930u); 764 765 L_2B065930: 766 PUSH32(esp, esi); /* 0x2B065930: push esi */ 767 esi = ecx; /* 0x2B065931: mov esi, ecx */ 768 ecx = MEM32(esi); /* 0x2B065933: mov ecx, dword ptr [esi] */ 769 MEM8(esi + 0x45) = (uint8_t)(0); /* 0x2B065935: mov byte ptr [esi + 0x45], 0 */ 770 eax = MEM32(ecx); /* 0x2B065939: mov eax, dword ptr [ecx] */ 771 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B06593B: call dword ptr [eax + 0xc] */ 772 RECOMP_FLAGS_IN(); 773 ecx = MEM32(esi + 0x8); /* 0x2B06593E: mov ecx, dword ptr [esi + 8] */ 774 edx = MEM32(ecx); /* 0x2B065941: mov edx, dword ptr [ecx] */ 775 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B065943: call dword ptr [edx + 0xc] */ 776 RECOMP_FLAGS_IN(); 777 ecx = MEM32(esi + 0x10); /* 0x2B065946: mov ecx, dword ptr [esi + 0x10] */ 778 eax = MEM32(ecx); /* 0x2B065949: mov eax, dword ptr [ecx] */ 779 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B06594B: call dword ptr [eax + 0xc] */ 780 RECOMP_FLAGS_IN(); 781 ecx = MEM32(esi + 0x18); /* 0x2B06594E: mov ecx, dword ptr [esi + 0x18] */ 782 edx = MEM32(ecx); /* 0x2B065951: mov edx, dword ptr [ecx] */ 783 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B065953: call dword ptr [edx + 0xc] */ 784 RECOMP_FLAGS_IN(); 785 ecx = MEM32(esi + 0x20); /* 0x2B065956: mov ecx, dword ptr [esi + 0x20] */ 786 eax = MEM32(ecx); /* 0x2B065959: mov eax, dword ptr [ecx] */ 787 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B06595B: call dword ptr [eax + 0xc] */ 788 RECOMP_FLAGS_IN(); 789 esi = POP32_VAL(esp); /* 0x2B06595E: pop esi */ 790 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06595F: ret */ 791 RECOMP_REGS_OUT(); 792 } 793 794 void sub_2B065960(void) { 795 int _fpu_cmp = 0; 796 uint32_t _cf = 0; 797 int _df = 1; 798 uint32_t _flag_k = FK_NONE; 799 uint32_t _flag_a = 0, _flag_b = 0; 800 uint32_t _itail_tgt = 0; 801 RECOMP_REGS_LOCALS 802 RECOMP_ENTER(0x2B065960u); 803 804 L_2B065960: 805 PUSH32(esp, ebp); /* 0x2B065960: push ebp */ 806 ebp = esp; /* 0x2B065961: mov ebp, esp */ 807 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 809 esp = esp - 0x10u; /* 0x2B065963: sub esp, 0x10 */ 810 _flag_k = FK_CMP; 811 PUSH32(esp, ebx); /* 0x2B065966: push ebx */ 812 PUSH32(esp, esi); /* 0x2B065967: push esi */ 813 esi = ecx; /* 0x2B065968: mov esi, ecx */ 814 SET_LO8(eax, MEM8(esi + 0x45)); /* 0x2B06596A: mov al, byte ptr [esi + 0x45] */ 815 /* test LO8(eax), LO8(eax) */ /* 0x2B06596D: test al, al */ 816 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 817 _cf = 0; 818 _flag_k = FK_NARROW(FK_TEST, 24); 819 PUSH32(esp, edi); /* 0x2B06596F: push edi */ 820 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065A89; /* 0x2B065970: je 0x2b065a89 */ 821 L_2B065976: 822 SET_LO8(eax, MEM8(esi + 0x44)); /* 0x2B065976: mov al, byte ptr [esi + 0x44] */ 823 /* test LO8(eax), LO8(eax) */ /* 0x2B065979: test al, al */ 824 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 825 _cf = 0; 826 _flag_k = FK_NARROW(FK_TEST, 24); 827 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065A89; /* 0x2B06597B: je 0x2b065a89 */ 828 L_2B065981: 829 eax = MEM32(esi + 0x48); /* 0x2B065981: mov eax, dword ptr [esi + 0x48] */ 830 /* test eax, eax */ /* 0x2B065984: test eax, eax */ 831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 832 _cf = 0; 833 _flag_k = FK_TEST; 834 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065A7A; /* 0x2B065986: je 0x2b065a7a */ 835 L_2B06598C: 836 ebx = esi + 0x4C; /* 0x2B06598C: lea ebx, [esi + 0x4c] */ 837 PUSH32(esp, 1); /* 0x2B06598F: push 1 */ 838 PUSH32(esp, ebx); /* 0x2B065991: push ebx */ 839 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B065992: call dword ptr [0x2b0b5d6c] */ 840 RECOMP_FLAGS_IN(); 841 ecx = eax; /* 0x2B065998: mov ecx, eax */ 842 RECOMP_ICALL(MEM32(0x2B0B5EE0)); /* 0x2B06599A: call dword ptr [0x2b0b5ee0] */ 843 RECOMP_FLAGS_IN(); 844 PUSH32(esp, 0x1Bu); /* 0x2B0659A0: push 0x1b */ 845 PUSH32(esp, ebx); /* 0x2B0659A2: push ebx */ 846 edi = eax; /* 0x2B0659A3: mov edi, eax */ 847 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0659A5: call dword ptr [0x2b0b5d6c] */ 848 RECOMP_FLAGS_IN(); 849 ecx = eax; /* 0x2B0659AB: mov ecx, eax */ 850 RECOMP_ICALL(MEM32(0x2B0B5EE0)); /* 0x2B0659AD: call dword ptr [0x2b0b5ee0] */ 851 RECOMP_FLAGS_IN(); 852 /* cmp eax, edi */ /* 0x2B0659B3: cmp eax, edi */ 853 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 855 _flag_k = FK_CMP; 856 if (CMP_BE(_flag_a, _flag_b)) goto L_2B0659B9; /* 0x2B0659B5: jbe 0x2b0659b9 */ 857 L_2B0659B7: 858 eax = edi; /* 0x2B0659B7: mov eax, edi */ 859 L_2B0659B9: 860 /* cmp edi, MEM32(esi + 0x3C) */ /* 0x2B0659B9: cmp edi, dword ptr [esi + 0x3c] */ 861 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x3C)); 862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 863 _flag_k = FK_CMP; 864 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0659C7; /* 0x2B0659BC: jne 0x2b0659c7 */ 865 L_2B0659BE: 866 /* cmp eax, MEM32(esi + 0x40) */ /* 0x2B0659BE: cmp eax, dword ptr [esi + 0x40] */ 867 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x40)); 868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 869 _flag_k = FK_CMP; 870 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065A89; /* 0x2B0659C1: je 0x2b065a89 */ 871 L_2B0659C7: 872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 873 ebx = 0; /* 0x2B0659C7: xor ebx, ebx */ 874 _cf = 0; 875 _flag_k = FK_TEST; 876 /* cmp edi, ebx */ /* 0x2B0659C9: cmp edi, ebx */ 877 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 879 _flag_k = FK_CMP; 880 MEM32(esi + 0x3C) = edi; /* 0x2B0659CB: mov dword ptr [esi + 0x3c], edi */ 881 MEM32(esi + 0x40) = eax; /* 0x2B0659CE: mov dword ptr [esi + 0x40], eax */ 882 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0659D8; /* 0x2B0659D1: jne 0x2b0659d8 */ 883 L_2B0659D3: 884 edi = 1; /* 0x2B0659D3: mov edi, 1 */ 885 L_2B0659D8: 886 MEM32(ebp + (-0x8)) = eax; /* 0x2B0659D8: mov dword ptr [ebp - 8], eax */ 887 eax = MEM32(esi + 0x30); /* 0x2B0659DB: mov eax, dword ptr [esi + 0x30] */ 888 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0659DE: mov dword ptr [ebp - 4], ebx */ 889 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x2B0659E1: fild qword ptr [ebp - 8] */ 890 MEM32(ebp + (-0x8)) = edi; /* 0x2B0659E4: mov dword ptr [ebp - 8], edi */ 891 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0659E7: mov dword ptr [ebp - 4], ebx */ 892 _st[0] = _st[0] / (double)(int32_t)MEM32(ebp + (-0x8)); /* 0x2B0659EA: fidiv dword ptr [ebp - 8] */ 893 MEM32(ebp + (-0x8)) = eax; /* 0x2B0659ED: mov dword ptr [ebp - 8], eax */ 894 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0659F0: mov dword ptr [ebp - 4], ebx */ 895 MEM32(ebp + (-0xC)) = 0xBu; /* 0x2B0659F3: mov dword ptr [ebp - 0xc], 0xb */ 896 _st[0] = _st[0] * (double)(int32_t)MEM32(ebp + (-0x8)); /* 0x2B0659FA: fimul dword ptr [ebp - 8] */ 897 RECOMP_ICALL(0x2B0AB220u); /* 0x2B0659FD: call 0x2b0ab220 */ /* not lifted */ 898 RECOMP_FLAGS_IN(); 899 edi = MEM32(0x2B0B5558); /* 0x2B065A02: mov edi, dword ptr [0x2b0b5558] */ 900 ecx = ebp + (-0x10); /* 0x2B065A08: lea ecx, [ebp - 0x10] */ 901 PUSH32(esp, ecx); /* 0x2B065A0B: push ecx */ 902 ecx = MEM32(esi); /* 0x2B065A0C: mov ecx, dword ptr [esi] */ 903 MEM32(ebp + (-0x10)) = eax; /* 0x2B065A0E: mov dword ptr [ebp - 0x10], eax */ 904 RECOMP_ICALL(edi); /* 0x2B065A11: call edi */ 905 RECOMP_FLAGS_IN(); 906 edx = MEM32(esi + 0x30); /* 0x2B065A13: mov edx, dword ptr [esi + 0x30] */ 907 ecx = MEM32(esi + 0x8); /* 0x2B065A16: mov ecx, dword ptr [esi + 8] */ 908 eax = ebp + (-0x10); /* 0x2B065A19: lea eax, [ebp - 0x10] */ 909 PUSH32(esp, eax); /* 0x2B065A1C: push eax */ 910 MEM32(ebp + (-0x10)) = edx; /* 0x2B065A1D: mov dword ptr [ebp - 0x10], edx */ 911 RECOMP_ICALL(edi); /* 0x2B065A20: call edi */ 912 RECOMP_FLAGS_IN(); 913 ecx = MEM32(esi + 0x8); /* 0x2B065A22: mov ecx, dword ptr [esi + 8] */ 914 edx = MEM32(ecx); /* 0x2B065A25: mov edx, dword ptr [ecx] */ 915 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B065A27: call dword ptr [edx + 8] */ 916 RECOMP_FLAGS_IN(); 917 ecx = MEM32(esi + 0x18); /* 0x2B065A2A: mov ecx, dword ptr [esi + 0x18] */ 918 edi = MEM32(0x2B0B5640); /* 0x2B065A2D: mov edi, dword ptr [0x2b0b5640] */ 919 eax = ebp + (-0x8); /* 0x2B065A33: lea eax, [ebp - 8] */ 920 PUSH32(esp, eax); /* 0x2B065A36: push eax */ 921 MEM32(ebp + (-0x8)) = 0x14u; /* 0x2B065A37: mov dword ptr [ebp - 8], 0x14 */ 922 MEM32(ebp + (-0x4)) = ebx; /* 0x2B065A3E: mov dword ptr [ebp - 4], ebx */ 923 RECOMP_ICALL(edi); /* 0x2B065A41: call edi */ 924 RECOMP_FLAGS_IN(); 925 ecx = MEM32(esi + 0x38); /* 0x2B065A43: mov ecx, dword ptr [esi + 0x38] */ 926 edx = MEM32(ebp + (-0x8)); /* 0x2B065A46: mov edx, dword ptr [ebp - 8] */ 927 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 928 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 929 edx = edx + ecx; /* 0x2B065A49: add edx, ecx */ 930 _flag_k = FK_ADD; 931 ecx = MEM32(esi + 0x8); /* 0x2B065A4B: mov ecx, dword ptr [esi + 8] */ 932 MEM32(ebp + (-0x8)) = edx; /* 0x2B065A4E: mov dword ptr [ebp - 8], edx */ 933 edx = ebp + (-0x8); /* 0x2B065A51: lea edx, [ebp - 8] */ 934 PUSH32(esp, edx); /* 0x2B065A54: push edx */ 935 RECOMP_ICALL(edi); /* 0x2B065A55: call edi */ 936 RECOMP_FLAGS_IN(); 937 ecx = MEM32(esi); /* 0x2B065A57: mov ecx, dword ptr [esi] */ 938 eax = ebp + (-0x8); /* 0x2B065A59: lea eax, [ebp - 8] */ 939 PUSH32(esp, eax); /* 0x2B065A5C: push eax */ 940 RECOMP_ICALL(edi); /* 0x2B065A5D: call edi */ 941 RECOMP_FLAGS_IN(); 942 ecx = MEM32(esi + 0x30); /* 0x2B065A5F: mov ecx, dword ptr [esi + 0x30] */ 943 edx = MEM32(ebp + (-0x8)); /* 0x2B065A62: mov edx, dword ptr [ebp - 8] */ 944 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 946 edx = edx + ecx; /* 0x2B065A65: add edx, ecx */ 947 _flag_k = FK_ADD; 948 ecx = MEM32(esi + 0x20); /* 0x2B065A67: mov ecx, dword ptr [esi + 0x20] */ 949 MEM32(ebp + (-0x8)) = edx; /* 0x2B065A6A: mov dword ptr [ebp - 8], edx */ 950 edx = ebp + (-0x8); /* 0x2B065A6D: lea edx, [ebp - 8] */ 951 PUSH32(esp, edx); /* 0x2B065A70: push edx */ 952 RECOMP_ICALL(edi); /* 0x2B065A71: call edi */ 953 RECOMP_FLAGS_IN(); 954 edi = POP32_VAL(esp); /* 0x2B065A73: pop edi */ 955 esi = POP32_VAL(esp); /* 0x2B065A74: pop esi */ 956 ebx = POP32_VAL(esp); /* 0x2B065A75: pop ebx */ 957 esp = ebp; /* 0x2B065A76: mov esp, ebp */ 958 ebp = POP32_VAL(esp); /* 0x2B065A78: pop ebp */ 959 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B065A79: ret */ 960 L_2B065A7A: 961 ecx = MEM32(esi); /* 0x2B065A7A: mov ecx, dword ptr [esi] */ 962 eax = MEM32(ecx); /* 0x2B065A7C: mov eax, dword ptr [ecx] */ 963 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B065A7E: call dword ptr [eax + 0xc] */ 964 RECOMP_FLAGS_IN(); 965 ecx = MEM32(esi + 0x8); /* 0x2B065A81: mov ecx, dword ptr [esi + 8] */ 966 edx = MEM32(ecx); /* 0x2B065A84: mov edx, dword ptr [ecx] */ 967 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B065A86: call dword ptr [edx + 0xc] */ 968 RECOMP_FLAGS_IN(); 969 L_2B065A89: 970 edi = POP32_VAL(esp); /* 0x2B065A89: pop edi */ 971 esi = POP32_VAL(esp); /* 0x2B065A8A: pop esi */ 972 ebx = POP32_VAL(esp); /* 0x2B065A8B: pop ebx */ 973 esp = ebp; /* 0x2B065A8C: mov esp, ebp */ 974 ebp = POP32_VAL(esp); /* 0x2B065A8E: pop ebp */ 975 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B065A8F: ret */ 976 RECOMP_REGS_OUT(); 977 } 978 979 void sub_2B065A90(void) { 980 int _fpu_cmp = 0; 981 uint32_t _cf = 0; 982 int _df = 1; 983 uint32_t _flag_k = FK_NONE; 984 uint32_t _flag_a = 0, _flag_b = 0; 985 uint32_t _itail_tgt = 0; 986 RECOMP_REGS_LOCALS 987 RECOMP_ENTER(0x2B065A90u); 988 989 L_2B065A90: 990 PUSH32(esp, esi); /* 0x2B065A90: push esi */ 991 esi = ecx; /* 0x2B065A91: mov esi, ecx */ 992 SET_LO8(eax, MEM8(esi + 0x44)); /* 0x2B065A93: mov al, byte ptr [esi + 0x44] */ 993 /* test LO8(eax), LO8(eax) */ /* 0x2B065A96: test al, al */ 994 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 995 _cf = 0; 996 _flag_k = FK_NARROW(FK_TEST, 24); 997 PUSH32(esp, edi); /* 0x2B065A98: push edi */ 998 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065AE0; /* 0x2B065A99: je 0x2b065ae0 */ 999 L_2B065A9B: 1000 SET_LO8(eax, MEM8(esi + 0x45)); /* 0x2B065A9B: mov al, byte ptr [esi + 0x45] */ 1001 /* test LO8(eax), LO8(eax) */ /* 0x2B065A9E: test al, al */ 1002 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1003 _cf = 0; 1004 _flag_k = FK_NARROW(FK_TEST, 24); 1005 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065AE0; /* 0x2B065AA0: je 0x2b065ae0 */ 1006 L_2B065AA2: 1007 SET_LO8(eax, MEM8(esi + 0x46)); /* 0x2B065AA2: mov al, byte ptr [esi + 0x46] */ 1008 /* test LO8(eax), LO8(eax) */ /* 0x2B065AA5: test al, al */ 1009 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1010 _cf = 0; 1011 _flag_k = FK_NARROW(FK_TEST, 24); 1012 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065AC6; /* 0x2B065AA7: je 0x2b065ac6 */ 1013 L_2B065AA9: 1014 ecx = MEM32(esi + 0x18); /* 0x2B065AA9: mov ecx, dword ptr [esi + 0x18] */ 1015 edi = MEM32(0x2B0B54EC); /* 0x2B065AAC: mov edi, dword ptr [0x2b0b54ec] */ 1016 PUSH32(esp, 0x00FF2222u); /* 0x2B065AB2: push 0xff2222 */ 1017 RECOMP_ICALL(edi); /* 0x2B065AB7: call edi */ 1018 RECOMP_FLAGS_IN(); 1019 ecx = MEM32(esi + 0x20); /* 0x2B065AB9: mov ecx, dword ptr [esi + 0x20] */ 1020 PUSH32(esp, 0x00FF2222u); /* 0x2B065ABC: push 0xff2222 */ 1021 RECOMP_ICALL(edi); /* 0x2B065AC1: call edi */ 1022 RECOMP_FLAGS_IN(); 1023 edi = POP32_VAL(esp); /* 0x2B065AC3: pop edi */ 1024 esi = POP32_VAL(esp); /* 0x2B065AC4: pop esi */ 1025 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B065AC5: ret */ 1026 L_2B065AC6: 1027 ecx = MEM32(esi + 0x18); /* 0x2B065AC6: mov ecx, dword ptr [esi + 0x18] */ 1028 edi = MEM32(0x2B0B54EC); /* 0x2B065AC9: mov edi, dword ptr [0x2b0b54ec] */ 1029 PUSH32(esp, 0x00FFFFFFu); /* 0x2B065ACF: push 0xffffff */ 1030 RECOMP_ICALL(edi); /* 0x2B065AD4: call edi */ 1031 RECOMP_FLAGS_IN(); 1032 ecx = MEM32(esi + 0x20); /* 0x2B065AD6: mov ecx, dword ptr [esi + 0x20] */ 1033 PUSH32(esp, 0x00FFFFFFu); /* 0x2B065AD9: push 0xffffff */ 1034 RECOMP_ICALL(edi); /* 0x2B065ADE: call edi */ 1035 RECOMP_FLAGS_IN(); 1036 L_2B065AE0: 1037 edi = POP32_VAL(esp); /* 0x2B065AE0: pop edi */ 1038 esi = POP32_VAL(esp); /* 0x2B065AE1: pop esi */ 1039 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B065AE2: ret */ 1040 RECOMP_REGS_OUT(); 1041 } 1042 1043 void sub_2B065AF0(void) { 1044 int _fpu_cmp = 0; 1045 uint32_t _cf = 0; 1046 int _df = 1; 1047 uint32_t _flag_k = FK_NONE; 1048 uint32_t _flag_a = 0, _flag_b = 0; 1049 uint32_t _itail_tgt = 0; 1050 RECOMP_REGS_LOCALS 1051 RECOMP_ENTER(0x2B065AF0u); 1052 1053 L_2B065AF0: 1054 PUSH32(esp, ebp); /* 0x2B065AF0: push ebp */ 1055 ebp = esp; /* 0x2B065AF1: mov ebp, esp */ 1056 PUSH32(esp, ecx); /* 0x2B065AF3: push ecx */ 1057 PUSH32(esp, ebx); /* 0x2B065AF4: push ebx */ 1058 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1059 ebx = 0; /* 0x2B065AF5: xor ebx, ebx */ 1060 _cf = 0; 1061 _flag_k = FK_TEST; 1062 PUSH32(esp, esi); /* 0x2B065AF7: push esi */ 1063 esi = ecx; /* 0x2B065AF8: mov esi, ecx */ 1064 PUSH32(esp, ebx); /* 0x2B065AFA: push ebx */ 1065 PUSH32(esp, 0x2B066090u); /* 0x2B065AFB: push 0x2b066090 */ 1066 MEM32(esi) = ebx; /* 0x2B065B00: mov dword ptr [esi], ebx */ 1067 MEM32(esi + 0x4) = ebx; /* 0x2B065B02: mov dword ptr [esi + 4], ebx */ 1068 MEM32(esi + 0x8) = ebx; /* 0x2B065B05: mov dword ptr [esi + 8], ebx */ 1069 MEM32(esi + 0xC) = ebx; /* 0x2B065B08: mov dword ptr [esi + 0xc], ebx */ 1070 MEM8(esi + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2B065B0B: mov byte ptr [esi + 0x10], bl */ 1071 MEM32(esi + 0x18) = ebx; /* 0x2B065B0E: mov dword ptr [esi + 0x18], ebx */ 1072 MEM32(esi + 0x1C) = ebx; /* 0x2B065B11: mov dword ptr [esi + 0x1c], ebx */ 1073 PUSH32(esp, ebx); /* 0x2B065B14: push ebx */ 1074 MEM32(0x2B0EEDEC) = esi; /* 0x2B065B15: mov dword ptr [0x2b0eedec], esi */ 1075 RECOMP_ICALL(MEM32(0x2B0B52C8)); /* 0x2B065B1B: call dword ptr [0x2b0b52c8] */ 1076 RECOMP_FLAGS_IN(); 1077 PUSH32(esp, 0x2B0EB030u); /* 0x2B065B21: push 0x2b0eb030 */ 1078 PUSH32(esp, 0x4E20u); /* 0x2B065B26: push 0x4e20 */ 1079 PUSH32(esp, ebx); /* 0x2B065B2B: push ebx */ 1080 PUSH32(esp, 4); /* 0x2B065B2C: push 4 */ 1081 PUSH32(esp, ebx); /* 0x2B065B2E: push ebx */ 1082 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B065B2F: push -1 */ 1083 RECOMP_ICALL(MEM32(0x2B0B5010)); /* 0x2B065B31: call dword ptr [0x2b0b5010] */ 1084 RECOMP_FLAGS_IN(); 1085 /* cmp eax, ebx */ /* 0x2B065B37: cmp eax, ebx */ 1086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1088 _flag_k = FK_CMP; 1089 PUSH32(esp, ebx); /* 0x2B065B39: push ebx */ 1090 PUSH32(esp, ebx); /* 0x2B065B3A: push ebx */ 1091 MEM32(esi + 0x4) = eax; /* 0x2B065B3B: mov dword ptr [esi + 4], eax */ 1092 PUSH32(esp, ebx); /* 0x2B065B3E: push ebx */ 1093 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065B5F; /* 0x2B065B3F: je 0x2b065b5f */ 1094 L_2B065B41: 1095 PUSH32(esp, 2); /* 0x2B065B41: push 2 */ 1096 PUSH32(esp, eax); /* 0x2B065B43: push eax */ 1097 RECOMP_ICALL(MEM32(0x2B0B5014)); /* 0x2B065B44: call dword ptr [0x2b0b5014] */ 1098 RECOMP_FLAGS_IN(); 1099 /* cmp eax, ebx */ /* 0x2B065B4A: cmp eax, ebx */ 1100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1102 _flag_k = FK_CMP; 1103 MEM32(esi + 0x8) = eax; /* 0x2B065B4C: mov dword ptr [esi + 8], eax */ 1104 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065B5B; /* 0x2B065B4F: jne 0x2b065b5b */ 1105 L_2B065B51: 1106 PUSH32(esp, ebx); /* 0x2B065B51: push ebx */ 1107 PUSH32(esp, ebx); /* 0x2B065B52: push ebx */ 1108 PUSH32(esp, ebx); /* 0x2B065B53: push ebx */ 1109 PUSH32(esp, 0x2B0EB010u); /* 0x2B065B54: push 0x2b0eb010 */ 1110 goto L_2B065B64; /* 0x2B065B59: jmp 0x2b065b64 */ 1111 L_2B065B5B: 1112 MEM8(eax) = (uint8_t)(LO8(ebx)); /* 0x2B065B5B: mov byte ptr [eax], bl */ 1113 goto L_2B065B71; /* 0x2B065B5D: jmp 0x2b065b71 */ 1114 L_2B065B5F: 1115 PUSH32(esp, 0x2B0EAFF0u); /* 0x2B065B5F: push 0x2b0eaff0 */ 1116 L_2B065B64: 1117 PUSH32(esp, 0x2B0EAFE8u); /* 0x2B065B64: push 0x2b0eafe8 */ 1118 RECOMP_ICALL(0x2B089BF0u); /* 0x2B065B69: call 0x2b089bf0 */ /* not lifted */ 1119 RECOMP_FLAGS_IN(); 1120 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1122 esp = esp + 0x14u; /* 0x2B065B6E: add esp, 0x14 */ 1123 _flag_k = FK_ADD; 1124 L_2B065B71: 1125 PUSH32(esp, 0x2B0EAFD4u); /* 0x2B065B71: push 0x2b0eafd4 */ 1126 RECOMP_ICALL(MEM32(0x2B0B52E8)); /* 0x2B065B76: call dword ptr [0x2b0b52e8] */ 1127 RECOMP_FLAGS_IN(); 1128 /* cmp eax, ebx */ /* 0x2B065B7C: cmp eax, ebx */ 1129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1131 _flag_k = FK_CMP; 1132 MEM32(esi + 0xC) = eax; /* 0x2B065B7E: mov dword ptr [esi + 0xc], eax */ 1133 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065B98; /* 0x2B065B81: jne 0x2b065b98 */ 1134 L_2B065B83: 1135 PUSH32(esp, ebx); /* 0x2B065B83: push ebx */ 1136 PUSH32(esp, ebx); /* 0x2B065B84: push ebx */ 1137 PUSH32(esp, ebx); /* 0x2B065B85: push ebx */ 1138 PUSH32(esp, 0x2B0EAFB0u); /* 0x2B065B86: push 0x2b0eafb0 */ 1139 PUSH32(esp, 0x2B0EAFE8u); /* 0x2B065B8B: push 0x2b0eafe8 */ 1140 RECOMP_ICALL(0x2B089BF0u); /* 0x2B065B90: call 0x2b089bf0 */ /* not lifted */ 1141 RECOMP_FLAGS_IN(); 1142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1144 esp = esp + 0x14u; /* 0x2B065B95: add esp, 0x14 */ 1145 _flag_k = FK_ADD; 1146 L_2B065B98: 1147 PUSH32(esp, 0x30u); /* 0x2B065B98: push 0x30 */ 1148 RECOMP_ICALL(0x2B0AB212u); /* 0x2B065B9A: call 0x2b0ab212 */ /* not lifted */ 1149 RECOMP_FLAGS_IN(); 1150 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1152 esp = esp + 4; /* 0x2B065B9F: add esp, 4 */ 1153 _flag_k = FK_ADD; 1154 /* cmp eax, ebx */ /* 0x2B065BA2: cmp eax, ebx */ 1155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1157 _flag_k = FK_CMP; 1158 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065BCE; /* 0x2B065BA4: je 0x2b065bce */ 1159 L_2B065BA6: 1160 SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x2B065BA6: mov cl, byte ptr [ebp - 1] */ 1161 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B065BA9: mov byte ptr [eax], cl */ 1162 MEM32(eax + 0x4) = ebx; /* 0x2B065BAB: mov dword ptr [eax + 4], ebx */ 1163 MEM32(eax + 0x8) = ebx; /* 0x2B065BAE: mov dword ptr [eax + 8], ebx */ 1164 MEM32(eax + 0xC) = ebx; /* 0x2B065BB1: mov dword ptr [eax + 0xc], ebx */ 1165 MEM32(eax + 0x10) = ebx; /* 0x2B065BB4: mov dword ptr [eax + 0x10], ebx */ 1166 MEM32(eax + 0x14) = ebx; /* 0x2B065BB7: mov dword ptr [eax + 0x14], ebx */ 1167 MEM32(eax + 0x18) = ebx; /* 0x2B065BBA: mov dword ptr [eax + 0x18], ebx */ 1168 MEM32(eax + 0x1C) = ebx; /* 0x2B065BBD: mov dword ptr [eax + 0x1c], ebx */ 1169 MEM32(eax + 0x20) = ebx; /* 0x2B065BC0: mov dword ptr [eax + 0x20], ebx */ 1170 MEM32(eax + 0x24) = ebx; /* 0x2B065BC3: mov dword ptr [eax + 0x24], ebx */ 1171 MEM32(eax + 0x28) = ebx; /* 0x2B065BC6: mov dword ptr [eax + 0x28], ebx */ 1172 MEM32(eax + 0x2C) = ebx; /* 0x2B065BC9: mov dword ptr [eax + 0x2c], ebx */ 1173 goto L_2B065BD0; /* 0x2B065BCC: jmp 0x2b065bd0 */ 1174 L_2B065BCE: 1175 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1176 eax = 0; /* 0x2B065BCE: xor eax, eax */ 1177 _cf = 0; 1178 _flag_k = FK_TEST; 1179 L_2B065BD0: 1180 PUSH32(esp, 0x2B0EAF8Cu); /* 0x2B065BD0: push 0x2b0eaf8c */ 1181 ecx = esi; /* 0x2B065BD5: mov ecx, esi */ 1182 MEM32(esi + 0x14) = eax; /* 0x2B065BD7: mov dword ptr [esi + 0x14], eax */ 1183 RECOMP_ICALL(0x2B065EF0u); /* 0x2B065BDA: call 0x2b065ef0 */ /* not lifted */ 1184 RECOMP_FLAGS_IN(); 1185 MEM32(esi + 0x1C) = ebx; /* 0x2B065BDF: mov dword ptr [esi + 0x1c], ebx */ 1186 eax = esi; /* 0x2B065BE2: mov eax, esi */ 1187 esi = POP32_VAL(esp); /* 0x2B065BE4: pop esi */ 1188 ebx = POP32_VAL(esp); /* 0x2B065BE5: pop ebx */ 1189 esp = ebp; /* 0x2B065BE6: mov esp, ebp */ 1190 ebp = POP32_VAL(esp); /* 0x2B065BE8: pop ebp */ 1191 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B065BE9: ret */ 1192 RECOMP_REGS_OUT(); 1193 } 1194 1195 void sub_2B065BF0(void) { 1196 int _fpu_cmp = 0; 1197 uint32_t _cf = 0; 1198 int _df = 1; 1199 uint32_t _flag_k = FK_NONE; 1200 uint32_t _flag_a = 0, _flag_b = 0; 1201 uint32_t _itail_tgt = 0; 1202 RECOMP_REGS_LOCALS 1203 RECOMP_ENTER(0x2B065BF0u); 1204 1205 L_2B065BF0: 1206 PUSH32(esp, ebp); /* 0x2B065BF0: push ebp */ 1207 ebp = esp; /* 0x2B065BF1: mov ebp, esp */ 1208 PUSH32(esp, ecx); /* 0x2B065BF3: push ecx */ 1209 PUSH32(esp, ebx); /* 0x2B065BF4: push ebx */ 1210 PUSH32(esp, esi); /* 0x2B065BF5: push esi */ 1211 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1212 ebx = 0; /* 0x2B065BF6: xor ebx, ebx */ 1213 _cf = 0; 1214 _flag_k = FK_TEST; 1215 PUSH32(esp, edi); /* 0x2B065BF8: push edi */ 1216 edi = ecx; /* 0x2B065BF9: mov edi, ecx */ 1217 MEM32(0x2B0EEDEC) = ebx; /* 0x2B065BFB: mov dword ptr [0x2b0eedec], ebx */ 1218 esi = MEM32(edi + 0x14); /* 0x2B065C01: mov esi, dword ptr [edi + 0x14] */ 1219 /* cmp esi, ebx */ /* 0x2B065C04: cmp esi, ebx */ 1220 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1222 _flag_k = FK_CMP; 1223 MEM32(ebp + (-0x4)) = edi; /* 0x2B065C06: mov dword ptr [ebp - 4], edi */ 1224 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065D2B; /* 0x2B065C09: je 0x2b065d2b */ 1225 L_2B065C0F: 1226 eax = MEM32(esi + 0x2C); /* 0x2B065C0F: mov eax, dword ptr [esi + 0x2c] */ 1227 /* cmp eax, ebx */ /* 0x2B065C12: cmp eax, ebx */ 1228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1230 _flag_k = FK_CMP; 1231 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065D22; /* 0x2B065C14: je 0x2b065d22 */ 1232 L_2B065C1A: 1233 edi = MEM32(esi + 0xC); /* 0x2B065C1A: mov edi, dword ptr [esi + 0xc] */ 1234 eax = MEM32(edi + 0x4); /* 0x2B065C1D: mov eax, dword ptr [edi + 4] */ 1235 /* cmp eax, ebx */ /* 0x2B065C20: cmp eax, ebx */ 1236 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1238 _flag_k = FK_CMP; 1239 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065C65; /* 0x2B065C22: je 0x2b065c65 */ 1240 L_2B065C24: 1241 PUSH32(esp, eax); /* 0x2B065C24: push eax */ 1242 ecx = edi; /* 0x2B065C25: mov ecx, edi */ 1243 RECOMP_ICALL(MEM32(0x2B0B5184)); /* 0x2B065C27: call dword ptr [0x2b0b5184] */ 1244 RECOMP_FLAGS_IN(); 1245 /* cmp MEM8(eax), LO8(ebx) */ /* 0x2B065C2D: cmp byte ptr [eax], bl */ 1246 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1248 _flag_k = FK_NARROW(FK_CMP, 24); 1249 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065C52; /* 0x2B065C2F: je 0x2b065c52 */ 1250 L_2B065C31: 1251 eax = MEM32(edi + 0x4); /* 0x2B065C31: mov eax, dword ptr [edi + 4] */ 1252 PUSH32(esp, eax); /* 0x2B065C34: push eax */ 1253 ecx = edi; /* 0x2B065C35: mov ecx, edi */ 1254 RECOMP_ICALL(MEM32(0x2B0B5184)); /* 0x2B065C37: call dword ptr [0x2b0b5184] */ 1255 RECOMP_FLAGS_IN(); 1256 /* cmp MEM8(eax), 0xFFu */ /* 0x2B065C3D: cmp byte ptr [eax], 0xff */ 1257 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1259 _flag_k = FK_NARROW(FK_CMP, 24); 1260 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065C52; /* 0x2B065C40: je 0x2b065c52 */ 1261 L_2B065C42: 1262 ecx = MEM32(edi + 0x4); /* 0x2B065C42: mov ecx, dword ptr [edi + 4] */ 1263 PUSH32(esp, ecx); /* 0x2B065C45: push ecx */ 1264 ecx = edi; /* 0x2B065C46: mov ecx, edi */ 1265 RECOMP_ICALL(MEM32(0x2B0B5184)); /* 0x2B065C48: call dword ptr [0x2b0b5184] */ 1266 RECOMP_FLAGS_IN(); 1267 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1268 MEM8(eax) = (uint8_t)(MEM8(eax) - 1); /* 0x2B065C4E: dec byte ptr [eax] */ 1269 _flag_k = FK_NARROW(FK_DEC, 24); 1270 goto L_2B065C65; /* 0x2B065C50: jmp 0x2b065c65 */ 1271 L_2B065C52: 1272 edx = MEM32(edi + 0xC); /* 0x2B065C52: mov edx, dword ptr [edi + 0xc] */ 1273 eax = MEM32(edi + 0x4); /* 0x2B065C55: mov eax, dword ptr [edi + 4] */ 1274 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1276 edx = edx + 2; /* 0x2B065C58: add edx, 2 */ 1277 _flag_k = FK_ADD; 1278 PUSH32(esp, edx); /* 0x2B065C5B: push edx */ 1279 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1280 eax = eax - 1; /* 0x2B065C5C: dec eax */ 1281 _flag_k = FK_DEC; 1282 PUSH32(esp, eax); /* 0x2B065C5D: push eax */ 1283 ecx = edi; /* 0x2B065C5E: mov ecx, edi */ 1284 RECOMP_ICALL(0x2B0663D0u); /* 0x2B065C60: call 0x2b0663d0 */ /* not lifted */ 1285 RECOMP_FLAGS_IN(); 1286 L_2B065C65: 1287 MEM32(edi + 0x4) = ebx; /* 0x2B065C65: mov dword ptr [edi + 4], ebx */ 1288 MEM32(edi + 0x8) = ebx; /* 0x2B065C68: mov dword ptr [edi + 8], ebx */ 1289 MEM32(edi + 0xC) = ebx; /* 0x2B065C6B: mov dword ptr [edi + 0xc], ebx */ 1290 eax = MEM32(esi + 0xC); /* 0x2B065C6E: mov eax, dword ptr [esi + 0xc] */ 1291 ecx = MEM32(esi + 0x8); /* 0x2B065C71: mov ecx, dword ptr [esi + 8] */ 1292 /* cmp eax, ecx */ /* 0x2B065C74: cmp eax, ecx */ 1293 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1295 _flag_k = FK_CMP; 1296 edi = MEM32(esi + 0x10); /* 0x2B065C76: mov edi, dword ptr [esi + 0x10] */ 1297 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065CA8; /* 0x2B065C79: je 0x2b065ca8 */ 1298 L_2B065C7B: 1299 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 1300 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1301 eax = eax + 0x10u; /* 0x2B065C7B: add eax, 0x10 */ 1302 _flag_k = FK_ADD; 1303 /* cmp eax, ecx */ /* 0x2B065C7E: cmp eax, ecx */ 1304 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1306 _flag_k = FK_CMP; 1307 MEM32(esi + 0xC) = eax; /* 0x2B065C80: mov dword ptr [esi + 0xc], eax */ 1308 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065CA8; /* 0x2B065C83: jne 0x2b065ca8 */ 1309 L_2B065C85: 1310 eax = MEM32(esi + 0x10); /* 0x2B065C85: mov eax, dword ptr [esi + 0x10] */ 1311 ecx = MEM32(eax + 0x4); /* 0x2B065C88: mov ecx, dword ptr [eax + 4] */ 1312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1314 eax = eax + 4; /* 0x2B065C8B: add eax, 4 */ 1315 _flag_k = FK_ADD; 1316 /* cmp ecx, ebx */ /* 0x2B065C8E: cmp ecx, ebx */ 1317 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1319 _flag_k = FK_CMP; 1320 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065CA8; /* 0x2B065C90: je 0x2b065ca8 */ 1321 L_2B065C92: 1322 MEM32(esi + 0x10) = eax; /* 0x2B065C92: mov dword ptr [esi + 0x10], eax */ 1323 eax = MEM32(eax); /* 0x2B065C95: mov eax, dword ptr [eax] */ 1324 MEM32(esi + 0x4) = eax; /* 0x2B065C97: mov dword ptr [esi + 4], eax */ 1325 ecx = MEM32(esi + 0x4); /* 0x2B065C9A: mov ecx, dword ptr [esi + 4] */ 1326 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 1327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1328 eax = eax + 0x1000u; /* 0x2B065C9D: add eax, 0x1000 */ 1329 _flag_k = FK_ADD; 1330 MEM32(esi + 0x8) = eax; /* 0x2B065CA2: mov dword ptr [esi + 8], eax */ 1331 MEM32(esi + 0xC) = ecx; /* 0x2B065CA5: mov dword ptr [esi + 0xc], ecx */ 1332 L_2B065CA8: 1333 _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(1); 1334 MEM32(esi + 0x2C) = MEM32(esi + 0x2C) - 1; /* 0x2B065CA8: dec dword ptr [esi + 0x2c] */ 1335 _flag_k = FK_DEC; 1336 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B065D02; /* 0x2B065CAB: jne 0x2b065d02 */ 1337 L_2B065CAD: 1338 edx = MEM32(esi + 0x10); /* 0x2B065CAD: mov edx, dword ptr [esi + 0x10] */ 1339 eax = MEM32(edx + (-0x4)); /* 0x2B065CB0: mov eax, dword ptr [edx - 4] */ 1340 PUSH32(esp, eax); /* 0x2B065CB3: push eax */ 1341 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B065CB4: call 0x2b0ab1ba */ /* not lifted */ 1342 RECOMP_FLAGS_IN(); 1343 ecx = MEM32(esi + 0x10); /* 0x2B065CB9: mov ecx, dword ptr [esi + 0x10] */ 1344 edx = MEM32(ecx); /* 0x2B065CBC: mov edx, dword ptr [ecx] */ 1345 PUSH32(esp, edx); /* 0x2B065CBE: push edx */ 1346 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B065CBF: call 0x2b0ab1ba */ /* not lifted */ 1347 RECOMP_FLAGS_IN(); 1348 eax = MEM32(esi + 0x10); /* 0x2B065CC4: mov eax, dword ptr [esi + 0x10] */ 1349 ecx = MEM32(eax + 0x4); /* 0x2B065CC7: mov ecx, dword ptr [eax + 4] */ 1350 PUSH32(esp, ecx); /* 0x2B065CCA: push ecx */ 1351 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B065CCB: call 0x2b0ab1ba */ /* not lifted */ 1352 RECOMP_FLAGS_IN(); 1353 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1354 eax = 0; /* 0x2B065CD0: xor eax, eax */ 1355 _cf = 0; 1356 _flag_k = FK_TEST; 1357 ebx = esi + 0x14; /* 0x2B065CD2: lea ebx, [esi + 0x14] */ 1358 MEM32(ebx) = eax; /* 0x2B065CD5: mov dword ptr [ebx], eax */ 1359 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1360 ecx = 0; /* 0x2B065CD7: xor ecx, ecx */ 1361 _cf = 0; 1362 _flag_k = FK_TEST; 1363 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1364 edx = 0; /* 0x2B065CD9: xor edx, edx */ 1365 _cf = 0; 1366 _flag_k = FK_TEST; 1367 MEM32(esi + 0x4) = eax; /* 0x2B065CDB: mov dword ptr [esi + 4], eax */ 1368 MEM32(ebx + 0x4) = ecx; /* 0x2B065CDE: mov dword ptr [ebx + 4], ecx */ 1369 MEM32(esi + 0x8) = ecx; /* 0x2B065CE1: mov dword ptr [esi + 8], ecx */ 1370 MEM32(esi + 0xC) = edx; /* 0x2B065CE4: mov dword ptr [esi + 0xc], edx */ 1371 MEM32(ebx + 0x8) = edx; /* 0x2B065CE7: mov dword ptr [ebx + 8], edx */ 1372 edx = MEM32(esi + 0x24); /* 0x2B065CEA: mov edx, dword ptr [esi + 0x24] */ 1373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1374 edi = 0; /* 0x2B065CED: xor edi, edi */ 1375 _cf = 0; 1376 _flag_k = FK_TEST; 1377 PUSH32(esp, edx); /* 0x2B065CEF: push edx */ 1378 MEM32(esi + 0x10) = edi; /* 0x2B065CF0: mov dword ptr [esi + 0x10], edi */ 1379 MEM32(ebx + 0xC) = edi; /* 0x2B065CF3: mov dword ptr [ebx + 0xc], edi */ 1380 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B065CF6: call 0x2b0ab1ba */ /* not lifted */ 1381 RECOMP_FLAGS_IN(); 1382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1384 esp = esp + 0x10u; /* 0x2B065CFB: add esp, 0x10 */ 1385 _flag_k = FK_ADD; 1386 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1387 ebx = 0; /* 0x2B065CFE: xor ebx, ebx */ 1388 _cf = 0; 1389 _flag_k = FK_TEST; 1390 goto L_2B065D14; /* 0x2B065D00: jmp 0x2b065d14 */ 1391 L_2B065D02: 1392 /* cmp edi, MEM32(esi + 0x10) */ /* 0x2B065D02: cmp edi, dword ptr [esi + 0x10] */ 1393 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x10)); 1394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1395 _flag_k = FK_CMP; 1396 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065D14; /* 0x2B065D05: je 0x2b065d14 */ 1397 L_2B065D07: 1398 eax = MEM32(edi); /* 0x2B065D07: mov eax, dword ptr [edi] */ 1399 PUSH32(esp, eax); /* 0x2B065D09: push eax */ 1400 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B065D0A: call 0x2b0ab1ba */ /* not lifted */ 1401 RECOMP_FLAGS_IN(); 1402 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1403 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1404 esp = esp + 4; /* 0x2B065D0F: add esp, 4 */ 1405 _flag_k = FK_ADD; 1406 MEM32(edi) = ebx; /* 0x2B065D12: mov dword ptr [edi], ebx */ 1407 L_2B065D14: 1408 eax = MEM32(esi + 0x2C); /* 0x2B065D14: mov eax, dword ptr [esi + 0x2c] */ 1409 /* cmp eax, ebx */ /* 0x2B065D17: cmp eax, ebx */ 1410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1412 _flag_k = FK_CMP; 1413 RECOMP_BACKEDGE(); 1414 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065C1A; /* 0x2B065D19: jne 0x2b065c1a */ 1415 L_2B065D1F: 1416 edi = MEM32(ebp + (-0x4)); /* 0x2B065D1F: mov edi, dword ptr [ebp - 4] */ 1417 L_2B065D22: 1418 PUSH32(esp, esi); /* 0x2B065D22: push esi */ 1419 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B065D23: call 0x2b0ab1ba */ /* not lifted */ 1420 RECOMP_FLAGS_IN(); 1421 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1423 esp = esp + 4; /* 0x2B065D28: add esp, 4 */ 1424 _flag_k = FK_ADD; 1425 L_2B065D2B: 1426 eax = MEM32(edi + 0x8); /* 0x2B065D2B: mov eax, dword ptr [edi + 8] */ 1427 /* cmp eax, ebx */ /* 0x2B065D2E: cmp eax, ebx */ 1428 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1430 _flag_k = FK_CMP; 1431 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065D39; /* 0x2B065D30: je 0x2b065d39 */ 1432 L_2B065D32: 1433 PUSH32(esp, eax); /* 0x2B065D32: push eax */ 1434 RECOMP_ICALL(MEM32(0x2B0B5004)); /* 0x2B065D33: call dword ptr [0x2b0b5004] */ 1435 RECOMP_FLAGS_IN(); 1436 L_2B065D39: 1437 eax = MEM32(edi + 0x4); /* 0x2B065D39: mov eax, dword ptr [edi + 4] */ 1438 edi = POP32_VAL(esp); /* 0x2B065D3C: pop edi */ 1439 esi = POP32_VAL(esp); /* 0x2B065D3D: pop esi */ 1440 /* cmp eax, ebx */ /* 0x2B065D3E: cmp eax, ebx */ 1441 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1443 _flag_k = FK_CMP; 1444 ebx = POP32_VAL(esp); /* 0x2B065D40: pop ebx */ 1445 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065D4A; /* 0x2B065D41: je 0x2b065d4a */ 1446 L_2B065D43: 1447 PUSH32(esp, eax); /* 0x2B065D43: push eax */ 1448 RECOMP_ICALL(MEM32(0x2B0B500C)); /* 0x2B065D44: call dword ptr [0x2b0b500c] */ 1449 RECOMP_FLAGS_IN(); 1450 L_2B065D4A: 1451 esp = ebp; /* 0x2B065D4A: mov esp, ebp */ 1452 ebp = POP32_VAL(esp); /* 0x2B065D4C: pop ebp */ 1453 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B065D4D: ret */ 1454 RECOMP_REGS_OUT(); 1455 } 1456 1457 void sub_2B065D50(void) { 1458 int _fpu_cmp = 0; 1459 uint32_t _cf = 0; 1460 int _df = 1; 1461 uint32_t _flag_k = FK_NONE; 1462 uint32_t _flag_a = 0, _flag_b = 0; 1463 uint32_t _itail_tgt = 0; 1464 RECOMP_REGS_LOCALS 1465 RECOMP_ENTER(0x2B065D50u); 1466 1467 L_2B065D50: 1468 PUSH32(esp, ebp); /* 0x2B065D50: push ebp */ 1469 ebp = esp; /* 0x2B065D51: mov ebp, esp */ 1470 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 1471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1472 esp = esp - 0x28u; /* 0x2B065D53: sub esp, 0x28 */ 1473 _flag_k = FK_CMP; 1474 PUSH32(esp, ebx); /* 0x2B065D56: push ebx */ 1475 ebx = ecx; /* 0x2B065D57: mov ebx, ecx */ 1476 /* cmp MEM32(ebx), 0 */ /* 0x2B065D59: cmp dword ptr [ebx], 0 */ 1477 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0); 1478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1479 _flag_k = FK_CMP; 1480 PUSH32(esp, esi); /* 0x2B065D5C: push esi */ 1481 PUSH32(esp, edi); /* 0x2B065D5D: push edi */ 1482 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065D6F; /* 0x2B065D5E: jne 0x2b065d6f */ 1483 L_2B065D60: 1484 PUSH32(esp, 0); /* 0x2B065D60: push 0 */ 1485 PUSH32(esp, 0x2B066090u); /* 0x2B065D62: push 0x2b066090 */ 1486 PUSH32(esp, 0); /* 0x2B065D67: push 0 */ 1487 RECOMP_ICALL(MEM32(0x2B0B52C8)); /* 0x2B065D69: call dword ptr [0x2b0b52c8] */ 1488 RECOMP_FLAGS_IN(); 1489 L_2B065D6F: 1490 eax = MEM32(ebx + 0x18); /* 0x2B065D6F: mov eax, dword ptr [ebx + 0x18] */ 1491 /* cmp eax, 0x4E20u */ /* 0x2B065D72: cmp eax, 0x4e20 */ 1492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4E20u); 1493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1494 _flag_k = FK_CMP; 1495 if (CMP_BE(_flag_a, _flag_b)) goto L_2B065DDE; /* 0x2B065D77: jbe 0x2b065dde */ 1496 L_2B065D79: 1497 esi = MEM32(ebx + 0x14); /* 0x2B065D79: mov esi, dword ptr [ebx + 0x14] */ 1498 ecx = esi + 0x4; /* 0x2B065D7C: lea ecx, [esi + 4] */ 1499 edx = ecx; /* 0x2B065D7F: mov edx, ecx */ 1500 ecx = MEM32(edx); /* 0x2B065D81: mov ecx, dword ptr [edx] */ 1501 MEM32(ebp + (-0x18)) = ecx; /* 0x2B065D83: mov dword ptr [ebp - 0x18], ecx */ 1502 ecx = MEM32(edx + 0x4); /* 0x2B065D86: mov ecx, dword ptr [edx + 4] */ 1503 MEM32(ebp + (-0x14)) = ecx; /* 0x2B065D89: mov dword ptr [ebp - 0x14], ecx */ 1504 ecx = MEM32(edx + 0x8); /* 0x2B065D8C: mov ecx, dword ptr [edx + 8] */ 1505 edx = MEM32(edx + 0xC); /* 0x2B065D8F: mov edx, dword ptr [edx + 0xc] */ 1506 MEM32(ebp + (-0xC)) = edx; /* 0x2B065D92: mov dword ptr [ebp - 0xc], edx */ 1507 edx = esi + 0x14; /* 0x2B065D95: lea edx, [esi + 0x14] */ 1508 edi = edx; /* 0x2B065D98: mov edi, edx */ 1509 edx = MEM32(edi); /* 0x2B065D9A: mov edx, dword ptr [edi] */ 1510 MEM32(ebp + (-0x18)) = edx; /* 0x2B065D9C: mov dword ptr [ebp - 0x18], edx */ 1511 edx = MEM32(edi + 0x4); /* 0x2B065D9F: mov edx, dword ptr [edi + 4] */ 1512 MEM32(ebp + (-0x14)) = edx; /* 0x2B065DA2: mov dword ptr [ebp - 0x14], edx */ 1513 edx = MEM32(edi + 0x8); /* 0x2B065DA5: mov edx, dword ptr [edi + 8] */ 1514 /* cmp ecx, edx */ /* 0x2B065DA8: cmp ecx, edx */ 1515 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1517 _flag_k = FK_CMP; 1518 edi = MEM32(edi + 0xC); /* 0x2B065DAA: mov edi, dword ptr [edi + 0xc] */ 1519 MEM32(ebp + (-0xC)) = edi; /* 0x2B065DAD: mov dword ptr [ebp - 0xc], edi */ 1520 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065DDE; /* 0x2B065DB0: je 0x2b065dde */ 1521 L_2B065DB2: 1522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1524 eax = eax - MEM32(ecx + 0x8); /* 0x2B065DB2: sub eax, dword ptr [ecx + 8] */ 1525 _flag_k = FK_CMP; 1526 MEM32(ebx + 0x18) = eax; /* 0x2B065DB5: mov dword ptr [ebx + 0x18], eax */ 1527 eax = MEM32(esi + 0x2C); /* 0x2B065DB8: mov eax, dword ptr [esi + 0x2c] */ 1528 /* test eax, eax */ /* 0x2B065DBB: test eax, eax */ 1529 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1530 _cf = 0; 1531 _flag_k = FK_TEST; 1532 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065DD0; /* 0x2B065DBD: je 0x2b065dd0 */ 1533 L_2B065DBF: 1534 ecx = MEM32(esi + 0xC); /* 0x2B065DBF: mov ecx, dword ptr [esi + 0xc] */ 1535 PUSH32(esp, 0); /* 0x2B065DC2: push 0 */ 1536 RECOMP_ICALL(0x2B003E70u); /* 0x2B065DC4: call 0x2b003e70 */ /* not lifted */ 1537 RECOMP_FLAGS_IN(); 1538 ecx = esi; /* 0x2B065DC9: mov ecx, esi */ 1539 RECOMP_ICALL(0x2B066310u); /* 0x2B065DCB: call 0x2b066310 */ /* not lifted */ 1540 RECOMP_FLAGS_IN(); 1541 L_2B065DD0: 1542 eax = MEM32(ebx + 0x18); /* 0x2B065DD0: mov eax, dword ptr [ebx + 0x18] */ 1543 /* cmp eax, 0x4E20u */ /* 0x2B065DD3: cmp eax, 0x4e20 */ 1544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4E20u); 1545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1546 _flag_k = FK_CMP; 1547 MEM8(ebx + 0x10) = (uint8_t)(1); /* 0x2B065DD8: mov byte ptr [ebx + 0x10], 1 */ 1548 RECOMP_BACKEDGE(); 1549 if (CMP_A(_flag_a, _flag_b)) goto L_2B065D79; /* 0x2B065DDC: ja 0x2b065d79 */ 1550 L_2B065DDE: 1551 SET_LO8(eax, MEM8(ebx + 0x10)); /* 0x2B065DDE: mov al, byte ptr [ebx + 0x10] */ 1552 /* test LO8(eax), LO8(eax) */ /* 0x2B065DE1: test al, al */ 1553 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1554 _cf = 0; 1555 _flag_k = FK_NARROW(FK_TEST, 24); 1556 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065EE8; /* 0x2B065DE3: je 0x2b065ee8 */ 1557 L_2B065DE9: 1558 /* cmp MEM32(ebx), 0 */ /* 0x2B065DE9: cmp dword ptr [ebx], 0 */ 1559 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0); 1560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1561 _flag_k = FK_CMP; 1562 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065EE8; /* 0x2B065DEC: je 0x2b065ee8 */ 1563 L_2B065DF2: 1564 eax = MEM32(ebx + 0xC); /* 0x2B065DF2: mov eax, dword ptr [ebx + 0xc] */ 1565 /* test eax, eax */ /* 0x2B065DF5: test eax, eax */ 1566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1567 _cf = 0; 1568 _flag_k = FK_TEST; 1569 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065EE8; /* 0x2B065DF7: je 0x2b065ee8 */ 1570 L_2B065DFD: 1571 eax = MEM32(ebx + 0x8); /* 0x2B065DFD: mov eax, dword ptr [ebx + 8] */ 1572 /* test eax, eax */ /* 0x2B065E00: test eax, eax */ 1573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1574 _cf = 0; 1575 _flag_k = FK_TEST; 1576 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065EE8; /* 0x2B065E02: je 0x2b065ee8 */ 1577 L_2B065E08: 1578 MEM8(eax) = (uint8_t)(0); /* 0x2B065E08: mov byte ptr [eax], 0 */ 1579 eax = MEM32(ebx + 0x14); /* 0x2B065E0B: mov eax, dword ptr [ebx + 0x14] */ 1580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1582 eax = eax + 4; /* 0x2B065E0E: add eax, 4 */ 1583 _flag_k = FK_ADD; 1584 ecx = MEM32(eax); /* 0x2B065E11: mov ecx, dword ptr [eax] */ 1585 edx = MEM32(eax + 0x4); /* 0x2B065E13: mov edx, dword ptr [eax + 4] */ 1586 MEM32(ebp + (-0x14)) = edx; /* 0x2B065E16: mov dword ptr [ebp - 0x14], edx */ 1587 edx = MEM32(eax + 0x8); /* 0x2B065E19: mov edx, dword ptr [eax + 8] */ 1588 eax = MEM32(eax + 0xC); /* 0x2B065E1C: mov eax, dword ptr [eax + 0xc] */ 1589 MEM32(ebp + (-0x18)) = ecx; /* 0x2B065E1F: mov dword ptr [ebp - 0x18], ecx */ 1590 MEM32(ebp + (-0xC)) = eax; /* 0x2B065E22: mov dword ptr [ebp - 0xc], eax */ 1591 MEM32(ebp + (-0x4)) = 0; /* 0x2B065E25: mov dword ptr [ebp - 4], 0 */ 1592 L_2B065E2C: 1593 ecx = MEM32(ebx + 0x14); /* 0x2B065E2C: mov ecx, dword ptr [ebx + 0x14] */ 1594 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 1595 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1596 ecx = ecx + 0x14u; /* 0x2B065E2F: add ecx, 0x14 */ 1597 _flag_k = FK_ADD; 1598 eax = MEM32(ecx); /* 0x2B065E32: mov eax, dword ptr [ecx] */ 1599 MEM32(ebp + (-0x28)) = eax; /* 0x2B065E34: mov dword ptr [ebp - 0x28], eax */ 1600 eax = MEM32(ecx + 0x4); /* 0x2B065E37: mov eax, dword ptr [ecx + 4] */ 1601 MEM32(ebp + (-0x24)) = eax; /* 0x2B065E3A: mov dword ptr [ebp - 0x24], eax */ 1602 eax = MEM32(ecx + 0x8); /* 0x2B065E3D: mov eax, dword ptr [ecx + 8] */ 1603 /* cmp edx, eax */ /* 0x2B065E40: cmp edx, eax */ 1604 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1606 _flag_k = FK_CMP; 1607 ecx = MEM32(ecx + 0xC); /* 0x2B065E42: mov ecx, dword ptr [ecx + 0xc] */ 1608 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B065E45: mov dword ptr [ebp - 0x1c], ecx */ 1609 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065EBA; /* 0x2B065E48: je 0x2b065eba */ 1610 L_2B065E4A: 1611 edi = MEM32(edx + 0x4); /* 0x2B065E4A: mov edi, dword ptr [edx + 4] */ 1612 /* test edi, edi */ /* 0x2B065E4D: test edi, edi */ 1613 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1614 _cf = 0; 1615 _flag_k = FK_TEST; 1616 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B065E57; /* 0x2B065E4F: jne 0x2b065e57 */ 1617 L_2B065E51: 1618 edi = MEM32(0x2B0B513C); /* 0x2B065E51: mov edi, dword ptr [0x2b0b513c] */ 1619 L_2B065E57: 1620 esi = MEM32(ebx + 0x8); /* 0x2B065E57: mov esi, dword ptr [ebx + 8] */ 1621 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 1622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1623 esi = esi + MEM32(ebp + (-0x4)); /* 0x2B065E5A: add esi, dword ptr [ebp - 4] */ 1624 _flag_k = FK_ADD; 1625 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1626 ecx = ecx | 0xFFFFFFFFu; /* 0x2B065E5D: or ecx, 0xffffffff */ 1627 _cf = 0; 1628 _flag_k = FK_TEST; 1629 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1630 eax = 0; /* 0x2B065E60: xor eax, eax */ 1631 _cf = 0; 1632 _flag_k = FK_TEST; 1633 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B065E62: repne scasb al, byte ptr es:[edi] */ 1634 ecx = ~ecx; /* 0x2B065E64: not ecx */ 1635 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1637 edi = edi - ecx; /* 0x2B065E66: sub edi, ecx */ 1638 _flag_k = FK_CMP; 1639 eax = ecx; /* 0x2B065E68: mov eax, ecx */ 1640 MEM32(ebp + (-0x8)) = esi; /* 0x2B065E6A: mov dword ptr [ebp - 8], esi */ 1641 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B065E6D: shr ecx, 2 */ 1642 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1643 ecx = ecx >> 2u; /* 0x2B065E6D: shr ecx, 2 */ 1644 esi = edi; /* 0x2B065E70: mov esi, edi */ 1645 edi = MEM32(ebp + (-0x8)); /* 0x2B065E72: mov edi, dword ptr [ebp - 8] */ 1646 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B065E75: 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; } 1647 ecx = eax; /* 0x2B065E77: mov ecx, eax */ 1648 eax = MEM32(ebp + (-0x14)); /* 0x2B065E79: mov eax, dword ptr [ebp - 0x14] */ 1649 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1650 ecx = ecx & 3; /* 0x2B065E7C: and ecx, 3 */ 1651 _cf = 0; 1652 _flag_k = FK_TEST; 1653 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B065E7F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1654 esi = MEM32(ebp + (-0x4)); /* 0x2B065E81: mov esi, dword ptr [ebp - 4] */ 1655 ecx = MEM32(edx + 0x8); /* 0x2B065E84: mov ecx, dword ptr [edx + 8] */ 1656 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1658 esi = esi + ecx; /* 0x2B065E87: add esi, ecx */ 1659 _flag_k = FK_ADD; 1660 /* cmp edx, eax */ /* 0x2B065E89: cmp edx, eax */ 1661 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1663 _flag_k = FK_CMP; 1664 MEM32(ebp + (-0x4)) = esi; /* 0x2B065E8B: mov dword ptr [ebp - 4], esi */ 1665 RECOMP_BACKEDGE(); 1666 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065E2C; /* 0x2B065E8E: je 0x2b065e2c */ 1667 L_2B065E90: 1668 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 1669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1670 edx = edx + 0x10u; /* 0x2B065E90: add edx, 0x10 */ 1671 _flag_k = FK_ADD; 1672 /* cmp edx, eax */ /* 0x2B065E93: cmp edx, eax */ 1673 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1675 _flag_k = FK_CMP; 1676 RECOMP_BACKEDGE(); 1677 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065E2C; /* 0x2B065E95: jne 0x2b065e2c */ 1678 L_2B065E97: 1679 eax = MEM32(ebp + (-0xC)); /* 0x2B065E97: mov eax, dword ptr [ebp - 0xc] */ 1680 ecx = MEM32(eax + 0x4); /* 0x2B065E9A: mov ecx, dword ptr [eax + 4] */ 1681 /* test ecx, ecx */ /* 0x2B065E9D: test ecx, ecx */ 1682 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1683 _cf = 0; 1684 _flag_k = FK_TEST; 1685 RECOMP_BACKEDGE(); 1686 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065E2C; /* 0x2B065E9F: je 0x2b065e2c */ 1687 L_2B065EA1: 1688 ecx = eax; /* 0x2B065EA1: mov ecx, eax */ 1689 edx = MEM32(ecx + 0x4); /* 0x2B065EA3: mov edx, dword ptr [ecx + 4] */ 1690 eax = ecx + 0x4; /* 0x2B065EA6: lea eax, [ecx + 4] */ 1691 MEM32(ebp + (-0xC)) = eax; /* 0x2B065EA9: mov dword ptr [ebp - 0xc], eax */ 1692 eax = edx + 0x1000; /* 0x2B065EAC: lea eax, [edx + 0x1000] */ 1693 MEM32(ebp + (-0x14)) = eax; /* 0x2B065EB2: mov dword ptr [ebp - 0x14], eax */ 1694 RECOMP_BACKEDGE(); 1695 goto L_2B065E2C; /* 0x2B065EB5: jmp 0x2b065e2c */ 1696 L_2B065EBA: 1697 ecx = MEM32(ebx + 0x1C); /* 0x2B065EBA: mov ecx, dword ptr [ebx + 0x1c] */ 1698 edx = MEM32(ebx + 0x8); /* 0x2B065EBD: mov edx, dword ptr [ebx + 8] */ 1699 PUSH32(esp, ecx); /* 0x2B065EC0: push ecx */ 1700 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 1701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1702 edx = edx + MEM32(ebp + (-0x4)); /* 0x2B065EC1: add edx, dword ptr [ebp - 4] */ 1703 _flag_k = FK_ADD; 1704 PUSH32(esp, 0x2B0EB03Cu); /* 0x2B065EC4: push 0x2b0eb03c */ 1705 PUSH32(esp, edx); /* 0x2B065EC9: push edx */ 1706 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B065ECA: call dword ptr [0x2b0b51f0] */ 1707 RECOMP_FLAGS_IN(); 1708 eax = MEM32(ebx + 0xC); /* 0x2B065ED0: mov eax, dword ptr [ebx + 0xc] */ 1709 ecx = MEM32(ebx); /* 0x2B065ED3: mov ecx, dword ptr [ebx] */ 1710 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1712 esp = esp + 0xCu; /* 0x2B065ED5: add esp, 0xc */ 1713 _flag_k = FK_ADD; 1714 PUSH32(esp, 0); /* 0x2B065ED8: push 0 */ 1715 PUSH32(esp, 0); /* 0x2B065EDA: push 0 */ 1716 PUSH32(esp, eax); /* 0x2B065EDC: push eax */ 1717 PUSH32(esp, ecx); /* 0x2B065EDD: push ecx */ 1718 RECOMP_ICALL(MEM32(0x2B0B52C4)); /* 0x2B065EDE: call dword ptr [0x2b0b52c4] */ 1719 RECOMP_FLAGS_IN(); 1720 MEM8(ebx + 0x10) = (uint8_t)(0); /* 0x2B065EE4: mov byte ptr [ebx + 0x10], 0 */ 1721 L_2B065EE8: 1722 edi = POP32_VAL(esp); /* 0x2B065EE8: pop edi */ 1723 esi = POP32_VAL(esp); /* 0x2B065EE9: pop esi */ 1724 ebx = POP32_VAL(esp); /* 0x2B065EEA: pop ebx */ 1725 esp = ebp; /* 0x2B065EEB: mov esp, ebp */ 1726 ebp = POP32_VAL(esp); /* 0x2B065EED: pop ebp */ 1727 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B065EEE: ret */ 1728 RECOMP_REGS_OUT(); 1729 } 1730 1731 void sub_2B065E2C(void) { 1732 int _fpu_cmp = 0; 1733 uint32_t _cf = 0; 1734 int _df = 1; 1735 uint32_t _flag_k = FK_NONE; 1736 uint32_t _flag_a = 0, _flag_b = 0; 1737 uint32_t _itail_tgt = 0; 1738 RECOMP_REGS_LOCALS 1739 RECOMP_ENTER(0x2B065E2Cu); 1740 1741 L_2B065E2C: 1742 ecx = MEM32(ebx + 0x14); /* 0x2B065E2C: mov ecx, dword ptr [ebx + 0x14] */ 1743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 1744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1745 ecx = ecx + 0x14u; /* 0x2B065E2F: add ecx, 0x14 */ 1746 _flag_k = FK_ADD; 1747 eax = MEM32(ecx); /* 0x2B065E32: mov eax, dword ptr [ecx] */ 1748 MEM32(ebp + (-0x28)) = eax; /* 0x2B065E34: mov dword ptr [ebp - 0x28], eax */ 1749 eax = MEM32(ecx + 0x4); /* 0x2B065E37: mov eax, dword ptr [ecx + 4] */ 1750 MEM32(ebp + (-0x24)) = eax; /* 0x2B065E3A: mov dword ptr [ebp - 0x24], eax */ 1751 eax = MEM32(ecx + 0x8); /* 0x2B065E3D: mov eax, dword ptr [ecx + 8] */ 1752 /* cmp edx, eax */ /* 0x2B065E40: cmp edx, eax */ 1753 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1755 _flag_k = FK_CMP; 1756 ecx = MEM32(ecx + 0xC); /* 0x2B065E42: mov ecx, dword ptr [ecx + 0xc] */ 1757 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B065E45: mov dword ptr [ebp - 0x1c], ecx */ 1758 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065EBA; /* 0x2B065E48: je 0x2b065eba */ 1759 L_2B065E4A: 1760 edi = MEM32(edx + 0x4); /* 0x2B065E4A: mov edi, dword ptr [edx + 4] */ 1761 /* test edi, edi */ /* 0x2B065E4D: test edi, edi */ 1762 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1763 _cf = 0; 1764 _flag_k = FK_TEST; 1765 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B065E57; /* 0x2B065E4F: jne 0x2b065e57 */ 1766 L_2B065E51: 1767 edi = MEM32(0x2B0B513C); /* 0x2B065E51: mov edi, dword ptr [0x2b0b513c] */ 1768 L_2B065E57: 1769 esi = MEM32(ebx + 0x8); /* 0x2B065E57: mov esi, dword ptr [ebx + 8] */ 1770 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 1771 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1772 esi = esi + MEM32(ebp + (-0x4)); /* 0x2B065E5A: add esi, dword ptr [ebp - 4] */ 1773 _flag_k = FK_ADD; 1774 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1775 ecx = ecx | 0xFFFFFFFFu; /* 0x2B065E5D: or ecx, 0xffffffff */ 1776 _cf = 0; 1777 _flag_k = FK_TEST; 1778 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1779 eax = 0; /* 0x2B065E60: xor eax, eax */ 1780 _cf = 0; 1781 _flag_k = FK_TEST; 1782 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B065E62: repne scasb al, byte ptr es:[edi] */ 1783 ecx = ~ecx; /* 0x2B065E64: not ecx */ 1784 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1786 edi = edi - ecx; /* 0x2B065E66: sub edi, ecx */ 1787 _flag_k = FK_CMP; 1788 eax = ecx; /* 0x2B065E68: mov eax, ecx */ 1789 MEM32(ebp + (-0x8)) = esi; /* 0x2B065E6A: mov dword ptr [ebp - 8], esi */ 1790 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B065E6D: shr ecx, 2 */ 1791 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1792 ecx = ecx >> 2u; /* 0x2B065E6D: shr ecx, 2 */ 1793 esi = edi; /* 0x2B065E70: mov esi, edi */ 1794 edi = MEM32(ebp + (-0x8)); /* 0x2B065E72: mov edi, dword ptr [ebp - 8] */ 1795 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B065E75: 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; } 1796 ecx = eax; /* 0x2B065E77: mov ecx, eax */ 1797 eax = MEM32(ebp + (-0x14)); /* 0x2B065E79: mov eax, dword ptr [ebp - 0x14] */ 1798 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1799 ecx = ecx & 3; /* 0x2B065E7C: and ecx, 3 */ 1800 _cf = 0; 1801 _flag_k = FK_TEST; 1802 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B065E7F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1803 esi = MEM32(ebp + (-0x4)); /* 0x2B065E81: mov esi, dword ptr [ebp - 4] */ 1804 ecx = MEM32(edx + 0x8); /* 0x2B065E84: mov ecx, dword ptr [edx + 8] */ 1805 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1806 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1807 esi = esi + ecx; /* 0x2B065E87: add esi, ecx */ 1808 _flag_k = FK_ADD; 1809 /* cmp edx, eax */ /* 0x2B065E89: cmp edx, eax */ 1810 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1812 _flag_k = FK_CMP; 1813 MEM32(ebp + (-0x4)) = esi; /* 0x2B065E8B: mov dword ptr [ebp - 4], esi */ 1814 RECOMP_BACKEDGE(); 1815 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065E2C; /* 0x2B065E8E: je 0x2b065e2c */ 1816 L_2B065E90: 1817 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 1818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1819 edx = edx + 0x10u; /* 0x2B065E90: add edx, 0x10 */ 1820 _flag_k = FK_ADD; 1821 /* cmp edx, eax */ /* 0x2B065E93: cmp edx, eax */ 1822 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1824 _flag_k = FK_CMP; 1825 RECOMP_BACKEDGE(); 1826 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065E2C; /* 0x2B065E95: jne 0x2b065e2c */ 1827 L_2B065E97: 1828 eax = MEM32(ebp + (-0xC)); /* 0x2B065E97: mov eax, dword ptr [ebp - 0xc] */ 1829 ecx = MEM32(eax + 0x4); /* 0x2B065E9A: mov ecx, dword ptr [eax + 4] */ 1830 /* test ecx, ecx */ /* 0x2B065E9D: test ecx, ecx */ 1831 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1832 _cf = 0; 1833 _flag_k = FK_TEST; 1834 RECOMP_BACKEDGE(); 1835 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065E2C; /* 0x2B065E9F: je 0x2b065e2c */ 1836 L_2B065EA1: 1837 ecx = eax; /* 0x2B065EA1: mov ecx, eax */ 1838 edx = MEM32(ecx + 0x4); /* 0x2B065EA3: mov edx, dword ptr [ecx + 4] */ 1839 eax = ecx + 0x4; /* 0x2B065EA6: lea eax, [ecx + 4] */ 1840 MEM32(ebp + (-0xC)) = eax; /* 0x2B065EA9: mov dword ptr [ebp - 0xc], eax */ 1841 eax = edx + 0x1000; /* 0x2B065EAC: lea eax, [edx + 0x1000] */ 1842 MEM32(ebp + (-0x14)) = eax; /* 0x2B065EB2: mov dword ptr [ebp - 0x14], eax */ 1843 RECOMP_BACKEDGE(); 1844 goto L_2B065E2C; /* 0x2B065EB5: jmp 0x2b065e2c */ 1845 L_2B065EBA: 1846 ecx = MEM32(ebx + 0x1C); /* 0x2B065EBA: mov ecx, dword ptr [ebx + 0x1c] */ 1847 edx = MEM32(ebx + 0x8); /* 0x2B065EBD: mov edx, dword ptr [ebx + 8] */ 1848 PUSH32(esp, ecx); /* 0x2B065EC0: push ecx */ 1849 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 1850 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1851 edx = edx + MEM32(ebp + (-0x4)); /* 0x2B065EC1: add edx, dword ptr [ebp - 4] */ 1852 _flag_k = FK_ADD; 1853 PUSH32(esp, 0x2B0EB03Cu); /* 0x2B065EC4: push 0x2b0eb03c */ 1854 PUSH32(esp, edx); /* 0x2B065EC9: push edx */ 1855 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B065ECA: call dword ptr [0x2b0b51f0] */ 1856 RECOMP_FLAGS_IN(); 1857 eax = MEM32(ebx + 0xC); /* 0x2B065ED0: mov eax, dword ptr [ebx + 0xc] */ 1858 ecx = MEM32(ebx); /* 0x2B065ED3: mov ecx, dword ptr [ebx] */ 1859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1861 esp = esp + 0xCu; /* 0x2B065ED5: add esp, 0xc */ 1862 _flag_k = FK_ADD; 1863 PUSH32(esp, 0); /* 0x2B065ED8: push 0 */ 1864 PUSH32(esp, 0); /* 0x2B065EDA: push 0 */ 1865 PUSH32(esp, eax); /* 0x2B065EDC: push eax */ 1866 PUSH32(esp, ecx); /* 0x2B065EDD: push ecx */ 1867 RECOMP_ICALL(MEM32(0x2B0B52C4)); /* 0x2B065EDE: call dword ptr [0x2b0b52c4] */ 1868 RECOMP_FLAGS_IN(); 1869 MEM8(ebx + 0x10) = (uint8_t)(0); /* 0x2B065EE4: mov byte ptr [ebx + 0x10], 0 */ 1870 edi = POP32_VAL(esp); /* 0x2B065EE8: pop edi */ 1871 esi = POP32_VAL(esp); /* 0x2B065EE9: pop esi */ 1872 ebx = POP32_VAL(esp); /* 0x2B065EEA: pop ebx */ 1873 esp = ebp; /* 0x2B065EEB: mov esp, ebp */ 1874 ebp = POP32_VAL(esp); /* 0x2B065EED: pop ebp */ 1875 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B065EEE: ret */ 1876 RECOMP_REGS_OUT(); 1877 } 1878 1879 void sub_2B065EF0(void) { 1880 int _fpu_cmp = 0; 1881 uint32_t _cf = 0; 1882 int _df = 1; 1883 uint32_t _flag_k = FK_NONE; 1884 uint32_t _flag_a = 0, _flag_b = 0; 1885 uint32_t _itail_tgt = 0; 1886 RECOMP_REGS_LOCALS 1887 RECOMP_ENTER(0x2B065EF0u); 1888 1889 L_2B065EF0: 1890 PUSH32(esp, ebp); /* 0x2B065EF0: push ebp */ 1891 ebp = esp; /* 0x2B065EF1: mov ebp, esp */ 1892 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B065EF3: push -1 */ 1893 PUSH32(esp, 0x2B0B0B0Au); /* 0x2B065EF5: push 0x2b0b0b0a */ 1894 eax = MEM32(FS_BASE + (0)); /* 0x2B065EFA: mov eax, dword ptr fs:[0] */ 1895 PUSH32(esp, eax); /* 0x2B065F00: push eax */ 1896 MEM32(FS_BASE + (0)) = esp; /* 0x2B065F01: mov dword ptr fs:[0], esp */ 1897 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 1898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1899 esp = esp - 0x34u; /* 0x2B065F08: sub esp, 0x34 */ 1900 _flag_k = FK_CMP; 1901 PUSH32(esp, ebx); /* 0x2B065F0B: push ebx */ 1902 PUSH32(esp, esi); /* 0x2B065F0C: push esi */ 1903 esi = MEM32(ebp + 0x8); /* 0x2B065F0D: mov esi, dword ptr [ebp + 8] */ 1904 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1905 ebx = 0; /* 0x2B065F10: xor ebx, ebx */ 1906 _cf = 0; 1907 _flag_k = FK_TEST; 1908 /* cmp esi, ebx */ /* 0x2B065F12: cmp esi, ebx */ 1909 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1911 _flag_k = FK_CMP; 1912 edx = ecx; /* 0x2B065F14: mov edx, ecx */ 1913 MEM32(ebp + (-0x10)) = edx; /* 0x2B065F16: mov dword ptr [ebp - 0x10], edx */ 1914 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066072; /* 0x2B065F19: je 0x2b066072 */ 1915 L_2B065F1F: 1916 PUSH32(esp, edi); /* 0x2B065F1F: push edi */ 1917 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1918 ecx = ecx | 0xFFFFFFFFu; /* 0x2B065F20: or ecx, 0xffffffff */ 1919 _cf = 0; 1920 _flag_k = FK_TEST; 1921 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1922 eax = 0; /* 0x2B065F23: xor eax, eax */ 1923 _cf = 0; 1924 _flag_k = FK_TEST; 1925 edi = esi; /* 0x2B065F25: mov edi, esi */ 1926 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B065F27: repne scasb al, byte ptr es:[edi] */ 1927 edi = MEM32(edx + 0x18); /* 0x2B065F29: mov edi, dword ptr [edx + 0x18] */ 1928 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B065F2C: mov al, byte ptr [ebp + 0xb] */ 1929 ecx = ~ecx; /* 0x2B065F2F: not ecx */ 1930 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1931 ecx = ecx - 1; /* 0x2B065F31: dec ecx */ 1932 _flag_k = FK_DEC; 1933 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1935 edi = edi + ecx; /* 0x2B065F32: add edi, ecx */ 1936 _flag_k = FK_ADD; 1937 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1938 ecx = ecx | 0xFFFFFFFFu; /* 0x2B065F34: or ecx, 0xffffffff */ 1939 _cf = 0; 1940 _flag_k = FK_TEST; 1941 MEM32(edx + 0x18) = edi; /* 0x2B065F37: mov dword ptr [edx + 0x18], edi */ 1942 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x2B065F3A: mov byte ptr [ebp - 0x20], al */ 1943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1944 eax = 0; /* 0x2B065F3D: xor eax, eax */ 1945 _cf = 0; 1946 _flag_k = FK_TEST; 1947 edi = esi; /* 0x2B065F3F: mov edi, esi */ 1948 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B065F41: repne scasb al, byte ptr es:[edi] */ 1949 ecx = ~ecx; /* 0x2B065F43: not ecx */ 1950 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1951 ecx = ecx - 1; /* 0x2B065F45: dec ecx */ 1952 _flag_k = FK_DEC; 1953 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B065F46: mov dword ptr [ebp - 0x1c], ebx */ 1954 MEM32(ebp + (-0x18)) = ebx; /* 0x2B065F49: mov dword ptr [ebp - 0x18], ebx */ 1955 MEM32(ebp + (-0x14)) = ebx; /* 0x2B065F4C: mov dword ptr [ebp - 0x14], ebx */ 1956 ebx = ecx; /* 0x2B065F4F: mov ebx, ecx */ 1957 PUSH32(esp, 1); /* 0x2B065F51: push 1 */ 1958 PUSH32(esp, ebx); /* 0x2B065F53: push ebx */ 1959 ecx = ebp + (-0x20); /* 0x2B065F54: lea ecx, [ebp - 0x20] */ 1960 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B065F57: call dword ptr [0x2b0b5154] */ 1961 RECOMP_FLAGS_IN(); 1962 /* test LO8(eax), LO8(eax) */ /* 0x2B065F5D: test al, al */ 1963 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1964 _cf = 0; 1965 _flag_k = FK_NARROW(FK_TEST, 24); 1966 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065F7E; /* 0x2B065F5F: je 0x2b065f7e */ 1967 L_2B065F61: 1968 edi = MEM32(ebp + (-0x1C)); /* 0x2B065F61: mov edi, dword ptr [ebp - 0x1c] */ 1969 ecx = ebx; /* 0x2B065F64: mov ecx, ebx */ 1970 edx = ecx; /* 0x2B065F66: mov edx, ecx */ 1971 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B065F68: shr ecx, 2 */ 1972 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1973 ecx = ecx >> 2u; /* 0x2B065F68: shr ecx, 2 */ 1974 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B065F6B: 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; } 1975 ecx = edx; /* 0x2B065F6D: mov ecx, edx */ 1976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1977 ecx = ecx & 3; /* 0x2B065F6F: and ecx, 3 */ 1978 _cf = 0; 1979 _flag_k = FK_TEST; 1980 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B065F72: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1981 eax = MEM32(ebp + (-0x1C)); /* 0x2B065F74: mov eax, dword ptr [ebp - 0x1c] */ 1982 MEM32(ebp + (-0x18)) = ebx; /* 0x2B065F77: mov dword ptr [ebp - 0x18], ebx */ 1983 MEM8(eax + ebx) = (uint8_t)(0); /* 0x2B065F7A: mov byte ptr [eax + ebx], 0 */ 1984 L_2B065F7E: 1985 ebx = MEM32(ebp + (-0x10)); /* 0x2B065F7E: mov ebx, dword ptr [ebp - 0x10] */ 1986 edi = MEM32(ebx + 0x14); /* 0x2B065F81: mov edi, dword ptr [ebx + 0x14] */ 1987 eax = MEM32(edi + 0x2C); /* 0x2B065F84: mov eax, dword ptr [edi + 0x2c] */ 1988 /* test eax, eax */ /* 0x2B065F87: test eax, eax */ 1989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1990 _cf = 0; 1991 _flag_k = FK_TEST; 1992 MEM32(ebp + (-0x4)) = 0; /* 0x2B065F89: mov dword ptr [ebp - 4], 0 */ 1993 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065F9A; /* 0x2B065F90: je 0x2b065f9a */ 1994 L_2B065F92: 1995 ecx = MEM32(edi + 0x1C); /* 0x2B065F92: mov ecx, dword ptr [edi + 0x1c] */ 1996 /* cmp ecx, MEM32(edi + 0x18) */ /* 0x2B065F95: cmp ecx, dword ptr [edi + 0x18] */ 1997 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x18)); 1998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1999 _flag_k = FK_CMP; 2000 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065FA1; /* 0x2B065F98: jne 0x2b065fa1 */ 2001 L_2B065F9A: 2002 ecx = edi; /* 0x2B065F9A: mov ecx, edi */ 2003 RECOMP_ICALL(0x2B066110u); /* 0x2B065F9C: call 0x2b066110 */ /* not lifted */ 2004 RECOMP_FLAGS_IN(); 2005 L_2B065FA1: 2006 eax = MEM32(edi + 0x1C); /* 0x2B065FA1: mov eax, dword ptr [edi + 0x1c] */ 2007 ecx = MEM32(edi + 0x18); /* 0x2B065FA4: mov ecx, dword ptr [edi + 0x18] */ 2008 /* cmp eax, ecx */ /* 0x2B065FA7: cmp eax, ecx */ 2009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2011 _flag_k = FK_CMP; 2012 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065FD8; /* 0x2B065FA9: je 0x2b065fd8 */ 2013 L_2B065FAB: 2014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 2015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2016 eax = eax + 0x10u; /* 0x2B065FAB: add eax, 0x10 */ 2017 _flag_k = FK_ADD; 2018 /* cmp eax, ecx */ /* 0x2B065FAE: cmp eax, ecx */ 2019 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2021 _flag_k = FK_CMP; 2022 MEM32(edi + 0x1C) = eax; /* 0x2B065FB0: mov dword ptr [edi + 0x1c], eax */ 2023 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065FD8; /* 0x2B065FB3: jne 0x2b065fd8 */ 2024 L_2B065FB5: 2025 eax = MEM32(edi + 0x20); /* 0x2B065FB5: mov eax, dword ptr [edi + 0x20] */ 2026 ecx = MEM32(eax + 0x4); /* 0x2B065FB8: mov ecx, dword ptr [eax + 4] */ 2027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2028 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2029 eax = eax + 4; /* 0x2B065FBB: add eax, 4 */ 2030 _flag_k = FK_ADD; 2031 /* test ecx, ecx */ /* 0x2B065FBE: test ecx, ecx */ 2032 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2033 _cf = 0; 2034 _flag_k = FK_TEST; 2035 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065FD8; /* 0x2B065FC0: je 0x2b065fd8 */ 2036 L_2B065FC2: 2037 MEM32(edi + 0x20) = eax; /* 0x2B065FC2: mov dword ptr [edi + 0x20], eax */ 2038 eax = MEM32(eax); /* 0x2B065FC5: mov eax, dword ptr [eax] */ 2039 MEM32(edi + 0x14) = eax; /* 0x2B065FC7: mov dword ptr [edi + 0x14], eax */ 2040 edx = MEM32(edi + 0x14); /* 0x2B065FCA: mov edx, dword ptr [edi + 0x14] */ 2041 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 2042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2043 eax = eax + 0x1000u; /* 0x2B065FCD: add eax, 0x1000 */ 2044 _flag_k = FK_ADD; 2045 MEM32(edi + 0x18) = eax; /* 0x2B065FD2: mov dword ptr [edi + 0x18], eax */ 2046 MEM32(edi + 0x1C) = edx; /* 0x2B065FD5: mov dword ptr [edi + 0x1c], edx */ 2047 L_2B065FD8: 2048 eax = MEM32(edi + 0x14); /* 0x2B065FD8: mov eax, dword ptr [edi + 0x14] */ 2049 ecx = MEM32(edi + 0x18); /* 0x2B065FDB: mov ecx, dword ptr [edi + 0x18] */ 2050 edx = MEM32(edi + 0x1C); /* 0x2B065FDE: mov edx, dword ptr [edi + 0x1c] */ 2051 MEM32(ebp + (-0x30)) = eax; /* 0x2B065FE1: mov dword ptr [ebp - 0x30], eax */ 2052 eax = MEM32(edi + 0x20); /* 0x2B065FE4: mov eax, dword ptr [edi + 0x20] */ 2053 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B065FE7: mov dword ptr [ebp - 0x2c], ecx */ 2054 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B065FEA: push -1 */ 2055 ecx = ebp + (-0x30); /* 0x2B065FEC: lea ecx, [ebp - 0x30] */ 2056 MEM32(ebp + (-0x28)) = edx; /* 0x2B065FEF: mov dword ptr [ebp - 0x28], edx */ 2057 MEM32(ebp + (-0x24)) = eax; /* 0x2B065FF2: mov dword ptr [ebp - 0x24], eax */ 2058 RECOMP_ICALL(0x2B0663F0u); /* 0x2B065FF5: call 0x2b0663f0 */ /* not lifted */ 2059 RECOMP_FLAGS_IN(); 2060 ecx = MEM32(ebp + (-0x30)); /* 0x2B065FFA: mov ecx, dword ptr [ebp - 0x30] */ 2061 eax = MEM32(ebp + (-0x28)); /* 0x2B065FFD: mov eax, dword ptr [ebp - 0x28] */ 2062 edx = MEM32(ebp + (-0x2C)); /* 0x2B066000: mov edx, dword ptr [ebp - 0x2c] */ 2063 MEM32(ebp + (-0x40)) = ecx; /* 0x2B066003: mov dword ptr [ebp - 0x40], ecx */ 2064 ecx = MEM32(ebp + (-0x24)); /* 0x2B066006: mov ecx, dword ptr [ebp - 0x24] */ 2065 esi = eax; /* 0x2B066009: mov esi, eax */ 2066 MEM32(ebp + (-0x3C)) = edx; /* 0x2B06600B: mov dword ptr [ebp - 0x3c], edx */ 2067 MEM32(ebp + (-0x38)) = eax; /* 0x2B06600E: mov dword ptr [ebp - 0x38], eax */ 2068 MEM32(ebp + (-0x34)) = ecx; /* 0x2B066011: mov dword ptr [ebp - 0x34], ecx */ 2069 MEM32(ebp + 0x8) = esi; /* 0x2B066014: mov dword ptr [ebp + 8], esi */ 2070 /* test eax, eax */ /* 0x2B066017: test eax, eax */ 2071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2072 _cf = 0; 2073 _flag_k = FK_TEST; 2074 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B066019: mov byte ptr [ebp - 4], 1 */ 2075 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066044; /* 0x2B06601D: je 0x2b066044 */ 2076 L_2B06601F: 2077 SET_LO8(edx, MEM8(ebp + (-0x20))); /* 0x2B06601F: mov dl, byte ptr [ebp - 0x20] */ 2078 PUSH32(esp, 0); /* 0x2B066022: push 0 */ 2079 ecx = esi; /* 0x2B066024: mov ecx, esi */ 2080 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x2B066026: mov byte ptr [eax], dl */ 2081 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B066028: call dword ptr [0x2b0b514c] */ 2082 RECOMP_FLAGS_IN(); 2083 eax = MEM32(0x2B0B515C); /* 0x2B06602E: mov eax, dword ptr [0x2b0b515c] */ 2084 ecx = MEM32(eax); /* 0x2B066033: mov ecx, dword ptr [eax] */ 2085 PUSH32(esp, ecx); /* 0x2B066035: push ecx */ 2086 PUSH32(esp, 0); /* 0x2B066036: push 0 */ 2087 edx = ebp + (-0x20); /* 0x2B066038: lea edx, [ebp - 0x20] */ 2088 PUSH32(esp, edx); /* 0x2B06603B: push edx */ 2089 ecx = esi; /* 0x2B06603C: mov ecx, esi */ 2090 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B06603E: call dword ptr [0x2b0b5158] */ 2091 RECOMP_FLAGS_IN(); 2092 L_2B066044: 2093 _flag_a = (uint32_t)(MEM32(edi + 0x2C)); _flag_b = (uint32_t)(1); 2094 MEM32(edi + 0x2C) = MEM32(edi + 0x2C) + 1; /* 0x2B066044: inc dword ptr [edi + 0x2c] */ 2095 _flag_k = FK_INC; 2096 eax = MEM32(ebp + (-0x1C)); /* 0x2B066047: mov eax, dword ptr [ebp - 0x1c] */ 2097 /* test eax, eax */ /* 0x2B06604A: test eax, eax */ 2098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2099 _cf = 0; 2100 _flag_k = FK_TEST; 2101 edi = POP32_VAL(esp); /* 0x2B06604C: pop edi */ 2102 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06606B; /* 0x2B06604D: je 0x2b06606b */ 2103 L_2B06604F: 2104 ecx = eax + (-0x1); /* 0x2B06604F: lea ecx, [eax - 1] */ 2105 SET_LO8(eax, MEM8(ecx)); /* 0x2B066052: mov al, byte ptr [ecx] */ 2106 /* test LO8(eax), LO8(eax) */ /* 0x2B066054: test al, al */ 2107 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2108 _cf = 0; 2109 _flag_k = FK_NARROW(FK_TEST, 24); 2110 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066062; /* 0x2B066056: je 0x2b066062 */ 2111 L_2B066058: 2112 /* cmp LO8(eax), 0xFFu */ /* 0x2B066058: cmp al, 0xff */ 2113 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2115 _flag_k = FK_NARROW(FK_CMP, 24); 2116 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066062; /* 0x2B06605A: je 0x2b066062 */ 2117 L_2B06605C: 2118 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2119 SET_LO8(eax, LO8(eax) - 1); /* 0x2B06605C: dec al */ 2120 _flag_k = FK_NARROW(FK_DEC, 24); 2121 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B06605E: mov byte ptr [ecx], al */ 2122 goto L_2B06606B; /* 0x2B066060: jmp 0x2b06606b */ 2123 L_2B066062: 2124 PUSH32(esp, ecx); /* 0x2B066062: push ecx */ 2125 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066063: call 0x2b0ab1ba */ /* not lifted */ 2126 RECOMP_FLAGS_IN(); 2127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2129 esp = esp + 4; /* 0x2B066068: add esp, 4 */ 2130 _flag_k = FK_ADD; 2131 L_2B06606B: 2132 _flag_a = (uint32_t)(MEM32(ebx + 0x1C)); _flag_b = (uint32_t)(1); 2133 MEM32(ebx + 0x1C) = MEM32(ebx + 0x1C) + 1; /* 0x2B06606B: inc dword ptr [ebx + 0x1c] */ 2134 _flag_k = FK_INC; 2135 MEM8(ebx + 0x10) = (uint8_t)(1); /* 0x2B06606E: mov byte ptr [ebx + 0x10], 1 */ 2136 L_2B066072: 2137 ecx = MEM32(ebp + (-0xC)); /* 0x2B066072: mov ecx, dword ptr [ebp - 0xc] */ 2138 esi = POP32_VAL(esp); /* 0x2B066075: pop esi */ 2139 ebx = POP32_VAL(esp); /* 0x2B066076: pop ebx */ 2140 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066077: mov dword ptr fs:[0], ecx */ 2141 esp = ebp; /* 0x2B06607E: mov esp, ebp */ 2142 ebp = POP32_VAL(esp); /* 0x2B066080: pop ebp */ 2143 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B066081: ret 4 */ 2144 RECOMP_REGS_OUT(); 2145 } 2146 2147 void sub_2B066090(void) { 2148 int _fpu_cmp = 0; 2149 uint32_t _cf = 0; 2150 int _df = 1; 2151 uint32_t _flag_k = FK_NONE; 2152 uint32_t _flag_a = 0, _flag_b = 0; 2153 uint32_t _itail_tgt = 0; 2154 RECOMP_REGS_LOCALS 2155 RECOMP_ENTER(0x2B066090u); 2156 2157 L_2B066090: 2158 PUSH32(esp, ebp); /* 0x2B066090: push ebp */ 2159 ebp = esp; /* 0x2B066091: mov ebp, esp */ 2160 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 2161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2162 esp = esp - 0x34u; /* 0x2B066093: sub esp, 0x34 */ 2163 _flag_k = FK_CMP; 2164 PUSH32(esp, ebx); /* 0x2B066096: push ebx */ 2165 PUSH32(esp, esi); /* 0x2B066097: push esi */ 2166 PUSH32(esp, edi); /* 0x2B066098: push edi */ 2167 edi = MEM32(ebp + 0x8); /* 0x2B066099: mov edi, dword ptr [ebp + 8] */ 2168 PUSH32(esp, 0x32u); /* 0x2B06609C: push 0x32 */ 2169 eax = ebp + (-0x34); /* 0x2B06609E: lea eax, [ebp - 0x34] */ 2170 PUSH32(esp, eax); /* 0x2B0660A1: push eax */ 2171 PUSH32(esp, edi); /* 0x2B0660A2: push edi */ 2172 RECOMP_ICALL(MEM32(0x2B0B52C0)); /* 0x2B0660A3: call dword ptr [0x2b0b52c0] */ 2173 RECOMP_FLAGS_IN(); 2174 esi = ebp + (-0x34); /* 0x2B0660A9: lea esi, [ebp - 0x34] */ 2175 eax = 0x2B0EB060u; /* 0x2B0660AC: mov eax, 0x2b0eb060 */ 2176 L_2B0660B1: 2177 SET_LO8(edx, MEM8(eax)); /* 0x2B0660B1: mov dl, byte ptr [eax] */ 2178 SET_LO8(ebx, MEM8(esi)); /* 0x2B0660B3: mov bl, byte ptr [esi] */ 2179 SET_LO8(ecx, LO8(edx)); /* 0x2B0660B5: mov cl, dl */ 2180 /* cmp LO8(edx), LO8(ebx) */ /* 0x2B0660B7: cmp dl, bl */ 2181 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2183 _flag_k = FK_NARROW(FK_CMP, 24); 2184 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0660D9; /* 0x2B0660B9: jne 0x2b0660d9 */ 2185 L_2B0660BB: 2186 /* test LO8(ecx), LO8(ecx) */ /* 0x2B0660BB: test cl, cl */ 2187 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2188 _cf = 0; 2189 _flag_k = FK_NARROW(FK_TEST, 24); 2190 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0660D5; /* 0x2B0660BD: je 0x2b0660d5 */ 2191 L_2B0660BF: 2192 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x2B0660BF: mov dl, byte ptr [eax + 1] */ 2193 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x2B0660C2: mov bl, byte ptr [esi + 1] */ 2194 SET_LO8(ecx, LO8(edx)); /* 0x2B0660C5: mov cl, dl */ 2195 /* cmp LO8(edx), LO8(ebx) */ /* 0x2B0660C7: cmp dl, bl */ 2196 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2198 _flag_k = FK_NARROW(FK_CMP, 24); 2199 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0660D9; /* 0x2B0660C9: jne 0x2b0660d9 */ 2200 L_2B0660CB: 2201 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2203 eax = eax + 2; /* 0x2B0660CB: add eax, 2 */ 2204 _flag_k = FK_ADD; 2205 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2207 esi = esi + 2; /* 0x2B0660CE: add esi, 2 */ 2208 _flag_k = FK_ADD; 2209 /* test LO8(ecx), LO8(ecx) */ /* 0x2B0660D1: test cl, cl */ 2210 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2211 _cf = 0; 2212 _flag_k = FK_NARROW(FK_TEST, 24); 2213 RECOMP_BACKEDGE(); 2214 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0660B1; /* 0x2B0660D3: jne 0x2b0660b1 */ 2215 L_2B0660D5: 2216 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2217 eax = 0; /* 0x2B0660D5: xor eax, eax */ 2218 _cf = 0; 2219 _flag_k = FK_TEST; 2220 goto L_2B0660DE; /* 0x2B0660D7: jmp 0x2b0660de */ 2221 L_2B0660D9: 2222 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x2B0660D9: sbb eax, eax */ 2223 eax = _sc ? 0xFFFFFFFFu : 0; 2224 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2225 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2226 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x2B0660DB: sbb eax, -1 */ 2227 eax = _sa - _sb - _sc; 2228 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2229 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2230 L_2B0660DE: 2231 /* test eax, eax */ /* 0x2B0660DE: test eax, eax */ 2232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2233 _cf = 0; 2234 _flag_k = FK_TEST; 2235 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0660F4; /* 0x2B0660E0: jne 0x2b0660f4 */ 2236 L_2B0660E2: 2237 eax = MEM32(0x2B0EEDEC); /* 0x2B0660E2: mov eax, dword ptr [0x2b0eedec] */ 2238 MEM32(eax) = edi; /* 0x2B0660E7: mov dword ptr [eax], edi */ 2239 edi = POP32_VAL(esp); /* 0x2B0660E9: pop edi */ 2240 esi = POP32_VAL(esp); /* 0x2B0660EA: pop esi */ 2241 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2242 eax = 0; /* 0x2B0660EB: xor eax, eax */ 2243 _cf = 0; 2244 _flag_k = FK_TEST; 2245 ebx = POP32_VAL(esp); /* 0x2B0660ED: pop ebx */ 2246 esp = ebp; /* 0x2B0660EE: mov esp, ebp */ 2247 ebp = POP32_VAL(esp); /* 0x2B0660F0: pop ebp */ 2248 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0660F1: ret 8 */ 2249 L_2B0660F4: 2250 edi = POP32_VAL(esp); /* 0x2B0660F4: pop edi */ 2251 esi = POP32_VAL(esp); /* 0x2B0660F5: pop esi */ 2252 eax = 1; /* 0x2B0660F6: mov eax, 1 */ 2253 ebx = POP32_VAL(esp); /* 0x2B0660FB: pop ebx */ 2254 esp = ebp; /* 0x2B0660FC: mov esp, ebp */ 2255 ebp = POP32_VAL(esp); /* 0x2B0660FE: pop ebp */ 2256 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0660FF: ret 8 */ 2257 RECOMP_REGS_OUT(); 2258 } 2259 2260 void sub_2B066110(void) { 2261 int _fpu_cmp = 0; 2262 uint32_t _cf = 0; 2263 int _df = 1; 2264 uint32_t _flag_k = FK_NONE; 2265 uint32_t _flag_a = 0, _flag_b = 0; 2266 uint32_t _itail_tgt = 0; 2267 RECOMP_REGS_LOCALS 2268 RECOMP_ENTER(0x2B066110u); 2269 2270 L_2B066110: 2271 PUSH32(esp, ebp); /* 0x2B066110: push ebp */ 2272 ebp = esp; /* 0x2B066111: mov ebp, esp */ 2273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 2274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2275 esp = esp - 0x20u; /* 0x2B066113: sub esp, 0x20 */ 2276 _flag_k = FK_CMP; 2277 PUSH32(esp, ebx); /* 0x2B066116: push ebx */ 2278 PUSH32(esp, esi); /* 0x2B066117: push esi */ 2279 PUSH32(esp, edi); /* 0x2B066118: push edi */ 2280 PUSH32(esp, 0x1000u); /* 0x2B066119: push 0x1000 */ 2281 esi = ecx; /* 0x2B06611E: mov esi, ecx */ 2282 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066120: call 0x2b0ab212 */ /* not lifted */ 2283 RECOMP_FLAGS_IN(); 2284 ebx = eax; /* 0x2B066125: mov ebx, eax */ 2285 eax = MEM32(esi + 0x2C); /* 0x2B066127: mov eax, dword ptr [esi + 0x2c] */ 2286 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2287 edi = 0; /* 0x2B06612A: xor edi, edi */ 2288 _cf = 0; 2289 _flag_k = FK_TEST; 2290 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2292 esp = esp + 4; /* 0x2B06612C: add esp, 4 */ 2293 _flag_k = FK_ADD; 2294 /* cmp eax, edi */ /* 0x2B06612F: cmp eax, edi */ 2295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2297 _flag_k = FK_CMP; 2298 MEM32(ebp + (-0x8)) = ebx; /* 0x2B066131: mov dword ptr [ebp - 8], ebx */ 2299 if (CMP_NE(_flag_a, _flag_b)) goto L_2B066191; /* 0x2B066134: jne 0x2b066191 */ 2300 L_2B066136: 2301 PUSH32(esp, 0x20u); /* 0x2B066136: push 0x20 */ 2302 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066138: call 0x2b0ab212 */ /* not lifted */ 2303 RECOMP_FLAGS_IN(); 2304 MEM32(esi + 0x24) = eax; /* 0x2B06613D: mov dword ptr [esi + 0x24], eax */ 2305 MEM32(esi + 0x28) = 8; /* 0x2B066140: mov dword ptr [esi + 0x28], 8 */ 2306 MEM32(eax + 0xC) = edi; /* 0x2B066147: mov dword ptr [eax + 0xc], edi */ 2307 eax = MEM32(esi + 0x24); /* 0x2B06614A: mov eax, dword ptr [esi + 0x24] */ 2308 MEM32(eax + 0x10) = ebx; /* 0x2B06614D: mov dword ptr [eax + 0x10], ebx */ 2309 ecx = MEM32(esi + 0x24); /* 0x2B066150: mov ecx, dword ptr [esi + 0x24] */ 2310 MEM32(ecx + 0x14) = edi; /* 0x2B066153: mov dword ptr [ecx + 0x14], edi */ 2311 eax = MEM32(esi + 0x24); /* 0x2B066156: mov eax, dword ptr [esi + 0x24] */ 2312 ecx = MEM32(eax + 0x10); /* 0x2B066159: mov ecx, dword ptr [eax + 0x10] */ 2313 edi = esi + 0x4; /* 0x2B06615C: lea edi, [esi + 4] */ 2314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 2315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2316 eax = eax + 0x10u; /* 0x2B06615F: add eax, 0x10 */ 2317 _flag_k = FK_ADD; 2318 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2320 esp = esp + 4; /* 0x2B066162: add esp, 4 */ 2321 _flag_k = FK_ADD; 2322 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x800u); 2323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2324 ebx = ebx + 0x800u; /* 0x2B066165: add ebx, 0x800 */ 2325 _flag_k = FK_ADD; 2326 MEM32(edi) = ecx; /* 0x2B06616B: mov dword ptr [edi], ecx */ 2327 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 2328 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2329 esi = esi + 0x14u; /* 0x2B06616D: add esi, 0x14 */ 2330 _flag_k = FK_ADD; 2331 edx = ecx + 0x1000; /* 0x2B066170: lea edx, [ecx + 0x1000] */ 2332 MEM32(esi) = ecx; /* 0x2B066176: mov dword ptr [esi], ecx */ 2333 MEM32(edi + 0x4) = edx; /* 0x2B066178: mov dword ptr [edi + 4], edx */ 2334 MEM32(edi + 0x8) = ebx; /* 0x2B06617B: mov dword ptr [edi + 8], ebx */ 2335 MEM32(esi + 0x4) = edx; /* 0x2B06617E: mov dword ptr [esi + 4], edx */ 2336 MEM32(esi + 0x8) = ebx; /* 0x2B066181: mov dword ptr [esi + 8], ebx */ 2337 MEM32(edi + 0xC) = eax; /* 0x2B066184: mov dword ptr [edi + 0xc], eax */ 2338 edi = POP32_VAL(esp); /* 0x2B066187: pop edi */ 2339 MEM32(esi + 0xC) = eax; /* 0x2B066188: mov dword ptr [esi + 0xc], eax */ 2340 esi = POP32_VAL(esp); /* 0x2B06618B: pop esi */ 2341 ebx = POP32_VAL(esp); /* 0x2B06618C: pop ebx */ 2342 esp = ebp; /* 0x2B06618D: mov esp, ebp */ 2343 ebp = POP32_VAL(esp); /* 0x2B06618F: pop ebp */ 2344 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066190: ret */ 2345 L_2B066191: 2346 edx = MEM32(esi + 0x28); /* 0x2B066191: mov edx, dword ptr [esi + 0x28] */ 2347 ecx = MEM32(esi + 0x24); /* 0x2B066194: mov ecx, dword ptr [esi + 0x24] */ 2348 eax = MEM32(esi + 0x20); /* 0x2B066197: mov eax, dword ptr [esi + 0x20] */ 2349 ecx = ecx + edx * 4 + (-0x8); /* 0x2B06619A: lea ecx, [ecx + edx*4 - 8] */ 2350 /* cmp eax, ecx */ /* 0x2B06619E: cmp eax, ecx */ 2351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2353 _flag_k = FK_CMP; 2354 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0661D0; /* 0x2B0661A0: jae 0x2b0661d0 */ 2355 L_2B0661A2: 2356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2358 eax = eax + 4; /* 0x2B0661A2: add eax, 4 */ 2359 _flag_k = FK_ADD; 2360 MEM32(esi + 0x20) = eax; /* 0x2B0661A5: mov dword ptr [esi + 0x20], eax */ 2361 MEM32(eax) = ebx; /* 0x2B0661A8: mov dword ptr [eax], ebx */ 2362 edx = MEM32(esi + 0x20); /* 0x2B0661AA: mov edx, dword ptr [esi + 0x20] */ 2363 MEM32(edx + 0x4) = edi; /* 0x2B0661AD: mov dword ptr [edx + 4], edi */ 2364 eax = MEM32(esi + 0x20); /* 0x2B0661B0: mov eax, dword ptr [esi + 0x20] */ 2365 ecx = MEM32(eax); /* 0x2B0661B3: mov ecx, dword ptr [eax] */ 2366 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 2367 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2368 esi = esi + 0x14u; /* 0x2B0661B5: add esi, 0x14 */ 2369 _flag_k = FK_ADD; 2370 MEM32(esi) = ecx; /* 0x2B0661B8: mov dword ptr [esi], ecx */ 2371 edx = ecx + 0x1000; /* 0x2B0661BA: lea edx, [ecx + 0x1000] */ 2372 MEM32(esi + 0x4) = edx; /* 0x2B0661C0: mov dword ptr [esi + 4], edx */ 2373 MEM32(esi + 0x8) = ebx; /* 0x2B0661C3: mov dword ptr [esi + 8], ebx */ 2374 edi = POP32_VAL(esp); /* 0x2B0661C6: pop edi */ 2375 MEM32(esi + 0xC) = eax; /* 0x2B0661C7: mov dword ptr [esi + 0xc], eax */ 2376 esi = POP32_VAL(esp); /* 0x2B0661CA: pop esi */ 2377 ebx = POP32_VAL(esp); /* 0x2B0661CB: pop ebx */ 2378 esp = ebp; /* 0x2B0661CC: mov esp, ebp */ 2379 ebp = POP32_VAL(esp); /* 0x2B0661CE: pop ebp */ 2380 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0661CF: ret */ 2381 L_2B0661D0: 2382 ecx = MEM32(esi + 0x10); /* 0x2B0661D0: mov ecx, dword ptr [esi + 0x10] */ 2383 ebx = eax; /* 0x2B0661D3: mov ebx, eax */ 2384 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 2385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2386 ebx = ebx - ecx; /* 0x2B0661D5: sub ebx, ecx */ 2387 _flag_k = FK_CMP; 2388 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x2B0661D7: sar ebx, 2 */ 2389 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2390 ebx = (uint32_t)((int32_t)ebx >> 2u); 2391 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 2392 ebx = ebx + 1; /* 0x2B0661DA: inc ebx */ 2393 _flag_k = FK_INC; 2394 edi = ebx + ebx + 0x2; /* 0x2B0661DB: lea edi, [ebx + ebx + 2] */ 2395 /* cmp edi, 8 */ /* 0x2B0661DF: cmp edi, 8 */ 2396 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 2397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2398 _flag_k = FK_CMP; 2399 MEM32(ebp + (-0xC)) = ebx; /* 0x2B0661E2: mov dword ptr [ebp - 0xc], ebx */ 2400 MEM32(ebp + (-0x4)) = edi; /* 0x2B0661E5: mov dword ptr [ebp - 4], edi */ 2401 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0661F4; /* 0x2B0661E8: jae 0x2b0661f4 */ 2402 L_2B0661EA: 2403 MEM32(ebp + (-0x4)) = 8; /* 0x2B0661EA: mov dword ptr [ebp - 4], 8 */ 2404 edi = MEM32(ebp + (-0x4)); /* 0x2B0661F1: mov edi, dword ptr [ebp - 4] */ 2405 L_2B0661F4: 2406 /* cmp edi, edx */ /* 0x2B0661F4: cmp edi, edx */ 2407 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 2408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2409 _flag_k = FK_CMP; 2410 if (CMP_A(_flag_a, _flag_b)) goto L_2B066256; /* 0x2B0661F6: ja 0x2b066256 */ 2411 L_2B0661F8: 2412 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2B0661F8: shr edx, 2 */ 2413 if (2u) { _flag_a = recomp_flags_pack((edx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2414 edx = edx >> 2u; /* 0x2B0661F8: shr edx, 2 */ 2415 /* cmp edx, edi */ /* 0x2B0661FB: cmp edx, edi */ 2416 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 2417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2418 _flag_k = FK_CMP; 2419 if (CMP_AE(_flag_a, _flag_b)) goto L_2B066256; /* 0x2B0661FD: jae 0x2b066256 */ 2420 L_2B0661FF: 2421 edi = MEM32(esi + 0x24); /* 0x2B0661FF: mov edi, dword ptr [esi + 0x24] */ 2422 edi = edi + edx * 4; /* 0x2B066202: lea edi, [edi + edx*4] */ 2423 edx = ecx + (-0x4); /* 0x2B066205: lea edx, [ecx - 4] */ 2424 /* cmp edi, edx */ /* 0x2B066208: cmp edi, edx */ 2425 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 2426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2427 _flag_k = FK_CMP; 2428 if (CMP_AE(_flag_a, _flag_b)) goto L_2B066233; /* 0x2B06620A: jae 0x2b066233 */ 2429 L_2B06620C: 2430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2432 eax = eax + 8; /* 0x2B06620C: add eax, 8 */ 2433 _flag_k = FK_ADD; 2434 MEM32(ebp + (-0x4)) = eax; /* 0x2B06620F: mov dword ptr [ebp - 4], eax */ 2435 eax = ecx + (-0x4); /* 0x2B066212: lea eax, [ecx - 4] */ 2436 /* cmp eax, MEM32(ebp + (-0x4)) */ /* 0x2B066215: cmp eax, dword ptr [ebp - 4] */ 2437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 2438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2439 _flag_k = FK_CMP; 2440 edx = edi; /* 0x2B066218: mov edx, edi */ 2441 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0662B0; /* 0x2B06621A: je 0x2b0662b0 */ 2442 L_2B066220: 2443 ecx = MEM32(eax); /* 0x2B066220: mov ecx, dword ptr [eax] */ 2444 MEM32(edx) = ecx; /* 0x2B066222: mov dword ptr [edx], ecx */ 2445 ecx = MEM32(ebp + (-0x4)); /* 0x2B066224: mov ecx, dword ptr [ebp - 4] */ 2446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2448 eax = eax + 4; /* 0x2B066227: add eax, 4 */ 2449 _flag_k = FK_ADD; 2450 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 2451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2452 edx = edx + 4; /* 0x2B06622A: add edx, 4 */ 2453 _flag_k = FK_ADD; 2454 /* cmp eax, ecx */ /* 0x2B06622D: cmp eax, ecx */ 2455 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2457 _flag_k = FK_CMP; 2458 RECOMP_BACKEDGE(); 2459 if (CMP_NE(_flag_a, _flag_b)) goto L_2B066220; /* 0x2B06622F: jne 0x2b066220 */ 2460 L_2B066231: 2461 goto L_2B0662B0; /* 0x2B066231: jmp 0x2b0662b0 */ 2462 L_2B066233: 2463 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 2464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2465 ecx = ecx + 0xFFFFFFFCu; /* 0x2B066233: add ecx, -4 */ 2466 _flag_k = FK_ADD; 2467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2468 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2469 eax = eax + 8; /* 0x2B066236: add eax, 8 */ 2470 _flag_k = FK_ADD; 2471 /* cmp ecx, eax */ /* 0x2B066239: cmp ecx, eax */ 2472 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2474 _flag_k = FK_CMP; 2475 edx = edi + ebx * 4 + 0x8; /* 0x2B06623B: lea edx, [edi + ebx*4 + 8] */ 2476 MEM32(ebp + (-0x4)) = ecx; /* 0x2B06623F: mov dword ptr [ebp - 4], ecx */ 2477 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0662B0; /* 0x2B066242: je 0x2b0662b0 */ 2478 L_2B066244: 2479 ecx = MEM32(eax + (-0x4)); /* 0x2B066244: mov ecx, dword ptr [eax - 4] */ 2480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2482 eax = eax - 4; /* 0x2B066247: sub eax, 4 */ 2483 _flag_k = FK_CMP; 2484 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 2485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2486 edx = edx - 4; /* 0x2B06624A: sub edx, 4 */ 2487 _flag_k = FK_CMP; 2488 MEM32(edx) = ecx; /* 0x2B06624D: mov dword ptr [edx], ecx */ 2489 /* cmp eax, MEM32(ebp + (-0x4)) */ /* 0x2B06624F: cmp eax, dword ptr [ebp - 4] */ 2490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 2491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2492 _flag_k = FK_CMP; 2493 RECOMP_BACKEDGE(); 2494 if (CMP_NE(_flag_a, _flag_b)) goto L_2B066244; /* 0x2B066252: jne 0x2b066244 */ 2495 L_2B066254: 2496 goto L_2B0662B0; /* 0x2B066254: jmp 0x2b0662b0 */ 2497 L_2B066256: 2498 eax = edi * 4; /* 0x2B066256: lea eax, [edi*4] */ 2499 /* test eax, eax */ /* 0x2B06625D: test eax, eax */ 2500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2501 _cf = 0; 2502 _flag_k = FK_TEST; 2503 if (TEST_NS(_flag_a, _flag_b)) goto L_2B066263; /* 0x2B06625F: jge 0x2b066263 */ 2504 L_2B066261: 2505 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2506 eax = 0; /* 0x2B066261: xor eax, eax */ 2507 _cf = 0; 2508 _flag_k = FK_TEST; 2509 L_2B066263: 2510 PUSH32(esp, eax); /* 0x2B066263: push eax */ 2511 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066264: call 0x2b0ab212 */ /* not lifted */ 2512 RECOMP_FLAGS_IN(); 2513 ecx = MEM32(esi + 0x20); /* 0x2B066269: mov ecx, dword ptr [esi + 0x20] */ 2514 if (2u) _cf = (((edi) >> 1) & 1u); /* 0x2B06626C: shr edi, 2 */ 2515 if (2u) { _flag_a = recomp_flags_pack((edi >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2516 edi = edi >> 2u; /* 0x2B06626C: shr edi, 2 */ 2517 edi = eax + edi * 4; /* 0x2B06626F: lea edi, [eax + edi*4] */ 2518 MEM32(ebp + (-0x10)) = eax; /* 0x2B066272: mov dword ptr [ebp - 0x10], eax */ 2519 eax = MEM32(esi + 0x10); /* 0x2B066275: mov eax, dword ptr [esi + 0x10] */ 2520 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2522 ecx = ecx + 8; /* 0x2B066278: add ecx, 8 */ 2523 _flag_k = FK_ADD; 2524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2526 eax = eax - 4; /* 0x2B06627B: sub eax, 4 */ 2527 _flag_k = FK_CMP; 2528 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2529 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2530 esp = esp + 4; /* 0x2B06627E: add esp, 4 */ 2531 _flag_k = FK_ADD; 2532 /* cmp eax, ecx */ /* 0x2B066281: cmp eax, ecx */ 2533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2535 _flag_k = FK_CMP; 2536 edx = edi; /* 0x2B066283: mov edx, edi */ 2537 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066298; /* 0x2B066285: je 0x2b066298 */ 2538 L_2B066287: 2539 ebx = MEM32(eax); /* 0x2B066287: mov ebx, dword ptr [eax] */ 2540 MEM32(edx) = ebx; /* 0x2B066289: mov dword ptr [edx], ebx */ 2541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2543 eax = eax + 4; /* 0x2B06628B: add eax, 4 */ 2544 _flag_k = FK_ADD; 2545 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 2546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2547 edx = edx + 4; /* 0x2B06628E: add edx, 4 */ 2548 _flag_k = FK_ADD; 2549 /* cmp eax, ecx */ /* 0x2B066291: cmp eax, ecx */ 2550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2552 _flag_k = FK_CMP; 2553 RECOMP_BACKEDGE(); 2554 if (CMP_NE(_flag_a, _flag_b)) goto L_2B066287; /* 0x2B066293: jne 0x2b066287 */ 2555 L_2B066295: 2556 ebx = MEM32(ebp + (-0xC)); /* 0x2B066295: mov ebx, dword ptr [ebp - 0xc] */ 2557 L_2B066298: 2558 edx = MEM32(esi + 0x24); /* 0x2B066298: mov edx, dword ptr [esi + 0x24] */ 2559 PUSH32(esp, edx); /* 0x2B06629B: push edx */ 2560 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06629C: call 0x2b0ab1ba */ /* not lifted */ 2561 RECOMP_FLAGS_IN(); 2562 eax = MEM32(ebp + (-0x10)); /* 0x2B0662A1: mov eax, dword ptr [ebp - 0x10] */ 2563 ecx = MEM32(ebp + (-0x4)); /* 0x2B0662A4: mov ecx, dword ptr [ebp - 4] */ 2564 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2566 esp = esp + 4; /* 0x2B0662A7: add esp, 4 */ 2567 _flag_k = FK_ADD; 2568 MEM32(esi + 0x24) = eax; /* 0x2B0662AA: mov dword ptr [esi + 0x24], eax */ 2569 MEM32(esi + 0x28) = ecx; /* 0x2B0662AD: mov dword ptr [esi + 0x28], ecx */ 2570 L_2B0662B0: 2571 edx = MEM32(ebp + (-0x8)); /* 0x2B0662B0: mov edx, dword ptr [ebp - 8] */ 2572 eax = edi + 0x4; /* 0x2B0662B3: lea eax, [edi + 4] */ 2573 MEM32(eax + ebx * 4) = edx; /* 0x2B0662B6: mov dword ptr [eax + ebx*4], edx */ 2574 MEM32(eax + ebx * 4 + 0x4) = 0; /* 0x2B0662B9: mov dword ptr [eax + ebx*4 + 4], 0 */ 2575 edi = MEM32(esi + 0xC); /* 0x2B0662C1: mov edi, dword ptr [esi + 0xc] */ 2576 edx = MEM32(eax); /* 0x2B0662C4: mov edx, dword ptr [eax] */ 2577 ecx = eax + ebx * 4; /* 0x2B0662C6: lea ecx, [eax + ebx*4] */ 2578 MEM32(ebp + (-0x18)) = edi; /* 0x2B0662C9: mov dword ptr [ebp - 0x18], edi */ 2579 edi = esi + 0x4; /* 0x2B0662CC: lea edi, [esi + 4] */ 2580 MEM32(edi) = edx; /* 0x2B0662CF: mov dword ptr [edi], edx */ 2581 ebx = edx + 0x1000; /* 0x2B0662D1: lea ebx, [edx + 0x1000] */ 2582 edx = MEM32(ebp + (-0x18)); /* 0x2B0662D7: mov edx, dword ptr [ebp - 0x18] */ 2583 MEM32(edi + 0x4) = ebx; /* 0x2B0662DA: mov dword ptr [edi + 4], ebx */ 2584 MEM32(edi + 0x8) = edx; /* 0x2B0662DD: mov dword ptr [edi + 8], edx */ 2585 MEM32(edi + 0xC) = eax; /* 0x2B0662E0: mov dword ptr [edi + 0xc], eax */ 2586 eax = MEM32(ecx); /* 0x2B0662E3: mov eax, dword ptr [ecx] */ 2587 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 2588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2589 esi = esi + 0x14u; /* 0x2B0662E5: add esi, 0x14 */ 2590 _flag_k = FK_ADD; 2591 MEM32(esi) = eax; /* 0x2B0662E8: mov dword ptr [esi], eax */ 2592 edx = eax + 0x1000; /* 0x2B0662EA: lea edx, [eax + 0x1000] */ 2593 eax = MEM32(ebp + (-0x8)); /* 0x2B0662F0: mov eax, dword ptr [ebp - 8] */ 2594 MEM32(esi + 0x4) = edx; /* 0x2B0662F3: mov dword ptr [esi + 4], edx */ 2595 MEM32(esi + 0x8) = eax; /* 0x2B0662F6: mov dword ptr [esi + 8], eax */ 2596 edi = POP32_VAL(esp); /* 0x2B0662F9: pop edi */ 2597 MEM32(esi + 0xC) = ecx; /* 0x2B0662FA: mov dword ptr [esi + 0xc], ecx */ 2598 esi = POP32_VAL(esp); /* 0x2B0662FD: pop esi */ 2599 ebx = POP32_VAL(esp); /* 0x2B0662FE: pop ebx */ 2600 esp = ebp; /* 0x2B0662FF: mov esp, ebp */ 2601 ebp = POP32_VAL(esp); /* 0x2B066301: pop ebp */ 2602 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066302: ret */ 2603 RECOMP_REGS_OUT(); 2604 } 2605 2606 void sub_2B066310(void) { 2607 int _fpu_cmp = 0; 2608 uint32_t _cf = 0; 2609 int _df = 1; 2610 uint32_t _flag_k = FK_NONE; 2611 uint32_t _flag_a = 0, _flag_b = 0; 2612 uint32_t _itail_tgt = 0; 2613 RECOMP_REGS_LOCALS 2614 RECOMP_ENTER(0x2B066310u); 2615 2616 L_2B066310: 2617 PUSH32(esp, esi); /* 0x2B066310: push esi */ 2618 esi = ecx; /* 0x2B066311: mov esi, ecx */ 2619 eax = MEM32(esi + 0xC); /* 0x2B066313: mov eax, dword ptr [esi + 0xc] */ 2620 ecx = MEM32(esi + 0x8); /* 0x2B066316: mov ecx, dword ptr [esi + 8] */ 2621 /* cmp eax, ecx */ /* 0x2B066319: cmp eax, ecx */ 2622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2624 _flag_k = FK_CMP; 2625 PUSH32(esp, edi); /* 0x2B06631B: push edi */ 2626 edi = MEM32(esi + 0x10); /* 0x2B06631C: mov edi, dword ptr [esi + 0x10] */ 2627 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B06634E; /* 0x2B06631F: je 0x2b06634e */ 2628 L_2B066321: 2629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 2630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2631 eax = eax + 0x10u; /* 0x2B066321: add eax, 0x10 */ 2632 _flag_k = FK_ADD; 2633 /* cmp eax, ecx */ /* 0x2B066324: cmp eax, ecx */ 2634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2636 _flag_k = FK_CMP; 2637 MEM32(esi + 0xC) = eax; /* 0x2B066326: mov dword ptr [esi + 0xc], eax */ 2638 if (CMP_NE(_flag_a, _flag_b)) goto L_2B06634E; /* 0x2B066329: jne 0x2b06634e */ 2639 L_2B06632B: 2640 eax = MEM32(esi + 0x10); /* 0x2B06632B: mov eax, dword ptr [esi + 0x10] */ 2641 ecx = MEM32(eax + 0x4); /* 0x2B06632E: mov ecx, dword ptr [eax + 4] */ 2642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2644 eax = eax + 4; /* 0x2B066331: add eax, 4 */ 2645 _flag_k = FK_ADD; 2646 /* test ecx, ecx */ /* 0x2B066334: test ecx, ecx */ 2647 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2648 _cf = 0; 2649 _flag_k = FK_TEST; 2650 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06634E; /* 0x2B066336: je 0x2b06634e */ 2651 L_2B066338: 2652 MEM32(esi + 0x10) = eax; /* 0x2B066338: mov dword ptr [esi + 0x10], eax */ 2653 eax = MEM32(eax); /* 0x2B06633B: mov eax, dword ptr [eax] */ 2654 MEM32(esi + 0x4) = eax; /* 0x2B06633D: mov dword ptr [esi + 4], eax */ 2655 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 2656 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2657 eax = eax + 0x1000u; /* 0x2B066340: add eax, 0x1000 */ 2658 _flag_k = FK_ADD; 2659 MEM32(esi + 0x8) = eax; /* 0x2B066345: mov dword ptr [esi + 8], eax */ 2660 eax = MEM32(esi + 0x4); /* 0x2B066348: mov eax, dword ptr [esi + 4] */ 2661 MEM32(esi + 0xC) = eax; /* 0x2B06634B: mov dword ptr [esi + 0xc], eax */ 2662 L_2B06634E: 2663 _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(1); 2664 MEM32(esi + 0x2C) = MEM32(esi + 0x2C) - 1; /* 0x2B06634E: dec dword ptr [esi + 0x2c] */ 2665 _flag_k = FK_DEC; 2666 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B0663A9; /* 0x2B066351: jne 0x2b0663a9 */ 2667 L_2B066353: 2668 ecx = MEM32(esi + 0x10); /* 0x2B066353: mov ecx, dword ptr [esi + 0x10] */ 2669 edx = MEM32(ecx + (-0x4)); /* 0x2B066356: mov edx, dword ptr [ecx - 4] */ 2670 PUSH32(esp, ebx); /* 0x2B066359: push ebx */ 2671 PUSH32(esp, edx); /* 0x2B06635A: push edx */ 2672 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06635B: call 0x2b0ab1ba */ /* not lifted */ 2673 RECOMP_FLAGS_IN(); 2674 eax = MEM32(esi + 0x10); /* 0x2B066360: mov eax, dword ptr [esi + 0x10] */ 2675 ecx = MEM32(eax); /* 0x2B066363: mov ecx, dword ptr [eax] */ 2676 PUSH32(esp, ecx); /* 0x2B066365: push ecx */ 2677 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066366: call 0x2b0ab1ba */ /* not lifted */ 2678 RECOMP_FLAGS_IN(); 2679 edx = MEM32(esi + 0x10); /* 0x2B06636B: mov edx, dword ptr [esi + 0x10] */ 2680 eax = MEM32(edx + 0x4); /* 0x2B06636E: mov eax, dword ptr [edx + 4] */ 2681 PUSH32(esp, eax); /* 0x2B066371: push eax */ 2682 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066372: call 0x2b0ab1ba */ /* not lifted */ 2683 RECOMP_FLAGS_IN(); 2684 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2685 eax = 0; /* 0x2B066377: xor eax, eax */ 2686 _cf = 0; 2687 _flag_k = FK_TEST; 2688 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2689 ecx = 0; /* 0x2B066379: xor ecx, ecx */ 2690 _cf = 0; 2691 _flag_k = FK_TEST; 2692 ebx = esi + 0x14; /* 0x2B06637B: lea ebx, [esi + 0x14] */ 2693 MEM32(ebx) = eax; /* 0x2B06637E: mov dword ptr [ebx], eax */ 2694 MEM32(esi + 0x4) = eax; /* 0x2B066380: mov dword ptr [esi + 4], eax */ 2695 MEM32(esi + 0x8) = ecx; /* 0x2B066383: mov dword ptr [esi + 8], ecx */ 2696 MEM32(ebx + 0x4) = ecx; /* 0x2B066386: mov dword ptr [ebx + 4], ecx */ 2697 ecx = MEM32(esi + 0x24); /* 0x2B066389: mov ecx, dword ptr [esi + 0x24] */ 2698 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2699 edx = 0; /* 0x2B06638C: xor edx, edx */ 2700 _cf = 0; 2701 _flag_k = FK_TEST; 2702 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2703 edi = 0; /* 0x2B06638E: xor edi, edi */ 2704 _cf = 0; 2705 _flag_k = FK_TEST; 2706 MEM32(ebx + 0x8) = edx; /* 0x2B066390: mov dword ptr [ebx + 8], edx */ 2707 MEM32(esi + 0xC) = edx; /* 0x2B066393: mov dword ptr [esi + 0xc], edx */ 2708 PUSH32(esp, ecx); /* 0x2B066396: push ecx */ 2709 MEM32(esi + 0x10) = edi; /* 0x2B066397: mov dword ptr [esi + 0x10], edi */ 2710 MEM32(ebx + 0xC) = edi; /* 0x2B06639A: mov dword ptr [ebx + 0xc], edi */ 2711 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06639D: call 0x2b0ab1ba */ /* not lifted */ 2712 RECOMP_FLAGS_IN(); 2713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2715 esp = esp + 0x10u; /* 0x2B0663A2: add esp, 0x10 */ 2716 _flag_k = FK_ADD; 2717 ebx = POP32_VAL(esp); /* 0x2B0663A5: pop ebx */ 2718 edi = POP32_VAL(esp); /* 0x2B0663A6: pop edi */ 2719 esi = POP32_VAL(esp); /* 0x2B0663A7: pop esi */ 2720 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0663A8: ret */ 2721 L_2B0663A9: 2722 /* cmp edi, MEM32(esi + 0x10) */ /* 0x2B0663A9: cmp edi, dword ptr [esi + 0x10] */ 2723 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x10)); 2724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2725 _flag_k = FK_CMP; 2726 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0663BF; /* 0x2B0663AC: je 0x2b0663bf */ 2727 L_2B0663AE: 2728 edx = MEM32(edi); /* 0x2B0663AE: mov edx, dword ptr [edi] */ 2729 PUSH32(esp, edx); /* 0x2B0663B0: push edx */ 2730 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0663B1: call 0x2b0ab1ba */ /* not lifted */ 2731 RECOMP_FLAGS_IN(); 2732 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2734 esp = esp + 4; /* 0x2B0663B6: add esp, 4 */ 2735 _flag_k = FK_ADD; 2736 MEM32(edi) = 0; /* 0x2B0663B9: mov dword ptr [edi], 0 */ 2737 L_2B0663BF: 2738 edi = POP32_VAL(esp); /* 0x2B0663BF: pop edi */ 2739 esi = POP32_VAL(esp); /* 0x2B0663C0: pop esi */ 2740 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0663C1: ret */ 2741 RECOMP_REGS_OUT(); 2742 } 2743 2744 void sub_2B0663D0(void) { 2745 int _fpu_cmp = 0; 2746 uint32_t _cf = 0; 2747 int _df = 1; 2748 uint32_t _flag_k = FK_NONE; 2749 uint32_t _flag_a = 0, _flag_b = 0; 2750 uint32_t _itail_tgt = 0; 2751 RECOMP_REGS_LOCALS 2752 RECOMP_ENTER(0x2B0663D0u); 2753 2754 L_2B0663D0: 2755 PUSH32(esp, ebp); /* 0x2B0663D0: push ebp */ 2756 ebp = esp; /* 0x2B0663D1: mov ebp, esp */ 2757 eax = MEM32(ebp + 0x8); /* 0x2B0663D3: mov eax, dword ptr [ebp + 8] */ 2758 PUSH32(esp, eax); /* 0x2B0663D6: push eax */ 2759 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0663D7: call 0x2b0ab1ba */ /* not lifted */ 2760 RECOMP_FLAGS_IN(); 2761 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2762 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2763 esp = esp + 4; /* 0x2B0663DC: add esp, 4 */ 2764 _flag_k = FK_ADD; 2765 ebp = POP32_VAL(esp); /* 0x2B0663DF: pop ebp */ 2766 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0663E0: ret 8 */ 2767 RECOMP_REGS_OUT(); 2768 } 2769 2770 void sub_2B0663F0(void) { 2771 int _fpu_cmp = 0; 2772 uint32_t _cf = 0; 2773 int _df = 1; 2774 uint32_t _flag_k = FK_NONE; 2775 uint32_t _flag_a = 0, _flag_b = 0; 2776 uint32_t _itail_tgt = 0; 2777 RECOMP_REGS_LOCALS 2778 RECOMP_ENTER(0x2B0663F0u); 2779 2780 L_2B0663F0: 2781 PUSH32(esp, ebp); /* 0x2B0663F0: push ebp */ 2782 ebp = esp; /* 0x2B0663F1: mov ebp, esp */ 2783 eax = MEM32(ebp + 0x8); /* 0x2B0663F3: mov eax, dword ptr [ebp + 8] */ 2784 edx = MEM32(ecx + 0x8); /* 0x2B0663F6: mov edx, dword ptr [ecx + 8] */ 2785 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0663F9: shl eax, 4 */ 2786 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2787 eax = eax << 4u; /* 0x2B0663F9: shl eax, 4 */ 2788 PUSH32(esp, esi); /* 0x2B0663FC: push esi */ 2789 esi = eax + edx; /* 0x2B0663FD: lea esi, [eax + edx] */ 2790 edx = MEM32(ecx); /* 0x2B066400: mov edx, dword ptr [ecx] */ 2791 eax = esi; /* 0x2B066402: mov eax, esi */ 2792 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2794 eax = eax - edx; /* 0x2B066404: sub eax, edx */ 2795 _flag_k = FK_CMP; 2796 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B066406: sar eax, 4 */ 2797 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2798 eax = (uint32_t)((int32_t)eax >> 4u); 2799 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_S, _cf)) goto L_2B066412; /* 0x2B066409: js 0x2b066412 */ 2800 L_2B06640B: 2801 edx = eax; /* 0x2B06640B: mov edx, eax */ 2802 if (8u) _cf = (((edx) >> 7) & 1u); /* 0x2B06640D: shr edx, 8 */ 2803 if (8u) { _flag_a = recomp_flags_pack((edx >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2804 edx = edx >> 8u; /* 0x2B06640D: shr edx, 8 */ 2805 goto L_2B06641E; /* 0x2B066410: jmp 0x2b06641e */ 2806 L_2B066412: 2807 edx = 0xFFu; /* 0x2B066412: mov edx, 0xff */ 2808 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2810 edx = edx - eax; /* 0x2B066417: sub edx, eax */ 2811 _flag_k = FK_CMP; 2812 if (8u) _cf = (((edx) >> 7) & 1u); /* 0x2B066419: shr edx, 8 */ 2813 if (8u) { _flag_a = recomp_flags_pack((edx >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2814 edx = edx >> 8u; /* 0x2B066419: shr edx, 8 */ 2815 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(edx); 2816 _cf = (edx) != 0; 2817 edx = (uint32_t)(-(int32_t)edx); /* 0x2B06641C: neg edx */ 2818 _flag_k = FK_CMP; 2819 L_2B06641E: 2820 /* test edx, edx */ /* 0x2B06641E: test edx, edx */ 2821 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2822 _cf = 0; 2823 _flag_k = FK_TEST; 2824 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B06642A; /* 0x2B066420: jne 0x2b06642a */ 2825 L_2B066422: 2826 MEM32(ecx + 0x8) = esi; /* 0x2B066422: mov dword ptr [ecx + 8], esi */ 2827 esi = POP32_VAL(esp); /* 0x2B066425: pop esi */ 2828 ebp = POP32_VAL(esp); /* 0x2B066426: pop ebp */ 2829 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B066427: ret 4 */ 2830 L_2B06642A: 2831 PUSH32(esp, edi); /* 0x2B06642A: push edi */ 2832 edi = MEM32(ecx + 0xC); /* 0x2B06642B: mov edi, dword ptr [ecx + 0xc] */ 2833 esi = edx * 4; /* 0x2B06642E: lea esi, [edx*4] */ 2834 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 2835 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2836 edi = edi + esi; /* 0x2B066435: add edi, esi */ 2837 _flag_k = FK_ADD; 2838 esi = edi; /* 0x2B066437: mov esi, edi */ 2839 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B066439: shl edx, 8 */ 2840 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2841 edx = edx << 8u; /* 0x2B066439: shl edx, 8 */ 2842 MEM32(ecx + 0xC) = edi; /* 0x2B06643C: mov dword ptr [ecx + 0xc], edi */ 2843 esi = MEM32(esi); /* 0x2B06643F: mov esi, dword ptr [esi] */ 2844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2846 eax = eax - edx; /* 0x2B066441: sub eax, edx */ 2847 _flag_k = FK_CMP; 2848 MEM32(ecx) = esi; /* 0x2B066443: mov dword ptr [ecx], esi */ 2849 edx = MEM32(ecx); /* 0x2B066445: mov edx, dword ptr [ecx] */ 2850 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1000u); 2851 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2852 esi = esi + 0x1000u; /* 0x2B066447: add esi, 0x1000 */ 2853 _flag_k = FK_ADD; 2854 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B06644D: shl eax, 4 */ 2855 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2856 eax = eax << 4u; /* 0x2B06644D: shl eax, 4 */ 2857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2858 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2859 eax = eax + edx; /* 0x2B066450: add eax, edx */ 2860 _flag_k = FK_ADD; 2861 edi = POP32_VAL(esp); /* 0x2B066452: pop edi */ 2862 MEM32(ecx + 0x4) = esi; /* 0x2B066453: mov dword ptr [ecx + 4], esi */ 2863 MEM32(ecx + 0x8) = eax; /* 0x2B066456: mov dword ptr [ecx + 8], eax */ 2864 esi = POP32_VAL(esp); /* 0x2B066459: pop esi */ 2865 ebp = POP32_VAL(esp); /* 0x2B06645A: pop ebp */ 2866 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B06645B: ret 4 */ 2867 RECOMP_REGS_OUT(); 2868 } 2869 2870 void sub_2B066460(void) { 2871 int _fpu_cmp = 0; 2872 uint32_t _cf = 0; 2873 int _df = 1; 2874 uint32_t _flag_k = FK_NONE; 2875 uint32_t _flag_a = 0, _flag_b = 0; 2876 uint32_t _itail_tgt = 0; 2877 RECOMP_REGS_LOCALS 2878 RECOMP_ENTER(0x2B066460u); 2879 2880 L_2B066460: 2881 PUSH32(esp, ebp); /* 0x2B066460: push ebp */ 2882 ebp = esp; /* 0x2B066461: mov ebp, esp */ 2883 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B066463: push -1 */ 2884 PUSH32(esp, 0x2B0B0B2Bu); /* 0x2B066465: push 0x2b0b0b2b */ 2885 eax = MEM32(FS_BASE + (0)); /* 0x2B06646A: mov eax, dword ptr fs:[0] */ 2886 PUSH32(esp, eax); /* 0x2B066470: push eax */ 2887 MEM32(FS_BASE + (0)) = esp; /* 0x2B066471: mov dword ptr fs:[0], esp */ 2888 PUSH32(esp, ecx); /* 0x2B066478: push ecx */ 2889 eax = MEM32(0x2B0EEDF0); /* 0x2B066479: mov eax, dword ptr [0x2b0eedf0] */ 2890 /* test eax, eax */ /* 0x2B06647E: test eax, eax */ 2891 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2892 _cf = 0; 2893 _flag_k = FK_TEST; 2894 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0664BB; /* 0x2B066480: jne 0x2b0664bb */ 2895 L_2B066482: 2896 PUSH32(esp, 1); /* 0x2B066482: push 1 */ 2897 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066484: call 0x2b0ab212 */ /* not lifted */ 2898 RECOMP_FLAGS_IN(); 2899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2901 esp = esp + 4; /* 0x2B066489: add esp, 4 */ 2902 _flag_k = FK_ADD; 2903 MEM32(ebp + (-0x10)) = eax; /* 0x2B06648C: mov dword ptr [ebp - 0x10], eax */ 2904 /* test eax, eax */ /* 0x2B06648F: test eax, eax */ 2905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2906 _cf = 0; 2907 _flag_k = FK_TEST; 2908 MEM32(ebp + (-0x4)) = 0; /* 0x2B066491: mov dword ptr [ebp - 4], 0 */ 2909 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0664B4; /* 0x2B066498: je 0x2b0664b4 */ 2910 L_2B06649A: 2911 ecx = eax; /* 0x2B06649A: mov ecx, eax */ 2912 RECOMP_ICALL(0x2B0664F0u); /* 0x2B06649C: call 0x2b0664f0 */ /* not lifted */ 2913 RECOMP_FLAGS_IN(); 2914 MEM32(0x2B0EEDF0) = eax; /* 0x2B0664A1: mov dword ptr [0x2b0eedf0], eax */ 2915 ecx = MEM32(ebp + (-0xC)); /* 0x2B0664A6: mov ecx, dword ptr [ebp - 0xc] */ 2916 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0664A9: mov dword ptr fs:[0], ecx */ 2917 esp = ebp; /* 0x2B0664B0: mov esp, ebp */ 2918 ebp = POP32_VAL(esp); /* 0x2B0664B2: pop ebp */ 2919 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0664B3: ret */ 2920 L_2B0664B4: 2921 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2922 eax = 0; /* 0x2B0664B4: xor eax, eax */ 2923 _cf = 0; 2924 _flag_k = FK_TEST; 2925 MEM32(0x2B0EEDF0) = eax; /* 0x2B0664B6: mov dword ptr [0x2b0eedf0], eax */ 2926 L_2B0664BB: 2927 ecx = MEM32(ebp + (-0xC)); /* 0x2B0664BB: mov ecx, dword ptr [ebp - 0xc] */ 2928 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0664BE: mov dword ptr fs:[0], ecx */ 2929 esp = ebp; /* 0x2B0664C5: mov esp, ebp */ 2930 ebp = POP32_VAL(esp); /* 0x2B0664C7: pop ebp */ 2931 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0664C8: ret */ 2932 RECOMP_REGS_OUT(); 2933 } 2934 2935 void sub_2B0664D0(void) { 2936 int _fpu_cmp = 0; 2937 uint32_t _cf = 0; 2938 int _df = 1; 2939 uint32_t _flag_k = FK_NONE; 2940 uint32_t _flag_a = 0, _flag_b = 0; 2941 uint32_t _itail_tgt = 0; 2942 RECOMP_REGS_LOCALS 2943 RECOMP_ENTER(0x2B0664D0u); 2944 2945 L_2B0664D0: 2946 eax = MEM32(0x2B0EEDF0); /* 0x2B0664D0: mov eax, dword ptr [0x2b0eedf0] */ 2947 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0664D5: ret */ 2948 RECOMP_REGS_OUT(); 2949 } 2950 2951 void sub_2B0664E0(void) { 2952 int _fpu_cmp = 0; 2953 uint32_t _cf = 0; 2954 int _df = 1; 2955 uint32_t _flag_k = FK_NONE; 2956 uint32_t _flag_a = 0, _flag_b = 0; 2957 uint32_t _itail_tgt = 0; 2958 RECOMP_REGS_LOCALS 2959 RECOMP_ENTER(0x2B0664E0u); 2960 2961 L_2B0664E0: 2962 MEM32(0x2B0EEDF0) = 0; /* 0x2B0664E0: mov dword ptr [0x2b0eedf0], 0 */ 2963 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0664EA: ret */ 2964 RECOMP_REGS_OUT(); 2965 } 2966 2967 void sub_2B0664F0(void) { 2968 int _fpu_cmp = 0; 2969 uint32_t _cf = 0; 2970 int _df = 1; 2971 uint32_t _flag_k = FK_NONE; 2972 uint32_t _flag_a = 0, _flag_b = 0; 2973 uint32_t _itail_tgt = 0; 2974 RECOMP_REGS_LOCALS 2975 RECOMP_ENTER(0x2B0664F0u); 2976 2977 L_2B0664F0: 2978 PUSH32(esp, ebx); /* 0x2B0664F0: push ebx */ 2979 PUSH32(esp, esi); /* 0x2B0664F1: push esi */ 2980 esi = MEM32(0x2B0B53CC); /* 0x2B0664F2: mov esi, dword ptr [0x2b0b53cc] */ 2981 PUSH32(esp, edi); /* 0x2B0664F8: push edi */ 2982 ebx = ecx; /* 0x2B0664F9: mov ebx, ecx */ 2983 RECOMP_ICALL(esi); /* 0x2B0664FB: call esi */ 2984 RECOMP_FLAGS_IN(); 2985 ecx = eax; /* 0x2B0664FD: mov ecx, eax */ 2986 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B0664FF: call dword ptr [0x2b0b5374] */ 2987 RECOMP_FLAGS_IN(); 2988 PUSH32(esp, 0); /* 0x2B066505: push 0 */ 2989 PUSH32(esp, 0x15u); /* 0x2B066507: push 0x15 */ 2990 PUSH32(esp, 4); /* 0x2B066509: push 4 */ 2991 RECOMP_ICALL(esi); /* 0x2B06650B: call esi */ 2992 RECOMP_FLAGS_IN(); 2993 ecx = eax; /* 0x2B06650D: mov ecx, eax */ 2994 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B06650F: call dword ptr [0x2b0b5378] */ 2995 RECOMP_FLAGS_IN(); 2996 PUSH32(esp, 0x2B066560u); /* 0x2B066515: push 0x2b066560 */ 2997 PUSH32(esp, 5); /* 0x2B06651A: push 5 */ 2998 RECOMP_ICALL(esi); /* 0x2B06651C: call esi */ 2999 RECOMP_FLAGS_IN(); 3000 edi = MEM32(0x2B0B5324); /* 0x2B06651E: mov edi, dword ptr [0x2b0b5324] */ 3001 ecx = eax; /* 0x2B066524: mov ecx, eax */ 3002 RECOMP_ICALL(edi); /* 0x2B066526: call edi */ 3003 RECOMP_FLAGS_IN(); 3004 PUSH32(esp, 0x2B0665C0u); /* 0x2B066528: push 0x2b0665c0 */ 3005 PUSH32(esp, 6); /* 0x2B06652D: push 6 */ 3006 RECOMP_ICALL(esi); /* 0x2B06652F: call esi */ 3007 RECOMP_FLAGS_IN(); 3008 ecx = eax; /* 0x2B066531: mov ecx, eax */ 3009 RECOMP_ICALL(edi); /* 0x2B066533: call edi */ 3010 RECOMP_FLAGS_IN(); 3011 PUSH32(esp, 0x2B066600u); /* 0x2B066535: push 0x2b066600 */ 3012 PUSH32(esp, 0x72u); /* 0x2B06653A: push 0x72 */ 3013 RECOMP_ICALL(esi); /* 0x2B06653C: call esi */ 3014 RECOMP_FLAGS_IN(); 3015 ecx = eax; /* 0x2B06653E: mov ecx, eax */ 3016 RECOMP_ICALL(edi); /* 0x2B066540: call edi */ 3017 RECOMP_FLAGS_IN(); 3018 PUSH32(esp, 0x2B066620u); /* 0x2B066542: push 0x2b066620 */ 3019 RECOMP_ICALL(esi); /* 0x2B066547: call esi */ 3020 RECOMP_FLAGS_IN(); 3021 ecx = eax; /* 0x2B066549: mov ecx, eax */ 3022 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B06654B: call dword ptr [0x2b0b537c] */ 3023 RECOMP_FLAGS_IN(); 3024 edi = POP32_VAL(esp); /* 0x2B066551: pop edi */ 3025 esi = POP32_VAL(esp); /* 0x2B066552: pop esi */ 3026 eax = ebx; /* 0x2B066553: mov eax, ebx */ 3027 ebx = POP32_VAL(esp); /* 0x2B066555: pop ebx */ 3028 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066556: ret */ 3029 RECOMP_REGS_OUT(); 3030 } 3031 3032 void sub_2B066560(void) { 3033 int _fpu_cmp = 0; 3034 uint32_t _cf = 0; 3035 int _df = 1; 3036 uint32_t _flag_k = FK_NONE; 3037 uint32_t _flag_a = 0, _flag_b = 0; 3038 uint32_t _itail_tgt = 0; 3039 RECOMP_REGS_LOCALS 3040 RECOMP_ENTER(0x2B066560u); 3041 3042 L_2B066560: 3043 PUSH32(esp, ebp); /* 0x2B066560: push ebp */ 3044 ebp = esp; /* 0x2B066561: mov ebp, esp */ 3045 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B066563: push -1 */ 3046 PUSH32(esp, 0x2B0B0B4Bu); /* 0x2B066565: push 0x2b0b0b4b */ 3047 eax = MEM32(FS_BASE + (0)); /* 0x2B06656A: mov eax, dword ptr fs:[0] */ 3048 PUSH32(esp, eax); /* 0x2B066570: push eax */ 3049 MEM32(FS_BASE + (0)) = esp; /* 0x2B066571: mov dword ptr fs:[0], esp */ 3050 PUSH32(esp, ecx); /* 0x2B066578: push ecx */ 3051 PUSH32(esp, 0x20u); /* 0x2B066579: push 0x20 */ 3052 RECOMP_ICALL(0x2B0AB212u); /* 0x2B06657B: call 0x2b0ab212 */ /* not lifted */ 3053 RECOMP_FLAGS_IN(); 3054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3055 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3056 esp = esp + 4; /* 0x2B066580: add esp, 4 */ 3057 _flag_k = FK_ADD; 3058 MEM32(ebp + (-0x10)) = eax; /* 0x2B066583: mov dword ptr [ebp - 0x10], eax */ 3059 /* test eax, eax */ /* 0x2B066586: test eax, eax */ 3060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3061 _cf = 0; 3062 _flag_k = FK_TEST; 3063 MEM32(ebp + (-0x4)) = 0; /* 0x2B066588: mov dword ptr [ebp - 4], 0 */ 3064 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0665AB; /* 0x2B06658F: je 0x2b0665ab */ 3065 L_2B066591: 3066 ecx = eax; /* 0x2B066591: mov ecx, eax */ 3067 RECOMP_ICALL(0x2B065AF0u); /* 0x2B066593: call 0x2b065af0 */ /* not lifted */ 3068 RECOMP_FLAGS_IN(); 3069 MEM32(0x2B0EEDF4) = eax; /* 0x2B066598: mov dword ptr [0x2b0eedf4], eax */ 3070 ecx = MEM32(ebp + (-0xC)); /* 0x2B06659D: mov ecx, dword ptr [ebp - 0xc] */ 3071 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0665A0: mov dword ptr fs:[0], ecx */ 3072 esp = ebp; /* 0x2B0665A7: mov esp, ebp */ 3073 ebp = POP32_VAL(esp); /* 0x2B0665A9: pop ebp */ 3074 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0665AA: ret */ 3075 L_2B0665AB: 3076 ecx = MEM32(ebp + (-0xC)); /* 0x2B0665AB: mov ecx, dword ptr [ebp - 0xc] */ 3077 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3078 eax = 0; /* 0x2B0665AE: xor eax, eax */ 3079 _cf = 0; 3080 _flag_k = FK_TEST; 3081 MEM32(0x2B0EEDF4) = eax; /* 0x2B0665B0: mov dword ptr [0x2b0eedf4], eax */ 3082 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0665B5: mov dword ptr fs:[0], ecx */ 3083 esp = ebp; /* 0x2B0665BC: mov esp, ebp */ 3084 ebp = POP32_VAL(esp); /* 0x2B0665BE: pop ebp */ 3085 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0665BF: ret */ 3086 RECOMP_REGS_OUT(); 3087 } 3088 3089 void sub_2B0665C0(void) { 3090 int _fpu_cmp = 0; 3091 uint32_t _cf = 0; 3092 int _df = 1; 3093 uint32_t _flag_k = FK_NONE; 3094 uint32_t _flag_a = 0, _flag_b = 0; 3095 uint32_t _itail_tgt = 0; 3096 RECOMP_REGS_LOCALS 3097 RECOMP_ENTER(0x2B0665C0u); 3098 3099 L_2B0665C0: 3100 PUSH32(esp, esi); /* 0x2B0665C0: push esi */ 3101 esi = MEM32(0x2B0EEDF4); /* 0x2B0665C1: mov esi, dword ptr [0x2b0eedf4] */ 3102 /* test esi, esi */ /* 0x2B0665C7: test esi, esi */ 3103 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3104 _cf = 0; 3105 _flag_k = FK_TEST; 3106 MEM32(0x2B0EEDF0) = 0; /* 0x2B0665C9: mov dword ptr [0x2b0eedf0], 0 */ 3107 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0665E5; /* 0x2B0665D3: je 0x2b0665e5 */ 3108 L_2B0665D5: 3109 ecx = esi; /* 0x2B0665D5: mov ecx, esi */ 3110 RECOMP_ICALL(0x2B065BF0u); /* 0x2B0665D7: call 0x2b065bf0 */ /* not lifted */ 3111 RECOMP_FLAGS_IN(); 3112 PUSH32(esp, esi); /* 0x2B0665DC: push esi */ 3113 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0665DD: call 0x2b0ab1ba */ /* not lifted */ 3114 RECOMP_FLAGS_IN(); 3115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3117 esp = esp + 4; /* 0x2B0665E2: add esp, 4 */ 3118 _flag_k = FK_ADD; 3119 L_2B0665E5: 3120 MEM32(0x2B0EEDF4) = 0; /* 0x2B0665E5: mov dword ptr [0x2b0eedf4], 0 */ 3121 esi = POP32_VAL(esp); /* 0x2B0665EF: pop esi */ 3122 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0665F0: ret */ 3123 RECOMP_REGS_OUT(); 3124 } 3125 3126 void sub_2B066600(void) { 3127 int _fpu_cmp = 0; 3128 uint32_t _cf = 0; 3129 int _df = 1; 3130 uint32_t _flag_k = FK_NONE; 3131 uint32_t _flag_a = 0, _flag_b = 0; 3132 uint32_t _itail_tgt = 0; 3133 RECOMP_REGS_LOCALS 3134 RECOMP_ENTER(0x2B066600u); 3135 3136 L_2B066600: 3137 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B066600: call dword ptr [0x2b0b53cc] */ 3138 RECOMP_FLAGS_IN(); 3139 ecx = eax; /* 0x2B066606: mov ecx, eax */ 3140 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B066608: call dword ptr [0x2b0b53a4] */ 3141 RECOMP_FLAGS_IN(); 3142 ecx = MEM32(0x2B0EEDF4); /* 0x2B06660E: mov ecx, dword ptr [0x2b0eedf4] */ 3143 /* test ecx, ecx */ /* 0x2B066614: test ecx, ecx */ 3144 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3145 _cf = 0; 3146 _flag_k = FK_TEST; 3147 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06661E; /* 0x2B066616: je 0x2b06661e */ 3148 L_2B066618: 3149 PUSH32(esp, eax); /* 0x2B066618: push eax */ 3150 RECOMP_ICALL(0x2B065EF0u); /* 0x2B066619: call 0x2b065ef0 */ /* not lifted */ 3151 RECOMP_FLAGS_IN(); 3152 L_2B06661E: 3153 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06661E: ret */ 3154 RECOMP_REGS_OUT(); 3155 } 3156 3157 void sub_2B066620(void) { 3158 int _fpu_cmp = 0; 3159 uint32_t _cf = 0; 3160 int _df = 1; 3161 uint32_t _flag_k = FK_NONE; 3162 uint32_t _flag_a = 0, _flag_b = 0; 3163 uint32_t _itail_tgt = 0; 3164 RECOMP_REGS_LOCALS 3165 RECOMP_ENTER(0x2B066620u); 3166 3167 goto L_2B066620; 3168 L_2B065D50: 3169 PUSH32(esp, ebp); /* 0x2B065D50: push ebp */ 3170 ebp = esp; /* 0x2B065D51: mov ebp, esp */ 3171 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 3172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3173 esp = esp - 0x28u; /* 0x2B065D53: sub esp, 0x28 */ 3174 _flag_k = FK_CMP; 3175 PUSH32(esp, ebx); /* 0x2B065D56: push ebx */ 3176 ebx = ecx; /* 0x2B065D57: mov ebx, ecx */ 3177 /* cmp MEM32(ebx), 0 */ /* 0x2B065D59: cmp dword ptr [ebx], 0 */ 3178 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0); 3179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3180 _flag_k = FK_CMP; 3181 PUSH32(esp, esi); /* 0x2B065D5C: push esi */ 3182 PUSH32(esp, edi); /* 0x2B065D5D: push edi */ 3183 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065D6F; /* 0x2B065D5E: jne 0x2b065d6f */ 3184 L_2B065D60: 3185 PUSH32(esp, 0); /* 0x2B065D60: push 0 */ 3186 PUSH32(esp, 0x2B066090u); /* 0x2B065D62: push 0x2b066090 */ 3187 PUSH32(esp, 0); /* 0x2B065D67: push 0 */ 3188 RECOMP_ICALL(MEM32(0x2B0B52C8)); /* 0x2B065D69: call dword ptr [0x2b0b52c8] */ 3189 RECOMP_FLAGS_IN(); 3190 L_2B065D6F: 3191 eax = MEM32(ebx + 0x18); /* 0x2B065D6F: mov eax, dword ptr [ebx + 0x18] */ 3192 /* cmp eax, 0x4E20u */ /* 0x2B065D72: cmp eax, 0x4e20 */ 3193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4E20u); 3194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3195 _flag_k = FK_CMP; 3196 if (CMP_BE(_flag_a, _flag_b)) goto L_2B065DDE; /* 0x2B065D77: jbe 0x2b065dde */ 3197 L_2B065D79: 3198 esi = MEM32(ebx + 0x14); /* 0x2B065D79: mov esi, dword ptr [ebx + 0x14] */ 3199 ecx = esi + 0x4; /* 0x2B065D7C: lea ecx, [esi + 4] */ 3200 edx = ecx; /* 0x2B065D7F: mov edx, ecx */ 3201 ecx = MEM32(edx); /* 0x2B065D81: mov ecx, dword ptr [edx] */ 3202 MEM32(ebp + (-0x18)) = ecx; /* 0x2B065D83: mov dword ptr [ebp - 0x18], ecx */ 3203 ecx = MEM32(edx + 0x4); /* 0x2B065D86: mov ecx, dword ptr [edx + 4] */ 3204 MEM32(ebp + (-0x14)) = ecx; /* 0x2B065D89: mov dword ptr [ebp - 0x14], ecx */ 3205 ecx = MEM32(edx + 0x8); /* 0x2B065D8C: mov ecx, dword ptr [edx + 8] */ 3206 edx = MEM32(edx + 0xC); /* 0x2B065D8F: mov edx, dword ptr [edx + 0xc] */ 3207 MEM32(ebp + (-0xC)) = edx; /* 0x2B065D92: mov dword ptr [ebp - 0xc], edx */ 3208 edx = esi + 0x14; /* 0x2B065D95: lea edx, [esi + 0x14] */ 3209 edi = edx; /* 0x2B065D98: mov edi, edx */ 3210 edx = MEM32(edi); /* 0x2B065D9A: mov edx, dword ptr [edi] */ 3211 MEM32(ebp + (-0x18)) = edx; /* 0x2B065D9C: mov dword ptr [ebp - 0x18], edx */ 3212 edx = MEM32(edi + 0x4); /* 0x2B065D9F: mov edx, dword ptr [edi + 4] */ 3213 MEM32(ebp + (-0x14)) = edx; /* 0x2B065DA2: mov dword ptr [ebp - 0x14], edx */ 3214 edx = MEM32(edi + 0x8); /* 0x2B065DA5: mov edx, dword ptr [edi + 8] */ 3215 /* cmp ecx, edx */ /* 0x2B065DA8: cmp ecx, edx */ 3216 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3218 _flag_k = FK_CMP; 3219 edi = MEM32(edi + 0xC); /* 0x2B065DAA: mov edi, dword ptr [edi + 0xc] */ 3220 MEM32(ebp + (-0xC)) = edi; /* 0x2B065DAD: mov dword ptr [ebp - 0xc], edi */ 3221 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065DDE; /* 0x2B065DB0: je 0x2b065dde */ 3222 L_2B065DB2: 3223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3225 eax = eax - MEM32(ecx + 0x8); /* 0x2B065DB2: sub eax, dword ptr [ecx + 8] */ 3226 _flag_k = FK_CMP; 3227 MEM32(ebx + 0x18) = eax; /* 0x2B065DB5: mov dword ptr [ebx + 0x18], eax */ 3228 eax = MEM32(esi + 0x2C); /* 0x2B065DB8: mov eax, dword ptr [esi + 0x2c] */ 3229 /* test eax, eax */ /* 0x2B065DBB: test eax, eax */ 3230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3231 _cf = 0; 3232 _flag_k = FK_TEST; 3233 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065DD0; /* 0x2B065DBD: je 0x2b065dd0 */ 3234 L_2B065DBF: 3235 ecx = MEM32(esi + 0xC); /* 0x2B065DBF: mov ecx, dword ptr [esi + 0xc] */ 3236 PUSH32(esp, 0); /* 0x2B065DC2: push 0 */ 3237 RECOMP_ICALL(0x2B003E70u); /* 0x2B065DC4: call 0x2b003e70 */ /* not lifted */ 3238 RECOMP_FLAGS_IN(); 3239 ecx = esi; /* 0x2B065DC9: mov ecx, esi */ 3240 RECOMP_ICALL(0x2B066310u); /* 0x2B065DCB: call 0x2b066310 */ /* not lifted */ 3241 RECOMP_FLAGS_IN(); 3242 L_2B065DD0: 3243 eax = MEM32(ebx + 0x18); /* 0x2B065DD0: mov eax, dword ptr [ebx + 0x18] */ 3244 /* cmp eax, 0x4E20u */ /* 0x2B065DD3: cmp eax, 0x4e20 */ 3245 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4E20u); 3246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3247 _flag_k = FK_CMP; 3248 MEM8(ebx + 0x10) = (uint8_t)(1); /* 0x2B065DD8: mov byte ptr [ebx + 0x10], 1 */ 3249 RECOMP_BACKEDGE(); 3250 if (CMP_A(_flag_a, _flag_b)) goto L_2B065D79; /* 0x2B065DDC: ja 0x2b065d79 */ 3251 L_2B065DDE: 3252 SET_LO8(eax, MEM8(ebx + 0x10)); /* 0x2B065DDE: mov al, byte ptr [ebx + 0x10] */ 3253 /* test LO8(eax), LO8(eax) */ /* 0x2B065DE1: test al, al */ 3254 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3255 _cf = 0; 3256 _flag_k = FK_NARROW(FK_TEST, 24); 3257 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065EE8; /* 0x2B065DE3: je 0x2b065ee8 */ 3258 L_2B065DE9: 3259 /* cmp MEM32(ebx), 0 */ /* 0x2B065DE9: cmp dword ptr [ebx], 0 */ 3260 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0); 3261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3262 _flag_k = FK_CMP; 3263 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065EE8; /* 0x2B065DEC: je 0x2b065ee8 */ 3264 L_2B065DF2: 3265 eax = MEM32(ebx + 0xC); /* 0x2B065DF2: mov eax, dword ptr [ebx + 0xc] */ 3266 /* test eax, eax */ /* 0x2B065DF5: test eax, eax */ 3267 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3268 _cf = 0; 3269 _flag_k = FK_TEST; 3270 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065EE8; /* 0x2B065DF7: je 0x2b065ee8 */ 3271 L_2B065DFD: 3272 eax = MEM32(ebx + 0x8); /* 0x2B065DFD: mov eax, dword ptr [ebx + 8] */ 3273 /* test eax, eax */ /* 0x2B065E00: test eax, eax */ 3274 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3275 _cf = 0; 3276 _flag_k = FK_TEST; 3277 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065EE8; /* 0x2B065E02: je 0x2b065ee8 */ 3278 L_2B065E08: 3279 MEM8(eax) = (uint8_t)(0); /* 0x2B065E08: mov byte ptr [eax], 0 */ 3280 eax = MEM32(ebx + 0x14); /* 0x2B065E0B: mov eax, dword ptr [ebx + 0x14] */ 3281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3283 eax = eax + 4; /* 0x2B065E0E: add eax, 4 */ 3284 _flag_k = FK_ADD; 3285 ecx = MEM32(eax); /* 0x2B065E11: mov ecx, dword ptr [eax] */ 3286 edx = MEM32(eax + 0x4); /* 0x2B065E13: mov edx, dword ptr [eax + 4] */ 3287 MEM32(ebp + (-0x14)) = edx; /* 0x2B065E16: mov dword ptr [ebp - 0x14], edx */ 3288 edx = MEM32(eax + 0x8); /* 0x2B065E19: mov edx, dword ptr [eax + 8] */ 3289 eax = MEM32(eax + 0xC); /* 0x2B065E1C: mov eax, dword ptr [eax + 0xc] */ 3290 MEM32(ebp + (-0x18)) = ecx; /* 0x2B065E1F: mov dword ptr [ebp - 0x18], ecx */ 3291 MEM32(ebp + (-0xC)) = eax; /* 0x2B065E22: mov dword ptr [ebp - 0xc], eax */ 3292 MEM32(ebp + (-0x4)) = 0; /* 0x2B065E25: mov dword ptr [ebp - 4], 0 */ 3293 L_2B065E2C: 3294 ecx = MEM32(ebx + 0x14); /* 0x2B065E2C: mov ecx, dword ptr [ebx + 0x14] */ 3295 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 3296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3297 ecx = ecx + 0x14u; /* 0x2B065E2F: add ecx, 0x14 */ 3298 _flag_k = FK_ADD; 3299 eax = MEM32(ecx); /* 0x2B065E32: mov eax, dword ptr [ecx] */ 3300 MEM32(ebp + (-0x28)) = eax; /* 0x2B065E34: mov dword ptr [ebp - 0x28], eax */ 3301 eax = MEM32(ecx + 0x4); /* 0x2B065E37: mov eax, dword ptr [ecx + 4] */ 3302 MEM32(ebp + (-0x24)) = eax; /* 0x2B065E3A: mov dword ptr [ebp - 0x24], eax */ 3303 eax = MEM32(ecx + 0x8); /* 0x2B065E3D: mov eax, dword ptr [ecx + 8] */ 3304 /* cmp edx, eax */ /* 0x2B065E40: cmp edx, eax */ 3305 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3307 _flag_k = FK_CMP; 3308 ecx = MEM32(ecx + 0xC); /* 0x2B065E42: mov ecx, dword ptr [ecx + 0xc] */ 3309 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B065E45: mov dword ptr [ebp - 0x1c], ecx */ 3310 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065EBA; /* 0x2B065E48: je 0x2b065eba */ 3311 L_2B065E4A: 3312 edi = MEM32(edx + 0x4); /* 0x2B065E4A: mov edi, dword ptr [edx + 4] */ 3313 /* test edi, edi */ /* 0x2B065E4D: test edi, edi */ 3314 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3315 _cf = 0; 3316 _flag_k = FK_TEST; 3317 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B065E57; /* 0x2B065E4F: jne 0x2b065e57 */ 3318 L_2B065E51: 3319 edi = MEM32(0x2B0B513C); /* 0x2B065E51: mov edi, dword ptr [0x2b0b513c] */ 3320 L_2B065E57: 3321 esi = MEM32(ebx + 0x8); /* 0x2B065E57: mov esi, dword ptr [ebx + 8] */ 3322 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 3323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3324 esi = esi + MEM32(ebp + (-0x4)); /* 0x2B065E5A: add esi, dword ptr [ebp - 4] */ 3325 _flag_k = FK_ADD; 3326 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3327 ecx = ecx | 0xFFFFFFFFu; /* 0x2B065E5D: or ecx, 0xffffffff */ 3328 _cf = 0; 3329 _flag_k = FK_TEST; 3330 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3331 eax = 0; /* 0x2B065E60: xor eax, eax */ 3332 _cf = 0; 3333 _flag_k = FK_TEST; 3334 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B065E62: repne scasb al, byte ptr es:[edi] */ 3335 ecx = ~ecx; /* 0x2B065E64: not ecx */ 3336 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3338 edi = edi - ecx; /* 0x2B065E66: sub edi, ecx */ 3339 _flag_k = FK_CMP; 3340 eax = ecx; /* 0x2B065E68: mov eax, ecx */ 3341 MEM32(ebp + (-0x8)) = esi; /* 0x2B065E6A: mov dword ptr [ebp - 8], esi */ 3342 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B065E6D: shr ecx, 2 */ 3343 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3344 ecx = ecx >> 2u; /* 0x2B065E6D: shr ecx, 2 */ 3345 esi = edi; /* 0x2B065E70: mov esi, edi */ 3346 edi = MEM32(ebp + (-0x8)); /* 0x2B065E72: mov edi, dword ptr [ebp - 8] */ 3347 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B065E75: 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; } 3348 ecx = eax; /* 0x2B065E77: mov ecx, eax */ 3349 eax = MEM32(ebp + (-0x14)); /* 0x2B065E79: mov eax, dword ptr [ebp - 0x14] */ 3350 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3351 ecx = ecx & 3; /* 0x2B065E7C: and ecx, 3 */ 3352 _cf = 0; 3353 _flag_k = FK_TEST; 3354 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B065E7F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3355 esi = MEM32(ebp + (-0x4)); /* 0x2B065E81: mov esi, dword ptr [ebp - 4] */ 3356 ecx = MEM32(edx + 0x8); /* 0x2B065E84: mov ecx, dword ptr [edx + 8] */ 3357 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 3358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3359 esi = esi + ecx; /* 0x2B065E87: add esi, ecx */ 3360 _flag_k = FK_ADD; 3361 /* cmp edx, eax */ /* 0x2B065E89: cmp edx, eax */ 3362 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3364 _flag_k = FK_CMP; 3365 MEM32(ebp + (-0x4)) = esi; /* 0x2B065E8B: mov dword ptr [ebp - 4], esi */ 3366 RECOMP_BACKEDGE(); 3367 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B065E2C; /* 0x2B065E8E: je 0x2b065e2c */ 3368 L_2B065E90: 3369 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 3370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3371 edx = edx + 0x10u; /* 0x2B065E90: add edx, 0x10 */ 3372 _flag_k = FK_ADD; 3373 /* cmp edx, eax */ /* 0x2B065E93: cmp edx, eax */ 3374 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3376 _flag_k = FK_CMP; 3377 RECOMP_BACKEDGE(); 3378 if (CMP_NE(_flag_a, _flag_b)) goto L_2B065E2C; /* 0x2B065E95: jne 0x2b065e2c */ 3379 L_2B065E97: 3380 eax = MEM32(ebp + (-0xC)); /* 0x2B065E97: mov eax, dword ptr [ebp - 0xc] */ 3381 ecx = MEM32(eax + 0x4); /* 0x2B065E9A: mov ecx, dword ptr [eax + 4] */ 3382 /* test ecx, ecx */ /* 0x2B065E9D: test ecx, ecx */ 3383 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3384 _cf = 0; 3385 _flag_k = FK_TEST; 3386 RECOMP_BACKEDGE(); 3387 if (TEST_Z(_flag_a, _flag_b)) goto L_2B065E2C; /* 0x2B065E9F: je 0x2b065e2c */ 3388 L_2B065EA1: 3389 ecx = eax; /* 0x2B065EA1: mov ecx, eax */ 3390 edx = MEM32(ecx + 0x4); /* 0x2B065EA3: mov edx, dword ptr [ecx + 4] */ 3391 eax = ecx + 0x4; /* 0x2B065EA6: lea eax, [ecx + 4] */ 3392 MEM32(ebp + (-0xC)) = eax; /* 0x2B065EA9: mov dword ptr [ebp - 0xc], eax */ 3393 eax = edx + 0x1000; /* 0x2B065EAC: lea eax, [edx + 0x1000] */ 3394 MEM32(ebp + (-0x14)) = eax; /* 0x2B065EB2: mov dword ptr [ebp - 0x14], eax */ 3395 RECOMP_BACKEDGE(); 3396 goto L_2B065E2C; /* 0x2B065EB5: jmp 0x2b065e2c */ 3397 L_2B065EBA: 3398 ecx = MEM32(ebx + 0x1C); /* 0x2B065EBA: mov ecx, dword ptr [ebx + 0x1c] */ 3399 edx = MEM32(ebx + 0x8); /* 0x2B065EBD: mov edx, dword ptr [ebx + 8] */ 3400 PUSH32(esp, ecx); /* 0x2B065EC0: push ecx */ 3401 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 3402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3403 edx = edx + MEM32(ebp + (-0x4)); /* 0x2B065EC1: add edx, dword ptr [ebp - 4] */ 3404 _flag_k = FK_ADD; 3405 PUSH32(esp, 0x2B0EB03Cu); /* 0x2B065EC4: push 0x2b0eb03c */ 3406 PUSH32(esp, edx); /* 0x2B065EC9: push edx */ 3407 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B065ECA: call dword ptr [0x2b0b51f0] */ 3408 RECOMP_FLAGS_IN(); 3409 eax = MEM32(ebx + 0xC); /* 0x2B065ED0: mov eax, dword ptr [ebx + 0xc] */ 3410 ecx = MEM32(ebx); /* 0x2B065ED3: mov ecx, dword ptr [ebx] */ 3411 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3413 esp = esp + 0xCu; /* 0x2B065ED5: add esp, 0xc */ 3414 _flag_k = FK_ADD; 3415 PUSH32(esp, 0); /* 0x2B065ED8: push 0 */ 3416 PUSH32(esp, 0); /* 0x2B065EDA: push 0 */ 3417 PUSH32(esp, eax); /* 0x2B065EDC: push eax */ 3418 PUSH32(esp, ecx); /* 0x2B065EDD: push ecx */ 3419 RECOMP_ICALL(MEM32(0x2B0B52C4)); /* 0x2B065EDE: call dword ptr [0x2b0b52c4] */ 3420 RECOMP_FLAGS_IN(); 3421 MEM8(ebx + 0x10) = (uint8_t)(0); /* 0x2B065EE4: mov byte ptr [ebx + 0x10], 0 */ 3422 L_2B065EE8: 3423 edi = POP32_VAL(esp); /* 0x2B065EE8: pop edi */ 3424 esi = POP32_VAL(esp); /* 0x2B065EE9: pop esi */ 3425 ebx = POP32_VAL(esp); /* 0x2B065EEA: pop ebx */ 3426 esp = ebp; /* 0x2B065EEB: mov esp, ebp */ 3427 ebp = POP32_VAL(esp); /* 0x2B065EED: pop ebp */ 3428 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B065EEE: ret */ 3429 L_2B066620: 3430 ecx = MEM32(0x2B0EEDF4); /* 0x2B066620: mov ecx, dword ptr [0x2b0eedf4] */ 3431 /* test ecx, ecx */ /* 0x2B066626: test ecx, ecx */ 3432 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3433 _cf = 0; 3434 _flag_k = FK_TEST; 3435 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06662F; /* 0x2B066628: je 0x2b06662f */ 3436 L_2B06662A: 3437 RECOMP_BACKEDGE(); 3438 goto L_2B065D50; /* 0x2B06662A: jmp 0x2b065d50 */ 3439 L_2B06662F: 3440 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06662F: ret */ 3441 RECOMP_REGS_OUT(); 3442 } 3443 3444 void sub_2B066630(void) { 3445 int _fpu_cmp = 0; 3446 uint32_t _cf = 0; 3447 int _df = 1; 3448 uint32_t _flag_k = FK_NONE; 3449 uint32_t _flag_a = 0, _flag_b = 0; 3450 uint32_t _itail_tgt = 0; 3451 RECOMP_REGS_LOCALS 3452 RECOMP_ENTER(0x2B066630u); 3453 3454 L_2B066630: 3455 PUSH32(esp, ebp); /* 0x2B066630: push ebp */ 3456 ebp = esp; /* 0x2B066631: mov ebp, esp */ 3457 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B066633: push -1 */ 3458 PUSH32(esp, 0x2B0B0B6Bu); /* 0x2B066635: push 0x2b0b0b6b */ 3459 eax = MEM32(FS_BASE + (0)); /* 0x2B06663A: mov eax, dword ptr fs:[0] */ 3460 PUSH32(esp, eax); /* 0x2B066640: push eax */ 3461 MEM32(FS_BASE + (0)) = esp; /* 0x2B066641: mov dword ptr fs:[0], esp */ 3462 PUSH32(esp, ecx); /* 0x2B066648: push ecx */ 3463 eax = MEM32(0x2B0EEDF8); /* 0x2B066649: mov eax, dword ptr [0x2b0eedf8] */ 3464 /* test eax, eax */ /* 0x2B06664E: test eax, eax */ 3465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3466 _cf = 0; 3467 _flag_k = FK_TEST; 3468 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B06668B; /* 0x2B066650: jne 0x2b06668b */ 3469 L_2B066652: 3470 PUSH32(esp, 1); /* 0x2B066652: push 1 */ 3471 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066654: call 0x2b0ab212 */ /* not lifted */ 3472 RECOMP_FLAGS_IN(); 3473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3475 esp = esp + 4; /* 0x2B066659: add esp, 4 */ 3476 _flag_k = FK_ADD; 3477 MEM32(ebp + (-0x10)) = eax; /* 0x2B06665C: mov dword ptr [ebp - 0x10], eax */ 3478 /* test eax, eax */ /* 0x2B06665F: test eax, eax */ 3479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3480 _cf = 0; 3481 _flag_k = FK_TEST; 3482 MEM32(ebp + (-0x4)) = 0; /* 0x2B066661: mov dword ptr [ebp - 4], 0 */ 3483 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066684; /* 0x2B066668: je 0x2b066684 */ 3484 L_2B06666A: 3485 ecx = eax; /* 0x2B06666A: mov ecx, eax */ 3486 RECOMP_ICALL(0x2B0666C0u); /* 0x2B06666C: call 0x2b0666c0 */ /* not lifted */ 3487 RECOMP_FLAGS_IN(); 3488 MEM32(0x2B0EEDF8) = eax; /* 0x2B066671: mov dword ptr [0x2b0eedf8], eax */ 3489 ecx = MEM32(ebp + (-0xC)); /* 0x2B066676: mov ecx, dword ptr [ebp - 0xc] */ 3490 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066679: mov dword ptr fs:[0], ecx */ 3491 esp = ebp; /* 0x2B066680: mov esp, ebp */ 3492 ebp = POP32_VAL(esp); /* 0x2B066682: pop ebp */ 3493 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066683: ret */ 3494 L_2B066684: 3495 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3496 eax = 0; /* 0x2B066684: xor eax, eax */ 3497 _cf = 0; 3498 _flag_k = FK_TEST; 3499 MEM32(0x2B0EEDF8) = eax; /* 0x2B066686: mov dword ptr [0x2b0eedf8], eax */ 3500 L_2B06668B: 3501 ecx = MEM32(ebp + (-0xC)); /* 0x2B06668B: mov ecx, dword ptr [ebp - 0xc] */ 3502 MEM32(FS_BASE + (0)) = ecx; /* 0x2B06668E: mov dword ptr fs:[0], ecx */ 3503 esp = ebp; /* 0x2B066695: mov esp, ebp */ 3504 ebp = POP32_VAL(esp); /* 0x2B066697: pop ebp */ 3505 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066698: ret */ 3506 RECOMP_REGS_OUT(); 3507 } 3508 3509 void sub_2B0666A0(void) { 3510 int _fpu_cmp = 0; 3511 uint32_t _cf = 0; 3512 int _df = 1; 3513 uint32_t _flag_k = FK_NONE; 3514 uint32_t _flag_a = 0, _flag_b = 0; 3515 uint32_t _itail_tgt = 0; 3516 RECOMP_REGS_LOCALS 3517 RECOMP_ENTER(0x2B0666A0u); 3518 3519 L_2B0666A0: 3520 eax = MEM32(0x2B0EEDF8); /* 0x2B0666A0: mov eax, dword ptr [0x2b0eedf8] */ 3521 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0666A5: ret */ 3522 RECOMP_REGS_OUT(); 3523 } 3524 3525 void sub_2B0666B0(void) { 3526 int _fpu_cmp = 0; 3527 uint32_t _cf = 0; 3528 int _df = 1; 3529 uint32_t _flag_k = FK_NONE; 3530 uint32_t _flag_a = 0, _flag_b = 0; 3531 uint32_t _itail_tgt = 0; 3532 RECOMP_REGS_LOCALS 3533 RECOMP_ENTER(0x2B0666B0u); 3534 3535 L_2B0666B0: 3536 MEM32(0x2B0EEDF8) = 0; /* 0x2B0666B0: mov dword ptr [0x2b0eedf8], 0 */ 3537 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0666BA: ret */ 3538 RECOMP_REGS_OUT(); 3539 } 3540 3541 void sub_2B0666C0(void) { 3542 int _fpu_cmp = 0; 3543 uint32_t _cf = 0; 3544 int _df = 1; 3545 uint32_t _flag_k = FK_NONE; 3546 uint32_t _flag_a = 0, _flag_b = 0; 3547 uint32_t _itail_tgt = 0; 3548 RECOMP_REGS_LOCALS 3549 RECOMP_ENTER(0x2B0666C0u); 3550 3551 L_2B0666C0: 3552 PUSH32(esp, ebx); /* 0x2B0666C0: push ebx */ 3553 PUSH32(esp, esi); /* 0x2B0666C1: push esi */ 3554 esi = MEM32(0x2B0B53CC); /* 0x2B0666C2: mov esi, dword ptr [0x2b0b53cc] */ 3555 PUSH32(esp, edi); /* 0x2B0666C8: push edi */ 3556 edi = ecx; /* 0x2B0666C9: mov edi, ecx */ 3557 RECOMP_ICALL(esi); /* 0x2B0666CB: call esi */ 3558 RECOMP_FLAGS_IN(); 3559 ecx = eax; /* 0x2B0666CD: mov ecx, eax */ 3560 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B0666CF: call dword ptr [0x2b0b5374] */ 3561 RECOMP_FLAGS_IN(); 3562 PUSH32(esp, 0); /* 0x2B0666D5: push 0 */ 3563 PUSH32(esp, 0x43u); /* 0x2B0666D7: push 0x43 */ 3564 PUSH32(esp, 0xCu); /* 0x2B0666D9: push 0xc */ 3565 RECOMP_ICALL(esi); /* 0x2B0666DB: call esi */ 3566 RECOMP_FLAGS_IN(); 3567 ecx = eax; /* 0x2B0666DD: mov ecx, eax */ 3568 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B0666DF: call dword ptr [0x2b0b5378] */ 3569 RECOMP_FLAGS_IN(); 3570 PUSH32(esp, 0x2B066720u); /* 0x2B0666E5: push 0x2b066720 */ 3571 PUSH32(esp, 5); /* 0x2B0666EA: push 5 */ 3572 RECOMP_ICALL(esi); /* 0x2B0666EC: call esi */ 3573 RECOMP_FLAGS_IN(); 3574 ebx = MEM32(0x2B0B5324); /* 0x2B0666EE: mov ebx, dword ptr [0x2b0b5324] */ 3575 ecx = eax; /* 0x2B0666F4: mov ecx, eax */ 3576 RECOMP_ICALL(ebx); /* 0x2B0666F6: call ebx */ 3577 RECOMP_FLAGS_IN(); 3578 PUSH32(esp, 0x2B066840u); /* 0x2B0666F8: push 0x2b066840 */ 3579 PUSH32(esp, 6); /* 0x2B0666FD: push 6 */ 3580 RECOMP_ICALL(esi); /* 0x2B0666FF: call esi */ 3581 RECOMP_FLAGS_IN(); 3582 ecx = eax; /* 0x2B066701: mov ecx, eax */ 3583 RECOMP_ICALL(ebx); /* 0x2B066703: call ebx */ 3584 RECOMP_FLAGS_IN(); 3585 PUSH32(esp, 0x2B0668B0u); /* 0x2B066705: push 0x2b0668b0 */ 3586 RECOMP_ICALL(esi); /* 0x2B06670A: call esi */ 3587 RECOMP_FLAGS_IN(); 3588 ecx = eax; /* 0x2B06670C: mov ecx, eax */ 3589 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B06670E: call dword ptr [0x2b0b537c] */ 3590 RECOMP_FLAGS_IN(); 3591 eax = edi; /* 0x2B066714: mov eax, edi */ 3592 edi = POP32_VAL(esp); /* 0x2B066716: pop edi */ 3593 esi = POP32_VAL(esp); /* 0x2B066717: pop esi */ 3594 ebx = POP32_VAL(esp); /* 0x2B066718: pop ebx */ 3595 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066719: ret */ 3596 RECOMP_REGS_OUT(); 3597 } 3598 3599 void sub_2B066720(void) { 3600 int _fpu_cmp = 0; 3601 uint32_t _cf = 0; 3602 int _df = 1; 3603 uint32_t _flag_k = FK_NONE; 3604 uint32_t _flag_a = 0, _flag_b = 0; 3605 uint32_t _itail_tgt = 0; 3606 RECOMP_REGS_LOCALS 3607 RECOMP_ENTER(0x2B066720u); 3608 3609 L_2B066720: 3610 PUSH32(esp, ebp); /* 0x2B066720: push ebp */ 3611 ebp = esp; /* 0x2B066721: mov ebp, esp */ 3612 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B066723: push -1 */ 3613 PUSH32(esp, 0x2B0B0BA1u); /* 0x2B066725: push 0x2b0b0ba1 */ 3614 eax = MEM32(FS_BASE + (0)); /* 0x2B06672A: mov eax, dword ptr fs:[0] */ 3615 PUSH32(esp, eax); /* 0x2B066730: push eax */ 3616 MEM32(FS_BASE + (0)) = esp; /* 0x2B066731: mov dword ptr fs:[0], esp */ 3617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3619 esp = esp - 0x14u; /* 0x2B066738: sub esp, 0x14 */ 3620 _flag_k = FK_CMP; 3621 PUSH32(esp, 0x34u); /* 0x2B06673B: push 0x34 */ 3622 RECOMP_ICALL(0x2B0AB212u); /* 0x2B06673D: call 0x2b0ab212 */ /* not lifted */ 3623 RECOMP_FLAGS_IN(); 3624 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3626 esp = esp + 4; /* 0x2B066742: add esp, 4 */ 3627 _flag_k = FK_ADD; 3628 MEM32(ebp + (-0x14)) = eax; /* 0x2B066745: mov dword ptr [ebp - 0x14], eax */ 3629 /* test eax, eax */ /* 0x2B066748: test eax, eax */ 3630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3631 _cf = 0; 3632 _flag_k = FK_TEST; 3633 MEM32(ebp + (-0x4)) = 0; /* 0x2B06674A: mov dword ptr [ebp - 4], 0 */ 3634 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066763; /* 0x2B066751: je 0x2b066763 */ 3635 L_2B066753: 3636 PUSH32(esp, 2); /* 0x2B066753: push 2 */ 3637 PUSH32(esp, 0x10u); /* 0x2B066755: push 0x10 */ 3638 PUSH32(esp, 0x40u); /* 0x2B066757: push 0x40 */ 3639 ecx = eax; /* 0x2B066759: mov ecx, eax */ 3640 RECOMP_ICALL(MEM32(0x2B0B5650)); /* 0x2B06675B: call dword ptr [0x2b0b5650] */ 3641 RECOMP_FLAGS_IN(); 3642 goto L_2B066765; /* 0x2B066761: jmp 0x2b066765 */ 3643 L_2B066763: 3644 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3645 eax = 0; /* 0x2B066763: xor eax, eax */ 3646 _cf = 0; 3647 _flag_k = FK_TEST; 3648 L_2B066765: 3649 PUSH32(esp, esi); /* 0x2B066765: push esi */ 3650 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 3651 esi = esi | 0xFFFFFFFFu; /* 0x2B066766: or esi, 0xffffffff */ 3652 _cf = 0; 3653 _flag_k = FK_TEST; 3654 PUSH32(esp, 0x38u); /* 0x2B066769: push 0x38 */ 3655 MEM32(ebp + (-0x4)) = esi; /* 0x2B06676B: mov dword ptr [ebp - 4], esi */ 3656 MEM32(0x2B0EEE00) = eax; /* 0x2B06676E: mov dword ptr [0x2b0eee00], eax */ 3657 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066773: call 0x2b0ab212 */ /* not lifted */ 3658 RECOMP_FLAGS_IN(); 3659 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3660 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3661 esp = esp + 4; /* 0x2B066778: add esp, 4 */ 3662 _flag_k = FK_ADD; 3663 MEM32(ebp + (-0x14)) = eax; /* 0x2B06677B: mov dword ptr [ebp - 0x14], eax */ 3664 /* test eax, eax */ /* 0x2B06677E: test eax, eax */ 3665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3666 _cf = 0; 3667 _flag_k = FK_TEST; 3668 MEM32(ebp + (-0x4)) = 1; /* 0x2B066780: mov dword ptr [ebp - 4], 1 */ 3669 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06679E; /* 0x2B066787: je 0x2b06679e */ 3670 L_2B066789: 3671 ecx = MEM32(0x2B0EEE00); /* 0x2B066789: mov ecx, dword ptr [0x2b0eee00] */ 3672 PUSH32(esp, ecx); /* 0x2B06678F: push ecx */ 3673 PUSH32(esp, 2); /* 0x2B066790: push 2 */ 3674 PUSH32(esp, 0); /* 0x2B066792: push 0 */ 3675 ecx = eax; /* 0x2B066794: mov ecx, eax */ 3676 RECOMP_ICALL(MEM32(0x2B0B5BF0)); /* 0x2B066796: call dword ptr [0x2b0b5bf0] */ 3677 RECOMP_FLAGS_IN(); 3678 goto L_2B0667A0; /* 0x2B06679C: jmp 0x2b0667a0 */ 3679 L_2B06679E: 3680 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3681 eax = 0; /* 0x2B06679E: xor eax, eax */ 3682 _cf = 0; 3683 _flag_k = FK_TEST; 3684 L_2B0667A0: 3685 PUSH32(esp, 0xD8u); /* 0x2B0667A0: push 0xd8 */ 3686 MEM32(ebp + (-0x4)) = esi; /* 0x2B0667A5: mov dword ptr [ebp - 4], esi */ 3687 MEM32(0x2B0EEDFC) = eax; /* 0x2B0667A8: mov dword ptr [0x2b0eedfc], eax */ 3688 MEM32(ebp + (-0x20)) = 0x14u; /* 0x2B0667AD: mov dword ptr [ebp - 0x20], 0x14 */ 3689 MEM32(ebp + (-0x1C)) = 0x1Eu; /* 0x2B0667B4: mov dword ptr [ebp - 0x1c], 0x1e */ 3690 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0667BB: call 0x2b0ab212 */ /* not lifted */ 3691 RECOMP_FLAGS_IN(); 3692 esi = eax; /* 0x2B0667C0: mov esi, eax */ 3693 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3694 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3695 esp = esp + 4; /* 0x2B0667C2: add esp, 4 */ 3696 _flag_k = FK_ADD; 3697 MEM32(ebp + (-0x18)) = esi; /* 0x2B0667C5: mov dword ptr [ebp - 0x18], esi */ 3698 /* test esi, esi */ /* 0x2B0667C8: test esi, esi */ 3699 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3700 _cf = 0; 3701 _flag_k = FK_TEST; 3702 MEM32(ebp + (-0x4)) = 2; /* 0x2B0667CA: mov dword ptr [ebp - 4], 2 */ 3703 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06681E; /* 0x2B0667D1: je 0x2b06681e */ 3704 L_2B0667D3: 3705 ecx = MEM32(0x2B0EEE00); /* 0x2B0667D3: mov ecx, dword ptr [0x2b0eee00] */ 3706 edx = ebp + (-0x10); /* 0x2B0667D9: lea edx, [ebp - 0x10] */ 3707 PUSH32(esp, edx); /* 0x2B0667DC: push edx */ 3708 eax = ebp + (-0x14); /* 0x2B0667DD: lea eax, [ebp - 0x14] */ 3709 PUSH32(esp, eax); /* 0x2B0667E0: push eax */ 3710 PUSH32(esp, 0); /* 0x2B0667E1: push 0 */ 3711 PUSH32(esp, 0x7558u); /* 0x2B0667E3: push 0x7558 */ 3712 PUSH32(esp, ecx); /* 0x2B0667E8: push ecx */ 3713 edx = ebp + (-0x20); /* 0x2B0667E9: lea edx, [ebp - 0x20] */ 3714 PUSH32(esp, edx); /* 0x2B0667EC: push edx */ 3715 ecx = esi; /* 0x2B0667ED: mov ecx, esi */ 3716 MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x2B0667EF: mov dword ptr [ebp - 0x10], 0x3f800000 */ 3717 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x2B0667F6: mov dword ptr [ebp - 0x14], 0x3f800000 */ 3718 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B0667FD: call dword ptr [0x2b0b5654] */ 3719 RECOMP_FLAGS_IN(); 3720 MEM32(esi) = 0x2B0B618Cu; /* 0x2B066803: mov dword ptr [esi], 0x2b0b618c */ 3721 MEM32(0x2B0EEE04) = esi; /* 0x2B066809: mov dword ptr [0x2b0eee04], esi */ 3722 esi = POP32_VAL(esp); /* 0x2B06680F: pop esi */ 3723 ecx = MEM32(ebp + (-0xC)); /* 0x2B066810: mov ecx, dword ptr [ebp - 0xc] */ 3724 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066813: mov dword ptr fs:[0], ecx */ 3725 esp = ebp; /* 0x2B06681A: mov esp, ebp */ 3726 ebp = POP32_VAL(esp); /* 0x2B06681C: pop ebp */ 3727 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06681D: ret */ 3728 L_2B06681E: 3729 ecx = MEM32(ebp + (-0xC)); /* 0x2B06681E: mov ecx, dword ptr [ebp - 0xc] */ 3730 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3731 eax = 0; /* 0x2B066821: xor eax, eax */ 3732 _cf = 0; 3733 _flag_k = FK_TEST; 3734 MEM32(0x2B0EEE04) = eax; /* 0x2B066823: mov dword ptr [0x2b0eee04], eax */ 3735 esi = POP32_VAL(esp); /* 0x2B066828: pop esi */ 3736 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066829: mov dword ptr fs:[0], ecx */ 3737 esp = ebp; /* 0x2B066830: mov esp, ebp */ 3738 ebp = POP32_VAL(esp); /* 0x2B066832: pop ebp */ 3739 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066833: ret */ 3740 RECOMP_REGS_OUT(); 3741 } 3742 3743 void sub_2B066840(void) { 3744 int _fpu_cmp = 0; 3745 uint32_t _cf = 0; 3746 int _df = 1; 3747 uint32_t _flag_k = FK_NONE; 3748 uint32_t _flag_a = 0, _flag_b = 0; 3749 uint32_t _itail_tgt = 0; 3750 RECOMP_REGS_LOCALS 3751 RECOMP_ENTER(0x2B066840u); 3752 3753 L_2B066840: 3754 ecx = MEM32(0x2B0EEE04); /* 0x2B066840: mov ecx, dword ptr [0x2b0eee04] */ 3755 PUSH32(esp, esi); /* 0x2B066846: push esi */ 3756 PUSH32(esp, edi); /* 0x2B066847: push edi */ 3757 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3758 edi = 0; /* 0x2B066848: xor edi, edi */ 3759 _cf = 0; 3760 _flag_k = FK_TEST; 3761 /* cmp ecx, edi */ /* 0x2B06684A: cmp ecx, edi */ 3762 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3764 _flag_k = FK_CMP; 3765 MEM32(0x2B0EEDF8) = edi; /* 0x2B06684C: mov dword ptr [0x2b0eedf8], edi */ 3766 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B06685A; /* 0x2B066852: je 0x2b06685a */ 3767 L_2B066854: 3768 eax = MEM32(ecx); /* 0x2B066854: mov eax, dword ptr [ecx] */ 3769 PUSH32(esp, 1); /* 0x2B066856: push 1 */ 3770 RECOMP_ICALL(MEM32(eax)); /* 0x2B066858: call dword ptr [eax] */ 3771 RECOMP_FLAGS_IN(); 3772 L_2B06685A: 3773 esi = MEM32(0x2B0EEDFC); /* 0x2B06685A: mov esi, dword ptr [0x2b0eedfc] */ 3774 /* cmp esi, edi */ /* 0x2B066860: cmp esi, edi */ 3775 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3777 _flag_k = FK_CMP; 3778 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066875; /* 0x2B066862: je 0x2b066875 */ 3779 L_2B066864: 3780 ecx = esi; /* 0x2B066864: mov ecx, esi */ 3781 RECOMP_ICALL(MEM32(0x2B0B5BBC)); /* 0x2B066866: call dword ptr [0x2b0b5bbc] */ 3782 RECOMP_FLAGS_IN(); 3783 PUSH32(esp, esi); /* 0x2B06686C: push esi */ 3784 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06686D: call 0x2b0ab1ba */ /* not lifted */ 3785 RECOMP_FLAGS_IN(); 3786 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3788 esp = esp + 4; /* 0x2B066872: add esp, 4 */ 3789 _flag_k = FK_ADD; 3790 L_2B066875: 3791 esi = MEM32(0x2B0EEE00); /* 0x2B066875: mov esi, dword ptr [0x2b0eee00] */ 3792 /* cmp esi, edi */ /* 0x2B06687B: cmp esi, edi */ 3793 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3795 _flag_k = FK_CMP; 3796 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066890; /* 0x2B06687D: je 0x2b066890 */ 3797 L_2B06687F: 3798 ecx = esi; /* 0x2B06687F: mov ecx, esi */ 3799 RECOMP_ICALL(MEM32(0x2B0B5644)); /* 0x2B066881: call dword ptr [0x2b0b5644] */ 3800 RECOMP_FLAGS_IN(); 3801 PUSH32(esp, esi); /* 0x2B066887: push esi */ 3802 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066888: call 0x2b0ab1ba */ /* not lifted */ 3803 RECOMP_FLAGS_IN(); 3804 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3805 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3806 esp = esp + 4; /* 0x2B06688D: add esp, 4 */ 3807 _flag_k = FK_ADD; 3808 L_2B066890: 3809 MEM32(0x2B0EEDFC) = edi; /* 0x2B066890: mov dword ptr [0x2b0eedfc], edi */ 3810 MEM32(0x2B0EEE00) = edi; /* 0x2B066896: mov dword ptr [0x2b0eee00], edi */ 3811 MEM32(0x2B0EEE04) = edi; /* 0x2B06689C: mov dword ptr [0x2b0eee04], edi */ 3812 edi = POP32_VAL(esp); /* 0x2B0668A2: pop edi */ 3813 esi = POP32_VAL(esp); /* 0x2B0668A3: pop esi */ 3814 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0668A4: ret */ 3815 RECOMP_REGS_OUT(); 3816 } 3817 3818 void sub_2B0668B0(void) { 3819 int _fpu_cmp = 0; 3820 uint32_t _cf = 0; 3821 int _df = 1; 3822 uint32_t _flag_k = FK_NONE; 3823 uint32_t _flag_a = 0, _flag_b = 0; 3824 uint32_t _itail_tgt = 0; 3825 RECOMP_REGS_LOCALS 3826 RECOMP_ENTER(0x2B0668B0u); 3827 3828 L_2B0668B0: 3829 PUSH32(esp, ebp); /* 0x2B0668B0: push ebp */ 3830 ebp = esp; /* 0x2B0668B1: mov ebp, esp */ 3831 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0668B3: push -1 */ 3832 PUSH32(esp, 0x2B0B0BCEu); /* 0x2B0668B5: push 0x2b0b0bce */ 3833 eax = MEM32(FS_BASE + (0)); /* 0x2B0668BA: mov eax, dword ptr fs:[0] */ 3834 PUSH32(esp, eax); /* 0x2B0668C0: push eax */ 3835 MEM32(FS_BASE + (0)) = esp; /* 0x2B0668C1: mov dword ptr fs:[0], esp */ 3836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3838 esp = esp - 0x38u; /* 0x2B0668C8: sub esp, 0x38 */ 3839 _flag_k = FK_CMP; 3840 PUSH32(esp, esi); /* 0x2B0668CB: push esi */ 3841 PUSH32(esp, edi); /* 0x2B0668CC: push edi */ 3842 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B0668CD: call dword ptr [0x2b0b53bc] */ 3843 RECOMP_FLAGS_IN(); 3844 fp_push(*(float*)&MEM32(0x2B0B63D0)); /* 0x2B0668D3: fld dword ptr [0x2b0b63d0] */ 3845 _st[0] /= (double)*(float*)ADDR(eax + 0x20); /* 0x2B0668D9: fdiv dword ptr [eax + 0x20] */ 3846 eax = MEM32(0x2B0EEE10); /* 0x2B0668DC: mov eax, dword ptr [0x2b0eee10] */ 3847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3848 eax = eax + 1; /* 0x2B0668E1: inc eax */ 3849 _flag_k = FK_INC; 3850 /* cmp eax, 0x14u */ /* 0x2B0668E2: cmp eax, 0x14 */ 3851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 3852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3853 _flag_k = FK_CMP; 3854 MEM32(0x2B0EEE10) = eax; /* 0x2B0668E5: mov dword ptr [0x2b0eee10], eax */ 3855 fp_push(*(float*)&MEM32(0x2B0EEE08)); /* 0x2B0668EA: fld dword ptr [0x2b0eee08] */ 3856 _st[0] += _st[1]; /* 0x2B0668F0: fadd st(1) */ 3857 { float _v = (float)fp_pop(); *(float*)ADDR(0x2B0EEE08) = _v; } /* 0x2B0668F2: fstp dword ptr [0x2b0eee08] */ 3858 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B0668F8: fstp st(0) */ 3859 if (CMP_NE(_flag_a, _flag_b)) goto L_2B06691E; /* 0x2B0668FA: jne 0x2b06691e */ 3860 L_2B0668FC: 3861 fp_push(*(float*)&MEM32(0x2B0EEE08)); /* 0x2B0668FC: fld dword ptr [0x2b0eee08] */ 3862 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3863 esi = 0; /* 0x2B066902: xor esi, esi */ 3864 _cf = 0; 3865 _flag_k = FK_TEST; 3866 _st[0] *= (double)*(float*)ADDR(0x2B0B6D20); /* 0x2B066904: fmul dword ptr [0x2b0b6d20] */ 3867 MEM32(0x2B0EEE10) = esi; /* 0x2B06690A: mov dword ptr [0x2b0eee10], esi */ 3868 MEM32(0x2B0EEE08) = esi; /* 0x2B066910: mov dword ptr [0x2b0eee08], esi */ 3869 { float _v = (float)fp_pop(); *(float*)ADDR(0x2B0EEE0C) = _v; } /* 0x2B066916: fstp dword ptr [0x2b0eee0c] */ 3870 goto L_2B066920; /* 0x2B06691C: jmp 0x2b066920 */ 3871 L_2B06691E: 3872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3873 esi = 0; /* 0x2B06691E: xor esi, esi */ 3874 _cf = 0; 3875 _flag_k = FK_TEST; 3876 L_2B066920: 3877 fp_push(*(float*)&MEM32(0x2B0EEE0C)); /* 0x2B066920: fld dword ptr [0x2b0eee0c] */ 3878 PUSH32(esp, ebx); /* 0x2B066926: push ebx */ 3879 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3881 esp = esp - 8; /* 0x2B066927: sub esp, 8 */ 3882 _flag_k = FK_CMP; 3883 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x2B06692A: fstp qword ptr [esp] */ 3884 eax = ebp + (-0x44); /* 0x2B06692D: lea eax, [ebp - 0x44] */ 3885 PUSH32(esp, 0x2B0EB070u); /* 0x2B066930: push 0x2b0eb070 */ 3886 PUSH32(esp, eax); /* 0x2B066935: push eax */ 3887 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B066936: call dword ptr [0x2b0b51f0] */ 3888 RECOMP_FLAGS_IN(); 3889 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B06693C: mov cl, byte ptr [ebp - 0xd] */ 3890 MEM8(ebp + (-0x28)) = (uint8_t)(LO8(ecx)); /* 0x2B06693F: mov byte ptr [ebp - 0x28], cl */ 3891 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3892 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3893 esp = esp + 0x10u; /* 0x2B066942: add esp, 0x10 */ 3894 _flag_k = FK_ADD; 3895 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3896 eax = 0; /* 0x2B066945: xor eax, eax */ 3897 _cf = 0; 3898 _flag_k = FK_TEST; 3899 edi = ebp + (-0x44); /* 0x2B066947: lea edi, [ebp - 0x44] */ 3900 PUSH32(esp, 1); /* 0x2B06694A: push 1 */ 3901 MEM32(ebp + (-0x24)) = esi; /* 0x2B06694C: mov dword ptr [ebp - 0x24], esi */ 3902 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3903 ecx = ecx | 0xFFFFFFFFu; /* 0x2B06694F: or ecx, 0xffffffff */ 3904 _cf = 0; 3905 _flag_k = FK_TEST; 3906 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B066952: repne scasb al, byte ptr es:[edi] */ 3907 ecx = ~ecx; /* 0x2B066954: not ecx */ 3908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3909 ecx = ecx - 1; /* 0x2B066956: dec ecx */ 3910 _flag_k = FK_DEC; 3911 ebx = ecx; /* 0x2B066957: mov ebx, ecx */ 3912 PUSH32(esp, ebx); /* 0x2B066959: push ebx */ 3913 ecx = ebp + (-0x28); /* 0x2B06695A: lea ecx, [ebp - 0x28] */ 3914 MEM32(ebp + (-0x20)) = esi; /* 0x2B06695D: mov dword ptr [ebp - 0x20], esi */ 3915 MEM32(ebp + (-0x1C)) = esi; /* 0x2B066960: mov dword ptr [ebp - 0x1c], esi */ 3916 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B066963: call dword ptr [0x2b0b5154] */ 3917 RECOMP_FLAGS_IN(); 3918 /* test LO8(eax), LO8(eax) */ /* 0x2B066969: test al, al */ 3919 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3920 _cf = 0; 3921 _flag_k = FK_NARROW(FK_TEST, 24); 3922 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06698F; /* 0x2B06696B: je 0x2b06698f */ 3923 L_2B06696D: 3924 edi = MEM32(ebp + (-0x24)); /* 0x2B06696D: mov edi, dword ptr [ebp - 0x24] */ 3925 ecx = ebx; /* 0x2B066970: mov ecx, ebx */ 3926 edx = ecx; /* 0x2B066972: mov edx, ecx */ 3927 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B066974: shr ecx, 2 */ 3928 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3929 ecx = ecx >> 2u; /* 0x2B066974: shr ecx, 2 */ 3930 esi = ebp + (-0x44); /* 0x2B066977: lea esi, [ebp - 0x44] */ 3931 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06697A: 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; } 3932 ecx = edx; /* 0x2B06697C: mov ecx, edx */ 3933 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3934 ecx = ecx & 3; /* 0x2B06697E: and ecx, 3 */ 3935 _cf = 0; 3936 _flag_k = FK_TEST; 3937 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B066981: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3938 eax = MEM32(ebp + (-0x24)); /* 0x2B066983: mov eax, dword ptr [ebp - 0x24] */ 3939 MEM32(ebp + (-0x20)) = ebx; /* 0x2B066986: mov dword ptr [ebp - 0x20], ebx */ 3940 MEM8(eax + ebx) = (uint8_t)(0); /* 0x2B066989: mov byte ptr [eax + ebx], 0 */ 3941 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3942 esi = 0; /* 0x2B06698D: xor esi, esi */ 3943 _cf = 0; 3944 _flag_k = FK_TEST; 3945 L_2B06698F: 3946 MEM32(ebp + (-0x18)) = esi; /* 0x2B06698F: mov dword ptr [ebp - 0x18], esi */ 3947 ecx = MEM32(0x2B0EEE00); /* 0x2B066992: mov ecx, dword ptr [0x2b0eee00] */ 3948 PUSH32(esp, 1); /* 0x2B066998: push 1 */ 3949 PUSH32(esp, esi); /* 0x2B06699A: push esi */ 3950 PUSH32(esp, esi); /* 0x2B06699B: push esi */ 3951 MEM32(ebp + (-0x4)) = esi; /* 0x2B06699C: mov dword ptr [ebp - 4], esi */ 3952 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B06699F: call dword ptr [0x2b0b564c] */ 3953 RECOMP_FLAGS_IN(); 3954 PUSH32(esp, esi); /* 0x2B0669A5: push esi */ 3955 PUSH32(esp, esi); /* 0x2B0669A6: push esi */ 3956 PUSH32(esp, esi); /* 0x2B0669A7: push esi */ 3957 PUSH32(esp, 1); /* 0x2B0669A8: push 1 */ 3958 ecx = ebp + (-0x28); /* 0x2B0669AA: lea ecx, [ebp - 0x28] */ 3959 PUSH32(esp, ecx); /* 0x2B0669AD: push ecx */ 3960 ecx = MEM32(0x2B0EEDFC); /* 0x2B0669AE: mov ecx, dword ptr [0x2b0eedfc] */ 3961 RECOMP_ICALL(MEM32(0x2B0B5878)); /* 0x2B0669B4: call dword ptr [0x2b0b5878] */ 3962 RECOMP_FLAGS_IN(); 3963 ecx = MEM32(0x2B0EEE04); /* 0x2B0669BA: mov ecx, dword ptr [0x2b0eee04] */ 3964 eax = MEM32(0x2B0EEE00); /* 0x2B0669C0: mov eax, dword ptr [0x2b0eee00] */ 3965 edx = MEM32(ecx); /* 0x2B0669C5: mov edx, dword ptr [ecx] */ 3966 PUSH32(esp, eax); /* 0x2B0669C7: push eax */ 3967 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2B0669C8: call dword ptr [edx + 0x10] */ 3968 RECOMP_FLAGS_IN(); 3969 eax = MEM32(ebp + (-0x18)); /* 0x2B0669CB: mov eax, dword ptr [ebp - 0x18] */ 3970 /* cmp eax, esi */ /* 0x2B0669CE: cmp eax, esi */ 3971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3973 _flag_k = FK_CMP; 3974 MEM32(ebp + (-0x4)) = 1; /* 0x2B0669D0: mov dword ptr [ebp - 4], 1 */ 3975 ebx = POP32_VAL(esp); /* 0x2B0669D7: pop ebx */ 3976 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066A19; /* 0x2B0669D8: je 0x2b066a19 */ 3977 L_2B0669DA: 3978 edx = MEM32(eax + 0x2C); /* 0x2B0669DA: mov edx, dword ptr [eax + 0x2c] */ 3979 edi = eax; /* 0x2B0669DD: mov edi, eax */ 3980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 3981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3982 eax = eax + 0x2Cu; /* 0x2B0669DF: add eax, 0x2c */ 3983 _flag_k = FK_ADD; 3984 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3985 edx = edx - 1; /* 0x2B0669E2: dec edx */ 3986 _flag_k = FK_DEC; 3987 ecx = edx; /* 0x2B0669E3: mov ecx, edx */ 3988 /* cmp ecx, esi */ /* 0x2B0669E5: cmp ecx, esi */ 3989 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 3990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3991 _flag_k = FK_CMP; 3992 MEM32(eax) = edx; /* 0x2B0669E7: mov dword ptr [eax], edx */ 3993 if (CMP_NE(_flag_a, _flag_b)) goto L_2B066A19; /* 0x2B0669E9: jne 0x2b066a19 */ 3994 L_2B0669EB: 3995 /* cmp edi, esi */ /* 0x2B0669EB: cmp edi, esi */ 3996 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 3997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3998 _flag_k = FK_CMP; 3999 MEM32(ebp + (-0x14)) = edi; /* 0x2B0669ED: mov dword ptr [ebp - 0x14], edi */ 4000 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066A19; /* 0x2B0669F0: je 0x2b066a19 */ 4001 L_2B0669F2: 4002 PUSH32(esp, 1); /* 0x2B0669F2: push 1 */ 4003 ecx = edi + 0x1C; /* 0x2B0669F4: lea ecx, [edi + 0x1c] */ 4004 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B0669F7: mov byte ptr [ebp - 4], 2 */ 4005 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0669FB: call dword ptr [0x2b0b514c] */ 4006 RECOMP_FLAGS_IN(); 4007 PUSH32(esp, 1); /* 0x2B066A01: push 1 */ 4008 ecx = edi + 0xC; /* 0x2B066A03: lea ecx, [edi + 0xc] */ 4009 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B066A06: mov byte ptr [ebp - 4], 1 */ 4010 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B066A0A: call dword ptr [0x2b0b514c] */ 4011 RECOMP_FLAGS_IN(); 4012 PUSH32(esp, edi); /* 0x2B066A10: push edi */ 4013 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066A11: call 0x2b0ab1ba */ /* not lifted */ 4014 RECOMP_FLAGS_IN(); 4015 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4016 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4017 esp = esp + 4; /* 0x2B066A16: add esp, 4 */ 4018 _flag_k = FK_ADD; 4019 L_2B066A19: 4020 ecx = MEM32(ebp + (-0x24)); /* 0x2B066A19: mov ecx, dword ptr [ebp - 0x24] */ 4021 edi = POP32_VAL(esp); /* 0x2B066A1C: pop edi */ 4022 /* cmp ecx, esi */ /* 0x2B066A1D: cmp ecx, esi */ 4023 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 4024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4025 _flag_k = FK_CMP; 4026 esi = POP32_VAL(esp); /* 0x2B066A1F: pop esi */ 4027 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066A4A; /* 0x2B066A20: je 0x2b066a4a */ 4028 L_2B066A22: 4029 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B066A22: mov al, byte ptr [ecx - 1] */ 4030 /* test LO8(eax), LO8(eax) */ /* 0x2B066A25: test al, al */ 4031 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4032 _cf = 0; 4033 _flag_k = FK_NARROW(FK_TEST, 24); 4034 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066A40; /* 0x2B066A27: je 0x2b066a40 */ 4035 L_2B066A29: 4036 /* cmp LO8(eax), 0xFFu */ /* 0x2B066A29: cmp al, 0xff */ 4037 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 4038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4039 _flag_k = FK_NARROW(FK_CMP, 24); 4040 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066A40; /* 0x2B066A2B: je 0x2b066a40 */ 4041 L_2B066A2D: 4042 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4043 SET_LO8(eax, LO8(eax) - 1); /* 0x2B066A2D: dec al */ 4044 _flag_k = FK_NARROW(FK_DEC, 24); 4045 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B066A2F: mov byte ptr [ecx - 1], al */ 4046 ecx = MEM32(ebp + (-0xC)); /* 0x2B066A32: mov ecx, dword ptr [ebp - 0xc] */ 4047 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066A35: mov dword ptr fs:[0], ecx */ 4048 esp = ebp; /* 0x2B066A3C: mov esp, ebp */ 4049 ebp = POP32_VAL(esp); /* 0x2B066A3E: pop ebp */ 4050 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066A3F: ret */ 4051 L_2B066A40: 4052 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4053 ecx = ecx - 1; /* 0x2B066A40: dec ecx */ 4054 _flag_k = FK_DEC; 4055 PUSH32(esp, ecx); /* 0x2B066A41: push ecx */ 4056 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066A42: call 0x2b0ab1ba */ /* not lifted */ 4057 RECOMP_FLAGS_IN(); 4058 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4060 esp = esp + 4; /* 0x2B066A47: add esp, 4 */ 4061 _flag_k = FK_ADD; 4062 L_2B066A4A: 4063 ecx = MEM32(ebp + (-0xC)); /* 0x2B066A4A: mov ecx, dword ptr [ebp - 0xc] */ 4064 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066A4D: mov dword ptr fs:[0], ecx */ 4065 esp = ebp; /* 0x2B066A54: mov esp, ebp */ 4066 ebp = POP32_VAL(esp); /* 0x2B066A56: pop ebp */ 4067 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066A57: ret */ 4068 RECOMP_REGS_OUT(); 4069 } 4070 4071 void sub_2B066A60(void) { 4072 int _fpu_cmp = 0; 4073 uint32_t _cf = 0; 4074 int _df = 1; 4075 uint32_t _flag_k = FK_NONE; 4076 uint32_t _flag_a = 0, _flag_b = 0; 4077 uint32_t _itail_tgt = 0; 4078 RECOMP_REGS_LOCALS 4079 RECOMP_ENTER(0x2B066A60u); 4080 4081 L_2B066A60: 4082 PUSH32(esp, ebp); /* 0x2B066A60: push ebp */ 4083 ebp = esp; /* 0x2B066A61: mov ebp, esp */ 4084 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B066A63: push -1 */ 4085 PUSH32(esp, 0x2B0B0BEBu); /* 0x2B066A65: push 0x2b0b0beb */ 4086 eax = MEM32(FS_BASE + (0)); /* 0x2B066A6A: mov eax, dword ptr fs:[0] */ 4087 PUSH32(esp, eax); /* 0x2B066A70: push eax */ 4088 MEM32(FS_BASE + (0)) = esp; /* 0x2B066A71: mov dword ptr fs:[0], esp */ 4089 PUSH32(esp, ecx); /* 0x2B066A78: push ecx */ 4090 eax = MEM32(0x2B0EEE14); /* 0x2B066A79: mov eax, dword ptr [0x2b0eee14] */ 4091 /* test eax, eax */ /* 0x2B066A7E: test eax, eax */ 4092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4093 _cf = 0; 4094 _flag_k = FK_TEST; 4095 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B066ABB; /* 0x2B066A80: jne 0x2b066abb */ 4096 L_2B066A82: 4097 PUSH32(esp, 1); /* 0x2B066A82: push 1 */ 4098 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066A84: call 0x2b0ab212 */ /* not lifted */ 4099 RECOMP_FLAGS_IN(); 4100 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4102 esp = esp + 4; /* 0x2B066A89: add esp, 4 */ 4103 _flag_k = FK_ADD; 4104 MEM32(ebp + (-0x10)) = eax; /* 0x2B066A8C: mov dword ptr [ebp - 0x10], eax */ 4105 /* test eax, eax */ /* 0x2B066A8F: test eax, eax */ 4106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4107 _cf = 0; 4108 _flag_k = FK_TEST; 4109 MEM32(ebp + (-0x4)) = 0; /* 0x2B066A91: mov dword ptr [ebp - 4], 0 */ 4110 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066AB4; /* 0x2B066A98: je 0x2b066ab4 */ 4111 L_2B066A9A: 4112 ecx = eax; /* 0x2B066A9A: mov ecx, eax */ 4113 RECOMP_ICALL(0x2B066AE0u); /* 0x2B066A9C: call 0x2b066ae0 */ /* not lifted */ 4114 RECOMP_FLAGS_IN(); 4115 MEM32(0x2B0EEE14) = eax; /* 0x2B066AA1: mov dword ptr [0x2b0eee14], eax */ 4116 ecx = MEM32(ebp + (-0xC)); /* 0x2B066AA6: mov ecx, dword ptr [ebp - 0xc] */ 4117 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066AA9: mov dword ptr fs:[0], ecx */ 4118 esp = ebp; /* 0x2B066AB0: mov esp, ebp */ 4119 ebp = POP32_VAL(esp); /* 0x2B066AB2: pop ebp */ 4120 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066AB3: ret */ 4121 L_2B066AB4: 4122 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4123 eax = 0; /* 0x2B066AB4: xor eax, eax */ 4124 _cf = 0; 4125 _flag_k = FK_TEST; 4126 MEM32(0x2B0EEE14) = eax; /* 0x2B066AB6: mov dword ptr [0x2b0eee14], eax */ 4127 L_2B066ABB: 4128 ecx = MEM32(ebp + (-0xC)); /* 0x2B066ABB: mov ecx, dword ptr [ebp - 0xc] */ 4129 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066ABE: mov dword ptr fs:[0], ecx */ 4130 esp = ebp; /* 0x2B066AC5: mov esp, ebp */ 4131 ebp = POP32_VAL(esp); /* 0x2B066AC7: pop ebp */ 4132 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066AC8: ret */ 4133 RECOMP_REGS_OUT(); 4134 } 4135 4136 void sub_2B066AD0(void) { 4137 int _fpu_cmp = 0; 4138 uint32_t _cf = 0; 4139 int _df = 1; 4140 uint32_t _flag_k = FK_NONE; 4141 uint32_t _flag_a = 0, _flag_b = 0; 4142 uint32_t _itail_tgt = 0; 4143 RECOMP_REGS_LOCALS 4144 RECOMP_ENTER(0x2B066AD0u); 4145 4146 L_2B066AD0: 4147 MEM32(0x2B0EEE14) = 0; /* 0x2B066AD0: mov dword ptr [0x2b0eee14], 0 */ 4148 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066ADA: ret */ 4149 RECOMP_REGS_OUT(); 4150 } 4151 4152 void sub_2B066AE0(void) { 4153 int _fpu_cmp = 0; 4154 uint32_t _cf = 0; 4155 int _df = 1; 4156 uint32_t _flag_k = FK_NONE; 4157 uint32_t _flag_a = 0, _flag_b = 0; 4158 uint32_t _itail_tgt = 0; 4159 RECOMP_REGS_LOCALS 4160 RECOMP_ENTER(0x2B066AE0u); 4161 4162 L_2B066AE0: 4163 PUSH32(esp, ebx); /* 0x2B066AE0: push ebx */ 4164 PUSH32(esp, esi); /* 0x2B066AE1: push esi */ 4165 esi = MEM32(0x2B0B53CC); /* 0x2B066AE2: mov esi, dword ptr [0x2b0b53cc] */ 4166 PUSH32(esp, edi); /* 0x2B066AE8: push edi */ 4167 edi = ecx; /* 0x2B066AE9: mov edi, ecx */ 4168 RECOMP_ICALL(esi); /* 0x2B066AEB: call esi */ 4169 RECOMP_FLAGS_IN(); 4170 ecx = eax; /* 0x2B066AED: mov ecx, eax */ 4171 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B066AEF: call dword ptr [0x2b0b5374] */ 4172 RECOMP_FLAGS_IN(); 4173 PUSH32(esp, 0); /* 0x2B066AF5: push 0 */ 4174 PUSH32(esp, 0x1Eu); /* 0x2B066AF7: push 0x1e */ 4175 PUSH32(esp, 5); /* 0x2B066AF9: push 5 */ 4176 RECOMP_ICALL(esi); /* 0x2B066AFB: call esi */ 4177 RECOMP_FLAGS_IN(); 4178 ecx = eax; /* 0x2B066AFD: mov ecx, eax */ 4179 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B066AFF: call dword ptr [0x2b0b5378] */ 4180 RECOMP_FLAGS_IN(); 4181 PUSH32(esp, 0x2B066B40u); /* 0x2B066B05: push 0x2b066b40 */ 4182 PUSH32(esp, 5); /* 0x2B066B0A: push 5 */ 4183 RECOMP_ICALL(esi); /* 0x2B066B0C: call esi */ 4184 RECOMP_FLAGS_IN(); 4185 ebx = MEM32(0x2B0B5324); /* 0x2B066B0E: mov ebx, dword ptr [0x2b0b5324] */ 4186 ecx = eax; /* 0x2B066B14: mov ecx, eax */ 4187 RECOMP_ICALL(ebx); /* 0x2B066B16: call ebx */ 4188 RECOMP_FLAGS_IN(); 4189 PUSH32(esp, 0x2B066C60u); /* 0x2B066B18: push 0x2b066c60 */ 4190 PUSH32(esp, 6); /* 0x2B066B1D: push 6 */ 4191 RECOMP_ICALL(esi); /* 0x2B066B1F: call esi */ 4192 RECOMP_FLAGS_IN(); 4193 ecx = eax; /* 0x2B066B21: mov ecx, eax */ 4194 RECOMP_ICALL(ebx); /* 0x2B066B23: call ebx */ 4195 RECOMP_FLAGS_IN(); 4196 PUSH32(esp, 0x2B066CD0u); /* 0x2B066B25: push 0x2b066cd0 */ 4197 RECOMP_ICALL(esi); /* 0x2B066B2A: call esi */ 4198 RECOMP_FLAGS_IN(); 4199 ecx = eax; /* 0x2B066B2C: mov ecx, eax */ 4200 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B066B2E: call dword ptr [0x2b0b537c] */ 4201 RECOMP_FLAGS_IN(); 4202 eax = edi; /* 0x2B066B34: mov eax, edi */ 4203 edi = POP32_VAL(esp); /* 0x2B066B36: pop edi */ 4204 esi = POP32_VAL(esp); /* 0x2B066B37: pop esi */ 4205 ebx = POP32_VAL(esp); /* 0x2B066B38: pop ebx */ 4206 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066B39: ret */ 4207 RECOMP_REGS_OUT(); 4208 } 4209 4210 void sub_2B066B40(void) { 4211 int _fpu_cmp = 0; 4212 uint32_t _cf = 0; 4213 int _df = 1; 4214 uint32_t _flag_k = FK_NONE; 4215 uint32_t _flag_a = 0, _flag_b = 0; 4216 uint32_t _itail_tgt = 0; 4217 RECOMP_REGS_LOCALS 4218 RECOMP_ENTER(0x2B066B40u); 4219 4220 L_2B066B40: 4221 PUSH32(esp, ebp); /* 0x2B066B40: push ebp */ 4222 ebp = esp; /* 0x2B066B41: mov ebp, esp */ 4223 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B066B43: push -1 */ 4224 PUSH32(esp, 0x2B0B0C21u); /* 0x2B066B45: push 0x2b0b0c21 */ 4225 eax = MEM32(FS_BASE + (0)); /* 0x2B066B4A: mov eax, dword ptr fs:[0] */ 4226 PUSH32(esp, eax); /* 0x2B066B50: push eax */ 4227 MEM32(FS_BASE + (0)) = esp; /* 0x2B066B51: mov dword ptr fs:[0], esp */ 4228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4230 esp = esp - 0x14u; /* 0x2B066B58: sub esp, 0x14 */ 4231 _flag_k = FK_CMP; 4232 PUSH32(esp, 0x34u); /* 0x2B066B5B: push 0x34 */ 4233 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066B5D: call 0x2b0ab212 */ /* not lifted */ 4234 RECOMP_FLAGS_IN(); 4235 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4237 esp = esp + 4; /* 0x2B066B62: add esp, 4 */ 4238 _flag_k = FK_ADD; 4239 MEM32(ebp + (-0x14)) = eax; /* 0x2B066B65: mov dword ptr [ebp - 0x14], eax */ 4240 /* test eax, eax */ /* 0x2B066B68: test eax, eax */ 4241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4242 _cf = 0; 4243 _flag_k = FK_TEST; 4244 MEM32(ebp + (-0x4)) = 0; /* 0x2B066B6A: mov dword ptr [ebp - 4], 0 */ 4245 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066B89; /* 0x2B066B71: je 0x2b066b89 */ 4246 L_2B066B73: 4247 PUSH32(esp, 2); /* 0x2B066B73: push 2 */ 4248 PUSH32(esp, 0x100u); /* 0x2B066B75: push 0x100 */ 4249 PUSH32(esp, 0x100u); /* 0x2B066B7A: push 0x100 */ 4250 ecx = eax; /* 0x2B066B7F: mov ecx, eax */ 4251 RECOMP_ICALL(MEM32(0x2B0B5650)); /* 0x2B066B81: call dword ptr [0x2b0b5650] */ 4252 RECOMP_FLAGS_IN(); 4253 goto L_2B066B8B; /* 0x2B066B87: jmp 0x2b066b8b */ 4254 L_2B066B89: 4255 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4256 eax = 0; /* 0x2B066B89: xor eax, eax */ 4257 _cf = 0; 4258 _flag_k = FK_TEST; 4259 L_2B066B8B: 4260 PUSH32(esp, esi); /* 0x2B066B8B: push esi */ 4261 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 4262 esi = esi | 0xFFFFFFFFu; /* 0x2B066B8C: or esi, 0xffffffff */ 4263 _cf = 0; 4264 _flag_k = FK_TEST; 4265 PUSH32(esp, 0x38u); /* 0x2B066B8F: push 0x38 */ 4266 MEM32(ebp + (-0x4)) = esi; /* 0x2B066B91: mov dword ptr [ebp - 4], esi */ 4267 MEM32(0x2B0EEE1C) = eax; /* 0x2B066B94: mov dword ptr [0x2b0eee1c], eax */ 4268 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066B99: call 0x2b0ab212 */ /* not lifted */ 4269 RECOMP_FLAGS_IN(); 4270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4272 esp = esp + 4; /* 0x2B066B9E: add esp, 4 */ 4273 _flag_k = FK_ADD; 4274 MEM32(ebp + (-0x14)) = eax; /* 0x2B066BA1: mov dword ptr [ebp - 0x14], eax */ 4275 /* test eax, eax */ /* 0x2B066BA4: test eax, eax */ 4276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4277 _cf = 0; 4278 _flag_k = FK_TEST; 4279 MEM32(ebp + (-0x4)) = 1; /* 0x2B066BA6: mov dword ptr [ebp - 4], 1 */ 4280 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066BC4; /* 0x2B066BAD: je 0x2b066bc4 */ 4281 L_2B066BAF: 4282 ecx = MEM32(0x2B0EEE1C); /* 0x2B066BAF: mov ecx, dword ptr [0x2b0eee1c] */ 4283 PUSH32(esp, ecx); /* 0x2B066BB5: push ecx */ 4284 PUSH32(esp, 2); /* 0x2B066BB6: push 2 */ 4285 PUSH32(esp, 0); /* 0x2B066BB8: push 0 */ 4286 ecx = eax; /* 0x2B066BBA: mov ecx, eax */ 4287 RECOMP_ICALL(MEM32(0x2B0B5BF0)); /* 0x2B066BBC: call dword ptr [0x2b0b5bf0] */ 4288 RECOMP_FLAGS_IN(); 4289 goto L_2B066BC6; /* 0x2B066BC2: jmp 0x2b066bc6 */ 4290 L_2B066BC4: 4291 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4292 eax = 0; /* 0x2B066BC4: xor eax, eax */ 4293 _cf = 0; 4294 _flag_k = FK_TEST; 4295 L_2B066BC6: 4296 PUSH32(esp, 0xD8u); /* 0x2B066BC6: push 0xd8 */ 4297 MEM32(ebp + (-0x4)) = esi; /* 0x2B066BCB: mov dword ptr [ebp - 4], esi */ 4298 MEM32(0x2B0EEE18) = eax; /* 0x2B066BCE: mov dword ptr [0x2b0eee18], eax */ 4299 MEM32(ebp + (-0x20)) = 0x14u; /* 0x2B066BD3: mov dword ptr [ebp - 0x20], 0x14 */ 4300 MEM32(ebp + (-0x1C)) = 0x28u; /* 0x2B066BDA: mov dword ptr [ebp - 0x1c], 0x28 */ 4301 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066BE1: call 0x2b0ab212 */ /* not lifted */ 4302 RECOMP_FLAGS_IN(); 4303 esi = eax; /* 0x2B066BE6: mov esi, eax */ 4304 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4305 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4306 esp = esp + 4; /* 0x2B066BE8: add esp, 4 */ 4307 _flag_k = FK_ADD; 4308 MEM32(ebp + (-0x18)) = esi; /* 0x2B066BEB: mov dword ptr [ebp - 0x18], esi */ 4309 /* test esi, esi */ /* 0x2B066BEE: test esi, esi */ 4310 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4311 _cf = 0; 4312 _flag_k = FK_TEST; 4313 MEM32(ebp + (-0x4)) = 2; /* 0x2B066BF0: mov dword ptr [ebp - 4], 2 */ 4314 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066C44; /* 0x2B066BF7: je 0x2b066c44 */ 4315 L_2B066BF9: 4316 ecx = MEM32(0x2B0EEE1C); /* 0x2B066BF9: mov ecx, dword ptr [0x2b0eee1c] */ 4317 edx = ebp + (-0x10); /* 0x2B066BFF: lea edx, [ebp - 0x10] */ 4318 PUSH32(esp, edx); /* 0x2B066C02: push edx */ 4319 eax = ebp + (-0x14); /* 0x2B066C03: lea eax, [ebp - 0x14] */ 4320 PUSH32(esp, eax); /* 0x2B066C06: push eax */ 4321 PUSH32(esp, 0); /* 0x2B066C07: push 0 */ 4322 PUSH32(esp, 0x7558u); /* 0x2B066C09: push 0x7558 */ 4323 PUSH32(esp, ecx); /* 0x2B066C0E: push ecx */ 4324 edx = ebp + (-0x20); /* 0x2B066C0F: lea edx, [ebp - 0x20] */ 4325 PUSH32(esp, edx); /* 0x2B066C12: push edx */ 4326 ecx = esi; /* 0x2B066C13: mov ecx, esi */ 4327 MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x2B066C15: mov dword ptr [ebp - 0x10], 0x3f800000 */ 4328 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x2B066C1C: mov dword ptr [ebp - 0x14], 0x3f800000 */ 4329 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B066C23: call dword ptr [0x2b0b5654] */ 4330 RECOMP_FLAGS_IN(); 4331 MEM32(esi) = 0x2B0B618Cu; /* 0x2B066C29: mov dword ptr [esi], 0x2b0b618c */ 4332 MEM32(0x2B0EEE20) = esi; /* 0x2B066C2F: mov dword ptr [0x2b0eee20], esi */ 4333 esi = POP32_VAL(esp); /* 0x2B066C35: pop esi */ 4334 ecx = MEM32(ebp + (-0xC)); /* 0x2B066C36: mov ecx, dword ptr [ebp - 0xc] */ 4335 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066C39: mov dword ptr fs:[0], ecx */ 4336 esp = ebp; /* 0x2B066C40: mov esp, ebp */ 4337 ebp = POP32_VAL(esp); /* 0x2B066C42: pop ebp */ 4338 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066C43: ret */ 4339 L_2B066C44: 4340 ecx = MEM32(ebp + (-0xC)); /* 0x2B066C44: mov ecx, dword ptr [ebp - 0xc] */ 4341 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4342 eax = 0; /* 0x2B066C47: xor eax, eax */ 4343 _cf = 0; 4344 _flag_k = FK_TEST; 4345 MEM32(0x2B0EEE20) = eax; /* 0x2B066C49: mov dword ptr [0x2b0eee20], eax */ 4346 esi = POP32_VAL(esp); /* 0x2B066C4E: pop esi */ 4347 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066C4F: mov dword ptr fs:[0], ecx */ 4348 esp = ebp; /* 0x2B066C56: mov esp, ebp */ 4349 ebp = POP32_VAL(esp); /* 0x2B066C58: pop ebp */ 4350 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066C59: ret */ 4351 RECOMP_REGS_OUT(); 4352 } 4353 4354 void sub_2B066C60(void) { 4355 int _fpu_cmp = 0; 4356 uint32_t _cf = 0; 4357 int _df = 1; 4358 uint32_t _flag_k = FK_NONE; 4359 uint32_t _flag_a = 0, _flag_b = 0; 4360 uint32_t _itail_tgt = 0; 4361 RECOMP_REGS_LOCALS 4362 RECOMP_ENTER(0x2B066C60u); 4363 4364 L_2B066C60: 4365 ecx = MEM32(0x2B0EEE20); /* 0x2B066C60: mov ecx, dword ptr [0x2b0eee20] */ 4366 PUSH32(esp, esi); /* 0x2B066C66: push esi */ 4367 PUSH32(esp, edi); /* 0x2B066C67: push edi */ 4368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4369 edi = 0; /* 0x2B066C68: xor edi, edi */ 4370 _cf = 0; 4371 _flag_k = FK_TEST; 4372 /* cmp ecx, edi */ /* 0x2B066C6A: cmp ecx, edi */ 4373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4375 _flag_k = FK_CMP; 4376 MEM32(0x2B0EEE14) = edi; /* 0x2B066C6C: mov dword ptr [0x2b0eee14], edi */ 4377 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066C7A; /* 0x2B066C72: je 0x2b066c7a */ 4378 L_2B066C74: 4379 eax = MEM32(ecx); /* 0x2B066C74: mov eax, dword ptr [ecx] */ 4380 PUSH32(esp, 1); /* 0x2B066C76: push 1 */ 4381 RECOMP_ICALL(MEM32(eax)); /* 0x2B066C78: call dword ptr [eax] */ 4382 RECOMP_FLAGS_IN(); 4383 L_2B066C7A: 4384 esi = MEM32(0x2B0EEE18); /* 0x2B066C7A: mov esi, dword ptr [0x2b0eee18] */ 4385 /* cmp esi, edi */ /* 0x2B066C80: cmp esi, edi */ 4386 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4388 _flag_k = FK_CMP; 4389 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066C95; /* 0x2B066C82: je 0x2b066c95 */ 4390 L_2B066C84: 4391 ecx = esi; /* 0x2B066C84: mov ecx, esi */ 4392 RECOMP_ICALL(MEM32(0x2B0B5BBC)); /* 0x2B066C86: call dword ptr [0x2b0b5bbc] */ 4393 RECOMP_FLAGS_IN(); 4394 PUSH32(esp, esi); /* 0x2B066C8C: push esi */ 4395 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066C8D: call 0x2b0ab1ba */ /* not lifted */ 4396 RECOMP_FLAGS_IN(); 4397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4399 esp = esp + 4; /* 0x2B066C92: add esp, 4 */ 4400 _flag_k = FK_ADD; 4401 L_2B066C95: 4402 esi = MEM32(0x2B0EEE1C); /* 0x2B066C95: mov esi, dword ptr [0x2b0eee1c] */ 4403 /* cmp esi, edi */ /* 0x2B066C9B: cmp esi, edi */ 4404 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4406 _flag_k = FK_CMP; 4407 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066CB0; /* 0x2B066C9D: je 0x2b066cb0 */ 4408 L_2B066C9F: 4409 ecx = esi; /* 0x2B066C9F: mov ecx, esi */ 4410 RECOMP_ICALL(MEM32(0x2B0B5644)); /* 0x2B066CA1: call dword ptr [0x2b0b5644] */ 4411 RECOMP_FLAGS_IN(); 4412 PUSH32(esp, esi); /* 0x2B066CA7: push esi */ 4413 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066CA8: call 0x2b0ab1ba */ /* not lifted */ 4414 RECOMP_FLAGS_IN(); 4415 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4416 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4417 esp = esp + 4; /* 0x2B066CAD: add esp, 4 */ 4418 _flag_k = FK_ADD; 4419 L_2B066CB0: 4420 MEM32(0x2B0EEE18) = edi; /* 0x2B066CB0: mov dword ptr [0x2b0eee18], edi */ 4421 MEM32(0x2B0EEE1C) = edi; /* 0x2B066CB6: mov dword ptr [0x2b0eee1c], edi */ 4422 MEM32(0x2B0EEE20) = edi; /* 0x2B066CBC: mov dword ptr [0x2b0eee20], edi */ 4423 edi = POP32_VAL(esp); /* 0x2B066CC2: pop edi */ 4424 esi = POP32_VAL(esp); /* 0x2B066CC3: pop esi */ 4425 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066CC4: ret */ 4426 RECOMP_REGS_OUT(); 4427 } 4428 4429 void sub_2B066CD0(void) { 4430 int _fpu_cmp = 0; 4431 uint32_t _cf = 0; 4432 int _df = 1; 4433 uint32_t _flag_k = FK_NONE; 4434 uint32_t _flag_a = 0, _flag_b = 0; 4435 uint32_t _itail_tgt = 0; 4436 RECOMP_REGS_LOCALS 4437 RECOMP_ENTER(0x2B066CD0u); 4438 4439 L_2B066CD0: 4440 PUSH32(esp, ebp); /* 0x2B066CD0: push ebp */ 4441 ebp = esp; /* 0x2B066CD1: mov ebp, esp */ 4442 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B066CD3: push -1 */ 4443 PUSH32(esp, 0x2B0B0C4Eu); /* 0x2B066CD5: push 0x2b0b0c4e */ 4444 eax = MEM32(FS_BASE + (0)); /* 0x2B066CDA: mov eax, dword ptr fs:[0] */ 4445 PUSH32(esp, eax); /* 0x2B066CE0: push eax */ 4446 MEM32(FS_BASE + (0)) = esp; /* 0x2B066CE1: mov dword ptr fs:[0], esp */ 4447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 4448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4449 esp = esp - 0x1Cu; /* 0x2B066CE8: sub esp, 0x1c */ 4450 _flag_k = FK_CMP; 4451 PUSH32(esp, ebx); /* 0x2B066CEB: push ebx */ 4452 PUSH32(esp, esi); /* 0x2B066CEC: push esi */ 4453 PUSH32(esp, edi); /* 0x2B066CED: push edi */ 4454 RECOMP_ICALL(MEM32(0x2B0B5690)); /* 0x2B066CEE: call dword ptr [0x2b0b5690] */ 4455 RECOMP_FLAGS_IN(); 4456 ecx = eax; /* 0x2B066CF4: mov ecx, eax */ 4457 RECOMP_ICALL(MEM32(0x2B0B54B0)); /* 0x2B066CF6: call dword ptr [0x2b0b54b0] */ 4458 RECOMP_FLAGS_IN(); 4459 esi = eax; /* 0x2B066CFC: mov esi, eax */ 4460 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B066CFE: mov al, byte ptr [ebp - 0xd] */ 4461 MEM8(ebp + (-0x28)) = (uint8_t)(LO8(eax)); /* 0x2B066D01: mov byte ptr [ebp - 0x28], al */ 4462 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4463 eax = 0; /* 0x2B066D04: xor eax, eax */ 4464 _cf = 0; 4465 _flag_k = FK_TEST; 4466 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4467 ecx = ecx | 0xFFFFFFFFu; /* 0x2B066D06: or ecx, 0xffffffff */ 4468 _cf = 0; 4469 _flag_k = FK_TEST; 4470 MEM32(ebp + (-0x24)) = eax; /* 0x2B066D09: mov dword ptr [ebp - 0x24], eax */ 4471 MEM32(ebp + (-0x20)) = eax; /* 0x2B066D0C: mov dword ptr [ebp - 0x20], eax */ 4472 MEM32(ebp + (-0x1C)) = eax; /* 0x2B066D0F: mov dword ptr [ebp - 0x1c], eax */ 4473 edi = esi; /* 0x2B066D12: mov edi, esi */ 4474 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B066D14: repne scasb al, byte ptr es:[edi] */ 4475 ecx = ~ecx; /* 0x2B066D16: not ecx */ 4476 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4477 ecx = ecx - 1; /* 0x2B066D18: dec ecx */ 4478 _flag_k = FK_DEC; 4479 ebx = ecx; /* 0x2B066D19: mov ebx, ecx */ 4480 PUSH32(esp, 1); /* 0x2B066D1B: push 1 */ 4481 PUSH32(esp, ebx); /* 0x2B066D1D: push ebx */ 4482 ecx = ebp + (-0x28); /* 0x2B066D1E: lea ecx, [ebp - 0x28] */ 4483 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B066D21: call dword ptr [0x2b0b5154] */ 4484 RECOMP_FLAGS_IN(); 4485 /* test LO8(eax), LO8(eax) */ /* 0x2B066D27: test al, al */ 4486 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4487 _cf = 0; 4488 _flag_k = FK_NARROW(FK_TEST, 24); 4489 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066D48; /* 0x2B066D29: je 0x2b066d48 */ 4490 L_2B066D2B: 4491 edi = MEM32(ebp + (-0x24)); /* 0x2B066D2B: mov edi, dword ptr [ebp - 0x24] */ 4492 ecx = ebx; /* 0x2B066D2E: mov ecx, ebx */ 4493 edx = ecx; /* 0x2B066D30: mov edx, ecx */ 4494 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B066D32: shr ecx, 2 */ 4495 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4496 ecx = ecx >> 2u; /* 0x2B066D32: shr ecx, 2 */ 4497 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B066D35: 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; } 4498 ecx = edx; /* 0x2B066D37: mov ecx, edx */ 4499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4500 ecx = ecx & 3; /* 0x2B066D39: and ecx, 3 */ 4501 _cf = 0; 4502 _flag_k = FK_TEST; 4503 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B066D3C: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4504 eax = MEM32(ebp + (-0x24)); /* 0x2B066D3E: mov eax, dword ptr [ebp - 0x24] */ 4505 MEM32(ebp + (-0x20)) = ebx; /* 0x2B066D41: mov dword ptr [ebp - 0x20], ebx */ 4506 MEM8(eax + ebx) = (uint8_t)(0); /* 0x2B066D44: mov byte ptr [eax + ebx], 0 */ 4507 L_2B066D48: 4508 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4509 esi = 0; /* 0x2B066D48: xor esi, esi */ 4510 _cf = 0; 4511 _flag_k = FK_TEST; 4512 MEM32(ebp + (-0x18)) = esi; /* 0x2B066D4A: mov dword ptr [ebp - 0x18], esi */ 4513 ecx = MEM32(0x2B0EEE1C); /* 0x2B066D4D: mov ecx, dword ptr [0x2b0eee1c] */ 4514 PUSH32(esp, 1); /* 0x2B066D53: push 1 */ 4515 PUSH32(esp, esi); /* 0x2B066D55: push esi */ 4516 PUSH32(esp, esi); /* 0x2B066D56: push esi */ 4517 MEM32(ebp + (-0x4)) = esi; /* 0x2B066D57: mov dword ptr [ebp - 4], esi */ 4518 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B066D5A: call dword ptr [0x2b0b564c] */ 4519 RECOMP_FLAGS_IN(); 4520 PUSH32(esp, esi); /* 0x2B066D60: push esi */ 4521 PUSH32(esp, esi); /* 0x2B066D61: push esi */ 4522 PUSH32(esp, esi); /* 0x2B066D62: push esi */ 4523 PUSH32(esp, 1); /* 0x2B066D63: push 1 */ 4524 ecx = ebp + (-0x28); /* 0x2B066D65: lea ecx, [ebp - 0x28] */ 4525 PUSH32(esp, ecx); /* 0x2B066D68: push ecx */ 4526 ecx = MEM32(0x2B0EEE18); /* 0x2B066D69: mov ecx, dword ptr [0x2b0eee18] */ 4527 RECOMP_ICALL(MEM32(0x2B0B5878)); /* 0x2B066D6F: call dword ptr [0x2b0b5878] */ 4528 RECOMP_FLAGS_IN(); 4529 ecx = MEM32(0x2B0EEE20); /* 0x2B066D75: mov ecx, dword ptr [0x2b0eee20] */ 4530 eax = MEM32(0x2B0EEE1C); /* 0x2B066D7B: mov eax, dword ptr [0x2b0eee1c] */ 4531 edx = MEM32(ecx); /* 0x2B066D80: mov edx, dword ptr [ecx] */ 4532 PUSH32(esp, eax); /* 0x2B066D82: push eax */ 4533 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2B066D83: call dword ptr [edx + 0x10] */ 4534 RECOMP_FLAGS_IN(); 4535 eax = MEM32(ebp + (-0x18)); /* 0x2B066D86: mov eax, dword ptr [ebp - 0x18] */ 4536 /* cmp eax, esi */ /* 0x2B066D89: cmp eax, esi */ 4537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4539 _flag_k = FK_CMP; 4540 MEM32(ebp + (-0x4)) = 1; /* 0x2B066D8B: mov dword ptr [ebp - 4], 1 */ 4541 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066DD3; /* 0x2B066D92: je 0x2b066dd3 */ 4542 L_2B066D94: 4543 edx = MEM32(eax + 0x2C); /* 0x2B066D94: mov edx, dword ptr [eax + 0x2c] */ 4544 edi = eax; /* 0x2B066D97: mov edi, eax */ 4545 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 4546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4547 eax = eax + 0x2Cu; /* 0x2B066D99: add eax, 0x2c */ 4548 _flag_k = FK_ADD; 4549 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4550 edx = edx - 1; /* 0x2B066D9C: dec edx */ 4551 _flag_k = FK_DEC; 4552 ecx = edx; /* 0x2B066D9D: mov ecx, edx */ 4553 /* cmp ecx, esi */ /* 0x2B066D9F: cmp ecx, esi */ 4554 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 4555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4556 _flag_k = FK_CMP; 4557 MEM32(eax) = edx; /* 0x2B066DA1: mov dword ptr [eax], edx */ 4558 if (CMP_NE(_flag_a, _flag_b)) goto L_2B066DD3; /* 0x2B066DA3: jne 0x2b066dd3 */ 4559 L_2B066DA5: 4560 /* cmp edi, esi */ /* 0x2B066DA5: cmp edi, esi */ 4561 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4563 _flag_k = FK_CMP; 4564 MEM32(ebp + (-0x14)) = edi; /* 0x2B066DA7: mov dword ptr [ebp - 0x14], edi */ 4565 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066DD3; /* 0x2B066DAA: je 0x2b066dd3 */ 4566 L_2B066DAC: 4567 PUSH32(esp, 1); /* 0x2B066DAC: push 1 */ 4568 ecx = edi + 0x1C; /* 0x2B066DAE: lea ecx, [edi + 0x1c] */ 4569 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B066DB1: mov byte ptr [ebp - 4], 2 */ 4570 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B066DB5: call dword ptr [0x2b0b514c] */ 4571 RECOMP_FLAGS_IN(); 4572 PUSH32(esp, 1); /* 0x2B066DBB: push 1 */ 4573 ecx = edi + 0xC; /* 0x2B066DBD: lea ecx, [edi + 0xc] */ 4574 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B066DC0: mov byte ptr [ebp - 4], 1 */ 4575 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B066DC4: call dword ptr [0x2b0b514c] */ 4576 RECOMP_FLAGS_IN(); 4577 PUSH32(esp, edi); /* 0x2B066DCA: push edi */ 4578 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066DCB: call 0x2b0ab1ba */ /* not lifted */ 4579 RECOMP_FLAGS_IN(); 4580 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4582 esp = esp + 4; /* 0x2B066DD0: add esp, 4 */ 4583 _flag_k = FK_ADD; 4584 L_2B066DD3: 4585 ecx = MEM32(ebp + (-0x24)); /* 0x2B066DD3: mov ecx, dword ptr [ebp - 0x24] */ 4586 edi = POP32_VAL(esp); /* 0x2B066DD6: pop edi */ 4587 /* cmp ecx, esi */ /* 0x2B066DD7: cmp ecx, esi */ 4588 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 4589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4590 _flag_k = FK_CMP; 4591 esi = POP32_VAL(esp); /* 0x2B066DD9: pop esi */ 4592 ebx = POP32_VAL(esp); /* 0x2B066DDA: pop ebx */ 4593 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066E05; /* 0x2B066DDB: je 0x2b066e05 */ 4594 L_2B066DDD: 4595 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B066DDD: mov al, byte ptr [ecx - 1] */ 4596 /* test LO8(eax), LO8(eax) */ /* 0x2B066DE0: test al, al */ 4597 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4598 _cf = 0; 4599 _flag_k = FK_NARROW(FK_TEST, 24); 4600 if (TEST_Z(_flag_a, _flag_b)) goto L_2B066DFB; /* 0x2B066DE2: je 0x2b066dfb */ 4601 L_2B066DE4: 4602 /* cmp LO8(eax), 0xFFu */ /* 0x2B066DE4: cmp al, 0xff */ 4603 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 4604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4605 _flag_k = FK_NARROW(FK_CMP, 24); 4606 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066DFB; /* 0x2B066DE6: je 0x2b066dfb */ 4607 L_2B066DE8: 4608 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4609 SET_LO8(eax, LO8(eax) - 1); /* 0x2B066DE8: dec al */ 4610 _flag_k = FK_NARROW(FK_DEC, 24); 4611 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B066DEA: mov byte ptr [ecx - 1], al */ 4612 ecx = MEM32(ebp + (-0xC)); /* 0x2B066DED: mov ecx, dword ptr [ebp - 0xc] */ 4613 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066DF0: mov dword ptr fs:[0], ecx */ 4614 esp = ebp; /* 0x2B066DF7: mov esp, ebp */ 4615 ebp = POP32_VAL(esp); /* 0x2B066DF9: pop ebp */ 4616 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066DFA: ret */ 4617 L_2B066DFB: 4618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4619 ecx = ecx - 1; /* 0x2B066DFB: dec ecx */ 4620 _flag_k = FK_DEC; 4621 PUSH32(esp, ecx); /* 0x2B066DFC: push ecx */ 4622 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B066DFD: call 0x2b0ab1ba */ /* not lifted */ 4623 RECOMP_FLAGS_IN(); 4624 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4626 esp = esp + 4; /* 0x2B066E02: add esp, 4 */ 4627 _flag_k = FK_ADD; 4628 L_2B066E05: 4629 ecx = MEM32(ebp + (-0xC)); /* 0x2B066E05: mov ecx, dword ptr [ebp - 0xc] */ 4630 MEM32(FS_BASE + (0)) = ecx; /* 0x2B066E08: mov dword ptr fs:[0], ecx */ 4631 esp = ebp; /* 0x2B066E0F: mov esp, ebp */ 4632 ebp = POP32_VAL(esp); /* 0x2B066E11: pop ebp */ 4633 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B066E12: ret */ 4634 RECOMP_REGS_OUT(); 4635 } 4636 4637 void sub_2B066E20(void) { 4638 int _fpu_cmp = 0; 4639 uint32_t _cf = 0; 4640 int _df = 1; 4641 uint32_t _flag_k = FK_NONE; 4642 uint32_t _flag_a = 0, _flag_b = 0; 4643 uint32_t _itail_tgt = 0; 4644 RECOMP_REGS_LOCALS 4645 RECOMP_ENTER(0x2B066E20u); 4646 4647 L_2B066E20: 4648 PUSH32(esp, ebp); /* 0x2B066E20: push ebp */ 4649 ebp = esp; /* 0x2B066E21: mov ebp, esp */ 4650 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B066E23: push -1 */ 4651 PUSH32(esp, 0x2B0B0CB8u); /* 0x2B066E25: push 0x2b0b0cb8 */ 4652 eax = MEM32(FS_BASE + (0)); /* 0x2B066E2A: mov eax, dword ptr fs:[0] */ 4653 PUSH32(esp, eax); /* 0x2B066E30: push eax */ 4654 MEM32(FS_BASE + (0)) = esp; /* 0x2B066E31: mov dword ptr fs:[0], esp */ 4655 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 4656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4657 esp = esp - 0x64u; /* 0x2B066E38: sub esp, 0x64 */ 4658 _flag_k = FK_CMP; 4659 PUSH32(esp, ebx); /* 0x2B066E3B: push ebx */ 4660 PUSH32(esp, esi); /* 0x2B066E3C: push esi */ 4661 PUSH32(esp, edi); /* 0x2B066E3D: push edi */ 4662 esi = ecx; /* 0x2B066E3E: mov esi, ecx */ 4663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4664 ebx = 0; /* 0x2B066E40: xor ebx, ebx */ 4665 _cf = 0; 4666 _flag_k = FK_TEST; 4667 PUSH32(esp, 0x50u); /* 0x2B066E42: push 0x50 */ 4668 MEM8(esi + 0x24) = (uint8_t)(0); /* 0x2B066E44: mov byte ptr [esi + 0x24], 0 */ 4669 MEM32(ebp + (-0x20)) = 0x100u; /* 0x2B066E48: mov dword ptr [ebp - 0x20], 0x100 */ 4670 MEM32(ebp + (-0x1C)) = 0x40u; /* 0x2B066E4F: mov dword ptr [ebp - 0x1c], 0x40 */ 4671 MEM32(ebp + (-0x18)) = ebx; /* 0x2B066E56: mov dword ptr [ebp - 0x18], ebx */ 4672 MEM32(ebp + (-0x14)) = ebx; /* 0x2B066E59: mov dword ptr [ebp - 0x14], ebx */ 4673 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066E5C: call 0x2b0ab212 */ /* not lifted */ 4674 RECOMP_FLAGS_IN(); 4675 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4676 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4677 esp = esp + 4; /* 0x2B066E61: add esp, 4 */ 4678 _flag_k = FK_ADD; 4679 MEM32(ebp + (-0x10)) = eax; /* 0x2B066E64: mov dword ptr [ebp - 0x10], eax */ 4680 /* cmp eax, ebx */ /* 0x2B066E67: cmp eax, ebx */ 4681 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4683 _flag_k = FK_CMP; 4684 MEM32(ebp + (-0x4)) = ebx; /* 0x2B066E69: mov dword ptr [ebp - 4], ebx */ 4685 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066E94; /* 0x2B066E6C: je 0x2b066e94 */ 4686 L_2B066E6E: 4687 ecx = MEM32(ebp + 0x8); /* 0x2B066E6E: mov ecx, dword ptr [ebp + 8] */ 4688 PUSH32(esp, ebx); /* 0x2B066E71: push ebx */ 4689 PUSH32(esp, 0x3F800000u); /* 0x2B066E72: push 0x3f800000 */ 4690 PUSH32(esp, 0x3F800000u); /* 0x2B066E77: push 0x3f800000 */ 4691 PUSH32(esp, 0x5208u); /* 0x2B066E7C: push 0x5208 */ 4692 PUSH32(esp, ecx); /* 0x2B066E81: push ecx */ 4693 edx = ebp + (-0x20); /* 0x2B066E82: lea edx, [ebp - 0x20] */ 4694 PUSH32(esp, edx); /* 0x2B066E85: push edx */ 4695 PUSH32(esp, 6); /* 0x2B066E86: push 6 */ 4696 PUSH32(esp, 8); /* 0x2B066E88: push 8 */ 4697 ecx = eax; /* 0x2B066E8A: mov ecx, eax */ 4698 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B066E8C: call dword ptr [0x2b0b5bd8] */ 4699 RECOMP_FLAGS_IN(); 4700 goto L_2B066E96; /* 0x2B066E92: jmp 0x2b066e96 */ 4701 L_2B066E94: 4702 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4703 eax = 0; /* 0x2B066E94: xor eax, eax */ 4704 _cf = 0; 4705 _flag_k = FK_TEST; 4706 L_2B066E96: 4707 PUSH32(esp, 1); /* 0x2B066E96: push 1 */ 4708 MEM32(esi) = eax; /* 0x2B066E98: mov dword ptr [esi], eax */ 4709 eax = MEM32(eax + 0x28); /* 0x2B066E9A: mov eax, dword ptr [eax + 0x28] */ 4710 PUSH32(esp, 0xFF00u); /* 0x2B066E9D: push 0xff00 */ 4711 PUSH32(esp, ebx); /* 0x2B066EA2: push ebx */ 4712 ecx = eax; /* 0x2B066EA3: mov ecx, eax */ 4713 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B066EA5: mov dword ptr [ebp - 4], 0xffffffff */ 4714 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B066EAC: call dword ptr [0x2b0b564c] */ 4715 RECOMP_FLAGS_IN(); 4716 PUSH32(esp, 0x38u); /* 0x2B066EB2: push 0x38 */ 4717 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066EB4: call 0x2b0ab212 */ /* not lifted */ 4718 RECOMP_FLAGS_IN(); 4719 edi = eax; /* 0x2B066EB9: mov edi, eax */ 4720 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4722 esp = esp + 4; /* 0x2B066EBB: add esp, 4 */ 4723 _flag_k = FK_ADD; 4724 MEM32(ebp + 0x8) = edi; /* 0x2B066EBE: mov dword ptr [ebp + 8], edi */ 4725 /* cmp edi, ebx */ /* 0x2B066EC1: cmp edi, ebx */ 4726 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4728 _flag_k = FK_CMP; 4729 MEM32(ebp + (-0x4)) = 1; /* 0x2B066EC3: mov dword ptr [ebp - 4], 1 */ 4730 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066EED; /* 0x2B066ECA: je 0x2b066eed */ 4731 L_2B066ECC: 4732 eax = MEM32(esi); /* 0x2B066ECC: mov eax, dword ptr [esi] */ 4733 PUSH32(esp, eax); /* 0x2B066ECE: push eax */ 4734 PUSH32(esp, 0x5208u); /* 0x2B066ECF: push 0x5208 */ 4735 PUSH32(esp, 0xC7u); /* 0x2B066ED4: push 0xc7 */ 4736 ecx = ebp + (-0x18); /* 0x2B066ED9: lea ecx, [ebp - 0x18] */ 4737 PUSH32(esp, ecx); /* 0x2B066EDC: push ecx */ 4738 ecx = edi; /* 0x2B066EDD: mov ecx, edi */ 4739 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B066EDF: call dword ptr [0x2b0b5948] */ 4740 RECOMP_FLAGS_IN(); 4741 MEM32(edi) = 0x2B0B68F4u; /* 0x2B066EE5: mov dword ptr [edi], 0x2b0b68f4 */ 4742 goto L_2B066EEF; /* 0x2B066EEB: jmp 0x2b066eef */ 4743 L_2B066EED: 4744 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4745 edi = 0; /* 0x2B066EED: xor edi, edi */ 4746 _cf = 0; 4747 _flag_k = FK_TEST; 4748 L_2B066EEF: 4749 PUSH32(esp, 0x9Cu); /* 0x2B066EEF: push 0x9c */ 4750 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B066EF4: mov dword ptr [ebp - 4], 0xffffffff */ 4751 MEM32(esi + 0x4) = edi; /* 0x2B066EFB: mov dword ptr [esi + 4], edi */ 4752 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066EFE: call 0x2b0ab212 */ /* not lifted */ 4753 RECOMP_FLAGS_IN(); 4754 edi = eax; /* 0x2B066F03: mov edi, eax */ 4755 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4756 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4757 esp = esp + 4; /* 0x2B066F05: add esp, 4 */ 4758 _flag_k = FK_ADD; 4759 MEM32(ebp + 0x8) = edi; /* 0x2B066F08: mov dword ptr [ebp + 8], edi */ 4760 /* cmp edi, ebx */ /* 0x2B066F0B: cmp edi, ebx */ 4761 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4763 _flag_k = FK_CMP; 4764 MEM32(ebp + (-0x4)) = 2; /* 0x2B066F0D: mov dword ptr [ebp - 4], 2 */ 4765 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B066F46; /* 0x2B066F14: je 0x2b066f46 */ 4766 L_2B066F16: 4767 edx = MEM32(esi); /* 0x2B066F16: mov edx, dword ptr [esi] */ 4768 eax = MEM32(ebp + (-0x1C)); /* 0x2B066F18: mov eax, dword ptr [ebp - 0x1c] */ 4769 ecx = MEM32(ebp + (-0x20)); /* 0x2B066F1B: mov ecx, dword ptr [ebp - 0x20] */ 4770 PUSH32(esp, edx); /* 0x2B066F1E: push edx */ 4771 edx = MEM32(ebp + (-0x14)); /* 0x2B066F1F: mov edx, dword ptr [ebp - 0x14] */ 4772 PUSH32(esp, 4); /* 0x2B066F22: push 4 */ 4773 PUSH32(esp, ebx); /* 0x2B066F24: push ebx */ 4774 PUSH32(esp, 0x5208u); /* 0x2B066F25: push 0x5208 */ 4775 PUSH32(esp, ebx); /* 0x2B066F2A: push ebx */ 4776 PUSH32(esp, ebx); /* 0x2B066F2B: push ebx */ 4777 PUSH32(esp, ebx); /* 0x2B066F2C: push ebx */ 4778 PUSH32(esp, eax); /* 0x2B066F2D: push eax */ 4779 eax = MEM32(ebp + (-0x18)); /* 0x2B066F2E: mov eax, dword ptr [ebp - 0x18] */ 4780 PUSH32(esp, ecx); /* 0x2B066F31: push ecx */ 4781 PUSH32(esp, edx); /* 0x2B066F32: push edx */ 4782 PUSH32(esp, eax); /* 0x2B066F33: push eax */ 4783 ecx = edi; /* 0x2B066F34: mov ecx, edi */ 4784 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B066F36: call dword ptr [0x2b0b5af0] */ 4785 RECOMP_FLAGS_IN(); 4786 MEM32(edi) = 0x2B0B642Cu; /* 0x2B066F3C: mov dword ptr [edi], 0x2b0b642c */ 4787 eax = edi; /* 0x2B066F42: mov eax, edi */ 4788 goto L_2B066F48; /* 0x2B066F44: jmp 0x2b066f48 */ 4789 L_2B066F46: 4790 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4791 eax = 0; /* 0x2B066F46: xor eax, eax */ 4792 _cf = 0; 4793 _flag_k = FK_TEST; 4794 L_2B066F48: 4795 MEM32(esi + 0x8) = eax; /* 0x2B066F48: mov dword ptr [esi + 8], eax */ 4796 PUSH32(esp, esi); /* 0x2B066F4B: push esi */ 4797 MEM32(eax + 0x10) = 0x2B067460u; /* 0x2B066F4C: mov dword ptr [eax + 0x10], 0x2b067460 */ 4798 MEM32(eax + 0x14) = ebx; /* 0x2B066F53: mov dword ptr [eax + 0x14], ebx */ 4799 ecx = MEM32(esi + 0x8); /* 0x2B066F56: mov ecx, dword ptr [esi + 8] */ 4800 PUSH32(esp, 0x2B067450u); /* 0x2B066F59: push 0x2b067450 */ 4801 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B066F5E: mov dword ptr [ebp - 4], 0xffffffff */ 4802 RECOMP_ICALL(MEM32(0x2B0B5B44)); /* 0x2B066F65: call dword ptr [0x2b0b5b44] */ 4803 RECOMP_FLAGS_IN(); 4804 ecx = MEM32(esi + 0x8); /* 0x2B066F6B: mov ecx, dword ptr [esi + 8] */ 4805 ebx = MEM32(0x2B0B5C04); /* 0x2B066F6E: mov ebx, dword ptr [0x2b0b5c04] */ 4806 PUSH32(esp, 0x2B0EB0C0u); /* 0x2B066F74: push 0x2b0eb0c0 */ 4807 RECOMP_ICALL(ebx); /* 0x2B066F79: call ebx */ 4808 RECOMP_FLAGS_IN(); 4809 eax = MEM32(esi + 0x4); /* 0x2B066F7B: mov eax, dword ptr [esi + 4] */ 4810 ecx = MEM32(eax + 0x14); /* 0x2B066F7E: mov ecx, dword ptr [eax + 0x14] */ 4811 ecx = MEM32(ecx + 0xC); /* 0x2B066F81: mov ecx, dword ptr [ecx + 0xc] */ 4812 MEM32(ebp + (-0x20)) = ecx; /* 0x2B066F84: mov dword ptr [ebp - 0x20], ecx */ 4813 eax = MEM32(eax + 0x14); /* 0x2B066F87: mov eax, dword ptr [eax + 0x14] */ 4814 edx = MEM32(eax + 0x8); /* 0x2B066F8A: mov edx, dword ptr [eax + 8] */ 4815 ecx = MEM32(esi); /* 0x2B066F8D: mov ecx, dword ptr [esi] */ 4816 eax = ebp + (-0x20); /* 0x2B066F8F: lea eax, [ebp - 0x20] */ 4817 PUSH32(esp, eax); /* 0x2B066F92: push eax */ 4818 MEM32(ebp + (-0x1C)) = edx; /* 0x2B066F93: mov dword ptr [ebp - 0x1c], edx */ 4819 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B066F96: call dword ptr [0x2b0b5978] */ 4820 RECOMP_FLAGS_IN(); 4821 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4822 eax = 0; /* 0x2B066F9C: xor eax, eax */ 4823 _cf = 0; 4824 _flag_k = FK_TEST; 4825 ecx = 0xCu; /* 0x2B066F9E: mov ecx, 0xc */ 4826 edi = ebp + (-0x70); /* 0x2B066FA3: lea edi, [ebp - 0x70] */ 4827 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B066FA6: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 4828 edx = 0xD1u; /* 0x2B066FA8: mov edx, 0xd1 */ 4829 MEM32(ebp + (-0x14)) = 0x26u; /* 0x2B066FAD: mov dword ptr [ebp - 0x14], 0x26 */ 4830 ecx = MEM32(ebp + (-0x14)); /* 0x2B066FB4: mov ecx, dword ptr [ebp - 0x14] */ 4831 PUSH32(esp, 0xBCu); /* 0x2B066FB7: push 0xbc */ 4832 MEM32(ebp + (-0x18)) = edx; /* 0x2B066FBC: mov dword ptr [ebp - 0x18], edx */ 4833 MEM32(ebp + (-0x6C)) = 0x12u; /* 0x2B066FBF: mov dword ptr [ebp - 0x6c], 0x12 */ 4834 MEM32(ebp + (-0x68)) = 0xE2u; /* 0x2B066FC6: mov dword ptr [ebp - 0x68], 0xe2 */ 4835 MEM32(ebp + (-0x64)) = 0x2B0EB0A4u; /* 0x2B066FCD: mov dword ptr [ebp - 0x64], 0x2b0eb0a4 */ 4836 MEM32(ebp + (-0x60)) = edx; /* 0x2B066FD4: mov dword ptr [ebp - 0x60], edx */ 4837 MEM32(ebp + (-0x5C)) = ecx; /* 0x2B066FD7: mov dword ptr [ebp - 0x5c], ecx */ 4838 MEM32(ebp + (-0x70)) = 1; /* 0x2B066FDA: mov dword ptr [ebp - 0x70], 1 */ 4839 MEM32(ebp + (-0x58)) = 0x5209u; /* 0x2B066FE1: mov dword ptr [ebp - 0x58], 0x5209 */ 4840 MEM32(ebp + (-0x50)) = 0xCAu; /* 0x2B066FE8: mov dword ptr [ebp - 0x50], 0xca */ 4841 MEM32(ebp + (-0x4C)) = 0xCBu; /* 0x2B066FEF: mov dword ptr [ebp - 0x4c], 0xcb */ 4842 RECOMP_ICALL(0x2B0AB212u); /* 0x2B066FF6: call 0x2b0ab212 */ /* not lifted */ 4843 RECOMP_FLAGS_IN(); 4844 edi = eax; /* 0x2B066FFB: mov edi, eax */ 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; /* 0x2B066FFD: add esp, 4 */ 4848 _flag_k = FK_ADD; 4849 MEM32(ebp + 0x8) = edi; /* 0x2B067000: mov dword ptr [ebp + 8], edi */ 4850 /* test edi, edi */ /* 0x2B067003: test edi, edi */ 4851 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4852 _cf = 0; 4853 _flag_k = FK_TEST; 4854 MEM32(ebp + (-0x4)) = 3; /* 0x2B067005: mov dword ptr [ebp - 4], 3 */ 4855 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067027; /* 0x2B06700C: je 0x2b067027 */ 4856 L_2B06700E: 4857 edx = MEM32(esi); /* 0x2B06700E: mov edx, dword ptr [esi] */ 4858 PUSH32(esp, edx); /* 0x2B067010: push edx */ 4859 eax = ebp + (-0x70); /* 0x2B067011: lea eax, [ebp - 0x70] */ 4860 PUSH32(esp, eax); /* 0x2B067014: push eax */ 4861 ecx = edi; /* 0x2B067015: mov ecx, edi */ 4862 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B067017: call dword ptr [0x2b0b5afc] */ 4863 RECOMP_FLAGS_IN(); 4864 MEM32(edi) = 0x2B0B645Cu; /* 0x2B06701D: mov dword ptr [edi], 0x2b0b645c */ 4865 ecx = edi; /* 0x2B067023: mov ecx, edi */ 4866 goto L_2B067029; /* 0x2B067025: jmp 0x2b067029 */ 4867 L_2B067027: 4868 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4869 ecx = 0; /* 0x2B067027: xor ecx, ecx */ 4870 _cf = 0; 4871 _flag_k = FK_TEST; 4872 L_2B067029: 4873 PUSH32(esp, 0x2B0EB08Cu); /* 0x2B067029: push 0x2b0eb08c */ 4874 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B06702E: mov dword ptr [ebp - 4], 0xffffffff */ 4875 MEM32(esi + 0x10) = ecx; /* 0x2B067035: mov dword ptr [esi + 0x10], ecx */ 4876 RECOMP_ICALL(ebx); /* 0x2B067038: call ebx */ 4877 RECOMP_FLAGS_IN(); 4878 ecx = MEM32(esi + 0x10); /* 0x2B06703A: mov ecx, dword ptr [esi + 0x10] */ 4879 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B06703D: call dword ptr [0x2b0b5b34] */ 4880 RECOMP_FLAGS_IN(); 4881 eax = 0x15u; /* 0x2B067043: mov eax, 0x15 */ 4882 ebx = 0xE5u; /* 0x2B067048: mov ebx, 0xe5 */ 4883 PUSH32(esp, 0x50u); /* 0x2B06704D: push 0x50 */ 4884 MEM32(ebp + (-0x18)) = ebx; /* 0x2B06704F: mov dword ptr [ebp - 0x18], ebx */ 4885 MEM32(ebp + (-0x14)) = eax; /* 0x2B067052: mov dword ptr [ebp - 0x14], eax */ 4886 MEM32(ebp + (-0x2C)) = eax; /* 0x2B067055: mov dword ptr [ebp - 0x2c], eax */ 4887 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067058: call 0x2b0ab212 */ /* not lifted */ 4888 RECOMP_FLAGS_IN(); 4889 edi = eax; /* 0x2B06705D: mov edi, eax */ 4890 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4892 esp = esp + 4; /* 0x2B06705F: add esp, 4 */ 4893 _flag_k = FK_ADD; 4894 MEM32(ebp + 0x8) = edi; /* 0x2B067062: mov dword ptr [ebp + 8], edi */ 4895 /* test edi, edi */ /* 0x2B067065: test edi, edi */ 4896 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4897 _cf = 0; 4898 _flag_k = FK_TEST; 4899 MEM32(ebp + (-0x4)) = 4; /* 0x2B067067: mov dword ptr [ebp - 4], 4 */ 4900 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067099; /* 0x2B06706E: je 0x2b067099 */ 4901 L_2B067070: 4902 ecx = MEM32(esi); /* 0x2B067070: mov ecx, dword ptr [esi] */ 4903 edx = MEM32(ebp + (-0x14)); /* 0x2B067072: mov edx, dword ptr [ebp - 0x14] */ 4904 eax = MEM32(ebp + (-0x18)); /* 0x2B067075: mov eax, dword ptr [ebp - 0x18] */ 4905 PUSH32(esp, ecx); /* 0x2B067078: push ecx */ 4906 PUSH32(esp, 0x10u); /* 0x2B067079: push 0x10 */ 4907 PUSH32(esp, edx); /* 0x2B06707B: push edx */ 4908 PUSH32(esp, eax); /* 0x2B06707C: push eax */ 4909 PUSH32(esp, 0x5209u); /* 0x2B06707D: push 0x5209 */ 4910 PUSH32(esp, 0x2B0E785Cu); /* 0x2B067082: push 0x2b0e785c */ 4911 PUSH32(esp, 1); /* 0x2B067087: push 1 */ 4912 ecx = edi; /* 0x2B067089: mov ecx, edi */ 4913 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B06708B: call dword ptr [0x2b0b5950] */ 4914 RECOMP_FLAGS_IN(); 4915 MEM32(edi) = 0x2B0B6878u; /* 0x2B067091: mov dword ptr [edi], 0x2b0b6878 */ 4916 goto L_2B06709B; /* 0x2B067097: jmp 0x2b06709b */ 4917 L_2B067099: 4918 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4919 edi = 0; /* 0x2B067099: xor edi, edi */ 4920 _cf = 0; 4921 _flag_k = FK_TEST; 4922 L_2B06709B: 4923 ecx = MEM32(ebp + (-0x2C)); /* 0x2B06709B: mov ecx, dword ptr [ebp - 0x2c] */ 4924 MEM32(esi + 0x14) = edi; /* 0x2B06709E: mov dword ptr [esi + 0x14], edi */ 4925 eax = MEM32(edi + 0x34); /* 0x2B0670A1: mov eax, dword ptr [edi + 0x34] */ 4926 MEM32(eax) = ebx; /* 0x2B0670A4: mov dword ptr [eax], ebx */ 4927 ebx = MEM32(0x2B0B5858); /* 0x2B0670A6: mov ebx, dword ptr [0x2b0b5858] */ 4928 MEM32(eax + 0x4) = ecx; /* 0x2B0670AC: mov dword ptr [eax + 4], ecx */ 4929 ecx = 0x117u; /* 0x2B0670AF: mov ecx, 0x117 */ 4930 MEM32(eax + 0x8) = ecx; /* 0x2B0670B4: mov dword ptr [eax + 8], ecx */ 4931 ecx = 0x29u; /* 0x2B0670B7: mov ecx, 0x29 */ 4932 MEM32(eax + 0xC) = ecx; /* 0x2B0670BC: mov dword ptr [eax + 0xc], ecx */ 4933 ecx = MEM32(esi + 0x14); /* 0x2B0670BF: mov ecx, dword ptr [esi + 0x14] */ 4934 PUSH32(esp, 0x00FFFF00u); /* 0x2B0670C2: push 0xffff00 */ 4935 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0670C7: mov dword ptr [ebp - 4], 0xffffffff */ 4936 RECOMP_ICALL(ebx); /* 0x2B0670CE: call ebx */ 4937 RECOMP_FLAGS_IN(); 4938 eax = 0x2Bu; /* 0x2B0670D0: mov eax, 0x2b */ 4939 PUSH32(esp, 0x50u); /* 0x2B0670D5: push 0x50 */ 4940 MEM32(ebp + (-0x18)) = 0xCCu; /* 0x2B0670D7: mov dword ptr [ebp - 0x18], 0xcc */ 4941 MEM32(ebp + (-0x14)) = eax; /* 0x2B0670DE: mov dword ptr [ebp - 0x14], eax */ 4942 MEM32(ebp + (-0x3C)) = eax; /* 0x2B0670E1: mov dword ptr [ebp - 0x3c], eax */ 4943 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0670E4: call 0x2b0ab212 */ /* not lifted */ 4944 RECOMP_FLAGS_IN(); 4945 edi = eax; /* 0x2B0670E9: mov edi, eax */ 4946 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4947 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4948 esp = esp + 4; /* 0x2B0670EB: add esp, 4 */ 4949 _flag_k = FK_ADD; 4950 MEM32(ebp + 0x8) = edi; /* 0x2B0670EE: mov dword ptr [ebp + 8], edi */ 4951 /* test edi, edi */ /* 0x2B0670F1: test edi, edi */ 4952 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4953 _cf = 0; 4954 _flag_k = FK_TEST; 4955 MEM32(ebp + (-0x4)) = 5; /* 0x2B0670F3: mov dword ptr [ebp - 4], 5 */ 4956 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067125; /* 0x2B0670FA: je 0x2b067125 */ 4957 L_2B0670FC: 4958 edx = MEM32(esi); /* 0x2B0670FC: mov edx, dword ptr [esi] */ 4959 eax = MEM32(ebp + (-0x14)); /* 0x2B0670FE: mov eax, dword ptr [ebp - 0x14] */ 4960 ecx = MEM32(ebp + (-0x18)); /* 0x2B067101: mov ecx, dword ptr [ebp - 0x18] */ 4961 PUSH32(esp, edx); /* 0x2B067104: push edx */ 4962 PUSH32(esp, 0x10u); /* 0x2B067105: push 0x10 */ 4963 PUSH32(esp, eax); /* 0x2B067107: push eax */ 4964 PUSH32(esp, ecx); /* 0x2B067108: push ecx */ 4965 PUSH32(esp, 0x520Au); /* 0x2B067109: push 0x520a */ 4966 PUSH32(esp, 0x2B0E785Cu); /* 0x2B06710E: push 0x2b0e785c */ 4967 PUSH32(esp, 1); /* 0x2B067113: push 1 */ 4968 ecx = edi; /* 0x2B067115: mov ecx, edi */ 4969 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B067117: call dword ptr [0x2b0b5950] */ 4970 RECOMP_FLAGS_IN(); 4971 MEM32(edi) = 0x2B0B6878u; /* 0x2B06711D: mov dword ptr [edi], 0x2b0b6878 */ 4972 goto L_2B067127; /* 0x2B067123: jmp 0x2b067127 */ 4973 L_2B067125: 4974 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4975 edi = 0; /* 0x2B067125: xor edi, edi */ 4976 _cf = 0; 4977 _flag_k = FK_TEST; 4978 L_2B067127: 4979 edx = MEM32(ebp + (-0x3C)); /* 0x2B067127: mov edx, dword ptr [ebp - 0x3c] */ 4980 MEM32(esi + 0x18) = edi; /* 0x2B06712A: mov dword ptr [esi + 0x18], edi */ 4981 eax = MEM32(edi + 0x34); /* 0x2B06712D: mov eax, dword ptr [edi + 0x34] */ 4982 ecx = 0xCCu; /* 0x2B067130: mov ecx, 0xcc */ 4983 MEM32(eax) = ecx; /* 0x2B067135: mov dword ptr [eax], ecx */ 4984 MEM32(eax + 0x4) = edx; /* 0x2B067137: mov dword ptr [eax + 4], edx */ 4985 ecx = 0xE0u; /* 0x2B06713A: mov ecx, 0xe0 */ 4986 MEM32(eax + 0x8) = ecx; /* 0x2B06713F: mov dword ptr [eax + 8], ecx */ 4987 ecx = 0x3Fu; /* 0x2B067142: mov ecx, 0x3f */ 4988 MEM32(eax + 0xC) = ecx; /* 0x2B067147: mov dword ptr [eax + 0xc], ecx */ 4989 ecx = MEM32(esi + 0x18); /* 0x2B06714A: mov ecx, dword ptr [esi + 0x18] */ 4990 PUSH32(esp, 0x00FFFF00u); /* 0x2B06714D: push 0xffff00 */ 4991 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067152: mov dword ptr [ebp - 4], 0xffffffff */ 4992 RECOMP_ICALL(ebx); /* 0x2B067159: call ebx */ 4993 RECOMP_FLAGS_IN(); 4994 PUSH32(esp, 0x38u); /* 0x2B06715B: push 0x38 */ 4995 MEM32(ebp + (-0x18)) = 0xA2u; /* 0x2B06715D: mov dword ptr [ebp - 0x18], 0xa2 */ 4996 MEM32(ebp + (-0x14)) = 0x26u; /* 0x2B067164: mov dword ptr [ebp - 0x14], 0x26 */ 4997 RECOMP_ICALL(0x2B0AB212u); /* 0x2B06716B: call 0x2b0ab212 */ /* not lifted */ 4998 RECOMP_FLAGS_IN(); 4999 edi = eax; /* 0x2B067170: mov edi, eax */ 5000 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5002 esp = esp + 4; /* 0x2B067172: add esp, 4 */ 5003 _flag_k = FK_ADD; 5004 MEM32(ebp + 0x8) = edi; /* 0x2B067175: mov dword ptr [ebp + 8], edi */ 5005 /* test edi, edi */ /* 0x2B067178: test edi, edi */ 5006 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5007 _cf = 0; 5008 _flag_k = FK_TEST; 5009 MEM32(ebp + (-0x4)) = 6; /* 0x2B06717A: mov dword ptr [ebp - 4], 6 */ 5010 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0671A4; /* 0x2B067181: je 0x2b0671a4 */ 5011 L_2B067183: 5012 eax = MEM32(esi); /* 0x2B067183: mov eax, dword ptr [esi] */ 5013 PUSH32(esp, eax); /* 0x2B067185: push eax */ 5014 PUSH32(esp, 0x5209u); /* 0x2B067186: push 0x5209 */ 5015 PUSH32(esp, 0xCCu); /* 0x2B06718B: push 0xcc */ 5016 ecx = ebp + (-0x18); /* 0x2B067190: lea ecx, [ebp - 0x18] */ 5017 PUSH32(esp, ecx); /* 0x2B067193: push ecx */ 5018 ecx = edi; /* 0x2B067194: mov ecx, edi */ 5019 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B067196: call dword ptr [0x2b0b5948] */ 5020 RECOMP_FLAGS_IN(); 5021 MEM32(edi) = 0x2B0B68F4u; /* 0x2B06719C: mov dword ptr [edi], 0x2b0b68f4 */ 5022 goto L_2B0671A6; /* 0x2B0671A2: jmp 0x2b0671a6 */ 5023 L_2B0671A4: 5024 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5025 edi = 0; /* 0x2B0671A4: xor edi, edi */ 5026 _cf = 0; 5027 _flag_k = FK_TEST; 5028 L_2B0671A6: 5029 eax = 0x13u; /* 0x2B0671A6: mov eax, 0x13 */ 5030 ebx = 5; /* 0x2B0671AB: mov ebx, 5 */ 5031 PUSH32(esp, 0x50u); /* 0x2B0671B0: push 0x50 */ 5032 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0671B2: mov dword ptr [ebp - 4], 0xffffffff */ 5033 MEM32(esi + 0x20) = edi; /* 0x2B0671B9: mov dword ptr [esi + 0x20], edi */ 5034 MEM32(ebp + (-0x18)) = ebx; /* 0x2B0671BC: mov dword ptr [ebp - 0x18], ebx */ 5035 MEM32(ebp + (-0x14)) = eax; /* 0x2B0671BF: mov dword ptr [ebp - 0x14], eax */ 5036 MEM32(ebp + (-0x2C)) = eax; /* 0x2B0671C2: mov dword ptr [ebp - 0x2c], eax */ 5037 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0671C5: call 0x2b0ab212 */ /* not lifted */ 5038 RECOMP_FLAGS_IN(); 5039 edi = eax; /* 0x2B0671CA: mov edi, eax */ 5040 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5042 esp = esp + 4; /* 0x2B0671CC: add esp, 4 */ 5043 _flag_k = FK_ADD; 5044 MEM32(ebp + 0x8) = edi; /* 0x2B0671CF: mov dword ptr [ebp + 8], edi */ 5045 /* test edi, edi */ /* 0x2B0671D2: test edi, edi */ 5046 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5047 _cf = 0; 5048 _flag_k = FK_TEST; 5049 MEM32(ebp + (-0x4)) = 7; /* 0x2B0671D4: mov dword ptr [ebp - 4], 7 */ 5050 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067209; /* 0x2B0671DB: je 0x2b067209 */ 5051 L_2B0671DD: 5052 edx = MEM32(esi); /* 0x2B0671DD: mov edx, dword ptr [esi] */ 5053 eax = MEM32(ebp + (-0x14)); /* 0x2B0671DF: mov eax, dword ptr [ebp - 0x14] */ 5054 ecx = MEM32(ebp + (-0x18)); /* 0x2B0671E2: mov ecx, dword ptr [ebp - 0x18] */ 5055 PUSH32(esp, edx); /* 0x2B0671E5: push edx */ 5056 PUSH32(esp, 0x2000u); /* 0x2B0671E6: push 0x2000 */ 5057 PUSH32(esp, eax); /* 0x2B0671EB: push eax */ 5058 PUSH32(esp, ecx); /* 0x2B0671EC: push ecx */ 5059 PUSH32(esp, 0x5209u); /* 0x2B0671ED: push 0x5209 */ 5060 PUSH32(esp, 0x2B0EB07Cu); /* 0x2B0671F2: push 0x2b0eb07c */ 5061 PUSH32(esp, 2); /* 0x2B0671F7: push 2 */ 5062 ecx = edi; /* 0x2B0671F9: mov ecx, edi */ 5063 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B0671FB: call dword ptr [0x2b0b5950] */ 5064 RECOMP_FLAGS_IN(); 5065 MEM32(edi) = 0x2B0B6878u; /* 0x2B067201: mov dword ptr [edi], 0x2b0b6878 */ 5066 goto L_2B06720B; /* 0x2B067207: jmp 0x2b06720b */ 5067 L_2B067209: 5068 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5069 edi = 0; /* 0x2B067209: xor edi, edi */ 5070 _cf = 0; 5071 _flag_k = FK_TEST; 5072 L_2B06720B: 5073 eax = MEM32(ebp + (-0x2C)); /* 0x2B06720B: mov eax, dword ptr [ebp - 0x2c] */ 5074 MEM32(esi + 0x1C) = edi; /* 0x2B06720E: mov dword ptr [esi + 0x1c], edi */ 5075 edx = MEM32(edi + 0x34); /* 0x2B067211: mov edx, dword ptr [edi + 0x34] */ 5076 MEM32(edx) = ebx; /* 0x2B067214: mov dword ptr [edx], ebx */ 5077 MEM32(edx + 0x4) = eax; /* 0x2B067216: mov dword ptr [edx + 4], eax */ 5078 eax = 0x9Eu; /* 0x2B067219: mov eax, 0x9e */ 5079 MEM32(edx + 0x8) = eax; /* 0x2B06721E: mov dword ptr [edx + 8], eax */ 5080 eax = 0x3Bu; /* 0x2B067221: mov eax, 0x3b */ 5081 ecx = esi; /* 0x2B067226: mov ecx, esi */ 5082 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067228: mov dword ptr [ebp - 4], 0xffffffff */ 5083 MEM32(edx + 0xC) = eax; /* 0x2B06722F: mov dword ptr [edx + 0xc], eax */ 5084 RECOMP_ICALL(0x2B0672E0u); /* 0x2B067232: call 0x2b0672e0 */ /* not lifted */ 5085 RECOMP_FLAGS_IN(); 5086 PUSH32(esp, 0); /* 0x2B067237: push 0 */ 5087 ecx = esi; /* 0x2B067239: mov ecx, esi */ 5088 RECOMP_ICALL(0x2B0673B0u); /* 0x2B06723B: call 0x2b0673b0 */ /* not lifted */ 5089 RECOMP_FLAGS_IN(); 5090 ecx = MEM32(ebp + (-0xC)); /* 0x2B067240: mov ecx, dword ptr [ebp - 0xc] */ 5091 edi = POP32_VAL(esp); /* 0x2B067243: pop edi */ 5092 eax = esi; /* 0x2B067244: mov eax, esi */ 5093 esi = POP32_VAL(esp); /* 0x2B067246: pop esi */ 5094 ebx = POP32_VAL(esp); /* 0x2B067247: pop ebx */ 5095 MEM32(FS_BASE + (0)) = ecx; /* 0x2B067248: mov dword ptr fs:[0], ecx */ 5096 esp = ebp; /* 0x2B06724F: mov esp, ebp */ 5097 ebp = POP32_VAL(esp); /* 0x2B067251: pop ebp */ 5098 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B067252: ret 4 */ 5099 RECOMP_REGS_OUT(); 5100 } 5101 5102 void sub_2B06720B(void) { 5103 int _fpu_cmp = 0; 5104 uint32_t _cf = 0; 5105 int _df = 1; 5106 uint32_t _flag_k = FK_NONE; 5107 uint32_t _flag_a = 0, _flag_b = 0; 5108 uint32_t _itail_tgt = 0; 5109 RECOMP_REGS_LOCALS 5110 RECOMP_ENTER(0x2B06720Bu); 5111 5112 L_2B06720B: 5113 eax = MEM32(ebp + (-0x2C)); /* 0x2B06720B: mov eax, dword ptr [ebp - 0x2c] */ 5114 MEM32(esi + 0x1C) = edi; /* 0x2B06720E: mov dword ptr [esi + 0x1c], edi */ 5115 edx = MEM32(edi + 0x34); /* 0x2B067211: mov edx, dword ptr [edi + 0x34] */ 5116 MEM32(edx) = ebx; /* 0x2B067214: mov dword ptr [edx], ebx */ 5117 MEM32(edx + 0x4) = eax; /* 0x2B067216: mov dword ptr [edx + 4], eax */ 5118 eax = 0x9Eu; /* 0x2B067219: mov eax, 0x9e */ 5119 MEM32(edx + 0x8) = eax; /* 0x2B06721E: mov dword ptr [edx + 8], eax */ 5120 eax = 0x3Bu; /* 0x2B067221: mov eax, 0x3b */ 5121 ecx = esi; /* 0x2B067226: mov ecx, esi */ 5122 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067228: mov dword ptr [ebp - 4], 0xffffffff */ 5123 MEM32(edx + 0xC) = eax; /* 0x2B06722F: mov dword ptr [edx + 0xc], eax */ 5124 RECOMP_ICALL(0x2B0672E0u); /* 0x2B067232: call 0x2b0672e0 */ /* not lifted */ 5125 RECOMP_FLAGS_IN(); 5126 PUSH32(esp, 0); /* 0x2B067237: push 0 */ 5127 ecx = esi; /* 0x2B067239: mov ecx, esi */ 5128 RECOMP_ICALL(0x2B0673B0u); /* 0x2B06723B: call 0x2b0673b0 */ /* not lifted */ 5129 RECOMP_FLAGS_IN(); 5130 ecx = MEM32(ebp + (-0xC)); /* 0x2B067240: mov ecx, dword ptr [ebp - 0xc] */ 5131 edi = POP32_VAL(esp); /* 0x2B067243: pop edi */ 5132 eax = esi; /* 0x2B067244: mov eax, esi */ 5133 esi = POP32_VAL(esp); /* 0x2B067246: pop esi */ 5134 ebx = POP32_VAL(esp); /* 0x2B067247: pop ebx */ 5135 MEM32(FS_BASE + (0)) = ecx; /* 0x2B067248: mov dword ptr fs:[0], ecx */ 5136 esp = ebp; /* 0x2B06724F: mov esp, ebp */ 5137 ebp = POP32_VAL(esp); /* 0x2B067251: pop ebp */ 5138 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B067252: ret 4 */ 5139 RECOMP_REGS_OUT(); 5140 } 5141 5142 void sub_2B067260(void) { 5143 int _fpu_cmp = 0; 5144 uint32_t _cf = 0; 5145 int _df = 1; 5146 uint32_t _flag_k = FK_NONE; 5147 uint32_t _flag_a = 0, _flag_b = 0; 5148 uint32_t _itail_tgt = 0; 5149 RECOMP_REGS_LOCALS 5150 RECOMP_ENTER(0x2B067260u); 5151 5152 L_2B067260: 5153 PUSH32(esp, esi); /* 0x2B067260: push esi */ 5154 esi = ecx; /* 0x2B067261: mov esi, ecx */ 5155 ecx = MEM32(esi + 0x4); /* 0x2B067263: mov ecx, dword ptr [esi + 4] */ 5156 /* test ecx, ecx */ /* 0x2B067266: test ecx, ecx */ 5157 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5158 _cf = 0; 5159 _flag_k = FK_TEST; 5160 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067270; /* 0x2B067268: je 0x2b067270 */ 5161 L_2B06726A: 5162 eax = MEM32(ecx); /* 0x2B06726A: mov eax, dword ptr [ecx] */ 5163 PUSH32(esp, 1); /* 0x2B06726C: push 1 */ 5164 RECOMP_ICALL(MEM32(eax)); /* 0x2B06726E: call dword ptr [eax] */ 5165 RECOMP_FLAGS_IN(); 5166 L_2B067270: 5167 ecx = MEM32(esi + 0x8); /* 0x2B067270: mov ecx, dword ptr [esi + 8] */ 5168 /* test ecx, ecx */ /* 0x2B067273: test ecx, ecx */ 5169 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5170 _cf = 0; 5171 _flag_k = FK_TEST; 5172 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06727D; /* 0x2B067275: je 0x2b06727d */ 5173 L_2B067277: 5174 edx = MEM32(ecx); /* 0x2B067277: mov edx, dword ptr [ecx] */ 5175 PUSH32(esp, 1); /* 0x2B067279: push 1 */ 5176 RECOMP_ICALL(MEM32(edx)); /* 0x2B06727B: call dword ptr [edx] */ 5177 RECOMP_FLAGS_IN(); 5178 L_2B06727D: 5179 ecx = MEM32(esi + 0x10); /* 0x2B06727D: mov ecx, dword ptr [esi + 0x10] */ 5180 /* test ecx, ecx */ /* 0x2B067280: test ecx, ecx */ 5181 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5182 _cf = 0; 5183 _flag_k = FK_TEST; 5184 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06728A; /* 0x2B067282: je 0x2b06728a */ 5185 L_2B067284: 5186 eax = MEM32(ecx); /* 0x2B067284: mov eax, dword ptr [ecx] */ 5187 PUSH32(esp, 1); /* 0x2B067286: push 1 */ 5188 RECOMP_ICALL(MEM32(eax)); /* 0x2B067288: call dword ptr [eax] */ 5189 RECOMP_FLAGS_IN(); 5190 L_2B06728A: 5191 PUSH32(esp, edi); /* 0x2B06728A: push edi */ 5192 edi = MEM32(esi); /* 0x2B06728B: mov edi, dword ptr [esi] */ 5193 /* test edi, edi */ /* 0x2B06728D: test edi, edi */ 5194 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5195 _cf = 0; 5196 _flag_k = FK_TEST; 5197 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0672A2; /* 0x2B06728F: je 0x2b0672a2 */ 5198 L_2B067291: 5199 ecx = edi; /* 0x2B067291: mov ecx, edi */ 5200 RECOMP_ICALL(MEM32(0x2B0B5BC4)); /* 0x2B067293: call dword ptr [0x2b0b5bc4] */ 5201 RECOMP_FLAGS_IN(); 5202 PUSH32(esp, edi); /* 0x2B067299: push edi */ 5203 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06729A: call 0x2b0ab1ba */ /* not lifted */ 5204 RECOMP_FLAGS_IN(); 5205 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5207 esp = esp + 4; /* 0x2B06729F: add esp, 4 */ 5208 _flag_k = FK_ADD; 5209 L_2B0672A2: 5210 ecx = MEM32(esi + 0x1C); /* 0x2B0672A2: mov ecx, dword ptr [esi + 0x1c] */ 5211 /* test ecx, ecx */ /* 0x2B0672A5: test ecx, ecx */ 5212 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5213 _cf = 0; 5214 _flag_k = FK_TEST; 5215 edi = POP32_VAL(esp); /* 0x2B0672A7: pop edi */ 5216 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0672B0; /* 0x2B0672A8: je 0x2b0672b0 */ 5217 L_2B0672AA: 5218 edx = MEM32(ecx); /* 0x2B0672AA: mov edx, dword ptr [ecx] */ 5219 PUSH32(esp, 1); /* 0x2B0672AC: push 1 */ 5220 RECOMP_ICALL(MEM32(edx)); /* 0x2B0672AE: call dword ptr [edx] */ 5221 RECOMP_FLAGS_IN(); 5222 L_2B0672B0: 5223 ecx = MEM32(esi + 0x14); /* 0x2B0672B0: mov ecx, dword ptr [esi + 0x14] */ 5224 /* test ecx, ecx */ /* 0x2B0672B3: test ecx, ecx */ 5225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5226 _cf = 0; 5227 _flag_k = FK_TEST; 5228 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0672BD; /* 0x2B0672B5: je 0x2b0672bd */ 5229 L_2B0672B7: 5230 eax = MEM32(ecx); /* 0x2B0672B7: mov eax, dword ptr [ecx] */ 5231 PUSH32(esp, 1); /* 0x2B0672B9: push 1 */ 5232 RECOMP_ICALL(MEM32(eax)); /* 0x2B0672BB: call dword ptr [eax] */ 5233 RECOMP_FLAGS_IN(); 5234 L_2B0672BD: 5235 ecx = MEM32(esi + 0x18); /* 0x2B0672BD: mov ecx, dword ptr [esi + 0x18] */ 5236 /* test ecx, ecx */ /* 0x2B0672C0: test ecx, ecx */ 5237 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5238 _cf = 0; 5239 _flag_k = FK_TEST; 5240 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0672CA; /* 0x2B0672C2: je 0x2b0672ca */ 5241 L_2B0672C4: 5242 edx = MEM32(ecx); /* 0x2B0672C4: mov edx, dword ptr [ecx] */ 5243 PUSH32(esp, 1); /* 0x2B0672C6: push 1 */ 5244 RECOMP_ICALL(MEM32(edx)); /* 0x2B0672C8: call dword ptr [edx] */ 5245 RECOMP_FLAGS_IN(); 5246 L_2B0672CA: 5247 ecx = MEM32(esi + 0x20); /* 0x2B0672CA: mov ecx, dword ptr [esi + 0x20] */ 5248 /* test ecx, ecx */ /* 0x2B0672CD: test ecx, ecx */ 5249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5250 _cf = 0; 5251 _flag_k = FK_TEST; 5252 esi = POP32_VAL(esp); /* 0x2B0672CF: pop esi */ 5253 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0672D8; /* 0x2B0672D0: je 0x2b0672d8 */ 5254 L_2B0672D2: 5255 eax = MEM32(ecx); /* 0x2B0672D2: mov eax, dword ptr [ecx] */ 5256 PUSH32(esp, 1); /* 0x2B0672D4: push 1 */ 5257 RECOMP_ICALL(MEM32(eax)); /* 0x2B0672D6: call dword ptr [eax] */ 5258 RECOMP_FLAGS_IN(); 5259 L_2B0672D8: 5260 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0672D8: ret */ 5261 RECOMP_REGS_OUT(); 5262 } 5263 5264 void sub_2B0672E0(void) { 5265 int _fpu_cmp = 0; 5266 uint32_t _cf = 0; 5267 int _df = 1; 5268 uint32_t _flag_k = FK_NONE; 5269 uint32_t _flag_a = 0, _flag_b = 0; 5270 uint32_t _itail_tgt = 0; 5271 RECOMP_REGS_LOCALS 5272 RECOMP_ENTER(0x2B0672E0u); 5273 5274 L_2B0672E0: 5275 PUSH32(esp, ebp); /* 0x2B0672E0: push ebp */ 5276 ebp = esp; /* 0x2B0672E1: mov ebp, esp */ 5277 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x110u); 5278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5279 esp = esp - 0x110u; /* 0x2B0672E3: sub esp, 0x110 */ 5280 _flag_k = FK_CMP; 5281 PUSH32(esp, ebx); /* 0x2B0672E9: push ebx */ 5282 PUSH32(esp, esi); /* 0x2B0672EA: push esi */ 5283 PUSH32(esp, edi); /* 0x2B0672EB: push edi */ 5284 edi = ecx; /* 0x2B0672EC: mov edi, ecx */ 5285 MEM8(edi + 0x24) = (uint8_t)(0); /* 0x2B0672EE: mov byte ptr [edi + 0x24], 0 */ 5286 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B0672F2: call dword ptr [0x2b0b5b64] */ 5287 RECOMP_FLAGS_IN(); 5288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xD4u); 5289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5290 eax = eax + 0xD4u; /* 0x2B0672F8: add eax, 0xd4 */ 5291 _flag_k = FK_ADD; 5292 ecx = ebp + (-0x8); /* 0x2B0672FD: lea ecx, [ebp - 8] */ 5293 /* cmp ecx, eax */ /* 0x2B067300: cmp ecx, eax */ 5294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5296 _flag_k = FK_CMP; 5297 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B06730F; /* 0x2B067302: je 0x2b06730f */ 5298 L_2B067304: 5299 edx = MEM32(eax); /* 0x2B067304: mov edx, dword ptr [eax] */ 5300 MEM32(ebp + (-0x8)) = edx; /* 0x2B067306: mov dword ptr [ebp - 8], edx */ 5301 eax = MEM32(eax + 0x4); /* 0x2B067309: mov eax, dword ptr [eax + 4] */ 5302 MEM32(ebp + (-0x4)) = eax; /* 0x2B06730C: mov dword ptr [ebp - 4], eax */ 5303 L_2B06730F: 5304 esi = MEM32(0x2B0B5D6C); /* 0x2B06730F: mov esi, dword ptr [0x2b0b5d6c] */ 5305 ecx = ebp + (-0x8); /* 0x2B067315: lea ecx, [ebp - 8] */ 5306 PUSH32(esp, ecx); /* 0x2B067318: push ecx */ 5307 RECOMP_ICALL(esi); /* 0x2B067319: call esi */ 5308 RECOMP_FLAGS_IN(); 5309 ecx = eax; /* 0x2B06731B: mov ecx, eax */ 5310 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B06731D: call dword ptr [0x2b0b5d50] */ 5311 RECOMP_FLAGS_IN(); 5312 ecx = MEM32(edi + 0x1C); /* 0x2B067323: mov ecx, dword ptr [edi + 0x1c] */ 5313 PUSH32(esp, 0x00FFFFFFu); /* 0x2B067326: push 0xffffff */ 5314 MEM32(ebp + (-0x4)) = eax; /* 0x2B06732B: mov dword ptr [ebp - 4], eax */ 5315 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B06732E: call dword ptr [0x2b0b5858] */ 5316 RECOMP_FLAGS_IN(); 5317 PUSH32(esp, 2); /* 0x2B067334: push 2 */ 5318 PUSH32(esp, 0x3Cu); /* 0x2B067336: push 0x3c */ 5319 RECOMP_ICALL(esi); /* 0x2B067338: call esi */ 5320 RECOMP_FLAGS_IN(); 5321 ecx = eax; /* 0x2B06733A: mov ecx, eax */ 5322 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B06733C: call dword ptr [0x2b0b5d70] */ 5323 RECOMP_FLAGS_IN(); 5324 PUSH32(esp, 2); /* 0x2B067342: push 2 */ 5325 PUSH32(esp, 0x25u); /* 0x2B067344: push 0x25 */ 5326 ebx = eax; /* 0x2B067346: mov ebx, eax */ 5327 RECOMP_ICALL(esi); /* 0x2B067348: call esi */ 5328 RECOMP_FLAGS_IN(); 5329 ecx = eax; /* 0x2B06734A: mov ecx, eax */ 5330 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B06734C: call dword ptr [0x2b0b5d70] */ 5331 RECOMP_FLAGS_IN(); 5332 MEM32(ebp + (-0x10)) = eax; /* 0x2B067352: mov dword ptr [ebp - 0x10], eax */ 5333 RECOMP_ICALL(esi); /* 0x2B067355: call esi */ 5334 RECOMP_FLAGS_IN(); 5335 PUSH32(esp, ebx); /* 0x2B067357: push ebx */ 5336 RECOMP_ICALL(MEM32(0x2B0B5F10)); /* 0x2B067358: call dword ptr [0x2b0b5f10] */ 5337 RECOMP_FLAGS_IN(); 5338 edx = MEM32(ebp + (-0x10)); /* 0x2B06735E: mov edx, dword ptr [ebp - 0x10] */ 5339 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5341 esp = esp + 4; /* 0x2B067361: add esp, 4 */ 5342 _flag_k = FK_ADD; 5343 PUSH32(esp, edx); /* 0x2B067364: push edx */ 5344 PUSH32(esp, ebx); /* 0x2B067365: push ebx */ 5345 MEM32(ebp + (-0xC)) = eax; /* 0x2B067366: mov dword ptr [ebp - 0xc], eax */ 5346 RECOMP_ICALL(esi); /* 0x2B067369: call esi */ 5347 RECOMP_FLAGS_IN(); 5348 ecx = eax; /* 0x2B06736B: mov ecx, eax */ 5349 RECOMP_ICALL(MEM32(0x2B0B5DC0)); /* 0x2B06736D: call dword ptr [0x2b0b5dc0] */ 5350 RECOMP_FLAGS_IN(); 5351 ecx = MEM32(ebp + (-0xC)); /* 0x2B067373: mov ecx, dword ptr [ebp - 0xc] */ 5352 edx = MEM32(ebp + (-0x4)); /* 0x2B067376: mov edx, dword ptr [ebp - 4] */ 5353 PUSH32(esp, ecx); /* 0x2B067379: push ecx */ 5354 PUSH32(esp, eax); /* 0x2B06737A: push eax */ 5355 PUSH32(esp, edx); /* 0x2B06737B: push edx */ 5356 eax = ebp + (-0x110); /* 0x2B06737C: lea eax, [ebp - 0x110] */ 5357 PUSH32(esp, 0x2B0EB0F0u); /* 0x2B067382: push 0x2b0eb0f0 */ 5358 PUSH32(esp, eax); /* 0x2B067387: push eax */ 5359 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B067388: call dword ptr [0x2b0b51f0] */ 5360 RECOMP_FLAGS_IN(); 5361 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5363 esp = esp + 0x14u; /* 0x2B06738E: add esp, 0x14 */ 5364 _flag_k = FK_ADD; 5365 ecx = ebp + (-0x110); /* 0x2B067391: lea ecx, [ebp - 0x110] */ 5366 PUSH32(esp, ecx); /* 0x2B067397: push ecx */ 5367 ecx = MEM32(edi + 0x1C); /* 0x2B067398: mov ecx, dword ptr [edi + 0x1c] */ 5368 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B06739B: call dword ptr [0x2b0b5850] */ 5369 RECOMP_FLAGS_IN(); 5370 ecx = edi; /* 0x2B0673A1: mov ecx, edi */ 5371 RECOMP_ICALL(0x2B067770u); /* 0x2B0673A3: call 0x2b067770 */ /* not lifted */ 5372 RECOMP_FLAGS_IN(); 5373 edi = POP32_VAL(esp); /* 0x2B0673A8: pop edi */ 5374 esi = POP32_VAL(esp); /* 0x2B0673A9: pop esi */ 5375 ebx = POP32_VAL(esp); /* 0x2B0673AA: pop ebx */ 5376 esp = ebp; /* 0x2B0673AB: mov esp, ebp */ 5377 ebp = POP32_VAL(esp); /* 0x2B0673AD: pop ebp */ 5378 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0673AE: ret */ 5379 RECOMP_REGS_OUT(); 5380 } 5381 5382 void sub_2B0673B0(void) { 5383 int _fpu_cmp = 0; 5384 uint32_t _cf = 0; 5385 int _df = 1; 5386 uint32_t _flag_k = FK_NONE; 5387 uint32_t _flag_a = 0, _flag_b = 0; 5388 uint32_t _itail_tgt = 0; 5389 RECOMP_REGS_LOCALS 5390 RECOMP_ENTER(0x2B0673B0u); 5391 5392 L_2B0673B0: 5393 PUSH32(esp, ebp); /* 0x2B0673B0: push ebp */ 5394 ebp = esp; /* 0x2B0673B1: mov ebp, esp */ 5395 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5397 esp = esp - 0x20u; /* 0x2B0673B3: sub esp, 0x20 */ 5398 _flag_k = FK_CMP; 5399 eax = MEM32(ebp + 0x8); /* 0x2B0673B6: mov eax, dword ptr [ebp + 8] */ 5400 PUSH32(esp, esi); /* 0x2B0673B9: push esi */ 5401 PUSH32(esp, eax); /* 0x2B0673BA: push eax */ 5402 esi = ecx; /* 0x2B0673BB: mov esi, ecx */ 5403 ecx = ebp + (-0x20); /* 0x2B0673BD: lea ecx, [ebp - 0x20] */ 5404 PUSH32(esp, 0x2B0E7354u); /* 0x2B0673C0: push 0x2b0e7354 */ 5405 PUSH32(esp, ecx); /* 0x2B0673C5: push ecx */ 5406 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B0673C6: call dword ptr [0x2b0b51f0] */ 5407 RECOMP_FLAGS_IN(); 5408 ecx = MEM32(esi + 0x14); /* 0x2B0673CC: mov ecx, dword ptr [esi + 0x14] */ 5409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5410 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5411 esp = esp + 0xCu; /* 0x2B0673CF: add esp, 0xc */ 5412 _flag_k = FK_ADD; 5413 edx = ebp + (-0x20); /* 0x2B0673D2: lea edx, [ebp - 0x20] */ 5414 PUSH32(esp, edx); /* 0x2B0673D5: push edx */ 5415 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B0673D6: call dword ptr [0x2b0b5850] */ 5416 RECOMP_FLAGS_IN(); 5417 ecx = esi; /* 0x2B0673DC: mov ecx, esi */ 5418 RECOMP_ICALL(0x2B067770u); /* 0x2B0673DE: call 0x2b067770 */ /* not lifted */ 5419 RECOMP_FLAGS_IN(); 5420 esi = POP32_VAL(esp); /* 0x2B0673E3: pop esi */ 5421 esp = ebp; /* 0x2B0673E4: mov esp, ebp */ 5422 ebp = POP32_VAL(esp); /* 0x2B0673E6: pop ebp */ 5423 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0673E7: ret 4 */ 5424 RECOMP_REGS_OUT(); 5425 } 5426 5427 void sub_2B0673F0(void) { 5428 int _fpu_cmp = 0; 5429 uint32_t _cf = 0; 5430 int _df = 1; 5431 uint32_t _flag_k = FK_NONE; 5432 uint32_t _flag_a = 0, _flag_b = 0; 5433 uint32_t _itail_tgt = 0; 5434 RECOMP_REGS_LOCALS 5435 RECOMP_ENTER(0x2B0673F0u); 5436 5437 L_2B0673F0: 5438 PUSH32(esp, ebp); /* 0x2B0673F0: push ebp */ 5439 ebp = esp; /* 0x2B0673F1: mov ebp, esp */ 5440 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5442 esp = esp - 0x20u; /* 0x2B0673F3: sub esp, 0x20 */ 5443 _flag_k = FK_CMP; 5444 PUSH32(esp, esi); /* 0x2B0673F6: push esi */ 5445 PUSH32(esp, edi); /* 0x2B0673F7: push edi */ 5446 edi = MEM32(ebp + 0x8); /* 0x2B0673F8: mov edi, dword ptr [ebp + 8] */ 5447 PUSH32(esp, edi); /* 0x2B0673FB: push edi */ 5448 eax = ebp + (-0x20); /* 0x2B0673FC: lea eax, [ebp - 0x20] */ 5449 PUSH32(esp, 0x2B0E7354u); /* 0x2B0673FF: push 0x2b0e7354 */ 5450 PUSH32(esp, eax); /* 0x2B067404: push eax */ 5451 esi = ecx; /* 0x2B067405: mov esi, ecx */ 5452 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B067407: call dword ptr [0x2b0b51f0] */ 5453 RECOMP_FLAGS_IN(); 5454 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5455 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5456 esp = esp + 0xCu; /* 0x2B06740D: add esp, 0xc */ 5457 _flag_k = FK_ADD; 5458 ecx = ebp + (-0x20); /* 0x2B067410: lea ecx, [ebp - 0x20] */ 5459 PUSH32(esp, ecx); /* 0x2B067413: push ecx */ 5460 ecx = MEM32(esi + 0x18); /* 0x2B067414: mov ecx, dword ptr [esi + 0x18] */ 5461 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B067417: call dword ptr [0x2b0b5850] */ 5462 RECOMP_FLAGS_IN(); 5463 /* test edi, edi */ /* 0x2B06741D: test edi, edi */ 5464 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5465 _cf = 0; 5466 _flag_k = FK_TEST; 5467 ecx = MEM32(esi + 0x10); /* 0x2B06741F: mov ecx, dword ptr [esi + 0x10] */ 5468 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B067439; /* 0x2B067422: jne 0x2b067439 */ 5469 L_2B067424: 5470 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B067424: call dword ptr [0x2b0b5b34] */ 5471 RECOMP_FLAGS_IN(); 5472 ecx = esi; /* 0x2B06742A: mov ecx, esi */ 5473 RECOMP_ICALL(0x2B067770u); /* 0x2B06742C: call 0x2b067770 */ /* not lifted */ 5474 RECOMP_FLAGS_IN(); 5475 edi = POP32_VAL(esp); /* 0x2B067431: pop edi */ 5476 esi = POP32_VAL(esp); /* 0x2B067432: pop esi */ 5477 esp = ebp; /* 0x2B067433: mov esp, ebp */ 5478 ebp = POP32_VAL(esp); /* 0x2B067435: pop ebp */ 5479 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B067436: ret 4 */ 5480 L_2B067439: 5481 RECOMP_ICALL(MEM32(0x2B0B5B3C)); /* 0x2B067439: call dword ptr [0x2b0b5b3c] */ 5482 RECOMP_FLAGS_IN(); 5483 ecx = esi; /* 0x2B06743F: mov ecx, esi */ 5484 RECOMP_ICALL(0x2B067770u); /* 0x2B067441: call 0x2b067770 */ /* not lifted */ 5485 RECOMP_FLAGS_IN(); 5486 edi = POP32_VAL(esp); /* 0x2B067446: pop edi */ 5487 esi = POP32_VAL(esp); /* 0x2B067447: pop esi */ 5488 esp = ebp; /* 0x2B067448: mov esp, ebp */ 5489 ebp = POP32_VAL(esp); /* 0x2B06744A: pop ebp */ 5490 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B06744B: ret 4 */ 5491 RECOMP_REGS_OUT(); 5492 } 5493 5494 void sub_2B067450(void) { 5495 int _fpu_cmp = 0; 5496 uint32_t _cf = 0; 5497 int _df = 1; 5498 uint32_t _flag_k = FK_NONE; 5499 uint32_t _flag_a = 0, _flag_b = 0; 5500 uint32_t _itail_tgt = 0; 5501 RECOMP_REGS_LOCALS 5502 RECOMP_ENTER(0x2B067450u); 5503 5504 L_2B067450: 5505 PUSH32(esp, ebp); /* 0x2B067450: push ebp */ 5506 ebp = esp; /* 0x2B067451: mov ebp, esp */ 5507 ecx = MEM32(ebp + 0x8); /* 0x2B067453: mov ecx, dword ptr [ebp + 8] */ 5508 RECOMP_ICALL(0x2B0672E0u); /* 0x2B067456: call 0x2b0672e0 */ /* not lifted */ 5509 RECOMP_FLAGS_IN(); 5510 ebp = POP32_VAL(esp); /* 0x2B06745B: pop ebp */ 5511 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06745C: ret */ 5512 RECOMP_REGS_OUT(); 5513 } 5514 5515 void sub_2B067460(void) { 5516 int _fpu_cmp = 0; 5517 uint32_t _cf = 0; 5518 int _df = 1; 5519 uint32_t _flag_k = FK_NONE; 5520 uint32_t _flag_a = 0, _flag_b = 0; 5521 uint32_t _itail_tgt = 0; 5522 RECOMP_REGS_LOCALS 5523 RECOMP_ENTER(0x2B067460u); 5524 5525 L_2B067460: 5526 PUSH32(esp, ebp); /* 0x2B067460: push ebp */ 5527 ebp = esp; /* 0x2B067461: mov ebp, esp */ 5528 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xC8u); 5529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5530 esp = esp - 0xC8u; /* 0x2B067463: sub esp, 0xc8 */ 5531 _flag_k = FK_CMP; 5532 PUSH32(esp, ebx); /* 0x2B067469: push ebx */ 5533 PUSH32(esp, esi); /* 0x2B06746A: push esi */ 5534 PUSH32(esp, edi); /* 0x2B06746B: push edi */ 5535 edi = MEM32(0x2B0B5D6C); /* 0x2B06746C: mov edi, dword ptr [0x2b0b5d6c] */ 5536 RECOMP_ICALL(edi); /* 0x2B067472: call edi */ 5537 RECOMP_FLAGS_IN(); 5538 ecx = eax; /* 0x2B067474: mov ecx, eax */ 5539 RECOMP_ICALL(MEM32(0x2B0B5DBC)); /* 0x2B067476: call dword ptr [0x2b0b5dbc] */ 5540 RECOMP_FLAGS_IN(); 5541 /* test eax, eax */ /* 0x2B06747C: test eax, eax */ 5542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5543 _cf = 0; 5544 _flag_k = FK_TEST; 5545 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0675D3; /* 0x2B06747E: je 0x2b0675d3 */ 5546 L_2B067484: 5547 /* cmp MEM32(eax + 0x8), 1 */ /* 0x2B067484: cmp dword ptr [eax + 8], 1 */ 5548 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(1); 5549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5550 _flag_k = FK_CMP; 5551 if (CMP_A(_flag_a, _flag_b)) goto L_2B0674DD; /* 0x2B067488: ja 0x2b0674dd */ 5552 L_2B06748A: 5553 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5554 ecx = ecx | 0xFFFFFFFFu; /* 0x2B06748A: or ecx, 0xffffffff */ 5555 _cf = 0; 5556 _flag_k = FK_TEST; 5557 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5558 eax = 0; /* 0x2B06748D: xor eax, eax */ 5559 _cf = 0; 5560 _flag_k = FK_TEST; 5561 edi = 0x2B0EB11Cu; /* 0x2B06748F: mov edi, 0x2b0eb11c */ 5562 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B067494: repne scasb al, byte ptr es:[edi] */ 5563 edi = MEM32(ebp + 0xC); /* 0x2B067496: mov edi, dword ptr [ebp + 0xc] */ 5564 ecx = ~ecx; /* 0x2B067499: not ecx */ 5565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5566 ecx = ecx - 1; /* 0x2B06749B: dec ecx */ 5567 _flag_k = FK_DEC; 5568 ebx = ecx; /* 0x2B06749C: mov ebx, ecx */ 5569 PUSH32(esp, 1); /* 0x2B06749E: push 1 */ 5570 PUSH32(esp, ebx); /* 0x2B0674A0: push ebx */ 5571 ecx = edi; /* 0x2B0674A1: mov ecx, edi */ 5572 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B0674A3: call dword ptr [0x2b0b5154] */ 5573 RECOMP_FLAGS_IN(); 5574 /* test LO8(eax), LO8(eax) */ /* 0x2B0674A9: test al, al */ 5575 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5576 _cf = 0; 5577 _flag_k = FK_NARROW(FK_TEST, 24); 5578 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0675D3; /* 0x2B0674AB: je 0x2b0675d3 */ 5579 L_2B0674B1: 5580 edi = MEM32(edi + 0x4); /* 0x2B0674B1: mov edi, dword ptr [edi + 4] */ 5581 ecx = ebx; /* 0x2B0674B4: mov ecx, ebx */ 5582 eax = ecx; /* 0x2B0674B6: mov eax, ecx */ 5583 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B0674B8: shr ecx, 2 */ 5584 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5585 ecx = ecx >> 2u; /* 0x2B0674B8: shr ecx, 2 */ 5586 esi = 0x2B0EB11Cu; /* 0x2B0674BB: mov esi, 0x2b0eb11c */ 5587 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0674C0: 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; } 5588 ecx = eax; /* 0x2B0674C2: mov ecx, eax */ 5589 eax = MEM32(ebp + 0xC); /* 0x2B0674C4: mov eax, dword ptr [ebp + 0xc] */ 5590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5591 ecx = ecx & 3; /* 0x2B0674C7: and ecx, 3 */ 5592 _cf = 0; 5593 _flag_k = FK_TEST; 5594 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B0674CA: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5595 ecx = MEM32(eax + 0x4); /* 0x2B0674CC: mov ecx, dword ptr [eax + 4] */ 5596 edi = POP32_VAL(esp); /* 0x2B0674CF: pop edi */ 5597 MEM32(eax + 0x8) = ebx; /* 0x2B0674D0: mov dword ptr [eax + 8], ebx */ 5598 esi = POP32_VAL(esp); /* 0x2B0674D3: pop esi */ 5599 MEM8(ecx + ebx) = (uint8_t)(0); /* 0x2B0674D4: mov byte ptr [ecx + ebx], 0 */ 5600 ebx = POP32_VAL(esp); /* 0x2B0674D8: pop ebx */ 5601 esp = ebp; /* 0x2B0674D9: mov esp, ebp */ 5602 ebp = POP32_VAL(esp); /* 0x2B0674DB: pop ebp */ 5603 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0674DC: ret */ 5604 L_2B0674DD: 5605 edx = MEM32(eax + 0x4); /* 0x2B0674DD: mov edx, dword ptr [eax + 4] */ 5606 eax = MEM32(edx); /* 0x2B0674E0: mov eax, dword ptr [edx] */ 5607 ecx = MEM32(eax); /* 0x2B0674E2: mov ecx, dword ptr [eax] */ 5608 esi = MEM32(ecx + 0x8); /* 0x2B0674E4: mov esi, dword ptr [ecx + 8] */ 5609 RECOMP_ICALL(edi); /* 0x2B0674E7: call edi */ 5610 RECOMP_FLAGS_IN(); 5611 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5612 edx = 0; /* 0x2B0674E9: xor edx, edx */ 5613 _cf = 0; 5614 _flag_k = FK_TEST; 5615 SET_LO8(edx, MEM8(esi)); /* 0x2B0674EB: mov dl, byte ptr [esi] */ 5616 PUSH32(esp, edx); /* 0x2B0674ED: push edx */ 5617 RECOMP_ICALL(MEM32(0x2B0B5F10)); /* 0x2B0674EE: call dword ptr [0x2b0b5f10] */ 5618 RECOMP_FLAGS_IN(); 5619 ebx = eax; /* 0x2B0674F4: mov ebx, eax */ 5620 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5621 eax = 0; /* 0x2B0674F6: xor eax, eax */ 5622 _cf = 0; 5623 _flag_k = FK_TEST; 5624 SET_LO8(eax, MEM8(esi + 0x2)); /* 0x2B0674F8: mov al, byte ptr [esi + 2] */ 5625 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5626 ecx = 0; /* 0x2B0674FB: xor ecx, ecx */ 5627 _cf = 0; 5628 _flag_k = FK_TEST; 5629 SET_LO8(ecx, MEM8(esi)); /* 0x2B0674FD: mov cl, byte ptr [esi] */ 5630 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5632 esp = esp + 4; /* 0x2B0674FF: add esp, 4 */ 5633 _flag_k = FK_ADD; 5634 PUSH32(esp, eax); /* 0x2B067502: push eax */ 5635 PUSH32(esp, ecx); /* 0x2B067503: push ecx */ 5636 RECOMP_ICALL(edi); /* 0x2B067504: call edi */ 5637 RECOMP_FLAGS_IN(); 5638 ecx = eax; /* 0x2B067506: mov ecx, eax */ 5639 RECOMP_ICALL(MEM32(0x2B0B5DC0)); /* 0x2B067508: call dword ptr [0x2b0b5dc0] */ 5640 RECOMP_FLAGS_IN(); 5641 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5642 edx = 0; /* 0x2B06750E: xor edx, edx */ 5643 _cf = 0; 5644 _flag_k = FK_TEST; 5645 SET_LO8(edx, MEM8(esi + 0x1)); /* 0x2B067510: mov dl, byte ptr [esi + 1] */ 5646 PUSH32(esp, edx); /* 0x2B067513: push edx */ 5647 PUSH32(esp, ebx); /* 0x2B067514: push ebx */ 5648 PUSH32(esp, eax); /* 0x2B067515: push eax */ 5649 eax = ebp + (-0xC8); /* 0x2B067516: lea eax, [ebp - 0xc8] */ 5650 PUSH32(esp, 0x2B0EB0FCu); /* 0x2B06751C: push 0x2b0eb0fc */ 5651 PUSH32(esp, eax); /* 0x2B067521: push eax */ 5652 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B067522: call dword ptr [0x2b0b51f0] */ 5653 RECOMP_FLAGS_IN(); 5654 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5655 ecx = ecx | 0xFFFFFFFFu; /* 0x2B067528: or ecx, 0xffffffff */ 5656 _cf = 0; 5657 _flag_k = FK_TEST; 5658 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5659 eax = 0; /* 0x2B06752B: xor eax, eax */ 5660 _cf = 0; 5661 _flag_k = FK_TEST; 5662 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5663 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5664 esp = esp + 0x14u; /* 0x2B06752D: add esp, 0x14 */ 5665 _flag_k = FK_ADD; 5666 edi = ebp + (-0xC8); /* 0x2B067530: lea edi, [ebp - 0xc8] */ 5667 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B067536: repne scasb al, byte ptr es:[edi] */ 5668 ecx = ~ecx; /* 0x2B067538: not ecx */ 5669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5670 ecx = ecx - 1; /* 0x2B06753A: dec ecx */ 5671 _flag_k = FK_DEC; 5672 ebx = ecx; /* 0x2B06753B: mov ebx, ecx */ 5673 /* cmp ebx, 0xFFFFFFFDu */ /* 0x2B06753D: cmp ebx, -3 */ 5674 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFDu); 5675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5676 _flag_k = FK_CMP; 5677 if (CMP_BE(_flag_a, _flag_b)) goto L_2B067548; /* 0x2B067540: jbe 0x2b067548 */ 5678 L_2B067542: 5679 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B067542: call dword ptr [0x2b0b51a8] */ 5680 RECOMP_FLAGS_IN(); 5681 L_2B067548: 5682 edi = MEM32(ebp + 0xC); /* 0x2B067548: mov edi, dword ptr [ebp + 0xc] */ 5683 eax = MEM32(edi + 0x4); /* 0x2B06754B: mov eax, dword ptr [edi + 4] */ 5684 /* test eax, eax */ /* 0x2B06754E: test eax, eax */ 5685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5686 _cf = 0; 5687 _flag_k = FK_TEST; 5688 MEM32(edi + 0x8) = 0; /* 0x2B067550: mov dword ptr [edi + 8], 0 */ 5689 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067579; /* 0x2B067557: je 0x2b067579 */ 5690 L_2B067559: 5691 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B067559: mov al, byte ptr [eax - 1] */ 5692 /* test LO8(eax), LO8(eax) */ /* 0x2B06755C: test al, al */ 5693 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5694 _cf = 0; 5695 _flag_k = FK_NARROW(FK_TEST, 24); 5696 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067579; /* 0x2B06755E: je 0x2b067579 */ 5697 L_2B067560: 5698 /* cmp LO8(eax), 0xFFu */ /* 0x2B067560: cmp al, 0xff */ 5699 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 5700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5701 _flag_k = FK_NARROW(FK_CMP, 24); 5702 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B067579; /* 0x2B067562: je 0x2b067579 */ 5703 L_2B067564: 5704 /* test ebx, ebx */ /* 0x2B067564: test ebx, ebx */ 5705 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5706 _cf = 0; 5707 _flag_k = FK_TEST; 5708 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0675A4; /* 0x2B067566: jne 0x2b0675a4 */ 5709 L_2B067568: 5710 PUSH32(esp, 1); /* 0x2B067568: push 1 */ 5711 ecx = edi; /* 0x2B06756A: mov ecx, edi */ 5712 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B06756C: call dword ptr [0x2b0b514c] */ 5713 RECOMP_FLAGS_IN(); 5714 edi = POP32_VAL(esp); /* 0x2B067572: pop edi */ 5715 esi = POP32_VAL(esp); /* 0x2B067573: pop esi */ 5716 ebx = POP32_VAL(esp); /* 0x2B067574: pop ebx */ 5717 esp = ebp; /* 0x2B067575: mov esp, ebp */ 5718 ebp = POP32_VAL(esp); /* 0x2B067577: pop ebp */ 5719 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B067578: ret */ 5720 L_2B067579: 5721 /* test ebx, ebx */ /* 0x2B067579: test ebx, ebx */ 5722 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5723 _cf = 0; 5724 _flag_k = FK_TEST; 5725 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B06758E; /* 0x2B06757B: jne 0x2b06758e */ 5726 L_2B06757D: 5727 PUSH32(esp, 1); /* 0x2B06757D: push 1 */ 5728 ecx = edi; /* 0x2B06757F: mov ecx, edi */ 5729 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B067581: call dword ptr [0x2b0b514c] */ 5730 RECOMP_FLAGS_IN(); 5731 edi = POP32_VAL(esp); /* 0x2B067587: pop edi */ 5732 esi = POP32_VAL(esp); /* 0x2B067588: pop esi */ 5733 ebx = POP32_VAL(esp); /* 0x2B067589: pop ebx */ 5734 esp = ebp; /* 0x2B06758A: mov esp, ebp */ 5735 ebp = POP32_VAL(esp); /* 0x2B06758C: pop ebp */ 5736 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06758D: ret */ 5737 L_2B06758E: 5738 eax = MEM32(edi + 0xC); /* 0x2B06758E: mov eax, dword ptr [edi + 0xc] */ 5739 /* cmp eax, 0x1Fu */ /* 0x2B067591: cmp eax, 0x1f */ 5740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 5741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5742 _flag_k = FK_CMP; 5743 if (CMP_A(_flag_a, _flag_b)) goto L_2B06759A; /* 0x2B067594: ja 0x2b06759a */ 5744 L_2B067596: 5745 /* cmp eax, ebx */ /* 0x2B067596: cmp eax, ebx */ 5746 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5748 _flag_k = FK_CMP; 5749 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0675AD; /* 0x2B067598: jae 0x2b0675ad */ 5750 L_2B06759A: 5751 PUSH32(esp, 1); /* 0x2B06759A: push 1 */ 5752 ecx = edi; /* 0x2B06759C: mov ecx, edi */ 5753 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B06759E: call dword ptr [0x2b0b514c] */ 5754 RECOMP_FLAGS_IN(); 5755 L_2B0675A4: 5756 PUSH32(esp, ebx); /* 0x2B0675A4: push ebx */ 5757 ecx = edi; /* 0x2B0675A5: mov ecx, edi */ 5758 RECOMP_ICALL(MEM32(0x2B0B5110)); /* 0x2B0675A7: call dword ptr [0x2b0b5110] */ 5759 RECOMP_FLAGS_IN(); 5760 L_2B0675AD: 5761 edi = MEM32(edi + 0x4); /* 0x2B0675AD: mov edi, dword ptr [edi + 4] */ 5762 eax = MEM32(ebp + 0xC); /* 0x2B0675B0: mov eax, dword ptr [ebp + 0xc] */ 5763 ecx = ebx; /* 0x2B0675B3: mov ecx, ebx */ 5764 edx = ecx; /* 0x2B0675B5: mov edx, ecx */ 5765 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B0675B7: shr ecx, 2 */ 5766 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5767 ecx = ecx >> 2u; /* 0x2B0675B7: shr ecx, 2 */ 5768 esi = ebp + (-0xC8); /* 0x2B0675BA: lea esi, [ebp - 0xc8] */ 5769 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0675C0: 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; } 5770 ecx = edx; /* 0x2B0675C2: mov ecx, edx */ 5771 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5772 ecx = ecx & 3; /* 0x2B0675C4: and ecx, 3 */ 5773 _cf = 0; 5774 _flag_k = FK_TEST; 5775 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B0675C7: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5776 MEM32(eax + 0x8) = ebx; /* 0x2B0675C9: mov dword ptr [eax + 8], ebx */ 5777 eax = MEM32(eax + 0x4); /* 0x2B0675CC: mov eax, dword ptr [eax + 4] */ 5778 MEM8(eax + ebx) = (uint8_t)(0); /* 0x2B0675CF: mov byte ptr [eax + ebx], 0 */ 5779 L_2B0675D3: 5780 edi = POP32_VAL(esp); /* 0x2B0675D3: pop edi */ 5781 esi = POP32_VAL(esp); /* 0x2B0675D4: pop esi */ 5782 ebx = POP32_VAL(esp); /* 0x2B0675D5: pop ebx */ 5783 esp = ebp; /* 0x2B0675D6: mov esp, ebp */ 5784 ebp = POP32_VAL(esp); /* 0x2B0675D8: pop ebp */ 5785 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0675D9: ret */ 5786 RECOMP_REGS_OUT(); 5787 } 5788 5789 void sub_2B0675E0(void) { 5790 int _fpu_cmp = 0; 5791 uint32_t _cf = 0; 5792 int _df = 1; 5793 uint32_t _flag_k = FK_NONE; 5794 uint32_t _flag_a = 0, _flag_b = 0; 5795 uint32_t _itail_tgt = 0; 5796 RECOMP_REGS_LOCALS 5797 RECOMP_ENTER(0x2B0675E0u); 5798 5799 L_2B0675E0: 5800 PUSH32(esp, ebp); /* 0x2B0675E0: push ebp */ 5801 ebp = esp; /* 0x2B0675E1: mov ebp, esp */ 5802 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0675E3: push -1 */ 5803 PUSH32(esp, 0x2B0B0CEEu); /* 0x2B0675E5: push 0x2b0b0cee */ 5804 eax = MEM32(FS_BASE + (0)); /* 0x2B0675EA: mov eax, dword ptr fs:[0] */ 5805 PUSH32(esp, eax); /* 0x2B0675F0: push eax */ 5806 MEM32(FS_BASE + (0)) = esp; /* 0x2B0675F1: mov dword ptr fs:[0], esp */ 5807 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5809 esp = esp - 0x14u; /* 0x2B0675F8: sub esp, 0x14 */ 5810 _flag_k = FK_CMP; 5811 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B0675FB: mov al, byte ptr [ebp + 0xb] */ 5812 edx = MEM32(ebp + 0x8); /* 0x2B0675FE: mov edx, dword ptr [ebp + 8] */ 5813 PUSH32(esp, ebx); /* 0x2B067601: push ebx */ 5814 PUSH32(esp, esi); /* 0x2B067602: push esi */ 5815 esi = ecx; /* 0x2B067603: mov esi, ecx */ 5816 PUSH32(esp, edi); /* 0x2B067605: push edi */ 5817 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5818 ecx = ecx | 0xFFFFFFFFu; /* 0x2B067606: or ecx, 0xffffffff */ 5819 _cf = 0; 5820 _flag_k = FK_TEST; 5821 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5822 ebx = 0; /* 0x2B067609: xor ebx, ebx */ 5823 _cf = 0; 5824 _flag_k = FK_TEST; 5825 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x2B06760B: mov byte ptr [ebp - 0x20], al */ 5826 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5827 eax = 0; /* 0x2B06760E: xor eax, eax */ 5828 _cf = 0; 5829 _flag_k = FK_TEST; 5830 edi = edx; /* 0x2B067610: mov edi, edx */ 5831 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B067612: repne scasb al, byte ptr es:[edi] */ 5832 ecx = ~ecx; /* 0x2B067614: not ecx */ 5833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5834 ecx = ecx - 1; /* 0x2B067616: dec ecx */ 5835 _flag_k = FK_DEC; 5836 PUSH32(esp, ecx); /* 0x2B067617: push ecx */ 5837 PUSH32(esp, edx); /* 0x2B067618: push edx */ 5838 ecx = ebp + (-0x20); /* 0x2B067619: lea ecx, [ebp - 0x20] */ 5839 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B06761C: mov dword ptr [ebp - 0x1c], ebx */ 5840 MEM32(ebp + (-0x18)) = ebx; /* 0x2B06761F: mov dword ptr [ebp - 0x18], ebx */ 5841 MEM32(ebp + (-0x14)) = ebx; /* 0x2B067622: mov dword ptr [ebp - 0x14], ebx */ 5842 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B067625: call dword ptr [0x2b0b5148] */ 5843 RECOMP_FLAGS_IN(); 5844 MEM32(ebp + (-0x10)) = ebx; /* 0x2B06762B: mov dword ptr [ebp - 0x10], ebx */ 5845 ecx = MEM32(0x2B0B515C); /* 0x2B06762E: mov ecx, dword ptr [0x2b0b515c] */ 5846 edx = MEM32(ecx); /* 0x2B067634: mov edx, dword ptr [ecx] */ 5847 eax = MEM32(esi + 0x1C); /* 0x2B067636: mov eax, dword ptr [esi + 0x1c] */ 5848 PUSH32(esp, edx); /* 0x2B067639: push edx */ 5849 PUSH32(esp, ebx); /* 0x2B06763A: push ebx */ 5850 ecx = ebp + (-0x20); /* 0x2B06763B: lea ecx, [ebp - 0x20] */ 5851 PUSH32(esp, ecx); /* 0x2B06763E: push ecx */ 5852 ecx = eax + 0x14; /* 0x2B06763F: lea ecx, [eax + 0x14] */ 5853 MEM32(ebp + (-0x4)) = ebx; /* 0x2B067642: mov dword ptr [ebp - 4], ebx */ 5854 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B067645: call dword ptr [0x2b0b5158] */ 5855 RECOMP_FLAGS_IN(); 5856 eax = MEM32(ebp + (-0x10)); /* 0x2B06764B: mov eax, dword ptr [ebp - 0x10] */ 5857 /* cmp eax, ebx */ /* 0x2B06764E: cmp eax, ebx */ 5858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5860 _flag_k = FK_CMP; 5861 MEM32(ebp + (-0x4)) = 1; /* 0x2B067650: mov dword ptr [ebp - 4], 1 */ 5862 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B067698; /* 0x2B067657: je 0x2b067698 */ 5863 L_2B067659: 5864 edx = MEM32(eax + 0x2C); /* 0x2B067659: mov edx, dword ptr [eax + 0x2c] */ 5865 edi = eax; /* 0x2B06765C: mov edi, eax */ 5866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 5867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5868 eax = eax + 0x2Cu; /* 0x2B06765E: add eax, 0x2c */ 5869 _flag_k = FK_ADD; 5870 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5871 edx = edx - 1; /* 0x2B067661: dec edx */ 5872 _flag_k = FK_DEC; 5873 ecx = edx; /* 0x2B067662: mov ecx, edx */ 5874 /* cmp ecx, ebx */ /* 0x2B067664: cmp ecx, ebx */ 5875 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5877 _flag_k = FK_CMP; 5878 MEM32(eax) = edx; /* 0x2B067666: mov dword ptr [eax], edx */ 5879 if (CMP_NE(_flag_a, _flag_b)) goto L_2B067698; /* 0x2B067668: jne 0x2b067698 */ 5880 L_2B06766A: 5881 /* cmp edi, ebx */ /* 0x2B06766A: cmp edi, ebx */ 5882 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5884 _flag_k = FK_CMP; 5885 MEM32(ebp + 0x8) = edi; /* 0x2B06766C: mov dword ptr [ebp + 8], edi */ 5886 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B067698; /* 0x2B06766F: je 0x2b067698 */ 5887 L_2B067671: 5888 PUSH32(esp, 1); /* 0x2B067671: push 1 */ 5889 ecx = edi + 0x1C; /* 0x2B067673: lea ecx, [edi + 0x1c] */ 5890 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B067676: mov byte ptr [ebp - 4], 2 */ 5891 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B06767A: call dword ptr [0x2b0b514c] */ 5892 RECOMP_FLAGS_IN(); 5893 PUSH32(esp, 1); /* 0x2B067680: push 1 */ 5894 ecx = edi + 0xC; /* 0x2B067682: lea ecx, [edi + 0xc] */ 5895 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B067685: mov byte ptr [ebp - 4], 1 */ 5896 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B067689: call dword ptr [0x2b0b514c] */ 5897 RECOMP_FLAGS_IN(); 5898 PUSH32(esp, edi); /* 0x2B06768F: push edi */ 5899 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B067690: call 0x2b0ab1ba */ /* not lifted */ 5900 RECOMP_FLAGS_IN(); 5901 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5903 esp = esp + 4; /* 0x2B067695: add esp, 4 */ 5904 _flag_k = FK_ADD; 5905 L_2B067698: 5906 eax = MEM32(ebp + (-0x1C)); /* 0x2B067698: mov eax, dword ptr [ebp - 0x1c] */ 5907 /* cmp eax, ebx */ /* 0x2B06769B: cmp eax, ebx */ 5908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5910 _flag_k = FK_CMP; 5911 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B06769D: mov dword ptr [ebp - 4], 0xffffffff */ 5912 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0676C2; /* 0x2B0676A4: je 0x2b0676c2 */ 5913 L_2B0676A6: 5914 ecx = eax + (-0x1); /* 0x2B0676A6: lea ecx, [eax - 1] */ 5915 SET_LO8(eax, MEM8(ecx)); /* 0x2B0676A9: mov al, byte ptr [ecx] */ 5916 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B0676AB: cmp al, bl */ 5917 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5919 _flag_k = FK_NARROW(FK_CMP, 24); 5920 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0676B9; /* 0x2B0676AD: je 0x2b0676b9 */ 5921 L_2B0676AF: 5922 /* cmp LO8(eax), 0xFFu */ /* 0x2B0676AF: cmp al, 0xff */ 5923 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 5924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5925 _flag_k = FK_NARROW(FK_CMP, 24); 5926 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0676B9; /* 0x2B0676B1: je 0x2b0676b9 */ 5927 L_2B0676B3: 5928 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5929 SET_LO8(eax, LO8(eax) - 1); /* 0x2B0676B3: dec al */ 5930 _flag_k = FK_NARROW(FK_DEC, 24); 5931 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B0676B5: mov byte ptr [ecx], al */ 5932 goto L_2B0676C2; /* 0x2B0676B7: jmp 0x2b0676c2 */ 5933 L_2B0676B9: 5934 PUSH32(esp, ecx); /* 0x2B0676B9: push ecx */ 5935 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0676BA: call 0x2b0ab1ba */ /* not lifted */ 5936 RECOMP_FLAGS_IN(); 5937 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5939 esp = esp + 4; /* 0x2B0676BF: add esp, 4 */ 5940 _flag_k = FK_ADD; 5941 L_2B0676C2: 5942 ecx = MEM32(esi + 0x1C); /* 0x2B0676C2: mov ecx, dword ptr [esi + 0x1c] */ 5943 PUSH32(esp, 0x00FFFF00u); /* 0x2B0676C5: push 0xffff00 */ 5944 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B0676CA: mov dword ptr [ebp - 0x1c], ebx */ 5945 MEM32(ebp + (-0x18)) = ebx; /* 0x2B0676CD: mov dword ptr [ebp - 0x18], ebx */ 5946 MEM32(ebp + (-0x14)) = ebx; /* 0x2B0676D0: mov dword ptr [ebp - 0x14], ebx */ 5947 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B0676D3: call dword ptr [0x2b0b5858] */ 5948 RECOMP_FLAGS_IN(); 5949 ecx = esi; /* 0x2B0676D9: mov ecx, esi */ 5950 RECOMP_ICALL(0x2B067770u); /* 0x2B0676DB: call 0x2b067770 */ /* not lifted */ 5951 RECOMP_FLAGS_IN(); 5952 MEM8(esi + 0x24) = (uint8_t)(1); /* 0x2B0676E0: mov byte ptr [esi + 0x24], 1 */ 5953 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B0676E4: call dword ptr [0x2b0b53bc] */ 5954 RECOMP_FLAGS_IN(); 5955 edx = MEM32(eax + 0x24); /* 0x2B0676EA: mov edx, dword ptr [eax + 0x24] */ 5956 MEM32(esi + 0x28) = edx; /* 0x2B0676ED: mov dword ptr [esi + 0x28], edx */ 5957 SET_LO8(eax, MEM8(0x2B0EEE28)); /* 0x2B0676F0: mov al, byte ptr [0x2b0eee28] */ 5958 /* test LO8(eax), 1 */ /* 0x2B0676F5: test al, 1 */ 5959 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5960 _cf = 0; 5961 _flag_k = FK_NARROW(FK_TEST, 24); 5962 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B067717; /* 0x2B0676F7: jne 0x2b067717 */ 5963 L_2B0676F9: 5964 SET_LO8(ebx, LO8(eax)); /* 0x2B0676F9: mov bl, al */ 5965 _flag_a = (uint32_t)((LO8(ebx) | 1)) << 24; _flag_b = (uint32_t)((LO8(ebx) | 1)) << 24; 5966 SET_LO8(ebx, LO8(ebx) | 1); /* 0x2B0676FB: or bl, 1 */ 5967 _cf = 0; 5968 _flag_k = FK_NARROW(FK_TEST, 24); 5969 PUSH32(esp, 0x2B0EB134u); /* 0x2B0676FE: push 0x2b0eb134 */ 5970 MEM8(0x2B0EEE28) = (uint8_t)(LO8(ebx)); /* 0x2B067703: mov byte ptr [0x2b0eee28], bl */ 5971 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B067709: call dword ptr [0x2b0b60bc] */ 5972 RECOMP_FLAGS_IN(); 5973 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5974 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5975 esp = esp + 4; /* 0x2B06770F: add esp, 4 */ 5976 _flag_k = FK_ADD; 5977 MEM32(0x2B0EEE24) = eax; /* 0x2B067712: mov dword ptr [0x2b0eee24], eax */ 5978 L_2B067717: 5979 eax = MEM32(0x2B0EEE24); /* 0x2B067717: mov eax, dword ptr [0x2b0eee24] */ 5980 PUSH32(esp, eax); /* 0x2B06771C: push eax */ 5981 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B06771D: call dword ptr [0x2b0b60b8] */ 5982 RECOMP_FLAGS_IN(); 5983 ecx = MEM32(ebp + (-0xC)); /* 0x2B067723: mov ecx, dword ptr [ebp - 0xc] */ 5984 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5985 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5986 esp = esp + 4; /* 0x2B067726: add esp, 4 */ 5987 _flag_k = FK_ADD; 5988 edi = POP32_VAL(esp); /* 0x2B067729: pop edi */ 5989 esi = POP32_VAL(esp); /* 0x2B06772A: pop esi */ 5990 ebx = POP32_VAL(esp); /* 0x2B06772B: pop ebx */ 5991 MEM32(FS_BASE + (0)) = ecx; /* 0x2B06772C: mov dword ptr fs:[0], ecx */ 5992 esp = ebp; /* 0x2B067733: mov esp, ebp */ 5993 ebp = POP32_VAL(esp); /* 0x2B067735: pop ebp */ 5994 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B067736: ret 4 */ 5995 RECOMP_REGS_OUT(); 5996 } 5997 5998 void sub_2B067740(void) { 5999 int _fpu_cmp = 0; 6000 uint32_t _cf = 0; 6001 int _df = 1; 6002 uint32_t _flag_k = FK_NONE; 6003 uint32_t _flag_a = 0, _flag_b = 0; 6004 uint32_t _itail_tgt = 0; 6005 RECOMP_REGS_LOCALS 6006 RECOMP_ENTER(0x2B067740u); 6007 6008 L_2B067740: 6009 PUSH32(esp, esi); /* 0x2B067740: push esi */ 6010 esi = ecx; /* 0x2B067741: mov esi, ecx */ 6011 SET_LO8(eax, MEM8(esi + 0x24)); /* 0x2B067743: mov al, byte ptr [esi + 0x24] */ 6012 /* test LO8(eax), LO8(eax) */ /* 0x2B067746: test al, al */ 6013 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6014 _cf = 0; 6015 _flag_k = FK_NARROW(FK_TEST, 24); 6016 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067764; /* 0x2B067748: je 0x2b067764 */ 6017 L_2B06774A: 6018 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B06774A: call dword ptr [0x2b0b53bc] */ 6019 RECOMP_FLAGS_IN(); 6020 eax = MEM32(eax + 0x24); /* 0x2B067750: mov eax, dword ptr [eax + 0x24] */ 6021 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x28)); 6022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6023 eax = eax - MEM32(esi + 0x28); /* 0x2B067753: sub eax, dword ptr [esi + 0x28] */ 6024 _flag_k = FK_CMP; 6025 /* cmp eax, 0x1388u */ /* 0x2B067756: cmp eax, 0x1388 */ 6026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1388u); 6027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6028 _flag_k = FK_CMP; 6029 if (CMP_LE(_flag_a, _flag_b)) goto L_2B067764; /* 0x2B06775B: jle 0x2b067764 */ 6030 L_2B06775D: 6031 ecx = esi; /* 0x2B06775D: mov ecx, esi */ 6032 RECOMP_ICALL(0x2B0672E0u); /* 0x2B06775F: call 0x2b0672e0 */ /* not lifted */ 6033 RECOMP_FLAGS_IN(); 6034 L_2B067764: 6035 esi = POP32_VAL(esp); /* 0x2B067764: pop esi */ 6036 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B067765: ret */ 6037 RECOMP_REGS_OUT(); 6038 } 6039 6040 void sub_2B067770(void) { 6041 int _fpu_cmp = 0; 6042 uint32_t _cf = 0; 6043 int _df = 1; 6044 uint32_t _flag_k = FK_NONE; 6045 uint32_t _flag_a = 0, _flag_b = 0; 6046 uint32_t _itail_tgt = 0; 6047 RECOMP_REGS_LOCALS 6048 RECOMP_ENTER(0x2B067770u); 6049 6050 L_2B067770: 6051 edx = MEM32(ecx + 0x1C); /* 0x2B067770: mov edx, dword ptr [ecx + 0x1c] */ 6052 L_2B067773: 6053 SET_LO8(eax, 1); /* 0x2B067773: mov al, 1 */ 6054 L_2B067775: 6055 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B067775: mov byte ptr [edx + 9], al */ 6056 L_2B067778: 6057 edx = MEM32(ecx + 0x14); /* 0x2B067778: mov edx, dword ptr [ecx + 0x14] */ 6058 L_2B06777B: 6059 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B06777B: mov byte ptr [edx + 9], al */ 6060 L_2B06777E: 6061 edx = MEM32(ecx + 0x18); /* 0x2B06777E: mov edx, dword ptr [ecx + 0x18] */ 6062 L_2B067781: 6063 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B067781: mov byte ptr [edx + 9], al */ 6064 L_2B067784: 6065 edx = MEM32(ecx + 0x20); /* 0x2B067784: mov edx, dword ptr [ecx + 0x20] */ 6066 L_2B067787: 6067 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B067787: mov byte ptr [edx + 9], al */ 6068 L_2B06778A: 6069 edx = MEM32(ecx + 0x4); /* 0x2B06778A: mov edx, dword ptr [ecx + 4] */ 6070 L_2B06778D: 6071 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B06778D: mov byte ptr [edx + 9], al */ 6072 L_2B067790: 6073 ecx = MEM32(ecx + 0x10); /* 0x2B067790: mov ecx, dword ptr [ecx + 0x10] */ 6074 L_2B067793: 6075 { _itail_tgt = (uint32_t)(MEM32(0x2B0B5960)); goto _ljump; } 6076 { RECOMP_REGS_OUT(); return; } /* end of function */ 6077 _ljump: 6078 switch (_itail_tgt) { 6079 case 0x2B067770u: goto L_2B067770; 6080 case 0x2B067773u: goto L_2B067773; 6081 case 0x2B067775u: goto L_2B067775; 6082 case 0x2B067778u: goto L_2B067778; 6083 case 0x2B06777Bu: goto L_2B06777B; 6084 case 0x2B06777Eu: goto L_2B06777E; 6085 case 0x2B067781u: goto L_2B067781; 6086 case 0x2B067784u: goto L_2B067784; 6087 case 0x2B067787u: goto L_2B067787; 6088 case 0x2B06778Au: goto L_2B06778A; 6089 case 0x2B06778Du: goto L_2B06778D; 6090 case 0x2B067790u: goto L_2B067790; 6091 case 0x2B067793u: goto L_2B067793; 6092 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6093 } 6094 RECOMP_REGS_OUT(); 6095 } 6096 6097 void sub_2B0677A0(void) { 6098 int _fpu_cmp = 0; 6099 uint32_t _cf = 0; 6100 int _df = 1; 6101 uint32_t _flag_k = FK_NONE; 6102 uint32_t _flag_a = 0, _flag_b = 0; 6103 uint32_t _itail_tgt = 0; 6104 RECOMP_REGS_LOCALS 6105 RECOMP_ENTER(0x2B0677A0u); 6106 6107 L_2B0677A0: 6108 PUSH32(esp, ebp); /* 0x2B0677A0: push ebp */ 6109 ebp = esp; /* 0x2B0677A1: mov ebp, esp */ 6110 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0677A3: push -1 */ 6111 PUSH32(esp, 0x2B0B0D84u); /* 0x2B0677A5: push 0x2b0b0d84 */ 6112 eax = MEM32(FS_BASE + (0)); /* 0x2B0677AA: mov eax, dword ptr fs:[0] */ 6113 PUSH32(esp, eax); /* 0x2B0677B0: push eax */ 6114 MEM32(FS_BASE + (0)) = esp; /* 0x2B0677B1: mov dword ptr fs:[0], esp */ 6115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u); 6116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6117 esp = esp - 0x48u; /* 0x2B0677B8: sub esp, 0x48 */ 6118 _flag_k = FK_CMP; 6119 eax = MEM32(ebp + 0xC); /* 0x2B0677BB: mov eax, dword ptr [ebp + 0xc] */ 6120 PUSH32(esp, ebx); /* 0x2B0677BE: push ebx */ 6121 PUSH32(esp, esi); /* 0x2B0677BF: push esi */ 6122 esi = ecx; /* 0x2B0677C0: mov esi, ecx */ 6123 MEM32(esi) = eax; /* 0x2B0677C2: mov dword ptr [esi], eax */ 6124 eax = MEM32(ebp + 0x8); /* 0x2B0677C4: mov eax, dword ptr [ebp + 8] */ 6125 eax = eax + eax * 2; /* 0x2B0677C7: lea eax, [eax + eax*2] */ 6126 eax = eax + eax * 4; /* 0x2B0677CA: lea eax, [eax + eax*4] */ 6127 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6128 ebx = 0; /* 0x2B0677CD: xor ebx, ebx */ 6129 _cf = 0; 6130 _flag_k = FK_TEST; 6131 eax = eax + eax + 0x1A; /* 0x2B0677CF: lea eax, [eax + eax + 0x1a] */ 6132 PUSH32(esp, edi); /* 0x2B0677D3: push edi */ 6133 PUSH32(esp, 0x38u); /* 0x2B0677D4: push 0x38 */ 6134 MEM32(esi + 0x4) = ebx; /* 0x2B0677D6: mov dword ptr [esi + 4], ebx */ 6135 MEM32(esi + 0x8) = ebx; /* 0x2B0677D9: mov dword ptr [esi + 8], ebx */ 6136 MEM8(esi + 0xC) = (uint8_t)(1); /* 0x2B0677DC: mov byte ptr [esi + 0xc], 1 */ 6137 MEM8(esi + 0xD) = (uint8_t)(1); /* 0x2B0677E0: mov byte ptr [esi + 0xd], 1 */ 6138 MEM32(esi + 0x10) = eax; /* 0x2B0677E4: mov dword ptr [esi + 0x10], eax */ 6139 MEM32(ebp + (-0x14)) = ebx; /* 0x2B0677E7: mov dword ptr [ebp - 0x14], ebx */ 6140 MEM32(ebp + (-0x10)) = eax; /* 0x2B0677EA: mov dword ptr [ebp - 0x10], eax */ 6141 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0677ED: call 0x2b0ab212 */ /* not lifted */ 6142 RECOMP_FLAGS_IN(); 6143 edi = eax; /* 0x2B0677F2: mov edi, eax */ 6144 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6146 esp = esp + 4; /* 0x2B0677F4: add esp, 4 */ 6147 _flag_k = FK_ADD; 6148 MEM32(ebp + 0xC) = edi; /* 0x2B0677F7: mov dword ptr [ebp + 0xc], edi */ 6149 /* cmp edi, ebx */ /* 0x2B0677FA: cmp edi, ebx */ 6150 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6152 _flag_k = FK_CMP; 6153 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0677FC: mov dword ptr [ebp - 4], ebx */ 6154 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B067825; /* 0x2B0677FF: je 0x2b067825 */ 6155 L_2B067801: 6156 ecx = MEM32(ebp + 0x10); /* 0x2B067801: mov ecx, dword ptr [ebp + 0x10] */ 6157 PUSH32(esp, ecx); /* 0x2B067804: push ecx */ 6158 PUSH32(esp, 0x5208u); /* 0x2B067805: push 0x5208 */ 6159 PUSH32(esp, 0xCDu); /* 0x2B06780A: push 0xcd */ 6160 edx = ebp + (-0x14); /* 0x2B06780F: lea edx, [ebp - 0x14] */ 6161 PUSH32(esp, edx); /* 0x2B067812: push edx */ 6162 ecx = edi; /* 0x2B067813: mov ecx, edi */ 6163 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B067815: call dword ptr [0x2b0b5948] */ 6164 RECOMP_FLAGS_IN(); 6165 MEM32(edi) = 0x2B0B68F4u; /* 0x2B06781B: mov dword ptr [edi], 0x2b0b68f4 */ 6166 ecx = edi; /* 0x2B067821: mov ecx, edi */ 6167 goto L_2B067827; /* 0x2B067823: jmp 0x2b067827 */ 6168 L_2B067825: 6169 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6170 ecx = 0; /* 0x2B067825: xor ecx, ecx */ 6171 _cf = 0; 6172 _flag_k = FK_TEST; 6173 L_2B067827: 6174 MEM32(esi + 0x14) = ecx; /* 0x2B067827: mov dword ptr [esi + 0x14], ecx */ 6175 edx = MEM32(ecx + 0x14); /* 0x2B06782A: mov edx, dword ptr [ecx + 0x14] */ 6176 ebx = MEM32(edx + 0x8); /* 0x2B06782D: mov ebx, dword ptr [edx + 8] */ 6177 eax = 0x1Eu; /* 0x2B067830: mov eax, 0x1e */ 6178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6180 eax = eax - ebx; /* 0x2B067835: sub eax, ebx */ 6181 _flag_k = FK_CMP; 6182 ebx = MEM32(esi + 0x10); /* 0x2B067837: mov ebx, dword ptr [esi + 0x10] */ 6183 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B06783A: cdq */ 6184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6186 eax = eax - edx; /* 0x2B06783B: sub eax, edx */ 6187 _flag_k = FK_CMP; 6188 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B06783D: sar eax, 1 */ 6189 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6190 eax = (uint32_t)((int32_t)eax >> 1u); 6191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6193 eax = eax + ebx; /* 0x2B06783F: add eax, ebx */ 6194 _flag_k = FK_ADD; 6195 MEM32(ebp + (-0x10)) = eax; /* 0x2B067841: mov dword ptr [ebp - 0x10], eax */ 6196 eax = ebp + (-0x14); /* 0x2B067844: lea eax, [ebp - 0x14] */ 6197 PUSH32(esp, eax); /* 0x2B067847: push eax */ 6198 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067848: mov dword ptr [ebp - 4], 0xffffffff */ 6199 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B06784F: call dword ptr [0x2b0b5940] */ 6200 RECOMP_FLAGS_IN(); 6201 ecx = MEM32(esi + 0x14); /* 0x2B067855: mov ecx, dword ptr [esi + 0x14] */ 6202 eax = MEM32(ecx + 0x14); /* 0x2B067858: mov eax, dword ptr [ecx + 0x14] */ 6203 ebx = MEM32(eax + 0x8); /* 0x2B06785B: mov ebx, dword ptr [eax + 8] */ 6204 edx = MEM32(ebp + (-0x14)); /* 0x2B06785E: mov edx, dword ptr [ebp - 0x14] */ 6205 eax = MEM32(eax + 0xC); /* 0x2B067861: mov eax, dword ptr [eax + 0xc] */ 6206 ecx = MEM32(ebp + (-0x10)); /* 0x2B067864: mov ecx, dword ptr [ebp - 0x10] */ 6207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6209 eax = eax + edx; /* 0x2B067867: add eax, edx */ 6210 _flag_k = FK_ADD; 6211 PUSH32(esp, 0x28u); /* 0x2B067869: push 0x28 */ 6212 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 6213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6214 ebx = ebx + ecx; /* 0x2B06786B: add ebx, ecx */ 6215 _flag_k = FK_ADD; 6216 MEM32(ebp + 0xC) = eax; /* 0x2B06786D: mov dword ptr [ebp + 0xc], eax */ 6217 MEM32(ebp + (-0x24)) = edx; /* 0x2B067870: mov dword ptr [ebp - 0x24], edx */ 6218 MEM32(ebp + (-0x20)) = ecx; /* 0x2B067873: mov dword ptr [ebp - 0x20], ecx */ 6219 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067876: call 0x2b0ab212 */ /* not lifted */ 6220 RECOMP_FLAGS_IN(); 6221 edi = eax; /* 0x2B06787B: mov edi, eax */ 6222 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6223 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6224 esp = esp + 4; /* 0x2B06787D: add esp, 4 */ 6225 _flag_k = FK_ADD; 6226 MEM32(ebp + 0x8) = edi; /* 0x2B067880: mov dword ptr [ebp + 8], edi */ 6227 /* test edi, edi */ /* 0x2B067883: test edi, edi */ 6228 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6229 _cf = 0; 6230 _flag_k = FK_TEST; 6231 MEM32(ebp + (-0x4)) = 1; /* 0x2B067885: mov dword ptr [ebp - 4], 1 */ 6232 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0678C5; /* 0x2B06788C: je 0x2b0678c5 */ 6233 L_2B06788E: 6234 edx = MEM32(ebp + 0x10); /* 0x2B06788E: mov edx, dword ptr [ebp + 0x10] */ 6235 ecx = MEM32(ebp + (-0x24)); /* 0x2B067891: mov ecx, dword ptr [ebp - 0x24] */ 6236 PUSH32(esp, edx); /* 0x2B067894: push edx */ 6237 edx = MEM32(ebp + (-0x20)); /* 0x2B067895: mov edx, dword ptr [ebp - 0x20] */ 6238 PUSH32(esp, 0x520Au); /* 0x2B067898: push 0x520a */ 6239 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6241 esp = esp - 0x10u; /* 0x2B06789D: sub esp, 0x10 */ 6242 _flag_k = FK_CMP; 6243 eax = esp; /* 0x2B0678A0: mov eax, esp */ 6244 MEM32(eax) = ecx; /* 0x2B0678A2: mov dword ptr [eax], ecx */ 6245 ecx = MEM32(ebp + 0xC); /* 0x2B0678A4: mov ecx, dword ptr [ebp + 0xc] */ 6246 MEM32(eax + 0x4) = edx; /* 0x2B0678A7: mov dword ptr [eax + 4], edx */ 6247 MEM32(eax + 0x8) = ecx; /* 0x2B0678AA: mov dword ptr [eax + 8], ecx */ 6248 PUSH32(esp, 0xFF00u); /* 0x2B0678AD: push 0xff00 */ 6249 ecx = edi; /* 0x2B0678B2: mov ecx, edi */ 6250 MEM32(eax + 0xC) = ebx; /* 0x2B0678B4: mov dword ptr [eax + 0xc], ebx */ 6251 RECOMP_ICALL(MEM32(0x2B0B599C)); /* 0x2B0678B7: call dword ptr [0x2b0b599c] */ 6252 RECOMP_FLAGS_IN(); 6253 MEM32(edi) = 0x2B0B68B4u; /* 0x2B0678BD: mov dword ptr [edi], 0x2b0b68b4 */ 6254 goto L_2B0678C7; /* 0x2B0678C3: jmp 0x2b0678c7 */ 6255 L_2B0678C5: 6256 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6257 edi = 0; /* 0x2B0678C5: xor edi, edi */ 6258 _cf = 0; 6259 _flag_k = FK_TEST; 6260 L_2B0678C7: 6261 edx = MEM32(esi + 0x10); /* 0x2B0678C7: mov edx, dword ptr [esi + 0x10] */ 6262 PUSH32(esp, 0x9Cu); /* 0x2B0678CA: push 0x9c */ 6263 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0678CF: mov dword ptr [ebp - 4], 0xffffffff */ 6264 MEM32(esi + 0x34) = edi; /* 0x2B0678D6: mov dword ptr [esi + 0x34], edi */ 6265 MEM32(ebp + (-0x10)) = edx; /* 0x2B0678D9: mov dword ptr [ebp - 0x10], edx */ 6266 ebx = 0xCDu; /* 0x2B0678DC: mov ebx, 0xcd */ 6267 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0678E1: call 0x2b0ab212 */ /* not lifted */ 6268 RECOMP_FLAGS_IN(); 6269 edi = eax; /* 0x2B0678E6: mov edi, eax */ 6270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6272 esp = esp + 4; /* 0x2B0678E8: add esp, 4 */ 6273 _flag_k = FK_ADD; 6274 MEM32(ebp + 0xC) = edi; /* 0x2B0678EB: mov dword ptr [ebp + 0xc], edi */ 6275 /* test edi, edi */ /* 0x2B0678EE: test edi, edi */ 6276 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6277 _cf = 0; 6278 _flag_k = FK_TEST; 6279 MEM32(ebp + (-0x4)) = 2; /* 0x2B0678F0: mov dword ptr [ebp - 4], 2 */ 6280 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06792D; /* 0x2B0678F7: je 0x2b06792d */ 6281 L_2B0678F9: 6282 eax = MEM32(ebp + 0x10); /* 0x2B0678F9: mov eax, dword ptr [ebp + 0x10] */ 6283 ecx = MEM32(ebp + (-0x10)); /* 0x2B0678FC: mov ecx, dword ptr [ebp - 0x10] */ 6284 edx = MEM32(ebp + (-0x14)); /* 0x2B0678FF: mov edx, dword ptr [ebp - 0x14] */ 6285 PUSH32(esp, eax); /* 0x2B067902: push eax */ 6286 PUSH32(esp, 0); /* 0x2B067903: push 0 */ 6287 PUSH32(esp, 0); /* 0x2B067905: push 0 */ 6288 PUSH32(esp, 0x5208u); /* 0x2B067907: push 0x5208 */ 6289 PUSH32(esp, 0); /* 0x2B06790C: push 0 */ 6290 PUSH32(esp, 0); /* 0x2B06790E: push 0 */ 6291 PUSH32(esp, 0); /* 0x2B067910: push 0 */ 6292 eax = 0x1Eu; /* 0x2B067912: mov eax, 0x1e */ 6293 PUSH32(esp, eax); /* 0x2B067917: push eax */ 6294 PUSH32(esp, ebx); /* 0x2B067918: push ebx */ 6295 PUSH32(esp, ecx); /* 0x2B067919: push ecx */ 6296 PUSH32(esp, edx); /* 0x2B06791A: push edx */ 6297 ecx = edi; /* 0x2B06791B: mov ecx, edi */ 6298 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B06791D: call dword ptr [0x2b0b5af0] */ 6299 RECOMP_FLAGS_IN(); 6300 MEM32(edi) = 0x2B0B642Cu; /* 0x2B067923: mov dword ptr [edi], 0x2b0b642c */ 6301 ecx = edi; /* 0x2B067929: mov ecx, edi */ 6302 goto L_2B06792F; /* 0x2B06792B: jmp 0x2b06792f */ 6303 L_2B06792D: 6304 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6305 ecx = 0; /* 0x2B06792D: xor ecx, ecx */ 6306 _cf = 0; 6307 _flag_k = FK_TEST; 6308 L_2B06792F: 6309 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 6310 ebx = ebx | 0xFFFFFFFFu; /* 0x2B06792F: or ebx, 0xffffffff */ 6311 _cf = 0; 6312 _flag_k = FK_TEST; 6313 PUSH32(esp, 0x2B0EB0C0u); /* 0x2B067932: push 0x2b0eb0c0 */ 6314 MEM32(ebp + (-0x4)) = ebx; /* 0x2B067937: mov dword ptr [ebp - 4], ebx */ 6315 MEM32(esi + 0x38) = ecx; /* 0x2B06793A: mov dword ptr [esi + 0x38], ecx */ 6316 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B06793D: call dword ptr [0x2b0b5c04] */ 6317 RECOMP_FLAGS_IN(); 6318 ecx = MEM32(esi + 0x38); /* 0x2B067943: mov ecx, dword ptr [esi + 0x38] */ 6319 PUSH32(esp, esi); /* 0x2B067946: push esi */ 6320 PUSH32(esp, 0x2B067E60u); /* 0x2B067947: push 0x2b067e60 */ 6321 RECOMP_ICALL(MEM32(0x2B0B5B44)); /* 0x2B06794C: call dword ptr [0x2b0b5b44] */ 6322 RECOMP_FLAGS_IN(); 6323 eax = MEM32(esi + 0x14); /* 0x2B067952: mov eax, dword ptr [esi + 0x14] */ 6324 eax = MEM32(eax + 0x14); /* 0x2B067955: mov eax, dword ptr [eax + 0x14] */ 6325 ecx = MEM32(eax + 0xC); /* 0x2B067958: mov ecx, dword ptr [eax + 0xc] */ 6326 PUSH32(esp, 0x38u); /* 0x2B06795B: push 0x38 */ 6327 MEM32(ebp + (-0x14)) = ecx; /* 0x2B06795D: mov dword ptr [ebp - 0x14], ecx */ 6328 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067960: call 0x2b0ab212 */ /* not lifted */ 6329 RECOMP_FLAGS_IN(); 6330 edi = eax; /* 0x2B067965: mov edi, eax */ 6331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6333 esp = esp + 4; /* 0x2B067967: add esp, 4 */ 6334 _flag_k = FK_ADD; 6335 MEM32(ebp + 0xC) = edi; /* 0x2B06796A: mov dword ptr [ebp + 0xc], edi */ 6336 /* test edi, edi */ /* 0x2B06796D: test edi, edi */ 6337 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6338 _cf = 0; 6339 _flag_k = FK_TEST; 6340 MEM32(ebp + (-0x4)) = 3; /* 0x2B06796F: mov dword ptr [ebp - 4], 3 */ 6341 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06799A; /* 0x2B067976: je 0x2b06799a */ 6342 L_2B067978: 6343 edx = MEM32(ebp + 0x10); /* 0x2B067978: mov edx, dword ptr [ebp + 0x10] */ 6344 PUSH32(esp, edx); /* 0x2B06797B: push edx */ 6345 PUSH32(esp, 0x5208u); /* 0x2B06797C: push 0x5208 */ 6346 PUSH32(esp, 0xCEu); /* 0x2B067981: push 0xce */ 6347 eax = ebp + (-0x14); /* 0x2B067986: lea eax, [ebp - 0x14] */ 6348 PUSH32(esp, eax); /* 0x2B067989: push eax */ 6349 ecx = edi; /* 0x2B06798A: mov ecx, edi */ 6350 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B06798C: call dword ptr [0x2b0b5948] */ 6351 RECOMP_FLAGS_IN(); 6352 MEM32(edi) = 0x2B0B68F4u; /* 0x2B067992: mov dword ptr [edi], 0x2b0b68f4 */ 6353 goto L_2B06799C; /* 0x2B067998: jmp 0x2b06799c */ 6354 L_2B06799A: 6355 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6356 edi = 0; /* 0x2B06799A: xor edi, edi */ 6357 _cf = 0; 6358 _flag_k = FK_TEST; 6359 L_2B06799C: 6360 MEM32(esi + 0x18) = edi; /* 0x2B06799C: mov dword ptr [esi + 0x18], edi */ 6361 edi = MEM32(esi + 0x10); /* 0x2B06799F: mov edi, dword ptr [esi + 0x10] */ 6362 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(6); 6363 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6364 edi = edi + 6; /* 0x2B0679A2: add edi, 6 */ 6365 _flag_k = FK_ADD; 6366 ecx = edi + 0x1; /* 0x2B0679A5: lea ecx, [edi + 1] */ 6367 PUSH32(esp, 0x28u); /* 0x2B0679A8: push 0x28 */ 6368 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0679AA: mov dword ptr [ebp - 4], ebx */ 6369 MEM32(ebp + (-0x18)) = ecx; /* 0x2B0679AD: mov dword ptr [ebp - 0x18], ecx */ 6370 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0679B0: call 0x2b0ab212 */ /* not lifted */ 6371 RECOMP_FLAGS_IN(); 6372 ebx = eax; /* 0x2B0679B5: mov ebx, eax */ 6373 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6375 esp = esp + 4; /* 0x2B0679B7: add esp, 4 */ 6376 _flag_k = FK_ADD; 6377 MEM32(ebp + 0xC) = ebx; /* 0x2B0679BA: mov dword ptr [ebp + 0xc], ebx */ 6378 /* test ebx, ebx */ /* 0x2B0679BD: test ebx, ebx */ 6379 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6380 _cf = 0; 6381 _flag_k = FK_TEST; 6382 MEM32(ebp + (-0x4)) = 4; /* 0x2B0679BF: mov dword ptr [ebp - 4], 4 */ 6383 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067A03; /* 0x2B0679C6: je 0x2b067a03 */ 6384 L_2B0679C8: 6385 edx = MEM32(ebp + 0x10); /* 0x2B0679C8: mov edx, dword ptr [ebp + 0x10] */ 6386 PUSH32(esp, edx); /* 0x2B0679CB: push edx */ 6387 edx = MEM32(ebp + (-0x18)); /* 0x2B0679CC: mov edx, dword ptr [ebp - 0x18] */ 6388 PUSH32(esp, 0x5209u); /* 0x2B0679CF: push 0x5209 */ 6389 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6391 esp = esp - 0x10u; /* 0x2B0679D4: sub esp, 0x10 */ 6392 _flag_k = FK_CMP; 6393 ecx = esp; /* 0x2B0679D7: mov ecx, esp */ 6394 eax = 0x35u; /* 0x2B0679D9: mov eax, 0x35 */ 6395 MEM32(ecx) = eax; /* 0x2B0679DE: mov dword ptr [ecx], eax */ 6396 MEM32(ecx + 0x4) = edi; /* 0x2B0679E0: mov dword ptr [ecx + 4], edi */ 6397 eax = 0x36u; /* 0x2B0679E3: mov eax, 0x36 */ 6398 MEM32(ecx + 0x8) = eax; /* 0x2B0679E8: mov dword ptr [ecx + 8], eax */ 6399 MEM32(ecx + 0xC) = edx; /* 0x2B0679EB: mov dword ptr [ecx + 0xc], edx */ 6400 PUSH32(esp, 0x00E1004Eu); /* 0x2B0679EE: push 0xe1004e */ 6401 ecx = ebx; /* 0x2B0679F3: mov ecx, ebx */ 6402 RECOMP_ICALL(MEM32(0x2B0B599C)); /* 0x2B0679F5: call dword ptr [0x2b0b599c] */ 6403 RECOMP_FLAGS_IN(); 6404 MEM32(ebx) = 0x2B0B68B4u; /* 0x2B0679FB: mov dword ptr [ebx], 0x2b0b68b4 */ 6405 goto L_2B067A05; /* 0x2B067A01: jmp 0x2b067a05 */ 6406 L_2B067A03: 6407 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6408 ebx = 0; /* 0x2B067A03: xor ebx, ebx */ 6409 _cf = 0; 6410 _flag_k = FK_TEST; 6411 L_2B067A05: 6412 PUSH32(esp, 0x28u); /* 0x2B067A05: push 0x28 */ 6413 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067A07: mov dword ptr [ebp - 4], 0xffffffff */ 6414 MEM32(esi + 0x28) = ebx; /* 0x2B067A0E: mov dword ptr [esi + 0x28], ebx */ 6415 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067A11: call 0x2b0ab212 */ /* not lifted */ 6416 RECOMP_FLAGS_IN(); 6417 ebx = eax; /* 0x2B067A16: mov ebx, eax */ 6418 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6420 esp = esp + 4; /* 0x2B067A18: add esp, 4 */ 6421 _flag_k = FK_ADD; 6422 MEM32(ebp + 0xC) = ebx; /* 0x2B067A1B: mov dword ptr [ebp + 0xc], ebx */ 6423 /* test ebx, ebx */ /* 0x2B067A1E: test ebx, ebx */ 6424 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6425 _cf = 0; 6426 _flag_k = FK_TEST; 6427 MEM32(ebp + (-0x4)) = 5; /* 0x2B067A20: mov dword ptr [ebp - 4], 5 */ 6428 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067A64; /* 0x2B067A27: je 0x2b067a64 */ 6429 L_2B067A29: 6430 eax = MEM32(ebp + 0x10); /* 0x2B067A29: mov eax, dword ptr [ebp + 0x10] */ 6431 edx = MEM32(ebp + (-0x18)); /* 0x2B067A2C: mov edx, dword ptr [ebp - 0x18] */ 6432 PUSH32(esp, eax); /* 0x2B067A2F: push eax */ 6433 PUSH32(esp, 0x5209u); /* 0x2B067A30: push 0x5209 */ 6434 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6436 esp = esp - 0x10u; /* 0x2B067A35: sub esp, 0x10 */ 6437 _flag_k = FK_CMP; 6438 ecx = esp; /* 0x2B067A38: mov ecx, esp */ 6439 eax = 0x35u; /* 0x2B067A3A: mov eax, 0x35 */ 6440 MEM32(ecx) = eax; /* 0x2B067A3F: mov dword ptr [ecx], eax */ 6441 MEM32(ecx + 0x4) = edi; /* 0x2B067A41: mov dword ptr [ecx + 4], edi */ 6442 eax = 0x36u; /* 0x2B067A44: mov eax, 0x36 */ 6443 MEM32(ecx + 0x8) = eax; /* 0x2B067A49: mov dword ptr [ecx + 8], eax */ 6444 MEM32(ecx + 0xC) = edx; /* 0x2B067A4C: mov dword ptr [ecx + 0xc], edx */ 6445 PUSH32(esp, 0x004C0034u); /* 0x2B067A4F: push 0x4c0034 */ 6446 ecx = ebx; /* 0x2B067A54: mov ecx, ebx */ 6447 RECOMP_ICALL(MEM32(0x2B0B599C)); /* 0x2B067A56: call dword ptr [0x2b0b599c] */ 6448 RECOMP_FLAGS_IN(); 6449 MEM32(ebx) = 0x2B0B68B4u; /* 0x2B067A5C: mov dword ptr [ebx], 0x2b0b68b4 */ 6450 goto L_2B067A66; /* 0x2B067A62: jmp 0x2b067a66 */ 6451 L_2B067A64: 6452 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6453 ebx = 0; /* 0x2B067A64: xor ebx, ebx */ 6454 _cf = 0; 6455 _flag_k = FK_TEST; 6456 L_2B067A66: 6457 PUSH32(esp, 0x28u); /* 0x2B067A66: push 0x28 */ 6458 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067A68: mov dword ptr [ebp - 4], 0xffffffff */ 6459 MEM32(esi + 0x30) = ebx; /* 0x2B067A6F: mov dword ptr [esi + 0x30], ebx */ 6460 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067A72: call 0x2b0ab212 */ /* not lifted */ 6461 RECOMP_FLAGS_IN(); 6462 ebx = eax; /* 0x2B067A77: mov ebx, eax */ 6463 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6465 esp = esp + 4; /* 0x2B067A79: add esp, 4 */ 6466 _flag_k = FK_ADD; 6467 MEM32(ebp + 0xC) = ebx; /* 0x2B067A7C: mov dword ptr [ebp + 0xc], ebx */ 6468 /* test ebx, ebx */ /* 0x2B067A7F: test ebx, ebx */ 6469 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6470 _cf = 0; 6471 _flag_k = FK_TEST; 6472 MEM32(ebp + (-0x4)) = 6; /* 0x2B067A81: mov dword ptr [ebp - 4], 6 */ 6473 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067AC5; /* 0x2B067A88: je 0x2b067ac5 */ 6474 L_2B067A8A: 6475 eax = MEM32(ebp + 0x10); /* 0x2B067A8A: mov eax, dword ptr [ebp + 0x10] */ 6476 edx = MEM32(ebp + (-0x18)); /* 0x2B067A8D: mov edx, dword ptr [ebp - 0x18] */ 6477 PUSH32(esp, eax); /* 0x2B067A90: push eax */ 6478 PUSH32(esp, 0x5209u); /* 0x2B067A91: push 0x5209 */ 6479 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6481 esp = esp - 0x10u; /* 0x2B067A96: sub esp, 0x10 */ 6482 _flag_k = FK_CMP; 6483 ecx = esp; /* 0x2B067A99: mov ecx, esp */ 6484 eax = 0x35u; /* 0x2B067A9B: mov eax, 0x35 */ 6485 MEM32(ecx) = eax; /* 0x2B067AA0: mov dword ptr [ecx], eax */ 6486 MEM32(ecx + 0x4) = edi; /* 0x2B067AA2: mov dword ptr [ecx + 4], edi */ 6487 eax = 0x36u; /* 0x2B067AA5: mov eax, 0x36 */ 6488 MEM32(ecx + 0x8) = eax; /* 0x2B067AAA: mov dword ptr [ecx + 8], eax */ 6489 MEM32(ecx + 0xC) = edx; /* 0x2B067AAD: mov dword ptr [ecx + 0xc], edx */ 6490 PUSH32(esp, 0x00FFFFFFu); /* 0x2B067AB0: push 0xffffff */ 6491 ecx = ebx; /* 0x2B067AB5: mov ecx, ebx */ 6492 RECOMP_ICALL(MEM32(0x2B0B599C)); /* 0x2B067AB7: call dword ptr [0x2b0b599c] */ 6493 RECOMP_FLAGS_IN(); 6494 MEM32(ebx) = 0x2B0B68B4u; /* 0x2B067ABD: mov dword ptr [ebx], 0x2b0b68b4 */ 6495 goto L_2B067AC7; /* 0x2B067AC3: jmp 0x2b067ac7 */ 6496 L_2B067AC5: 6497 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6498 ebx = 0; /* 0x2B067AC5: xor ebx, ebx */ 6499 _cf = 0; 6500 _flag_k = FK_TEST; 6501 L_2B067AC7: 6502 eax = MEM32(esi + 0x10); /* 0x2B067AC7: mov eax, dword ptr [esi + 0x10] */ 6503 ecx = MEM32(esi); /* 0x2B067ACA: mov ecx, dword ptr [esi] */ 6504 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 6505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6506 eax = eax + 0xAu; /* 0x2B067ACC: add eax, 0xa */ 6507 _flag_k = FK_ADD; 6508 PUSH32(esp, ecx); /* 0x2B067ACF: push ecx */ 6509 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067AD0: mov dword ptr [ebp - 4], 0xffffffff */ 6510 MEM32(esi + 0x2C) = ebx; /* 0x2B067AD7: mov dword ptr [esi + 0x2c], ebx */ 6511 MEM32(ebp + (-0x14)) = 0x3Au; /* 0x2B067ADA: mov dword ptr [ebp - 0x14], 0x3a */ 6512 MEM32(ebp + (-0x10)) = eax; /* 0x2B067AE1: mov dword ptr [ebp - 0x10], eax */ 6513 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B067AE4: call dword ptr [0x2b0b5d6c] */ 6514 RECOMP_FLAGS_IN(); 6515 ecx = eax; /* 0x2B067AEA: mov ecx, eax */ 6516 RECOMP_ICALL(MEM32(0x2B0B5DB4)); /* 0x2B067AEC: call dword ptr [0x2b0b5db4] */ 6517 RECOMP_FLAGS_IN(); 6518 ebx = eax; /* 0x2B067AF2: mov ebx, eax */ 6519 /* test ebx, ebx */ /* 0x2B067AF4: test ebx, ebx */ 6520 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6521 _cf = 0; 6522 _flag_k = FK_TEST; 6523 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B067AFD; /* 0x2B067AF6: jne 0x2b067afd */ 6524 L_2B067AF8: 6525 ebx = 0x2B0EB14Cu; /* 0x2B067AF8: mov ebx, 0x2b0eb14c */ 6526 L_2B067AFD: 6527 PUSH32(esp, 0x50u); /* 0x2B067AFD: push 0x50 */ 6528 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067AFF: call 0x2b0ab212 */ /* not lifted */ 6529 RECOMP_FLAGS_IN(); 6530 edi = eax; /* 0x2B067B04: mov edi, eax */ 6531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6533 esp = esp + 4; /* 0x2B067B06: add esp, 4 */ 6534 _flag_k = FK_ADD; 6535 MEM32(ebp + 0xC) = edi; /* 0x2B067B09: mov dword ptr [ebp + 0xc], edi */ 6536 /* test edi, edi */ /* 0x2B067B0C: test edi, edi */ 6537 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6538 _cf = 0; 6539 _flag_k = FK_TEST; 6540 MEM32(ebp + (-0x4)) = 7; /* 0x2B067B0E: mov dword ptr [ebp - 4], 7 */ 6541 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067B3F; /* 0x2B067B15: je 0x2b067b3f */ 6542 L_2B067B17: 6543 edx = MEM32(ebp + 0x10); /* 0x2B067B17: mov edx, dword ptr [ebp + 0x10] */ 6544 eax = MEM32(ebp + (-0x10)); /* 0x2B067B1A: mov eax, dword ptr [ebp - 0x10] */ 6545 ecx = MEM32(ebp + (-0x14)); /* 0x2B067B1D: mov ecx, dword ptr [ebp - 0x14] */ 6546 PUSH32(esp, edx); /* 0x2B067B20: push edx */ 6547 PUSH32(esp, 0); /* 0x2B067B21: push 0 */ 6548 PUSH32(esp, eax); /* 0x2B067B23: push eax */ 6549 PUSH32(esp, ecx); /* 0x2B067B24: push ecx */ 6550 PUSH32(esp, 0x520Au); /* 0x2B067B25: push 0x520a */ 6551 PUSH32(esp, ebx); /* 0x2B067B2A: push ebx */ 6552 PUSH32(esp, 2); /* 0x2B067B2B: push 2 */ 6553 ecx = edi; /* 0x2B067B2D: mov ecx, edi */ 6554 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B067B2F: call dword ptr [0x2b0b5950] */ 6555 RECOMP_FLAGS_IN(); 6556 MEM32(edi) = 0x2B0B6878u; /* 0x2B067B35: mov dword ptr [edi], 0x2b0b6878 */ 6557 ecx = edi; /* 0x2B067B3B: mov ecx, edi */ 6558 goto L_2B067B41; /* 0x2B067B3D: jmp 0x2b067b41 */ 6559 L_2B067B3F: 6560 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6561 ecx = 0; /* 0x2B067B3F: xor ecx, ecx */ 6562 _cf = 0; 6563 _flag_k = FK_TEST; 6564 L_2B067B41: 6565 ebx = MEM32(0x2B0B5858); /* 0x2B067B41: mov ebx, dword ptr [0x2b0b5858] */ 6566 PUSH32(esp, 0x00CCF2FFu); /* 0x2B067B47: push 0xccf2ff */ 6567 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067B4C: mov dword ptr [ebp - 4], 0xffffffff */ 6568 MEM32(esi + 0x1C) = ecx; /* 0x2B067B53: mov dword ptr [esi + 0x1c], ecx */ 6569 RECOMP_ICALL(ebx); /* 0x2B067B56: call ebx */ 6570 RECOMP_FLAGS_IN(); 6571 ecx = MEM32(esi + 0x1C); /* 0x2B067B58: mov ecx, dword ptr [esi + 0x1c] */ 6572 PUSH32(esp, 0); /* 0x2B067B5B: push 0 */ 6573 RECOMP_ICALL(MEM32(0x2B0B5874)); /* 0x2B067B5D: call dword ptr [0x2b0b5874] */ 6574 RECOMP_FLAGS_IN(); 6575 edx = MEM32(esi + 0x10); /* 0x2B067B63: mov edx, dword ptr [esi + 0x10] */ 6576 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xAu); 6577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6578 edx = edx + 0xAu; /* 0x2B067B66: add edx, 0xa */ 6579 _flag_k = FK_ADD; 6580 PUSH32(esp, 0x50u); /* 0x2B067B69: push 0x50 */ 6581 MEM32(ebp + (-0x14)) = 0xB4u; /* 0x2B067B6B: mov dword ptr [ebp - 0x14], 0xb4 */ 6582 MEM32(ebp + (-0x10)) = edx; /* 0x2B067B72: mov dword ptr [ebp - 0x10], edx */ 6583 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067B75: call 0x2b0ab212 */ /* not lifted */ 6584 RECOMP_FLAGS_IN(); 6585 edi = eax; /* 0x2B067B7A: mov edi, eax */ 6586 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6588 esp = esp + 4; /* 0x2B067B7C: add esp, 4 */ 6589 _flag_k = FK_ADD; 6590 MEM32(ebp + 0xC) = edi; /* 0x2B067B7F: mov dword ptr [ebp + 0xc], edi */ 6591 /* test edi, edi */ /* 0x2B067B82: test edi, edi */ 6592 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6593 _cf = 0; 6594 _flag_k = FK_TEST; 6595 MEM32(ebp + (-0x4)) = 8; /* 0x2B067B84: mov dword ptr [ebp - 4], 8 */ 6596 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067BB7; /* 0x2B067B8B: je 0x2b067bb7 */ 6597 L_2B067B8D: 6598 eax = MEM32(ebp + 0x10); /* 0x2B067B8D: mov eax, dword ptr [ebp + 0x10] */ 6599 ecx = MEM32(ebp + (-0x10)); /* 0x2B067B90: mov ecx, dword ptr [ebp - 0x10] */ 6600 edx = MEM32(ebp + (-0x14)); /* 0x2B067B93: mov edx, dword ptr [ebp - 0x14] */ 6601 PUSH32(esp, eax); /* 0x2B067B96: push eax */ 6602 PUSH32(esp, 0x10u); /* 0x2B067B97: push 0x10 */ 6603 PUSH32(esp, ecx); /* 0x2B067B99: push ecx */ 6604 PUSH32(esp, edx); /* 0x2B067B9A: push edx */ 6605 PUSH32(esp, 0x520Au); /* 0x2B067B9B: push 0x520a */ 6606 PUSH32(esp, 0x2B0EB148u); /* 0x2B067BA0: push 0x2b0eb148 */ 6607 PUSH32(esp, 2); /* 0x2B067BA5: push 2 */ 6608 ecx = edi; /* 0x2B067BA7: mov ecx, edi */ 6609 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B067BA9: call dword ptr [0x2b0b5950] */ 6610 RECOMP_FLAGS_IN(); 6611 MEM32(edi) = 0x2B0B6878u; /* 0x2B067BAF: mov dword ptr [edi], 0x2b0b6878 */ 6612 goto L_2B067BB9; /* 0x2B067BB5: jmp 0x2b067bb9 */ 6613 L_2B067BB7: 6614 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6615 edi = 0; /* 0x2B067BB7: xor edi, edi */ 6616 _cf = 0; 6617 _flag_k = FK_TEST; 6618 L_2B067BB9: 6619 PUSH32(esp, 0x00CCF2FFu); /* 0x2B067BB9: push 0xccf2ff */ 6620 ecx = edi; /* 0x2B067BBE: mov ecx, edi */ 6621 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067BC0: mov dword ptr [ebp - 4], 0xffffffff */ 6622 MEM32(esi + 0x20) = edi; /* 0x2B067BC7: mov dword ptr [esi + 0x20], edi */ 6623 RECOMP_ICALL(ebx); /* 0x2B067BCA: call ebx */ 6624 RECOMP_FLAGS_IN(); 6625 ecx = MEM32(esi + 0x20); /* 0x2B067BCC: mov ecx, dword ptr [esi + 0x20] */ 6626 PUSH32(esp, 0); /* 0x2B067BCF: push 0 */ 6627 RECOMP_ICALL(MEM32(0x2B0B5874)); /* 0x2B067BD1: call dword ptr [0x2b0b5874] */ 6628 RECOMP_FLAGS_IN(); 6629 eax = MEM32(esi + 0x10); /* 0x2B067BD7: mov eax, dword ptr [esi + 0x10] */ 6630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 6631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6632 eax = eax + 0xAu; /* 0x2B067BDA: add eax, 0xa */ 6633 _flag_k = FK_ADD; 6634 PUSH32(esp, 0x50u); /* 0x2B067BDD: push 0x50 */ 6635 MEM32(ebp + (-0x14)) = 0x1Cu; /* 0x2B067BDF: mov dword ptr [ebp - 0x14], 0x1c */ 6636 MEM32(ebp + (-0x10)) = eax; /* 0x2B067BE6: mov dword ptr [ebp - 0x10], eax */ 6637 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067BE9: call 0x2b0ab212 */ /* not lifted */ 6638 RECOMP_FLAGS_IN(); 6639 edi = eax; /* 0x2B067BEE: mov edi, eax */ 6640 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6642 esp = esp + 4; /* 0x2B067BF0: add esp, 4 */ 6643 _flag_k = FK_ADD; 6644 MEM32(ebp + 0xC) = edi; /* 0x2B067BF3: mov dword ptr [ebp + 0xc], edi */ 6645 /* test edi, edi */ /* 0x2B067BF6: test edi, edi */ 6646 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6647 _cf = 0; 6648 _flag_k = FK_TEST; 6649 MEM32(ebp + (-0x4)) = 9; /* 0x2B067BF8: mov dword ptr [ebp - 4], 9 */ 6650 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067C2B; /* 0x2B067BFF: je 0x2b067c2b */ 6651 L_2B067C01: 6652 ecx = MEM32(ebp + 0x10); /* 0x2B067C01: mov ecx, dword ptr [ebp + 0x10] */ 6653 edx = MEM32(ebp + (-0x10)); /* 0x2B067C04: mov edx, dword ptr [ebp - 0x10] */ 6654 eax = MEM32(ebp + (-0x14)); /* 0x2B067C07: mov eax, dword ptr [ebp - 0x14] */ 6655 PUSH32(esp, ecx); /* 0x2B067C0A: push ecx */ 6656 PUSH32(esp, 0x10u); /* 0x2B067C0B: push 0x10 */ 6657 PUSH32(esp, edx); /* 0x2B067C0D: push edx */ 6658 PUSH32(esp, eax); /* 0x2B067C0E: push eax */ 6659 PUSH32(esp, 0x5209u); /* 0x2B067C0F: push 0x5209 */ 6660 PUSH32(esp, 0x2B0EB148u); /* 0x2B067C14: push 0x2b0eb148 */ 6661 PUSH32(esp, 1); /* 0x2B067C19: push 1 */ 6662 ecx = edi; /* 0x2B067C1B: mov ecx, edi */ 6663 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B067C1D: call dword ptr [0x2b0b5950] */ 6664 RECOMP_FLAGS_IN(); 6665 MEM32(edi) = 0x2B0B6878u; /* 0x2B067C23: mov dword ptr [edi], 0x2b0b6878 */ 6666 goto L_2B067C2D; /* 0x2B067C29: jmp 0x2b067c2d */ 6667 L_2B067C2B: 6668 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6669 edi = 0; /* 0x2B067C2B: xor edi, edi */ 6670 _cf = 0; 6671 _flag_k = FK_TEST; 6672 L_2B067C2D: 6673 PUSH32(esp, 0x00FFFA9Bu); /* 0x2B067C2D: push 0xfffa9b */ 6674 ecx = edi; /* 0x2B067C32: mov ecx, edi */ 6675 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067C34: mov dword ptr [ebp - 4], 0xffffffff */ 6676 MEM32(esi + 0x24) = edi; /* 0x2B067C3B: mov dword ptr [esi + 0x24], edi */ 6677 RECOMP_ICALL(ebx); /* 0x2B067C3E: call ebx */ 6678 RECOMP_FLAGS_IN(); 6679 ebx = MEM32(esi + 0x10); /* 0x2B067C40: mov ebx, dword ptr [esi + 0x10] */ 6680 edx = 0xBDu; /* 0x2B067C43: mov edx, 0xbd */ 6681 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6682 eax = 0; /* 0x2B067C48: xor eax, eax */ 6683 _cf = 0; 6684 _flag_k = FK_TEST; 6685 ecx = 0xCu; /* 0x2B067C4A: mov ecx, 0xc */ 6686 edi = ebp + (-0x54); /* 0x2B067C4F: lea edi, [ebp - 0x54] */ 6687 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B067C52: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 6688 PUSH32(esp, 0xBCu); /* 0x2B067C54: push 0xbc */ 6689 MEM32(ebp + (-0x14)) = edx; /* 0x2B067C59: mov dword ptr [ebp - 0x14], edx */ 6690 MEM32(ebp + (-0x10)) = ebx; /* 0x2B067C5C: mov dword ptr [ebp - 0x10], ebx */ 6691 MEM32(ebp + (-0x44)) = edx; /* 0x2B067C5F: mov dword ptr [ebp - 0x44], edx */ 6692 MEM32(ebp + (-0x40)) = ebx; /* 0x2B067C62: mov dword ptr [ebp - 0x40], ebx */ 6693 MEM32(ebp + (-0x3C)) = 0x520Au; /* 0x2B067C65: mov dword ptr [ebp - 0x3c], 0x520a */ 6694 MEM32(ebp + (-0x34)) = 0xCFu; /* 0x2B067C6C: mov dword ptr [ebp - 0x34], 0xcf */ 6695 MEM32(ebp + (-0x30)) = 0xD0u; /* 0x2B067C73: mov dword ptr [ebp - 0x30], 0xd0 */ 6696 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067C7A: call 0x2b0ab212 */ /* not lifted */ 6697 RECOMP_FLAGS_IN(); 6698 edi = eax; /* 0x2B067C7F: mov edi, eax */ 6699 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6700 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6701 esp = esp + 4; /* 0x2B067C81: add esp, 4 */ 6702 _flag_k = FK_ADD; 6703 MEM32(ebp + 0xC) = edi; /* 0x2B067C84: mov dword ptr [ebp + 0xc], edi */ 6704 /* test edi, edi */ /* 0x2B067C87: test edi, edi */ 6705 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6706 _cf = 0; 6707 _flag_k = FK_TEST; 6708 MEM32(ebp + (-0x4)) = 0xAu; /* 0x2B067C89: mov dword ptr [ebp - 4], 0xa */ 6709 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067CAC; /* 0x2B067C90: je 0x2b067cac */ 6710 L_2B067C92: 6711 ecx = MEM32(ebp + 0x10); /* 0x2B067C92: mov ecx, dword ptr [ebp + 0x10] */ 6712 PUSH32(esp, ecx); /* 0x2B067C95: push ecx */ 6713 edx = ebp + (-0x54); /* 0x2B067C96: lea edx, [ebp - 0x54] */ 6714 PUSH32(esp, edx); /* 0x2B067C99: push edx */ 6715 ecx = edi; /* 0x2B067C9A: mov ecx, edi */ 6716 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B067C9C: call dword ptr [0x2b0b5afc] */ 6717 RECOMP_FLAGS_IN(); 6718 MEM32(edi) = 0x2B0B645Cu; /* 0x2B067CA2: mov dword ptr [edi], 0x2b0b645c */ 6719 ecx = edi; /* 0x2B067CA8: mov ecx, edi */ 6720 goto L_2B067CAE; /* 0x2B067CAA: jmp 0x2b067cae */ 6721 L_2B067CAC: 6722 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6723 ecx = 0; /* 0x2B067CAC: xor ecx, ecx */ 6724 _cf = 0; 6725 _flag_k = FK_TEST; 6726 L_2B067CAE: 6727 PUSH32(esp, 0x46u); /* 0x2B067CAE: push 0x46 */ 6728 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067CB0: mov dword ptr [ebp - 4], 0xffffffff */ 6729 MEM32(esi + 0x3C) = ecx; /* 0x2B067CB7: mov dword ptr [esi + 0x3c], ecx */ 6730 RECOMP_ICALL(MEM32(0x2B0B5700)); /* 0x2B067CBA: call dword ptr [0x2b0b5700] */ 6731 RECOMP_FLAGS_IN(); 6732 ecx = MEM32(esi + 0x3C); /* 0x2B067CC0: mov ecx, dword ptr [esi + 0x3c] */ 6733 PUSH32(esp, esi); /* 0x2B067CC3: push esi */ 6734 PUSH32(esp, 0x2B068120u); /* 0x2B067CC4: push 0x2b068120 */ 6735 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B067CC9: call dword ptr [0x2b0b5820] */ 6736 RECOMP_FLAGS_IN(); 6737 ecx = MEM32(esi + 0x3C); /* 0x2B067CCF: mov ecx, dword ptr [esi + 0x3c] */ 6738 PUSH32(esp, 0x2B0EB0C0u); /* 0x2B067CD2: push 0x2b0eb0c0 */ 6739 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B067CD7: call dword ptr [0x2b0b5c04] */ 6740 RECOMP_FLAGS_IN(); 6741 ebx = MEM32(esi + 0x10); /* 0x2B067CDD: mov ebx, dword ptr [esi + 0x10] */ 6742 edx = 0x1Fu; /* 0x2B067CE0: mov edx, 0x1f */ 6743 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6744 eax = 0; /* 0x2B067CE5: xor eax, eax */ 6745 _cf = 0; 6746 _flag_k = FK_TEST; 6747 ecx = 0xCu; /* 0x2B067CE7: mov ecx, 0xc */ 6748 edi = ebp + (-0x54); /* 0x2B067CEC: lea edi, [ebp - 0x54] */ 6749 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B067CEF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 6750 PUSH32(esp, 0xBCu); /* 0x2B067CF1: push 0xbc */ 6751 MEM32(ebp + (-0x14)) = edx; /* 0x2B067CF6: mov dword ptr [ebp - 0x14], edx */ 6752 MEM32(ebp + (-0x10)) = ebx; /* 0x2B067CF9: mov dword ptr [ebp - 0x10], ebx */ 6753 MEM32(ebp + (-0x44)) = edx; /* 0x2B067CFC: mov dword ptr [ebp - 0x44], edx */ 6754 MEM32(ebp + (-0x40)) = ebx; /* 0x2B067CFF: mov dword ptr [ebp - 0x40], ebx */ 6755 MEM32(ebp + (-0x3C)) = 0x520Au; /* 0x2B067D02: mov dword ptr [ebp - 0x3c], 0x520a */ 6756 MEM32(ebp + (-0x34)) = 0xD1u; /* 0x2B067D09: mov dword ptr [ebp - 0x34], 0xd1 */ 6757 MEM32(ebp + (-0x30)) = 0xD2u; /* 0x2B067D10: mov dword ptr [ebp - 0x30], 0xd2 */ 6758 RECOMP_ICALL(0x2B0AB212u); /* 0x2B067D17: call 0x2b0ab212 */ /* not lifted */ 6759 RECOMP_FLAGS_IN(); 6760 edi = eax; /* 0x2B067D1C: mov edi, eax */ 6761 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6762 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6763 esp = esp + 4; /* 0x2B067D1E: add esp, 4 */ 6764 _flag_k = FK_ADD; 6765 MEM32(ebp + 0xC) = edi; /* 0x2B067D21: mov dword ptr [ebp + 0xc], edi */ 6766 /* test edi, edi */ /* 0x2B067D24: test edi, edi */ 6767 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6768 _cf = 0; 6769 _flag_k = FK_TEST; 6770 MEM32(ebp + (-0x4)) = 0xBu; /* 0x2B067D26: mov dword ptr [ebp - 4], 0xb */ 6771 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067D47; /* 0x2B067D2D: je 0x2b067d47 */ 6772 L_2B067D2F: 6773 eax = MEM32(ebp + 0x10); /* 0x2B067D2F: mov eax, dword ptr [ebp + 0x10] */ 6774 PUSH32(esp, eax); /* 0x2B067D32: push eax */ 6775 ecx = ebp + (-0x54); /* 0x2B067D33: lea ecx, [ebp - 0x54] */ 6776 PUSH32(esp, ecx); /* 0x2B067D36: push ecx */ 6777 ecx = edi; /* 0x2B067D37: mov ecx, edi */ 6778 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B067D39: call dword ptr [0x2b0b5afc] */ 6779 RECOMP_FLAGS_IN(); 6780 MEM32(edi) = 0x2B0B645Cu; /* 0x2B067D3F: mov dword ptr [edi], 0x2b0b645c */ 6781 goto L_2B067D49; /* 0x2B067D45: jmp 0x2b067d49 */ 6782 L_2B067D47: 6783 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6784 edi = 0; /* 0x2B067D47: xor edi, edi */ 6785 _cf = 0; 6786 _flag_k = FK_TEST; 6787 L_2B067D49: 6788 PUSH32(esp, 0x46u); /* 0x2B067D49: push 0x46 */ 6789 ecx = edi; /* 0x2B067D4B: mov ecx, edi */ 6790 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B067D4D: mov dword ptr [ebp - 4], 0xffffffff */ 6791 MEM32(esi + 0x40) = edi; /* 0x2B067D54: mov dword ptr [esi + 0x40], edi */ 6792 RECOMP_ICALL(MEM32(0x2B0B5700)); /* 0x2B067D57: call dword ptr [0x2b0b5700] */ 6793 RECOMP_FLAGS_IN(); 6794 ecx = MEM32(esi + 0x40); /* 0x2B067D5D: mov ecx, dword ptr [esi + 0x40] */ 6795 PUSH32(esp, esi); /* 0x2B067D60: push esi */ 6796 PUSH32(esp, 0x2B068270u); /* 0x2B067D61: push 0x2b068270 */ 6797 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B067D66: call dword ptr [0x2b0b5820] */ 6798 RECOMP_FLAGS_IN(); 6799 ecx = MEM32(esi + 0x40); /* 0x2B067D6C: mov ecx, dword ptr [esi + 0x40] */ 6800 PUSH32(esp, 0x2B0EB0C0u); /* 0x2B067D6F: push 0x2b0eb0c0 */ 6801 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B067D74: call dword ptr [0x2b0b5c04] */ 6802 RECOMP_FLAGS_IN(); 6803 edx = MEM32(esi); /* 0x2B067D7A: mov edx, dword ptr [esi] */ 6804 PUSH32(esp, edx); /* 0x2B067D7C: push edx */ 6805 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B067D7D: call dword ptr [0x2b0b5d6c] */ 6806 RECOMP_FLAGS_IN(); 6807 ecx = eax; /* 0x2B067D83: mov ecx, eax */ 6808 RECOMP_ICALL(MEM32(0x2B0B5DB8)); /* 0x2B067D85: call dword ptr [0x2b0b5db8] */ 6809 RECOMP_FLAGS_IN(); 6810 /* test eax, eax */ /* 0x2B067D8B: test eax, eax */ 6811 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6812 _cf = 0; 6813 _flag_k = FK_TEST; 6814 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B067D92; /* 0x2B067D8D: jne 0x2b067d92 */ 6815 L_2B067D8F: 6816 MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x2B067D8F: mov byte ptr [esi + 0xc], al */ 6817 L_2B067D92: 6818 ecx = esi; /* 0x2B067D92: mov ecx, esi */ 6819 RECOMP_ICALL(0x2B068830u); /* 0x2B067D94: call 0x2b068830 */ /* not lifted */ 6820 RECOMP_FLAGS_IN(); 6821 ecx = MEM32(ebp + (-0xC)); /* 0x2B067D99: mov ecx, dword ptr [ebp - 0xc] */ 6822 edi = POP32_VAL(esp); /* 0x2B067D9C: pop edi */ 6823 eax = esi; /* 0x2B067D9D: mov eax, esi */ 6824 esi = POP32_VAL(esp); /* 0x2B067D9F: pop esi */ 6825 MEM32(FS_BASE + (0)) = ecx; /* 0x2B067DA0: mov dword ptr fs:[0], ecx */ 6826 ebx = POP32_VAL(esp); /* 0x2B067DA7: pop ebx */ 6827 esp = ebp; /* 0x2B067DA8: mov esp, ebp */ 6828 ebp = POP32_VAL(esp); /* 0x2B067DAA: pop ebp */ 6829 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B067DAB: ret 0xc */ 6830 RECOMP_REGS_OUT(); 6831 } 6832 6833 void sub_2B067DB0(void) { 6834 int _fpu_cmp = 0; 6835 uint32_t _cf = 0; 6836 int _df = 1; 6837 uint32_t _flag_k = FK_NONE; 6838 uint32_t _flag_a = 0, _flag_b = 0; 6839 uint32_t _itail_tgt = 0; 6840 RECOMP_REGS_LOCALS 6841 RECOMP_ENTER(0x2B067DB0u); 6842 6843 L_2B067DB0: 6844 PUSH32(esp, esi); /* 0x2B067DB0: push esi */ 6845 esi = ecx; /* 0x2B067DB1: mov esi, ecx */ 6846 ecx = MEM32(esi + 0x38); /* 0x2B067DB3: mov ecx, dword ptr [esi + 0x38] */ 6847 /* test ecx, ecx */ /* 0x2B067DB6: test ecx, ecx */ 6848 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6849 _cf = 0; 6850 _flag_k = FK_TEST; 6851 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067DC0; /* 0x2B067DB8: je 0x2b067dc0 */ 6852 L_2B067DBA: 6853 eax = MEM32(ecx); /* 0x2B067DBA: mov eax, dword ptr [ecx] */ 6854 PUSH32(esp, 1); /* 0x2B067DBC: push 1 */ 6855 RECOMP_ICALL(MEM32(eax)); /* 0x2B067DBE: call dword ptr [eax] */ 6856 RECOMP_FLAGS_IN(); 6857 L_2B067DC0: 6858 ecx = MEM32(esi + 0x14); /* 0x2B067DC0: mov ecx, dword ptr [esi + 0x14] */ 6859 /* test ecx, ecx */ /* 0x2B067DC3: test ecx, ecx */ 6860 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6861 _cf = 0; 6862 _flag_k = FK_TEST; 6863 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067DCD; /* 0x2B067DC5: je 0x2b067dcd */ 6864 L_2B067DC7: 6865 edx = MEM32(ecx); /* 0x2B067DC7: mov edx, dword ptr [ecx] */ 6866 PUSH32(esp, 1); /* 0x2B067DC9: push 1 */ 6867 RECOMP_ICALL(MEM32(edx)); /* 0x2B067DCB: call dword ptr [edx] */ 6868 RECOMP_FLAGS_IN(); 6869 L_2B067DCD: 6870 ecx = MEM32(esi + 0x34); /* 0x2B067DCD: mov ecx, dword ptr [esi + 0x34] */ 6871 /* test ecx, ecx */ /* 0x2B067DD0: test ecx, ecx */ 6872 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6873 _cf = 0; 6874 _flag_k = FK_TEST; 6875 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067DDA; /* 0x2B067DD2: je 0x2b067dda */ 6876 L_2B067DD4: 6877 eax = MEM32(ecx); /* 0x2B067DD4: mov eax, dword ptr [ecx] */ 6878 PUSH32(esp, 1); /* 0x2B067DD6: push 1 */ 6879 RECOMP_ICALL(MEM32(eax)); /* 0x2B067DD8: call dword ptr [eax] */ 6880 RECOMP_FLAGS_IN(); 6881 L_2B067DDA: 6882 ecx = MEM32(esi + 0x18); /* 0x2B067DDA: mov ecx, dword ptr [esi + 0x18] */ 6883 /* test ecx, ecx */ /* 0x2B067DDD: test ecx, ecx */ 6884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6885 _cf = 0; 6886 _flag_k = FK_TEST; 6887 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067DE7; /* 0x2B067DDF: je 0x2b067de7 */ 6888 L_2B067DE1: 6889 edx = MEM32(ecx); /* 0x2B067DE1: mov edx, dword ptr [ecx] */ 6890 PUSH32(esp, 1); /* 0x2B067DE3: push 1 */ 6891 RECOMP_ICALL(MEM32(edx)); /* 0x2B067DE5: call dword ptr [edx] */ 6892 RECOMP_FLAGS_IN(); 6893 L_2B067DE7: 6894 ecx = MEM32(esi + 0x1C); /* 0x2B067DE7: mov ecx, dword ptr [esi + 0x1c] */ 6895 /* test ecx, ecx */ /* 0x2B067DEA: test ecx, ecx */ 6896 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6897 _cf = 0; 6898 _flag_k = FK_TEST; 6899 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067DF4; /* 0x2B067DEC: je 0x2b067df4 */ 6900 L_2B067DEE: 6901 eax = MEM32(ecx); /* 0x2B067DEE: mov eax, dword ptr [ecx] */ 6902 PUSH32(esp, 1); /* 0x2B067DF0: push 1 */ 6903 RECOMP_ICALL(MEM32(eax)); /* 0x2B067DF2: call dword ptr [eax] */ 6904 RECOMP_FLAGS_IN(); 6905 L_2B067DF4: 6906 ecx = MEM32(esi + 0x20); /* 0x2B067DF4: mov ecx, dword ptr [esi + 0x20] */ 6907 /* test ecx, ecx */ /* 0x2B067DF7: test ecx, ecx */ 6908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6909 _cf = 0; 6910 _flag_k = FK_TEST; 6911 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067E01; /* 0x2B067DF9: je 0x2b067e01 */ 6912 L_2B067DFB: 6913 edx = MEM32(ecx); /* 0x2B067DFB: mov edx, dword ptr [ecx] */ 6914 PUSH32(esp, 1); /* 0x2B067DFD: push 1 */ 6915 RECOMP_ICALL(MEM32(edx)); /* 0x2B067DFF: call dword ptr [edx] */ 6916 RECOMP_FLAGS_IN(); 6917 L_2B067E01: 6918 ecx = MEM32(esi + 0x24); /* 0x2B067E01: mov ecx, dword ptr [esi + 0x24] */ 6919 /* test ecx, ecx */ /* 0x2B067E04: test ecx, ecx */ 6920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6921 _cf = 0; 6922 _flag_k = FK_TEST; 6923 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067E0E; /* 0x2B067E06: je 0x2b067e0e */ 6924 L_2B067E08: 6925 eax = MEM32(ecx); /* 0x2B067E08: mov eax, dword ptr [ecx] */ 6926 PUSH32(esp, 1); /* 0x2B067E0A: push 1 */ 6927 RECOMP_ICALL(MEM32(eax)); /* 0x2B067E0C: call dword ptr [eax] */ 6928 RECOMP_FLAGS_IN(); 6929 L_2B067E0E: 6930 ecx = MEM32(esi + 0x28); /* 0x2B067E0E: mov ecx, dword ptr [esi + 0x28] */ 6931 /* test ecx, ecx */ /* 0x2B067E11: test ecx, ecx */ 6932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6933 _cf = 0; 6934 _flag_k = FK_TEST; 6935 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067E1B; /* 0x2B067E13: je 0x2b067e1b */ 6936 L_2B067E15: 6937 edx = MEM32(ecx); /* 0x2B067E15: mov edx, dword ptr [ecx] */ 6938 PUSH32(esp, 1); /* 0x2B067E17: push 1 */ 6939 RECOMP_ICALL(MEM32(edx)); /* 0x2B067E19: call dword ptr [edx] */ 6940 RECOMP_FLAGS_IN(); 6941 L_2B067E1B: 6942 ecx = MEM32(esi + 0x30); /* 0x2B067E1B: mov ecx, dword ptr [esi + 0x30] */ 6943 /* test ecx, ecx */ /* 0x2B067E1E: test ecx, ecx */ 6944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6945 _cf = 0; 6946 _flag_k = FK_TEST; 6947 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067E28; /* 0x2B067E20: je 0x2b067e28 */ 6948 L_2B067E22: 6949 eax = MEM32(ecx); /* 0x2B067E22: mov eax, dword ptr [ecx] */ 6950 PUSH32(esp, 1); /* 0x2B067E24: push 1 */ 6951 RECOMP_ICALL(MEM32(eax)); /* 0x2B067E26: call dword ptr [eax] */ 6952 RECOMP_FLAGS_IN(); 6953 L_2B067E28: 6954 ecx = MEM32(esi + 0x2C); /* 0x2B067E28: mov ecx, dword ptr [esi + 0x2c] */ 6955 /* test ecx, ecx */ /* 0x2B067E2B: test ecx, ecx */ 6956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6957 _cf = 0; 6958 _flag_k = FK_TEST; 6959 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067E35; /* 0x2B067E2D: je 0x2b067e35 */ 6960 L_2B067E2F: 6961 edx = MEM32(ecx); /* 0x2B067E2F: mov edx, dword ptr [ecx] */ 6962 PUSH32(esp, 1); /* 0x2B067E31: push 1 */ 6963 RECOMP_ICALL(MEM32(edx)); /* 0x2B067E33: call dword ptr [edx] */ 6964 RECOMP_FLAGS_IN(); 6965 L_2B067E35: 6966 ecx = MEM32(esi + 0x3C); /* 0x2B067E35: mov ecx, dword ptr [esi + 0x3c] */ 6967 /* test ecx, ecx */ /* 0x2B067E38: test ecx, ecx */ 6968 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6969 _cf = 0; 6970 _flag_k = FK_TEST; 6971 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067E42; /* 0x2B067E3A: je 0x2b067e42 */ 6972 L_2B067E3C: 6973 eax = MEM32(ecx); /* 0x2B067E3C: mov eax, dword ptr [ecx] */ 6974 PUSH32(esp, 1); /* 0x2B067E3E: push 1 */ 6975 RECOMP_ICALL(MEM32(eax)); /* 0x2B067E40: call dword ptr [eax] */ 6976 RECOMP_FLAGS_IN(); 6977 L_2B067E42: 6978 ecx = MEM32(esi + 0x40); /* 0x2B067E42: mov ecx, dword ptr [esi + 0x40] */ 6979 /* test ecx, ecx */ /* 0x2B067E45: test ecx, ecx */ 6980 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6981 _cf = 0; 6982 _flag_k = FK_TEST; 6983 esi = POP32_VAL(esp); /* 0x2B067E47: pop esi */ 6984 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067E50; /* 0x2B067E48: je 0x2b067e50 */ 6985 L_2B067E4A: 6986 edx = MEM32(ecx); /* 0x2B067E4A: mov edx, dword ptr [ecx] */ 6987 PUSH32(esp, 1); /* 0x2B067E4C: push 1 */ 6988 RECOMP_ICALL(MEM32(edx)); /* 0x2B067E4E: call dword ptr [edx] */ 6989 RECOMP_FLAGS_IN(); 6990 L_2B067E50: 6991 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B067E50: ret */ 6992 RECOMP_REGS_OUT(); 6993 } 6994 6995 void sub_2B067E60(void) { 6996 int _fpu_cmp = 0; 6997 uint32_t _cf = 0; 6998 int _df = 1; 6999 uint32_t _flag_k = FK_NONE; 7000 uint32_t _flag_a = 0, _flag_b = 0; 7001 uint32_t _itail_tgt = 0; 7002 RECOMP_REGS_LOCALS 7003 RECOMP_ENTER(0x2B067E60u); 7004 7005 L_2B067E60: 7006 PUSH32(esp, ebp); /* 0x2B067E60: push ebp */ 7007 ebp = esp; /* 0x2B067E61: mov ebp, esp */ 7008 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B067E63: push -1 */ 7009 PUSH32(esp, 0x2B0B0D99u); /* 0x2B067E65: push 0x2b0b0d99 */ 7010 eax = MEM32(FS_BASE + (0)); /* 0x2B067E6A: mov eax, dword ptr fs:[0] */ 7011 PUSH32(esp, eax); /* 0x2B067E70: push eax */ 7012 MEM32(FS_BASE + (0)) = esp; /* 0x2B067E71: mov dword ptr fs:[0], esp */ 7013 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 7014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7015 esp = esp - 0x20u; /* 0x2B067E78: sub esp, 0x20 */ 7016 _flag_k = FK_CMP; 7017 PUSH32(esp, esi); /* 0x2B067E7B: push esi */ 7018 esi = MEM32(ebp + 0x8); /* 0x2B067E7C: mov esi, dword ptr [ebp + 8] */ 7019 /* test esi, esi */ /* 0x2B067E7F: test esi, esi */ 7020 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7021 _cf = 0; 7022 _flag_k = FK_TEST; 7023 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06810D; /* 0x2B067E81: je 0x2b06810d */ 7024 L_2B067E87: 7025 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B067E87: call dword ptr [0x2b0b5b64] */ 7026 RECOMP_FLAGS_IN(); 7027 ecx = eax; /* 0x2B067E8D: mov ecx, eax */ 7028 RECOMP_ICALL(MEM32(0x2B0B583C)); /* 0x2B067E8F: call dword ptr [0x2b0b583c] */ 7029 RECOMP_FLAGS_IN(); 7030 /* test LO8(eax), LO8(eax) */ /* 0x2B067E95: test al, al */ 7031 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7032 _cf = 0; 7033 _flag_k = FK_NARROW(FK_TEST, 24); 7034 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067EC0; /* 0x2B067E97: je 0x2b067ec0 */ 7035 L_2B067E99: 7036 eax = MEM32(esi); /* 0x2B067E99: mov eax, dword ptr [esi] */ 7037 PUSH32(esp, eax); /* 0x2B067E9B: push eax */ 7038 PUSH32(esp, 0xB9u); /* 0x2B067E9C: push 0xb9 */ 7039 PUSH32(esp, 0x14u); /* 0x2B067EA1: push 0x14 */ 7040 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B067EA3: call dword ptr [0x2b0b53cc] */ 7041 RECOMP_FLAGS_IN(); 7042 ecx = eax; /* 0x2B067EA9: mov ecx, eax */ 7043 RECOMP_ICALL(MEM32(0x2B0B53B8)); /* 0x2B067EAB: call dword ptr [0x2b0b53b8] */ 7044 RECOMP_FLAGS_IN(); 7045 esi = POP32_VAL(esp); /* 0x2B067EB1: pop esi */ 7046 ecx = MEM32(ebp + (-0xC)); /* 0x2B067EB2: mov ecx, dword ptr [ebp - 0xc] */ 7047 MEM32(FS_BASE + (0)) = ecx; /* 0x2B067EB5: mov dword ptr fs:[0], ecx */ 7048 esp = ebp; /* 0x2B067EBC: mov esp, ebp */ 7049 ebp = POP32_VAL(esp); /* 0x2B067EBE: pop ebp */ 7050 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B067EBF: ret */ 7051 L_2B067EC0: 7052 SET_LO8(eax, MEM8(0x2B0EEE58)); /* 0x2B067EC0: mov al, byte ptr [0x2b0eee58] */ 7053 /* test LO8(eax), LO8(eax) */ /* 0x2B067EC5: test al, al */ 7054 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7055 _cf = 0; 7056 _flag_k = FK_NARROW(FK_TEST, 24); 7057 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06810D; /* 0x2B067EC7: je 0x2b06810d */ 7058 L_2B067ECD: 7059 eax = MEM32(esi); /* 0x2B067ECD: mov eax, dword ptr [esi] */ 7060 /* cmp eax, 0x10u */ /* 0x2B067ECF: cmp eax, 0x10 */ 7061 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 7062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7063 _flag_k = FK_CMP; 7064 if (CMP_L(_flag_a, _flag_b)) goto L_2B067ED9; /* 0x2B067ED2: jl 0x2b067ed9 */ 7065 L_2B067ED4: 7066 /* cmp eax, 0x15u */ /* 0x2B067ED4: cmp eax, 0x15 */ 7067 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x15u); 7068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7069 _flag_k = FK_CMP; 7070 if (CMP_LE(_flag_a, _flag_b)) goto L_2B067EED; /* 0x2B067ED7: jle 0x2b067eed */ 7071 L_2B067ED9: 7072 /* cmp eax, 0x64u */ /* 0x2B067ED9: cmp eax, 0x64 */ 7073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x64u); 7074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7075 _flag_k = FK_CMP; 7076 if (CMP_L(_flag_a, _flag_b)) goto L_2B0680E1; /* 0x2B067EDC: jl 0x2b0680e1 */ 7077 L_2B067EE2: 7078 /* cmp eax, 0xA8u */ /* 0x2B067EE2: cmp eax, 0xa8 */ 7079 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA8u); 7080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7081 _flag_k = FK_CMP; 7082 if (CMP_G(_flag_a, _flag_b)) goto L_2B0680E1; /* 0x2B067EE7: jg 0x2b0680e1 */ 7083 L_2B067EED: 7084 /* cmp eax, 0x8Cu */ /* 0x2B067EED: cmp eax, 0x8c */ 7085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Cu); 7086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7087 _flag_k = FK_CMP; 7088 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0680E8; /* 0x2B067EF2: je 0x2b0680e8 */ 7089 L_2B067EF8: 7090 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B067EF8: mov cl, byte ptr [ebp + 0xb] */ 7091 PUSH32(esp, ebx); /* 0x2B067EFB: push ebx */ 7092 PUSH32(esp, edi); /* 0x2B067EFC: push edi */ 7093 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x2B067EFD: mov byte ptr [ebp - 0x2c], cl */ 7094 PUSH32(esp, 0); /* 0x2B067F00: push 0 */ 7095 ecx = ebp + (-0x2C); /* 0x2B067F02: lea ecx, [ebp - 0x2c] */ 7096 MEM32(ebp + (-0x1C)) = 0; /* 0x2B067F05: mov dword ptr [ebp - 0x1c], 0 */ 7097 MEM32(ebp + (-0x18)) = eax; /* 0x2B067F0C: mov dword ptr [ebp - 0x18], eax */ 7098 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B067F0F: call dword ptr [0x2b0b514c] */ 7099 RECOMP_FLAGS_IN(); 7100 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7101 ecx = ecx | 0xFFFFFFFFu; /* 0x2B067F15: or ecx, 0xffffffff */ 7102 _cf = 0; 7103 _flag_k = FK_TEST; 7104 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7105 eax = 0; /* 0x2B067F18: xor eax, eax */ 7106 _cf = 0; 7107 _flag_k = FK_TEST; 7108 edi = 0x2B0EB1D4u; /* 0x2B067F1A: mov edi, 0x2b0eb1d4 */ 7109 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B067F1F: repne scasb al, byte ptr es:[edi] */ 7110 ecx = ~ecx; /* 0x2B067F21: not ecx */ 7111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7112 ecx = ecx - 1; /* 0x2B067F23: dec ecx */ 7113 _flag_k = FK_DEC; 7114 ebx = ecx; /* 0x2B067F24: mov ebx, ecx */ 7115 PUSH32(esp, 1); /* 0x2B067F26: push 1 */ 7116 PUSH32(esp, ebx); /* 0x2B067F28: push ebx */ 7117 ecx = ebp + (-0x2C); /* 0x2B067F29: lea ecx, [ebp - 0x2c] */ 7118 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B067F2C: call dword ptr [0x2b0b5154] */ 7119 RECOMP_FLAGS_IN(); 7120 /* test LO8(eax), LO8(eax) */ /* 0x2B067F32: test al, al */ 7121 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7122 _cf = 0; 7123 _flag_k = FK_NARROW(FK_TEST, 24); 7124 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067F5B; /* 0x2B067F34: je 0x2b067f5b */ 7125 L_2B067F36: 7126 edi = MEM32(ebp + (-0x28)); /* 0x2B067F36: mov edi, dword ptr [ebp - 0x28] */ 7127 ecx = ebx; /* 0x2B067F39: mov ecx, ebx */ 7128 edx = ecx; /* 0x2B067F3B: mov edx, ecx */ 7129 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B067F3D: shr ecx, 2 */ 7130 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7131 ecx = ecx >> 2u; /* 0x2B067F3D: shr ecx, 2 */ 7132 esi = 0x2B0EB1D4u; /* 0x2B067F40: mov esi, 0x2b0eb1d4 */ 7133 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B067F45: 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; } 7134 ecx = edx; /* 0x2B067F47: mov ecx, edx */ 7135 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7136 ecx = ecx & 3; /* 0x2B067F49: and ecx, 3 */ 7137 _cf = 0; 7138 _flag_k = FK_TEST; 7139 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B067F4C: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 7140 PUSH32(esp, ebx); /* 0x2B067F4E: push ebx */ 7141 ecx = ebp + (-0x2C); /* 0x2B067F4F: lea ecx, [ebp - 0x2c] */ 7142 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B067F52: call dword ptr [0x2b0b5150] */ 7143 RECOMP_FLAGS_IN(); 7144 esi = MEM32(ebp + 0x8); /* 0x2B067F58: mov esi, dword ptr [ebp + 8] */ 7145 L_2B067F5B: 7146 eax = MEM32(esi + 0x1C); /* 0x2B067F5B: mov eax, dword ptr [esi + 0x1c] */ 7147 esi = MEM32(0x2B0B513C); /* 0x2B067F5E: mov esi, dword ptr [0x2b0b513c] */ 7148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 7149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7150 eax = eax + 0x14u; /* 0x2B067F64: add eax, 0x14 */ 7151 _flag_k = FK_ADD; 7152 eax = MEM32(eax + 0x4); /* 0x2B067F67: mov eax, dword ptr [eax + 4] */ 7153 /* test eax, eax */ /* 0x2B067F6A: test eax, eax */ 7154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7155 _cf = 0; 7156 _flag_k = FK_TEST; 7157 MEM32(ebp + (-0x4)) = 0; /* 0x2B067F6C: mov dword ptr [ebp - 4], 0 */ 7158 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067F77; /* 0x2B067F73: je 0x2b067f77 */ 7159 L_2B067F75: 7160 esi = eax; /* 0x2B067F75: mov esi, eax */ 7161 L_2B067F77: 7162 edx = MEM32(ebp + (-0x24)); /* 0x2B067F77: mov edx, dword ptr [ebp - 0x24] */ 7163 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7164 ecx = ecx | 0xFFFFFFFFu; /* 0x2B067F7A: or ecx, 0xffffffff */ 7165 _cf = 0; 7166 _flag_k = FK_TEST; 7167 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7168 eax = 0; /* 0x2B067F7D: xor eax, eax */ 7169 _cf = 0; 7170 _flag_k = FK_TEST; 7171 edi = esi; /* 0x2B067F7F: mov edi, esi */ 7172 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B067F81: repne scasb al, byte ptr es:[edi] */ 7173 eax = MEM32(0x2B0B515C); /* 0x2B067F83: mov eax, dword ptr [0x2b0b515c] */ 7174 ecx = ~ecx; /* 0x2B067F88: not ecx */ 7175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7176 ecx = ecx - 1; /* 0x2B067F8A: dec ecx */ 7177 _flag_k = FK_DEC; 7178 edi = ecx; /* 0x2B067F8B: mov edi, ecx */ 7179 ecx = MEM32(eax); /* 0x2B067F8D: mov ecx, dword ptr [eax] */ 7180 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7182 ecx = ecx - edx; /* 0x2B067F8F: sub ecx, edx */ 7183 _flag_k = FK_CMP; 7184 /* cmp ecx, edi */ /* 0x2B067F91: cmp ecx, edi */ 7185 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7187 _flag_k = FK_CMP; 7188 if (CMP_A(_flag_a, _flag_b)) goto L_2B067F9B; /* 0x2B067F93: ja 0x2b067f9b */ 7189 L_2B067F95: 7190 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B067F95: call dword ptr [0x2b0b51a8] */ 7191 RECOMP_FLAGS_IN(); 7192 L_2B067F9B: 7193 /* test edi, edi */ /* 0x2B067F9B: test edi, edi */ 7194 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7195 _cf = 0; 7196 _flag_k = FK_TEST; 7197 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067FD8; /* 0x2B067F9D: jbe 0x2b067fd8 */ 7198 L_2B067F9F: 7199 edx = MEM32(ebp + (-0x24)); /* 0x2B067F9F: mov edx, dword ptr [ebp - 0x24] */ 7200 ebx = edx + edi; /* 0x2B067FA2: lea ebx, [edx + edi] */ 7201 PUSH32(esp, 0); /* 0x2B067FA5: push 0 */ 7202 PUSH32(esp, ebx); /* 0x2B067FA7: push ebx */ 7203 ecx = ebp + (-0x2C); /* 0x2B067FA8: lea ecx, [ebp - 0x2c] */ 7204 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B067FAB: call dword ptr [0x2b0b5154] */ 7205 RECOMP_FLAGS_IN(); 7206 /* test LO8(eax), LO8(eax) */ /* 0x2B067FB1: test al, al */ 7207 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7208 _cf = 0; 7209 _flag_k = FK_NARROW(FK_TEST, 24); 7210 if (TEST_Z(_flag_a, _flag_b)) goto L_2B067FD8; /* 0x2B067FB3: je 0x2b067fd8 */ 7211 L_2B067FB5: 7212 eax = MEM32(ebp + (-0x28)); /* 0x2B067FB5: mov eax, dword ptr [ebp - 0x28] */ 7213 edx = MEM32(ebp + (-0x24)); /* 0x2B067FB8: mov edx, dword ptr [ebp - 0x24] */ 7214 ecx = edi; /* 0x2B067FBB: mov ecx, edi */ 7215 edi = edx + eax; /* 0x2B067FBD: lea edi, [edx + eax] */ 7216 eax = ecx; /* 0x2B067FC0: mov eax, ecx */ 7217 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B067FC2: shr ecx, 2 */ 7218 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7219 ecx = ecx >> 2u; /* 0x2B067FC2: shr ecx, 2 */ 7220 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B067FC5: 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; } 7221 ecx = eax; /* 0x2B067FC7: mov ecx, eax */ 7222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7223 ecx = ecx & 3; /* 0x2B067FC9: and ecx, 3 */ 7224 _cf = 0; 7225 _flag_k = FK_TEST; 7226 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B067FCC: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 7227 PUSH32(esp, ebx); /* 0x2B067FCE: push ebx */ 7228 ecx = ebp + (-0x2C); /* 0x2B067FCF: lea ecx, [ebp - 0x2c] */ 7229 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B067FD2: call dword ptr [0x2b0b5150] */ 7230 RECOMP_FLAGS_IN(); 7231 L_2B067FD8: 7232 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7233 ecx = ecx | 0xFFFFFFFFu; /* 0x2B067FD8: or ecx, 0xffffffff */ 7234 _cf = 0; 7235 _flag_k = FK_TEST; 7236 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7237 eax = 0; /* 0x2B067FDB: xor eax, eax */ 7238 _cf = 0; 7239 _flag_k = FK_TEST; 7240 edi = 0x2B0EB1D0u; /* 0x2B067FDD: mov edi, 0x2b0eb1d0 */ 7241 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B067FE2: repne scasb al, byte ptr es:[edi] */ 7242 ecx = ~ecx; /* 0x2B067FE4: not ecx */ 7243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7244 ecx = ecx - 1; /* 0x2B067FE6: dec ecx */ 7245 _flag_k = FK_DEC; 7246 esi = ecx; /* 0x2B067FE7: mov esi, ecx */ 7247 ecx = MEM32(0x2B0B515C); /* 0x2B067FE9: mov ecx, dword ptr [0x2b0b515c] */ 7248 edx = MEM32(ecx); /* 0x2B067FEF: mov edx, dword ptr [ecx] */ 7249 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x24))); 7250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7251 edx = edx - MEM32(ebp + (-0x24)); /* 0x2B067FF1: sub edx, dword ptr [ebp - 0x24] */ 7252 _flag_k = FK_CMP; 7253 /* cmp edx, esi */ /* 0x2B067FF4: cmp edx, esi */ 7254 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 7255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7256 _flag_k = FK_CMP; 7257 if (CMP_A(_flag_a, _flag_b)) goto L_2B067FFE; /* 0x2B067FF6: ja 0x2b067ffe */ 7258 L_2B067FF8: 7259 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B067FF8: call dword ptr [0x2b0b51a8] */ 7260 RECOMP_FLAGS_IN(); 7261 L_2B067FFE: 7262 /* test esi, esi */ /* 0x2B067FFE: test esi, esi */ 7263 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7264 _cf = 0; 7265 _flag_k = FK_TEST; 7266 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068040; /* 0x2B068000: jbe 0x2b068040 */ 7267 L_2B068002: 7268 eax = MEM32(ebp + (-0x24)); /* 0x2B068002: mov eax, dword ptr [ebp - 0x24] */ 7269 ebx = eax + esi; /* 0x2B068005: lea ebx, [eax + esi] */ 7270 PUSH32(esp, 0); /* 0x2B068008: push 0 */ 7271 PUSH32(esp, ebx); /* 0x2B06800A: push ebx */ 7272 ecx = ebp + (-0x2C); /* 0x2B06800B: lea ecx, [ebp - 0x2c] */ 7273 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B06800E: call dword ptr [0x2b0b5154] */ 7274 RECOMP_FLAGS_IN(); 7275 /* test LO8(eax), LO8(eax) */ /* 0x2B068014: test al, al */ 7276 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7277 _cf = 0; 7278 _flag_k = FK_NARROW(FK_TEST, 24); 7279 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068040; /* 0x2B068016: je 0x2b068040 */ 7280 L_2B068018: 7281 edx = MEM32(ebp + (-0x28)); /* 0x2B068018: mov edx, dword ptr [ebp - 0x28] */ 7282 eax = MEM32(ebp + (-0x24)); /* 0x2B06801B: mov eax, dword ptr [ebp - 0x24] */ 7283 ecx = esi; /* 0x2B06801E: mov ecx, esi */ 7284 edi = eax + edx; /* 0x2B068020: lea edi, [eax + edx] */ 7285 edx = ecx; /* 0x2B068023: mov edx, ecx */ 7286 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B068025: shr ecx, 2 */ 7287 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7288 ecx = ecx >> 2u; /* 0x2B068025: shr ecx, 2 */ 7289 esi = 0x2B0EB1D0u; /* 0x2B068028: mov esi, 0x2b0eb1d0 */ 7290 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B06802D: 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; } 7291 ecx = edx; /* 0x2B06802F: mov ecx, edx */ 7292 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7293 ecx = ecx & 3; /* 0x2B068031: and ecx, 3 */ 7294 _cf = 0; 7295 _flag_k = FK_TEST; 7296 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B068034: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 7297 PUSH32(esp, ebx); /* 0x2B068036: push ebx */ 7298 ecx = ebp + (-0x2C); /* 0x2B068037: lea ecx, [ebp - 0x2c] */ 7299 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B06803A: call dword ptr [0x2b0b5150] */ 7300 RECOMP_FLAGS_IN(); 7301 L_2B068040: 7302 eax = MEM32(ebp + (-0x28)); /* 0x2B068040: mov eax, dword ptr [ebp - 0x28] */ 7303 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7304 edi = 0; /* 0x2B068043: xor edi, edi */ 7305 _cf = 0; 7306 _flag_k = FK_TEST; 7307 /* cmp eax, edi */ /* 0x2B068045: cmp eax, edi */ 7308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7310 _flag_k = FK_CMP; 7311 if (CMP_NE(_flag_a, _flag_b)) goto L_2B06804E; /* 0x2B068047: jne 0x2b06804e */ 7312 L_2B068049: 7313 eax = MEM32(0x2B0B513C); /* 0x2B068049: mov eax, dword ptr [0x2b0b513c] */ 7314 L_2B06804E: 7315 ecx = MEM32(ebp + (-0x24)); /* 0x2B06804E: mov ecx, dword ptr [ebp - 0x24] */ 7316 esi = MEM32(0x2B0B53CC); /* 0x2B068051: mov esi, dword ptr [0x2b0b53cc] */ 7317 PUSH32(esp, ecx); /* 0x2B068057: push ecx */ 7318 PUSH32(esp, eax); /* 0x2B068058: push eax */ 7319 PUSH32(esp, 0xC3u); /* 0x2B068059: push 0xc3 */ 7320 PUSH32(esp, 0x1Du); /* 0x2B06805E: push 0x1d */ 7321 RECOMP_ICALL(esi); /* 0x2B068060: call esi */ 7322 RECOMP_FLAGS_IN(); 7323 ecx = eax; /* 0x2B068062: mov ecx, eax */ 7324 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B068064: call dword ptr [0x2b0b53c4] */ 7325 RECOMP_FLAGS_IN(); 7326 PUSH32(esp, edi); /* 0x2B06806A: push edi */ 7327 PUSH32(esp, 0x3Au); /* 0x2B06806B: push 0x3a */ 7328 RECOMP_ICALL(esi); /* 0x2B06806D: call esi */ 7329 RECOMP_FLAGS_IN(); 7330 ecx = eax; /* 0x2B06806F: mov ecx, eax */ 7331 RECOMP_ICALL(MEM32(0x2B0B5340)); /* 0x2B068071: call dword ptr [0x2b0b5340] */ 7332 RECOMP_FLAGS_IN(); 7333 edx = ebp + (-0x14); /* 0x2B068077: lea edx, [ebp - 0x14] */ 7334 PUSH32(esp, edx); /* 0x2B06807A: push edx */ 7335 eax = ebp + (-0x1C); /* 0x2B06807B: lea eax, [ebp - 0x1c] */ 7336 PUSH32(esp, eax); /* 0x2B06807E: push eax */ 7337 MEM32(ebp + (-0x14)) = edi; /* 0x2B06807F: mov dword ptr [ebp - 0x14], edi */ 7338 MEM32(ebp + (-0x10)) = edi; /* 0x2B068082: mov dword ptr [ebp - 0x10], edi */ 7339 RECOMP_ICALL(esi); /* 0x2B068085: call esi */ 7340 RECOMP_FLAGS_IN(); 7341 ecx = eax; /* 0x2B068087: mov ecx, eax */ 7342 RECOMP_ICALL(MEM32(0x2B0B5344)); /* 0x2B068089: call dword ptr [0x2b0b5344] */ 7343 RECOMP_FLAGS_IN(); 7344 PUSH32(esp, 0xE3u); /* 0x2B06808F: push 0xe3 */ 7345 PUSH32(esp, 0x12u); /* 0x2B068094: push 0x12 */ 7346 RECOMP_ICALL(esi); /* 0x2B068096: call esi */ 7347 RECOMP_FLAGS_IN(); 7348 ecx = eax; /* 0x2B068098: mov ecx, eax */ 7349 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B06809A: call dword ptr [0x2b0b53c8] */ 7350 RECOMP_FLAGS_IN(); 7351 ecx = MEM32(ebp + (-0x28)); /* 0x2B0680A0: mov ecx, dword ptr [ebp - 0x28] */ 7352 /* cmp ecx, edi */ /* 0x2B0680A3: cmp ecx, edi */ 7353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7355 _flag_k = FK_CMP; 7356 edi = POP32_VAL(esp); /* 0x2B0680A5: pop edi */ 7357 ebx = POP32_VAL(esp); /* 0x2B0680A6: pop ebx */ 7358 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B06810D; /* 0x2B0680A7: je 0x2b06810d */ 7359 L_2B0680A9: 7360 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B0680A9: mov al, byte ptr [ecx - 1] */ 7361 /* test LO8(eax), LO8(eax) */ /* 0x2B0680AC: test al, al */ 7362 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7363 _cf = 0; 7364 _flag_k = FK_NARROW(FK_TEST, 24); 7365 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0680C8; /* 0x2B0680AE: je 0x2b0680c8 */ 7366 L_2B0680B0: 7367 /* cmp LO8(eax), 0xFFu */ /* 0x2B0680B0: cmp al, 0xff */ 7368 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 7369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7370 _flag_k = FK_NARROW(FK_CMP, 24); 7371 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0680C8; /* 0x2B0680B2: je 0x2b0680c8 */ 7372 L_2B0680B4: 7373 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7374 SET_LO8(eax, LO8(eax) - 1); /* 0x2B0680B4: dec al */ 7375 _flag_k = FK_NARROW(FK_DEC, 24); 7376 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B0680B6: mov byte ptr [ecx - 1], al */ 7377 esi = POP32_VAL(esp); /* 0x2B0680B9: pop esi */ 7378 ecx = MEM32(ebp + (-0xC)); /* 0x2B0680BA: mov ecx, dword ptr [ebp - 0xc] */ 7379 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0680BD: mov dword ptr fs:[0], ecx */ 7380 esp = ebp; /* 0x2B0680C4: mov esp, ebp */ 7381 ebp = POP32_VAL(esp); /* 0x2B0680C6: pop ebp */ 7382 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0680C7: ret */ 7383 L_2B0680C8: 7384 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7385 ecx = ecx - 1; /* 0x2B0680C8: dec ecx */ 7386 _flag_k = FK_DEC; 7387 PUSH32(esp, ecx); /* 0x2B0680C9: push ecx */ 7388 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0680CA: call 0x2b0ab1ba */ /* not lifted */ 7389 RECOMP_FLAGS_IN(); 7390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7392 esp = esp + 4; /* 0x2B0680CF: add esp, 4 */ 7393 _flag_k = FK_ADD; 7394 esi = POP32_VAL(esp); /* 0x2B0680D2: pop esi */ 7395 ecx = MEM32(ebp + (-0xC)); /* 0x2B0680D3: mov ecx, dword ptr [ebp - 0xc] */ 7396 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0680D6: mov dword ptr fs:[0], ecx */ 7397 esp = ebp; /* 0x2B0680DD: mov esp, ebp */ 7398 ebp = POP32_VAL(esp); /* 0x2B0680DF: pop ebp */ 7399 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0680E0: ret */ 7400 L_2B0680E1: 7401 /* cmp eax, 0x8Cu */ /* 0x2B0680E1: cmp eax, 0x8c */ 7402 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Cu); 7403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7404 _flag_k = FK_CMP; 7405 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0680F5; /* 0x2B0680E6: jne 0x2b0680f5 */ 7406 L_2B0680E8: 7407 PUSH32(esp, 0); /* 0x2B0680E8: push 0 */ 7408 PUSH32(esp, 0); /* 0x2B0680EA: push 0 */ 7409 PUSH32(esp, 0); /* 0x2B0680EC: push 0 */ 7410 PUSH32(esp, 0x2B0EB1A4u); /* 0x2B0680EE: push 0x2b0eb1a4 */ 7411 goto L_2B068100; /* 0x2B0680F3: jmp 0x2b068100 */ 7412 L_2B0680F5: 7413 PUSH32(esp, 0); /* 0x2B0680F5: push 0 */ 7414 PUSH32(esp, 0); /* 0x2B0680F7: push 0 */ 7415 PUSH32(esp, 0); /* 0x2B0680F9: push 0 */ 7416 PUSH32(esp, 0x2B0EB170u); /* 0x2B0680FB: push 0x2b0eb170 */ 7417 L_2B068100: 7418 PUSH32(esp, 0x2B0EB15Cu); /* 0x2B068100: push 0x2b0eb15c */ 7419 RECOMP_ICALL(0x2B089BF0u); /* 0x2B068105: call 0x2b089bf0 */ /* not lifted */ 7420 RECOMP_FLAGS_IN(); 7421 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7423 esp = esp + 0x14u; /* 0x2B06810A: add esp, 0x14 */ 7424 _flag_k = FK_ADD; 7425 L_2B06810D: 7426 ecx = MEM32(ebp + (-0xC)); /* 0x2B06810D: mov ecx, dword ptr [ebp - 0xc] */ 7427 esi = POP32_VAL(esp); /* 0x2B068110: pop esi */ 7428 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068111: mov dword ptr fs:[0], ecx */ 7429 esp = ebp; /* 0x2B068118: mov esp, ebp */ 7430 ebp = POP32_VAL(esp); /* 0x2B06811A: pop ebp */ 7431 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06811B: ret */ 7432 RECOMP_REGS_OUT(); 7433 } 7434 7435 void sub_2B068120(void) { 7436 int _fpu_cmp = 0; 7437 uint32_t _cf = 0; 7438 int _df = 1; 7439 uint32_t _flag_k = FK_NONE; 7440 uint32_t _flag_a = 0, _flag_b = 0; 7441 uint32_t _itail_tgt = 0; 7442 RECOMP_REGS_LOCALS 7443 RECOMP_ENTER(0x2B068120u); 7444 7445 L_2B068120: 7446 PUSH32(esp, ebp); /* 0x2B068120: push ebp */ 7447 ebp = esp; /* 0x2B068121: mov ebp, esp */ 7448 ecx = MEM32(ebp + 0x8); /* 0x2B068123: mov ecx, dword ptr [ebp + 8] */ 7449 RECOMP_ICALL(0x2B068150u); /* 0x2B068126: call 0x2b068150 */ /* not lifted */ 7450 RECOMP_FLAGS_IN(); 7451 PUSH32(esp, 0xE3u); /* 0x2B06812B: push 0xe3 */ 7452 PUSH32(esp, 0x12u); /* 0x2B068130: push 0x12 */ 7453 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B068132: call dword ptr [0x2b0b53cc] */ 7454 RECOMP_FLAGS_IN(); 7455 ecx = eax; /* 0x2B068138: mov ecx, eax */ 7456 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B06813A: call dword ptr [0x2b0b53c8] */ 7457 RECOMP_FLAGS_IN(); 7458 ebp = POP32_VAL(esp); /* 0x2B068140: pop ebp */ 7459 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B068141: ret */ 7460 RECOMP_REGS_OUT(); 7461 } 7462 7463 void sub_2B068150(void) { 7464 int _fpu_cmp = 0; 7465 uint32_t _cf = 0; 7466 int _df = 1; 7467 uint32_t _flag_k = FK_NONE; 7468 uint32_t _flag_a = 0, _flag_b = 0; 7469 uint32_t _itail_tgt = 0; 7470 RECOMP_REGS_LOCALS 7471 RECOMP_ENTER(0x2B068150u); 7472 7473 L_2B068150: 7474 PUSH32(esp, ebp); /* 0x2B068150: push ebp */ 7475 ebp = esp; /* 0x2B068151: mov ebp, esp */ 7476 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 7477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7478 esp = esp - 0x38u; /* 0x2B068153: sub esp, 0x38 */ 7479 _flag_k = FK_CMP; 7480 PUSH32(esp, ebx); /* 0x2B068156: push ebx */ 7481 PUSH32(esp, esi); /* 0x2B068157: push esi */ 7482 esi = ecx; /* 0x2B068158: mov esi, ecx */ 7483 eax = MEM32(esi); /* 0x2B06815A: mov eax, dword ptr [esi] */ 7484 PUSH32(esp, edi); /* 0x2B06815C: push edi */ 7485 edi = MEM32(0x2B0B5D6C); /* 0x2B06815D: mov edi, dword ptr [0x2b0b5d6c] */ 7486 PUSH32(esp, eax); /* 0x2B068163: push eax */ 7487 RECOMP_ICALL(edi); /* 0x2B068164: call edi */ 7488 RECOMP_FLAGS_IN(); 7489 ecx = eax; /* 0x2B068166: mov ecx, eax */ 7490 RECOMP_ICALL(MEM32(0x2B0B5DA4)); /* 0x2B068168: call dword ptr [0x2b0b5da4] */ 7491 RECOMP_FLAGS_IN(); 7492 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2B06816E: fstp dword ptr [ebp - 4] */ 7493 ecx = MEM32(esi); /* 0x2B068171: mov ecx, dword ptr [esi] */ 7494 PUSH32(esp, ecx); /* 0x2B068173: push ecx */ 7495 RECOMP_ICALL(edi); /* 0x2B068174: call edi */ 7496 RECOMP_FLAGS_IN(); 7497 ecx = eax; /* 0x2B068176: mov ecx, eax */ 7498 RECOMP_ICALL(MEM32(0x2B0B5DA8)); /* 0x2B068178: call dword ptr [0x2b0b5da8] */ 7499 RECOMP_FLAGS_IN(); 7500 PUSH32(esp, 2); /* 0x2B06817E: push 2 */ 7501 PUSH32(esp, 0x35u); /* 0x2B068180: push 0x35 */ 7502 MEM32(ebp + (-0x8)) = eax; /* 0x2B068182: mov dword ptr [ebp - 8], eax */ 7503 RECOMP_ICALL(edi); /* 0x2B068185: call edi */ 7504 RECOMP_FLAGS_IN(); 7505 ecx = eax; /* 0x2B068187: mov ecx, eax */ 7506 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B068189: call dword ptr [0x2b0b5d70] */ 7507 RECOMP_FLAGS_IN(); 7508 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x2B06818F: fld dword ptr [ebp - 4] */ 7509 ebx = eax; /* 0x2B068192: mov ebx, eax */ 7510 RECOMP_ICALL(0x2B0AB220u); /* 0x2B068194: call 0x2b0ab220 */ /* not lifted */ 7511 RECOMP_FLAGS_IN(); 7512 /* cmp eax, ebx */ /* 0x2B068199: cmp eax, ebx */ 7513 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7515 _flag_k = FK_CMP; 7516 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0681D8; /* 0x2B06819B: jle 0x2b0681d8 */ 7517 L_2B06819D: 7518 ecx = 0xBu; /* 0x2B06819D: mov ecx, 0xb */ 7519 esi = 0x2B0EB214u; /* 0x2B0681A2: mov esi, 0x2b0eb214 */ 7520 edi = ebp + (-0x38); /* 0x2B0681A7: lea edi, [ebp - 0x38] */ 7521 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0681AA: 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; } 7522 MEM16(edi) = MEM16(esi); esi += _df * 2; edi += _df * 2; /* 0x2B0681AC: movsw word ptr es:[edi], word ptr [esi] */ 7523 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7524 ecx = ecx | 0xFFFFFFFFu; /* 0x2B0681AE: or ecx, 0xffffffff */ 7525 _cf = 0; 7526 _flag_k = FK_TEST; 7527 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7528 eax = 0; /* 0x2B0681B1: xor eax, eax */ 7529 _cf = 0; 7530 _flag_k = FK_TEST; 7531 edi = ebp + (-0x38); /* 0x2B0681B3: lea edi, [ebp - 0x38] */ 7532 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B0681B6: repne scasb al, byte ptr es:[edi] */ 7533 ecx = ~ecx; /* 0x2B0681B8: not ecx */ 7534 PUSH32(esp, ecx); /* 0x2B0681BA: push ecx */ 7535 edx = ebp + (-0x38); /* 0x2B0681BB: lea edx, [ebp - 0x38] */ 7536 PUSH32(esp, edx); /* 0x2B0681BE: push edx */ 7537 PUSH32(esp, 0x3Fu); /* 0x2B0681BF: push 0x3f */ 7538 PUSH32(esp, 0x12u); /* 0x2B0681C1: push 0x12 */ 7539 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0681C3: call dword ptr [0x2b0b53cc] */ 7540 RECOMP_FLAGS_IN(); 7541 ecx = eax; /* 0x2B0681C9: mov ecx, eax */ 7542 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B0681CB: call dword ptr [0x2b0b53c4] */ 7543 RECOMP_FLAGS_IN(); 7544 edi = POP32_VAL(esp); /* 0x2B0681D1: pop edi */ 7545 esi = POP32_VAL(esp); /* 0x2B0681D2: pop esi */ 7546 ebx = POP32_VAL(esp); /* 0x2B0681D3: pop ebx */ 7547 esp = ebp; /* 0x2B0681D4: mov esp, ebp */ 7548 ebp = POP32_VAL(esp); /* 0x2B0681D6: pop ebp */ 7549 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0681D7: ret */ 7550 L_2B0681D8: 7551 eax = MEM32(esi); /* 0x2B0681D8: mov eax, dword ptr [esi] */ 7552 PUSH32(esp, 0); /* 0x2B0681DA: push 0 */ 7553 PUSH32(esp, eax); /* 0x2B0681DC: push eax */ 7554 RECOMP_ICALL(edi); /* 0x2B0681DD: call edi */ 7555 RECOMP_FLAGS_IN(); 7556 ecx = eax; /* 0x2B0681DF: mov ecx, eax */ 7557 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B0681E1: call dword ptr [0x2b0b5d70] */ 7558 RECOMP_FLAGS_IN(); 7559 ebx = eax; /* 0x2B0681E7: mov ebx, eax */ 7560 /* cmp ebx, MEM32(ebp + (-0x8)) */ /* 0x2B0681E9: cmp ebx, dword ptr [ebp - 8] */ 7561 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x8))); 7562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7563 _flag_k = FK_CMP; 7564 if (CMP_L(_flag_a, _flag_b)) goto L_2B068202; /* 0x2B0681EC: jl 0x2b068202 */ 7565 L_2B0681EE: 7566 ecx = MEM32(esi); /* 0x2B0681EE: mov ecx, dword ptr [esi] */ 7567 PUSH32(esp, ecx); /* 0x2B0681F0: push ecx */ 7568 RECOMP_ICALL(edi); /* 0x2B0681F1: call edi */ 7569 RECOMP_FLAGS_IN(); 7570 ecx = eax; /* 0x2B0681F3: mov ecx, eax */ 7571 RECOMP_ICALL(MEM32(0x2B0B5DAC)); /* 0x2B0681F5: call dword ptr [0x2b0b5dac] */ 7572 RECOMP_FLAGS_IN(); 7573 edi = POP32_VAL(esp); /* 0x2B0681FB: pop edi */ 7574 esi = POP32_VAL(esp); /* 0x2B0681FC: pop esi */ 7575 ebx = POP32_VAL(esp); /* 0x2B0681FD: pop ebx */ 7576 esp = ebp; /* 0x2B0681FE: mov esp, ebp */ 7577 ebp = POP32_VAL(esp); /* 0x2B068200: pop ebp */ 7578 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B068201: ret */ 7579 L_2B068202: 7580 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(1); 7581 MEM32(esi + 0x4) = MEM32(esi + 0x4) + 1; /* 0x2B068202: inc dword ptr [esi + 4] */ 7582 _flag_k = FK_INC; 7583 edx = MEM32(ebp + (-0x4)); /* 0x2B068205: mov edx, dword ptr [ebp - 4] */ 7584 PUSH32(esp, edx); /* 0x2B068208: push edx */ 7585 ecx = esi; /* 0x2B068209: mov ecx, esi */ 7586 RECOMP_ICALL(0x2B068390u); /* 0x2B06820B: call 0x2b068390 */ /* not lifted */ 7587 RECOMP_FLAGS_IN(); 7588 eax = MEM32(esi); /* 0x2B068210: mov eax, dword ptr [esi] */ 7589 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 7590 ebx = ebx + 1; /* 0x2B068212: inc ebx */ 7591 _flag_k = FK_INC; 7592 PUSH32(esp, ebx); /* 0x2B068213: push ebx */ 7593 PUSH32(esp, eax); /* 0x2B068214: push eax */ 7594 RECOMP_ICALL(edi); /* 0x2B068215: call edi */ 7595 RECOMP_FLAGS_IN(); 7596 ecx = eax; /* 0x2B068217: mov ecx, eax */ 7597 RECOMP_ICALL(MEM32(0x2B0B5DB0)); /* 0x2B068219: call dword ptr [0x2b0b5db0] */ 7598 RECOMP_FLAGS_IN(); 7599 ecx = esi; /* 0x2B06821F: mov ecx, esi */ 7600 RECOMP_ICALL(0x2B0685C0u); /* 0x2B068221: call 0x2b0685c0 */ /* not lifted */ 7601 RECOMP_FLAGS_IN(); 7602 SET_LO8(ecx, MEM8(0x2B0EEE38)); /* 0x2B068226: mov cl, byte ptr [0x2b0eee38] */ 7603 SET_LO8(eax, 1); /* 0x2B06822C: mov al, 1 */ 7604 /* test LO8(eax), LO8(ecx) */ /* 0x2B06822E: test al, cl */ 7605 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7606 _cf = 0; 7607 _flag_k = FK_NARROW(FK_TEST, 24); 7608 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B06824F; /* 0x2B068230: jne 0x2b06824f */ 7609 L_2B068232: 7610 SET_LO8(ebx, LO8(ecx)); /* 0x2B068232: mov bl, cl */ 7611 _flag_a = (uint32_t)((LO8(ebx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ebx) | LO8(eax))) << 24; 7612 SET_LO8(ebx, LO8(ebx) | LO8(eax)); /* 0x2B068234: or bl, al */ 7613 _cf = 0; 7614 _flag_k = FK_NARROW(FK_TEST, 24); 7615 PUSH32(esp, 0x2B0EB1FCu); /* 0x2B068236: push 0x2b0eb1fc */ 7616 MEM8(0x2B0EEE38) = (uint8_t)(LO8(ebx)); /* 0x2B06823B: mov byte ptr [0x2b0eee38], bl */ 7617 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B068241: call dword ptr [0x2b0b60bc] */ 7618 RECOMP_FLAGS_IN(); 7619 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7621 esp = esp + 4; /* 0x2B068247: add esp, 4 */ 7622 _flag_k = FK_ADD; 7623 MEM32(0x2B0EEE34) = eax; /* 0x2B06824A: mov dword ptr [0x2b0eee34], eax */ 7624 L_2B06824F: 7625 ecx = MEM32(0x2B0EEE34); /* 0x2B06824F: mov ecx, dword ptr [0x2b0eee34] */ 7626 PUSH32(esp, ecx); /* 0x2B068255: push ecx */ 7627 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B068256: call dword ptr [0x2b0b60b8] */ 7628 RECOMP_FLAGS_IN(); 7629 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7631 esp = esp + 4; /* 0x2B06825C: add esp, 4 */ 7632 _flag_k = FK_ADD; 7633 edi = POP32_VAL(esp); /* 0x2B06825F: pop edi */ 7634 esi = POP32_VAL(esp); /* 0x2B068260: pop esi */ 7635 ebx = POP32_VAL(esp); /* 0x2B068261: pop ebx */ 7636 esp = ebp; /* 0x2B068262: mov esp, ebp */ 7637 ebp = POP32_VAL(esp); /* 0x2B068264: pop ebp */ 7638 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B068265: ret */ 7639 RECOMP_REGS_OUT(); 7640 } 7641 7642 void sub_2B068270(void) { 7643 int _fpu_cmp = 0; 7644 uint32_t _cf = 0; 7645 int _df = 1; 7646 uint32_t _flag_k = FK_NONE; 7647 uint32_t _flag_a = 0, _flag_b = 0; 7648 uint32_t _itail_tgt = 0; 7649 RECOMP_REGS_LOCALS 7650 RECOMP_ENTER(0x2B068270u); 7651 7652 L_2B068270: 7653 PUSH32(esp, ebp); /* 0x2B068270: push ebp */ 7654 ebp = esp; /* 0x2B068271: mov ebp, esp */ 7655 ecx = MEM32(ebp + 0x8); /* 0x2B068273: mov ecx, dword ptr [ebp + 8] */ 7656 RECOMP_ICALL(0x2B0682A0u); /* 0x2B068276: call 0x2b0682a0 */ /* not lifted */ 7657 RECOMP_FLAGS_IN(); 7658 PUSH32(esp, 0xE3u); /* 0x2B06827B: push 0xe3 */ 7659 PUSH32(esp, 0x12u); /* 0x2B068280: push 0x12 */ 7660 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B068282: call dword ptr [0x2b0b53cc] */ 7661 RECOMP_FLAGS_IN(); 7662 ecx = eax; /* 0x2B068288: mov ecx, eax */ 7663 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B06828A: call dword ptr [0x2b0b53c8] */ 7664 RECOMP_FLAGS_IN(); 7665 ebp = POP32_VAL(esp); /* 0x2B068290: pop ebp */ 7666 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B068291: ret */ 7667 RECOMP_REGS_OUT(); 7668 } 7669 7670 void sub_2B0682A0(void) { 7671 int _fpu_cmp = 0; 7672 uint32_t _cf = 0; 7673 int _df = 1; 7674 uint32_t _flag_k = FK_NONE; 7675 uint32_t _flag_a = 0, _flag_b = 0; 7676 uint32_t _itail_tgt = 0; 7677 RECOMP_REGS_LOCALS 7678 RECOMP_ENTER(0x2B0682A0u); 7679 7680 L_2B0682A0: 7681 PUSH32(esp, ebp); /* 0x2B0682A0: push ebp */ 7682 ebp = esp; /* 0x2B0682A1: mov ebp, esp */ 7683 PUSH32(esp, ecx); /* 0x2B0682A3: push ecx */ 7684 PUSH32(esp, esi); /* 0x2B0682A4: push esi */ 7685 esi = ecx; /* 0x2B0682A5: mov esi, ecx */ 7686 eax = MEM32(esi + 0x4); /* 0x2B0682A7: mov eax, dword ptr [esi + 4] */ 7687 /* test eax, eax */ /* 0x2B0682AA: test eax, eax */ 7688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7689 _cf = 0; 7690 _flag_k = FK_TEST; 7691 if (TEST_LE(_flag_a, _flag_b)) goto L_2B0682FC; /* 0x2B0682AC: jle 0x2b0682fc */ 7692 L_2B0682AE: 7693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7694 eax = eax - 1; /* 0x2B0682AE: dec eax */ 7695 _flag_k = FK_DEC; 7696 PUSH32(esp, edi); /* 0x2B0682AF: push edi */ 7697 edi = MEM32(0x2B0B5D6C); /* 0x2B0682B0: mov edi, dword ptr [0x2b0b5d6c] */ 7698 MEM32(esi + 0x4) = eax; /* 0x2B0682B6: mov dword ptr [esi + 4], eax */ 7699 eax = MEM32(esi); /* 0x2B0682B9: mov eax, dword ptr [esi] */ 7700 PUSH32(esp, 0); /* 0x2B0682BB: push 0 */ 7701 PUSH32(esp, eax); /* 0x2B0682BD: push eax */ 7702 RECOMP_ICALL(edi); /* 0x2B0682BE: call edi */ 7703 RECOMP_FLAGS_IN(); 7704 ecx = eax; /* 0x2B0682C0: mov ecx, eax */ 7705 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B0682C2: call dword ptr [0x2b0b5d70] */ 7706 RECOMP_FLAGS_IN(); 7707 ecx = MEM32(esi); /* 0x2B0682C8: mov ecx, dword ptr [esi] */ 7708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7709 eax = eax - 1; /* 0x2B0682CA: dec eax */ 7710 _flag_k = FK_DEC; 7711 PUSH32(esp, eax); /* 0x2B0682CB: push eax */ 7712 PUSH32(esp, ecx); /* 0x2B0682CC: push ecx */ 7713 RECOMP_ICALL(edi); /* 0x2B0682CD: call edi */ 7714 RECOMP_FLAGS_IN(); 7715 ecx = eax; /* 0x2B0682CF: mov ecx, eax */ 7716 RECOMP_ICALL(MEM32(0x2B0B5DB0)); /* 0x2B0682D1: call dword ptr [0x2b0b5db0] */ 7717 RECOMP_FLAGS_IN(); 7718 edx = MEM32(esi); /* 0x2B0682D7: mov edx, dword ptr [esi] */ 7719 PUSH32(esp, edx); /* 0x2B0682D9: push edx */ 7720 RECOMP_ICALL(edi); /* 0x2B0682DA: call edi */ 7721 RECOMP_FLAGS_IN(); 7722 ecx = eax; /* 0x2B0682DC: mov ecx, eax */ 7723 RECOMP_ICALL(MEM32(0x2B0B5DA4)); /* 0x2B0682DE: call dword ptr [0x2b0b5da4] */ 7724 RECOMP_FLAGS_IN(); 7725 _st[0] = -_st[0]; /* 0x2B0682E4: fchs */ 7726 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2B0682E6: fstp dword ptr [ebp - 4] */ 7727 ecx = esi; /* 0x2B0682E9: mov ecx, esi */ 7728 eax = MEM32(ebp + (-0x4)); /* 0x2B0682EB: mov eax, dword ptr [ebp - 4] */ 7729 PUSH32(esp, eax); /* 0x2B0682EE: push eax */ 7730 RECOMP_ICALL(0x2B068390u); /* 0x2B0682EF: call 0x2b068390 */ /* not lifted */ 7731 RECOMP_FLAGS_IN(); 7732 ecx = esi; /* 0x2B0682F4: mov ecx, esi */ 7733 RECOMP_ICALL(0x2B0685C0u); /* 0x2B0682F6: call 0x2b0685c0 */ /* not lifted */ 7734 RECOMP_FLAGS_IN(); 7735 edi = POP32_VAL(esp); /* 0x2B0682FB: pop edi */ 7736 L_2B0682FC: 7737 SET_LO8(ecx, MEM8(0x2B0EEE30)); /* 0x2B0682FC: mov cl, byte ptr [0x2b0eee30] */ 7738 SET_LO8(eax, 1); /* 0x2B068302: mov al, 1 */ 7739 /* test LO8(eax), LO8(ecx) */ /* 0x2B068304: test al, cl */ 7740 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7741 _cf = 0; 7742 _flag_k = FK_NARROW(FK_TEST, 24); 7743 esi = POP32_VAL(esp); /* 0x2B068306: pop esi */ 7744 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B068324; /* 0x2B068307: jne 0x2b068324 */ 7745 L_2B068309: 7746 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 7747 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B068309: or cl, al */ 7748 _cf = 0; 7749 _flag_k = FK_NARROW(FK_TEST, 24); 7750 PUSH32(esp, 0x2B0EB244u); /* 0x2B06830B: push 0x2b0eb244 */ 7751 MEM8(0x2B0EEE30) = (uint8_t)(LO8(ecx)); /* 0x2B068310: mov byte ptr [0x2b0eee30], cl */ 7752 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B068316: call dword ptr [0x2b0b60bc] */ 7753 RECOMP_FLAGS_IN(); 7754 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7756 esp = esp + 4; /* 0x2B06831C: add esp, 4 */ 7757 _flag_k = FK_ADD; 7758 MEM32(0x2B0EEE2C) = eax; /* 0x2B06831F: mov dword ptr [0x2b0eee2c], eax */ 7759 L_2B068324: 7760 ecx = MEM32(0x2B0EEE2C); /* 0x2B068324: mov ecx, dword ptr [0x2b0eee2c] */ 7761 PUSH32(esp, ecx); /* 0x2B06832A: push ecx */ 7762 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B06832B: call dword ptr [0x2b0b60b8] */ 7763 RECOMP_FLAGS_IN(); 7764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7766 esp = esp + 4; /* 0x2B068331: add esp, 4 */ 7767 _flag_k = FK_ADD; 7768 esp = ebp; /* 0x2B068334: mov esp, ebp */ 7769 ebp = POP32_VAL(esp); /* 0x2B068336: pop ebp */ 7770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B068337: ret */ 7771 RECOMP_REGS_OUT(); 7772 } 7773 7774 void sub_2B068340(void) { 7775 int _fpu_cmp = 0; 7776 uint32_t _cf = 0; 7777 int _df = 1; 7778 uint32_t _flag_k = FK_NONE; 7779 uint32_t _flag_a = 0, _flag_b = 0; 7780 uint32_t _itail_tgt = 0; 7781 RECOMP_REGS_LOCALS 7782 RECOMP_ENTER(0x2B068340u); 7783 7784 L_2B068340: 7785 PUSH32(esp, esi); /* 0x2B068340: push esi */ 7786 esi = ecx; /* 0x2B068341: mov esi, ecx */ 7787 ecx = MEM32(esi + 0x3C); /* 0x2B068343: mov ecx, dword ptr [esi + 0x3c] */ 7788 PUSH32(esp, edi); /* 0x2B068346: push edi */ 7789 edi = MEM32(0x2B0B5960); /* 0x2B068347: mov edi, dword ptr [0x2b0b5960] */ 7790 RECOMP_ICALL(edi); /* 0x2B06834D: call edi */ 7791 RECOMP_FLAGS_IN(); 7792 ecx = MEM32(esi + 0x40); /* 0x2B06834F: mov ecx, dword ptr [esi + 0x40] */ 7793 RECOMP_ICALL(edi); /* 0x2B068352: call edi */ 7794 RECOMP_FLAGS_IN(); 7795 ecx = MEM32(esi + 0x14); /* 0x2B068354: mov ecx, dword ptr [esi + 0x14] */ 7796 SET_LO8(eax, 1); /* 0x2B068357: mov al, 1 */ 7797 MEM8(ecx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B068359: mov byte ptr [ecx + 9], al */ 7798 edx = MEM32(esi + 0x34); /* 0x2B06835C: mov edx, dword ptr [esi + 0x34] */ 7799 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B06835F: mov byte ptr [edx + 9], al */ 7800 ecx = MEM32(esi + 0x18); /* 0x2B068362: mov ecx, dword ptr [esi + 0x18] */ 7801 MEM8(ecx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B068365: mov byte ptr [ecx + 9], al */ 7802 edx = MEM32(esi + 0x1C); /* 0x2B068368: mov edx, dword ptr [esi + 0x1c] */ 7803 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B06836B: mov byte ptr [edx + 9], al */ 7804 ecx = MEM32(esi + 0x20); /* 0x2B06836E: mov ecx, dword ptr [esi + 0x20] */ 7805 MEM8(ecx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B068371: mov byte ptr [ecx + 9], al */ 7806 edx = MEM32(esi + 0x24); /* 0x2B068374: mov edx, dword ptr [esi + 0x24] */ 7807 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B068377: mov byte ptr [edx + 9], al */ 7808 ecx = MEM32(esi + 0x28); /* 0x2B06837A: mov ecx, dword ptr [esi + 0x28] */ 7809 MEM8(ecx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B06837D: mov byte ptr [ecx + 9], al */ 7810 edx = MEM32(esi + 0x30); /* 0x2B068380: mov edx, dword ptr [esi + 0x30] */ 7811 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B068383: mov byte ptr [edx + 9], al */ 7812 ecx = MEM32(esi + 0x2C); /* 0x2B068386: mov ecx, dword ptr [esi + 0x2c] */ 7813 edi = POP32_VAL(esp); /* 0x2B068389: pop edi */ 7814 MEM8(ecx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B06838A: mov byte ptr [ecx + 9], al */ 7815 esi = POP32_VAL(esp); /* 0x2B06838D: pop esi */ 7816 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06838E: ret */ 7817 RECOMP_REGS_OUT(); 7818 } 7819 7820 void sub_2B068390(void) { 7821 int _fpu_cmp = 0; 7822 uint32_t _cf = 0; 7823 int _df = 1; 7824 uint32_t _flag_k = FK_NONE; 7825 uint32_t _flag_a = 0, _flag_b = 0; 7826 uint32_t _itail_tgt = 0; 7827 RECOMP_REGS_LOCALS 7828 RECOMP_ENTER(0x2B068390u); 7829 7830 L_2B068390: 7831 PUSH32(esp, ebp); /* 0x2B068390: push ebp */ 7832 ebp = esp; /* 0x2B068391: mov ebp, esp */ 7833 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B068393: push -1 */ 7834 PUSH32(esp, 0x2B0B0DCEu); /* 0x2B068395: push 0x2b0b0dce */ 7835 eax = MEM32(FS_BASE + (0)); /* 0x2B06839A: mov eax, dword ptr fs:[0] */ 7836 PUSH32(esp, eax); /* 0x2B0683A0: push eax */ 7837 MEM32(FS_BASE + (0)) = esp; /* 0x2B0683A1: mov dword ptr fs:[0], esp */ 7838 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 7839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7840 esp = esp - 0x38u; /* 0x2B0683A8: sub esp, 0x38 */ 7841 _flag_k = FK_CMP; 7842 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B0683AB: fld dword ptr [ebp + 8] */ 7843 PUSH32(esp, ebx); /* 0x2B0683AE: push ebx */ 7844 ebx = ecx; /* 0x2B0683AF: mov ebx, ecx */ 7845 _st[0] += (double)*(float*)ADDR(ebx + 0x8); /* 0x2B0683B1: fadd dword ptr [ebx + 8] */ 7846 MEM32(ebp + (-0x10)) = ebx; /* 0x2B0683B4: mov dword ptr [ebp - 0x10], ebx */ 7847 { float _v = (float)_st[0]; *(float*)ADDR(ebx + 0x8) = _v; } /* 0x2B0683B7: fst dword ptr [ebx + 8] */ 7848 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B0683BA: fcomp dword ptr [0x2b0b61b8] */ 7849 fp_pop(); 7850 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0683C0: fnstsw ax */ 7851 /* test HI8(eax), 0x41u */ /* 0x2B0683C2: test ah, 0x41 */ 7852 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 7853 _cf = 0; 7854 _flag_k = FK_NARROW(FK_TEST, 24); 7855 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0683ED; /* 0x2B0683C5: je 0x2b0683ed */ 7856 L_2B0683C7: 7857 eax = MEM32(ebx + 0x24); /* 0x2B0683C7: mov eax, dword ptr [ebx + 0x24] */ 7858 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B0683CA: mov byte ptr [eax + 8], 0 */ 7859 ecx = MEM32(ebx + 0x14); /* 0x2B0683CE: mov ecx, dword ptr [ebx + 0x14] */ 7860 MEM8(ecx + 0x8) = (uint8_t)(0); /* 0x2B0683D1: mov byte ptr [ecx + 8], 0 */ 7861 edx = MEM32(ebx + 0x34); /* 0x2B0683D5: mov edx, dword ptr [ebx + 0x34] */ 7862 MEM8(edx + 0x8) = (uint8_t)(1); /* 0x2B0683D8: mov byte ptr [edx + 8], 1 */ 7863 ebx = POP32_VAL(esp); /* 0x2B0683DC: pop ebx */ 7864 ecx = MEM32(ebp + (-0xC)); /* 0x2B0683DD: mov ecx, dword ptr [ebp - 0xc] */ 7865 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0683E0: mov dword ptr fs:[0], ecx */ 7866 esp = ebp; /* 0x2B0683E7: mov esp, ebp */ 7867 ebp = POP32_VAL(esp); /* 0x2B0683E9: pop ebp */ 7868 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0683EA: ret 4 */ 7869 L_2B0683ED: 7870 SET_LO8(eax, MEM8(ebx + 0xD)); /* 0x2B0683ED: mov al, byte ptr [ebx + 0xd] */ 7871 /* test LO8(eax), LO8(eax) */ /* 0x2B0683F0: test al, al */ 7872 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7873 _cf = 0; 7874 _flag_k = FK_NARROW(FK_TEST, 24); 7875 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068409; /* 0x2B0683F2: je 0x2b068409 */ 7876 L_2B0683F4: 7877 eax = MEM32(ebx + 0x24); /* 0x2B0683F4: mov eax, dword ptr [ebx + 0x24] */ 7878 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B0683F7: mov byte ptr [eax + 8], 1 */ 7879 eax = MEM32(ebx + 0x14); /* 0x2B0683FB: mov eax, dword ptr [ebx + 0x14] */ 7880 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B0683FE: mov byte ptr [eax + 8], 1 */ 7881 eax = MEM32(ebx + 0x34); /* 0x2B068402: mov eax, dword ptr [ebx + 0x34] */ 7882 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B068405: mov byte ptr [eax + 8], 0 */ 7883 L_2B068409: 7884 fp_push(*(float*)&MEM32(ebx + 0x8)); /* 0x2B068409: fld dword ptr [ebx + 8] */ 7885 PUSH32(esp, esi); /* 0x2B06840C: push esi */ 7886 PUSH32(esp, edi); /* 0x2B06840D: push edi */ 7887 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7889 esp = esp - 8; /* 0x2B06840E: sub esp, 8 */ 7890 _flag_k = FK_CMP; 7891 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x2B068411: fstp qword ptr [esp] */ 7892 eax = ebp + (-0x44); /* 0x2B068414: lea eax, [ebp - 0x44] */ 7893 PUSH32(esp, 0x2B0EB25Cu); /* 0x2B068417: push 0x2b0eb25c */ 7894 PUSH32(esp, eax); /* 0x2B06841C: push eax */ 7895 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B06841D: call dword ptr [0x2b0b51f0] */ 7896 RECOMP_FLAGS_IN(); 7897 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B068423: mov cl, byte ptr [ebp + 0xb] */ 7898 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(ecx)); /* 0x2B068426: mov byte ptr [ebp - 0x24], cl */ 7899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7901 esp = esp + 0x10u; /* 0x2B068429: add esp, 0x10 */ 7902 _flag_k = FK_ADD; 7903 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7904 esi = 0; /* 0x2B06842C: xor esi, esi */ 7905 _cf = 0; 7906 _flag_k = FK_TEST; 7907 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7908 eax = 0; /* 0x2B06842E: xor eax, eax */ 7909 _cf = 0; 7910 _flag_k = FK_TEST; 7911 edi = ebp + (-0x44); /* 0x2B068430: lea edi, [ebp - 0x44] */ 7912 PUSH32(esp, 1); /* 0x2B068433: push 1 */ 7913 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7914 ecx = ecx | 0xFFFFFFFFu; /* 0x2B068435: or ecx, 0xffffffff */ 7915 _cf = 0; 7916 _flag_k = FK_TEST; 7917 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B068438: repne scasb al, byte ptr es:[edi] */ 7918 ecx = ~ecx; /* 0x2B06843A: not ecx */ 7919 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7920 ecx = ecx - 1; /* 0x2B06843C: dec ecx */ 7921 _flag_k = FK_DEC; 7922 edi = ecx; /* 0x2B06843D: mov edi, ecx */ 7923 PUSH32(esp, edi); /* 0x2B06843F: push edi */ 7924 ecx = ebp + (-0x24); /* 0x2B068440: lea ecx, [ebp - 0x24] */ 7925 MEM32(ebp + (-0x20)) = esi; /* 0x2B068443: mov dword ptr [ebp - 0x20], esi */ 7926 MEM32(ebp + (-0x1C)) = esi; /* 0x2B068446: mov dword ptr [ebp - 0x1c], esi */ 7927 MEM32(ebp + (-0x18)) = esi; /* 0x2B068449: mov dword ptr [ebp - 0x18], esi */ 7928 MEM32(ebp + 0x8) = edi; /* 0x2B06844C: mov dword ptr [ebp + 8], edi */ 7929 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B06844F: call dword ptr [0x2b0b5154] */ 7930 RECOMP_FLAGS_IN(); 7931 /* test LO8(eax), LO8(eax) */ /* 0x2B068455: test al, al */ 7932 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7933 _cf = 0; 7934 _flag_k = FK_NARROW(FK_TEST, 24); 7935 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06847D; /* 0x2B068457: je 0x2b06847d */ 7936 L_2B068459: 7937 ecx = edi; /* 0x2B068459: mov ecx, edi */ 7938 edi = MEM32(ebp + (-0x20)); /* 0x2B06845B: mov edi, dword ptr [ebp - 0x20] */ 7939 edx = ecx; /* 0x2B06845E: mov edx, ecx */ 7940 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B068460: shr ecx, 2 */ 7941 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7942 ecx = ecx >> 2u; /* 0x2B068460: shr ecx, 2 */ 7943 esi = ebp + (-0x44); /* 0x2B068463: lea esi, [ebp - 0x44] */ 7944 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B068466: 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; } 7945 ecx = edx; /* 0x2B068468: mov ecx, edx */ 7946 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7947 ecx = ecx & 3; /* 0x2B06846A: and ecx, 3 */ 7948 _cf = 0; 7949 _flag_k = FK_TEST; 7950 eax = edx; /* 0x2B06846D: mov eax, edx */ 7951 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B06846F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 7952 PUSH32(esp, eax); /* 0x2B068471: push eax */ 7953 ecx = ebp + (-0x24); /* 0x2B068472: lea ecx, [ebp - 0x24] */ 7954 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B068475: call dword ptr [0x2b0b5150] */ 7955 RECOMP_FLAGS_IN(); 7956 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7957 esi = 0; /* 0x2B06847B: xor esi, esi */ 7958 _cf = 0; 7959 _flag_k = FK_TEST; 7960 L_2B06847D: 7961 MEM32(ebp + (-0x14)) = esi; /* 0x2B06847D: mov dword ptr [ebp - 0x14], esi */ 7962 ecx = MEM32(0x2B0B515C); /* 0x2B068480: mov ecx, dword ptr [0x2b0b515c] */ 7963 ebx = MEM32(ebx + 0x24); /* 0x2B068486: mov ebx, dword ptr [ebx + 0x24] */ 7964 eax = MEM32(ecx); /* 0x2B068489: mov eax, dword ptr [ecx] */ 7965 ecx = MEM32(ebp + (-0x1C)); /* 0x2B06848B: mov ecx, dword ptr [ebp - 0x1c] */ 7966 edi = ebx + 0x14; /* 0x2B06848E: lea edi, [ebx + 0x14] */ 7967 ebx = ecx; /* 0x2B068491: mov ebx, ecx */ 7968 /* cmp eax, ebx */ /* 0x2B068493: cmp eax, ebx */ 7969 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7971 _flag_k = FK_CMP; 7972 MEM32(ebp + (-0x4)) = esi; /* 0x2B068495: mov dword ptr [ebp - 4], esi */ 7973 MEM32(ebp + 0x8) = edi; /* 0x2B068498: mov dword ptr [ebp + 8], edi */ 7974 if (CMP_AE(_flag_a, _flag_b)) goto L_2B06849F; /* 0x2B06849B: jae 0x2b06849f */ 7975 L_2B06849D: 7976 ebx = eax; /* 0x2B06849D: mov ebx, eax */ 7977 L_2B06849F: 7978 edx = ebp + (-0x24); /* 0x2B06849F: lea edx, [ebp - 0x24] */ 7979 /* cmp edi, edx */ /* 0x2B0684A2: cmp edi, edx */ 7980 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 7981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7982 _flag_k = FK_CMP; 7983 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0684BE; /* 0x2B0684A4: jne 0x2b0684be */ 7984 L_2B0684A6: 7985 PUSH32(esp, eax); /* 0x2B0684A6: push eax */ 7986 PUSH32(esp, ebx); /* 0x2B0684A7: push ebx */ 7987 ecx = edi; /* 0x2B0684A8: mov ecx, edi */ 7988 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B0684AA: call dword ptr [0x2b0b51ac] */ 7989 RECOMP_FLAGS_IN(); 7990 PUSH32(esp, 0); /* 0x2B0684B0: push 0 */ 7991 PUSH32(esp, 0); /* 0x2B0684B2: push 0 */ 7992 ecx = edi; /* 0x2B0684B4: mov ecx, edi */ 7993 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B0684B6: call dword ptr [0x2b0b51ac] */ 7994 RECOMP_FLAGS_IN(); 7995 goto L_2B06853B; /* 0x2B0684BC: jmp 0x2b06853b */ 7996 L_2B0684BE: 7997 /* test ebx, ebx */ /* 0x2B0684BE: test ebx, ebx */ 7998 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7999 _cf = 0; 8000 _flag_k = FK_TEST; 8001 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068502; /* 0x2B0684C0: jbe 0x2b068502 */ 8002 L_2B0684C2: 8003 /* cmp ebx, ecx */ /* 0x2B0684C2: cmp ebx, ecx */ 8004 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 8005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8006 _flag_k = FK_CMP; 8007 if (CMP_NE(_flag_a, _flag_b)) goto L_2B068502; /* 0x2B0684C4: jne 0x2b068502 */ 8008 L_2B0684C6: 8009 eax = MEM32(ebp + (-0x20)); /* 0x2B0684C6: mov eax, dword ptr [ebp - 0x20] */ 8010 /* test eax, eax */ /* 0x2B0684C9: test eax, eax */ 8011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8012 _cf = 0; 8013 _flag_k = FK_TEST; 8014 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0684D2; /* 0x2B0684CB: jne 0x2b0684d2 */ 8015 L_2B0684CD: 8016 eax = MEM32(0x2B0B513C); /* 0x2B0684CD: mov eax, dword ptr [0x2b0b513c] */ 8017 L_2B0684D2: 8018 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B0684D2: cmp byte ptr [eax - 1], 0xfe */ 8019 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 8020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8021 _flag_k = FK_NARROW(FK_CMP, 24); 8022 if (CMP_AE(_flag_a, _flag_b)) goto L_2B068502; /* 0x2B0684D6: jae 0x2b068502 */ 8023 L_2B0684D8: 8024 PUSH32(esp, 1); /* 0x2B0684D8: push 1 */ 8025 ecx = edi; /* 0x2B0684DA: mov ecx, edi */ 8026 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0684DC: call dword ptr [0x2b0b514c] */ 8027 RECOMP_FLAGS_IN(); 8028 eax = MEM32(ebp + (-0x20)); /* 0x2B0684E2: mov eax, dword ptr [ebp - 0x20] */ 8029 /* test eax, eax */ /* 0x2B0684E5: test eax, eax */ 8030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8031 _cf = 0; 8032 _flag_k = FK_TEST; 8033 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0684EE; /* 0x2B0684E7: jne 0x2b0684ee */ 8034 L_2B0684E9: 8035 eax = MEM32(0x2B0B513C); /* 0x2B0684E9: mov eax, dword ptr [0x2b0b513c] */ 8036 L_2B0684EE: 8037 MEM32(edi + 0x4) = eax; /* 0x2B0684EE: mov dword ptr [edi + 4], eax */ 8038 ecx = MEM32(ebp + (-0x1C)); /* 0x2B0684F1: mov ecx, dword ptr [ebp - 0x1c] */ 8039 MEM32(edi + 0x8) = ecx; /* 0x2B0684F4: mov dword ptr [edi + 8], ecx */ 8040 edx = MEM32(ebp + (-0x18)); /* 0x2B0684F7: mov edx, dword ptr [ebp - 0x18] */ 8041 MEM32(edi + 0xC) = edx; /* 0x2B0684FA: mov dword ptr [edi + 0xc], edx */ 8042 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 8043 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B0684FD: inc byte ptr [eax - 1] */ 8044 _flag_k = FK_NARROW(FK_INC, 24); 8045 goto L_2B06853B; /* 0x2B068500: jmp 0x2b06853b */ 8046 L_2B068502: 8047 PUSH32(esp, 1); /* 0x2B068502: push 1 */ 8048 PUSH32(esp, ebx); /* 0x2B068504: push ebx */ 8049 ecx = edi; /* 0x2B068505: mov ecx, edi */ 8050 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B068507: call dword ptr [0x2b0b5154] */ 8051 RECOMP_FLAGS_IN(); 8052 /* test LO8(eax), LO8(eax) */ /* 0x2B06850D: test al, al */ 8053 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8054 _cf = 0; 8055 _flag_k = FK_NARROW(FK_TEST, 24); 8056 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06853B; /* 0x2B06850F: je 0x2b06853b */ 8057 L_2B068511: 8058 esi = MEM32(ebp + (-0x20)); /* 0x2B068511: mov esi, dword ptr [ebp - 0x20] */ 8059 /* test esi, esi */ /* 0x2B068514: test esi, esi */ 8060 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8061 _cf = 0; 8062 _flag_k = FK_TEST; 8063 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B06851E; /* 0x2B068516: jne 0x2b06851e */ 8064 L_2B068518: 8065 esi = MEM32(0x2B0B513C); /* 0x2B068518: mov esi, dword ptr [0x2b0b513c] */ 8066 L_2B06851E: 8067 edi = MEM32(edi + 0x4); /* 0x2B06851E: mov edi, dword ptr [edi + 4] */ 8068 ecx = ebx; /* 0x2B068521: mov ecx, ebx */ 8069 eax = ecx; /* 0x2B068523: mov eax, ecx */ 8070 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B068525: shr ecx, 2 */ 8071 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8072 ecx = ecx >> 2u; /* 0x2B068525: shr ecx, 2 */ 8073 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B068528: 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; } 8074 ecx = eax; /* 0x2B06852A: mov ecx, eax */ 8075 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8076 ecx = ecx & 3; /* 0x2B06852C: and ecx, 3 */ 8077 _cf = 0; 8078 _flag_k = FK_TEST; 8079 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B06852F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 8080 ecx = MEM32(ebp + 0x8); /* 0x2B068531: mov ecx, dword ptr [ebp + 8] */ 8081 PUSH32(esp, ebx); /* 0x2B068534: push ebx */ 8082 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B068535: call dword ptr [0x2b0b5150] */ 8083 RECOMP_FLAGS_IN(); 8084 L_2B06853B: 8085 ecx = MEM32(ebp + (-0x10)); /* 0x2B06853B: mov ecx, dword ptr [ebp - 0x10] */ 8086 RECOMP_ICALL(0x2B068340u); /* 0x2B06853E: call 0x2b068340 */ /* not lifted */ 8087 RECOMP_FLAGS_IN(); 8088 esi = MEM32(ebp + (-0x14)); /* 0x2B068543: mov esi, dword ptr [ebp - 0x14] */ 8089 /* test esi, esi */ /* 0x2B068546: test esi, esi */ 8090 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8091 _cf = 0; 8092 _flag_k = FK_TEST; 8093 MEM32(ebp + (-0x4)) = 1; /* 0x2B068548: mov dword ptr [ebp - 4], 1 */ 8094 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06858E; /* 0x2B06854F: je 0x2b06858e */ 8095 L_2B068551: 8096 edx = MEM32(esi + 0x2C); /* 0x2B068551: mov edx, dword ptr [esi + 0x2c] */ 8097 eax = esi + 0x2C; /* 0x2B068554: lea eax, [esi + 0x2c] */ 8098 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8099 edx = edx - 1; /* 0x2B068557: dec edx */ 8100 _flag_k = FK_DEC; 8101 ecx = edx; /* 0x2B068558: mov ecx, edx */ 8102 /* test ecx, ecx */ /* 0x2B06855A: test ecx, ecx */ 8103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8104 _cf = 0; 8105 _flag_k = FK_TEST; 8106 MEM32(eax) = edx; /* 0x2B06855C: mov dword ptr [eax], edx */ 8107 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B06858E; /* 0x2B06855E: jne 0x2b06858e */ 8108 L_2B068560: 8109 /* test esi, esi */ /* 0x2B068560: test esi, esi */ 8110 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8111 _cf = 0; 8112 _flag_k = FK_TEST; 8113 MEM32(ebp + 0x8) = esi; /* 0x2B068562: mov dword ptr [ebp + 8], esi */ 8114 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06858E; /* 0x2B068565: je 0x2b06858e */ 8115 L_2B068567: 8116 PUSH32(esp, 1); /* 0x2B068567: push 1 */ 8117 ecx = esi + 0x1C; /* 0x2B068569: lea ecx, [esi + 0x1c] */ 8118 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B06856C: mov byte ptr [ebp - 4], 2 */ 8119 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B068570: call dword ptr [0x2b0b514c] */ 8120 RECOMP_FLAGS_IN(); 8121 PUSH32(esp, 1); /* 0x2B068576: push 1 */ 8122 ecx = esi + 0xC; /* 0x2B068578: lea ecx, [esi + 0xc] */ 8123 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B06857B: mov byte ptr [ebp - 4], 1 */ 8124 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B06857F: call dword ptr [0x2b0b514c] */ 8125 RECOMP_FLAGS_IN(); 8126 PUSH32(esp, esi); /* 0x2B068585: push esi */ 8127 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B068586: call 0x2b0ab1ba */ /* not lifted */ 8128 RECOMP_FLAGS_IN(); 8129 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8130 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8131 esp = esp + 4; /* 0x2B06858B: add esp, 4 */ 8132 _flag_k = FK_ADD; 8133 L_2B06858E: 8134 PUSH32(esp, 1); /* 0x2B06858E: push 1 */ 8135 ecx = ebp + (-0x24); /* 0x2B068590: lea ecx, [ebp - 0x24] */ 8136 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068593: mov dword ptr [ebp - 4], 0xffffffff */ 8137 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B06859A: call dword ptr [0x2b0b514c] */ 8138 RECOMP_FLAGS_IN(); 8139 ecx = MEM32(ebp + (-0xC)); /* 0x2B0685A0: mov ecx, dword ptr [ebp - 0xc] */ 8140 edi = POP32_VAL(esp); /* 0x2B0685A3: pop edi */ 8141 esi = POP32_VAL(esp); /* 0x2B0685A4: pop esi */ 8142 ebx = POP32_VAL(esp); /* 0x2B0685A5: pop ebx */ 8143 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0685A6: mov dword ptr fs:[0], ecx */ 8144 esp = ebp; /* 0x2B0685AD: mov esp, ebp */ 8145 ebp = POP32_VAL(esp); /* 0x2B0685AF: pop ebp */ 8146 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0685B0: ret 4 */ 8147 RECOMP_REGS_OUT(); 8148 } 8149 8150 void sub_2B0685C0(void) { 8151 int _fpu_cmp = 0; 8152 uint32_t _cf = 0; 8153 int _df = 1; 8154 uint32_t _flag_k = FK_NONE; 8155 uint32_t _flag_a = 0, _flag_b = 0; 8156 uint32_t _itail_tgt = 0; 8157 RECOMP_REGS_LOCALS 8158 RECOMP_ENTER(0x2B0685C0u); 8159 8160 L_2B0685C0: 8161 PUSH32(esp, ebp); /* 0x2B0685C0: push ebp */ 8162 ebp = esp; /* 0x2B0685C1: mov ebp, esp */ 8163 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0685C3: push -1 */ 8164 PUSH32(esp, 0x2B0B0DFEu); /* 0x2B0685C5: push 0x2b0b0dfe */ 8165 eax = MEM32(FS_BASE + (0)); /* 0x2B0685CA: mov eax, dword ptr fs:[0] */ 8166 PUSH32(esp, eax); /* 0x2B0685D0: push eax */ 8167 MEM32(FS_BASE + (0)) = esp; /* 0x2B0685D1: mov dword ptr fs:[0], esp */ 8168 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 8169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8170 esp = esp - 0x44u; /* 0x2B0685D8: sub esp, 0x44 */ 8171 _flag_k = FK_CMP; 8172 PUSH32(esp, ebx); /* 0x2B0685DB: push ebx */ 8173 PUSH32(esp, esi); /* 0x2B0685DC: push esi */ 8174 PUSH32(esp, edi); /* 0x2B0685DD: push edi */ 8175 edi = MEM32(0x2B0B5D6C); /* 0x2B0685DE: mov edi, dword ptr [0x2b0b5d6c] */ 8176 esi = ecx; /* 0x2B0685E4: mov esi, ecx */ 8177 eax = MEM32(esi); /* 0x2B0685E6: mov eax, dword ptr [esi] */ 8178 PUSH32(esp, 2); /* 0x2B0685E8: push 2 */ 8179 PUSH32(esp, eax); /* 0x2B0685EA: push eax */ 8180 RECOMP_ICALL(edi); /* 0x2B0685EB: call edi */ 8181 RECOMP_FLAGS_IN(); 8182 ebx = MEM32(0x2B0B5D70); /* 0x2B0685ED: mov ebx, dword ptr [0x2b0b5d70] */ 8183 ecx = eax; /* 0x2B0685F3: mov ecx, eax */ 8184 RECOMP_ICALL(ebx); /* 0x2B0685F5: call ebx */ 8185 RECOMP_FLAGS_IN(); 8186 ecx = MEM32(esi); /* 0x2B0685F7: mov ecx, dword ptr [esi] */ 8187 PUSH32(esp, ecx); /* 0x2B0685F9: push ecx */ 8188 MEM32(ebp + (-0x14)) = eax; /* 0x2B0685FA: mov dword ptr [ebp - 0x14], eax */ 8189 RECOMP_ICALL(edi); /* 0x2B0685FD: call edi */ 8190 RECOMP_FLAGS_IN(); 8191 ecx = eax; /* 0x2B0685FF: mov ecx, eax */ 8192 RECOMP_ICALL(MEM32(0x2B0B5D9C)); /* 0x2B068601: call dword ptr [0x2b0b5d9c] */ 8193 RECOMP_FLAGS_IN(); 8194 edx = MEM32(esi); /* 0x2B068607: mov edx, dword ptr [esi] */ 8195 PUSH32(esp, 0); /* 0x2B068609: push 0 */ 8196 PUSH32(esp, edx); /* 0x2B06860B: push edx */ 8197 MEM32(ebp + (-0x1C)) = eax; /* 0x2B06860C: mov dword ptr [ebp - 0x1c], eax */ 8198 RECOMP_ICALL(edi); /* 0x2B06860F: call edi */ 8199 RECOMP_FLAGS_IN(); 8200 ecx = eax; /* 0x2B068611: mov ecx, eax */ 8201 RECOMP_ICALL(ebx); /* 0x2B068613: call ebx */ 8202 RECOMP_FLAGS_IN(); 8203 ebx = eax; /* 0x2B068615: mov ebx, eax */ 8204 eax = MEM32(esi); /* 0x2B068617: mov eax, dword ptr [esi] */ 8205 PUSH32(esp, eax); /* 0x2B068619: push eax */ 8206 RECOMP_ICALL(edi); /* 0x2B06861A: call edi */ 8207 RECOMP_FLAGS_IN(); 8208 ecx = eax; /* 0x2B06861C: mov ecx, eax */ 8209 RECOMP_ICALL(MEM32(0x2B0B5DA0)); /* 0x2B06861E: call dword ptr [0x2b0b5da0] */ 8210 RECOMP_FLAGS_IN(); 8211 ecx = MEM32(ebp + (-0x14)); /* 0x2B068624: mov ecx, dword ptr [ebp - 0x14] */ 8212 PUSH32(esp, ecx); /* 0x2B068627: push ecx */ 8213 edx = ebp + (-0x50); /* 0x2B068628: lea edx, [ebp - 0x50] */ 8214 PUSH32(esp, 0x2B0E7354u); /* 0x2B06862B: push 0x2b0e7354 */ 8215 PUSH32(esp, edx); /* 0x2B068630: push edx */ 8216 MEM32(ebp + (-0x18)) = eax; /* 0x2B068631: mov dword ptr [ebp - 0x18], eax */ 8217 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B068634: call dword ptr [0x2b0b51f0] */ 8218 RECOMP_FLAGS_IN(); 8219 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B06863A: mov al, byte ptr [ebp - 0xd] */ 8220 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8221 ecx = ecx | 0xFFFFFFFFu; /* 0x2B06863D: or ecx, 0xffffffff */ 8222 _cf = 0; 8223 _flag_k = FK_TEST; 8224 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8225 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8226 esp = esp + 0xCu; /* 0x2B068640: add esp, 0xc */ 8227 _flag_k = FK_ADD; 8228 MEM8(ebp + (-0x30)) = (uint8_t)(LO8(eax)); /* 0x2B068643: mov byte ptr [ebp - 0x30], al */ 8229 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8230 eax = 0; /* 0x2B068646: xor eax, eax */ 8231 _cf = 0; 8232 _flag_k = FK_TEST; 8233 edi = ebp + (-0x50); /* 0x2B068648: lea edi, [ebp - 0x50] */ 8234 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B06864B: repne scasb al, byte ptr es:[edi] */ 8235 ecx = ~ecx; /* 0x2B06864D: not ecx */ 8236 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8237 ecx = ecx - 1; /* 0x2B06864F: dec ecx */ 8238 _flag_k = FK_DEC; 8239 PUSH32(esp, ecx); /* 0x2B068650: push ecx */ 8240 ecx = ebp + (-0x50); /* 0x2B068651: lea ecx, [ebp - 0x50] */ 8241 PUSH32(esp, ecx); /* 0x2B068654: push ecx */ 8242 ecx = ebp + (-0x30); /* 0x2B068655: lea ecx, [ebp - 0x30] */ 8243 MEM32(ebp + (-0x2C)) = eax; /* 0x2B068658: mov dword ptr [ebp - 0x2c], eax */ 8244 MEM32(ebp + (-0x28)) = eax; /* 0x2B06865B: mov dword ptr [ebp - 0x28], eax */ 8245 MEM32(ebp + (-0x24)) = eax; /* 0x2B06865E: mov dword ptr [ebp - 0x24], eax */ 8246 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B068661: call dword ptr [0x2b0b5148] */ 8247 RECOMP_FLAGS_IN(); 8248 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8249 edi = 0; /* 0x2B068667: xor edi, edi */ 8250 _cf = 0; 8251 _flag_k = FK_TEST; 8252 MEM32(ebp + (-0x20)) = edi; /* 0x2B068669: mov dword ptr [ebp - 0x20], edi */ 8253 edx = MEM32(0x2B0B515C); /* 0x2B06866C: mov edx, dword ptr [0x2b0b515c] */ 8254 ecx = MEM32(edx); /* 0x2B068672: mov ecx, dword ptr [edx] */ 8255 eax = MEM32(esi + 0x20); /* 0x2B068674: mov eax, dword ptr [esi + 0x20] */ 8256 PUSH32(esp, ecx); /* 0x2B068677: push ecx */ 8257 PUSH32(esp, edi); /* 0x2B068678: push edi */ 8258 edx = ebp + (-0x30); /* 0x2B068679: lea edx, [ebp - 0x30] */ 8259 PUSH32(esp, edx); /* 0x2B06867C: push edx */ 8260 ecx = eax + 0x14; /* 0x2B06867D: lea ecx, [eax + 0x14] */ 8261 MEM32(ebp + (-0x4)) = edi; /* 0x2B068680: mov dword ptr [ebp - 4], edi */ 8262 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B068683: call dword ptr [0x2b0b5158] */ 8263 RECOMP_FLAGS_IN(); 8264 eax = MEM32(ebp + (-0x1C)); /* 0x2B068689: mov eax, dword ptr [ebp - 0x1c] */ 8265 ecx = MEM32(ebp + (-0x14)); /* 0x2B06868C: mov ecx, dword ptr [ebp - 0x14] */ 8266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8268 eax = eax + ebx; /* 0x2B06868F: add eax, ebx */ 8269 _flag_k = FK_ADD; 8270 /* cmp ecx, eax */ /* 0x2B068691: cmp ecx, eax */ 8271 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8273 _flag_k = FK_CMP; 8274 if (CMP_NE(_flag_a, _flag_b)) goto L_2B06869C; /* 0x2B068693: jne 0x2b06869c */ 8275 L_2B068695: 8276 PUSH32(esp, 0x00CCF2FFu); /* 0x2B068695: push 0xccf2ff */ 8277 goto L_2B0686AA; /* 0x2B06869A: jmp 0x2b0686aa */ 8278 L_2B06869C: 8279 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_2B0686A5; /* 0x2B06869C: jle 0x2b0686a5 */ 8280 L_2B06869E: 8281 PUSH32(esp, 0xF000u); /* 0x2B06869E: push 0xf000 */ 8282 goto L_2B0686AA; /* 0x2B0686A3: jmp 0x2b0686aa */ 8283 L_2B0686A5: 8284 PUSH32(esp, 0x00FF0000u); /* 0x2B0686A5: push 0xff0000 */ 8285 L_2B0686AA: 8286 ecx = MEM32(esi + 0x20); /* 0x2B0686AA: mov ecx, dword ptr [esi + 0x20] */ 8287 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B0686AD: call dword ptr [0x2b0b5858] */ 8288 RECOMP_FLAGS_IN(); 8289 /* cmp MEM32(ebp + (-0x18)), edi */ /* 0x2B0686B3: cmp dword ptr [ebp - 0x18], edi */ 8290 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(edi); 8291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8292 _flag_k = FK_CMP; 8293 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0686BF; /* 0x2B0686B6: jne 0x2b0686bf */ 8294 L_2B0686B8: 8295 MEM32(ebp + (-0x18)) = 1; /* 0x2B0686B8: mov dword ptr [ebp - 0x18], 1 */ 8296 L_2B0686BF: 8297 ecx = MEM32(esi + 0x4); /* 0x2B0686BF: mov ecx, dword ptr [esi + 4] */ 8298 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 8299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8300 ebx = ebx - ecx; /* 0x2B0686C2: sub ebx, ecx */ 8301 _flag_k = FK_CMP; 8302 edx = ebx; /* 0x2B0686C4: mov edx, ebx */ 8303 if (6u) _cf = (((edx) >> 26) & 1u); /* 0x2B0686C6: shl edx, 6 */ 8304 if (6u) { _flag_a = recomp_flags_pack((edx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8305 edx = edx << 6u; /* 0x2B0686C6: shl edx, 6 */ 8306 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 8307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8308 edx = edx + ebx; /* 0x2B0686C9: add edx, ebx */ 8309 _flag_k = FK_ADD; 8310 eax = ebx + edx * 2; /* 0x2B0686CB: lea eax, [ebx + edx*2] */ 8311 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B0686CE: cdq */ 8312 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x18)); /* 0x2B0686CF: idiv dword ptr [ebp - 0x18] */ 8313 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 8314 else { eax = 0; edx = 0; } } 8315 edi = eax; /* 0x2B0686D2: mov edi, eax */ 8316 /* cmp edi, 0x83u */ /* 0x2B0686D4: cmp edi, 0x83 */ 8317 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x83u); 8318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8319 _flag_k = FK_CMP; 8320 MEM32(ebp + (-0x14)) = edi; /* 0x2B0686DA: mov dword ptr [ebp - 0x14], edi */ 8321 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0686E8; /* 0x2B0686DD: jle 0x2b0686e8 */ 8322 L_2B0686DF: 8323 MEM32(ebp + (-0x14)) = 0x83u; /* 0x2B0686DF: mov dword ptr [ebp - 0x14], 0x83 */ 8324 goto L_2B0686F3; /* 0x2B0686E6: jmp 0x2b0686f3 */ 8325 L_2B0686E8: 8326 /* test edi, edi */ /* 0x2B0686E8: test edi, edi */ 8327 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8328 _cf = 0; 8329 _flag_k = FK_TEST; 8330 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0686F6; /* 0x2B0686EA: jge 0x2b0686f6 */ 8331 L_2B0686EC: 8332 MEM32(ebp + (-0x14)) = 0; /* 0x2B0686EC: mov dword ptr [ebp - 0x14], 0 */ 8333 L_2B0686F3: 8334 edi = MEM32(ebp + (-0x14)); /* 0x2B0686F3: mov edi, dword ptr [ebp - 0x14] */ 8335 L_2B0686F6: 8336 eax = ecx; /* 0x2B0686F6: mov eax, ecx */ 8337 if (6u) _cf = (((eax) >> 26) & 1u); /* 0x2B0686F8: shl eax, 6 */ 8338 if (6u) { _flag_a = recomp_flags_pack((eax << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8339 eax = eax << 6u; /* 0x2B0686F8: shl eax, 6 */ 8340 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8341 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8342 eax = eax + ecx; /* 0x2B0686FB: add eax, ecx */ 8343 _flag_k = FK_ADD; 8344 eax = ecx + eax * 2; /* 0x2B0686FD: lea eax, [ecx + eax*2] */ 8345 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068700: cdq */ 8346 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ebp + (-0x18)); /* 0x2B068701: idiv dword ptr [ebp - 0x18] */ 8347 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 8348 else { eax = 0; edx = 0; } } 8349 ebx = eax; /* 0x2B068704: mov ebx, eax */ 8350 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 8351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8352 ebx = ebx + edi; /* 0x2B068706: add ebx, edi */ 8353 _flag_k = FK_ADD; 8354 /* cmp ebx, 0x83u */ /* 0x2B068708: cmp ebx, 0x83 */ 8355 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x83u); 8356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8357 _flag_k = FK_CMP; 8358 if (CMP_LE(_flag_a, _flag_b)) goto L_2B068717; /* 0x2B06870E: jle 0x2b068717 */ 8359 L_2B068710: 8360 ebx = 0x83u; /* 0x2B068710: mov ebx, 0x83 */ 8361 goto L_2B06871D; /* 0x2B068715: jmp 0x2b06871d */ 8362 L_2B068717: 8363 /* test ebx, ebx */ /* 0x2B068717: test ebx, ebx */ 8364 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8365 _cf = 0; 8366 _flag_k = FK_TEST; 8367 if (TEST_NS(_flag_a, _flag_b)) goto L_2B06871D; /* 0x2B068719: jge 0x2b06871d */ 8368 L_2B06871B: 8369 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8370 ebx = 0; /* 0x2B06871B: xor ebx, ebx */ 8371 _cf = 0; 8372 _flag_k = FK_TEST; 8373 L_2B06871D: 8374 ecx = MEM32(esi + 0x28); /* 0x2B06871D: mov ecx, dword ptr [esi + 0x28] */ 8375 eax = 0x12u; /* 0x2B068720: mov eax, 0x12 */ 8376 PUSH32(esp, eax); /* 0x2B068725: push eax */ 8377 PUSH32(esp, edi); /* 0x2B068726: push edi */ 8378 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B068727: call dword ptr [0x2b0b5980] */ 8379 RECOMP_FLAGS_IN(); 8380 ecx = MEM32(esi + 0x2C); /* 0x2B06872D: mov ecx, dword ptr [esi + 0x2c] */ 8381 eax = edi + 0x35; /* 0x2B068730: lea eax, [edi + 0x35] */ 8382 edi = MEM32(esi + 0x10); /* 0x2B068733: mov edi, dword ptr [esi + 0x10] */ 8383 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(6); 8384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8385 edi = edi + 6; /* 0x2B068736: add edi, 6 */ 8386 _flag_k = FK_ADD; 8387 PUSH32(esp, edi); /* 0x2B068739: push edi */ 8388 PUSH32(esp, eax); /* 0x2B06873A: push eax */ 8389 RECOMP_ICALL(MEM32(0x2B0B597C)); /* 0x2B06873B: call dword ptr [0x2b0b597c] */ 8390 RECOMP_FLAGS_IN(); 8391 ecx = MEM32(ebp + (-0x14)); /* 0x2B068741: mov ecx, dword ptr [ebp - 0x14] */ 8392 eax = ebx; /* 0x2B068744: mov eax, ebx */ 8393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8395 eax = eax - ecx; /* 0x2B068746: sub eax, ecx */ 8396 _flag_k = FK_CMP; 8397 ecx = 0x12u; /* 0x2B068748: mov ecx, 0x12 */ 8398 PUSH32(esp, ecx); /* 0x2B06874D: push ecx */ 8399 ecx = MEM32(esi + 0x2C); /* 0x2B06874E: mov ecx, dword ptr [esi + 0x2c] */ 8400 PUSH32(esp, eax); /* 0x2B068751: push eax */ 8401 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B068752: call dword ptr [0x2b0b5980] */ 8402 RECOMP_FLAGS_IN(); 8403 ecx = MEM32(esi + 0x30); /* 0x2B068758: mov ecx, dword ptr [esi + 0x30] */ 8404 eax = ebx + 0x35; /* 0x2B06875B: lea eax, [ebx + 0x35] */ 8405 PUSH32(esp, edi); /* 0x2B06875E: push edi */ 8406 PUSH32(esp, eax); /* 0x2B06875F: push eax */ 8407 RECOMP_ICALL(MEM32(0x2B0B597C)); /* 0x2B068760: call dword ptr [0x2b0b597c] */ 8408 RECOMP_FLAGS_IN(); 8409 ecx = 0x12u; /* 0x2B068766: mov ecx, 0x12 */ 8410 eax = 0x83u; /* 0x2B06876B: mov eax, 0x83 */ 8411 PUSH32(esp, ecx); /* 0x2B068770: push ecx */ 8412 ecx = MEM32(esi + 0x30); /* 0x2B068771: mov ecx, dword ptr [esi + 0x30] */ 8413 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8415 eax = eax - ebx; /* 0x2B068774: sub eax, ebx */ 8416 _flag_k = FK_CMP; 8417 PUSH32(esp, eax); /* 0x2B068776: push eax */ 8418 RECOMP_ICALL(MEM32(0x2B0B5980)); /* 0x2B068777: call dword ptr [0x2b0b5980] */ 8419 RECOMP_FLAGS_IN(); 8420 ecx = esi; /* 0x2B06877D: mov ecx, esi */ 8421 RECOMP_ICALL(0x2B068340u); /* 0x2B06877F: call 0x2b068340 */ /* not lifted */ 8422 RECOMP_FLAGS_IN(); 8423 eax = MEM32(ebp + (-0x20)); /* 0x2B068784: mov eax, dword ptr [ebp - 0x20] */ 8424 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8425 edi = 0; /* 0x2B068787: xor edi, edi */ 8426 _cf = 0; 8427 _flag_k = FK_TEST; 8428 /* cmp eax, edi */ /* 0x2B068789: cmp eax, edi */ 8429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8431 _flag_k = FK_CMP; 8432 MEM32(ebp + (-0x4)) = 1; /* 0x2B06878B: mov dword ptr [ebp - 4], 1 */ 8433 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0687F0; /* 0x2B068792: je 0x2b0687f0 */ 8434 L_2B068794: 8435 edx = MEM32(eax + 0x2C); /* 0x2B068794: mov edx, dword ptr [eax + 0x2c] */ 8436 esi = eax; /* 0x2B068797: mov esi, eax */ 8437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 8438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8439 eax = eax + 0x2Cu; /* 0x2B068799: add eax, 0x2c */ 8440 _flag_k = FK_ADD; 8441 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8442 edx = edx - 1; /* 0x2B06879C: dec edx */ 8443 _flag_k = FK_DEC; 8444 ecx = edx; /* 0x2B06879D: mov ecx, edx */ 8445 /* cmp ecx, edi */ /* 0x2B06879F: cmp ecx, edi */ 8446 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8448 _flag_k = FK_CMP; 8449 MEM32(eax) = edx; /* 0x2B0687A1: mov dword ptr [eax], edx */ 8450 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0687F0; /* 0x2B0687A3: jne 0x2b0687f0 */ 8451 L_2B0687A5: 8452 /* cmp esi, edi */ /* 0x2B0687A5: cmp esi, edi */ 8453 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 8454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8455 _flag_k = FK_CMP; 8456 MEM32(ebp + (-0x1C)) = esi; /* 0x2B0687A7: mov dword ptr [ebp - 0x1c], esi */ 8457 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0687F0; /* 0x2B0687AA: je 0x2b0687f0 */ 8458 L_2B0687AC: 8459 PUSH32(esp, 1); /* 0x2B0687AC: push 1 */ 8460 ecx = esi + 0x1C; /* 0x2B0687AE: lea ecx, [esi + 0x1c] */ 8461 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B0687B1: mov byte ptr [ebp - 4], 2 */ 8462 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0687B5: call dword ptr [0x2b0b514c] */ 8463 RECOMP_FLAGS_IN(); 8464 eax = MEM32(esi + 0x10); /* 0x2B0687BB: mov eax, dword ptr [esi + 0x10] */ 8465 /* cmp eax, edi */ /* 0x2B0687BE: cmp eax, edi */ 8466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8468 _flag_k = FK_CMP; 8469 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0687DE; /* 0x2B0687C0: je 0x2b0687de */ 8470 L_2B0687C2: 8471 ecx = eax + (-0x1); /* 0x2B0687C2: lea ecx, [eax - 1] */ 8472 SET_LO8(eax, MEM8(ecx)); /* 0x2B0687C5: mov al, byte ptr [ecx] */ 8473 /* test LO8(eax), LO8(eax) */ /* 0x2B0687C7: test al, al */ 8474 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8475 _cf = 0; 8476 _flag_k = FK_NARROW(FK_TEST, 24); 8477 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0687D5; /* 0x2B0687C9: je 0x2b0687d5 */ 8478 L_2B0687CB: 8479 /* cmp LO8(eax), 0xFFu */ /* 0x2B0687CB: cmp al, 0xff */ 8480 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8482 _flag_k = FK_NARROW(FK_CMP, 24); 8483 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0687D5; /* 0x2B0687CD: je 0x2b0687d5 */ 8484 L_2B0687CF: 8485 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8486 SET_LO8(eax, LO8(eax) - 1); /* 0x2B0687CF: dec al */ 8487 _flag_k = FK_NARROW(FK_DEC, 24); 8488 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B0687D1: mov byte ptr [ecx], al */ 8489 goto L_2B0687DE; /* 0x2B0687D3: jmp 0x2b0687de */ 8490 L_2B0687D5: 8491 PUSH32(esp, ecx); /* 0x2B0687D5: push ecx */ 8492 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0687D6: call 0x2b0ab1ba */ /* not lifted */ 8493 RECOMP_FLAGS_IN(); 8494 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8495 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8496 esp = esp + 4; /* 0x2B0687DB: add esp, 4 */ 8497 _flag_k = FK_ADD; 8498 L_2B0687DE: 8499 PUSH32(esp, esi); /* 0x2B0687DE: push esi */ 8500 MEM32(esi + 0x10) = edi; /* 0x2B0687DF: mov dword ptr [esi + 0x10], edi */ 8501 MEM32(esi + 0x14) = edi; /* 0x2B0687E2: mov dword ptr [esi + 0x14], edi */ 8502 MEM32(esi + 0x18) = edi; /* 0x2B0687E5: mov dword ptr [esi + 0x18], edi */ 8503 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0687E8: call 0x2b0ab1ba */ /* not lifted */ 8504 RECOMP_FLAGS_IN(); 8505 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8506 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8507 esp = esp + 4; /* 0x2B0687ED: add esp, 4 */ 8508 _flag_k = FK_ADD; 8509 L_2B0687F0: 8510 ecx = MEM32(ebp + (-0x2C)); /* 0x2B0687F0: mov ecx, dword ptr [ebp - 0x2c] */ 8511 /* cmp ecx, edi */ /* 0x2B0687F3: cmp ecx, edi */ 8512 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8514 _flag_k = FK_CMP; 8515 edi = POP32_VAL(esp); /* 0x2B0687F5: pop edi */ 8516 esi = POP32_VAL(esp); /* 0x2B0687F6: pop esi */ 8517 ebx = POP32_VAL(esp); /* 0x2B0687F7: pop ebx */ 8518 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068822; /* 0x2B0687F8: je 0x2b068822 */ 8519 L_2B0687FA: 8520 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B0687FA: mov al, byte ptr [ecx - 1] */ 8521 /* test LO8(eax), LO8(eax) */ /* 0x2B0687FD: test al, al */ 8522 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8523 _cf = 0; 8524 _flag_k = FK_NARROW(FK_TEST, 24); 8525 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068818; /* 0x2B0687FF: je 0x2b068818 */ 8526 L_2B068801: 8527 /* cmp LO8(eax), 0xFFu */ /* 0x2B068801: cmp al, 0xff */ 8528 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8530 _flag_k = FK_NARROW(FK_CMP, 24); 8531 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068818; /* 0x2B068803: je 0x2b068818 */ 8532 L_2B068805: 8533 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8534 SET_LO8(eax, LO8(eax) - 1); /* 0x2B068805: dec al */ 8535 _flag_k = FK_NARROW(FK_DEC, 24); 8536 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B068807: mov byte ptr [ecx - 1], al */ 8537 ecx = MEM32(ebp + (-0xC)); /* 0x2B06880A: mov ecx, dword ptr [ebp - 0xc] */ 8538 MEM32(FS_BASE + (0)) = ecx; /* 0x2B06880D: mov dword ptr fs:[0], ecx */ 8539 esp = ebp; /* 0x2B068814: mov esp, ebp */ 8540 ebp = POP32_VAL(esp); /* 0x2B068816: pop ebp */ 8541 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B068817: ret */ 8542 L_2B068818: 8543 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8544 ecx = ecx - 1; /* 0x2B068818: dec ecx */ 8545 _flag_k = FK_DEC; 8546 PUSH32(esp, ecx); /* 0x2B068819: push ecx */ 8547 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06881A: call 0x2b0ab1ba */ /* not lifted */ 8548 RECOMP_FLAGS_IN(); 8549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8551 esp = esp + 4; /* 0x2B06881F: add esp, 4 */ 8552 _flag_k = FK_ADD; 8553 L_2B068822: 8554 ecx = MEM32(ebp + (-0xC)); /* 0x2B068822: mov ecx, dword ptr [ebp - 0xc] */ 8555 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068825: mov dword ptr fs:[0], ecx */ 8556 esp = ebp; /* 0x2B06882C: mov esp, ebp */ 8557 ebp = POP32_VAL(esp); /* 0x2B06882E: pop ebp */ 8558 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06882F: ret */ 8559 RECOMP_REGS_OUT(); 8560 } 8561 8562 void sub_2B068830(void) { 8563 int _fpu_cmp = 0; 8564 uint32_t _cf = 0; 8565 int _df = 1; 8566 uint32_t _flag_k = FK_NONE; 8567 uint32_t _flag_a = 0, _flag_b = 0; 8568 uint32_t _itail_tgt = 0; 8569 RECOMP_REGS_LOCALS 8570 RECOMP_ENTER(0x2B068830u); 8571 8572 L_2B068830: 8573 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 8574 SET_LO8(eax, 0); /* 0x2B068830: xor al, al */ 8575 _cf = 0; 8576 _flag_k = FK_NARROW(FK_TEST, 24); 8577 PUSH32(esp, esi); /* 0x2B068832: push esi */ 8578 esi = ecx; /* 0x2B068833: mov esi, ecx */ 8579 ecx = MEM32(esi + 0x14); /* 0x2B068835: mov ecx, dword ptr [esi + 0x14] */ 8580 MEM8(esi + 0xD) = (uint8_t)(LO8(eax)); /* 0x2B068838: mov byte ptr [esi + 0xd], al */ 8581 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B06883B: mov byte ptr [ecx + 8], al */ 8582 edx = MEM32(esi + 0x24); /* 0x2B06883E: mov edx, dword ptr [esi + 0x24] */ 8583 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B068841: mov byte ptr [edx + 8], al */ 8584 ecx = MEM32(esi + 0x34); /* 0x2B068844: mov ecx, dword ptr [esi + 0x34] */ 8585 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B068847: mov byte ptr [ecx + 8], al */ 8586 edx = MEM32(esi + 0x38); /* 0x2B06884A: mov edx, dword ptr [esi + 0x38] */ 8587 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B06884D: mov byte ptr [edx + 8], al */ 8588 ecx = MEM32(esi + 0x18); /* 0x2B068850: mov ecx, dword ptr [esi + 0x18] */ 8589 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B068853: mov byte ptr [ecx + 8], al */ 8590 edx = MEM32(esi + 0x1C); /* 0x2B068856: mov edx, dword ptr [esi + 0x1c] */ 8591 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B068859: mov byte ptr [edx + 8], al */ 8592 ecx = MEM32(esi + 0x20); /* 0x2B06885C: mov ecx, dword ptr [esi + 0x20] */ 8593 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B06885F: mov byte ptr [ecx + 8], al */ 8594 edx = MEM32(esi + 0x28); /* 0x2B068862: mov edx, dword ptr [esi + 0x28] */ 8595 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B068865: mov byte ptr [edx + 8], al */ 8596 ecx = MEM32(esi + 0x30); /* 0x2B068868: mov ecx, dword ptr [esi + 0x30] */ 8597 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B06886B: mov byte ptr [ecx + 8], al */ 8598 edx = MEM32(esi + 0x2C); /* 0x2B06886E: mov edx, dword ptr [esi + 0x2c] */ 8599 PUSH32(esp, edi); /* 0x2B068871: push edi */ 8600 edi = MEM32(0x2B0B5B34); /* 0x2B068872: mov edi, dword ptr [0x2b0b5b34] */ 8601 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B068878: mov byte ptr [edx + 8], al */ 8602 ecx = MEM32(esi + 0x3C); /* 0x2B06887B: mov ecx, dword ptr [esi + 0x3c] */ 8603 RECOMP_ICALL(edi); /* 0x2B06887E: call edi */ 8604 RECOMP_FLAGS_IN(); 8605 ecx = MEM32(esi + 0x40); /* 0x2B068880: mov ecx, dword ptr [esi + 0x40] */ 8606 RECOMP_ICALL(edi); /* 0x2B068883: call edi */ 8607 RECOMP_FLAGS_IN(); 8608 edi = POP32_VAL(esp); /* 0x2B068885: pop edi */ 8609 esi = POP32_VAL(esp); /* 0x2B068886: pop esi */ 8610 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B068887: ret */ 8611 RECOMP_REGS_OUT(); 8612 } 8613 8614 void sub_2B068890(void) { 8615 int _fpu_cmp = 0; 8616 uint32_t _cf = 0; 8617 int _df = 1; 8618 uint32_t _flag_k = FK_NONE; 8619 uint32_t _flag_a = 0, _flag_b = 0; 8620 uint32_t _itail_tgt = 0; 8621 RECOMP_REGS_LOCALS 8622 RECOMP_ENTER(0x2B068890u); 8623 8624 L_2B068890: 8625 SET_LO8(eax, 1); /* 0x2B068890: mov al, 1 */ 8626 PUSH32(esp, esi); /* 0x2B068892: push esi */ 8627 esi = ecx; /* 0x2B068893: mov esi, ecx */ 8628 ecx = MEM32(esi + 0x38); /* 0x2B068895: mov ecx, dword ptr [esi + 0x38] */ 8629 MEM8(esi + 0xD) = (uint8_t)(LO8(eax)); /* 0x2B068898: mov byte ptr [esi + 0xd], al */ 8630 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B06889B: mov byte ptr [ecx + 8], al */ 8631 edx = MEM32(esi + 0x18); /* 0x2B06889E: mov edx, dword ptr [esi + 0x18] */ 8632 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B0688A1: mov byte ptr [edx + 8], al */ 8633 ecx = MEM32(esi + 0x1C); /* 0x2B0688A4: mov ecx, dword ptr [esi + 0x1c] */ 8634 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B0688A7: mov byte ptr [ecx + 8], al */ 8635 edx = MEM32(esi + 0x20); /* 0x2B0688AA: mov edx, dword ptr [esi + 0x20] */ 8636 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B0688AD: mov byte ptr [edx + 8], al */ 8637 ecx = MEM32(esi + 0x28); /* 0x2B0688B0: mov ecx, dword ptr [esi + 0x28] */ 8638 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B0688B3: mov byte ptr [ecx + 8], al */ 8639 edx = MEM32(esi + 0x30); /* 0x2B0688B6: mov edx, dword ptr [esi + 0x30] */ 8640 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B0688B9: mov byte ptr [edx + 8], al */ 8641 ecx = MEM32(esi + 0x2C); /* 0x2B0688BC: mov ecx, dword ptr [esi + 0x2c] */ 8642 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B0688BF: mov byte ptr [ecx + 8], al */ 8643 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B0688C2: mov al, byte ptr [esi + 0xc] */ 8644 /* test LO8(eax), LO8(eax) */ /* 0x2B0688C5: test al, al */ 8645 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8646 _cf = 0; 8647 _flag_k = FK_NARROW(FK_TEST, 24); 8648 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0688DB; /* 0x2B0688C7: je 0x2b0688db */ 8649 L_2B0688C9: 8650 ecx = MEM32(esi + 0x3C); /* 0x2B0688C9: mov ecx, dword ptr [esi + 0x3c] */ 8651 PUSH32(esp, edi); /* 0x2B0688CC: push edi */ 8652 edi = MEM32(0x2B0B5B3C); /* 0x2B0688CD: mov edi, dword ptr [0x2b0b5b3c] */ 8653 RECOMP_ICALL(edi); /* 0x2B0688D3: call edi */ 8654 RECOMP_FLAGS_IN(); 8655 ecx = MEM32(esi + 0x40); /* 0x2B0688D5: mov ecx, dword ptr [esi + 0x40] */ 8656 RECOMP_ICALL(edi); /* 0x2B0688D8: call edi */ 8657 RECOMP_FLAGS_IN(); 8658 edi = POP32_VAL(esp); /* 0x2B0688DA: pop edi */ 8659 L_2B0688DB: 8660 ecx = esi; /* 0x2B0688DB: mov ecx, esi */ 8661 RECOMP_ICALL(0x2B0685C0u); /* 0x2B0688DD: call 0x2b0685c0 */ /* not lifted */ 8662 RECOMP_FLAGS_IN(); 8663 PUSH32(esp, 0); /* 0x2B0688E2: push 0 */ 8664 ecx = esi; /* 0x2B0688E4: mov ecx, esi */ 8665 RECOMP_ICALL(0x2B068390u); /* 0x2B0688E6: call 0x2b068390 */ /* not lifted */ 8666 RECOMP_FLAGS_IN(); 8667 ecx = esi; /* 0x2B0688EB: mov ecx, esi */ 8668 RECOMP_ICALL(0x2B068960u); /* 0x2B0688ED: call 0x2b068960 */ /* not lifted */ 8669 RECOMP_FLAGS_IN(); 8670 esi = POP32_VAL(esp); /* 0x2B0688F2: pop esi */ 8671 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0688F3: ret */ 8672 RECOMP_REGS_OUT(); 8673 } 8674 8675 void sub_2B068900(void) { 8676 int _fpu_cmp = 0; 8677 uint32_t _cf = 0; 8678 int _df = 1; 8679 uint32_t _flag_k = FK_NONE; 8680 uint32_t _flag_a = 0, _flag_b = 0; 8681 uint32_t _itail_tgt = 0; 8682 RECOMP_REGS_LOCALS 8683 RECOMP_ENTER(0x2B068900u); 8684 8685 L_2B068900: 8686 PUSH32(esp, ebp); /* 0x2B068900: push ebp */ 8687 ebp = esp; /* 0x2B068901: mov ebp, esp */ 8688 PUSH32(esp, ebx); /* 0x2B068903: push ebx */ 8689 PUSH32(esp, esi); /* 0x2B068904: push esi */ 8690 esi = ecx; /* 0x2B068905: mov esi, ecx */ 8691 eax = MEM32(esi); /* 0x2B068907: mov eax, dword ptr [esi] */ 8692 PUSH32(esp, edi); /* 0x2B068909: push edi */ 8693 PUSH32(esp, eax); /* 0x2B06890A: push eax */ 8694 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B06890B: call dword ptr [0x2b0b5d6c] */ 8695 RECOMP_FLAGS_IN(); 8696 ecx = eax; /* 0x2B068911: mov ecx, eax */ 8697 RECOMP_ICALL(MEM32(0x2B0B5DA4)); /* 0x2B068913: call dword ptr [0x2b0b5da4] */ 8698 RECOMP_FLAGS_IN(); 8699 edi = MEM32(ebp + 0xC); /* 0x2B068919: mov edi, dword ptr [ebp + 0xc] */ 8700 ebx = MEM32(ebp + 0x8); /* 0x2B06891C: mov ebx, dword ptr [ebp + 8] */ 8701 ecx = edi; /* 0x2B06891F: mov ecx, edi */ 8702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 8703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8704 ecx = ecx - ebx; /* 0x2B068921: sub ecx, ebx */ 8705 _flag_k = FK_CMP; 8706 MEM32(ebp + 0xC) = ecx; /* 0x2B068923: mov dword ptr [ebp + 0xc], ecx */ 8707 _st[0] = _st[0] * (double)(int32_t)MEM32(ebp + 0xC); /* 0x2B068926: fimul dword ptr [ebp + 0xc] */ 8708 ecx = esi; /* 0x2B068929: mov ecx, esi */ 8709 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x2B06892B: fstp dword ptr [ebp + 0xc] */ 8710 edx = MEM32(ebp + 0xC); /* 0x2B06892E: mov edx, dword ptr [ebp + 0xc] */ 8711 PUSH32(esp, edx); /* 0x2B068931: push edx */ 8712 RECOMP_ICALL(0x2B068390u); /* 0x2B068932: call 0x2b068390 */ /* not lifted */ 8713 RECOMP_FLAGS_IN(); 8714 edx = MEM32(esi + 0x4); /* 0x2B068937: mov edx, dword ptr [esi + 4] */ 8715 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8717 edi = edi - ebx; /* 0x2B06893A: sub edi, ebx */ 8718 _flag_k = FK_CMP; 8719 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 8720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8721 edx = edx + edi; /* 0x2B06893C: add edx, edi */ 8722 _flag_k = FK_ADD; 8723 eax = edx; /* 0x2B06893E: mov eax, edx */ 8724 /* test eax, eax */ /* 0x2B068940: test eax, eax */ 8725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8726 _cf = 0; 8727 _flag_k = FK_TEST; 8728 MEM32(esi + 0x4) = edx; /* 0x2B068942: mov dword ptr [esi + 4], edx */ 8729 if (TEST_LE(_flag_a, _flag_b)) goto L_2B06894E; /* 0x2B068945: jle 0x2b06894e */ 8730 L_2B068947: 8731 MEM32(esi + 0x4) = 0; /* 0x2B068947: mov dword ptr [esi + 4], 0 */ 8732 L_2B06894E: 8733 ecx = esi; /* 0x2B06894E: mov ecx, esi */ 8734 RECOMP_ICALL(0x2B0685C0u); /* 0x2B068950: call 0x2b0685c0 */ /* not lifted */ 8735 RECOMP_FLAGS_IN(); 8736 edi = POP32_VAL(esp); /* 0x2B068955: pop edi */ 8737 esi = POP32_VAL(esp); /* 0x2B068956: pop esi */ 8738 ebx = POP32_VAL(esp); /* 0x2B068957: pop ebx */ 8739 ebp = POP32_VAL(esp); /* 0x2B068958: pop ebp */ 8740 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B068959: ret 8 */ 8741 RECOMP_REGS_OUT(); 8742 } 8743 8744 void sub_2B068960(void) { 8745 int _fpu_cmp = 0; 8746 uint32_t _cf = 0; 8747 int _df = 1; 8748 uint32_t _flag_k = FK_NONE; 8749 uint32_t _flag_a = 0, _flag_b = 0; 8750 uint32_t _itail_tgt = 0; 8751 RECOMP_REGS_LOCALS 8752 RECOMP_ENTER(0x2B068960u); 8753 8754 L_2B068960: 8755 PUSH32(esp, ebp); /* 0x2B068960: push ebp */ 8756 ebp = esp; /* 0x2B068961: mov ebp, esp */ 8757 PUSH32(esp, ecx); /* 0x2B068963: push ecx */ 8758 PUSH32(esp, ebx); /* 0x2B068964: push ebx */ 8759 ebx = ecx; /* 0x2B068965: mov ebx, ecx */ 8760 eax = MEM32(ebx); /* 0x2B068967: mov eax, dword ptr [ebx] */ 8761 PUSH32(esp, esi); /* 0x2B068969: push esi */ 8762 PUSH32(esp, edi); /* 0x2B06896A: push edi */ 8763 PUSH32(esp, eax); /* 0x2B06896B: push eax */ 8764 MEM32(ebp + (-0x4)) = ebx; /* 0x2B06896C: mov dword ptr [ebp - 4], ebx */ 8765 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B06896F: call dword ptr [0x2b0b5d6c] */ 8766 RECOMP_FLAGS_IN(); 8767 ecx = eax; /* 0x2B068975: mov ecx, eax */ 8768 RECOMP_ICALL(MEM32(0x2B0B5DB8)); /* 0x2B068977: call dword ptr [0x2b0b5db8] */ 8769 RECOMP_FLAGS_IN(); 8770 /* cmp eax, 5 */ /* 0x2B06897D: cmp eax, 5 */ 8771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5); 8772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8773 _flag_k = FK_CMP; 8774 if (CMP_G(_flag_a, _flag_b)) goto L_2B068993; /* 0x2B068980: jg 0x2b068993 */ 8775 L_2B068982: 8776 eax = 0x007DCC5Eu; /* 0x2B068982: mov eax, 0x7dcc5e */ 8777 esi = 0x005E9946u; /* 0x2B068987: mov esi, 0x5e9946 */ 8778 edi = 0x000F190Bu; /* 0x2B06898C: mov edi, 0xf190b */ 8779 goto L_2B0689E4; /* 0x2B068991: jmp 0x2b0689e4 */ 8780 L_2B068993: 8781 /* cmp eax, 0xAu */ /* 0x2B068993: cmp eax, 0xa */ 8782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 8783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8784 _flag_k = FK_CMP; 8785 if (CMP_G(_flag_a, _flag_b)) goto L_2B0689A9; /* 0x2B068996: jg 0x2b0689a9 */ 8786 L_2B068998: 8787 eax = 0xCC88u; /* 0x2B068998: mov eax, 0xcc88 */ 8788 esi = 0x00069C68u; /* 0x2B06899D: mov esi, 0x69c68 */ 8789 edi = 0x00011911u; /* 0x2B0689A2: mov edi, 0x11911 */ 8790 goto L_2B0689E4; /* 0x2B0689A7: jmp 0x2b0689e4 */ 8791 L_2B0689A9: 8792 /* cmp eax, 0xFu */ /* 0x2B0689A9: cmp eax, 0xf */ 8793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); 8794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8795 _flag_k = FK_CMP; 8796 if (CMP_G(_flag_a, _flag_b)) goto L_2B0689BF; /* 0x2B0689AC: jg 0x2b0689bf */ 8797 L_2B0689AE: 8798 eax = 0xCCCCu; /* 0x2B0689AE: mov eax, 0xcccc */ 8799 esi = 0x00069C9Cu; /* 0x2B0689B3: mov esi, 0x69c9c */ 8800 edi = 0x00011919u; /* 0x2B0689B8: mov edi, 0x11919 */ 8801 goto L_2B0689E4; /* 0x2B0689BD: jmp 0x2b0689e4 */ 8802 L_2B0689BF: 8803 /* cmp eax, 0x14u */ /* 0x2B0689BF: cmp eax, 0x14 */ 8804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 8805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8806 _flag_k = FK_CMP; 8807 if (CMP_G(_flag_a, _flag_b)) goto L_2B0689D5; /* 0x2B0689C2: jg 0x2b0689d5 */ 8808 L_2B0689C4: 8809 eax = 0x88CCu; /* 0x2B0689C4: mov eax, 0x88cc */ 8810 esi = 0x0005618Fu; /* 0x2B0689C9: mov esi, 0x5618f */ 8811 edi = 0x1119u; /* 0x2B0689CE: mov edi, 0x1119 */ 8812 goto L_2B0689E4; /* 0x2B0689D3: jmp 0x2b0689e4 */ 8813 L_2B0689D5: 8814 eax = 0x00075AFFu; /* 0x2B0689D5: mov eax, 0x75aff */ 8815 esi = 0x00053491u; /* 0x2B0689DA: mov esi, 0x53491 */ 8816 edi = 0x919u; /* 0x2B0689DF: mov edi, 0x919 */ 8817 L_2B0689E4: 8818 ecx = MEM32(ebx + 0x28); /* 0x2B0689E4: mov ecx, dword ptr [ebx + 0x28] */ 8819 ebx = MEM32(0x2B0B5704); /* 0x2B0689E7: mov ebx, dword ptr [0x2b0b5704] */ 8820 PUSH32(esp, eax); /* 0x2B0689ED: push eax */ 8821 RECOMP_ICALL(ebx); /* 0x2B0689EE: call ebx */ 8822 RECOMP_FLAGS_IN(); 8823 PUSH32(esp, esi); /* 0x2B0689F0: push esi */ 8824 esi = MEM32(ebp + (-0x4)); /* 0x2B0689F1: mov esi, dword ptr [ebp - 4] */ 8825 ecx = MEM32(esi + 0x2C); /* 0x2B0689F4: mov ecx, dword ptr [esi + 0x2c] */ 8826 RECOMP_ICALL(ebx); /* 0x2B0689F7: call ebx */ 8827 RECOMP_FLAGS_IN(); 8828 ecx = MEM32(esi + 0x30); /* 0x2B0689F9: mov ecx, dword ptr [esi + 0x30] */ 8829 PUSH32(esp, edi); /* 0x2B0689FC: push edi */ 8830 RECOMP_ICALL(ebx); /* 0x2B0689FD: call ebx */ 8831 RECOMP_FLAGS_IN(); 8832 edi = POP32_VAL(esp); /* 0x2B0689FF: pop edi */ 8833 esi = POP32_VAL(esp); /* 0x2B068A00: pop esi */ 8834 ebx = POP32_VAL(esp); /* 0x2B068A01: pop ebx */ 8835 esp = ebp; /* 0x2B068A02: mov esp, ebp */ 8836 ebp = POP32_VAL(esp); /* 0x2B068A04: pop ebp */ 8837 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B068A05: ret */ 8838 RECOMP_REGS_OUT(); 8839 } 8840 8841 void sub_2B068A10(void) { 8842 int _fpu_cmp = 0; 8843 uint32_t _cf = 0; 8844 int _df = 1; 8845 uint32_t _flag_k = FK_NONE; 8846 uint32_t _flag_a = 0, _flag_b = 0; 8847 uint32_t _itail_tgt = 0; 8848 RECOMP_REGS_LOCALS 8849 RECOMP_ENTER(0x2B068A10u); 8850 8851 L_2B068A10: 8852 PUSH32(esp, ebp); /* 0x2B068A10: push ebp */ 8853 ebp = esp; /* 0x2B068A11: mov ebp, esp */ 8854 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B068A13: push -1 */ 8855 PUSH32(esp, 0x2B0B0E68u); /* 0x2B068A15: push 0x2b0b0e68 */ 8856 eax = MEM32(FS_BASE + (0)); /* 0x2B068A1A: mov eax, dword ptr fs:[0] */ 8857 PUSH32(esp, eax); /* 0x2B068A20: push eax */ 8858 MEM32(FS_BASE + (0)) = esp; /* 0x2B068A21: mov dword ptr fs:[0], esp */ 8859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u); 8860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8861 esp = esp - 0x78u; /* 0x2B068A28: sub esp, 0x78 */ 8862 _flag_k = FK_CMP; 8863 eax = MEM32(ebp + 0x18); /* 0x2B068A2B: mov eax, dword ptr [ebp + 0x18] */ 8864 PUSH32(esp, ebx); /* 0x2B068A2E: push ebx */ 8865 PUSH32(esp, esi); /* 0x2B068A2F: push esi */ 8866 PUSH32(esp, edi); /* 0x2B068A30: push edi */ 8867 esi = ecx; /* 0x2B068A31: mov esi, ecx */ 8868 PUSH32(esp, 0x50u); /* 0x2B068A33: push 0x50 */ 8869 MEM32(esi + 0x1C) = eax; /* 0x2B068A35: mov dword ptr [esi + 0x1c], eax */ 8870 MEM32(ebp + (-0x1C)) = 0x80u; /* 0x2B068A38: mov dword ptr [ebp - 0x1c], 0x80 */ 8871 MEM32(ebp + (-0x18)) = 0x20u; /* 0x2B068A3F: mov dword ptr [ebp - 0x18], 0x20 */ 8872 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068A46: call 0x2b0ab212 */ /* not lifted */ 8873 RECOMP_FLAGS_IN(); 8874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8876 esp = esp + 4; /* 0x2B068A4B: add esp, 4 */ 8877 _flag_k = FK_ADD; 8878 MEM32(ebp + 0x18) = eax; /* 0x2B068A4E: mov dword ptr [ebp + 0x18], eax */ 8879 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8880 ebx = 0; /* 0x2B068A51: xor ebx, ebx */ 8881 _cf = 0; 8882 _flag_k = FK_TEST; 8883 /* cmp eax, ebx */ /* 0x2B068A53: cmp eax, ebx */ 8884 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8886 _flag_k = FK_CMP; 8887 MEM32(ebp + (-0x4)) = ebx; /* 0x2B068A55: mov dword ptr [ebp - 4], ebx */ 8888 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068A80; /* 0x2B068A58: je 0x2b068a80 */ 8889 L_2B068A5A: 8890 ecx = MEM32(ebp + 0x8); /* 0x2B068A5A: mov ecx, dword ptr [ebp + 8] */ 8891 PUSH32(esp, ebx); /* 0x2B068A5D: push ebx */ 8892 PUSH32(esp, 0x3F800000u); /* 0x2B068A5E: push 0x3f800000 */ 8893 PUSH32(esp, 0x3F800000u); /* 0x2B068A63: push 0x3f800000 */ 8894 PUSH32(esp, 0x5208u); /* 0x2B068A68: push 0x5208 */ 8895 PUSH32(esp, ecx); /* 0x2B068A6D: push ecx */ 8896 edx = ebp + (-0x1C); /* 0x2B068A6E: lea edx, [ebp - 0x1c] */ 8897 PUSH32(esp, edx); /* 0x2B068A71: push edx */ 8898 PUSH32(esp, 5); /* 0x2B068A72: push 5 */ 8899 PUSH32(esp, 7); /* 0x2B068A74: push 7 */ 8900 ecx = eax; /* 0x2B068A76: mov ecx, eax */ 8901 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B068A78: call dword ptr [0x2b0b5bd8] */ 8902 RECOMP_FLAGS_IN(); 8903 goto L_2B068A82; /* 0x2B068A7E: jmp 0x2b068a82 */ 8904 L_2B068A80: 8905 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8906 eax = 0; /* 0x2B068A80: xor eax, eax */ 8907 _cf = 0; 8908 _flag_k = FK_TEST; 8909 L_2B068A82: 8910 PUSH32(esp, 1); /* 0x2B068A82: push 1 */ 8911 MEM32(esi) = eax; /* 0x2B068A84: mov dword ptr [esi], eax */ 8912 eax = MEM32(eax + 0x28); /* 0x2B068A86: mov eax, dword ptr [eax + 0x28] */ 8913 PUSH32(esp, 0xFF00u); /* 0x2B068A89: push 0xff00 */ 8914 PUSH32(esp, ebx); /* 0x2B068A8E: push ebx */ 8915 ecx = eax; /* 0x2B068A8F: mov ecx, eax */ 8916 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068A91: mov dword ptr [ebp - 4], 0xffffffff */ 8917 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B068A98: call dword ptr [0x2b0b564c] */ 8918 RECOMP_FLAGS_IN(); 8919 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8920 eax = 0; /* 0x2B068A9E: xor eax, eax */ 8921 _cf = 0; 8922 _flag_k = FK_TEST; 8923 ecx = 0xCu; /* 0x2B068AA0: mov ecx, 0xc */ 8924 edi = ebp + (-0x84); /* 0x2B068AA5: lea edi, [ebp - 0x84] */ 8925 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B068AAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 8926 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8927 edx = 0; /* 0x2B068AAD: xor edx, edx */ 8928 _cf = 0; 8929 _flag_k = FK_TEST; 8930 eax = 0xD3u; /* 0x2B068AAF: mov eax, 0xd3 */ 8931 PUSH32(esp, 0xBCu); /* 0x2B068AB4: push 0xbc */ 8932 MEM32(ebp + (-0x14)) = edx; /* 0x2B068AB9: mov dword ptr [ebp - 0x14], edx */ 8933 MEM32(ebp + (-0x10)) = ebx; /* 0x2B068ABC: mov dword ptr [ebp - 0x10], ebx */ 8934 MEM32(ebp + (-0x84)) = 1; /* 0x2B068ABF: mov dword ptr [ebp - 0x84], 1 */ 8935 MEM32(ebp + (-0x74)) = edx; /* 0x2B068AC9: mov dword ptr [ebp - 0x74], edx */ 8936 MEM32(ebp + (-0x70)) = ebx; /* 0x2B068ACC: mov dword ptr [ebp - 0x70], ebx */ 8937 MEM32(ebp + (-0x6C)) = 0x5209u; /* 0x2B068ACF: mov dword ptr [ebp - 0x6c], 0x5209 */ 8938 MEM32(ebp + (-0x64)) = eax; /* 0x2B068AD6: mov dword ptr [ebp - 0x64], eax */ 8939 MEM32(ebp + (-0x60)) = 0xD4u; /* 0x2B068AD9: mov dword ptr [ebp - 0x60], 0xd4 */ 8940 MEM32(ebp + (-0x58)) = eax; /* 0x2B068AE0: mov dword ptr [ebp - 0x58], eax */ 8941 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068AE3: call 0x2b0ab212 */ /* not lifted */ 8942 RECOMP_FLAGS_IN(); 8943 edi = eax; /* 0x2B068AE8: mov edi, eax */ 8944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8946 esp = esp + 4; /* 0x2B068AEA: add esp, 4 */ 8947 _flag_k = FK_ADD; 8948 MEM32(ebp + 0x18) = edi; /* 0x2B068AED: mov dword ptr [ebp + 0x18], edi */ 8949 /* test edi, edi */ /* 0x2B068AF0: test edi, edi */ 8950 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8951 _cf = 0; 8952 _flag_k = FK_TEST; 8953 MEM32(ebp + (-0x4)) = 1; /* 0x2B068AF2: mov dword ptr [ebp - 4], 1 */ 8954 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068B17; /* 0x2B068AF9: je 0x2b068b17 */ 8955 L_2B068AFB: 8956 eax = MEM32(esi); /* 0x2B068AFB: mov eax, dword ptr [esi] */ 8957 PUSH32(esp, eax); /* 0x2B068AFD: push eax */ 8958 ecx = ebp + (-0x84); /* 0x2B068AFE: lea ecx, [ebp - 0x84] */ 8959 PUSH32(esp, ecx); /* 0x2B068B04: push ecx */ 8960 ecx = edi; /* 0x2B068B05: mov ecx, edi */ 8961 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B068B07: call dword ptr [0x2b0b5afc] */ 8962 RECOMP_FLAGS_IN(); 8963 MEM32(edi) = 0x2B0B645Cu; /* 0x2B068B0D: mov dword ptr [edi], 0x2b0b645c */ 8964 ecx = edi; /* 0x2B068B13: mov ecx, edi */ 8965 goto L_2B068B19; /* 0x2B068B15: jmp 0x2b068b19 */ 8966 L_2B068B17: 8967 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8968 ecx = 0; /* 0x2B068B17: xor ecx, ecx */ 8969 _cf = 0; 8970 _flag_k = FK_TEST; 8971 L_2B068B19: 8972 PUSH32(esp, 0x2B0EB0C0u); /* 0x2B068B19: push 0x2b0eb0c0 */ 8973 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068B1E: mov dword ptr [ebp - 4], 0xffffffff */ 8974 MEM32(esi + 0x4) = ecx; /* 0x2B068B25: mov dword ptr [esi + 4], ecx */ 8975 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B068B28: call dword ptr [0x2b0b5c04] */ 8976 RECOMP_FLAGS_IN(); 8977 edx = MEM32(ebp + 0xC); /* 0x2B068B2E: mov edx, dword ptr [ebp + 0xc] */ 8978 ecx = MEM32(esi + 0x4); /* 0x2B068B31: mov ecx, dword ptr [esi + 4] */ 8979 PUSH32(esp, edx); /* 0x2B068B34: push edx */ 8980 PUSH32(esp, 0x2B0690C0u); /* 0x2B068B35: push 0x2b0690c0 */ 8981 RECOMP_ICALL(MEM32(0x2B0B5AF8)); /* 0x2B068B3A: call dword ptr [0x2b0b5af8] */ 8982 RECOMP_FLAGS_IN(); 8983 eax = MEM32(esi + 0x4); /* 0x2B068B40: mov eax, dword ptr [esi + 4] */ 8984 MEM32(eax + 0x98) = 0x2B069030u; /* 0x2B068B43: mov dword ptr [eax + 0x98], 0x2b069030 */ 8985 MEM32(eax + 0x9C) = esi; /* 0x2B068B4D: mov dword ptr [eax + 0x9c], esi */ 8986 ecx = MEM32(esi + 0x4); /* 0x2B068B53: mov ecx, dword ptr [esi + 4] */ 8987 PUSH32(esp, 1); /* 0x2B068B56: push 1 */ 8988 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B068B58: call dword ptr [0x2b0b5ab4] */ 8989 RECOMP_FLAGS_IN(); 8990 ecx = MEM32(ebp + (-0x1C)); /* 0x2B068B5E: mov ecx, dword ptr [ebp - 0x1c] */ 8991 edi = MEM32(ebp + (-0x18)); /* 0x2B068B61: mov edi, dword ptr [ebp - 0x18] */ 8992 eax = ecx; /* 0x2B068B64: mov eax, ecx */ 8993 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068B66: cdq */ 8994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8996 eax = eax - edx; /* 0x2B068B67: sub eax, edx */ 8997 _flag_k = FK_CMP; 8998 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068B69: sar eax, 1 */ 8999 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9000 eax = (uint32_t)((int32_t)eax >> 1u); 9001 MEM32(ebp + (-0x14)) = eax; /* 0x2B068B6B: mov dword ptr [ebp - 0x14], eax */ 9002 eax = edi; /* 0x2B068B6E: mov eax, edi */ 9003 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068B70: cdq */ 9004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9006 eax = eax - edx; /* 0x2B068B71: sub eax, edx */ 9007 _flag_k = FK_CMP; 9008 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068B73: sar eax, 1 */ 9009 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9010 eax = (uint32_t)((int32_t)eax >> 1u); 9011 PUSH32(esp, 0x50u); /* 0x2B068B75: push 0x50 */ 9012 MEM32(ebp + (-0x10)) = eax; /* 0x2B068B77: mov dword ptr [ebp - 0x10], eax */ 9013 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9014 ebx = 0; /* 0x2B068B7A: xor ebx, ebx */ 9015 _cf = 0; 9016 _flag_k = FK_TEST; 9017 MEM32(ebp + (-0x34)) = ecx; /* 0x2B068B7C: mov dword ptr [ebp - 0x34], ecx */ 9018 MEM32(ebp + (-0x30)) = edi; /* 0x2B068B7F: mov dword ptr [ebp - 0x30], edi */ 9019 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068B82: call 0x2b0ab212 */ /* not lifted */ 9020 RECOMP_FLAGS_IN(); 9021 edi = eax; /* 0x2B068B87: mov edi, eax */ 9022 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9023 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9024 esp = esp + 4; /* 0x2B068B89: add esp, 4 */ 9025 _flag_k = FK_ADD; 9026 MEM32(ebp + 0x18) = edi; /* 0x2B068B8C: mov dword ptr [ebp + 0x18], edi */ 9027 /* test edi, edi */ /* 0x2B068B8F: test edi, edi */ 9028 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9029 _cf = 0; 9030 _flag_k = FK_TEST; 9031 MEM32(ebp + (-0x4)) = 2; /* 0x2B068B91: mov dword ptr [ebp - 4], 2 */ 9032 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068BC5; /* 0x2B068B98: je 0x2b068bc5 */ 9033 L_2B068B9A: 9034 eax = MEM32(esi); /* 0x2B068B9A: mov eax, dword ptr [esi] */ 9035 ecx = MEM32(ebp + (-0x10)); /* 0x2B068B9C: mov ecx, dword ptr [ebp - 0x10] */ 9036 edx = MEM32(ebp + (-0x14)); /* 0x2B068B9F: mov edx, dword ptr [ebp - 0x14] */ 9037 PUSH32(esp, eax); /* 0x2B068BA2: push eax */ 9038 eax = MEM32(ebp + 0x10); /* 0x2B068BA3: mov eax, dword ptr [ebp + 0x10] */ 9039 PUSH32(esp, 0x100u); /* 0x2B068BA6: push 0x100 */ 9040 PUSH32(esp, ecx); /* 0x2B068BAB: push ecx */ 9041 PUSH32(esp, edx); /* 0x2B068BAC: push edx */ 9042 PUSH32(esp, 0x5209u); /* 0x2B068BAD: push 0x5209 */ 9043 PUSH32(esp, eax); /* 0x2B068BB2: push eax */ 9044 PUSH32(esp, 2); /* 0x2B068BB3: push 2 */ 9045 ecx = edi; /* 0x2B068BB5: mov ecx, edi */ 9046 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B068BB7: call dword ptr [0x2b0b5950] */ 9047 RECOMP_FLAGS_IN(); 9048 MEM32(edi) = 0x2B0B6878u; /* 0x2B068BBD: mov dword ptr [edi], 0x2b0b6878 */ 9049 goto L_2B068BC7; /* 0x2B068BC3: jmp 0x2b068bc7 */ 9050 L_2B068BC5: 9051 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9052 edi = 0; /* 0x2B068BC5: xor edi, edi */ 9053 _cf = 0; 9054 _flag_k = FK_TEST; 9055 L_2B068BC7: 9056 edx = MEM32(ebp + (-0x30)); /* 0x2B068BC7: mov edx, dword ptr [ebp - 0x30] */ 9057 MEM32(esi + 0x8) = edi; /* 0x2B068BCA: mov dword ptr [esi + 8], edi */ 9058 eax = MEM32(edi + 0x34); /* 0x2B068BCD: mov eax, dword ptr [edi + 0x34] */ 9059 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9060 ecx = 0; /* 0x2B068BD0: xor ecx, ecx */ 9061 _cf = 0; 9062 _flag_k = FK_TEST; 9063 MEM32(eax) = ebx; /* 0x2B068BD2: mov dword ptr [eax], ebx */ 9064 MEM32(eax + 0x4) = ecx; /* 0x2B068BD4: mov dword ptr [eax + 4], ecx */ 9065 ecx = MEM32(ebp + (-0x34)); /* 0x2B068BD7: mov ecx, dword ptr [ebp - 0x34] */ 9066 MEM32(eax + 0x8) = ecx; /* 0x2B068BDA: mov dword ptr [eax + 8], ecx */ 9067 PUSH32(esp, 1); /* 0x2B068BDD: push 1 */ 9068 ecx = esi; /* 0x2B068BDF: mov ecx, esi */ 9069 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068BE1: mov dword ptr [ebp - 4], 0xffffffff */ 9070 MEM32(eax + 0xC) = edx; /* 0x2B068BE8: mov dword ptr [eax + 0xc], edx */ 9071 RECOMP_ICALL(0x2B069050u); /* 0x2B068BEB: call 0x2b069050 */ /* not lifted */ 9072 RECOMP_FLAGS_IN(); 9073 ecx = MEM32(esi + 0x1C); /* 0x2B068BF0: mov ecx, dword ptr [esi + 0x1c] */ 9074 eax = ebp + (-0x14); /* 0x2B068BF3: lea eax, [ebp - 0x14] */ 9075 PUSH32(esp, eax); /* 0x2B068BF6: push eax */ 9076 MEM32(ebp + (-0x14)) = 0x5Au; /* 0x2B068BF7: mov dword ptr [ebp - 0x14], 0x5a */ 9077 MEM32(ebp + (-0x10)) = 0xFFFFFF4Cu; /* 0x2B068BFE: mov dword ptr [ebp - 0x10], 0xffffff4c */ 9078 RECOMP_ICALL(0x2B069F80u); /* 0x2B068C05: call 0x2b069f80 */ /* not lifted */ 9079 RECOMP_FLAGS_IN(); 9080 PUSH32(esp, 0x38u); /* 0x2B068C0A: push 0x38 */ 9081 MEM32(ebp + (-0x24)) = 0x1Fu; /* 0x2B068C0C: mov dword ptr [ebp - 0x24], 0x1f */ 9082 MEM32(ebp + (-0x20)) = 0; /* 0x2B068C13: mov dword ptr [ebp - 0x20], 0 */ 9083 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068C1A: call 0x2b0ab212 */ /* not lifted */ 9084 RECOMP_FLAGS_IN(); 9085 edi = eax; /* 0x2B068C1F: mov edi, eax */ 9086 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9087 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9088 esp = esp + 4; /* 0x2B068C21: add esp, 4 */ 9089 _flag_k = FK_ADD; 9090 MEM32(ebp + 0x18) = edi; /* 0x2B068C24: mov dword ptr [ebp + 0x18], edi */ 9091 /* test edi, edi */ /* 0x2B068C27: test edi, edi */ 9092 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9093 _cf = 0; 9094 _flag_k = FK_TEST; 9095 MEM32(ebp + (-0x4)) = 3; /* 0x2B068C29: mov dword ptr [ebp - 4], 3 */ 9096 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068C57; /* 0x2B068C30: je 0x2b068c57 */ 9097 L_2B068C32: 9098 ecx = MEM32(esi + 0x1C); /* 0x2B068C32: mov ecx, dword ptr [esi + 0x1c] */ 9099 eax = MEM32(ecx + 0x14); /* 0x2B068C35: mov eax, dword ptr [ecx + 0x14] */ 9100 PUSH32(esp, eax); /* 0x2B068C38: push eax */ 9101 PUSH32(esp, 0x5208u); /* 0x2B068C39: push 0x5208 */ 9102 PUSH32(esp, 0xD5u); /* 0x2B068C3E: push 0xd5 */ 9103 edx = ebp + (-0x24); /* 0x2B068C43: lea edx, [ebp - 0x24] */ 9104 PUSH32(esp, edx); /* 0x2B068C46: push edx */ 9105 ecx = edi; /* 0x2B068C47: mov ecx, edi */ 9106 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068C49: call dword ptr [0x2b0b5948] */ 9107 RECOMP_FLAGS_IN(); 9108 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068C4F: mov dword ptr [edi], 0x2b0b68f4 */ 9109 goto L_2B068C59; /* 0x2B068C55: jmp 0x2b068c59 */ 9110 L_2B068C57: 9111 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9112 edi = 0; /* 0x2B068C57: xor edi, edi */ 9113 _cf = 0; 9114 _flag_k = FK_TEST; 9115 L_2B068C59: 9116 MEM32(esi + 0xC) = edi; /* 0x2B068C59: mov dword ptr [esi + 0xc], edi */ 9117 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068C5C: mov byte ptr [edi + 8], 0 */ 9118 ecx = MEM32(ebp + (-0x1C)); /* 0x2B068C60: mov ecx, dword ptr [ebp - 0x1c] */ 9119 ebx = MEM32(ebp + (-0x18)); /* 0x2B068C63: mov ebx, dword ptr [ebp - 0x18] */ 9120 eax = ecx; /* 0x2B068C66: mov eax, ecx */ 9121 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C68: cdq */ 9122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9124 eax = eax - edx; /* 0x2B068C69: sub eax, edx */ 9125 _flag_k = FK_CMP; 9126 edi = eax; /* 0x2B068C6B: mov edi, eax */ 9127 eax = ebx; /* 0x2B068C6D: mov eax, ebx */ 9128 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C6F: cdq */ 9129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9131 eax = eax - edx; /* 0x2B068C70: sub eax, edx */ 9132 _flag_k = FK_CMP; 9133 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068C72: sar eax, 1 */ 9134 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9135 eax = (uint32_t)((int32_t)eax >> 1u); 9136 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Fu); 9137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9138 ecx = ecx + 0x1Fu; /* 0x2B068C74: add ecx, 0x1f */ 9139 _flag_k = FK_ADD; 9140 if (1u) _cf = (((edi) >> 0) & 1u); /* 0x2B068C77: sar edi, 1 */ 9141 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9142 edi = (uint32_t)((int32_t)edi >> 1u); 9143 PUSH32(esp, 0x50u); /* 0x2B068C79: push 0x50 */ 9144 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068C7B: mov dword ptr [ebp - 4], 0xffffffff */ 9145 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Fu); 9146 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9147 edi = edi + 0x1Fu; /* 0x2B068C82: add edi, 0x1f */ 9148 _flag_k = FK_ADD; 9149 MEM32(ebp + (-0x30)) = eax; /* 0x2B068C85: mov dword ptr [ebp - 0x30], eax */ 9150 MEM32(ebp + 0x18) = ecx; /* 0x2B068C88: mov dword ptr [ebp + 0x18], ecx */ 9151 MEM32(ebp + (-0x54)) = 0x1Fu; /* 0x2B068C8B: mov dword ptr [ebp - 0x54], 0x1f */ 9152 MEM32(ebp + (-0x48)) = ebx; /* 0x2B068C92: mov dword ptr [ebp - 0x48], ebx */ 9153 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068C95: call 0x2b0ab212 */ /* not lifted */ 9154 RECOMP_FLAGS_IN(); 9155 ebx = eax; /* 0x2B068C9A: mov ebx, eax */ 9156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9158 esp = esp + 4; /* 0x2B068C9C: add esp, 4 */ 9159 _flag_k = FK_ADD; 9160 MEM32(ebp + 0x8) = ebx; /* 0x2B068C9F: mov dword ptr [ebp + 8], ebx */ 9161 /* test ebx, ebx */ /* 0x2B068CA2: test ebx, ebx */ 9162 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9163 _cf = 0; 9164 _flag_k = FK_TEST; 9165 MEM32(ebp + (-0x4)) = 4; /* 0x2B068CA4: mov dword ptr [ebp - 4], 4 */ 9166 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068CDB; /* 0x2B068CAB: je 0x2b068cdb */ 9167 L_2B068CAD: 9168 eax = MEM32(esi + 0x1C); /* 0x2B068CAD: mov eax, dword ptr [esi + 0x1c] */ 9169 eax = MEM32(eax + 0x14); /* 0x2B068CB0: mov eax, dword ptr [eax + 0x14] */ 9170 ecx = MEM32(ebp + (-0x30)); /* 0x2B068CB3: mov ecx, dword ptr [ebp - 0x30] */ 9171 edx = MEM32(ebp + 0x10); /* 0x2B068CB6: mov edx, dword ptr [ebp + 0x10] */ 9172 PUSH32(esp, eax); /* 0x2B068CB9: push eax */ 9173 PUSH32(esp, 0x100u); /* 0x2B068CBA: push 0x100 */ 9174 PUSH32(esp, ecx); /* 0x2B068CBF: push ecx */ 9175 PUSH32(esp, edi); /* 0x2B068CC0: push edi */ 9176 PUSH32(esp, 0x5209u); /* 0x2B068CC1: push 0x5209 */ 9177 PUSH32(esp, edx); /* 0x2B068CC6: push edx */ 9178 PUSH32(esp, 2); /* 0x2B068CC7: push 2 */ 9179 ecx = ebx; /* 0x2B068CC9: mov ecx, ebx */ 9180 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B068CCB: call dword ptr [0x2b0b5950] */ 9181 RECOMP_FLAGS_IN(); 9182 MEM32(ebx) = 0x2B0B6878u; /* 0x2B068CD1: mov dword ptr [ebx], 0x2b0b6878 */ 9183 eax = ebx; /* 0x2B068CD7: mov eax, ebx */ 9184 goto L_2B068CDD; /* 0x2B068CD9: jmp 0x2b068cdd */ 9185 L_2B068CDB: 9186 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9187 eax = 0; /* 0x2B068CDB: xor eax, eax */ 9188 _cf = 0; 9189 _flag_k = FK_TEST; 9190 L_2B068CDD: 9191 ecx = MEM32(ebp + (-0x54)); /* 0x2B068CDD: mov ecx, dword ptr [ebp - 0x54] */ 9192 edx = MEM32(ebp + 0x18); /* 0x2B068CE0: mov edx, dword ptr [ebp + 0x18] */ 9193 MEM32(esi + 0x10) = eax; /* 0x2B068CE3: mov dword ptr [esi + 0x10], eax */ 9194 eax = MEM32(eax + 0x34); /* 0x2B068CE6: mov eax, dword ptr [eax + 0x34] */ 9195 MEM32(eax) = ecx; /* 0x2B068CE9: mov dword ptr [eax], ecx */ 9196 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9197 ecx = 0; /* 0x2B068CEB: xor ecx, ecx */ 9198 _cf = 0; 9199 _flag_k = FK_TEST; 9200 MEM32(eax + 0x4) = ecx; /* 0x2B068CED: mov dword ptr [eax + 4], ecx */ 9201 ecx = MEM32(ebp + (-0x48)); /* 0x2B068CF0: mov ecx, dword ptr [ebp - 0x48] */ 9202 MEM32(eax + 0x8) = edx; /* 0x2B068CF3: mov dword ptr [eax + 8], edx */ 9203 MEM32(eax + 0xC) = ecx; /* 0x2B068CF6: mov dword ptr [eax + 0xc], ecx */ 9204 ecx = MEM32(esi + 0x10); /* 0x2B068CF9: mov ecx, dword ptr [esi + 0x10] */ 9205 PUSH32(esp, 0x00CCF2FFu); /* 0x2B068CFC: push 0xccf2ff */ 9206 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068D01: mov dword ptr [ebp - 4], 0xffffffff */ 9207 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B068D08: call dword ptr [0x2b0b5858] */ 9208 RECOMP_FLAGS_IN(); 9209 eax = MEM32(esi + 0x10); /* 0x2B068D0E: mov eax, dword ptr [esi + 0x10] */ 9210 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B068D11: mov byte ptr [eax + 8], 0 */ 9211 edi = MEM32(ebp + (-0x10)); /* 0x2B068D15: mov edi, dword ptr [ebp - 0x10] */ 9212 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Au); 9213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9214 edi = edi + 0x1Au; /* 0x2B068D18: add edi, 0x1a */ 9215 _flag_k = FK_ADD; 9216 PUSH32(esp, 0x14u); /* 0x2B068D1B: push 0x14 */ 9217 MEM32(ebp + (-0x10)) = edi; /* 0x2B068D1D: mov dword ptr [ebp - 0x10], edi */ 9218 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D20: call 0x2b0ab212 */ /* not lifted */ 9219 RECOMP_FLAGS_IN(); 9220 edi = eax; /* 0x2B068D25: mov edi, eax */ 9221 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9222 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9223 esp = esp + 4; /* 0x2B068D27: add esp, 4 */ 9224 _flag_k = FK_ADD; 9225 MEM32(ebp + 0x10) = edi; /* 0x2B068D2A: mov dword ptr [ebp + 0x10], edi */ 9226 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9227 ebx = 0; /* 0x2B068D2D: xor ebx, ebx */ 9228 _cf = 0; 9229 _flag_k = FK_TEST; 9230 /* cmp edi, ebx */ /* 0x2B068D2F: cmp edi, ebx */ 9231 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 9232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9233 _flag_k = FK_CMP; 9234 MEM32(ebp + (-0x4)) = 5; /* 0x2B068D31: mov dword ptr [ebp - 4], 5 */ 9235 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068D97; /* 0x2B068D38: je 0x2b068d97 */ 9236 L_2B068D3A: 9237 SET_LO8(edx, MEM8(ebp + 0x13)); /* 0x2B068D3A: mov dl, byte ptr [ebp + 0x13] */ 9238 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B068D3D: mov al, byte ptr [ebp + 0x13] */ 9239 PUSH32(esp, 0x18u); /* 0x2B068D40: push 0x18 */ 9240 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x2B068D42: mov byte ptr [edi], dl */ 9241 MEM8(edi + 0x1) = (uint8_t)(LO8(eax)); /* 0x2B068D44: mov byte ptr [edi + 1], al */ 9242 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x2B068D47: mov byte ptr [edi + 0xc], bl */ 9243 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D4A: call 0x2b0ab212 */ /* not lifted */ 9244 RECOMP_FLAGS_IN(); 9245 MEM32(eax + 0x4) = ebx; /* 0x2B068D4F: mov dword ptr [eax + 4], ebx */ 9246 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2B068D52: mov byte ptr [eax + 0x14], 1 */ 9247 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B068D56: mov byte ptr [eax + 0x15], bl */ 9248 MEM32(edi + 0x8) = eax; /* 0x2B068D59: mov dword ptr [edi + 8], eax */ 9249 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x2B068D5C: mov byte ptr [eax + 0x15], 1 */ 9250 eax = MEM32(edi + 0x8); /* 0x2B068D60: mov eax, dword ptr [edi + 8] */ 9251 MEM32(eax) = ebx; /* 0x2B068D63: mov dword ptr [eax], ebx */ 9252 ecx = MEM32(edi + 0x8); /* 0x2B068D65: mov ecx, dword ptr [edi + 8] */ 9253 MEM32(ecx + 0x8) = ebx; /* 0x2B068D68: mov dword ptr [ecx + 8], ebx */ 9254 ebx = MEM32(edi + 0x8); /* 0x2B068D6B: mov ebx, dword ptr [edi + 8] */ 9255 PUSH32(esp, 0x18u); /* 0x2B068D6E: push 0x18 */ 9256 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D70: call 0x2b0ab212 */ /* not lifted */ 9257 RECOMP_FLAGS_IN(); 9258 MEM32(eax + 0x4) = ebx; /* 0x2B068D75: mov dword ptr [eax + 4], ebx */ 9259 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x2B068D78: mov byte ptr [eax + 0x14], 0 */ 9260 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x2B068D7C: mov byte ptr [eax + 0x15], 0 */ 9261 MEM32(edi + 0x4) = eax; /* 0x2B068D80: mov dword ptr [edi + 4], eax */ 9262 MEM32(eax) = eax; /* 0x2B068D83: mov dword ptr [eax], eax */ 9263 eax = MEM32(edi + 0x4); /* 0x2B068D85: mov eax, dword ptr [edi + 4] */ 9264 MEM32(eax + 0x8) = eax; /* 0x2B068D88: mov dword ptr [eax + 8], eax */ 9265 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9267 esp = esp + 8; /* 0x2B068D8B: add esp, 8 */ 9268 _flag_k = FK_ADD; 9269 MEM32(edi + 0x10) = 0; /* 0x2B068D8E: mov dword ptr [edi + 0x10], 0 */ 9270 goto L_2B068D99; /* 0x2B068D95: jmp 0x2b068d99 */ 9271 L_2B068D97: 9272 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9273 edi = 0; /* 0x2B068D97: xor edi, edi */ 9274 _cf = 0; 9275 _flag_k = FK_TEST; 9276 L_2B068D99: 9277 eax = MEM32(ebp + 0x14); /* 0x2B068D99: mov eax, dword ptr [ebp + 0x14] */ 9278 MEM32(esi + 0x18) = edi; /* 0x2B068D9C: mov dword ptr [esi + 0x18], edi */ 9279 /* cmp MEM32(eax), 0 */ /* 0x2B068D9F: cmp dword ptr [eax], 0 */ 9280 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 9281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9282 _flag_k = FK_CMP; 9283 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DA2: mov dword ptr [ebp - 4], 0xffffffff */ 9284 MEM32(ebp + 0x10) = 0; /* 0x2B068DA9: mov dword ptr [ebp + 0x10], 0 */ 9285 if (CMP_LE(_flag_a, _flag_b)) goto L_2B068E48; /* 0x2B068DB0: jle 0x2b068e48 */ 9286 L_2B068DB6: 9287 ebx = eax; /* 0x2B068DB6: mov ebx, eax */ 9288 L_2B068DB8: 9289 edi = MEM32(eax); /* 0x2B068DB8: mov edi, dword ptr [eax] */ 9290 PUSH32(esp, 0x44u); /* 0x2B068DBA: push 0x44 */ 9291 MEM32(ebp + 0x18) = edi; /* 0x2B068DBC: mov dword ptr [ebp + 0x18], edi */ 9292 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068DBF: call 0x2b0ab212 */ /* not lifted */ 9293 RECOMP_FLAGS_IN(); 9294 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9295 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9296 esp = esp + 4; /* 0x2B068DC4: add esp, 4 */ 9297 _flag_k = FK_ADD; 9298 MEM32(ebp + 0x8) = eax; /* 0x2B068DC7: mov dword ptr [ebp + 8], eax */ 9299 /* test eax, eax */ /* 0x2B068DCA: test eax, eax */ 9300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9301 _cf = 0; 9302 _flag_k = FK_TEST; 9303 MEM32(ebp + (-0x4)) = 6; /* 0x2B068DCC: mov dword ptr [ebp - 4], 6 */ 9304 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068DEC; /* 0x2B068DD3: je 0x2b068dec */ 9305 L_2B068DD5: 9306 edx = MEM32(esi + 0x1C); /* 0x2B068DD5: mov edx, dword ptr [esi + 0x1c] */ 9307 ecx = MEM32(edx + 0x14); /* 0x2B068DD8: mov ecx, dword ptr [edx + 0x14] */ 9308 PUSH32(esp, ecx); /* 0x2B068DDB: push ecx */ 9309 ecx = MEM32(ebp + 0x10); /* 0x2B068DDC: mov ecx, dword ptr [ebp + 0x10] */ 9310 PUSH32(esp, edi); /* 0x2B068DDF: push edi */ 9311 PUSH32(esp, ecx); /* 0x2B068DE0: push ecx */ 9312 ecx = eax; /* 0x2B068DE1: mov ecx, eax */ 9313 RECOMP_ICALL(0x2B0677A0u); /* 0x2B068DE3: call 0x2b0677a0 */ /* not lifted */ 9314 RECOMP_FLAGS_IN(); 9315 edi = eax; /* 0x2B068DE8: mov edi, eax */ 9316 goto L_2B068DEE; /* 0x2B068DEA: jmp 0x2b068dee */ 9317 L_2B068DEC: 9318 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9319 edi = 0; /* 0x2B068DEC: xor edi, edi */ 9320 _cf = 0; 9321 _flag_k = FK_TEST; 9322 L_2B068DEE: 9323 edx = MEM32(ebp + 0x18); /* 0x2B068DEE: mov edx, dword ptr [ebp + 0x18] */ 9324 ecx = MEM32(esi + 0x18); /* 0x2B068DF1: mov ecx, dword ptr [esi + 0x18] */ 9325 eax = ebp + (-0x2C); /* 0x2B068DF4: lea eax, [ebp - 0x2c] */ 9326 MEM32(ebp + (-0x2C)) = edx; /* 0x2B068DF7: mov dword ptr [ebp - 0x2c], edx */ 9327 PUSH32(esp, eax); /* 0x2B068DFA: push eax */ 9328 edx = ebp + (-0x44); /* 0x2B068DFB: lea edx, [ebp - 0x44] */ 9329 PUSH32(esp, edx); /* 0x2B068DFE: push edx */ 9330 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DFF: mov dword ptr [ebp - 4], 0xffffffff */ 9331 MEM32(ebp + (-0x28)) = 0; /* 0x2B068E06: mov dword ptr [ebp - 0x28], 0 */ 9332 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B068E0D: call 0x2b06a0b0 */ /* not lifted */ 9333 RECOMP_FLAGS_IN(); 9334 ecx = eax; /* 0x2B068E12: mov ecx, eax */ 9335 eax = MEM32(ecx); /* 0x2B068E14: mov eax, dword ptr [ecx] */ 9336 edx = MEM32(ecx + 0x4); /* 0x2B068E16: mov edx, dword ptr [ecx + 4] */ 9337 MEM32(eax + 0x10) = edi; /* 0x2B068E19: mov dword ptr [eax + 0x10], edi */ 9338 ecx = MEM32(esi + 0x1C); /* 0x2B068E1C: mov ecx, dword ptr [esi + 0x1c] */ 9339 PUSH32(esp, edi); /* 0x2B068E1F: push edi */ 9340 MEM32(ebp + (-0x30)) = edx; /* 0x2B068E20: mov dword ptr [ebp - 0x30], edx */ 9341 RECOMP_ICALL(0x2B069C60u); /* 0x2B068E23: call 0x2b069c60 */ /* not lifted */ 9342 RECOMP_FLAGS_IN(); 9343 eax = MEM32(ebp + (-0x10)); /* 0x2B068E28: mov eax, dword ptr [ebp - 0x10] */ 9344 edi = MEM32(ebp + 0x10); /* 0x2B068E2B: mov edi, dword ptr [ebp + 0x10] */ 9345 ecx = MEM32(ebx + 0x4); /* 0x2B068E2E: mov ecx, dword ptr [ebx + 4] */ 9346 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 9347 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9348 ebx = ebx + 4; /* 0x2B068E31: add ebx, 4 */ 9349 _flag_k = FK_ADD; 9350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 9351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9352 eax = eax + 0x1Eu; /* 0x2B068E34: add eax, 0x1e */ 9353 _flag_k = FK_ADD; 9354 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 9355 edi = edi + 1; /* 0x2B068E37: inc edi */ 9356 _flag_k = FK_INC; 9357 /* test ecx, ecx */ /* 0x2B068E38: test ecx, ecx */ 9358 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9359 _cf = 0; 9360 _flag_k = FK_TEST; 9361 MEM32(ebp + (-0x10)) = eax; /* 0x2B068E3A: mov dword ptr [ebp - 0x10], eax */ 9362 MEM32(ebp + 0x10) = edi; /* 0x2B068E3D: mov dword ptr [ebp + 0x10], edi */ 9363 eax = ebx; /* 0x2B068E40: mov eax, ebx */ 9364 RECOMP_BACKEDGE(); 9365 if (TEST_G(_flag_a, _flag_b)) goto L_2B068DB8; /* 0x2B068E42: jg 0x2b068db8 */ 9366 L_2B068E48: 9367 PUSH32(esp, 0x38u); /* 0x2B068E48: push 0x38 */ 9368 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068E4A: call 0x2b0ab212 */ /* not lifted */ 9369 RECOMP_FLAGS_IN(); 9370 edi = eax; /* 0x2B068E4F: mov edi, eax */ 9371 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9373 esp = esp + 4; /* 0x2B068E51: add esp, 4 */ 9374 _flag_k = FK_ADD; 9375 MEM32(ebp + 0x10) = edi; /* 0x2B068E54: mov dword ptr [ebp + 0x10], edi */ 9376 /* test edi, edi */ /* 0x2B068E57: test edi, edi */ 9377 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9378 _cf = 0; 9379 _flag_k = FK_TEST; 9380 MEM32(ebp + (-0x4)) = 7; /* 0x2B068E59: mov dword ptr [ebp - 4], 7 */ 9381 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068E87; /* 0x2B068E60: je 0x2b068e87 */ 9382 L_2B068E62: 9383 eax = MEM32(esi + 0x1C); /* 0x2B068E62: mov eax, dword ptr [esi + 0x1c] */ 9384 ecx = MEM32(eax + 0x14); /* 0x2B068E65: mov ecx, dword ptr [eax + 0x14] */ 9385 PUSH32(esp, ecx); /* 0x2B068E68: push ecx */ 9386 PUSH32(esp, 0x5208u); /* 0x2B068E69: push 0x5208 */ 9387 PUSH32(esp, 0xD6u); /* 0x2B068E6E: push 0xd6 */ 9388 edx = ebp + (-0x14); /* 0x2B068E73: lea edx, [ebp - 0x14] */ 9389 PUSH32(esp, edx); /* 0x2B068E76: push edx */ 9390 ecx = edi; /* 0x2B068E77: mov ecx, edi */ 9391 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068E79: call dword ptr [0x2b0b5948] */ 9392 RECOMP_FLAGS_IN(); 9393 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068E7F: mov dword ptr [edi], 0x2b0b68f4 */ 9394 goto L_2B068E89; /* 0x2B068E85: jmp 0x2b068e89 */ 9395 L_2B068E87: 9396 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9397 edi = 0; /* 0x2B068E87: xor edi, edi */ 9398 _cf = 0; 9399 _flag_k = FK_TEST; 9400 L_2B068E89: 9401 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 9402 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 9403 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 9404 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 9405 eax = esi; /* 0x2B068E94: mov eax, esi */ 9406 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 9407 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 9408 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 9409 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 9410 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 9411 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 9412 RECOMP_REGS_OUT(); 9413 } 9414 9415 void sub_2B068A82(void) { 9416 int _fpu_cmp = 0; 9417 uint32_t _cf = 0; 9418 int _df = 1; 9419 uint32_t _flag_k = FK_NONE; 9420 uint32_t _flag_a = 0, _flag_b = 0; 9421 uint32_t _itail_tgt = 0; 9422 RECOMP_REGS_LOCALS 9423 RECOMP_ENTER(0x2B068A82u); 9424 9425 L_2B068A82: 9426 PUSH32(esp, 1); /* 0x2B068A82: push 1 */ 9427 MEM32(esi) = eax; /* 0x2B068A84: mov dword ptr [esi], eax */ 9428 eax = MEM32(eax + 0x28); /* 0x2B068A86: mov eax, dword ptr [eax + 0x28] */ 9429 PUSH32(esp, 0xFF00u); /* 0x2B068A89: push 0xff00 */ 9430 PUSH32(esp, ebx); /* 0x2B068A8E: push ebx */ 9431 ecx = eax; /* 0x2B068A8F: mov ecx, eax */ 9432 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068A91: mov dword ptr [ebp - 4], 0xffffffff */ 9433 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B068A98: call dword ptr [0x2b0b564c] */ 9434 RECOMP_FLAGS_IN(); 9435 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9436 eax = 0; /* 0x2B068A9E: xor eax, eax */ 9437 _cf = 0; 9438 _flag_k = FK_TEST; 9439 ecx = 0xCu; /* 0x2B068AA0: mov ecx, 0xc */ 9440 edi = ebp + (-0x84); /* 0x2B068AA5: lea edi, [ebp - 0x84] */ 9441 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B068AAB: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 9442 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9443 edx = 0; /* 0x2B068AAD: xor edx, edx */ 9444 _cf = 0; 9445 _flag_k = FK_TEST; 9446 eax = 0xD3u; /* 0x2B068AAF: mov eax, 0xd3 */ 9447 PUSH32(esp, 0xBCu); /* 0x2B068AB4: push 0xbc */ 9448 MEM32(ebp + (-0x14)) = edx; /* 0x2B068AB9: mov dword ptr [ebp - 0x14], edx */ 9449 MEM32(ebp + (-0x10)) = ebx; /* 0x2B068ABC: mov dword ptr [ebp - 0x10], ebx */ 9450 MEM32(ebp + (-0x84)) = 1; /* 0x2B068ABF: mov dword ptr [ebp - 0x84], 1 */ 9451 MEM32(ebp + (-0x74)) = edx; /* 0x2B068AC9: mov dword ptr [ebp - 0x74], edx */ 9452 MEM32(ebp + (-0x70)) = ebx; /* 0x2B068ACC: mov dword ptr [ebp - 0x70], ebx */ 9453 MEM32(ebp + (-0x6C)) = 0x5209u; /* 0x2B068ACF: mov dword ptr [ebp - 0x6c], 0x5209 */ 9454 MEM32(ebp + (-0x64)) = eax; /* 0x2B068AD6: mov dword ptr [ebp - 0x64], eax */ 9455 MEM32(ebp + (-0x60)) = 0xD4u; /* 0x2B068AD9: mov dword ptr [ebp - 0x60], 0xd4 */ 9456 MEM32(ebp + (-0x58)) = eax; /* 0x2B068AE0: mov dword ptr [ebp - 0x58], eax */ 9457 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068AE3: call 0x2b0ab212 */ /* not lifted */ 9458 RECOMP_FLAGS_IN(); 9459 edi = eax; /* 0x2B068AE8: mov edi, eax */ 9460 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9461 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9462 esp = esp + 4; /* 0x2B068AEA: add esp, 4 */ 9463 _flag_k = FK_ADD; 9464 MEM32(ebp + 0x18) = edi; /* 0x2B068AED: mov dword ptr [ebp + 0x18], edi */ 9465 /* test edi, edi */ /* 0x2B068AF0: test edi, edi */ 9466 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9467 _cf = 0; 9468 _flag_k = FK_TEST; 9469 MEM32(ebp + (-0x4)) = 1; /* 0x2B068AF2: mov dword ptr [ebp - 4], 1 */ 9470 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068B17; /* 0x2B068AF9: je 0x2b068b17 */ 9471 L_2B068AFB: 9472 eax = MEM32(esi); /* 0x2B068AFB: mov eax, dword ptr [esi] */ 9473 PUSH32(esp, eax); /* 0x2B068AFD: push eax */ 9474 ecx = ebp + (-0x84); /* 0x2B068AFE: lea ecx, [ebp - 0x84] */ 9475 PUSH32(esp, ecx); /* 0x2B068B04: push ecx */ 9476 ecx = edi; /* 0x2B068B05: mov ecx, edi */ 9477 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B068B07: call dword ptr [0x2b0b5afc] */ 9478 RECOMP_FLAGS_IN(); 9479 MEM32(edi) = 0x2B0B645Cu; /* 0x2B068B0D: mov dword ptr [edi], 0x2b0b645c */ 9480 ecx = edi; /* 0x2B068B13: mov ecx, edi */ 9481 goto L_2B068B19; /* 0x2B068B15: jmp 0x2b068b19 */ 9482 L_2B068B17: 9483 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9484 ecx = 0; /* 0x2B068B17: xor ecx, ecx */ 9485 _cf = 0; 9486 _flag_k = FK_TEST; 9487 L_2B068B19: 9488 PUSH32(esp, 0x2B0EB0C0u); /* 0x2B068B19: push 0x2b0eb0c0 */ 9489 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068B1E: mov dword ptr [ebp - 4], 0xffffffff */ 9490 MEM32(esi + 0x4) = ecx; /* 0x2B068B25: mov dword ptr [esi + 4], ecx */ 9491 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B068B28: call dword ptr [0x2b0b5c04] */ 9492 RECOMP_FLAGS_IN(); 9493 edx = MEM32(ebp + 0xC); /* 0x2B068B2E: mov edx, dword ptr [ebp + 0xc] */ 9494 ecx = MEM32(esi + 0x4); /* 0x2B068B31: mov ecx, dword ptr [esi + 4] */ 9495 PUSH32(esp, edx); /* 0x2B068B34: push edx */ 9496 PUSH32(esp, 0x2B0690C0u); /* 0x2B068B35: push 0x2b0690c0 */ 9497 RECOMP_ICALL(MEM32(0x2B0B5AF8)); /* 0x2B068B3A: call dword ptr [0x2b0b5af8] */ 9498 RECOMP_FLAGS_IN(); 9499 eax = MEM32(esi + 0x4); /* 0x2B068B40: mov eax, dword ptr [esi + 4] */ 9500 MEM32(eax + 0x98) = 0x2B069030u; /* 0x2B068B43: mov dword ptr [eax + 0x98], 0x2b069030 */ 9501 MEM32(eax + 0x9C) = esi; /* 0x2B068B4D: mov dword ptr [eax + 0x9c], esi */ 9502 ecx = MEM32(esi + 0x4); /* 0x2B068B53: mov ecx, dword ptr [esi + 4] */ 9503 PUSH32(esp, 1); /* 0x2B068B56: push 1 */ 9504 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B068B58: call dword ptr [0x2b0b5ab4] */ 9505 RECOMP_FLAGS_IN(); 9506 ecx = MEM32(ebp + (-0x1C)); /* 0x2B068B5E: mov ecx, dword ptr [ebp - 0x1c] */ 9507 edi = MEM32(ebp + (-0x18)); /* 0x2B068B61: mov edi, dword ptr [ebp - 0x18] */ 9508 eax = ecx; /* 0x2B068B64: mov eax, ecx */ 9509 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068B66: cdq */ 9510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9512 eax = eax - edx; /* 0x2B068B67: sub eax, edx */ 9513 _flag_k = FK_CMP; 9514 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068B69: sar eax, 1 */ 9515 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9516 eax = (uint32_t)((int32_t)eax >> 1u); 9517 MEM32(ebp + (-0x14)) = eax; /* 0x2B068B6B: mov dword ptr [ebp - 0x14], eax */ 9518 eax = edi; /* 0x2B068B6E: mov eax, edi */ 9519 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068B70: cdq */ 9520 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9522 eax = eax - edx; /* 0x2B068B71: sub eax, edx */ 9523 _flag_k = FK_CMP; 9524 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068B73: sar eax, 1 */ 9525 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9526 eax = (uint32_t)((int32_t)eax >> 1u); 9527 PUSH32(esp, 0x50u); /* 0x2B068B75: push 0x50 */ 9528 MEM32(ebp + (-0x10)) = eax; /* 0x2B068B77: mov dword ptr [ebp - 0x10], eax */ 9529 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9530 ebx = 0; /* 0x2B068B7A: xor ebx, ebx */ 9531 _cf = 0; 9532 _flag_k = FK_TEST; 9533 MEM32(ebp + (-0x34)) = ecx; /* 0x2B068B7C: mov dword ptr [ebp - 0x34], ecx */ 9534 MEM32(ebp + (-0x30)) = edi; /* 0x2B068B7F: mov dword ptr [ebp - 0x30], edi */ 9535 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068B82: call 0x2b0ab212 */ /* not lifted */ 9536 RECOMP_FLAGS_IN(); 9537 edi = eax; /* 0x2B068B87: mov edi, eax */ 9538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9540 esp = esp + 4; /* 0x2B068B89: add esp, 4 */ 9541 _flag_k = FK_ADD; 9542 MEM32(ebp + 0x18) = edi; /* 0x2B068B8C: mov dword ptr [ebp + 0x18], edi */ 9543 /* test edi, edi */ /* 0x2B068B8F: test edi, edi */ 9544 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9545 _cf = 0; 9546 _flag_k = FK_TEST; 9547 MEM32(ebp + (-0x4)) = 2; /* 0x2B068B91: mov dword ptr [ebp - 4], 2 */ 9548 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068BC5; /* 0x2B068B98: je 0x2b068bc5 */ 9549 L_2B068B9A: 9550 eax = MEM32(esi); /* 0x2B068B9A: mov eax, dword ptr [esi] */ 9551 ecx = MEM32(ebp + (-0x10)); /* 0x2B068B9C: mov ecx, dword ptr [ebp - 0x10] */ 9552 edx = MEM32(ebp + (-0x14)); /* 0x2B068B9F: mov edx, dword ptr [ebp - 0x14] */ 9553 PUSH32(esp, eax); /* 0x2B068BA2: push eax */ 9554 eax = MEM32(ebp + 0x10); /* 0x2B068BA3: mov eax, dword ptr [ebp + 0x10] */ 9555 PUSH32(esp, 0x100u); /* 0x2B068BA6: push 0x100 */ 9556 PUSH32(esp, ecx); /* 0x2B068BAB: push ecx */ 9557 PUSH32(esp, edx); /* 0x2B068BAC: push edx */ 9558 PUSH32(esp, 0x5209u); /* 0x2B068BAD: push 0x5209 */ 9559 PUSH32(esp, eax); /* 0x2B068BB2: push eax */ 9560 PUSH32(esp, 2); /* 0x2B068BB3: push 2 */ 9561 ecx = edi; /* 0x2B068BB5: mov ecx, edi */ 9562 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B068BB7: call dword ptr [0x2b0b5950] */ 9563 RECOMP_FLAGS_IN(); 9564 MEM32(edi) = 0x2B0B6878u; /* 0x2B068BBD: mov dword ptr [edi], 0x2b0b6878 */ 9565 goto L_2B068BC7; /* 0x2B068BC3: jmp 0x2b068bc7 */ 9566 L_2B068BC5: 9567 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9568 edi = 0; /* 0x2B068BC5: xor edi, edi */ 9569 _cf = 0; 9570 _flag_k = FK_TEST; 9571 L_2B068BC7: 9572 edx = MEM32(ebp + (-0x30)); /* 0x2B068BC7: mov edx, dword ptr [ebp - 0x30] */ 9573 MEM32(esi + 0x8) = edi; /* 0x2B068BCA: mov dword ptr [esi + 8], edi */ 9574 eax = MEM32(edi + 0x34); /* 0x2B068BCD: mov eax, dword ptr [edi + 0x34] */ 9575 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9576 ecx = 0; /* 0x2B068BD0: xor ecx, ecx */ 9577 _cf = 0; 9578 _flag_k = FK_TEST; 9579 MEM32(eax) = ebx; /* 0x2B068BD2: mov dword ptr [eax], ebx */ 9580 MEM32(eax + 0x4) = ecx; /* 0x2B068BD4: mov dword ptr [eax + 4], ecx */ 9581 ecx = MEM32(ebp + (-0x34)); /* 0x2B068BD7: mov ecx, dword ptr [ebp - 0x34] */ 9582 MEM32(eax + 0x8) = ecx; /* 0x2B068BDA: mov dword ptr [eax + 8], ecx */ 9583 PUSH32(esp, 1); /* 0x2B068BDD: push 1 */ 9584 ecx = esi; /* 0x2B068BDF: mov ecx, esi */ 9585 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068BE1: mov dword ptr [ebp - 4], 0xffffffff */ 9586 MEM32(eax + 0xC) = edx; /* 0x2B068BE8: mov dword ptr [eax + 0xc], edx */ 9587 RECOMP_ICALL(0x2B069050u); /* 0x2B068BEB: call 0x2b069050 */ /* not lifted */ 9588 RECOMP_FLAGS_IN(); 9589 ecx = MEM32(esi + 0x1C); /* 0x2B068BF0: mov ecx, dword ptr [esi + 0x1c] */ 9590 eax = ebp + (-0x14); /* 0x2B068BF3: lea eax, [ebp - 0x14] */ 9591 PUSH32(esp, eax); /* 0x2B068BF6: push eax */ 9592 MEM32(ebp + (-0x14)) = 0x5Au; /* 0x2B068BF7: mov dword ptr [ebp - 0x14], 0x5a */ 9593 MEM32(ebp + (-0x10)) = 0xFFFFFF4Cu; /* 0x2B068BFE: mov dword ptr [ebp - 0x10], 0xffffff4c */ 9594 RECOMP_ICALL(0x2B069F80u); /* 0x2B068C05: call 0x2b069f80 */ /* not lifted */ 9595 RECOMP_FLAGS_IN(); 9596 PUSH32(esp, 0x38u); /* 0x2B068C0A: push 0x38 */ 9597 MEM32(ebp + (-0x24)) = 0x1Fu; /* 0x2B068C0C: mov dword ptr [ebp - 0x24], 0x1f */ 9598 MEM32(ebp + (-0x20)) = 0; /* 0x2B068C13: mov dword ptr [ebp - 0x20], 0 */ 9599 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068C1A: call 0x2b0ab212 */ /* not lifted */ 9600 RECOMP_FLAGS_IN(); 9601 edi = eax; /* 0x2B068C1F: mov edi, eax */ 9602 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9604 esp = esp + 4; /* 0x2B068C21: add esp, 4 */ 9605 _flag_k = FK_ADD; 9606 MEM32(ebp + 0x18) = edi; /* 0x2B068C24: mov dword ptr [ebp + 0x18], edi */ 9607 /* test edi, edi */ /* 0x2B068C27: test edi, edi */ 9608 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9609 _cf = 0; 9610 _flag_k = FK_TEST; 9611 MEM32(ebp + (-0x4)) = 3; /* 0x2B068C29: mov dword ptr [ebp - 4], 3 */ 9612 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068C57; /* 0x2B068C30: je 0x2b068c57 */ 9613 L_2B068C32: 9614 ecx = MEM32(esi + 0x1C); /* 0x2B068C32: mov ecx, dword ptr [esi + 0x1c] */ 9615 eax = MEM32(ecx + 0x14); /* 0x2B068C35: mov eax, dword ptr [ecx + 0x14] */ 9616 PUSH32(esp, eax); /* 0x2B068C38: push eax */ 9617 PUSH32(esp, 0x5208u); /* 0x2B068C39: push 0x5208 */ 9618 PUSH32(esp, 0xD5u); /* 0x2B068C3E: push 0xd5 */ 9619 edx = ebp + (-0x24); /* 0x2B068C43: lea edx, [ebp - 0x24] */ 9620 PUSH32(esp, edx); /* 0x2B068C46: push edx */ 9621 ecx = edi; /* 0x2B068C47: mov ecx, edi */ 9622 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068C49: call dword ptr [0x2b0b5948] */ 9623 RECOMP_FLAGS_IN(); 9624 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068C4F: mov dword ptr [edi], 0x2b0b68f4 */ 9625 goto L_2B068C59; /* 0x2B068C55: jmp 0x2b068c59 */ 9626 L_2B068C57: 9627 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9628 edi = 0; /* 0x2B068C57: xor edi, edi */ 9629 _cf = 0; 9630 _flag_k = FK_TEST; 9631 L_2B068C59: 9632 MEM32(esi + 0xC) = edi; /* 0x2B068C59: mov dword ptr [esi + 0xc], edi */ 9633 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068C5C: mov byte ptr [edi + 8], 0 */ 9634 ecx = MEM32(ebp + (-0x1C)); /* 0x2B068C60: mov ecx, dword ptr [ebp - 0x1c] */ 9635 ebx = MEM32(ebp + (-0x18)); /* 0x2B068C63: mov ebx, dword ptr [ebp - 0x18] */ 9636 eax = ecx; /* 0x2B068C66: mov eax, ecx */ 9637 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C68: cdq */ 9638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9640 eax = eax - edx; /* 0x2B068C69: sub eax, edx */ 9641 _flag_k = FK_CMP; 9642 edi = eax; /* 0x2B068C6B: mov edi, eax */ 9643 eax = ebx; /* 0x2B068C6D: mov eax, ebx */ 9644 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C6F: cdq */ 9645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9647 eax = eax - edx; /* 0x2B068C70: sub eax, edx */ 9648 _flag_k = FK_CMP; 9649 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068C72: sar eax, 1 */ 9650 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9651 eax = (uint32_t)((int32_t)eax >> 1u); 9652 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Fu); 9653 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9654 ecx = ecx + 0x1Fu; /* 0x2B068C74: add ecx, 0x1f */ 9655 _flag_k = FK_ADD; 9656 if (1u) _cf = (((edi) >> 0) & 1u); /* 0x2B068C77: sar edi, 1 */ 9657 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9658 edi = (uint32_t)((int32_t)edi >> 1u); 9659 PUSH32(esp, 0x50u); /* 0x2B068C79: push 0x50 */ 9660 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068C7B: mov dword ptr [ebp - 4], 0xffffffff */ 9661 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Fu); 9662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9663 edi = edi + 0x1Fu; /* 0x2B068C82: add edi, 0x1f */ 9664 _flag_k = FK_ADD; 9665 MEM32(ebp + (-0x30)) = eax; /* 0x2B068C85: mov dword ptr [ebp - 0x30], eax */ 9666 MEM32(ebp + 0x18) = ecx; /* 0x2B068C88: mov dword ptr [ebp + 0x18], ecx */ 9667 MEM32(ebp + (-0x54)) = 0x1Fu; /* 0x2B068C8B: mov dword ptr [ebp - 0x54], 0x1f */ 9668 MEM32(ebp + (-0x48)) = ebx; /* 0x2B068C92: mov dword ptr [ebp - 0x48], ebx */ 9669 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068C95: call 0x2b0ab212 */ /* not lifted */ 9670 RECOMP_FLAGS_IN(); 9671 ebx = eax; /* 0x2B068C9A: mov ebx, eax */ 9672 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9674 esp = esp + 4; /* 0x2B068C9C: add esp, 4 */ 9675 _flag_k = FK_ADD; 9676 MEM32(ebp + 0x8) = ebx; /* 0x2B068C9F: mov dword ptr [ebp + 8], ebx */ 9677 /* test ebx, ebx */ /* 0x2B068CA2: test ebx, ebx */ 9678 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9679 _cf = 0; 9680 _flag_k = FK_TEST; 9681 MEM32(ebp + (-0x4)) = 4; /* 0x2B068CA4: mov dword ptr [ebp - 4], 4 */ 9682 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068CDB; /* 0x2B068CAB: je 0x2b068cdb */ 9683 L_2B068CAD: 9684 eax = MEM32(esi + 0x1C); /* 0x2B068CAD: mov eax, dword ptr [esi + 0x1c] */ 9685 eax = MEM32(eax + 0x14); /* 0x2B068CB0: mov eax, dword ptr [eax + 0x14] */ 9686 ecx = MEM32(ebp + (-0x30)); /* 0x2B068CB3: mov ecx, dword ptr [ebp - 0x30] */ 9687 edx = MEM32(ebp + 0x10); /* 0x2B068CB6: mov edx, dword ptr [ebp + 0x10] */ 9688 PUSH32(esp, eax); /* 0x2B068CB9: push eax */ 9689 PUSH32(esp, 0x100u); /* 0x2B068CBA: push 0x100 */ 9690 PUSH32(esp, ecx); /* 0x2B068CBF: push ecx */ 9691 PUSH32(esp, edi); /* 0x2B068CC0: push edi */ 9692 PUSH32(esp, 0x5209u); /* 0x2B068CC1: push 0x5209 */ 9693 PUSH32(esp, edx); /* 0x2B068CC6: push edx */ 9694 PUSH32(esp, 2); /* 0x2B068CC7: push 2 */ 9695 ecx = ebx; /* 0x2B068CC9: mov ecx, ebx */ 9696 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B068CCB: call dword ptr [0x2b0b5950] */ 9697 RECOMP_FLAGS_IN(); 9698 MEM32(ebx) = 0x2B0B6878u; /* 0x2B068CD1: mov dword ptr [ebx], 0x2b0b6878 */ 9699 eax = ebx; /* 0x2B068CD7: mov eax, ebx */ 9700 goto L_2B068CDD; /* 0x2B068CD9: jmp 0x2b068cdd */ 9701 L_2B068CDB: 9702 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9703 eax = 0; /* 0x2B068CDB: xor eax, eax */ 9704 _cf = 0; 9705 _flag_k = FK_TEST; 9706 L_2B068CDD: 9707 ecx = MEM32(ebp + (-0x54)); /* 0x2B068CDD: mov ecx, dword ptr [ebp - 0x54] */ 9708 edx = MEM32(ebp + 0x18); /* 0x2B068CE0: mov edx, dword ptr [ebp + 0x18] */ 9709 MEM32(esi + 0x10) = eax; /* 0x2B068CE3: mov dword ptr [esi + 0x10], eax */ 9710 eax = MEM32(eax + 0x34); /* 0x2B068CE6: mov eax, dword ptr [eax + 0x34] */ 9711 MEM32(eax) = ecx; /* 0x2B068CE9: mov dword ptr [eax], ecx */ 9712 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9713 ecx = 0; /* 0x2B068CEB: xor ecx, ecx */ 9714 _cf = 0; 9715 _flag_k = FK_TEST; 9716 MEM32(eax + 0x4) = ecx; /* 0x2B068CED: mov dword ptr [eax + 4], ecx */ 9717 ecx = MEM32(ebp + (-0x48)); /* 0x2B068CF0: mov ecx, dword ptr [ebp - 0x48] */ 9718 MEM32(eax + 0x8) = edx; /* 0x2B068CF3: mov dword ptr [eax + 8], edx */ 9719 MEM32(eax + 0xC) = ecx; /* 0x2B068CF6: mov dword ptr [eax + 0xc], ecx */ 9720 ecx = MEM32(esi + 0x10); /* 0x2B068CF9: mov ecx, dword ptr [esi + 0x10] */ 9721 PUSH32(esp, 0x00CCF2FFu); /* 0x2B068CFC: push 0xccf2ff */ 9722 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068D01: mov dword ptr [ebp - 4], 0xffffffff */ 9723 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B068D08: call dword ptr [0x2b0b5858] */ 9724 RECOMP_FLAGS_IN(); 9725 eax = MEM32(esi + 0x10); /* 0x2B068D0E: mov eax, dword ptr [esi + 0x10] */ 9726 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B068D11: mov byte ptr [eax + 8], 0 */ 9727 edi = MEM32(ebp + (-0x10)); /* 0x2B068D15: mov edi, dword ptr [ebp - 0x10] */ 9728 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Au); 9729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9730 edi = edi + 0x1Au; /* 0x2B068D18: add edi, 0x1a */ 9731 _flag_k = FK_ADD; 9732 PUSH32(esp, 0x14u); /* 0x2B068D1B: push 0x14 */ 9733 MEM32(ebp + (-0x10)) = edi; /* 0x2B068D1D: mov dword ptr [ebp - 0x10], edi */ 9734 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D20: call 0x2b0ab212 */ /* not lifted */ 9735 RECOMP_FLAGS_IN(); 9736 edi = eax; /* 0x2B068D25: mov edi, eax */ 9737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9738 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9739 esp = esp + 4; /* 0x2B068D27: add esp, 4 */ 9740 _flag_k = FK_ADD; 9741 MEM32(ebp + 0x10) = edi; /* 0x2B068D2A: mov dword ptr [ebp + 0x10], edi */ 9742 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9743 ebx = 0; /* 0x2B068D2D: xor ebx, ebx */ 9744 _cf = 0; 9745 _flag_k = FK_TEST; 9746 /* cmp edi, ebx */ /* 0x2B068D2F: cmp edi, ebx */ 9747 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 9748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9749 _flag_k = FK_CMP; 9750 MEM32(ebp + (-0x4)) = 5; /* 0x2B068D31: mov dword ptr [ebp - 4], 5 */ 9751 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068D97; /* 0x2B068D38: je 0x2b068d97 */ 9752 L_2B068D3A: 9753 SET_LO8(edx, MEM8(ebp + 0x13)); /* 0x2B068D3A: mov dl, byte ptr [ebp + 0x13] */ 9754 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B068D3D: mov al, byte ptr [ebp + 0x13] */ 9755 PUSH32(esp, 0x18u); /* 0x2B068D40: push 0x18 */ 9756 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x2B068D42: mov byte ptr [edi], dl */ 9757 MEM8(edi + 0x1) = (uint8_t)(LO8(eax)); /* 0x2B068D44: mov byte ptr [edi + 1], al */ 9758 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x2B068D47: mov byte ptr [edi + 0xc], bl */ 9759 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D4A: call 0x2b0ab212 */ /* not lifted */ 9760 RECOMP_FLAGS_IN(); 9761 MEM32(eax + 0x4) = ebx; /* 0x2B068D4F: mov dword ptr [eax + 4], ebx */ 9762 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2B068D52: mov byte ptr [eax + 0x14], 1 */ 9763 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B068D56: mov byte ptr [eax + 0x15], bl */ 9764 MEM32(edi + 0x8) = eax; /* 0x2B068D59: mov dword ptr [edi + 8], eax */ 9765 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x2B068D5C: mov byte ptr [eax + 0x15], 1 */ 9766 eax = MEM32(edi + 0x8); /* 0x2B068D60: mov eax, dword ptr [edi + 8] */ 9767 MEM32(eax) = ebx; /* 0x2B068D63: mov dword ptr [eax], ebx */ 9768 ecx = MEM32(edi + 0x8); /* 0x2B068D65: mov ecx, dword ptr [edi + 8] */ 9769 MEM32(ecx + 0x8) = ebx; /* 0x2B068D68: mov dword ptr [ecx + 8], ebx */ 9770 ebx = MEM32(edi + 0x8); /* 0x2B068D6B: mov ebx, dword ptr [edi + 8] */ 9771 PUSH32(esp, 0x18u); /* 0x2B068D6E: push 0x18 */ 9772 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D70: call 0x2b0ab212 */ /* not lifted */ 9773 RECOMP_FLAGS_IN(); 9774 MEM32(eax + 0x4) = ebx; /* 0x2B068D75: mov dword ptr [eax + 4], ebx */ 9775 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x2B068D78: mov byte ptr [eax + 0x14], 0 */ 9776 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x2B068D7C: mov byte ptr [eax + 0x15], 0 */ 9777 MEM32(edi + 0x4) = eax; /* 0x2B068D80: mov dword ptr [edi + 4], eax */ 9778 MEM32(eax) = eax; /* 0x2B068D83: mov dword ptr [eax], eax */ 9779 eax = MEM32(edi + 0x4); /* 0x2B068D85: mov eax, dword ptr [edi + 4] */ 9780 MEM32(eax + 0x8) = eax; /* 0x2B068D88: mov dword ptr [eax + 8], eax */ 9781 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9783 esp = esp + 8; /* 0x2B068D8B: add esp, 8 */ 9784 _flag_k = FK_ADD; 9785 MEM32(edi + 0x10) = 0; /* 0x2B068D8E: mov dword ptr [edi + 0x10], 0 */ 9786 goto L_2B068D99; /* 0x2B068D95: jmp 0x2b068d99 */ 9787 L_2B068D97: 9788 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9789 edi = 0; /* 0x2B068D97: xor edi, edi */ 9790 _cf = 0; 9791 _flag_k = FK_TEST; 9792 L_2B068D99: 9793 eax = MEM32(ebp + 0x14); /* 0x2B068D99: mov eax, dword ptr [ebp + 0x14] */ 9794 MEM32(esi + 0x18) = edi; /* 0x2B068D9C: mov dword ptr [esi + 0x18], edi */ 9795 /* cmp MEM32(eax), 0 */ /* 0x2B068D9F: cmp dword ptr [eax], 0 */ 9796 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 9797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9798 _flag_k = FK_CMP; 9799 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DA2: mov dword ptr [ebp - 4], 0xffffffff */ 9800 MEM32(ebp + 0x10) = 0; /* 0x2B068DA9: mov dword ptr [ebp + 0x10], 0 */ 9801 if (CMP_LE(_flag_a, _flag_b)) goto L_2B068E48; /* 0x2B068DB0: jle 0x2b068e48 */ 9802 L_2B068DB6: 9803 ebx = eax; /* 0x2B068DB6: mov ebx, eax */ 9804 L_2B068DB8: 9805 edi = MEM32(eax); /* 0x2B068DB8: mov edi, dword ptr [eax] */ 9806 PUSH32(esp, 0x44u); /* 0x2B068DBA: push 0x44 */ 9807 MEM32(ebp + 0x18) = edi; /* 0x2B068DBC: mov dword ptr [ebp + 0x18], edi */ 9808 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068DBF: call 0x2b0ab212 */ /* not lifted */ 9809 RECOMP_FLAGS_IN(); 9810 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9812 esp = esp + 4; /* 0x2B068DC4: add esp, 4 */ 9813 _flag_k = FK_ADD; 9814 MEM32(ebp + 0x8) = eax; /* 0x2B068DC7: mov dword ptr [ebp + 8], eax */ 9815 /* test eax, eax */ /* 0x2B068DCA: test eax, eax */ 9816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9817 _cf = 0; 9818 _flag_k = FK_TEST; 9819 MEM32(ebp + (-0x4)) = 6; /* 0x2B068DCC: mov dword ptr [ebp - 4], 6 */ 9820 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068DEC; /* 0x2B068DD3: je 0x2b068dec */ 9821 L_2B068DD5: 9822 edx = MEM32(esi + 0x1C); /* 0x2B068DD5: mov edx, dword ptr [esi + 0x1c] */ 9823 ecx = MEM32(edx + 0x14); /* 0x2B068DD8: mov ecx, dword ptr [edx + 0x14] */ 9824 PUSH32(esp, ecx); /* 0x2B068DDB: push ecx */ 9825 ecx = MEM32(ebp + 0x10); /* 0x2B068DDC: mov ecx, dword ptr [ebp + 0x10] */ 9826 PUSH32(esp, edi); /* 0x2B068DDF: push edi */ 9827 PUSH32(esp, ecx); /* 0x2B068DE0: push ecx */ 9828 ecx = eax; /* 0x2B068DE1: mov ecx, eax */ 9829 RECOMP_ICALL(0x2B0677A0u); /* 0x2B068DE3: call 0x2b0677a0 */ /* not lifted */ 9830 RECOMP_FLAGS_IN(); 9831 edi = eax; /* 0x2B068DE8: mov edi, eax */ 9832 goto L_2B068DEE; /* 0x2B068DEA: jmp 0x2b068dee */ 9833 L_2B068DEC: 9834 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9835 edi = 0; /* 0x2B068DEC: xor edi, edi */ 9836 _cf = 0; 9837 _flag_k = FK_TEST; 9838 L_2B068DEE: 9839 edx = MEM32(ebp + 0x18); /* 0x2B068DEE: mov edx, dword ptr [ebp + 0x18] */ 9840 ecx = MEM32(esi + 0x18); /* 0x2B068DF1: mov ecx, dword ptr [esi + 0x18] */ 9841 eax = ebp + (-0x2C); /* 0x2B068DF4: lea eax, [ebp - 0x2c] */ 9842 MEM32(ebp + (-0x2C)) = edx; /* 0x2B068DF7: mov dword ptr [ebp - 0x2c], edx */ 9843 PUSH32(esp, eax); /* 0x2B068DFA: push eax */ 9844 edx = ebp + (-0x44); /* 0x2B068DFB: lea edx, [ebp - 0x44] */ 9845 PUSH32(esp, edx); /* 0x2B068DFE: push edx */ 9846 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DFF: mov dword ptr [ebp - 4], 0xffffffff */ 9847 MEM32(ebp + (-0x28)) = 0; /* 0x2B068E06: mov dword ptr [ebp - 0x28], 0 */ 9848 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B068E0D: call 0x2b06a0b0 */ /* not lifted */ 9849 RECOMP_FLAGS_IN(); 9850 ecx = eax; /* 0x2B068E12: mov ecx, eax */ 9851 eax = MEM32(ecx); /* 0x2B068E14: mov eax, dword ptr [ecx] */ 9852 edx = MEM32(ecx + 0x4); /* 0x2B068E16: mov edx, dword ptr [ecx + 4] */ 9853 MEM32(eax + 0x10) = edi; /* 0x2B068E19: mov dword ptr [eax + 0x10], edi */ 9854 ecx = MEM32(esi + 0x1C); /* 0x2B068E1C: mov ecx, dword ptr [esi + 0x1c] */ 9855 PUSH32(esp, edi); /* 0x2B068E1F: push edi */ 9856 MEM32(ebp + (-0x30)) = edx; /* 0x2B068E20: mov dword ptr [ebp - 0x30], edx */ 9857 RECOMP_ICALL(0x2B069C60u); /* 0x2B068E23: call 0x2b069c60 */ /* not lifted */ 9858 RECOMP_FLAGS_IN(); 9859 eax = MEM32(ebp + (-0x10)); /* 0x2B068E28: mov eax, dword ptr [ebp - 0x10] */ 9860 edi = MEM32(ebp + 0x10); /* 0x2B068E2B: mov edi, dword ptr [ebp + 0x10] */ 9861 ecx = MEM32(ebx + 0x4); /* 0x2B068E2E: mov ecx, dword ptr [ebx + 4] */ 9862 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 9863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9864 ebx = ebx + 4; /* 0x2B068E31: add ebx, 4 */ 9865 _flag_k = FK_ADD; 9866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 9867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9868 eax = eax + 0x1Eu; /* 0x2B068E34: add eax, 0x1e */ 9869 _flag_k = FK_ADD; 9870 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 9871 edi = edi + 1; /* 0x2B068E37: inc edi */ 9872 _flag_k = FK_INC; 9873 /* test ecx, ecx */ /* 0x2B068E38: test ecx, ecx */ 9874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9875 _cf = 0; 9876 _flag_k = FK_TEST; 9877 MEM32(ebp + (-0x10)) = eax; /* 0x2B068E3A: mov dword ptr [ebp - 0x10], eax */ 9878 MEM32(ebp + 0x10) = edi; /* 0x2B068E3D: mov dword ptr [ebp + 0x10], edi */ 9879 eax = ebx; /* 0x2B068E40: mov eax, ebx */ 9880 RECOMP_BACKEDGE(); 9881 if (TEST_G(_flag_a, _flag_b)) goto L_2B068DB8; /* 0x2B068E42: jg 0x2b068db8 */ 9882 L_2B068E48: 9883 PUSH32(esp, 0x38u); /* 0x2B068E48: push 0x38 */ 9884 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068E4A: call 0x2b0ab212 */ /* not lifted */ 9885 RECOMP_FLAGS_IN(); 9886 edi = eax; /* 0x2B068E4F: mov edi, eax */ 9887 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9888 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9889 esp = esp + 4; /* 0x2B068E51: add esp, 4 */ 9890 _flag_k = FK_ADD; 9891 MEM32(ebp + 0x10) = edi; /* 0x2B068E54: mov dword ptr [ebp + 0x10], edi */ 9892 /* test edi, edi */ /* 0x2B068E57: test edi, edi */ 9893 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9894 _cf = 0; 9895 _flag_k = FK_TEST; 9896 MEM32(ebp + (-0x4)) = 7; /* 0x2B068E59: mov dword ptr [ebp - 4], 7 */ 9897 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068E87; /* 0x2B068E60: je 0x2b068e87 */ 9898 L_2B068E62: 9899 eax = MEM32(esi + 0x1C); /* 0x2B068E62: mov eax, dword ptr [esi + 0x1c] */ 9900 ecx = MEM32(eax + 0x14); /* 0x2B068E65: mov ecx, dword ptr [eax + 0x14] */ 9901 PUSH32(esp, ecx); /* 0x2B068E68: push ecx */ 9902 PUSH32(esp, 0x5208u); /* 0x2B068E69: push 0x5208 */ 9903 PUSH32(esp, 0xD6u); /* 0x2B068E6E: push 0xd6 */ 9904 edx = ebp + (-0x14); /* 0x2B068E73: lea edx, [ebp - 0x14] */ 9905 PUSH32(esp, edx); /* 0x2B068E76: push edx */ 9906 ecx = edi; /* 0x2B068E77: mov ecx, edi */ 9907 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068E79: call dword ptr [0x2b0b5948] */ 9908 RECOMP_FLAGS_IN(); 9909 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068E7F: mov dword ptr [edi], 0x2b0b68f4 */ 9910 goto L_2B068E89; /* 0x2B068E85: jmp 0x2b068e89 */ 9911 L_2B068E87: 9912 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9913 edi = 0; /* 0x2B068E87: xor edi, edi */ 9914 _cf = 0; 9915 _flag_k = FK_TEST; 9916 L_2B068E89: 9917 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 9918 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 9919 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 9920 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 9921 eax = esi; /* 0x2B068E94: mov eax, esi */ 9922 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 9923 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 9924 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 9925 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 9926 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 9927 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 9928 RECOMP_REGS_OUT(); 9929 } 9930 9931 void sub_2B068B19(void) { 9932 int _fpu_cmp = 0; 9933 uint32_t _cf = 0; 9934 int _df = 1; 9935 uint32_t _flag_k = FK_NONE; 9936 uint32_t _flag_a = 0, _flag_b = 0; 9937 uint32_t _itail_tgt = 0; 9938 RECOMP_REGS_LOCALS 9939 RECOMP_ENTER(0x2B068B19u); 9940 9941 L_2B068B19: 9942 PUSH32(esp, 0x2B0EB0C0u); /* 0x2B068B19: push 0x2b0eb0c0 */ 9943 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068B1E: mov dword ptr [ebp - 4], 0xffffffff */ 9944 MEM32(esi + 0x4) = ecx; /* 0x2B068B25: mov dword ptr [esi + 4], ecx */ 9945 RECOMP_ICALL(MEM32(0x2B0B5C04)); /* 0x2B068B28: call dword ptr [0x2b0b5c04] */ 9946 RECOMP_FLAGS_IN(); 9947 edx = MEM32(ebp + 0xC); /* 0x2B068B2E: mov edx, dword ptr [ebp + 0xc] */ 9948 ecx = MEM32(esi + 0x4); /* 0x2B068B31: mov ecx, dword ptr [esi + 4] */ 9949 PUSH32(esp, edx); /* 0x2B068B34: push edx */ 9950 PUSH32(esp, 0x2B0690C0u); /* 0x2B068B35: push 0x2b0690c0 */ 9951 RECOMP_ICALL(MEM32(0x2B0B5AF8)); /* 0x2B068B3A: call dword ptr [0x2b0b5af8] */ 9952 RECOMP_FLAGS_IN(); 9953 eax = MEM32(esi + 0x4); /* 0x2B068B40: mov eax, dword ptr [esi + 4] */ 9954 MEM32(eax + 0x98) = 0x2B069030u; /* 0x2B068B43: mov dword ptr [eax + 0x98], 0x2b069030 */ 9955 MEM32(eax + 0x9C) = esi; /* 0x2B068B4D: mov dword ptr [eax + 0x9c], esi */ 9956 ecx = MEM32(esi + 0x4); /* 0x2B068B53: mov ecx, dword ptr [esi + 4] */ 9957 PUSH32(esp, 1); /* 0x2B068B56: push 1 */ 9958 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B068B58: call dword ptr [0x2b0b5ab4] */ 9959 RECOMP_FLAGS_IN(); 9960 ecx = MEM32(ebp + (-0x1C)); /* 0x2B068B5E: mov ecx, dword ptr [ebp - 0x1c] */ 9961 edi = MEM32(ebp + (-0x18)); /* 0x2B068B61: mov edi, dword ptr [ebp - 0x18] */ 9962 eax = ecx; /* 0x2B068B64: mov eax, ecx */ 9963 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068B66: cdq */ 9964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9966 eax = eax - edx; /* 0x2B068B67: sub eax, edx */ 9967 _flag_k = FK_CMP; 9968 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068B69: sar eax, 1 */ 9969 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9970 eax = (uint32_t)((int32_t)eax >> 1u); 9971 MEM32(ebp + (-0x14)) = eax; /* 0x2B068B6B: mov dword ptr [ebp - 0x14], eax */ 9972 eax = edi; /* 0x2B068B6E: mov eax, edi */ 9973 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068B70: cdq */ 9974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9976 eax = eax - edx; /* 0x2B068B71: sub eax, edx */ 9977 _flag_k = FK_CMP; 9978 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068B73: sar eax, 1 */ 9979 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9980 eax = (uint32_t)((int32_t)eax >> 1u); 9981 PUSH32(esp, 0x50u); /* 0x2B068B75: push 0x50 */ 9982 MEM32(ebp + (-0x10)) = eax; /* 0x2B068B77: mov dword ptr [ebp - 0x10], eax */ 9983 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9984 ebx = 0; /* 0x2B068B7A: xor ebx, ebx */ 9985 _cf = 0; 9986 _flag_k = FK_TEST; 9987 MEM32(ebp + (-0x34)) = ecx; /* 0x2B068B7C: mov dword ptr [ebp - 0x34], ecx */ 9988 MEM32(ebp + (-0x30)) = edi; /* 0x2B068B7F: mov dword ptr [ebp - 0x30], edi */ 9989 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068B82: call 0x2b0ab212 */ /* not lifted */ 9990 RECOMP_FLAGS_IN(); 9991 edi = eax; /* 0x2B068B87: mov edi, eax */ 9992 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9994 esp = esp + 4; /* 0x2B068B89: add esp, 4 */ 9995 _flag_k = FK_ADD; 9996 MEM32(ebp + 0x18) = edi; /* 0x2B068B8C: mov dword ptr [ebp + 0x18], edi */ 9997 /* test edi, edi */ /* 0x2B068B8F: test edi, edi */ 9998 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9999 _cf = 0; 10000 _flag_k = FK_TEST; 10001 MEM32(ebp + (-0x4)) = 2; /* 0x2B068B91: mov dword ptr [ebp - 4], 2 */ 10002 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068BC5; /* 0x2B068B98: je 0x2b068bc5 */ 10003 L_2B068B9A: 10004 eax = MEM32(esi); /* 0x2B068B9A: mov eax, dword ptr [esi] */ 10005 ecx = MEM32(ebp + (-0x10)); /* 0x2B068B9C: mov ecx, dword ptr [ebp - 0x10] */ 10006 edx = MEM32(ebp + (-0x14)); /* 0x2B068B9F: mov edx, dword ptr [ebp - 0x14] */ 10007 PUSH32(esp, eax); /* 0x2B068BA2: push eax */ 10008 eax = MEM32(ebp + 0x10); /* 0x2B068BA3: mov eax, dword ptr [ebp + 0x10] */ 10009 PUSH32(esp, 0x100u); /* 0x2B068BA6: push 0x100 */ 10010 PUSH32(esp, ecx); /* 0x2B068BAB: push ecx */ 10011 PUSH32(esp, edx); /* 0x2B068BAC: push edx */ 10012 PUSH32(esp, 0x5209u); /* 0x2B068BAD: push 0x5209 */ 10013 PUSH32(esp, eax); /* 0x2B068BB2: push eax */ 10014 PUSH32(esp, 2); /* 0x2B068BB3: push 2 */ 10015 ecx = edi; /* 0x2B068BB5: mov ecx, edi */ 10016 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B068BB7: call dword ptr [0x2b0b5950] */ 10017 RECOMP_FLAGS_IN(); 10018 MEM32(edi) = 0x2B0B6878u; /* 0x2B068BBD: mov dword ptr [edi], 0x2b0b6878 */ 10019 goto L_2B068BC7; /* 0x2B068BC3: jmp 0x2b068bc7 */ 10020 L_2B068BC5: 10021 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10022 edi = 0; /* 0x2B068BC5: xor edi, edi */ 10023 _cf = 0; 10024 _flag_k = FK_TEST; 10025 L_2B068BC7: 10026 edx = MEM32(ebp + (-0x30)); /* 0x2B068BC7: mov edx, dword ptr [ebp - 0x30] */ 10027 MEM32(esi + 0x8) = edi; /* 0x2B068BCA: mov dword ptr [esi + 8], edi */ 10028 eax = MEM32(edi + 0x34); /* 0x2B068BCD: mov eax, dword ptr [edi + 0x34] */ 10029 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10030 ecx = 0; /* 0x2B068BD0: xor ecx, ecx */ 10031 _cf = 0; 10032 _flag_k = FK_TEST; 10033 MEM32(eax) = ebx; /* 0x2B068BD2: mov dword ptr [eax], ebx */ 10034 MEM32(eax + 0x4) = ecx; /* 0x2B068BD4: mov dword ptr [eax + 4], ecx */ 10035 ecx = MEM32(ebp + (-0x34)); /* 0x2B068BD7: mov ecx, dword ptr [ebp - 0x34] */ 10036 MEM32(eax + 0x8) = ecx; /* 0x2B068BDA: mov dword ptr [eax + 8], ecx */ 10037 PUSH32(esp, 1); /* 0x2B068BDD: push 1 */ 10038 ecx = esi; /* 0x2B068BDF: mov ecx, esi */ 10039 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068BE1: mov dword ptr [ebp - 4], 0xffffffff */ 10040 MEM32(eax + 0xC) = edx; /* 0x2B068BE8: mov dword ptr [eax + 0xc], edx */ 10041 RECOMP_ICALL(0x2B069050u); /* 0x2B068BEB: call 0x2b069050 */ /* not lifted */ 10042 RECOMP_FLAGS_IN(); 10043 ecx = MEM32(esi + 0x1C); /* 0x2B068BF0: mov ecx, dword ptr [esi + 0x1c] */ 10044 eax = ebp + (-0x14); /* 0x2B068BF3: lea eax, [ebp - 0x14] */ 10045 PUSH32(esp, eax); /* 0x2B068BF6: push eax */ 10046 MEM32(ebp + (-0x14)) = 0x5Au; /* 0x2B068BF7: mov dword ptr [ebp - 0x14], 0x5a */ 10047 MEM32(ebp + (-0x10)) = 0xFFFFFF4Cu; /* 0x2B068BFE: mov dword ptr [ebp - 0x10], 0xffffff4c */ 10048 RECOMP_ICALL(0x2B069F80u); /* 0x2B068C05: call 0x2b069f80 */ /* not lifted */ 10049 RECOMP_FLAGS_IN(); 10050 PUSH32(esp, 0x38u); /* 0x2B068C0A: push 0x38 */ 10051 MEM32(ebp + (-0x24)) = 0x1Fu; /* 0x2B068C0C: mov dword ptr [ebp - 0x24], 0x1f */ 10052 MEM32(ebp + (-0x20)) = 0; /* 0x2B068C13: mov dword ptr [ebp - 0x20], 0 */ 10053 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068C1A: call 0x2b0ab212 */ /* not lifted */ 10054 RECOMP_FLAGS_IN(); 10055 edi = eax; /* 0x2B068C1F: mov edi, eax */ 10056 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10057 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10058 esp = esp + 4; /* 0x2B068C21: add esp, 4 */ 10059 _flag_k = FK_ADD; 10060 MEM32(ebp + 0x18) = edi; /* 0x2B068C24: mov dword ptr [ebp + 0x18], edi */ 10061 /* test edi, edi */ /* 0x2B068C27: test edi, edi */ 10062 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10063 _cf = 0; 10064 _flag_k = FK_TEST; 10065 MEM32(ebp + (-0x4)) = 3; /* 0x2B068C29: mov dword ptr [ebp - 4], 3 */ 10066 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068C57; /* 0x2B068C30: je 0x2b068c57 */ 10067 L_2B068C32: 10068 ecx = MEM32(esi + 0x1C); /* 0x2B068C32: mov ecx, dword ptr [esi + 0x1c] */ 10069 eax = MEM32(ecx + 0x14); /* 0x2B068C35: mov eax, dword ptr [ecx + 0x14] */ 10070 PUSH32(esp, eax); /* 0x2B068C38: push eax */ 10071 PUSH32(esp, 0x5208u); /* 0x2B068C39: push 0x5208 */ 10072 PUSH32(esp, 0xD5u); /* 0x2B068C3E: push 0xd5 */ 10073 edx = ebp + (-0x24); /* 0x2B068C43: lea edx, [ebp - 0x24] */ 10074 PUSH32(esp, edx); /* 0x2B068C46: push edx */ 10075 ecx = edi; /* 0x2B068C47: mov ecx, edi */ 10076 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068C49: call dword ptr [0x2b0b5948] */ 10077 RECOMP_FLAGS_IN(); 10078 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068C4F: mov dword ptr [edi], 0x2b0b68f4 */ 10079 goto L_2B068C59; /* 0x2B068C55: jmp 0x2b068c59 */ 10080 L_2B068C57: 10081 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10082 edi = 0; /* 0x2B068C57: xor edi, edi */ 10083 _cf = 0; 10084 _flag_k = FK_TEST; 10085 L_2B068C59: 10086 MEM32(esi + 0xC) = edi; /* 0x2B068C59: mov dword ptr [esi + 0xc], edi */ 10087 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068C5C: mov byte ptr [edi + 8], 0 */ 10088 ecx = MEM32(ebp + (-0x1C)); /* 0x2B068C60: mov ecx, dword ptr [ebp - 0x1c] */ 10089 ebx = MEM32(ebp + (-0x18)); /* 0x2B068C63: mov ebx, dword ptr [ebp - 0x18] */ 10090 eax = ecx; /* 0x2B068C66: mov eax, ecx */ 10091 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C68: cdq */ 10092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10094 eax = eax - edx; /* 0x2B068C69: sub eax, edx */ 10095 _flag_k = FK_CMP; 10096 edi = eax; /* 0x2B068C6B: mov edi, eax */ 10097 eax = ebx; /* 0x2B068C6D: mov eax, ebx */ 10098 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C6F: cdq */ 10099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10101 eax = eax - edx; /* 0x2B068C70: sub eax, edx */ 10102 _flag_k = FK_CMP; 10103 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068C72: sar eax, 1 */ 10104 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10105 eax = (uint32_t)((int32_t)eax >> 1u); 10106 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Fu); 10107 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10108 ecx = ecx + 0x1Fu; /* 0x2B068C74: add ecx, 0x1f */ 10109 _flag_k = FK_ADD; 10110 if (1u) _cf = (((edi) >> 0) & 1u); /* 0x2B068C77: sar edi, 1 */ 10111 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10112 edi = (uint32_t)((int32_t)edi >> 1u); 10113 PUSH32(esp, 0x50u); /* 0x2B068C79: push 0x50 */ 10114 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068C7B: mov dword ptr [ebp - 4], 0xffffffff */ 10115 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Fu); 10116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10117 edi = edi + 0x1Fu; /* 0x2B068C82: add edi, 0x1f */ 10118 _flag_k = FK_ADD; 10119 MEM32(ebp + (-0x30)) = eax; /* 0x2B068C85: mov dword ptr [ebp - 0x30], eax */ 10120 MEM32(ebp + 0x18) = ecx; /* 0x2B068C88: mov dword ptr [ebp + 0x18], ecx */ 10121 MEM32(ebp + (-0x54)) = 0x1Fu; /* 0x2B068C8B: mov dword ptr [ebp - 0x54], 0x1f */ 10122 MEM32(ebp + (-0x48)) = ebx; /* 0x2B068C92: mov dword ptr [ebp - 0x48], ebx */ 10123 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068C95: call 0x2b0ab212 */ /* not lifted */ 10124 RECOMP_FLAGS_IN(); 10125 ebx = eax; /* 0x2B068C9A: mov ebx, eax */ 10126 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10128 esp = esp + 4; /* 0x2B068C9C: add esp, 4 */ 10129 _flag_k = FK_ADD; 10130 MEM32(ebp + 0x8) = ebx; /* 0x2B068C9F: mov dword ptr [ebp + 8], ebx */ 10131 /* test ebx, ebx */ /* 0x2B068CA2: test ebx, ebx */ 10132 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10133 _cf = 0; 10134 _flag_k = FK_TEST; 10135 MEM32(ebp + (-0x4)) = 4; /* 0x2B068CA4: mov dword ptr [ebp - 4], 4 */ 10136 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068CDB; /* 0x2B068CAB: je 0x2b068cdb */ 10137 L_2B068CAD: 10138 eax = MEM32(esi + 0x1C); /* 0x2B068CAD: mov eax, dword ptr [esi + 0x1c] */ 10139 eax = MEM32(eax + 0x14); /* 0x2B068CB0: mov eax, dword ptr [eax + 0x14] */ 10140 ecx = MEM32(ebp + (-0x30)); /* 0x2B068CB3: mov ecx, dword ptr [ebp - 0x30] */ 10141 edx = MEM32(ebp + 0x10); /* 0x2B068CB6: mov edx, dword ptr [ebp + 0x10] */ 10142 PUSH32(esp, eax); /* 0x2B068CB9: push eax */ 10143 PUSH32(esp, 0x100u); /* 0x2B068CBA: push 0x100 */ 10144 PUSH32(esp, ecx); /* 0x2B068CBF: push ecx */ 10145 PUSH32(esp, edi); /* 0x2B068CC0: push edi */ 10146 PUSH32(esp, 0x5209u); /* 0x2B068CC1: push 0x5209 */ 10147 PUSH32(esp, edx); /* 0x2B068CC6: push edx */ 10148 PUSH32(esp, 2); /* 0x2B068CC7: push 2 */ 10149 ecx = ebx; /* 0x2B068CC9: mov ecx, ebx */ 10150 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B068CCB: call dword ptr [0x2b0b5950] */ 10151 RECOMP_FLAGS_IN(); 10152 MEM32(ebx) = 0x2B0B6878u; /* 0x2B068CD1: mov dword ptr [ebx], 0x2b0b6878 */ 10153 eax = ebx; /* 0x2B068CD7: mov eax, ebx */ 10154 goto L_2B068CDD; /* 0x2B068CD9: jmp 0x2b068cdd */ 10155 L_2B068CDB: 10156 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10157 eax = 0; /* 0x2B068CDB: xor eax, eax */ 10158 _cf = 0; 10159 _flag_k = FK_TEST; 10160 L_2B068CDD: 10161 ecx = MEM32(ebp + (-0x54)); /* 0x2B068CDD: mov ecx, dword ptr [ebp - 0x54] */ 10162 edx = MEM32(ebp + 0x18); /* 0x2B068CE0: mov edx, dword ptr [ebp + 0x18] */ 10163 MEM32(esi + 0x10) = eax; /* 0x2B068CE3: mov dword ptr [esi + 0x10], eax */ 10164 eax = MEM32(eax + 0x34); /* 0x2B068CE6: mov eax, dword ptr [eax + 0x34] */ 10165 MEM32(eax) = ecx; /* 0x2B068CE9: mov dword ptr [eax], ecx */ 10166 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10167 ecx = 0; /* 0x2B068CEB: xor ecx, ecx */ 10168 _cf = 0; 10169 _flag_k = FK_TEST; 10170 MEM32(eax + 0x4) = ecx; /* 0x2B068CED: mov dword ptr [eax + 4], ecx */ 10171 ecx = MEM32(ebp + (-0x48)); /* 0x2B068CF0: mov ecx, dword ptr [ebp - 0x48] */ 10172 MEM32(eax + 0x8) = edx; /* 0x2B068CF3: mov dword ptr [eax + 8], edx */ 10173 MEM32(eax + 0xC) = ecx; /* 0x2B068CF6: mov dword ptr [eax + 0xc], ecx */ 10174 ecx = MEM32(esi + 0x10); /* 0x2B068CF9: mov ecx, dword ptr [esi + 0x10] */ 10175 PUSH32(esp, 0x00CCF2FFu); /* 0x2B068CFC: push 0xccf2ff */ 10176 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068D01: mov dword ptr [ebp - 4], 0xffffffff */ 10177 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B068D08: call dword ptr [0x2b0b5858] */ 10178 RECOMP_FLAGS_IN(); 10179 eax = MEM32(esi + 0x10); /* 0x2B068D0E: mov eax, dword ptr [esi + 0x10] */ 10180 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B068D11: mov byte ptr [eax + 8], 0 */ 10181 edi = MEM32(ebp + (-0x10)); /* 0x2B068D15: mov edi, dword ptr [ebp - 0x10] */ 10182 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Au); 10183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10184 edi = edi + 0x1Au; /* 0x2B068D18: add edi, 0x1a */ 10185 _flag_k = FK_ADD; 10186 PUSH32(esp, 0x14u); /* 0x2B068D1B: push 0x14 */ 10187 MEM32(ebp + (-0x10)) = edi; /* 0x2B068D1D: mov dword ptr [ebp - 0x10], edi */ 10188 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D20: call 0x2b0ab212 */ /* not lifted */ 10189 RECOMP_FLAGS_IN(); 10190 edi = eax; /* 0x2B068D25: mov edi, eax */ 10191 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10193 esp = esp + 4; /* 0x2B068D27: add esp, 4 */ 10194 _flag_k = FK_ADD; 10195 MEM32(ebp + 0x10) = edi; /* 0x2B068D2A: mov dword ptr [ebp + 0x10], edi */ 10196 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10197 ebx = 0; /* 0x2B068D2D: xor ebx, ebx */ 10198 _cf = 0; 10199 _flag_k = FK_TEST; 10200 /* cmp edi, ebx */ /* 0x2B068D2F: cmp edi, ebx */ 10201 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10203 _flag_k = FK_CMP; 10204 MEM32(ebp + (-0x4)) = 5; /* 0x2B068D31: mov dword ptr [ebp - 4], 5 */ 10205 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068D97; /* 0x2B068D38: je 0x2b068d97 */ 10206 L_2B068D3A: 10207 SET_LO8(edx, MEM8(ebp + 0x13)); /* 0x2B068D3A: mov dl, byte ptr [ebp + 0x13] */ 10208 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B068D3D: mov al, byte ptr [ebp + 0x13] */ 10209 PUSH32(esp, 0x18u); /* 0x2B068D40: push 0x18 */ 10210 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x2B068D42: mov byte ptr [edi], dl */ 10211 MEM8(edi + 0x1) = (uint8_t)(LO8(eax)); /* 0x2B068D44: mov byte ptr [edi + 1], al */ 10212 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x2B068D47: mov byte ptr [edi + 0xc], bl */ 10213 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D4A: call 0x2b0ab212 */ /* not lifted */ 10214 RECOMP_FLAGS_IN(); 10215 MEM32(eax + 0x4) = ebx; /* 0x2B068D4F: mov dword ptr [eax + 4], ebx */ 10216 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2B068D52: mov byte ptr [eax + 0x14], 1 */ 10217 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B068D56: mov byte ptr [eax + 0x15], bl */ 10218 MEM32(edi + 0x8) = eax; /* 0x2B068D59: mov dword ptr [edi + 8], eax */ 10219 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x2B068D5C: mov byte ptr [eax + 0x15], 1 */ 10220 eax = MEM32(edi + 0x8); /* 0x2B068D60: mov eax, dword ptr [edi + 8] */ 10221 MEM32(eax) = ebx; /* 0x2B068D63: mov dword ptr [eax], ebx */ 10222 ecx = MEM32(edi + 0x8); /* 0x2B068D65: mov ecx, dword ptr [edi + 8] */ 10223 MEM32(ecx + 0x8) = ebx; /* 0x2B068D68: mov dword ptr [ecx + 8], ebx */ 10224 ebx = MEM32(edi + 0x8); /* 0x2B068D6B: mov ebx, dword ptr [edi + 8] */ 10225 PUSH32(esp, 0x18u); /* 0x2B068D6E: push 0x18 */ 10226 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D70: call 0x2b0ab212 */ /* not lifted */ 10227 RECOMP_FLAGS_IN(); 10228 MEM32(eax + 0x4) = ebx; /* 0x2B068D75: mov dword ptr [eax + 4], ebx */ 10229 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x2B068D78: mov byte ptr [eax + 0x14], 0 */ 10230 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x2B068D7C: mov byte ptr [eax + 0x15], 0 */ 10231 MEM32(edi + 0x4) = eax; /* 0x2B068D80: mov dword ptr [edi + 4], eax */ 10232 MEM32(eax) = eax; /* 0x2B068D83: mov dword ptr [eax], eax */ 10233 eax = MEM32(edi + 0x4); /* 0x2B068D85: mov eax, dword ptr [edi + 4] */ 10234 MEM32(eax + 0x8) = eax; /* 0x2B068D88: mov dword ptr [eax + 8], eax */ 10235 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10237 esp = esp + 8; /* 0x2B068D8B: add esp, 8 */ 10238 _flag_k = FK_ADD; 10239 MEM32(edi + 0x10) = 0; /* 0x2B068D8E: mov dword ptr [edi + 0x10], 0 */ 10240 goto L_2B068D99; /* 0x2B068D95: jmp 0x2b068d99 */ 10241 L_2B068D97: 10242 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10243 edi = 0; /* 0x2B068D97: xor edi, edi */ 10244 _cf = 0; 10245 _flag_k = FK_TEST; 10246 L_2B068D99: 10247 eax = MEM32(ebp + 0x14); /* 0x2B068D99: mov eax, dword ptr [ebp + 0x14] */ 10248 MEM32(esi + 0x18) = edi; /* 0x2B068D9C: mov dword ptr [esi + 0x18], edi */ 10249 /* cmp MEM32(eax), 0 */ /* 0x2B068D9F: cmp dword ptr [eax], 0 */ 10250 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 10251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10252 _flag_k = FK_CMP; 10253 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DA2: mov dword ptr [ebp - 4], 0xffffffff */ 10254 MEM32(ebp + 0x10) = 0; /* 0x2B068DA9: mov dword ptr [ebp + 0x10], 0 */ 10255 if (CMP_LE(_flag_a, _flag_b)) goto L_2B068E48; /* 0x2B068DB0: jle 0x2b068e48 */ 10256 L_2B068DB6: 10257 ebx = eax; /* 0x2B068DB6: mov ebx, eax */ 10258 L_2B068DB8: 10259 edi = MEM32(eax); /* 0x2B068DB8: mov edi, dword ptr [eax] */ 10260 PUSH32(esp, 0x44u); /* 0x2B068DBA: push 0x44 */ 10261 MEM32(ebp + 0x18) = edi; /* 0x2B068DBC: mov dword ptr [ebp + 0x18], edi */ 10262 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068DBF: call 0x2b0ab212 */ /* not lifted */ 10263 RECOMP_FLAGS_IN(); 10264 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10265 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10266 esp = esp + 4; /* 0x2B068DC4: add esp, 4 */ 10267 _flag_k = FK_ADD; 10268 MEM32(ebp + 0x8) = eax; /* 0x2B068DC7: mov dword ptr [ebp + 8], eax */ 10269 /* test eax, eax */ /* 0x2B068DCA: test eax, eax */ 10270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10271 _cf = 0; 10272 _flag_k = FK_TEST; 10273 MEM32(ebp + (-0x4)) = 6; /* 0x2B068DCC: mov dword ptr [ebp - 4], 6 */ 10274 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068DEC; /* 0x2B068DD3: je 0x2b068dec */ 10275 L_2B068DD5: 10276 edx = MEM32(esi + 0x1C); /* 0x2B068DD5: mov edx, dword ptr [esi + 0x1c] */ 10277 ecx = MEM32(edx + 0x14); /* 0x2B068DD8: mov ecx, dword ptr [edx + 0x14] */ 10278 PUSH32(esp, ecx); /* 0x2B068DDB: push ecx */ 10279 ecx = MEM32(ebp + 0x10); /* 0x2B068DDC: mov ecx, dword ptr [ebp + 0x10] */ 10280 PUSH32(esp, edi); /* 0x2B068DDF: push edi */ 10281 PUSH32(esp, ecx); /* 0x2B068DE0: push ecx */ 10282 ecx = eax; /* 0x2B068DE1: mov ecx, eax */ 10283 RECOMP_ICALL(0x2B0677A0u); /* 0x2B068DE3: call 0x2b0677a0 */ /* not lifted */ 10284 RECOMP_FLAGS_IN(); 10285 edi = eax; /* 0x2B068DE8: mov edi, eax */ 10286 goto L_2B068DEE; /* 0x2B068DEA: jmp 0x2b068dee */ 10287 L_2B068DEC: 10288 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10289 edi = 0; /* 0x2B068DEC: xor edi, edi */ 10290 _cf = 0; 10291 _flag_k = FK_TEST; 10292 L_2B068DEE: 10293 edx = MEM32(ebp + 0x18); /* 0x2B068DEE: mov edx, dword ptr [ebp + 0x18] */ 10294 ecx = MEM32(esi + 0x18); /* 0x2B068DF1: mov ecx, dword ptr [esi + 0x18] */ 10295 eax = ebp + (-0x2C); /* 0x2B068DF4: lea eax, [ebp - 0x2c] */ 10296 MEM32(ebp + (-0x2C)) = edx; /* 0x2B068DF7: mov dword ptr [ebp - 0x2c], edx */ 10297 PUSH32(esp, eax); /* 0x2B068DFA: push eax */ 10298 edx = ebp + (-0x44); /* 0x2B068DFB: lea edx, [ebp - 0x44] */ 10299 PUSH32(esp, edx); /* 0x2B068DFE: push edx */ 10300 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DFF: mov dword ptr [ebp - 4], 0xffffffff */ 10301 MEM32(ebp + (-0x28)) = 0; /* 0x2B068E06: mov dword ptr [ebp - 0x28], 0 */ 10302 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B068E0D: call 0x2b06a0b0 */ /* not lifted */ 10303 RECOMP_FLAGS_IN(); 10304 ecx = eax; /* 0x2B068E12: mov ecx, eax */ 10305 eax = MEM32(ecx); /* 0x2B068E14: mov eax, dword ptr [ecx] */ 10306 edx = MEM32(ecx + 0x4); /* 0x2B068E16: mov edx, dword ptr [ecx + 4] */ 10307 MEM32(eax + 0x10) = edi; /* 0x2B068E19: mov dword ptr [eax + 0x10], edi */ 10308 ecx = MEM32(esi + 0x1C); /* 0x2B068E1C: mov ecx, dword ptr [esi + 0x1c] */ 10309 PUSH32(esp, edi); /* 0x2B068E1F: push edi */ 10310 MEM32(ebp + (-0x30)) = edx; /* 0x2B068E20: mov dword ptr [ebp - 0x30], edx */ 10311 RECOMP_ICALL(0x2B069C60u); /* 0x2B068E23: call 0x2b069c60 */ /* not lifted */ 10312 RECOMP_FLAGS_IN(); 10313 eax = MEM32(ebp + (-0x10)); /* 0x2B068E28: mov eax, dword ptr [ebp - 0x10] */ 10314 edi = MEM32(ebp + 0x10); /* 0x2B068E2B: mov edi, dword ptr [ebp + 0x10] */ 10315 ecx = MEM32(ebx + 0x4); /* 0x2B068E2E: mov ecx, dword ptr [ebx + 4] */ 10316 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 10317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10318 ebx = ebx + 4; /* 0x2B068E31: add ebx, 4 */ 10319 _flag_k = FK_ADD; 10320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 10321 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10322 eax = eax + 0x1Eu; /* 0x2B068E34: add eax, 0x1e */ 10323 _flag_k = FK_ADD; 10324 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 10325 edi = edi + 1; /* 0x2B068E37: inc edi */ 10326 _flag_k = FK_INC; 10327 /* test ecx, ecx */ /* 0x2B068E38: test ecx, ecx */ 10328 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10329 _cf = 0; 10330 _flag_k = FK_TEST; 10331 MEM32(ebp + (-0x10)) = eax; /* 0x2B068E3A: mov dword ptr [ebp - 0x10], eax */ 10332 MEM32(ebp + 0x10) = edi; /* 0x2B068E3D: mov dword ptr [ebp + 0x10], edi */ 10333 eax = ebx; /* 0x2B068E40: mov eax, ebx */ 10334 RECOMP_BACKEDGE(); 10335 if (TEST_G(_flag_a, _flag_b)) goto L_2B068DB8; /* 0x2B068E42: jg 0x2b068db8 */ 10336 L_2B068E48: 10337 PUSH32(esp, 0x38u); /* 0x2B068E48: push 0x38 */ 10338 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068E4A: call 0x2b0ab212 */ /* not lifted */ 10339 RECOMP_FLAGS_IN(); 10340 edi = eax; /* 0x2B068E4F: mov edi, eax */ 10341 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10343 esp = esp + 4; /* 0x2B068E51: add esp, 4 */ 10344 _flag_k = FK_ADD; 10345 MEM32(ebp + 0x10) = edi; /* 0x2B068E54: mov dword ptr [ebp + 0x10], edi */ 10346 /* test edi, edi */ /* 0x2B068E57: test edi, edi */ 10347 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10348 _cf = 0; 10349 _flag_k = FK_TEST; 10350 MEM32(ebp + (-0x4)) = 7; /* 0x2B068E59: mov dword ptr [ebp - 4], 7 */ 10351 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068E87; /* 0x2B068E60: je 0x2b068e87 */ 10352 L_2B068E62: 10353 eax = MEM32(esi + 0x1C); /* 0x2B068E62: mov eax, dword ptr [esi + 0x1c] */ 10354 ecx = MEM32(eax + 0x14); /* 0x2B068E65: mov ecx, dword ptr [eax + 0x14] */ 10355 PUSH32(esp, ecx); /* 0x2B068E68: push ecx */ 10356 PUSH32(esp, 0x5208u); /* 0x2B068E69: push 0x5208 */ 10357 PUSH32(esp, 0xD6u); /* 0x2B068E6E: push 0xd6 */ 10358 edx = ebp + (-0x14); /* 0x2B068E73: lea edx, [ebp - 0x14] */ 10359 PUSH32(esp, edx); /* 0x2B068E76: push edx */ 10360 ecx = edi; /* 0x2B068E77: mov ecx, edi */ 10361 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068E79: call dword ptr [0x2b0b5948] */ 10362 RECOMP_FLAGS_IN(); 10363 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068E7F: mov dword ptr [edi], 0x2b0b68f4 */ 10364 goto L_2B068E89; /* 0x2B068E85: jmp 0x2b068e89 */ 10365 L_2B068E87: 10366 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10367 edi = 0; /* 0x2B068E87: xor edi, edi */ 10368 _cf = 0; 10369 _flag_k = FK_TEST; 10370 L_2B068E89: 10371 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 10372 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 10373 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 10374 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 10375 eax = esi; /* 0x2B068E94: mov eax, esi */ 10376 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 10377 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 10378 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 10379 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 10380 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 10381 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 10382 RECOMP_REGS_OUT(); 10383 } 10384 10385 void sub_2B068BC7(void) { 10386 int _fpu_cmp = 0; 10387 uint32_t _cf = 0; 10388 int _df = 1; 10389 uint32_t _flag_k = FK_NONE; 10390 uint32_t _flag_a = 0, _flag_b = 0; 10391 uint32_t _itail_tgt = 0; 10392 RECOMP_REGS_LOCALS 10393 RECOMP_ENTER(0x2B068BC7u); 10394 10395 L_2B068BC7: 10396 edx = MEM32(ebp + (-0x30)); /* 0x2B068BC7: mov edx, dword ptr [ebp - 0x30] */ 10397 MEM32(esi + 0x8) = edi; /* 0x2B068BCA: mov dword ptr [esi + 8], edi */ 10398 eax = MEM32(edi + 0x34); /* 0x2B068BCD: mov eax, dword ptr [edi + 0x34] */ 10399 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10400 ecx = 0; /* 0x2B068BD0: xor ecx, ecx */ 10401 _cf = 0; 10402 _flag_k = FK_TEST; 10403 MEM32(eax) = ebx; /* 0x2B068BD2: mov dword ptr [eax], ebx */ 10404 MEM32(eax + 0x4) = ecx; /* 0x2B068BD4: mov dword ptr [eax + 4], ecx */ 10405 ecx = MEM32(ebp + (-0x34)); /* 0x2B068BD7: mov ecx, dword ptr [ebp - 0x34] */ 10406 MEM32(eax + 0x8) = ecx; /* 0x2B068BDA: mov dword ptr [eax + 8], ecx */ 10407 PUSH32(esp, 1); /* 0x2B068BDD: push 1 */ 10408 ecx = esi; /* 0x2B068BDF: mov ecx, esi */ 10409 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068BE1: mov dword ptr [ebp - 4], 0xffffffff */ 10410 MEM32(eax + 0xC) = edx; /* 0x2B068BE8: mov dword ptr [eax + 0xc], edx */ 10411 RECOMP_ICALL(0x2B069050u); /* 0x2B068BEB: call 0x2b069050 */ /* not lifted */ 10412 RECOMP_FLAGS_IN(); 10413 ecx = MEM32(esi + 0x1C); /* 0x2B068BF0: mov ecx, dword ptr [esi + 0x1c] */ 10414 eax = ebp + (-0x14); /* 0x2B068BF3: lea eax, [ebp - 0x14] */ 10415 PUSH32(esp, eax); /* 0x2B068BF6: push eax */ 10416 MEM32(ebp + (-0x14)) = 0x5Au; /* 0x2B068BF7: mov dword ptr [ebp - 0x14], 0x5a */ 10417 MEM32(ebp + (-0x10)) = 0xFFFFFF4Cu; /* 0x2B068BFE: mov dword ptr [ebp - 0x10], 0xffffff4c */ 10418 RECOMP_ICALL(0x2B069F80u); /* 0x2B068C05: call 0x2b069f80 */ /* not lifted */ 10419 RECOMP_FLAGS_IN(); 10420 PUSH32(esp, 0x38u); /* 0x2B068C0A: push 0x38 */ 10421 MEM32(ebp + (-0x24)) = 0x1Fu; /* 0x2B068C0C: mov dword ptr [ebp - 0x24], 0x1f */ 10422 MEM32(ebp + (-0x20)) = 0; /* 0x2B068C13: mov dword ptr [ebp - 0x20], 0 */ 10423 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068C1A: call 0x2b0ab212 */ /* not lifted */ 10424 RECOMP_FLAGS_IN(); 10425 edi = eax; /* 0x2B068C1F: mov edi, eax */ 10426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10428 esp = esp + 4; /* 0x2B068C21: add esp, 4 */ 10429 _flag_k = FK_ADD; 10430 MEM32(ebp + 0x18) = edi; /* 0x2B068C24: mov dword ptr [ebp + 0x18], edi */ 10431 /* test edi, edi */ /* 0x2B068C27: test edi, edi */ 10432 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10433 _cf = 0; 10434 _flag_k = FK_TEST; 10435 MEM32(ebp + (-0x4)) = 3; /* 0x2B068C29: mov dword ptr [ebp - 4], 3 */ 10436 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068C57; /* 0x2B068C30: je 0x2b068c57 */ 10437 L_2B068C32: 10438 ecx = MEM32(esi + 0x1C); /* 0x2B068C32: mov ecx, dword ptr [esi + 0x1c] */ 10439 eax = MEM32(ecx + 0x14); /* 0x2B068C35: mov eax, dword ptr [ecx + 0x14] */ 10440 PUSH32(esp, eax); /* 0x2B068C38: push eax */ 10441 PUSH32(esp, 0x5208u); /* 0x2B068C39: push 0x5208 */ 10442 PUSH32(esp, 0xD5u); /* 0x2B068C3E: push 0xd5 */ 10443 edx = ebp + (-0x24); /* 0x2B068C43: lea edx, [ebp - 0x24] */ 10444 PUSH32(esp, edx); /* 0x2B068C46: push edx */ 10445 ecx = edi; /* 0x2B068C47: mov ecx, edi */ 10446 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068C49: call dword ptr [0x2b0b5948] */ 10447 RECOMP_FLAGS_IN(); 10448 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068C4F: mov dword ptr [edi], 0x2b0b68f4 */ 10449 goto L_2B068C59; /* 0x2B068C55: jmp 0x2b068c59 */ 10450 L_2B068C57: 10451 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10452 edi = 0; /* 0x2B068C57: xor edi, edi */ 10453 _cf = 0; 10454 _flag_k = FK_TEST; 10455 L_2B068C59: 10456 MEM32(esi + 0xC) = edi; /* 0x2B068C59: mov dword ptr [esi + 0xc], edi */ 10457 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068C5C: mov byte ptr [edi + 8], 0 */ 10458 ecx = MEM32(ebp + (-0x1C)); /* 0x2B068C60: mov ecx, dword ptr [ebp - 0x1c] */ 10459 ebx = MEM32(ebp + (-0x18)); /* 0x2B068C63: mov ebx, dword ptr [ebp - 0x18] */ 10460 eax = ecx; /* 0x2B068C66: mov eax, ecx */ 10461 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C68: cdq */ 10462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10464 eax = eax - edx; /* 0x2B068C69: sub eax, edx */ 10465 _flag_k = FK_CMP; 10466 edi = eax; /* 0x2B068C6B: mov edi, eax */ 10467 eax = ebx; /* 0x2B068C6D: mov eax, ebx */ 10468 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C6F: cdq */ 10469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10471 eax = eax - edx; /* 0x2B068C70: sub eax, edx */ 10472 _flag_k = FK_CMP; 10473 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068C72: sar eax, 1 */ 10474 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10475 eax = (uint32_t)((int32_t)eax >> 1u); 10476 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Fu); 10477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10478 ecx = ecx + 0x1Fu; /* 0x2B068C74: add ecx, 0x1f */ 10479 _flag_k = FK_ADD; 10480 if (1u) _cf = (((edi) >> 0) & 1u); /* 0x2B068C77: sar edi, 1 */ 10481 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10482 edi = (uint32_t)((int32_t)edi >> 1u); 10483 PUSH32(esp, 0x50u); /* 0x2B068C79: push 0x50 */ 10484 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068C7B: mov dword ptr [ebp - 4], 0xffffffff */ 10485 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Fu); 10486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10487 edi = edi + 0x1Fu; /* 0x2B068C82: add edi, 0x1f */ 10488 _flag_k = FK_ADD; 10489 MEM32(ebp + (-0x30)) = eax; /* 0x2B068C85: mov dword ptr [ebp - 0x30], eax */ 10490 MEM32(ebp + 0x18) = ecx; /* 0x2B068C88: mov dword ptr [ebp + 0x18], ecx */ 10491 MEM32(ebp + (-0x54)) = 0x1Fu; /* 0x2B068C8B: mov dword ptr [ebp - 0x54], 0x1f */ 10492 MEM32(ebp + (-0x48)) = ebx; /* 0x2B068C92: mov dword ptr [ebp - 0x48], ebx */ 10493 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068C95: call 0x2b0ab212 */ /* not lifted */ 10494 RECOMP_FLAGS_IN(); 10495 ebx = eax; /* 0x2B068C9A: mov ebx, eax */ 10496 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10498 esp = esp + 4; /* 0x2B068C9C: add esp, 4 */ 10499 _flag_k = FK_ADD; 10500 MEM32(ebp + 0x8) = ebx; /* 0x2B068C9F: mov dword ptr [ebp + 8], ebx */ 10501 /* test ebx, ebx */ /* 0x2B068CA2: test ebx, ebx */ 10502 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10503 _cf = 0; 10504 _flag_k = FK_TEST; 10505 MEM32(ebp + (-0x4)) = 4; /* 0x2B068CA4: mov dword ptr [ebp - 4], 4 */ 10506 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068CDB; /* 0x2B068CAB: je 0x2b068cdb */ 10507 L_2B068CAD: 10508 eax = MEM32(esi + 0x1C); /* 0x2B068CAD: mov eax, dword ptr [esi + 0x1c] */ 10509 eax = MEM32(eax + 0x14); /* 0x2B068CB0: mov eax, dword ptr [eax + 0x14] */ 10510 ecx = MEM32(ebp + (-0x30)); /* 0x2B068CB3: mov ecx, dword ptr [ebp - 0x30] */ 10511 edx = MEM32(ebp + 0x10); /* 0x2B068CB6: mov edx, dword ptr [ebp + 0x10] */ 10512 PUSH32(esp, eax); /* 0x2B068CB9: push eax */ 10513 PUSH32(esp, 0x100u); /* 0x2B068CBA: push 0x100 */ 10514 PUSH32(esp, ecx); /* 0x2B068CBF: push ecx */ 10515 PUSH32(esp, edi); /* 0x2B068CC0: push edi */ 10516 PUSH32(esp, 0x5209u); /* 0x2B068CC1: push 0x5209 */ 10517 PUSH32(esp, edx); /* 0x2B068CC6: push edx */ 10518 PUSH32(esp, 2); /* 0x2B068CC7: push 2 */ 10519 ecx = ebx; /* 0x2B068CC9: mov ecx, ebx */ 10520 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B068CCB: call dword ptr [0x2b0b5950] */ 10521 RECOMP_FLAGS_IN(); 10522 MEM32(ebx) = 0x2B0B6878u; /* 0x2B068CD1: mov dword ptr [ebx], 0x2b0b6878 */ 10523 eax = ebx; /* 0x2B068CD7: mov eax, ebx */ 10524 goto L_2B068CDD; /* 0x2B068CD9: jmp 0x2b068cdd */ 10525 L_2B068CDB: 10526 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10527 eax = 0; /* 0x2B068CDB: xor eax, eax */ 10528 _cf = 0; 10529 _flag_k = FK_TEST; 10530 L_2B068CDD: 10531 ecx = MEM32(ebp + (-0x54)); /* 0x2B068CDD: mov ecx, dword ptr [ebp - 0x54] */ 10532 edx = MEM32(ebp + 0x18); /* 0x2B068CE0: mov edx, dword ptr [ebp + 0x18] */ 10533 MEM32(esi + 0x10) = eax; /* 0x2B068CE3: mov dword ptr [esi + 0x10], eax */ 10534 eax = MEM32(eax + 0x34); /* 0x2B068CE6: mov eax, dword ptr [eax + 0x34] */ 10535 MEM32(eax) = ecx; /* 0x2B068CE9: mov dword ptr [eax], ecx */ 10536 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10537 ecx = 0; /* 0x2B068CEB: xor ecx, ecx */ 10538 _cf = 0; 10539 _flag_k = FK_TEST; 10540 MEM32(eax + 0x4) = ecx; /* 0x2B068CED: mov dword ptr [eax + 4], ecx */ 10541 ecx = MEM32(ebp + (-0x48)); /* 0x2B068CF0: mov ecx, dword ptr [ebp - 0x48] */ 10542 MEM32(eax + 0x8) = edx; /* 0x2B068CF3: mov dword ptr [eax + 8], edx */ 10543 MEM32(eax + 0xC) = ecx; /* 0x2B068CF6: mov dword ptr [eax + 0xc], ecx */ 10544 ecx = MEM32(esi + 0x10); /* 0x2B068CF9: mov ecx, dword ptr [esi + 0x10] */ 10545 PUSH32(esp, 0x00CCF2FFu); /* 0x2B068CFC: push 0xccf2ff */ 10546 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068D01: mov dword ptr [ebp - 4], 0xffffffff */ 10547 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B068D08: call dword ptr [0x2b0b5858] */ 10548 RECOMP_FLAGS_IN(); 10549 eax = MEM32(esi + 0x10); /* 0x2B068D0E: mov eax, dword ptr [esi + 0x10] */ 10550 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B068D11: mov byte ptr [eax + 8], 0 */ 10551 edi = MEM32(ebp + (-0x10)); /* 0x2B068D15: mov edi, dword ptr [ebp - 0x10] */ 10552 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Au); 10553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10554 edi = edi + 0x1Au; /* 0x2B068D18: add edi, 0x1a */ 10555 _flag_k = FK_ADD; 10556 PUSH32(esp, 0x14u); /* 0x2B068D1B: push 0x14 */ 10557 MEM32(ebp + (-0x10)) = edi; /* 0x2B068D1D: mov dword ptr [ebp - 0x10], edi */ 10558 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D20: call 0x2b0ab212 */ /* not lifted */ 10559 RECOMP_FLAGS_IN(); 10560 edi = eax; /* 0x2B068D25: mov edi, eax */ 10561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10563 esp = esp + 4; /* 0x2B068D27: add esp, 4 */ 10564 _flag_k = FK_ADD; 10565 MEM32(ebp + 0x10) = edi; /* 0x2B068D2A: mov dword ptr [ebp + 0x10], edi */ 10566 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10567 ebx = 0; /* 0x2B068D2D: xor ebx, ebx */ 10568 _cf = 0; 10569 _flag_k = FK_TEST; 10570 /* cmp edi, ebx */ /* 0x2B068D2F: cmp edi, ebx */ 10571 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10573 _flag_k = FK_CMP; 10574 MEM32(ebp + (-0x4)) = 5; /* 0x2B068D31: mov dword ptr [ebp - 4], 5 */ 10575 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068D97; /* 0x2B068D38: je 0x2b068d97 */ 10576 L_2B068D3A: 10577 SET_LO8(edx, MEM8(ebp + 0x13)); /* 0x2B068D3A: mov dl, byte ptr [ebp + 0x13] */ 10578 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B068D3D: mov al, byte ptr [ebp + 0x13] */ 10579 PUSH32(esp, 0x18u); /* 0x2B068D40: push 0x18 */ 10580 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x2B068D42: mov byte ptr [edi], dl */ 10581 MEM8(edi + 0x1) = (uint8_t)(LO8(eax)); /* 0x2B068D44: mov byte ptr [edi + 1], al */ 10582 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x2B068D47: mov byte ptr [edi + 0xc], bl */ 10583 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D4A: call 0x2b0ab212 */ /* not lifted */ 10584 RECOMP_FLAGS_IN(); 10585 MEM32(eax + 0x4) = ebx; /* 0x2B068D4F: mov dword ptr [eax + 4], ebx */ 10586 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2B068D52: mov byte ptr [eax + 0x14], 1 */ 10587 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B068D56: mov byte ptr [eax + 0x15], bl */ 10588 MEM32(edi + 0x8) = eax; /* 0x2B068D59: mov dword ptr [edi + 8], eax */ 10589 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x2B068D5C: mov byte ptr [eax + 0x15], 1 */ 10590 eax = MEM32(edi + 0x8); /* 0x2B068D60: mov eax, dword ptr [edi + 8] */ 10591 MEM32(eax) = ebx; /* 0x2B068D63: mov dword ptr [eax], ebx */ 10592 ecx = MEM32(edi + 0x8); /* 0x2B068D65: mov ecx, dword ptr [edi + 8] */ 10593 MEM32(ecx + 0x8) = ebx; /* 0x2B068D68: mov dword ptr [ecx + 8], ebx */ 10594 ebx = MEM32(edi + 0x8); /* 0x2B068D6B: mov ebx, dword ptr [edi + 8] */ 10595 PUSH32(esp, 0x18u); /* 0x2B068D6E: push 0x18 */ 10596 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D70: call 0x2b0ab212 */ /* not lifted */ 10597 RECOMP_FLAGS_IN(); 10598 MEM32(eax + 0x4) = ebx; /* 0x2B068D75: mov dword ptr [eax + 4], ebx */ 10599 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x2B068D78: mov byte ptr [eax + 0x14], 0 */ 10600 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x2B068D7C: mov byte ptr [eax + 0x15], 0 */ 10601 MEM32(edi + 0x4) = eax; /* 0x2B068D80: mov dword ptr [edi + 4], eax */ 10602 MEM32(eax) = eax; /* 0x2B068D83: mov dword ptr [eax], eax */ 10603 eax = MEM32(edi + 0x4); /* 0x2B068D85: mov eax, dword ptr [edi + 4] */ 10604 MEM32(eax + 0x8) = eax; /* 0x2B068D88: mov dword ptr [eax + 8], eax */ 10605 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10606 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10607 esp = esp + 8; /* 0x2B068D8B: add esp, 8 */ 10608 _flag_k = FK_ADD; 10609 MEM32(edi + 0x10) = 0; /* 0x2B068D8E: mov dword ptr [edi + 0x10], 0 */ 10610 goto L_2B068D99; /* 0x2B068D95: jmp 0x2b068d99 */ 10611 L_2B068D97: 10612 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10613 edi = 0; /* 0x2B068D97: xor edi, edi */ 10614 _cf = 0; 10615 _flag_k = FK_TEST; 10616 L_2B068D99: 10617 eax = MEM32(ebp + 0x14); /* 0x2B068D99: mov eax, dword ptr [ebp + 0x14] */ 10618 MEM32(esi + 0x18) = edi; /* 0x2B068D9C: mov dword ptr [esi + 0x18], edi */ 10619 /* cmp MEM32(eax), 0 */ /* 0x2B068D9F: cmp dword ptr [eax], 0 */ 10620 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 10621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10622 _flag_k = FK_CMP; 10623 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DA2: mov dword ptr [ebp - 4], 0xffffffff */ 10624 MEM32(ebp + 0x10) = 0; /* 0x2B068DA9: mov dword ptr [ebp + 0x10], 0 */ 10625 if (CMP_LE(_flag_a, _flag_b)) goto L_2B068E48; /* 0x2B068DB0: jle 0x2b068e48 */ 10626 L_2B068DB6: 10627 ebx = eax; /* 0x2B068DB6: mov ebx, eax */ 10628 L_2B068DB8: 10629 edi = MEM32(eax); /* 0x2B068DB8: mov edi, dword ptr [eax] */ 10630 PUSH32(esp, 0x44u); /* 0x2B068DBA: push 0x44 */ 10631 MEM32(ebp + 0x18) = edi; /* 0x2B068DBC: mov dword ptr [ebp + 0x18], edi */ 10632 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068DBF: call 0x2b0ab212 */ /* not lifted */ 10633 RECOMP_FLAGS_IN(); 10634 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10636 esp = esp + 4; /* 0x2B068DC4: add esp, 4 */ 10637 _flag_k = FK_ADD; 10638 MEM32(ebp + 0x8) = eax; /* 0x2B068DC7: mov dword ptr [ebp + 8], eax */ 10639 /* test eax, eax */ /* 0x2B068DCA: test eax, eax */ 10640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10641 _cf = 0; 10642 _flag_k = FK_TEST; 10643 MEM32(ebp + (-0x4)) = 6; /* 0x2B068DCC: mov dword ptr [ebp - 4], 6 */ 10644 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068DEC; /* 0x2B068DD3: je 0x2b068dec */ 10645 L_2B068DD5: 10646 edx = MEM32(esi + 0x1C); /* 0x2B068DD5: mov edx, dword ptr [esi + 0x1c] */ 10647 ecx = MEM32(edx + 0x14); /* 0x2B068DD8: mov ecx, dword ptr [edx + 0x14] */ 10648 PUSH32(esp, ecx); /* 0x2B068DDB: push ecx */ 10649 ecx = MEM32(ebp + 0x10); /* 0x2B068DDC: mov ecx, dword ptr [ebp + 0x10] */ 10650 PUSH32(esp, edi); /* 0x2B068DDF: push edi */ 10651 PUSH32(esp, ecx); /* 0x2B068DE0: push ecx */ 10652 ecx = eax; /* 0x2B068DE1: mov ecx, eax */ 10653 RECOMP_ICALL(0x2B0677A0u); /* 0x2B068DE3: call 0x2b0677a0 */ /* not lifted */ 10654 RECOMP_FLAGS_IN(); 10655 edi = eax; /* 0x2B068DE8: mov edi, eax */ 10656 goto L_2B068DEE; /* 0x2B068DEA: jmp 0x2b068dee */ 10657 L_2B068DEC: 10658 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10659 edi = 0; /* 0x2B068DEC: xor edi, edi */ 10660 _cf = 0; 10661 _flag_k = FK_TEST; 10662 L_2B068DEE: 10663 edx = MEM32(ebp + 0x18); /* 0x2B068DEE: mov edx, dword ptr [ebp + 0x18] */ 10664 ecx = MEM32(esi + 0x18); /* 0x2B068DF1: mov ecx, dword ptr [esi + 0x18] */ 10665 eax = ebp + (-0x2C); /* 0x2B068DF4: lea eax, [ebp - 0x2c] */ 10666 MEM32(ebp + (-0x2C)) = edx; /* 0x2B068DF7: mov dword ptr [ebp - 0x2c], edx */ 10667 PUSH32(esp, eax); /* 0x2B068DFA: push eax */ 10668 edx = ebp + (-0x44); /* 0x2B068DFB: lea edx, [ebp - 0x44] */ 10669 PUSH32(esp, edx); /* 0x2B068DFE: push edx */ 10670 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DFF: mov dword ptr [ebp - 4], 0xffffffff */ 10671 MEM32(ebp + (-0x28)) = 0; /* 0x2B068E06: mov dword ptr [ebp - 0x28], 0 */ 10672 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B068E0D: call 0x2b06a0b0 */ /* not lifted */ 10673 RECOMP_FLAGS_IN(); 10674 ecx = eax; /* 0x2B068E12: mov ecx, eax */ 10675 eax = MEM32(ecx); /* 0x2B068E14: mov eax, dword ptr [ecx] */ 10676 edx = MEM32(ecx + 0x4); /* 0x2B068E16: mov edx, dword ptr [ecx + 4] */ 10677 MEM32(eax + 0x10) = edi; /* 0x2B068E19: mov dword ptr [eax + 0x10], edi */ 10678 ecx = MEM32(esi + 0x1C); /* 0x2B068E1C: mov ecx, dword ptr [esi + 0x1c] */ 10679 PUSH32(esp, edi); /* 0x2B068E1F: push edi */ 10680 MEM32(ebp + (-0x30)) = edx; /* 0x2B068E20: mov dword ptr [ebp - 0x30], edx */ 10681 RECOMP_ICALL(0x2B069C60u); /* 0x2B068E23: call 0x2b069c60 */ /* not lifted */ 10682 RECOMP_FLAGS_IN(); 10683 eax = MEM32(ebp + (-0x10)); /* 0x2B068E28: mov eax, dword ptr [ebp - 0x10] */ 10684 edi = MEM32(ebp + 0x10); /* 0x2B068E2B: mov edi, dword ptr [ebp + 0x10] */ 10685 ecx = MEM32(ebx + 0x4); /* 0x2B068E2E: mov ecx, dword ptr [ebx + 4] */ 10686 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 10687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10688 ebx = ebx + 4; /* 0x2B068E31: add ebx, 4 */ 10689 _flag_k = FK_ADD; 10690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 10691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10692 eax = eax + 0x1Eu; /* 0x2B068E34: add eax, 0x1e */ 10693 _flag_k = FK_ADD; 10694 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 10695 edi = edi + 1; /* 0x2B068E37: inc edi */ 10696 _flag_k = FK_INC; 10697 /* test ecx, ecx */ /* 0x2B068E38: test ecx, ecx */ 10698 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10699 _cf = 0; 10700 _flag_k = FK_TEST; 10701 MEM32(ebp + (-0x10)) = eax; /* 0x2B068E3A: mov dword ptr [ebp - 0x10], eax */ 10702 MEM32(ebp + 0x10) = edi; /* 0x2B068E3D: mov dword ptr [ebp + 0x10], edi */ 10703 eax = ebx; /* 0x2B068E40: mov eax, ebx */ 10704 RECOMP_BACKEDGE(); 10705 if (TEST_G(_flag_a, _flag_b)) goto L_2B068DB8; /* 0x2B068E42: jg 0x2b068db8 */ 10706 L_2B068E48: 10707 PUSH32(esp, 0x38u); /* 0x2B068E48: push 0x38 */ 10708 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068E4A: call 0x2b0ab212 */ /* not lifted */ 10709 RECOMP_FLAGS_IN(); 10710 edi = eax; /* 0x2B068E4F: mov edi, eax */ 10711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10713 esp = esp + 4; /* 0x2B068E51: add esp, 4 */ 10714 _flag_k = FK_ADD; 10715 MEM32(ebp + 0x10) = edi; /* 0x2B068E54: mov dword ptr [ebp + 0x10], edi */ 10716 /* test edi, edi */ /* 0x2B068E57: test edi, edi */ 10717 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10718 _cf = 0; 10719 _flag_k = FK_TEST; 10720 MEM32(ebp + (-0x4)) = 7; /* 0x2B068E59: mov dword ptr [ebp - 4], 7 */ 10721 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068E87; /* 0x2B068E60: je 0x2b068e87 */ 10722 L_2B068E62: 10723 eax = MEM32(esi + 0x1C); /* 0x2B068E62: mov eax, dword ptr [esi + 0x1c] */ 10724 ecx = MEM32(eax + 0x14); /* 0x2B068E65: mov ecx, dword ptr [eax + 0x14] */ 10725 PUSH32(esp, ecx); /* 0x2B068E68: push ecx */ 10726 PUSH32(esp, 0x5208u); /* 0x2B068E69: push 0x5208 */ 10727 PUSH32(esp, 0xD6u); /* 0x2B068E6E: push 0xd6 */ 10728 edx = ebp + (-0x14); /* 0x2B068E73: lea edx, [ebp - 0x14] */ 10729 PUSH32(esp, edx); /* 0x2B068E76: push edx */ 10730 ecx = edi; /* 0x2B068E77: mov ecx, edi */ 10731 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068E79: call dword ptr [0x2b0b5948] */ 10732 RECOMP_FLAGS_IN(); 10733 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068E7F: mov dword ptr [edi], 0x2b0b68f4 */ 10734 goto L_2B068E89; /* 0x2B068E85: jmp 0x2b068e89 */ 10735 L_2B068E87: 10736 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10737 edi = 0; /* 0x2B068E87: xor edi, edi */ 10738 _cf = 0; 10739 _flag_k = FK_TEST; 10740 L_2B068E89: 10741 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 10742 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 10743 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 10744 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 10745 eax = esi; /* 0x2B068E94: mov eax, esi */ 10746 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 10747 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 10748 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 10749 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 10750 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 10751 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 10752 RECOMP_REGS_OUT(); 10753 } 10754 10755 void sub_2B068C59(void) { 10756 int _fpu_cmp = 0; 10757 uint32_t _cf = 0; 10758 int _df = 1; 10759 uint32_t _flag_k = FK_NONE; 10760 uint32_t _flag_a = 0, _flag_b = 0; 10761 uint32_t _itail_tgt = 0; 10762 RECOMP_REGS_LOCALS 10763 RECOMP_ENTER(0x2B068C59u); 10764 10765 L_2B068C59: 10766 MEM32(esi + 0xC) = edi; /* 0x2B068C59: mov dword ptr [esi + 0xc], edi */ 10767 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068C5C: mov byte ptr [edi + 8], 0 */ 10768 ecx = MEM32(ebp + (-0x1C)); /* 0x2B068C60: mov ecx, dword ptr [ebp - 0x1c] */ 10769 ebx = MEM32(ebp + (-0x18)); /* 0x2B068C63: mov ebx, dword ptr [ebp - 0x18] */ 10770 eax = ecx; /* 0x2B068C66: mov eax, ecx */ 10771 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C68: cdq */ 10772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10774 eax = eax - edx; /* 0x2B068C69: sub eax, edx */ 10775 _flag_k = FK_CMP; 10776 edi = eax; /* 0x2B068C6B: mov edi, eax */ 10777 eax = ebx; /* 0x2B068C6D: mov eax, ebx */ 10778 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B068C6F: cdq */ 10779 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10781 eax = eax - edx; /* 0x2B068C70: sub eax, edx */ 10782 _flag_k = FK_CMP; 10783 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B068C72: sar eax, 1 */ 10784 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10785 eax = (uint32_t)((int32_t)eax >> 1u); 10786 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Fu); 10787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10788 ecx = ecx + 0x1Fu; /* 0x2B068C74: add ecx, 0x1f */ 10789 _flag_k = FK_ADD; 10790 if (1u) _cf = (((edi) >> 0) & 1u); /* 0x2B068C77: sar edi, 1 */ 10791 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10792 edi = (uint32_t)((int32_t)edi >> 1u); 10793 PUSH32(esp, 0x50u); /* 0x2B068C79: push 0x50 */ 10794 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068C7B: mov dword ptr [ebp - 4], 0xffffffff */ 10795 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Fu); 10796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10797 edi = edi + 0x1Fu; /* 0x2B068C82: add edi, 0x1f */ 10798 _flag_k = FK_ADD; 10799 MEM32(ebp + (-0x30)) = eax; /* 0x2B068C85: mov dword ptr [ebp - 0x30], eax */ 10800 MEM32(ebp + 0x18) = ecx; /* 0x2B068C88: mov dword ptr [ebp + 0x18], ecx */ 10801 MEM32(ebp + (-0x54)) = 0x1Fu; /* 0x2B068C8B: mov dword ptr [ebp - 0x54], 0x1f */ 10802 MEM32(ebp + (-0x48)) = ebx; /* 0x2B068C92: mov dword ptr [ebp - 0x48], ebx */ 10803 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068C95: call 0x2b0ab212 */ /* not lifted */ 10804 RECOMP_FLAGS_IN(); 10805 ebx = eax; /* 0x2B068C9A: mov ebx, eax */ 10806 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10808 esp = esp + 4; /* 0x2B068C9C: add esp, 4 */ 10809 _flag_k = FK_ADD; 10810 MEM32(ebp + 0x8) = ebx; /* 0x2B068C9F: mov dword ptr [ebp + 8], ebx */ 10811 /* test ebx, ebx */ /* 0x2B068CA2: test ebx, ebx */ 10812 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10813 _cf = 0; 10814 _flag_k = FK_TEST; 10815 MEM32(ebp + (-0x4)) = 4; /* 0x2B068CA4: mov dword ptr [ebp - 4], 4 */ 10816 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068CDB; /* 0x2B068CAB: je 0x2b068cdb */ 10817 L_2B068CAD: 10818 eax = MEM32(esi + 0x1C); /* 0x2B068CAD: mov eax, dword ptr [esi + 0x1c] */ 10819 eax = MEM32(eax + 0x14); /* 0x2B068CB0: mov eax, dword ptr [eax + 0x14] */ 10820 ecx = MEM32(ebp + (-0x30)); /* 0x2B068CB3: mov ecx, dword ptr [ebp - 0x30] */ 10821 edx = MEM32(ebp + 0x10); /* 0x2B068CB6: mov edx, dword ptr [ebp + 0x10] */ 10822 PUSH32(esp, eax); /* 0x2B068CB9: push eax */ 10823 PUSH32(esp, 0x100u); /* 0x2B068CBA: push 0x100 */ 10824 PUSH32(esp, ecx); /* 0x2B068CBF: push ecx */ 10825 PUSH32(esp, edi); /* 0x2B068CC0: push edi */ 10826 PUSH32(esp, 0x5209u); /* 0x2B068CC1: push 0x5209 */ 10827 PUSH32(esp, edx); /* 0x2B068CC6: push edx */ 10828 PUSH32(esp, 2); /* 0x2B068CC7: push 2 */ 10829 ecx = ebx; /* 0x2B068CC9: mov ecx, ebx */ 10830 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B068CCB: call dword ptr [0x2b0b5950] */ 10831 RECOMP_FLAGS_IN(); 10832 MEM32(ebx) = 0x2B0B6878u; /* 0x2B068CD1: mov dword ptr [ebx], 0x2b0b6878 */ 10833 eax = ebx; /* 0x2B068CD7: mov eax, ebx */ 10834 goto L_2B068CDD; /* 0x2B068CD9: jmp 0x2b068cdd */ 10835 L_2B068CDB: 10836 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10837 eax = 0; /* 0x2B068CDB: xor eax, eax */ 10838 _cf = 0; 10839 _flag_k = FK_TEST; 10840 L_2B068CDD: 10841 ecx = MEM32(ebp + (-0x54)); /* 0x2B068CDD: mov ecx, dword ptr [ebp - 0x54] */ 10842 edx = MEM32(ebp + 0x18); /* 0x2B068CE0: mov edx, dword ptr [ebp + 0x18] */ 10843 MEM32(esi + 0x10) = eax; /* 0x2B068CE3: mov dword ptr [esi + 0x10], eax */ 10844 eax = MEM32(eax + 0x34); /* 0x2B068CE6: mov eax, dword ptr [eax + 0x34] */ 10845 MEM32(eax) = ecx; /* 0x2B068CE9: mov dword ptr [eax], ecx */ 10846 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10847 ecx = 0; /* 0x2B068CEB: xor ecx, ecx */ 10848 _cf = 0; 10849 _flag_k = FK_TEST; 10850 MEM32(eax + 0x4) = ecx; /* 0x2B068CED: mov dword ptr [eax + 4], ecx */ 10851 ecx = MEM32(ebp + (-0x48)); /* 0x2B068CF0: mov ecx, dword ptr [ebp - 0x48] */ 10852 MEM32(eax + 0x8) = edx; /* 0x2B068CF3: mov dword ptr [eax + 8], edx */ 10853 MEM32(eax + 0xC) = ecx; /* 0x2B068CF6: mov dword ptr [eax + 0xc], ecx */ 10854 ecx = MEM32(esi + 0x10); /* 0x2B068CF9: mov ecx, dword ptr [esi + 0x10] */ 10855 PUSH32(esp, 0x00CCF2FFu); /* 0x2B068CFC: push 0xccf2ff */ 10856 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068D01: mov dword ptr [ebp - 4], 0xffffffff */ 10857 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B068D08: call dword ptr [0x2b0b5858] */ 10858 RECOMP_FLAGS_IN(); 10859 eax = MEM32(esi + 0x10); /* 0x2B068D0E: mov eax, dword ptr [esi + 0x10] */ 10860 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B068D11: mov byte ptr [eax + 8], 0 */ 10861 edi = MEM32(ebp + (-0x10)); /* 0x2B068D15: mov edi, dword ptr [ebp - 0x10] */ 10862 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Au); 10863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10864 edi = edi + 0x1Au; /* 0x2B068D18: add edi, 0x1a */ 10865 _flag_k = FK_ADD; 10866 PUSH32(esp, 0x14u); /* 0x2B068D1B: push 0x14 */ 10867 MEM32(ebp + (-0x10)) = edi; /* 0x2B068D1D: mov dword ptr [ebp - 0x10], edi */ 10868 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D20: call 0x2b0ab212 */ /* not lifted */ 10869 RECOMP_FLAGS_IN(); 10870 edi = eax; /* 0x2B068D25: mov edi, eax */ 10871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10873 esp = esp + 4; /* 0x2B068D27: add esp, 4 */ 10874 _flag_k = FK_ADD; 10875 MEM32(ebp + 0x10) = edi; /* 0x2B068D2A: mov dword ptr [ebp + 0x10], edi */ 10876 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10877 ebx = 0; /* 0x2B068D2D: xor ebx, ebx */ 10878 _cf = 0; 10879 _flag_k = FK_TEST; 10880 /* cmp edi, ebx */ /* 0x2B068D2F: cmp edi, ebx */ 10881 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10883 _flag_k = FK_CMP; 10884 MEM32(ebp + (-0x4)) = 5; /* 0x2B068D31: mov dword ptr [ebp - 4], 5 */ 10885 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068D97; /* 0x2B068D38: je 0x2b068d97 */ 10886 L_2B068D3A: 10887 SET_LO8(edx, MEM8(ebp + 0x13)); /* 0x2B068D3A: mov dl, byte ptr [ebp + 0x13] */ 10888 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B068D3D: mov al, byte ptr [ebp + 0x13] */ 10889 PUSH32(esp, 0x18u); /* 0x2B068D40: push 0x18 */ 10890 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x2B068D42: mov byte ptr [edi], dl */ 10891 MEM8(edi + 0x1) = (uint8_t)(LO8(eax)); /* 0x2B068D44: mov byte ptr [edi + 1], al */ 10892 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x2B068D47: mov byte ptr [edi + 0xc], bl */ 10893 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D4A: call 0x2b0ab212 */ /* not lifted */ 10894 RECOMP_FLAGS_IN(); 10895 MEM32(eax + 0x4) = ebx; /* 0x2B068D4F: mov dword ptr [eax + 4], ebx */ 10896 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2B068D52: mov byte ptr [eax + 0x14], 1 */ 10897 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B068D56: mov byte ptr [eax + 0x15], bl */ 10898 MEM32(edi + 0x8) = eax; /* 0x2B068D59: mov dword ptr [edi + 8], eax */ 10899 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x2B068D5C: mov byte ptr [eax + 0x15], 1 */ 10900 eax = MEM32(edi + 0x8); /* 0x2B068D60: mov eax, dword ptr [edi + 8] */ 10901 MEM32(eax) = ebx; /* 0x2B068D63: mov dword ptr [eax], ebx */ 10902 ecx = MEM32(edi + 0x8); /* 0x2B068D65: mov ecx, dword ptr [edi + 8] */ 10903 MEM32(ecx + 0x8) = ebx; /* 0x2B068D68: mov dword ptr [ecx + 8], ebx */ 10904 ebx = MEM32(edi + 0x8); /* 0x2B068D6B: mov ebx, dword ptr [edi + 8] */ 10905 PUSH32(esp, 0x18u); /* 0x2B068D6E: push 0x18 */ 10906 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D70: call 0x2b0ab212 */ /* not lifted */ 10907 RECOMP_FLAGS_IN(); 10908 MEM32(eax + 0x4) = ebx; /* 0x2B068D75: mov dword ptr [eax + 4], ebx */ 10909 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x2B068D78: mov byte ptr [eax + 0x14], 0 */ 10910 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x2B068D7C: mov byte ptr [eax + 0x15], 0 */ 10911 MEM32(edi + 0x4) = eax; /* 0x2B068D80: mov dword ptr [edi + 4], eax */ 10912 MEM32(eax) = eax; /* 0x2B068D83: mov dword ptr [eax], eax */ 10913 eax = MEM32(edi + 0x4); /* 0x2B068D85: mov eax, dword ptr [edi + 4] */ 10914 MEM32(eax + 0x8) = eax; /* 0x2B068D88: mov dword ptr [eax + 8], eax */ 10915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10917 esp = esp + 8; /* 0x2B068D8B: add esp, 8 */ 10918 _flag_k = FK_ADD; 10919 MEM32(edi + 0x10) = 0; /* 0x2B068D8E: mov dword ptr [edi + 0x10], 0 */ 10920 goto L_2B068D99; /* 0x2B068D95: jmp 0x2b068d99 */ 10921 L_2B068D97: 10922 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10923 edi = 0; /* 0x2B068D97: xor edi, edi */ 10924 _cf = 0; 10925 _flag_k = FK_TEST; 10926 L_2B068D99: 10927 eax = MEM32(ebp + 0x14); /* 0x2B068D99: mov eax, dword ptr [ebp + 0x14] */ 10928 MEM32(esi + 0x18) = edi; /* 0x2B068D9C: mov dword ptr [esi + 0x18], edi */ 10929 /* cmp MEM32(eax), 0 */ /* 0x2B068D9F: cmp dword ptr [eax], 0 */ 10930 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 10931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10932 _flag_k = FK_CMP; 10933 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DA2: mov dword ptr [ebp - 4], 0xffffffff */ 10934 MEM32(ebp + 0x10) = 0; /* 0x2B068DA9: mov dword ptr [ebp + 0x10], 0 */ 10935 if (CMP_LE(_flag_a, _flag_b)) goto L_2B068E48; /* 0x2B068DB0: jle 0x2b068e48 */ 10936 L_2B068DB6: 10937 ebx = eax; /* 0x2B068DB6: mov ebx, eax */ 10938 L_2B068DB8: 10939 edi = MEM32(eax); /* 0x2B068DB8: mov edi, dword ptr [eax] */ 10940 PUSH32(esp, 0x44u); /* 0x2B068DBA: push 0x44 */ 10941 MEM32(ebp + 0x18) = edi; /* 0x2B068DBC: mov dword ptr [ebp + 0x18], edi */ 10942 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068DBF: call 0x2b0ab212 */ /* not lifted */ 10943 RECOMP_FLAGS_IN(); 10944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10946 esp = esp + 4; /* 0x2B068DC4: add esp, 4 */ 10947 _flag_k = FK_ADD; 10948 MEM32(ebp + 0x8) = eax; /* 0x2B068DC7: mov dword ptr [ebp + 8], eax */ 10949 /* test eax, eax */ /* 0x2B068DCA: test eax, eax */ 10950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10951 _cf = 0; 10952 _flag_k = FK_TEST; 10953 MEM32(ebp + (-0x4)) = 6; /* 0x2B068DCC: mov dword ptr [ebp - 4], 6 */ 10954 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068DEC; /* 0x2B068DD3: je 0x2b068dec */ 10955 L_2B068DD5: 10956 edx = MEM32(esi + 0x1C); /* 0x2B068DD5: mov edx, dword ptr [esi + 0x1c] */ 10957 ecx = MEM32(edx + 0x14); /* 0x2B068DD8: mov ecx, dword ptr [edx + 0x14] */ 10958 PUSH32(esp, ecx); /* 0x2B068DDB: push ecx */ 10959 ecx = MEM32(ebp + 0x10); /* 0x2B068DDC: mov ecx, dword ptr [ebp + 0x10] */ 10960 PUSH32(esp, edi); /* 0x2B068DDF: push edi */ 10961 PUSH32(esp, ecx); /* 0x2B068DE0: push ecx */ 10962 ecx = eax; /* 0x2B068DE1: mov ecx, eax */ 10963 RECOMP_ICALL(0x2B0677A0u); /* 0x2B068DE3: call 0x2b0677a0 */ /* not lifted */ 10964 RECOMP_FLAGS_IN(); 10965 edi = eax; /* 0x2B068DE8: mov edi, eax */ 10966 goto L_2B068DEE; /* 0x2B068DEA: jmp 0x2b068dee */ 10967 L_2B068DEC: 10968 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10969 edi = 0; /* 0x2B068DEC: xor edi, edi */ 10970 _cf = 0; 10971 _flag_k = FK_TEST; 10972 L_2B068DEE: 10973 edx = MEM32(ebp + 0x18); /* 0x2B068DEE: mov edx, dword ptr [ebp + 0x18] */ 10974 ecx = MEM32(esi + 0x18); /* 0x2B068DF1: mov ecx, dword ptr [esi + 0x18] */ 10975 eax = ebp + (-0x2C); /* 0x2B068DF4: lea eax, [ebp - 0x2c] */ 10976 MEM32(ebp + (-0x2C)) = edx; /* 0x2B068DF7: mov dword ptr [ebp - 0x2c], edx */ 10977 PUSH32(esp, eax); /* 0x2B068DFA: push eax */ 10978 edx = ebp + (-0x44); /* 0x2B068DFB: lea edx, [ebp - 0x44] */ 10979 PUSH32(esp, edx); /* 0x2B068DFE: push edx */ 10980 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DFF: mov dword ptr [ebp - 4], 0xffffffff */ 10981 MEM32(ebp + (-0x28)) = 0; /* 0x2B068E06: mov dword ptr [ebp - 0x28], 0 */ 10982 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B068E0D: call 0x2b06a0b0 */ /* not lifted */ 10983 RECOMP_FLAGS_IN(); 10984 ecx = eax; /* 0x2B068E12: mov ecx, eax */ 10985 eax = MEM32(ecx); /* 0x2B068E14: mov eax, dword ptr [ecx] */ 10986 edx = MEM32(ecx + 0x4); /* 0x2B068E16: mov edx, dword ptr [ecx + 4] */ 10987 MEM32(eax + 0x10) = edi; /* 0x2B068E19: mov dword ptr [eax + 0x10], edi */ 10988 ecx = MEM32(esi + 0x1C); /* 0x2B068E1C: mov ecx, dword ptr [esi + 0x1c] */ 10989 PUSH32(esp, edi); /* 0x2B068E1F: push edi */ 10990 MEM32(ebp + (-0x30)) = edx; /* 0x2B068E20: mov dword ptr [ebp - 0x30], edx */ 10991 RECOMP_ICALL(0x2B069C60u); /* 0x2B068E23: call 0x2b069c60 */ /* not lifted */ 10992 RECOMP_FLAGS_IN(); 10993 eax = MEM32(ebp + (-0x10)); /* 0x2B068E28: mov eax, dword ptr [ebp - 0x10] */ 10994 edi = MEM32(ebp + 0x10); /* 0x2B068E2B: mov edi, dword ptr [ebp + 0x10] */ 10995 ecx = MEM32(ebx + 0x4); /* 0x2B068E2E: mov ecx, dword ptr [ebx + 4] */ 10996 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 10997 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10998 ebx = ebx + 4; /* 0x2B068E31: add ebx, 4 */ 10999 _flag_k = FK_ADD; 11000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 11001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11002 eax = eax + 0x1Eu; /* 0x2B068E34: add eax, 0x1e */ 11003 _flag_k = FK_ADD; 11004 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11005 edi = edi + 1; /* 0x2B068E37: inc edi */ 11006 _flag_k = FK_INC; 11007 /* test ecx, ecx */ /* 0x2B068E38: test ecx, ecx */ 11008 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11009 _cf = 0; 11010 _flag_k = FK_TEST; 11011 MEM32(ebp + (-0x10)) = eax; /* 0x2B068E3A: mov dword ptr [ebp - 0x10], eax */ 11012 MEM32(ebp + 0x10) = edi; /* 0x2B068E3D: mov dword ptr [ebp + 0x10], edi */ 11013 eax = ebx; /* 0x2B068E40: mov eax, ebx */ 11014 RECOMP_BACKEDGE(); 11015 if (TEST_G(_flag_a, _flag_b)) goto L_2B068DB8; /* 0x2B068E42: jg 0x2b068db8 */ 11016 L_2B068E48: 11017 PUSH32(esp, 0x38u); /* 0x2B068E48: push 0x38 */ 11018 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068E4A: call 0x2b0ab212 */ /* not lifted */ 11019 RECOMP_FLAGS_IN(); 11020 edi = eax; /* 0x2B068E4F: mov edi, eax */ 11021 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11022 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11023 esp = esp + 4; /* 0x2B068E51: add esp, 4 */ 11024 _flag_k = FK_ADD; 11025 MEM32(ebp + 0x10) = edi; /* 0x2B068E54: mov dword ptr [ebp + 0x10], edi */ 11026 /* test edi, edi */ /* 0x2B068E57: test edi, edi */ 11027 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11028 _cf = 0; 11029 _flag_k = FK_TEST; 11030 MEM32(ebp + (-0x4)) = 7; /* 0x2B068E59: mov dword ptr [ebp - 4], 7 */ 11031 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068E87; /* 0x2B068E60: je 0x2b068e87 */ 11032 L_2B068E62: 11033 eax = MEM32(esi + 0x1C); /* 0x2B068E62: mov eax, dword ptr [esi + 0x1c] */ 11034 ecx = MEM32(eax + 0x14); /* 0x2B068E65: mov ecx, dword ptr [eax + 0x14] */ 11035 PUSH32(esp, ecx); /* 0x2B068E68: push ecx */ 11036 PUSH32(esp, 0x5208u); /* 0x2B068E69: push 0x5208 */ 11037 PUSH32(esp, 0xD6u); /* 0x2B068E6E: push 0xd6 */ 11038 edx = ebp + (-0x14); /* 0x2B068E73: lea edx, [ebp - 0x14] */ 11039 PUSH32(esp, edx); /* 0x2B068E76: push edx */ 11040 ecx = edi; /* 0x2B068E77: mov ecx, edi */ 11041 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068E79: call dword ptr [0x2b0b5948] */ 11042 RECOMP_FLAGS_IN(); 11043 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068E7F: mov dword ptr [edi], 0x2b0b68f4 */ 11044 goto L_2B068E89; /* 0x2B068E85: jmp 0x2b068e89 */ 11045 L_2B068E87: 11046 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11047 edi = 0; /* 0x2B068E87: xor edi, edi */ 11048 _cf = 0; 11049 _flag_k = FK_TEST; 11050 L_2B068E89: 11051 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 11052 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 11053 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 11054 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 11055 eax = esi; /* 0x2B068E94: mov eax, esi */ 11056 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 11057 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 11058 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 11059 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 11060 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 11061 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 11062 RECOMP_REGS_OUT(); 11063 } 11064 11065 void sub_2B068CDD(void) { 11066 int _fpu_cmp = 0; 11067 uint32_t _cf = 0; 11068 int _df = 1; 11069 uint32_t _flag_k = FK_NONE; 11070 uint32_t _flag_a = 0, _flag_b = 0; 11071 uint32_t _itail_tgt = 0; 11072 RECOMP_REGS_LOCALS 11073 RECOMP_ENTER(0x2B068CDDu); 11074 11075 L_2B068CDD: 11076 ecx = MEM32(ebp + (-0x54)); /* 0x2B068CDD: mov ecx, dword ptr [ebp - 0x54] */ 11077 edx = MEM32(ebp + 0x18); /* 0x2B068CE0: mov edx, dword ptr [ebp + 0x18] */ 11078 MEM32(esi + 0x10) = eax; /* 0x2B068CE3: mov dword ptr [esi + 0x10], eax */ 11079 eax = MEM32(eax + 0x34); /* 0x2B068CE6: mov eax, dword ptr [eax + 0x34] */ 11080 MEM32(eax) = ecx; /* 0x2B068CE9: mov dword ptr [eax], ecx */ 11081 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11082 ecx = 0; /* 0x2B068CEB: xor ecx, ecx */ 11083 _cf = 0; 11084 _flag_k = FK_TEST; 11085 MEM32(eax + 0x4) = ecx; /* 0x2B068CED: mov dword ptr [eax + 4], ecx */ 11086 ecx = MEM32(ebp + (-0x48)); /* 0x2B068CF0: mov ecx, dword ptr [ebp - 0x48] */ 11087 MEM32(eax + 0x8) = edx; /* 0x2B068CF3: mov dword ptr [eax + 8], edx */ 11088 MEM32(eax + 0xC) = ecx; /* 0x2B068CF6: mov dword ptr [eax + 0xc], ecx */ 11089 ecx = MEM32(esi + 0x10); /* 0x2B068CF9: mov ecx, dword ptr [esi + 0x10] */ 11090 PUSH32(esp, 0x00CCF2FFu); /* 0x2B068CFC: push 0xccf2ff */ 11091 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068D01: mov dword ptr [ebp - 4], 0xffffffff */ 11092 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B068D08: call dword ptr [0x2b0b5858] */ 11093 RECOMP_FLAGS_IN(); 11094 eax = MEM32(esi + 0x10); /* 0x2B068D0E: mov eax, dword ptr [esi + 0x10] */ 11095 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B068D11: mov byte ptr [eax + 8], 0 */ 11096 edi = MEM32(ebp + (-0x10)); /* 0x2B068D15: mov edi, dword ptr [ebp - 0x10] */ 11097 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Au); 11098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11099 edi = edi + 0x1Au; /* 0x2B068D18: add edi, 0x1a */ 11100 _flag_k = FK_ADD; 11101 PUSH32(esp, 0x14u); /* 0x2B068D1B: push 0x14 */ 11102 MEM32(ebp + (-0x10)) = edi; /* 0x2B068D1D: mov dword ptr [ebp - 0x10], edi */ 11103 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D20: call 0x2b0ab212 */ /* not lifted */ 11104 RECOMP_FLAGS_IN(); 11105 edi = eax; /* 0x2B068D25: mov edi, eax */ 11106 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11107 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11108 esp = esp + 4; /* 0x2B068D27: add esp, 4 */ 11109 _flag_k = FK_ADD; 11110 MEM32(ebp + 0x10) = edi; /* 0x2B068D2A: mov dword ptr [ebp + 0x10], edi */ 11111 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11112 ebx = 0; /* 0x2B068D2D: xor ebx, ebx */ 11113 _cf = 0; 11114 _flag_k = FK_TEST; 11115 /* cmp edi, ebx */ /* 0x2B068D2F: cmp edi, ebx */ 11116 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 11117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11118 _flag_k = FK_CMP; 11119 MEM32(ebp + (-0x4)) = 5; /* 0x2B068D31: mov dword ptr [ebp - 4], 5 */ 11120 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068D97; /* 0x2B068D38: je 0x2b068d97 */ 11121 L_2B068D3A: 11122 SET_LO8(edx, MEM8(ebp + 0x13)); /* 0x2B068D3A: mov dl, byte ptr [ebp + 0x13] */ 11123 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B068D3D: mov al, byte ptr [ebp + 0x13] */ 11124 PUSH32(esp, 0x18u); /* 0x2B068D40: push 0x18 */ 11125 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x2B068D42: mov byte ptr [edi], dl */ 11126 MEM8(edi + 0x1) = (uint8_t)(LO8(eax)); /* 0x2B068D44: mov byte ptr [edi + 1], al */ 11127 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x2B068D47: mov byte ptr [edi + 0xc], bl */ 11128 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D4A: call 0x2b0ab212 */ /* not lifted */ 11129 RECOMP_FLAGS_IN(); 11130 MEM32(eax + 0x4) = ebx; /* 0x2B068D4F: mov dword ptr [eax + 4], ebx */ 11131 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2B068D52: mov byte ptr [eax + 0x14], 1 */ 11132 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B068D56: mov byte ptr [eax + 0x15], bl */ 11133 MEM32(edi + 0x8) = eax; /* 0x2B068D59: mov dword ptr [edi + 8], eax */ 11134 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x2B068D5C: mov byte ptr [eax + 0x15], 1 */ 11135 eax = MEM32(edi + 0x8); /* 0x2B068D60: mov eax, dword ptr [edi + 8] */ 11136 MEM32(eax) = ebx; /* 0x2B068D63: mov dword ptr [eax], ebx */ 11137 ecx = MEM32(edi + 0x8); /* 0x2B068D65: mov ecx, dword ptr [edi + 8] */ 11138 MEM32(ecx + 0x8) = ebx; /* 0x2B068D68: mov dword ptr [ecx + 8], ebx */ 11139 ebx = MEM32(edi + 0x8); /* 0x2B068D6B: mov ebx, dword ptr [edi + 8] */ 11140 PUSH32(esp, 0x18u); /* 0x2B068D6E: push 0x18 */ 11141 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068D70: call 0x2b0ab212 */ /* not lifted */ 11142 RECOMP_FLAGS_IN(); 11143 MEM32(eax + 0x4) = ebx; /* 0x2B068D75: mov dword ptr [eax + 4], ebx */ 11144 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x2B068D78: mov byte ptr [eax + 0x14], 0 */ 11145 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x2B068D7C: mov byte ptr [eax + 0x15], 0 */ 11146 MEM32(edi + 0x4) = eax; /* 0x2B068D80: mov dword ptr [edi + 4], eax */ 11147 MEM32(eax) = eax; /* 0x2B068D83: mov dword ptr [eax], eax */ 11148 eax = MEM32(edi + 0x4); /* 0x2B068D85: mov eax, dword ptr [edi + 4] */ 11149 MEM32(eax + 0x8) = eax; /* 0x2B068D88: mov dword ptr [eax + 8], eax */ 11150 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11152 esp = esp + 8; /* 0x2B068D8B: add esp, 8 */ 11153 _flag_k = FK_ADD; 11154 MEM32(edi + 0x10) = 0; /* 0x2B068D8E: mov dword ptr [edi + 0x10], 0 */ 11155 goto L_2B068D99; /* 0x2B068D95: jmp 0x2b068d99 */ 11156 L_2B068D97: 11157 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11158 edi = 0; /* 0x2B068D97: xor edi, edi */ 11159 _cf = 0; 11160 _flag_k = FK_TEST; 11161 L_2B068D99: 11162 eax = MEM32(ebp + 0x14); /* 0x2B068D99: mov eax, dword ptr [ebp + 0x14] */ 11163 MEM32(esi + 0x18) = edi; /* 0x2B068D9C: mov dword ptr [esi + 0x18], edi */ 11164 /* cmp MEM32(eax), 0 */ /* 0x2B068D9F: cmp dword ptr [eax], 0 */ 11165 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 11166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11167 _flag_k = FK_CMP; 11168 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DA2: mov dword ptr [ebp - 4], 0xffffffff */ 11169 MEM32(ebp + 0x10) = 0; /* 0x2B068DA9: mov dword ptr [ebp + 0x10], 0 */ 11170 if (CMP_LE(_flag_a, _flag_b)) goto L_2B068E48; /* 0x2B068DB0: jle 0x2b068e48 */ 11171 L_2B068DB6: 11172 ebx = eax; /* 0x2B068DB6: mov ebx, eax */ 11173 L_2B068DB8: 11174 edi = MEM32(eax); /* 0x2B068DB8: mov edi, dword ptr [eax] */ 11175 PUSH32(esp, 0x44u); /* 0x2B068DBA: push 0x44 */ 11176 MEM32(ebp + 0x18) = edi; /* 0x2B068DBC: mov dword ptr [ebp + 0x18], edi */ 11177 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068DBF: call 0x2b0ab212 */ /* not lifted */ 11178 RECOMP_FLAGS_IN(); 11179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11181 esp = esp + 4; /* 0x2B068DC4: add esp, 4 */ 11182 _flag_k = FK_ADD; 11183 MEM32(ebp + 0x8) = eax; /* 0x2B068DC7: mov dword ptr [ebp + 8], eax */ 11184 /* test eax, eax */ /* 0x2B068DCA: test eax, eax */ 11185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11186 _cf = 0; 11187 _flag_k = FK_TEST; 11188 MEM32(ebp + (-0x4)) = 6; /* 0x2B068DCC: mov dword ptr [ebp - 4], 6 */ 11189 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068DEC; /* 0x2B068DD3: je 0x2b068dec */ 11190 L_2B068DD5: 11191 edx = MEM32(esi + 0x1C); /* 0x2B068DD5: mov edx, dword ptr [esi + 0x1c] */ 11192 ecx = MEM32(edx + 0x14); /* 0x2B068DD8: mov ecx, dword ptr [edx + 0x14] */ 11193 PUSH32(esp, ecx); /* 0x2B068DDB: push ecx */ 11194 ecx = MEM32(ebp + 0x10); /* 0x2B068DDC: mov ecx, dword ptr [ebp + 0x10] */ 11195 PUSH32(esp, edi); /* 0x2B068DDF: push edi */ 11196 PUSH32(esp, ecx); /* 0x2B068DE0: push ecx */ 11197 ecx = eax; /* 0x2B068DE1: mov ecx, eax */ 11198 RECOMP_ICALL(0x2B0677A0u); /* 0x2B068DE3: call 0x2b0677a0 */ /* not lifted */ 11199 RECOMP_FLAGS_IN(); 11200 edi = eax; /* 0x2B068DE8: mov edi, eax */ 11201 goto L_2B068DEE; /* 0x2B068DEA: jmp 0x2b068dee */ 11202 L_2B068DEC: 11203 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11204 edi = 0; /* 0x2B068DEC: xor edi, edi */ 11205 _cf = 0; 11206 _flag_k = FK_TEST; 11207 L_2B068DEE: 11208 edx = MEM32(ebp + 0x18); /* 0x2B068DEE: mov edx, dword ptr [ebp + 0x18] */ 11209 ecx = MEM32(esi + 0x18); /* 0x2B068DF1: mov ecx, dword ptr [esi + 0x18] */ 11210 eax = ebp + (-0x2C); /* 0x2B068DF4: lea eax, [ebp - 0x2c] */ 11211 MEM32(ebp + (-0x2C)) = edx; /* 0x2B068DF7: mov dword ptr [ebp - 0x2c], edx */ 11212 PUSH32(esp, eax); /* 0x2B068DFA: push eax */ 11213 edx = ebp + (-0x44); /* 0x2B068DFB: lea edx, [ebp - 0x44] */ 11214 PUSH32(esp, edx); /* 0x2B068DFE: push edx */ 11215 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DFF: mov dword ptr [ebp - 4], 0xffffffff */ 11216 MEM32(ebp + (-0x28)) = 0; /* 0x2B068E06: mov dword ptr [ebp - 0x28], 0 */ 11217 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B068E0D: call 0x2b06a0b0 */ /* not lifted */ 11218 RECOMP_FLAGS_IN(); 11219 ecx = eax; /* 0x2B068E12: mov ecx, eax */ 11220 eax = MEM32(ecx); /* 0x2B068E14: mov eax, dword ptr [ecx] */ 11221 edx = MEM32(ecx + 0x4); /* 0x2B068E16: mov edx, dword ptr [ecx + 4] */ 11222 MEM32(eax + 0x10) = edi; /* 0x2B068E19: mov dword ptr [eax + 0x10], edi */ 11223 ecx = MEM32(esi + 0x1C); /* 0x2B068E1C: mov ecx, dword ptr [esi + 0x1c] */ 11224 PUSH32(esp, edi); /* 0x2B068E1F: push edi */ 11225 MEM32(ebp + (-0x30)) = edx; /* 0x2B068E20: mov dword ptr [ebp - 0x30], edx */ 11226 RECOMP_ICALL(0x2B069C60u); /* 0x2B068E23: call 0x2b069c60 */ /* not lifted */ 11227 RECOMP_FLAGS_IN(); 11228 eax = MEM32(ebp + (-0x10)); /* 0x2B068E28: mov eax, dword ptr [ebp - 0x10] */ 11229 edi = MEM32(ebp + 0x10); /* 0x2B068E2B: mov edi, dword ptr [ebp + 0x10] */ 11230 ecx = MEM32(ebx + 0x4); /* 0x2B068E2E: mov ecx, dword ptr [ebx + 4] */ 11231 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 11232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11233 ebx = ebx + 4; /* 0x2B068E31: add ebx, 4 */ 11234 _flag_k = FK_ADD; 11235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 11236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11237 eax = eax + 0x1Eu; /* 0x2B068E34: add eax, 0x1e */ 11238 _flag_k = FK_ADD; 11239 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11240 edi = edi + 1; /* 0x2B068E37: inc edi */ 11241 _flag_k = FK_INC; 11242 /* test ecx, ecx */ /* 0x2B068E38: test ecx, ecx */ 11243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11244 _cf = 0; 11245 _flag_k = FK_TEST; 11246 MEM32(ebp + (-0x10)) = eax; /* 0x2B068E3A: mov dword ptr [ebp - 0x10], eax */ 11247 MEM32(ebp + 0x10) = edi; /* 0x2B068E3D: mov dword ptr [ebp + 0x10], edi */ 11248 eax = ebx; /* 0x2B068E40: mov eax, ebx */ 11249 RECOMP_BACKEDGE(); 11250 if (TEST_G(_flag_a, _flag_b)) goto L_2B068DB8; /* 0x2B068E42: jg 0x2b068db8 */ 11251 L_2B068E48: 11252 PUSH32(esp, 0x38u); /* 0x2B068E48: push 0x38 */ 11253 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068E4A: call 0x2b0ab212 */ /* not lifted */ 11254 RECOMP_FLAGS_IN(); 11255 edi = eax; /* 0x2B068E4F: mov edi, eax */ 11256 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11258 esp = esp + 4; /* 0x2B068E51: add esp, 4 */ 11259 _flag_k = FK_ADD; 11260 MEM32(ebp + 0x10) = edi; /* 0x2B068E54: mov dword ptr [ebp + 0x10], edi */ 11261 /* test edi, edi */ /* 0x2B068E57: test edi, edi */ 11262 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11263 _cf = 0; 11264 _flag_k = FK_TEST; 11265 MEM32(ebp + (-0x4)) = 7; /* 0x2B068E59: mov dword ptr [ebp - 4], 7 */ 11266 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068E87; /* 0x2B068E60: je 0x2b068e87 */ 11267 L_2B068E62: 11268 eax = MEM32(esi + 0x1C); /* 0x2B068E62: mov eax, dword ptr [esi + 0x1c] */ 11269 ecx = MEM32(eax + 0x14); /* 0x2B068E65: mov ecx, dword ptr [eax + 0x14] */ 11270 PUSH32(esp, ecx); /* 0x2B068E68: push ecx */ 11271 PUSH32(esp, 0x5208u); /* 0x2B068E69: push 0x5208 */ 11272 PUSH32(esp, 0xD6u); /* 0x2B068E6E: push 0xd6 */ 11273 edx = ebp + (-0x14); /* 0x2B068E73: lea edx, [ebp - 0x14] */ 11274 PUSH32(esp, edx); /* 0x2B068E76: push edx */ 11275 ecx = edi; /* 0x2B068E77: mov ecx, edi */ 11276 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068E79: call dword ptr [0x2b0b5948] */ 11277 RECOMP_FLAGS_IN(); 11278 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068E7F: mov dword ptr [edi], 0x2b0b68f4 */ 11279 goto L_2B068E89; /* 0x2B068E85: jmp 0x2b068e89 */ 11280 L_2B068E87: 11281 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11282 edi = 0; /* 0x2B068E87: xor edi, edi */ 11283 _cf = 0; 11284 _flag_k = FK_TEST; 11285 L_2B068E89: 11286 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 11287 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 11288 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 11289 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 11290 eax = esi; /* 0x2B068E94: mov eax, esi */ 11291 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 11292 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 11293 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 11294 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 11295 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 11296 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 11297 RECOMP_REGS_OUT(); 11298 } 11299 11300 void sub_2B068D99(void) { 11301 int _fpu_cmp = 0; 11302 uint32_t _cf = 0; 11303 int _df = 1; 11304 uint32_t _flag_k = FK_NONE; 11305 uint32_t _flag_a = 0, _flag_b = 0; 11306 uint32_t _itail_tgt = 0; 11307 RECOMP_REGS_LOCALS 11308 RECOMP_ENTER(0x2B068D99u); 11309 11310 L_2B068D99: 11311 eax = MEM32(ebp + 0x14); /* 0x2B068D99: mov eax, dword ptr [ebp + 0x14] */ 11312 MEM32(esi + 0x18) = edi; /* 0x2B068D9C: mov dword ptr [esi + 0x18], edi */ 11313 /* cmp MEM32(eax), 0 */ /* 0x2B068D9F: cmp dword ptr [eax], 0 */ 11314 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 11315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11316 _flag_k = FK_CMP; 11317 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DA2: mov dword ptr [ebp - 4], 0xffffffff */ 11318 MEM32(ebp + 0x10) = 0; /* 0x2B068DA9: mov dword ptr [ebp + 0x10], 0 */ 11319 if (CMP_LE(_flag_a, _flag_b)) goto L_2B068E48; /* 0x2B068DB0: jle 0x2b068e48 */ 11320 L_2B068DB6: 11321 ebx = eax; /* 0x2B068DB6: mov ebx, eax */ 11322 L_2B068DB8: 11323 edi = MEM32(eax); /* 0x2B068DB8: mov edi, dword ptr [eax] */ 11324 PUSH32(esp, 0x44u); /* 0x2B068DBA: push 0x44 */ 11325 MEM32(ebp + 0x18) = edi; /* 0x2B068DBC: mov dword ptr [ebp + 0x18], edi */ 11326 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068DBF: call 0x2b0ab212 */ /* not lifted */ 11327 RECOMP_FLAGS_IN(); 11328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11330 esp = esp + 4; /* 0x2B068DC4: add esp, 4 */ 11331 _flag_k = FK_ADD; 11332 MEM32(ebp + 0x8) = eax; /* 0x2B068DC7: mov dword ptr [ebp + 8], eax */ 11333 /* test eax, eax */ /* 0x2B068DCA: test eax, eax */ 11334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11335 _cf = 0; 11336 _flag_k = FK_TEST; 11337 MEM32(ebp + (-0x4)) = 6; /* 0x2B068DCC: mov dword ptr [ebp - 4], 6 */ 11338 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068DEC; /* 0x2B068DD3: je 0x2b068dec */ 11339 L_2B068DD5: 11340 edx = MEM32(esi + 0x1C); /* 0x2B068DD5: mov edx, dword ptr [esi + 0x1c] */ 11341 ecx = MEM32(edx + 0x14); /* 0x2B068DD8: mov ecx, dword ptr [edx + 0x14] */ 11342 PUSH32(esp, ecx); /* 0x2B068DDB: push ecx */ 11343 ecx = MEM32(ebp + 0x10); /* 0x2B068DDC: mov ecx, dword ptr [ebp + 0x10] */ 11344 PUSH32(esp, edi); /* 0x2B068DDF: push edi */ 11345 PUSH32(esp, ecx); /* 0x2B068DE0: push ecx */ 11346 ecx = eax; /* 0x2B068DE1: mov ecx, eax */ 11347 RECOMP_ICALL(0x2B0677A0u); /* 0x2B068DE3: call 0x2b0677a0 */ /* not lifted */ 11348 RECOMP_FLAGS_IN(); 11349 edi = eax; /* 0x2B068DE8: mov edi, eax */ 11350 goto L_2B068DEE; /* 0x2B068DEA: jmp 0x2b068dee */ 11351 L_2B068DEC: 11352 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11353 edi = 0; /* 0x2B068DEC: xor edi, edi */ 11354 _cf = 0; 11355 _flag_k = FK_TEST; 11356 L_2B068DEE: 11357 edx = MEM32(ebp + 0x18); /* 0x2B068DEE: mov edx, dword ptr [ebp + 0x18] */ 11358 ecx = MEM32(esi + 0x18); /* 0x2B068DF1: mov ecx, dword ptr [esi + 0x18] */ 11359 eax = ebp + (-0x2C); /* 0x2B068DF4: lea eax, [ebp - 0x2c] */ 11360 MEM32(ebp + (-0x2C)) = edx; /* 0x2B068DF7: mov dword ptr [ebp - 0x2c], edx */ 11361 PUSH32(esp, eax); /* 0x2B068DFA: push eax */ 11362 edx = ebp + (-0x44); /* 0x2B068DFB: lea edx, [ebp - 0x44] */ 11363 PUSH32(esp, edx); /* 0x2B068DFE: push edx */ 11364 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DFF: mov dword ptr [ebp - 4], 0xffffffff */ 11365 MEM32(ebp + (-0x28)) = 0; /* 0x2B068E06: mov dword ptr [ebp - 0x28], 0 */ 11366 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B068E0D: call 0x2b06a0b0 */ /* not lifted */ 11367 RECOMP_FLAGS_IN(); 11368 ecx = eax; /* 0x2B068E12: mov ecx, eax */ 11369 eax = MEM32(ecx); /* 0x2B068E14: mov eax, dword ptr [ecx] */ 11370 edx = MEM32(ecx + 0x4); /* 0x2B068E16: mov edx, dword ptr [ecx + 4] */ 11371 MEM32(eax + 0x10) = edi; /* 0x2B068E19: mov dword ptr [eax + 0x10], edi */ 11372 ecx = MEM32(esi + 0x1C); /* 0x2B068E1C: mov ecx, dword ptr [esi + 0x1c] */ 11373 PUSH32(esp, edi); /* 0x2B068E1F: push edi */ 11374 MEM32(ebp + (-0x30)) = edx; /* 0x2B068E20: mov dword ptr [ebp - 0x30], edx */ 11375 RECOMP_ICALL(0x2B069C60u); /* 0x2B068E23: call 0x2b069c60 */ /* not lifted */ 11376 RECOMP_FLAGS_IN(); 11377 eax = MEM32(ebp + (-0x10)); /* 0x2B068E28: mov eax, dword ptr [ebp - 0x10] */ 11378 edi = MEM32(ebp + 0x10); /* 0x2B068E2B: mov edi, dword ptr [ebp + 0x10] */ 11379 ecx = MEM32(ebx + 0x4); /* 0x2B068E2E: mov ecx, dword ptr [ebx + 4] */ 11380 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 11381 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11382 ebx = ebx + 4; /* 0x2B068E31: add ebx, 4 */ 11383 _flag_k = FK_ADD; 11384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 11385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11386 eax = eax + 0x1Eu; /* 0x2B068E34: add eax, 0x1e */ 11387 _flag_k = FK_ADD; 11388 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11389 edi = edi + 1; /* 0x2B068E37: inc edi */ 11390 _flag_k = FK_INC; 11391 /* test ecx, ecx */ /* 0x2B068E38: test ecx, ecx */ 11392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11393 _cf = 0; 11394 _flag_k = FK_TEST; 11395 MEM32(ebp + (-0x10)) = eax; /* 0x2B068E3A: mov dword ptr [ebp - 0x10], eax */ 11396 MEM32(ebp + 0x10) = edi; /* 0x2B068E3D: mov dword ptr [ebp + 0x10], edi */ 11397 eax = ebx; /* 0x2B068E40: mov eax, ebx */ 11398 RECOMP_BACKEDGE(); 11399 if (TEST_G(_flag_a, _flag_b)) goto L_2B068DB8; /* 0x2B068E42: jg 0x2b068db8 */ 11400 L_2B068E48: 11401 PUSH32(esp, 0x38u); /* 0x2B068E48: push 0x38 */ 11402 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068E4A: call 0x2b0ab212 */ /* not lifted */ 11403 RECOMP_FLAGS_IN(); 11404 edi = eax; /* 0x2B068E4F: mov edi, eax */ 11405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11407 esp = esp + 4; /* 0x2B068E51: add esp, 4 */ 11408 _flag_k = FK_ADD; 11409 MEM32(ebp + 0x10) = edi; /* 0x2B068E54: mov dword ptr [ebp + 0x10], edi */ 11410 /* test edi, edi */ /* 0x2B068E57: test edi, edi */ 11411 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11412 _cf = 0; 11413 _flag_k = FK_TEST; 11414 MEM32(ebp + (-0x4)) = 7; /* 0x2B068E59: mov dword ptr [ebp - 4], 7 */ 11415 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068E87; /* 0x2B068E60: je 0x2b068e87 */ 11416 L_2B068E62: 11417 eax = MEM32(esi + 0x1C); /* 0x2B068E62: mov eax, dword ptr [esi + 0x1c] */ 11418 ecx = MEM32(eax + 0x14); /* 0x2B068E65: mov ecx, dword ptr [eax + 0x14] */ 11419 PUSH32(esp, ecx); /* 0x2B068E68: push ecx */ 11420 PUSH32(esp, 0x5208u); /* 0x2B068E69: push 0x5208 */ 11421 PUSH32(esp, 0xD6u); /* 0x2B068E6E: push 0xd6 */ 11422 edx = ebp + (-0x14); /* 0x2B068E73: lea edx, [ebp - 0x14] */ 11423 PUSH32(esp, edx); /* 0x2B068E76: push edx */ 11424 ecx = edi; /* 0x2B068E77: mov ecx, edi */ 11425 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068E79: call dword ptr [0x2b0b5948] */ 11426 RECOMP_FLAGS_IN(); 11427 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068E7F: mov dword ptr [edi], 0x2b0b68f4 */ 11428 goto L_2B068E89; /* 0x2B068E85: jmp 0x2b068e89 */ 11429 L_2B068E87: 11430 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11431 edi = 0; /* 0x2B068E87: xor edi, edi */ 11432 _cf = 0; 11433 _flag_k = FK_TEST; 11434 L_2B068E89: 11435 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 11436 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 11437 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 11438 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 11439 eax = esi; /* 0x2B068E94: mov eax, esi */ 11440 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 11441 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 11442 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 11443 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 11444 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 11445 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 11446 RECOMP_REGS_OUT(); 11447 } 11448 11449 void sub_2B068DB8(void) { 11450 int _fpu_cmp = 0; 11451 uint32_t _cf = 0; 11452 int _df = 1; 11453 uint32_t _flag_k = FK_NONE; 11454 uint32_t _flag_a = 0, _flag_b = 0; 11455 uint32_t _itail_tgt = 0; 11456 RECOMP_REGS_LOCALS 11457 RECOMP_ENTER(0x2B068DB8u); 11458 11459 L_2B068DB8: 11460 edi = MEM32(eax); /* 0x2B068DB8: mov edi, dword ptr [eax] */ 11461 PUSH32(esp, 0x44u); /* 0x2B068DBA: push 0x44 */ 11462 MEM32(ebp + 0x18) = edi; /* 0x2B068DBC: mov dword ptr [ebp + 0x18], edi */ 11463 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068DBF: call 0x2b0ab212 */ /* not lifted */ 11464 RECOMP_FLAGS_IN(); 11465 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11466 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11467 esp = esp + 4; /* 0x2B068DC4: add esp, 4 */ 11468 _flag_k = FK_ADD; 11469 MEM32(ebp + 0x8) = eax; /* 0x2B068DC7: mov dword ptr [ebp + 8], eax */ 11470 /* test eax, eax */ /* 0x2B068DCA: test eax, eax */ 11471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11472 _cf = 0; 11473 _flag_k = FK_TEST; 11474 MEM32(ebp + (-0x4)) = 6; /* 0x2B068DCC: mov dword ptr [ebp - 4], 6 */ 11475 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068DEC; /* 0x2B068DD3: je 0x2b068dec */ 11476 L_2B068DD5: 11477 edx = MEM32(esi + 0x1C); /* 0x2B068DD5: mov edx, dword ptr [esi + 0x1c] */ 11478 ecx = MEM32(edx + 0x14); /* 0x2B068DD8: mov ecx, dword ptr [edx + 0x14] */ 11479 PUSH32(esp, ecx); /* 0x2B068DDB: push ecx */ 11480 ecx = MEM32(ebp + 0x10); /* 0x2B068DDC: mov ecx, dword ptr [ebp + 0x10] */ 11481 PUSH32(esp, edi); /* 0x2B068DDF: push edi */ 11482 PUSH32(esp, ecx); /* 0x2B068DE0: push ecx */ 11483 ecx = eax; /* 0x2B068DE1: mov ecx, eax */ 11484 RECOMP_ICALL(0x2B0677A0u); /* 0x2B068DE3: call 0x2b0677a0 */ /* not lifted */ 11485 RECOMP_FLAGS_IN(); 11486 edi = eax; /* 0x2B068DE8: mov edi, eax */ 11487 goto L_2B068DEE; /* 0x2B068DEA: jmp 0x2b068dee */ 11488 L_2B068DEC: 11489 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11490 edi = 0; /* 0x2B068DEC: xor edi, edi */ 11491 _cf = 0; 11492 _flag_k = FK_TEST; 11493 L_2B068DEE: 11494 edx = MEM32(ebp + 0x18); /* 0x2B068DEE: mov edx, dword ptr [ebp + 0x18] */ 11495 ecx = MEM32(esi + 0x18); /* 0x2B068DF1: mov ecx, dword ptr [esi + 0x18] */ 11496 eax = ebp + (-0x2C); /* 0x2B068DF4: lea eax, [ebp - 0x2c] */ 11497 MEM32(ebp + (-0x2C)) = edx; /* 0x2B068DF7: mov dword ptr [ebp - 0x2c], edx */ 11498 PUSH32(esp, eax); /* 0x2B068DFA: push eax */ 11499 edx = ebp + (-0x44); /* 0x2B068DFB: lea edx, [ebp - 0x44] */ 11500 PUSH32(esp, edx); /* 0x2B068DFE: push edx */ 11501 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DFF: mov dword ptr [ebp - 4], 0xffffffff */ 11502 MEM32(ebp + (-0x28)) = 0; /* 0x2B068E06: mov dword ptr [ebp - 0x28], 0 */ 11503 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B068E0D: call 0x2b06a0b0 */ /* not lifted */ 11504 RECOMP_FLAGS_IN(); 11505 ecx = eax; /* 0x2B068E12: mov ecx, eax */ 11506 eax = MEM32(ecx); /* 0x2B068E14: mov eax, dword ptr [ecx] */ 11507 edx = MEM32(ecx + 0x4); /* 0x2B068E16: mov edx, dword ptr [ecx + 4] */ 11508 MEM32(eax + 0x10) = edi; /* 0x2B068E19: mov dword ptr [eax + 0x10], edi */ 11509 ecx = MEM32(esi + 0x1C); /* 0x2B068E1C: mov ecx, dword ptr [esi + 0x1c] */ 11510 PUSH32(esp, edi); /* 0x2B068E1F: push edi */ 11511 MEM32(ebp + (-0x30)) = edx; /* 0x2B068E20: mov dword ptr [ebp - 0x30], edx */ 11512 RECOMP_ICALL(0x2B069C60u); /* 0x2B068E23: call 0x2b069c60 */ /* not lifted */ 11513 RECOMP_FLAGS_IN(); 11514 eax = MEM32(ebp + (-0x10)); /* 0x2B068E28: mov eax, dword ptr [ebp - 0x10] */ 11515 edi = MEM32(ebp + 0x10); /* 0x2B068E2B: mov edi, dword ptr [ebp + 0x10] */ 11516 ecx = MEM32(ebx + 0x4); /* 0x2B068E2E: mov ecx, dword ptr [ebx + 4] */ 11517 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 11518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11519 ebx = ebx + 4; /* 0x2B068E31: add ebx, 4 */ 11520 _flag_k = FK_ADD; 11521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 11522 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11523 eax = eax + 0x1Eu; /* 0x2B068E34: add eax, 0x1e */ 11524 _flag_k = FK_ADD; 11525 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11526 edi = edi + 1; /* 0x2B068E37: inc edi */ 11527 _flag_k = FK_INC; 11528 /* test ecx, ecx */ /* 0x2B068E38: test ecx, ecx */ 11529 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11530 _cf = 0; 11531 _flag_k = FK_TEST; 11532 MEM32(ebp + (-0x10)) = eax; /* 0x2B068E3A: mov dword ptr [ebp - 0x10], eax */ 11533 MEM32(ebp + 0x10) = edi; /* 0x2B068E3D: mov dword ptr [ebp + 0x10], edi */ 11534 eax = ebx; /* 0x2B068E40: mov eax, ebx */ 11535 RECOMP_BACKEDGE(); 11536 if (TEST_G(_flag_a, _flag_b)) goto L_2B068DB8; /* 0x2B068E42: jg 0x2b068db8 */ 11537 L_2B068E48: 11538 PUSH32(esp, 0x38u); /* 0x2B068E48: push 0x38 */ 11539 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068E4A: call 0x2b0ab212 */ /* not lifted */ 11540 RECOMP_FLAGS_IN(); 11541 edi = eax; /* 0x2B068E4F: mov edi, eax */ 11542 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11544 esp = esp + 4; /* 0x2B068E51: add esp, 4 */ 11545 _flag_k = FK_ADD; 11546 MEM32(ebp + 0x10) = edi; /* 0x2B068E54: mov dword ptr [ebp + 0x10], edi */ 11547 /* test edi, edi */ /* 0x2B068E57: test edi, edi */ 11548 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11549 _cf = 0; 11550 _flag_k = FK_TEST; 11551 MEM32(ebp + (-0x4)) = 7; /* 0x2B068E59: mov dword ptr [ebp - 4], 7 */ 11552 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068E87; /* 0x2B068E60: je 0x2b068e87 */ 11553 L_2B068E62: 11554 eax = MEM32(esi + 0x1C); /* 0x2B068E62: mov eax, dword ptr [esi + 0x1c] */ 11555 ecx = MEM32(eax + 0x14); /* 0x2B068E65: mov ecx, dword ptr [eax + 0x14] */ 11556 PUSH32(esp, ecx); /* 0x2B068E68: push ecx */ 11557 PUSH32(esp, 0x5208u); /* 0x2B068E69: push 0x5208 */ 11558 PUSH32(esp, 0xD6u); /* 0x2B068E6E: push 0xd6 */ 11559 edx = ebp + (-0x14); /* 0x2B068E73: lea edx, [ebp - 0x14] */ 11560 PUSH32(esp, edx); /* 0x2B068E76: push edx */ 11561 ecx = edi; /* 0x2B068E77: mov ecx, edi */ 11562 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068E79: call dword ptr [0x2b0b5948] */ 11563 RECOMP_FLAGS_IN(); 11564 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068E7F: mov dword ptr [edi], 0x2b0b68f4 */ 11565 goto L_2B068E89; /* 0x2B068E85: jmp 0x2b068e89 */ 11566 L_2B068E87: 11567 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11568 edi = 0; /* 0x2B068E87: xor edi, edi */ 11569 _cf = 0; 11570 _flag_k = FK_TEST; 11571 L_2B068E89: 11572 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 11573 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 11574 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 11575 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 11576 eax = esi; /* 0x2B068E94: mov eax, esi */ 11577 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 11578 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 11579 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 11580 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 11581 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 11582 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 11583 RECOMP_REGS_OUT(); 11584 } 11585 11586 void sub_2B068DEE(void) { 11587 int _fpu_cmp = 0; 11588 uint32_t _cf = 0; 11589 int _df = 1; 11590 uint32_t _flag_k = FK_NONE; 11591 uint32_t _flag_a = 0, _flag_b = 0; 11592 uint32_t _itail_tgt = 0; 11593 RECOMP_REGS_LOCALS 11594 RECOMP_ENTER(0x2B068DEEu); 11595 11596 goto L_2B068DEE; 11597 L_2B068DB8: 11598 edi = MEM32(eax); /* 0x2B068DB8: mov edi, dword ptr [eax] */ 11599 PUSH32(esp, 0x44u); /* 0x2B068DBA: push 0x44 */ 11600 MEM32(ebp + 0x18) = edi; /* 0x2B068DBC: mov dword ptr [ebp + 0x18], edi */ 11601 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068DBF: call 0x2b0ab212 */ /* not lifted */ 11602 RECOMP_FLAGS_IN(); 11603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11605 esp = esp + 4; /* 0x2B068DC4: add esp, 4 */ 11606 _flag_k = FK_ADD; 11607 MEM32(ebp + 0x8) = eax; /* 0x2B068DC7: mov dword ptr [ebp + 8], eax */ 11608 /* test eax, eax */ /* 0x2B068DCA: test eax, eax */ 11609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11610 _cf = 0; 11611 _flag_k = FK_TEST; 11612 MEM32(ebp + (-0x4)) = 6; /* 0x2B068DCC: mov dword ptr [ebp - 4], 6 */ 11613 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068DEC; /* 0x2B068DD3: je 0x2b068dec */ 11614 L_2B068DD5: 11615 edx = MEM32(esi + 0x1C); /* 0x2B068DD5: mov edx, dword ptr [esi + 0x1c] */ 11616 ecx = MEM32(edx + 0x14); /* 0x2B068DD8: mov ecx, dword ptr [edx + 0x14] */ 11617 PUSH32(esp, ecx); /* 0x2B068DDB: push ecx */ 11618 ecx = MEM32(ebp + 0x10); /* 0x2B068DDC: mov ecx, dword ptr [ebp + 0x10] */ 11619 PUSH32(esp, edi); /* 0x2B068DDF: push edi */ 11620 PUSH32(esp, ecx); /* 0x2B068DE0: push ecx */ 11621 ecx = eax; /* 0x2B068DE1: mov ecx, eax */ 11622 RECOMP_ICALL(0x2B0677A0u); /* 0x2B068DE3: call 0x2b0677a0 */ /* not lifted */ 11623 RECOMP_FLAGS_IN(); 11624 edi = eax; /* 0x2B068DE8: mov edi, eax */ 11625 goto L_2B068DEE; /* 0x2B068DEA: jmp 0x2b068dee */ 11626 L_2B068DEC: 11627 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11628 edi = 0; /* 0x2B068DEC: xor edi, edi */ 11629 _cf = 0; 11630 _flag_k = FK_TEST; 11631 L_2B068DEE: 11632 edx = MEM32(ebp + 0x18); /* 0x2B068DEE: mov edx, dword ptr [ebp + 0x18] */ 11633 ecx = MEM32(esi + 0x18); /* 0x2B068DF1: mov ecx, dword ptr [esi + 0x18] */ 11634 eax = ebp + (-0x2C); /* 0x2B068DF4: lea eax, [ebp - 0x2c] */ 11635 MEM32(ebp + (-0x2C)) = edx; /* 0x2B068DF7: mov dword ptr [ebp - 0x2c], edx */ 11636 PUSH32(esp, eax); /* 0x2B068DFA: push eax */ 11637 edx = ebp + (-0x44); /* 0x2B068DFB: lea edx, [ebp - 0x44] */ 11638 PUSH32(esp, edx); /* 0x2B068DFE: push edx */ 11639 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B068DFF: mov dword ptr [ebp - 4], 0xffffffff */ 11640 MEM32(ebp + (-0x28)) = 0; /* 0x2B068E06: mov dword ptr [ebp - 0x28], 0 */ 11641 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B068E0D: call 0x2b06a0b0 */ /* not lifted */ 11642 RECOMP_FLAGS_IN(); 11643 ecx = eax; /* 0x2B068E12: mov ecx, eax */ 11644 eax = MEM32(ecx); /* 0x2B068E14: mov eax, dword ptr [ecx] */ 11645 edx = MEM32(ecx + 0x4); /* 0x2B068E16: mov edx, dword ptr [ecx + 4] */ 11646 MEM32(eax + 0x10) = edi; /* 0x2B068E19: mov dword ptr [eax + 0x10], edi */ 11647 ecx = MEM32(esi + 0x1C); /* 0x2B068E1C: mov ecx, dword ptr [esi + 0x1c] */ 11648 PUSH32(esp, edi); /* 0x2B068E1F: push edi */ 11649 MEM32(ebp + (-0x30)) = edx; /* 0x2B068E20: mov dword ptr [ebp - 0x30], edx */ 11650 RECOMP_ICALL(0x2B069C60u); /* 0x2B068E23: call 0x2b069c60 */ /* not lifted */ 11651 RECOMP_FLAGS_IN(); 11652 eax = MEM32(ebp + (-0x10)); /* 0x2B068E28: mov eax, dword ptr [ebp - 0x10] */ 11653 edi = MEM32(ebp + 0x10); /* 0x2B068E2B: mov edi, dword ptr [ebp + 0x10] */ 11654 ecx = MEM32(ebx + 0x4); /* 0x2B068E2E: mov ecx, dword ptr [ebx + 4] */ 11655 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 11656 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11657 ebx = ebx + 4; /* 0x2B068E31: add ebx, 4 */ 11658 _flag_k = FK_ADD; 11659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 11660 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11661 eax = eax + 0x1Eu; /* 0x2B068E34: add eax, 0x1e */ 11662 _flag_k = FK_ADD; 11663 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11664 edi = edi + 1; /* 0x2B068E37: inc edi */ 11665 _flag_k = FK_INC; 11666 /* test ecx, ecx */ /* 0x2B068E38: test ecx, ecx */ 11667 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11668 _cf = 0; 11669 _flag_k = FK_TEST; 11670 MEM32(ebp + (-0x10)) = eax; /* 0x2B068E3A: mov dword ptr [ebp - 0x10], eax */ 11671 MEM32(ebp + 0x10) = edi; /* 0x2B068E3D: mov dword ptr [ebp + 0x10], edi */ 11672 eax = ebx; /* 0x2B068E40: mov eax, ebx */ 11673 RECOMP_BACKEDGE(); 11674 if (TEST_G(_flag_a, _flag_b)) goto L_2B068DB8; /* 0x2B068E42: jg 0x2b068db8 */ 11675 L_2B068E48: 11676 PUSH32(esp, 0x38u); /* 0x2B068E48: push 0x38 */ 11677 RECOMP_ICALL(0x2B0AB212u); /* 0x2B068E4A: call 0x2b0ab212 */ /* not lifted */ 11678 RECOMP_FLAGS_IN(); 11679 edi = eax; /* 0x2B068E4F: mov edi, eax */ 11680 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11681 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11682 esp = esp + 4; /* 0x2B068E51: add esp, 4 */ 11683 _flag_k = FK_ADD; 11684 MEM32(ebp + 0x10) = edi; /* 0x2B068E54: mov dword ptr [ebp + 0x10], edi */ 11685 /* test edi, edi */ /* 0x2B068E57: test edi, edi */ 11686 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11687 _cf = 0; 11688 _flag_k = FK_TEST; 11689 MEM32(ebp + (-0x4)) = 7; /* 0x2B068E59: mov dword ptr [ebp - 4], 7 */ 11690 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068E87; /* 0x2B068E60: je 0x2b068e87 */ 11691 L_2B068E62: 11692 eax = MEM32(esi + 0x1C); /* 0x2B068E62: mov eax, dword ptr [esi + 0x1c] */ 11693 ecx = MEM32(eax + 0x14); /* 0x2B068E65: mov ecx, dword ptr [eax + 0x14] */ 11694 PUSH32(esp, ecx); /* 0x2B068E68: push ecx */ 11695 PUSH32(esp, 0x5208u); /* 0x2B068E69: push 0x5208 */ 11696 PUSH32(esp, 0xD6u); /* 0x2B068E6E: push 0xd6 */ 11697 edx = ebp + (-0x14); /* 0x2B068E73: lea edx, [ebp - 0x14] */ 11698 PUSH32(esp, edx); /* 0x2B068E76: push edx */ 11699 ecx = edi; /* 0x2B068E77: mov ecx, edi */ 11700 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B068E79: call dword ptr [0x2b0b5948] */ 11701 RECOMP_FLAGS_IN(); 11702 MEM32(edi) = 0x2B0B68F4u; /* 0x2B068E7F: mov dword ptr [edi], 0x2b0b68f4 */ 11703 goto L_2B068E89; /* 0x2B068E85: jmp 0x2b068e89 */ 11704 L_2B068E87: 11705 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11706 edi = 0; /* 0x2B068E87: xor edi, edi */ 11707 _cf = 0; 11708 _flag_k = FK_TEST; 11709 L_2B068E89: 11710 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 11711 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 11712 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 11713 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 11714 eax = esi; /* 0x2B068E94: mov eax, esi */ 11715 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 11716 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 11717 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 11718 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 11719 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 11720 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 11721 RECOMP_REGS_OUT(); 11722 } 11723 11724 void sub_2B068E89(void) { 11725 int _fpu_cmp = 0; 11726 uint32_t _cf = 0; 11727 int _df = 1; 11728 uint32_t _flag_k = FK_NONE; 11729 uint32_t _flag_a = 0, _flag_b = 0; 11730 uint32_t _itail_tgt = 0; 11731 RECOMP_REGS_LOCALS 11732 RECOMP_ENTER(0x2B068E89u); 11733 11734 L_2B068E89: 11735 ecx = MEM32(ebp + (-0xC)); /* 0x2B068E89: mov ecx, dword ptr [ebp - 0xc] */ 11736 MEM32(esi + 0x14) = edi; /* 0x2B068E8C: mov dword ptr [esi + 0x14], edi */ 11737 MEM8(edi + 0x8) = (uint8_t)(0); /* 0x2B068E8F: mov byte ptr [edi + 8], 0 */ 11738 edi = POP32_VAL(esp); /* 0x2B068E93: pop edi */ 11739 eax = esi; /* 0x2B068E94: mov eax, esi */ 11740 esi = POP32_VAL(esp); /* 0x2B068E96: pop esi */ 11741 ebx = POP32_VAL(esp); /* 0x2B068E97: pop ebx */ 11742 MEM32(FS_BASE + (0)) = ecx; /* 0x2B068E98: mov dword ptr fs:[0], ecx */ 11743 esp = ebp; /* 0x2B068E9F: mov esp, ebp */ 11744 ebp = POP32_VAL(esp); /* 0x2B068EA1: pop ebp */ 11745 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B068EA2: ret 0x14 */ 11746 RECOMP_REGS_OUT(); 11747 } 11748 11749 void sub_2B068EB0(void) { 11750 int _fpu_cmp = 0; 11751 uint32_t _cf = 0; 11752 int _df = 1; 11753 uint32_t _flag_k = FK_NONE; 11754 uint32_t _flag_a = 0, _flag_b = 0; 11755 uint32_t _itail_tgt = 0; 11756 RECOMP_REGS_LOCALS 11757 RECOMP_ENTER(0x2B068EB0u); 11758 11759 L_2B068EB0: 11760 PUSH32(esp, ebp); /* 0x2B068EB0: push ebp */ 11761 ebp = esp; /* 0x2B068EB1: mov ebp, esp */ 11762 PUSH32(esp, ecx); /* 0x2B068EB3: push ecx */ 11763 PUSH32(esp, esi); /* 0x2B068EB4: push esi */ 11764 esi = ecx; /* 0x2B068EB5: mov esi, ecx */ 11765 ecx = MEM32(esi + 0x4); /* 0x2B068EB7: mov ecx, dword ptr [esi + 4] */ 11766 /* test ecx, ecx */ /* 0x2B068EBA: test ecx, ecx */ 11767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11768 _cf = 0; 11769 _flag_k = FK_TEST; 11770 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068EC4; /* 0x2B068EBC: je 0x2b068ec4 */ 11771 L_2B068EBE: 11772 eax = MEM32(ecx); /* 0x2B068EBE: mov eax, dword ptr [ecx] */ 11773 PUSH32(esp, 1); /* 0x2B068EC0: push 1 */ 11774 RECOMP_ICALL(MEM32(eax)); /* 0x2B068EC2: call dword ptr [eax] */ 11775 RECOMP_FLAGS_IN(); 11776 L_2B068EC4: 11777 ecx = MEM32(esi + 0x8); /* 0x2B068EC4: mov ecx, dword ptr [esi + 8] */ 11778 /* test ecx, ecx */ /* 0x2B068EC7: test ecx, ecx */ 11779 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11780 _cf = 0; 11781 _flag_k = FK_TEST; 11782 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068ED1; /* 0x2B068EC9: je 0x2b068ed1 */ 11783 L_2B068ECB: 11784 edx = MEM32(ecx); /* 0x2B068ECB: mov edx, dword ptr [ecx] */ 11785 PUSH32(esp, 1); /* 0x2B068ECD: push 1 */ 11786 RECOMP_ICALL(MEM32(edx)); /* 0x2B068ECF: call dword ptr [edx] */ 11787 RECOMP_FLAGS_IN(); 11788 L_2B068ED1: 11789 PUSH32(esp, edi); /* 0x2B068ED1: push edi */ 11790 edi = MEM32(esi); /* 0x2B068ED2: mov edi, dword ptr [esi] */ 11791 /* test edi, edi */ /* 0x2B068ED4: test edi, edi */ 11792 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11793 _cf = 0; 11794 _flag_k = FK_TEST; 11795 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068EE9; /* 0x2B068ED6: je 0x2b068ee9 */ 11796 L_2B068ED8: 11797 ecx = edi; /* 0x2B068ED8: mov ecx, edi */ 11798 RECOMP_ICALL(MEM32(0x2B0B5BC4)); /* 0x2B068EDA: call dword ptr [0x2b0b5bc4] */ 11799 RECOMP_FLAGS_IN(); 11800 PUSH32(esp, edi); /* 0x2B068EE0: push edi */ 11801 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B068EE1: call 0x2b0ab1ba */ /* not lifted */ 11802 RECOMP_FLAGS_IN(); 11803 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11805 esp = esp + 4; /* 0x2B068EE6: add esp, 4 */ 11806 _flag_k = FK_ADD; 11807 L_2B068EE9: 11808 ecx = MEM32(esi + 0xC); /* 0x2B068EE9: mov ecx, dword ptr [esi + 0xc] */ 11809 /* test ecx, ecx */ /* 0x2B068EEC: test ecx, ecx */ 11810 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11811 _cf = 0; 11812 _flag_k = FK_TEST; 11813 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068EF6; /* 0x2B068EEE: je 0x2b068ef6 */ 11814 L_2B068EF0: 11815 eax = MEM32(ecx); /* 0x2B068EF0: mov eax, dword ptr [ecx] */ 11816 PUSH32(esp, 1); /* 0x2B068EF2: push 1 */ 11817 RECOMP_ICALL(MEM32(eax)); /* 0x2B068EF4: call dword ptr [eax] */ 11818 RECOMP_FLAGS_IN(); 11819 L_2B068EF6: 11820 ecx = MEM32(esi + 0x10); /* 0x2B068EF6: mov ecx, dword ptr [esi + 0x10] */ 11821 /* test ecx, ecx */ /* 0x2B068EF9: test ecx, ecx */ 11822 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11823 _cf = 0; 11824 _flag_k = FK_TEST; 11825 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068F03; /* 0x2B068EFB: je 0x2b068f03 */ 11826 L_2B068EFD: 11827 edx = MEM32(ecx); /* 0x2B068EFD: mov edx, dword ptr [ecx] */ 11828 PUSH32(esp, 1); /* 0x2B068EFF: push 1 */ 11829 RECOMP_ICALL(MEM32(edx)); /* 0x2B068F01: call dword ptr [edx] */ 11830 RECOMP_FLAGS_IN(); 11831 L_2B068F03: 11832 ecx = MEM32(esi + 0x14); /* 0x2B068F03: mov ecx, dword ptr [esi + 0x14] */ 11833 /* test ecx, ecx */ /* 0x2B068F06: test ecx, ecx */ 11834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11835 _cf = 0; 11836 _flag_k = FK_TEST; 11837 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068F10; /* 0x2B068F08: je 0x2b068f10 */ 11838 L_2B068F0A: 11839 eax = MEM32(ecx); /* 0x2B068F0A: mov eax, dword ptr [ecx] */ 11840 PUSH32(esp, 1); /* 0x2B068F0C: push 1 */ 11841 RECOMP_ICALL(MEM32(eax)); /* 0x2B068F0E: call dword ptr [eax] */ 11842 RECOMP_FLAGS_IN(); 11843 L_2B068F10: 11844 eax = MEM32(esi + 0x18); /* 0x2B068F10: mov eax, dword ptr [esi + 0x18] */ 11845 ecx = MEM32(eax + 0x10); /* 0x2B068F13: mov ecx, dword ptr [eax + 0x10] */ 11846 /* test ecx, ecx */ /* 0x2B068F16: test ecx, ecx */ 11847 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11848 _cf = 0; 11849 _flag_k = FK_TEST; 11850 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068F52; /* 0x2B068F18: je 0x2b068f52 */ 11851 L_2B068F1A: 11852 ecx = MEM32(eax + 0x4); /* 0x2B068F1A: mov ecx, dword ptr [eax + 4] */ 11853 eax = MEM32(ecx); /* 0x2B068F1D: mov eax, dword ptr [ecx] */ 11854 edi = MEM32(eax + 0x10); /* 0x2B068F1F: mov edi, dword ptr [eax + 0x10] */ 11855 /* test edi, edi */ /* 0x2B068F22: test edi, edi */ 11856 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11857 _cf = 0; 11858 _flag_k = FK_TEST; 11859 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068F36; /* 0x2B068F24: je 0x2b068f36 */ 11860 L_2B068F26: 11861 ecx = edi; /* 0x2B068F26: mov ecx, edi */ 11862 RECOMP_ICALL(0x2B067DB0u); /* 0x2B068F28: call 0x2b067db0 */ /* not lifted */ 11863 RECOMP_FLAGS_IN(); 11864 PUSH32(esp, edi); /* 0x2B068F2D: push edi */ 11865 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B068F2E: call 0x2b0ab1ba */ /* not lifted */ 11866 RECOMP_FLAGS_IN(); 11867 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11868 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11869 esp = esp + 4; /* 0x2B068F33: add esp, 4 */ 11870 _flag_k = FK_ADD; 11871 L_2B068F36: 11872 ecx = MEM32(esi + 0x18); /* 0x2B068F36: mov ecx, dword ptr [esi + 0x18] */ 11873 edx = MEM32(ecx + 0x4); /* 0x2B068F39: mov edx, dword ptr [ecx + 4] */ 11874 eax = MEM32(edx); /* 0x2B068F3C: mov eax, dword ptr [edx] */ 11875 PUSH32(esp, eax); /* 0x2B068F3E: push eax */ 11876 eax = ebp + (-0x4); /* 0x2B068F3F: lea eax, [ebp - 4] */ 11877 PUSH32(esp, eax); /* 0x2B068F42: push eax */ 11878 RECOMP_ICALL(0x2B06D4F0u); /* 0x2B068F43: call 0x2b06d4f0 */ /* not lifted */ 11879 RECOMP_FLAGS_IN(); 11880 eax = MEM32(esi + 0x18); /* 0x2B068F48: mov eax, dword ptr [esi + 0x18] */ 11881 ecx = MEM32(eax + 0x10); /* 0x2B068F4B: mov ecx, dword ptr [eax + 0x10] */ 11882 /* test ecx, ecx */ /* 0x2B068F4E: test ecx, ecx */ 11883 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11884 _cf = 0; 11885 _flag_k = FK_TEST; 11886 RECOMP_BACKEDGE(); 11887 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B068F1A; /* 0x2B068F50: jne 0x2b068f1a */ 11888 L_2B068F52: 11889 esi = MEM32(esi + 0x18); /* 0x2B068F52: mov esi, dword ptr [esi + 0x18] */ 11890 /* test esi, esi */ /* 0x2B068F55: test esi, esi */ 11891 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11892 _cf = 0; 11893 _flag_k = FK_TEST; 11894 edi = POP32_VAL(esp); /* 0x2B068F57: pop edi */ 11895 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068F6A; /* 0x2B068F58: je 0x2b068f6a */ 11896 L_2B068F5A: 11897 ecx = esi; /* 0x2B068F5A: mov ecx, esi */ 11898 RECOMP_ICALL(0x2B068F70u); /* 0x2B068F5C: call 0x2b068f70 */ /* not lifted */ 11899 RECOMP_FLAGS_IN(); 11900 PUSH32(esp, esi); /* 0x2B068F61: push esi */ 11901 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B068F62: call 0x2b0ab1ba */ /* not lifted */ 11902 RECOMP_FLAGS_IN(); 11903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11905 esp = esp + 4; /* 0x2B068F67: add esp, 4 */ 11906 _flag_k = FK_ADD; 11907 L_2B068F6A: 11908 esi = POP32_VAL(esp); /* 0x2B068F6A: pop esi */ 11909 esp = ebp; /* 0x2B068F6B: mov esp, ebp */ 11910 ebp = POP32_VAL(esp); /* 0x2B068F6D: pop ebp */ 11911 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B068F6E: ret */ 11912 RECOMP_REGS_OUT(); 11913 } 11914 11915 void sub_2B068F70(void) { 11916 int _fpu_cmp = 0; 11917 uint32_t _cf = 0; 11918 int _df = 1; 11919 uint32_t _flag_k = FK_NONE; 11920 uint32_t _flag_a = 0, _flag_b = 0; 11921 uint32_t _itail_tgt = 0; 11922 RECOMP_REGS_LOCALS 11923 RECOMP_ENTER(0x2B068F70u); 11924 11925 L_2B068F70: 11926 PUSH32(esp, ebp); /* 0x2B068F70: push ebp */ 11927 ebp = esp; /* 0x2B068F71: mov ebp, esp */ 11928 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11930 esp = esp - 8; /* 0x2B068F73: sub esp, 8 */ 11931 _flag_k = FK_CMP; 11932 PUSH32(esp, ebx); /* 0x2B068F76: push ebx */ 11933 PUSH32(esp, esi); /* 0x2B068F77: push esi */ 11934 esi = ecx; /* 0x2B068F78: mov esi, ecx */ 11935 ecx = MEM32(esi + 0x10); /* 0x2B068F7A: mov ecx, dword ptr [esi + 0x10] */ 11936 /* test ecx, ecx */ /* 0x2B068F7D: test ecx, ecx */ 11937 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11938 _cf = 0; 11939 _flag_k = FK_TEST; 11940 PUSH32(esp, edi); /* 0x2B068F7F: push edi */ 11941 edi = MEM32(esi + 0x4); /* 0x2B068F80: mov edi, dword ptr [esi + 4] */ 11942 eax = MEM32(edi); /* 0x2B068F83: mov eax, dword ptr [edi] */ 11943 MEM32(ebp + (-0x4)) = eax; /* 0x2B068F85: mov dword ptr [ebp - 4], eax */ 11944 if (TEST_Z(_flag_a, _flag_b)) goto L_2B068FE5; /* 0x2B068F88: je 0x2b068fe5 */ 11945 L_2B068F8A: 11946 ecx = eax; /* 0x2B068F8A: mov ecx, eax */ 11947 /* cmp eax, ecx */ /* 0x2B068F8C: cmp eax, ecx */ 11948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11950 _flag_k = FK_CMP; 11951 if (CMP_NE(_flag_a, _flag_b)) goto L_2B068FE5; /* 0x2B068F8E: jne 0x2b068fe5 */ 11952 L_2B068F90: 11953 /* cmp edi, edi */ /* 0x2B068F90: cmp edi, edi */ 11954 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11956 _flag_k = FK_CMP; 11957 if (CMP_NE(_flag_a, _flag_b)) goto L_2B068FE5; /* 0x2B068F92: jne 0x2b068fe5 */ 11958 L_2B068F94: 11959 ebx = MEM32(edi + 0x4); /* 0x2B068F94: mov ebx, dword ptr [edi + 4] */ 11960 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x2B068F97: cmp ebx, dword ptr [esi + 8] */ 11961 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11963 _flag_k = FK_CMP; 11964 edi = ebx; /* 0x2B068F9A: mov edi, ebx */ 11965 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B068FBD; /* 0x2B068F9C: je 0x2b068fbd */ 11966 L_2B068F9E: 11967 eax = MEM32(edi + 0x8); /* 0x2B068F9E: mov eax, dword ptr [edi + 8] */ 11968 PUSH32(esp, eax); /* 0x2B068FA1: push eax */ 11969 ecx = esi; /* 0x2B068FA2: mov ecx, esi */ 11970 RECOMP_ICALL(0x2B0692D0u); /* 0x2B068FA4: call 0x2b0692d0 */ /* not lifted */ 11971 RECOMP_FLAGS_IN(); 11972 edi = MEM32(edi); /* 0x2B068FA9: mov edi, dword ptr [edi] */ 11973 PUSH32(esp, ebx); /* 0x2B068FAB: push ebx */ 11974 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B068FAC: call 0x2b0ab1ba */ /* not lifted */ 11975 RECOMP_FLAGS_IN(); 11976 eax = MEM32(esi + 0x8); /* 0x2B068FB1: mov eax, dword ptr [esi + 8] */ 11977 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11979 esp = esp + 4; /* 0x2B068FB4: add esp, 4 */ 11980 _flag_k = FK_ADD; 11981 /* cmp edi, eax */ /* 0x2B068FB7: cmp edi, eax */ 11982 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11984 _flag_k = FK_CMP; 11985 ebx = edi; /* 0x2B068FB9: mov ebx, edi */ 11986 RECOMP_BACKEDGE(); 11987 if (CMP_NE(_flag_a, _flag_b)) goto L_2B068F9E; /* 0x2B068FBB: jne 0x2b068f9e */ 11988 L_2B068FBD: 11989 ecx = MEM32(esi + 0x4); /* 0x2B068FBD: mov ecx, dword ptr [esi + 4] */ 11990 edx = MEM32(esi + 0x8); /* 0x2B068FC0: mov edx, dword ptr [esi + 8] */ 11991 MEM32(ecx + 0x4) = edx; /* 0x2B068FC3: mov dword ptr [ecx + 4], edx */ 11992 eax = MEM32(esi + 0x4); /* 0x2B068FC6: mov eax, dword ptr [esi + 4] */ 11993 MEM32(esi + 0x10) = 0; /* 0x2B068FC9: mov dword ptr [esi + 0x10], 0 */ 11994 MEM32(eax) = eax; /* 0x2B068FD0: mov dword ptr [eax], eax */ 11995 eax = MEM32(esi + 0x4); /* 0x2B068FD2: mov eax, dword ptr [esi + 4] */ 11996 MEM32(eax + 0x8) = eax; /* 0x2B068FD5: mov dword ptr [eax + 8], eax */ 11997 eax = ebp + (-0x8); /* 0x2B068FD8: lea eax, [ebp - 8] */ 11998 PUSH32(esp, eax); /* 0x2B068FDB: push eax */ 11999 ecx = esi; /* 0x2B068FDC: mov ecx, esi */ 12000 RECOMP_ICALL(0x2B018B60u); /* 0x2B068FDE: call 0x2b018b60 */ /* not lifted */ 12001 RECOMP_FLAGS_IN(); 12002 goto L_2B069006; /* 0x2B068FE3: jmp 0x2b069006 */ 12003 L_2B068FE5: 12004 /* cmp eax, edi */ /* 0x2B068FE5: cmp eax, edi */ 12005 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12007 _flag_k = FK_CMP; 12008 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069006; /* 0x2B068FE7: je 0x2b069006 */ 12009 L_2B068FE9: 12010 ecx = ebp + (-0x4); /* 0x2B068FE9: lea ecx, [ebp - 4] */ 12011 ebx = eax; /* 0x2B068FEC: mov ebx, eax */ 12012 RECOMP_ICALL(0x2B06A300u); /* 0x2B068FEE: call 0x2b06a300 */ /* not lifted */ 12013 RECOMP_FLAGS_IN(); 12014 PUSH32(esp, ebx); /* 0x2B068FF3: push ebx */ 12015 ecx = ebp + (-0x8); /* 0x2B068FF4: lea ecx, [ebp - 8] */ 12016 PUSH32(esp, ecx); /* 0x2B068FF7: push ecx */ 12017 ecx = esi; /* 0x2B068FF8: mov ecx, esi */ 12018 RECOMP_ICALL(0x2B06D4F0u); /* 0x2B068FFA: call 0x2b06d4f0 */ /* not lifted */ 12019 RECOMP_FLAGS_IN(); 12020 eax = MEM32(ebp + (-0x4)); /* 0x2B068FFF: mov eax, dword ptr [ebp - 4] */ 12021 /* cmp eax, edi */ /* 0x2B069002: cmp eax, edi */ 12022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12024 _flag_k = FK_CMP; 12025 RECOMP_BACKEDGE(); 12026 if (CMP_NE(_flag_a, _flag_b)) goto L_2B068FE9; /* 0x2B069004: jne 0x2b068fe9 */ 12027 L_2B069006: 12028 edx = MEM32(esi + 0x4); /* 0x2B069006: mov edx, dword ptr [esi + 4] */ 12029 PUSH32(esp, edx); /* 0x2B069009: push edx */ 12030 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06900A: call 0x2b0ab1ba */ /* not lifted */ 12031 RECOMP_FLAGS_IN(); 12032 eax = MEM32(esi + 0x8); /* 0x2B06900F: mov eax, dword ptr [esi + 8] */ 12033 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12034 edi = 0; /* 0x2B069012: xor edi, edi */ 12035 _cf = 0; 12036 _flag_k = FK_TEST; 12037 PUSH32(esp, eax); /* 0x2B069014: push eax */ 12038 MEM32(esi + 0x4) = edi; /* 0x2B069015: mov dword ptr [esi + 4], edi */ 12039 MEM32(esi + 0x10) = edi; /* 0x2B069018: mov dword ptr [esi + 0x10], edi */ 12040 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06901B: call 0x2b0ab1ba */ /* not lifted */ 12041 RECOMP_FLAGS_IN(); 12042 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12044 esp = esp + 8; /* 0x2B069020: add esp, 8 */ 12045 _flag_k = FK_ADD; 12046 MEM32(esi + 0x8) = edi; /* 0x2B069023: mov dword ptr [esi + 8], edi */ 12047 edi = POP32_VAL(esp); /* 0x2B069026: pop edi */ 12048 esi = POP32_VAL(esp); /* 0x2B069027: pop esi */ 12049 ebx = POP32_VAL(esp); /* 0x2B069028: pop ebx */ 12050 esp = ebp; /* 0x2B069029: mov esp, ebp */ 12051 ebp = POP32_VAL(esp); /* 0x2B06902B: pop ebp */ 12052 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06902C: ret */ 12053 RECOMP_REGS_OUT(); 12054 } 12055 12056 void sub_2B069030(void) { 12057 int _fpu_cmp = 0; 12058 uint32_t _cf = 0; 12059 int _df = 1; 12060 uint32_t _flag_k = FK_NONE; 12061 uint32_t _flag_a = 0, _flag_b = 0; 12062 uint32_t _itail_tgt = 0; 12063 RECOMP_REGS_LOCALS 12064 RECOMP_ENTER(0x2B069030u); 12065 12066 L_2B069030: 12067 PUSH32(esp, ebp); /* 0x2B069030: push ebp */ 12068 ebp = esp; /* 0x2B069031: mov ebp, esp */ 12069 eax = MEM32(ebp + 0xC); /* 0x2B069033: mov eax, dword ptr [ebp + 0xc] */ 12070 ecx = MEM32(ebp + 0x8); /* 0x2B069036: mov ecx, dword ptr [ebp + 8] */ 12071 PUSH32(esp, eax); /* 0x2B069039: push eax */ 12072 RECOMP_ICALL(0x2B069050u); /* 0x2B06903A: call 0x2b069050 */ /* not lifted */ 12073 RECOMP_FLAGS_IN(); 12074 ebp = POP32_VAL(esp); /* 0x2B06903F: pop ebp */ 12075 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069040: ret */ 12076 RECOMP_REGS_OUT(); 12077 } 12078 12079 void sub_2B069050(void) { 12080 int _fpu_cmp = 0; 12081 uint32_t _cf = 0; 12082 int _df = 1; 12083 uint32_t _flag_k = FK_NONE; 12084 uint32_t _flag_a = 0, _flag_b = 0; 12085 uint32_t _itail_tgt = 0; 12086 RECOMP_REGS_LOCALS 12087 RECOMP_ENTER(0x2B069050u); 12088 12089 L_2B069050: 12090 PUSH32(esp, ebp); /* 0x2B069050: push ebp */ 12091 ebp = esp; /* 0x2B069051: mov ebp, esp */ 12092 eax = MEM32(ebp + 0x8); /* 0x2B069053: mov eax, dword ptr [ebp + 8] */ 12093 /* cmp eax, 2 */ /* 0x2B069056: cmp eax, 2 */ 12094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 12095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12096 _flag_k = FK_CMP; 12097 PUSH32(esp, esi); /* 0x2B069059: push esi */ 12098 esi = ecx; /* 0x2B06905A: mov esi, ecx */ 12099 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069078; /* 0x2B06905C: jne 0x2b069078 */ 12100 L_2B06905E: 12101 ecx = MEM32(esi + 0x8); /* 0x2B06905E: mov ecx, dword ptr [esi + 8] */ 12102 PUSH32(esp, 0x00FF4632u); /* 0x2B069061: push 0xff4632 */ 12103 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B069066: call dword ptr [0x2b0b5858] */ 12104 RECOMP_FLAGS_IN(); 12105 L_2B06906C: 12106 eax = MEM32(esi + 0x8); /* 0x2B06906C: mov eax, dword ptr [esi + 8] */ 12107 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B06906F: mov byte ptr [eax + 9], 1 */ 12108 esi = POP32_VAL(esp); /* 0x2B069073: pop esi */ 12109 ebp = POP32_VAL(esp); /* 0x2B069074: pop ebp */ 12110 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B069075: ret 4 */ 12111 L_2B069078: 12112 /* cmp eax, 3 */ /* 0x2B069078: cmp eax, 3 */ 12113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 12114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12115 _flag_k = FK_CMP; 12116 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069097; /* 0x2B06907B: jne 0x2b069097 */ 12117 L_2B06907D: 12118 ecx = MEM32(esi + 0x8); /* 0x2B06907D: mov ecx, dword ptr [esi + 8] */ 12119 PUSH32(esp, 0x008CFFFFu); /* 0x2B069080: push 0x8cffff */ 12120 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B069085: call dword ptr [0x2b0b5858] */ 12121 RECOMP_FLAGS_IN(); 12122 ecx = MEM32(esi + 0x8); /* 0x2B06908B: mov ecx, dword ptr [esi + 8] */ 12123 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B06908E: mov byte ptr [ecx + 9], 1 */ 12124 esi = POP32_VAL(esp); /* 0x2B069092: pop esi */ 12125 ebp = POP32_VAL(esp); /* 0x2B069093: pop ebp */ 12126 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B069094: ret 4 */ 12127 L_2B069097: 12128 /* cmp eax, 1 */ /* 0x2B069097: cmp eax, 1 */ 12129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12131 _flag_k = FK_CMP; 12132 RECOMP_BACKEDGE(); 12133 if (CMP_NE(_flag_a, _flag_b)) goto L_2B06906C; /* 0x2B06909A: jne 0x2b06906c */ 12134 L_2B06909C: 12135 ecx = MEM32(esi + 0x8); /* 0x2B06909C: mov ecx, dword ptr [esi + 8] */ 12136 PUSH32(esp, 0x0087AFBEu); /* 0x2B06909F: push 0x87afbe */ 12137 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B0690A4: call dword ptr [0x2b0b5858] */ 12138 RECOMP_FLAGS_IN(); 12139 edx = MEM32(esi + 0x8); /* 0x2B0690AA: mov edx, dword ptr [esi + 8] */ 12140 MEM8(edx + 0x9) = (uint8_t)(1); /* 0x2B0690AD: mov byte ptr [edx + 9], 1 */ 12141 esi = POP32_VAL(esp); /* 0x2B0690B1: pop esi */ 12142 ebp = POP32_VAL(esp); /* 0x2B0690B2: pop ebp */ 12143 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0690B3: ret 4 */ 12144 RECOMP_REGS_OUT(); 12145 } 12146 12147 void sub_2B0690C0(void) { 12148 int _fpu_cmp = 0; 12149 uint32_t _cf = 0; 12150 int _df = 1; 12151 uint32_t _flag_k = FK_NONE; 12152 uint32_t _flag_a = 0, _flag_b = 0; 12153 uint32_t _itail_tgt = 0; 12154 RECOMP_REGS_LOCALS 12155 RECOMP_ENTER(0x2B0690C0u); 12156 12157 L_2B0690C0: 12158 PUSH32(esp, ebp); /* 0x2B0690C0: push ebp */ 12159 ebp = esp; /* 0x2B0690C1: mov ebp, esp */ 12160 eax = MEM32(ebp + 0x8); /* 0x2B0690C3: mov eax, dword ptr [ebp + 8] */ 12161 PUSH32(esp, esi); /* 0x2B0690C6: push esi */ 12162 esi = MEM32(0x2B0B53CC); /* 0x2B0690C7: mov esi, dword ptr [0x2b0b53cc] */ 12163 PUSH32(esp, eax); /* 0x2B0690CD: push eax */ 12164 PUSH32(esp, 0xE4u); /* 0x2B0690CE: push 0xe4 */ 12165 PUSH32(esp, 0x12u); /* 0x2B0690D3: push 0x12 */ 12166 RECOMP_ICALL(esi); /* 0x2B0690D5: call esi */ 12167 RECOMP_FLAGS_IN(); 12168 ecx = eax; /* 0x2B0690D7: mov ecx, eax */ 12169 RECOMP_ICALL(MEM32(0x2B0B53B8)); /* 0x2B0690D9: call dword ptr [0x2b0b53b8] */ 12170 RECOMP_FLAGS_IN(); 12171 PUSH32(esp, 0xE3u); /* 0x2B0690DF: push 0xe3 */ 12172 PUSH32(esp, 0x12u); /* 0x2B0690E4: push 0x12 */ 12173 RECOMP_ICALL(esi); /* 0x2B0690E6: call esi */ 12174 RECOMP_FLAGS_IN(); 12175 ecx = eax; /* 0x2B0690E8: mov ecx, eax */ 12176 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B0690EA: call dword ptr [0x2b0b53c8] */ 12177 RECOMP_FLAGS_IN(); 12178 SET_LO8(ecx, MEM8(0x2B0EEE40)); /* 0x2B0690F0: mov cl, byte ptr [0x2b0eee40] */ 12179 SET_LO8(eax, 1); /* 0x2B0690F6: mov al, 1 */ 12180 /* test LO8(eax), LO8(ecx) */ /* 0x2B0690F8: test al, cl */ 12181 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12182 _cf = 0; 12183 _flag_k = FK_NARROW(FK_TEST, 24); 12184 esi = POP32_VAL(esp); /* 0x2B0690FA: pop esi */ 12185 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069118; /* 0x2B0690FB: jne 0x2b069118 */ 12186 L_2B0690FD: 12187 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 12188 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B0690FD: or cl, al */ 12189 _cf = 0; 12190 _flag_k = FK_NARROW(FK_TEST, 24); 12191 PUSH32(esp, 0x2B0E728Cu); /* 0x2B0690FF: push 0x2b0e728c */ 12192 MEM8(0x2B0EEE40) = (uint8_t)(LO8(ecx)); /* 0x2B069104: mov byte ptr [0x2b0eee40], cl */ 12193 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B06910A: call dword ptr [0x2b0b60bc] */ 12194 RECOMP_FLAGS_IN(); 12195 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12197 esp = esp + 4; /* 0x2B069110: add esp, 4 */ 12198 _flag_k = FK_ADD; 12199 MEM32(0x2B0EEE3C) = eax; /* 0x2B069113: mov dword ptr [0x2b0eee3c], eax */ 12200 L_2B069118: 12201 ecx = MEM32(0x2B0EEE3C); /* 0x2B069118: mov ecx, dword ptr [0x2b0eee3c] */ 12202 PUSH32(esp, ecx); /* 0x2B06911E: push ecx */ 12203 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B06911F: call dword ptr [0x2b0b60b8] */ 12204 RECOMP_FLAGS_IN(); 12205 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12207 esp = esp + 4; /* 0x2B069125: add esp, 4 */ 12208 _flag_k = FK_ADD; 12209 ebp = POP32_VAL(esp); /* 0x2B069128: pop ebp */ 12210 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069129: ret */ 12211 RECOMP_REGS_OUT(); 12212 } 12213 12214 void sub_2B069130(void) { 12215 int _fpu_cmp = 0; 12216 uint32_t _cf = 0; 12217 int _df = 1; 12218 uint32_t _flag_k = FK_NONE; 12219 uint32_t _flag_a = 0, _flag_b = 0; 12220 uint32_t _itail_tgt = 0; 12221 RECOMP_REGS_LOCALS 12222 RECOMP_ENTER(0x2B069130u); 12223 12224 L_2B069130: 12225 PUSH32(esp, ebp); /* 0x2B069130: push ebp */ 12226 ebp = esp; /* 0x2B069131: mov ebp, esp */ 12227 eax = MEM32(ebp + 0x8); /* 0x2B069133: mov eax, dword ptr [ebp + 8] */ 12228 ecx = MEM32(ecx); /* 0x2B069136: mov ecx, dword ptr [ecx] */ 12229 PUSH32(esp, eax); /* 0x2B069138: push eax */ 12230 RECOMP_ICALL(MEM32(0x2B0B5BB8)); /* 0x2B069139: call dword ptr [0x2b0b5bb8] */ 12231 RECOMP_FLAGS_IN(); 12232 ebp = POP32_VAL(esp); /* 0x2B06913F: pop ebp */ 12233 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B069140: ret 4 */ 12234 RECOMP_REGS_OUT(); 12235 } 12236 12237 void sub_2B069150(void) { 12238 int _fpu_cmp = 0; 12239 uint32_t _cf = 0; 12240 int _df = 1; 12241 uint32_t _flag_k = FK_NONE; 12242 uint32_t _flag_a = 0, _flag_b = 0; 12243 uint32_t _itail_tgt = 0; 12244 RECOMP_REGS_LOCALS 12245 RECOMP_ENTER(0x2B069150u); 12246 12247 L_2B069150: 12248 PUSH32(esp, esi); /* 0x2B069150: push esi */ 12249 PUSH32(esp, edi); /* 0x2B069151: push edi */ 12250 edi = ecx; /* 0x2B069152: mov edi, ecx */ 12251 ecx = MEM32(edi + 0x4); /* 0x2B069154: mov ecx, dword ptr [edi + 4] */ 12252 PUSH32(esp, 1); /* 0x2B069157: push 1 */ 12253 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B069159: call dword ptr [0x2b0b5ab4] */ 12254 RECOMP_FLAGS_IN(); 12255 eax = MEM32(edi + 0xC); /* 0x2B06915F: mov eax, dword ptr [edi + 0xc] */ 12256 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B069162: mov byte ptr [eax + 8], 0 */ 12257 ecx = MEM32(edi + 0x10); /* 0x2B069166: mov ecx, dword ptr [edi + 0x10] */ 12258 MEM8(ecx + 0x8) = (uint8_t)(0); /* 0x2B069169: mov byte ptr [ecx + 8], 0 */ 12259 edx = MEM32(edi + 0x14); /* 0x2B06916D: mov edx, dword ptr [edi + 0x14] */ 12260 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B069170: mov byte ptr [edx + 8], 0 */ 12261 eax = MEM32(edi + 0x18); /* 0x2B069174: mov eax, dword ptr [edi + 0x18] */ 12262 eax = MEM32(eax + 0x4); /* 0x2B069177: mov eax, dword ptr [eax + 4] */ 12263 esi = MEM32(eax); /* 0x2B06917A: mov esi, dword ptr [eax] */ 12264 /* cmp esi, eax */ /* 0x2B06917C: cmp esi, eax */ 12265 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 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_2B0691CB; /* 0x2B06917E: je 0x2b0691cb */ 12269 L_2B069180: 12270 ecx = MEM32(esi + 0x10); /* 0x2B069180: mov ecx, dword ptr [esi + 0x10] */ 12271 RECOMP_ICALL(0x2B068830u); /* 0x2B069183: call 0x2b068830 */ /* not lifted */ 12272 RECOMP_FLAGS_IN(); 12273 eax = MEM32(esi + 0x8); /* 0x2B069188: mov eax, dword ptr [esi + 8] */ 12274 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B06918B: mov cl, byte ptr [eax + 0x15] */ 12275 /* test LO8(ecx), LO8(ecx) */ /* 0x2B06918E: test cl, cl */ 12276 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12277 _cf = 0; 12278 _flag_k = FK_NARROW(FK_TEST, 24); 12279 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0691AA; /* 0x2B069190: jne 0x2b0691aa */ 12280 L_2B069192: 12281 esi = eax; /* 0x2B069192: mov esi, eax */ 12282 eax = MEM32(esi); /* 0x2B069194: mov eax, dword ptr [esi] */ 12283 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069196: mov cl, byte ptr [eax + 0x15] */ 12284 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069199: test cl, cl */ 12285 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12286 _cf = 0; 12287 _flag_k = FK_NARROW(FK_TEST, 24); 12288 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0691C3; /* 0x2B06919B: jne 0x2b0691c3 */ 12289 L_2B06919D: 12290 esi = eax; /* 0x2B06919D: mov esi, eax */ 12291 eax = MEM32(esi); /* 0x2B06919F: mov eax, dword ptr [esi] */ 12292 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B0691A1: mov cl, byte ptr [eax + 0x15] */ 12293 /* test LO8(ecx), LO8(ecx) */ /* 0x2B0691A4: test cl, cl */ 12294 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12295 _cf = 0; 12296 _flag_k = FK_NARROW(FK_TEST, 24); 12297 RECOMP_BACKEDGE(); 12298 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06919D; /* 0x2B0691A6: je 0x2b06919d */ 12299 L_2B0691A8: 12300 goto L_2B0691C3; /* 0x2B0691A8: jmp 0x2b0691c3 */ 12301 L_2B0691AA: 12302 eax = MEM32(esi + 0x4); /* 0x2B0691AA: mov eax, dword ptr [esi + 4] */ 12303 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B0691AD: cmp esi, dword ptr [eax + 8] */ 12304 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 12305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12306 _flag_k = FK_CMP; 12307 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0691BC; /* 0x2B0691B0: jne 0x2b0691bc */ 12308 L_2B0691B2: 12309 esi = eax; /* 0x2B0691B2: mov esi, eax */ 12310 eax = MEM32(eax + 0x4); /* 0x2B0691B4: mov eax, dword ptr [eax + 4] */ 12311 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B0691B7: cmp esi, dword ptr [eax + 8] */ 12312 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 12313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12314 _flag_k = FK_CMP; 12315 RECOMP_BACKEDGE(); 12316 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0691B2; /* 0x2B0691BA: je 0x2b0691b2 */ 12317 L_2B0691BC: 12318 /* cmp MEM32(esi + 0x8), eax */ /* 0x2B0691BC: cmp dword ptr [esi + 8], eax */ 12319 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 12320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12321 _flag_k = FK_CMP; 12322 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0691C3; /* 0x2B0691BF: je 0x2b0691c3 */ 12323 L_2B0691C1: 12324 esi = eax; /* 0x2B0691C1: mov esi, eax */ 12325 L_2B0691C3: 12326 ecx = MEM32(edi + 0x18); /* 0x2B0691C3: mov ecx, dword ptr [edi + 0x18] */ 12327 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x2B0691C6: cmp esi, dword ptr [ecx + 4] */ 12328 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12330 _flag_k = FK_CMP; 12331 RECOMP_BACKEDGE(); 12332 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069180; /* 0x2B0691C9: jne 0x2b069180 */ 12333 L_2B0691CB: 12334 edi = POP32_VAL(esp); /* 0x2B0691CB: pop edi */ 12335 esi = POP32_VAL(esp); /* 0x2B0691CC: pop esi */ 12336 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0691CD: ret */ 12337 RECOMP_REGS_OUT(); 12338 } 12339 12340 void sub_2B0691D0(void) { 12341 int _fpu_cmp = 0; 12342 uint32_t _cf = 0; 12343 int _df = 1; 12344 uint32_t _flag_k = FK_NONE; 12345 uint32_t _flag_a = 0, _flag_b = 0; 12346 uint32_t _itail_tgt = 0; 12347 RECOMP_REGS_LOCALS 12348 RECOMP_ENTER(0x2B0691D0u); 12349 12350 L_2B0691D0: 12351 PUSH32(esp, esi); /* 0x2B0691D0: push esi */ 12352 PUSH32(esp, edi); /* 0x2B0691D1: push edi */ 12353 edi = ecx; /* 0x2B0691D2: mov edi, ecx */ 12354 ecx = MEM32(edi + 0x4); /* 0x2B0691D4: mov ecx, dword ptr [edi + 4] */ 12355 PUSH32(esp, 2); /* 0x2B0691D7: push 2 */ 12356 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B0691D9: call dword ptr [0x2b0b5ab4] */ 12357 RECOMP_FLAGS_IN(); 12358 ecx = MEM32(edi + 0xC); /* 0x2B0691DF: mov ecx, dword ptr [edi + 0xc] */ 12359 eax = 1; /* 0x2B0691E2: mov eax, 1 */ 12360 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B0691E7: mov byte ptr [ecx + 8], al */ 12361 edx = MEM32(edi + 0xC); /* 0x2B0691EA: mov edx, dword ptr [edi + 0xc] */ 12362 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B0691ED: mov byte ptr [edx + 9], al */ 12363 ecx = MEM32(edi + 0x10); /* 0x2B0691F0: mov ecx, dword ptr [edi + 0x10] */ 12364 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B0691F3: mov byte ptr [ecx + 8], al */ 12365 edx = MEM32(edi + 0x10); /* 0x2B0691F6: mov edx, dword ptr [edi + 0x10] */ 12366 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B0691F9: mov byte ptr [edx + 9], al */ 12367 ecx = MEM32(edi + 0x14); /* 0x2B0691FC: mov ecx, dword ptr [edi + 0x14] */ 12368 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2B0691FF: mov byte ptr [ecx + 8], al */ 12369 edx = MEM32(edi + 0x14); /* 0x2B069202: mov edx, dword ptr [edi + 0x14] */ 12370 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B069205: mov byte ptr [edx + 9], al */ 12371 PUSH32(esp, eax); /* 0x2B069208: push eax */ 12372 eax = MEM32(edi + 0x1C); /* 0x2B069209: mov eax, dword ptr [edi + 0x1c] */ 12373 ecx = MEM32(eax + 0x14); /* 0x2B06920C: mov ecx, dword ptr [eax + 0x14] */ 12374 ecx = MEM32(ecx + 0x28); /* 0x2B06920F: mov ecx, dword ptr [ecx + 0x28] */ 12375 PUSH32(esp, 0); /* 0x2B069212: push 0 */ 12376 PUSH32(esp, 0); /* 0x2B069214: push 0 */ 12377 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B069216: call dword ptr [0x2b0b564c] */ 12378 RECOMP_FLAGS_IN(); 12379 edx = MEM32(edi + 0x18); /* 0x2B06921C: mov edx, dword ptr [edi + 0x18] */ 12380 eax = MEM32(edx + 0x4); /* 0x2B06921F: mov eax, dword ptr [edx + 4] */ 12381 esi = MEM32(eax); /* 0x2B069222: mov esi, dword ptr [eax] */ 12382 /* cmp esi, eax */ /* 0x2B069224: cmp esi, eax */ 12383 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 12384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12385 _flag_k = FK_CMP; 12386 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B06927E; /* 0x2B069226: je 0x2b06927e */ 12387 L_2B069228: 12388 PUSH32(esp, ebx); /* 0x2B069228: push ebx */ 12389 L_2B069229: 12390 ebx = MEM32(esi + 0x10); /* 0x2B069229: mov ebx, dword ptr [esi + 0x10] */ 12391 ecx = ebx; /* 0x2B06922C: mov ecx, ebx */ 12392 RECOMP_ICALL(0x2B068890u); /* 0x2B06922E: call 0x2b068890 */ /* not lifted */ 12393 RECOMP_FLAGS_IN(); 12394 ecx = ebx; /* 0x2B069233: mov ecx, ebx */ 12395 RECOMP_ICALL(0x2B068340u); /* 0x2B069235: call 0x2b068340 */ /* not lifted */ 12396 RECOMP_FLAGS_IN(); 12397 eax = MEM32(esi + 0x8); /* 0x2B06923A: mov eax, dword ptr [esi + 8] */ 12398 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B06923D: mov cl, byte ptr [eax + 0x15] */ 12399 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069240: test cl, cl */ 12400 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12401 _cf = 0; 12402 _flag_k = FK_NARROW(FK_TEST, 24); 12403 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B06925C; /* 0x2B069242: jne 0x2b06925c */ 12404 L_2B069244: 12405 esi = eax; /* 0x2B069244: mov esi, eax */ 12406 eax = MEM32(esi); /* 0x2B069246: mov eax, dword ptr [esi] */ 12407 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069248: mov cl, byte ptr [eax + 0x15] */ 12408 /* test LO8(ecx), LO8(ecx) */ /* 0x2B06924B: test cl, cl */ 12409 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12410 _cf = 0; 12411 _flag_k = FK_NARROW(FK_TEST, 24); 12412 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069275; /* 0x2B06924D: jne 0x2b069275 */ 12413 L_2B06924F: 12414 esi = eax; /* 0x2B06924F: mov esi, eax */ 12415 eax = MEM32(esi); /* 0x2B069251: mov eax, dword ptr [esi] */ 12416 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069253: mov cl, byte ptr [eax + 0x15] */ 12417 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069256: test cl, cl */ 12418 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12419 _cf = 0; 12420 _flag_k = FK_NARROW(FK_TEST, 24); 12421 RECOMP_BACKEDGE(); 12422 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06924F; /* 0x2B069258: je 0x2b06924f */ 12423 L_2B06925A: 12424 goto L_2B069275; /* 0x2B06925A: jmp 0x2b069275 */ 12425 L_2B06925C: 12426 eax = MEM32(esi + 0x4); /* 0x2B06925C: mov eax, dword ptr [esi + 4] */ 12427 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B06925F: cmp esi, dword ptr [eax + 8] */ 12428 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 12429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12430 _flag_k = FK_CMP; 12431 if (CMP_NE(_flag_a, _flag_b)) goto L_2B06926E; /* 0x2B069262: jne 0x2b06926e */ 12432 L_2B069264: 12433 esi = eax; /* 0x2B069264: mov esi, eax */ 12434 eax = MEM32(eax + 0x4); /* 0x2B069266: mov eax, dword ptr [eax + 4] */ 12435 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B069269: cmp esi, dword ptr [eax + 8] */ 12436 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 12437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12438 _flag_k = FK_CMP; 12439 RECOMP_BACKEDGE(); 12440 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069264; /* 0x2B06926C: je 0x2b069264 */ 12441 L_2B06926E: 12442 /* cmp MEM32(esi + 0x8), eax */ /* 0x2B06926E: cmp dword ptr [esi + 8], eax */ 12443 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 12444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12445 _flag_k = FK_CMP; 12446 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069275; /* 0x2B069271: je 0x2b069275 */ 12447 L_2B069273: 12448 esi = eax; /* 0x2B069273: mov esi, eax */ 12449 L_2B069275: 12450 eax = MEM32(edi + 0x18); /* 0x2B069275: mov eax, dword ptr [edi + 0x18] */ 12451 /* cmp esi, MEM32(eax + 0x4) */ /* 0x2B069278: cmp esi, dword ptr [eax + 4] */ 12452 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 12453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12454 _flag_k = FK_CMP; 12455 RECOMP_BACKEDGE(); 12456 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069229; /* 0x2B06927B: jne 0x2b069229 */ 12457 L_2B06927D: 12458 ebx = POP32_VAL(esp); /* 0x2B06927D: pop ebx */ 12459 L_2B06927E: 12460 edi = POP32_VAL(esp); /* 0x2B06927E: pop edi */ 12461 esi = POP32_VAL(esp); /* 0x2B06927F: pop esi */ 12462 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069280: ret */ 12463 RECOMP_REGS_OUT(); 12464 } 12465 12466 void sub_2B069290(void) { 12467 int _fpu_cmp = 0; 12468 uint32_t _cf = 0; 12469 int _df = 1; 12470 uint32_t _flag_k = FK_NONE; 12471 uint32_t _flag_a = 0, _flag_b = 0; 12472 uint32_t _itail_tgt = 0; 12473 RECOMP_REGS_LOCALS 12474 RECOMP_ENTER(0x2B069290u); 12475 12476 L_2B069290: 12477 PUSH32(esp, ebp); /* 0x2B069290: push ebp */ 12478 ebp = esp; /* 0x2B069291: mov ebp, esp */ 12479 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12481 esp = esp - 8; /* 0x2B069293: sub esp, 8 */ 12482 _flag_k = FK_CMP; 12483 PUSH32(esp, esi); /* 0x2B069296: push esi */ 12484 esi = ecx; /* 0x2B069297: mov esi, ecx */ 12485 ecx = MEM32(esi + 0x1C); /* 0x2B069299: mov ecx, dword ptr [esi + 0x1c] */ 12486 eax = ebp + (-0x8); /* 0x2B06929C: lea eax, [ebp - 8] */ 12487 PUSH32(esp, eax); /* 0x2B06929F: push eax */ 12488 MEM32(ebp + (-0x8)) = 0x5Au; /* 0x2B0692A0: mov dword ptr [ebp - 8], 0x5a */ 12489 MEM32(ebp + (-0x4)) = 0xFFFFFF4Cu; /* 0x2B0692A7: mov dword ptr [ebp - 4], 0xffffff4c */ 12490 RECOMP_ICALL(0x2B069F80u); /* 0x2B0692AE: call 0x2b069f80 */ /* not lifted */ 12491 RECOMP_FLAGS_IN(); 12492 edx = MEM32(esi + 0x1C); /* 0x2B0692B3: mov edx, dword ptr [esi + 0x1c] */ 12493 ecx = ebp + (-0x8); /* 0x2B0692B6: lea ecx, [ebp - 8] */ 12494 PUSH32(esp, ecx); /* 0x2B0692B9: push ecx */ 12495 ecx = MEM32(edx + 0x14); /* 0x2B0692BA: mov ecx, dword ptr [edx + 0x14] */ 12496 RECOMP_ICALL(MEM32(0x2B0B5BB8)); /* 0x2B0692BD: call dword ptr [0x2b0b5bb8] */ 12497 RECOMP_FLAGS_IN(); 12498 esi = POP32_VAL(esp); /* 0x2B0692C3: pop esi */ 12499 esp = ebp; /* 0x2B0692C4: mov esp, ebp */ 12500 ebp = POP32_VAL(esp); /* 0x2B0692C6: pop ebp */ 12501 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0692C7: ret */ 12502 RECOMP_REGS_OUT(); 12503 } 12504 12505 void sub_2B0692D0(void) { 12506 int _fpu_cmp = 0; 12507 uint32_t _cf = 0; 12508 int _df = 1; 12509 uint32_t _flag_k = FK_NONE; 12510 uint32_t _flag_a = 0, _flag_b = 0; 12511 uint32_t _itail_tgt = 0; 12512 RECOMP_REGS_LOCALS 12513 RECOMP_ENTER(0x2B0692D0u); 12514 12515 L_2B0692D0: 12516 PUSH32(esp, ebp); /* 0x2B0692D0: push ebp */ 12517 ebp = esp; /* 0x2B0692D1: mov ebp, esp */ 12518 PUSH32(esp, ebx); /* 0x2B0692D3: push ebx */ 12519 PUSH32(esp, esi); /* 0x2B0692D4: push esi */ 12520 ebx = ecx; /* 0x2B0692D5: mov ebx, ecx */ 12521 eax = MEM32(ebx + 0x8); /* 0x2B0692D7: mov eax, dword ptr [ebx + 8] */ 12522 PUSH32(esp, edi); /* 0x2B0692DA: push edi */ 12523 edi = MEM32(ebp + 0x8); /* 0x2B0692DB: mov edi, dword ptr [ebp + 8] */ 12524 /* cmp edi, eax */ /* 0x2B0692DE: cmp edi, eax */ 12525 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12527 _flag_k = FK_CMP; 12528 esi = edi; /* 0x2B0692E0: mov esi, edi */ 12529 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069303; /* 0x2B0692E2: je 0x2b069303 */ 12530 L_2B0692E4: 12531 eax = MEM32(esi + 0x8); /* 0x2B0692E4: mov eax, dword ptr [esi + 8] */ 12532 PUSH32(esp, eax); /* 0x2B0692E7: push eax */ 12533 ecx = ebx; /* 0x2B0692E8: mov ecx, ebx */ 12534 RECOMP_ICALL(0x2B0692D0u); /* 0x2B0692EA: call 0x2b0692d0 */ /* not lifted */ 12535 RECOMP_FLAGS_IN(); 12536 esi = MEM32(esi); /* 0x2B0692EF: mov esi, dword ptr [esi] */ 12537 PUSH32(esp, edi); /* 0x2B0692F1: push edi */ 12538 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0692F2: call 0x2b0ab1ba */ /* not lifted */ 12539 RECOMP_FLAGS_IN(); 12540 eax = MEM32(ebx + 0x8); /* 0x2B0692F7: mov eax, dword ptr [ebx + 8] */ 12541 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12543 esp = esp + 4; /* 0x2B0692FA: add esp, 4 */ 12544 _flag_k = FK_ADD; 12545 /* cmp esi, eax */ /* 0x2B0692FD: cmp esi, eax */ 12546 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 12547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12548 _flag_k = FK_CMP; 12549 edi = esi; /* 0x2B0692FF: mov edi, esi */ 12550 RECOMP_BACKEDGE(); 12551 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0692E4; /* 0x2B069301: jne 0x2b0692e4 */ 12552 L_2B069303: 12553 edi = POP32_VAL(esp); /* 0x2B069303: pop edi */ 12554 esi = POP32_VAL(esp); /* 0x2B069304: pop esi */ 12555 ebx = POP32_VAL(esp); /* 0x2B069305: pop ebx */ 12556 ebp = POP32_VAL(esp); /* 0x2B069306: pop ebp */ 12557 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B069307: ret 4 */ 12558 RECOMP_REGS_OUT(); 12559 } 12560 12561 void sub_2B069310(void) { 12562 int _fpu_cmp = 0; 12563 uint32_t _cf = 0; 12564 int _df = 1; 12565 uint32_t _flag_k = FK_NONE; 12566 uint32_t _flag_a = 0, _flag_b = 0; 12567 uint32_t _itail_tgt = 0; 12568 RECOMP_REGS_LOCALS 12569 RECOMP_ENTER(0x2B069310u); 12570 12571 L_2B069310: 12572 PUSH32(esp, ebp); /* 0x2B069310: push ebp */ 12573 ebp = esp; /* 0x2B069311: mov ebp, esp */ 12574 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B069313: push -1 */ 12575 PUSH32(esp, 0x2B0B0EE3u); /* 0x2B069315: push 0x2b0b0ee3 */ 12576 eax = MEM32(FS_BASE + (0)); /* 0x2B06931A: mov eax, dword ptr fs:[0] */ 12577 PUSH32(esp, eax); /* 0x2B069320: push eax */ 12578 MEM32(FS_BASE + (0)) = esp; /* 0x2B069321: mov dword ptr fs:[0], esp */ 12579 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x70u); 12580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12581 esp = esp - 0x70u; /* 0x2B069328: sub esp, 0x70 */ 12582 _flag_k = FK_CMP; 12583 PUSH32(esp, ebx); /* 0x2B06932B: push ebx */ 12584 PUSH32(esp, esi); /* 0x2B06932C: push esi */ 12585 esi = ecx; /* 0x2B06932D: mov esi, ecx */ 12586 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12587 ebx = 0; /* 0x2B06932F: xor ebx, ebx */ 12588 _cf = 0; 12589 _flag_k = FK_TEST; 12590 MEM8(0x2B0EEE58) = (uint8_t)(LO8(ebx)); /* 0x2B069331: mov byte ptr [0x2b0eee58], bl */ 12591 MEM32(0x2B0EEE54) = esi; /* 0x2B069337: mov dword ptr [0x2b0eee54], esi */ 12592 PUSH32(esp, edi); /* 0x2B06933D: push edi */ 12593 MEM32(esi + 0x18) = ebx; /* 0x2B06933E: mov dword ptr [esi + 0x18], ebx */ 12594 MEM8(esi + 0x24) = (uint8_t)(1); /* 0x2B069341: mov byte ptr [esi + 0x24], 1 */ 12595 RECOMP_ICALL(0x2B0012E0u); /* 0x2B069345: call 0x2b0012e0 */ /* not lifted */ 12596 RECOMP_FLAGS_IN(); 12597 fp_push((double)(int32_t)MEM32(eax + 0x8)); /* 0x2B06934A: fild dword ptr [eax + 8] */ 12598 edi = MEM32(0x2B0B53C8); /* 0x2B06934D: mov edi, dword ptr [0x2b0b53c8] */ 12599 _st[0] *= (double)*(float*)ADDR(0x2B0B70EC); /* 0x2B069353: fmul dword ptr [0x2b0b70ec] */ 12600 fp_push((double)(int32_t)MEM32(eax + 0xC)); /* 0x2B069359: fild dword ptr [eax + 0xc] */ 12601 _st[0] *= (double)*(float*)ADDR(0x2B0B70E8); /* 0x2B06935C: fmul dword ptr [0x2b0b70e8] */ 12602 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2B069362: fstp dword ptr [ebp - 0x1c] */ 12603 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B70E4)); /* 0x2B069365: fcomp dword ptr [0x2b0b70e4] */ 12604 fp_pop(); 12605 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B06936B: fnstsw ax */ 12606 /* test HI8(eax), 0x41u */ /* 0x2B06936D: test ah, 0x41 */ 12607 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 12608 _cf = 0; 12609 _flag_k = FK_NARROW(FK_TEST, 24); 12610 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06939C; /* 0x2B069370: je 0x2b06939c */ 12611 L_2B069372: 12612 PUSH32(esp, 1); /* 0x2B069372: push 1 */ 12613 RECOMP_ICALL(0x2B0012E0u); /* 0x2B069374: call 0x2b0012e0 */ /* not lifted */ 12614 RECOMP_FLAGS_IN(); 12615 ecx = eax; /* 0x2B069379: mov ecx, eax */ 12616 RECOMP_ICALL(0x2B001440u); /* 0x2B06937B: call 0x2b001440 */ /* not lifted */ 12617 RECOMP_FLAGS_IN(); 12618 PUSH32(esp, 4); /* 0x2B069380: push 4 */ 12619 PUSH32(esp, 4); /* 0x2B069382: push 4 */ 12620 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B069384: call dword ptr [0x2b0b53cc] */ 12621 RECOMP_FLAGS_IN(); 12622 ecx = eax; /* 0x2B06938A: mov ecx, eax */ 12623 RECOMP_ICALL(edi); /* 0x2B06938C: call edi */ 12624 RECOMP_FLAGS_IN(); 12625 PUSH32(esp, 4); /* 0x2B06938E: push 4 */ 12626 PUSH32(esp, 3); /* 0x2B069390: push 3 */ 12627 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B069392: call dword ptr [0x2b0b53cc] */ 12628 RECOMP_FLAGS_IN(); 12629 ecx = eax; /* 0x2B069398: mov ecx, eax */ 12630 RECOMP_ICALL(edi); /* 0x2B06939A: call edi */ 12631 RECOMP_FLAGS_IN(); 12632 L_2B06939C: 12633 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x2B06939C: fld dword ptr [ebp - 0x1c] */ 12634 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B70E4)); /* 0x2B06939F: fcomp dword ptr [0x2b0b70e4] */ 12635 fp_pop(); 12636 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0693A5: fnstsw ax */ 12637 /* test HI8(eax), 0x41u */ /* 0x2B0693A7: test ah, 0x41 */ 12638 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 12639 _cf = 0; 12640 _flag_k = FK_NARROW(FK_TEST, 24); 12641 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0693C8; /* 0x2B0693AA: je 0x2b0693c8 */ 12642 L_2B0693AC: 12643 PUSH32(esp, 1); /* 0x2B0693AC: push 1 */ 12644 RECOMP_ICALL(0x2B0012E0u); /* 0x2B0693AE: call 0x2b0012e0 */ /* not lifted */ 12645 RECOMP_FLAGS_IN(); 12646 ecx = eax; /* 0x2B0693B3: mov ecx, eax */ 12647 RECOMP_ICALL(0x2B0013A0u); /* 0x2B0693B5: call 0x2b0013a0 */ /* not lifted */ 12648 RECOMP_FLAGS_IN(); 12649 PUSH32(esp, 0x6Au); /* 0x2B0693BA: push 0x6a */ 12650 PUSH32(esp, 3); /* 0x2B0693BC: push 3 */ 12651 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0693BE: call dword ptr [0x2b0b53cc] */ 12652 RECOMP_FLAGS_IN(); 12653 ecx = eax; /* 0x2B0693C4: mov ecx, eax */ 12654 RECOMP_ICALL(edi); /* 0x2B0693C6: call edi */ 12655 RECOMP_FLAGS_IN(); 12656 L_2B0693C8: 12657 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0693C8: call dword ptr [0x2b0b5d6c] */ 12658 RECOMP_FLAGS_IN(); 12659 ecx = eax; /* 0x2B0693CE: mov ecx, eax */ 12660 RECOMP_ICALL(MEM32(0x2B0B5D98)); /* 0x2B0693D0: call dword ptr [0x2b0b5d98] */ 12661 RECOMP_FLAGS_IN(); 12662 PUSH32(esp, 0x14u); /* 0x2B0693D6: push 0x14 */ 12663 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0693D8: call 0x2b0ab212 */ /* not lifted */ 12664 RECOMP_FLAGS_IN(); 12665 edi = eax; /* 0x2B0693DD: mov edi, eax */ 12666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12668 esp = esp + 4; /* 0x2B0693DF: add esp, 4 */ 12669 _flag_k = FK_ADD; 12670 MEM32(ebp + (-0x18)) = edi; /* 0x2B0693E2: mov dword ptr [ebp - 0x18], edi */ 12671 /* cmp edi, ebx */ /* 0x2B0693E5: cmp edi, ebx */ 12672 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 12673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12674 _flag_k = FK_CMP; 12675 MEM32(ebp + (-0x4)) = ebx; /* 0x2B0693E7: mov dword ptr [ebp - 4], ebx */ 12676 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B06944B; /* 0x2B0693EA: je 0x2b06944b */ 12677 L_2B0693EC: 12678 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B0693EC: mov al, byte ptr [ebp - 0xd] */ 12679 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B0693EF: mov cl, byte ptr [ebp - 0xd] */ 12680 PUSH32(esp, 0x18u); /* 0x2B0693F2: push 0x18 */ 12681 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x2B0693F4: mov byte ptr [edi], al */ 12682 MEM8(edi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x2B0693F6: mov byte ptr [edi + 1], cl */ 12683 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x2B0693F9: mov byte ptr [edi + 0xc], bl */ 12684 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0693FC: call 0x2b0ab212 */ /* not lifted */ 12685 RECOMP_FLAGS_IN(); 12686 MEM32(eax + 0x4) = ebx; /* 0x2B069401: mov dword ptr [eax + 4], ebx */ 12687 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2B069404: mov byte ptr [eax + 0x14], 1 */ 12688 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B069408: mov byte ptr [eax + 0x15], bl */ 12689 MEM32(edi + 0x8) = eax; /* 0x2B06940B: mov dword ptr [edi + 8], eax */ 12690 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x2B06940E: mov byte ptr [eax + 0x15], 1 */ 12691 eax = MEM32(edi + 0x8); /* 0x2B069412: mov eax, dword ptr [edi + 8] */ 12692 MEM32(eax) = ebx; /* 0x2B069415: mov dword ptr [eax], ebx */ 12693 edx = MEM32(edi + 0x8); /* 0x2B069417: mov edx, dword ptr [edi + 8] */ 12694 MEM32(edx + 0x8) = ebx; /* 0x2B06941A: mov dword ptr [edx + 8], ebx */ 12695 eax = MEM32(edi + 0x8); /* 0x2B06941D: mov eax, dword ptr [edi + 8] */ 12696 PUSH32(esp, 0x18u); /* 0x2B069420: push 0x18 */ 12697 MEM32(ebp + (-0x1C)) = eax; /* 0x2B069422: mov dword ptr [ebp - 0x1c], eax */ 12698 RECOMP_ICALL(0x2B0AB212u); /* 0x2B069425: call 0x2b0ab212 */ /* not lifted */ 12699 RECOMP_FLAGS_IN(); 12700 ecx = MEM32(ebp + (-0x1C)); /* 0x2B06942A: mov ecx, dword ptr [ebp - 0x1c] */ 12701 MEM32(eax + 0x4) = ecx; /* 0x2B06942D: mov dword ptr [eax + 4], ecx */ 12702 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2B069430: mov byte ptr [eax + 0x14], bl */ 12703 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B069433: mov byte ptr [eax + 0x15], bl */ 12704 MEM32(edi + 0x4) = eax; /* 0x2B069436: mov dword ptr [edi + 4], eax */ 12705 MEM32(eax) = eax; /* 0x2B069439: mov dword ptr [eax], eax */ 12706 eax = MEM32(edi + 0x4); /* 0x2B06943B: mov eax, dword ptr [edi + 4] */ 12707 MEM32(eax + 0x8) = eax; /* 0x2B06943E: mov dword ptr [eax + 8], eax */ 12708 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12709 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12710 esp = esp + 8; /* 0x2B069441: add esp, 8 */ 12711 _flag_k = FK_ADD; 12712 MEM32(edi + 0x10) = ebx; /* 0x2B069444: mov dword ptr [edi + 0x10], ebx */ 12713 eax = edi; /* 0x2B069447: mov eax, edi */ 12714 goto L_2B06944D; /* 0x2B069449: jmp 0x2b06944d */ 12715 L_2B06944B: 12716 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12717 eax = 0; /* 0x2B06944B: xor eax, eax */ 12718 _cf = 0; 12719 _flag_k = FK_TEST; 12720 L_2B06944D: 12721 ecx = 0xFFFFFF38u; /* 0x2B06944D: mov ecx, 0xffffff38 */ 12722 MEM32(esi + 0x1C) = eax; /* 0x2B069452: mov dword ptr [esi + 0x1c], eax */ 12723 edx = ebp + (-0x24); /* 0x2B069455: lea edx, [ebp - 0x24] */ 12724 eax = 0xFFFFFF74u; /* 0x2B069458: mov eax, 0xffffff74 */ 12725 MEM32(ebp + (-0x20)) = ecx; /* 0x2B06945D: mov dword ptr [ebp - 0x20], ecx */ 12726 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 12727 edi = edi | 0xFFFFFFFFu; /* 0x2B069460: or edi, 0xffffffff */ 12728 _cf = 0; 12729 _flag_k = FK_TEST; 12730 PUSH32(esp, edx); /* 0x2B069463: push edx */ 12731 ecx = esi; /* 0x2B069464: mov ecx, esi */ 12732 MEM32(ebp + (-0x4)) = edi; /* 0x2B069466: mov dword ptr [ebp - 4], edi */ 12733 MEM32(ebp + (-0x24)) = eax; /* 0x2B069469: mov dword ptr [ebp - 0x24], eax */ 12734 RECOMP_ICALL(0x2B069F80u); /* 0x2B06946C: call 0x2b069f80 */ /* not lifted */ 12735 RECOMP_FLAGS_IN(); 12736 PUSH32(esp, 0x2Cu); /* 0x2B069471: push 0x2c */ 12737 RECOMP_ICALL(0x2B0AB212u); /* 0x2B069473: call 0x2b0ab212 */ /* not lifted */ 12738 RECOMP_FLAGS_IN(); 12739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12741 esp = esp + 4; /* 0x2B069478: add esp, 4 */ 12742 _flag_k = FK_ADD; 12743 MEM32(ebp + (-0x1C)) = eax; /* 0x2B06947B: mov dword ptr [ebp - 0x1c], eax */ 12744 /* cmp eax, ebx */ /* 0x2B06947E: cmp eax, ebx */ 12745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12747 _flag_k = FK_CMP; 12748 MEM32(ebp + (-0x4)) = 1; /* 0x2B069480: mov dword ptr [ebp - 4], 1 */ 12749 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069496; /* 0x2B069487: je 0x2b069496 */ 12750 L_2B069489: 12751 ecx = ebp + (-0x24); /* 0x2B069489: lea ecx, [ebp - 0x24] */ 12752 PUSH32(esp, ecx); /* 0x2B06948C: push ecx */ 12753 ecx = eax; /* 0x2B06948D: mov ecx, eax */ 12754 RECOMP_ICALL(0x2B066E20u); /* 0x2B06948F: call 0x2b066e20 */ /* not lifted */ 12755 RECOMP_FLAGS_IN(); 12756 goto L_2B069498; /* 0x2B069494: jmp 0x2b069498 */ 12757 L_2B069496: 12758 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12759 eax = 0; /* 0x2B069496: xor eax, eax */ 12760 _cf = 0; 12761 _flag_k = FK_TEST; 12762 L_2B069498: 12763 ecx = 0xAAu; /* 0x2B069498: mov ecx, 0xaa */ 12764 MEM32(esi) = eax; /* 0x2B06949D: mov dword ptr [esi], eax */ 12765 edx = ebp + (-0x24); /* 0x2B06949F: lea edx, [ebp - 0x24] */ 12766 eax = 0xFFFFFFBAu; /* 0x2B0694A2: mov eax, 0xffffffba */ 12767 MEM32(ebp + (-0x20)) = ecx; /* 0x2B0694A7: mov dword ptr [ebp - 0x20], ecx */ 12768 PUSH32(esp, edx); /* 0x2B0694AA: push edx */ 12769 ecx = esi; /* 0x2B0694AB: mov ecx, esi */ 12770 MEM32(ebp + (-0x4)) = edi; /* 0x2B0694AD: mov dword ptr [ebp - 4], edi */ 12771 MEM32(ebp + (-0x2C)) = 0x40u; /* 0x2B0694B0: mov dword ptr [ebp - 0x2c], 0x40 */ 12772 MEM32(ebp + (-0x28)) = 0x1Cu; /* 0x2B0694B7: mov dword ptr [ebp - 0x28], 0x1c */ 12773 MEM32(ebp + (-0x24)) = eax; /* 0x2B0694BE: mov dword ptr [ebp - 0x24], eax */ 12774 RECOMP_ICALL(0x2B069F80u); /* 0x2B0694C1: call 0x2b069f80 */ /* not lifted */ 12775 RECOMP_FLAGS_IN(); 12776 PUSH32(esp, 0x50u); /* 0x2B0694C6: push 0x50 */ 12777 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0694C8: call 0x2b0ab212 */ /* not lifted */ 12778 RECOMP_FLAGS_IN(); 12779 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12781 esp = esp + 4; /* 0x2B0694CD: add esp, 4 */ 12782 _flag_k = FK_ADD; 12783 MEM32(ebp + (-0x1C)) = eax; /* 0x2B0694D0: mov dword ptr [ebp - 0x1c], eax */ 12784 /* cmp eax, ebx */ /* 0x2B0694D3: cmp eax, ebx */ 12785 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12787 _flag_k = FK_CMP; 12788 MEM32(ebp + (-0x4)) = 2; /* 0x2B0694D5: mov dword ptr [ebp - 4], 2 */ 12789 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069504; /* 0x2B0694DC: je 0x2b069504 */ 12790 L_2B0694DE: 12791 PUSH32(esp, ebx); /* 0x2B0694DE: push ebx */ 12792 PUSH32(esp, 0x3F800000u); /* 0x2B0694DF: push 0x3f800000 */ 12793 PUSH32(esp, 0x3F800000u); /* 0x2B0694E4: push 0x3f800000 */ 12794 PUSH32(esp, 0x5208u); /* 0x2B0694E9: push 0x5208 */ 12795 ecx = ebp + (-0x24); /* 0x2B0694EE: lea ecx, [ebp - 0x24] */ 12796 PUSH32(esp, ecx); /* 0x2B0694F1: push ecx */ 12797 edx = ebp + (-0x2C); /* 0x2B0694F2: lea edx, [ebp - 0x2c] */ 12798 PUSH32(esp, edx); /* 0x2B0694F5: push edx */ 12799 PUSH32(esp, 5); /* 0x2B0694F6: push 5 */ 12800 PUSH32(esp, 6); /* 0x2B0694F8: push 6 */ 12801 ecx = eax; /* 0x2B0694FA: mov ecx, eax */ 12802 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B0694FC: call dword ptr [0x2b0b5bd8] */ 12803 RECOMP_FLAGS_IN(); 12804 goto L_2B069506; /* 0x2B069502: jmp 0x2b069506 */ 12805 L_2B069504: 12806 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12807 eax = 0; /* 0x2B069504: xor eax, eax */ 12808 _cf = 0; 12809 _flag_k = FK_TEST; 12810 L_2B069506: 12811 PUSH32(esp, 1); /* 0x2B069506: push 1 */ 12812 MEM32(esi + 0x8) = eax; /* 0x2B069508: mov dword ptr [esi + 8], eax */ 12813 eax = MEM32(eax + 0x28); /* 0x2B06950B: mov eax, dword ptr [eax + 0x28] */ 12814 PUSH32(esp, ebx); /* 0x2B06950E: push ebx */ 12815 PUSH32(esp, ebx); /* 0x2B06950F: push ebx */ 12816 ecx = eax; /* 0x2B069510: mov ecx, eax */ 12817 MEM32(ebp + (-0x4)) = edi; /* 0x2B069512: mov dword ptr [ebp - 4], edi */ 12818 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B069515: call dword ptr [0x2b0b564c] */ 12819 RECOMP_FLAGS_IN(); 12820 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12821 eax = 0; /* 0x2B06951B: xor eax, eax */ 12822 _cf = 0; 12823 _flag_k = FK_TEST; 12824 ecx = 0xCu; /* 0x2B06951D: mov ecx, 0xc */ 12825 edi = ebp + (-0x7C); /* 0x2B069522: lea edi, [ebp - 0x7c] */ 12826 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B069525: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 12827 eax = 0xD7u; /* 0x2B069527: mov eax, 0xd7 */ 12828 PUSH32(esp, 0xBCu); /* 0x2B06952C: push 0xbc */ 12829 MEM32(ebp + (-0x64)) = 0x5209u; /* 0x2B069531: mov dword ptr [ebp - 0x64], 0x5209 */ 12830 MEM32(ebp + (-0x5C)) = eax; /* 0x2B069538: mov dword ptr [ebp - 0x5c], eax */ 12831 MEM32(ebp + (-0x58)) = eax; /* 0x2B06953B: mov dword ptr [ebp - 0x58], eax */ 12832 MEM32(ebp + (-0x50)) = 0xD8u; /* 0x2B06953E: mov dword ptr [ebp - 0x50], 0xd8 */ 12833 RECOMP_ICALL(0x2B0AB212u); /* 0x2B069545: call 0x2b0ab212 */ /* not lifted */ 12834 RECOMP_FLAGS_IN(); 12835 edi = eax; /* 0x2B06954A: mov edi, eax */ 12836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12838 esp = esp + 4; /* 0x2B06954C: add esp, 4 */ 12839 _flag_k = FK_ADD; 12840 MEM32(ebp + (-0x1C)) = edi; /* 0x2B06954F: mov dword ptr [ebp - 0x1c], edi */ 12841 /* cmp edi, ebx */ /* 0x2B069552: cmp edi, ebx */ 12842 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 12843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12844 _flag_k = FK_CMP; 12845 MEM32(ebp + (-0x4)) = 3; /* 0x2B069554: mov dword ptr [ebp - 4], 3 */ 12846 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069577; /* 0x2B06955B: je 0x2b069577 */ 12847 L_2B06955D: 12848 eax = MEM32(esi + 0x8); /* 0x2B06955D: mov eax, dword ptr [esi + 8] */ 12849 PUSH32(esp, eax); /* 0x2B069560: push eax */ 12850 ecx = ebp + (-0x7C); /* 0x2B069561: lea ecx, [ebp - 0x7c] */ 12851 PUSH32(esp, ecx); /* 0x2B069564: push ecx */ 12852 ecx = edi; /* 0x2B069565: mov ecx, edi */ 12853 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B069567: call dword ptr [0x2b0b5afc] */ 12854 RECOMP_FLAGS_IN(); 12855 MEM32(edi) = 0x2B0B645Cu; /* 0x2B06956D: mov dword ptr [edi], 0x2b0b645c */ 12856 ecx = edi; /* 0x2B069573: mov ecx, edi */ 12857 goto L_2B069579; /* 0x2B069575: jmp 0x2b069579 */ 12858 L_2B069577: 12859 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12860 ecx = 0; /* 0x2B069577: xor ecx, ecx */ 12861 _cf = 0; 12862 _flag_k = FK_TEST; 12863 L_2B069579: 12864 PUSH32(esp, esi); /* 0x2B069579: push esi */ 12865 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 12866 edi = edi | 0xFFFFFFFFu; /* 0x2B06957A: or edi, 0xffffffff */ 12867 _cf = 0; 12868 _flag_k = FK_TEST; 12869 PUSH32(esp, 0x2B069BE0u); /* 0x2B06957D: push 0x2b069be0 */ 12870 MEM32(ebp + (-0x4)) = edi; /* 0x2B069582: mov dword ptr [ebp - 4], edi */ 12871 MEM32(esi + 0x4) = ecx; /* 0x2B069585: mov dword ptr [esi + 4], ecx */ 12872 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B069588: call dword ptr [0x2b0b5820] */ 12873 RECOMP_FLAGS_IN(); 12874 edx = ebp + (-0x24); /* 0x2B06958E: lea edx, [ebp - 0x24] */ 12875 eax = 0xAAu; /* 0x2B069591: mov eax, 0xaa */ 12876 PUSH32(esp, edx); /* 0x2B069596: push edx */ 12877 ecx = esi; /* 0x2B069597: mov ecx, esi */ 12878 MEM32(ebp + (-0x24)) = ebx; /* 0x2B069599: mov dword ptr [ebp - 0x24], ebx */ 12879 MEM32(ebp + (-0x20)) = eax; /* 0x2B06959C: mov dword ptr [ebp - 0x20], eax */ 12880 RECOMP_ICALL(0x2B069F80u); /* 0x2B06959F: call 0x2b069f80 */ /* not lifted */ 12881 RECOMP_FLAGS_IN(); 12882 PUSH32(esp, 0x50u); /* 0x2B0695A4: push 0x50 */ 12883 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0695A6: call 0x2b0ab212 */ /* not lifted */ 12884 RECOMP_FLAGS_IN(); 12885 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12887 esp = esp + 4; /* 0x2B0695AB: add esp, 4 */ 12888 _flag_k = FK_ADD; 12889 MEM32(ebp + (-0x1C)) = eax; /* 0x2B0695AE: mov dword ptr [ebp - 0x1c], eax */ 12890 /* cmp eax, ebx */ /* 0x2B0695B1: cmp eax, ebx */ 12891 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12893 _flag_k = FK_CMP; 12894 MEM32(ebp + (-0x4)) = 4; /* 0x2B0695B3: mov dword ptr [ebp - 4], 4 */ 12895 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0695E2; /* 0x2B0695BA: je 0x2b0695e2 */ 12896 L_2B0695BC: 12897 PUSH32(esp, ebx); /* 0x2B0695BC: push ebx */ 12898 PUSH32(esp, 0x3F800000u); /* 0x2B0695BD: push 0x3f800000 */ 12899 PUSH32(esp, 0x3F800000u); /* 0x2B0695C2: push 0x3f800000 */ 12900 PUSH32(esp, 0x5208u); /* 0x2B0695C7: push 0x5208 */ 12901 ecx = ebp + (-0x24); /* 0x2B0695CC: lea ecx, [ebp - 0x24] */ 12902 PUSH32(esp, ecx); /* 0x2B0695CF: push ecx */ 12903 edx = ebp + (-0x2C); /* 0x2B0695D0: lea edx, [ebp - 0x2c] */ 12904 PUSH32(esp, edx); /* 0x2B0695D3: push edx */ 12905 PUSH32(esp, 5); /* 0x2B0695D4: push 5 */ 12906 PUSH32(esp, 6); /* 0x2B0695D6: push 6 */ 12907 ecx = eax; /* 0x2B0695D8: mov ecx, eax */ 12908 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B0695DA: call dword ptr [0x2b0b5bd8] */ 12909 RECOMP_FLAGS_IN(); 12910 goto L_2B0695E4; /* 0x2B0695E0: jmp 0x2b0695e4 */ 12911 L_2B0695E2: 12912 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12913 eax = 0; /* 0x2B0695E2: xor eax, eax */ 12914 _cf = 0; 12915 _flag_k = FK_TEST; 12916 L_2B0695E4: 12917 PUSH32(esp, 1); /* 0x2B0695E4: push 1 */ 12918 MEM32(esi + 0x10) = eax; /* 0x2B0695E6: mov dword ptr [esi + 0x10], eax */ 12919 eax = MEM32(eax + 0x28); /* 0x2B0695E9: mov eax, dword ptr [eax + 0x28] */ 12920 PUSH32(esp, ebx); /* 0x2B0695EC: push ebx */ 12921 PUSH32(esp, ebx); /* 0x2B0695ED: push ebx */ 12922 ecx = eax; /* 0x2B0695EE: mov ecx, eax */ 12923 MEM32(ebp + (-0x4)) = edi; /* 0x2B0695F0: mov dword ptr [ebp - 4], edi */ 12924 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B0695F3: call dword ptr [0x2b0b564c] */ 12925 RECOMP_FLAGS_IN(); 12926 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12927 eax = 0; /* 0x2B0695F9: xor eax, eax */ 12928 _cf = 0; 12929 _flag_k = FK_TEST; 12930 ecx = 0xCu; /* 0x2B0695FB: mov ecx, 0xc */ 12931 edi = ebp + (-0x7C); /* 0x2B069600: lea edi, [ebp - 0x7c] */ 12932 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B069603: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 12933 eax = 0xD9u; /* 0x2B069605: mov eax, 0xd9 */ 12934 PUSH32(esp, 0xBCu); /* 0x2B06960A: push 0xbc */ 12935 MEM32(ebp + (-0x64)) = 0x5209u; /* 0x2B06960F: mov dword ptr [ebp - 0x64], 0x5209 */ 12936 MEM32(ebp + (-0x5C)) = eax; /* 0x2B069616: mov dword ptr [ebp - 0x5c], eax */ 12937 MEM32(ebp + (-0x58)) = eax; /* 0x2B069619: mov dword ptr [ebp - 0x58], eax */ 12938 MEM32(ebp + (-0x50)) = 0xDAu; /* 0x2B06961C: mov dword ptr [ebp - 0x50], 0xda */ 12939 RECOMP_ICALL(0x2B0AB212u); /* 0x2B069623: call 0x2b0ab212 */ /* not lifted */ 12940 RECOMP_FLAGS_IN(); 12941 edi = eax; /* 0x2B069628: mov edi, eax */ 12942 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12943 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12944 esp = esp + 4; /* 0x2B06962A: add esp, 4 */ 12945 _flag_k = FK_ADD; 12946 MEM32(ebp + (-0x1C)) = edi; /* 0x2B06962D: mov dword ptr [ebp - 0x1c], edi */ 12947 /* cmp edi, ebx */ /* 0x2B069630: cmp edi, ebx */ 12948 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 12949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12950 _flag_k = FK_CMP; 12951 MEM32(ebp + (-0x4)) = 5; /* 0x2B069632: mov dword ptr [ebp - 4], 5 */ 12952 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069655; /* 0x2B069639: je 0x2b069655 */ 12953 L_2B06963B: 12954 eax = MEM32(esi + 0x10); /* 0x2B06963B: mov eax, dword ptr [esi + 0x10] */ 12955 PUSH32(esp, eax); /* 0x2B06963E: push eax */ 12956 ecx = ebp + (-0x7C); /* 0x2B06963F: lea ecx, [ebp - 0x7c] */ 12957 PUSH32(esp, ecx); /* 0x2B069642: push ecx */ 12958 ecx = edi; /* 0x2B069643: mov ecx, edi */ 12959 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B069645: call dword ptr [0x2b0b5afc] */ 12960 RECOMP_FLAGS_IN(); 12961 MEM32(edi) = 0x2B0B645Cu; /* 0x2B06964B: mov dword ptr [edi], 0x2b0b645c */ 12962 ecx = edi; /* 0x2B069651: mov ecx, edi */ 12963 goto L_2B069657; /* 0x2B069653: jmp 0x2b069657 */ 12964 L_2B069655: 12965 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12966 ecx = 0; /* 0x2B069655: xor ecx, ecx */ 12967 _cf = 0; 12968 _flag_k = FK_TEST; 12969 L_2B069657: 12970 PUSH32(esp, esi); /* 0x2B069657: push esi */ 12971 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 12972 edi = edi | 0xFFFFFFFFu; /* 0x2B069658: or edi, 0xffffffff */ 12973 _cf = 0; 12974 _flag_k = FK_TEST; 12975 PUSH32(esp, 0x2B069C30u); /* 0x2B06965B: push 0x2b069c30 */ 12976 MEM32(ebp + (-0x4)) = edi; /* 0x2B069660: mov dword ptr [ebp - 4], edi */ 12977 MEM32(esi + 0xC) = ecx; /* 0x2B069663: mov dword ptr [esi + 0xc], ecx */ 12978 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B069666: call dword ptr [0x2b0b5820] */ 12979 RECOMP_FLAGS_IN(); 12980 edx = ebp + (-0x24); /* 0x2B06966C: lea edx, [ebp - 0x24] */ 12981 PUSH32(esp, edx); /* 0x2B06966F: push edx */ 12982 ecx = esi; /* 0x2B069670: mov ecx, esi */ 12983 MEM32(ebp + (-0x24)) = 0x5Au; /* 0x2B069672: mov dword ptr [ebp - 0x24], 0x5a */ 12984 MEM32(ebp + (-0x20)) = 0xFFFFFF4Cu; /* 0x2B069679: mov dword ptr [ebp - 0x20], 0xffffff4c */ 12985 RECOMP_ICALL(0x2B069F80u); /* 0x2B069680: call 0x2b069f80 */ /* not lifted */ 12986 RECOMP_FLAGS_IN(); 12987 PUSH32(esp, 0x50u); /* 0x2B069685: push 0x50 */ 12988 MEM32(ebp + (-0x2C)) = 0xCFu; /* 0x2B069687: mov dword ptr [ebp - 0x2c], 0xcf */ 12989 MEM32(ebp + (-0x28)) = 0x1A4u; /* 0x2B06968E: mov dword ptr [ebp - 0x28], 0x1a4 */ 12990 RECOMP_ICALL(0x2B0AB212u); /* 0x2B069695: call 0x2b0ab212 */ /* not lifted */ 12991 RECOMP_FLAGS_IN(); 12992 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12994 esp = esp + 4; /* 0x2B06969A: add esp, 4 */ 12995 _flag_k = FK_ADD; 12996 MEM32(ebp + (-0x1C)) = eax; /* 0x2B06969D: mov dword ptr [ebp - 0x1c], eax */ 12997 /* cmp eax, ebx */ /* 0x2B0696A0: cmp eax, ebx */ 12998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13000 _flag_k = FK_CMP; 13001 MEM32(ebp + (-0x4)) = 6; /* 0x2B0696A2: mov dword ptr [ebp - 4], 6 */ 13002 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0696D1; /* 0x2B0696A9: je 0x2b0696d1 */ 13003 L_2B0696AB: 13004 PUSH32(esp, ebx); /* 0x2B0696AB: push ebx */ 13005 PUSH32(esp, 0x3F800000u); /* 0x2B0696AC: push 0x3f800000 */ 13006 PUSH32(esp, 0x3F800000u); /* 0x2B0696B1: push 0x3f800000 */ 13007 PUSH32(esp, 0x5208u); /* 0x2B0696B6: push 0x5208 */ 13008 ecx = ebp + (-0x24); /* 0x2B0696BB: lea ecx, [ebp - 0x24] */ 13009 PUSH32(esp, ecx); /* 0x2B0696BE: push ecx */ 13010 edx = ebp + (-0x2C); /* 0x2B0696BF: lea edx, [ebp - 0x2c] */ 13011 PUSH32(esp, edx); /* 0x2B0696C2: push edx */ 13012 PUSH32(esp, 8); /* 0x2B0696C3: push 8 */ 13013 PUSH32(esp, 8); /* 0x2B0696C5: push 8 */ 13014 ecx = eax; /* 0x2B0696C7: mov ecx, eax */ 13015 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B0696C9: call dword ptr [0x2b0b5bd8] */ 13016 RECOMP_FLAGS_IN(); 13017 goto L_2B0696D3; /* 0x2B0696CF: jmp 0x2b0696d3 */ 13018 L_2B0696D1: 13019 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13020 eax = 0; /* 0x2B0696D1: xor eax, eax */ 13021 _cf = 0; 13022 _flag_k = FK_TEST; 13023 L_2B0696D3: 13024 PUSH32(esp, 0x14u); /* 0x2B0696D3: push 0x14 */ 13025 MEM32(ebp + (-0x4)) = edi; /* 0x2B0696D5: mov dword ptr [ebp - 4], edi */ 13026 MEM32(esi + 0x14) = eax; /* 0x2B0696D8: mov dword ptr [esi + 0x14], eax */ 13027 MEM32(ebp + (-0x30)) = 0xFFFFFF74u; /* 0x2B0696DB: mov dword ptr [ebp - 0x30], 0xffffff74 */ 13028 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0696E2: call 0x2b0ab212 */ /* not lifted */ 13029 RECOMP_FLAGS_IN(); 13030 edi = eax; /* 0x2B0696E7: mov edi, eax */ 13031 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13032 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13033 esp = esp + 4; /* 0x2B0696E9: add esp, 4 */ 13034 _flag_k = FK_ADD; 13035 MEM32(ebp + (-0x18)) = edi; /* 0x2B0696EC: mov dword ptr [ebp - 0x18], edi */ 13036 /* cmp edi, ebx */ /* 0x2B0696EF: cmp edi, ebx */ 13037 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 13038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13039 _flag_k = FK_CMP; 13040 MEM32(ebp + (-0x4)) = 7; /* 0x2B0696F1: mov dword ptr [ebp - 4], 7 */ 13041 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069757; /* 0x2B0696F8: je 0x2b069757 */ 13042 L_2B0696FA: 13043 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B0696FA: mov al, byte ptr [ebp - 0xd] */ 13044 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B0696FD: mov cl, byte ptr [ebp - 0xd] */ 13045 PUSH32(esp, 0x18u); /* 0x2B069700: push 0x18 */ 13046 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x2B069702: mov byte ptr [edi], al */ 13047 MEM8(edi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x2B069704: mov byte ptr [edi + 1], cl */ 13048 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x2B069707: mov byte ptr [edi + 0xc], bl */ 13049 RECOMP_ICALL(0x2B0AB212u); /* 0x2B06970A: call 0x2b0ab212 */ /* not lifted */ 13050 RECOMP_FLAGS_IN(); 13051 MEM32(eax + 0x4) = ebx; /* 0x2B06970F: mov dword ptr [eax + 4], ebx */ 13052 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2B069712: mov byte ptr [eax + 0x14], 1 */ 13053 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B069716: mov byte ptr [eax + 0x15], bl */ 13054 MEM32(edi + 0x8) = eax; /* 0x2B069719: mov dword ptr [edi + 8], eax */ 13055 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x2B06971C: mov byte ptr [eax + 0x15], 1 */ 13056 eax = MEM32(edi + 0x8); /* 0x2B069720: mov eax, dword ptr [edi + 8] */ 13057 MEM32(eax) = ebx; /* 0x2B069723: mov dword ptr [eax], ebx */ 13058 edx = MEM32(edi + 0x8); /* 0x2B069725: mov edx, dword ptr [edi + 8] */ 13059 MEM32(edx + 0x8) = ebx; /* 0x2B069728: mov dword ptr [edx + 8], ebx */ 13060 eax = MEM32(edi + 0x8); /* 0x2B06972B: mov eax, dword ptr [edi + 8] */ 13061 PUSH32(esp, 0x18u); /* 0x2B06972E: push 0x18 */ 13062 MEM32(ebp + (-0x1C)) = eax; /* 0x2B069730: mov dword ptr [ebp - 0x1c], eax */ 13063 RECOMP_ICALL(0x2B0AB212u); /* 0x2B069733: call 0x2b0ab212 */ /* not lifted */ 13064 RECOMP_FLAGS_IN(); 13065 ecx = MEM32(ebp + (-0x1C)); /* 0x2B069738: mov ecx, dword ptr [ebp - 0x1c] */ 13066 MEM32(eax + 0x4) = ecx; /* 0x2B06973B: mov dword ptr [eax + 4], ecx */ 13067 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2B06973E: mov byte ptr [eax + 0x14], bl */ 13068 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2B069741: mov byte ptr [eax + 0x15], bl */ 13069 MEM32(edi + 0x4) = eax; /* 0x2B069744: mov dword ptr [edi + 4], eax */ 13070 MEM32(eax) = eax; /* 0x2B069747: mov dword ptr [eax], eax */ 13071 eax = MEM32(edi + 0x4); /* 0x2B069749: mov eax, dword ptr [edi + 4] */ 13072 MEM32(eax + 0x8) = eax; /* 0x2B06974C: mov dword ptr [eax + 8], eax */ 13073 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13074 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13075 esp = esp + 8; /* 0x2B06974F: add esp, 8 */ 13076 _flag_k = FK_ADD; 13077 MEM32(edi + 0x10) = ebx; /* 0x2B069752: mov dword ptr [edi + 0x10], ebx */ 13078 goto L_2B069759; /* 0x2B069755: jmp 0x2b069759 */ 13079 L_2B069757: 13080 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13081 edi = 0; /* 0x2B069757: xor edi, edi */ 13082 _cf = 0; 13083 _flag_k = FK_TEST; 13084 L_2B069759: 13085 MEM32(esi + 0x20) = edi; /* 0x2B069759: mov dword ptr [esi + 0x20], edi */ 13086 /* cmp MEM32(0x2B0B6D24), ebx */ /* 0x2B06975C: cmp dword ptr [0x2b0b6d24], ebx */ 13087 _flag_a = (uint32_t)(MEM32(0x2B0B6D24)); _flag_b = (uint32_t)(ebx); 13088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13089 _flag_k = FK_CMP; 13090 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B069762: mov dword ptr [ebp - 4], 0xffffffff */ 13091 edi = 0xFFFFFF66u; /* 0x2B069769: mov edi, 0xffffff66 */ 13092 MEM32(ebp + (-0x14)) = ebx; /* 0x2B06976E: mov dword ptr [ebp - 0x14], ebx */ 13093 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B06983E; /* 0x2B069771: je 0x2b06983e */ 13094 L_2B069777: 13095 MEM32(ebp + (-0x18)) = 0x2B0B6D24u; /* 0x2B069777: mov dword ptr [ebp - 0x18], 0x2b0b6d24 */ 13096 L_2B06977E: 13097 edx = MEM32(ebp + (-0x30)); /* 0x2B06977E: mov edx, dword ptr [ebp - 0x30] */ 13098 ecx = edi; /* 0x2B069781: mov ecx, edi */ 13099 ecx = (uint32_t)((int32_t)ecx * (int32_t)edi); /* 0x2B069783: imul ecx, edi */ 13100 MEM32(ebp + (-0x20)) = edx; /* 0x2B069786: mov dword ptr [ebp - 0x20], edx */ 13101 eax = 0x1B4E81B5u; /* 0x2B069789: mov eax, 0x1b4e81b5 */ 13102 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B06978E: imul ecx */ 13103 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13104 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13105 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x2B069790: sar edx, 6 */ 13106 if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 6u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13107 edx = (uint32_t)((int32_t)edx >> 6u); 13108 eax = edx; /* 0x2B069793: mov eax, edx */ 13109 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B069795: shr eax, 0x1f */ 13110 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13111 eax = eax >> 31u; /* 0x2B069795: shr eax, 0x1f */ 13112 ecx = edx + eax + (-0xD2); /* 0x2B069798: lea ecx, [edx + eax - 0xd2] */ 13113 edx = ebp + (-0x24); /* 0x2B06979F: lea edx, [ebp - 0x24] */ 13114 MEM32(ebp + (-0x24)) = ecx; /* 0x2B0697A2: mov dword ptr [ebp - 0x24], ecx */ 13115 PUSH32(esp, edx); /* 0x2B0697A5: push edx */ 13116 ecx = esi; /* 0x2B0697A6: mov ecx, esi */ 13117 RECOMP_ICALL(0x2B069F80u); /* 0x2B0697A8: call 0x2b069f80 */ /* not lifted */ 13118 RECOMP_FLAGS_IN(); 13119 PUSH32(esp, 0x20u); /* 0x2B0697AD: push 0x20 */ 13120 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0697AF: call 0x2b0ab212 */ /* not lifted */ 13121 RECOMP_FLAGS_IN(); 13122 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13123 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13124 esp = esp + 4; /* 0x2B0697B4: add esp, 4 */ 13125 _flag_k = FK_ADD; 13126 MEM32(ebp + (-0x1C)) = eax; /* 0x2B0697B7: mov dword ptr [ebp - 0x1c], eax */ 13127 /* cmp eax, ebx */ /* 0x2B0697BA: cmp eax, ebx */ 13128 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 13129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13130 _flag_k = FK_CMP; 13131 MEM32(ebp + (-0x4)) = 8; /* 0x2B0697BC: mov dword ptr [ebp - 4], 8 */ 13132 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0697E4; /* 0x2B0697C3: je 0x2b0697e4 */ 13133 L_2B0697C5: 13134 ecx = MEM32(ebp + (-0x18)); /* 0x2B0697C5: mov ecx, dword ptr [ebp - 0x18] */ 13135 edx = ecx + 0x4; /* 0x2B0697C8: lea edx, [ecx + 4] */ 13136 ecx = MEM32(ecx); /* 0x2B0697CB: mov ecx, dword ptr [ecx] */ 13137 PUSH32(esp, esi); /* 0x2B0697CD: push esi */ 13138 PUSH32(esp, edx); /* 0x2B0697CE: push edx */ 13139 edx = MEM32(ebp + (-0x14)); /* 0x2B0697CF: mov edx, dword ptr [ebp - 0x14] */ 13140 PUSH32(esp, ecx); /* 0x2B0697D2: push ecx */ 13141 PUSH32(esp, edx); /* 0x2B0697D3: push edx */ 13142 ecx = ebp + (-0x24); /* 0x2B0697D4: lea ecx, [ebp - 0x24] */ 13143 PUSH32(esp, ecx); /* 0x2B0697D7: push ecx */ 13144 ecx = eax; /* 0x2B0697D8: mov ecx, eax */ 13145 RECOMP_ICALL(0x2B068A10u); /* 0x2B0697DA: call 0x2b068a10 */ /* not lifted */ 13146 RECOMP_FLAGS_IN(); 13147 MEM32(ebp + (-0x1C)) = eax; /* 0x2B0697DF: mov dword ptr [ebp - 0x1c], eax */ 13148 goto L_2B0697E7; /* 0x2B0697E2: jmp 0x2b0697e7 */ 13149 L_2B0697E4: 13150 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B0697E4: mov dword ptr [ebp - 0x1c], ebx */ 13151 L_2B0697E7: 13152 edx = MEM32(ebp + (-0x14)); /* 0x2B0697E7: mov edx, dword ptr [ebp - 0x14] */ 13153 ecx = MEM32(esi + 0x20); /* 0x2B0697EA: mov ecx, dword ptr [esi + 0x20] */ 13154 eax = ebp + (-0x3C); /* 0x2B0697ED: lea eax, [ebp - 0x3c] */ 13155 MEM32(ebp + (-0x3C)) = edx; /* 0x2B0697F0: mov dword ptr [ebp - 0x3c], edx */ 13156 PUSH32(esp, eax); /* 0x2B0697F3: push eax */ 13157 edx = ebp + (-0x44); /* 0x2B0697F4: lea edx, [ebp - 0x44] */ 13158 PUSH32(esp, edx); /* 0x2B0697F7: push edx */ 13159 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0697F8: mov dword ptr [ebp - 4], 0xffffffff */ 13160 MEM32(ebp + (-0x38)) = ebx; /* 0x2B0697FF: mov dword ptr [ebp - 0x38], ebx */ 13161 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B069802: call 0x2b06a0b0 */ /* not lifted */ 13162 RECOMP_FLAGS_IN(); 13163 ecx = eax; /* 0x2B069807: mov ecx, eax */ 13164 eax = MEM32(ecx); /* 0x2B069809: mov eax, dword ptr [ecx] */ 13165 edx = MEM32(ecx + 0x4); /* 0x2B06980B: mov edx, dword ptr [ecx + 4] */ 13166 ecx = MEM32(ebp + (-0x1C)); /* 0x2B06980E: mov ecx, dword ptr [ebp - 0x1c] */ 13167 MEM32(eax + 0x10) = ecx; /* 0x2B069811: mov dword ptr [eax + 0x10], ecx */ 13168 eax = MEM32(ebp + (-0x14)); /* 0x2B069814: mov eax, dword ptr [ebp - 0x14] */ 13169 MEM32(ebp + (-0x48)) = edx; /* 0x2B069817: mov dword ptr [ebp - 0x48], edx */ 13170 edx = MEM32(ebp + (-0x30)); /* 0x2B06981A: mov edx, dword ptr [ebp - 0x30] */ 13171 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1Cu); 13172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13173 edx = edx + 0x1Cu; /* 0x2B06981D: add edx, 0x1c */ 13174 _flag_k = FK_ADD; 13175 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Cu); 13176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13177 edi = edi + 0x1Cu; /* 0x2B069820: add edi, 0x1c */ 13178 _flag_k = FK_ADD; 13179 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13180 eax = eax + 1; /* 0x2B069823: inc eax */ 13181 _flag_k = FK_INC; 13182 MEM32(ebp + (-0x14)) = eax; /* 0x2B069824: mov dword ptr [ebp - 0x14], eax */ 13183 eax = MEM32(ebp + (-0x18)); /* 0x2B069827: mov eax, dword ptr [ebp - 0x18] */ 13184 ecx = MEM32(eax + 0x50); /* 0x2B06982A: mov ecx, dword ptr [eax + 0x50] */ 13185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x50u); 13186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13187 eax = eax + 0x50u; /* 0x2B06982D: add eax, 0x50 */ 13188 _flag_k = FK_ADD; 13189 /* cmp ecx, ebx */ /* 0x2B069830: cmp ecx, ebx */ 13190 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 13191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13192 _flag_k = FK_CMP; 13193 MEM32(ebp + (-0x30)) = edx; /* 0x2B069832: mov dword ptr [ebp - 0x30], edx */ 13194 MEM32(ebp + (-0x18)) = eax; /* 0x2B069835: mov dword ptr [ebp - 0x18], eax */ 13195 RECOMP_BACKEDGE(); 13196 if (CMP_NE(_flag_a, _flag_b)) goto L_2B06977E; /* 0x2B069838: jne 0x2b06977e */ 13197 L_2B06983E: 13198 edx = MEM32(esi + 0x18); /* 0x2B06983E: mov edx, dword ptr [esi + 0x18] */ 13199 PUSH32(esp, edx); /* 0x2B069841: push edx */ 13200 ecx = esi; /* 0x2B069842: mov ecx, esi */ 13201 RECOMP_ICALL(0x2B069E40u); /* 0x2B069844: call 0x2b069e40 */ /* not lifted */ 13202 RECOMP_FLAGS_IN(); 13203 RECOMP_ICALL(0x2B069EC0u); /* 0x2B069849: call 0x2b069ec0 */ /* not lifted */ 13204 RECOMP_FLAGS_IN(); 13205 RECOMP_ICALL(0x2B069EE0u); /* 0x2B06984E: call 0x2b069ee0 */ /* not lifted */ 13206 RECOMP_FLAGS_IN(); 13207 SET_LO8(eax, MEM8(0x2B0EEE50)); /* 0x2B069853: mov al, byte ptr [0x2b0eee50] */ 13208 /* test LO8(eax), 1 */ /* 0x2B069858: test al, 1 */ 13209 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13210 _cf = 0; 13211 _flag_k = FK_NARROW(FK_TEST, 24); 13212 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069876; /* 0x2B06985A: jne 0x2b069876 */ 13213 L_2B06985C: 13214 _flag_a = (uint32_t)((LO8(eax) | 1)) << 24; _flag_b = (uint32_t)((LO8(eax) | 1)) << 24; 13215 SET_LO8(eax, LO8(eax) | 1); /* 0x2B06985C: or al, 1 */ 13216 _cf = 0; 13217 _flag_k = FK_NARROW(FK_TEST, 24); 13218 PUSH32(esp, 0x2B0EB2F0u); /* 0x2B06985E: push 0x2b0eb2f0 */ 13219 MEM8(0x2B0EEE50) = (uint8_t)(LO8(eax)); /* 0x2B069863: mov byte ptr [0x2b0eee50], al */ 13220 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B069868: call dword ptr [0x2b0b60bc] */ 13221 RECOMP_FLAGS_IN(); 13222 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13223 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13224 esp = esp + 4; /* 0x2B06986E: add esp, 4 */ 13225 _flag_k = FK_ADD; 13226 MEM32(0x2B0EEE4C) = eax; /* 0x2B069871: mov dword ptr [0x2b0eee4c], eax */ 13227 L_2B069876: 13228 eax = MEM32(0x2B0EEE4C); /* 0x2B069876: mov eax, dword ptr [0x2b0eee4c] */ 13229 PUSH32(esp, eax); /* 0x2B06987B: push eax */ 13230 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B06987C: call dword ptr [0x2b0b60b8] */ 13231 RECOMP_FLAGS_IN(); 13232 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13234 esp = esp + 4; /* 0x2B069882: add esp, 4 */ 13235 _flag_k = FK_ADD; 13236 PUSH32(esp, 2); /* 0x2B069885: push 2 */ 13237 PUSH32(esp, 0x3Cu); /* 0x2B069887: push 0x3c */ 13238 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B069889: call dword ptr [0x2b0b5d6c] */ 13239 RECOMP_FLAGS_IN(); 13240 ecx = eax; /* 0x2B06988F: mov ecx, eax */ 13241 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B069891: call dword ptr [0x2b0b5d70] */ 13242 RECOMP_FLAGS_IN(); 13243 edi = eax; /* 0x2B069897: mov edi, eax */ 13244 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B069899: call dword ptr [0x2b0b5d6c] */ 13245 RECOMP_FLAGS_IN(); 13246 PUSH32(esp, edi); /* 0x2B06989F: push edi */ 13247 RECOMP_ICALL(MEM32(0x2B0B5F10)); /* 0x2B0698A0: call dword ptr [0x2b0b5f10] */ 13248 RECOMP_FLAGS_IN(); 13249 ecx = MEM32(0x2B0EF104); /* 0x2B0698A6: mov ecx, dword ptr [0x2b0ef104] */ 13250 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13252 esp = esp + 4; /* 0x2B0698AC: add esp, 4 */ 13253 _flag_k = FK_ADD; 13254 /* cmp ecx, ebx */ /* 0x2B0698AF: cmp ecx, ebx */ 13255 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 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_2B0698BE; /* 0x2B0698B1: je 0x2b0698be */ 13259 L_2B0698B3: 13260 PUSH32(esp, eax); /* 0x2B0698B3: push eax */ 13261 PUSH32(esp, 0x2B0EB2E0u); /* 0x2B0698B4: push 0x2b0eb2e0 */ 13262 RECOMP_ICALL(0x2B08D480u); /* 0x2B0698B9: call 0x2b08d480 */ /* not lifted */ 13263 RECOMP_FLAGS_IN(); 13264 L_2B0698BE: 13265 ecx = MEM32(ebp + (-0xC)); /* 0x2B0698BE: mov ecx, dword ptr [ebp - 0xc] */ 13266 edi = POP32_VAL(esp); /* 0x2B0698C1: pop edi */ 13267 eax = esi; /* 0x2B0698C2: mov eax, esi */ 13268 esi = POP32_VAL(esp); /* 0x2B0698C4: pop esi */ 13269 ebx = POP32_VAL(esp); /* 0x2B0698C5: pop ebx */ 13270 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0698C6: mov dword ptr fs:[0], ecx */ 13271 esp = ebp; /* 0x2B0698CD: mov esp, ebp */ 13272 ebp = POP32_VAL(esp); /* 0x2B0698CF: pop ebp */ 13273 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0698D0: ret */ 13274 RECOMP_REGS_OUT(); 13275 } 13276 13277 void sub_2B0698E0(void) { 13278 int _fpu_cmp = 0; 13279 uint32_t _cf = 0; 13280 int _df = 1; 13281 uint32_t _flag_k = FK_NONE; 13282 uint32_t _flag_a = 0, _flag_b = 0; 13283 uint32_t _itail_tgt = 0; 13284 RECOMP_REGS_LOCALS 13285 RECOMP_ENTER(0x2B0698E0u); 13286 13287 L_2B0698E0: 13288 PUSH32(esp, ebp); /* 0x2B0698E0: push ebp */ 13289 ebp = esp; /* 0x2B0698E1: mov ebp, esp */ 13290 PUSH32(esp, ecx); /* 0x2B0698E3: push ecx */ 13291 PUSH32(esp, ebx); /* 0x2B0698E4: push ebx */ 13292 PUSH32(esp, esi); /* 0x2B0698E5: push esi */ 13293 esi = ecx; /* 0x2B0698E6: mov esi, ecx */ 13294 SET_LO8(eax, MEM8(esi + 0x24)); /* 0x2B0698E8: mov al, byte ptr [esi + 0x24] */ 13295 /* test LO8(eax), LO8(eax) */ /* 0x2B0698EB: test al, al */ 13296 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13297 _cf = 0; 13298 _flag_k = FK_NARROW(FK_TEST, 24); 13299 PUSH32(esp, edi); /* 0x2B0698ED: push edi */ 13300 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0698FE; /* 0x2B0698EE: je 0x2b0698fe */ 13301 L_2B0698F0: 13302 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0698F0: call dword ptr [0x2b0b5d6c] */ 13303 RECOMP_FLAGS_IN(); 13304 ecx = eax; /* 0x2B0698F6: mov ecx, eax */ 13305 RECOMP_ICALL(MEM32(0x2B0B5D94)); /* 0x2B0698F8: call dword ptr [0x2b0b5d94] */ 13306 RECOMP_FLAGS_IN(); 13307 L_2B0698FE: 13308 eax = MEM32(esi + 0x20); /* 0x2B0698FE: mov eax, dword ptr [esi + 0x20] */ 13309 ecx = MEM32(eax + 0x10); /* 0x2B069901: mov ecx, dword ptr [eax + 0x10] */ 13310 /* test ecx, ecx */ /* 0x2B069904: test ecx, ecx */ 13311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13312 _cf = 0; 13313 _flag_k = FK_TEST; 13314 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069940; /* 0x2B069906: je 0x2b069940 */ 13315 L_2B069908: 13316 eax = MEM32(eax + 0x4); /* 0x2B069908: mov eax, dword ptr [eax + 4] */ 13317 eax = MEM32(eax); /* 0x2B06990B: mov eax, dword ptr [eax] */ 13318 edi = MEM32(eax + 0x10); /* 0x2B06990D: mov edi, dword ptr [eax + 0x10] */ 13319 /* test edi, edi */ /* 0x2B069910: test edi, edi */ 13320 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13321 _cf = 0; 13322 _flag_k = FK_TEST; 13323 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069924; /* 0x2B069912: je 0x2b069924 */ 13324 L_2B069914: 13325 ecx = edi; /* 0x2B069914: mov ecx, edi */ 13326 RECOMP_ICALL(0x2B068EB0u); /* 0x2B069916: call 0x2b068eb0 */ /* not lifted */ 13327 RECOMP_FLAGS_IN(); 13328 PUSH32(esp, edi); /* 0x2B06991B: push edi */ 13329 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06991C: call 0x2b0ab1ba */ /* not lifted */ 13330 RECOMP_FLAGS_IN(); 13331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13333 esp = esp + 4; /* 0x2B069921: add esp, 4 */ 13334 _flag_k = FK_ADD; 13335 L_2B069924: 13336 ecx = MEM32(esi + 0x20); /* 0x2B069924: mov ecx, dword ptr [esi + 0x20] */ 13337 edx = MEM32(ecx + 0x4); /* 0x2B069927: mov edx, dword ptr [ecx + 4] */ 13338 eax = MEM32(edx); /* 0x2B06992A: mov eax, dword ptr [edx] */ 13339 PUSH32(esp, eax); /* 0x2B06992C: push eax */ 13340 eax = ebp + (-0x4); /* 0x2B06992D: lea eax, [ebp - 4] */ 13341 PUSH32(esp, eax); /* 0x2B069930: push eax */ 13342 RECOMP_ICALL(0x2B06D4F0u); /* 0x2B069931: call 0x2b06d4f0 */ /* not lifted */ 13343 RECOMP_FLAGS_IN(); 13344 eax = MEM32(esi + 0x20); /* 0x2B069936: mov eax, dword ptr [esi + 0x20] */ 13345 ecx = MEM32(eax + 0x10); /* 0x2B069939: mov ecx, dword ptr [eax + 0x10] */ 13346 /* test ecx, ecx */ /* 0x2B06993C: test ecx, ecx */ 13347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13348 _cf = 0; 13349 _flag_k = FK_TEST; 13350 RECOMP_BACKEDGE(); 13351 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069908; /* 0x2B06993E: jne 0x2b069908 */ 13352 L_2B069940: 13353 edi = MEM32(esi); /* 0x2B069940: mov edi, dword ptr [esi] */ 13354 /* test edi, edi */ /* 0x2B069942: test edi, edi */ 13355 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13356 _cf = 0; 13357 _flag_k = FK_TEST; 13358 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069956; /* 0x2B069944: je 0x2b069956 */ 13359 L_2B069946: 13360 ecx = edi; /* 0x2B069946: mov ecx, edi */ 13361 RECOMP_ICALL(0x2B067260u); /* 0x2B069948: call 0x2b067260 */ /* not lifted */ 13362 RECOMP_FLAGS_IN(); 13363 PUSH32(esp, edi); /* 0x2B06994D: push edi */ 13364 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B06994E: call 0x2b0ab1ba */ /* not lifted */ 13365 RECOMP_FLAGS_IN(); 13366 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13367 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13368 esp = esp + 4; /* 0x2B069953: add esp, 4 */ 13369 _flag_k = FK_ADD; 13370 L_2B069956: 13371 ecx = MEM32(esi + 0xC); /* 0x2B069956: mov ecx, dword ptr [esi + 0xc] */ 13372 /* test ecx, ecx */ /* 0x2B069959: test ecx, ecx */ 13373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13374 _cf = 0; 13375 _flag_k = FK_TEST; 13376 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069963; /* 0x2B06995B: je 0x2b069963 */ 13377 L_2B06995D: 13378 edx = MEM32(ecx); /* 0x2B06995D: mov edx, dword ptr [ecx] */ 13379 PUSH32(esp, 1); /* 0x2B06995F: push 1 */ 13380 RECOMP_ICALL(MEM32(edx)); /* 0x2B069961: call dword ptr [edx] */ 13381 RECOMP_FLAGS_IN(); 13382 L_2B069963: 13383 edi = MEM32(esi + 0x10); /* 0x2B069963: mov edi, dword ptr [esi + 0x10] */ 13384 /* test edi, edi */ /* 0x2B069966: test edi, edi */ 13385 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13386 _cf = 0; 13387 _flag_k = FK_TEST; 13388 ebx = MEM32(0x2B0B5BC4); /* 0x2B069968: mov ebx, dword ptr [0x2b0b5bc4] */ 13389 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06997D; /* 0x2B06996E: je 0x2b06997d */ 13390 L_2B069970: 13391 ecx = edi; /* 0x2B069970: mov ecx, edi */ 13392 RECOMP_ICALL(ebx); /* 0x2B069972: call ebx */ 13393 RECOMP_FLAGS_IN(); 13394 PUSH32(esp, edi); /* 0x2B069974: push edi */ 13395 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B069975: call 0x2b0ab1ba */ /* not lifted */ 13396 RECOMP_FLAGS_IN(); 13397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13399 esp = esp + 4; /* 0x2B06997A: add esp, 4 */ 13400 _flag_k = FK_ADD; 13401 L_2B06997D: 13402 ecx = MEM32(esi + 0x4); /* 0x2B06997D: mov ecx, dword ptr [esi + 4] */ 13403 /* test ecx, ecx */ /* 0x2B069980: test ecx, ecx */ 13404 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13405 _cf = 0; 13406 _flag_k = FK_TEST; 13407 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06998A; /* 0x2B069982: je 0x2b06998a */ 13408 L_2B069984: 13409 eax = MEM32(ecx); /* 0x2B069984: mov eax, dword ptr [ecx] */ 13410 PUSH32(esp, 1); /* 0x2B069986: push 1 */ 13411 RECOMP_ICALL(MEM32(eax)); /* 0x2B069988: call dword ptr [eax] */ 13412 RECOMP_FLAGS_IN(); 13413 L_2B06998A: 13414 edi = MEM32(esi + 0x8); /* 0x2B06998A: mov edi, dword ptr [esi + 8] */ 13415 /* test edi, edi */ /* 0x2B06998D: test edi, edi */ 13416 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13417 _cf = 0; 13418 _flag_k = FK_TEST; 13419 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06999E; /* 0x2B06998F: je 0x2b06999e */ 13420 L_2B069991: 13421 ecx = edi; /* 0x2B069991: mov ecx, edi */ 13422 RECOMP_ICALL(ebx); /* 0x2B069993: call ebx */ 13423 RECOMP_FLAGS_IN(); 13424 PUSH32(esp, edi); /* 0x2B069995: push edi */ 13425 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B069996: call 0x2b0ab1ba */ /* not lifted */ 13426 RECOMP_FLAGS_IN(); 13427 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13428 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13429 esp = esp + 4; /* 0x2B06999B: add esp, 4 */ 13430 _flag_k = FK_ADD; 13431 L_2B06999E: 13432 edi = MEM32(esi + 0x1C); /* 0x2B06999E: mov edi, dword ptr [esi + 0x1c] */ 13433 /* test edi, edi */ /* 0x2B0699A1: test edi, edi */ 13434 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13435 _cf = 0; 13436 _flag_k = FK_TEST; 13437 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0699B5; /* 0x2B0699A3: je 0x2b0699b5 */ 13438 L_2B0699A5: 13439 ecx = edi; /* 0x2B0699A5: mov ecx, edi */ 13440 RECOMP_ICALL(0x2B068F70u); /* 0x2B0699A7: call 0x2b068f70 */ /* not lifted */ 13441 RECOMP_FLAGS_IN(); 13442 PUSH32(esp, edi); /* 0x2B0699AC: push edi */ 13443 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0699AD: call 0x2b0ab1ba */ /* not lifted */ 13444 RECOMP_FLAGS_IN(); 13445 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13447 esp = esp + 4; /* 0x2B0699B2: add esp, 4 */ 13448 _flag_k = FK_ADD; 13449 L_2B0699B5: 13450 esi = MEM32(esi + 0x14); /* 0x2B0699B5: mov esi, dword ptr [esi + 0x14] */ 13451 /* test esi, esi */ /* 0x2B0699B8: test esi, esi */ 13452 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 13453 _cf = 0; 13454 _flag_k = FK_TEST; 13455 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0699C9; /* 0x2B0699BA: je 0x2b0699c9 */ 13456 L_2B0699BC: 13457 ecx = esi; /* 0x2B0699BC: mov ecx, esi */ 13458 RECOMP_ICALL(ebx); /* 0x2B0699BE: call ebx */ 13459 RECOMP_FLAGS_IN(); 13460 PUSH32(esp, esi); /* 0x2B0699C0: push esi */ 13461 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0699C1: call 0x2b0ab1ba */ /* not lifted */ 13462 RECOMP_FLAGS_IN(); 13463 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13465 esp = esp + 4; /* 0x2B0699C6: add esp, 4 */ 13466 _flag_k = FK_ADD; 13467 L_2B0699C9: 13468 SET_LO8(eax, MEM8(0x2B0EEE48)); /* 0x2B0699C9: mov al, byte ptr [0x2b0eee48] */ 13469 /* test LO8(eax), 1 */ /* 0x2B0699CE: test al, 1 */ 13470 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13471 _cf = 0; 13472 _flag_k = FK_NARROW(FK_TEST, 24); 13473 MEM32(0x2B0EEE54) = 0; /* 0x2B0699D0: mov dword ptr [0x2b0eee54], 0 */ 13474 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0699FA; /* 0x2B0699DA: jne 0x2b0699fa */ 13475 L_2B0699DC: 13476 SET_LO8(ebx, LO8(eax)); /* 0x2B0699DC: mov bl, al */ 13477 _flag_a = (uint32_t)((LO8(ebx) | 1)) << 24; _flag_b = (uint32_t)((LO8(ebx) | 1)) << 24; 13478 SET_LO8(ebx, LO8(ebx) | 1); /* 0x2B0699DE: or bl, 1 */ 13479 _cf = 0; 13480 _flag_k = FK_NARROW(FK_TEST, 24); 13481 PUSH32(esp, 0x2B0EB310u); /* 0x2B0699E1: push 0x2b0eb310 */ 13482 MEM8(0x2B0EEE48) = (uint8_t)(LO8(ebx)); /* 0x2B0699E6: mov byte ptr [0x2b0eee48], bl */ 13483 RECOMP_ICALL(MEM32(0x2B0B60BC)); /* 0x2B0699EC: call dword ptr [0x2b0b60bc] */ 13484 RECOMP_FLAGS_IN(); 13485 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13487 esp = esp + 4; /* 0x2B0699F2: add esp, 4 */ 13488 _flag_k = FK_ADD; 13489 MEM32(0x2B0EEE44) = eax; /* 0x2B0699F5: mov dword ptr [0x2b0eee44], eax */ 13490 L_2B0699FA: 13491 ecx = MEM32(0x2B0EEE44); /* 0x2B0699FA: mov ecx, dword ptr [0x2b0eee44] */ 13492 PUSH32(esp, ecx); /* 0x2B069A00: push ecx */ 13493 RECOMP_ICALL(MEM32(0x2B0B60B8)); /* 0x2B069A01: call dword ptr [0x2b0b60b8] */ 13494 RECOMP_FLAGS_IN(); 13495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13497 esp = esp + 4; /* 0x2B069A07: add esp, 4 */ 13498 _flag_k = FK_ADD; 13499 edi = POP32_VAL(esp); /* 0x2B069A0A: pop edi */ 13500 esi = POP32_VAL(esp); /* 0x2B069A0B: pop esi */ 13501 ebx = POP32_VAL(esp); /* 0x2B069A0C: pop ebx */ 13502 esp = ebp; /* 0x2B069A0D: mov esp, ebp */ 13503 ebp = POP32_VAL(esp); /* 0x2B069A0F: pop ebp */ 13504 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069A10: ret */ 13505 RECOMP_REGS_OUT(); 13506 } 13507 13508 void sub_2B069A20(void) { 13509 int _fpu_cmp = 0; 13510 uint32_t _cf = 0; 13511 int _df = 1; 13512 uint32_t _flag_k = FK_NONE; 13513 uint32_t _flag_a = 0, _flag_b = 0; 13514 uint32_t _itail_tgt = 0; 13515 RECOMP_REGS_LOCALS 13516 RECOMP_ENTER(0x2B069A20u); 13517 13518 L_2B069A20: 13519 PUSH32(esp, ebp); /* 0x2B069A20: push ebp */ 13520 ebp = esp; /* 0x2B069A21: mov ebp, esp */ 13521 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu); 13522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13523 esp = esp - 0x3Cu; /* 0x2B069A23: sub esp, 0x3c */ 13524 _flag_k = FK_CMP; 13525 PUSH32(esp, ebx); /* 0x2B069A26: push ebx */ 13526 PUSH32(esp, esi); /* 0x2B069A27: push esi */ 13527 PUSH32(esp, edi); /* 0x2B069A28: push edi */ 13528 esi = ecx; /* 0x2B069A29: mov esi, ecx */ 13529 RECOMP_ICALL(0x2B0012E0u); /* 0x2B069A2B: call 0x2b0012e0 */ /* not lifted */ 13530 RECOMP_FLAGS_IN(); 13531 ecx = eax; /* 0x2B069A30: mov ecx, eax */ 13532 fp_push((double)(int32_t)MEM32(ecx + 0x8)); /* 0x2B069A32: fild dword ptr [ecx + 8] */ 13533 _st[0] *= (double)*(float*)ADDR(0x2B0B70EC); /* 0x2B069A35: fmul dword ptr [0x2b0b70ec] */ 13534 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B70E4)); /* 0x2B069A3B: fcomp dword ptr [0x2b0b70e4] */ 13535 fp_pop(); 13536 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B069A41: fnstsw ax */ 13537 /* test HI8(eax), 0x41u */ /* 0x2B069A43: test ah, 0x41 */ 13538 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13539 _cf = 0; 13540 _flag_k = FK_NARROW(FK_TEST, 24); 13541 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069BA0; /* 0x2B069A46: jne 0x2b069ba0 */ 13542 L_2B069A4C: 13543 fp_push((double)(int32_t)MEM32(ecx + 0xC)); /* 0x2B069A4C: fild dword ptr [ecx + 0xc] */ 13544 _st[0] *= (double)*(float*)ADDR(0x2B0B70E8); /* 0x2B069A4F: fmul dword ptr [0x2b0b70e8] */ 13545 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B70E4)); /* 0x2B069A55: fcomp dword ptr [0x2b0b70e4] */ 13546 fp_pop(); 13547 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B069A5B: fnstsw ax */ 13548 /* test HI8(eax), 0x41u */ /* 0x2B069A5D: test ah, 0x41 */ 13549 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13550 _cf = 0; 13551 _flag_k = FK_NARROW(FK_TEST, 24); 13552 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069BA0; /* 0x2B069A60: jne 0x2b069ba0 */ 13553 L_2B069A66: 13554 eax = 0xFFFFFF74u; /* 0x2B069A66: mov eax, 0xffffff74 */ 13555 ecx = 0xFFFFFF38u; /* 0x2B069A6B: mov ecx, 0xffffff38 */ 13556 MEM32(ebp + (-0xC)) = eax; /* 0x2B069A70: mov dword ptr [ebp - 0xc], eax */ 13557 eax = ebp + (-0xC); /* 0x2B069A73: lea eax, [ebp - 0xc] */ 13558 MEM32(ebp + (-0x8)) = ecx; /* 0x2B069A76: mov dword ptr [ebp - 8], ecx */ 13559 PUSH32(esp, eax); /* 0x2B069A79: push eax */ 13560 ecx = esi; /* 0x2B069A7A: mov ecx, esi */ 13561 RECOMP_ICALL(0x2B069F80u); /* 0x2B069A7C: call 0x2b069f80 */ /* not lifted */ 13562 RECOMP_FLAGS_IN(); 13563 ecx = ebp + (-0xC); /* 0x2B069A81: lea ecx, [ebp - 0xc] */ 13564 PUSH32(esp, ecx); /* 0x2B069A84: push ecx */ 13565 ecx = MEM32(esi); /* 0x2B069A85: mov ecx, dword ptr [esi] */ 13566 RECOMP_ICALL(0x2B069130u); /* 0x2B069A87: call 0x2b069130 */ /* not lifted */ 13567 RECOMP_FLAGS_IN(); 13568 edx = ebp + (-0xC); /* 0x2B069A8C: lea edx, [ebp - 0xc] */ 13569 eax = 0xFFFFFFBAu; /* 0x2B069A8F: mov eax, 0xffffffba */ 13570 edi = 0xAAu; /* 0x2B069A94: mov edi, 0xaa */ 13571 PUSH32(esp, edx); /* 0x2B069A99: push edx */ 13572 ecx = esi; /* 0x2B069A9A: mov ecx, esi */ 13573 MEM32(ebp + (-0xC)) = eax; /* 0x2B069A9C: mov dword ptr [ebp - 0xc], eax */ 13574 MEM32(ebp + (-0x8)) = edi; /* 0x2B069A9F: mov dword ptr [ebp - 8], edi */ 13575 RECOMP_ICALL(0x2B069F80u); /* 0x2B069AA2: call 0x2b069f80 */ /* not lifted */ 13576 RECOMP_FLAGS_IN(); 13577 ecx = MEM32(esi + 0x8); /* 0x2B069AA7: mov ecx, dword ptr [esi + 8] */ 13578 ebx = MEM32(0x2B0B5BB8); /* 0x2B069AAA: mov ebx, dword ptr [0x2b0b5bb8] */ 13579 eax = ebp + (-0xC); /* 0x2B069AB0: lea eax, [ebp - 0xc] */ 13580 PUSH32(esp, eax); /* 0x2B069AB3: push eax */ 13581 RECOMP_ICALL(ebx); /* 0x2B069AB4: call ebx */ 13582 RECOMP_FLAGS_IN(); 13583 ecx = ebp + (-0xC); /* 0x2B069AB6: lea ecx, [ebp - 0xc] */ 13584 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13585 eax = 0; /* 0x2B069AB9: xor eax, eax */ 13586 _cf = 0; 13587 _flag_k = FK_TEST; 13588 PUSH32(esp, ecx); /* 0x2B069ABB: push ecx */ 13589 ecx = esi; /* 0x2B069ABC: mov ecx, esi */ 13590 MEM32(ebp + (-0xC)) = eax; /* 0x2B069ABE: mov dword ptr [ebp - 0xc], eax */ 13591 MEM32(ebp + (-0x8)) = edi; /* 0x2B069AC1: mov dword ptr [ebp - 8], edi */ 13592 RECOMP_ICALL(0x2B069F80u); /* 0x2B069AC4: call 0x2b069f80 */ /* not lifted */ 13593 RECOMP_FLAGS_IN(); 13594 ecx = MEM32(esi + 0x10); /* 0x2B069AC9: mov ecx, dword ptr [esi + 0x10] */ 13595 edx = ebp + (-0xC); /* 0x2B069ACC: lea edx, [ebp - 0xc] */ 13596 PUSH32(esp, edx); /* 0x2B069ACF: push edx */ 13597 RECOMP_ICALL(ebx); /* 0x2B069AD0: call ebx */ 13598 RECOMP_FLAGS_IN(); 13599 eax = MEM32(0x2B0B6D24); /* 0x2B069AD2: mov eax, dword ptr [0x2b0b6d24] */ 13600 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13601 ebx = 0; /* 0x2B069AD7: xor ebx, ebx */ 13602 _cf = 0; 13603 _flag_k = FK_TEST; 13604 /* test eax, eax */ /* 0x2B069AD9: test eax, eax */ 13605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13606 _cf = 0; 13607 _flag_k = FK_TEST; 13608 MEM32(ebp + (-0x10)) = 0xFFFFFF74u; /* 0x2B069ADB: mov dword ptr [ebp - 0x10], 0xffffff74 */ 13609 edi = 0xFFFFFF66u; /* 0x2B069AE2: mov edi, 0xffffff66 */ 13610 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069BA0; /* 0x2B069AE7: je 0x2b069ba0 */ 13611 L_2B069AED: 13612 MEM32(ebp + (-0x4)) = 0x2B0B6D24u; /* 0x2B069AED: mov dword ptr [ebp - 4], 0x2b0b6d24 */ 13613 L_2B069AF4: 13614 eax = MEM32(ebp + (-0x10)); /* 0x2B069AF4: mov eax, dword ptr [ebp - 0x10] */ 13615 ecx = edi; /* 0x2B069AF7: mov ecx, edi */ 13616 ecx = (uint32_t)((int32_t)ecx * (int32_t)edi); /* 0x2B069AF9: imul ecx, edi */ 13617 MEM32(ebp + (-0x8)) = eax; /* 0x2B069AFC: mov dword ptr [ebp - 8], eax */ 13618 eax = 0x1B4E81B5u; /* 0x2B069AFF: mov eax, 0x1b4e81b5 */ 13619 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B069B04: imul ecx */ 13620 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13621 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13622 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x2B069B06: sar edx, 6 */ 13623 if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 6u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13624 edx = (uint32_t)((int32_t)edx >> 6u); 13625 ecx = edx; /* 0x2B069B09: mov ecx, edx */ 13626 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B069B0B: shr ecx, 0x1f */ 13627 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13628 ecx = ecx >> 31u; /* 0x2B069B0B: shr ecx, 0x1f */ 13629 edx = edx + ecx + (-0xD2); /* 0x2B069B0E: lea edx, [edx + ecx - 0xd2] */ 13630 eax = ebp + (-0xC); /* 0x2B069B15: lea eax, [ebp - 0xc] */ 13631 PUSH32(esp, eax); /* 0x2B069B18: push eax */ 13632 ecx = esi; /* 0x2B069B19: mov ecx, esi */ 13633 MEM32(ebp + (-0xC)) = edx; /* 0x2B069B1B: mov dword ptr [ebp - 0xc], edx */ 13634 RECOMP_ICALL(0x2B069F80u); /* 0x2B069B1E: call 0x2b069f80 */ /* not lifted */ 13635 RECOMP_FLAGS_IN(); 13636 ecx = MEM32(esi + 0x20); /* 0x2B069B23: mov ecx, dword ptr [esi + 0x20] */ 13637 edx = ebp + (-0x1C); /* 0x2B069B26: lea edx, [ebp - 0x1c] */ 13638 PUSH32(esp, edx); /* 0x2B069B29: push edx */ 13639 eax = ebp + (-0x2C); /* 0x2B069B2A: lea eax, [ebp - 0x2c] */ 13640 PUSH32(esp, eax); /* 0x2B069B2D: push eax */ 13641 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B069B2E: mov dword ptr [ebp - 0x1c], ebx */ 13642 MEM32(ebp + (-0x18)) = 0; /* 0x2B069B31: mov dword ptr [ebp - 0x18], 0 */ 13643 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B069B38: call 0x2b06a0b0 */ /* not lifted */ 13644 RECOMP_FLAGS_IN(); 13645 ecx = eax; /* 0x2B069B3D: mov ecx, eax */ 13646 eax = MEM32(ecx); /* 0x2B069B3F: mov eax, dword ptr [ecx] */ 13647 edx = MEM32(ecx + 0x4); /* 0x2B069B41: mov edx, dword ptr [ecx + 4] */ 13648 ecx = ebp + (-0xC); /* 0x2B069B44: lea ecx, [ebp - 0xc] */ 13649 PUSH32(esp, ecx); /* 0x2B069B47: push ecx */ 13650 ecx = MEM32(eax + 0x10); /* 0x2B069B48: mov ecx, dword ptr [eax + 0x10] */ 13651 MEM32(ebp + (-0x30)) = edx; /* 0x2B069B4B: mov dword ptr [ebp - 0x30], edx */ 13652 RECOMP_ICALL(0x2B069130u); /* 0x2B069B4E: call 0x2b069130 */ /* not lifted */ 13653 RECOMP_FLAGS_IN(); 13654 ecx = MEM32(esi + 0x20); /* 0x2B069B53: mov ecx, dword ptr [esi + 0x20] */ 13655 edx = ebp + (-0x24); /* 0x2B069B56: lea edx, [ebp - 0x24] */ 13656 PUSH32(esp, edx); /* 0x2B069B59: push edx */ 13657 eax = ebp + (-0x3C); /* 0x2B069B5A: lea eax, [ebp - 0x3c] */ 13658 PUSH32(esp, eax); /* 0x2B069B5D: push eax */ 13659 MEM32(ebp + (-0x24)) = ebx; /* 0x2B069B5E: mov dword ptr [ebp - 0x24], ebx */ 13660 MEM32(ebp + (-0x20)) = 0; /* 0x2B069B61: mov dword ptr [ebp - 0x20], 0 */ 13661 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B069B68: call 0x2b06a0b0 */ /* not lifted */ 13662 RECOMP_FLAGS_IN(); 13663 ecx = eax; /* 0x2B069B6D: mov ecx, eax */ 13664 eax = MEM32(ecx); /* 0x2B069B6F: mov eax, dword ptr [ecx] */ 13665 edx = MEM32(ecx + 0x4); /* 0x2B069B71: mov edx, dword ptr [ecx + 4] */ 13666 ecx = MEM32(eax + 0x10); /* 0x2B069B74: mov ecx, dword ptr [eax + 0x10] */ 13667 MEM32(ebp + (-0x30)) = edx; /* 0x2B069B77: mov dword ptr [ebp - 0x30], edx */ 13668 RECOMP_ICALL(0x2B069290u); /* 0x2B069B7A: call 0x2b069290 */ /* not lifted */ 13669 RECOMP_FLAGS_IN(); 13670 eax = MEM32(ebp + (-0x4)); /* 0x2B069B7F: mov eax, dword ptr [ebp - 4] */ 13671 edx = MEM32(ebp + (-0x10)); /* 0x2B069B82: mov edx, dword ptr [ebp - 0x10] */ 13672 ecx = MEM32(eax + 0x50); /* 0x2B069B85: mov ecx, dword ptr [eax + 0x50] */ 13673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x50u); 13674 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13675 eax = eax + 0x50u; /* 0x2B069B88: add eax, 0x50 */ 13676 _flag_k = FK_ADD; 13677 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1Cu); 13678 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13679 edx = edx + 0x1Cu; /* 0x2B069B8B: add edx, 0x1c */ 13680 _flag_k = FK_ADD; 13681 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Cu); 13682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13683 edi = edi + 0x1Cu; /* 0x2B069B8E: add edi, 0x1c */ 13684 _flag_k = FK_ADD; 13685 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 13686 ebx = ebx + 1; /* 0x2B069B91: inc ebx */ 13687 _flag_k = FK_INC; 13688 /* test ecx, ecx */ /* 0x2B069B92: test ecx, ecx */ 13689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13690 _cf = 0; 13691 _flag_k = FK_TEST; 13692 MEM32(ebp + (-0x10)) = edx; /* 0x2B069B94: mov dword ptr [ebp - 0x10], edx */ 13693 MEM32(ebp + (-0x4)) = eax; /* 0x2B069B97: mov dword ptr [ebp - 4], eax */ 13694 RECOMP_BACKEDGE(); 13695 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069AF4; /* 0x2B069B9A: jne 0x2b069af4 */ 13696 L_2B069BA0: 13697 edi = POP32_VAL(esp); /* 0x2B069BA0: pop edi */ 13698 esi = POP32_VAL(esp); /* 0x2B069BA1: pop esi */ 13699 ebx = POP32_VAL(esp); /* 0x2B069BA2: pop ebx */ 13700 esp = ebp; /* 0x2B069BA3: mov esp, ebp */ 13701 ebp = POP32_VAL(esp); /* 0x2B069BA5: pop ebp */ 13702 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069BA6: ret */ 13703 RECOMP_REGS_OUT(); 13704 } 13705 13706 void sub_2B069AF4(void) { 13707 int _fpu_cmp = 0; 13708 uint32_t _cf = 0; 13709 int _df = 1; 13710 uint32_t _flag_k = FK_NONE; 13711 uint32_t _flag_a = 0, _flag_b = 0; 13712 uint32_t _itail_tgt = 0; 13713 RECOMP_REGS_LOCALS 13714 RECOMP_ENTER(0x2B069AF4u); 13715 13716 L_2B069AF4: 13717 eax = MEM32(ebp + (-0x10)); /* 0x2B069AF4: mov eax, dword ptr [ebp - 0x10] */ 13718 ecx = edi; /* 0x2B069AF7: mov ecx, edi */ 13719 ecx = (uint32_t)((int32_t)ecx * (int32_t)edi); /* 0x2B069AF9: imul ecx, edi */ 13720 MEM32(ebp + (-0x8)) = eax; /* 0x2B069AFC: mov dword ptr [ebp - 8], eax */ 13721 eax = 0x1B4E81B5u; /* 0x2B069AFF: mov eax, 0x1b4e81b5 */ 13722 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B069B04: imul ecx */ 13723 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13724 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13725 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x2B069B06: sar edx, 6 */ 13726 if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 6u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13727 edx = (uint32_t)((int32_t)edx >> 6u); 13728 ecx = edx; /* 0x2B069B09: mov ecx, edx */ 13729 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B069B0B: shr ecx, 0x1f */ 13730 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13731 ecx = ecx >> 31u; /* 0x2B069B0B: shr ecx, 0x1f */ 13732 edx = edx + ecx + (-0xD2); /* 0x2B069B0E: lea edx, [edx + ecx - 0xd2] */ 13733 eax = ebp + (-0xC); /* 0x2B069B15: lea eax, [ebp - 0xc] */ 13734 PUSH32(esp, eax); /* 0x2B069B18: push eax */ 13735 ecx = esi; /* 0x2B069B19: mov ecx, esi */ 13736 MEM32(ebp + (-0xC)) = edx; /* 0x2B069B1B: mov dword ptr [ebp - 0xc], edx */ 13737 RECOMP_ICALL(0x2B069F80u); /* 0x2B069B1E: call 0x2b069f80 */ /* not lifted */ 13738 RECOMP_FLAGS_IN(); 13739 ecx = MEM32(esi + 0x20); /* 0x2B069B23: mov ecx, dword ptr [esi + 0x20] */ 13740 edx = ebp + (-0x1C); /* 0x2B069B26: lea edx, [ebp - 0x1c] */ 13741 PUSH32(esp, edx); /* 0x2B069B29: push edx */ 13742 eax = ebp + (-0x2C); /* 0x2B069B2A: lea eax, [ebp - 0x2c] */ 13743 PUSH32(esp, eax); /* 0x2B069B2D: push eax */ 13744 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B069B2E: mov dword ptr [ebp - 0x1c], ebx */ 13745 MEM32(ebp + (-0x18)) = 0; /* 0x2B069B31: mov dword ptr [ebp - 0x18], 0 */ 13746 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B069B38: call 0x2b06a0b0 */ /* not lifted */ 13747 RECOMP_FLAGS_IN(); 13748 ecx = eax; /* 0x2B069B3D: mov ecx, eax */ 13749 eax = MEM32(ecx); /* 0x2B069B3F: mov eax, dword ptr [ecx] */ 13750 edx = MEM32(ecx + 0x4); /* 0x2B069B41: mov edx, dword ptr [ecx + 4] */ 13751 ecx = ebp + (-0xC); /* 0x2B069B44: lea ecx, [ebp - 0xc] */ 13752 PUSH32(esp, ecx); /* 0x2B069B47: push ecx */ 13753 ecx = MEM32(eax + 0x10); /* 0x2B069B48: mov ecx, dword ptr [eax + 0x10] */ 13754 MEM32(ebp + (-0x30)) = edx; /* 0x2B069B4B: mov dword ptr [ebp - 0x30], edx */ 13755 RECOMP_ICALL(0x2B069130u); /* 0x2B069B4E: call 0x2b069130 */ /* not lifted */ 13756 RECOMP_FLAGS_IN(); 13757 ecx = MEM32(esi + 0x20); /* 0x2B069B53: mov ecx, dword ptr [esi + 0x20] */ 13758 edx = ebp + (-0x24); /* 0x2B069B56: lea edx, [ebp - 0x24] */ 13759 PUSH32(esp, edx); /* 0x2B069B59: push edx */ 13760 eax = ebp + (-0x3C); /* 0x2B069B5A: lea eax, [ebp - 0x3c] */ 13761 PUSH32(esp, eax); /* 0x2B069B5D: push eax */ 13762 MEM32(ebp + (-0x24)) = ebx; /* 0x2B069B5E: mov dword ptr [ebp - 0x24], ebx */ 13763 MEM32(ebp + (-0x20)) = 0; /* 0x2B069B61: mov dword ptr [ebp - 0x20], 0 */ 13764 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B069B68: call 0x2b06a0b0 */ /* not lifted */ 13765 RECOMP_FLAGS_IN(); 13766 ecx = eax; /* 0x2B069B6D: mov ecx, eax */ 13767 eax = MEM32(ecx); /* 0x2B069B6F: mov eax, dword ptr [ecx] */ 13768 edx = MEM32(ecx + 0x4); /* 0x2B069B71: mov edx, dword ptr [ecx + 4] */ 13769 ecx = MEM32(eax + 0x10); /* 0x2B069B74: mov ecx, dword ptr [eax + 0x10] */ 13770 MEM32(ebp + (-0x30)) = edx; /* 0x2B069B77: mov dword ptr [ebp - 0x30], edx */ 13771 RECOMP_ICALL(0x2B069290u); /* 0x2B069B7A: call 0x2b069290 */ /* not lifted */ 13772 RECOMP_FLAGS_IN(); 13773 eax = MEM32(ebp + (-0x4)); /* 0x2B069B7F: mov eax, dword ptr [ebp - 4] */ 13774 edx = MEM32(ebp + (-0x10)); /* 0x2B069B82: mov edx, dword ptr [ebp - 0x10] */ 13775 ecx = MEM32(eax + 0x50); /* 0x2B069B85: mov ecx, dword ptr [eax + 0x50] */ 13776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x50u); 13777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13778 eax = eax + 0x50u; /* 0x2B069B88: add eax, 0x50 */ 13779 _flag_k = FK_ADD; 13780 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1Cu); 13781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13782 edx = edx + 0x1Cu; /* 0x2B069B8B: add edx, 0x1c */ 13783 _flag_k = FK_ADD; 13784 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Cu); 13785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13786 edi = edi + 0x1Cu; /* 0x2B069B8E: add edi, 0x1c */ 13787 _flag_k = FK_ADD; 13788 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 13789 ebx = ebx + 1; /* 0x2B069B91: inc ebx */ 13790 _flag_k = FK_INC; 13791 /* test ecx, ecx */ /* 0x2B069B92: test ecx, ecx */ 13792 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13793 _cf = 0; 13794 _flag_k = FK_TEST; 13795 MEM32(ebp + (-0x10)) = edx; /* 0x2B069B94: mov dword ptr [ebp - 0x10], edx */ 13796 MEM32(ebp + (-0x4)) = eax; /* 0x2B069B97: mov dword ptr [ebp - 4], eax */ 13797 RECOMP_BACKEDGE(); 13798 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069AF4; /* 0x2B069B9A: jne 0x2b069af4 */ 13799 L_2B069BA0: 13800 edi = POP32_VAL(esp); /* 0x2B069BA0: pop edi */ 13801 esi = POP32_VAL(esp); /* 0x2B069BA1: pop esi */ 13802 ebx = POP32_VAL(esp); /* 0x2B069BA2: pop ebx */ 13803 esp = ebp; /* 0x2B069BA3: mov esp, ebp */ 13804 ebp = POP32_VAL(esp); /* 0x2B069BA5: pop ebp */ 13805 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069BA6: ret */ 13806 RECOMP_REGS_OUT(); 13807 } 13808 13809 void sub_2B069B38(void) { 13810 int _fpu_cmp = 0; 13811 uint32_t _cf = 0; 13812 int _df = 1; 13813 uint32_t _flag_k = FK_NONE; 13814 uint32_t _flag_a = 0, _flag_b = 0; 13815 uint32_t _itail_tgt = 0; 13816 RECOMP_REGS_LOCALS 13817 RECOMP_ENTER(0x2B069B38u); 13818 13819 goto L_2B069B38; 13820 L_2B069AF4: 13821 eax = MEM32(ebp + (-0x10)); /* 0x2B069AF4: mov eax, dword ptr [ebp - 0x10] */ 13822 ecx = edi; /* 0x2B069AF7: mov ecx, edi */ 13823 ecx = (uint32_t)((int32_t)ecx * (int32_t)edi); /* 0x2B069AF9: imul ecx, edi */ 13824 MEM32(ebp + (-0x8)) = eax; /* 0x2B069AFC: mov dword ptr [ebp - 8], eax */ 13825 eax = 0x1B4E81B5u; /* 0x2B069AFF: mov eax, 0x1b4e81b5 */ 13826 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B069B04: imul ecx */ 13827 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13828 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13829 if (6u) _cf = (((edx) >> 5) & 1u); /* 0x2B069B06: sar edx, 6 */ 13830 if (6u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 6u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13831 edx = (uint32_t)((int32_t)edx >> 6u); 13832 ecx = edx; /* 0x2B069B09: mov ecx, edx */ 13833 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B069B0B: shr ecx, 0x1f */ 13834 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13835 ecx = ecx >> 31u; /* 0x2B069B0B: shr ecx, 0x1f */ 13836 edx = edx + ecx + (-0xD2); /* 0x2B069B0E: lea edx, [edx + ecx - 0xd2] */ 13837 eax = ebp + (-0xC); /* 0x2B069B15: lea eax, [ebp - 0xc] */ 13838 PUSH32(esp, eax); /* 0x2B069B18: push eax */ 13839 ecx = esi; /* 0x2B069B19: mov ecx, esi */ 13840 MEM32(ebp + (-0xC)) = edx; /* 0x2B069B1B: mov dword ptr [ebp - 0xc], edx */ 13841 RECOMP_ICALL(0x2B069F80u); /* 0x2B069B1E: call 0x2b069f80 */ /* not lifted */ 13842 RECOMP_FLAGS_IN(); 13843 ecx = MEM32(esi + 0x20); /* 0x2B069B23: mov ecx, dword ptr [esi + 0x20] */ 13844 edx = ebp + (-0x1C); /* 0x2B069B26: lea edx, [ebp - 0x1c] */ 13845 PUSH32(esp, edx); /* 0x2B069B29: push edx */ 13846 eax = ebp + (-0x2C); /* 0x2B069B2A: lea eax, [ebp - 0x2c] */ 13847 PUSH32(esp, eax); /* 0x2B069B2D: push eax */ 13848 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B069B2E: mov dword ptr [ebp - 0x1c], ebx */ 13849 MEM32(ebp + (-0x18)) = 0; /* 0x2B069B31: mov dword ptr [ebp - 0x18], 0 */ 13850 L_2B069B38: 13851 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B069B38: call 0x2b06a0b0 */ /* not lifted */ 13852 RECOMP_FLAGS_IN(); 13853 ecx = eax; /* 0x2B069B3D: mov ecx, eax */ 13854 eax = MEM32(ecx); /* 0x2B069B3F: mov eax, dword ptr [ecx] */ 13855 edx = MEM32(ecx + 0x4); /* 0x2B069B41: mov edx, dword ptr [ecx + 4] */ 13856 ecx = ebp + (-0xC); /* 0x2B069B44: lea ecx, [ebp - 0xc] */ 13857 PUSH32(esp, ecx); /* 0x2B069B47: push ecx */ 13858 ecx = MEM32(eax + 0x10); /* 0x2B069B48: mov ecx, dword ptr [eax + 0x10] */ 13859 MEM32(ebp + (-0x30)) = edx; /* 0x2B069B4B: mov dword ptr [ebp - 0x30], edx */ 13860 RECOMP_ICALL(0x2B069130u); /* 0x2B069B4E: call 0x2b069130 */ /* not lifted */ 13861 RECOMP_FLAGS_IN(); 13862 ecx = MEM32(esi + 0x20); /* 0x2B069B53: mov ecx, dword ptr [esi + 0x20] */ 13863 edx = ebp + (-0x24); /* 0x2B069B56: lea edx, [ebp - 0x24] */ 13864 PUSH32(esp, edx); /* 0x2B069B59: push edx */ 13865 eax = ebp + (-0x3C); /* 0x2B069B5A: lea eax, [ebp - 0x3c] */ 13866 PUSH32(esp, eax); /* 0x2B069B5D: push eax */ 13867 MEM32(ebp + (-0x24)) = ebx; /* 0x2B069B5E: mov dword ptr [ebp - 0x24], ebx */ 13868 MEM32(ebp + (-0x20)) = 0; /* 0x2B069B61: mov dword ptr [ebp - 0x20], 0 */ 13869 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B069B68: call 0x2b06a0b0 */ /* not lifted */ 13870 RECOMP_FLAGS_IN(); 13871 ecx = eax; /* 0x2B069B6D: mov ecx, eax */ 13872 eax = MEM32(ecx); /* 0x2B069B6F: mov eax, dword ptr [ecx] */ 13873 edx = MEM32(ecx + 0x4); /* 0x2B069B71: mov edx, dword ptr [ecx + 4] */ 13874 ecx = MEM32(eax + 0x10); /* 0x2B069B74: mov ecx, dword ptr [eax + 0x10] */ 13875 MEM32(ebp + (-0x30)) = edx; /* 0x2B069B77: mov dword ptr [ebp - 0x30], edx */ 13876 RECOMP_ICALL(0x2B069290u); /* 0x2B069B7A: call 0x2b069290 */ /* not lifted */ 13877 RECOMP_FLAGS_IN(); 13878 eax = MEM32(ebp + (-0x4)); /* 0x2B069B7F: mov eax, dword ptr [ebp - 4] */ 13879 edx = MEM32(ebp + (-0x10)); /* 0x2B069B82: mov edx, dword ptr [ebp - 0x10] */ 13880 ecx = MEM32(eax + 0x50); /* 0x2B069B85: mov ecx, dword ptr [eax + 0x50] */ 13881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x50u); 13882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13883 eax = eax + 0x50u; /* 0x2B069B88: add eax, 0x50 */ 13884 _flag_k = FK_ADD; 13885 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1Cu); 13886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13887 edx = edx + 0x1Cu; /* 0x2B069B8B: add edx, 0x1c */ 13888 _flag_k = FK_ADD; 13889 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Cu); 13890 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13891 edi = edi + 0x1Cu; /* 0x2B069B8E: add edi, 0x1c */ 13892 _flag_k = FK_ADD; 13893 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 13894 ebx = ebx + 1; /* 0x2B069B91: inc ebx */ 13895 _flag_k = FK_INC; 13896 /* test ecx, ecx */ /* 0x2B069B92: test ecx, ecx */ 13897 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13898 _cf = 0; 13899 _flag_k = FK_TEST; 13900 MEM32(ebp + (-0x10)) = edx; /* 0x2B069B94: mov dword ptr [ebp - 0x10], edx */ 13901 MEM32(ebp + (-0x4)) = eax; /* 0x2B069B97: mov dword ptr [ebp - 4], eax */ 13902 RECOMP_BACKEDGE(); 13903 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069AF4; /* 0x2B069B9A: jne 0x2b069af4 */ 13904 L_2B069BA0: 13905 edi = POP32_VAL(esp); /* 0x2B069BA0: pop edi */ 13906 esi = POP32_VAL(esp); /* 0x2B069BA1: pop esi */ 13907 ebx = POP32_VAL(esp); /* 0x2B069BA2: pop ebx */ 13908 esp = ebp; /* 0x2B069BA3: mov esp, ebp */ 13909 ebp = POP32_VAL(esp); /* 0x2B069BA5: pop ebp */ 13910 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069BA6: ret */ 13911 RECOMP_REGS_OUT(); 13912 } 13913 13914 void sub_2B069BB0(void) { 13915 int _fpu_cmp = 0; 13916 uint32_t _cf = 0; 13917 int _df = 1; 13918 uint32_t _flag_k = FK_NONE; 13919 uint32_t _flag_a = 0, _flag_b = 0; 13920 uint32_t _itail_tgt = 0; 13921 RECOMP_REGS_LOCALS 13922 RECOMP_ENTER(0x2B069BB0u); 13923 13924 L_2B069BB0: 13925 SET_LO8(eax, MEM8(0x2B0EEE58)); /* 0x2B069BB0: mov al, byte ptr [0x2b0eee58] */ 13926 /* test LO8(eax), LO8(eax) */ /* 0x2B069BB5: test al, al */ 13927 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13928 _cf = 0; 13929 _flag_k = FK_NARROW(FK_TEST, 24); 13930 PUSH32(esp, esi); /* 0x2B069BB7: push esi */ 13931 esi = ecx; /* 0x2B069BB8: mov esi, ecx */ 13932 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069BCE; /* 0x2B069BBA: je 0x2b069bce */ 13933 L_2B069BBC: 13934 PUSH32(esp, 0x37u); /* 0x2B069BBC: push 0x37 */ 13935 PUSH32(esp, 2); /* 0x2B069BBE: push 2 */ 13936 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B069BC0: call dword ptr [0x2b0b53cc] */ 13937 RECOMP_FLAGS_IN(); 13938 ecx = eax; /* 0x2B069BC6: mov ecx, eax */ 13939 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B069BC8: call dword ptr [0x2b0b53c8] */ 13940 RECOMP_FLAGS_IN(); 13941 L_2B069BCE: 13942 ecx = MEM32(esi); /* 0x2B069BCE: mov ecx, dword ptr [esi] */ 13943 RECOMP_ICALL(0x2B067740u); /* 0x2B069BD0: call 0x2b067740 */ /* not lifted */ 13944 RECOMP_FLAGS_IN(); 13945 esi = POP32_VAL(esp); /* 0x2B069BD5: pop esi */ 13946 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069BD6: ret */ 13947 RECOMP_REGS_OUT(); 13948 } 13949 13950 void sub_2B069BE0(void) { 13951 int _fpu_cmp = 0; 13952 uint32_t _cf = 0; 13953 int _df = 1; 13954 uint32_t _flag_k = FK_NONE; 13955 uint32_t _flag_a = 0, _flag_b = 0; 13956 uint32_t _itail_tgt = 0; 13957 RECOMP_REGS_LOCALS 13958 RECOMP_ENTER(0x2B069BE0u); 13959 13960 L_2B069BE0: 13961 eax = MEM32(0x2B0EEE54); /* 0x2B069BE0: mov eax, dword ptr [0x2b0eee54] */ 13962 MEM8(eax + 0x24) = (uint8_t)(0); /* 0x2B069BE5: mov byte ptr [eax + 0x24], 0 */ 13963 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B069BE9: call dword ptr [0x2b0b5d6c] */ 13964 RECOMP_FLAGS_IN(); 13965 ecx = eax; /* 0x2B069BEF: mov ecx, eax */ 13966 RECOMP_ICALL(MEM32(0x2B0B5D90)); /* 0x2B069BF1: call dword ptr [0x2b0b5d90] */ 13967 RECOMP_FLAGS_IN(); 13968 PUSH32(esp, 0xAAu); /* 0x2B069BF7: push 0xaa */ 13969 PUSH32(esp, 0x12u); /* 0x2B069BFC: push 0x12 */ 13970 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B069BFE: call dword ptr [0x2b0b53cc] */ 13971 RECOMP_FLAGS_IN(); 13972 ecx = eax; /* 0x2B069C04: mov ecx, eax */ 13973 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B069C06: call dword ptr [0x2b0b53c8] */ 13974 RECOMP_FLAGS_IN(); 13975 ecx = MEM32(0x2B0EF104); /* 0x2B069C0C: mov ecx, dword ptr [0x2b0ef104] */ 13976 /* test ecx, ecx */ /* 0x2B069C12: test ecx, ecx */ 13977 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13978 _cf = 0; 13979 _flag_k = FK_TEST; 13980 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069C22; /* 0x2B069C14: je 0x2b069c22 */ 13981 L_2B069C16: 13982 PUSH32(esp, 0); /* 0x2B069C16: push 0 */ 13983 PUSH32(esp, 0x2B0EB330u); /* 0x2B069C18: push 0x2b0eb330 */ 13984 RECOMP_ICALL(0x2B08D480u); /* 0x2B069C1D: call 0x2b08d480 */ /* not lifted */ 13985 RECOMP_FLAGS_IN(); 13986 L_2B069C22: 13987 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069C22: ret */ 13988 RECOMP_REGS_OUT(); 13989 } 13990 13991 void sub_2B069C30(void) { 13992 int _fpu_cmp = 0; 13993 uint32_t _cf = 0; 13994 int _df = 1; 13995 uint32_t _flag_k = FK_NONE; 13996 uint32_t _flag_a = 0, _flag_b = 0; 13997 uint32_t _itail_tgt = 0; 13998 RECOMP_REGS_LOCALS 13999 RECOMP_ENTER(0x2B069C30u); 14000 14001 L_2B069C30: 14002 eax = MEM32(0x2B0EEE54); /* 0x2B069C30: mov eax, dword ptr [0x2b0eee54] */ 14003 MEM8(eax + 0x24) = (uint8_t)(0); /* 0x2B069C35: mov byte ptr [eax + 0x24], 0 */ 14004 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B069C39: call dword ptr [0x2b0b5d6c] */ 14005 RECOMP_FLAGS_IN(); 14006 ecx = eax; /* 0x2B069C3F: mov ecx, eax */ 14007 RECOMP_ICALL(MEM32(0x2B0B5D94)); /* 0x2B069C41: call dword ptr [0x2b0b5d94] */ 14008 RECOMP_FLAGS_IN(); 14009 PUSH32(esp, 0xAAu); /* 0x2B069C47: push 0xaa */ 14010 PUSH32(esp, 0x12u); /* 0x2B069C4C: push 0x12 */ 14011 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B069C4E: call dword ptr [0x2b0b53cc] */ 14012 RECOMP_FLAGS_IN(); 14013 ecx = eax; /* 0x2B069C54: mov ecx, eax */ 14014 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B069C56: call dword ptr [0x2b0b53c8] */ 14015 RECOMP_FLAGS_IN(); 14016 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069C5C: ret */ 14017 RECOMP_REGS_OUT(); 14018 } 14019 14020 void sub_2B069C60(void) { 14021 int _fpu_cmp = 0; 14022 uint32_t _cf = 0; 14023 int _df = 1; 14024 uint32_t _flag_k = FK_NONE; 14025 uint32_t _flag_a = 0, _flag_b = 0; 14026 uint32_t _itail_tgt = 0; 14027 RECOMP_REGS_LOCALS 14028 RECOMP_ENTER(0x2B069C60u); 14029 14030 L_2B069C60: 14031 PUSH32(esp, ebp); /* 0x2B069C60: push ebp */ 14032 ebp = esp; /* 0x2B069C61: mov ebp, esp */ 14033 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u); 14034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14035 esp = esp - 0x58u; /* 0x2B069C63: sub esp, 0x58 */ 14036 _flag_k = FK_CMP; 14037 eax = MEM32(ebp + 0x8); /* 0x2B069C66: mov eax, dword ptr [ebp + 8] */ 14038 edx = MEM32(eax); /* 0x2B069C69: mov edx, dword ptr [eax] */ 14039 PUSH32(esp, ebx); /* 0x2B069C6B: push ebx */ 14040 PUSH32(esp, esi); /* 0x2B069C6C: push esi */ 14041 PUSH32(esp, edi); /* 0x2B069C6D: push edi */ 14042 edi = MEM32(ecx + 0x1C); /* 0x2B069C6E: mov edi, dword ptr [ecx + 0x1c] */ 14043 ebx = MEM32(edi + 0x4); /* 0x2B069C71: mov ebx, dword ptr [edi + 4] */ 14044 ecx = MEM32(edi + 0x8); /* 0x2B069C74: mov ecx, dword ptr [edi + 8] */ 14045 MEM32(ebp + (-0x20)) = edx; /* 0x2B069C77: mov dword ptr [ebp - 0x20], edx */ 14046 MEM32(ebp + (-0x1C)) = 0; /* 0x2B069C7A: mov dword ptr [ebp - 0x1c], 0 */ 14047 esi = MEM32(ebx + 0x4); /* 0x2B069C81: mov esi, dword ptr [ebx + 4] */ 14048 /* cmp esi, ecx */ /* 0x2B069C84: cmp esi, ecx */ 14049 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 14050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14051 _flag_k = FK_CMP; 14052 SET_LO8(eax, 1); /* 0x2B069C86: mov al, 1 */ 14053 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069CA1; /* 0x2B069C88: je 0x2b069ca1 */ 14054 L_2B069C8A: 14055 /* cmp edx, MEM32(esi + 0xC) */ /* 0x2B069C8A: cmp edx, dword ptr [esi + 0xc] */ 14056 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 14057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14058 _flag_k = FK_CMP; 14059 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B069C8D: setl al */ 14060 /* test LO8(eax), LO8(eax) */ /* 0x2B069C90: test al, al */ 14061 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14062 _cf = 0; 14063 _flag_k = FK_NARROW(FK_TEST, 24); 14064 ebx = esi; /* 0x2B069C92: mov ebx, esi */ 14065 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069C9A; /* 0x2B069C94: je 0x2b069c9a */ 14066 L_2B069C96: 14067 esi = MEM32(esi); /* 0x2B069C96: mov esi, dword ptr [esi] */ 14068 goto L_2B069C9D; /* 0x2B069C98: jmp 0x2b069c9d */ 14069 L_2B069C9A: 14070 esi = MEM32(esi + 0x8); /* 0x2B069C9A: mov esi, dword ptr [esi + 8] */ 14071 L_2B069C9D: 14072 /* cmp esi, ecx */ /* 0x2B069C9D: cmp esi, ecx */ 14073 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 14074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14075 _flag_k = FK_CMP; 14076 RECOMP_BACKEDGE(); 14077 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069C8A; /* 0x2B069C9F: jne 0x2b069c8a */ 14078 L_2B069CA1: 14079 SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x2B069CA1: mov cl, byte ptr [edi + 0xc] */ 14080 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069CA4: test cl, cl */ 14081 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14082 _cf = 0; 14083 _flag_k = FK_NARROW(FK_TEST, 24); 14084 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069CCA; /* 0x2B069CA6: je 0x2b069cca */ 14085 L_2B069CA8: 14086 ecx = ebp + (-0x1); /* 0x2B069CA8: lea ecx, [ebp - 1] */ 14087 PUSH32(esp, ecx); /* 0x2B069CAB: push ecx */ 14088 edx = ebp + (-0x20); /* 0x2B069CAC: lea edx, [ebp - 0x20] */ 14089 PUSH32(esp, edx); /* 0x2B069CAF: push edx */ 14090 PUSH32(esp, ebx); /* 0x2B069CB0: push ebx */ 14091 PUSH32(esp, esi); /* 0x2B069CB1: push esi */ 14092 eax = ebp + (-0xC); /* 0x2B069CB2: lea eax, [ebp - 0xc] */ 14093 PUSH32(esp, eax); /* 0x2B069CB5: push eax */ 14094 ecx = edi; /* 0x2B069CB6: mov ecx, edi */ 14095 MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x2B069CB8: mov byte ptr [ebp - 1], 1 */ 14096 RECOMP_ICALL(0x2B0325B0u); /* 0x2B069CBC: call 0x2b0325b0 */ /* not lifted */ 14097 RECOMP_FLAGS_IN(); 14098 PUSH32(esp, eax); /* 0x2B069CC1: push eax */ 14099 ecx = ebp + (-0x30); /* 0x2B069CC2: lea ecx, [ebp - 0x30] */ 14100 goto L_2B069D4F; /* 0x2B069CC5: jmp 0x2b069d4f */ 14101 L_2B069CCA: 14102 /* test LO8(eax), LO8(eax) */ /* 0x2B069CCA: test al, al */ 14103 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14104 _cf = 0; 14105 _flag_k = FK_NARROW(FK_TEST, 24); 14106 MEM32(ebp + (-0x8)) = ebx; /* 0x2B069CCC: mov dword ptr [ebp - 8], ebx */ 14107 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069D19; /* 0x2B069CCF: je 0x2b069d19 */ 14108 L_2B069CD1: 14109 edx = ebp + (-0x10); /* 0x2B069CD1: lea edx, [ebp - 0x10] */ 14110 PUSH32(esp, edx); /* 0x2B069CD4: push edx */ 14111 ecx = edi; /* 0x2B069CD5: mov ecx, edi */ 14112 RECOMP_ICALL(0x2B018B60u); /* 0x2B069CD7: call 0x2b018b60 */ /* not lifted */ 14113 RECOMP_FLAGS_IN(); 14114 ecx = MEM32(ebp + (-0x8)); /* 0x2B069CDC: mov ecx, dword ptr [ebp - 8] */ 14115 /* cmp ecx, MEM32(eax) */ /* 0x2B069CDF: cmp ecx, dword ptr [eax] */ 14116 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 14117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14118 _flag_k = FK_CMP; 14119 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069D0E; /* 0x2B069CE1: jne 0x2b069d0e */ 14120 L_2B069CE3: 14121 edx = ebp + (-0x2); /* 0x2B069CE3: lea edx, [ebp - 2] */ 14122 PUSH32(esp, edx); /* 0x2B069CE6: push edx */ 14123 eax = ebp + (-0x20); /* 0x2B069CE7: lea eax, [ebp - 0x20] */ 14124 PUSH32(esp, eax); /* 0x2B069CEA: push eax */ 14125 PUSH32(esp, ebx); /* 0x2B069CEB: push ebx */ 14126 PUSH32(esp, esi); /* 0x2B069CEC: push esi */ 14127 ecx = ebp + (-0x14); /* 0x2B069CED: lea ecx, [ebp - 0x14] */ 14128 PUSH32(esp, ecx); /* 0x2B069CF0: push ecx */ 14129 ecx = edi; /* 0x2B069CF1: mov ecx, edi */ 14130 MEM8(ebp + (-0x2)) = (uint8_t)(1); /* 0x2B069CF3: mov byte ptr [ebp - 2], 1 */ 14131 RECOMP_ICALL(0x2B0325B0u); /* 0x2B069CF7: call 0x2b0325b0 */ /* not lifted */ 14132 RECOMP_FLAGS_IN(); 14133 PUSH32(esp, eax); /* 0x2B069CFC: push eax */ 14134 ecx = ebp + (-0x38); /* 0x2B069CFD: lea ecx, [ebp - 0x38] */ 14135 RECOMP_ICALL(0x2B02A020u); /* 0x2B069D00: call 0x2b02a020 */ /* not lifted */ 14136 RECOMP_FLAGS_IN(); 14137 edx = eax; /* 0x2B069D05: mov edx, eax */ 14138 eax = MEM32(edx); /* 0x2B069D07: mov eax, dword ptr [edx] */ 14139 ecx = MEM32(edx + 0x4); /* 0x2B069D09: mov ecx, dword ptr [edx + 4] */ 14140 goto L_2B069D5B; /* 0x2B069D0C: jmp 0x2b069d5b */ 14141 L_2B069D0E: 14142 ecx = ebp + (-0x8); /* 0x2B069D0E: lea ecx, [ebp - 8] */ 14143 RECOMP_ICALL(0x2B078C30u); /* 0x2B069D11: call 0x2b078c30 */ /* not lifted */ 14144 RECOMP_FLAGS_IN(); 14145 edx = MEM32(ebp + (-0x20)); /* 0x2B069D16: mov edx, dword ptr [ebp - 0x20] */ 14146 L_2B069D19: 14147 eax = MEM32(ebp + (-0x8)); /* 0x2B069D19: mov eax, dword ptr [ebp - 8] */ 14148 /* cmp MEM32(eax + 0xC), edx */ /* 0x2B069D1C: cmp dword ptr [eax + 0xc], edx */ 14149 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(edx); 14150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14151 _flag_k = FK_CMP; 14152 if (CMP_GE(_flag_a, _flag_b)) goto L_2B069D40; /* 0x2B069D1F: jge 0x2b069d40 */ 14153 L_2B069D21: 14154 ecx = ebp + (-0x3); /* 0x2B069D21: lea ecx, [ebp - 3] */ 14155 PUSH32(esp, ecx); /* 0x2B069D24: push ecx */ 14156 edx = ebp + (-0x20); /* 0x2B069D25: lea edx, [ebp - 0x20] */ 14157 PUSH32(esp, edx); /* 0x2B069D28: push edx */ 14158 PUSH32(esp, ebx); /* 0x2B069D29: push ebx */ 14159 PUSH32(esp, esi); /* 0x2B069D2A: push esi */ 14160 eax = ebp + (-0x18); /* 0x2B069D2B: lea eax, [ebp - 0x18] */ 14161 PUSH32(esp, eax); /* 0x2B069D2E: push eax */ 14162 ecx = edi; /* 0x2B069D2F: mov ecx, edi */ 14163 MEM8(ebp + (-0x3)) = (uint8_t)(1); /* 0x2B069D31: mov byte ptr [ebp - 3], 1 */ 14164 RECOMP_ICALL(0x2B0325B0u); /* 0x2B069D35: call 0x2b0325b0 */ /* not lifted */ 14165 RECOMP_FLAGS_IN(); 14166 PUSH32(esp, eax); /* 0x2B069D3A: push eax */ 14167 ecx = ebp + (-0x40); /* 0x2B069D3B: lea ecx, [ebp - 0x40] */ 14168 goto L_2B069D4F; /* 0x2B069D3E: jmp 0x2b069d4f */ 14169 L_2B069D40: 14170 edx = ebp + (-0x4); /* 0x2B069D40: lea edx, [ebp - 4] */ 14171 PUSH32(esp, edx); /* 0x2B069D43: push edx */ 14172 eax = ebp + (-0x8); /* 0x2B069D44: lea eax, [ebp - 8] */ 14173 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B069D47: mov byte ptr [ebp - 4], 0 */ 14174 PUSH32(esp, eax); /* 0x2B069D4B: push eax */ 14175 ecx = ebp + (-0x48); /* 0x2B069D4C: lea ecx, [ebp - 0x48] */ 14176 L_2B069D4F: 14177 RECOMP_ICALL(0x2B02A020u); /* 0x2B069D4F: call 0x2b02a020 */ /* not lifted */ 14178 RECOMP_FLAGS_IN(); 14179 ecx = eax; /* 0x2B069D54: mov ecx, eax */ 14180 eax = MEM32(ecx); /* 0x2B069D56: mov eax, dword ptr [ecx] */ 14181 ecx = MEM32(ecx + 0x4); /* 0x2B069D58: mov ecx, dword ptr [ecx + 4] */ 14182 L_2B069D5B: 14183 edx = ebp + (-0x24); /* 0x2B069D5B: lea edx, [ebp - 0x24] */ 14184 MEM32(ebp + (-0x28)) = eax; /* 0x2B069D5E: mov dword ptr [ebp - 0x28], eax */ 14185 PUSH32(esp, edx); /* 0x2B069D61: push edx */ 14186 eax = ebp + (-0x28); /* 0x2B069D62: lea eax, [ebp - 0x28] */ 14187 MEM32(ebp + (-0x24)) = ecx; /* 0x2B069D65: mov dword ptr [ebp - 0x24], ecx */ 14188 PUSH32(esp, eax); /* 0x2B069D68: push eax */ 14189 ecx = ebp + (-0x50); /* 0x2B069D69: lea ecx, [ebp - 0x50] */ 14190 RECOMP_ICALL(0x2B02A020u); /* 0x2B069D6C: call 0x2b02a020 */ /* not lifted */ 14191 RECOMP_FLAGS_IN(); 14192 ecx = eax; /* 0x2B069D71: mov ecx, eax */ 14193 eax = MEM32(ecx); /* 0x2B069D73: mov eax, dword ptr [ecx] */ 14194 edx = MEM32(ecx + 0x4); /* 0x2B069D75: mov edx, dword ptr [ecx + 4] */ 14195 ecx = MEM32(ebp + 0x8); /* 0x2B069D78: mov ecx, dword ptr [ebp + 8] */ 14196 edi = POP32_VAL(esp); /* 0x2B069D7B: pop edi */ 14197 esi = POP32_VAL(esp); /* 0x2B069D7C: pop esi */ 14198 MEM32(ebp + (-0x54)) = edx; /* 0x2B069D7D: mov dword ptr [ebp - 0x54], edx */ 14199 MEM32(eax + 0x10) = ecx; /* 0x2B069D80: mov dword ptr [eax + 0x10], ecx */ 14200 ebx = POP32_VAL(esp); /* 0x2B069D83: pop ebx */ 14201 esp = ebp; /* 0x2B069D84: mov esp, ebp */ 14202 ebp = POP32_VAL(esp); /* 0x2B069D86: pop ebp */ 14203 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B069D87: ret 4 */ 14204 RECOMP_REGS_OUT(); 14205 } 14206 14207 void sub_2B069D4F(void) { 14208 int _fpu_cmp = 0; 14209 uint32_t _cf = 0; 14210 int _df = 1; 14211 uint32_t _flag_k = FK_NONE; 14212 uint32_t _flag_a = 0, _flag_b = 0; 14213 uint32_t _itail_tgt = 0; 14214 RECOMP_REGS_LOCALS 14215 RECOMP_ENTER(0x2B069D4Fu); 14216 14217 L_2B069D4F: 14218 RECOMP_ICALL(0x2B02A020u); /* 0x2B069D4F: call 0x2b02a020 */ /* not lifted */ 14219 RECOMP_FLAGS_IN(); 14220 ecx = eax; /* 0x2B069D54: mov ecx, eax */ 14221 eax = MEM32(ecx); /* 0x2B069D56: mov eax, dword ptr [ecx] */ 14222 ecx = MEM32(ecx + 0x4); /* 0x2B069D58: mov ecx, dword ptr [ecx + 4] */ 14223 edx = ebp + (-0x24); /* 0x2B069D5B: lea edx, [ebp - 0x24] */ 14224 MEM32(ebp + (-0x28)) = eax; /* 0x2B069D5E: mov dword ptr [ebp - 0x28], eax */ 14225 PUSH32(esp, edx); /* 0x2B069D61: push edx */ 14226 eax = ebp + (-0x28); /* 0x2B069D62: lea eax, [ebp - 0x28] */ 14227 MEM32(ebp + (-0x24)) = ecx; /* 0x2B069D65: mov dword ptr [ebp - 0x24], ecx */ 14228 PUSH32(esp, eax); /* 0x2B069D68: push eax */ 14229 ecx = ebp + (-0x50); /* 0x2B069D69: lea ecx, [ebp - 0x50] */ 14230 RECOMP_ICALL(0x2B02A020u); /* 0x2B069D6C: call 0x2b02a020 */ /* not lifted */ 14231 RECOMP_FLAGS_IN(); 14232 ecx = eax; /* 0x2B069D71: mov ecx, eax */ 14233 eax = MEM32(ecx); /* 0x2B069D73: mov eax, dword ptr [ecx] */ 14234 edx = MEM32(ecx + 0x4); /* 0x2B069D75: mov edx, dword ptr [ecx + 4] */ 14235 ecx = MEM32(ebp + 0x8); /* 0x2B069D78: mov ecx, dword ptr [ebp + 8] */ 14236 edi = POP32_VAL(esp); /* 0x2B069D7B: pop edi */ 14237 esi = POP32_VAL(esp); /* 0x2B069D7C: pop esi */ 14238 MEM32(ebp + (-0x54)) = edx; /* 0x2B069D7D: mov dword ptr [ebp - 0x54], edx */ 14239 MEM32(eax + 0x10) = ecx; /* 0x2B069D80: mov dword ptr [eax + 0x10], ecx */ 14240 ebx = POP32_VAL(esp); /* 0x2B069D83: pop ebx */ 14241 esp = ebp; /* 0x2B069D84: mov esp, ebp */ 14242 ebp = POP32_VAL(esp); /* 0x2B069D86: pop ebp */ 14243 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B069D87: ret 4 */ 14244 RECOMP_REGS_OUT(); 14245 } 14246 14247 void sub_2B069D90(void) { 14248 int _fpu_cmp = 0; 14249 uint32_t _cf = 0; 14250 int _df = 1; 14251 uint32_t _flag_k = FK_NONE; 14252 uint32_t _flag_a = 0, _flag_b = 0; 14253 uint32_t _itail_tgt = 0; 14254 RECOMP_REGS_LOCALS 14255 RECOMP_ENTER(0x2B069D90u); 14256 14257 L_2B069D90: 14258 PUSH32(esp, ebp); /* 0x2B069D90: push ebp */ 14259 ebp = esp; /* 0x2B069D91: mov ebp, esp */ 14260 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14262 esp = esp - 8; /* 0x2B069D93: sub esp, 8 */ 14263 _flag_k = FK_CMP; 14264 PUSH32(esp, esi); /* 0x2B069D96: push esi */ 14265 PUSH32(esp, edi); /* 0x2B069D97: push edi */ 14266 edi = ecx; /* 0x2B069D98: mov edi, ecx */ 14267 esi = MEM32(edi + 0x1C); /* 0x2B069D9A: mov esi, dword ptr [edi + 0x1c] */ 14268 eax = ebp + 0x8; /* 0x2B069D9D: lea eax, [ebp + 8] */ 14269 PUSH32(esp, eax); /* 0x2B069DA0: push eax */ 14270 ecx = esi; /* 0x2B069DA1: mov ecx, esi */ 14271 RECOMP_ICALL(0x2B096A60u); /* 0x2B069DA3: call 0x2b096a60 */ /* not lifted */ 14272 RECOMP_FLAGS_IN(); 14273 esi = MEM32(esi + 0x4); /* 0x2B069DA8: mov esi, dword ptr [esi + 4] */ 14274 /* cmp eax, esi */ /* 0x2B069DAB: cmp eax, esi */ 14275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 14276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14277 _flag_k = FK_CMP; 14278 MEM32(ebp + (-0x4)) = eax; /* 0x2B069DAD: mov dword ptr [ebp - 4], eax */ 14279 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069DBF; /* 0x2B069DB0: je 0x2b069dbf */ 14280 L_2B069DB2: 14281 ecx = MEM32(ebp + 0x8); /* 0x2B069DB2: mov ecx, dword ptr [ebp + 8] */ 14282 /* cmp ecx, MEM32(eax + 0xC) */ /* 0x2B069DB5: cmp ecx, dword ptr [eax + 0xc] */ 14283 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 14284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14285 _flag_k = FK_CMP; 14286 if (CMP_L(_flag_a, _flag_b)) goto L_2B069DBF; /* 0x2B069DB8: jl 0x2b069dbf */ 14287 L_2B069DBA: 14288 eax = ebp + (-0x4); /* 0x2B069DBA: lea eax, [ebp - 4] */ 14289 goto L_2B069DC5; /* 0x2B069DBD: jmp 0x2b069dc5 */ 14290 L_2B069DBF: 14291 MEM32(ebp + (-0x8)) = esi; /* 0x2B069DBF: mov dword ptr [ebp - 8], esi */ 14292 eax = ebp + (-0x8); /* 0x2B069DC2: lea eax, [ebp - 8] */ 14293 L_2B069DC5: 14294 edx = MEM32(edi + 0x1C); /* 0x2B069DC5: mov edx, dword ptr [edi + 0x1c] */ 14295 eax = MEM32(eax); /* 0x2B069DC8: mov eax, dword ptr [eax] */ 14296 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2B069DCA: cmp eax, dword ptr [edx + 4] */ 14297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 14298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14299 _flag_k = FK_CMP; 14300 edi = POP32_VAL(esp); /* 0x2B069DCD: pop edi */ 14301 esi = POP32_VAL(esp); /* 0x2B069DCE: pop esi */ 14302 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069DD9; /* 0x2B069DCF: je 0x2b069dd9 */ 14303 L_2B069DD1: 14304 ecx = MEM32(eax + 0x10); /* 0x2B069DD1: mov ecx, dword ptr [eax + 0x10] */ 14305 RECOMP_ICALL(0x2B0685C0u); /* 0x2B069DD4: call 0x2b0685c0 */ /* not lifted */ 14306 RECOMP_FLAGS_IN(); 14307 L_2B069DD9: 14308 esp = ebp; /* 0x2B069DD9: mov esp, ebp */ 14309 ebp = POP32_VAL(esp); /* 0x2B069DDB: pop ebp */ 14310 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B069DDC: ret 8 */ 14311 RECOMP_REGS_OUT(); 14312 } 14313 14314 void sub_2B069DE0(void) { 14315 int _fpu_cmp = 0; 14316 uint32_t _cf = 0; 14317 int _df = 1; 14318 uint32_t _flag_k = FK_NONE; 14319 uint32_t _flag_a = 0, _flag_b = 0; 14320 uint32_t _itail_tgt = 0; 14321 RECOMP_REGS_LOCALS 14322 RECOMP_ENTER(0x2B069DE0u); 14323 14324 L_2B069DE0: 14325 PUSH32(esp, ebp); /* 0x2B069DE0: push ebp */ 14326 ebp = esp; /* 0x2B069DE1: mov ebp, esp */ 14327 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14329 esp = esp - 8; /* 0x2B069DE3: sub esp, 8 */ 14330 _flag_k = FK_CMP; 14331 PUSH32(esp, esi); /* 0x2B069DE6: push esi */ 14332 PUSH32(esp, edi); /* 0x2B069DE7: push edi */ 14333 edi = ecx; /* 0x2B069DE8: mov edi, ecx */ 14334 esi = MEM32(edi + 0x1C); /* 0x2B069DEA: mov esi, dword ptr [edi + 0x1c] */ 14335 eax = ebp + 0x8; /* 0x2B069DED: lea eax, [ebp + 8] */ 14336 PUSH32(esp, eax); /* 0x2B069DF0: push eax */ 14337 ecx = esi; /* 0x2B069DF1: mov ecx, esi */ 14338 RECOMP_ICALL(0x2B096A60u); /* 0x2B069DF3: call 0x2b096a60 */ /* not lifted */ 14339 RECOMP_FLAGS_IN(); 14340 esi = MEM32(esi + 0x4); /* 0x2B069DF8: mov esi, dword ptr [esi + 4] */ 14341 /* cmp eax, esi */ /* 0x2B069DFB: cmp eax, esi */ 14342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 14343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14344 _flag_k = FK_CMP; 14345 MEM32(ebp + (-0x4)) = eax; /* 0x2B069DFD: mov dword ptr [ebp - 4], eax */ 14346 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069E0F; /* 0x2B069E00: je 0x2b069e0f */ 14347 L_2B069E02: 14348 ecx = MEM32(ebp + 0x8); /* 0x2B069E02: mov ecx, dword ptr [ebp + 8] */ 14349 /* cmp ecx, MEM32(eax + 0xC) */ /* 0x2B069E05: cmp ecx, dword ptr [eax + 0xc] */ 14350 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 14351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14352 _flag_k = FK_CMP; 14353 if (CMP_L(_flag_a, _flag_b)) goto L_2B069E0F; /* 0x2B069E08: jl 0x2b069e0f */ 14354 L_2B069E0A: 14355 eax = ebp + (-0x4); /* 0x2B069E0A: lea eax, [ebp - 4] */ 14356 goto L_2B069E15; /* 0x2B069E0D: jmp 0x2b069e15 */ 14357 L_2B069E0F: 14358 MEM32(ebp + (-0x8)) = esi; /* 0x2B069E0F: mov dword ptr [ebp - 8], esi */ 14359 eax = ebp + (-0x8); /* 0x2B069E12: lea eax, [ebp - 8] */ 14360 L_2B069E15: 14361 edx = MEM32(edi + 0x1C); /* 0x2B069E15: mov edx, dword ptr [edi + 0x1c] */ 14362 eax = MEM32(eax); /* 0x2B069E18: mov eax, dword ptr [eax] */ 14363 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2B069E1A: cmp eax, dword ptr [edx + 4] */ 14364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 14365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14366 _flag_k = FK_CMP; 14367 edi = POP32_VAL(esp); /* 0x2B069E1D: pop edi */ 14368 esi = POP32_VAL(esp); /* 0x2B069E1E: pop esi */ 14369 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069E31; /* 0x2B069E1F: je 0x2b069e31 */ 14370 L_2B069E21: 14371 ecx = MEM32(ebp + 0x10); /* 0x2B069E21: mov ecx, dword ptr [ebp + 0x10] */ 14372 edx = MEM32(ebp + 0xC); /* 0x2B069E24: mov edx, dword ptr [ebp + 0xc] */ 14373 PUSH32(esp, ecx); /* 0x2B069E27: push ecx */ 14374 ecx = MEM32(eax + 0x10); /* 0x2B069E28: mov ecx, dword ptr [eax + 0x10] */ 14375 PUSH32(esp, edx); /* 0x2B069E2B: push edx */ 14376 RECOMP_ICALL(0x2B068900u); /* 0x2B069E2C: call 0x2b068900 */ /* not lifted */ 14377 RECOMP_FLAGS_IN(); 14378 L_2B069E31: 14379 esp = ebp; /* 0x2B069E31: mov esp, ebp */ 14380 ebp = POP32_VAL(esp); /* 0x2B069E33: pop ebp */ 14381 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B069E34: ret 0xc */ 14382 RECOMP_REGS_OUT(); 14383 } 14384 14385 void sub_2B069E40(void) { 14386 int _fpu_cmp = 0; 14387 uint32_t _cf = 0; 14388 int _df = 1; 14389 uint32_t _flag_k = FK_NONE; 14390 uint32_t _flag_a = 0, _flag_b = 0; 14391 uint32_t _itail_tgt = 0; 14392 RECOMP_REGS_LOCALS 14393 RECOMP_ENTER(0x2B069E40u); 14394 14395 L_2B069E40: 14396 PUSH32(esp, ebp); /* 0x2B069E40: push ebp */ 14397 ebp = esp; /* 0x2B069E41: mov ebp, esp */ 14398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 14399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14400 esp = esp - 0x18u; /* 0x2B069E43: sub esp, 0x18 */ 14401 _flag_k = FK_CMP; 14402 PUSH32(esp, esi); /* 0x2B069E46: push esi */ 14403 esi = ecx; /* 0x2B069E47: mov esi, ecx */ 14404 eax = MEM32(esi + 0x18); /* 0x2B069E49: mov eax, dword ptr [esi + 0x18] */ 14405 ecx = MEM32(esi + 0x20); /* 0x2B069E4C: mov ecx, dword ptr [esi + 0x20] */ 14406 edx = ebp + (-0x8); /* 0x2B069E4F: lea edx, [ebp - 8] */ 14407 MEM32(ebp + (-0x8)) = eax; /* 0x2B069E52: mov dword ptr [ebp - 8], eax */ 14408 PUSH32(esp, edx); /* 0x2B069E55: push edx */ 14409 eax = ebp + (-0x10); /* 0x2B069E56: lea eax, [ebp - 0x10] */ 14410 PUSH32(esp, eax); /* 0x2B069E59: push eax */ 14411 MEM32(ebp + (-0x4)) = 0; /* 0x2B069E5A: mov dword ptr [ebp - 4], 0 */ 14412 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B069E61: call 0x2b06a0b0 */ /* not lifted */ 14413 RECOMP_FLAGS_IN(); 14414 ecx = eax; /* 0x2B069E66: mov ecx, eax */ 14415 eax = MEM32(ecx); /* 0x2B069E68: mov eax, dword ptr [ecx] */ 14416 edx = MEM32(ecx + 0x4); /* 0x2B069E6A: mov edx, dword ptr [ecx + 4] */ 14417 ecx = MEM32(eax + 0x10); /* 0x2B069E6D: mov ecx, dword ptr [eax + 0x10] */ 14418 MEM32(ebp + (-0x14)) = edx; /* 0x2B069E70: mov dword ptr [ebp - 0x14], edx */ 14419 RECOMP_ICALL(0x2B069150u); /* 0x2B069E73: call 0x2b069150 */ /* not lifted */ 14420 RECOMP_FLAGS_IN(); 14421 eax = MEM32(ebp + 0x8); /* 0x2B069E78: mov eax, dword ptr [ebp + 8] */ 14422 ecx = MEM32(esi + 0x20); /* 0x2B069E7B: mov ecx, dword ptr [esi + 0x20] */ 14423 MEM32(esi + 0x18) = eax; /* 0x2B069E7E: mov dword ptr [esi + 0x18], eax */ 14424 MEM32(ebp + (-0x8)) = eax; /* 0x2B069E81: mov dword ptr [ebp - 8], eax */ 14425 eax = ebp + (-0x8); /* 0x2B069E84: lea eax, [ebp - 8] */ 14426 PUSH32(esp, eax); /* 0x2B069E87: push eax */ 14427 edx = ebp + (-0x18); /* 0x2B069E88: lea edx, [ebp - 0x18] */ 14428 PUSH32(esp, edx); /* 0x2B069E8B: push edx */ 14429 MEM32(ebp + (-0x4)) = 0; /* 0x2B069E8C: mov dword ptr [ebp - 4], 0 */ 14430 RECOMP_ICALL(0x2B06A0B0u); /* 0x2B069E93: call 0x2b06a0b0 */ /* not lifted */ 14431 RECOMP_FLAGS_IN(); 14432 ecx = eax; /* 0x2B069E98: mov ecx, eax */ 14433 eax = MEM32(ecx); /* 0x2B069E9A: mov eax, dword ptr [ecx] */ 14434 edx = MEM32(ecx + 0x4); /* 0x2B069E9C: mov edx, dword ptr [ecx + 4] */ 14435 ecx = MEM32(eax + 0x10); /* 0x2B069E9F: mov ecx, dword ptr [eax + 0x10] */ 14436 MEM32(ebp + (-0xC)) = edx; /* 0x2B069EA2: mov dword ptr [ebp - 0xc], edx */ 14437 RECOMP_ICALL(0x2B0691D0u); /* 0x2B069EA5: call 0x2b0691d0 */ /* not lifted */ 14438 RECOMP_FLAGS_IN(); 14439 esi = POP32_VAL(esp); /* 0x2B069EAA: pop esi */ 14440 esp = ebp; /* 0x2B069EAB: mov esp, ebp */ 14441 ebp = POP32_VAL(esp); /* 0x2B069EAD: pop ebp */ 14442 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B069EAE: ret 4 */ 14443 RECOMP_REGS_OUT(); 14444 } 14445 14446 void sub_2B069EC0(void) { 14447 int _fpu_cmp = 0; 14448 uint32_t _cf = 0; 14449 int _df = 1; 14450 uint32_t _flag_k = FK_NONE; 14451 uint32_t _flag_a = 0, _flag_b = 0; 14452 uint32_t _itail_tgt = 0; 14453 RECOMP_REGS_LOCALS 14454 RECOMP_ENTER(0x2B069EC0u); 14455 14456 L_2B069EC0: 14457 PUSH32(esp, 2); /* 0x2B069EC0: push 2 */ 14458 PUSH32(esp, 0x35u); /* 0x2B069EC2: push 0x35 */ 14459 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B069EC4: call dword ptr [0x2b0b5d6c] */ 14460 RECOMP_FLAGS_IN(); 14461 ecx = eax; /* 0x2B069ECA: mov ecx, eax */ 14462 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B069ECC: call dword ptr [0x2b0b5d70] */ 14463 RECOMP_FLAGS_IN(); 14464 PUSH32(esp, eax); /* 0x2B069ED2: push eax */ 14465 eax = MEM32(0x2B0EEE54); /* 0x2B069ED3: mov eax, dword ptr [0x2b0eee54] */ 14466 ecx = MEM32(eax); /* 0x2B069ED8: mov ecx, dword ptr [eax] */ 14467 RECOMP_ICALL(0x2B0673B0u); /* 0x2B069EDA: call 0x2b0673b0 */ /* not lifted */ 14468 RECOMP_FLAGS_IN(); 14469 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069EDF: ret */ 14470 RECOMP_REGS_OUT(); 14471 } 14472 14473 void sub_2B069EE0(void) { 14474 int _fpu_cmp = 0; 14475 uint32_t _cf = 0; 14476 int _df = 1; 14477 uint32_t _flag_k = FK_NONE; 14478 uint32_t _flag_a = 0, _flag_b = 0; 14479 uint32_t _itail_tgt = 0; 14480 RECOMP_REGS_LOCALS 14481 RECOMP_ENTER(0x2B069EE0u); 14482 14483 L_2B069EE0: 14484 PUSH32(esp, 2); /* 0x2B069EE0: push 2 */ 14485 PUSH32(esp, 0xC7u); /* 0x2B069EE2: push 0xc7 */ 14486 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B069EE7: call dword ptr [0x2b0b5d6c] */ 14487 RECOMP_FLAGS_IN(); 14488 ecx = eax; /* 0x2B069EED: mov ecx, eax */ 14489 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B069EEF: call dword ptr [0x2b0b5d70] */ 14490 RECOMP_FLAGS_IN(); 14491 PUSH32(esp, eax); /* 0x2B069EF5: push eax */ 14492 eax = MEM32(0x2B0EEE54); /* 0x2B069EF6: mov eax, dword ptr [0x2b0eee54] */ 14493 ecx = MEM32(eax); /* 0x2B069EFB: mov ecx, dword ptr [eax] */ 14494 RECOMP_ICALL(0x2B0673F0u); /* 0x2B069EFD: call 0x2b0673f0 */ /* not lifted */ 14495 RECOMP_FLAGS_IN(); 14496 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069F02: ret */ 14497 RECOMP_REGS_OUT(); 14498 } 14499 14500 void sub_2B069F10(void) { 14501 int _fpu_cmp = 0; 14502 uint32_t _cf = 0; 14503 int _df = 1; 14504 uint32_t _flag_k = FK_NONE; 14505 uint32_t _flag_a = 0, _flag_b = 0; 14506 uint32_t _itail_tgt = 0; 14507 RECOMP_REGS_LOCALS 14508 RECOMP_ENTER(0x2B069F10u); 14509 14510 L_2B069F10: 14511 PUSH32(esp, ebx); /* 0x2B069F10: push ebx */ 14512 ebx = ecx; /* 0x2B069F11: mov ebx, ecx */ 14513 eax = MEM32(ebx + 0x1C); /* 0x2B069F13: mov eax, dword ptr [ebx + 0x1c] */ 14514 eax = MEM32(eax + 0x4); /* 0x2B069F16: mov eax, dword ptr [eax + 4] */ 14515 PUSH32(esp, esi); /* 0x2B069F19: push esi */ 14516 esi = MEM32(eax); /* 0x2B069F1A: mov esi, dword ptr [eax] */ 14517 /* cmp esi, eax */ /* 0x2B069F1C: cmp esi, eax */ 14518 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 14519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14520 _flag_k = FK_CMP; 14521 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069F76; /* 0x2B069F1E: je 0x2b069f76 */ 14522 L_2B069F20: 14523 PUSH32(esp, edi); /* 0x2B069F20: push edi */ 14524 L_2B069F21: 14525 edi = MEM32(esi + 0x10); /* 0x2B069F21: mov edi, dword ptr [esi + 0x10] */ 14526 ecx = edi; /* 0x2B069F24: mov ecx, edi */ 14527 RECOMP_ICALL(0x2B0685C0u); /* 0x2B069F26: call 0x2b0685c0 */ /* not lifted */ 14528 RECOMP_FLAGS_IN(); 14529 ecx = edi; /* 0x2B069F2B: mov ecx, edi */ 14530 RECOMP_ICALL(0x2B068960u); /* 0x2B069F2D: call 0x2b068960 */ /* not lifted */ 14531 RECOMP_FLAGS_IN(); 14532 eax = MEM32(esi + 0x8); /* 0x2B069F32: mov eax, dword ptr [esi + 8] */ 14533 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069F35: mov cl, byte ptr [eax + 0x15] */ 14534 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069F38: test cl, cl */ 14535 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14536 _cf = 0; 14537 _flag_k = FK_NARROW(FK_TEST, 24); 14538 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069F54; /* 0x2B069F3A: jne 0x2b069f54 */ 14539 L_2B069F3C: 14540 esi = eax; /* 0x2B069F3C: mov esi, eax */ 14541 eax = MEM32(esi); /* 0x2B069F3E: mov eax, dword ptr [esi] */ 14542 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069F40: mov cl, byte ptr [eax + 0x15] */ 14543 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069F43: test cl, cl */ 14544 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14545 _cf = 0; 14546 _flag_k = FK_NARROW(FK_TEST, 24); 14547 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069F6D; /* 0x2B069F45: jne 0x2b069f6d */ 14548 L_2B069F47: 14549 esi = eax; /* 0x2B069F47: mov esi, eax */ 14550 eax = MEM32(esi); /* 0x2B069F49: mov eax, dword ptr [esi] */ 14551 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069F4B: mov cl, byte ptr [eax + 0x15] */ 14552 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069F4E: test cl, cl */ 14553 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14554 _cf = 0; 14555 _flag_k = FK_NARROW(FK_TEST, 24); 14556 RECOMP_BACKEDGE(); 14557 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069F47; /* 0x2B069F50: je 0x2b069f47 */ 14558 L_2B069F52: 14559 goto L_2B069F6D; /* 0x2B069F52: jmp 0x2b069f6d */ 14560 L_2B069F54: 14561 eax = MEM32(esi + 0x4); /* 0x2B069F54: mov eax, dword ptr [esi + 4] */ 14562 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B069F57: cmp esi, dword ptr [eax + 8] */ 14563 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14565 _flag_k = FK_CMP; 14566 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069F66; /* 0x2B069F5A: jne 0x2b069f66 */ 14567 L_2B069F5C: 14568 esi = eax; /* 0x2B069F5C: mov esi, eax */ 14569 eax = MEM32(eax + 0x4); /* 0x2B069F5E: mov eax, dword ptr [eax + 4] */ 14570 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B069F61: cmp esi, dword ptr [eax + 8] */ 14571 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14573 _flag_k = FK_CMP; 14574 RECOMP_BACKEDGE(); 14575 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069F5C; /* 0x2B069F64: je 0x2b069f5c */ 14576 L_2B069F66: 14577 /* cmp MEM32(esi + 0x8), eax */ /* 0x2B069F66: cmp dword ptr [esi + 8], eax */ 14578 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 14579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14580 _flag_k = FK_CMP; 14581 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069F6D; /* 0x2B069F69: je 0x2b069f6d */ 14582 L_2B069F6B: 14583 esi = eax; /* 0x2B069F6B: mov esi, eax */ 14584 L_2B069F6D: 14585 ecx = MEM32(ebx + 0x1C); /* 0x2B069F6D: mov ecx, dword ptr [ebx + 0x1c] */ 14586 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x2B069F70: cmp esi, dword ptr [ecx + 4] */ 14587 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14589 _flag_k = FK_CMP; 14590 RECOMP_BACKEDGE(); 14591 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069F21; /* 0x2B069F73: jne 0x2b069f21 */ 14592 L_2B069F75: 14593 edi = POP32_VAL(esp); /* 0x2B069F75: pop edi */ 14594 L_2B069F76: 14595 esi = POP32_VAL(esp); /* 0x2B069F76: pop esi */ 14596 ebx = POP32_VAL(esp); /* 0x2B069F77: pop ebx */ 14597 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069F78: ret */ 14598 RECOMP_REGS_OUT(); 14599 } 14600 14601 void sub_2B069F21(void) { 14602 int _fpu_cmp = 0; 14603 uint32_t _cf = 0; 14604 int _df = 1; 14605 uint32_t _flag_k = FK_NONE; 14606 uint32_t _flag_a = 0, _flag_b = 0; 14607 uint32_t _itail_tgt = 0; 14608 RECOMP_REGS_LOCALS 14609 RECOMP_ENTER(0x2B069F21u); 14610 14611 L_2B069F21: 14612 edi = MEM32(esi + 0x10); /* 0x2B069F21: mov edi, dword ptr [esi + 0x10] */ 14613 ecx = edi; /* 0x2B069F24: mov ecx, edi */ 14614 RECOMP_ICALL(0x2B0685C0u); /* 0x2B069F26: call 0x2b0685c0 */ /* not lifted */ 14615 RECOMP_FLAGS_IN(); 14616 ecx = edi; /* 0x2B069F2B: mov ecx, edi */ 14617 RECOMP_ICALL(0x2B068960u); /* 0x2B069F2D: call 0x2b068960 */ /* not lifted */ 14618 RECOMP_FLAGS_IN(); 14619 eax = MEM32(esi + 0x8); /* 0x2B069F32: mov eax, dword ptr [esi + 8] */ 14620 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069F35: mov cl, byte ptr [eax + 0x15] */ 14621 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069F38: test cl, cl */ 14622 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14623 _cf = 0; 14624 _flag_k = FK_NARROW(FK_TEST, 24); 14625 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069F54; /* 0x2B069F3A: jne 0x2b069f54 */ 14626 L_2B069F3C: 14627 esi = eax; /* 0x2B069F3C: mov esi, eax */ 14628 eax = MEM32(esi); /* 0x2B069F3E: mov eax, dword ptr [esi] */ 14629 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069F40: mov cl, byte ptr [eax + 0x15] */ 14630 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069F43: test cl, cl */ 14631 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14632 _cf = 0; 14633 _flag_k = FK_NARROW(FK_TEST, 24); 14634 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069F6D; /* 0x2B069F45: jne 0x2b069f6d */ 14635 L_2B069F47: 14636 esi = eax; /* 0x2B069F47: mov esi, eax */ 14637 eax = MEM32(esi); /* 0x2B069F49: mov eax, dword ptr [esi] */ 14638 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069F4B: mov cl, byte ptr [eax + 0x15] */ 14639 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069F4E: test cl, cl */ 14640 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14641 _cf = 0; 14642 _flag_k = FK_NARROW(FK_TEST, 24); 14643 RECOMP_BACKEDGE(); 14644 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069F47; /* 0x2B069F50: je 0x2b069f47 */ 14645 L_2B069F52: 14646 goto L_2B069F6D; /* 0x2B069F52: jmp 0x2b069f6d */ 14647 L_2B069F54: 14648 eax = MEM32(esi + 0x4); /* 0x2B069F54: mov eax, dword ptr [esi + 4] */ 14649 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B069F57: cmp esi, dword ptr [eax + 8] */ 14650 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14652 _flag_k = FK_CMP; 14653 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069F66; /* 0x2B069F5A: jne 0x2b069f66 */ 14654 L_2B069F5C: 14655 esi = eax; /* 0x2B069F5C: mov esi, eax */ 14656 eax = MEM32(eax + 0x4); /* 0x2B069F5E: mov eax, dword ptr [eax + 4] */ 14657 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B069F61: cmp esi, dword ptr [eax + 8] */ 14658 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14660 _flag_k = FK_CMP; 14661 RECOMP_BACKEDGE(); 14662 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069F5C; /* 0x2B069F64: je 0x2b069f5c */ 14663 L_2B069F66: 14664 /* cmp MEM32(esi + 0x8), eax */ /* 0x2B069F66: cmp dword ptr [esi + 8], eax */ 14665 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 14666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14667 _flag_k = FK_CMP; 14668 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069F6D; /* 0x2B069F69: je 0x2b069f6d */ 14669 L_2B069F6B: 14670 esi = eax; /* 0x2B069F6B: mov esi, eax */ 14671 L_2B069F6D: 14672 ecx = MEM32(ebx + 0x1C); /* 0x2B069F6D: mov ecx, dword ptr [ebx + 0x1c] */ 14673 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x2B069F70: cmp esi, dword ptr [ecx + 4] */ 14674 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14676 _flag_k = FK_CMP; 14677 RECOMP_BACKEDGE(); 14678 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069F21; /* 0x2B069F73: jne 0x2b069f21 */ 14679 L_2B069F75: 14680 edi = POP32_VAL(esp); /* 0x2B069F75: pop edi */ 14681 esi = POP32_VAL(esp); /* 0x2B069F76: pop esi */ 14682 ebx = POP32_VAL(esp); /* 0x2B069F77: pop ebx */ 14683 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069F78: ret */ 14684 RECOMP_REGS_OUT(); 14685 } 14686 14687 void sub_2B069F6D(void) { 14688 int _fpu_cmp = 0; 14689 uint32_t _cf = 0; 14690 int _df = 1; 14691 uint32_t _flag_k = FK_NONE; 14692 uint32_t _flag_a = 0, _flag_b = 0; 14693 uint32_t _itail_tgt = 0; 14694 RECOMP_REGS_LOCALS 14695 RECOMP_ENTER(0x2B069F6Du); 14696 14697 goto L_2B069F6D; 14698 L_2B069F21: 14699 edi = MEM32(esi + 0x10); /* 0x2B069F21: mov edi, dword ptr [esi + 0x10] */ 14700 ecx = edi; /* 0x2B069F24: mov ecx, edi */ 14701 RECOMP_ICALL(0x2B0685C0u); /* 0x2B069F26: call 0x2b0685c0 */ /* not lifted */ 14702 RECOMP_FLAGS_IN(); 14703 ecx = edi; /* 0x2B069F2B: mov ecx, edi */ 14704 RECOMP_ICALL(0x2B068960u); /* 0x2B069F2D: call 0x2b068960 */ /* not lifted */ 14705 RECOMP_FLAGS_IN(); 14706 eax = MEM32(esi + 0x8); /* 0x2B069F32: mov eax, dword ptr [esi + 8] */ 14707 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069F35: mov cl, byte ptr [eax + 0x15] */ 14708 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069F38: test cl, cl */ 14709 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14710 _cf = 0; 14711 _flag_k = FK_NARROW(FK_TEST, 24); 14712 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069F54; /* 0x2B069F3A: jne 0x2b069f54 */ 14713 L_2B069F3C: 14714 esi = eax; /* 0x2B069F3C: mov esi, eax */ 14715 eax = MEM32(esi); /* 0x2B069F3E: mov eax, dword ptr [esi] */ 14716 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069F40: mov cl, byte ptr [eax + 0x15] */ 14717 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069F43: test cl, cl */ 14718 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14719 _cf = 0; 14720 _flag_k = FK_NARROW(FK_TEST, 24); 14721 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B069F6D; /* 0x2B069F45: jne 0x2b069f6d */ 14722 L_2B069F47: 14723 esi = eax; /* 0x2B069F47: mov esi, eax */ 14724 eax = MEM32(esi); /* 0x2B069F49: mov eax, dword ptr [esi] */ 14725 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x2B069F4B: mov cl, byte ptr [eax + 0x15] */ 14726 /* test LO8(ecx), LO8(ecx) */ /* 0x2B069F4E: test cl, cl */ 14727 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14728 _cf = 0; 14729 _flag_k = FK_NARROW(FK_TEST, 24); 14730 RECOMP_BACKEDGE(); 14731 if (TEST_Z(_flag_a, _flag_b)) goto L_2B069F47; /* 0x2B069F50: je 0x2b069f47 */ 14732 L_2B069F52: 14733 goto L_2B069F6D; /* 0x2B069F52: jmp 0x2b069f6d */ 14734 L_2B069F54: 14735 eax = MEM32(esi + 0x4); /* 0x2B069F54: mov eax, dword ptr [esi + 4] */ 14736 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B069F57: cmp esi, dword ptr [eax + 8] */ 14737 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14739 _flag_k = FK_CMP; 14740 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069F66; /* 0x2B069F5A: jne 0x2b069f66 */ 14741 L_2B069F5C: 14742 esi = eax; /* 0x2B069F5C: mov esi, eax */ 14743 eax = MEM32(eax + 0x4); /* 0x2B069F5E: mov eax, dword ptr [eax + 4] */ 14744 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B069F61: cmp esi, dword ptr [eax + 8] */ 14745 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14747 _flag_k = FK_CMP; 14748 RECOMP_BACKEDGE(); 14749 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069F5C; /* 0x2B069F64: je 0x2b069f5c */ 14750 L_2B069F66: 14751 /* cmp MEM32(esi + 0x8), eax */ /* 0x2B069F66: cmp dword ptr [esi + 8], eax */ 14752 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 14753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14754 _flag_k = FK_CMP; 14755 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B069F6D; /* 0x2B069F69: je 0x2b069f6d */ 14756 L_2B069F6B: 14757 esi = eax; /* 0x2B069F6B: mov esi, eax */ 14758 L_2B069F6D: 14759 ecx = MEM32(ebx + 0x1C); /* 0x2B069F6D: mov ecx, dword ptr [ebx + 0x1c] */ 14760 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x2B069F70: cmp esi, dword ptr [ecx + 4] */ 14761 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14763 _flag_k = FK_CMP; 14764 RECOMP_BACKEDGE(); 14765 if (CMP_NE(_flag_a, _flag_b)) goto L_2B069F21; /* 0x2B069F73: jne 0x2b069f21 */ 14766 L_2B069F75: 14767 edi = POP32_VAL(esp); /* 0x2B069F75: pop edi */ 14768 esi = POP32_VAL(esp); /* 0x2B069F76: pop esi */ 14769 ebx = POP32_VAL(esp); /* 0x2B069F77: pop ebx */ 14770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B069F78: ret */ 14771 RECOMP_REGS_OUT(); 14772 } 14773 14774 void sub_2B069F80(void) { 14775 int _fpu_cmp = 0; 14776 uint32_t _cf = 0; 14777 int _df = 1; 14778 uint32_t _flag_k = FK_NONE; 14779 uint32_t _flag_a = 0, _flag_b = 0; 14780 uint32_t _itail_tgt = 0; 14781 RECOMP_REGS_LOCALS 14782 RECOMP_ENTER(0x2B069F80u); 14783 14784 L_2B069F80: 14785 PUSH32(esp, ebp); /* 0x2B069F80: push ebp */ 14786 ebp = esp; /* 0x2B069F81: mov ebp, esp */ 14787 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14789 esp = esp - 8; /* 0x2B069F83: sub esp, 8 */ 14790 _flag_k = FK_CMP; 14791 RECOMP_ICALL(0x2B001350u); /* 0x2B069F86: call 0x2b001350 */ /* not lifted */ 14792 RECOMP_FLAGS_IN(); 14793 /* test eax, eax */ /* 0x2B069F8B: test eax, eax */ 14794 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14795 _cf = 0; 14796 _flag_k = FK_TEST; 14797 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06A01F; /* 0x2B069F8D: je 0x2b06a01f */ 14798 L_2B069F93: 14799 PUSH32(esp, ebx); /* 0x2B069F93: push ebx */ 14800 PUSH32(esp, esi); /* 0x2B069F94: push esi */ 14801 PUSH32(esp, edi); /* 0x2B069F95: push edi */ 14802 RECOMP_ICALL(0x2B001350u); /* 0x2B069F96: call 0x2b001350 */ /* not lifted */ 14803 RECOMP_FLAGS_IN(); 14804 fp_push((double)(int32_t)MEM32(eax + 0x8)); /* 0x2B069F9B: fild dword ptr [eax + 8] */ 14805 _st[0] *= (double)*(float*)ADDR(0x2B0B70EC); /* 0x2B069F9E: fmul dword ptr [0x2b0b70ec] */ 14806 _st[0] -= (double)*(float*)ADDR(0x2B0B63D0); /* 0x2B069FA4: fsub dword ptr [0x2b0b63d0] */ 14807 _st[0] *= *(double*)ADDR(0x2B0B63C8); /* 0x2B069FAA: fmul qword ptr [0x2b0b63c8] */ 14808 _st[0] += *(double*)ADDR(0x2B0B63C0); /* 0x2B069FB0: fadd qword ptr [0x2b0b63c0] */ 14809 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2B069FB6: fstp dword ptr [ebp - 4] */ 14810 fp_push((double)(int32_t)MEM32(eax + 0xC)); /* 0x2B069FB9: fild dword ptr [eax + 0xc] */ 14811 _st[0] *= (double)*(float*)ADDR(0x2B0B70E8); /* 0x2B069FBC: fmul dword ptr [0x2b0b70e8] */ 14812 _st[0] -= (double)*(float*)ADDR(0x2B0B63D0); /* 0x2B069FC2: fsub dword ptr [0x2b0b63d0] */ 14813 _st[0] *= *(double*)ADDR(0x2B0B63C8); /* 0x2B069FC8: fmul qword ptr [0x2b0b63c8] */ 14814 _st[0] += *(double*)ADDR(0x2B0B63C0); /* 0x2B069FCE: fadd qword ptr [0x2b0b63c0] */ 14815 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2B069FD4: fstp dword ptr [ebp - 8] */ 14816 RECOMP_ICALL(0x2B001350u); /* 0x2B069FD7: call 0x2b001350 */ /* not lifted */ 14817 RECOMP_FLAGS_IN(); 14818 ecx = eax; /* 0x2B069FDC: mov ecx, eax */ 14819 eax = MEM32(ecx + 0x8); /* 0x2B069FDE: mov eax, dword ptr [ecx + 8] */ 14820 ebx = MEM32(ecx); /* 0x2B069FE1: mov ebx, dword ptr [ecx] */ 14821 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B069FE3: cdq */ 14822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14824 eax = eax - edx; /* 0x2B069FE4: sub eax, edx */ 14825 _flag_k = FK_CMP; 14826 esi = eax; /* 0x2B069FE6: mov esi, eax */ 14827 eax = MEM32(ecx + 0xC); /* 0x2B069FE8: mov eax, dword ptr [ecx + 0xc] */ 14828 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B069FEB: cdq */ 14829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14831 eax = eax - edx; /* 0x2B069FEC: sub eax, edx */ 14832 _flag_k = FK_CMP; 14833 if (1u) _cf = (((esi) >> 0) & 1u); /* 0x2B069FEE: sar esi, 1 */ 14834 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14835 esi = (uint32_t)((int32_t)esi >> 1u); 14836 edi = eax; /* 0x2B069FF0: mov edi, eax */ 14837 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14839 esi = esi + ebx; /* 0x2B069FF2: add esi, ebx */ 14840 _flag_k = FK_ADD; 14841 ebx = MEM32(ecx + 0x4); /* 0x2B069FF4: mov ebx, dword ptr [ecx + 4] */ 14842 if (1u) _cf = (((edi) >> 0) & 1u); /* 0x2B069FF7: sar edi, 1 */ 14843 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14844 edi = (uint32_t)((int32_t)edi >> 1u); 14845 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 14846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14847 edi = edi + ebx; /* 0x2B069FF9: add edi, ebx */ 14848 _flag_k = FK_ADD; 14849 ebx = MEM32(ebp + 0x8); /* 0x2B069FFB: mov ebx, dword ptr [ebp + 8] */ 14850 fp_push((double)(int32_t)MEM32(ebx)); /* 0x2B069FFE: fild dword ptr [ebx] */ 14851 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x2B06A000: fmul dword ptr [ebp - 4] */ 14852 RECOMP_ICALL(0x2B0AB220u); /* 0x2B06A003: call 0x2b0ab220 */ /* not lifted */ 14853 RECOMP_FLAGS_IN(); 14854 fp_push((double)(int32_t)MEM32(ebx + 0x4)); /* 0x2B06A008: fild dword ptr [ebx + 4] */ 14855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 14856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14857 eax = eax + esi; /* 0x2B06A00B: add eax, esi */ 14858 _flag_k = FK_ADD; 14859 MEM32(ebx) = eax; /* 0x2B06A00D: mov dword ptr [ebx], eax */ 14860 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2B06A00F: fmul dword ptr [ebp - 8] */ 14861 RECOMP_ICALL(0x2B0AB220u); /* 0x2B06A012: call 0x2b0ab220 */ /* not lifted */ 14862 RECOMP_FLAGS_IN(); 14863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 14864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14865 eax = eax + edi; /* 0x2B06A017: add eax, edi */ 14866 _flag_k = FK_ADD; 14867 edi = POP32_VAL(esp); /* 0x2B06A019: pop edi */ 14868 esi = POP32_VAL(esp); /* 0x2B06A01A: pop esi */ 14869 MEM32(ebx + 0x4) = eax; /* 0x2B06A01B: mov dword ptr [ebx + 4], eax */ 14870 ebx = POP32_VAL(esp); /* 0x2B06A01E: pop ebx */ 14871 L_2B06A01F: 14872 esp = ebp; /* 0x2B06A01F: mov esp, ebp */ 14873 ebp = POP32_VAL(esp); /* 0x2B06A021: pop ebp */ 14874 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B06A022: ret 4 */ 14875 RECOMP_REGS_OUT(); 14876 } 14877 14878 void sub_2B06A030(void) { 14879 int _fpu_cmp = 0; 14880 uint32_t _cf = 0; 14881 int _df = 1; 14882 uint32_t _flag_k = FK_NONE; 14883 uint32_t _flag_a = 0, _flag_b = 0; 14884 uint32_t _itail_tgt = 0; 14885 RECOMP_REGS_LOCALS 14886 RECOMP_ENTER(0x2B06A030u); 14887 14888 L_2B06A030: 14889 SET_LO8(eax, MEM8(0x2B0EEE58)); /* 0x2B06A030: mov al, byte ptr [0x2b0eee58] */ 14890 /* test LO8(eax), LO8(eax) */ /* 0x2B06A035: test al, al */ 14891 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14892 _cf = 0; 14893 _flag_k = FK_NARROW(FK_TEST, 24); 14894 PUSH32(esp, esi); /* 0x2B06A037: push esi */ 14895 esi = ecx; /* 0x2B06A038: mov esi, ecx */ 14896 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B06A089; /* 0x2B06A03A: jne 0x2b06a089 */ 14897 L_2B06A03C: 14898 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B06A03C: call dword ptr [0x2b0b5d6c] */ 14899 RECOMP_FLAGS_IN(); 14900 ecx = eax; /* 0x2B06A042: mov ecx, eax */ 14901 RECOMP_ICALL(MEM32(0x2B0B5D8C)); /* 0x2B06A044: call dword ptr [0x2b0b5d8c] */ 14902 RECOMP_FLAGS_IN(); 14903 /* test LO8(eax), LO8(eax) */ /* 0x2B06A04A: test al, al */ 14904 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14905 _cf = 0; 14906 _flag_k = FK_NARROW(FK_TEST, 24); 14907 if (TEST_Z(_flag_a, _flag_b)) goto L_2B06A075; /* 0x2B06A04C: je 0x2b06a075 */ 14908 L_2B06A04E: 14909 PUSH32(esp, 0); /* 0x2B06A04E: push 0 */ 14910 PUSH32(esp, 0); /* 0x2B06A050: push 0 */ 14911 PUSH32(esp, 0); /* 0x2B06A052: push 0 */ 14912 PUSH32(esp, 0x2B0EB348u); /* 0x2B06A054: push 0x2b0eb348 */ 14913 PUSH32(esp, 0x2B0EB15Cu); /* 0x2B06A059: push 0x2b0eb15c */ 14914 RECOMP_ICALL(0x2B089BF0u); /* 0x2B06A05E: call 0x2b089bf0 */ /* not lifted */ 14915 RECOMP_FLAGS_IN(); 14916 eax = MEM32(esi); /* 0x2B06A063: mov eax, dword ptr [esi] */ 14917 ecx = MEM32(eax + 0x10); /* 0x2B06A065: mov ecx, dword ptr [eax + 0x10] */ 14918 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 14919 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14920 esp = esp + 0x14u; /* 0x2B06A068: add esp, 0x14 */ 14921 _flag_k = FK_ADD; 14922 PUSH32(esp, 1); /* 0x2B06A06B: push 1 */ 14923 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B06A06D: call dword ptr [0x2b0b5ab4] */ 14924 RECOMP_FLAGS_IN(); 14925 esi = POP32_VAL(esp); /* 0x2B06A073: pop esi */ 14926 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06A074: ret */ 14927 L_2B06A075: 14928 MEM8(0x2B0EEE58) = (uint8_t)(1); /* 0x2B06A075: mov byte ptr [0x2b0eee58], 1 */ 14929 ecx = MEM32(esi); /* 0x2B06A07C: mov ecx, dword ptr [esi] */ 14930 ecx = MEM32(ecx + 0x10); /* 0x2B06A07E: mov ecx, dword ptr [ecx + 0x10] */ 14931 PUSH32(esp, 2); /* 0x2B06A081: push 2 */ 14932 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B06A083: call dword ptr [0x2b0b5ab4] */ 14933 RECOMP_FLAGS_IN(); 14934 L_2B06A089: 14935 esi = POP32_VAL(esp); /* 0x2B06A089: pop esi */ 14936 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B06A08A: ret */ 14937 RECOMP_REGS_OUT(); 14938 }