client/game/ddr.dll/lifted-0020.c (2456733B)
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_2B04CA90(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(0x2B04CA90u); 17 18 L_2B04CA90: 19 edx = MEM32(esi + 0x4); /* 0x2B04CA90: mov edx, dword ptr [esi + 4] */ 20 PUSH32(esp, edx); /* 0x2B04CA93: push edx */ 21 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CA94: call 0x2b0ab1ba */ /* not lifted */ 22 RECOMP_FLAGS_IN(); 23 eax = MEM32(esi + 0x8); /* 0x2B04CA99: mov eax, dword ptr [esi + 8] */ 24 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 25 edi = 0; /* 0x2B04CA9C: xor edi, edi */ 26 _cf = 0; 27 _flag_k = FK_TEST; 28 PUSH32(esp, eax); /* 0x2B04CA9E: push eax */ 29 MEM32(esi + 0x4) = edi; /* 0x2B04CA9F: mov dword ptr [esi + 4], edi */ 30 MEM32(esi + 0x10) = edi; /* 0x2B04CAA2: mov dword ptr [esi + 0x10], edi */ 31 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CAA5: call 0x2b0ab1ba */ /* not lifted */ 32 RECOMP_FLAGS_IN(); 33 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 34 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35 esp = esp + 8; /* 0x2B04CAAA: add esp, 8 */ 36 _flag_k = FK_ADD; 37 MEM32(esi + 0x8) = edi; /* 0x2B04CAAD: mov dword ptr [esi + 8], edi */ 38 edi = POP32_VAL(esp); /* 0x2B04CAB0: pop edi */ 39 esi = POP32_VAL(esp); /* 0x2B04CAB1: pop esi */ 40 ebx = POP32_VAL(esp); /* 0x2B04CAB2: pop ebx */ 41 esp = ebp; /* 0x2B04CAB3: mov esp, ebp */ 42 ebp = POP32_VAL(esp); /* 0x2B04CAB5: pop ebp */ 43 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04CAB6: ret */ 44 RECOMP_REGS_OUT(); 45 } 46 47 void sub_2B04CAC0(void) { 48 int _fpu_cmp = 0; 49 uint32_t _cf = 0; 50 int _df = 1; 51 uint32_t _flag_k = FK_NONE; 52 uint32_t _flag_a = 0, _flag_b = 0; 53 uint32_t _itail_tgt = 0; 54 RECOMP_REGS_LOCALS 55 RECOMP_ENTER(0x2B04CAC0u); 56 57 L_2B04CAC0: 58 PUSH32(esp, ebp); /* 0x2B04CAC0: push ebp */ 59 ebp = esp; /* 0x2B04CAC1: mov ebp, esp */ 60 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B04CAC3: push -1 */ 61 PUSH32(esp, 0x2B0AF526u); /* 0x2B04CAC5: push 0x2b0af526 */ 62 eax = MEM32(FS_BASE + (0)); /* 0x2B04CACA: mov eax, dword ptr fs:[0] */ 63 PUSH32(esp, eax); /* 0x2B04CAD0: push eax */ 64 MEM32(FS_BASE + (0)) = esp; /* 0x2B04CAD1: mov dword ptr fs:[0], esp */ 65 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 66 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 67 esp = esp - 0x10u; /* 0x2B04CAD8: sub esp, 0x10 */ 68 _flag_k = FK_CMP; 69 PUSH32(esp, ebx); /* 0x2B04CADB: push ebx */ 70 PUSH32(esp, esi); /* 0x2B04CADC: push esi */ 71 PUSH32(esp, edi); /* 0x2B04CADD: push edi */ 72 edi = ecx; /* 0x2B04CADE: mov edi, ecx */ 73 MEM32(ebp + (-0x14)) = edi; /* 0x2B04CAE0: mov dword ptr [ebp - 0x14], edi */ 74 MEM32(edi) = 0x2B0B6AACu; /* 0x2B04CAE3: mov dword ptr [edi], 0x2b0b6aac */ 75 ecx = MEM32(edi + 0x30); /* 0x2B04CAE9: mov ecx, dword ptr [edi + 0x30] */ 76 /* test ecx, ecx */ /* 0x2B04CAEC: test ecx, ecx */ 77 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 78 _cf = 0; 79 _flag_k = FK_TEST; 80 MEM32(ebp + (-0x4)) = 1; /* 0x2B04CAEE: mov dword ptr [ebp - 4], 1 */ 81 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CAFD; /* 0x2B04CAF5: je 0x2b04cafd */ 82 L_2B04CAF7: 83 eax = MEM32(ecx); /* 0x2B04CAF7: mov eax, dword ptr [ecx] */ 84 PUSH32(esp, 1); /* 0x2B04CAF9: push 1 */ 85 RECOMP_ICALL(MEM32(eax)); /* 0x2B04CAFB: call dword ptr [eax] */ 86 RECOMP_FLAGS_IN(); 87 L_2B04CAFD: 88 ecx = MEM32(edi + 0x2C); /* 0x2B04CAFD: mov ecx, dword ptr [edi + 0x2c] */ 89 /* test ecx, ecx */ /* 0x2B04CB00: test ecx, ecx */ 90 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 91 _cf = 0; 92 _flag_k = FK_TEST; 93 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CB0A; /* 0x2B04CB02: je 0x2b04cb0a */ 94 L_2B04CB04: 95 edx = MEM32(ecx); /* 0x2B04CB04: mov edx, dword ptr [ecx] */ 96 PUSH32(esp, 1); /* 0x2B04CB06: push 1 */ 97 RECOMP_ICALL(MEM32(edx)); /* 0x2B04CB08: call dword ptr [edx] */ 98 RECOMP_FLAGS_IN(); 99 L_2B04CB0A: 100 ecx = MEM32(edi + 0x28); /* 0x2B04CB0A: mov ecx, dword ptr [edi + 0x28] */ 101 /* test ecx, ecx */ /* 0x2B04CB0D: test ecx, ecx */ 102 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 103 _cf = 0; 104 _flag_k = FK_TEST; 105 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CB17; /* 0x2B04CB0F: je 0x2b04cb17 */ 106 L_2B04CB11: 107 eax = MEM32(ecx); /* 0x2B04CB11: mov eax, dword ptr [ecx] */ 108 PUSH32(esp, 1); /* 0x2B04CB13: push 1 */ 109 RECOMP_ICALL(MEM32(eax)); /* 0x2B04CB15: call dword ptr [eax] */ 110 RECOMP_FLAGS_IN(); 111 L_2B04CB17: 112 ecx = MEM32(edi + 0x34); /* 0x2B04CB17: mov ecx, dword ptr [edi + 0x34] */ 113 /* test ecx, ecx */ /* 0x2B04CB1A: test ecx, ecx */ 114 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 115 _cf = 0; 116 _flag_k = FK_TEST; 117 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CB24; /* 0x2B04CB1C: je 0x2b04cb24 */ 118 L_2B04CB1E: 119 edx = MEM32(ecx); /* 0x2B04CB1E: mov edx, dword ptr [ecx] */ 120 PUSH32(esp, 1); /* 0x2B04CB20: push 1 */ 121 RECOMP_ICALL(MEM32(edx)); /* 0x2B04CB22: call dword ptr [edx] */ 122 RECOMP_FLAGS_IN(); 123 L_2B04CB24: 124 ecx = MEM32(edi + 0x38); /* 0x2B04CB24: mov ecx, dword ptr [edi + 0x38] */ 125 /* test ecx, ecx */ /* 0x2B04CB27: test ecx, ecx */ 126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 127 _cf = 0; 128 _flag_k = FK_TEST; 129 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CB31; /* 0x2B04CB29: je 0x2b04cb31 */ 130 L_2B04CB2B: 131 eax = MEM32(ecx); /* 0x2B04CB2B: mov eax, dword ptr [ecx] */ 132 PUSH32(esp, 1); /* 0x2B04CB2D: push 1 */ 133 RECOMP_ICALL(MEM32(eax)); /* 0x2B04CB2F: call dword ptr [eax] */ 134 RECOMP_FLAGS_IN(); 135 L_2B04CB31: 136 ecx = MEM32(edi + 0x3C); /* 0x2B04CB31: mov ecx, dword ptr [edi + 0x3c] */ 137 /* test ecx, ecx */ /* 0x2B04CB34: test ecx, ecx */ 138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 139 _cf = 0; 140 _flag_k = FK_TEST; 141 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CB3E; /* 0x2B04CB36: je 0x2b04cb3e */ 142 L_2B04CB38: 143 edx = MEM32(ecx); /* 0x2B04CB38: mov edx, dword ptr [ecx] */ 144 PUSH32(esp, 1); /* 0x2B04CB3A: push 1 */ 145 RECOMP_ICALL(MEM32(edx)); /* 0x2B04CB3C: call dword ptr [edx] */ 146 RECOMP_FLAGS_IN(); 147 L_2B04CB3E: 148 esi = MEM32(edi + 0x194); /* 0x2B04CB3E: mov esi, dword ptr [edi + 0x194] */ 149 /* test esi, esi */ /* 0x2B04CB44: test esi, esi */ 150 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 151 _cf = 0; 152 _flag_k = FK_TEST; 153 ebx = MEM32(0x2B0B5BC0); /* 0x2B04CB46: mov ebx, dword ptr [0x2b0b5bc0] */ 154 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CB5B; /* 0x2B04CB4C: je 0x2b04cb5b */ 155 L_2B04CB4E: 156 ecx = esi; /* 0x2B04CB4E: mov ecx, esi */ 157 RECOMP_ICALL(ebx); /* 0x2B04CB50: call ebx */ 158 RECOMP_FLAGS_IN(); 159 PUSH32(esp, esi); /* 0x2B04CB52: push esi */ 160 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CB53: call 0x2b0ab1ba */ /* not lifted */ 161 RECOMP_FLAGS_IN(); 162 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 163 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 164 esp = esp + 4; /* 0x2B04CB58: add esp, 4 */ 165 _flag_k = FK_ADD; 166 L_2B04CB5B: 167 esi = MEM32(edi + 0x198); /* 0x2B04CB5B: mov esi, dword ptr [edi + 0x198] */ 168 /* test esi, esi */ /* 0x2B04CB61: test esi, esi */ 169 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 170 _cf = 0; 171 _flag_k = FK_TEST; 172 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CB72; /* 0x2B04CB63: je 0x2b04cb72 */ 173 L_2B04CB65: 174 ecx = esi; /* 0x2B04CB65: mov ecx, esi */ 175 RECOMP_ICALL(ebx); /* 0x2B04CB67: call ebx */ 176 RECOMP_FLAGS_IN(); 177 PUSH32(esp, esi); /* 0x2B04CB69: push esi */ 178 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CB6A: call 0x2b0ab1ba */ /* not lifted */ 179 RECOMP_FLAGS_IN(); 180 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 181 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 182 esp = esp + 4; /* 0x2B04CB6F: add esp, 4 */ 183 _flag_k = FK_ADD; 184 L_2B04CB72: 185 ecx = MEM32(edi + 0x44); /* 0x2B04CB72: mov ecx, dword ptr [edi + 0x44] */ 186 /* test ecx, ecx */ /* 0x2B04CB75: test ecx, ecx */ 187 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 188 _cf = 0; 189 _flag_k = FK_TEST; 190 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CB7F; /* 0x2B04CB77: je 0x2b04cb7f */ 191 L_2B04CB79: 192 eax = MEM32(ecx); /* 0x2B04CB79: mov eax, dword ptr [ecx] */ 193 PUSH32(esp, 1); /* 0x2B04CB7B: push 1 */ 194 RECOMP_ICALL(MEM32(eax)); /* 0x2B04CB7D: call dword ptr [eax] */ 195 RECOMP_FLAGS_IN(); 196 L_2B04CB7F: 197 ecx = MEM32(edi + 0x40); /* 0x2B04CB7F: mov ecx, dword ptr [edi + 0x40] */ 198 /* test ecx, ecx */ /* 0x2B04CB82: test ecx, ecx */ 199 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 200 _cf = 0; 201 _flag_k = FK_TEST; 202 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CB8C; /* 0x2B04CB84: je 0x2b04cb8c */ 203 L_2B04CB86: 204 edx = MEM32(ecx); /* 0x2B04CB86: mov edx, dword ptr [ecx] */ 205 PUSH32(esp, 1); /* 0x2B04CB88: push 1 */ 206 RECOMP_ICALL(MEM32(edx)); /* 0x2B04CB8A: call dword ptr [edx] */ 207 RECOMP_FLAGS_IN(); 208 L_2B04CB8C: 209 eax = MEM32(edi + 0x104); /* 0x2B04CB8C: mov eax, dword ptr [edi + 0x104] */ 210 esi = MEM32(eax + 0x4); /* 0x2B04CB92: mov esi, dword ptr [eax + 4] */ 211 eax = MEM32(eax + 0x8); /* 0x2B04CB95: mov eax, dword ptr [eax + 8] */ 212 /* cmp esi, eax */ /* 0x2B04CB98: cmp esi, eax */ 213 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 215 _flag_k = FK_CMP; 216 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CBBF; /* 0x2B04CB9A: je 0x2b04cbbf */ 217 L_2B04CB9C: 218 ebx = MEM32(0x2B0B51CC); /* 0x2B04CB9C: mov ebx, dword ptr [0x2b0b51cc] */ 219 L_2B04CBA2: 220 eax = MEM32(esi + 0x28); /* 0x2B04CBA2: mov eax, dword ptr [esi + 0x28] */ 221 /* test eax, eax */ /* 0x2B04CBA5: test eax, eax */ 222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 223 _cf = 0; 224 _flag_k = FK_TEST; 225 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CBAF; /* 0x2B04CBA7: je 0x2b04cbaf */ 226 L_2B04CBA9: 227 PUSH32(esp, eax); /* 0x2B04CBA9: push eax */ 228 RECOMP_ICALL(ebx); /* 0x2B04CBAA: call ebx */ 229 RECOMP_FLAGS_IN(); 230 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 231 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 232 esp = esp + 4; /* 0x2B04CBAC: add esp, 4 */ 233 _flag_k = FK_ADD; 234 L_2B04CBAF: 235 eax = MEM32(edi + 0x104); /* 0x2B04CBAF: mov eax, dword ptr [edi + 0x104] */ 236 ecx = MEM32(eax + 0x8); /* 0x2B04CBB5: mov ecx, dword ptr [eax + 8] */ 237 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 238 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 239 esi = esi + 0x30u; /* 0x2B04CBB8: add esi, 0x30 */ 240 _flag_k = FK_ADD; 241 /* cmp esi, ecx */ /* 0x2B04CBBB: cmp esi, ecx */ 242 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 244 _flag_k = FK_CMP; 245 RECOMP_BACKEDGE(); 246 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CBA2; /* 0x2B04CBBD: jne 0x2b04cba2 */ 247 L_2B04CBBF: 248 esi = edi + 0x5C; /* 0x2B04CBBF: lea esi, [edi + 0x5c] */ 249 ebx = 0xBu; /* 0x2B04CBC2: mov ebx, 0xb */ 250 L_2B04CBC7: 251 ecx = MEM32(esi + (-0x4)); /* 0x2B04CBC7: mov ecx, dword ptr [esi - 4] */ 252 /* test ecx, ecx */ /* 0x2B04CBCA: test ecx, ecx */ 253 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 254 _cf = 0; 255 _flag_k = FK_TEST; 256 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CBD4; /* 0x2B04CBCC: je 0x2b04cbd4 */ 257 L_2B04CBCE: 258 edx = MEM32(ecx); /* 0x2B04CBCE: mov edx, dword ptr [ecx] */ 259 PUSH32(esp, 1); /* 0x2B04CBD0: push 1 */ 260 RECOMP_ICALL(MEM32(edx)); /* 0x2B04CBD2: call dword ptr [edx] */ 261 RECOMP_FLAGS_IN(); 262 L_2B04CBD4: 263 ecx = MEM32(esi); /* 0x2B04CBD4: mov ecx, dword ptr [esi] */ 264 /* test ecx, ecx */ /* 0x2B04CBD6: test ecx, ecx */ 265 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 266 _cf = 0; 267 _flag_k = FK_TEST; 268 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CBE0; /* 0x2B04CBD8: je 0x2b04cbe0 */ 269 L_2B04CBDA: 270 eax = MEM32(ecx); /* 0x2B04CBDA: mov eax, dword ptr [ecx] */ 271 PUSH32(esp, 1); /* 0x2B04CBDC: push 1 */ 272 RECOMP_ICALL(MEM32(eax)); /* 0x2B04CBDE: call dword ptr [eax] */ 273 RECOMP_FLAGS_IN(); 274 L_2B04CBE0: 275 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 276 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 277 esi = esi + 0x10u; /* 0x2B04CBE0: add esi, 0x10 */ 278 _flag_k = FK_ADD; 279 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 280 ebx = ebx - 1; /* 0x2B04CBE3: dec ebx */ 281 _flag_k = FK_DEC; 282 RECOMP_BACKEDGE(); 283 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04CBC7; /* 0x2B04CBE4: jne 0x2b04cbc7 */ 284 L_2B04CBE6: 285 esi = edi + 0x114; /* 0x2B04CBE6: lea esi, [edi + 0x114] */ 286 ebx = 6; /* 0x2B04CBEC: mov ebx, 6 */ 287 L_2B04CBF1: 288 ecx = MEM32(esi + 0x4); /* 0x2B04CBF1: mov ecx, dword ptr [esi + 4] */ 289 /* test ecx, ecx */ /* 0x2B04CBF4: test ecx, ecx */ 290 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 291 _cf = 0; 292 _flag_k = FK_TEST; 293 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CBFE; /* 0x2B04CBF6: je 0x2b04cbfe */ 294 L_2B04CBF8: 295 edx = MEM32(ecx); /* 0x2B04CBF8: mov edx, dword ptr [ecx] */ 296 PUSH32(esp, 1); /* 0x2B04CBFA: push 1 */ 297 RECOMP_ICALL(MEM32(edx)); /* 0x2B04CBFC: call dword ptr [edx] */ 298 RECOMP_FLAGS_IN(); 299 L_2B04CBFE: 300 ecx = MEM32(esi); /* 0x2B04CBFE: mov ecx, dword ptr [esi] */ 301 /* test ecx, ecx */ /* 0x2B04CC00: test ecx, ecx */ 302 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 303 _cf = 0; 304 _flag_k = FK_TEST; 305 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CC0A; /* 0x2B04CC02: je 0x2b04cc0a */ 306 L_2B04CC04: 307 eax = MEM32(ecx); /* 0x2B04CC04: mov eax, dword ptr [ecx] */ 308 PUSH32(esp, 1); /* 0x2B04CC06: push 1 */ 309 RECOMP_ICALL(MEM32(eax)); /* 0x2B04CC08: call dword ptr [eax] */ 310 RECOMP_FLAGS_IN(); 311 L_2B04CC0A: 312 ecx = MEM32(esi + (-0x4)); /* 0x2B04CC0A: mov ecx, dword ptr [esi - 4] */ 313 /* test ecx, ecx */ /* 0x2B04CC0D: test ecx, ecx */ 314 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 315 _cf = 0; 316 _flag_k = FK_TEST; 317 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CC17; /* 0x2B04CC0F: je 0x2b04cc17 */ 318 L_2B04CC11: 319 edx = MEM32(ecx); /* 0x2B04CC11: mov edx, dword ptr [ecx] */ 320 PUSH32(esp, 1); /* 0x2B04CC13: push 1 */ 321 RECOMP_ICALL(MEM32(edx)); /* 0x2B04CC15: call dword ptr [edx] */ 322 RECOMP_FLAGS_IN(); 323 L_2B04CC17: 324 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 326 esi = esi + 0x14u; /* 0x2B04CC17: add esi, 0x14 */ 327 _flag_k = FK_ADD; 328 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 329 ebx = ebx - 1; /* 0x2B04CC1A: dec ebx */ 330 _flag_k = FK_DEC; 331 RECOMP_BACKEDGE(); 332 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04CBF1; /* 0x2B04CC1B: jne 0x2b04cbf1 */ 333 L_2B04CC1D: 334 eax = MEM32(edi + 0x100); /* 0x2B04CC1D: mov eax, dword ptr [edi + 0x100] */ 335 esi = MEM32(eax + 0x8); /* 0x2B04CC23: mov esi, dword ptr [eax + 8] */ 336 /* cmp esi, esi */ /* 0x2B04CC26: cmp esi, esi */ 337 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 339 _flag_k = FK_CMP; 340 edi = MEM32(eax + 0x4); /* 0x2B04CC28: mov edi, dword ptr [eax + 4] */ 341 MEM32(ebp + (-0x10)) = eax; /* 0x2B04CC2B: mov dword ptr [ebp - 0x10], eax */ 342 ebx = esi; /* 0x2B04CC2E: mov ebx, esi */ 343 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CC47; /* 0x2B04CC30: je 0x2b04cc47 */ 344 L_2B04CC32: 345 PUSH32(esp, ebx); /* 0x2B04CC32: push ebx */ 346 ecx = edi; /* 0x2B04CC33: mov ecx, edi */ 347 RECOMP_ICALL(0x2B053640u); /* 0x2B04CC35: call 0x2b053640 */ /* not lifted */ 348 RECOMP_FLAGS_IN(); 349 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 351 ebx = ebx + 0x30u; /* 0x2B04CC3A: add ebx, 0x30 */ 352 _flag_k = FK_ADD; 353 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 355 edi = edi + 0x30u; /* 0x2B04CC3D: add edi, 0x30 */ 356 _flag_k = FK_ADD; 357 /* cmp ebx, esi */ /* 0x2B04CC40: cmp ebx, esi */ 358 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 360 _flag_k = FK_CMP; 361 RECOMP_BACKEDGE(); 362 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CC32; /* 0x2B04CC42: jne 0x2b04cc32 */ 363 L_2B04CC44: 364 eax = MEM32(ebp + (-0x10)); /* 0x2B04CC44: mov eax, dword ptr [ebp - 0x10] */ 365 L_2B04CC47: 366 ebx = MEM32(eax + 0x8); /* 0x2B04CC47: mov ebx, dword ptr [eax + 8] */ 367 /* cmp edi, ebx */ /* 0x2B04CC4A: cmp edi, ebx */ 368 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 370 _flag_k = FK_CMP; 371 esi = edi; /* 0x2B04CC4C: mov esi, edi */ 372 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CC65; /* 0x2B04CC4E: je 0x2b04cc65 */ 373 L_2B04CC50: 374 PUSH32(esp, 1); /* 0x2B04CC50: push 1 */ 375 ecx = esi + 0x8; /* 0x2B04CC52: lea ecx, [esi + 8] */ 376 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04CC55: call dword ptr [0x2b0b514c] */ 377 RECOMP_FLAGS_IN(); 378 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 380 esi = esi + 0x30u; /* 0x2B04CC5B: add esi, 0x30 */ 381 _flag_k = FK_ADD; 382 /* cmp esi, ebx */ /* 0x2B04CC5E: cmp esi, ebx */ 383 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 385 _flag_k = FK_CMP; 386 RECOMP_BACKEDGE(); 387 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CC50; /* 0x2B04CC60: jne 0x2b04cc50 */ 388 L_2B04CC62: 389 eax = MEM32(ebp + (-0x10)); /* 0x2B04CC62: mov eax, dword ptr [ebp - 0x10] */ 390 L_2B04CC65: 391 ebx = MEM32(ebp + (-0x14)); /* 0x2B04CC65: mov ebx, dword ptr [ebp - 0x14] */ 392 MEM32(eax + 0x8) = edi; /* 0x2B04CC68: mov dword ptr [eax + 8], edi */ 393 edi = MEM32(ebx + 0x100); /* 0x2B04CC6B: mov edi, dword ptr [ebx + 0x100] */ 394 /* test edi, edi */ /* 0x2B04CC71: test edi, edi */ 395 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 396 _cf = 0; 397 _flag_k = FK_TEST; 398 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CCBC; /* 0x2B04CC73: je 0x2b04ccbc */ 399 L_2B04CC75: 400 eax = MEM32(edi + 0x8); /* 0x2B04CC75: mov eax, dword ptr [edi + 8] */ 401 esi = MEM32(edi + 0x4); /* 0x2B04CC78: mov esi, dword ptr [edi + 4] */ 402 /* cmp esi, eax */ /* 0x2B04CC7B: cmp esi, eax */ 403 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 405 _flag_k = FK_CMP; 406 MEM32(ebp + (-0x10)) = eax; /* 0x2B04CC7D: mov dword ptr [ebp - 0x10], eax */ 407 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CC9F; /* 0x2B04CC80: je 0x2b04cc9f */ 408 L_2B04CC82: 409 ebx = esi + 0x8; /* 0x2B04CC82: lea ebx, [esi + 8] */ 410 L_2B04CC85: 411 PUSH32(esp, 1); /* 0x2B04CC85: push 1 */ 412 ecx = ebx; /* 0x2B04CC87: mov ecx, ebx */ 413 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04CC89: call dword ptr [0x2b0b514c] */ 414 RECOMP_FLAGS_IN(); 415 eax = MEM32(ebp + (-0x10)); /* 0x2B04CC8F: mov eax, dword ptr [ebp - 0x10] */ 416 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 418 esi = esi + 0x30u; /* 0x2B04CC92: add esi, 0x30 */ 419 _flag_k = FK_ADD; 420 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 421 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 422 ebx = ebx + 0x30u; /* 0x2B04CC95: add ebx, 0x30 */ 423 _flag_k = FK_ADD; 424 /* cmp esi, eax */ /* 0x2B04CC98: cmp esi, eax */ 425 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 427 _flag_k = FK_CMP; 428 RECOMP_BACKEDGE(); 429 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CC85; /* 0x2B04CC9A: jne 0x2b04cc85 */ 430 L_2B04CC9C: 431 ebx = MEM32(ebp + (-0x14)); /* 0x2B04CC9C: mov ebx, dword ptr [ebp - 0x14] */ 432 L_2B04CC9F: 433 eax = MEM32(edi + 0x4); /* 0x2B04CC9F: mov eax, dword ptr [edi + 4] */ 434 PUSH32(esp, eax); /* 0x2B04CCA2: push eax */ 435 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CCA3: call 0x2b0ab1ba */ /* not lifted */ 436 RECOMP_FLAGS_IN(); 437 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 438 eax = 0; /* 0x2B04CCA8: xor eax, eax */ 439 _cf = 0; 440 _flag_k = FK_TEST; 441 PUSH32(esp, edi); /* 0x2B04CCAA: push edi */ 442 MEM32(edi + 0x4) = eax; /* 0x2B04CCAB: mov dword ptr [edi + 4], eax */ 443 MEM32(edi + 0x8) = eax; /* 0x2B04CCAE: mov dword ptr [edi + 8], eax */ 444 MEM32(edi + 0xC) = eax; /* 0x2B04CCB1: mov dword ptr [edi + 0xc], eax */ 445 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CCB4: call 0x2b0ab1ba */ /* not lifted */ 446 RECOMP_FLAGS_IN(); 447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 449 esp = esp + 8; /* 0x2B04CCB9: add esp, 8 */ 450 _flag_k = FK_ADD; 451 L_2B04CCBC: 452 edi = MEM32(ebx + 0x104); /* 0x2B04CCBC: mov edi, dword ptr [ebx + 0x104] */ 453 /* test edi, edi */ /* 0x2B04CCC2: test edi, edi */ 454 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 455 _cf = 0; 456 _flag_k = FK_TEST; 457 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CD04; /* 0x2B04CCC4: je 0x2b04cd04 */ 458 L_2B04CCC6: 459 eax = MEM32(edi + 0x8); /* 0x2B04CCC6: mov eax, dword ptr [edi + 8] */ 460 esi = MEM32(edi + 0x4); /* 0x2B04CCC9: mov esi, dword ptr [edi + 4] */ 461 /* cmp esi, eax */ /* 0x2B04CCCC: cmp esi, eax */ 462 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 464 _flag_k = FK_CMP; 465 MEM32(ebp + (-0x10)) = eax; /* 0x2B04CCCE: mov dword ptr [ebp - 0x10], eax */ 466 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CCE7; /* 0x2B04CCD1: je 0x2b04cce7 */ 467 L_2B04CCD3: 468 PUSH32(esp, 1); /* 0x2B04CCD3: push 1 */ 469 ecx = esi; /* 0x2B04CCD5: mov ecx, esi */ 470 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04CCD7: call dword ptr [0x2b0b514c] */ 471 RECOMP_FLAGS_IN(); 472 eax = MEM32(ebp + (-0x10)); /* 0x2B04CCDD: mov eax, dword ptr [ebp - 0x10] */ 473 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 475 esi = esi + 0x30u; /* 0x2B04CCE0: add esi, 0x30 */ 476 _flag_k = FK_ADD; 477 /* cmp esi, eax */ /* 0x2B04CCE3: cmp esi, eax */ 478 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 480 _flag_k = FK_CMP; 481 RECOMP_BACKEDGE(); 482 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CCD3; /* 0x2B04CCE5: jne 0x2b04ccd3 */ 483 L_2B04CCE7: 484 eax = MEM32(edi + 0x4); /* 0x2B04CCE7: mov eax, dword ptr [edi + 4] */ 485 PUSH32(esp, eax); /* 0x2B04CCEA: push eax */ 486 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CCEB: call 0x2b0ab1ba */ /* not lifted */ 487 RECOMP_FLAGS_IN(); 488 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 489 eax = 0; /* 0x2B04CCF0: xor eax, eax */ 490 _cf = 0; 491 _flag_k = FK_TEST; 492 PUSH32(esp, edi); /* 0x2B04CCF2: push edi */ 493 MEM32(edi + 0x4) = eax; /* 0x2B04CCF3: mov dword ptr [edi + 4], eax */ 494 MEM32(edi + 0x8) = eax; /* 0x2B04CCF6: mov dword ptr [edi + 8], eax */ 495 MEM32(edi + 0xC) = eax; /* 0x2B04CCF9: mov dword ptr [edi + 0xc], eax */ 496 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CCFC: call 0x2b0ab1ba */ /* not lifted */ 497 RECOMP_FLAGS_IN(); 498 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 499 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 500 esp = esp + 8; /* 0x2B04CD01: add esp, 8 */ 501 _flag_k = FK_ADD; 502 L_2B04CD04: 503 eax = MEM32(ebx + 0x18C); /* 0x2B04CD04: mov eax, dword ptr [ebx + 0x18c] */ 504 esi = MEM32(0x2B0B5F80); /* 0x2B04CD0A: mov esi, dword ptr [0x2b0b5f80] */ 505 PUSH32(esp, eax); /* 0x2B04CD10: push eax */ 506 RECOMP_ICALL(esi); /* 0x2B04CD11: call esi */ 507 RECOMP_FLAGS_IN(); 508 edi = MEM32(0x2B0B5FB8); /* 0x2B04CD13: mov edi, dword ptr [0x2b0b5fb8] */ 509 ecx = eax; /* 0x2B04CD19: mov ecx, eax */ 510 RECOMP_ICALL(edi); /* 0x2B04CD1B: call edi */ 511 RECOMP_FLAGS_IN(); 512 ecx = MEM32(ebx + 0x190); /* 0x2B04CD1D: mov ecx, dword ptr [ebx + 0x190] */ 513 PUSH32(esp, ecx); /* 0x2B04CD23: push ecx */ 514 RECOMP_ICALL(esi); /* 0x2B04CD24: call esi */ 515 RECOMP_FLAGS_IN(); 516 ecx = eax; /* 0x2B04CD26: mov ecx, eax */ 517 RECOMP_ICALL(edi); /* 0x2B04CD28: call edi */ 518 RECOMP_FLAGS_IN(); 519 edi = MEM32(ebx + 0x1A4); /* 0x2B04CD2A: mov edi, dword ptr [ebx + 0x1a4] */ 520 ecx = MEM32(ebx + 0x1B0); /* 0x2B04CD30: mov ecx, dword ptr [ebx + 0x1b0] */ 521 /* test ecx, ecx */ /* 0x2B04CD36: test ecx, ecx */ 522 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 523 _cf = 0; 524 _flag_k = FK_TEST; 525 eax = MEM32(edi); /* 0x2B04CD38: mov eax, dword ptr [edi] */ 526 esi = ebx + 0x1A0; /* 0x2B04CD3A: lea esi, [ebx + 0x1a0] */ 527 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B04CD40: mov byte ptr [ebp - 4], 0 */ 528 MEM32(ebp + (-0x10)) = eax; /* 0x2B04CD44: mov dword ptr [ebp - 0x10], eax */ 529 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04CD86; /* 0x2B04CD47: je 0x2b04cd86 */ 530 L_2B04CD49: 531 ecx = eax; /* 0x2B04CD49: mov ecx, eax */ 532 /* cmp eax, ecx */ /* 0x2B04CD4B: cmp eax, ecx */ 533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 535 _flag_k = FK_CMP; 536 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CD86; /* 0x2B04CD4D: jne 0x2b04cd86 */ 537 L_2B04CD4F: 538 /* cmp edi, edi */ /* 0x2B04CD4F: cmp edi, edi */ 539 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 541 _flag_k = FK_CMP; 542 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CD86; /* 0x2B04CD51: jne 0x2b04cd86 */ 543 L_2B04CD53: 544 edx = MEM32(edi + 0x4); /* 0x2B04CD53: mov edx, dword ptr [edi + 4] */ 545 PUSH32(esp, edx); /* 0x2B04CD56: push edx */ 546 ecx = esi; /* 0x2B04CD57: mov ecx, esi */ 547 RECOMP_ICALL(0x2B0525D0u); /* 0x2B04CD59: call 0x2b0525d0 */ /* not lifted */ 548 RECOMP_FLAGS_IN(); 549 eax = MEM32(esi + 0x4); /* 0x2B04CD5E: mov eax, dword ptr [esi + 4] */ 550 ecx = MEM32(esi + 0x8); /* 0x2B04CD61: mov ecx, dword ptr [esi + 8] */ 551 MEM32(eax + 0x4) = ecx; /* 0x2B04CD64: mov dword ptr [eax + 4], ecx */ 552 eax = MEM32(esi + 0x4); /* 0x2B04CD67: mov eax, dword ptr [esi + 4] */ 553 MEM32(esi + 0x10) = 0; /* 0x2B04CD6A: mov dword ptr [esi + 0x10], 0 */ 554 MEM32(eax) = eax; /* 0x2B04CD71: mov dword ptr [eax], eax */ 555 eax = MEM32(esi + 0x4); /* 0x2B04CD73: mov eax, dword ptr [esi + 4] */ 556 edx = ebp + (-0x18); /* 0x2B04CD76: lea edx, [ebp - 0x18] */ 557 PUSH32(esp, edx); /* 0x2B04CD79: push edx */ 558 ecx = esi; /* 0x2B04CD7A: mov ecx, esi */ 559 MEM32(eax + 0x8) = eax; /* 0x2B04CD7C: mov dword ptr [eax + 8], eax */ 560 RECOMP_ICALL(0x2B018B60u); /* 0x2B04CD7F: call 0x2b018b60 */ /* not lifted */ 561 RECOMP_FLAGS_IN(); 562 goto L_2B04CDAB; /* 0x2B04CD84: jmp 0x2b04cdab */ 563 L_2B04CD86: 564 /* cmp eax, edi */ /* 0x2B04CD86: cmp eax, edi */ 565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 567 _flag_k = FK_CMP; 568 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CDAB; /* 0x2B04CD88: je 0x2b04cdab */ 569 L_2B04CD8A: 570 ecx = ebp + (-0x10); /* 0x2B04CD8A: lea ecx, [ebp - 0x10] */ 571 MEM32(ebp + (-0x18)) = eax; /* 0x2B04CD8D: mov dword ptr [ebp - 0x18], eax */ 572 RECOMP_ICALL(0x2B0199D0u); /* 0x2B04CD90: call 0x2b0199d0 */ /* not lifted */ 573 RECOMP_FLAGS_IN(); 574 eax = MEM32(ebp + (-0x18)); /* 0x2B04CD95: mov eax, dword ptr [ebp - 0x18] */ 575 PUSH32(esp, eax); /* 0x2B04CD98: push eax */ 576 ecx = ebp + (-0x1C); /* 0x2B04CD99: lea ecx, [ebp - 0x1c] */ 577 PUSH32(esp, ecx); /* 0x2B04CD9C: push ecx */ 578 ecx = esi; /* 0x2B04CD9D: mov ecx, esi */ 579 RECOMP_ICALL(0x2B052200u); /* 0x2B04CD9F: call 0x2b052200 */ /* not lifted */ 580 RECOMP_FLAGS_IN(); 581 eax = MEM32(ebp + (-0x10)); /* 0x2B04CDA4: mov eax, dword ptr [ebp - 0x10] */ 582 /* cmp eax, edi */ /* 0x2B04CDA7: cmp eax, edi */ 583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 585 _flag_k = FK_CMP; 586 RECOMP_BACKEDGE(); 587 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CD8A; /* 0x2B04CDA9: jne 0x2b04cd8a */ 588 L_2B04CDAB: 589 eax = MEM32(esi + 0x4); /* 0x2B04CDAB: mov eax, dword ptr [esi + 4] */ 590 PUSH32(esp, eax); /* 0x2B04CDAE: push eax */ 591 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CDAF: call 0x2b0ab1ba */ /* not lifted */ 592 RECOMP_FLAGS_IN(); 593 eax = MEM32(esi + 0x8); /* 0x2B04CDB4: mov eax, dword ptr [esi + 8] */ 594 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 595 edi = 0; /* 0x2B04CDB7: xor edi, edi */ 596 _cf = 0; 597 _flag_k = FK_TEST; 598 PUSH32(esp, eax); /* 0x2B04CDB9: push eax */ 599 MEM32(esi + 0x4) = edi; /* 0x2B04CDBA: mov dword ptr [esi + 4], edi */ 600 MEM32(esi + 0x10) = edi; /* 0x2B04CDBD: mov dword ptr [esi + 0x10], edi */ 601 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04CDC0: call 0x2b0ab1ba */ /* not lifted */ 602 RECOMP_FLAGS_IN(); 603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 605 esp = esp + 8; /* 0x2B04CDC5: add esp, 8 */ 606 _flag_k = FK_ADD; 607 ecx = ebx; /* 0x2B04CDC8: mov ecx, ebx */ 608 MEM32(esi + 0x8) = edi; /* 0x2B04CDCA: mov dword ptr [esi + 8], edi */ 609 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04CDCD: mov dword ptr [ebp - 4], 0xffffffff */ 610 RECOMP_ICALL(0x2B03A290u); /* 0x2B04CDD4: call 0x2b03a290 */ /* not lifted */ 611 RECOMP_FLAGS_IN(); 612 ecx = MEM32(ebp + (-0xC)); /* 0x2B04CDD9: mov ecx, dword ptr [ebp - 0xc] */ 613 edi = POP32_VAL(esp); /* 0x2B04CDDC: pop edi */ 614 esi = POP32_VAL(esp); /* 0x2B04CDDD: pop esi */ 615 ebx = POP32_VAL(esp); /* 0x2B04CDDE: pop ebx */ 616 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04CDDF: mov dword ptr fs:[0], ecx */ 617 esp = ebp; /* 0x2B04CDE6: mov esp, ebp */ 618 ebp = POP32_VAL(esp); /* 0x2B04CDE8: pop ebp */ 619 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04CDE9: ret */ 620 RECOMP_REGS_OUT(); 621 } 622 623 void sub_2B04CDF0(void) { 624 int _fpu_cmp = 0; 625 uint32_t _cf = 0; 626 int _df = 1; 627 uint32_t _flag_k = FK_NONE; 628 uint32_t _flag_a = 0, _flag_b = 0; 629 uint32_t _itail_tgt = 0; 630 RECOMP_REGS_LOCALS 631 RECOMP_ENTER(0x2B04CDF0u); 632 633 L_2B04CDF0: 634 PUSH32(esp, ebp); /* 0x2B04CDF0: push ebp */ 635 ebp = esp; /* 0x2B04CDF1: mov ebp, esp */ 636 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B04CDF3: push -1 */ 637 PUSH32(esp, 0x2B0AF7CBu); /* 0x2B04CDF5: push 0x2b0af7cb */ 638 eax = MEM32(FS_BASE + (0)); /* 0x2B04CDFA: mov eax, dword ptr fs:[0] */ 639 PUSH32(esp, eax); /* 0x2B04CE00: push eax */ 640 MEM32(FS_BASE + (0)) = esp; /* 0x2B04CE01: mov dword ptr fs:[0], esp */ 641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5D4u); 642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 643 esp = esp - 0x5D4u; /* 0x2B04CE08: sub esp, 0x5d4 */ 644 _flag_k = FK_CMP; 645 eax = MEM32(0x2B0B5BCC); /* 0x2B04CE0E: mov eax, dword ptr [0x2b0b5bcc] */ 646 PUSH32(esp, ebx); /* 0x2B04CE13: push ebx */ 647 MEM32(ebp + (-0x80)) = ecx; /* 0x2B04CE14: mov dword ptr [ebp - 0x80], ecx */ 648 ecx = MEM32(eax); /* 0x2B04CE17: mov ecx, dword ptr [eax] */ 649 PUSH32(esp, esi); /* 0x2B04CE19: push esi */ 650 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 651 ebx = 0; /* 0x2B04CE1A: xor ebx, ebx */ 652 _cf = 0; 653 _flag_k = FK_TEST; 654 /* cmp ecx, ebx */ /* 0x2B04CE1C: cmp ecx, ebx */ 655 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 657 _flag_k = FK_CMP; 658 PUSH32(esp, edi); /* 0x2B04CE1E: push edi */ 659 edi = MEM32(0x2B0B5BD0); /* 0x2B04CE1F: mov edi, dword ptr [0x2b0b5bd0] */ 660 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CE52; /* 0x2B04CE25: jne 0x2b04ce52 */ 661 L_2B04CE27: 662 PUSH32(esp, 0x20u); /* 0x2B04CE27: push 0x20 */ 663 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04CE29: call 0x2b0ab212 */ /* not lifted */ 664 RECOMP_FLAGS_IN(); 665 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 667 esp = esp + 4; /* 0x2B04CE2E: add esp, 4 */ 668 _flag_k = FK_ADD; 669 MEM32(ebp + (-0x10)) = eax; /* 0x2B04CE31: mov dword ptr [ebp - 0x10], eax */ 670 /* cmp eax, ebx */ /* 0x2B04CE34: cmp eax, ebx */ 671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 673 _flag_k = FK_CMP; 674 MEM32(ebp + (-0x4)) = ebx; /* 0x2B04CE36: mov dword ptr [ebp - 4], ebx */ 675 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CE41; /* 0x2B04CE39: je 0x2b04ce41 */ 676 L_2B04CE3B: 677 ecx = eax; /* 0x2B04CE3B: mov ecx, eax */ 678 RECOMP_ICALL(edi); /* 0x2B04CE3D: call edi */ 679 RECOMP_FLAGS_IN(); 680 goto L_2B04CE43; /* 0x2B04CE3F: jmp 0x2b04ce43 */ 681 L_2B04CE41: 682 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 683 eax = 0; /* 0x2B04CE41: xor eax, eax */ 684 _cf = 0; 685 _flag_k = FK_TEST; 686 L_2B04CE43: 687 ecx = MEM32(0x2B0B5BCC); /* 0x2B04CE43: mov ecx, dword ptr [0x2b0b5bcc] */ 688 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04CE49: mov dword ptr [ebp - 4], 0xffffffff */ 689 MEM32(ecx) = eax; /* 0x2B04CE50: mov dword ptr [ecx], eax */ 690 L_2B04CE52: 691 edx = MEM32(0x2B0B5BCC); /* 0x2B04CE52: mov edx, dword ptr [0x2b0b5bcc] */ 692 ecx = MEM32(edx); /* 0x2B04CE58: mov ecx, dword ptr [edx] */ 693 esi = MEM32(0x2B0B5B94); /* 0x2B04CE5A: mov esi, dword ptr [0x2b0b5b94] */ 694 PUSH32(esp, 2); /* 0x2B04CE60: push 2 */ 695 RECOMP_ICALL(esi); /* 0x2B04CE62: call esi */ 696 RECOMP_FLAGS_IN(); 697 MEM32(ebp + (-0x18)) = eax; /* 0x2B04CE64: mov dword ptr [ebp - 0x18], eax */ 698 eax = MEM32(0x2B0B5BCC); /* 0x2B04CE67: mov eax, dword ptr [0x2b0b5bcc] */ 699 /* cmp MEM32(eax), ebx */ /* 0x2B04CE6C: cmp dword ptr [eax], ebx */ 700 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 702 _flag_k = FK_CMP; 703 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CE9F; /* 0x2B04CE6E: jne 0x2b04ce9f */ 704 L_2B04CE70: 705 PUSH32(esp, 0x20u); /* 0x2B04CE70: push 0x20 */ 706 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04CE72: call 0x2b0ab212 */ /* not lifted */ 707 RECOMP_FLAGS_IN(); 708 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 709 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 710 esp = esp + 4; /* 0x2B04CE77: add esp, 4 */ 711 _flag_k = FK_ADD; 712 MEM32(ebp + (-0x10)) = eax; /* 0x2B04CE7A: mov dword ptr [ebp - 0x10], eax */ 713 /* cmp eax, ebx */ /* 0x2B04CE7D: cmp eax, ebx */ 714 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 716 _flag_k = FK_CMP; 717 MEM32(ebp + (-0x4)) = 1; /* 0x2B04CE7F: mov dword ptr [ebp - 4], 1 */ 718 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CE8E; /* 0x2B04CE86: je 0x2b04ce8e */ 719 L_2B04CE88: 720 ecx = eax; /* 0x2B04CE88: mov ecx, eax */ 721 RECOMP_ICALL(edi); /* 0x2B04CE8A: call edi */ 722 RECOMP_FLAGS_IN(); 723 goto L_2B04CE90; /* 0x2B04CE8C: jmp 0x2b04ce90 */ 724 L_2B04CE8E: 725 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 726 eax = 0; /* 0x2B04CE8E: xor eax, eax */ 727 _cf = 0; 728 _flag_k = FK_TEST; 729 L_2B04CE90: 730 ecx = MEM32(0x2B0B5BCC); /* 0x2B04CE90: mov ecx, dword ptr [0x2b0b5bcc] */ 731 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04CE96: mov dword ptr [ebp - 4], 0xffffffff */ 732 MEM32(ecx) = eax; /* 0x2B04CE9D: mov dword ptr [ecx], eax */ 733 L_2B04CE9F: 734 edx = MEM32(0x2B0B5BCC); /* 0x2B04CE9F: mov edx, dword ptr [0x2b0b5bcc] */ 735 ecx = MEM32(edx); /* 0x2B04CEA5: mov ecx, dword ptr [edx] */ 736 PUSH32(esp, 2); /* 0x2B04CEA7: push 2 */ 737 RECOMP_ICALL(esi); /* 0x2B04CEA9: call esi */ 738 RECOMP_FLAGS_IN(); 739 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04CEAB: mov dword ptr [ebp - 0x1c], eax */ 740 eax = ebp + (-0x18); /* 0x2B04CEAE: lea eax, [ebp - 0x18] */ 741 PUSH32(esp, eax); /* 0x2B04CEB1: push eax */ 742 ecx = ebp + (-0x1C); /* 0x2B04CEB2: lea ecx, [ebp - 0x1c] */ 743 PUSH32(esp, ecx); /* 0x2B04CEB5: push ecx */ 744 ecx = ebp + (-0x40); /* 0x2B04CEB6: lea ecx, [ebp - 0x40] */ 745 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04CEB9: call 0x2b053ac0 */ /* not lifted */ 746 RECOMP_FLAGS_IN(); 747 edx = MEM32(eax); /* 0x2B04CEBE: mov edx, dword ptr [eax] */ 748 eax = MEM32(eax + 0x4); /* 0x2B04CEC0: mov eax, dword ptr [eax + 4] */ 749 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04CEC3: mov cl, byte ptr [ebp + 0xb] */ 750 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(ecx)); /* 0x2B04CEC6: mov byte ptr [ebp - 0x38], cl */ 751 PUSH32(esp, ebx); /* 0x2B04CEC9: push ebx */ 752 ecx = ebp + (-0x38); /* 0x2B04CECA: lea ecx, [ebp - 0x38] */ 753 MEM32(ebp + (-0x24)) = edx; /* 0x2B04CECD: mov dword ptr [ebp - 0x24], edx */ 754 MEM32(ebp + (-0x20)) = eax; /* 0x2B04CED0: mov dword ptr [ebp - 0x20], eax */ 755 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04CED3: call dword ptr [0x2b0b514c] */ 756 RECOMP_FLAGS_IN(); 757 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 758 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04CED9: or ecx, 0xffffffff */ 759 _cf = 0; 760 _flag_k = FK_TEST; 761 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 762 eax = 0; /* 0x2B04CEDC: xor eax, eax */ 763 _cf = 0; 764 _flag_k = FK_TEST; 765 edi = 0x2B0E1C38u; /* 0x2B04CEDE: mov edi, 0x2b0e1c38 */ 766 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; } /* 0x2B04CEE3: repne scasb al, byte ptr es:[edi] */ 767 ecx = ~ecx; /* 0x2B04CEE5: not ecx */ 768 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 769 ecx = ecx - 1; /* 0x2B04CEE7: dec ecx */ 770 _flag_k = FK_DEC; 771 PUSH32(esp, ecx); /* 0x2B04CEE8: push ecx */ 772 PUSH32(esp, 0x2B0E1C38u); /* 0x2B04CEE9: push 0x2b0e1c38 */ 773 ecx = ebp + (-0x38); /* 0x2B04CEEE: lea ecx, [ebp - 0x38] */ 774 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04CEF1: call dword ptr [0x2b0b5148] */ 775 RECOMP_FLAGS_IN(); 776 edx = ebp + (-0x14); /* 0x2B04CEF7: lea edx, [ebp - 0x14] */ 777 PUSH32(esp, edx); /* 0x2B04CEFA: push edx */ 778 eax = ebp + (-0x38); /* 0x2B04CEFB: lea eax, [ebp - 0x38] */ 779 PUSH32(esp, eax); /* 0x2B04CEFE: push eax */ 780 ecx = ebp + (-0x7C); /* 0x2B04CEFF: lea ecx, [ebp - 0x7c] */ 781 MEM32(ebp + (-0x4)) = 2; /* 0x2B04CF02: mov dword ptr [ebp - 4], 2 */ 782 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04CF09: mov dword ptr [ebp - 0x14], ebx */ 783 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04CF0C: mov dword ptr [ebp - 0x10], ebx */ 784 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04CF0F: call 0x2b051ac0 */ /* not lifted */ 785 RECOMP_FLAGS_IN(); 786 ecx = MEM32(ebp + (-0x80)); /* 0x2B04CF14: mov ecx, dword ptr [ebp - 0x80] */ 787 PUSH32(esp, eax); /* 0x2B04CF17: push eax */ 788 edx = ebp + (-0x40); /* 0x2B04CF18: lea edx, [ebp - 0x40] */ 789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1A0u); 790 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 791 ecx = ecx + 0x1A0u; /* 0x2B04CF1B: add ecx, 0x1a0 */ 792 _flag_k = FK_ADD; 793 PUSH32(esp, edx); /* 0x2B04CF21: push edx */ 794 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04CF22: mov byte ptr [ebp - 4], 3 */ 795 MEM32(ebp + (-0x28)) = ecx; /* 0x2B04CF26: mov dword ptr [ebp - 0x28], ecx */ 796 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04CF29: call 0x2b0519d0 */ /* not lifted */ 797 RECOMP_FLAGS_IN(); 798 edi = MEM32(eax); /* 0x2B04CF2E: mov edi, dword ptr [eax] */ 799 PUSH32(esp, 1); /* 0x2B04CF30: push 1 */ 800 ecx = ebp + (-0x7C); /* 0x2B04CF32: lea ecx, [ebp - 0x7c] */ 801 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04CF35: mov byte ptr [ebp - 4], 2 */ 802 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04CF39: call dword ptr [0x2b0b514c] */ 803 RECOMP_FLAGS_IN(); 804 eax = MEM32(ebp + (-0x24)); /* 0x2B04CF3F: mov eax, dword ptr [ebp - 0x24] */ 805 ecx = MEM32(ebp + (-0x20)); /* 0x2B04CF42: mov ecx, dword ptr [ebp - 0x20] */ 806 MEM32(edi + 0x1C) = eax; /* 0x2B04CF45: mov dword ptr [edi + 0x1c], eax */ 807 MEM32(edi + 0x20) = ecx; /* 0x2B04CF48: mov dword ptr [edi + 0x20], ecx */ 808 PUSH32(esp, 1); /* 0x2B04CF4B: push 1 */ 809 ecx = ebp + (-0x38); /* 0x2B04CF4D: lea ecx, [ebp - 0x38] */ 810 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04CF50: mov dword ptr [ebp - 4], 0xffffffff */ 811 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04CF57: call dword ptr [0x2b0b514c] */ 812 RECOMP_FLAGS_IN(); 813 edx = MEM32(0x2B0B5BCC); /* 0x2B04CF5D: mov edx, dword ptr [0x2b0b5bcc] */ 814 /* cmp MEM32(edx), ebx */ /* 0x2B04CF63: cmp dword ptr [edx], ebx */ 815 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(ebx); 816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 817 _flag_k = FK_CMP; 818 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CF9A; /* 0x2B04CF65: jne 0x2b04cf9a */ 819 L_2B04CF67: 820 PUSH32(esp, 0x20u); /* 0x2B04CF67: push 0x20 */ 821 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04CF69: call 0x2b0ab212 */ /* not lifted */ 822 RECOMP_FLAGS_IN(); 823 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 824 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 825 esp = esp + 4; /* 0x2B04CF6E: add esp, 4 */ 826 _flag_k = FK_ADD; 827 MEM32(ebp + (-0x10)) = eax; /* 0x2B04CF71: mov dword ptr [ebp - 0x10], eax */ 828 /* cmp eax, ebx */ /* 0x2B04CF74: cmp eax, ebx */ 829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 831 _flag_k = FK_CMP; 832 MEM32(ebp + (-0x4)) = 4; /* 0x2B04CF76: mov dword ptr [ebp - 4], 4 */ 833 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CF89; /* 0x2B04CF7D: je 0x2b04cf89 */ 834 L_2B04CF7F: 835 ecx = eax; /* 0x2B04CF7F: mov ecx, eax */ 836 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04CF81: call dword ptr [0x2b0b5bd0] */ 837 RECOMP_FLAGS_IN(); 838 goto L_2B04CF8B; /* 0x2B04CF87: jmp 0x2b04cf8b */ 839 L_2B04CF89: 840 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 841 eax = 0; /* 0x2B04CF89: xor eax, eax */ 842 _cf = 0; 843 _flag_k = FK_TEST; 844 L_2B04CF8B: 845 ecx = MEM32(0x2B0B5BCC); /* 0x2B04CF8B: mov ecx, dword ptr [0x2b0b5bcc] */ 846 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04CF91: mov dword ptr [ebp - 4], 0xffffffff */ 847 MEM32(ecx) = eax; /* 0x2B04CF98: mov dword ptr [ecx], eax */ 848 L_2B04CF9A: 849 edx = MEM32(0x2B0B5BCC); /* 0x2B04CF9A: mov edx, dword ptr [0x2b0b5bcc] */ 850 ecx = MEM32(edx); /* 0x2B04CFA0: mov ecx, dword ptr [edx] */ 851 PUSH32(esp, 3); /* 0x2B04CFA2: push 3 */ 852 RECOMP_ICALL(esi); /* 0x2B04CFA4: call esi */ 853 RECOMP_FLAGS_IN(); 854 MEM32(ebp + (-0x18)) = eax; /* 0x2B04CFA6: mov dword ptr [ebp - 0x18], eax */ 855 eax = MEM32(0x2B0B5BCC); /* 0x2B04CFA9: mov eax, dword ptr [0x2b0b5bcc] */ 856 /* cmp MEM32(eax), ebx */ /* 0x2B04CFAE: cmp dword ptr [eax], ebx */ 857 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 859 _flag_k = FK_CMP; 860 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04CFE5; /* 0x2B04CFB0: jne 0x2b04cfe5 */ 861 L_2B04CFB2: 862 PUSH32(esp, 0x20u); /* 0x2B04CFB2: push 0x20 */ 863 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04CFB4: call 0x2b0ab212 */ /* not lifted */ 864 RECOMP_FLAGS_IN(); 865 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 867 esp = esp + 4; /* 0x2B04CFB9: add esp, 4 */ 868 _flag_k = FK_ADD; 869 MEM32(ebp + (-0x10)) = eax; /* 0x2B04CFBC: mov dword ptr [ebp - 0x10], eax */ 870 /* cmp eax, ebx */ /* 0x2B04CFBF: cmp eax, ebx */ 871 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 873 _flag_k = FK_CMP; 874 MEM32(ebp + (-0x4)) = 5; /* 0x2B04CFC1: mov dword ptr [ebp - 4], 5 */ 875 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04CFD4; /* 0x2B04CFC8: je 0x2b04cfd4 */ 876 L_2B04CFCA: 877 ecx = eax; /* 0x2B04CFCA: mov ecx, eax */ 878 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04CFCC: call dword ptr [0x2b0b5bd0] */ 879 RECOMP_FLAGS_IN(); 880 goto L_2B04CFD6; /* 0x2B04CFD2: jmp 0x2b04cfd6 */ 881 L_2B04CFD4: 882 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 883 eax = 0; /* 0x2B04CFD4: xor eax, eax */ 884 _cf = 0; 885 _flag_k = FK_TEST; 886 L_2B04CFD6: 887 ecx = MEM32(0x2B0B5BCC); /* 0x2B04CFD6: mov ecx, dword ptr [0x2b0b5bcc] */ 888 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04CFDC: mov dword ptr [ebp - 4], 0xffffffff */ 889 MEM32(ecx) = eax; /* 0x2B04CFE3: mov dword ptr [ecx], eax */ 890 L_2B04CFE5: 891 edx = MEM32(0x2B0B5BCC); /* 0x2B04CFE5: mov edx, dword ptr [0x2b0b5bcc] */ 892 ecx = MEM32(edx); /* 0x2B04CFEB: mov ecx, dword ptr [edx] */ 893 PUSH32(esp, 3); /* 0x2B04CFED: push 3 */ 894 RECOMP_ICALL(esi); /* 0x2B04CFEF: call esi */ 895 RECOMP_FLAGS_IN(); 896 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04CFF1: mov dword ptr [ebp - 0x1c], eax */ 897 eax = ebp + (-0x18); /* 0x2B04CFF4: lea eax, [ebp - 0x18] */ 898 PUSH32(esp, eax); /* 0x2B04CFF7: push eax */ 899 ecx = ebp + (-0x1C); /* 0x2B04CFF8: lea ecx, [ebp - 0x1c] */ 900 PUSH32(esp, ecx); /* 0x2B04CFFB: push ecx */ 901 ecx = ebp + (-0x40); /* 0x2B04CFFC: lea ecx, [ebp - 0x40] */ 902 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04CFFF: call 0x2b053ac0 */ /* not lifted */ 903 RECOMP_FLAGS_IN(); 904 edx = MEM32(eax); /* 0x2B04D004: mov edx, dword ptr [eax] */ 905 eax = MEM32(eax + 0x4); /* 0x2B04D006: mov eax, dword ptr [eax + 4] */ 906 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04D009: mov cl, byte ptr [ebp + 0xb] */ 907 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(ecx)); /* 0x2B04D00C: mov byte ptr [ebp - 0x38], cl */ 908 PUSH32(esp, ebx); /* 0x2B04D00F: push ebx */ 909 ecx = ebp + (-0x38); /* 0x2B04D010: lea ecx, [ebp - 0x38] */ 910 MEM32(ebp + (-0x24)) = edx; /* 0x2B04D013: mov dword ptr [ebp - 0x24], edx */ 911 MEM32(ebp + (-0x20)) = eax; /* 0x2B04D016: mov dword ptr [ebp - 0x20], eax */ 912 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D019: call dword ptr [0x2b0b514c] */ 913 RECOMP_FLAGS_IN(); 914 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 915 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04D01F: or ecx, 0xffffffff */ 916 _cf = 0; 917 _flag_k = FK_TEST; 918 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 919 eax = 0; /* 0x2B04D022: xor eax, eax */ 920 _cf = 0; 921 _flag_k = FK_TEST; 922 edi = 0x2B0E1C40u; /* 0x2B04D024: mov edi, 0x2b0e1c40 */ 923 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; } /* 0x2B04D029: repne scasb al, byte ptr es:[edi] */ 924 ecx = ~ecx; /* 0x2B04D02B: not ecx */ 925 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 926 ecx = ecx - 1; /* 0x2B04D02D: dec ecx */ 927 _flag_k = FK_DEC; 928 PUSH32(esp, ecx); /* 0x2B04D02E: push ecx */ 929 PUSH32(esp, 0x2B0E1C40u); /* 0x2B04D02F: push 0x2b0e1c40 */ 930 ecx = ebp + (-0x38); /* 0x2B04D034: lea ecx, [ebp - 0x38] */ 931 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04D037: call dword ptr [0x2b0b5148] */ 932 RECOMP_FLAGS_IN(); 933 edx = ebp + (-0x14); /* 0x2B04D03D: lea edx, [ebp - 0x14] */ 934 PUSH32(esp, edx); /* 0x2B04D040: push edx */ 935 eax = ebp + (-0x38); /* 0x2B04D041: lea eax, [ebp - 0x38] */ 936 PUSH32(esp, eax); /* 0x2B04D044: push eax */ 937 ecx = ebp + (-0x7C); /* 0x2B04D045: lea ecx, [ebp - 0x7c] */ 938 MEM32(ebp + (-0x4)) = 6; /* 0x2B04D048: mov dword ptr [ebp - 4], 6 */ 939 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04D04F: mov dword ptr [ebp - 0x14], ebx */ 940 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04D052: mov dword ptr [ebp - 0x10], ebx */ 941 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04D055: call 0x2b051ac0 */ /* not lifted */ 942 RECOMP_FLAGS_IN(); 943 PUSH32(esp, eax); /* 0x2B04D05A: push eax */ 944 ecx = ebp + (-0x40); /* 0x2B04D05B: lea ecx, [ebp - 0x40] */ 945 PUSH32(esp, ecx); /* 0x2B04D05E: push ecx */ 946 ecx = MEM32(ebp + (-0x28)); /* 0x2B04D05F: mov ecx, dword ptr [ebp - 0x28] */ 947 MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2B04D062: mov byte ptr [ebp - 4], 7 */ 948 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04D066: call 0x2b0519d0 */ /* not lifted */ 949 RECOMP_FLAGS_IN(); 950 edi = MEM32(eax); /* 0x2B04D06B: mov edi, dword ptr [eax] */ 951 PUSH32(esp, 1); /* 0x2B04D06D: push 1 */ 952 ecx = ebp + (-0x7C); /* 0x2B04D06F: lea ecx, [ebp - 0x7c] */ 953 MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2B04D072: mov byte ptr [ebp - 4], 6 */ 954 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D076: call dword ptr [0x2b0b514c] */ 955 RECOMP_FLAGS_IN(); 956 edx = MEM32(ebp + (-0x24)); /* 0x2B04D07C: mov edx, dword ptr [ebp - 0x24] */ 957 eax = MEM32(ebp + (-0x20)); /* 0x2B04D07F: mov eax, dword ptr [ebp - 0x20] */ 958 MEM32(edi + 0x1C) = edx; /* 0x2B04D082: mov dword ptr [edi + 0x1c], edx */ 959 PUSH32(esp, 1); /* 0x2B04D085: push 1 */ 960 ecx = ebp + (-0x38); /* 0x2B04D087: lea ecx, [ebp - 0x38] */ 961 MEM32(edi + 0x20) = eax; /* 0x2B04D08A: mov dword ptr [edi + 0x20], eax */ 962 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D08D: mov dword ptr [ebp - 4], 0xffffffff */ 963 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D094: call dword ptr [0x2b0b514c] */ 964 RECOMP_FLAGS_IN(); 965 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D09A: mov ecx, dword ptr [0x2b0b5bcc] */ 966 /* cmp MEM32(ecx), ebx */ /* 0x2B04D0A0: cmp dword ptr [ecx], ebx */ 967 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 969 _flag_k = FK_CMP; 970 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D0D7; /* 0x2B04D0A2: jne 0x2b04d0d7 */ 971 L_2B04D0A4: 972 PUSH32(esp, 0x20u); /* 0x2B04D0A4: push 0x20 */ 973 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D0A6: call 0x2b0ab212 */ /* not lifted */ 974 RECOMP_FLAGS_IN(); 975 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 977 esp = esp + 4; /* 0x2B04D0AB: add esp, 4 */ 978 _flag_k = FK_ADD; 979 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D0AE: mov dword ptr [ebp - 0x10], eax */ 980 /* cmp eax, ebx */ /* 0x2B04D0B1: cmp eax, ebx */ 981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 983 _flag_k = FK_CMP; 984 MEM32(ebp + (-0x4)) = 8; /* 0x2B04D0B3: mov dword ptr [ebp - 4], 8 */ 985 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D0C6; /* 0x2B04D0BA: je 0x2b04d0c6 */ 986 L_2B04D0BC: 987 ecx = eax; /* 0x2B04D0BC: mov ecx, eax */ 988 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D0BE: call dword ptr [0x2b0b5bd0] */ 989 RECOMP_FLAGS_IN(); 990 goto L_2B04D0C8; /* 0x2B04D0C4: jmp 0x2b04d0c8 */ 991 L_2B04D0C6: 992 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 993 eax = 0; /* 0x2B04D0C6: xor eax, eax */ 994 _cf = 0; 995 _flag_k = FK_TEST; 996 L_2B04D0C8: 997 edx = MEM32(0x2B0B5BCC); /* 0x2B04D0C8: mov edx, dword ptr [0x2b0b5bcc] */ 998 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D0CE: mov dword ptr [ebp - 4], 0xffffffff */ 999 MEM32(edx) = eax; /* 0x2B04D0D5: mov dword ptr [edx], eax */ 1000 L_2B04D0D7: 1001 eax = MEM32(0x2B0B5BCC); /* 0x2B04D0D7: mov eax, dword ptr [0x2b0b5bcc] */ 1002 ecx = MEM32(eax); /* 0x2B04D0DC: mov ecx, dword ptr [eax] */ 1003 PUSH32(esp, 9); /* 0x2B04D0DE: push 9 */ 1004 RECOMP_ICALL(esi); /* 0x2B04D0E0: call esi */ 1005 RECOMP_FLAGS_IN(); 1006 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D0E2: mov ecx, dword ptr [0x2b0b5bcc] */ 1007 MEM32(ebp + (-0x18)) = eax; /* 0x2B04D0E8: mov dword ptr [ebp - 0x18], eax */ 1008 /* cmp MEM32(ecx), ebx */ /* 0x2B04D0EB: cmp dword ptr [ecx], ebx */ 1009 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 1010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1011 _flag_k = FK_CMP; 1012 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D122; /* 0x2B04D0ED: jne 0x2b04d122 */ 1013 L_2B04D0EF: 1014 PUSH32(esp, 0x20u); /* 0x2B04D0EF: push 0x20 */ 1015 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D0F1: call 0x2b0ab212 */ /* not lifted */ 1016 RECOMP_FLAGS_IN(); 1017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1019 esp = esp + 4; /* 0x2B04D0F6: add esp, 4 */ 1020 _flag_k = FK_ADD; 1021 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D0F9: mov dword ptr [ebp - 0x10], eax */ 1022 /* cmp eax, ebx */ /* 0x2B04D0FC: cmp eax, ebx */ 1023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1025 _flag_k = FK_CMP; 1026 MEM32(ebp + (-0x4)) = 9; /* 0x2B04D0FE: mov dword ptr [ebp - 4], 9 */ 1027 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D111; /* 0x2B04D105: je 0x2b04d111 */ 1028 L_2B04D107: 1029 ecx = eax; /* 0x2B04D107: mov ecx, eax */ 1030 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D109: call dword ptr [0x2b0b5bd0] */ 1031 RECOMP_FLAGS_IN(); 1032 goto L_2B04D113; /* 0x2B04D10F: jmp 0x2b04d113 */ 1033 L_2B04D111: 1034 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1035 eax = 0; /* 0x2B04D111: xor eax, eax */ 1036 _cf = 0; 1037 _flag_k = FK_TEST; 1038 L_2B04D113: 1039 edx = MEM32(0x2B0B5BCC); /* 0x2B04D113: mov edx, dword ptr [0x2b0b5bcc] */ 1040 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D119: mov dword ptr [ebp - 4], 0xffffffff */ 1041 MEM32(edx) = eax; /* 0x2B04D120: mov dword ptr [edx], eax */ 1042 L_2B04D122: 1043 eax = MEM32(0x2B0B5BCC); /* 0x2B04D122: mov eax, dword ptr [0x2b0b5bcc] */ 1044 ecx = MEM32(eax); /* 0x2B04D127: mov ecx, dword ptr [eax] */ 1045 PUSH32(esp, 9); /* 0x2B04D129: push 9 */ 1046 RECOMP_ICALL(esi); /* 0x2B04D12B: call esi */ 1047 RECOMP_FLAGS_IN(); 1048 ecx = ebp + (-0x18); /* 0x2B04D12D: lea ecx, [ebp - 0x18] */ 1049 PUSH32(esp, ecx); /* 0x2B04D130: push ecx */ 1050 edx = ebp + (-0x1C); /* 0x2B04D131: lea edx, [ebp - 0x1c] */ 1051 PUSH32(esp, edx); /* 0x2B04D134: push edx */ 1052 ecx = ebp + (-0x40); /* 0x2B04D135: lea ecx, [ebp - 0x40] */ 1053 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04D138: mov dword ptr [ebp - 0x1c], eax */ 1054 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04D13B: call 0x2b053ac0 */ /* not lifted */ 1055 RECOMP_FLAGS_IN(); 1056 ecx = MEM32(eax); /* 0x2B04D140: mov ecx, dword ptr [eax] */ 1057 edx = MEM32(eax + 0x4); /* 0x2B04D142: mov edx, dword ptr [eax + 4] */ 1058 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04D145: mov al, byte ptr [ebp + 0xb] */ 1059 MEM32(ebp + (-0x24)) = ecx; /* 0x2B04D148: mov dword ptr [ebp - 0x24], ecx */ 1060 PUSH32(esp, ebx); /* 0x2B04D14B: push ebx */ 1061 ecx = ebp + (-0x38); /* 0x2B04D14C: lea ecx, [ebp - 0x38] */ 1062 MEM32(ebp + (-0x20)) = edx; /* 0x2B04D14F: mov dword ptr [ebp - 0x20], edx */ 1063 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(eax)); /* 0x2B04D152: mov byte ptr [ebp - 0x38], al */ 1064 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D155: call dword ptr [0x2b0b514c] */ 1065 RECOMP_FLAGS_IN(); 1066 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1067 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04D15B: or ecx, 0xffffffff */ 1068 _cf = 0; 1069 _flag_k = FK_TEST; 1070 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1071 eax = 0; /* 0x2B04D15E: xor eax, eax */ 1072 _cf = 0; 1073 _flag_k = FK_TEST; 1074 edi = 0x2B0E1C48u; /* 0x2B04D160: mov edi, 0x2b0e1c48 */ 1075 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; } /* 0x2B04D165: repne scasb al, byte ptr es:[edi] */ 1076 ecx = ~ecx; /* 0x2B04D167: not ecx */ 1077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1078 ecx = ecx - 1; /* 0x2B04D169: dec ecx */ 1079 _flag_k = FK_DEC; 1080 PUSH32(esp, ecx); /* 0x2B04D16A: push ecx */ 1081 PUSH32(esp, 0x2B0E1C48u); /* 0x2B04D16B: push 0x2b0e1c48 */ 1082 ecx = ebp + (-0x38); /* 0x2B04D170: lea ecx, [ebp - 0x38] */ 1083 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04D173: call dword ptr [0x2b0b5148] */ 1084 RECOMP_FLAGS_IN(); 1085 ecx = ebp + (-0x14); /* 0x2B04D179: lea ecx, [ebp - 0x14] */ 1086 PUSH32(esp, ecx); /* 0x2B04D17C: push ecx */ 1087 edx = ebp + (-0x38); /* 0x2B04D17D: lea edx, [ebp - 0x38] */ 1088 PUSH32(esp, edx); /* 0x2B04D180: push edx */ 1089 ecx = ebp + (-0x7C); /* 0x2B04D181: lea ecx, [ebp - 0x7c] */ 1090 MEM32(ebp + (-0x4)) = 0xAu; /* 0x2B04D184: mov dword ptr [ebp - 4], 0xa */ 1091 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04D18B: mov dword ptr [ebp - 0x14], ebx */ 1092 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04D18E: mov dword ptr [ebp - 0x10], ebx */ 1093 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04D191: call 0x2b051ac0 */ /* not lifted */ 1094 RECOMP_FLAGS_IN(); 1095 ecx = MEM32(ebp + (-0x28)); /* 0x2B04D196: mov ecx, dword ptr [ebp - 0x28] */ 1096 PUSH32(esp, eax); /* 0x2B04D199: push eax */ 1097 eax = ebp + (-0x40); /* 0x2B04D19A: lea eax, [ebp - 0x40] */ 1098 PUSH32(esp, eax); /* 0x2B04D19D: push eax */ 1099 MEM8(ebp + (-0x4)) = (uint8_t)(0xBu); /* 0x2B04D19E: mov byte ptr [ebp - 4], 0xb */ 1100 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04D1A2: call 0x2b0519d0 */ /* not lifted */ 1101 RECOMP_FLAGS_IN(); 1102 edi = MEM32(eax); /* 0x2B04D1A7: mov edi, dword ptr [eax] */ 1103 PUSH32(esp, 1); /* 0x2B04D1A9: push 1 */ 1104 ecx = ebp + (-0x7C); /* 0x2B04D1AB: lea ecx, [ebp - 0x7c] */ 1105 MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x2B04D1AE: mov byte ptr [ebp - 4], 0xa */ 1106 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D1B2: call dword ptr [0x2b0b514c] */ 1107 RECOMP_FLAGS_IN(); 1108 ecx = MEM32(ebp + (-0x24)); /* 0x2B04D1B8: mov ecx, dword ptr [ebp - 0x24] */ 1109 edx = MEM32(ebp + (-0x20)); /* 0x2B04D1BB: mov edx, dword ptr [ebp - 0x20] */ 1110 MEM32(edi + 0x1C) = ecx; /* 0x2B04D1BE: mov dword ptr [edi + 0x1c], ecx */ 1111 PUSH32(esp, 1); /* 0x2B04D1C1: push 1 */ 1112 ecx = ebp + (-0x38); /* 0x2B04D1C3: lea ecx, [ebp - 0x38] */ 1113 MEM32(edi + 0x20) = edx; /* 0x2B04D1C6: mov dword ptr [edi + 0x20], edx */ 1114 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D1C9: mov dword ptr [ebp - 4], 0xffffffff */ 1115 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D1D0: call dword ptr [0x2b0b514c] */ 1116 RECOMP_FLAGS_IN(); 1117 eax = MEM32(0x2B0B5BCC); /* 0x2B04D1D6: mov eax, dword ptr [0x2b0b5bcc] */ 1118 /* cmp MEM32(eax), ebx */ /* 0x2B04D1DB: cmp dword ptr [eax], ebx */ 1119 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 1120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1121 _flag_k = FK_CMP; 1122 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D212; /* 0x2B04D1DD: jne 0x2b04d212 */ 1123 L_2B04D1DF: 1124 PUSH32(esp, 0x20u); /* 0x2B04D1DF: push 0x20 */ 1125 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D1E1: call 0x2b0ab212 */ /* not lifted */ 1126 RECOMP_FLAGS_IN(); 1127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1129 esp = esp + 4; /* 0x2B04D1E6: add esp, 4 */ 1130 _flag_k = FK_ADD; 1131 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D1E9: mov dword ptr [ebp - 0x10], eax */ 1132 /* cmp eax, ebx */ /* 0x2B04D1EC: cmp eax, ebx */ 1133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1135 _flag_k = FK_CMP; 1136 MEM32(ebp + (-0x4)) = 0xCu; /* 0x2B04D1EE: mov dword ptr [ebp - 4], 0xc */ 1137 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D201; /* 0x2B04D1F5: je 0x2b04d201 */ 1138 L_2B04D1F7: 1139 ecx = eax; /* 0x2B04D1F7: mov ecx, eax */ 1140 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D1F9: call dword ptr [0x2b0b5bd0] */ 1141 RECOMP_FLAGS_IN(); 1142 goto L_2B04D203; /* 0x2B04D1FF: jmp 0x2b04d203 */ 1143 L_2B04D201: 1144 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1145 eax = 0; /* 0x2B04D201: xor eax, eax */ 1146 _cf = 0; 1147 _flag_k = FK_TEST; 1148 L_2B04D203: 1149 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D203: mov ecx, dword ptr [0x2b0b5bcc] */ 1150 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D209: mov dword ptr [ebp - 4], 0xffffffff */ 1151 MEM32(ecx) = eax; /* 0x2B04D210: mov dword ptr [ecx], eax */ 1152 L_2B04D212: 1153 edx = MEM32(0x2B0B5BCC); /* 0x2B04D212: mov edx, dword ptr [0x2b0b5bcc] */ 1154 ecx = MEM32(edx); /* 0x2B04D218: mov ecx, dword ptr [edx] */ 1155 PUSH32(esp, 5); /* 0x2B04D21A: push 5 */ 1156 RECOMP_ICALL(esi); /* 0x2B04D21C: call esi */ 1157 RECOMP_FLAGS_IN(); 1158 MEM32(ebp + (-0x18)) = eax; /* 0x2B04D21E: mov dword ptr [ebp - 0x18], eax */ 1159 eax = MEM32(0x2B0B5BCC); /* 0x2B04D221: mov eax, dword ptr [0x2b0b5bcc] */ 1160 /* cmp MEM32(eax), ebx */ /* 0x2B04D226: cmp dword ptr [eax], ebx */ 1161 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 1162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1163 _flag_k = FK_CMP; 1164 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D25D; /* 0x2B04D228: jne 0x2b04d25d */ 1165 L_2B04D22A: 1166 PUSH32(esp, 0x20u); /* 0x2B04D22A: push 0x20 */ 1167 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D22C: call 0x2b0ab212 */ /* not lifted */ 1168 RECOMP_FLAGS_IN(); 1169 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1170 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1171 esp = esp + 4; /* 0x2B04D231: add esp, 4 */ 1172 _flag_k = FK_ADD; 1173 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D234: mov dword ptr [ebp - 0x10], eax */ 1174 /* cmp eax, ebx */ /* 0x2B04D237: cmp eax, ebx */ 1175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1177 _flag_k = FK_CMP; 1178 MEM32(ebp + (-0x4)) = 0xDu; /* 0x2B04D239: mov dword ptr [ebp - 4], 0xd */ 1179 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D24C; /* 0x2B04D240: je 0x2b04d24c */ 1180 L_2B04D242: 1181 ecx = eax; /* 0x2B04D242: mov ecx, eax */ 1182 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D244: call dword ptr [0x2b0b5bd0] */ 1183 RECOMP_FLAGS_IN(); 1184 goto L_2B04D24E; /* 0x2B04D24A: jmp 0x2b04d24e */ 1185 L_2B04D24C: 1186 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1187 eax = 0; /* 0x2B04D24C: xor eax, eax */ 1188 _cf = 0; 1189 _flag_k = FK_TEST; 1190 L_2B04D24E: 1191 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D24E: mov ecx, dword ptr [0x2b0b5bcc] */ 1192 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D254: mov dword ptr [ebp - 4], 0xffffffff */ 1193 MEM32(ecx) = eax; /* 0x2B04D25B: mov dword ptr [ecx], eax */ 1194 L_2B04D25D: 1195 edx = MEM32(0x2B0B5BCC); /* 0x2B04D25D: mov edx, dword ptr [0x2b0b5bcc] */ 1196 ecx = MEM32(edx); /* 0x2B04D263: mov ecx, dword ptr [edx] */ 1197 PUSH32(esp, 5); /* 0x2B04D265: push 5 */ 1198 RECOMP_ICALL(esi); /* 0x2B04D267: call esi */ 1199 RECOMP_FLAGS_IN(); 1200 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04D269: mov dword ptr [ebp - 0x1c], eax */ 1201 eax = ebp + (-0x18); /* 0x2B04D26C: lea eax, [ebp - 0x18] */ 1202 PUSH32(esp, eax); /* 0x2B04D26F: push eax */ 1203 ecx = ebp + (-0x1C); /* 0x2B04D270: lea ecx, [ebp - 0x1c] */ 1204 PUSH32(esp, ecx); /* 0x2B04D273: push ecx */ 1205 ecx = ebp + (-0x40); /* 0x2B04D274: lea ecx, [ebp - 0x40] */ 1206 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04D277: call 0x2b053ac0 */ /* not lifted */ 1207 RECOMP_FLAGS_IN(); 1208 edx = MEM32(eax); /* 0x2B04D27C: mov edx, dword ptr [eax] */ 1209 eax = MEM32(eax + 0x4); /* 0x2B04D27E: mov eax, dword ptr [eax + 4] */ 1210 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04D281: mov cl, byte ptr [ebp + 0xb] */ 1211 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(ecx)); /* 0x2B04D284: mov byte ptr [ebp - 0x38], cl */ 1212 PUSH32(esp, ebx); /* 0x2B04D287: push ebx */ 1213 ecx = ebp + (-0x38); /* 0x2B04D288: lea ecx, [ebp - 0x38] */ 1214 MEM32(ebp + (-0x24)) = edx; /* 0x2B04D28B: mov dword ptr [ebp - 0x24], edx */ 1215 MEM32(ebp + (-0x20)) = eax; /* 0x2B04D28E: mov dword ptr [ebp - 0x20], eax */ 1216 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D291: call dword ptr [0x2b0b514c] */ 1217 RECOMP_FLAGS_IN(); 1218 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1219 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04D297: or ecx, 0xffffffff */ 1220 _cf = 0; 1221 _flag_k = FK_TEST; 1222 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1223 eax = 0; /* 0x2B04D29A: xor eax, eax */ 1224 _cf = 0; 1225 _flag_k = FK_TEST; 1226 edi = 0x2B0E1C50u; /* 0x2B04D29C: mov edi, 0x2b0e1c50 */ 1227 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; } /* 0x2B04D2A1: repne scasb al, byte ptr es:[edi] */ 1228 ecx = ~ecx; /* 0x2B04D2A3: not ecx */ 1229 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1230 ecx = ecx - 1; /* 0x2B04D2A5: dec ecx */ 1231 _flag_k = FK_DEC; 1232 PUSH32(esp, ecx); /* 0x2B04D2A6: push ecx */ 1233 PUSH32(esp, 0x2B0E1C50u); /* 0x2B04D2A7: push 0x2b0e1c50 */ 1234 ecx = ebp + (-0x38); /* 0x2B04D2AC: lea ecx, [ebp - 0x38] */ 1235 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04D2AF: call dword ptr [0x2b0b5148] */ 1236 RECOMP_FLAGS_IN(); 1237 edx = ebp + (-0x14); /* 0x2B04D2B5: lea edx, [ebp - 0x14] */ 1238 PUSH32(esp, edx); /* 0x2B04D2B8: push edx */ 1239 eax = ebp + (-0x38); /* 0x2B04D2B9: lea eax, [ebp - 0x38] */ 1240 PUSH32(esp, eax); /* 0x2B04D2BC: push eax */ 1241 ecx = ebp + (-0x7C); /* 0x2B04D2BD: lea ecx, [ebp - 0x7c] */ 1242 MEM32(ebp + (-0x4)) = 0xEu; /* 0x2B04D2C0: mov dword ptr [ebp - 4], 0xe */ 1243 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04D2C7: mov dword ptr [ebp - 0x14], ebx */ 1244 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04D2CA: mov dword ptr [ebp - 0x10], ebx */ 1245 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04D2CD: call 0x2b051ac0 */ /* not lifted */ 1246 RECOMP_FLAGS_IN(); 1247 PUSH32(esp, eax); /* 0x2B04D2D2: push eax */ 1248 ecx = ebp + (-0x40); /* 0x2B04D2D3: lea ecx, [ebp - 0x40] */ 1249 PUSH32(esp, ecx); /* 0x2B04D2D6: push ecx */ 1250 ecx = MEM32(ebp + (-0x28)); /* 0x2B04D2D7: mov ecx, dword ptr [ebp - 0x28] */ 1251 MEM8(ebp + (-0x4)) = (uint8_t)(0xFu); /* 0x2B04D2DA: mov byte ptr [ebp - 4], 0xf */ 1252 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04D2DE: call 0x2b0519d0 */ /* not lifted */ 1253 RECOMP_FLAGS_IN(); 1254 edi = MEM32(eax); /* 0x2B04D2E3: mov edi, dword ptr [eax] */ 1255 PUSH32(esp, 1); /* 0x2B04D2E5: push 1 */ 1256 ecx = ebp + (-0x7C); /* 0x2B04D2E7: lea ecx, [ebp - 0x7c] */ 1257 MEM8(ebp + (-0x4)) = (uint8_t)(0xEu); /* 0x2B04D2EA: mov byte ptr [ebp - 4], 0xe */ 1258 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D2EE: call dword ptr [0x2b0b514c] */ 1259 RECOMP_FLAGS_IN(); 1260 edx = MEM32(ebp + (-0x24)); /* 0x2B04D2F4: mov edx, dword ptr [ebp - 0x24] */ 1261 eax = MEM32(ebp + (-0x20)); /* 0x2B04D2F7: mov eax, dword ptr [ebp - 0x20] */ 1262 MEM32(edi + 0x1C) = edx; /* 0x2B04D2FA: mov dword ptr [edi + 0x1c], edx */ 1263 PUSH32(esp, 1); /* 0x2B04D2FD: push 1 */ 1264 ecx = ebp + (-0x38); /* 0x2B04D2FF: lea ecx, [ebp - 0x38] */ 1265 MEM32(edi + 0x20) = eax; /* 0x2B04D302: mov dword ptr [edi + 0x20], eax */ 1266 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D305: mov dword ptr [ebp - 4], 0xffffffff */ 1267 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D30C: call dword ptr [0x2b0b514c] */ 1268 RECOMP_FLAGS_IN(); 1269 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D312: mov ecx, dword ptr [0x2b0b5bcc] */ 1270 /* cmp MEM32(ecx), ebx */ /* 0x2B04D318: cmp dword ptr [ecx], ebx */ 1271 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 1272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1273 _flag_k = FK_CMP; 1274 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D34F; /* 0x2B04D31A: jne 0x2b04d34f */ 1275 L_2B04D31C: 1276 PUSH32(esp, 0x20u); /* 0x2B04D31C: push 0x20 */ 1277 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D31E: call 0x2b0ab212 */ /* not lifted */ 1278 RECOMP_FLAGS_IN(); 1279 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1280 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1281 esp = esp + 4; /* 0x2B04D323: add esp, 4 */ 1282 _flag_k = FK_ADD; 1283 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D326: mov dword ptr [ebp - 0x10], eax */ 1284 /* cmp eax, ebx */ /* 0x2B04D329: cmp eax, ebx */ 1285 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1287 _flag_k = FK_CMP; 1288 MEM32(ebp + (-0x4)) = 0x10u; /* 0x2B04D32B: mov dword ptr [ebp - 4], 0x10 */ 1289 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D33E; /* 0x2B04D332: je 0x2b04d33e */ 1290 L_2B04D334: 1291 ecx = eax; /* 0x2B04D334: mov ecx, eax */ 1292 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D336: call dword ptr [0x2b0b5bd0] */ 1293 RECOMP_FLAGS_IN(); 1294 goto L_2B04D340; /* 0x2B04D33C: jmp 0x2b04d340 */ 1295 L_2B04D33E: 1296 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1297 eax = 0; /* 0x2B04D33E: xor eax, eax */ 1298 _cf = 0; 1299 _flag_k = FK_TEST; 1300 L_2B04D340: 1301 edx = MEM32(0x2B0B5BCC); /* 0x2B04D340: mov edx, dword ptr [0x2b0b5bcc] */ 1302 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D346: mov dword ptr [ebp - 4], 0xffffffff */ 1303 MEM32(edx) = eax; /* 0x2B04D34D: mov dword ptr [edx], eax */ 1304 L_2B04D34F: 1305 eax = MEM32(0x2B0B5BCC); /* 0x2B04D34F: mov eax, dword ptr [0x2b0b5bcc] */ 1306 ecx = MEM32(eax); /* 0x2B04D354: mov ecx, dword ptr [eax] */ 1307 PUSH32(esp, 0x32u); /* 0x2B04D356: push 0x32 */ 1308 RECOMP_ICALL(esi); /* 0x2B04D358: call esi */ 1309 RECOMP_FLAGS_IN(); 1310 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D35A: mov ecx, dword ptr [0x2b0b5bcc] */ 1311 MEM32(ebp + (-0x18)) = eax; /* 0x2B04D360: mov dword ptr [ebp - 0x18], eax */ 1312 /* cmp MEM32(ecx), ebx */ /* 0x2B04D363: cmp dword ptr [ecx], ebx */ 1313 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 1314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1315 _flag_k = FK_CMP; 1316 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D39A; /* 0x2B04D365: jne 0x2b04d39a */ 1317 L_2B04D367: 1318 PUSH32(esp, 0x20u); /* 0x2B04D367: push 0x20 */ 1319 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D369: call 0x2b0ab212 */ /* not lifted */ 1320 RECOMP_FLAGS_IN(); 1321 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1323 esp = esp + 4; /* 0x2B04D36E: add esp, 4 */ 1324 _flag_k = FK_ADD; 1325 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D371: mov dword ptr [ebp - 0x10], eax */ 1326 /* cmp eax, ebx */ /* 0x2B04D374: cmp eax, ebx */ 1327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1329 _flag_k = FK_CMP; 1330 MEM32(ebp + (-0x4)) = 0x11u; /* 0x2B04D376: mov dword ptr [ebp - 4], 0x11 */ 1331 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D389; /* 0x2B04D37D: je 0x2b04d389 */ 1332 L_2B04D37F: 1333 ecx = eax; /* 0x2B04D37F: mov ecx, eax */ 1334 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D381: call dword ptr [0x2b0b5bd0] */ 1335 RECOMP_FLAGS_IN(); 1336 goto L_2B04D38B; /* 0x2B04D387: jmp 0x2b04d38b */ 1337 L_2B04D389: 1338 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1339 eax = 0; /* 0x2B04D389: xor eax, eax */ 1340 _cf = 0; 1341 _flag_k = FK_TEST; 1342 L_2B04D38B: 1343 edx = MEM32(0x2B0B5BCC); /* 0x2B04D38B: mov edx, dword ptr [0x2b0b5bcc] */ 1344 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D391: mov dword ptr [ebp - 4], 0xffffffff */ 1345 MEM32(edx) = eax; /* 0x2B04D398: mov dword ptr [edx], eax */ 1346 L_2B04D39A: 1347 eax = MEM32(0x2B0B5BCC); /* 0x2B04D39A: mov eax, dword ptr [0x2b0b5bcc] */ 1348 ecx = MEM32(eax); /* 0x2B04D39F: mov ecx, dword ptr [eax] */ 1349 PUSH32(esp, 0x32u); /* 0x2B04D3A1: push 0x32 */ 1350 RECOMP_ICALL(esi); /* 0x2B04D3A3: call esi */ 1351 RECOMP_FLAGS_IN(); 1352 ecx = ebp + (-0x18); /* 0x2B04D3A5: lea ecx, [ebp - 0x18] */ 1353 PUSH32(esp, ecx); /* 0x2B04D3A8: push ecx */ 1354 edx = ebp + (-0x1C); /* 0x2B04D3A9: lea edx, [ebp - 0x1c] */ 1355 PUSH32(esp, edx); /* 0x2B04D3AC: push edx */ 1356 ecx = ebp + (-0x40); /* 0x2B04D3AD: lea ecx, [ebp - 0x40] */ 1357 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04D3B0: mov dword ptr [ebp - 0x1c], eax */ 1358 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04D3B3: call 0x2b053ac0 */ /* not lifted */ 1359 RECOMP_FLAGS_IN(); 1360 ecx = MEM32(eax); /* 0x2B04D3B8: mov ecx, dword ptr [eax] */ 1361 edx = MEM32(eax + 0x4); /* 0x2B04D3BA: mov edx, dword ptr [eax + 4] */ 1362 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04D3BD: mov al, byte ptr [ebp + 0xb] */ 1363 MEM32(ebp + (-0x24)) = ecx; /* 0x2B04D3C0: mov dword ptr [ebp - 0x24], ecx */ 1364 PUSH32(esp, ebx); /* 0x2B04D3C3: push ebx */ 1365 ecx = ebp + (-0x38); /* 0x2B04D3C4: lea ecx, [ebp - 0x38] */ 1366 MEM32(ebp + (-0x20)) = edx; /* 0x2B04D3C7: mov dword ptr [ebp - 0x20], edx */ 1367 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(eax)); /* 0x2B04D3CA: mov byte ptr [ebp - 0x38], al */ 1368 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D3CD: call dword ptr [0x2b0b514c] */ 1369 RECOMP_FLAGS_IN(); 1370 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1371 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04D3D3: or ecx, 0xffffffff */ 1372 _cf = 0; 1373 _flag_k = FK_TEST; 1374 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1375 eax = 0; /* 0x2B04D3D6: xor eax, eax */ 1376 _cf = 0; 1377 _flag_k = FK_TEST; 1378 edi = 0x2B0E8414u; /* 0x2B04D3D8: mov edi, 0x2b0e8414 */ 1379 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; } /* 0x2B04D3DD: repne scasb al, byte ptr es:[edi] */ 1380 ecx = ~ecx; /* 0x2B04D3DF: not ecx */ 1381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1382 ecx = ecx - 1; /* 0x2B04D3E1: dec ecx */ 1383 _flag_k = FK_DEC; 1384 PUSH32(esp, ecx); /* 0x2B04D3E2: push ecx */ 1385 PUSH32(esp, 0x2B0E8414u); /* 0x2B04D3E3: push 0x2b0e8414 */ 1386 ecx = ebp + (-0x38); /* 0x2B04D3E8: lea ecx, [ebp - 0x38] */ 1387 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04D3EB: call dword ptr [0x2b0b5148] */ 1388 RECOMP_FLAGS_IN(); 1389 ecx = ebp + (-0x14); /* 0x2B04D3F1: lea ecx, [ebp - 0x14] */ 1390 PUSH32(esp, ecx); /* 0x2B04D3F4: push ecx */ 1391 edx = ebp + (-0x38); /* 0x2B04D3F5: lea edx, [ebp - 0x38] */ 1392 PUSH32(esp, edx); /* 0x2B04D3F8: push edx */ 1393 ecx = ebp + (-0x7C); /* 0x2B04D3F9: lea ecx, [ebp - 0x7c] */ 1394 MEM32(ebp + (-0x4)) = 0x12u; /* 0x2B04D3FC: mov dword ptr [ebp - 4], 0x12 */ 1395 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04D403: mov dword ptr [ebp - 0x14], ebx */ 1396 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04D406: mov dword ptr [ebp - 0x10], ebx */ 1397 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04D409: call 0x2b051ac0 */ /* not lifted */ 1398 RECOMP_FLAGS_IN(); 1399 ecx = MEM32(ebp + (-0x28)); /* 0x2B04D40E: mov ecx, dword ptr [ebp - 0x28] */ 1400 PUSH32(esp, eax); /* 0x2B04D411: push eax */ 1401 eax = ebp + (-0x40); /* 0x2B04D412: lea eax, [ebp - 0x40] */ 1402 PUSH32(esp, eax); /* 0x2B04D415: push eax */ 1403 MEM8(ebp + (-0x4)) = (uint8_t)(0x13u); /* 0x2B04D416: mov byte ptr [ebp - 4], 0x13 */ 1404 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04D41A: call 0x2b0519d0 */ /* not lifted */ 1405 RECOMP_FLAGS_IN(); 1406 edi = MEM32(eax); /* 0x2B04D41F: mov edi, dword ptr [eax] */ 1407 PUSH32(esp, 1); /* 0x2B04D421: push 1 */ 1408 ecx = ebp + (-0x7C); /* 0x2B04D423: lea ecx, [ebp - 0x7c] */ 1409 MEM8(ebp + (-0x4)) = (uint8_t)(0x12u); /* 0x2B04D426: mov byte ptr [ebp - 4], 0x12 */ 1410 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D42A: call dword ptr [0x2b0b514c] */ 1411 RECOMP_FLAGS_IN(); 1412 ecx = MEM32(ebp + (-0x24)); /* 0x2B04D430: mov ecx, dword ptr [ebp - 0x24] */ 1413 edx = MEM32(ebp + (-0x20)); /* 0x2B04D433: mov edx, dword ptr [ebp - 0x20] */ 1414 MEM32(edi + 0x1C) = ecx; /* 0x2B04D436: mov dword ptr [edi + 0x1c], ecx */ 1415 PUSH32(esp, 1); /* 0x2B04D439: push 1 */ 1416 ecx = ebp + (-0x38); /* 0x2B04D43B: lea ecx, [ebp - 0x38] */ 1417 MEM32(edi + 0x20) = edx; /* 0x2B04D43E: mov dword ptr [edi + 0x20], edx */ 1418 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D441: mov dword ptr [ebp - 4], 0xffffffff */ 1419 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D448: call dword ptr [0x2b0b514c] */ 1420 RECOMP_FLAGS_IN(); 1421 eax = MEM32(0x2B0B5BCC); /* 0x2B04D44E: mov eax, dword ptr [0x2b0b5bcc] */ 1422 /* cmp MEM32(eax), ebx */ /* 0x2B04D453: cmp dword ptr [eax], ebx */ 1423 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 1424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1425 _flag_k = FK_CMP; 1426 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D48A; /* 0x2B04D455: jne 0x2b04d48a */ 1427 L_2B04D457: 1428 PUSH32(esp, 0x20u); /* 0x2B04D457: push 0x20 */ 1429 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D459: call 0x2b0ab212 */ /* not lifted */ 1430 RECOMP_FLAGS_IN(); 1431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1433 esp = esp + 4; /* 0x2B04D45E: add esp, 4 */ 1434 _flag_k = FK_ADD; 1435 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D461: mov dword ptr [ebp - 0x10], eax */ 1436 /* cmp eax, ebx */ /* 0x2B04D464: cmp eax, ebx */ 1437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1439 _flag_k = FK_CMP; 1440 MEM32(ebp + (-0x4)) = 0x14u; /* 0x2B04D466: mov dword ptr [ebp - 4], 0x14 */ 1441 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D479; /* 0x2B04D46D: je 0x2b04d479 */ 1442 L_2B04D46F: 1443 ecx = eax; /* 0x2B04D46F: mov ecx, eax */ 1444 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D471: call dword ptr [0x2b0b5bd0] */ 1445 RECOMP_FLAGS_IN(); 1446 goto L_2B04D47B; /* 0x2B04D477: jmp 0x2b04d47b */ 1447 L_2B04D479: 1448 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1449 eax = 0; /* 0x2B04D479: xor eax, eax */ 1450 _cf = 0; 1451 _flag_k = FK_TEST; 1452 L_2B04D47B: 1453 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D47B: mov ecx, dword ptr [0x2b0b5bcc] */ 1454 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D481: mov dword ptr [ebp - 4], 0xffffffff */ 1455 MEM32(ecx) = eax; /* 0x2B04D488: mov dword ptr [ecx], eax */ 1456 L_2B04D48A: 1457 edx = MEM32(0x2B0B5BCC); /* 0x2B04D48A: mov edx, dword ptr [0x2b0b5bcc] */ 1458 ecx = MEM32(edx); /* 0x2B04D490: mov ecx, dword ptr [edx] */ 1459 PUSH32(esp, 7); /* 0x2B04D492: push 7 */ 1460 RECOMP_ICALL(esi); /* 0x2B04D494: call esi */ 1461 RECOMP_FLAGS_IN(); 1462 MEM32(ebp + (-0x18)) = eax; /* 0x2B04D496: mov dword ptr [ebp - 0x18], eax */ 1463 eax = MEM32(0x2B0B5BCC); /* 0x2B04D499: mov eax, dword ptr [0x2b0b5bcc] */ 1464 /* cmp MEM32(eax), ebx */ /* 0x2B04D49E: cmp dword ptr [eax], ebx */ 1465 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 1466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1467 _flag_k = FK_CMP; 1468 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D4D5; /* 0x2B04D4A0: jne 0x2b04d4d5 */ 1469 L_2B04D4A2: 1470 PUSH32(esp, 0x20u); /* 0x2B04D4A2: push 0x20 */ 1471 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D4A4: call 0x2b0ab212 */ /* not lifted */ 1472 RECOMP_FLAGS_IN(); 1473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1475 esp = esp + 4; /* 0x2B04D4A9: add esp, 4 */ 1476 _flag_k = FK_ADD; 1477 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D4AC: mov dword ptr [ebp - 0x10], eax */ 1478 /* cmp eax, ebx */ /* 0x2B04D4AF: cmp eax, ebx */ 1479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1481 _flag_k = FK_CMP; 1482 MEM32(ebp + (-0x4)) = 0x15u; /* 0x2B04D4B1: mov dword ptr [ebp - 4], 0x15 */ 1483 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D4C4; /* 0x2B04D4B8: je 0x2b04d4c4 */ 1484 L_2B04D4BA: 1485 ecx = eax; /* 0x2B04D4BA: mov ecx, eax */ 1486 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D4BC: call dword ptr [0x2b0b5bd0] */ 1487 RECOMP_FLAGS_IN(); 1488 goto L_2B04D4C6; /* 0x2B04D4C2: jmp 0x2b04d4c6 */ 1489 L_2B04D4C4: 1490 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1491 eax = 0; /* 0x2B04D4C4: xor eax, eax */ 1492 _cf = 0; 1493 _flag_k = FK_TEST; 1494 L_2B04D4C6: 1495 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D4C6: mov ecx, dword ptr [0x2b0b5bcc] */ 1496 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D4CC: mov dword ptr [ebp - 4], 0xffffffff */ 1497 MEM32(ecx) = eax; /* 0x2B04D4D3: mov dword ptr [ecx], eax */ 1498 L_2B04D4D5: 1499 edx = MEM32(0x2B0B5BCC); /* 0x2B04D4D5: mov edx, dword ptr [0x2b0b5bcc] */ 1500 ecx = MEM32(edx); /* 0x2B04D4DB: mov ecx, dword ptr [edx] */ 1501 PUSH32(esp, 7); /* 0x2B04D4DD: push 7 */ 1502 RECOMP_ICALL(esi); /* 0x2B04D4DF: call esi */ 1503 RECOMP_FLAGS_IN(); 1504 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04D4E1: mov dword ptr [ebp - 0x1c], eax */ 1505 eax = ebp + (-0x18); /* 0x2B04D4E4: lea eax, [ebp - 0x18] */ 1506 PUSH32(esp, eax); /* 0x2B04D4E7: push eax */ 1507 ecx = ebp + (-0x1C); /* 0x2B04D4E8: lea ecx, [ebp - 0x1c] */ 1508 PUSH32(esp, ecx); /* 0x2B04D4EB: push ecx */ 1509 ecx = ebp + (-0x40); /* 0x2B04D4EC: lea ecx, [ebp - 0x40] */ 1510 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04D4EF: call 0x2b053ac0 */ /* not lifted */ 1511 RECOMP_FLAGS_IN(); 1512 edx = MEM32(eax); /* 0x2B04D4F4: mov edx, dword ptr [eax] */ 1513 eax = MEM32(eax + 0x4); /* 0x2B04D4F6: mov eax, dword ptr [eax + 4] */ 1514 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04D4F9: mov cl, byte ptr [ebp + 0xb] */ 1515 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(ecx)); /* 0x2B04D4FC: mov byte ptr [ebp - 0x38], cl */ 1516 PUSH32(esp, ebx); /* 0x2B04D4FF: push ebx */ 1517 ecx = ebp + (-0x38); /* 0x2B04D500: lea ecx, [ebp - 0x38] */ 1518 MEM32(ebp + (-0x24)) = edx; /* 0x2B04D503: mov dword ptr [ebp - 0x24], edx */ 1519 MEM32(ebp + (-0x20)) = eax; /* 0x2B04D506: mov dword ptr [ebp - 0x20], eax */ 1520 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D509: call dword ptr [0x2b0b514c] */ 1521 RECOMP_FLAGS_IN(); 1522 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1523 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04D50F: or ecx, 0xffffffff */ 1524 _cf = 0; 1525 _flag_k = FK_TEST; 1526 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1527 eax = 0; /* 0x2B04D512: xor eax, eax */ 1528 _cf = 0; 1529 _flag_k = FK_TEST; 1530 edi = 0x2B0E1FC4u; /* 0x2B04D514: mov edi, 0x2b0e1fc4 */ 1531 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; } /* 0x2B04D519: repne scasb al, byte ptr es:[edi] */ 1532 ecx = ~ecx; /* 0x2B04D51B: not ecx */ 1533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1534 ecx = ecx - 1; /* 0x2B04D51D: dec ecx */ 1535 _flag_k = FK_DEC; 1536 PUSH32(esp, ecx); /* 0x2B04D51E: push ecx */ 1537 PUSH32(esp, 0x2B0E1FC4u); /* 0x2B04D51F: push 0x2b0e1fc4 */ 1538 ecx = ebp + (-0x38); /* 0x2B04D524: lea ecx, [ebp - 0x38] */ 1539 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04D527: call dword ptr [0x2b0b5148] */ 1540 RECOMP_FLAGS_IN(); 1541 edx = ebp + (-0x14); /* 0x2B04D52D: lea edx, [ebp - 0x14] */ 1542 PUSH32(esp, edx); /* 0x2B04D530: push edx */ 1543 eax = ebp + (-0x38); /* 0x2B04D531: lea eax, [ebp - 0x38] */ 1544 PUSH32(esp, eax); /* 0x2B04D534: push eax */ 1545 ecx = ebp + (-0x7C); /* 0x2B04D535: lea ecx, [ebp - 0x7c] */ 1546 MEM32(ebp + (-0x4)) = 0x16u; /* 0x2B04D538: mov dword ptr [ebp - 4], 0x16 */ 1547 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04D53F: mov dword ptr [ebp - 0x14], ebx */ 1548 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04D542: mov dword ptr [ebp - 0x10], ebx */ 1549 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04D545: call 0x2b051ac0 */ /* not lifted */ 1550 RECOMP_FLAGS_IN(); 1551 PUSH32(esp, eax); /* 0x2B04D54A: push eax */ 1552 ecx = ebp + (-0x40); /* 0x2B04D54B: lea ecx, [ebp - 0x40] */ 1553 PUSH32(esp, ecx); /* 0x2B04D54E: push ecx */ 1554 ecx = MEM32(ebp + (-0x28)); /* 0x2B04D54F: mov ecx, dword ptr [ebp - 0x28] */ 1555 MEM8(ebp + (-0x4)) = (uint8_t)(0x17u); /* 0x2B04D552: mov byte ptr [ebp - 4], 0x17 */ 1556 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04D556: call 0x2b0519d0 */ /* not lifted */ 1557 RECOMP_FLAGS_IN(); 1558 edi = MEM32(eax); /* 0x2B04D55B: mov edi, dword ptr [eax] */ 1559 PUSH32(esp, 1); /* 0x2B04D55D: push 1 */ 1560 ecx = ebp + (-0x7C); /* 0x2B04D55F: lea ecx, [ebp - 0x7c] */ 1561 MEM8(ebp + (-0x4)) = (uint8_t)(0x16u); /* 0x2B04D562: mov byte ptr [ebp - 4], 0x16 */ 1562 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D566: call dword ptr [0x2b0b514c] */ 1563 RECOMP_FLAGS_IN(); 1564 edx = MEM32(ebp + (-0x24)); /* 0x2B04D56C: mov edx, dword ptr [ebp - 0x24] */ 1565 eax = MEM32(ebp + (-0x20)); /* 0x2B04D56F: mov eax, dword ptr [ebp - 0x20] */ 1566 MEM32(edi + 0x1C) = edx; /* 0x2B04D572: mov dword ptr [edi + 0x1c], edx */ 1567 PUSH32(esp, 1); /* 0x2B04D575: push 1 */ 1568 ecx = ebp + (-0x38); /* 0x2B04D577: lea ecx, [ebp - 0x38] */ 1569 MEM32(edi + 0x20) = eax; /* 0x2B04D57A: mov dword ptr [edi + 0x20], eax */ 1570 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D57D: mov dword ptr [ebp - 4], 0xffffffff */ 1571 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D584: call dword ptr [0x2b0b514c] */ 1572 RECOMP_FLAGS_IN(); 1573 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D58A: mov ecx, dword ptr [0x2b0b5bcc] */ 1574 /* cmp MEM32(ecx), ebx */ /* 0x2B04D590: cmp dword ptr [ecx], ebx */ 1575 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 1576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1577 _flag_k = FK_CMP; 1578 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D5C7; /* 0x2B04D592: jne 0x2b04d5c7 */ 1579 L_2B04D594: 1580 PUSH32(esp, 0x20u); /* 0x2B04D594: push 0x20 */ 1581 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D596: call 0x2b0ab212 */ /* not lifted */ 1582 RECOMP_FLAGS_IN(); 1583 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1584 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1585 esp = esp + 4; /* 0x2B04D59B: add esp, 4 */ 1586 _flag_k = FK_ADD; 1587 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D59E: mov dword ptr [ebp - 0x10], eax */ 1588 /* cmp eax, ebx */ /* 0x2B04D5A1: cmp eax, ebx */ 1589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1591 _flag_k = FK_CMP; 1592 MEM32(ebp + (-0x4)) = 0x18u; /* 0x2B04D5A3: mov dword ptr [ebp - 4], 0x18 */ 1593 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D5B6; /* 0x2B04D5AA: je 0x2b04d5b6 */ 1594 L_2B04D5AC: 1595 ecx = eax; /* 0x2B04D5AC: mov ecx, eax */ 1596 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D5AE: call dword ptr [0x2b0b5bd0] */ 1597 RECOMP_FLAGS_IN(); 1598 goto L_2B04D5B8; /* 0x2B04D5B4: jmp 0x2b04d5b8 */ 1599 L_2B04D5B6: 1600 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1601 eax = 0; /* 0x2B04D5B6: xor eax, eax */ 1602 _cf = 0; 1603 _flag_k = FK_TEST; 1604 L_2B04D5B8: 1605 edx = MEM32(0x2B0B5BCC); /* 0x2B04D5B8: mov edx, dword ptr [0x2b0b5bcc] */ 1606 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D5BE: mov dword ptr [ebp - 4], 0xffffffff */ 1607 MEM32(edx) = eax; /* 0x2B04D5C5: mov dword ptr [edx], eax */ 1608 L_2B04D5C7: 1609 eax = MEM32(0x2B0B5BCC); /* 0x2B04D5C7: mov eax, dword ptr [0x2b0b5bcc] */ 1610 ecx = MEM32(eax); /* 0x2B04D5CC: mov ecx, dword ptr [eax] */ 1611 PUSH32(esp, 8); /* 0x2B04D5CE: push 8 */ 1612 RECOMP_ICALL(esi); /* 0x2B04D5D0: call esi */ 1613 RECOMP_FLAGS_IN(); 1614 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D5D2: mov ecx, dword ptr [0x2b0b5bcc] */ 1615 MEM32(ebp + (-0x18)) = eax; /* 0x2B04D5D8: mov dword ptr [ebp - 0x18], eax */ 1616 /* cmp MEM32(ecx), ebx */ /* 0x2B04D5DB: cmp dword ptr [ecx], ebx */ 1617 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 1618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1619 _flag_k = FK_CMP; 1620 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D612; /* 0x2B04D5DD: jne 0x2b04d612 */ 1621 L_2B04D5DF: 1622 PUSH32(esp, 0x20u); /* 0x2B04D5DF: push 0x20 */ 1623 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D5E1: call 0x2b0ab212 */ /* not lifted */ 1624 RECOMP_FLAGS_IN(); 1625 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1626 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1627 esp = esp + 4; /* 0x2B04D5E6: add esp, 4 */ 1628 _flag_k = FK_ADD; 1629 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D5E9: mov dword ptr [ebp - 0x10], eax */ 1630 /* cmp eax, ebx */ /* 0x2B04D5EC: cmp eax, ebx */ 1631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1633 _flag_k = FK_CMP; 1634 MEM32(ebp + (-0x4)) = 0x19u; /* 0x2B04D5EE: mov dword ptr [ebp - 4], 0x19 */ 1635 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D601; /* 0x2B04D5F5: je 0x2b04d601 */ 1636 L_2B04D5F7: 1637 ecx = eax; /* 0x2B04D5F7: mov ecx, eax */ 1638 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D5F9: call dword ptr [0x2b0b5bd0] */ 1639 RECOMP_FLAGS_IN(); 1640 goto L_2B04D603; /* 0x2B04D5FF: jmp 0x2b04d603 */ 1641 L_2B04D601: 1642 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1643 eax = 0; /* 0x2B04D601: xor eax, eax */ 1644 _cf = 0; 1645 _flag_k = FK_TEST; 1646 L_2B04D603: 1647 edx = MEM32(0x2B0B5BCC); /* 0x2B04D603: mov edx, dword ptr [0x2b0b5bcc] */ 1648 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D609: mov dword ptr [ebp - 4], 0xffffffff */ 1649 MEM32(edx) = eax; /* 0x2B04D610: mov dword ptr [edx], eax */ 1650 L_2B04D612: 1651 eax = MEM32(0x2B0B5BCC); /* 0x2B04D612: mov eax, dword ptr [0x2b0b5bcc] */ 1652 ecx = MEM32(eax); /* 0x2B04D617: mov ecx, dword ptr [eax] */ 1653 PUSH32(esp, 8); /* 0x2B04D619: push 8 */ 1654 RECOMP_ICALL(esi); /* 0x2B04D61B: call esi */ 1655 RECOMP_FLAGS_IN(); 1656 ecx = ebp + (-0x18); /* 0x2B04D61D: lea ecx, [ebp - 0x18] */ 1657 PUSH32(esp, ecx); /* 0x2B04D620: push ecx */ 1658 edx = ebp + (-0x1C); /* 0x2B04D621: lea edx, [ebp - 0x1c] */ 1659 PUSH32(esp, edx); /* 0x2B04D624: push edx */ 1660 ecx = ebp + (-0x40); /* 0x2B04D625: lea ecx, [ebp - 0x40] */ 1661 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04D628: mov dword ptr [ebp - 0x1c], eax */ 1662 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04D62B: call 0x2b053ac0 */ /* not lifted */ 1663 RECOMP_FLAGS_IN(); 1664 ecx = MEM32(eax); /* 0x2B04D630: mov ecx, dword ptr [eax] */ 1665 edx = MEM32(eax + 0x4); /* 0x2B04D632: mov edx, dword ptr [eax + 4] */ 1666 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04D635: mov al, byte ptr [ebp + 0xb] */ 1667 MEM32(ebp + (-0x24)) = ecx; /* 0x2B04D638: mov dword ptr [ebp - 0x24], ecx */ 1668 PUSH32(esp, ebx); /* 0x2B04D63B: push ebx */ 1669 ecx = ebp + (-0x38); /* 0x2B04D63C: lea ecx, [ebp - 0x38] */ 1670 MEM32(ebp + (-0x20)) = edx; /* 0x2B04D63F: mov dword ptr [ebp - 0x20], edx */ 1671 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(eax)); /* 0x2B04D642: mov byte ptr [ebp - 0x38], al */ 1672 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D645: call dword ptr [0x2b0b514c] */ 1673 RECOMP_FLAGS_IN(); 1674 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1675 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04D64B: or ecx, 0xffffffff */ 1676 _cf = 0; 1677 _flag_k = FK_TEST; 1678 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1679 eax = 0; /* 0x2B04D64E: xor eax, eax */ 1680 _cf = 0; 1681 _flag_k = FK_TEST; 1682 edi = 0x2B0E840Cu; /* 0x2B04D650: mov edi, 0x2b0e840c */ 1683 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; } /* 0x2B04D655: repne scasb al, byte ptr es:[edi] */ 1684 ecx = ~ecx; /* 0x2B04D657: not ecx */ 1685 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1686 ecx = ecx - 1; /* 0x2B04D659: dec ecx */ 1687 _flag_k = FK_DEC; 1688 PUSH32(esp, ecx); /* 0x2B04D65A: push ecx */ 1689 PUSH32(esp, 0x2B0E840Cu); /* 0x2B04D65B: push 0x2b0e840c */ 1690 ecx = ebp + (-0x38); /* 0x2B04D660: lea ecx, [ebp - 0x38] */ 1691 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04D663: call dword ptr [0x2b0b5148] */ 1692 RECOMP_FLAGS_IN(); 1693 ecx = ebp + (-0x14); /* 0x2B04D669: lea ecx, [ebp - 0x14] */ 1694 PUSH32(esp, ecx); /* 0x2B04D66C: push ecx */ 1695 edx = ebp + (-0x38); /* 0x2B04D66D: lea edx, [ebp - 0x38] */ 1696 PUSH32(esp, edx); /* 0x2B04D670: push edx */ 1697 ecx = ebp + (-0x7C); /* 0x2B04D671: lea ecx, [ebp - 0x7c] */ 1698 MEM32(ebp + (-0x4)) = 0x1Au; /* 0x2B04D674: mov dword ptr [ebp - 4], 0x1a */ 1699 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04D67B: mov dword ptr [ebp - 0x14], ebx */ 1700 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04D67E: mov dword ptr [ebp - 0x10], ebx */ 1701 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04D681: call 0x2b051ac0 */ /* not lifted */ 1702 RECOMP_FLAGS_IN(); 1703 ecx = MEM32(ebp + (-0x28)); /* 0x2B04D686: mov ecx, dword ptr [ebp - 0x28] */ 1704 PUSH32(esp, eax); /* 0x2B04D689: push eax */ 1705 eax = ebp + (-0x40); /* 0x2B04D68A: lea eax, [ebp - 0x40] */ 1706 PUSH32(esp, eax); /* 0x2B04D68D: push eax */ 1707 MEM8(ebp + (-0x4)) = (uint8_t)(0x1Bu); /* 0x2B04D68E: mov byte ptr [ebp - 4], 0x1b */ 1708 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04D692: call 0x2b0519d0 */ /* not lifted */ 1709 RECOMP_FLAGS_IN(); 1710 edi = MEM32(eax); /* 0x2B04D697: mov edi, dword ptr [eax] */ 1711 PUSH32(esp, 1); /* 0x2B04D699: push 1 */ 1712 ecx = ebp + (-0x7C); /* 0x2B04D69B: lea ecx, [ebp - 0x7c] */ 1713 MEM8(ebp + (-0x4)) = (uint8_t)(0x1Au); /* 0x2B04D69E: mov byte ptr [ebp - 4], 0x1a */ 1714 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D6A2: call dword ptr [0x2b0b514c] */ 1715 RECOMP_FLAGS_IN(); 1716 ecx = MEM32(ebp + (-0x24)); /* 0x2B04D6A8: mov ecx, dword ptr [ebp - 0x24] */ 1717 edx = MEM32(ebp + (-0x20)); /* 0x2B04D6AB: mov edx, dword ptr [ebp - 0x20] */ 1718 MEM32(edi + 0x1C) = ecx; /* 0x2B04D6AE: mov dword ptr [edi + 0x1c], ecx */ 1719 PUSH32(esp, 1); /* 0x2B04D6B1: push 1 */ 1720 ecx = ebp + (-0x38); /* 0x2B04D6B3: lea ecx, [ebp - 0x38] */ 1721 MEM32(edi + 0x20) = edx; /* 0x2B04D6B6: mov dword ptr [edi + 0x20], edx */ 1722 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D6B9: mov dword ptr [ebp - 4], 0xffffffff */ 1723 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D6C0: call dword ptr [0x2b0b514c] */ 1724 RECOMP_FLAGS_IN(); 1725 eax = MEM32(0x2B0B5BCC); /* 0x2B04D6C6: mov eax, dword ptr [0x2b0b5bcc] */ 1726 /* cmp MEM32(eax), ebx */ /* 0x2B04D6CB: cmp dword ptr [eax], ebx */ 1727 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 1728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1729 _flag_k = FK_CMP; 1730 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D702; /* 0x2B04D6CD: jne 0x2b04d702 */ 1731 L_2B04D6CF: 1732 PUSH32(esp, 0x20u); /* 0x2B04D6CF: push 0x20 */ 1733 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D6D1: call 0x2b0ab212 */ /* not lifted */ 1734 RECOMP_FLAGS_IN(); 1735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1737 esp = esp + 4; /* 0x2B04D6D6: add esp, 4 */ 1738 _flag_k = FK_ADD; 1739 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D6D9: mov dword ptr [ebp - 0x10], eax */ 1740 /* cmp eax, ebx */ /* 0x2B04D6DC: cmp eax, ebx */ 1741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1743 _flag_k = FK_CMP; 1744 MEM32(ebp + (-0x4)) = 0x1Cu; /* 0x2B04D6DE: mov dword ptr [ebp - 4], 0x1c */ 1745 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D6F1; /* 0x2B04D6E5: je 0x2b04d6f1 */ 1746 L_2B04D6E7: 1747 ecx = eax; /* 0x2B04D6E7: mov ecx, eax */ 1748 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D6E9: call dword ptr [0x2b0b5bd0] */ 1749 RECOMP_FLAGS_IN(); 1750 goto L_2B04D6F3; /* 0x2B04D6EF: jmp 0x2b04d6f3 */ 1751 L_2B04D6F1: 1752 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1753 eax = 0; /* 0x2B04D6F1: xor eax, eax */ 1754 _cf = 0; 1755 _flag_k = FK_TEST; 1756 L_2B04D6F3: 1757 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D6F3: mov ecx, dword ptr [0x2b0b5bcc] */ 1758 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D6F9: mov dword ptr [ebp - 4], 0xffffffff */ 1759 MEM32(ecx) = eax; /* 0x2B04D700: mov dword ptr [ecx], eax */ 1760 L_2B04D702: 1761 edx = MEM32(0x2B0B5BCC); /* 0x2B04D702: mov edx, dword ptr [0x2b0b5bcc] */ 1762 ecx = MEM32(edx); /* 0x2B04D708: mov ecx, dword ptr [edx] */ 1763 PUSH32(esp, 0x33u); /* 0x2B04D70A: push 0x33 */ 1764 RECOMP_ICALL(esi); /* 0x2B04D70C: call esi */ 1765 RECOMP_FLAGS_IN(); 1766 MEM32(ebp + (-0x18)) = eax; /* 0x2B04D70E: mov dword ptr [ebp - 0x18], eax */ 1767 eax = MEM32(0x2B0B5BCC); /* 0x2B04D711: mov eax, dword ptr [0x2b0b5bcc] */ 1768 /* cmp MEM32(eax), ebx */ /* 0x2B04D716: cmp dword ptr [eax], ebx */ 1769 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 1770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1771 _flag_k = FK_CMP; 1772 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D74D; /* 0x2B04D718: jne 0x2b04d74d */ 1773 L_2B04D71A: 1774 PUSH32(esp, 0x20u); /* 0x2B04D71A: push 0x20 */ 1775 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D71C: call 0x2b0ab212 */ /* not lifted */ 1776 RECOMP_FLAGS_IN(); 1777 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1778 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1779 esp = esp + 4; /* 0x2B04D721: add esp, 4 */ 1780 _flag_k = FK_ADD; 1781 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D724: mov dword ptr [ebp - 0x10], eax */ 1782 /* cmp eax, ebx */ /* 0x2B04D727: cmp eax, ebx */ 1783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1785 _flag_k = FK_CMP; 1786 MEM32(ebp + (-0x4)) = 0x1Du; /* 0x2B04D729: mov dword ptr [ebp - 4], 0x1d */ 1787 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D73C; /* 0x2B04D730: je 0x2b04d73c */ 1788 L_2B04D732: 1789 ecx = eax; /* 0x2B04D732: mov ecx, eax */ 1790 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D734: call dword ptr [0x2b0b5bd0] */ 1791 RECOMP_FLAGS_IN(); 1792 goto L_2B04D73E; /* 0x2B04D73A: jmp 0x2b04d73e */ 1793 L_2B04D73C: 1794 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1795 eax = 0; /* 0x2B04D73C: xor eax, eax */ 1796 _cf = 0; 1797 _flag_k = FK_TEST; 1798 L_2B04D73E: 1799 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D73E: mov ecx, dword ptr [0x2b0b5bcc] */ 1800 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D744: mov dword ptr [ebp - 4], 0xffffffff */ 1801 MEM32(ecx) = eax; /* 0x2B04D74B: mov dword ptr [ecx], eax */ 1802 L_2B04D74D: 1803 edx = MEM32(0x2B0B5BCC); /* 0x2B04D74D: mov edx, dword ptr [0x2b0b5bcc] */ 1804 ecx = MEM32(edx); /* 0x2B04D753: mov ecx, dword ptr [edx] */ 1805 PUSH32(esp, 0x33u); /* 0x2B04D755: push 0x33 */ 1806 RECOMP_ICALL(esi); /* 0x2B04D757: call esi */ 1807 RECOMP_FLAGS_IN(); 1808 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04D759: mov dword ptr [ebp - 0x1c], eax */ 1809 eax = ebp + (-0x18); /* 0x2B04D75C: lea eax, [ebp - 0x18] */ 1810 PUSH32(esp, eax); /* 0x2B04D75F: push eax */ 1811 ecx = ebp + (-0x1C); /* 0x2B04D760: lea ecx, [ebp - 0x1c] */ 1812 PUSH32(esp, ecx); /* 0x2B04D763: push ecx */ 1813 ecx = ebp + (-0x40); /* 0x2B04D764: lea ecx, [ebp - 0x40] */ 1814 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04D767: call 0x2b053ac0 */ /* not lifted */ 1815 RECOMP_FLAGS_IN(); 1816 edx = MEM32(eax); /* 0x2B04D76C: mov edx, dword ptr [eax] */ 1817 eax = MEM32(eax + 0x4); /* 0x2B04D76E: mov eax, dword ptr [eax + 4] */ 1818 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04D771: mov cl, byte ptr [ebp + 0xb] */ 1819 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(ecx)); /* 0x2B04D774: mov byte ptr [ebp - 0x38], cl */ 1820 PUSH32(esp, ebx); /* 0x2B04D777: push ebx */ 1821 ecx = ebp + (-0x38); /* 0x2B04D778: lea ecx, [ebp - 0x38] */ 1822 MEM32(ebp + (-0x24)) = edx; /* 0x2B04D77B: mov dword ptr [ebp - 0x24], edx */ 1823 MEM32(ebp + (-0x20)) = eax; /* 0x2B04D77E: mov dword ptr [ebp - 0x20], eax */ 1824 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D781: call dword ptr [0x2b0b514c] */ 1825 RECOMP_FLAGS_IN(); 1826 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1827 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04D787: or ecx, 0xffffffff */ 1828 _cf = 0; 1829 _flag_k = FK_TEST; 1830 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1831 eax = 0; /* 0x2B04D78A: xor eax, eax */ 1832 _cf = 0; 1833 _flag_k = FK_TEST; 1834 edi = 0x2B0E29D4u; /* 0x2B04D78C: mov edi, 0x2b0e29d4 */ 1835 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; } /* 0x2B04D791: repne scasb al, byte ptr es:[edi] */ 1836 ecx = ~ecx; /* 0x2B04D793: not ecx */ 1837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1838 ecx = ecx - 1; /* 0x2B04D795: dec ecx */ 1839 _flag_k = FK_DEC; 1840 PUSH32(esp, ecx); /* 0x2B04D796: push ecx */ 1841 PUSH32(esp, 0x2B0E29D4u); /* 0x2B04D797: push 0x2b0e29d4 */ 1842 ecx = ebp + (-0x38); /* 0x2B04D79C: lea ecx, [ebp - 0x38] */ 1843 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04D79F: call dword ptr [0x2b0b5148] */ 1844 RECOMP_FLAGS_IN(); 1845 edx = ebp + (-0x14); /* 0x2B04D7A5: lea edx, [ebp - 0x14] */ 1846 PUSH32(esp, edx); /* 0x2B04D7A8: push edx */ 1847 eax = ebp + (-0x38); /* 0x2B04D7A9: lea eax, [ebp - 0x38] */ 1848 PUSH32(esp, eax); /* 0x2B04D7AC: push eax */ 1849 ecx = ebp + (-0x7C); /* 0x2B04D7AD: lea ecx, [ebp - 0x7c] */ 1850 MEM32(ebp + (-0x4)) = 0x1Eu; /* 0x2B04D7B0: mov dword ptr [ebp - 4], 0x1e */ 1851 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04D7B7: mov dword ptr [ebp - 0x14], ebx */ 1852 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04D7BA: mov dword ptr [ebp - 0x10], ebx */ 1853 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04D7BD: call 0x2b051ac0 */ /* not lifted */ 1854 RECOMP_FLAGS_IN(); 1855 PUSH32(esp, eax); /* 0x2B04D7C2: push eax */ 1856 ecx = ebp + (-0x40); /* 0x2B04D7C3: lea ecx, [ebp - 0x40] */ 1857 PUSH32(esp, ecx); /* 0x2B04D7C6: push ecx */ 1858 ecx = MEM32(ebp + (-0x28)); /* 0x2B04D7C7: mov ecx, dword ptr [ebp - 0x28] */ 1859 MEM8(ebp + (-0x4)) = (uint8_t)(0x1Fu); /* 0x2B04D7CA: mov byte ptr [ebp - 4], 0x1f */ 1860 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04D7CE: call 0x2b0519d0 */ /* not lifted */ 1861 RECOMP_FLAGS_IN(); 1862 edi = MEM32(eax); /* 0x2B04D7D3: mov edi, dword ptr [eax] */ 1863 PUSH32(esp, 1); /* 0x2B04D7D5: push 1 */ 1864 ecx = ebp + (-0x7C); /* 0x2B04D7D7: lea ecx, [ebp - 0x7c] */ 1865 MEM8(ebp + (-0x4)) = (uint8_t)(0x1Eu); /* 0x2B04D7DA: mov byte ptr [ebp - 4], 0x1e */ 1866 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D7DE: call dword ptr [0x2b0b514c] */ 1867 RECOMP_FLAGS_IN(); 1868 edx = MEM32(ebp + (-0x24)); /* 0x2B04D7E4: mov edx, dword ptr [ebp - 0x24] */ 1869 eax = MEM32(ebp + (-0x20)); /* 0x2B04D7E7: mov eax, dword ptr [ebp - 0x20] */ 1870 MEM32(edi + 0x1C) = edx; /* 0x2B04D7EA: mov dword ptr [edi + 0x1c], edx */ 1871 PUSH32(esp, 1); /* 0x2B04D7ED: push 1 */ 1872 ecx = ebp + (-0x38); /* 0x2B04D7EF: lea ecx, [ebp - 0x38] */ 1873 MEM32(edi + 0x20) = eax; /* 0x2B04D7F2: mov dword ptr [edi + 0x20], eax */ 1874 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D7F5: mov dword ptr [ebp - 4], 0xffffffff */ 1875 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D7FC: call dword ptr [0x2b0b514c] */ 1876 RECOMP_FLAGS_IN(); 1877 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D802: mov ecx, dword ptr [0x2b0b5bcc] */ 1878 /* cmp MEM32(ecx), ebx */ /* 0x2B04D808: cmp dword ptr [ecx], ebx */ 1879 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 1880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1881 _flag_k = FK_CMP; 1882 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D83F; /* 0x2B04D80A: jne 0x2b04d83f */ 1883 L_2B04D80C: 1884 PUSH32(esp, 0x20u); /* 0x2B04D80C: push 0x20 */ 1885 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D80E: call 0x2b0ab212 */ /* not lifted */ 1886 RECOMP_FLAGS_IN(); 1887 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1888 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1889 esp = esp + 4; /* 0x2B04D813: add esp, 4 */ 1890 _flag_k = FK_ADD; 1891 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D816: mov dword ptr [ebp - 0x10], eax */ 1892 /* cmp eax, ebx */ /* 0x2B04D819: cmp eax, ebx */ 1893 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1895 _flag_k = FK_CMP; 1896 MEM32(ebp + (-0x4)) = 0x20u; /* 0x2B04D81B: mov dword ptr [ebp - 4], 0x20 */ 1897 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D82E; /* 0x2B04D822: je 0x2b04d82e */ 1898 L_2B04D824: 1899 ecx = eax; /* 0x2B04D824: mov ecx, eax */ 1900 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D826: call dword ptr [0x2b0b5bd0] */ 1901 RECOMP_FLAGS_IN(); 1902 goto L_2B04D830; /* 0x2B04D82C: jmp 0x2b04d830 */ 1903 L_2B04D82E: 1904 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1905 eax = 0; /* 0x2B04D82E: xor eax, eax */ 1906 _cf = 0; 1907 _flag_k = FK_TEST; 1908 L_2B04D830: 1909 edx = MEM32(0x2B0B5BCC); /* 0x2B04D830: mov edx, dword ptr [0x2b0b5bcc] */ 1910 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D836: mov dword ptr [ebp - 4], 0xffffffff */ 1911 MEM32(edx) = eax; /* 0x2B04D83D: mov dword ptr [edx], eax */ 1912 L_2B04D83F: 1913 eax = MEM32(0x2B0B5BCC); /* 0x2B04D83F: mov eax, dword ptr [0x2b0b5bcc] */ 1914 ecx = MEM32(eax); /* 0x2B04D844: mov ecx, dword ptr [eax] */ 1915 PUSH32(esp, 0x34u); /* 0x2B04D846: push 0x34 */ 1916 RECOMP_ICALL(esi); /* 0x2B04D848: call esi */ 1917 RECOMP_FLAGS_IN(); 1918 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D84A: mov ecx, dword ptr [0x2b0b5bcc] */ 1919 MEM32(ebp + (-0x18)) = eax; /* 0x2B04D850: mov dword ptr [ebp - 0x18], eax */ 1920 /* cmp MEM32(ecx), ebx */ /* 0x2B04D853: cmp dword ptr [ecx], ebx */ 1921 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 1922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1923 _flag_k = FK_CMP; 1924 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D88A; /* 0x2B04D855: jne 0x2b04d88a */ 1925 L_2B04D857: 1926 PUSH32(esp, 0x20u); /* 0x2B04D857: push 0x20 */ 1927 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D859: call 0x2b0ab212 */ /* not lifted */ 1928 RECOMP_FLAGS_IN(); 1929 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1931 esp = esp + 4; /* 0x2B04D85E: add esp, 4 */ 1932 _flag_k = FK_ADD; 1933 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D861: mov dword ptr [ebp - 0x10], eax */ 1934 /* cmp eax, ebx */ /* 0x2B04D864: cmp eax, ebx */ 1935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1937 _flag_k = FK_CMP; 1938 MEM32(ebp + (-0x4)) = 0x21u; /* 0x2B04D866: mov dword ptr [ebp - 4], 0x21 */ 1939 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D879; /* 0x2B04D86D: je 0x2b04d879 */ 1940 L_2B04D86F: 1941 ecx = eax; /* 0x2B04D86F: mov ecx, eax */ 1942 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D871: call dword ptr [0x2b0b5bd0] */ 1943 RECOMP_FLAGS_IN(); 1944 goto L_2B04D87B; /* 0x2B04D877: jmp 0x2b04d87b */ 1945 L_2B04D879: 1946 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1947 eax = 0; /* 0x2B04D879: xor eax, eax */ 1948 _cf = 0; 1949 _flag_k = FK_TEST; 1950 L_2B04D87B: 1951 edx = MEM32(0x2B0B5BCC); /* 0x2B04D87B: mov edx, dword ptr [0x2b0b5bcc] */ 1952 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D881: mov dword ptr [ebp - 4], 0xffffffff */ 1953 MEM32(edx) = eax; /* 0x2B04D888: mov dword ptr [edx], eax */ 1954 L_2B04D88A: 1955 eax = MEM32(0x2B0B5BCC); /* 0x2B04D88A: mov eax, dword ptr [0x2b0b5bcc] */ 1956 ecx = MEM32(eax); /* 0x2B04D88F: mov ecx, dword ptr [eax] */ 1957 PUSH32(esp, 0x34u); /* 0x2B04D891: push 0x34 */ 1958 RECOMP_ICALL(esi); /* 0x2B04D893: call esi */ 1959 RECOMP_FLAGS_IN(); 1960 ecx = ebp + (-0x18); /* 0x2B04D895: lea ecx, [ebp - 0x18] */ 1961 PUSH32(esp, ecx); /* 0x2B04D898: push ecx */ 1962 edx = ebp + (-0x1C); /* 0x2B04D899: lea edx, [ebp - 0x1c] */ 1963 PUSH32(esp, edx); /* 0x2B04D89C: push edx */ 1964 ecx = ebp + (-0x40); /* 0x2B04D89D: lea ecx, [ebp - 0x40] */ 1965 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04D8A0: mov dword ptr [ebp - 0x1c], eax */ 1966 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04D8A3: call 0x2b053ac0 */ /* not lifted */ 1967 RECOMP_FLAGS_IN(); 1968 ecx = MEM32(eax); /* 0x2B04D8A8: mov ecx, dword ptr [eax] */ 1969 edx = MEM32(eax + 0x4); /* 0x2B04D8AA: mov edx, dword ptr [eax + 4] */ 1970 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04D8AD: mov al, byte ptr [ebp + 0xb] */ 1971 MEM32(ebp + (-0x24)) = ecx; /* 0x2B04D8B0: mov dword ptr [ebp - 0x24], ecx */ 1972 PUSH32(esp, ebx); /* 0x2B04D8B3: push ebx */ 1973 ecx = ebp + (-0x38); /* 0x2B04D8B4: lea ecx, [ebp - 0x38] */ 1974 MEM32(ebp + (-0x20)) = edx; /* 0x2B04D8B7: mov dword ptr [ebp - 0x20], edx */ 1975 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(eax)); /* 0x2B04D8BA: mov byte ptr [ebp - 0x38], al */ 1976 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D8BD: call dword ptr [0x2b0b514c] */ 1977 RECOMP_FLAGS_IN(); 1978 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1979 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04D8C3: or ecx, 0xffffffff */ 1980 _cf = 0; 1981 _flag_k = FK_TEST; 1982 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1983 eax = 0; /* 0x2B04D8C6: xor eax, eax */ 1984 _cf = 0; 1985 _flag_k = FK_TEST; 1986 edi = 0x2B0E8408u; /* 0x2B04D8C8: mov edi, 0x2b0e8408 */ 1987 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; } /* 0x2B04D8CD: repne scasb al, byte ptr es:[edi] */ 1988 ecx = ~ecx; /* 0x2B04D8CF: not ecx */ 1989 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1990 ecx = ecx - 1; /* 0x2B04D8D1: dec ecx */ 1991 _flag_k = FK_DEC; 1992 PUSH32(esp, ecx); /* 0x2B04D8D2: push ecx */ 1993 PUSH32(esp, 0x2B0E8408u); /* 0x2B04D8D3: push 0x2b0e8408 */ 1994 ecx = ebp + (-0x38); /* 0x2B04D8D8: lea ecx, [ebp - 0x38] */ 1995 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04D8DB: call dword ptr [0x2b0b5148] */ 1996 RECOMP_FLAGS_IN(); 1997 ecx = ebp + (-0x14); /* 0x2B04D8E1: lea ecx, [ebp - 0x14] */ 1998 PUSH32(esp, ecx); /* 0x2B04D8E4: push ecx */ 1999 edx = ebp + (-0x38); /* 0x2B04D8E5: lea edx, [ebp - 0x38] */ 2000 PUSH32(esp, edx); /* 0x2B04D8E8: push edx */ 2001 ecx = ebp + (-0x7C); /* 0x2B04D8E9: lea ecx, [ebp - 0x7c] */ 2002 MEM32(ebp + (-0x4)) = 0x22u; /* 0x2B04D8EC: mov dword ptr [ebp - 4], 0x22 */ 2003 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04D8F3: mov dword ptr [ebp - 0x14], ebx */ 2004 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04D8F6: mov dword ptr [ebp - 0x10], ebx */ 2005 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04D8F9: call 0x2b051ac0 */ /* not lifted */ 2006 RECOMP_FLAGS_IN(); 2007 ecx = MEM32(ebp + (-0x28)); /* 0x2B04D8FE: mov ecx, dword ptr [ebp - 0x28] */ 2008 PUSH32(esp, eax); /* 0x2B04D901: push eax */ 2009 eax = ebp + (-0x40); /* 0x2B04D902: lea eax, [ebp - 0x40] */ 2010 PUSH32(esp, eax); /* 0x2B04D905: push eax */ 2011 MEM8(ebp + (-0x4)) = (uint8_t)(0x23u); /* 0x2B04D906: mov byte ptr [ebp - 4], 0x23 */ 2012 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04D90A: call 0x2b0519d0 */ /* not lifted */ 2013 RECOMP_FLAGS_IN(); 2014 edi = MEM32(eax); /* 0x2B04D90F: mov edi, dword ptr [eax] */ 2015 PUSH32(esp, 1); /* 0x2B04D911: push 1 */ 2016 ecx = ebp + (-0x7C); /* 0x2B04D913: lea ecx, [ebp - 0x7c] */ 2017 MEM8(ebp + (-0x4)) = (uint8_t)(0x22u); /* 0x2B04D916: mov byte ptr [ebp - 4], 0x22 */ 2018 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D91A: call dword ptr [0x2b0b514c] */ 2019 RECOMP_FLAGS_IN(); 2020 ecx = MEM32(ebp + (-0x24)); /* 0x2B04D920: mov ecx, dword ptr [ebp - 0x24] */ 2021 edx = MEM32(ebp + (-0x20)); /* 0x2B04D923: mov edx, dword ptr [ebp - 0x20] */ 2022 MEM32(edi + 0x1C) = ecx; /* 0x2B04D926: mov dword ptr [edi + 0x1c], ecx */ 2023 PUSH32(esp, 1); /* 0x2B04D929: push 1 */ 2024 ecx = ebp + (-0x38); /* 0x2B04D92B: lea ecx, [ebp - 0x38] */ 2025 MEM32(edi + 0x20) = edx; /* 0x2B04D92E: mov dword ptr [edi + 0x20], edx */ 2026 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D931: mov dword ptr [ebp - 4], 0xffffffff */ 2027 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D938: call dword ptr [0x2b0b514c] */ 2028 RECOMP_FLAGS_IN(); 2029 eax = MEM32(0x2B0B5BCC); /* 0x2B04D93E: mov eax, dword ptr [0x2b0b5bcc] */ 2030 /* cmp MEM32(eax), ebx */ /* 0x2B04D943: cmp dword ptr [eax], ebx */ 2031 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 2032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2033 _flag_k = FK_CMP; 2034 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D97A; /* 0x2B04D945: jne 0x2b04d97a */ 2035 L_2B04D947: 2036 PUSH32(esp, 0x20u); /* 0x2B04D947: push 0x20 */ 2037 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D949: call 0x2b0ab212 */ /* not lifted */ 2038 RECOMP_FLAGS_IN(); 2039 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2040 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2041 esp = esp + 4; /* 0x2B04D94E: add esp, 4 */ 2042 _flag_k = FK_ADD; 2043 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D951: mov dword ptr [ebp - 0x10], eax */ 2044 /* cmp eax, ebx */ /* 0x2B04D954: cmp eax, ebx */ 2045 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2047 _flag_k = FK_CMP; 2048 MEM32(ebp + (-0x4)) = 0x24u; /* 0x2B04D956: mov dword ptr [ebp - 4], 0x24 */ 2049 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D969; /* 0x2B04D95D: je 0x2b04d969 */ 2050 L_2B04D95F: 2051 ecx = eax; /* 0x2B04D95F: mov ecx, eax */ 2052 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D961: call dword ptr [0x2b0b5bd0] */ 2053 RECOMP_FLAGS_IN(); 2054 goto L_2B04D96B; /* 0x2B04D967: jmp 0x2b04d96b */ 2055 L_2B04D969: 2056 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2057 eax = 0; /* 0x2B04D969: xor eax, eax */ 2058 _cf = 0; 2059 _flag_k = FK_TEST; 2060 L_2B04D96B: 2061 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D96B: mov ecx, dword ptr [0x2b0b5bcc] */ 2062 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D971: mov dword ptr [ebp - 4], 0xffffffff */ 2063 MEM32(ecx) = eax; /* 0x2B04D978: mov dword ptr [ecx], eax */ 2064 L_2B04D97A: 2065 edx = MEM32(0x2B0B5BCC); /* 0x2B04D97A: mov edx, dword ptr [0x2b0b5bcc] */ 2066 ecx = MEM32(edx); /* 0x2B04D980: mov ecx, dword ptr [edx] */ 2067 PUSH32(esp, 0x35u); /* 0x2B04D982: push 0x35 */ 2068 RECOMP_ICALL(esi); /* 0x2B04D984: call esi */ 2069 RECOMP_FLAGS_IN(); 2070 MEM32(ebp + (-0x18)) = eax; /* 0x2B04D986: mov dword ptr [ebp - 0x18], eax */ 2071 eax = MEM32(0x2B0B5BCC); /* 0x2B04D989: mov eax, dword ptr [0x2b0b5bcc] */ 2072 /* cmp MEM32(eax), ebx */ /* 0x2B04D98E: cmp dword ptr [eax], ebx */ 2073 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 2074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2075 _flag_k = FK_CMP; 2076 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04D9C5; /* 0x2B04D990: jne 0x2b04d9c5 */ 2077 L_2B04D992: 2078 PUSH32(esp, 0x20u); /* 0x2B04D992: push 0x20 */ 2079 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04D994: call 0x2b0ab212 */ /* not lifted */ 2080 RECOMP_FLAGS_IN(); 2081 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2083 esp = esp + 4; /* 0x2B04D999: add esp, 4 */ 2084 _flag_k = FK_ADD; 2085 MEM32(ebp + (-0x10)) = eax; /* 0x2B04D99C: mov dword ptr [ebp - 0x10], eax */ 2086 /* cmp eax, ebx */ /* 0x2B04D99F: cmp eax, ebx */ 2087 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2089 _flag_k = FK_CMP; 2090 MEM32(ebp + (-0x4)) = 0x25u; /* 0x2B04D9A1: mov dword ptr [ebp - 4], 0x25 */ 2091 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04D9B4; /* 0x2B04D9A8: je 0x2b04d9b4 */ 2092 L_2B04D9AA: 2093 ecx = eax; /* 0x2B04D9AA: mov ecx, eax */ 2094 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04D9AC: call dword ptr [0x2b0b5bd0] */ 2095 RECOMP_FLAGS_IN(); 2096 goto L_2B04D9B6; /* 0x2B04D9B2: jmp 0x2b04d9b6 */ 2097 L_2B04D9B4: 2098 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2099 eax = 0; /* 0x2B04D9B4: xor eax, eax */ 2100 _cf = 0; 2101 _flag_k = FK_TEST; 2102 L_2B04D9B6: 2103 ecx = MEM32(0x2B0B5BCC); /* 0x2B04D9B6: mov ecx, dword ptr [0x2b0b5bcc] */ 2104 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04D9BC: mov dword ptr [ebp - 4], 0xffffffff */ 2105 MEM32(ecx) = eax; /* 0x2B04D9C3: mov dword ptr [ecx], eax */ 2106 L_2B04D9C5: 2107 edx = MEM32(0x2B0B5BCC); /* 0x2B04D9C5: mov edx, dword ptr [0x2b0b5bcc] */ 2108 ecx = MEM32(edx); /* 0x2B04D9CB: mov ecx, dword ptr [edx] */ 2109 PUSH32(esp, 0x35u); /* 0x2B04D9CD: push 0x35 */ 2110 RECOMP_ICALL(esi); /* 0x2B04D9CF: call esi */ 2111 RECOMP_FLAGS_IN(); 2112 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04D9D1: mov dword ptr [ebp - 0x1c], eax */ 2113 eax = ebp + (-0x18); /* 0x2B04D9D4: lea eax, [ebp - 0x18] */ 2114 PUSH32(esp, eax); /* 0x2B04D9D7: push eax */ 2115 ecx = ebp + (-0x1C); /* 0x2B04D9D8: lea ecx, [ebp - 0x1c] */ 2116 PUSH32(esp, ecx); /* 0x2B04D9DB: push ecx */ 2117 ecx = ebp + (-0x40); /* 0x2B04D9DC: lea ecx, [ebp - 0x40] */ 2118 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04D9DF: call 0x2b053ac0 */ /* not lifted */ 2119 RECOMP_FLAGS_IN(); 2120 edx = MEM32(eax); /* 0x2B04D9E4: mov edx, dword ptr [eax] */ 2121 eax = MEM32(eax + 0x4); /* 0x2B04D9E6: mov eax, dword ptr [eax + 4] */ 2122 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04D9E9: mov cl, byte ptr [ebp + 0xb] */ 2123 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(ecx)); /* 0x2B04D9EC: mov byte ptr [ebp - 0x38], cl */ 2124 PUSH32(esp, ebx); /* 0x2B04D9EF: push ebx */ 2125 ecx = ebp + (-0x38); /* 0x2B04D9F0: lea ecx, [ebp - 0x38] */ 2126 MEM32(ebp + (-0x24)) = edx; /* 0x2B04D9F3: mov dword ptr [ebp - 0x24], edx */ 2127 MEM32(ebp + (-0x20)) = eax; /* 0x2B04D9F6: mov dword ptr [ebp - 0x20], eax */ 2128 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04D9F9: call dword ptr [0x2b0b514c] */ 2129 RECOMP_FLAGS_IN(); 2130 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2131 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04D9FF: or ecx, 0xffffffff */ 2132 _cf = 0; 2133 _flag_k = FK_TEST; 2134 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2135 eax = 0; /* 0x2B04DA02: xor eax, eax */ 2136 _cf = 0; 2137 _flag_k = FK_TEST; 2138 edi = 0x2B0E83FCu; /* 0x2B04DA04: mov edi, 0x2b0e83fc */ 2139 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; } /* 0x2B04DA09: repne scasb al, byte ptr es:[edi] */ 2140 ecx = ~ecx; /* 0x2B04DA0B: not ecx */ 2141 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2142 ecx = ecx - 1; /* 0x2B04DA0D: dec ecx */ 2143 _flag_k = FK_DEC; 2144 PUSH32(esp, ecx); /* 0x2B04DA0E: push ecx */ 2145 PUSH32(esp, 0x2B0E83FCu); /* 0x2B04DA0F: push 0x2b0e83fc */ 2146 ecx = ebp + (-0x38); /* 0x2B04DA14: lea ecx, [ebp - 0x38] */ 2147 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04DA17: call dword ptr [0x2b0b5148] */ 2148 RECOMP_FLAGS_IN(); 2149 edx = ebp + (-0x14); /* 0x2B04DA1D: lea edx, [ebp - 0x14] */ 2150 PUSH32(esp, edx); /* 0x2B04DA20: push edx */ 2151 eax = ebp + (-0x38); /* 0x2B04DA21: lea eax, [ebp - 0x38] */ 2152 PUSH32(esp, eax); /* 0x2B04DA24: push eax */ 2153 ecx = ebp + (-0x7C); /* 0x2B04DA25: lea ecx, [ebp - 0x7c] */ 2154 MEM32(ebp + (-0x4)) = 0x26u; /* 0x2B04DA28: mov dword ptr [ebp - 4], 0x26 */ 2155 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04DA2F: mov dword ptr [ebp - 0x14], ebx */ 2156 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04DA32: mov dword ptr [ebp - 0x10], ebx */ 2157 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04DA35: call 0x2b051ac0 */ /* not lifted */ 2158 RECOMP_FLAGS_IN(); 2159 PUSH32(esp, eax); /* 0x2B04DA3A: push eax */ 2160 ecx = ebp + (-0x40); /* 0x2B04DA3B: lea ecx, [ebp - 0x40] */ 2161 PUSH32(esp, ecx); /* 0x2B04DA3E: push ecx */ 2162 ecx = MEM32(ebp + (-0x28)); /* 0x2B04DA3F: mov ecx, dword ptr [ebp - 0x28] */ 2163 MEM8(ebp + (-0x4)) = (uint8_t)(0x27u); /* 0x2B04DA42: mov byte ptr [ebp - 4], 0x27 */ 2164 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04DA46: call 0x2b0519d0 */ /* not lifted */ 2165 RECOMP_FLAGS_IN(); 2166 edi = MEM32(eax); /* 0x2B04DA4B: mov edi, dword ptr [eax] */ 2167 PUSH32(esp, 1); /* 0x2B04DA4D: push 1 */ 2168 ecx = ebp + (-0x7C); /* 0x2B04DA4F: lea ecx, [ebp - 0x7c] */ 2169 MEM8(ebp + (-0x4)) = (uint8_t)(0x26u); /* 0x2B04DA52: mov byte ptr [ebp - 4], 0x26 */ 2170 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DA56: call dword ptr [0x2b0b514c] */ 2171 RECOMP_FLAGS_IN(); 2172 edx = MEM32(ebp + (-0x24)); /* 0x2B04DA5C: mov edx, dword ptr [ebp - 0x24] */ 2173 eax = MEM32(ebp + (-0x20)); /* 0x2B04DA5F: mov eax, dword ptr [ebp - 0x20] */ 2174 MEM32(edi + 0x1C) = edx; /* 0x2B04DA62: mov dword ptr [edi + 0x1c], edx */ 2175 PUSH32(esp, 1); /* 0x2B04DA65: push 1 */ 2176 ecx = ebp + (-0x38); /* 0x2B04DA67: lea ecx, [ebp - 0x38] */ 2177 MEM32(edi + 0x20) = eax; /* 0x2B04DA6A: mov dword ptr [edi + 0x20], eax */ 2178 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DA6D: mov dword ptr [ebp - 4], 0xffffffff */ 2179 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DA74: call dword ptr [0x2b0b514c] */ 2180 RECOMP_FLAGS_IN(); 2181 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DA7A: mov ecx, dword ptr [0x2b0b5bcc] */ 2182 /* cmp MEM32(ecx), ebx */ /* 0x2B04DA80: cmp dword ptr [ecx], ebx */ 2183 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 2184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2185 _flag_k = FK_CMP; 2186 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DAB7; /* 0x2B04DA82: jne 0x2b04dab7 */ 2187 L_2B04DA84: 2188 PUSH32(esp, 0x20u); /* 0x2B04DA84: push 0x20 */ 2189 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DA86: call 0x2b0ab212 */ /* not lifted */ 2190 RECOMP_FLAGS_IN(); 2191 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2193 esp = esp + 4; /* 0x2B04DA8B: add esp, 4 */ 2194 _flag_k = FK_ADD; 2195 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DA8E: mov dword ptr [ebp - 0x10], eax */ 2196 /* cmp eax, ebx */ /* 0x2B04DA91: cmp eax, ebx */ 2197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2199 _flag_k = FK_CMP; 2200 MEM32(ebp + (-0x4)) = 0x28u; /* 0x2B04DA93: mov dword ptr [ebp - 4], 0x28 */ 2201 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DAA6; /* 0x2B04DA9A: je 0x2b04daa6 */ 2202 L_2B04DA9C: 2203 ecx = eax; /* 0x2B04DA9C: mov ecx, eax */ 2204 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DA9E: call dword ptr [0x2b0b5bd0] */ 2205 RECOMP_FLAGS_IN(); 2206 goto L_2B04DAA8; /* 0x2B04DAA4: jmp 0x2b04daa8 */ 2207 L_2B04DAA6: 2208 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2209 eax = 0; /* 0x2B04DAA6: xor eax, eax */ 2210 _cf = 0; 2211 _flag_k = FK_TEST; 2212 L_2B04DAA8: 2213 edx = MEM32(0x2B0B5BCC); /* 0x2B04DAA8: mov edx, dword ptr [0x2b0b5bcc] */ 2214 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DAAE: mov dword ptr [ebp - 4], 0xffffffff */ 2215 MEM32(edx) = eax; /* 0x2B04DAB5: mov dword ptr [edx], eax */ 2216 L_2B04DAB7: 2217 eax = MEM32(0x2B0B5BCC); /* 0x2B04DAB7: mov eax, dword ptr [0x2b0b5bcc] */ 2218 ecx = MEM32(eax); /* 0x2B04DABC: mov ecx, dword ptr [eax] */ 2219 PUSH32(esp, 0x36u); /* 0x2B04DABE: push 0x36 */ 2220 RECOMP_ICALL(esi); /* 0x2B04DAC0: call esi */ 2221 RECOMP_FLAGS_IN(); 2222 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DAC2: mov ecx, dword ptr [0x2b0b5bcc] */ 2223 MEM32(ebp + (-0x18)) = eax; /* 0x2B04DAC8: mov dword ptr [ebp - 0x18], eax */ 2224 /* cmp MEM32(ecx), ebx */ /* 0x2B04DACB: cmp dword ptr [ecx], ebx */ 2225 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 2226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2227 _flag_k = FK_CMP; 2228 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DB02; /* 0x2B04DACD: jne 0x2b04db02 */ 2229 L_2B04DACF: 2230 PUSH32(esp, 0x20u); /* 0x2B04DACF: push 0x20 */ 2231 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DAD1: call 0x2b0ab212 */ /* not lifted */ 2232 RECOMP_FLAGS_IN(); 2233 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2235 esp = esp + 4; /* 0x2B04DAD6: add esp, 4 */ 2236 _flag_k = FK_ADD; 2237 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DAD9: mov dword ptr [ebp - 0x10], eax */ 2238 /* cmp eax, ebx */ /* 0x2B04DADC: cmp eax, ebx */ 2239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2241 _flag_k = FK_CMP; 2242 MEM32(ebp + (-0x4)) = 0x29u; /* 0x2B04DADE: mov dword ptr [ebp - 4], 0x29 */ 2243 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DAF1; /* 0x2B04DAE5: je 0x2b04daf1 */ 2244 L_2B04DAE7: 2245 ecx = eax; /* 0x2B04DAE7: mov ecx, eax */ 2246 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DAE9: call dword ptr [0x2b0b5bd0] */ 2247 RECOMP_FLAGS_IN(); 2248 goto L_2B04DAF3; /* 0x2B04DAEF: jmp 0x2b04daf3 */ 2249 L_2B04DAF1: 2250 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2251 eax = 0; /* 0x2B04DAF1: xor eax, eax */ 2252 _cf = 0; 2253 _flag_k = FK_TEST; 2254 L_2B04DAF3: 2255 edx = MEM32(0x2B0B5BCC); /* 0x2B04DAF3: mov edx, dword ptr [0x2b0b5bcc] */ 2256 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DAF9: mov dword ptr [ebp - 4], 0xffffffff */ 2257 MEM32(edx) = eax; /* 0x2B04DB00: mov dword ptr [edx], eax */ 2258 L_2B04DB02: 2259 eax = MEM32(0x2B0B5BCC); /* 0x2B04DB02: mov eax, dword ptr [0x2b0b5bcc] */ 2260 ecx = MEM32(eax); /* 0x2B04DB07: mov ecx, dword ptr [eax] */ 2261 PUSH32(esp, 0x36u); /* 0x2B04DB09: push 0x36 */ 2262 RECOMP_ICALL(esi); /* 0x2B04DB0B: call esi */ 2263 RECOMP_FLAGS_IN(); 2264 ecx = ebp + (-0x18); /* 0x2B04DB0D: lea ecx, [ebp - 0x18] */ 2265 PUSH32(esp, ecx); /* 0x2B04DB10: push ecx */ 2266 edx = ebp + (-0x1C); /* 0x2B04DB11: lea edx, [ebp - 0x1c] */ 2267 PUSH32(esp, edx); /* 0x2B04DB14: push edx */ 2268 ecx = ebp + (-0x40); /* 0x2B04DB15: lea ecx, [ebp - 0x40] */ 2269 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04DB18: mov dword ptr [ebp - 0x1c], eax */ 2270 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04DB1B: call 0x2b053ac0 */ /* not lifted */ 2271 RECOMP_FLAGS_IN(); 2272 ecx = MEM32(eax); /* 0x2B04DB20: mov ecx, dword ptr [eax] */ 2273 edx = MEM32(eax + 0x4); /* 0x2B04DB22: mov edx, dword ptr [eax + 4] */ 2274 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04DB25: mov al, byte ptr [ebp + 0xb] */ 2275 MEM32(ebp + (-0x24)) = ecx; /* 0x2B04DB28: mov dword ptr [ebp - 0x24], ecx */ 2276 PUSH32(esp, ebx); /* 0x2B04DB2B: push ebx */ 2277 ecx = ebp + (-0x38); /* 0x2B04DB2C: lea ecx, [ebp - 0x38] */ 2278 MEM32(ebp + (-0x20)) = edx; /* 0x2B04DB2F: mov dword ptr [ebp - 0x20], edx */ 2279 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(eax)); /* 0x2B04DB32: mov byte ptr [ebp - 0x38], al */ 2280 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DB35: call dword ptr [0x2b0b514c] */ 2281 RECOMP_FLAGS_IN(); 2282 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2283 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04DB3B: or ecx, 0xffffffff */ 2284 _cf = 0; 2285 _flag_k = FK_TEST; 2286 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2287 eax = 0; /* 0x2B04DB3E: xor eax, eax */ 2288 _cf = 0; 2289 _flag_k = FK_TEST; 2290 edi = 0x2B0E83F4u; /* 0x2B04DB40: mov edi, 0x2b0e83f4 */ 2291 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; } /* 0x2B04DB45: repne scasb al, byte ptr es:[edi] */ 2292 ecx = ~ecx; /* 0x2B04DB47: not ecx */ 2293 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2294 ecx = ecx - 1; /* 0x2B04DB49: dec ecx */ 2295 _flag_k = FK_DEC; 2296 PUSH32(esp, ecx); /* 0x2B04DB4A: push ecx */ 2297 PUSH32(esp, 0x2B0E83F4u); /* 0x2B04DB4B: push 0x2b0e83f4 */ 2298 ecx = ebp + (-0x38); /* 0x2B04DB50: lea ecx, [ebp - 0x38] */ 2299 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04DB53: call dword ptr [0x2b0b5148] */ 2300 RECOMP_FLAGS_IN(); 2301 ecx = ebp + (-0x14); /* 0x2B04DB59: lea ecx, [ebp - 0x14] */ 2302 PUSH32(esp, ecx); /* 0x2B04DB5C: push ecx */ 2303 edx = ebp + (-0x38); /* 0x2B04DB5D: lea edx, [ebp - 0x38] */ 2304 PUSH32(esp, edx); /* 0x2B04DB60: push edx */ 2305 ecx = ebp + (-0x7C); /* 0x2B04DB61: lea ecx, [ebp - 0x7c] */ 2306 MEM32(ebp + (-0x4)) = 0x2Au; /* 0x2B04DB64: mov dword ptr [ebp - 4], 0x2a */ 2307 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04DB6B: mov dword ptr [ebp - 0x14], ebx */ 2308 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04DB6E: mov dword ptr [ebp - 0x10], ebx */ 2309 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04DB71: call 0x2b051ac0 */ /* not lifted */ 2310 RECOMP_FLAGS_IN(); 2311 ecx = MEM32(ebp + (-0x28)); /* 0x2B04DB76: mov ecx, dword ptr [ebp - 0x28] */ 2312 PUSH32(esp, eax); /* 0x2B04DB79: push eax */ 2313 eax = ebp + (-0x40); /* 0x2B04DB7A: lea eax, [ebp - 0x40] */ 2314 PUSH32(esp, eax); /* 0x2B04DB7D: push eax */ 2315 MEM8(ebp + (-0x4)) = (uint8_t)(0x2Bu); /* 0x2B04DB7E: mov byte ptr [ebp - 4], 0x2b */ 2316 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04DB82: call 0x2b0519d0 */ /* not lifted */ 2317 RECOMP_FLAGS_IN(); 2318 edi = MEM32(eax); /* 0x2B04DB87: mov edi, dword ptr [eax] */ 2319 PUSH32(esp, 1); /* 0x2B04DB89: push 1 */ 2320 ecx = ebp + (-0x7C); /* 0x2B04DB8B: lea ecx, [ebp - 0x7c] */ 2321 MEM8(ebp + (-0x4)) = (uint8_t)(0x2Au); /* 0x2B04DB8E: mov byte ptr [ebp - 4], 0x2a */ 2322 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DB92: call dword ptr [0x2b0b514c] */ 2323 RECOMP_FLAGS_IN(); 2324 ecx = MEM32(ebp + (-0x24)); /* 0x2B04DB98: mov ecx, dword ptr [ebp - 0x24] */ 2325 edx = MEM32(ebp + (-0x20)); /* 0x2B04DB9B: mov edx, dword ptr [ebp - 0x20] */ 2326 MEM32(edi + 0x1C) = ecx; /* 0x2B04DB9E: mov dword ptr [edi + 0x1c], ecx */ 2327 PUSH32(esp, 1); /* 0x2B04DBA1: push 1 */ 2328 ecx = ebp + (-0x38); /* 0x2B04DBA3: lea ecx, [ebp - 0x38] */ 2329 MEM32(edi + 0x20) = edx; /* 0x2B04DBA6: mov dword ptr [edi + 0x20], edx */ 2330 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DBA9: mov dword ptr [ebp - 4], 0xffffffff */ 2331 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DBB0: call dword ptr [0x2b0b514c] */ 2332 RECOMP_FLAGS_IN(); 2333 eax = MEM32(0x2B0B5BCC); /* 0x2B04DBB6: mov eax, dword ptr [0x2b0b5bcc] */ 2334 /* cmp MEM32(eax), ebx */ /* 0x2B04DBBB: cmp dword ptr [eax], ebx */ 2335 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 2336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2337 _flag_k = FK_CMP; 2338 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DBF2; /* 0x2B04DBBD: jne 0x2b04dbf2 */ 2339 L_2B04DBBF: 2340 PUSH32(esp, 0x20u); /* 0x2B04DBBF: push 0x20 */ 2341 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DBC1: call 0x2b0ab212 */ /* not lifted */ 2342 RECOMP_FLAGS_IN(); 2343 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2345 esp = esp + 4; /* 0x2B04DBC6: add esp, 4 */ 2346 _flag_k = FK_ADD; 2347 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DBC9: mov dword ptr [ebp - 0x10], eax */ 2348 /* cmp eax, ebx */ /* 0x2B04DBCC: cmp eax, ebx */ 2349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2351 _flag_k = FK_CMP; 2352 MEM32(ebp + (-0x4)) = 0x2Cu; /* 0x2B04DBCE: mov dword ptr [ebp - 4], 0x2c */ 2353 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DBE1; /* 0x2B04DBD5: je 0x2b04dbe1 */ 2354 L_2B04DBD7: 2355 ecx = eax; /* 0x2B04DBD7: mov ecx, eax */ 2356 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DBD9: call dword ptr [0x2b0b5bd0] */ 2357 RECOMP_FLAGS_IN(); 2358 goto L_2B04DBE3; /* 0x2B04DBDF: jmp 0x2b04dbe3 */ 2359 L_2B04DBE1: 2360 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2361 eax = 0; /* 0x2B04DBE1: xor eax, eax */ 2362 _cf = 0; 2363 _flag_k = FK_TEST; 2364 L_2B04DBE3: 2365 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DBE3: mov ecx, dword ptr [0x2b0b5bcc] */ 2366 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DBE9: mov dword ptr [ebp - 4], 0xffffffff */ 2367 MEM32(ecx) = eax; /* 0x2B04DBF0: mov dword ptr [ecx], eax */ 2368 L_2B04DBF2: 2369 edx = MEM32(0x2B0B5BCC); /* 0x2B04DBF2: mov edx, dword ptr [0x2b0b5bcc] */ 2370 ecx = MEM32(edx); /* 0x2B04DBF8: mov ecx, dword ptr [edx] */ 2371 PUSH32(esp, 0x37u); /* 0x2B04DBFA: push 0x37 */ 2372 RECOMP_ICALL(esi); /* 0x2B04DBFC: call esi */ 2373 RECOMP_FLAGS_IN(); 2374 MEM32(ebp + (-0x18)) = eax; /* 0x2B04DBFE: mov dword ptr [ebp - 0x18], eax */ 2375 eax = MEM32(0x2B0B5BCC); /* 0x2B04DC01: mov eax, dword ptr [0x2b0b5bcc] */ 2376 /* cmp MEM32(eax), ebx */ /* 0x2B04DC06: cmp dword ptr [eax], ebx */ 2377 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 2378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2379 _flag_k = FK_CMP; 2380 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DC3D; /* 0x2B04DC08: jne 0x2b04dc3d */ 2381 L_2B04DC0A: 2382 PUSH32(esp, 0x20u); /* 0x2B04DC0A: push 0x20 */ 2383 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DC0C: call 0x2b0ab212 */ /* not lifted */ 2384 RECOMP_FLAGS_IN(); 2385 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2387 esp = esp + 4; /* 0x2B04DC11: add esp, 4 */ 2388 _flag_k = FK_ADD; 2389 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DC14: mov dword ptr [ebp - 0x10], eax */ 2390 /* cmp eax, ebx */ /* 0x2B04DC17: cmp eax, ebx */ 2391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2393 _flag_k = FK_CMP; 2394 MEM32(ebp + (-0x4)) = 0x2Du; /* 0x2B04DC19: mov dword ptr [ebp - 4], 0x2d */ 2395 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DC2C; /* 0x2B04DC20: je 0x2b04dc2c */ 2396 L_2B04DC22: 2397 ecx = eax; /* 0x2B04DC22: mov ecx, eax */ 2398 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DC24: call dword ptr [0x2b0b5bd0] */ 2399 RECOMP_FLAGS_IN(); 2400 goto L_2B04DC2E; /* 0x2B04DC2A: jmp 0x2b04dc2e */ 2401 L_2B04DC2C: 2402 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2403 eax = 0; /* 0x2B04DC2C: xor eax, eax */ 2404 _cf = 0; 2405 _flag_k = FK_TEST; 2406 L_2B04DC2E: 2407 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DC2E: mov ecx, dword ptr [0x2b0b5bcc] */ 2408 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DC34: mov dword ptr [ebp - 4], 0xffffffff */ 2409 MEM32(ecx) = eax; /* 0x2B04DC3B: mov dword ptr [ecx], eax */ 2410 L_2B04DC3D: 2411 edx = MEM32(0x2B0B5BCC); /* 0x2B04DC3D: mov edx, dword ptr [0x2b0b5bcc] */ 2412 ecx = MEM32(edx); /* 0x2B04DC43: mov ecx, dword ptr [edx] */ 2413 PUSH32(esp, 0x37u); /* 0x2B04DC45: push 0x37 */ 2414 RECOMP_ICALL(esi); /* 0x2B04DC47: call esi */ 2415 RECOMP_FLAGS_IN(); 2416 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04DC49: mov dword ptr [ebp - 0x1c], eax */ 2417 eax = ebp + (-0x18); /* 0x2B04DC4C: lea eax, [ebp - 0x18] */ 2418 PUSH32(esp, eax); /* 0x2B04DC4F: push eax */ 2419 ecx = ebp + (-0x1C); /* 0x2B04DC50: lea ecx, [ebp - 0x1c] */ 2420 PUSH32(esp, ecx); /* 0x2B04DC53: push ecx */ 2421 ecx = ebp + (-0x40); /* 0x2B04DC54: lea ecx, [ebp - 0x40] */ 2422 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04DC57: call 0x2b053ac0 */ /* not lifted */ 2423 RECOMP_FLAGS_IN(); 2424 edx = MEM32(eax); /* 0x2B04DC5C: mov edx, dword ptr [eax] */ 2425 eax = MEM32(eax + 0x4); /* 0x2B04DC5E: mov eax, dword ptr [eax + 4] */ 2426 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04DC61: mov cl, byte ptr [ebp + 0xb] */ 2427 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(ecx)); /* 0x2B04DC64: mov byte ptr [ebp - 0x38], cl */ 2428 PUSH32(esp, ebx); /* 0x2B04DC67: push ebx */ 2429 ecx = ebp + (-0x38); /* 0x2B04DC68: lea ecx, [ebp - 0x38] */ 2430 MEM32(ebp + (-0x24)) = edx; /* 0x2B04DC6B: mov dword ptr [ebp - 0x24], edx */ 2431 MEM32(ebp + (-0x20)) = eax; /* 0x2B04DC6E: mov dword ptr [ebp - 0x20], eax */ 2432 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DC71: call dword ptr [0x2b0b514c] */ 2433 RECOMP_FLAGS_IN(); 2434 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2435 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04DC77: or ecx, 0xffffffff */ 2436 _cf = 0; 2437 _flag_k = FK_TEST; 2438 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2439 eax = 0; /* 0x2B04DC7A: xor eax, eax */ 2440 _cf = 0; 2441 _flag_k = FK_TEST; 2442 edi = 0x2B0E83ECu; /* 0x2B04DC7C: mov edi, 0x2b0e83ec */ 2443 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; } /* 0x2B04DC81: repne scasb al, byte ptr es:[edi] */ 2444 ecx = ~ecx; /* 0x2B04DC83: not ecx */ 2445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2446 ecx = ecx - 1; /* 0x2B04DC85: dec ecx */ 2447 _flag_k = FK_DEC; 2448 PUSH32(esp, ecx); /* 0x2B04DC86: push ecx */ 2449 PUSH32(esp, 0x2B0E83ECu); /* 0x2B04DC87: push 0x2b0e83ec */ 2450 ecx = ebp + (-0x38); /* 0x2B04DC8C: lea ecx, [ebp - 0x38] */ 2451 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04DC8F: call dword ptr [0x2b0b5148] */ 2452 RECOMP_FLAGS_IN(); 2453 edx = ebp + (-0x14); /* 0x2B04DC95: lea edx, [ebp - 0x14] */ 2454 PUSH32(esp, edx); /* 0x2B04DC98: push edx */ 2455 eax = ebp + (-0x38); /* 0x2B04DC99: lea eax, [ebp - 0x38] */ 2456 PUSH32(esp, eax); /* 0x2B04DC9C: push eax */ 2457 ecx = ebp + (-0x7C); /* 0x2B04DC9D: lea ecx, [ebp - 0x7c] */ 2458 MEM32(ebp + (-0x4)) = 0x2Eu; /* 0x2B04DCA0: mov dword ptr [ebp - 4], 0x2e */ 2459 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04DCA7: mov dword ptr [ebp - 0x14], ebx */ 2460 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04DCAA: mov dword ptr [ebp - 0x10], ebx */ 2461 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04DCAD: call 0x2b051ac0 */ /* not lifted */ 2462 RECOMP_FLAGS_IN(); 2463 PUSH32(esp, eax); /* 0x2B04DCB2: push eax */ 2464 ecx = ebp + (-0x40); /* 0x2B04DCB3: lea ecx, [ebp - 0x40] */ 2465 PUSH32(esp, ecx); /* 0x2B04DCB6: push ecx */ 2466 ecx = MEM32(ebp + (-0x28)); /* 0x2B04DCB7: mov ecx, dword ptr [ebp - 0x28] */ 2467 MEM8(ebp + (-0x4)) = (uint8_t)(0x2Fu); /* 0x2B04DCBA: mov byte ptr [ebp - 4], 0x2f */ 2468 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04DCBE: call 0x2b0519d0 */ /* not lifted */ 2469 RECOMP_FLAGS_IN(); 2470 edi = MEM32(eax); /* 0x2B04DCC3: mov edi, dword ptr [eax] */ 2471 PUSH32(esp, 1); /* 0x2B04DCC5: push 1 */ 2472 ecx = ebp + (-0x7C); /* 0x2B04DCC7: lea ecx, [ebp - 0x7c] */ 2473 MEM8(ebp + (-0x4)) = (uint8_t)(0x2Eu); /* 0x2B04DCCA: mov byte ptr [ebp - 4], 0x2e */ 2474 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DCCE: call dword ptr [0x2b0b514c] */ 2475 RECOMP_FLAGS_IN(); 2476 edx = MEM32(ebp + (-0x24)); /* 0x2B04DCD4: mov edx, dword ptr [ebp - 0x24] */ 2477 eax = MEM32(ebp + (-0x20)); /* 0x2B04DCD7: mov eax, dword ptr [ebp - 0x20] */ 2478 MEM32(edi + 0x1C) = edx; /* 0x2B04DCDA: mov dword ptr [edi + 0x1c], edx */ 2479 PUSH32(esp, 1); /* 0x2B04DCDD: push 1 */ 2480 ecx = ebp + (-0x38); /* 0x2B04DCDF: lea ecx, [ebp - 0x38] */ 2481 MEM32(edi + 0x20) = eax; /* 0x2B04DCE2: mov dword ptr [edi + 0x20], eax */ 2482 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DCE5: mov dword ptr [ebp - 4], 0xffffffff */ 2483 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DCEC: call dword ptr [0x2b0b514c] */ 2484 RECOMP_FLAGS_IN(); 2485 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DCF2: mov ecx, dword ptr [0x2b0b5bcc] */ 2486 /* cmp MEM32(ecx), ebx */ /* 0x2B04DCF8: cmp dword ptr [ecx], ebx */ 2487 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 2488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2489 _flag_k = FK_CMP; 2490 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DD2F; /* 0x2B04DCFA: jne 0x2b04dd2f */ 2491 L_2B04DCFC: 2492 PUSH32(esp, 0x20u); /* 0x2B04DCFC: push 0x20 */ 2493 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DCFE: call 0x2b0ab212 */ /* not lifted */ 2494 RECOMP_FLAGS_IN(); 2495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2497 esp = esp + 4; /* 0x2B04DD03: add esp, 4 */ 2498 _flag_k = FK_ADD; 2499 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DD06: mov dword ptr [ebp - 0x10], eax */ 2500 /* cmp eax, ebx */ /* 0x2B04DD09: cmp eax, ebx */ 2501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2503 _flag_k = FK_CMP; 2504 MEM32(ebp + (-0x4)) = 0x30u; /* 0x2B04DD0B: mov dword ptr [ebp - 4], 0x30 */ 2505 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DD1E; /* 0x2B04DD12: je 0x2b04dd1e */ 2506 L_2B04DD14: 2507 ecx = eax; /* 0x2B04DD14: mov ecx, eax */ 2508 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DD16: call dword ptr [0x2b0b5bd0] */ 2509 RECOMP_FLAGS_IN(); 2510 goto L_2B04DD20; /* 0x2B04DD1C: jmp 0x2b04dd20 */ 2511 L_2B04DD1E: 2512 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2513 eax = 0; /* 0x2B04DD1E: xor eax, eax */ 2514 _cf = 0; 2515 _flag_k = FK_TEST; 2516 L_2B04DD20: 2517 edx = MEM32(0x2B0B5BCC); /* 0x2B04DD20: mov edx, dword ptr [0x2b0b5bcc] */ 2518 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DD26: mov dword ptr [ebp - 4], 0xffffffff */ 2519 MEM32(edx) = eax; /* 0x2B04DD2D: mov dword ptr [edx], eax */ 2520 L_2B04DD2F: 2521 eax = MEM32(0x2B0B5BCC); /* 0x2B04DD2F: mov eax, dword ptr [0x2b0b5bcc] */ 2522 ecx = MEM32(eax); /* 0x2B04DD34: mov ecx, dword ptr [eax] */ 2523 PUSH32(esp, 4); /* 0x2B04DD36: push 4 */ 2524 RECOMP_ICALL(esi); /* 0x2B04DD38: call esi */ 2525 RECOMP_FLAGS_IN(); 2526 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DD3A: mov ecx, dword ptr [0x2b0b5bcc] */ 2527 MEM32(ebp + (-0x18)) = eax; /* 0x2B04DD40: mov dword ptr [ebp - 0x18], eax */ 2528 /* cmp MEM32(ecx), ebx */ /* 0x2B04DD43: cmp dword ptr [ecx], ebx */ 2529 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 2530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2531 _flag_k = FK_CMP; 2532 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DD7A; /* 0x2B04DD45: jne 0x2b04dd7a */ 2533 L_2B04DD47: 2534 PUSH32(esp, 0x20u); /* 0x2B04DD47: push 0x20 */ 2535 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DD49: call 0x2b0ab212 */ /* not lifted */ 2536 RECOMP_FLAGS_IN(); 2537 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2539 esp = esp + 4; /* 0x2B04DD4E: add esp, 4 */ 2540 _flag_k = FK_ADD; 2541 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DD51: mov dword ptr [ebp - 0x10], eax */ 2542 /* cmp eax, ebx */ /* 0x2B04DD54: cmp eax, ebx */ 2543 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2545 _flag_k = FK_CMP; 2546 MEM32(ebp + (-0x4)) = 0x31u; /* 0x2B04DD56: mov dword ptr [ebp - 4], 0x31 */ 2547 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DD69; /* 0x2B04DD5D: je 0x2b04dd69 */ 2548 L_2B04DD5F: 2549 ecx = eax; /* 0x2B04DD5F: mov ecx, eax */ 2550 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DD61: call dword ptr [0x2b0b5bd0] */ 2551 RECOMP_FLAGS_IN(); 2552 goto L_2B04DD6B; /* 0x2B04DD67: jmp 0x2b04dd6b */ 2553 L_2B04DD69: 2554 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2555 eax = 0; /* 0x2B04DD69: xor eax, eax */ 2556 _cf = 0; 2557 _flag_k = FK_TEST; 2558 L_2B04DD6B: 2559 edx = MEM32(0x2B0B5BCC); /* 0x2B04DD6B: mov edx, dword ptr [0x2b0b5bcc] */ 2560 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DD71: mov dword ptr [ebp - 4], 0xffffffff */ 2561 MEM32(edx) = eax; /* 0x2B04DD78: mov dword ptr [edx], eax */ 2562 L_2B04DD7A: 2563 eax = MEM32(0x2B0B5BCC); /* 0x2B04DD7A: mov eax, dword ptr [0x2b0b5bcc] */ 2564 ecx = MEM32(eax); /* 0x2B04DD7F: mov ecx, dword ptr [eax] */ 2565 PUSH32(esp, 4); /* 0x2B04DD81: push 4 */ 2566 RECOMP_ICALL(esi); /* 0x2B04DD83: call esi */ 2567 RECOMP_FLAGS_IN(); 2568 ecx = ebp + (-0x18); /* 0x2B04DD85: lea ecx, [ebp - 0x18] */ 2569 PUSH32(esp, ecx); /* 0x2B04DD88: push ecx */ 2570 edx = ebp + (-0x1C); /* 0x2B04DD89: lea edx, [ebp - 0x1c] */ 2571 PUSH32(esp, edx); /* 0x2B04DD8C: push edx */ 2572 ecx = ebp + (-0x40); /* 0x2B04DD8D: lea ecx, [ebp - 0x40] */ 2573 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04DD90: mov dword ptr [ebp - 0x1c], eax */ 2574 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04DD93: call 0x2b053ac0 */ /* not lifted */ 2575 RECOMP_FLAGS_IN(); 2576 ecx = MEM32(eax); /* 0x2B04DD98: mov ecx, dword ptr [eax] */ 2577 edx = MEM32(eax + 0x4); /* 0x2B04DD9A: mov edx, dword ptr [eax + 4] */ 2578 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04DD9D: mov al, byte ptr [ebp + 0xb] */ 2579 MEM32(ebp + (-0x24)) = ecx; /* 0x2B04DDA0: mov dword ptr [ebp - 0x24], ecx */ 2580 PUSH32(esp, ebx); /* 0x2B04DDA3: push ebx */ 2581 ecx = ebp + (-0x38); /* 0x2B04DDA4: lea ecx, [ebp - 0x38] */ 2582 MEM32(ebp + (-0x20)) = edx; /* 0x2B04DDA7: mov dword ptr [ebp - 0x20], edx */ 2583 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(eax)); /* 0x2B04DDAA: mov byte ptr [ebp - 0x38], al */ 2584 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DDAD: call dword ptr [0x2b0b514c] */ 2585 RECOMP_FLAGS_IN(); 2586 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2587 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04DDB3: or ecx, 0xffffffff */ 2588 _cf = 0; 2589 _flag_k = FK_TEST; 2590 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2591 eax = 0; /* 0x2B04DDB6: xor eax, eax */ 2592 _cf = 0; 2593 _flag_k = FK_TEST; 2594 edi = 0x2B0E1B68u; /* 0x2B04DDB8: mov edi, 0x2b0e1b68 */ 2595 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; } /* 0x2B04DDBD: repne scasb al, byte ptr es:[edi] */ 2596 ecx = ~ecx; /* 0x2B04DDBF: not ecx */ 2597 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2598 ecx = ecx - 1; /* 0x2B04DDC1: dec ecx */ 2599 _flag_k = FK_DEC; 2600 PUSH32(esp, ecx); /* 0x2B04DDC2: push ecx */ 2601 PUSH32(esp, 0x2B0E1B68u); /* 0x2B04DDC3: push 0x2b0e1b68 */ 2602 ecx = ebp + (-0x38); /* 0x2B04DDC8: lea ecx, [ebp - 0x38] */ 2603 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04DDCB: call dword ptr [0x2b0b5148] */ 2604 RECOMP_FLAGS_IN(); 2605 ecx = ebp + (-0x14); /* 0x2B04DDD1: lea ecx, [ebp - 0x14] */ 2606 PUSH32(esp, ecx); /* 0x2B04DDD4: push ecx */ 2607 edx = ebp + (-0x38); /* 0x2B04DDD5: lea edx, [ebp - 0x38] */ 2608 PUSH32(esp, edx); /* 0x2B04DDD8: push edx */ 2609 ecx = ebp + (-0x7C); /* 0x2B04DDD9: lea ecx, [ebp - 0x7c] */ 2610 MEM32(ebp + (-0x4)) = 0x32u; /* 0x2B04DDDC: mov dword ptr [ebp - 4], 0x32 */ 2611 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04DDE3: mov dword ptr [ebp - 0x14], ebx */ 2612 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04DDE6: mov dword ptr [ebp - 0x10], ebx */ 2613 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04DDE9: call 0x2b051ac0 */ /* not lifted */ 2614 RECOMP_FLAGS_IN(); 2615 ecx = MEM32(ebp + (-0x28)); /* 0x2B04DDEE: mov ecx, dword ptr [ebp - 0x28] */ 2616 PUSH32(esp, eax); /* 0x2B04DDF1: push eax */ 2617 eax = ebp + (-0x40); /* 0x2B04DDF2: lea eax, [ebp - 0x40] */ 2618 PUSH32(esp, eax); /* 0x2B04DDF5: push eax */ 2619 MEM8(ebp + (-0x4)) = (uint8_t)(0x33u); /* 0x2B04DDF6: mov byte ptr [ebp - 4], 0x33 */ 2620 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04DDFA: call 0x2b0519d0 */ /* not lifted */ 2621 RECOMP_FLAGS_IN(); 2622 edi = MEM32(eax); /* 0x2B04DDFF: mov edi, dword ptr [eax] */ 2623 PUSH32(esp, 1); /* 0x2B04DE01: push 1 */ 2624 ecx = ebp + (-0x7C); /* 0x2B04DE03: lea ecx, [ebp - 0x7c] */ 2625 MEM8(ebp + (-0x4)) = (uint8_t)(0x32u); /* 0x2B04DE06: mov byte ptr [ebp - 4], 0x32 */ 2626 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DE0A: call dword ptr [0x2b0b514c] */ 2627 RECOMP_FLAGS_IN(); 2628 ecx = MEM32(ebp + (-0x24)); /* 0x2B04DE10: mov ecx, dword ptr [ebp - 0x24] */ 2629 edx = MEM32(ebp + (-0x20)); /* 0x2B04DE13: mov edx, dword ptr [ebp - 0x20] */ 2630 MEM32(edi + 0x1C) = ecx; /* 0x2B04DE16: mov dword ptr [edi + 0x1c], ecx */ 2631 PUSH32(esp, 1); /* 0x2B04DE19: push 1 */ 2632 ecx = ebp + (-0x38); /* 0x2B04DE1B: lea ecx, [ebp - 0x38] */ 2633 MEM32(edi + 0x20) = edx; /* 0x2B04DE1E: mov dword ptr [edi + 0x20], edx */ 2634 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DE21: mov dword ptr [ebp - 4], 0xffffffff */ 2635 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DE28: call dword ptr [0x2b0b514c] */ 2636 RECOMP_FLAGS_IN(); 2637 eax = MEM32(0x2B0B5BCC); /* 0x2B04DE2E: mov eax, dword ptr [0x2b0b5bcc] */ 2638 /* cmp MEM32(eax), ebx */ /* 0x2B04DE33: cmp dword ptr [eax], ebx */ 2639 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 2640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2641 _flag_k = FK_CMP; 2642 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DE6A; /* 0x2B04DE35: jne 0x2b04de6a */ 2643 L_2B04DE37: 2644 PUSH32(esp, 0x20u); /* 0x2B04DE37: push 0x20 */ 2645 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DE39: call 0x2b0ab212 */ /* not lifted */ 2646 RECOMP_FLAGS_IN(); 2647 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2648 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2649 esp = esp + 4; /* 0x2B04DE3E: add esp, 4 */ 2650 _flag_k = FK_ADD; 2651 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DE41: mov dword ptr [ebp - 0x10], eax */ 2652 /* cmp eax, ebx */ /* 0x2B04DE44: cmp eax, ebx */ 2653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2655 _flag_k = FK_CMP; 2656 MEM32(ebp + (-0x4)) = 0x34u; /* 0x2B04DE46: mov dword ptr [ebp - 4], 0x34 */ 2657 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DE59; /* 0x2B04DE4D: je 0x2b04de59 */ 2658 L_2B04DE4F: 2659 ecx = eax; /* 0x2B04DE4F: mov ecx, eax */ 2660 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DE51: call dword ptr [0x2b0b5bd0] */ 2661 RECOMP_FLAGS_IN(); 2662 goto L_2B04DE5B; /* 0x2B04DE57: jmp 0x2b04de5b */ 2663 L_2B04DE59: 2664 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2665 eax = 0; /* 0x2B04DE59: xor eax, eax */ 2666 _cf = 0; 2667 _flag_k = FK_TEST; 2668 L_2B04DE5B: 2669 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DE5B: mov ecx, dword ptr [0x2b0b5bcc] */ 2670 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DE61: mov dword ptr [ebp - 4], 0xffffffff */ 2671 MEM32(ecx) = eax; /* 0x2B04DE68: mov dword ptr [ecx], eax */ 2672 L_2B04DE6A: 2673 edx = MEM32(0x2B0B5BCC); /* 0x2B04DE6A: mov edx, dword ptr [0x2b0b5bcc] */ 2674 ecx = MEM32(edx); /* 0x2B04DE70: mov ecx, dword ptr [edx] */ 2675 PUSH32(esp, 6); /* 0x2B04DE72: push 6 */ 2676 RECOMP_ICALL(esi); /* 0x2B04DE74: call esi */ 2677 RECOMP_FLAGS_IN(); 2678 MEM32(ebp + (-0x18)) = eax; /* 0x2B04DE76: mov dword ptr [ebp - 0x18], eax */ 2679 eax = MEM32(0x2B0B5BCC); /* 0x2B04DE79: mov eax, dword ptr [0x2b0b5bcc] */ 2680 /* cmp MEM32(eax), ebx */ /* 0x2B04DE7E: cmp dword ptr [eax], ebx */ 2681 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 2682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2683 _flag_k = FK_CMP; 2684 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DEB5; /* 0x2B04DE80: jne 0x2b04deb5 */ 2685 L_2B04DE82: 2686 PUSH32(esp, 0x20u); /* 0x2B04DE82: push 0x20 */ 2687 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DE84: call 0x2b0ab212 */ /* not lifted */ 2688 RECOMP_FLAGS_IN(); 2689 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2690 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2691 esp = esp + 4; /* 0x2B04DE89: add esp, 4 */ 2692 _flag_k = FK_ADD; 2693 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DE8C: mov dword ptr [ebp - 0x10], eax */ 2694 /* cmp eax, ebx */ /* 0x2B04DE8F: cmp eax, ebx */ 2695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2697 _flag_k = FK_CMP; 2698 MEM32(ebp + (-0x4)) = 0x35u; /* 0x2B04DE91: mov dword ptr [ebp - 4], 0x35 */ 2699 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DEA4; /* 0x2B04DE98: je 0x2b04dea4 */ 2700 L_2B04DE9A: 2701 ecx = eax; /* 0x2B04DE9A: mov ecx, eax */ 2702 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DE9C: call dword ptr [0x2b0b5bd0] */ 2703 RECOMP_FLAGS_IN(); 2704 goto L_2B04DEA6; /* 0x2B04DEA2: jmp 0x2b04dea6 */ 2705 L_2B04DEA4: 2706 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2707 eax = 0; /* 0x2B04DEA4: xor eax, eax */ 2708 _cf = 0; 2709 _flag_k = FK_TEST; 2710 L_2B04DEA6: 2711 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DEA6: mov ecx, dword ptr [0x2b0b5bcc] */ 2712 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DEAC: mov dword ptr [ebp - 4], 0xffffffff */ 2713 MEM32(ecx) = eax; /* 0x2B04DEB3: mov dword ptr [ecx], eax */ 2714 L_2B04DEB5: 2715 edx = MEM32(0x2B0B5BCC); /* 0x2B04DEB5: mov edx, dword ptr [0x2b0b5bcc] */ 2716 ecx = MEM32(edx); /* 0x2B04DEBB: mov ecx, dword ptr [edx] */ 2717 PUSH32(esp, 6); /* 0x2B04DEBD: push 6 */ 2718 RECOMP_ICALL(esi); /* 0x2B04DEBF: call esi */ 2719 RECOMP_FLAGS_IN(); 2720 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04DEC1: mov dword ptr [ebp - 0x1c], eax */ 2721 eax = ebp + (-0x18); /* 0x2B04DEC4: lea eax, [ebp - 0x18] */ 2722 PUSH32(esp, eax); /* 0x2B04DEC7: push eax */ 2723 ecx = ebp + (-0x1C); /* 0x2B04DEC8: lea ecx, [ebp - 0x1c] */ 2724 PUSH32(esp, ecx); /* 0x2B04DECB: push ecx */ 2725 ecx = ebp + (-0x40); /* 0x2B04DECC: lea ecx, [ebp - 0x40] */ 2726 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04DECF: call 0x2b053ac0 */ /* not lifted */ 2727 RECOMP_FLAGS_IN(); 2728 edx = MEM32(eax); /* 0x2B04DED4: mov edx, dword ptr [eax] */ 2729 eax = MEM32(eax + 0x4); /* 0x2B04DED6: mov eax, dword ptr [eax + 4] */ 2730 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04DED9: mov cl, byte ptr [ebp + 0xb] */ 2731 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(ecx)); /* 0x2B04DEDC: mov byte ptr [ebp - 0x38], cl */ 2732 PUSH32(esp, ebx); /* 0x2B04DEDF: push ebx */ 2733 ecx = ebp + (-0x38); /* 0x2B04DEE0: lea ecx, [ebp - 0x38] */ 2734 MEM32(ebp + (-0x24)) = edx; /* 0x2B04DEE3: mov dword ptr [ebp - 0x24], edx */ 2735 MEM32(ebp + (-0x20)) = eax; /* 0x2B04DEE6: mov dword ptr [ebp - 0x20], eax */ 2736 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DEE9: call dword ptr [0x2b0b514c] */ 2737 RECOMP_FLAGS_IN(); 2738 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2739 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04DEEF: or ecx, 0xffffffff */ 2740 _cf = 0; 2741 _flag_k = FK_TEST; 2742 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2743 eax = 0; /* 0x2B04DEF2: xor eax, eax */ 2744 _cf = 0; 2745 _flag_k = FK_TEST; 2746 edi = 0x2B0E83E4u; /* 0x2B04DEF4: mov edi, 0x2b0e83e4 */ 2747 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; } /* 0x2B04DEF9: repne scasb al, byte ptr es:[edi] */ 2748 ecx = ~ecx; /* 0x2B04DEFB: not ecx */ 2749 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2750 ecx = ecx - 1; /* 0x2B04DEFD: dec ecx */ 2751 _flag_k = FK_DEC; 2752 PUSH32(esp, ecx); /* 0x2B04DEFE: push ecx */ 2753 PUSH32(esp, 0x2B0E83E4u); /* 0x2B04DEFF: push 0x2b0e83e4 */ 2754 ecx = ebp + (-0x38); /* 0x2B04DF04: lea ecx, [ebp - 0x38] */ 2755 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04DF07: call dword ptr [0x2b0b5148] */ 2756 RECOMP_FLAGS_IN(); 2757 edx = ebp + (-0x14); /* 0x2B04DF0D: lea edx, [ebp - 0x14] */ 2758 PUSH32(esp, edx); /* 0x2B04DF10: push edx */ 2759 eax = ebp + (-0x38); /* 0x2B04DF11: lea eax, [ebp - 0x38] */ 2760 PUSH32(esp, eax); /* 0x2B04DF14: push eax */ 2761 ecx = ebp + (-0x7C); /* 0x2B04DF15: lea ecx, [ebp - 0x7c] */ 2762 MEM32(ebp + (-0x4)) = 0x36u; /* 0x2B04DF18: mov dword ptr [ebp - 4], 0x36 */ 2763 MEM32(ebp + (-0x14)) = ebx; /* 0x2B04DF1F: mov dword ptr [ebp - 0x14], ebx */ 2764 MEM32(ebp + (-0x10)) = ebx; /* 0x2B04DF22: mov dword ptr [ebp - 0x10], ebx */ 2765 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04DF25: call 0x2b051ac0 */ /* not lifted */ 2766 RECOMP_FLAGS_IN(); 2767 PUSH32(esp, eax); /* 0x2B04DF2A: push eax */ 2768 ecx = ebp + (-0x40); /* 0x2B04DF2B: lea ecx, [ebp - 0x40] */ 2769 PUSH32(esp, ecx); /* 0x2B04DF2E: push ecx */ 2770 ecx = MEM32(ebp + (-0x28)); /* 0x2B04DF2F: mov ecx, dword ptr [ebp - 0x28] */ 2771 MEM8(ebp + (-0x4)) = (uint8_t)(0x37u); /* 0x2B04DF32: mov byte ptr [ebp - 4], 0x37 */ 2772 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04DF36: call 0x2b0519d0 */ /* not lifted */ 2773 RECOMP_FLAGS_IN(); 2774 edi = MEM32(eax); /* 0x2B04DF3B: mov edi, dword ptr [eax] */ 2775 PUSH32(esp, 1); /* 0x2B04DF3D: push 1 */ 2776 ecx = ebp + (-0x7C); /* 0x2B04DF3F: lea ecx, [ebp - 0x7c] */ 2777 MEM8(ebp + (-0x4)) = (uint8_t)(0x36u); /* 0x2B04DF42: mov byte ptr [ebp - 4], 0x36 */ 2778 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DF46: call dword ptr [0x2b0b514c] */ 2779 RECOMP_FLAGS_IN(); 2780 edx = MEM32(ebp + (-0x24)); /* 0x2B04DF4C: mov edx, dword ptr [ebp - 0x24] */ 2781 eax = MEM32(ebp + (-0x20)); /* 0x2B04DF4F: mov eax, dword ptr [ebp - 0x20] */ 2782 MEM32(edi + 0x1C) = edx; /* 0x2B04DF52: mov dword ptr [edi + 0x1c], edx */ 2783 PUSH32(esp, 1); /* 0x2B04DF55: push 1 */ 2784 ecx = ebp + (-0x38); /* 0x2B04DF57: lea ecx, [ebp - 0x38] */ 2785 MEM32(edi + 0x20) = eax; /* 0x2B04DF5A: mov dword ptr [edi + 0x20], eax */ 2786 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DF5D: mov dword ptr [ebp - 4], 0xffffffff */ 2787 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04DF64: call dword ptr [0x2b0b514c] */ 2788 RECOMP_FLAGS_IN(); 2789 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DF6A: mov ecx, dword ptr [0x2b0b5bcc] */ 2790 /* cmp MEM32(ecx), ebx */ /* 0x2B04DF70: cmp dword ptr [ecx], ebx */ 2791 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 2792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2793 _flag_k = FK_CMP; 2794 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DFA7; /* 0x2B04DF72: jne 0x2b04dfa7 */ 2795 L_2B04DF74: 2796 PUSH32(esp, 0x20u); /* 0x2B04DF74: push 0x20 */ 2797 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DF76: call 0x2b0ab212 */ /* not lifted */ 2798 RECOMP_FLAGS_IN(); 2799 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2801 esp = esp + 4; /* 0x2B04DF7B: add esp, 4 */ 2802 _flag_k = FK_ADD; 2803 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DF7E: mov dword ptr [ebp - 0x10], eax */ 2804 /* cmp eax, ebx */ /* 0x2B04DF81: cmp eax, ebx */ 2805 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2807 _flag_k = FK_CMP; 2808 MEM32(ebp + (-0x4)) = 0x38u; /* 0x2B04DF83: mov dword ptr [ebp - 4], 0x38 */ 2809 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DF96; /* 0x2B04DF8A: je 0x2b04df96 */ 2810 L_2B04DF8C: 2811 ecx = eax; /* 0x2B04DF8C: mov ecx, eax */ 2812 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DF8E: call dword ptr [0x2b0b5bd0] */ 2813 RECOMP_FLAGS_IN(); 2814 goto L_2B04DF98; /* 0x2B04DF94: jmp 0x2b04df98 */ 2815 L_2B04DF96: 2816 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2817 eax = 0; /* 0x2B04DF96: xor eax, eax */ 2818 _cf = 0; 2819 _flag_k = FK_TEST; 2820 L_2B04DF98: 2821 edx = MEM32(0x2B0B5BCC); /* 0x2B04DF98: mov edx, dword ptr [0x2b0b5bcc] */ 2822 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DF9E: mov dword ptr [ebp - 4], 0xffffffff */ 2823 MEM32(edx) = eax; /* 0x2B04DFA5: mov dword ptr [edx], eax */ 2824 L_2B04DFA7: 2825 eax = MEM32(0x2B0B5BCC); /* 0x2B04DFA7: mov eax, dword ptr [0x2b0b5bcc] */ 2826 ecx = MEM32(eax); /* 0x2B04DFAC: mov ecx, dword ptr [eax] */ 2827 PUSH32(esp, 0x21u); /* 0x2B04DFAE: push 0x21 */ 2828 RECOMP_ICALL(esi); /* 0x2B04DFB0: call esi */ 2829 RECOMP_FLAGS_IN(); 2830 ecx = MEM32(0x2B0B5BCC); /* 0x2B04DFB2: mov ecx, dword ptr [0x2b0b5bcc] */ 2831 MEM32(ebp + (-0x18)) = eax; /* 0x2B04DFB8: mov dword ptr [ebp - 0x18], eax */ 2832 /* cmp MEM32(ecx), ebx */ /* 0x2B04DFBB: cmp dword ptr [ecx], ebx */ 2833 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(ebx); 2834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2835 _flag_k = FK_CMP; 2836 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04DFF2; /* 0x2B04DFBD: jne 0x2b04dff2 */ 2837 L_2B04DFBF: 2838 PUSH32(esp, 0x20u); /* 0x2B04DFBF: push 0x20 */ 2839 RECOMP_ICALL(0x2B0AB212u); /* 0x2B04DFC1: call 0x2b0ab212 */ /* not lifted */ 2840 RECOMP_FLAGS_IN(); 2841 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2843 esp = esp + 4; /* 0x2B04DFC6: add esp, 4 */ 2844 _flag_k = FK_ADD; 2845 MEM32(ebp + (-0x10)) = eax; /* 0x2B04DFC9: mov dword ptr [ebp - 0x10], eax */ 2846 /* cmp eax, ebx */ /* 0x2B04DFCC: cmp eax, ebx */ 2847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2849 _flag_k = FK_CMP; 2850 MEM32(ebp + (-0x4)) = 0x39u; /* 0x2B04DFCE: mov dword ptr [ebp - 4], 0x39 */ 2851 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04DFE1; /* 0x2B04DFD5: je 0x2b04dfe1 */ 2852 L_2B04DFD7: 2853 ecx = eax; /* 0x2B04DFD7: mov ecx, eax */ 2854 RECOMP_ICALL(MEM32(0x2B0B5BD0)); /* 0x2B04DFD9: call dword ptr [0x2b0b5bd0] */ 2855 RECOMP_FLAGS_IN(); 2856 goto L_2B04DFE3; /* 0x2B04DFDF: jmp 0x2b04dfe3 */ 2857 L_2B04DFE1: 2858 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2859 eax = 0; /* 0x2B04DFE1: xor eax, eax */ 2860 _cf = 0; 2861 _flag_k = FK_TEST; 2862 L_2B04DFE3: 2863 edx = MEM32(0x2B0B5BCC); /* 0x2B04DFE3: mov edx, dword ptr [0x2b0b5bcc] */ 2864 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04DFE9: mov dword ptr [ebp - 4], 0xffffffff */ 2865 MEM32(edx) = eax; /* 0x2B04DFF0: mov dword ptr [edx], eax */ 2866 L_2B04DFF2: 2867 eax = MEM32(0x2B0B5BCC); /* 0x2B04DFF2: mov eax, dword ptr [0x2b0b5bcc] */ 2868 ecx = MEM32(eax); /* 0x2B04DFF7: mov ecx, dword ptr [eax] */ 2869 PUSH32(esp, 0x21u); /* 0x2B04DFF9: push 0x21 */ 2870 RECOMP_ICALL(esi); /* 0x2B04DFFB: call esi */ 2871 RECOMP_FLAGS_IN(); 2872 ecx = ebp + (-0x18); /* 0x2B04DFFD: lea ecx, [ebp - 0x18] */ 2873 PUSH32(esp, ecx); /* 0x2B04E000: push ecx */ 2874 edx = ebp + (-0x1C); /* 0x2B04E001: lea edx, [ebp - 0x1c] */ 2875 PUSH32(esp, edx); /* 0x2B04E004: push edx */ 2876 ecx = ebp + (-0x40); /* 0x2B04E005: lea ecx, [ebp - 0x40] */ 2877 MEM32(ebp + (-0x1C)) = eax; /* 0x2B04E008: mov dword ptr [ebp - 0x1c], eax */ 2878 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04E00B: call 0x2b053ac0 */ /* not lifted */ 2879 RECOMP_FLAGS_IN(); 2880 esi = MEM32(eax); /* 0x2B04E010: mov esi, dword ptr [eax] */ 2881 eax = MEM32(eax + 0x4); /* 0x2B04E012: mov eax, dword ptr [eax + 4] */ 2882 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04E015: mov cl, byte ptr [ebp + 0xb] */ 2883 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(ecx)); /* 0x2B04E018: mov byte ptr [ebp - 0x38], cl */ 2884 PUSH32(esp, ebx); /* 0x2B04E01B: push ebx */ 2885 ecx = ebp + (-0x38); /* 0x2B04E01C: lea ecx, [ebp - 0x38] */ 2886 MEM32(ebp + (-0x84)) = eax; /* 0x2B04E01F: mov dword ptr [ebp - 0x84], eax */ 2887 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E025: call dword ptr [0x2b0b514c] */ 2888 RECOMP_FLAGS_IN(); 2889 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2890 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E02B: or ecx, 0xffffffff */ 2891 _cf = 0; 2892 _flag_k = FK_TEST; 2893 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2894 eax = 0; /* 0x2B04E02E: xor eax, eax */ 2895 _cf = 0; 2896 _flag_k = FK_TEST; 2897 edi = 0x2B0E83DCu; /* 0x2B04E030: mov edi, 0x2b0e83dc */ 2898 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; } /* 0x2B04E035: repne scasb al, byte ptr es:[edi] */ 2899 ecx = ~ecx; /* 0x2B04E037: not ecx */ 2900 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2901 ecx = ecx - 1; /* 0x2B04E039: dec ecx */ 2902 _flag_k = FK_DEC; 2903 PUSH32(esp, ecx); /* 0x2B04E03A: push ecx */ 2904 PUSH32(esp, 0x2B0E83DCu); /* 0x2B04E03B: push 0x2b0e83dc */ 2905 ecx = ebp + (-0x38); /* 0x2B04E040: lea ecx, [ebp - 0x38] */ 2906 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E043: call dword ptr [0x2b0b5148] */ 2907 RECOMP_FLAGS_IN(); 2908 edx = ebp + (-0x24); /* 0x2B04E049: lea edx, [ebp - 0x24] */ 2909 PUSH32(esp, edx); /* 0x2B04E04C: push edx */ 2910 eax = ebp + (-0x38); /* 0x2B04E04D: lea eax, [ebp - 0x38] */ 2911 PUSH32(esp, eax); /* 0x2B04E050: push eax */ 2912 ecx = ebp + (-0x7C); /* 0x2B04E051: lea ecx, [ebp - 0x7c] */ 2913 MEM32(ebp + (-0x4)) = 0x3Au; /* 0x2B04E054: mov dword ptr [ebp - 4], 0x3a */ 2914 MEM32(ebp + (-0x24)) = ebx; /* 0x2B04E05B: mov dword ptr [ebp - 0x24], ebx */ 2915 MEM32(ebp + (-0x20)) = ebx; /* 0x2B04E05E: mov dword ptr [ebp - 0x20], ebx */ 2916 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E061: call 0x2b051ac0 */ /* not lifted */ 2917 RECOMP_FLAGS_IN(); 2918 PUSH32(esp, eax); /* 0x2B04E066: push eax */ 2919 ecx = ebp + (-0x40); /* 0x2B04E067: lea ecx, [ebp - 0x40] */ 2920 PUSH32(esp, ecx); /* 0x2B04E06A: push ecx */ 2921 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E06B: mov ecx, dword ptr [ebp - 0x28] */ 2922 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Bu); /* 0x2B04E06E: mov byte ptr [ebp - 4], 0x3b */ 2923 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E072: call 0x2b0519d0 */ /* not lifted */ 2924 RECOMP_FLAGS_IN(); 2925 edi = MEM32(eax); /* 0x2B04E077: mov edi, dword ptr [eax] */ 2926 PUSH32(esp, 1); /* 0x2B04E079: push 1 */ 2927 ecx = ebp + (-0x7C); /* 0x2B04E07B: lea ecx, [ebp - 0x7c] */ 2928 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Au); /* 0x2B04E07E: mov byte ptr [ebp - 4], 0x3a */ 2929 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E082: call dword ptr [0x2b0b514c] */ 2930 RECOMP_FLAGS_IN(); 2931 edx = MEM32(ebp + (-0x84)); /* 0x2B04E088: mov edx, dword ptr [ebp - 0x84] */ 2932 MEM32(edi + 0x1C) = esi; /* 0x2B04E08E: mov dword ptr [edi + 0x1c], esi */ 2933 PUSH32(esp, 1); /* 0x2B04E091: push 1 */ 2934 ecx = ebp + (-0x38); /* 0x2B04E093: lea ecx, [ebp - 0x38] */ 2935 MEM32(edi + 0x20) = edx; /* 0x2B04E096: mov dword ptr [edi + 0x20], edx */ 2936 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E099: mov dword ptr [ebp - 4], 0xffffffff */ 2937 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E0A0: call dword ptr [0x2b0b514c] */ 2938 RECOMP_FLAGS_IN(); 2939 PUSH32(esp, 0x2B0E2C00u); /* 0x2B04E0A6: push 0x2b0e2c00 */ 2940 PUSH32(esp, 0x2B0E83C4u); /* 0x2B04E0AB: push 0x2b0e83c4 */ 2941 MEM8(ebp + (-0x41)) = (uint8_t)(LO8(ebx)); /* 0x2B04E0B0: mov byte ptr [ebp - 0x41], bl */ 2942 RECOMP_ICALL(MEM32(0x2B0B51C8)); /* 0x2B04E0B3: call dword ptr [0x2b0b51c8] */ 2943 RECOMP_FLAGS_IN(); 2944 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B04E0B9: mov cl, byte ptr [ebp + 0xb] */ 2945 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2947 esp = esp + 8; /* 0x2B04E0BC: add esp, 8 */ 2948 _flag_k = FK_ADD; 2949 MEM32(ebp + (-0x18)) = eax; /* 0x2B04E0BF: mov dword ptr [ebp - 0x18], eax */ 2950 MEM8(ebp + (-0x9C)) = (uint8_t)(LO8(ecx)); /* 0x2B04E0C2: mov byte ptr [ebp - 0x9c], cl */ 2951 MEM32(ebp + (-0x98)) = ebx; /* 0x2B04E0C8: mov dword ptr [ebp - 0x98], ebx */ 2952 MEM32(ebp + (-0x94)) = ebx; /* 0x2B04E0CE: mov dword ptr [ebp - 0x94], ebx */ 2953 MEM32(ebp + (-0x90)) = ebx; /* 0x2B04E0D4: mov dword ptr [ebp - 0x90], ebx */ 2954 /* cmp eax, ebx */ /* 0x2B04E0DA: cmp eax, ebx */ 2955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2957 _flag_k = FK_CMP; 2958 MEM32(ebp + (-0x4)) = 0x3Cu; /* 0x2B04E0DC: mov dword ptr [ebp - 4], 0x3c */ 2959 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E49F; /* 0x2B04E0E3: je 0x2b04e49f */ 2960 L_2B04E0E9: 2961 edx = eax; /* 0x2B04E0E9: mov edx, eax */ 2962 PUSH32(esp, edx); /* 0x2B04E0EB: push edx */ 2963 eax = ebp + (-0x5E0); /* 0x2B04E0EC: lea eax, [ebp - 0x5e0] */ 2964 PUSH32(esp, 0x400u); /* 0x2B04E0F2: push 0x400 */ 2965 PUSH32(esp, eax); /* 0x2B04E0F7: push eax */ 2966 MEM8(ebp + (-0x41)) = (uint8_t)(1); /* 0x2B04E0F8: mov byte ptr [ebp - 0x41], 1 */ 2967 RECOMP_ICALL(MEM32(0x2B0B51D0)); /* 0x2B04E0FC: call dword ptr [0x2b0b51d0] */ 2968 RECOMP_FLAGS_IN(); 2969 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2970 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2971 esp = esp + 0xCu; /* 0x2B04E102: add esp, 0xc */ 2972 _flag_k = FK_ADD; 2973 /* test eax, eax */ /* 0x2B04E105: test eax, eax */ 2974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2975 _cf = 0; 2976 _flag_k = FK_TEST; 2977 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E492; /* 0x2B04E107: je 0x2b04e492 */ 2978 L_2B04E10D: 2979 esi = MEM32(0x2B0B5220); /* 0x2B04E10D: mov esi, dword ptr [0x2b0b5220] */ 2980 L_2B04E113: 2981 SET_LO8(eax, MEM8(ebp + (-0x5E0))); /* 0x2B04E113: mov al, byte ptr [ebp - 0x5e0] */ 2982 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2983 edi = 0; /* 0x2B04E119: xor edi, edi */ 2984 _cf = 0; 2985 _flag_k = FK_TEST; 2986 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E11B: cmp al, bl */ 2987 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2989 _flag_k = FK_NARROW(FK_CMP, 24); 2990 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E14C; /* 0x2B04E11D: je 0x2b04e14c */ 2991 L_2B04E11F: 2992 /* cmp LO8(eax), 0x3Bu */ /* 0x2B04E11F: cmp al, 0x3b */ 2993 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x3Bu) << 24; 2994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2995 _flag_k = FK_NARROW(FK_CMP, 24); 2996 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E145; /* 0x2B04E121: je 0x2b04e145 */ 2997 L_2B04E123: 2998 ecx = (int32_t)(int8_t)LO8(eax); /* 0x2B04E123: movsx ecx, al */ 2999 PUSH32(esp, ecx); /* 0x2B04E126: push ecx */ 3000 RECOMP_ICALL(MEM32(0x2B0B51D8)); /* 0x2B04E127: call dword ptr [0x2b0b51d8] */ 3001 RECOMP_FLAGS_IN(); 3002 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3004 esp = esp + 4; /* 0x2B04E12D: add esp, 4 */ 3005 _flag_k = FK_ADD; 3006 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(eax)); /* 0x2B04E130: mov byte ptr [ebp + edi - 0x5e0], al */ 3007 SET_LO8(eax, MEM8(ebp + edi + (-0x5DF))); /* 0x2B04E137: mov al, byte ptr [ebp + edi - 0x5df] */ 3008 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3009 edi = edi + 1; /* 0x2B04E13E: inc edi */ 3010 _flag_k = FK_INC; 3011 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E13F: cmp al, bl */ 3012 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3014 _flag_k = FK_NARROW(FK_CMP, 24); 3015 RECOMP_BACKEDGE(); 3016 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E11F; /* 0x2B04E141: jne 0x2b04e11f */ 3017 L_2B04E143: 3018 goto L_2B04E14C; /* 0x2B04E143: jmp 0x2b04e14c */ 3019 L_2B04E145: 3020 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(ebx)); /* 0x2B04E145: mov byte ptr [ebp + edi - 0x5e0], bl */ 3021 L_2B04E14C: 3022 edx = ebp + (-0x10); /* 0x2B04E14C: lea edx, [ebp - 0x10] */ 3023 PUSH32(esp, edx); /* 0x2B04E14F: push edx */ 3024 eax = ebp + (-0xA0); /* 0x2B04E150: lea eax, [ebp - 0xa0] */ 3025 PUSH32(esp, eax); /* 0x2B04E156: push eax */ 3026 ecx = ebp + (-0xA8); /* 0x2B04E157: lea ecx, [ebp - 0xa8] */ 3027 PUSH32(esp, ecx); /* 0x2B04E15D: push ecx */ 3028 edx = ebp + (-0x1C); /* 0x2B04E15E: lea edx, [ebp - 0x1c] */ 3029 PUSH32(esp, edx); /* 0x2B04E161: push edx */ 3030 eax = ebp + (-0x54); /* 0x2B04E162: lea eax, [ebp - 0x54] */ 3031 PUSH32(esp, eax); /* 0x2B04E165: push eax */ 3032 ecx = ebp + (-0x8C); /* 0x2B04E166: lea ecx, [ebp - 0x8c] */ 3033 PUSH32(esp, ecx); /* 0x2B04E16C: push ecx */ 3034 edx = ebp + (-0x1E0); /* 0x2B04E16D: lea edx, [ebp - 0x1e0] */ 3035 PUSH32(esp, edx); /* 0x2B04E173: push edx */ 3036 eax = ebp + (-0x5E0); /* 0x2B04E174: lea eax, [ebp - 0x5e0] */ 3037 PUSH32(esp, 0x2B0E8398u); /* 0x2B04E17A: push 0x2b0e8398 */ 3038 PUSH32(esp, eax); /* 0x2B04E17F: push eax */ 3039 RECOMP_ICALL(esi); /* 0x2B04E180: call esi */ 3040 RECOMP_FLAGS_IN(); 3041 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 3042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3043 esp = esp + 0x24u; /* 0x2B04E182: add esp, 0x24 */ 3044 _flag_k = FK_ADD; 3045 /* cmp eax, 7 */ /* 0x2B04E185: cmp eax, 7 */ 3046 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 3047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3048 _flag_k = FK_CMP; 3049 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E1C1; /* 0x2B04E188: jne 0x2b04e1c1 */ 3050 L_2B04E18A: 3051 ecx = MEM32(ebp + (-0x8C)); /* 0x2B04E18A: mov ecx, dword ptr [ebp - 0x8c] */ 3052 eax = MEM32(ebp + (-0x54)); /* 0x2B04E190: mov eax, dword ptr [ebp - 0x54] */ 3053 edx = MEM32(ebp + (-0x1C)); /* 0x2B04E193: mov edx, dword ptr [ebp - 0x1c] */ 3054 edi = MEM32(ebp + (-0xA0)); /* 0x2B04E196: mov edi, dword ptr [ebp - 0xa0] */ 3055 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E19C: shl ecx, 8 */ 3056 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3057 ecx = ecx << 8u; /* 0x2B04E19C: shl ecx, 8 */ 3058 _flag_a = (uint32_t)((ecx | eax)); _flag_b = (uint32_t)((ecx | eax)); 3059 ecx = ecx | eax; /* 0x2B04E19F: or ecx, eax */ 3060 _cf = 0; 3061 _flag_k = FK_TEST; 3062 eax = MEM32(ebp + (-0x10)); /* 0x2B04E1A1: mov eax, dword ptr [ebp - 0x10] */ 3063 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E1A4: shl ecx, 8 */ 3064 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3065 ecx = ecx << 8u; /* 0x2B04E1A4: shl ecx, 8 */ 3066 _flag_a = (uint32_t)((ecx | edx)); _flag_b = (uint32_t)((ecx | edx)); 3067 ecx = ecx | edx; /* 0x2B04E1A7: or ecx, edx */ 3068 _cf = 0; 3069 _flag_k = FK_TEST; 3070 edx = MEM32(ebp + (-0xA8)); /* 0x2B04E1A9: mov edx, dword ptr [ebp - 0xa8] */ 3071 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1AF: shl edx, 8 */ 3072 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3073 edx = edx << 8u; /* 0x2B04E1AF: shl edx, 8 */ 3074 _flag_a = (uint32_t)((edx | edi)); _flag_b = (uint32_t)((edx | edi)); 3075 edx = edx | edi; /* 0x2B04E1B2: or edx, edi */ 3076 _cf = 0; 3077 _flag_k = FK_TEST; 3078 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1B4: shl edx, 8 */ 3079 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3080 edx = edx << 8u; /* 0x2B04E1B4: shl edx, 8 */ 3081 MEM32(ebp + (-0x48)) = ecx; /* 0x2B04E1B7: mov dword ptr [ebp - 0x48], ecx */ 3082 _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax)); 3083 edx = edx | eax; /* 0x2B04E1BA: or edx, eax */ 3084 _cf = 0; 3085 _flag_k = FK_TEST; 3086 goto L_2B04E2A9; /* 0x2B04E1BC: jmp 0x2b04e2a9 */ 3087 L_2B04E1C1: 3088 eax = ebp + (-0x1C); /* 0x2B04E1C1: lea eax, [ebp - 0x1c] */ 3089 PUSH32(esp, eax); /* 0x2B04E1C4: push eax */ 3090 ecx = ebp + (-0x54); /* 0x2B04E1C5: lea ecx, [ebp - 0x54] */ 3091 PUSH32(esp, ecx); /* 0x2B04E1C8: push ecx */ 3092 edx = ebp + (-0x8C); /* 0x2B04E1C9: lea edx, [ebp - 0x8c] */ 3093 PUSH32(esp, edx); /* 0x2B04E1CF: push edx */ 3094 eax = ebp + (-0x1E0); /* 0x2B04E1D0: lea eax, [ebp - 0x1e0] */ 3095 PUSH32(esp, eax); /* 0x2B04E1D6: push eax */ 3096 ecx = ebp + (-0x5E0); /* 0x2B04E1D7: lea ecx, [ebp - 0x5e0] */ 3097 PUSH32(esp, 0x2B0E837Cu); /* 0x2B04E1DD: push 0x2b0e837c */ 3098 PUSH32(esp, ecx); /* 0x2B04E1E2: push ecx */ 3099 RECOMP_ICALL(esi); /* 0x2B04E1E3: call esi */ 3100 RECOMP_FLAGS_IN(); 3101 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 3102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3103 esp = esp + 0x18u; /* 0x2B04E1E5: add esp, 0x18 */ 3104 _flag_k = FK_ADD; 3105 /* cmp eax, 4 */ /* 0x2B04E1E8: cmp eax, 4 */ 3106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3108 _flag_k = FK_CMP; 3109 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E20E; /* 0x2B04E1EB: jne 0x2b04e20e */ 3110 L_2B04E1ED: 3111 eax = MEM32(ebp + (-0x8C)); /* 0x2B04E1ED: mov eax, dword ptr [ebp - 0x8c] */ 3112 edi = MEM32(ebp + (-0x54)); /* 0x2B04E1F3: mov edi, dword ptr [ebp - 0x54] */ 3113 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E1F6: mov ecx, dword ptr [ebp - 0x1c] */ 3114 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1F9: shl eax, 8 */ 3115 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3116 eax = eax << 8u; /* 0x2B04E1F9: shl eax, 8 */ 3117 _flag_a = (uint32_t)((eax | edi)); _flag_b = (uint32_t)((eax | edi)); 3118 eax = eax | edi; /* 0x2B04E1FC: or eax, edi */ 3119 _cf = 0; 3120 _flag_k = FK_TEST; 3121 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1FE: shl eax, 8 */ 3122 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3123 eax = eax << 8u; /* 0x2B04E1FE: shl eax, 8 */ 3124 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 3125 eax = eax | ecx; /* 0x2B04E201: or eax, ecx */ 3126 _cf = 0; 3127 _flag_k = FK_TEST; 3128 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E203: mov dword ptr [ebp - 0x48], eax */ 3129 MEM32(ebp + (-0x4C)) = eax; /* 0x2B04E206: mov dword ptr [ebp - 0x4c], eax */ 3130 goto L_2B04E2AC; /* 0x2B04E209: jmp 0x2b04e2ac */ 3131 L_2B04E20E: 3132 edx = ebp + (-0x4C); /* 0x2B04E20E: lea edx, [ebp - 0x4c] */ 3133 PUSH32(esp, edx); /* 0x2B04E211: push edx */ 3134 eax = ebp + (-0x48); /* 0x2B04E212: lea eax, [ebp - 0x48] */ 3135 PUSH32(esp, eax); /* 0x2B04E215: push eax */ 3136 ecx = ebp + (-0x1E0); /* 0x2B04E216: lea ecx, [ebp - 0x1e0] */ 3137 PUSH32(esp, ecx); /* 0x2B04E21C: push ecx */ 3138 edx = ebp + (-0x5E0); /* 0x2B04E21D: lea edx, [ebp - 0x5e0] */ 3139 PUSH32(esp, 0x2B0E836Cu); /* 0x2B04E223: push 0x2b0e836c */ 3140 PUSH32(esp, edx); /* 0x2B04E228: push edx */ 3141 RECOMP_ICALL(esi); /* 0x2B04E229: call esi */ 3142 RECOMP_FLAGS_IN(); 3143 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3145 esp = esp + 0x14u; /* 0x2B04E22B: add esp, 0x14 */ 3146 _flag_k = FK_ADD; 3147 /* cmp eax, 3 */ /* 0x2B04E22E: cmp eax, 3 */ 3148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 3149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3150 _flag_k = FK_CMP; 3151 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E231: je 0x2b04e2ac */ 3152 L_2B04E233: 3153 eax = ebp + (-0x4C); /* 0x2B04E233: lea eax, [ebp - 0x4c] */ 3154 PUSH32(esp, eax); /* 0x2B04E236: push eax */ 3155 ecx = ebp + (-0x48); /* 0x2B04E237: lea ecx, [ebp - 0x48] */ 3156 PUSH32(esp, ecx); /* 0x2B04E23A: push ecx */ 3157 edx = ebp + (-0x1E0); /* 0x2B04E23B: lea edx, [ebp - 0x1e0] */ 3158 PUSH32(esp, edx); /* 0x2B04E241: push edx */ 3159 eax = ebp + (-0x5E0); /* 0x2B04E242: lea eax, [ebp - 0x5e0] */ 3160 PUSH32(esp, 0x2B0E835Cu); /* 0x2B04E248: push 0x2b0e835c */ 3161 PUSH32(esp, eax); /* 0x2B04E24D: push eax */ 3162 RECOMP_ICALL(esi); /* 0x2B04E24E: call esi */ 3163 RECOMP_FLAGS_IN(); 3164 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3165 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3166 esp = esp + 0x14u; /* 0x2B04E250: add esp, 0x14 */ 3167 _flag_k = FK_ADD; 3168 /* cmp eax, 3 */ /* 0x2B04E253: cmp eax, 3 */ 3169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 3170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3171 _flag_k = FK_CMP; 3172 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E256: je 0x2b04e2ac */ 3173 L_2B04E258: 3174 ecx = ebp + (-0x48); /* 0x2B04E258: lea ecx, [ebp - 0x48] */ 3175 PUSH32(esp, ecx); /* 0x2B04E25B: push ecx */ 3176 edx = ebp + (-0x1E0); /* 0x2B04E25C: lea edx, [ebp - 0x1e0] */ 3177 PUSH32(esp, edx); /* 0x2B04E262: push edx */ 3178 eax = ebp + (-0x5E0); /* 0x2B04E263: lea eax, [ebp - 0x5e0] */ 3179 PUSH32(esp, 0x2B0E8350u); /* 0x2B04E269: push 0x2b0e8350 */ 3180 PUSH32(esp, eax); /* 0x2B04E26E: push eax */ 3181 RECOMP_ICALL(esi); /* 0x2B04E26F: call esi */ 3182 RECOMP_FLAGS_IN(); 3183 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3184 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3185 esp = esp + 0x10u; /* 0x2B04E271: add esp, 0x10 */ 3186 _flag_k = FK_ADD; 3187 /* cmp eax, 2 */ /* 0x2B04E274: cmp eax, 2 */ 3188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3190 _flag_k = FK_CMP; 3191 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E281; /* 0x2B04E277: jne 0x2b04e281 */ 3192 L_2B04E279: 3193 ecx = MEM32(ebp + (-0x48)); /* 0x2B04E279: mov ecx, dword ptr [ebp - 0x48] */ 3194 MEM32(ebp + (-0x4C)) = ecx; /* 0x2B04E27C: mov dword ptr [ebp - 0x4c], ecx */ 3195 goto L_2B04E2AC; /* 0x2B04E27F: jmp 0x2b04e2ac */ 3196 L_2B04E281: 3197 edx = ebp + (-0x48); /* 0x2B04E281: lea edx, [ebp - 0x48] */ 3198 PUSH32(esp, edx); /* 0x2B04E284: push edx */ 3199 eax = ebp + (-0x1E0); /* 0x2B04E285: lea eax, [ebp - 0x1e0] */ 3200 PUSH32(esp, eax); /* 0x2B04E28B: push eax */ 3201 ecx = ebp + (-0x5E0); /* 0x2B04E28C: lea ecx, [ebp - 0x5e0] */ 3202 PUSH32(esp, 0x2B0E8344u); /* 0x2B04E292: push 0x2b0e8344 */ 3203 PUSH32(esp, ecx); /* 0x2B04E297: push ecx */ 3204 RECOMP_ICALL(esi); /* 0x2B04E298: call esi */ 3205 RECOMP_FLAGS_IN(); 3206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3208 esp = esp + 0x10u; /* 0x2B04E29A: add esp, 0x10 */ 3209 _flag_k = FK_ADD; 3210 /* cmp eax, 2 */ /* 0x2B04E29D: cmp eax, 2 */ 3211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3213 _flag_k = FK_CMP; 3214 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E2A0: jne 0x2b04e471 */ 3215 L_2B04E2A6: 3216 edx = MEM32(ebp + (-0x48)); /* 0x2B04E2A6: mov edx, dword ptr [ebp - 0x48] */ 3217 L_2B04E2A9: 3218 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E2A9: mov dword ptr [ebp - 0x4c], edx */ 3219 L_2B04E2AC: 3220 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E2AC: mov al, byte ptr [ebp + 0xb] */ 3221 PUSH32(esp, ebx); /* 0x2B04E2AF: push ebx */ 3222 ecx = ebp + (-0x64); /* 0x2B04E2B0: lea ecx, [ebp - 0x64] */ 3223 MEM8(ebp + (-0xE1)) = (uint8_t)(LO8(ebx)); /* 0x2B04E2B3: mov byte ptr [ebp - 0xe1], bl */ 3224 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E2B9: mov byte ptr [ebp - 0x64], al */ 3225 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E2BC: call dword ptr [0x2b0b514c] */ 3226 RECOMP_FLAGS_IN(); 3227 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3228 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E2C2: or ecx, 0xffffffff */ 3229 _cf = 0; 3230 _flag_k = FK_TEST; 3231 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3232 eax = 0; /* 0x2B04E2C5: xor eax, eax */ 3233 _cf = 0; 3234 _flag_k = FK_TEST; 3235 edi = ebp + (-0x1E0); /* 0x2B04E2C7: lea edi, [ebp - 0x1e0] */ 3236 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; } /* 0x2B04E2CD: repne scasb al, byte ptr es:[edi] */ 3237 ecx = ~ecx; /* 0x2B04E2CF: not ecx */ 3238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3239 ecx = ecx - 1; /* 0x2B04E2D1: dec ecx */ 3240 _flag_k = FK_DEC; 3241 PUSH32(esp, ecx); /* 0x2B04E2D2: push ecx */ 3242 ecx = ebp + (-0x1E0); /* 0x2B04E2D3: lea ecx, [ebp - 0x1e0] */ 3243 PUSH32(esp, ecx); /* 0x2B04E2D9: push ecx */ 3244 ecx = ebp + (-0x64); /* 0x2B04E2DA: lea ecx, [ebp - 0x64] */ 3245 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E2DD: call dword ptr [0x2b0b5148] */ 3246 RECOMP_FLAGS_IN(); 3247 edx = MEM32(ebp + (-0x80)); /* 0x2B04E2E3: mov edx, dword ptr [ebp - 0x80] */ 3248 edi = MEM32(edx + 0x1A4); /* 0x2B04E2E6: mov edi, dword ptr [edx + 0x1a4] */ 3249 eax = ebp + (-0x64); /* 0x2B04E2EC: lea eax, [ebp - 0x64] */ 3250 PUSH32(esp, eax); /* 0x2B04E2EF: push eax */ 3251 ecx = ebp + (-0x20); /* 0x2B04E2F0: lea ecx, [ebp - 0x20] */ 3252 PUSH32(esp, ecx); /* 0x2B04E2F3: push ecx */ 3253 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E2F4: mov ecx, dword ptr [ebp - 0x28] */ 3254 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Du); /* 0x2B04E2F7: mov byte ptr [ebp - 4], 0x3d */ 3255 RECOMP_ICALL(0x2B08DFD0u); /* 0x2B04E2FB: call 0x2b08dfd0 */ /* not lifted */ 3256 RECOMP_FLAGS_IN(); 3257 /* cmp MEM32(eax), edi */ /* 0x2B04E300: cmp dword ptr [eax], edi */ 3258 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 3259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3260 _flag_k = FK_CMP; 3261 PUSH32(esp, 1); /* 0x2B04E302: push 1 */ 3262 ecx = ebp + (-0x64); /* 0x2B04E304: lea ecx, [ebp - 0x64] */ 3263 MEM8(ebp + (-0x4D)) = (uint8_t)((CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B04E307: sete byte ptr [ebp - 0x4d] */ 3264 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E30B: mov byte ptr [ebp - 4], 0x3c */ 3265 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E30F: call dword ptr [0x2b0b514c] */ 3266 RECOMP_FLAGS_IN(); 3267 /* cmp MEM8(ebp + (-0x4D)), LO8(ebx) */ /* 0x2B04E315: cmp byte ptr [ebp - 0x4d], bl */ 3268 _flag_a = (uint32_t)(MEM8(ebp + (-0x4D))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3270 _flag_k = FK_NARROW(FK_CMP, 24); 3271 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E318: jne 0x2b04e471 */ 3272 L_2B04E31E: 3273 eax = MEM32(ebp + (-0x48)); /* 0x2B04E31E: mov eax, dword ptr [ebp - 0x48] */ 3274 edx = MEM32(ebp + (-0x4C)); /* 0x2B04E321: mov edx, dword ptr [ebp - 0x4c] */ 3275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00FFFFFFu); 3276 eax = eax & 0x00FFFFFFu; /* 0x2B04E324: and eax, 0xffffff */ 3277 _cf = 0; 3278 _flag_k = FK_TEST; 3279 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x00FFFFFFu); 3280 edx = edx & 0x00FFFFFFu; /* 0x2B04E329: and edx, 0xffffff */ 3281 _cf = 0; 3282 _flag_k = FK_TEST; 3283 /* cmp eax, 0xFF00u */ /* 0x2B04E32F: cmp eax, 0xff00 */ 3284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFF00u); 3285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3286 _flag_k = FK_CMP; 3287 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E334: mov dword ptr [ebp - 0x48], eax */ 3288 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E337: mov dword ptr [ebp - 0x4c], edx */ 3289 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E343; /* 0x2B04E33A: jne 0x2b04e343 */ 3290 L_2B04E33C: 3291 MEM32(ebp + (-0x48)) = 0xFE00u; /* 0x2B04E33C: mov dword ptr [ebp - 0x48], 0xfe00 */ 3292 L_2B04E343: 3293 /* cmp MEM32(ebp + (-0x4C)), 0xFF00u */ /* 0x2B04E343: cmp dword ptr [ebp - 0x4c], 0xff00 */ 3294 _flag_a = (uint32_t)(MEM32(ebp + (-0x4C))); _flag_b = (uint32_t)(0xFF00u); 3295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3296 _flag_k = FK_CMP; 3297 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E353; /* 0x2B04E34A: jne 0x2b04e353 */ 3298 L_2B04E34C: 3299 MEM32(ebp + (-0x4C)) = 0xFE00u; /* 0x2B04E34C: mov dword ptr [ebp - 0x4c], 0xfe00 */ 3300 L_2B04E353: 3301 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E353: mov dl, byte ptr [ebp + 0xb] */ 3302 PUSH32(esp, ebx); /* 0x2B04E356: push ebx */ 3303 ecx = ebp + (-0xB8); /* 0x2B04E357: lea ecx, [ebp - 0xb8] */ 3304 MEM8(ebp + (-0xB8)) = (uint8_t)(LO8(edx)); /* 0x2B04E35D: mov byte ptr [ebp - 0xb8], dl */ 3305 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E363: call dword ptr [0x2b0b514c] */ 3306 RECOMP_FLAGS_IN(); 3307 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3308 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E369: or ecx, 0xffffffff */ 3309 _cf = 0; 3310 _flag_k = FK_TEST; 3311 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3312 eax = 0; /* 0x2B04E36C: xor eax, eax */ 3313 _cf = 0; 3314 _flag_k = FK_TEST; 3315 edi = ebp + (-0x1E0); /* 0x2B04E36E: lea edi, [ebp - 0x1e0] */ 3316 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; } /* 0x2B04E374: repne scasb al, byte ptr es:[edi] */ 3317 ecx = ~ecx; /* 0x2B04E376: not ecx */ 3318 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3319 ecx = ecx - 1; /* 0x2B04E378: dec ecx */ 3320 _flag_k = FK_DEC; 3321 PUSH32(esp, ecx); /* 0x2B04E379: push ecx */ 3322 eax = ebp + (-0x1E0); /* 0x2B04E37A: lea eax, [ebp - 0x1e0] */ 3323 PUSH32(esp, eax); /* 0x2B04E380: push eax */ 3324 ecx = ebp + (-0xB8); /* 0x2B04E381: lea ecx, [ebp - 0xb8] */ 3325 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E387: call dword ptr [0x2b0b5148] */ 3326 RECOMP_FLAGS_IN(); 3327 ecx = ebp + (-0x4C); /* 0x2B04E38D: lea ecx, [ebp - 0x4c] */ 3328 PUSH32(esp, ecx); /* 0x2B04E390: push ecx */ 3329 edx = ebp + (-0x48); /* 0x2B04E391: lea edx, [ebp - 0x48] */ 3330 PUSH32(esp, edx); /* 0x2B04E394: push edx */ 3331 ecx = ebp + (-0xC8); /* 0x2B04E395: lea ecx, [ebp - 0xc8] */ 3332 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E39B: mov byte ptr [ebp - 4], 0x3e */ 3333 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04E39F: call 0x2b053ac0 */ /* not lifted */ 3334 RECOMP_FLAGS_IN(); 3335 esi = MEM32(eax); /* 0x2B04E3A4: mov esi, dword ptr [eax] */ 3336 eax = MEM32(eax + 0x4); /* 0x2B04E3A6: mov eax, dword ptr [eax + 4] */ 3337 ecx = ebp + (-0x88); /* 0x2B04E3A9: lea ecx, [ebp - 0x88] */ 3338 PUSH32(esp, ecx); /* 0x2B04E3AF: push ecx */ 3339 edx = ebp + (-0xB8); /* 0x2B04E3B0: lea edx, [ebp - 0xb8] */ 3340 PUSH32(esp, edx); /* 0x2B04E3B6: push edx */ 3341 ecx = ebp + (-0xE0); /* 0x2B04E3B7: lea ecx, [ebp - 0xe0] */ 3342 MEM32(ebp + (-0x3C)) = eax; /* 0x2B04E3BD: mov dword ptr [ebp - 0x3c], eax */ 3343 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E3C0: mov dword ptr [ebp - 0x88], ebx */ 3344 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E3C6: mov dword ptr [ebp - 0x84], ebx */ 3345 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E3CC: call 0x2b051ac0 */ /* not lifted */ 3346 RECOMP_FLAGS_IN(); 3347 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E3D1: mov ecx, dword ptr [ebp - 0x28] */ 3348 PUSH32(esp, eax); /* 0x2B04E3D4: push eax */ 3349 eax = ebp + (-0x30); /* 0x2B04E3D5: lea eax, [ebp - 0x30] */ 3350 PUSH32(esp, eax); /* 0x2B04E3D8: push eax */ 3351 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Fu); /* 0x2B04E3D9: mov byte ptr [ebp - 4], 0x3f */ 3352 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E3DD: call 0x2b0519d0 */ /* not lifted */ 3353 RECOMP_FLAGS_IN(); 3354 edi = MEM32(eax); /* 0x2B04E3E2: mov edi, dword ptr [eax] */ 3355 PUSH32(esp, 1); /* 0x2B04E3E4: push 1 */ 3356 ecx = ebp + (-0xE0); /* 0x2B04E3E6: lea ecx, [ebp - 0xe0] */ 3357 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E3EC: mov byte ptr [ebp - 4], 0x3e */ 3358 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E3F0: call dword ptr [0x2b0b514c] */ 3359 RECOMP_FLAGS_IN(); 3360 ecx = MEM32(ebp + (-0x3C)); /* 0x2B04E3F6: mov ecx, dword ptr [ebp - 0x3c] */ 3361 MEM32(edi + 0x1C) = esi; /* 0x2B04E3F9: mov dword ptr [edi + 0x1c], esi */ 3362 MEM32(edi + 0x20) = ecx; /* 0x2B04E3FC: mov dword ptr [edi + 0x20], ecx */ 3363 PUSH32(esp, 1); /* 0x2B04E3FF: push 1 */ 3364 ecx = ebp + (-0xB8); /* 0x2B04E401: lea ecx, [ebp - 0xb8] */ 3365 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E407: mov byte ptr [ebp - 4], 0x3c */ 3366 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E40B: call dword ptr [0x2b0b514c] */ 3367 RECOMP_FLAGS_IN(); 3368 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E411: mov dl, byte ptr [ebp + 0xb] */ 3369 PUSH32(esp, ebx); /* 0x2B04E414: push ebx */ 3370 ecx = ebp + (-0x74); /* 0x2B04E415: lea ecx, [ebp - 0x74] */ 3371 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(edx)); /* 0x2B04E418: mov byte ptr [ebp - 0x74], dl */ 3372 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E41B: call dword ptr [0x2b0b514c] */ 3373 RECOMP_FLAGS_IN(); 3374 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3375 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E421: or ecx, 0xffffffff */ 3376 _cf = 0; 3377 _flag_k = FK_TEST; 3378 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3379 eax = 0; /* 0x2B04E424: xor eax, eax */ 3380 _cf = 0; 3381 _flag_k = FK_TEST; 3382 edi = ebp + (-0x1E0); /* 0x2B04E426: lea edi, [ebp - 0x1e0] */ 3383 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; } /* 0x2B04E42C: repne scasb al, byte ptr es:[edi] */ 3384 ecx = ~ecx; /* 0x2B04E42E: not ecx */ 3385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3386 ecx = ecx - 1; /* 0x2B04E430: dec ecx */ 3387 _flag_k = FK_DEC; 3388 PUSH32(esp, ecx); /* 0x2B04E431: push ecx */ 3389 eax = ebp + (-0x1E0); /* 0x2B04E432: lea eax, [ebp - 0x1e0] */ 3390 PUSH32(esp, eax); /* 0x2B04E438: push eax */ 3391 ecx = ebp + (-0x74); /* 0x2B04E439: lea ecx, [ebp - 0x74] */ 3392 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E43C: call dword ptr [0x2b0b5148] */ 3393 RECOMP_FLAGS_IN(); 3394 edx = MEM32(ebp + (-0x94)); /* 0x2B04E442: mov edx, dword ptr [ebp - 0x94] */ 3395 ecx = ebp + (-0x74); /* 0x2B04E448: lea ecx, [ebp - 0x74] */ 3396 PUSH32(esp, ecx); /* 0x2B04E44B: push ecx */ 3397 PUSH32(esp, edx); /* 0x2B04E44C: push edx */ 3398 ecx = ebp + (-0x9C); /* 0x2B04E44D: lea ecx, [ebp - 0x9c] */ 3399 MEM8(ebp + (-0x4)) = (uint8_t)(0x40u); /* 0x2B04E453: mov byte ptr [ebp - 4], 0x40 */ 3400 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E457: call 0x2b002e20 */ /* not lifted */ 3401 RECOMP_FLAGS_IN(); 3402 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E45C: mov byte ptr [ebp - 4], 0x3c */ 3403 PUSH32(esp, 1); /* 0x2B04E460: push 1 */ 3404 ecx = ebp + (-0x74); /* 0x2B04E462: lea ecx, [ebp - 0x74] */ 3405 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E465: call dword ptr [0x2b0b514c] */ 3406 RECOMP_FLAGS_IN(); 3407 esi = MEM32(0x2B0B5220); /* 0x2B04E46B: mov esi, dword ptr [0x2b0b5220] */ 3408 L_2B04E471: 3409 eax = MEM32(ebp + (-0x18)); /* 0x2B04E471: mov eax, dword ptr [ebp - 0x18] */ 3410 PUSH32(esp, eax); /* 0x2B04E474: push eax */ 3411 ecx = ebp + (-0x5E0); /* 0x2B04E475: lea ecx, [ebp - 0x5e0] */ 3412 PUSH32(esp, 0x400u); /* 0x2B04E47B: push 0x400 */ 3413 PUSH32(esp, ecx); /* 0x2B04E480: push ecx */ 3414 RECOMP_ICALL(MEM32(0x2B0B51D0)); /* 0x2B04E481: call dword ptr [0x2b0b51d0] */ 3415 RECOMP_FLAGS_IN(); 3416 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3418 esp = esp + 0xCu; /* 0x2B04E487: add esp, 0xc */ 3419 _flag_k = FK_ADD; 3420 /* test eax, eax */ /* 0x2B04E48A: test eax, eax */ 3421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3422 _cf = 0; 3423 _flag_k = FK_TEST; 3424 RECOMP_BACKEDGE(); 3425 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E113; /* 0x2B04E48C: jne 0x2b04e113 */ 3426 L_2B04E492: 3427 edx = MEM32(ebp + (-0x18)); /* 0x2B04E492: mov edx, dword ptr [ebp - 0x18] */ 3428 PUSH32(esp, edx); /* 0x2B04E495: push edx */ 3429 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E496: call dword ptr [0x2b0b51cc] */ 3430 RECOMP_FLAGS_IN(); 3431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3433 esp = esp + 4; /* 0x2B04E49C: add esp, 4 */ 3434 _flag_k = FK_ADD; 3435 L_2B04E49F: 3436 /* cmp MEM8(ebp + 0x8), LO8(ebx) */ /* 0x2B04E49F: cmp byte ptr [ebp + 8], bl */ 3437 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3439 _flag_k = FK_NARROW(FK_CMP, 24); 3440 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7D4; /* 0x2B04E4A2: je 0x2b04e7d4 */ 3441 L_2B04E4A8: 3442 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E4A8: mov al, byte ptr [ebp + 0xb] */ 3443 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E4AB: mov byte ptr [ebp - 0x64], al */ 3444 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E4AE: mov dword ptr [ebp - 0x60], ebx */ 3445 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E4B1: mov dword ptr [ebp - 0x5c], ebx */ 3446 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E4B4: mov dword ptr [ebp - 0x58], ebx */ 3447 ecx = ebp + (-0x20); /* 0x2B04E4B7: lea ecx, [ebp - 0x20] */ 3448 PUSH32(esp, ecx); /* 0x2B04E4BA: push ecx */ 3449 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E4BB: mov ecx, dword ptr [ebp - 0x28] */ 3450 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E4BE: mov byte ptr [ebp - 4], 0x41 */ 3451 RECOMP_ICALL(0x2B018B60u); /* 0x2B04E4C2: call 0x2b018b60 */ /* not lifted */ 3452 RECOMP_FLAGS_IN(); 3453 edx = MEM32(ebp + (-0x80)); /* 0x2B04E4C7: mov edx, dword ptr [ebp - 0x80] */ 3454 eax = MEM32(eax); /* 0x2B04E4CA: mov eax, dword ptr [eax] */ 3455 /* cmp eax, MEM32(edx + 0x1A4) */ /* 0x2B04E4CC: cmp eax, dword ptr [edx + 0x1a4] */ 3456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x1A4)); 3457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3458 _flag_k = FK_CMP; 3459 MEM32(ebp + 0x8) = eax; /* 0x2B04E4D2: mov dword ptr [ebp + 8], eax */ 3460 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E53B; /* 0x2B04E4D5: je 0x2b04e53b */ 3461 L_2B04E4D7: 3462 ecx = MEM32(ebp + (-0x94)); /* 0x2B04E4D7: mov ecx, dword ptr [ebp - 0x94] */ 3463 esi = MEM32(ebp + (-0x98)); /* 0x2B04E4DD: mov esi, dword ptr [ebp - 0x98] */ 3464 /* cmp esi, ecx */ /* 0x2B04E4E3: cmp esi, ecx */ 3465 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 3466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3467 _flag_k = FK_CMP; 3468 edx = eax + 0xC; /* 0x2B04E4E5: lea edx, [eax + 0xc] */ 3469 edi = ecx; /* 0x2B04E4E8: mov edi, ecx */ 3470 MEM32(ebp + (-0x10)) = edx; /* 0x2B04E4EA: mov dword ptr [ebp - 0x10], edx */ 3471 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E513; /* 0x2B04E4ED: je 0x2b04e513 */ 3472 L_2B04E4EF: 3473 eax = MEM32(ebp + (-0x10)); /* 0x2B04E4EF: mov eax, dword ptr [ebp - 0x10] */ 3474 PUSH32(esp, eax); /* 0x2B04E4F2: push eax */ 3475 PUSH32(esp, esi); /* 0x2B04E4F3: push esi */ 3476 RECOMP_ICALL(MEM32(0x2B0B5180)); /* 0x2B04E4F4: call dword ptr [0x2b0b5180] */ 3477 RECOMP_FLAGS_IN(); 3478 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3480 esp = esp + 8; /* 0x2B04E4FA: add esp, 8 */ 3481 _flag_k = FK_ADD; 3482 /* test LO8(eax), LO8(eax) */ /* 0x2B04E4FD: test al, al */ 3483 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3484 _cf = 0; 3485 _flag_k = FK_NARROW(FK_TEST, 24); 3486 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E508; /* 0x2B04E4FF: jne 0x2b04e508 */ 3487 L_2B04E501: 3488 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3490 esi = esi + 0x10u; /* 0x2B04E501: add esi, 0x10 */ 3491 _flag_k = FK_ADD; 3492 /* cmp esi, edi */ /* 0x2B04E504: cmp esi, edi */ 3493 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3495 _flag_k = FK_CMP; 3496 RECOMP_BACKEDGE(); 3497 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4EF; /* 0x2B04E506: jne 0x2b04e4ef */ 3498 L_2B04E508: 3499 /* cmp esi, MEM32(ebp + (-0x94)) */ /* 0x2B04E508: cmp esi, dword ptr [ebp - 0x94] */ 3500 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x94))); 3501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3502 _flag_k = FK_CMP; 3503 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E523; /* 0x2B04E50E: jne 0x2b04e523 */ 3504 L_2B04E510: 3505 eax = MEM32(ebp + 0x8); /* 0x2B04E510: mov eax, dword ptr [ebp + 8] */ 3506 L_2B04E513: 3507 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E513: mov ecx, dword ptr [ebp - 0x5c] */ 3508 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 3509 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3510 eax = eax + 0xCu; /* 0x2B04E516: add eax, 0xc */ 3511 _flag_k = FK_ADD; 3512 PUSH32(esp, eax); /* 0x2B04E519: push eax */ 3513 PUSH32(esp, ecx); /* 0x2B04E51A: push ecx */ 3514 ecx = ebp + (-0x64); /* 0x2B04E51B: lea ecx, [ebp - 0x64] */ 3515 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E51E: call 0x2b002e20 */ /* not lifted */ 3516 RECOMP_FLAGS_IN(); 3517 L_2B04E523: 3518 ecx = ebp + 0x8; /* 0x2B04E523: lea ecx, [ebp + 8] */ 3519 RECOMP_ICALL(0x2B0199D0u); /* 0x2B04E526: call 0x2b0199d0 */ /* not lifted */ 3520 RECOMP_FLAGS_IN(); 3521 edx = MEM32(ebp + (-0x80)); /* 0x2B04E52B: mov edx, dword ptr [ebp - 0x80] */ 3522 ecx = MEM32(edx + 0x1A4); /* 0x2B04E52E: mov ecx, dword ptr [edx + 0x1a4] */ 3523 eax = MEM32(ebp + 0x8); /* 0x2B04E534: mov eax, dword ptr [ebp + 8] */ 3524 /* cmp eax, ecx */ /* 0x2B04E537: cmp eax, ecx */ 3525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3527 _flag_k = FK_CMP; 3528 RECOMP_BACKEDGE(); 3529 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4D7; /* 0x2B04E539: jne 0x2b04e4d7 */ 3530 L_2B04E53B: 3531 ecx = ebp + (-0x64); /* 0x2B04E53B: lea ecx, [ebp - 0x64] */ 3532 RECOMP_ICALL(0x2B002FC0u); /* 0x2B04E53E: call 0x2b002fc0 */ /* not lifted */ 3533 RECOMP_FLAGS_IN(); 3534 /* test eax, eax */ /* 0x2B04E543: test eax, eax */ 3535 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3536 _cf = 0; 3537 _flag_k = FK_TEST; 3538 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E7C8; /* 0x2B04E545: je 0x2b04e7c8 */ 3539 L_2B04E54B: 3540 PUSH32(esp, 0x2B0E8340u); /* 0x2B04E54B: push 0x2b0e8340 */ 3541 PUSH32(esp, 0x2B0E83C4u); /* 0x2B04E550: push 0x2b0e83c4 */ 3542 RECOMP_ICALL(MEM32(0x2B0B51C8)); /* 0x2B04E555: call dword ptr [0x2b0b51c8] */ 3543 RECOMP_FLAGS_IN(); 3544 esi = eax; /* 0x2B04E55B: mov esi, eax */ 3545 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3547 esp = esp + 8; /* 0x2B04E55D: add esp, 8 */ 3548 _flag_k = FK_ADD; 3549 /* cmp esi, ebx */ /* 0x2B04E560: cmp esi, ebx */ 3550 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3552 _flag_k = FK_CMP; 3553 MEM32(ebp + (-0x54)) = esi; /* 0x2B04E562: mov dword ptr [ebp - 0x54], esi */ 3554 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E5D2; /* 0x2B04E565: jne 0x2b04e5d2 */ 3555 L_2B04E567: 3556 eax = MEM32(ebp + (-0x5C)); /* 0x2B04E567: mov eax, dword ptr [ebp - 0x5c] */ 3557 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E56A: mov ecx, dword ptr [ebp - 0x60] */ 3558 PUSH32(esp, eax); /* 0x2B04E56D: push eax */ 3559 PUSH32(esp, ecx); /* 0x2B04E56E: push ecx */ 3560 ecx = ebp + (-0x64); /* 0x2B04E56F: lea ecx, [ebp - 0x64] */ 3561 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E572: mov byte ptr [ebp - 4], 0x3c */ 3562 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E576: call 0x2b002fe0 */ /* not lifted */ 3563 RECOMP_FLAGS_IN(); 3564 edx = MEM32(ebp + (-0x60)); /* 0x2B04E57B: mov edx, dword ptr [ebp - 0x60] */ 3565 PUSH32(esp, edx); /* 0x2B04E57E: push edx */ 3566 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E57F: call 0x2b0ab1ba */ /* not lifted */ 3567 RECOMP_FLAGS_IN(); 3568 eax = MEM32(ebp + (-0x94)); /* 0x2B04E584: mov eax, dword ptr [ebp - 0x94] */ 3569 ecx = MEM32(ebp + (-0x98)); /* 0x2B04E58A: mov ecx, dword ptr [ebp - 0x98] */ 3570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3572 esp = esp + 4; /* 0x2B04E590: add esp, 4 */ 3573 _flag_k = FK_ADD; 3574 PUSH32(esp, eax); /* 0x2B04E593: push eax */ 3575 PUSH32(esp, ecx); /* 0x2B04E594: push ecx */ 3576 ecx = ebp + (-0x9C); /* 0x2B04E595: lea ecx, [ebp - 0x9c] */ 3577 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E59B: mov dword ptr [ebp - 0x60], ebx */ 3578 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E59E: mov dword ptr [ebp - 0x5c], ebx */ 3579 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E5A1: mov dword ptr [ebp - 0x58], ebx */ 3580 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E5A4: mov dword ptr [ebp - 4], 0xffffffff */ 3581 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E5AB: call 0x2b002fe0 */ /* not lifted */ 3582 RECOMP_FLAGS_IN(); 3583 edx = MEM32(ebp + (-0x98)); /* 0x2B04E5B0: mov edx, dword ptr [ebp - 0x98] */ 3584 PUSH32(esp, edx); /* 0x2B04E5B6: push edx */ 3585 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E5B7: call 0x2b0ab1ba */ /* not lifted */ 3586 RECOMP_FLAGS_IN(); 3587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3589 esp = esp + 4; /* 0x2B04E5BC: add esp, 4 */ 3590 _flag_k = FK_ADD; 3591 edi = POP32_VAL(esp); /* 0x2B04E5BF: pop edi */ 3592 esi = POP32_VAL(esp); /* 0x2B04E5C0: pop esi */ 3593 ebx = POP32_VAL(esp); /* 0x2B04E5C1: pop ebx */ 3594 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E5C2: mov ecx, dword ptr [ebp - 0xc] */ 3595 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E5C5: mov dword ptr fs:[0], ecx */ 3596 esp = ebp; /* 0x2B04E5CC: mov esp, ebp */ 3597 ebp = POP32_VAL(esp); /* 0x2B04E5CE: pop ebp */ 3598 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E5CF: ret 4 */ 3599 L_2B04E5D2: 3600 /* cmp MEM8(ebp + (-0x41)), LO8(ebx) */ /* 0x2B04E5D2: cmp byte ptr [ebp - 0x41], bl */ 3601 _flag_a = (uint32_t)(MEM8(ebp + (-0x41))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3603 _flag_k = FK_NARROW(FK_CMP, 24); 3604 edi = MEM32(0x2B0B5200); /* 0x2B04E5D5: mov edi, dword ptr [0x2b0b5200] */ 3605 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E69A; /* 0x2B04E5DB: jne 0x2b04e69a */ 3606 L_2B04E5E1: 3607 PUSH32(esp, 0x2B0E8320u); /* 0x2B04E5E1: push 0x2b0e8320 */ 3608 PUSH32(esp, esi); /* 0x2B04E5E6: push esi */ 3609 RECOMP_ICALL(edi); /* 0x2B04E5E7: call edi */ 3610 RECOMP_FLAGS_IN(); 3611 PUSH32(esp, 0x2B0E82D4u); /* 0x2B04E5E9: push 0x2b0e82d4 */ 3612 PUSH32(esp, esi); /* 0x2B04E5EE: push esi */ 3613 RECOMP_ICALL(edi); /* 0x2B04E5EF: call edi */ 3614 RECOMP_FLAGS_IN(); 3615 PUSH32(esp, 0x2B0E8294u); /* 0x2B04E5F1: push 0x2b0e8294 */ 3616 PUSH32(esp, esi); /* 0x2B04E5F6: push esi */ 3617 RECOMP_ICALL(edi); /* 0x2B04E5F7: call edi */ 3618 RECOMP_FLAGS_IN(); 3619 PUSH32(esp, 0x2B0E825Cu); /* 0x2B04E5F9: push 0x2b0e825c */ 3620 PUSH32(esp, esi); /* 0x2B04E5FE: push esi */ 3621 RECOMP_ICALL(edi); /* 0x2B04E5FF: call edi */ 3622 RECOMP_FLAGS_IN(); 3623 PUSH32(esp, 0x2B0E821Cu); /* 0x2B04E601: push 0x2b0e821c */ 3624 PUSH32(esp, esi); /* 0x2B04E606: push esi */ 3625 RECOMP_ICALL(edi); /* 0x2B04E607: call edi */ 3626 RECOMP_FLAGS_IN(); 3627 PUSH32(esp, 0x2B0E8210u); /* 0x2B04E609: push 0x2b0e8210 */ 3628 PUSH32(esp, esi); /* 0x2B04E60E: push esi */ 3629 RECOMP_ICALL(edi); /* 0x2B04E60F: call edi */ 3630 RECOMP_FLAGS_IN(); 3631 PUSH32(esp, 0x2B0E81C4u); /* 0x2B04E611: push 0x2b0e81c4 */ 3632 PUSH32(esp, esi); /* 0x2B04E616: push esi */ 3633 RECOMP_ICALL(edi); /* 0x2B04E617: call edi */ 3634 RECOMP_FLAGS_IN(); 3635 PUSH32(esp, 0x2B0E817Cu); /* 0x2B04E619: push 0x2b0e817c */ 3636 PUSH32(esp, esi); /* 0x2B04E61E: push esi */ 3637 RECOMP_ICALL(edi); /* 0x2B04E61F: call edi */ 3638 RECOMP_FLAGS_IN(); 3639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 3640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3641 esp = esp + 0x40u; /* 0x2B04E621: add esp, 0x40 */ 3642 _flag_k = FK_ADD; 3643 PUSH32(esp, 0x2B0E8138u); /* 0x2B04E624: push 0x2b0e8138 */ 3644 PUSH32(esp, esi); /* 0x2B04E629: push esi */ 3645 RECOMP_ICALL(edi); /* 0x2B04E62A: call edi */ 3646 RECOMP_FLAGS_IN(); 3647 PUSH32(esp, 0x2B0E8120u); /* 0x2B04E62C: push 0x2b0e8120 */ 3648 PUSH32(esp, esi); /* 0x2B04E631: push esi */ 3649 RECOMP_ICALL(edi); /* 0x2B04E632: call edi */ 3650 RECOMP_FLAGS_IN(); 3651 PUSH32(esp, 0x2B0E810Cu); /* 0x2B04E634: push 0x2b0e810c */ 3652 PUSH32(esp, esi); /* 0x2B04E639: push esi */ 3653 RECOMP_ICALL(edi); /* 0x2B04E63A: call edi */ 3654 RECOMP_FLAGS_IN(); 3655 PUSH32(esp, 0x2B0E80BCu); /* 0x2B04E63C: push 0x2b0e80bc */ 3656 PUSH32(esp, esi); /* 0x2B04E641: push esi */ 3657 RECOMP_ICALL(edi); /* 0x2B04E642: call edi */ 3658 RECOMP_FLAGS_IN(); 3659 PUSH32(esp, 0x2B0E8068u); /* 0x2B04E644: push 0x2b0e8068 */ 3660 PUSH32(esp, esi); /* 0x2B04E649: push esi */ 3661 RECOMP_ICALL(edi); /* 0x2B04E64A: call edi */ 3662 RECOMP_FLAGS_IN(); 3663 PUSH32(esp, 0x2B0E8018u); /* 0x2B04E64C: push 0x2b0e8018 */ 3664 PUSH32(esp, esi); /* 0x2B04E651: push esi */ 3665 RECOMP_ICALL(edi); /* 0x2B04E652: call edi */ 3666 RECOMP_FLAGS_IN(); 3667 PUSH32(esp, 0x2B0E7FC4u); /* 0x2B04E654: push 0x2b0e7fc4 */ 3668 PUSH32(esp, esi); /* 0x2B04E659: push esi */ 3669 RECOMP_ICALL(edi); /* 0x2B04E65A: call edi */ 3670 RECOMP_FLAGS_IN(); 3671 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E65C: push 0x2b0e2bf8 */ 3672 PUSH32(esp, esi); /* 0x2B04E661: push esi */ 3673 RECOMP_ICALL(edi); /* 0x2B04E662: call edi */ 3674 RECOMP_FLAGS_IN(); 3675 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 3676 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3677 esp = esp + 0x40u; /* 0x2B04E664: add esp, 0x40 */ 3678 _flag_k = FK_ADD; 3679 PUSH32(esp, 0x2B0E7F8Cu); /* 0x2B04E667: push 0x2b0e7f8c */ 3680 PUSH32(esp, esi); /* 0x2B04E66C: push esi */ 3681 RECOMP_ICALL(edi); /* 0x2B04E66D: call edi */ 3682 RECOMP_FLAGS_IN(); 3683 PUSH32(esp, 0x2B0E7F54u); /* 0x2B04E66F: push 0x2b0e7f54 */ 3684 PUSH32(esp, esi); /* 0x2B04E674: push esi */ 3685 RECOMP_ICALL(edi); /* 0x2B04E675: call edi */ 3686 RECOMP_FLAGS_IN(); 3687 PUSH32(esp, 0x2B0E7F18u); /* 0x2B04E677: push 0x2b0e7f18 */ 3688 PUSH32(esp, esi); /* 0x2B04E67C: push esi */ 3689 RECOMP_ICALL(edi); /* 0x2B04E67D: call edi */ 3690 RECOMP_FLAGS_IN(); 3691 PUSH32(esp, 0x2B0E7ED4u); /* 0x2B04E67F: push 0x2b0e7ed4 */ 3692 PUSH32(esp, esi); /* 0x2B04E684: push esi */ 3693 RECOMP_ICALL(edi); /* 0x2B04E685: call edi */ 3694 RECOMP_FLAGS_IN(); 3695 PUSH32(esp, 0x2B0E7EACu); /* 0x2B04E687: push 0x2b0e7eac */ 3696 PUSH32(esp, esi); /* 0x2B04E68C: push esi */ 3697 RECOMP_ICALL(edi); /* 0x2B04E68D: call edi */ 3698 RECOMP_FLAGS_IN(); 3699 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E68F: push 0x2b0e2bf8 */ 3700 PUSH32(esp, esi); /* 0x2B04E694: push esi */ 3701 RECOMP_ICALL(edi); /* 0x2B04E695: call edi */ 3702 RECOMP_FLAGS_IN(); 3703 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 3704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3705 esp = esp + 0x30u; /* 0x2B04E697: add esp, 0x30 */ 3706 _flag_k = FK_ADD; 3707 L_2B04E69A: 3708 MEM32(ebp + (-0x18)) = ebx; /* 0x2B04E69A: mov dword ptr [ebp - 0x18], ebx */ 3709 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3710 edi = 0; /* 0x2B04E69D: xor edi, edi */ 3711 _cf = 0; 3712 _flag_k = FK_TEST; 3713 L_2B04E69F: 3714 eax = MEM32(ebp + (-0x60)); /* 0x2B04E69F: mov eax, dword ptr [ebp - 0x60] */ 3715 /* cmp eax, ebx */ /* 0x2B04E6A2: cmp eax, ebx */ 3716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3718 _flag_k = FK_CMP; 3719 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6A4: je 0x2b04e7be */ 3720 L_2B04E6AA: 3721 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E6AA: mov ecx, dword ptr [ebp - 0x5c] */ 3722 edx = MEM32(ebp + (-0x18)); /* 0x2B04E6AD: mov edx, dword ptr [ebp - 0x18] */ 3723 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3725 ecx = ecx - eax; /* 0x2B04E6B0: sub ecx, eax */ 3726 _flag_k = FK_CMP; 3727 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B04E6B2: sar ecx, 4 */ 3728 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3729 ecx = (uint32_t)((int32_t)ecx >> 4u); 3730 /* cmp edx, ecx */ /* 0x2B04E6B5: cmp edx, ecx */ 3731 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3733 _flag_k = FK_CMP; 3734 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6B7: jae 0x2b04e7be */ 3735 L_2B04E6BD: 3736 edx = ebp + (-0x88); /* 0x2B04E6BD: lea edx, [ebp - 0x88] */ 3737 PUSH32(esp, edx); /* 0x2B04E6C3: push edx */ 3738 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3740 eax = eax + edi; /* 0x2B04E6C4: add eax, edi */ 3741 _flag_k = FK_ADD; 3742 PUSH32(esp, eax); /* 0x2B04E6C6: push eax */ 3743 ecx = ebp + (-0xE0); /* 0x2B04E6C7: lea ecx, [ebp - 0xe0] */ 3744 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E6CD: mov dword ptr [ebp - 0x88], ebx */ 3745 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E6D3: mov dword ptr [ebp - 0x84], ebx */ 3746 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E6D9: call 0x2b051ac0 */ /* not lifted */ 3747 RECOMP_FLAGS_IN(); 3748 PUSH32(esp, eax); /* 0x2B04E6DE: push eax */ 3749 ecx = ebp + (-0x30); /* 0x2B04E6DF: lea ecx, [ebp - 0x30] */ 3750 PUSH32(esp, ecx); /* 0x2B04E6E2: push ecx */ 3751 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E6E3: mov ecx, dword ptr [ebp - 0x28] */ 3752 MEM8(ebp + (-0x4)) = (uint8_t)(0x42u); /* 0x2B04E6E6: mov byte ptr [ebp - 4], 0x42 */ 3753 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E6EA: call 0x2b0519d0 */ /* not lifted */ 3754 RECOMP_FLAGS_IN(); 3755 esi = MEM32(eax); /* 0x2B04E6EF: mov esi, dword ptr [eax] */ 3756 PUSH32(esp, 1); /* 0x2B04E6F1: push 1 */ 3757 ecx = ebp + (-0xE0); /* 0x2B04E6F3: lea ecx, [ebp - 0xe0] */ 3758 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E6F9: mov byte ptr [ebp - 4], 0x41 */ 3759 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E6FD: call dword ptr [0x2b0b514c] */ 3760 RECOMP_FLAGS_IN(); 3761 edx = MEM32(esi + 0x1C); /* 0x2B04E703: mov edx, dword ptr [esi + 0x1c] */ 3762 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E706: mov ecx, dword ptr [ebp - 0x60] */ 3763 eax = ebp + (-0xA4); /* 0x2B04E709: lea eax, [ebp - 0xa4] */ 3764 MEM32(ebp + (-0x1C)) = edx; /* 0x2B04E70F: mov dword ptr [ebp - 0x1c], edx */ 3765 edx = edi + ecx; /* 0x2B04E712: lea edx, [edi + ecx] */ 3766 PUSH32(esp, eax); /* 0x2B04E715: push eax */ 3767 PUSH32(esp, edx); /* 0x2B04E716: push edx */ 3768 ecx = ebp + (-0xC0); /* 0x2B04E717: lea ecx, [ebp - 0xc0] */ 3769 MEM32(ebp + (-0xA4)) = ebx; /* 0x2B04E71D: mov dword ptr [ebp - 0xa4], ebx */ 3770 MEM32(ebp + (-0xA0)) = ebx; /* 0x2B04E723: mov dword ptr [ebp - 0xa0], ebx */ 3771 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E729: call 0x2b051ac0 */ /* not lifted */ 3772 RECOMP_FLAGS_IN(); 3773 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E72E: mov ecx, dword ptr [ebp - 0x28] */ 3774 PUSH32(esp, eax); /* 0x2B04E731: push eax */ 3775 eax = ebp + (-0xC8); /* 0x2B04E732: lea eax, [ebp - 0xc8] */ 3776 PUSH32(esp, eax); /* 0x2B04E738: push eax */ 3777 MEM8(ebp + (-0x4)) = (uint8_t)(0x43u); /* 0x2B04E739: mov byte ptr [ebp - 4], 0x43 */ 3778 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E73D: call 0x2b0519d0 */ /* not lifted */ 3779 RECOMP_FLAGS_IN(); 3780 esi = MEM32(eax); /* 0x2B04E742: mov esi, dword ptr [eax] */ 3781 PUSH32(esp, 1); /* 0x2B04E744: push 1 */ 3782 ecx = ebp + (-0xC0); /* 0x2B04E746: lea ecx, [ebp - 0xc0] */ 3783 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E74C: mov byte ptr [ebp - 4], 0x41 */ 3784 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E750: call dword ptr [0x2b0b514c] */ 3785 RECOMP_FLAGS_IN(); 3786 edx = MEM32(ebp + (-0x60)); /* 0x2B04E756: mov edx, dword ptr [ebp - 0x60] */ 3787 ecx = MEM32(esi + 0x20); /* 0x2B04E759: mov ecx, dword ptr [esi + 0x20] */ 3788 eax = MEM32(edi + edx + 0x4); /* 0x2B04E75C: mov eax, dword ptr [edi + edx + 4] */ 3789 /* cmp eax, ebx */ /* 0x2B04E760: cmp eax, ebx */ 3790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3792 _flag_k = FK_CMP; 3793 esi = MEM32(0x2B0B513C); /* 0x2B04E762: mov esi, dword ptr [0x2b0b513c] */ 3794 MEM32(ebp + (-0x10)) = ecx; /* 0x2B04E768: mov dword ptr [ebp - 0x10], ecx */ 3795 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E76F; /* 0x2B04E76B: je 0x2b04e76f */ 3796 L_2B04E76D: 3797 esi = eax; /* 0x2B04E76D: mov esi, eax */ 3798 L_2B04E76F: 3799 eax = ecx; /* 0x2B04E76F: mov eax, ecx */ 3800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 3801 eax = eax & 0xFFu; /* 0x2B04E771: and eax, 0xff */ 3802 _cf = 0; 3803 _flag_k = FK_TEST; 3804 PUSH32(esp, eax); /* 0x2B04E776: push eax */ 3805 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3806 edx = 0; /* 0x2B04E777: xor edx, edx */ 3807 _cf = 0; 3808 _flag_k = FK_TEST; 3809 SET_LO8(edx, HI8(ecx)); /* 0x2B04E779: mov dl, ch */ 3810 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E77B: mov ecx, dword ptr [ebp - 0x1c] */ 3811 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3812 eax = 0; /* 0x2B04E77E: xor eax, eax */ 3813 _cf = 0; 3814 _flag_k = FK_TEST; 3815 SET_LO8(eax, MEM8(ebp + (-0xE))); /* 0x2B04E780: mov al, byte ptr [ebp - 0xe] */ 3816 PUSH32(esp, edx); /* 0x2B04E783: push edx */ 3817 edx = ecx; /* 0x2B04E784: mov edx, ecx */ 3818 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 3819 edx = edx & 0xFFu; /* 0x2B04E786: and edx, 0xff */ 3820 _cf = 0; 3821 _flag_k = FK_TEST; 3822 PUSH32(esp, eax); /* 0x2B04E78C: push eax */ 3823 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3824 eax = 0; /* 0x2B04E78D: xor eax, eax */ 3825 _cf = 0; 3826 _flag_k = FK_TEST; 3827 SET_LO8(eax, HI8(ecx)); /* 0x2B04E78F: mov al, ch */ 3828 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3829 ecx = 0; /* 0x2B04E791: xor ecx, ecx */ 3830 _cf = 0; 3831 _flag_k = FK_TEST; 3832 SET_LO8(ecx, MEM8(ebp + (-0x1A))); /* 0x2B04E793: mov cl, byte ptr [ebp - 0x1a] */ 3833 PUSH32(esp, edx); /* 0x2B04E796: push edx */ 3834 edx = MEM32(ebp + (-0x54)); /* 0x2B04E797: mov edx, dword ptr [ebp - 0x54] */ 3835 PUSH32(esp, eax); /* 0x2B04E79A: push eax */ 3836 PUSH32(esp, ecx); /* 0x2B04E79B: push ecx */ 3837 PUSH32(esp, esi); /* 0x2B04E79C: push esi */ 3838 PUSH32(esp, 0x2B0E7E8Cu); /* 0x2B04E79D: push 0x2b0e7e8c */ 3839 PUSH32(esp, edx); /* 0x2B04E7A2: push edx */ 3840 RECOMP_ICALL(MEM32(0x2B0B5200)); /* 0x2B04E7A3: call dword ptr [0x2b0b5200] */ 3841 RECOMP_FLAGS_IN(); 3842 ecx = MEM32(ebp + (-0x18)); /* 0x2B04E7A9: mov ecx, dword ptr [ebp - 0x18] */ 3843 esi = MEM32(ebp + (-0x54)); /* 0x2B04E7AC: mov esi, dword ptr [ebp - 0x54] */ 3844 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 3845 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3846 esp = esp + 0x24u; /* 0x2B04E7AF: add esp, 0x24 */ 3847 _flag_k = FK_ADD; 3848 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3849 ecx = ecx + 1; /* 0x2B04E7B2: inc ecx */ 3850 _flag_k = FK_INC; 3851 MEM32(ebp + (-0x18)) = ecx; /* 0x2B04E7B3: mov dword ptr [ebp - 0x18], ecx */ 3852 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 3853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3854 edi = edi + 0x10u; /* 0x2B04E7B6: add edi, 0x10 */ 3855 _flag_k = FK_ADD; 3856 RECOMP_BACKEDGE(); 3857 goto L_2B04E69F; /* 0x2B04E7B9: jmp 0x2b04e69f */ 3858 L_2B04E7BE: 3859 PUSH32(esp, esi); /* 0x2B04E7BE: push esi */ 3860 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E7BF: call dword ptr [0x2b0b51cc] */ 3861 RECOMP_FLAGS_IN(); 3862 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3864 esp = esp + 4; /* 0x2B04E7C5: add esp, 4 */ 3865 _flag_k = FK_ADD; 3866 L_2B04E7C8: 3867 ecx = ebp + (-0x64); /* 0x2B04E7C8: lea ecx, [ebp - 0x64] */ 3868 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E7CB: mov byte ptr [ebp - 4], 0x3c */ 3869 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7CF: call 0x2b002db0 */ /* not lifted */ 3870 RECOMP_FLAGS_IN(); 3871 L_2B04E7D4: 3872 ecx = ebp + (-0x9C); /* 0x2B04E7D4: lea ecx, [ebp - 0x9c] */ 3873 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E7DA: mov dword ptr [ebp - 4], 0xffffffff */ 3874 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7E1: call 0x2b002db0 */ /* not lifted */ 3875 RECOMP_FLAGS_IN(); 3876 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E7E6: mov ecx, dword ptr [ebp - 0xc] */ 3877 edi = POP32_VAL(esp); /* 0x2B04E7E9: pop edi */ 3878 esi = POP32_VAL(esp); /* 0x2B04E7EA: pop esi */ 3879 ebx = POP32_VAL(esp); /* 0x2B04E7EB: pop ebx */ 3880 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E7EC: mov dword ptr fs:[0], ecx */ 3881 esp = ebp; /* 0x2B04E7F3: mov esp, ebp */ 3882 ebp = POP32_VAL(esp); /* 0x2B04E7F5: pop ebp */ 3883 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E7F6: ret 4 */ 3884 RECOMP_REGS_OUT(); 3885 } 3886 3887 void sub_2B04E113(void) { 3888 int _fpu_cmp = 0; 3889 uint32_t _cf = 0; 3890 int _df = 1; 3891 uint32_t _flag_k = FK_NONE; 3892 uint32_t _flag_a = 0, _flag_b = 0; 3893 uint32_t _itail_tgt = 0; 3894 RECOMP_REGS_LOCALS 3895 RECOMP_ENTER(0x2B04E113u); 3896 3897 L_2B04E113: 3898 SET_LO8(eax, MEM8(ebp + (-0x5E0))); /* 0x2B04E113: mov al, byte ptr [ebp - 0x5e0] */ 3899 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3900 edi = 0; /* 0x2B04E119: xor edi, edi */ 3901 _cf = 0; 3902 _flag_k = FK_TEST; 3903 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E11B: cmp al, bl */ 3904 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3906 _flag_k = FK_NARROW(FK_CMP, 24); 3907 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E14C; /* 0x2B04E11D: je 0x2b04e14c */ 3908 L_2B04E11F: 3909 /* cmp LO8(eax), 0x3Bu */ /* 0x2B04E11F: cmp al, 0x3b */ 3910 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x3Bu) << 24; 3911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3912 _flag_k = FK_NARROW(FK_CMP, 24); 3913 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E145; /* 0x2B04E121: je 0x2b04e145 */ 3914 L_2B04E123: 3915 ecx = (int32_t)(int8_t)LO8(eax); /* 0x2B04E123: movsx ecx, al */ 3916 PUSH32(esp, ecx); /* 0x2B04E126: push ecx */ 3917 RECOMP_ICALL(MEM32(0x2B0B51D8)); /* 0x2B04E127: call dword ptr [0x2b0b51d8] */ 3918 RECOMP_FLAGS_IN(); 3919 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3920 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3921 esp = esp + 4; /* 0x2B04E12D: add esp, 4 */ 3922 _flag_k = FK_ADD; 3923 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(eax)); /* 0x2B04E130: mov byte ptr [ebp + edi - 0x5e0], al */ 3924 SET_LO8(eax, MEM8(ebp + edi + (-0x5DF))); /* 0x2B04E137: mov al, byte ptr [ebp + edi - 0x5df] */ 3925 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3926 edi = edi + 1; /* 0x2B04E13E: inc edi */ 3927 _flag_k = FK_INC; 3928 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E13F: cmp al, bl */ 3929 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3931 _flag_k = FK_NARROW(FK_CMP, 24); 3932 RECOMP_BACKEDGE(); 3933 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E11F; /* 0x2B04E141: jne 0x2b04e11f */ 3934 L_2B04E143: 3935 goto L_2B04E14C; /* 0x2B04E143: jmp 0x2b04e14c */ 3936 L_2B04E145: 3937 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(ebx)); /* 0x2B04E145: mov byte ptr [ebp + edi - 0x5e0], bl */ 3938 L_2B04E14C: 3939 edx = ebp + (-0x10); /* 0x2B04E14C: lea edx, [ebp - 0x10] */ 3940 PUSH32(esp, edx); /* 0x2B04E14F: push edx */ 3941 eax = ebp + (-0xA0); /* 0x2B04E150: lea eax, [ebp - 0xa0] */ 3942 PUSH32(esp, eax); /* 0x2B04E156: push eax */ 3943 ecx = ebp + (-0xA8); /* 0x2B04E157: lea ecx, [ebp - 0xa8] */ 3944 PUSH32(esp, ecx); /* 0x2B04E15D: push ecx */ 3945 edx = ebp + (-0x1C); /* 0x2B04E15E: lea edx, [ebp - 0x1c] */ 3946 PUSH32(esp, edx); /* 0x2B04E161: push edx */ 3947 eax = ebp + (-0x54); /* 0x2B04E162: lea eax, [ebp - 0x54] */ 3948 PUSH32(esp, eax); /* 0x2B04E165: push eax */ 3949 ecx = ebp + (-0x8C); /* 0x2B04E166: lea ecx, [ebp - 0x8c] */ 3950 PUSH32(esp, ecx); /* 0x2B04E16C: push ecx */ 3951 edx = ebp + (-0x1E0); /* 0x2B04E16D: lea edx, [ebp - 0x1e0] */ 3952 PUSH32(esp, edx); /* 0x2B04E173: push edx */ 3953 eax = ebp + (-0x5E0); /* 0x2B04E174: lea eax, [ebp - 0x5e0] */ 3954 PUSH32(esp, 0x2B0E8398u); /* 0x2B04E17A: push 0x2b0e8398 */ 3955 PUSH32(esp, eax); /* 0x2B04E17F: push eax */ 3956 RECOMP_ICALL(esi); /* 0x2B04E180: call esi */ 3957 RECOMP_FLAGS_IN(); 3958 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 3959 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3960 esp = esp + 0x24u; /* 0x2B04E182: add esp, 0x24 */ 3961 _flag_k = FK_ADD; 3962 /* cmp eax, 7 */ /* 0x2B04E185: cmp eax, 7 */ 3963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 3964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3965 _flag_k = FK_CMP; 3966 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E1C1; /* 0x2B04E188: jne 0x2b04e1c1 */ 3967 L_2B04E18A: 3968 ecx = MEM32(ebp + (-0x8C)); /* 0x2B04E18A: mov ecx, dword ptr [ebp - 0x8c] */ 3969 eax = MEM32(ebp + (-0x54)); /* 0x2B04E190: mov eax, dword ptr [ebp - 0x54] */ 3970 edx = MEM32(ebp + (-0x1C)); /* 0x2B04E193: mov edx, dword ptr [ebp - 0x1c] */ 3971 edi = MEM32(ebp + (-0xA0)); /* 0x2B04E196: mov edi, dword ptr [ebp - 0xa0] */ 3972 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E19C: shl ecx, 8 */ 3973 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3974 ecx = ecx << 8u; /* 0x2B04E19C: shl ecx, 8 */ 3975 _flag_a = (uint32_t)((ecx | eax)); _flag_b = (uint32_t)((ecx | eax)); 3976 ecx = ecx | eax; /* 0x2B04E19F: or ecx, eax */ 3977 _cf = 0; 3978 _flag_k = FK_TEST; 3979 eax = MEM32(ebp + (-0x10)); /* 0x2B04E1A1: mov eax, dword ptr [ebp - 0x10] */ 3980 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E1A4: shl ecx, 8 */ 3981 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3982 ecx = ecx << 8u; /* 0x2B04E1A4: shl ecx, 8 */ 3983 _flag_a = (uint32_t)((ecx | edx)); _flag_b = (uint32_t)((ecx | edx)); 3984 ecx = ecx | edx; /* 0x2B04E1A7: or ecx, edx */ 3985 _cf = 0; 3986 _flag_k = FK_TEST; 3987 edx = MEM32(ebp + (-0xA8)); /* 0x2B04E1A9: mov edx, dword ptr [ebp - 0xa8] */ 3988 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1AF: shl edx, 8 */ 3989 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3990 edx = edx << 8u; /* 0x2B04E1AF: shl edx, 8 */ 3991 _flag_a = (uint32_t)((edx | edi)); _flag_b = (uint32_t)((edx | edi)); 3992 edx = edx | edi; /* 0x2B04E1B2: or edx, edi */ 3993 _cf = 0; 3994 _flag_k = FK_TEST; 3995 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1B4: shl edx, 8 */ 3996 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3997 edx = edx << 8u; /* 0x2B04E1B4: shl edx, 8 */ 3998 MEM32(ebp + (-0x48)) = ecx; /* 0x2B04E1B7: mov dword ptr [ebp - 0x48], ecx */ 3999 _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax)); 4000 edx = edx | eax; /* 0x2B04E1BA: or edx, eax */ 4001 _cf = 0; 4002 _flag_k = FK_TEST; 4003 goto L_2B04E2A9; /* 0x2B04E1BC: jmp 0x2b04e2a9 */ 4004 L_2B04E1C1: 4005 eax = ebp + (-0x1C); /* 0x2B04E1C1: lea eax, [ebp - 0x1c] */ 4006 PUSH32(esp, eax); /* 0x2B04E1C4: push eax */ 4007 ecx = ebp + (-0x54); /* 0x2B04E1C5: lea ecx, [ebp - 0x54] */ 4008 PUSH32(esp, ecx); /* 0x2B04E1C8: push ecx */ 4009 edx = ebp + (-0x8C); /* 0x2B04E1C9: lea edx, [ebp - 0x8c] */ 4010 PUSH32(esp, edx); /* 0x2B04E1CF: push edx */ 4011 eax = ebp + (-0x1E0); /* 0x2B04E1D0: lea eax, [ebp - 0x1e0] */ 4012 PUSH32(esp, eax); /* 0x2B04E1D6: push eax */ 4013 ecx = ebp + (-0x5E0); /* 0x2B04E1D7: lea ecx, [ebp - 0x5e0] */ 4014 PUSH32(esp, 0x2B0E837Cu); /* 0x2B04E1DD: push 0x2b0e837c */ 4015 PUSH32(esp, ecx); /* 0x2B04E1E2: push ecx */ 4016 RECOMP_ICALL(esi); /* 0x2B04E1E3: call esi */ 4017 RECOMP_FLAGS_IN(); 4018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4020 esp = esp + 0x18u; /* 0x2B04E1E5: add esp, 0x18 */ 4021 _flag_k = FK_ADD; 4022 /* cmp eax, 4 */ /* 0x2B04E1E8: cmp eax, 4 */ 4023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4025 _flag_k = FK_CMP; 4026 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E20E; /* 0x2B04E1EB: jne 0x2b04e20e */ 4027 L_2B04E1ED: 4028 eax = MEM32(ebp + (-0x8C)); /* 0x2B04E1ED: mov eax, dword ptr [ebp - 0x8c] */ 4029 edi = MEM32(ebp + (-0x54)); /* 0x2B04E1F3: mov edi, dword ptr [ebp - 0x54] */ 4030 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E1F6: mov ecx, dword ptr [ebp - 0x1c] */ 4031 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1F9: shl eax, 8 */ 4032 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4033 eax = eax << 8u; /* 0x2B04E1F9: shl eax, 8 */ 4034 _flag_a = (uint32_t)((eax | edi)); _flag_b = (uint32_t)((eax | edi)); 4035 eax = eax | edi; /* 0x2B04E1FC: or eax, edi */ 4036 _cf = 0; 4037 _flag_k = FK_TEST; 4038 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1FE: shl eax, 8 */ 4039 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4040 eax = eax << 8u; /* 0x2B04E1FE: shl eax, 8 */ 4041 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 4042 eax = eax | ecx; /* 0x2B04E201: or eax, ecx */ 4043 _cf = 0; 4044 _flag_k = FK_TEST; 4045 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E203: mov dword ptr [ebp - 0x48], eax */ 4046 MEM32(ebp + (-0x4C)) = eax; /* 0x2B04E206: mov dword ptr [ebp - 0x4c], eax */ 4047 goto L_2B04E2AC; /* 0x2B04E209: jmp 0x2b04e2ac */ 4048 L_2B04E20E: 4049 edx = ebp + (-0x4C); /* 0x2B04E20E: lea edx, [ebp - 0x4c] */ 4050 PUSH32(esp, edx); /* 0x2B04E211: push edx */ 4051 eax = ebp + (-0x48); /* 0x2B04E212: lea eax, [ebp - 0x48] */ 4052 PUSH32(esp, eax); /* 0x2B04E215: push eax */ 4053 ecx = ebp + (-0x1E0); /* 0x2B04E216: lea ecx, [ebp - 0x1e0] */ 4054 PUSH32(esp, ecx); /* 0x2B04E21C: push ecx */ 4055 edx = ebp + (-0x5E0); /* 0x2B04E21D: lea edx, [ebp - 0x5e0] */ 4056 PUSH32(esp, 0x2B0E836Cu); /* 0x2B04E223: push 0x2b0e836c */ 4057 PUSH32(esp, edx); /* 0x2B04E228: push edx */ 4058 RECOMP_ICALL(esi); /* 0x2B04E229: call esi */ 4059 RECOMP_FLAGS_IN(); 4060 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4061 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4062 esp = esp + 0x14u; /* 0x2B04E22B: add esp, 0x14 */ 4063 _flag_k = FK_ADD; 4064 /* cmp eax, 3 */ /* 0x2B04E22E: cmp eax, 3 */ 4065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 4066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4067 _flag_k = FK_CMP; 4068 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E231: je 0x2b04e2ac */ 4069 L_2B04E233: 4070 eax = ebp + (-0x4C); /* 0x2B04E233: lea eax, [ebp - 0x4c] */ 4071 PUSH32(esp, eax); /* 0x2B04E236: push eax */ 4072 ecx = ebp + (-0x48); /* 0x2B04E237: lea ecx, [ebp - 0x48] */ 4073 PUSH32(esp, ecx); /* 0x2B04E23A: push ecx */ 4074 edx = ebp + (-0x1E0); /* 0x2B04E23B: lea edx, [ebp - 0x1e0] */ 4075 PUSH32(esp, edx); /* 0x2B04E241: push edx */ 4076 eax = ebp + (-0x5E0); /* 0x2B04E242: lea eax, [ebp - 0x5e0] */ 4077 PUSH32(esp, 0x2B0E835Cu); /* 0x2B04E248: push 0x2b0e835c */ 4078 PUSH32(esp, eax); /* 0x2B04E24D: push eax */ 4079 RECOMP_ICALL(esi); /* 0x2B04E24E: call esi */ 4080 RECOMP_FLAGS_IN(); 4081 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4083 esp = esp + 0x14u; /* 0x2B04E250: add esp, 0x14 */ 4084 _flag_k = FK_ADD; 4085 /* cmp eax, 3 */ /* 0x2B04E253: cmp eax, 3 */ 4086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 4087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4088 _flag_k = FK_CMP; 4089 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E256: je 0x2b04e2ac */ 4090 L_2B04E258: 4091 ecx = ebp + (-0x48); /* 0x2B04E258: lea ecx, [ebp - 0x48] */ 4092 PUSH32(esp, ecx); /* 0x2B04E25B: push ecx */ 4093 edx = ebp + (-0x1E0); /* 0x2B04E25C: lea edx, [ebp - 0x1e0] */ 4094 PUSH32(esp, edx); /* 0x2B04E262: push edx */ 4095 eax = ebp + (-0x5E0); /* 0x2B04E263: lea eax, [ebp - 0x5e0] */ 4096 PUSH32(esp, 0x2B0E8350u); /* 0x2B04E269: push 0x2b0e8350 */ 4097 PUSH32(esp, eax); /* 0x2B04E26E: push eax */ 4098 RECOMP_ICALL(esi); /* 0x2B04E26F: call esi */ 4099 RECOMP_FLAGS_IN(); 4100 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4102 esp = esp + 0x10u; /* 0x2B04E271: add esp, 0x10 */ 4103 _flag_k = FK_ADD; 4104 /* cmp eax, 2 */ /* 0x2B04E274: cmp eax, 2 */ 4105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4107 _flag_k = FK_CMP; 4108 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E281; /* 0x2B04E277: jne 0x2b04e281 */ 4109 L_2B04E279: 4110 ecx = MEM32(ebp + (-0x48)); /* 0x2B04E279: mov ecx, dword ptr [ebp - 0x48] */ 4111 MEM32(ebp + (-0x4C)) = ecx; /* 0x2B04E27C: mov dword ptr [ebp - 0x4c], ecx */ 4112 goto L_2B04E2AC; /* 0x2B04E27F: jmp 0x2b04e2ac */ 4113 L_2B04E281: 4114 edx = ebp + (-0x48); /* 0x2B04E281: lea edx, [ebp - 0x48] */ 4115 PUSH32(esp, edx); /* 0x2B04E284: push edx */ 4116 eax = ebp + (-0x1E0); /* 0x2B04E285: lea eax, [ebp - 0x1e0] */ 4117 PUSH32(esp, eax); /* 0x2B04E28B: push eax */ 4118 ecx = ebp + (-0x5E0); /* 0x2B04E28C: lea ecx, [ebp - 0x5e0] */ 4119 PUSH32(esp, 0x2B0E8344u); /* 0x2B04E292: push 0x2b0e8344 */ 4120 PUSH32(esp, ecx); /* 0x2B04E297: push ecx */ 4121 RECOMP_ICALL(esi); /* 0x2B04E298: call esi */ 4122 RECOMP_FLAGS_IN(); 4123 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4124 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4125 esp = esp + 0x10u; /* 0x2B04E29A: add esp, 0x10 */ 4126 _flag_k = FK_ADD; 4127 /* cmp eax, 2 */ /* 0x2B04E29D: cmp eax, 2 */ 4128 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4130 _flag_k = FK_CMP; 4131 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E2A0: jne 0x2b04e471 */ 4132 L_2B04E2A6: 4133 edx = MEM32(ebp + (-0x48)); /* 0x2B04E2A6: mov edx, dword ptr [ebp - 0x48] */ 4134 L_2B04E2A9: 4135 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E2A9: mov dword ptr [ebp - 0x4c], edx */ 4136 L_2B04E2AC: 4137 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E2AC: mov al, byte ptr [ebp + 0xb] */ 4138 PUSH32(esp, ebx); /* 0x2B04E2AF: push ebx */ 4139 ecx = ebp + (-0x64); /* 0x2B04E2B0: lea ecx, [ebp - 0x64] */ 4140 MEM8(ebp + (-0xE1)) = (uint8_t)(LO8(ebx)); /* 0x2B04E2B3: mov byte ptr [ebp - 0xe1], bl */ 4141 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E2B9: mov byte ptr [ebp - 0x64], al */ 4142 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E2BC: call dword ptr [0x2b0b514c] */ 4143 RECOMP_FLAGS_IN(); 4144 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4145 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E2C2: or ecx, 0xffffffff */ 4146 _cf = 0; 4147 _flag_k = FK_TEST; 4148 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4149 eax = 0; /* 0x2B04E2C5: xor eax, eax */ 4150 _cf = 0; 4151 _flag_k = FK_TEST; 4152 edi = ebp + (-0x1E0); /* 0x2B04E2C7: lea edi, [ebp - 0x1e0] */ 4153 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; } /* 0x2B04E2CD: repne scasb al, byte ptr es:[edi] */ 4154 ecx = ~ecx; /* 0x2B04E2CF: not ecx */ 4155 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4156 ecx = ecx - 1; /* 0x2B04E2D1: dec ecx */ 4157 _flag_k = FK_DEC; 4158 PUSH32(esp, ecx); /* 0x2B04E2D2: push ecx */ 4159 ecx = ebp + (-0x1E0); /* 0x2B04E2D3: lea ecx, [ebp - 0x1e0] */ 4160 PUSH32(esp, ecx); /* 0x2B04E2D9: push ecx */ 4161 ecx = ebp + (-0x64); /* 0x2B04E2DA: lea ecx, [ebp - 0x64] */ 4162 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E2DD: call dword ptr [0x2b0b5148] */ 4163 RECOMP_FLAGS_IN(); 4164 edx = MEM32(ebp + (-0x80)); /* 0x2B04E2E3: mov edx, dword ptr [ebp - 0x80] */ 4165 edi = MEM32(edx + 0x1A4); /* 0x2B04E2E6: mov edi, dword ptr [edx + 0x1a4] */ 4166 eax = ebp + (-0x64); /* 0x2B04E2EC: lea eax, [ebp - 0x64] */ 4167 PUSH32(esp, eax); /* 0x2B04E2EF: push eax */ 4168 ecx = ebp + (-0x20); /* 0x2B04E2F0: lea ecx, [ebp - 0x20] */ 4169 PUSH32(esp, ecx); /* 0x2B04E2F3: push ecx */ 4170 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E2F4: mov ecx, dword ptr [ebp - 0x28] */ 4171 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Du); /* 0x2B04E2F7: mov byte ptr [ebp - 4], 0x3d */ 4172 RECOMP_ICALL(0x2B08DFD0u); /* 0x2B04E2FB: call 0x2b08dfd0 */ /* not lifted */ 4173 RECOMP_FLAGS_IN(); 4174 /* cmp MEM32(eax), edi */ /* 0x2B04E300: cmp dword ptr [eax], edi */ 4175 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 4176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4177 _flag_k = FK_CMP; 4178 PUSH32(esp, 1); /* 0x2B04E302: push 1 */ 4179 ecx = ebp + (-0x64); /* 0x2B04E304: lea ecx, [ebp - 0x64] */ 4180 MEM8(ebp + (-0x4D)) = (uint8_t)((CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B04E307: sete byte ptr [ebp - 0x4d] */ 4181 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E30B: mov byte ptr [ebp - 4], 0x3c */ 4182 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E30F: call dword ptr [0x2b0b514c] */ 4183 RECOMP_FLAGS_IN(); 4184 /* cmp MEM8(ebp + (-0x4D)), LO8(ebx) */ /* 0x2B04E315: cmp byte ptr [ebp - 0x4d], bl */ 4185 _flag_a = (uint32_t)(MEM8(ebp + (-0x4D))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4187 _flag_k = FK_NARROW(FK_CMP, 24); 4188 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E318: jne 0x2b04e471 */ 4189 L_2B04E31E: 4190 eax = MEM32(ebp + (-0x48)); /* 0x2B04E31E: mov eax, dword ptr [ebp - 0x48] */ 4191 edx = MEM32(ebp + (-0x4C)); /* 0x2B04E321: mov edx, dword ptr [ebp - 0x4c] */ 4192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00FFFFFFu); 4193 eax = eax & 0x00FFFFFFu; /* 0x2B04E324: and eax, 0xffffff */ 4194 _cf = 0; 4195 _flag_k = FK_TEST; 4196 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x00FFFFFFu); 4197 edx = edx & 0x00FFFFFFu; /* 0x2B04E329: and edx, 0xffffff */ 4198 _cf = 0; 4199 _flag_k = FK_TEST; 4200 /* cmp eax, 0xFF00u */ /* 0x2B04E32F: cmp eax, 0xff00 */ 4201 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFF00u); 4202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4203 _flag_k = FK_CMP; 4204 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E334: mov dword ptr [ebp - 0x48], eax */ 4205 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E337: mov dword ptr [ebp - 0x4c], edx */ 4206 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E343; /* 0x2B04E33A: jne 0x2b04e343 */ 4207 L_2B04E33C: 4208 MEM32(ebp + (-0x48)) = 0xFE00u; /* 0x2B04E33C: mov dword ptr [ebp - 0x48], 0xfe00 */ 4209 L_2B04E343: 4210 /* cmp MEM32(ebp + (-0x4C)), 0xFF00u */ /* 0x2B04E343: cmp dword ptr [ebp - 0x4c], 0xff00 */ 4211 _flag_a = (uint32_t)(MEM32(ebp + (-0x4C))); _flag_b = (uint32_t)(0xFF00u); 4212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4213 _flag_k = FK_CMP; 4214 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E353; /* 0x2B04E34A: jne 0x2b04e353 */ 4215 L_2B04E34C: 4216 MEM32(ebp + (-0x4C)) = 0xFE00u; /* 0x2B04E34C: mov dword ptr [ebp - 0x4c], 0xfe00 */ 4217 L_2B04E353: 4218 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E353: mov dl, byte ptr [ebp + 0xb] */ 4219 PUSH32(esp, ebx); /* 0x2B04E356: push ebx */ 4220 ecx = ebp + (-0xB8); /* 0x2B04E357: lea ecx, [ebp - 0xb8] */ 4221 MEM8(ebp + (-0xB8)) = (uint8_t)(LO8(edx)); /* 0x2B04E35D: mov byte ptr [ebp - 0xb8], dl */ 4222 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E363: call dword ptr [0x2b0b514c] */ 4223 RECOMP_FLAGS_IN(); 4224 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4225 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E369: or ecx, 0xffffffff */ 4226 _cf = 0; 4227 _flag_k = FK_TEST; 4228 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4229 eax = 0; /* 0x2B04E36C: xor eax, eax */ 4230 _cf = 0; 4231 _flag_k = FK_TEST; 4232 edi = ebp + (-0x1E0); /* 0x2B04E36E: lea edi, [ebp - 0x1e0] */ 4233 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; } /* 0x2B04E374: repne scasb al, byte ptr es:[edi] */ 4234 ecx = ~ecx; /* 0x2B04E376: not ecx */ 4235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4236 ecx = ecx - 1; /* 0x2B04E378: dec ecx */ 4237 _flag_k = FK_DEC; 4238 PUSH32(esp, ecx); /* 0x2B04E379: push ecx */ 4239 eax = ebp + (-0x1E0); /* 0x2B04E37A: lea eax, [ebp - 0x1e0] */ 4240 PUSH32(esp, eax); /* 0x2B04E380: push eax */ 4241 ecx = ebp + (-0xB8); /* 0x2B04E381: lea ecx, [ebp - 0xb8] */ 4242 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E387: call dword ptr [0x2b0b5148] */ 4243 RECOMP_FLAGS_IN(); 4244 ecx = ebp + (-0x4C); /* 0x2B04E38D: lea ecx, [ebp - 0x4c] */ 4245 PUSH32(esp, ecx); /* 0x2B04E390: push ecx */ 4246 edx = ebp + (-0x48); /* 0x2B04E391: lea edx, [ebp - 0x48] */ 4247 PUSH32(esp, edx); /* 0x2B04E394: push edx */ 4248 ecx = ebp + (-0xC8); /* 0x2B04E395: lea ecx, [ebp - 0xc8] */ 4249 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E39B: mov byte ptr [ebp - 4], 0x3e */ 4250 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04E39F: call 0x2b053ac0 */ /* not lifted */ 4251 RECOMP_FLAGS_IN(); 4252 esi = MEM32(eax); /* 0x2B04E3A4: mov esi, dword ptr [eax] */ 4253 eax = MEM32(eax + 0x4); /* 0x2B04E3A6: mov eax, dword ptr [eax + 4] */ 4254 ecx = ebp + (-0x88); /* 0x2B04E3A9: lea ecx, [ebp - 0x88] */ 4255 PUSH32(esp, ecx); /* 0x2B04E3AF: push ecx */ 4256 edx = ebp + (-0xB8); /* 0x2B04E3B0: lea edx, [ebp - 0xb8] */ 4257 PUSH32(esp, edx); /* 0x2B04E3B6: push edx */ 4258 ecx = ebp + (-0xE0); /* 0x2B04E3B7: lea ecx, [ebp - 0xe0] */ 4259 MEM32(ebp + (-0x3C)) = eax; /* 0x2B04E3BD: mov dword ptr [ebp - 0x3c], eax */ 4260 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E3C0: mov dword ptr [ebp - 0x88], ebx */ 4261 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E3C6: mov dword ptr [ebp - 0x84], ebx */ 4262 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E3CC: call 0x2b051ac0 */ /* not lifted */ 4263 RECOMP_FLAGS_IN(); 4264 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E3D1: mov ecx, dword ptr [ebp - 0x28] */ 4265 PUSH32(esp, eax); /* 0x2B04E3D4: push eax */ 4266 eax = ebp + (-0x30); /* 0x2B04E3D5: lea eax, [ebp - 0x30] */ 4267 PUSH32(esp, eax); /* 0x2B04E3D8: push eax */ 4268 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Fu); /* 0x2B04E3D9: mov byte ptr [ebp - 4], 0x3f */ 4269 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E3DD: call 0x2b0519d0 */ /* not lifted */ 4270 RECOMP_FLAGS_IN(); 4271 edi = MEM32(eax); /* 0x2B04E3E2: mov edi, dword ptr [eax] */ 4272 PUSH32(esp, 1); /* 0x2B04E3E4: push 1 */ 4273 ecx = ebp + (-0xE0); /* 0x2B04E3E6: lea ecx, [ebp - 0xe0] */ 4274 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E3EC: mov byte ptr [ebp - 4], 0x3e */ 4275 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E3F0: call dword ptr [0x2b0b514c] */ 4276 RECOMP_FLAGS_IN(); 4277 ecx = MEM32(ebp + (-0x3C)); /* 0x2B04E3F6: mov ecx, dword ptr [ebp - 0x3c] */ 4278 MEM32(edi + 0x1C) = esi; /* 0x2B04E3F9: mov dword ptr [edi + 0x1c], esi */ 4279 MEM32(edi + 0x20) = ecx; /* 0x2B04E3FC: mov dword ptr [edi + 0x20], ecx */ 4280 PUSH32(esp, 1); /* 0x2B04E3FF: push 1 */ 4281 ecx = ebp + (-0xB8); /* 0x2B04E401: lea ecx, [ebp - 0xb8] */ 4282 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E407: mov byte ptr [ebp - 4], 0x3c */ 4283 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E40B: call dword ptr [0x2b0b514c] */ 4284 RECOMP_FLAGS_IN(); 4285 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E411: mov dl, byte ptr [ebp + 0xb] */ 4286 PUSH32(esp, ebx); /* 0x2B04E414: push ebx */ 4287 ecx = ebp + (-0x74); /* 0x2B04E415: lea ecx, [ebp - 0x74] */ 4288 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(edx)); /* 0x2B04E418: mov byte ptr [ebp - 0x74], dl */ 4289 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E41B: call dword ptr [0x2b0b514c] */ 4290 RECOMP_FLAGS_IN(); 4291 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4292 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E421: or ecx, 0xffffffff */ 4293 _cf = 0; 4294 _flag_k = FK_TEST; 4295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4296 eax = 0; /* 0x2B04E424: xor eax, eax */ 4297 _cf = 0; 4298 _flag_k = FK_TEST; 4299 edi = ebp + (-0x1E0); /* 0x2B04E426: lea edi, [ebp - 0x1e0] */ 4300 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; } /* 0x2B04E42C: repne scasb al, byte ptr es:[edi] */ 4301 ecx = ~ecx; /* 0x2B04E42E: not ecx */ 4302 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4303 ecx = ecx - 1; /* 0x2B04E430: dec ecx */ 4304 _flag_k = FK_DEC; 4305 PUSH32(esp, ecx); /* 0x2B04E431: push ecx */ 4306 eax = ebp + (-0x1E0); /* 0x2B04E432: lea eax, [ebp - 0x1e0] */ 4307 PUSH32(esp, eax); /* 0x2B04E438: push eax */ 4308 ecx = ebp + (-0x74); /* 0x2B04E439: lea ecx, [ebp - 0x74] */ 4309 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E43C: call dword ptr [0x2b0b5148] */ 4310 RECOMP_FLAGS_IN(); 4311 edx = MEM32(ebp + (-0x94)); /* 0x2B04E442: mov edx, dword ptr [ebp - 0x94] */ 4312 ecx = ebp + (-0x74); /* 0x2B04E448: lea ecx, [ebp - 0x74] */ 4313 PUSH32(esp, ecx); /* 0x2B04E44B: push ecx */ 4314 PUSH32(esp, edx); /* 0x2B04E44C: push edx */ 4315 ecx = ebp + (-0x9C); /* 0x2B04E44D: lea ecx, [ebp - 0x9c] */ 4316 MEM8(ebp + (-0x4)) = (uint8_t)(0x40u); /* 0x2B04E453: mov byte ptr [ebp - 4], 0x40 */ 4317 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E457: call 0x2b002e20 */ /* not lifted */ 4318 RECOMP_FLAGS_IN(); 4319 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E45C: mov byte ptr [ebp - 4], 0x3c */ 4320 PUSH32(esp, 1); /* 0x2B04E460: push 1 */ 4321 ecx = ebp + (-0x74); /* 0x2B04E462: lea ecx, [ebp - 0x74] */ 4322 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E465: call dword ptr [0x2b0b514c] */ 4323 RECOMP_FLAGS_IN(); 4324 esi = MEM32(0x2B0B5220); /* 0x2B04E46B: mov esi, dword ptr [0x2b0b5220] */ 4325 L_2B04E471: 4326 eax = MEM32(ebp + (-0x18)); /* 0x2B04E471: mov eax, dword ptr [ebp - 0x18] */ 4327 PUSH32(esp, eax); /* 0x2B04E474: push eax */ 4328 ecx = ebp + (-0x5E0); /* 0x2B04E475: lea ecx, [ebp - 0x5e0] */ 4329 PUSH32(esp, 0x400u); /* 0x2B04E47B: push 0x400 */ 4330 PUSH32(esp, ecx); /* 0x2B04E480: push ecx */ 4331 RECOMP_ICALL(MEM32(0x2B0B51D0)); /* 0x2B04E481: call dword ptr [0x2b0b51d0] */ 4332 RECOMP_FLAGS_IN(); 4333 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4334 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4335 esp = esp + 0xCu; /* 0x2B04E487: add esp, 0xc */ 4336 _flag_k = FK_ADD; 4337 /* test eax, eax */ /* 0x2B04E48A: test eax, eax */ 4338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4339 _cf = 0; 4340 _flag_k = FK_TEST; 4341 RECOMP_BACKEDGE(); 4342 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E113; /* 0x2B04E48C: jne 0x2b04e113 */ 4343 L_2B04E492: 4344 edx = MEM32(ebp + (-0x18)); /* 0x2B04E492: mov edx, dword ptr [ebp - 0x18] */ 4345 PUSH32(esp, edx); /* 0x2B04E495: push edx */ 4346 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E496: call dword ptr [0x2b0b51cc] */ 4347 RECOMP_FLAGS_IN(); 4348 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4350 esp = esp + 4; /* 0x2B04E49C: add esp, 4 */ 4351 _flag_k = FK_ADD; 4352 /* cmp MEM8(ebp + 0x8), LO8(ebx) */ /* 0x2B04E49F: cmp byte ptr [ebp + 8], bl */ 4353 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4355 _flag_k = FK_NARROW(FK_CMP, 24); 4356 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7D4; /* 0x2B04E4A2: je 0x2b04e7d4 */ 4357 L_2B04E4A8: 4358 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E4A8: mov al, byte ptr [ebp + 0xb] */ 4359 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E4AB: mov byte ptr [ebp - 0x64], al */ 4360 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E4AE: mov dword ptr [ebp - 0x60], ebx */ 4361 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E4B1: mov dword ptr [ebp - 0x5c], ebx */ 4362 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E4B4: mov dword ptr [ebp - 0x58], ebx */ 4363 ecx = ebp + (-0x20); /* 0x2B04E4B7: lea ecx, [ebp - 0x20] */ 4364 PUSH32(esp, ecx); /* 0x2B04E4BA: push ecx */ 4365 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E4BB: mov ecx, dword ptr [ebp - 0x28] */ 4366 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E4BE: mov byte ptr [ebp - 4], 0x41 */ 4367 RECOMP_ICALL(0x2B018B60u); /* 0x2B04E4C2: call 0x2b018b60 */ /* not lifted */ 4368 RECOMP_FLAGS_IN(); 4369 edx = MEM32(ebp + (-0x80)); /* 0x2B04E4C7: mov edx, dword ptr [ebp - 0x80] */ 4370 eax = MEM32(eax); /* 0x2B04E4CA: mov eax, dword ptr [eax] */ 4371 /* cmp eax, MEM32(edx + 0x1A4) */ /* 0x2B04E4CC: cmp eax, dword ptr [edx + 0x1a4] */ 4372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x1A4)); 4373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4374 _flag_k = FK_CMP; 4375 MEM32(ebp + 0x8) = eax; /* 0x2B04E4D2: mov dword ptr [ebp + 8], eax */ 4376 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E53B; /* 0x2B04E4D5: je 0x2b04e53b */ 4377 L_2B04E4D7: 4378 ecx = MEM32(ebp + (-0x94)); /* 0x2B04E4D7: mov ecx, dword ptr [ebp - 0x94] */ 4379 esi = MEM32(ebp + (-0x98)); /* 0x2B04E4DD: mov esi, dword ptr [ebp - 0x98] */ 4380 /* cmp esi, ecx */ /* 0x2B04E4E3: cmp esi, ecx */ 4381 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 4382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4383 _flag_k = FK_CMP; 4384 edx = eax + 0xC; /* 0x2B04E4E5: lea edx, [eax + 0xc] */ 4385 edi = ecx; /* 0x2B04E4E8: mov edi, ecx */ 4386 MEM32(ebp + (-0x10)) = edx; /* 0x2B04E4EA: mov dword ptr [ebp - 0x10], edx */ 4387 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E513; /* 0x2B04E4ED: je 0x2b04e513 */ 4388 L_2B04E4EF: 4389 eax = MEM32(ebp + (-0x10)); /* 0x2B04E4EF: mov eax, dword ptr [ebp - 0x10] */ 4390 PUSH32(esp, eax); /* 0x2B04E4F2: push eax */ 4391 PUSH32(esp, esi); /* 0x2B04E4F3: push esi */ 4392 RECOMP_ICALL(MEM32(0x2B0B5180)); /* 0x2B04E4F4: call dword ptr [0x2b0b5180] */ 4393 RECOMP_FLAGS_IN(); 4394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4396 esp = esp + 8; /* 0x2B04E4FA: add esp, 8 */ 4397 _flag_k = FK_ADD; 4398 /* test LO8(eax), LO8(eax) */ /* 0x2B04E4FD: test al, al */ 4399 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4400 _cf = 0; 4401 _flag_k = FK_NARROW(FK_TEST, 24); 4402 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E508; /* 0x2B04E4FF: jne 0x2b04e508 */ 4403 L_2B04E501: 4404 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 4405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4406 esi = esi + 0x10u; /* 0x2B04E501: add esi, 0x10 */ 4407 _flag_k = FK_ADD; 4408 /* cmp esi, edi */ /* 0x2B04E504: cmp esi, edi */ 4409 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4411 _flag_k = FK_CMP; 4412 RECOMP_BACKEDGE(); 4413 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4EF; /* 0x2B04E506: jne 0x2b04e4ef */ 4414 L_2B04E508: 4415 /* cmp esi, MEM32(ebp + (-0x94)) */ /* 0x2B04E508: cmp esi, dword ptr [ebp - 0x94] */ 4416 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x94))); 4417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4418 _flag_k = FK_CMP; 4419 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E523; /* 0x2B04E50E: jne 0x2b04e523 */ 4420 L_2B04E510: 4421 eax = MEM32(ebp + 0x8); /* 0x2B04E510: mov eax, dword ptr [ebp + 8] */ 4422 L_2B04E513: 4423 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E513: mov ecx, dword ptr [ebp - 0x5c] */ 4424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 4425 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4426 eax = eax + 0xCu; /* 0x2B04E516: add eax, 0xc */ 4427 _flag_k = FK_ADD; 4428 PUSH32(esp, eax); /* 0x2B04E519: push eax */ 4429 PUSH32(esp, ecx); /* 0x2B04E51A: push ecx */ 4430 ecx = ebp + (-0x64); /* 0x2B04E51B: lea ecx, [ebp - 0x64] */ 4431 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E51E: call 0x2b002e20 */ /* not lifted */ 4432 RECOMP_FLAGS_IN(); 4433 L_2B04E523: 4434 ecx = ebp + 0x8; /* 0x2B04E523: lea ecx, [ebp + 8] */ 4435 RECOMP_ICALL(0x2B0199D0u); /* 0x2B04E526: call 0x2b0199d0 */ /* not lifted */ 4436 RECOMP_FLAGS_IN(); 4437 edx = MEM32(ebp + (-0x80)); /* 0x2B04E52B: mov edx, dword ptr [ebp - 0x80] */ 4438 ecx = MEM32(edx + 0x1A4); /* 0x2B04E52E: mov ecx, dword ptr [edx + 0x1a4] */ 4439 eax = MEM32(ebp + 0x8); /* 0x2B04E534: mov eax, dword ptr [ebp + 8] */ 4440 /* cmp eax, ecx */ /* 0x2B04E537: cmp eax, ecx */ 4441 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4443 _flag_k = FK_CMP; 4444 RECOMP_BACKEDGE(); 4445 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4D7; /* 0x2B04E539: jne 0x2b04e4d7 */ 4446 L_2B04E53B: 4447 ecx = ebp + (-0x64); /* 0x2B04E53B: lea ecx, [ebp - 0x64] */ 4448 RECOMP_ICALL(0x2B002FC0u); /* 0x2B04E53E: call 0x2b002fc0 */ /* not lifted */ 4449 RECOMP_FLAGS_IN(); 4450 /* test eax, eax */ /* 0x2B04E543: test eax, eax */ 4451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4452 _cf = 0; 4453 _flag_k = FK_TEST; 4454 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E7C8; /* 0x2B04E545: je 0x2b04e7c8 */ 4455 L_2B04E54B: 4456 PUSH32(esp, 0x2B0E8340u); /* 0x2B04E54B: push 0x2b0e8340 */ 4457 PUSH32(esp, 0x2B0E83C4u); /* 0x2B04E550: push 0x2b0e83c4 */ 4458 RECOMP_ICALL(MEM32(0x2B0B51C8)); /* 0x2B04E555: call dword ptr [0x2b0b51c8] */ 4459 RECOMP_FLAGS_IN(); 4460 esi = eax; /* 0x2B04E55B: mov esi, eax */ 4461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4463 esp = esp + 8; /* 0x2B04E55D: add esp, 8 */ 4464 _flag_k = FK_ADD; 4465 /* cmp esi, ebx */ /* 0x2B04E560: cmp esi, ebx */ 4466 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4468 _flag_k = FK_CMP; 4469 MEM32(ebp + (-0x54)) = esi; /* 0x2B04E562: mov dword ptr [ebp - 0x54], esi */ 4470 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E5D2; /* 0x2B04E565: jne 0x2b04e5d2 */ 4471 L_2B04E567: 4472 eax = MEM32(ebp + (-0x5C)); /* 0x2B04E567: mov eax, dword ptr [ebp - 0x5c] */ 4473 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E56A: mov ecx, dword ptr [ebp - 0x60] */ 4474 PUSH32(esp, eax); /* 0x2B04E56D: push eax */ 4475 PUSH32(esp, ecx); /* 0x2B04E56E: push ecx */ 4476 ecx = ebp + (-0x64); /* 0x2B04E56F: lea ecx, [ebp - 0x64] */ 4477 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E572: mov byte ptr [ebp - 4], 0x3c */ 4478 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E576: call 0x2b002fe0 */ /* not lifted */ 4479 RECOMP_FLAGS_IN(); 4480 edx = MEM32(ebp + (-0x60)); /* 0x2B04E57B: mov edx, dword ptr [ebp - 0x60] */ 4481 PUSH32(esp, edx); /* 0x2B04E57E: push edx */ 4482 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E57F: call 0x2b0ab1ba */ /* not lifted */ 4483 RECOMP_FLAGS_IN(); 4484 eax = MEM32(ebp + (-0x94)); /* 0x2B04E584: mov eax, dword ptr [ebp - 0x94] */ 4485 ecx = MEM32(ebp + (-0x98)); /* 0x2B04E58A: mov ecx, dword ptr [ebp - 0x98] */ 4486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4488 esp = esp + 4; /* 0x2B04E590: add esp, 4 */ 4489 _flag_k = FK_ADD; 4490 PUSH32(esp, eax); /* 0x2B04E593: push eax */ 4491 PUSH32(esp, ecx); /* 0x2B04E594: push ecx */ 4492 ecx = ebp + (-0x9C); /* 0x2B04E595: lea ecx, [ebp - 0x9c] */ 4493 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E59B: mov dword ptr [ebp - 0x60], ebx */ 4494 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E59E: mov dword ptr [ebp - 0x5c], ebx */ 4495 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E5A1: mov dword ptr [ebp - 0x58], ebx */ 4496 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E5A4: mov dword ptr [ebp - 4], 0xffffffff */ 4497 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E5AB: call 0x2b002fe0 */ /* not lifted */ 4498 RECOMP_FLAGS_IN(); 4499 edx = MEM32(ebp + (-0x98)); /* 0x2B04E5B0: mov edx, dword ptr [ebp - 0x98] */ 4500 PUSH32(esp, edx); /* 0x2B04E5B6: push edx */ 4501 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E5B7: call 0x2b0ab1ba */ /* not lifted */ 4502 RECOMP_FLAGS_IN(); 4503 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4505 esp = esp + 4; /* 0x2B04E5BC: add esp, 4 */ 4506 _flag_k = FK_ADD; 4507 edi = POP32_VAL(esp); /* 0x2B04E5BF: pop edi */ 4508 esi = POP32_VAL(esp); /* 0x2B04E5C0: pop esi */ 4509 ebx = POP32_VAL(esp); /* 0x2B04E5C1: pop ebx */ 4510 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E5C2: mov ecx, dword ptr [ebp - 0xc] */ 4511 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E5C5: mov dword ptr fs:[0], ecx */ 4512 esp = ebp; /* 0x2B04E5CC: mov esp, ebp */ 4513 ebp = POP32_VAL(esp); /* 0x2B04E5CE: pop ebp */ 4514 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E5CF: ret 4 */ 4515 L_2B04E5D2: 4516 /* cmp MEM8(ebp + (-0x41)), LO8(ebx) */ /* 0x2B04E5D2: cmp byte ptr [ebp - 0x41], bl */ 4517 _flag_a = (uint32_t)(MEM8(ebp + (-0x41))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4519 _flag_k = FK_NARROW(FK_CMP, 24); 4520 edi = MEM32(0x2B0B5200); /* 0x2B04E5D5: mov edi, dword ptr [0x2b0b5200] */ 4521 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E69A; /* 0x2B04E5DB: jne 0x2b04e69a */ 4522 L_2B04E5E1: 4523 PUSH32(esp, 0x2B0E8320u); /* 0x2B04E5E1: push 0x2b0e8320 */ 4524 PUSH32(esp, esi); /* 0x2B04E5E6: push esi */ 4525 RECOMP_ICALL(edi); /* 0x2B04E5E7: call edi */ 4526 RECOMP_FLAGS_IN(); 4527 PUSH32(esp, 0x2B0E82D4u); /* 0x2B04E5E9: push 0x2b0e82d4 */ 4528 PUSH32(esp, esi); /* 0x2B04E5EE: push esi */ 4529 RECOMP_ICALL(edi); /* 0x2B04E5EF: call edi */ 4530 RECOMP_FLAGS_IN(); 4531 PUSH32(esp, 0x2B0E8294u); /* 0x2B04E5F1: push 0x2b0e8294 */ 4532 PUSH32(esp, esi); /* 0x2B04E5F6: push esi */ 4533 RECOMP_ICALL(edi); /* 0x2B04E5F7: call edi */ 4534 RECOMP_FLAGS_IN(); 4535 PUSH32(esp, 0x2B0E825Cu); /* 0x2B04E5F9: push 0x2b0e825c */ 4536 PUSH32(esp, esi); /* 0x2B04E5FE: push esi */ 4537 RECOMP_ICALL(edi); /* 0x2B04E5FF: call edi */ 4538 RECOMP_FLAGS_IN(); 4539 PUSH32(esp, 0x2B0E821Cu); /* 0x2B04E601: push 0x2b0e821c */ 4540 PUSH32(esp, esi); /* 0x2B04E606: push esi */ 4541 RECOMP_ICALL(edi); /* 0x2B04E607: call edi */ 4542 RECOMP_FLAGS_IN(); 4543 PUSH32(esp, 0x2B0E8210u); /* 0x2B04E609: push 0x2b0e8210 */ 4544 PUSH32(esp, esi); /* 0x2B04E60E: push esi */ 4545 RECOMP_ICALL(edi); /* 0x2B04E60F: call edi */ 4546 RECOMP_FLAGS_IN(); 4547 PUSH32(esp, 0x2B0E81C4u); /* 0x2B04E611: push 0x2b0e81c4 */ 4548 PUSH32(esp, esi); /* 0x2B04E616: push esi */ 4549 RECOMP_ICALL(edi); /* 0x2B04E617: call edi */ 4550 RECOMP_FLAGS_IN(); 4551 PUSH32(esp, 0x2B0E817Cu); /* 0x2B04E619: push 0x2b0e817c */ 4552 PUSH32(esp, esi); /* 0x2B04E61E: push esi */ 4553 RECOMP_ICALL(edi); /* 0x2B04E61F: call edi */ 4554 RECOMP_FLAGS_IN(); 4555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 4556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4557 esp = esp + 0x40u; /* 0x2B04E621: add esp, 0x40 */ 4558 _flag_k = FK_ADD; 4559 PUSH32(esp, 0x2B0E8138u); /* 0x2B04E624: push 0x2b0e8138 */ 4560 PUSH32(esp, esi); /* 0x2B04E629: push esi */ 4561 RECOMP_ICALL(edi); /* 0x2B04E62A: call edi */ 4562 RECOMP_FLAGS_IN(); 4563 PUSH32(esp, 0x2B0E8120u); /* 0x2B04E62C: push 0x2b0e8120 */ 4564 PUSH32(esp, esi); /* 0x2B04E631: push esi */ 4565 RECOMP_ICALL(edi); /* 0x2B04E632: call edi */ 4566 RECOMP_FLAGS_IN(); 4567 PUSH32(esp, 0x2B0E810Cu); /* 0x2B04E634: push 0x2b0e810c */ 4568 PUSH32(esp, esi); /* 0x2B04E639: push esi */ 4569 RECOMP_ICALL(edi); /* 0x2B04E63A: call edi */ 4570 RECOMP_FLAGS_IN(); 4571 PUSH32(esp, 0x2B0E80BCu); /* 0x2B04E63C: push 0x2b0e80bc */ 4572 PUSH32(esp, esi); /* 0x2B04E641: push esi */ 4573 RECOMP_ICALL(edi); /* 0x2B04E642: call edi */ 4574 RECOMP_FLAGS_IN(); 4575 PUSH32(esp, 0x2B0E8068u); /* 0x2B04E644: push 0x2b0e8068 */ 4576 PUSH32(esp, esi); /* 0x2B04E649: push esi */ 4577 RECOMP_ICALL(edi); /* 0x2B04E64A: call edi */ 4578 RECOMP_FLAGS_IN(); 4579 PUSH32(esp, 0x2B0E8018u); /* 0x2B04E64C: push 0x2b0e8018 */ 4580 PUSH32(esp, esi); /* 0x2B04E651: push esi */ 4581 RECOMP_ICALL(edi); /* 0x2B04E652: call edi */ 4582 RECOMP_FLAGS_IN(); 4583 PUSH32(esp, 0x2B0E7FC4u); /* 0x2B04E654: push 0x2b0e7fc4 */ 4584 PUSH32(esp, esi); /* 0x2B04E659: push esi */ 4585 RECOMP_ICALL(edi); /* 0x2B04E65A: call edi */ 4586 RECOMP_FLAGS_IN(); 4587 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E65C: push 0x2b0e2bf8 */ 4588 PUSH32(esp, esi); /* 0x2B04E661: push esi */ 4589 RECOMP_ICALL(edi); /* 0x2B04E662: call edi */ 4590 RECOMP_FLAGS_IN(); 4591 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 4592 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4593 esp = esp + 0x40u; /* 0x2B04E664: add esp, 0x40 */ 4594 _flag_k = FK_ADD; 4595 PUSH32(esp, 0x2B0E7F8Cu); /* 0x2B04E667: push 0x2b0e7f8c */ 4596 PUSH32(esp, esi); /* 0x2B04E66C: push esi */ 4597 RECOMP_ICALL(edi); /* 0x2B04E66D: call edi */ 4598 RECOMP_FLAGS_IN(); 4599 PUSH32(esp, 0x2B0E7F54u); /* 0x2B04E66F: push 0x2b0e7f54 */ 4600 PUSH32(esp, esi); /* 0x2B04E674: push esi */ 4601 RECOMP_ICALL(edi); /* 0x2B04E675: call edi */ 4602 RECOMP_FLAGS_IN(); 4603 PUSH32(esp, 0x2B0E7F18u); /* 0x2B04E677: push 0x2b0e7f18 */ 4604 PUSH32(esp, esi); /* 0x2B04E67C: push esi */ 4605 RECOMP_ICALL(edi); /* 0x2B04E67D: call edi */ 4606 RECOMP_FLAGS_IN(); 4607 PUSH32(esp, 0x2B0E7ED4u); /* 0x2B04E67F: push 0x2b0e7ed4 */ 4608 PUSH32(esp, esi); /* 0x2B04E684: push esi */ 4609 RECOMP_ICALL(edi); /* 0x2B04E685: call edi */ 4610 RECOMP_FLAGS_IN(); 4611 PUSH32(esp, 0x2B0E7EACu); /* 0x2B04E687: push 0x2b0e7eac */ 4612 PUSH32(esp, esi); /* 0x2B04E68C: push esi */ 4613 RECOMP_ICALL(edi); /* 0x2B04E68D: call edi */ 4614 RECOMP_FLAGS_IN(); 4615 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E68F: push 0x2b0e2bf8 */ 4616 PUSH32(esp, esi); /* 0x2B04E694: push esi */ 4617 RECOMP_ICALL(edi); /* 0x2B04E695: call edi */ 4618 RECOMP_FLAGS_IN(); 4619 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 4620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4621 esp = esp + 0x30u; /* 0x2B04E697: add esp, 0x30 */ 4622 _flag_k = FK_ADD; 4623 L_2B04E69A: 4624 MEM32(ebp + (-0x18)) = ebx; /* 0x2B04E69A: mov dword ptr [ebp - 0x18], ebx */ 4625 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4626 edi = 0; /* 0x2B04E69D: xor edi, edi */ 4627 _cf = 0; 4628 _flag_k = FK_TEST; 4629 L_2B04E69F: 4630 eax = MEM32(ebp + (-0x60)); /* 0x2B04E69F: mov eax, dword ptr [ebp - 0x60] */ 4631 /* cmp eax, ebx */ /* 0x2B04E6A2: cmp eax, ebx */ 4632 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4634 _flag_k = FK_CMP; 4635 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6A4: je 0x2b04e7be */ 4636 L_2B04E6AA: 4637 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E6AA: mov ecx, dword ptr [ebp - 0x5c] */ 4638 edx = MEM32(ebp + (-0x18)); /* 0x2B04E6AD: mov edx, dword ptr [ebp - 0x18] */ 4639 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4641 ecx = ecx - eax; /* 0x2B04E6B0: sub ecx, eax */ 4642 _flag_k = FK_CMP; 4643 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B04E6B2: sar ecx, 4 */ 4644 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4645 ecx = (uint32_t)((int32_t)ecx >> 4u); 4646 /* cmp edx, ecx */ /* 0x2B04E6B5: cmp edx, ecx */ 4647 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4649 _flag_k = FK_CMP; 4650 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6B7: jae 0x2b04e7be */ 4651 L_2B04E6BD: 4652 edx = ebp + (-0x88); /* 0x2B04E6BD: lea edx, [ebp - 0x88] */ 4653 PUSH32(esp, edx); /* 0x2B04E6C3: push edx */ 4654 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4656 eax = eax + edi; /* 0x2B04E6C4: add eax, edi */ 4657 _flag_k = FK_ADD; 4658 PUSH32(esp, eax); /* 0x2B04E6C6: push eax */ 4659 ecx = ebp + (-0xE0); /* 0x2B04E6C7: lea ecx, [ebp - 0xe0] */ 4660 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E6CD: mov dword ptr [ebp - 0x88], ebx */ 4661 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E6D3: mov dword ptr [ebp - 0x84], ebx */ 4662 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E6D9: call 0x2b051ac0 */ /* not lifted */ 4663 RECOMP_FLAGS_IN(); 4664 PUSH32(esp, eax); /* 0x2B04E6DE: push eax */ 4665 ecx = ebp + (-0x30); /* 0x2B04E6DF: lea ecx, [ebp - 0x30] */ 4666 PUSH32(esp, ecx); /* 0x2B04E6E2: push ecx */ 4667 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E6E3: mov ecx, dword ptr [ebp - 0x28] */ 4668 MEM8(ebp + (-0x4)) = (uint8_t)(0x42u); /* 0x2B04E6E6: mov byte ptr [ebp - 4], 0x42 */ 4669 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E6EA: call 0x2b0519d0 */ /* not lifted */ 4670 RECOMP_FLAGS_IN(); 4671 esi = MEM32(eax); /* 0x2B04E6EF: mov esi, dword ptr [eax] */ 4672 PUSH32(esp, 1); /* 0x2B04E6F1: push 1 */ 4673 ecx = ebp + (-0xE0); /* 0x2B04E6F3: lea ecx, [ebp - 0xe0] */ 4674 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E6F9: mov byte ptr [ebp - 4], 0x41 */ 4675 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E6FD: call dword ptr [0x2b0b514c] */ 4676 RECOMP_FLAGS_IN(); 4677 edx = MEM32(esi + 0x1C); /* 0x2B04E703: mov edx, dword ptr [esi + 0x1c] */ 4678 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E706: mov ecx, dword ptr [ebp - 0x60] */ 4679 eax = ebp + (-0xA4); /* 0x2B04E709: lea eax, [ebp - 0xa4] */ 4680 MEM32(ebp + (-0x1C)) = edx; /* 0x2B04E70F: mov dword ptr [ebp - 0x1c], edx */ 4681 edx = edi + ecx; /* 0x2B04E712: lea edx, [edi + ecx] */ 4682 PUSH32(esp, eax); /* 0x2B04E715: push eax */ 4683 PUSH32(esp, edx); /* 0x2B04E716: push edx */ 4684 ecx = ebp + (-0xC0); /* 0x2B04E717: lea ecx, [ebp - 0xc0] */ 4685 MEM32(ebp + (-0xA4)) = ebx; /* 0x2B04E71D: mov dword ptr [ebp - 0xa4], ebx */ 4686 MEM32(ebp + (-0xA0)) = ebx; /* 0x2B04E723: mov dword ptr [ebp - 0xa0], ebx */ 4687 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E729: call 0x2b051ac0 */ /* not lifted */ 4688 RECOMP_FLAGS_IN(); 4689 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E72E: mov ecx, dword ptr [ebp - 0x28] */ 4690 PUSH32(esp, eax); /* 0x2B04E731: push eax */ 4691 eax = ebp + (-0xC8); /* 0x2B04E732: lea eax, [ebp - 0xc8] */ 4692 PUSH32(esp, eax); /* 0x2B04E738: push eax */ 4693 MEM8(ebp + (-0x4)) = (uint8_t)(0x43u); /* 0x2B04E739: mov byte ptr [ebp - 4], 0x43 */ 4694 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E73D: call 0x2b0519d0 */ /* not lifted */ 4695 RECOMP_FLAGS_IN(); 4696 esi = MEM32(eax); /* 0x2B04E742: mov esi, dword ptr [eax] */ 4697 PUSH32(esp, 1); /* 0x2B04E744: push 1 */ 4698 ecx = ebp + (-0xC0); /* 0x2B04E746: lea ecx, [ebp - 0xc0] */ 4699 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E74C: mov byte ptr [ebp - 4], 0x41 */ 4700 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E750: call dword ptr [0x2b0b514c] */ 4701 RECOMP_FLAGS_IN(); 4702 edx = MEM32(ebp + (-0x60)); /* 0x2B04E756: mov edx, dword ptr [ebp - 0x60] */ 4703 ecx = MEM32(esi + 0x20); /* 0x2B04E759: mov ecx, dword ptr [esi + 0x20] */ 4704 eax = MEM32(edi + edx + 0x4); /* 0x2B04E75C: mov eax, dword ptr [edi + edx + 4] */ 4705 /* cmp eax, ebx */ /* 0x2B04E760: cmp eax, ebx */ 4706 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4708 _flag_k = FK_CMP; 4709 esi = MEM32(0x2B0B513C); /* 0x2B04E762: mov esi, dword ptr [0x2b0b513c] */ 4710 MEM32(ebp + (-0x10)) = ecx; /* 0x2B04E768: mov dword ptr [ebp - 0x10], ecx */ 4711 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E76F; /* 0x2B04E76B: je 0x2b04e76f */ 4712 L_2B04E76D: 4713 esi = eax; /* 0x2B04E76D: mov esi, eax */ 4714 L_2B04E76F: 4715 eax = ecx; /* 0x2B04E76F: mov eax, ecx */ 4716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 4717 eax = eax & 0xFFu; /* 0x2B04E771: and eax, 0xff */ 4718 _cf = 0; 4719 _flag_k = FK_TEST; 4720 PUSH32(esp, eax); /* 0x2B04E776: push eax */ 4721 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4722 edx = 0; /* 0x2B04E777: xor edx, edx */ 4723 _cf = 0; 4724 _flag_k = FK_TEST; 4725 SET_LO8(edx, HI8(ecx)); /* 0x2B04E779: mov dl, ch */ 4726 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E77B: mov ecx, dword ptr [ebp - 0x1c] */ 4727 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4728 eax = 0; /* 0x2B04E77E: xor eax, eax */ 4729 _cf = 0; 4730 _flag_k = FK_TEST; 4731 SET_LO8(eax, MEM8(ebp + (-0xE))); /* 0x2B04E780: mov al, byte ptr [ebp - 0xe] */ 4732 PUSH32(esp, edx); /* 0x2B04E783: push edx */ 4733 edx = ecx; /* 0x2B04E784: mov edx, ecx */ 4734 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 4735 edx = edx & 0xFFu; /* 0x2B04E786: and edx, 0xff */ 4736 _cf = 0; 4737 _flag_k = FK_TEST; 4738 PUSH32(esp, eax); /* 0x2B04E78C: push eax */ 4739 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4740 eax = 0; /* 0x2B04E78D: xor eax, eax */ 4741 _cf = 0; 4742 _flag_k = FK_TEST; 4743 SET_LO8(eax, HI8(ecx)); /* 0x2B04E78F: mov al, ch */ 4744 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4745 ecx = 0; /* 0x2B04E791: xor ecx, ecx */ 4746 _cf = 0; 4747 _flag_k = FK_TEST; 4748 SET_LO8(ecx, MEM8(ebp + (-0x1A))); /* 0x2B04E793: mov cl, byte ptr [ebp - 0x1a] */ 4749 PUSH32(esp, edx); /* 0x2B04E796: push edx */ 4750 edx = MEM32(ebp + (-0x54)); /* 0x2B04E797: mov edx, dword ptr [ebp - 0x54] */ 4751 PUSH32(esp, eax); /* 0x2B04E79A: push eax */ 4752 PUSH32(esp, ecx); /* 0x2B04E79B: push ecx */ 4753 PUSH32(esp, esi); /* 0x2B04E79C: push esi */ 4754 PUSH32(esp, 0x2B0E7E8Cu); /* 0x2B04E79D: push 0x2b0e7e8c */ 4755 PUSH32(esp, edx); /* 0x2B04E7A2: push edx */ 4756 RECOMP_ICALL(MEM32(0x2B0B5200)); /* 0x2B04E7A3: call dword ptr [0x2b0b5200] */ 4757 RECOMP_FLAGS_IN(); 4758 ecx = MEM32(ebp + (-0x18)); /* 0x2B04E7A9: mov ecx, dword ptr [ebp - 0x18] */ 4759 esi = MEM32(ebp + (-0x54)); /* 0x2B04E7AC: mov esi, dword ptr [ebp - 0x54] */ 4760 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 4761 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4762 esp = esp + 0x24u; /* 0x2B04E7AF: add esp, 0x24 */ 4763 _flag_k = FK_ADD; 4764 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4765 ecx = ecx + 1; /* 0x2B04E7B2: inc ecx */ 4766 _flag_k = FK_INC; 4767 MEM32(ebp + (-0x18)) = ecx; /* 0x2B04E7B3: mov dword ptr [ebp - 0x18], ecx */ 4768 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 4769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4770 edi = edi + 0x10u; /* 0x2B04E7B6: add edi, 0x10 */ 4771 _flag_k = FK_ADD; 4772 RECOMP_BACKEDGE(); 4773 goto L_2B04E69F; /* 0x2B04E7B9: jmp 0x2b04e69f */ 4774 L_2B04E7BE: 4775 PUSH32(esp, esi); /* 0x2B04E7BE: push esi */ 4776 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E7BF: call dword ptr [0x2b0b51cc] */ 4777 RECOMP_FLAGS_IN(); 4778 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4779 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4780 esp = esp + 4; /* 0x2B04E7C5: add esp, 4 */ 4781 _flag_k = FK_ADD; 4782 L_2B04E7C8: 4783 ecx = ebp + (-0x64); /* 0x2B04E7C8: lea ecx, [ebp - 0x64] */ 4784 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E7CB: mov byte ptr [ebp - 4], 0x3c */ 4785 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7CF: call 0x2b002db0 */ /* not lifted */ 4786 RECOMP_FLAGS_IN(); 4787 L_2B04E7D4: 4788 ecx = ebp + (-0x9C); /* 0x2B04E7D4: lea ecx, [ebp - 0x9c] */ 4789 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E7DA: mov dword ptr [ebp - 4], 0xffffffff */ 4790 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7E1: call 0x2b002db0 */ /* not lifted */ 4791 RECOMP_FLAGS_IN(); 4792 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E7E6: mov ecx, dword ptr [ebp - 0xc] */ 4793 edi = POP32_VAL(esp); /* 0x2B04E7E9: pop edi */ 4794 esi = POP32_VAL(esp); /* 0x2B04E7EA: pop esi */ 4795 ebx = POP32_VAL(esp); /* 0x2B04E7EB: pop ebx */ 4796 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E7EC: mov dword ptr fs:[0], ecx */ 4797 esp = ebp; /* 0x2B04E7F3: mov esp, ebp */ 4798 ebp = POP32_VAL(esp); /* 0x2B04E7F5: pop ebp */ 4799 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E7F6: ret 4 */ 4800 RECOMP_REGS_OUT(); 4801 } 4802 4803 void sub_2B04E14C(void) { 4804 int _fpu_cmp = 0; 4805 uint32_t _cf = 0; 4806 int _df = 1; 4807 uint32_t _flag_k = FK_NONE; 4808 uint32_t _flag_a = 0, _flag_b = 0; 4809 uint32_t _itail_tgt = 0; 4810 RECOMP_REGS_LOCALS 4811 RECOMP_ENTER(0x2B04E14Cu); 4812 4813 goto L_2B04E14C; 4814 L_2B04E113: 4815 SET_LO8(eax, MEM8(ebp + (-0x5E0))); /* 0x2B04E113: mov al, byte ptr [ebp - 0x5e0] */ 4816 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4817 edi = 0; /* 0x2B04E119: xor edi, edi */ 4818 _cf = 0; 4819 _flag_k = FK_TEST; 4820 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E11B: cmp al, bl */ 4821 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4823 _flag_k = FK_NARROW(FK_CMP, 24); 4824 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E14C; /* 0x2B04E11D: je 0x2b04e14c */ 4825 L_2B04E11F: 4826 /* cmp LO8(eax), 0x3Bu */ /* 0x2B04E11F: cmp al, 0x3b */ 4827 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x3Bu) << 24; 4828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4829 _flag_k = FK_NARROW(FK_CMP, 24); 4830 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E145; /* 0x2B04E121: je 0x2b04e145 */ 4831 L_2B04E123: 4832 ecx = (int32_t)(int8_t)LO8(eax); /* 0x2B04E123: movsx ecx, al */ 4833 PUSH32(esp, ecx); /* 0x2B04E126: push ecx */ 4834 RECOMP_ICALL(MEM32(0x2B0B51D8)); /* 0x2B04E127: call dword ptr [0x2b0b51d8] */ 4835 RECOMP_FLAGS_IN(); 4836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4838 esp = esp + 4; /* 0x2B04E12D: add esp, 4 */ 4839 _flag_k = FK_ADD; 4840 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(eax)); /* 0x2B04E130: mov byte ptr [ebp + edi - 0x5e0], al */ 4841 SET_LO8(eax, MEM8(ebp + edi + (-0x5DF))); /* 0x2B04E137: mov al, byte ptr [ebp + edi - 0x5df] */ 4842 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4843 edi = edi + 1; /* 0x2B04E13E: inc edi */ 4844 _flag_k = FK_INC; 4845 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E13F: cmp al, bl */ 4846 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4848 _flag_k = FK_NARROW(FK_CMP, 24); 4849 RECOMP_BACKEDGE(); 4850 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E11F; /* 0x2B04E141: jne 0x2b04e11f */ 4851 L_2B04E143: 4852 goto L_2B04E14C; /* 0x2B04E143: jmp 0x2b04e14c */ 4853 L_2B04E145: 4854 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(ebx)); /* 0x2B04E145: mov byte ptr [ebp + edi - 0x5e0], bl */ 4855 L_2B04E14C: 4856 edx = ebp + (-0x10); /* 0x2B04E14C: lea edx, [ebp - 0x10] */ 4857 PUSH32(esp, edx); /* 0x2B04E14F: push edx */ 4858 eax = ebp + (-0xA0); /* 0x2B04E150: lea eax, [ebp - 0xa0] */ 4859 PUSH32(esp, eax); /* 0x2B04E156: push eax */ 4860 ecx = ebp + (-0xA8); /* 0x2B04E157: lea ecx, [ebp - 0xa8] */ 4861 PUSH32(esp, ecx); /* 0x2B04E15D: push ecx */ 4862 edx = ebp + (-0x1C); /* 0x2B04E15E: lea edx, [ebp - 0x1c] */ 4863 PUSH32(esp, edx); /* 0x2B04E161: push edx */ 4864 eax = ebp + (-0x54); /* 0x2B04E162: lea eax, [ebp - 0x54] */ 4865 PUSH32(esp, eax); /* 0x2B04E165: push eax */ 4866 ecx = ebp + (-0x8C); /* 0x2B04E166: lea ecx, [ebp - 0x8c] */ 4867 PUSH32(esp, ecx); /* 0x2B04E16C: push ecx */ 4868 edx = ebp + (-0x1E0); /* 0x2B04E16D: lea edx, [ebp - 0x1e0] */ 4869 PUSH32(esp, edx); /* 0x2B04E173: push edx */ 4870 eax = ebp + (-0x5E0); /* 0x2B04E174: lea eax, [ebp - 0x5e0] */ 4871 PUSH32(esp, 0x2B0E8398u); /* 0x2B04E17A: push 0x2b0e8398 */ 4872 PUSH32(esp, eax); /* 0x2B04E17F: push eax */ 4873 RECOMP_ICALL(esi); /* 0x2B04E180: call esi */ 4874 RECOMP_FLAGS_IN(); 4875 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 4876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4877 esp = esp + 0x24u; /* 0x2B04E182: add esp, 0x24 */ 4878 _flag_k = FK_ADD; 4879 /* cmp eax, 7 */ /* 0x2B04E185: cmp eax, 7 */ 4880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 4881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4882 _flag_k = FK_CMP; 4883 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E1C1; /* 0x2B04E188: jne 0x2b04e1c1 */ 4884 L_2B04E18A: 4885 ecx = MEM32(ebp + (-0x8C)); /* 0x2B04E18A: mov ecx, dword ptr [ebp - 0x8c] */ 4886 eax = MEM32(ebp + (-0x54)); /* 0x2B04E190: mov eax, dword ptr [ebp - 0x54] */ 4887 edx = MEM32(ebp + (-0x1C)); /* 0x2B04E193: mov edx, dword ptr [ebp - 0x1c] */ 4888 edi = MEM32(ebp + (-0xA0)); /* 0x2B04E196: mov edi, dword ptr [ebp - 0xa0] */ 4889 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E19C: shl ecx, 8 */ 4890 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4891 ecx = ecx << 8u; /* 0x2B04E19C: shl ecx, 8 */ 4892 _flag_a = (uint32_t)((ecx | eax)); _flag_b = (uint32_t)((ecx | eax)); 4893 ecx = ecx | eax; /* 0x2B04E19F: or ecx, eax */ 4894 _cf = 0; 4895 _flag_k = FK_TEST; 4896 eax = MEM32(ebp + (-0x10)); /* 0x2B04E1A1: mov eax, dword ptr [ebp - 0x10] */ 4897 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E1A4: shl ecx, 8 */ 4898 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4899 ecx = ecx << 8u; /* 0x2B04E1A4: shl ecx, 8 */ 4900 _flag_a = (uint32_t)((ecx | edx)); _flag_b = (uint32_t)((ecx | edx)); 4901 ecx = ecx | edx; /* 0x2B04E1A7: or ecx, edx */ 4902 _cf = 0; 4903 _flag_k = FK_TEST; 4904 edx = MEM32(ebp + (-0xA8)); /* 0x2B04E1A9: mov edx, dword ptr [ebp - 0xa8] */ 4905 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1AF: shl edx, 8 */ 4906 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4907 edx = edx << 8u; /* 0x2B04E1AF: shl edx, 8 */ 4908 _flag_a = (uint32_t)((edx | edi)); _flag_b = (uint32_t)((edx | edi)); 4909 edx = edx | edi; /* 0x2B04E1B2: or edx, edi */ 4910 _cf = 0; 4911 _flag_k = FK_TEST; 4912 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1B4: shl edx, 8 */ 4913 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4914 edx = edx << 8u; /* 0x2B04E1B4: shl edx, 8 */ 4915 MEM32(ebp + (-0x48)) = ecx; /* 0x2B04E1B7: mov dword ptr [ebp - 0x48], ecx */ 4916 _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax)); 4917 edx = edx | eax; /* 0x2B04E1BA: or edx, eax */ 4918 _cf = 0; 4919 _flag_k = FK_TEST; 4920 goto L_2B04E2A9; /* 0x2B04E1BC: jmp 0x2b04e2a9 */ 4921 L_2B04E1C1: 4922 eax = ebp + (-0x1C); /* 0x2B04E1C1: lea eax, [ebp - 0x1c] */ 4923 PUSH32(esp, eax); /* 0x2B04E1C4: push eax */ 4924 ecx = ebp + (-0x54); /* 0x2B04E1C5: lea ecx, [ebp - 0x54] */ 4925 PUSH32(esp, ecx); /* 0x2B04E1C8: push ecx */ 4926 edx = ebp + (-0x8C); /* 0x2B04E1C9: lea edx, [ebp - 0x8c] */ 4927 PUSH32(esp, edx); /* 0x2B04E1CF: push edx */ 4928 eax = ebp + (-0x1E0); /* 0x2B04E1D0: lea eax, [ebp - 0x1e0] */ 4929 PUSH32(esp, eax); /* 0x2B04E1D6: push eax */ 4930 ecx = ebp + (-0x5E0); /* 0x2B04E1D7: lea ecx, [ebp - 0x5e0] */ 4931 PUSH32(esp, 0x2B0E837Cu); /* 0x2B04E1DD: push 0x2b0e837c */ 4932 PUSH32(esp, ecx); /* 0x2B04E1E2: push ecx */ 4933 RECOMP_ICALL(esi); /* 0x2B04E1E3: call esi */ 4934 RECOMP_FLAGS_IN(); 4935 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4936 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4937 esp = esp + 0x18u; /* 0x2B04E1E5: add esp, 0x18 */ 4938 _flag_k = FK_ADD; 4939 /* cmp eax, 4 */ /* 0x2B04E1E8: cmp eax, 4 */ 4940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4942 _flag_k = FK_CMP; 4943 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E20E; /* 0x2B04E1EB: jne 0x2b04e20e */ 4944 L_2B04E1ED: 4945 eax = MEM32(ebp + (-0x8C)); /* 0x2B04E1ED: mov eax, dword ptr [ebp - 0x8c] */ 4946 edi = MEM32(ebp + (-0x54)); /* 0x2B04E1F3: mov edi, dword ptr [ebp - 0x54] */ 4947 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E1F6: mov ecx, dword ptr [ebp - 0x1c] */ 4948 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1F9: shl eax, 8 */ 4949 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4950 eax = eax << 8u; /* 0x2B04E1F9: shl eax, 8 */ 4951 _flag_a = (uint32_t)((eax | edi)); _flag_b = (uint32_t)((eax | edi)); 4952 eax = eax | edi; /* 0x2B04E1FC: or eax, edi */ 4953 _cf = 0; 4954 _flag_k = FK_TEST; 4955 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1FE: shl eax, 8 */ 4956 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4957 eax = eax << 8u; /* 0x2B04E1FE: shl eax, 8 */ 4958 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 4959 eax = eax | ecx; /* 0x2B04E201: or eax, ecx */ 4960 _cf = 0; 4961 _flag_k = FK_TEST; 4962 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E203: mov dword ptr [ebp - 0x48], eax */ 4963 MEM32(ebp + (-0x4C)) = eax; /* 0x2B04E206: mov dword ptr [ebp - 0x4c], eax */ 4964 goto L_2B04E2AC; /* 0x2B04E209: jmp 0x2b04e2ac */ 4965 L_2B04E20E: 4966 edx = ebp + (-0x4C); /* 0x2B04E20E: lea edx, [ebp - 0x4c] */ 4967 PUSH32(esp, edx); /* 0x2B04E211: push edx */ 4968 eax = ebp + (-0x48); /* 0x2B04E212: lea eax, [ebp - 0x48] */ 4969 PUSH32(esp, eax); /* 0x2B04E215: push eax */ 4970 ecx = ebp + (-0x1E0); /* 0x2B04E216: lea ecx, [ebp - 0x1e0] */ 4971 PUSH32(esp, ecx); /* 0x2B04E21C: push ecx */ 4972 edx = ebp + (-0x5E0); /* 0x2B04E21D: lea edx, [ebp - 0x5e0] */ 4973 PUSH32(esp, 0x2B0E836Cu); /* 0x2B04E223: push 0x2b0e836c */ 4974 PUSH32(esp, edx); /* 0x2B04E228: push edx */ 4975 RECOMP_ICALL(esi); /* 0x2B04E229: call esi */ 4976 RECOMP_FLAGS_IN(); 4977 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4979 esp = esp + 0x14u; /* 0x2B04E22B: add esp, 0x14 */ 4980 _flag_k = FK_ADD; 4981 /* cmp eax, 3 */ /* 0x2B04E22E: cmp eax, 3 */ 4982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 4983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4984 _flag_k = FK_CMP; 4985 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E231: je 0x2b04e2ac */ 4986 L_2B04E233: 4987 eax = ebp + (-0x4C); /* 0x2B04E233: lea eax, [ebp - 0x4c] */ 4988 PUSH32(esp, eax); /* 0x2B04E236: push eax */ 4989 ecx = ebp + (-0x48); /* 0x2B04E237: lea ecx, [ebp - 0x48] */ 4990 PUSH32(esp, ecx); /* 0x2B04E23A: push ecx */ 4991 edx = ebp + (-0x1E0); /* 0x2B04E23B: lea edx, [ebp - 0x1e0] */ 4992 PUSH32(esp, edx); /* 0x2B04E241: push edx */ 4993 eax = ebp + (-0x5E0); /* 0x2B04E242: lea eax, [ebp - 0x5e0] */ 4994 PUSH32(esp, 0x2B0E835Cu); /* 0x2B04E248: push 0x2b0e835c */ 4995 PUSH32(esp, eax); /* 0x2B04E24D: push eax */ 4996 RECOMP_ICALL(esi); /* 0x2B04E24E: call esi */ 4997 RECOMP_FLAGS_IN(); 4998 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5000 esp = esp + 0x14u; /* 0x2B04E250: add esp, 0x14 */ 5001 _flag_k = FK_ADD; 5002 /* cmp eax, 3 */ /* 0x2B04E253: cmp eax, 3 */ 5003 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 5004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5005 _flag_k = FK_CMP; 5006 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E256: je 0x2b04e2ac */ 5007 L_2B04E258: 5008 ecx = ebp + (-0x48); /* 0x2B04E258: lea ecx, [ebp - 0x48] */ 5009 PUSH32(esp, ecx); /* 0x2B04E25B: push ecx */ 5010 edx = ebp + (-0x1E0); /* 0x2B04E25C: lea edx, [ebp - 0x1e0] */ 5011 PUSH32(esp, edx); /* 0x2B04E262: push edx */ 5012 eax = ebp + (-0x5E0); /* 0x2B04E263: lea eax, [ebp - 0x5e0] */ 5013 PUSH32(esp, 0x2B0E8350u); /* 0x2B04E269: push 0x2b0e8350 */ 5014 PUSH32(esp, eax); /* 0x2B04E26E: push eax */ 5015 RECOMP_ICALL(esi); /* 0x2B04E26F: call esi */ 5016 RECOMP_FLAGS_IN(); 5017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5019 esp = esp + 0x10u; /* 0x2B04E271: add esp, 0x10 */ 5020 _flag_k = FK_ADD; 5021 /* cmp eax, 2 */ /* 0x2B04E274: cmp eax, 2 */ 5022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5024 _flag_k = FK_CMP; 5025 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E281; /* 0x2B04E277: jne 0x2b04e281 */ 5026 L_2B04E279: 5027 ecx = MEM32(ebp + (-0x48)); /* 0x2B04E279: mov ecx, dword ptr [ebp - 0x48] */ 5028 MEM32(ebp + (-0x4C)) = ecx; /* 0x2B04E27C: mov dword ptr [ebp - 0x4c], ecx */ 5029 goto L_2B04E2AC; /* 0x2B04E27F: jmp 0x2b04e2ac */ 5030 L_2B04E281: 5031 edx = ebp + (-0x48); /* 0x2B04E281: lea edx, [ebp - 0x48] */ 5032 PUSH32(esp, edx); /* 0x2B04E284: push edx */ 5033 eax = ebp + (-0x1E0); /* 0x2B04E285: lea eax, [ebp - 0x1e0] */ 5034 PUSH32(esp, eax); /* 0x2B04E28B: push eax */ 5035 ecx = ebp + (-0x5E0); /* 0x2B04E28C: lea ecx, [ebp - 0x5e0] */ 5036 PUSH32(esp, 0x2B0E8344u); /* 0x2B04E292: push 0x2b0e8344 */ 5037 PUSH32(esp, ecx); /* 0x2B04E297: push ecx */ 5038 RECOMP_ICALL(esi); /* 0x2B04E298: call esi */ 5039 RECOMP_FLAGS_IN(); 5040 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5042 esp = esp + 0x10u; /* 0x2B04E29A: add esp, 0x10 */ 5043 _flag_k = FK_ADD; 5044 /* cmp eax, 2 */ /* 0x2B04E29D: cmp eax, 2 */ 5045 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5047 _flag_k = FK_CMP; 5048 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E2A0: jne 0x2b04e471 */ 5049 L_2B04E2A6: 5050 edx = MEM32(ebp + (-0x48)); /* 0x2B04E2A6: mov edx, dword ptr [ebp - 0x48] */ 5051 L_2B04E2A9: 5052 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E2A9: mov dword ptr [ebp - 0x4c], edx */ 5053 L_2B04E2AC: 5054 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E2AC: mov al, byte ptr [ebp + 0xb] */ 5055 PUSH32(esp, ebx); /* 0x2B04E2AF: push ebx */ 5056 ecx = ebp + (-0x64); /* 0x2B04E2B0: lea ecx, [ebp - 0x64] */ 5057 MEM8(ebp + (-0xE1)) = (uint8_t)(LO8(ebx)); /* 0x2B04E2B3: mov byte ptr [ebp - 0xe1], bl */ 5058 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E2B9: mov byte ptr [ebp - 0x64], al */ 5059 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E2BC: call dword ptr [0x2b0b514c] */ 5060 RECOMP_FLAGS_IN(); 5061 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5062 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E2C2: or ecx, 0xffffffff */ 5063 _cf = 0; 5064 _flag_k = FK_TEST; 5065 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5066 eax = 0; /* 0x2B04E2C5: xor eax, eax */ 5067 _cf = 0; 5068 _flag_k = FK_TEST; 5069 edi = ebp + (-0x1E0); /* 0x2B04E2C7: lea edi, [ebp - 0x1e0] */ 5070 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; } /* 0x2B04E2CD: repne scasb al, byte ptr es:[edi] */ 5071 ecx = ~ecx; /* 0x2B04E2CF: not ecx */ 5072 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5073 ecx = ecx - 1; /* 0x2B04E2D1: dec ecx */ 5074 _flag_k = FK_DEC; 5075 PUSH32(esp, ecx); /* 0x2B04E2D2: push ecx */ 5076 ecx = ebp + (-0x1E0); /* 0x2B04E2D3: lea ecx, [ebp - 0x1e0] */ 5077 PUSH32(esp, ecx); /* 0x2B04E2D9: push ecx */ 5078 ecx = ebp + (-0x64); /* 0x2B04E2DA: lea ecx, [ebp - 0x64] */ 5079 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E2DD: call dword ptr [0x2b0b5148] */ 5080 RECOMP_FLAGS_IN(); 5081 edx = MEM32(ebp + (-0x80)); /* 0x2B04E2E3: mov edx, dword ptr [ebp - 0x80] */ 5082 edi = MEM32(edx + 0x1A4); /* 0x2B04E2E6: mov edi, dword ptr [edx + 0x1a4] */ 5083 eax = ebp + (-0x64); /* 0x2B04E2EC: lea eax, [ebp - 0x64] */ 5084 PUSH32(esp, eax); /* 0x2B04E2EF: push eax */ 5085 ecx = ebp + (-0x20); /* 0x2B04E2F0: lea ecx, [ebp - 0x20] */ 5086 PUSH32(esp, ecx); /* 0x2B04E2F3: push ecx */ 5087 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E2F4: mov ecx, dword ptr [ebp - 0x28] */ 5088 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Du); /* 0x2B04E2F7: mov byte ptr [ebp - 4], 0x3d */ 5089 RECOMP_ICALL(0x2B08DFD0u); /* 0x2B04E2FB: call 0x2b08dfd0 */ /* not lifted */ 5090 RECOMP_FLAGS_IN(); 5091 /* cmp MEM32(eax), edi */ /* 0x2B04E300: cmp dword ptr [eax], edi */ 5092 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 5093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5094 _flag_k = FK_CMP; 5095 PUSH32(esp, 1); /* 0x2B04E302: push 1 */ 5096 ecx = ebp + (-0x64); /* 0x2B04E304: lea ecx, [ebp - 0x64] */ 5097 MEM8(ebp + (-0x4D)) = (uint8_t)((CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B04E307: sete byte ptr [ebp - 0x4d] */ 5098 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E30B: mov byte ptr [ebp - 4], 0x3c */ 5099 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E30F: call dword ptr [0x2b0b514c] */ 5100 RECOMP_FLAGS_IN(); 5101 /* cmp MEM8(ebp + (-0x4D)), LO8(ebx) */ /* 0x2B04E315: cmp byte ptr [ebp - 0x4d], bl */ 5102 _flag_a = (uint32_t)(MEM8(ebp + (-0x4D))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5104 _flag_k = FK_NARROW(FK_CMP, 24); 5105 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E318: jne 0x2b04e471 */ 5106 L_2B04E31E: 5107 eax = MEM32(ebp + (-0x48)); /* 0x2B04E31E: mov eax, dword ptr [ebp - 0x48] */ 5108 edx = MEM32(ebp + (-0x4C)); /* 0x2B04E321: mov edx, dword ptr [ebp - 0x4c] */ 5109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00FFFFFFu); 5110 eax = eax & 0x00FFFFFFu; /* 0x2B04E324: and eax, 0xffffff */ 5111 _cf = 0; 5112 _flag_k = FK_TEST; 5113 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x00FFFFFFu); 5114 edx = edx & 0x00FFFFFFu; /* 0x2B04E329: and edx, 0xffffff */ 5115 _cf = 0; 5116 _flag_k = FK_TEST; 5117 /* cmp eax, 0xFF00u */ /* 0x2B04E32F: cmp eax, 0xff00 */ 5118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFF00u); 5119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5120 _flag_k = FK_CMP; 5121 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E334: mov dword ptr [ebp - 0x48], eax */ 5122 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E337: mov dword ptr [ebp - 0x4c], edx */ 5123 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E343; /* 0x2B04E33A: jne 0x2b04e343 */ 5124 L_2B04E33C: 5125 MEM32(ebp + (-0x48)) = 0xFE00u; /* 0x2B04E33C: mov dword ptr [ebp - 0x48], 0xfe00 */ 5126 L_2B04E343: 5127 /* cmp MEM32(ebp + (-0x4C)), 0xFF00u */ /* 0x2B04E343: cmp dword ptr [ebp - 0x4c], 0xff00 */ 5128 _flag_a = (uint32_t)(MEM32(ebp + (-0x4C))); _flag_b = (uint32_t)(0xFF00u); 5129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5130 _flag_k = FK_CMP; 5131 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E353; /* 0x2B04E34A: jne 0x2b04e353 */ 5132 L_2B04E34C: 5133 MEM32(ebp + (-0x4C)) = 0xFE00u; /* 0x2B04E34C: mov dword ptr [ebp - 0x4c], 0xfe00 */ 5134 L_2B04E353: 5135 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E353: mov dl, byte ptr [ebp + 0xb] */ 5136 PUSH32(esp, ebx); /* 0x2B04E356: push ebx */ 5137 ecx = ebp + (-0xB8); /* 0x2B04E357: lea ecx, [ebp - 0xb8] */ 5138 MEM8(ebp + (-0xB8)) = (uint8_t)(LO8(edx)); /* 0x2B04E35D: mov byte ptr [ebp - 0xb8], dl */ 5139 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E363: call dword ptr [0x2b0b514c] */ 5140 RECOMP_FLAGS_IN(); 5141 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5142 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E369: or ecx, 0xffffffff */ 5143 _cf = 0; 5144 _flag_k = FK_TEST; 5145 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5146 eax = 0; /* 0x2B04E36C: xor eax, eax */ 5147 _cf = 0; 5148 _flag_k = FK_TEST; 5149 edi = ebp + (-0x1E0); /* 0x2B04E36E: lea edi, [ebp - 0x1e0] */ 5150 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; } /* 0x2B04E374: repne scasb al, byte ptr es:[edi] */ 5151 ecx = ~ecx; /* 0x2B04E376: not ecx */ 5152 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5153 ecx = ecx - 1; /* 0x2B04E378: dec ecx */ 5154 _flag_k = FK_DEC; 5155 PUSH32(esp, ecx); /* 0x2B04E379: push ecx */ 5156 eax = ebp + (-0x1E0); /* 0x2B04E37A: lea eax, [ebp - 0x1e0] */ 5157 PUSH32(esp, eax); /* 0x2B04E380: push eax */ 5158 ecx = ebp + (-0xB8); /* 0x2B04E381: lea ecx, [ebp - 0xb8] */ 5159 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E387: call dword ptr [0x2b0b5148] */ 5160 RECOMP_FLAGS_IN(); 5161 ecx = ebp + (-0x4C); /* 0x2B04E38D: lea ecx, [ebp - 0x4c] */ 5162 PUSH32(esp, ecx); /* 0x2B04E390: push ecx */ 5163 edx = ebp + (-0x48); /* 0x2B04E391: lea edx, [ebp - 0x48] */ 5164 PUSH32(esp, edx); /* 0x2B04E394: push edx */ 5165 ecx = ebp + (-0xC8); /* 0x2B04E395: lea ecx, [ebp - 0xc8] */ 5166 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E39B: mov byte ptr [ebp - 4], 0x3e */ 5167 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04E39F: call 0x2b053ac0 */ /* not lifted */ 5168 RECOMP_FLAGS_IN(); 5169 esi = MEM32(eax); /* 0x2B04E3A4: mov esi, dword ptr [eax] */ 5170 eax = MEM32(eax + 0x4); /* 0x2B04E3A6: mov eax, dword ptr [eax + 4] */ 5171 ecx = ebp + (-0x88); /* 0x2B04E3A9: lea ecx, [ebp - 0x88] */ 5172 PUSH32(esp, ecx); /* 0x2B04E3AF: push ecx */ 5173 edx = ebp + (-0xB8); /* 0x2B04E3B0: lea edx, [ebp - 0xb8] */ 5174 PUSH32(esp, edx); /* 0x2B04E3B6: push edx */ 5175 ecx = ebp + (-0xE0); /* 0x2B04E3B7: lea ecx, [ebp - 0xe0] */ 5176 MEM32(ebp + (-0x3C)) = eax; /* 0x2B04E3BD: mov dword ptr [ebp - 0x3c], eax */ 5177 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E3C0: mov dword ptr [ebp - 0x88], ebx */ 5178 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E3C6: mov dword ptr [ebp - 0x84], ebx */ 5179 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E3CC: call 0x2b051ac0 */ /* not lifted */ 5180 RECOMP_FLAGS_IN(); 5181 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E3D1: mov ecx, dword ptr [ebp - 0x28] */ 5182 PUSH32(esp, eax); /* 0x2B04E3D4: push eax */ 5183 eax = ebp + (-0x30); /* 0x2B04E3D5: lea eax, [ebp - 0x30] */ 5184 PUSH32(esp, eax); /* 0x2B04E3D8: push eax */ 5185 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Fu); /* 0x2B04E3D9: mov byte ptr [ebp - 4], 0x3f */ 5186 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E3DD: call 0x2b0519d0 */ /* not lifted */ 5187 RECOMP_FLAGS_IN(); 5188 edi = MEM32(eax); /* 0x2B04E3E2: mov edi, dword ptr [eax] */ 5189 PUSH32(esp, 1); /* 0x2B04E3E4: push 1 */ 5190 ecx = ebp + (-0xE0); /* 0x2B04E3E6: lea ecx, [ebp - 0xe0] */ 5191 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E3EC: mov byte ptr [ebp - 4], 0x3e */ 5192 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E3F0: call dword ptr [0x2b0b514c] */ 5193 RECOMP_FLAGS_IN(); 5194 ecx = MEM32(ebp + (-0x3C)); /* 0x2B04E3F6: mov ecx, dword ptr [ebp - 0x3c] */ 5195 MEM32(edi + 0x1C) = esi; /* 0x2B04E3F9: mov dword ptr [edi + 0x1c], esi */ 5196 MEM32(edi + 0x20) = ecx; /* 0x2B04E3FC: mov dword ptr [edi + 0x20], ecx */ 5197 PUSH32(esp, 1); /* 0x2B04E3FF: push 1 */ 5198 ecx = ebp + (-0xB8); /* 0x2B04E401: lea ecx, [ebp - 0xb8] */ 5199 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E407: mov byte ptr [ebp - 4], 0x3c */ 5200 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E40B: call dword ptr [0x2b0b514c] */ 5201 RECOMP_FLAGS_IN(); 5202 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E411: mov dl, byte ptr [ebp + 0xb] */ 5203 PUSH32(esp, ebx); /* 0x2B04E414: push ebx */ 5204 ecx = ebp + (-0x74); /* 0x2B04E415: lea ecx, [ebp - 0x74] */ 5205 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(edx)); /* 0x2B04E418: mov byte ptr [ebp - 0x74], dl */ 5206 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E41B: call dword ptr [0x2b0b514c] */ 5207 RECOMP_FLAGS_IN(); 5208 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5209 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E421: or ecx, 0xffffffff */ 5210 _cf = 0; 5211 _flag_k = FK_TEST; 5212 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5213 eax = 0; /* 0x2B04E424: xor eax, eax */ 5214 _cf = 0; 5215 _flag_k = FK_TEST; 5216 edi = ebp + (-0x1E0); /* 0x2B04E426: lea edi, [ebp - 0x1e0] */ 5217 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; } /* 0x2B04E42C: repne scasb al, byte ptr es:[edi] */ 5218 ecx = ~ecx; /* 0x2B04E42E: not ecx */ 5219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5220 ecx = ecx - 1; /* 0x2B04E430: dec ecx */ 5221 _flag_k = FK_DEC; 5222 PUSH32(esp, ecx); /* 0x2B04E431: push ecx */ 5223 eax = ebp + (-0x1E0); /* 0x2B04E432: lea eax, [ebp - 0x1e0] */ 5224 PUSH32(esp, eax); /* 0x2B04E438: push eax */ 5225 ecx = ebp + (-0x74); /* 0x2B04E439: lea ecx, [ebp - 0x74] */ 5226 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E43C: call dword ptr [0x2b0b5148] */ 5227 RECOMP_FLAGS_IN(); 5228 edx = MEM32(ebp + (-0x94)); /* 0x2B04E442: mov edx, dword ptr [ebp - 0x94] */ 5229 ecx = ebp + (-0x74); /* 0x2B04E448: lea ecx, [ebp - 0x74] */ 5230 PUSH32(esp, ecx); /* 0x2B04E44B: push ecx */ 5231 PUSH32(esp, edx); /* 0x2B04E44C: push edx */ 5232 ecx = ebp + (-0x9C); /* 0x2B04E44D: lea ecx, [ebp - 0x9c] */ 5233 MEM8(ebp + (-0x4)) = (uint8_t)(0x40u); /* 0x2B04E453: mov byte ptr [ebp - 4], 0x40 */ 5234 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E457: call 0x2b002e20 */ /* not lifted */ 5235 RECOMP_FLAGS_IN(); 5236 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E45C: mov byte ptr [ebp - 4], 0x3c */ 5237 PUSH32(esp, 1); /* 0x2B04E460: push 1 */ 5238 ecx = ebp + (-0x74); /* 0x2B04E462: lea ecx, [ebp - 0x74] */ 5239 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E465: call dword ptr [0x2b0b514c] */ 5240 RECOMP_FLAGS_IN(); 5241 esi = MEM32(0x2B0B5220); /* 0x2B04E46B: mov esi, dword ptr [0x2b0b5220] */ 5242 L_2B04E471: 5243 eax = MEM32(ebp + (-0x18)); /* 0x2B04E471: mov eax, dword ptr [ebp - 0x18] */ 5244 PUSH32(esp, eax); /* 0x2B04E474: push eax */ 5245 ecx = ebp + (-0x5E0); /* 0x2B04E475: lea ecx, [ebp - 0x5e0] */ 5246 PUSH32(esp, 0x400u); /* 0x2B04E47B: push 0x400 */ 5247 PUSH32(esp, ecx); /* 0x2B04E480: push ecx */ 5248 RECOMP_ICALL(MEM32(0x2B0B51D0)); /* 0x2B04E481: call dword ptr [0x2b0b51d0] */ 5249 RECOMP_FLAGS_IN(); 5250 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5252 esp = esp + 0xCu; /* 0x2B04E487: add esp, 0xc */ 5253 _flag_k = FK_ADD; 5254 /* test eax, eax */ /* 0x2B04E48A: test eax, eax */ 5255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5256 _cf = 0; 5257 _flag_k = FK_TEST; 5258 RECOMP_BACKEDGE(); 5259 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E113; /* 0x2B04E48C: jne 0x2b04e113 */ 5260 L_2B04E492: 5261 edx = MEM32(ebp + (-0x18)); /* 0x2B04E492: mov edx, dword ptr [ebp - 0x18] */ 5262 PUSH32(esp, edx); /* 0x2B04E495: push edx */ 5263 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E496: call dword ptr [0x2b0b51cc] */ 5264 RECOMP_FLAGS_IN(); 5265 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5267 esp = esp + 4; /* 0x2B04E49C: add esp, 4 */ 5268 _flag_k = FK_ADD; 5269 /* cmp MEM8(ebp + 0x8), LO8(ebx) */ /* 0x2B04E49F: cmp byte ptr [ebp + 8], bl */ 5270 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5272 _flag_k = FK_NARROW(FK_CMP, 24); 5273 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7D4; /* 0x2B04E4A2: je 0x2b04e7d4 */ 5274 L_2B04E4A8: 5275 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E4A8: mov al, byte ptr [ebp + 0xb] */ 5276 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E4AB: mov byte ptr [ebp - 0x64], al */ 5277 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E4AE: mov dword ptr [ebp - 0x60], ebx */ 5278 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E4B1: mov dword ptr [ebp - 0x5c], ebx */ 5279 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E4B4: mov dword ptr [ebp - 0x58], ebx */ 5280 ecx = ebp + (-0x20); /* 0x2B04E4B7: lea ecx, [ebp - 0x20] */ 5281 PUSH32(esp, ecx); /* 0x2B04E4BA: push ecx */ 5282 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E4BB: mov ecx, dword ptr [ebp - 0x28] */ 5283 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E4BE: mov byte ptr [ebp - 4], 0x41 */ 5284 RECOMP_ICALL(0x2B018B60u); /* 0x2B04E4C2: call 0x2b018b60 */ /* not lifted */ 5285 RECOMP_FLAGS_IN(); 5286 edx = MEM32(ebp + (-0x80)); /* 0x2B04E4C7: mov edx, dword ptr [ebp - 0x80] */ 5287 eax = MEM32(eax); /* 0x2B04E4CA: mov eax, dword ptr [eax] */ 5288 /* cmp eax, MEM32(edx + 0x1A4) */ /* 0x2B04E4CC: cmp eax, dword ptr [edx + 0x1a4] */ 5289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x1A4)); 5290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5291 _flag_k = FK_CMP; 5292 MEM32(ebp + 0x8) = eax; /* 0x2B04E4D2: mov dword ptr [ebp + 8], eax */ 5293 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E53B; /* 0x2B04E4D5: je 0x2b04e53b */ 5294 L_2B04E4D7: 5295 ecx = MEM32(ebp + (-0x94)); /* 0x2B04E4D7: mov ecx, dword ptr [ebp - 0x94] */ 5296 esi = MEM32(ebp + (-0x98)); /* 0x2B04E4DD: mov esi, dword ptr [ebp - 0x98] */ 5297 /* cmp esi, ecx */ /* 0x2B04E4E3: cmp esi, ecx */ 5298 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 5299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5300 _flag_k = FK_CMP; 5301 edx = eax + 0xC; /* 0x2B04E4E5: lea edx, [eax + 0xc] */ 5302 edi = ecx; /* 0x2B04E4E8: mov edi, ecx */ 5303 MEM32(ebp + (-0x10)) = edx; /* 0x2B04E4EA: mov dword ptr [ebp - 0x10], edx */ 5304 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E513; /* 0x2B04E4ED: je 0x2b04e513 */ 5305 L_2B04E4EF: 5306 eax = MEM32(ebp + (-0x10)); /* 0x2B04E4EF: mov eax, dword ptr [ebp - 0x10] */ 5307 PUSH32(esp, eax); /* 0x2B04E4F2: push eax */ 5308 PUSH32(esp, esi); /* 0x2B04E4F3: push esi */ 5309 RECOMP_ICALL(MEM32(0x2B0B5180)); /* 0x2B04E4F4: call dword ptr [0x2b0b5180] */ 5310 RECOMP_FLAGS_IN(); 5311 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5313 esp = esp + 8; /* 0x2B04E4FA: add esp, 8 */ 5314 _flag_k = FK_ADD; 5315 /* test LO8(eax), LO8(eax) */ /* 0x2B04E4FD: test al, al */ 5316 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5317 _cf = 0; 5318 _flag_k = FK_NARROW(FK_TEST, 24); 5319 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E508; /* 0x2B04E4FF: jne 0x2b04e508 */ 5320 L_2B04E501: 5321 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 5322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5323 esi = esi + 0x10u; /* 0x2B04E501: add esi, 0x10 */ 5324 _flag_k = FK_ADD; 5325 /* cmp esi, edi */ /* 0x2B04E504: cmp esi, edi */ 5326 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 5327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5328 _flag_k = FK_CMP; 5329 RECOMP_BACKEDGE(); 5330 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4EF; /* 0x2B04E506: jne 0x2b04e4ef */ 5331 L_2B04E508: 5332 /* cmp esi, MEM32(ebp + (-0x94)) */ /* 0x2B04E508: cmp esi, dword ptr [ebp - 0x94] */ 5333 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x94))); 5334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5335 _flag_k = FK_CMP; 5336 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E523; /* 0x2B04E50E: jne 0x2b04e523 */ 5337 L_2B04E510: 5338 eax = MEM32(ebp + 0x8); /* 0x2B04E510: mov eax, dword ptr [ebp + 8] */ 5339 L_2B04E513: 5340 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E513: mov ecx, dword ptr [ebp - 0x5c] */ 5341 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 5342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5343 eax = eax + 0xCu; /* 0x2B04E516: add eax, 0xc */ 5344 _flag_k = FK_ADD; 5345 PUSH32(esp, eax); /* 0x2B04E519: push eax */ 5346 PUSH32(esp, ecx); /* 0x2B04E51A: push ecx */ 5347 ecx = ebp + (-0x64); /* 0x2B04E51B: lea ecx, [ebp - 0x64] */ 5348 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E51E: call 0x2b002e20 */ /* not lifted */ 5349 RECOMP_FLAGS_IN(); 5350 L_2B04E523: 5351 ecx = ebp + 0x8; /* 0x2B04E523: lea ecx, [ebp + 8] */ 5352 RECOMP_ICALL(0x2B0199D0u); /* 0x2B04E526: call 0x2b0199d0 */ /* not lifted */ 5353 RECOMP_FLAGS_IN(); 5354 edx = MEM32(ebp + (-0x80)); /* 0x2B04E52B: mov edx, dword ptr [ebp - 0x80] */ 5355 ecx = MEM32(edx + 0x1A4); /* 0x2B04E52E: mov ecx, dword ptr [edx + 0x1a4] */ 5356 eax = MEM32(ebp + 0x8); /* 0x2B04E534: mov eax, dword ptr [ebp + 8] */ 5357 /* cmp eax, ecx */ /* 0x2B04E537: cmp eax, ecx */ 5358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5360 _flag_k = FK_CMP; 5361 RECOMP_BACKEDGE(); 5362 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4D7; /* 0x2B04E539: jne 0x2b04e4d7 */ 5363 L_2B04E53B: 5364 ecx = ebp + (-0x64); /* 0x2B04E53B: lea ecx, [ebp - 0x64] */ 5365 RECOMP_ICALL(0x2B002FC0u); /* 0x2B04E53E: call 0x2b002fc0 */ /* not lifted */ 5366 RECOMP_FLAGS_IN(); 5367 /* test eax, eax */ /* 0x2B04E543: test eax, eax */ 5368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5369 _cf = 0; 5370 _flag_k = FK_TEST; 5371 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E7C8; /* 0x2B04E545: je 0x2b04e7c8 */ 5372 L_2B04E54B: 5373 PUSH32(esp, 0x2B0E8340u); /* 0x2B04E54B: push 0x2b0e8340 */ 5374 PUSH32(esp, 0x2B0E83C4u); /* 0x2B04E550: push 0x2b0e83c4 */ 5375 RECOMP_ICALL(MEM32(0x2B0B51C8)); /* 0x2B04E555: call dword ptr [0x2b0b51c8] */ 5376 RECOMP_FLAGS_IN(); 5377 esi = eax; /* 0x2B04E55B: mov esi, eax */ 5378 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5380 esp = esp + 8; /* 0x2B04E55D: add esp, 8 */ 5381 _flag_k = FK_ADD; 5382 /* cmp esi, ebx */ /* 0x2B04E560: cmp esi, ebx */ 5383 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5385 _flag_k = FK_CMP; 5386 MEM32(ebp + (-0x54)) = esi; /* 0x2B04E562: mov dword ptr [ebp - 0x54], esi */ 5387 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E5D2; /* 0x2B04E565: jne 0x2b04e5d2 */ 5388 L_2B04E567: 5389 eax = MEM32(ebp + (-0x5C)); /* 0x2B04E567: mov eax, dword ptr [ebp - 0x5c] */ 5390 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E56A: mov ecx, dword ptr [ebp - 0x60] */ 5391 PUSH32(esp, eax); /* 0x2B04E56D: push eax */ 5392 PUSH32(esp, ecx); /* 0x2B04E56E: push ecx */ 5393 ecx = ebp + (-0x64); /* 0x2B04E56F: lea ecx, [ebp - 0x64] */ 5394 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E572: mov byte ptr [ebp - 4], 0x3c */ 5395 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E576: call 0x2b002fe0 */ /* not lifted */ 5396 RECOMP_FLAGS_IN(); 5397 edx = MEM32(ebp + (-0x60)); /* 0x2B04E57B: mov edx, dword ptr [ebp - 0x60] */ 5398 PUSH32(esp, edx); /* 0x2B04E57E: push edx */ 5399 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E57F: call 0x2b0ab1ba */ /* not lifted */ 5400 RECOMP_FLAGS_IN(); 5401 eax = MEM32(ebp + (-0x94)); /* 0x2B04E584: mov eax, dword ptr [ebp - 0x94] */ 5402 ecx = MEM32(ebp + (-0x98)); /* 0x2B04E58A: mov ecx, dword ptr [ebp - 0x98] */ 5403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5405 esp = esp + 4; /* 0x2B04E590: add esp, 4 */ 5406 _flag_k = FK_ADD; 5407 PUSH32(esp, eax); /* 0x2B04E593: push eax */ 5408 PUSH32(esp, ecx); /* 0x2B04E594: push ecx */ 5409 ecx = ebp + (-0x9C); /* 0x2B04E595: lea ecx, [ebp - 0x9c] */ 5410 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E59B: mov dword ptr [ebp - 0x60], ebx */ 5411 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E59E: mov dword ptr [ebp - 0x5c], ebx */ 5412 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E5A1: mov dword ptr [ebp - 0x58], ebx */ 5413 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E5A4: mov dword ptr [ebp - 4], 0xffffffff */ 5414 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E5AB: call 0x2b002fe0 */ /* not lifted */ 5415 RECOMP_FLAGS_IN(); 5416 edx = MEM32(ebp + (-0x98)); /* 0x2B04E5B0: mov edx, dword ptr [ebp - 0x98] */ 5417 PUSH32(esp, edx); /* 0x2B04E5B6: push edx */ 5418 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E5B7: call 0x2b0ab1ba */ /* not lifted */ 5419 RECOMP_FLAGS_IN(); 5420 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5421 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5422 esp = esp + 4; /* 0x2B04E5BC: add esp, 4 */ 5423 _flag_k = FK_ADD; 5424 edi = POP32_VAL(esp); /* 0x2B04E5BF: pop edi */ 5425 esi = POP32_VAL(esp); /* 0x2B04E5C0: pop esi */ 5426 ebx = POP32_VAL(esp); /* 0x2B04E5C1: pop ebx */ 5427 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E5C2: mov ecx, dword ptr [ebp - 0xc] */ 5428 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E5C5: mov dword ptr fs:[0], ecx */ 5429 esp = ebp; /* 0x2B04E5CC: mov esp, ebp */ 5430 ebp = POP32_VAL(esp); /* 0x2B04E5CE: pop ebp */ 5431 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E5CF: ret 4 */ 5432 L_2B04E5D2: 5433 /* cmp MEM8(ebp + (-0x41)), LO8(ebx) */ /* 0x2B04E5D2: cmp byte ptr [ebp - 0x41], bl */ 5434 _flag_a = (uint32_t)(MEM8(ebp + (-0x41))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5436 _flag_k = FK_NARROW(FK_CMP, 24); 5437 edi = MEM32(0x2B0B5200); /* 0x2B04E5D5: mov edi, dword ptr [0x2b0b5200] */ 5438 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E69A; /* 0x2B04E5DB: jne 0x2b04e69a */ 5439 L_2B04E5E1: 5440 PUSH32(esp, 0x2B0E8320u); /* 0x2B04E5E1: push 0x2b0e8320 */ 5441 PUSH32(esp, esi); /* 0x2B04E5E6: push esi */ 5442 RECOMP_ICALL(edi); /* 0x2B04E5E7: call edi */ 5443 RECOMP_FLAGS_IN(); 5444 PUSH32(esp, 0x2B0E82D4u); /* 0x2B04E5E9: push 0x2b0e82d4 */ 5445 PUSH32(esp, esi); /* 0x2B04E5EE: push esi */ 5446 RECOMP_ICALL(edi); /* 0x2B04E5EF: call edi */ 5447 RECOMP_FLAGS_IN(); 5448 PUSH32(esp, 0x2B0E8294u); /* 0x2B04E5F1: push 0x2b0e8294 */ 5449 PUSH32(esp, esi); /* 0x2B04E5F6: push esi */ 5450 RECOMP_ICALL(edi); /* 0x2B04E5F7: call edi */ 5451 RECOMP_FLAGS_IN(); 5452 PUSH32(esp, 0x2B0E825Cu); /* 0x2B04E5F9: push 0x2b0e825c */ 5453 PUSH32(esp, esi); /* 0x2B04E5FE: push esi */ 5454 RECOMP_ICALL(edi); /* 0x2B04E5FF: call edi */ 5455 RECOMP_FLAGS_IN(); 5456 PUSH32(esp, 0x2B0E821Cu); /* 0x2B04E601: push 0x2b0e821c */ 5457 PUSH32(esp, esi); /* 0x2B04E606: push esi */ 5458 RECOMP_ICALL(edi); /* 0x2B04E607: call edi */ 5459 RECOMP_FLAGS_IN(); 5460 PUSH32(esp, 0x2B0E8210u); /* 0x2B04E609: push 0x2b0e8210 */ 5461 PUSH32(esp, esi); /* 0x2B04E60E: push esi */ 5462 RECOMP_ICALL(edi); /* 0x2B04E60F: call edi */ 5463 RECOMP_FLAGS_IN(); 5464 PUSH32(esp, 0x2B0E81C4u); /* 0x2B04E611: push 0x2b0e81c4 */ 5465 PUSH32(esp, esi); /* 0x2B04E616: push esi */ 5466 RECOMP_ICALL(edi); /* 0x2B04E617: call edi */ 5467 RECOMP_FLAGS_IN(); 5468 PUSH32(esp, 0x2B0E817Cu); /* 0x2B04E619: push 0x2b0e817c */ 5469 PUSH32(esp, esi); /* 0x2B04E61E: push esi */ 5470 RECOMP_ICALL(edi); /* 0x2B04E61F: call edi */ 5471 RECOMP_FLAGS_IN(); 5472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 5473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5474 esp = esp + 0x40u; /* 0x2B04E621: add esp, 0x40 */ 5475 _flag_k = FK_ADD; 5476 PUSH32(esp, 0x2B0E8138u); /* 0x2B04E624: push 0x2b0e8138 */ 5477 PUSH32(esp, esi); /* 0x2B04E629: push esi */ 5478 RECOMP_ICALL(edi); /* 0x2B04E62A: call edi */ 5479 RECOMP_FLAGS_IN(); 5480 PUSH32(esp, 0x2B0E8120u); /* 0x2B04E62C: push 0x2b0e8120 */ 5481 PUSH32(esp, esi); /* 0x2B04E631: push esi */ 5482 RECOMP_ICALL(edi); /* 0x2B04E632: call edi */ 5483 RECOMP_FLAGS_IN(); 5484 PUSH32(esp, 0x2B0E810Cu); /* 0x2B04E634: push 0x2b0e810c */ 5485 PUSH32(esp, esi); /* 0x2B04E639: push esi */ 5486 RECOMP_ICALL(edi); /* 0x2B04E63A: call edi */ 5487 RECOMP_FLAGS_IN(); 5488 PUSH32(esp, 0x2B0E80BCu); /* 0x2B04E63C: push 0x2b0e80bc */ 5489 PUSH32(esp, esi); /* 0x2B04E641: push esi */ 5490 RECOMP_ICALL(edi); /* 0x2B04E642: call edi */ 5491 RECOMP_FLAGS_IN(); 5492 PUSH32(esp, 0x2B0E8068u); /* 0x2B04E644: push 0x2b0e8068 */ 5493 PUSH32(esp, esi); /* 0x2B04E649: push esi */ 5494 RECOMP_ICALL(edi); /* 0x2B04E64A: call edi */ 5495 RECOMP_FLAGS_IN(); 5496 PUSH32(esp, 0x2B0E8018u); /* 0x2B04E64C: push 0x2b0e8018 */ 5497 PUSH32(esp, esi); /* 0x2B04E651: push esi */ 5498 RECOMP_ICALL(edi); /* 0x2B04E652: call edi */ 5499 RECOMP_FLAGS_IN(); 5500 PUSH32(esp, 0x2B0E7FC4u); /* 0x2B04E654: push 0x2b0e7fc4 */ 5501 PUSH32(esp, esi); /* 0x2B04E659: push esi */ 5502 RECOMP_ICALL(edi); /* 0x2B04E65A: call edi */ 5503 RECOMP_FLAGS_IN(); 5504 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E65C: push 0x2b0e2bf8 */ 5505 PUSH32(esp, esi); /* 0x2B04E661: push esi */ 5506 RECOMP_ICALL(edi); /* 0x2B04E662: call edi */ 5507 RECOMP_FLAGS_IN(); 5508 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 5509 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5510 esp = esp + 0x40u; /* 0x2B04E664: add esp, 0x40 */ 5511 _flag_k = FK_ADD; 5512 PUSH32(esp, 0x2B0E7F8Cu); /* 0x2B04E667: push 0x2b0e7f8c */ 5513 PUSH32(esp, esi); /* 0x2B04E66C: push esi */ 5514 RECOMP_ICALL(edi); /* 0x2B04E66D: call edi */ 5515 RECOMP_FLAGS_IN(); 5516 PUSH32(esp, 0x2B0E7F54u); /* 0x2B04E66F: push 0x2b0e7f54 */ 5517 PUSH32(esp, esi); /* 0x2B04E674: push esi */ 5518 RECOMP_ICALL(edi); /* 0x2B04E675: call edi */ 5519 RECOMP_FLAGS_IN(); 5520 PUSH32(esp, 0x2B0E7F18u); /* 0x2B04E677: push 0x2b0e7f18 */ 5521 PUSH32(esp, esi); /* 0x2B04E67C: push esi */ 5522 RECOMP_ICALL(edi); /* 0x2B04E67D: call edi */ 5523 RECOMP_FLAGS_IN(); 5524 PUSH32(esp, 0x2B0E7ED4u); /* 0x2B04E67F: push 0x2b0e7ed4 */ 5525 PUSH32(esp, esi); /* 0x2B04E684: push esi */ 5526 RECOMP_ICALL(edi); /* 0x2B04E685: call edi */ 5527 RECOMP_FLAGS_IN(); 5528 PUSH32(esp, 0x2B0E7EACu); /* 0x2B04E687: push 0x2b0e7eac */ 5529 PUSH32(esp, esi); /* 0x2B04E68C: push esi */ 5530 RECOMP_ICALL(edi); /* 0x2B04E68D: call edi */ 5531 RECOMP_FLAGS_IN(); 5532 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E68F: push 0x2b0e2bf8 */ 5533 PUSH32(esp, esi); /* 0x2B04E694: push esi */ 5534 RECOMP_ICALL(edi); /* 0x2B04E695: call edi */ 5535 RECOMP_FLAGS_IN(); 5536 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 5537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5538 esp = esp + 0x30u; /* 0x2B04E697: add esp, 0x30 */ 5539 _flag_k = FK_ADD; 5540 L_2B04E69A: 5541 MEM32(ebp + (-0x18)) = ebx; /* 0x2B04E69A: mov dword ptr [ebp - 0x18], ebx */ 5542 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5543 edi = 0; /* 0x2B04E69D: xor edi, edi */ 5544 _cf = 0; 5545 _flag_k = FK_TEST; 5546 L_2B04E69F: 5547 eax = MEM32(ebp + (-0x60)); /* 0x2B04E69F: mov eax, dword ptr [ebp - 0x60] */ 5548 /* cmp eax, ebx */ /* 0x2B04E6A2: cmp eax, ebx */ 5549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5551 _flag_k = FK_CMP; 5552 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6A4: je 0x2b04e7be */ 5553 L_2B04E6AA: 5554 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E6AA: mov ecx, dword ptr [ebp - 0x5c] */ 5555 edx = MEM32(ebp + (-0x18)); /* 0x2B04E6AD: mov edx, dword ptr [ebp - 0x18] */ 5556 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5558 ecx = ecx - eax; /* 0x2B04E6B0: sub ecx, eax */ 5559 _flag_k = FK_CMP; 5560 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B04E6B2: sar ecx, 4 */ 5561 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5562 ecx = (uint32_t)((int32_t)ecx >> 4u); 5563 /* cmp edx, ecx */ /* 0x2B04E6B5: cmp edx, ecx */ 5564 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5566 _flag_k = FK_CMP; 5567 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6B7: jae 0x2b04e7be */ 5568 L_2B04E6BD: 5569 edx = ebp + (-0x88); /* 0x2B04E6BD: lea edx, [ebp - 0x88] */ 5570 PUSH32(esp, edx); /* 0x2B04E6C3: push edx */ 5571 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5573 eax = eax + edi; /* 0x2B04E6C4: add eax, edi */ 5574 _flag_k = FK_ADD; 5575 PUSH32(esp, eax); /* 0x2B04E6C6: push eax */ 5576 ecx = ebp + (-0xE0); /* 0x2B04E6C7: lea ecx, [ebp - 0xe0] */ 5577 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E6CD: mov dword ptr [ebp - 0x88], ebx */ 5578 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E6D3: mov dword ptr [ebp - 0x84], ebx */ 5579 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E6D9: call 0x2b051ac0 */ /* not lifted */ 5580 RECOMP_FLAGS_IN(); 5581 PUSH32(esp, eax); /* 0x2B04E6DE: push eax */ 5582 ecx = ebp + (-0x30); /* 0x2B04E6DF: lea ecx, [ebp - 0x30] */ 5583 PUSH32(esp, ecx); /* 0x2B04E6E2: push ecx */ 5584 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E6E3: mov ecx, dword ptr [ebp - 0x28] */ 5585 MEM8(ebp + (-0x4)) = (uint8_t)(0x42u); /* 0x2B04E6E6: mov byte ptr [ebp - 4], 0x42 */ 5586 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E6EA: call 0x2b0519d0 */ /* not lifted */ 5587 RECOMP_FLAGS_IN(); 5588 esi = MEM32(eax); /* 0x2B04E6EF: mov esi, dword ptr [eax] */ 5589 PUSH32(esp, 1); /* 0x2B04E6F1: push 1 */ 5590 ecx = ebp + (-0xE0); /* 0x2B04E6F3: lea ecx, [ebp - 0xe0] */ 5591 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E6F9: mov byte ptr [ebp - 4], 0x41 */ 5592 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E6FD: call dword ptr [0x2b0b514c] */ 5593 RECOMP_FLAGS_IN(); 5594 edx = MEM32(esi + 0x1C); /* 0x2B04E703: mov edx, dword ptr [esi + 0x1c] */ 5595 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E706: mov ecx, dword ptr [ebp - 0x60] */ 5596 eax = ebp + (-0xA4); /* 0x2B04E709: lea eax, [ebp - 0xa4] */ 5597 MEM32(ebp + (-0x1C)) = edx; /* 0x2B04E70F: mov dword ptr [ebp - 0x1c], edx */ 5598 edx = edi + ecx; /* 0x2B04E712: lea edx, [edi + ecx] */ 5599 PUSH32(esp, eax); /* 0x2B04E715: push eax */ 5600 PUSH32(esp, edx); /* 0x2B04E716: push edx */ 5601 ecx = ebp + (-0xC0); /* 0x2B04E717: lea ecx, [ebp - 0xc0] */ 5602 MEM32(ebp + (-0xA4)) = ebx; /* 0x2B04E71D: mov dword ptr [ebp - 0xa4], ebx */ 5603 MEM32(ebp + (-0xA0)) = ebx; /* 0x2B04E723: mov dword ptr [ebp - 0xa0], ebx */ 5604 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E729: call 0x2b051ac0 */ /* not lifted */ 5605 RECOMP_FLAGS_IN(); 5606 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E72E: mov ecx, dword ptr [ebp - 0x28] */ 5607 PUSH32(esp, eax); /* 0x2B04E731: push eax */ 5608 eax = ebp + (-0xC8); /* 0x2B04E732: lea eax, [ebp - 0xc8] */ 5609 PUSH32(esp, eax); /* 0x2B04E738: push eax */ 5610 MEM8(ebp + (-0x4)) = (uint8_t)(0x43u); /* 0x2B04E739: mov byte ptr [ebp - 4], 0x43 */ 5611 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E73D: call 0x2b0519d0 */ /* not lifted */ 5612 RECOMP_FLAGS_IN(); 5613 esi = MEM32(eax); /* 0x2B04E742: mov esi, dword ptr [eax] */ 5614 PUSH32(esp, 1); /* 0x2B04E744: push 1 */ 5615 ecx = ebp + (-0xC0); /* 0x2B04E746: lea ecx, [ebp - 0xc0] */ 5616 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E74C: mov byte ptr [ebp - 4], 0x41 */ 5617 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E750: call dword ptr [0x2b0b514c] */ 5618 RECOMP_FLAGS_IN(); 5619 edx = MEM32(ebp + (-0x60)); /* 0x2B04E756: mov edx, dword ptr [ebp - 0x60] */ 5620 ecx = MEM32(esi + 0x20); /* 0x2B04E759: mov ecx, dword ptr [esi + 0x20] */ 5621 eax = MEM32(edi + edx + 0x4); /* 0x2B04E75C: mov eax, dword ptr [edi + edx + 4] */ 5622 /* cmp eax, ebx */ /* 0x2B04E760: cmp eax, ebx */ 5623 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5625 _flag_k = FK_CMP; 5626 esi = MEM32(0x2B0B513C); /* 0x2B04E762: mov esi, dword ptr [0x2b0b513c] */ 5627 MEM32(ebp + (-0x10)) = ecx; /* 0x2B04E768: mov dword ptr [ebp - 0x10], ecx */ 5628 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E76F; /* 0x2B04E76B: je 0x2b04e76f */ 5629 L_2B04E76D: 5630 esi = eax; /* 0x2B04E76D: mov esi, eax */ 5631 L_2B04E76F: 5632 eax = ecx; /* 0x2B04E76F: mov eax, ecx */ 5633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 5634 eax = eax & 0xFFu; /* 0x2B04E771: and eax, 0xff */ 5635 _cf = 0; 5636 _flag_k = FK_TEST; 5637 PUSH32(esp, eax); /* 0x2B04E776: push eax */ 5638 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5639 edx = 0; /* 0x2B04E777: xor edx, edx */ 5640 _cf = 0; 5641 _flag_k = FK_TEST; 5642 SET_LO8(edx, HI8(ecx)); /* 0x2B04E779: mov dl, ch */ 5643 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E77B: mov ecx, dword ptr [ebp - 0x1c] */ 5644 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5645 eax = 0; /* 0x2B04E77E: xor eax, eax */ 5646 _cf = 0; 5647 _flag_k = FK_TEST; 5648 SET_LO8(eax, MEM8(ebp + (-0xE))); /* 0x2B04E780: mov al, byte ptr [ebp - 0xe] */ 5649 PUSH32(esp, edx); /* 0x2B04E783: push edx */ 5650 edx = ecx; /* 0x2B04E784: mov edx, ecx */ 5651 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 5652 edx = edx & 0xFFu; /* 0x2B04E786: and edx, 0xff */ 5653 _cf = 0; 5654 _flag_k = FK_TEST; 5655 PUSH32(esp, eax); /* 0x2B04E78C: push eax */ 5656 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5657 eax = 0; /* 0x2B04E78D: xor eax, eax */ 5658 _cf = 0; 5659 _flag_k = FK_TEST; 5660 SET_LO8(eax, HI8(ecx)); /* 0x2B04E78F: mov al, ch */ 5661 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5662 ecx = 0; /* 0x2B04E791: xor ecx, ecx */ 5663 _cf = 0; 5664 _flag_k = FK_TEST; 5665 SET_LO8(ecx, MEM8(ebp + (-0x1A))); /* 0x2B04E793: mov cl, byte ptr [ebp - 0x1a] */ 5666 PUSH32(esp, edx); /* 0x2B04E796: push edx */ 5667 edx = MEM32(ebp + (-0x54)); /* 0x2B04E797: mov edx, dword ptr [ebp - 0x54] */ 5668 PUSH32(esp, eax); /* 0x2B04E79A: push eax */ 5669 PUSH32(esp, ecx); /* 0x2B04E79B: push ecx */ 5670 PUSH32(esp, esi); /* 0x2B04E79C: push esi */ 5671 PUSH32(esp, 0x2B0E7E8Cu); /* 0x2B04E79D: push 0x2b0e7e8c */ 5672 PUSH32(esp, edx); /* 0x2B04E7A2: push edx */ 5673 RECOMP_ICALL(MEM32(0x2B0B5200)); /* 0x2B04E7A3: call dword ptr [0x2b0b5200] */ 5674 RECOMP_FLAGS_IN(); 5675 ecx = MEM32(ebp + (-0x18)); /* 0x2B04E7A9: mov ecx, dword ptr [ebp - 0x18] */ 5676 esi = MEM32(ebp + (-0x54)); /* 0x2B04E7AC: mov esi, dword ptr [ebp - 0x54] */ 5677 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 5678 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5679 esp = esp + 0x24u; /* 0x2B04E7AF: add esp, 0x24 */ 5680 _flag_k = FK_ADD; 5681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5682 ecx = ecx + 1; /* 0x2B04E7B2: inc ecx */ 5683 _flag_k = FK_INC; 5684 MEM32(ebp + (-0x18)) = ecx; /* 0x2B04E7B3: mov dword ptr [ebp - 0x18], ecx */ 5685 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 5686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5687 edi = edi + 0x10u; /* 0x2B04E7B6: add edi, 0x10 */ 5688 _flag_k = FK_ADD; 5689 RECOMP_BACKEDGE(); 5690 goto L_2B04E69F; /* 0x2B04E7B9: jmp 0x2b04e69f */ 5691 L_2B04E7BE: 5692 PUSH32(esp, esi); /* 0x2B04E7BE: push esi */ 5693 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E7BF: call dword ptr [0x2b0b51cc] */ 5694 RECOMP_FLAGS_IN(); 5695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5697 esp = esp + 4; /* 0x2B04E7C5: add esp, 4 */ 5698 _flag_k = FK_ADD; 5699 L_2B04E7C8: 5700 ecx = ebp + (-0x64); /* 0x2B04E7C8: lea ecx, [ebp - 0x64] */ 5701 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E7CB: mov byte ptr [ebp - 4], 0x3c */ 5702 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7CF: call 0x2b002db0 */ /* not lifted */ 5703 RECOMP_FLAGS_IN(); 5704 L_2B04E7D4: 5705 ecx = ebp + (-0x9C); /* 0x2B04E7D4: lea ecx, [ebp - 0x9c] */ 5706 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E7DA: mov dword ptr [ebp - 4], 0xffffffff */ 5707 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7E1: call 0x2b002db0 */ /* not lifted */ 5708 RECOMP_FLAGS_IN(); 5709 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E7E6: mov ecx, dword ptr [ebp - 0xc] */ 5710 edi = POP32_VAL(esp); /* 0x2B04E7E9: pop edi */ 5711 esi = POP32_VAL(esp); /* 0x2B04E7EA: pop esi */ 5712 ebx = POP32_VAL(esp); /* 0x2B04E7EB: pop ebx */ 5713 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E7EC: mov dword ptr fs:[0], ecx */ 5714 esp = ebp; /* 0x2B04E7F3: mov esp, ebp */ 5715 ebp = POP32_VAL(esp); /* 0x2B04E7F5: pop ebp */ 5716 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E7F6: ret 4 */ 5717 RECOMP_REGS_OUT(); 5718 } 5719 5720 void sub_2B04E2A9(void) { 5721 int _fpu_cmp = 0; 5722 uint32_t _cf = 0; 5723 int _df = 1; 5724 uint32_t _flag_k = FK_NONE; 5725 uint32_t _flag_a = 0, _flag_b = 0; 5726 uint32_t _itail_tgt = 0; 5727 RECOMP_REGS_LOCALS 5728 RECOMP_ENTER(0x2B04E2A9u); 5729 5730 goto L_2B04E2A9; 5731 L_2B04E113: 5732 SET_LO8(eax, MEM8(ebp + (-0x5E0))); /* 0x2B04E113: mov al, byte ptr [ebp - 0x5e0] */ 5733 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5734 edi = 0; /* 0x2B04E119: xor edi, edi */ 5735 _cf = 0; 5736 _flag_k = FK_TEST; 5737 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E11B: cmp al, bl */ 5738 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5740 _flag_k = FK_NARROW(FK_CMP, 24); 5741 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E14C; /* 0x2B04E11D: je 0x2b04e14c */ 5742 L_2B04E11F: 5743 /* cmp LO8(eax), 0x3Bu */ /* 0x2B04E11F: cmp al, 0x3b */ 5744 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x3Bu) << 24; 5745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5746 _flag_k = FK_NARROW(FK_CMP, 24); 5747 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E145; /* 0x2B04E121: je 0x2b04e145 */ 5748 L_2B04E123: 5749 ecx = (int32_t)(int8_t)LO8(eax); /* 0x2B04E123: movsx ecx, al */ 5750 PUSH32(esp, ecx); /* 0x2B04E126: push ecx */ 5751 RECOMP_ICALL(MEM32(0x2B0B51D8)); /* 0x2B04E127: call dword ptr [0x2b0b51d8] */ 5752 RECOMP_FLAGS_IN(); 5753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5755 esp = esp + 4; /* 0x2B04E12D: add esp, 4 */ 5756 _flag_k = FK_ADD; 5757 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(eax)); /* 0x2B04E130: mov byte ptr [ebp + edi - 0x5e0], al */ 5758 SET_LO8(eax, MEM8(ebp + edi + (-0x5DF))); /* 0x2B04E137: mov al, byte ptr [ebp + edi - 0x5df] */ 5759 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 5760 edi = edi + 1; /* 0x2B04E13E: inc edi */ 5761 _flag_k = FK_INC; 5762 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E13F: cmp al, bl */ 5763 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5765 _flag_k = FK_NARROW(FK_CMP, 24); 5766 RECOMP_BACKEDGE(); 5767 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E11F; /* 0x2B04E141: jne 0x2b04e11f */ 5768 L_2B04E143: 5769 goto L_2B04E14C; /* 0x2B04E143: jmp 0x2b04e14c */ 5770 L_2B04E145: 5771 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(ebx)); /* 0x2B04E145: mov byte ptr [ebp + edi - 0x5e0], bl */ 5772 L_2B04E14C: 5773 edx = ebp + (-0x10); /* 0x2B04E14C: lea edx, [ebp - 0x10] */ 5774 PUSH32(esp, edx); /* 0x2B04E14F: push edx */ 5775 eax = ebp + (-0xA0); /* 0x2B04E150: lea eax, [ebp - 0xa0] */ 5776 PUSH32(esp, eax); /* 0x2B04E156: push eax */ 5777 ecx = ebp + (-0xA8); /* 0x2B04E157: lea ecx, [ebp - 0xa8] */ 5778 PUSH32(esp, ecx); /* 0x2B04E15D: push ecx */ 5779 edx = ebp + (-0x1C); /* 0x2B04E15E: lea edx, [ebp - 0x1c] */ 5780 PUSH32(esp, edx); /* 0x2B04E161: push edx */ 5781 eax = ebp + (-0x54); /* 0x2B04E162: lea eax, [ebp - 0x54] */ 5782 PUSH32(esp, eax); /* 0x2B04E165: push eax */ 5783 ecx = ebp + (-0x8C); /* 0x2B04E166: lea ecx, [ebp - 0x8c] */ 5784 PUSH32(esp, ecx); /* 0x2B04E16C: push ecx */ 5785 edx = ebp + (-0x1E0); /* 0x2B04E16D: lea edx, [ebp - 0x1e0] */ 5786 PUSH32(esp, edx); /* 0x2B04E173: push edx */ 5787 eax = ebp + (-0x5E0); /* 0x2B04E174: lea eax, [ebp - 0x5e0] */ 5788 PUSH32(esp, 0x2B0E8398u); /* 0x2B04E17A: push 0x2b0e8398 */ 5789 PUSH32(esp, eax); /* 0x2B04E17F: push eax */ 5790 RECOMP_ICALL(esi); /* 0x2B04E180: call esi */ 5791 RECOMP_FLAGS_IN(); 5792 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 5793 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5794 esp = esp + 0x24u; /* 0x2B04E182: add esp, 0x24 */ 5795 _flag_k = FK_ADD; 5796 /* cmp eax, 7 */ /* 0x2B04E185: cmp eax, 7 */ 5797 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 5798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5799 _flag_k = FK_CMP; 5800 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E1C1; /* 0x2B04E188: jne 0x2b04e1c1 */ 5801 L_2B04E18A: 5802 ecx = MEM32(ebp + (-0x8C)); /* 0x2B04E18A: mov ecx, dword ptr [ebp - 0x8c] */ 5803 eax = MEM32(ebp + (-0x54)); /* 0x2B04E190: mov eax, dword ptr [ebp - 0x54] */ 5804 edx = MEM32(ebp + (-0x1C)); /* 0x2B04E193: mov edx, dword ptr [ebp - 0x1c] */ 5805 edi = MEM32(ebp + (-0xA0)); /* 0x2B04E196: mov edi, dword ptr [ebp - 0xa0] */ 5806 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E19C: shl ecx, 8 */ 5807 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5808 ecx = ecx << 8u; /* 0x2B04E19C: shl ecx, 8 */ 5809 _flag_a = (uint32_t)((ecx | eax)); _flag_b = (uint32_t)((ecx | eax)); 5810 ecx = ecx | eax; /* 0x2B04E19F: or ecx, eax */ 5811 _cf = 0; 5812 _flag_k = FK_TEST; 5813 eax = MEM32(ebp + (-0x10)); /* 0x2B04E1A1: mov eax, dword ptr [ebp - 0x10] */ 5814 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E1A4: shl ecx, 8 */ 5815 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5816 ecx = ecx << 8u; /* 0x2B04E1A4: shl ecx, 8 */ 5817 _flag_a = (uint32_t)((ecx | edx)); _flag_b = (uint32_t)((ecx | edx)); 5818 ecx = ecx | edx; /* 0x2B04E1A7: or ecx, edx */ 5819 _cf = 0; 5820 _flag_k = FK_TEST; 5821 edx = MEM32(ebp + (-0xA8)); /* 0x2B04E1A9: mov edx, dword ptr [ebp - 0xa8] */ 5822 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1AF: shl edx, 8 */ 5823 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5824 edx = edx << 8u; /* 0x2B04E1AF: shl edx, 8 */ 5825 _flag_a = (uint32_t)((edx | edi)); _flag_b = (uint32_t)((edx | edi)); 5826 edx = edx | edi; /* 0x2B04E1B2: or edx, edi */ 5827 _cf = 0; 5828 _flag_k = FK_TEST; 5829 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1B4: shl edx, 8 */ 5830 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5831 edx = edx << 8u; /* 0x2B04E1B4: shl edx, 8 */ 5832 MEM32(ebp + (-0x48)) = ecx; /* 0x2B04E1B7: mov dword ptr [ebp - 0x48], ecx */ 5833 _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax)); 5834 edx = edx | eax; /* 0x2B04E1BA: or edx, eax */ 5835 _cf = 0; 5836 _flag_k = FK_TEST; 5837 goto L_2B04E2A9; /* 0x2B04E1BC: jmp 0x2b04e2a9 */ 5838 L_2B04E1C1: 5839 eax = ebp + (-0x1C); /* 0x2B04E1C1: lea eax, [ebp - 0x1c] */ 5840 PUSH32(esp, eax); /* 0x2B04E1C4: push eax */ 5841 ecx = ebp + (-0x54); /* 0x2B04E1C5: lea ecx, [ebp - 0x54] */ 5842 PUSH32(esp, ecx); /* 0x2B04E1C8: push ecx */ 5843 edx = ebp + (-0x8C); /* 0x2B04E1C9: lea edx, [ebp - 0x8c] */ 5844 PUSH32(esp, edx); /* 0x2B04E1CF: push edx */ 5845 eax = ebp + (-0x1E0); /* 0x2B04E1D0: lea eax, [ebp - 0x1e0] */ 5846 PUSH32(esp, eax); /* 0x2B04E1D6: push eax */ 5847 ecx = ebp + (-0x5E0); /* 0x2B04E1D7: lea ecx, [ebp - 0x5e0] */ 5848 PUSH32(esp, 0x2B0E837Cu); /* 0x2B04E1DD: push 0x2b0e837c */ 5849 PUSH32(esp, ecx); /* 0x2B04E1E2: push ecx */ 5850 RECOMP_ICALL(esi); /* 0x2B04E1E3: call esi */ 5851 RECOMP_FLAGS_IN(); 5852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5854 esp = esp + 0x18u; /* 0x2B04E1E5: add esp, 0x18 */ 5855 _flag_k = FK_ADD; 5856 /* cmp eax, 4 */ /* 0x2B04E1E8: cmp eax, 4 */ 5857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 5858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5859 _flag_k = FK_CMP; 5860 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E20E; /* 0x2B04E1EB: jne 0x2b04e20e */ 5861 L_2B04E1ED: 5862 eax = MEM32(ebp + (-0x8C)); /* 0x2B04E1ED: mov eax, dword ptr [ebp - 0x8c] */ 5863 edi = MEM32(ebp + (-0x54)); /* 0x2B04E1F3: mov edi, dword ptr [ebp - 0x54] */ 5864 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E1F6: mov ecx, dword ptr [ebp - 0x1c] */ 5865 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1F9: shl eax, 8 */ 5866 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5867 eax = eax << 8u; /* 0x2B04E1F9: shl eax, 8 */ 5868 _flag_a = (uint32_t)((eax | edi)); _flag_b = (uint32_t)((eax | edi)); 5869 eax = eax | edi; /* 0x2B04E1FC: or eax, edi */ 5870 _cf = 0; 5871 _flag_k = FK_TEST; 5872 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1FE: shl eax, 8 */ 5873 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5874 eax = eax << 8u; /* 0x2B04E1FE: shl eax, 8 */ 5875 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 5876 eax = eax | ecx; /* 0x2B04E201: or eax, ecx */ 5877 _cf = 0; 5878 _flag_k = FK_TEST; 5879 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E203: mov dword ptr [ebp - 0x48], eax */ 5880 MEM32(ebp + (-0x4C)) = eax; /* 0x2B04E206: mov dword ptr [ebp - 0x4c], eax */ 5881 goto L_2B04E2AC; /* 0x2B04E209: jmp 0x2b04e2ac */ 5882 L_2B04E20E: 5883 edx = ebp + (-0x4C); /* 0x2B04E20E: lea edx, [ebp - 0x4c] */ 5884 PUSH32(esp, edx); /* 0x2B04E211: push edx */ 5885 eax = ebp + (-0x48); /* 0x2B04E212: lea eax, [ebp - 0x48] */ 5886 PUSH32(esp, eax); /* 0x2B04E215: push eax */ 5887 ecx = ebp + (-0x1E0); /* 0x2B04E216: lea ecx, [ebp - 0x1e0] */ 5888 PUSH32(esp, ecx); /* 0x2B04E21C: push ecx */ 5889 edx = ebp + (-0x5E0); /* 0x2B04E21D: lea edx, [ebp - 0x5e0] */ 5890 PUSH32(esp, 0x2B0E836Cu); /* 0x2B04E223: push 0x2b0e836c */ 5891 PUSH32(esp, edx); /* 0x2B04E228: push edx */ 5892 RECOMP_ICALL(esi); /* 0x2B04E229: call esi */ 5893 RECOMP_FLAGS_IN(); 5894 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5895 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5896 esp = esp + 0x14u; /* 0x2B04E22B: add esp, 0x14 */ 5897 _flag_k = FK_ADD; 5898 /* cmp eax, 3 */ /* 0x2B04E22E: cmp eax, 3 */ 5899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 5900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5901 _flag_k = FK_CMP; 5902 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E231: je 0x2b04e2ac */ 5903 L_2B04E233: 5904 eax = ebp + (-0x4C); /* 0x2B04E233: lea eax, [ebp - 0x4c] */ 5905 PUSH32(esp, eax); /* 0x2B04E236: push eax */ 5906 ecx = ebp + (-0x48); /* 0x2B04E237: lea ecx, [ebp - 0x48] */ 5907 PUSH32(esp, ecx); /* 0x2B04E23A: push ecx */ 5908 edx = ebp + (-0x1E0); /* 0x2B04E23B: lea edx, [ebp - 0x1e0] */ 5909 PUSH32(esp, edx); /* 0x2B04E241: push edx */ 5910 eax = ebp + (-0x5E0); /* 0x2B04E242: lea eax, [ebp - 0x5e0] */ 5911 PUSH32(esp, 0x2B0E835Cu); /* 0x2B04E248: push 0x2b0e835c */ 5912 PUSH32(esp, eax); /* 0x2B04E24D: push eax */ 5913 RECOMP_ICALL(esi); /* 0x2B04E24E: call esi */ 5914 RECOMP_FLAGS_IN(); 5915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5917 esp = esp + 0x14u; /* 0x2B04E250: add esp, 0x14 */ 5918 _flag_k = FK_ADD; 5919 /* cmp eax, 3 */ /* 0x2B04E253: cmp eax, 3 */ 5920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 5921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5922 _flag_k = FK_CMP; 5923 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E256: je 0x2b04e2ac */ 5924 L_2B04E258: 5925 ecx = ebp + (-0x48); /* 0x2B04E258: lea ecx, [ebp - 0x48] */ 5926 PUSH32(esp, ecx); /* 0x2B04E25B: push ecx */ 5927 edx = ebp + (-0x1E0); /* 0x2B04E25C: lea edx, [ebp - 0x1e0] */ 5928 PUSH32(esp, edx); /* 0x2B04E262: push edx */ 5929 eax = ebp + (-0x5E0); /* 0x2B04E263: lea eax, [ebp - 0x5e0] */ 5930 PUSH32(esp, 0x2B0E8350u); /* 0x2B04E269: push 0x2b0e8350 */ 5931 PUSH32(esp, eax); /* 0x2B04E26E: push eax */ 5932 RECOMP_ICALL(esi); /* 0x2B04E26F: call esi */ 5933 RECOMP_FLAGS_IN(); 5934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5936 esp = esp + 0x10u; /* 0x2B04E271: add esp, 0x10 */ 5937 _flag_k = FK_ADD; 5938 /* cmp eax, 2 */ /* 0x2B04E274: cmp eax, 2 */ 5939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5941 _flag_k = FK_CMP; 5942 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E281; /* 0x2B04E277: jne 0x2b04e281 */ 5943 L_2B04E279: 5944 ecx = MEM32(ebp + (-0x48)); /* 0x2B04E279: mov ecx, dword ptr [ebp - 0x48] */ 5945 MEM32(ebp + (-0x4C)) = ecx; /* 0x2B04E27C: mov dword ptr [ebp - 0x4c], ecx */ 5946 goto L_2B04E2AC; /* 0x2B04E27F: jmp 0x2b04e2ac */ 5947 L_2B04E281: 5948 edx = ebp + (-0x48); /* 0x2B04E281: lea edx, [ebp - 0x48] */ 5949 PUSH32(esp, edx); /* 0x2B04E284: push edx */ 5950 eax = ebp + (-0x1E0); /* 0x2B04E285: lea eax, [ebp - 0x1e0] */ 5951 PUSH32(esp, eax); /* 0x2B04E28B: push eax */ 5952 ecx = ebp + (-0x5E0); /* 0x2B04E28C: lea ecx, [ebp - 0x5e0] */ 5953 PUSH32(esp, 0x2B0E8344u); /* 0x2B04E292: push 0x2b0e8344 */ 5954 PUSH32(esp, ecx); /* 0x2B04E297: push ecx */ 5955 RECOMP_ICALL(esi); /* 0x2B04E298: call esi */ 5956 RECOMP_FLAGS_IN(); 5957 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5959 esp = esp + 0x10u; /* 0x2B04E29A: add esp, 0x10 */ 5960 _flag_k = FK_ADD; 5961 /* cmp eax, 2 */ /* 0x2B04E29D: cmp eax, 2 */ 5962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5964 _flag_k = FK_CMP; 5965 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E2A0: jne 0x2b04e471 */ 5966 L_2B04E2A6: 5967 edx = MEM32(ebp + (-0x48)); /* 0x2B04E2A6: mov edx, dword ptr [ebp - 0x48] */ 5968 L_2B04E2A9: 5969 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E2A9: mov dword ptr [ebp - 0x4c], edx */ 5970 L_2B04E2AC: 5971 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E2AC: mov al, byte ptr [ebp + 0xb] */ 5972 PUSH32(esp, ebx); /* 0x2B04E2AF: push ebx */ 5973 ecx = ebp + (-0x64); /* 0x2B04E2B0: lea ecx, [ebp - 0x64] */ 5974 MEM8(ebp + (-0xE1)) = (uint8_t)(LO8(ebx)); /* 0x2B04E2B3: mov byte ptr [ebp - 0xe1], bl */ 5975 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E2B9: mov byte ptr [ebp - 0x64], al */ 5976 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E2BC: call dword ptr [0x2b0b514c] */ 5977 RECOMP_FLAGS_IN(); 5978 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5979 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E2C2: or ecx, 0xffffffff */ 5980 _cf = 0; 5981 _flag_k = FK_TEST; 5982 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5983 eax = 0; /* 0x2B04E2C5: xor eax, eax */ 5984 _cf = 0; 5985 _flag_k = FK_TEST; 5986 edi = ebp + (-0x1E0); /* 0x2B04E2C7: lea edi, [ebp - 0x1e0] */ 5987 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; } /* 0x2B04E2CD: repne scasb al, byte ptr es:[edi] */ 5988 ecx = ~ecx; /* 0x2B04E2CF: not ecx */ 5989 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5990 ecx = ecx - 1; /* 0x2B04E2D1: dec ecx */ 5991 _flag_k = FK_DEC; 5992 PUSH32(esp, ecx); /* 0x2B04E2D2: push ecx */ 5993 ecx = ebp + (-0x1E0); /* 0x2B04E2D3: lea ecx, [ebp - 0x1e0] */ 5994 PUSH32(esp, ecx); /* 0x2B04E2D9: push ecx */ 5995 ecx = ebp + (-0x64); /* 0x2B04E2DA: lea ecx, [ebp - 0x64] */ 5996 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E2DD: call dword ptr [0x2b0b5148] */ 5997 RECOMP_FLAGS_IN(); 5998 edx = MEM32(ebp + (-0x80)); /* 0x2B04E2E3: mov edx, dword ptr [ebp - 0x80] */ 5999 edi = MEM32(edx + 0x1A4); /* 0x2B04E2E6: mov edi, dword ptr [edx + 0x1a4] */ 6000 eax = ebp + (-0x64); /* 0x2B04E2EC: lea eax, [ebp - 0x64] */ 6001 PUSH32(esp, eax); /* 0x2B04E2EF: push eax */ 6002 ecx = ebp + (-0x20); /* 0x2B04E2F0: lea ecx, [ebp - 0x20] */ 6003 PUSH32(esp, ecx); /* 0x2B04E2F3: push ecx */ 6004 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E2F4: mov ecx, dword ptr [ebp - 0x28] */ 6005 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Du); /* 0x2B04E2F7: mov byte ptr [ebp - 4], 0x3d */ 6006 RECOMP_ICALL(0x2B08DFD0u); /* 0x2B04E2FB: call 0x2b08dfd0 */ /* not lifted */ 6007 RECOMP_FLAGS_IN(); 6008 /* cmp MEM32(eax), edi */ /* 0x2B04E300: cmp dword ptr [eax], edi */ 6009 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 6010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6011 _flag_k = FK_CMP; 6012 PUSH32(esp, 1); /* 0x2B04E302: push 1 */ 6013 ecx = ebp + (-0x64); /* 0x2B04E304: lea ecx, [ebp - 0x64] */ 6014 MEM8(ebp + (-0x4D)) = (uint8_t)((CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B04E307: sete byte ptr [ebp - 0x4d] */ 6015 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E30B: mov byte ptr [ebp - 4], 0x3c */ 6016 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E30F: call dword ptr [0x2b0b514c] */ 6017 RECOMP_FLAGS_IN(); 6018 /* cmp MEM8(ebp + (-0x4D)), LO8(ebx) */ /* 0x2B04E315: cmp byte ptr [ebp - 0x4d], bl */ 6019 _flag_a = (uint32_t)(MEM8(ebp + (-0x4D))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6021 _flag_k = FK_NARROW(FK_CMP, 24); 6022 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E318: jne 0x2b04e471 */ 6023 L_2B04E31E: 6024 eax = MEM32(ebp + (-0x48)); /* 0x2B04E31E: mov eax, dword ptr [ebp - 0x48] */ 6025 edx = MEM32(ebp + (-0x4C)); /* 0x2B04E321: mov edx, dword ptr [ebp - 0x4c] */ 6026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00FFFFFFu); 6027 eax = eax & 0x00FFFFFFu; /* 0x2B04E324: and eax, 0xffffff */ 6028 _cf = 0; 6029 _flag_k = FK_TEST; 6030 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x00FFFFFFu); 6031 edx = edx & 0x00FFFFFFu; /* 0x2B04E329: and edx, 0xffffff */ 6032 _cf = 0; 6033 _flag_k = FK_TEST; 6034 /* cmp eax, 0xFF00u */ /* 0x2B04E32F: cmp eax, 0xff00 */ 6035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFF00u); 6036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6037 _flag_k = FK_CMP; 6038 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E334: mov dword ptr [ebp - 0x48], eax */ 6039 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E337: mov dword ptr [ebp - 0x4c], edx */ 6040 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E343; /* 0x2B04E33A: jne 0x2b04e343 */ 6041 L_2B04E33C: 6042 MEM32(ebp + (-0x48)) = 0xFE00u; /* 0x2B04E33C: mov dword ptr [ebp - 0x48], 0xfe00 */ 6043 L_2B04E343: 6044 /* cmp MEM32(ebp + (-0x4C)), 0xFF00u */ /* 0x2B04E343: cmp dword ptr [ebp - 0x4c], 0xff00 */ 6045 _flag_a = (uint32_t)(MEM32(ebp + (-0x4C))); _flag_b = (uint32_t)(0xFF00u); 6046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6047 _flag_k = FK_CMP; 6048 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E353; /* 0x2B04E34A: jne 0x2b04e353 */ 6049 L_2B04E34C: 6050 MEM32(ebp + (-0x4C)) = 0xFE00u; /* 0x2B04E34C: mov dword ptr [ebp - 0x4c], 0xfe00 */ 6051 L_2B04E353: 6052 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E353: mov dl, byte ptr [ebp + 0xb] */ 6053 PUSH32(esp, ebx); /* 0x2B04E356: push ebx */ 6054 ecx = ebp + (-0xB8); /* 0x2B04E357: lea ecx, [ebp - 0xb8] */ 6055 MEM8(ebp + (-0xB8)) = (uint8_t)(LO8(edx)); /* 0x2B04E35D: mov byte ptr [ebp - 0xb8], dl */ 6056 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E363: call dword ptr [0x2b0b514c] */ 6057 RECOMP_FLAGS_IN(); 6058 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6059 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E369: or ecx, 0xffffffff */ 6060 _cf = 0; 6061 _flag_k = FK_TEST; 6062 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6063 eax = 0; /* 0x2B04E36C: xor eax, eax */ 6064 _cf = 0; 6065 _flag_k = FK_TEST; 6066 edi = ebp + (-0x1E0); /* 0x2B04E36E: lea edi, [ebp - 0x1e0] */ 6067 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; } /* 0x2B04E374: repne scasb al, byte ptr es:[edi] */ 6068 ecx = ~ecx; /* 0x2B04E376: not ecx */ 6069 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6070 ecx = ecx - 1; /* 0x2B04E378: dec ecx */ 6071 _flag_k = FK_DEC; 6072 PUSH32(esp, ecx); /* 0x2B04E379: push ecx */ 6073 eax = ebp + (-0x1E0); /* 0x2B04E37A: lea eax, [ebp - 0x1e0] */ 6074 PUSH32(esp, eax); /* 0x2B04E380: push eax */ 6075 ecx = ebp + (-0xB8); /* 0x2B04E381: lea ecx, [ebp - 0xb8] */ 6076 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E387: call dword ptr [0x2b0b5148] */ 6077 RECOMP_FLAGS_IN(); 6078 ecx = ebp + (-0x4C); /* 0x2B04E38D: lea ecx, [ebp - 0x4c] */ 6079 PUSH32(esp, ecx); /* 0x2B04E390: push ecx */ 6080 edx = ebp + (-0x48); /* 0x2B04E391: lea edx, [ebp - 0x48] */ 6081 PUSH32(esp, edx); /* 0x2B04E394: push edx */ 6082 ecx = ebp + (-0xC8); /* 0x2B04E395: lea ecx, [ebp - 0xc8] */ 6083 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E39B: mov byte ptr [ebp - 4], 0x3e */ 6084 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04E39F: call 0x2b053ac0 */ /* not lifted */ 6085 RECOMP_FLAGS_IN(); 6086 esi = MEM32(eax); /* 0x2B04E3A4: mov esi, dword ptr [eax] */ 6087 eax = MEM32(eax + 0x4); /* 0x2B04E3A6: mov eax, dword ptr [eax + 4] */ 6088 ecx = ebp + (-0x88); /* 0x2B04E3A9: lea ecx, [ebp - 0x88] */ 6089 PUSH32(esp, ecx); /* 0x2B04E3AF: push ecx */ 6090 edx = ebp + (-0xB8); /* 0x2B04E3B0: lea edx, [ebp - 0xb8] */ 6091 PUSH32(esp, edx); /* 0x2B04E3B6: push edx */ 6092 ecx = ebp + (-0xE0); /* 0x2B04E3B7: lea ecx, [ebp - 0xe0] */ 6093 MEM32(ebp + (-0x3C)) = eax; /* 0x2B04E3BD: mov dword ptr [ebp - 0x3c], eax */ 6094 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E3C0: mov dword ptr [ebp - 0x88], ebx */ 6095 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E3C6: mov dword ptr [ebp - 0x84], ebx */ 6096 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E3CC: call 0x2b051ac0 */ /* not lifted */ 6097 RECOMP_FLAGS_IN(); 6098 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E3D1: mov ecx, dword ptr [ebp - 0x28] */ 6099 PUSH32(esp, eax); /* 0x2B04E3D4: push eax */ 6100 eax = ebp + (-0x30); /* 0x2B04E3D5: lea eax, [ebp - 0x30] */ 6101 PUSH32(esp, eax); /* 0x2B04E3D8: push eax */ 6102 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Fu); /* 0x2B04E3D9: mov byte ptr [ebp - 4], 0x3f */ 6103 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E3DD: call 0x2b0519d0 */ /* not lifted */ 6104 RECOMP_FLAGS_IN(); 6105 edi = MEM32(eax); /* 0x2B04E3E2: mov edi, dword ptr [eax] */ 6106 PUSH32(esp, 1); /* 0x2B04E3E4: push 1 */ 6107 ecx = ebp + (-0xE0); /* 0x2B04E3E6: lea ecx, [ebp - 0xe0] */ 6108 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E3EC: mov byte ptr [ebp - 4], 0x3e */ 6109 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E3F0: call dword ptr [0x2b0b514c] */ 6110 RECOMP_FLAGS_IN(); 6111 ecx = MEM32(ebp + (-0x3C)); /* 0x2B04E3F6: mov ecx, dword ptr [ebp - 0x3c] */ 6112 MEM32(edi + 0x1C) = esi; /* 0x2B04E3F9: mov dword ptr [edi + 0x1c], esi */ 6113 MEM32(edi + 0x20) = ecx; /* 0x2B04E3FC: mov dword ptr [edi + 0x20], ecx */ 6114 PUSH32(esp, 1); /* 0x2B04E3FF: push 1 */ 6115 ecx = ebp + (-0xB8); /* 0x2B04E401: lea ecx, [ebp - 0xb8] */ 6116 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E407: mov byte ptr [ebp - 4], 0x3c */ 6117 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E40B: call dword ptr [0x2b0b514c] */ 6118 RECOMP_FLAGS_IN(); 6119 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E411: mov dl, byte ptr [ebp + 0xb] */ 6120 PUSH32(esp, ebx); /* 0x2B04E414: push ebx */ 6121 ecx = ebp + (-0x74); /* 0x2B04E415: lea ecx, [ebp - 0x74] */ 6122 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(edx)); /* 0x2B04E418: mov byte ptr [ebp - 0x74], dl */ 6123 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E41B: call dword ptr [0x2b0b514c] */ 6124 RECOMP_FLAGS_IN(); 6125 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6126 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E421: or ecx, 0xffffffff */ 6127 _cf = 0; 6128 _flag_k = FK_TEST; 6129 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6130 eax = 0; /* 0x2B04E424: xor eax, eax */ 6131 _cf = 0; 6132 _flag_k = FK_TEST; 6133 edi = ebp + (-0x1E0); /* 0x2B04E426: lea edi, [ebp - 0x1e0] */ 6134 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; } /* 0x2B04E42C: repne scasb al, byte ptr es:[edi] */ 6135 ecx = ~ecx; /* 0x2B04E42E: not ecx */ 6136 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6137 ecx = ecx - 1; /* 0x2B04E430: dec ecx */ 6138 _flag_k = FK_DEC; 6139 PUSH32(esp, ecx); /* 0x2B04E431: push ecx */ 6140 eax = ebp + (-0x1E0); /* 0x2B04E432: lea eax, [ebp - 0x1e0] */ 6141 PUSH32(esp, eax); /* 0x2B04E438: push eax */ 6142 ecx = ebp + (-0x74); /* 0x2B04E439: lea ecx, [ebp - 0x74] */ 6143 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E43C: call dword ptr [0x2b0b5148] */ 6144 RECOMP_FLAGS_IN(); 6145 edx = MEM32(ebp + (-0x94)); /* 0x2B04E442: mov edx, dword ptr [ebp - 0x94] */ 6146 ecx = ebp + (-0x74); /* 0x2B04E448: lea ecx, [ebp - 0x74] */ 6147 PUSH32(esp, ecx); /* 0x2B04E44B: push ecx */ 6148 PUSH32(esp, edx); /* 0x2B04E44C: push edx */ 6149 ecx = ebp + (-0x9C); /* 0x2B04E44D: lea ecx, [ebp - 0x9c] */ 6150 MEM8(ebp + (-0x4)) = (uint8_t)(0x40u); /* 0x2B04E453: mov byte ptr [ebp - 4], 0x40 */ 6151 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E457: call 0x2b002e20 */ /* not lifted */ 6152 RECOMP_FLAGS_IN(); 6153 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E45C: mov byte ptr [ebp - 4], 0x3c */ 6154 PUSH32(esp, 1); /* 0x2B04E460: push 1 */ 6155 ecx = ebp + (-0x74); /* 0x2B04E462: lea ecx, [ebp - 0x74] */ 6156 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E465: call dword ptr [0x2b0b514c] */ 6157 RECOMP_FLAGS_IN(); 6158 esi = MEM32(0x2B0B5220); /* 0x2B04E46B: mov esi, dword ptr [0x2b0b5220] */ 6159 L_2B04E471: 6160 eax = MEM32(ebp + (-0x18)); /* 0x2B04E471: mov eax, dword ptr [ebp - 0x18] */ 6161 PUSH32(esp, eax); /* 0x2B04E474: push eax */ 6162 ecx = ebp + (-0x5E0); /* 0x2B04E475: lea ecx, [ebp - 0x5e0] */ 6163 PUSH32(esp, 0x400u); /* 0x2B04E47B: push 0x400 */ 6164 PUSH32(esp, ecx); /* 0x2B04E480: push ecx */ 6165 RECOMP_ICALL(MEM32(0x2B0B51D0)); /* 0x2B04E481: call dword ptr [0x2b0b51d0] */ 6166 RECOMP_FLAGS_IN(); 6167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6169 esp = esp + 0xCu; /* 0x2B04E487: add esp, 0xc */ 6170 _flag_k = FK_ADD; 6171 /* test eax, eax */ /* 0x2B04E48A: test eax, eax */ 6172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6173 _cf = 0; 6174 _flag_k = FK_TEST; 6175 RECOMP_BACKEDGE(); 6176 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E113; /* 0x2B04E48C: jne 0x2b04e113 */ 6177 L_2B04E492: 6178 edx = MEM32(ebp + (-0x18)); /* 0x2B04E492: mov edx, dword ptr [ebp - 0x18] */ 6179 PUSH32(esp, edx); /* 0x2B04E495: push edx */ 6180 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E496: call dword ptr [0x2b0b51cc] */ 6181 RECOMP_FLAGS_IN(); 6182 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6184 esp = esp + 4; /* 0x2B04E49C: add esp, 4 */ 6185 _flag_k = FK_ADD; 6186 /* cmp MEM8(ebp + 0x8), LO8(ebx) */ /* 0x2B04E49F: cmp byte ptr [ebp + 8], bl */ 6187 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6189 _flag_k = FK_NARROW(FK_CMP, 24); 6190 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7D4; /* 0x2B04E4A2: je 0x2b04e7d4 */ 6191 L_2B04E4A8: 6192 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E4A8: mov al, byte ptr [ebp + 0xb] */ 6193 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E4AB: mov byte ptr [ebp - 0x64], al */ 6194 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E4AE: mov dword ptr [ebp - 0x60], ebx */ 6195 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E4B1: mov dword ptr [ebp - 0x5c], ebx */ 6196 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E4B4: mov dword ptr [ebp - 0x58], ebx */ 6197 ecx = ebp + (-0x20); /* 0x2B04E4B7: lea ecx, [ebp - 0x20] */ 6198 PUSH32(esp, ecx); /* 0x2B04E4BA: push ecx */ 6199 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E4BB: mov ecx, dword ptr [ebp - 0x28] */ 6200 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E4BE: mov byte ptr [ebp - 4], 0x41 */ 6201 RECOMP_ICALL(0x2B018B60u); /* 0x2B04E4C2: call 0x2b018b60 */ /* not lifted */ 6202 RECOMP_FLAGS_IN(); 6203 edx = MEM32(ebp + (-0x80)); /* 0x2B04E4C7: mov edx, dword ptr [ebp - 0x80] */ 6204 eax = MEM32(eax); /* 0x2B04E4CA: mov eax, dword ptr [eax] */ 6205 /* cmp eax, MEM32(edx + 0x1A4) */ /* 0x2B04E4CC: cmp eax, dword ptr [edx + 0x1a4] */ 6206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x1A4)); 6207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6208 _flag_k = FK_CMP; 6209 MEM32(ebp + 0x8) = eax; /* 0x2B04E4D2: mov dword ptr [ebp + 8], eax */ 6210 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E53B; /* 0x2B04E4D5: je 0x2b04e53b */ 6211 L_2B04E4D7: 6212 ecx = MEM32(ebp + (-0x94)); /* 0x2B04E4D7: mov ecx, dword ptr [ebp - 0x94] */ 6213 esi = MEM32(ebp + (-0x98)); /* 0x2B04E4DD: mov esi, dword ptr [ebp - 0x98] */ 6214 /* cmp esi, ecx */ /* 0x2B04E4E3: cmp esi, ecx */ 6215 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6217 _flag_k = FK_CMP; 6218 edx = eax + 0xC; /* 0x2B04E4E5: lea edx, [eax + 0xc] */ 6219 edi = ecx; /* 0x2B04E4E8: mov edi, ecx */ 6220 MEM32(ebp + (-0x10)) = edx; /* 0x2B04E4EA: mov dword ptr [ebp - 0x10], edx */ 6221 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E513; /* 0x2B04E4ED: je 0x2b04e513 */ 6222 L_2B04E4EF: 6223 eax = MEM32(ebp + (-0x10)); /* 0x2B04E4EF: mov eax, dword ptr [ebp - 0x10] */ 6224 PUSH32(esp, eax); /* 0x2B04E4F2: push eax */ 6225 PUSH32(esp, esi); /* 0x2B04E4F3: push esi */ 6226 RECOMP_ICALL(MEM32(0x2B0B5180)); /* 0x2B04E4F4: call dword ptr [0x2b0b5180] */ 6227 RECOMP_FLAGS_IN(); 6228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6230 esp = esp + 8; /* 0x2B04E4FA: add esp, 8 */ 6231 _flag_k = FK_ADD; 6232 /* test LO8(eax), LO8(eax) */ /* 0x2B04E4FD: test al, al */ 6233 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6234 _cf = 0; 6235 _flag_k = FK_NARROW(FK_TEST, 24); 6236 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E508; /* 0x2B04E4FF: jne 0x2b04e508 */ 6237 L_2B04E501: 6238 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 6239 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6240 esi = esi + 0x10u; /* 0x2B04E501: add esi, 0x10 */ 6241 _flag_k = FK_ADD; 6242 /* cmp esi, edi */ /* 0x2B04E504: cmp esi, edi */ 6243 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 6244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6245 _flag_k = FK_CMP; 6246 RECOMP_BACKEDGE(); 6247 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4EF; /* 0x2B04E506: jne 0x2b04e4ef */ 6248 L_2B04E508: 6249 /* cmp esi, MEM32(ebp + (-0x94)) */ /* 0x2B04E508: cmp esi, dword ptr [ebp - 0x94] */ 6250 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x94))); 6251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6252 _flag_k = FK_CMP; 6253 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E523; /* 0x2B04E50E: jne 0x2b04e523 */ 6254 L_2B04E510: 6255 eax = MEM32(ebp + 0x8); /* 0x2B04E510: mov eax, dword ptr [ebp + 8] */ 6256 L_2B04E513: 6257 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E513: mov ecx, dword ptr [ebp - 0x5c] */ 6258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 6259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6260 eax = eax + 0xCu; /* 0x2B04E516: add eax, 0xc */ 6261 _flag_k = FK_ADD; 6262 PUSH32(esp, eax); /* 0x2B04E519: push eax */ 6263 PUSH32(esp, ecx); /* 0x2B04E51A: push ecx */ 6264 ecx = ebp + (-0x64); /* 0x2B04E51B: lea ecx, [ebp - 0x64] */ 6265 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E51E: call 0x2b002e20 */ /* not lifted */ 6266 RECOMP_FLAGS_IN(); 6267 L_2B04E523: 6268 ecx = ebp + 0x8; /* 0x2B04E523: lea ecx, [ebp + 8] */ 6269 RECOMP_ICALL(0x2B0199D0u); /* 0x2B04E526: call 0x2b0199d0 */ /* not lifted */ 6270 RECOMP_FLAGS_IN(); 6271 edx = MEM32(ebp + (-0x80)); /* 0x2B04E52B: mov edx, dword ptr [ebp - 0x80] */ 6272 ecx = MEM32(edx + 0x1A4); /* 0x2B04E52E: mov ecx, dword ptr [edx + 0x1a4] */ 6273 eax = MEM32(ebp + 0x8); /* 0x2B04E534: mov eax, dword ptr [ebp + 8] */ 6274 /* cmp eax, ecx */ /* 0x2B04E537: cmp eax, ecx */ 6275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6277 _flag_k = FK_CMP; 6278 RECOMP_BACKEDGE(); 6279 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4D7; /* 0x2B04E539: jne 0x2b04e4d7 */ 6280 L_2B04E53B: 6281 ecx = ebp + (-0x64); /* 0x2B04E53B: lea ecx, [ebp - 0x64] */ 6282 RECOMP_ICALL(0x2B002FC0u); /* 0x2B04E53E: call 0x2b002fc0 */ /* not lifted */ 6283 RECOMP_FLAGS_IN(); 6284 /* test eax, eax */ /* 0x2B04E543: test eax, eax */ 6285 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6286 _cf = 0; 6287 _flag_k = FK_TEST; 6288 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E7C8; /* 0x2B04E545: je 0x2b04e7c8 */ 6289 L_2B04E54B: 6290 PUSH32(esp, 0x2B0E8340u); /* 0x2B04E54B: push 0x2b0e8340 */ 6291 PUSH32(esp, 0x2B0E83C4u); /* 0x2B04E550: push 0x2b0e83c4 */ 6292 RECOMP_ICALL(MEM32(0x2B0B51C8)); /* 0x2B04E555: call dword ptr [0x2b0b51c8] */ 6293 RECOMP_FLAGS_IN(); 6294 esi = eax; /* 0x2B04E55B: mov esi, eax */ 6295 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6297 esp = esp + 8; /* 0x2B04E55D: add esp, 8 */ 6298 _flag_k = FK_ADD; 6299 /* cmp esi, ebx */ /* 0x2B04E560: cmp esi, ebx */ 6300 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6302 _flag_k = FK_CMP; 6303 MEM32(ebp + (-0x54)) = esi; /* 0x2B04E562: mov dword ptr [ebp - 0x54], esi */ 6304 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E5D2; /* 0x2B04E565: jne 0x2b04e5d2 */ 6305 L_2B04E567: 6306 eax = MEM32(ebp + (-0x5C)); /* 0x2B04E567: mov eax, dword ptr [ebp - 0x5c] */ 6307 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E56A: mov ecx, dword ptr [ebp - 0x60] */ 6308 PUSH32(esp, eax); /* 0x2B04E56D: push eax */ 6309 PUSH32(esp, ecx); /* 0x2B04E56E: push ecx */ 6310 ecx = ebp + (-0x64); /* 0x2B04E56F: lea ecx, [ebp - 0x64] */ 6311 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E572: mov byte ptr [ebp - 4], 0x3c */ 6312 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E576: call 0x2b002fe0 */ /* not lifted */ 6313 RECOMP_FLAGS_IN(); 6314 edx = MEM32(ebp + (-0x60)); /* 0x2B04E57B: mov edx, dword ptr [ebp - 0x60] */ 6315 PUSH32(esp, edx); /* 0x2B04E57E: push edx */ 6316 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E57F: call 0x2b0ab1ba */ /* not lifted */ 6317 RECOMP_FLAGS_IN(); 6318 eax = MEM32(ebp + (-0x94)); /* 0x2B04E584: mov eax, dword ptr [ebp - 0x94] */ 6319 ecx = MEM32(ebp + (-0x98)); /* 0x2B04E58A: mov ecx, dword ptr [ebp - 0x98] */ 6320 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6321 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6322 esp = esp + 4; /* 0x2B04E590: add esp, 4 */ 6323 _flag_k = FK_ADD; 6324 PUSH32(esp, eax); /* 0x2B04E593: push eax */ 6325 PUSH32(esp, ecx); /* 0x2B04E594: push ecx */ 6326 ecx = ebp + (-0x9C); /* 0x2B04E595: lea ecx, [ebp - 0x9c] */ 6327 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E59B: mov dword ptr [ebp - 0x60], ebx */ 6328 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E59E: mov dword ptr [ebp - 0x5c], ebx */ 6329 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E5A1: mov dword ptr [ebp - 0x58], ebx */ 6330 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E5A4: mov dword ptr [ebp - 4], 0xffffffff */ 6331 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E5AB: call 0x2b002fe0 */ /* not lifted */ 6332 RECOMP_FLAGS_IN(); 6333 edx = MEM32(ebp + (-0x98)); /* 0x2B04E5B0: mov edx, dword ptr [ebp - 0x98] */ 6334 PUSH32(esp, edx); /* 0x2B04E5B6: push edx */ 6335 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E5B7: call 0x2b0ab1ba */ /* not lifted */ 6336 RECOMP_FLAGS_IN(); 6337 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6338 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6339 esp = esp + 4; /* 0x2B04E5BC: add esp, 4 */ 6340 _flag_k = FK_ADD; 6341 edi = POP32_VAL(esp); /* 0x2B04E5BF: pop edi */ 6342 esi = POP32_VAL(esp); /* 0x2B04E5C0: pop esi */ 6343 ebx = POP32_VAL(esp); /* 0x2B04E5C1: pop ebx */ 6344 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E5C2: mov ecx, dword ptr [ebp - 0xc] */ 6345 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E5C5: mov dword ptr fs:[0], ecx */ 6346 esp = ebp; /* 0x2B04E5CC: mov esp, ebp */ 6347 ebp = POP32_VAL(esp); /* 0x2B04E5CE: pop ebp */ 6348 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E5CF: ret 4 */ 6349 L_2B04E5D2: 6350 /* cmp MEM8(ebp + (-0x41)), LO8(ebx) */ /* 0x2B04E5D2: cmp byte ptr [ebp - 0x41], bl */ 6351 _flag_a = (uint32_t)(MEM8(ebp + (-0x41))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6353 _flag_k = FK_NARROW(FK_CMP, 24); 6354 edi = MEM32(0x2B0B5200); /* 0x2B04E5D5: mov edi, dword ptr [0x2b0b5200] */ 6355 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E69A; /* 0x2B04E5DB: jne 0x2b04e69a */ 6356 L_2B04E5E1: 6357 PUSH32(esp, 0x2B0E8320u); /* 0x2B04E5E1: push 0x2b0e8320 */ 6358 PUSH32(esp, esi); /* 0x2B04E5E6: push esi */ 6359 RECOMP_ICALL(edi); /* 0x2B04E5E7: call edi */ 6360 RECOMP_FLAGS_IN(); 6361 PUSH32(esp, 0x2B0E82D4u); /* 0x2B04E5E9: push 0x2b0e82d4 */ 6362 PUSH32(esp, esi); /* 0x2B04E5EE: push esi */ 6363 RECOMP_ICALL(edi); /* 0x2B04E5EF: call edi */ 6364 RECOMP_FLAGS_IN(); 6365 PUSH32(esp, 0x2B0E8294u); /* 0x2B04E5F1: push 0x2b0e8294 */ 6366 PUSH32(esp, esi); /* 0x2B04E5F6: push esi */ 6367 RECOMP_ICALL(edi); /* 0x2B04E5F7: call edi */ 6368 RECOMP_FLAGS_IN(); 6369 PUSH32(esp, 0x2B0E825Cu); /* 0x2B04E5F9: push 0x2b0e825c */ 6370 PUSH32(esp, esi); /* 0x2B04E5FE: push esi */ 6371 RECOMP_ICALL(edi); /* 0x2B04E5FF: call edi */ 6372 RECOMP_FLAGS_IN(); 6373 PUSH32(esp, 0x2B0E821Cu); /* 0x2B04E601: push 0x2b0e821c */ 6374 PUSH32(esp, esi); /* 0x2B04E606: push esi */ 6375 RECOMP_ICALL(edi); /* 0x2B04E607: call edi */ 6376 RECOMP_FLAGS_IN(); 6377 PUSH32(esp, 0x2B0E8210u); /* 0x2B04E609: push 0x2b0e8210 */ 6378 PUSH32(esp, esi); /* 0x2B04E60E: push esi */ 6379 RECOMP_ICALL(edi); /* 0x2B04E60F: call edi */ 6380 RECOMP_FLAGS_IN(); 6381 PUSH32(esp, 0x2B0E81C4u); /* 0x2B04E611: push 0x2b0e81c4 */ 6382 PUSH32(esp, esi); /* 0x2B04E616: push esi */ 6383 RECOMP_ICALL(edi); /* 0x2B04E617: call edi */ 6384 RECOMP_FLAGS_IN(); 6385 PUSH32(esp, 0x2B0E817Cu); /* 0x2B04E619: push 0x2b0e817c */ 6386 PUSH32(esp, esi); /* 0x2B04E61E: push esi */ 6387 RECOMP_ICALL(edi); /* 0x2B04E61F: call edi */ 6388 RECOMP_FLAGS_IN(); 6389 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 6390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6391 esp = esp + 0x40u; /* 0x2B04E621: add esp, 0x40 */ 6392 _flag_k = FK_ADD; 6393 PUSH32(esp, 0x2B0E8138u); /* 0x2B04E624: push 0x2b0e8138 */ 6394 PUSH32(esp, esi); /* 0x2B04E629: push esi */ 6395 RECOMP_ICALL(edi); /* 0x2B04E62A: call edi */ 6396 RECOMP_FLAGS_IN(); 6397 PUSH32(esp, 0x2B0E8120u); /* 0x2B04E62C: push 0x2b0e8120 */ 6398 PUSH32(esp, esi); /* 0x2B04E631: push esi */ 6399 RECOMP_ICALL(edi); /* 0x2B04E632: call edi */ 6400 RECOMP_FLAGS_IN(); 6401 PUSH32(esp, 0x2B0E810Cu); /* 0x2B04E634: push 0x2b0e810c */ 6402 PUSH32(esp, esi); /* 0x2B04E639: push esi */ 6403 RECOMP_ICALL(edi); /* 0x2B04E63A: call edi */ 6404 RECOMP_FLAGS_IN(); 6405 PUSH32(esp, 0x2B0E80BCu); /* 0x2B04E63C: push 0x2b0e80bc */ 6406 PUSH32(esp, esi); /* 0x2B04E641: push esi */ 6407 RECOMP_ICALL(edi); /* 0x2B04E642: call edi */ 6408 RECOMP_FLAGS_IN(); 6409 PUSH32(esp, 0x2B0E8068u); /* 0x2B04E644: push 0x2b0e8068 */ 6410 PUSH32(esp, esi); /* 0x2B04E649: push esi */ 6411 RECOMP_ICALL(edi); /* 0x2B04E64A: call edi */ 6412 RECOMP_FLAGS_IN(); 6413 PUSH32(esp, 0x2B0E8018u); /* 0x2B04E64C: push 0x2b0e8018 */ 6414 PUSH32(esp, esi); /* 0x2B04E651: push esi */ 6415 RECOMP_ICALL(edi); /* 0x2B04E652: call edi */ 6416 RECOMP_FLAGS_IN(); 6417 PUSH32(esp, 0x2B0E7FC4u); /* 0x2B04E654: push 0x2b0e7fc4 */ 6418 PUSH32(esp, esi); /* 0x2B04E659: push esi */ 6419 RECOMP_ICALL(edi); /* 0x2B04E65A: call edi */ 6420 RECOMP_FLAGS_IN(); 6421 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E65C: push 0x2b0e2bf8 */ 6422 PUSH32(esp, esi); /* 0x2B04E661: push esi */ 6423 RECOMP_ICALL(edi); /* 0x2B04E662: call edi */ 6424 RECOMP_FLAGS_IN(); 6425 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 6426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6427 esp = esp + 0x40u; /* 0x2B04E664: add esp, 0x40 */ 6428 _flag_k = FK_ADD; 6429 PUSH32(esp, 0x2B0E7F8Cu); /* 0x2B04E667: push 0x2b0e7f8c */ 6430 PUSH32(esp, esi); /* 0x2B04E66C: push esi */ 6431 RECOMP_ICALL(edi); /* 0x2B04E66D: call edi */ 6432 RECOMP_FLAGS_IN(); 6433 PUSH32(esp, 0x2B0E7F54u); /* 0x2B04E66F: push 0x2b0e7f54 */ 6434 PUSH32(esp, esi); /* 0x2B04E674: push esi */ 6435 RECOMP_ICALL(edi); /* 0x2B04E675: call edi */ 6436 RECOMP_FLAGS_IN(); 6437 PUSH32(esp, 0x2B0E7F18u); /* 0x2B04E677: push 0x2b0e7f18 */ 6438 PUSH32(esp, esi); /* 0x2B04E67C: push esi */ 6439 RECOMP_ICALL(edi); /* 0x2B04E67D: call edi */ 6440 RECOMP_FLAGS_IN(); 6441 PUSH32(esp, 0x2B0E7ED4u); /* 0x2B04E67F: push 0x2b0e7ed4 */ 6442 PUSH32(esp, esi); /* 0x2B04E684: push esi */ 6443 RECOMP_ICALL(edi); /* 0x2B04E685: call edi */ 6444 RECOMP_FLAGS_IN(); 6445 PUSH32(esp, 0x2B0E7EACu); /* 0x2B04E687: push 0x2b0e7eac */ 6446 PUSH32(esp, esi); /* 0x2B04E68C: push esi */ 6447 RECOMP_ICALL(edi); /* 0x2B04E68D: call edi */ 6448 RECOMP_FLAGS_IN(); 6449 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E68F: push 0x2b0e2bf8 */ 6450 PUSH32(esp, esi); /* 0x2B04E694: push esi */ 6451 RECOMP_ICALL(edi); /* 0x2B04E695: call edi */ 6452 RECOMP_FLAGS_IN(); 6453 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 6454 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6455 esp = esp + 0x30u; /* 0x2B04E697: add esp, 0x30 */ 6456 _flag_k = FK_ADD; 6457 L_2B04E69A: 6458 MEM32(ebp + (-0x18)) = ebx; /* 0x2B04E69A: mov dword ptr [ebp - 0x18], ebx */ 6459 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6460 edi = 0; /* 0x2B04E69D: xor edi, edi */ 6461 _cf = 0; 6462 _flag_k = FK_TEST; 6463 L_2B04E69F: 6464 eax = MEM32(ebp + (-0x60)); /* 0x2B04E69F: mov eax, dword ptr [ebp - 0x60] */ 6465 /* cmp eax, ebx */ /* 0x2B04E6A2: cmp eax, ebx */ 6466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6468 _flag_k = FK_CMP; 6469 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6A4: je 0x2b04e7be */ 6470 L_2B04E6AA: 6471 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E6AA: mov ecx, dword ptr [ebp - 0x5c] */ 6472 edx = MEM32(ebp + (-0x18)); /* 0x2B04E6AD: mov edx, dword ptr [ebp - 0x18] */ 6473 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6475 ecx = ecx - eax; /* 0x2B04E6B0: sub ecx, eax */ 6476 _flag_k = FK_CMP; 6477 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B04E6B2: sar ecx, 4 */ 6478 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6479 ecx = (uint32_t)((int32_t)ecx >> 4u); 6480 /* cmp edx, ecx */ /* 0x2B04E6B5: cmp edx, ecx */ 6481 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6483 _flag_k = FK_CMP; 6484 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6B7: jae 0x2b04e7be */ 6485 L_2B04E6BD: 6486 edx = ebp + (-0x88); /* 0x2B04E6BD: lea edx, [ebp - 0x88] */ 6487 PUSH32(esp, edx); /* 0x2B04E6C3: push edx */ 6488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6490 eax = eax + edi; /* 0x2B04E6C4: add eax, edi */ 6491 _flag_k = FK_ADD; 6492 PUSH32(esp, eax); /* 0x2B04E6C6: push eax */ 6493 ecx = ebp + (-0xE0); /* 0x2B04E6C7: lea ecx, [ebp - 0xe0] */ 6494 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E6CD: mov dword ptr [ebp - 0x88], ebx */ 6495 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E6D3: mov dword ptr [ebp - 0x84], ebx */ 6496 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E6D9: call 0x2b051ac0 */ /* not lifted */ 6497 RECOMP_FLAGS_IN(); 6498 PUSH32(esp, eax); /* 0x2B04E6DE: push eax */ 6499 ecx = ebp + (-0x30); /* 0x2B04E6DF: lea ecx, [ebp - 0x30] */ 6500 PUSH32(esp, ecx); /* 0x2B04E6E2: push ecx */ 6501 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E6E3: mov ecx, dword ptr [ebp - 0x28] */ 6502 MEM8(ebp + (-0x4)) = (uint8_t)(0x42u); /* 0x2B04E6E6: mov byte ptr [ebp - 4], 0x42 */ 6503 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E6EA: call 0x2b0519d0 */ /* not lifted */ 6504 RECOMP_FLAGS_IN(); 6505 esi = MEM32(eax); /* 0x2B04E6EF: mov esi, dword ptr [eax] */ 6506 PUSH32(esp, 1); /* 0x2B04E6F1: push 1 */ 6507 ecx = ebp + (-0xE0); /* 0x2B04E6F3: lea ecx, [ebp - 0xe0] */ 6508 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E6F9: mov byte ptr [ebp - 4], 0x41 */ 6509 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E6FD: call dword ptr [0x2b0b514c] */ 6510 RECOMP_FLAGS_IN(); 6511 edx = MEM32(esi + 0x1C); /* 0x2B04E703: mov edx, dword ptr [esi + 0x1c] */ 6512 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E706: mov ecx, dword ptr [ebp - 0x60] */ 6513 eax = ebp + (-0xA4); /* 0x2B04E709: lea eax, [ebp - 0xa4] */ 6514 MEM32(ebp + (-0x1C)) = edx; /* 0x2B04E70F: mov dword ptr [ebp - 0x1c], edx */ 6515 edx = edi + ecx; /* 0x2B04E712: lea edx, [edi + ecx] */ 6516 PUSH32(esp, eax); /* 0x2B04E715: push eax */ 6517 PUSH32(esp, edx); /* 0x2B04E716: push edx */ 6518 ecx = ebp + (-0xC0); /* 0x2B04E717: lea ecx, [ebp - 0xc0] */ 6519 MEM32(ebp + (-0xA4)) = ebx; /* 0x2B04E71D: mov dword ptr [ebp - 0xa4], ebx */ 6520 MEM32(ebp + (-0xA0)) = ebx; /* 0x2B04E723: mov dword ptr [ebp - 0xa0], ebx */ 6521 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E729: call 0x2b051ac0 */ /* not lifted */ 6522 RECOMP_FLAGS_IN(); 6523 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E72E: mov ecx, dword ptr [ebp - 0x28] */ 6524 PUSH32(esp, eax); /* 0x2B04E731: push eax */ 6525 eax = ebp + (-0xC8); /* 0x2B04E732: lea eax, [ebp - 0xc8] */ 6526 PUSH32(esp, eax); /* 0x2B04E738: push eax */ 6527 MEM8(ebp + (-0x4)) = (uint8_t)(0x43u); /* 0x2B04E739: mov byte ptr [ebp - 4], 0x43 */ 6528 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E73D: call 0x2b0519d0 */ /* not lifted */ 6529 RECOMP_FLAGS_IN(); 6530 esi = MEM32(eax); /* 0x2B04E742: mov esi, dword ptr [eax] */ 6531 PUSH32(esp, 1); /* 0x2B04E744: push 1 */ 6532 ecx = ebp + (-0xC0); /* 0x2B04E746: lea ecx, [ebp - 0xc0] */ 6533 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E74C: mov byte ptr [ebp - 4], 0x41 */ 6534 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E750: call dword ptr [0x2b0b514c] */ 6535 RECOMP_FLAGS_IN(); 6536 edx = MEM32(ebp + (-0x60)); /* 0x2B04E756: mov edx, dword ptr [ebp - 0x60] */ 6537 ecx = MEM32(esi + 0x20); /* 0x2B04E759: mov ecx, dword ptr [esi + 0x20] */ 6538 eax = MEM32(edi + edx + 0x4); /* 0x2B04E75C: mov eax, dword ptr [edi + edx + 4] */ 6539 /* cmp eax, ebx */ /* 0x2B04E760: cmp eax, ebx */ 6540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6542 _flag_k = FK_CMP; 6543 esi = MEM32(0x2B0B513C); /* 0x2B04E762: mov esi, dword ptr [0x2b0b513c] */ 6544 MEM32(ebp + (-0x10)) = ecx; /* 0x2B04E768: mov dword ptr [ebp - 0x10], ecx */ 6545 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E76F; /* 0x2B04E76B: je 0x2b04e76f */ 6546 L_2B04E76D: 6547 esi = eax; /* 0x2B04E76D: mov esi, eax */ 6548 L_2B04E76F: 6549 eax = ecx; /* 0x2B04E76F: mov eax, ecx */ 6550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 6551 eax = eax & 0xFFu; /* 0x2B04E771: and eax, 0xff */ 6552 _cf = 0; 6553 _flag_k = FK_TEST; 6554 PUSH32(esp, eax); /* 0x2B04E776: push eax */ 6555 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6556 edx = 0; /* 0x2B04E777: xor edx, edx */ 6557 _cf = 0; 6558 _flag_k = FK_TEST; 6559 SET_LO8(edx, HI8(ecx)); /* 0x2B04E779: mov dl, ch */ 6560 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E77B: mov ecx, dword ptr [ebp - 0x1c] */ 6561 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6562 eax = 0; /* 0x2B04E77E: xor eax, eax */ 6563 _cf = 0; 6564 _flag_k = FK_TEST; 6565 SET_LO8(eax, MEM8(ebp + (-0xE))); /* 0x2B04E780: mov al, byte ptr [ebp - 0xe] */ 6566 PUSH32(esp, edx); /* 0x2B04E783: push edx */ 6567 edx = ecx; /* 0x2B04E784: mov edx, ecx */ 6568 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 6569 edx = edx & 0xFFu; /* 0x2B04E786: and edx, 0xff */ 6570 _cf = 0; 6571 _flag_k = FK_TEST; 6572 PUSH32(esp, eax); /* 0x2B04E78C: push eax */ 6573 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6574 eax = 0; /* 0x2B04E78D: xor eax, eax */ 6575 _cf = 0; 6576 _flag_k = FK_TEST; 6577 SET_LO8(eax, HI8(ecx)); /* 0x2B04E78F: mov al, ch */ 6578 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6579 ecx = 0; /* 0x2B04E791: xor ecx, ecx */ 6580 _cf = 0; 6581 _flag_k = FK_TEST; 6582 SET_LO8(ecx, MEM8(ebp + (-0x1A))); /* 0x2B04E793: mov cl, byte ptr [ebp - 0x1a] */ 6583 PUSH32(esp, edx); /* 0x2B04E796: push edx */ 6584 edx = MEM32(ebp + (-0x54)); /* 0x2B04E797: mov edx, dword ptr [ebp - 0x54] */ 6585 PUSH32(esp, eax); /* 0x2B04E79A: push eax */ 6586 PUSH32(esp, ecx); /* 0x2B04E79B: push ecx */ 6587 PUSH32(esp, esi); /* 0x2B04E79C: push esi */ 6588 PUSH32(esp, 0x2B0E7E8Cu); /* 0x2B04E79D: push 0x2b0e7e8c */ 6589 PUSH32(esp, edx); /* 0x2B04E7A2: push edx */ 6590 RECOMP_ICALL(MEM32(0x2B0B5200)); /* 0x2B04E7A3: call dword ptr [0x2b0b5200] */ 6591 RECOMP_FLAGS_IN(); 6592 ecx = MEM32(ebp + (-0x18)); /* 0x2B04E7A9: mov ecx, dword ptr [ebp - 0x18] */ 6593 esi = MEM32(ebp + (-0x54)); /* 0x2B04E7AC: mov esi, dword ptr [ebp - 0x54] */ 6594 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 6595 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6596 esp = esp + 0x24u; /* 0x2B04E7AF: add esp, 0x24 */ 6597 _flag_k = FK_ADD; 6598 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6599 ecx = ecx + 1; /* 0x2B04E7B2: inc ecx */ 6600 _flag_k = FK_INC; 6601 MEM32(ebp + (-0x18)) = ecx; /* 0x2B04E7B3: mov dword ptr [ebp - 0x18], ecx */ 6602 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 6603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6604 edi = edi + 0x10u; /* 0x2B04E7B6: add edi, 0x10 */ 6605 _flag_k = FK_ADD; 6606 RECOMP_BACKEDGE(); 6607 goto L_2B04E69F; /* 0x2B04E7B9: jmp 0x2b04e69f */ 6608 L_2B04E7BE: 6609 PUSH32(esp, esi); /* 0x2B04E7BE: push esi */ 6610 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E7BF: call dword ptr [0x2b0b51cc] */ 6611 RECOMP_FLAGS_IN(); 6612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6614 esp = esp + 4; /* 0x2B04E7C5: add esp, 4 */ 6615 _flag_k = FK_ADD; 6616 L_2B04E7C8: 6617 ecx = ebp + (-0x64); /* 0x2B04E7C8: lea ecx, [ebp - 0x64] */ 6618 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E7CB: mov byte ptr [ebp - 4], 0x3c */ 6619 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7CF: call 0x2b002db0 */ /* not lifted */ 6620 RECOMP_FLAGS_IN(); 6621 L_2B04E7D4: 6622 ecx = ebp + (-0x9C); /* 0x2B04E7D4: lea ecx, [ebp - 0x9c] */ 6623 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E7DA: mov dword ptr [ebp - 4], 0xffffffff */ 6624 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7E1: call 0x2b002db0 */ /* not lifted */ 6625 RECOMP_FLAGS_IN(); 6626 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E7E6: mov ecx, dword ptr [ebp - 0xc] */ 6627 edi = POP32_VAL(esp); /* 0x2B04E7E9: pop edi */ 6628 esi = POP32_VAL(esp); /* 0x2B04E7EA: pop esi */ 6629 ebx = POP32_VAL(esp); /* 0x2B04E7EB: pop ebx */ 6630 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E7EC: mov dword ptr fs:[0], ecx */ 6631 esp = ebp; /* 0x2B04E7F3: mov esp, ebp */ 6632 ebp = POP32_VAL(esp); /* 0x2B04E7F5: pop ebp */ 6633 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E7F6: ret 4 */ 6634 RECOMP_REGS_OUT(); 6635 } 6636 6637 void sub_2B04E2AC(void) { 6638 int _fpu_cmp = 0; 6639 uint32_t _cf = 0; 6640 int _df = 1; 6641 uint32_t _flag_k = FK_NONE; 6642 uint32_t _flag_a = 0, _flag_b = 0; 6643 uint32_t _itail_tgt = 0; 6644 RECOMP_REGS_LOCALS 6645 RECOMP_ENTER(0x2B04E2ACu); 6646 6647 goto L_2B04E2AC; 6648 L_2B04E113: 6649 SET_LO8(eax, MEM8(ebp + (-0x5E0))); /* 0x2B04E113: mov al, byte ptr [ebp - 0x5e0] */ 6650 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6651 edi = 0; /* 0x2B04E119: xor edi, edi */ 6652 _cf = 0; 6653 _flag_k = FK_TEST; 6654 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E11B: cmp al, bl */ 6655 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6657 _flag_k = FK_NARROW(FK_CMP, 24); 6658 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E14C; /* 0x2B04E11D: je 0x2b04e14c */ 6659 L_2B04E11F: 6660 /* cmp LO8(eax), 0x3Bu */ /* 0x2B04E11F: cmp al, 0x3b */ 6661 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x3Bu) << 24; 6662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6663 _flag_k = FK_NARROW(FK_CMP, 24); 6664 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E145; /* 0x2B04E121: je 0x2b04e145 */ 6665 L_2B04E123: 6666 ecx = (int32_t)(int8_t)LO8(eax); /* 0x2B04E123: movsx ecx, al */ 6667 PUSH32(esp, ecx); /* 0x2B04E126: push ecx */ 6668 RECOMP_ICALL(MEM32(0x2B0B51D8)); /* 0x2B04E127: call dword ptr [0x2b0b51d8] */ 6669 RECOMP_FLAGS_IN(); 6670 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6671 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6672 esp = esp + 4; /* 0x2B04E12D: add esp, 4 */ 6673 _flag_k = FK_ADD; 6674 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(eax)); /* 0x2B04E130: mov byte ptr [ebp + edi - 0x5e0], al */ 6675 SET_LO8(eax, MEM8(ebp + edi + (-0x5DF))); /* 0x2B04E137: mov al, byte ptr [ebp + edi - 0x5df] */ 6676 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 6677 edi = edi + 1; /* 0x2B04E13E: inc edi */ 6678 _flag_k = FK_INC; 6679 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04E13F: cmp al, bl */ 6680 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6682 _flag_k = FK_NARROW(FK_CMP, 24); 6683 RECOMP_BACKEDGE(); 6684 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E11F; /* 0x2B04E141: jne 0x2b04e11f */ 6685 L_2B04E143: 6686 goto L_2B04E14C; /* 0x2B04E143: jmp 0x2b04e14c */ 6687 L_2B04E145: 6688 MEM8(ebp + edi + (-0x5E0)) = (uint8_t)(LO8(ebx)); /* 0x2B04E145: mov byte ptr [ebp + edi - 0x5e0], bl */ 6689 L_2B04E14C: 6690 edx = ebp + (-0x10); /* 0x2B04E14C: lea edx, [ebp - 0x10] */ 6691 PUSH32(esp, edx); /* 0x2B04E14F: push edx */ 6692 eax = ebp + (-0xA0); /* 0x2B04E150: lea eax, [ebp - 0xa0] */ 6693 PUSH32(esp, eax); /* 0x2B04E156: push eax */ 6694 ecx = ebp + (-0xA8); /* 0x2B04E157: lea ecx, [ebp - 0xa8] */ 6695 PUSH32(esp, ecx); /* 0x2B04E15D: push ecx */ 6696 edx = ebp + (-0x1C); /* 0x2B04E15E: lea edx, [ebp - 0x1c] */ 6697 PUSH32(esp, edx); /* 0x2B04E161: push edx */ 6698 eax = ebp + (-0x54); /* 0x2B04E162: lea eax, [ebp - 0x54] */ 6699 PUSH32(esp, eax); /* 0x2B04E165: push eax */ 6700 ecx = ebp + (-0x8C); /* 0x2B04E166: lea ecx, [ebp - 0x8c] */ 6701 PUSH32(esp, ecx); /* 0x2B04E16C: push ecx */ 6702 edx = ebp + (-0x1E0); /* 0x2B04E16D: lea edx, [ebp - 0x1e0] */ 6703 PUSH32(esp, edx); /* 0x2B04E173: push edx */ 6704 eax = ebp + (-0x5E0); /* 0x2B04E174: lea eax, [ebp - 0x5e0] */ 6705 PUSH32(esp, 0x2B0E8398u); /* 0x2B04E17A: push 0x2b0e8398 */ 6706 PUSH32(esp, eax); /* 0x2B04E17F: push eax */ 6707 RECOMP_ICALL(esi); /* 0x2B04E180: call esi */ 6708 RECOMP_FLAGS_IN(); 6709 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 6710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6711 esp = esp + 0x24u; /* 0x2B04E182: add esp, 0x24 */ 6712 _flag_k = FK_ADD; 6713 /* cmp eax, 7 */ /* 0x2B04E185: cmp eax, 7 */ 6714 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 6715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6716 _flag_k = FK_CMP; 6717 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E1C1; /* 0x2B04E188: jne 0x2b04e1c1 */ 6718 L_2B04E18A: 6719 ecx = MEM32(ebp + (-0x8C)); /* 0x2B04E18A: mov ecx, dword ptr [ebp - 0x8c] */ 6720 eax = MEM32(ebp + (-0x54)); /* 0x2B04E190: mov eax, dword ptr [ebp - 0x54] */ 6721 edx = MEM32(ebp + (-0x1C)); /* 0x2B04E193: mov edx, dword ptr [ebp - 0x1c] */ 6722 edi = MEM32(ebp + (-0xA0)); /* 0x2B04E196: mov edi, dword ptr [ebp - 0xa0] */ 6723 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E19C: shl ecx, 8 */ 6724 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6725 ecx = ecx << 8u; /* 0x2B04E19C: shl ecx, 8 */ 6726 _flag_a = (uint32_t)((ecx | eax)); _flag_b = (uint32_t)((ecx | eax)); 6727 ecx = ecx | eax; /* 0x2B04E19F: or ecx, eax */ 6728 _cf = 0; 6729 _flag_k = FK_TEST; 6730 eax = MEM32(ebp + (-0x10)); /* 0x2B04E1A1: mov eax, dword ptr [ebp - 0x10] */ 6731 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B04E1A4: shl ecx, 8 */ 6732 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6733 ecx = ecx << 8u; /* 0x2B04E1A4: shl ecx, 8 */ 6734 _flag_a = (uint32_t)((ecx | edx)); _flag_b = (uint32_t)((ecx | edx)); 6735 ecx = ecx | edx; /* 0x2B04E1A7: or ecx, edx */ 6736 _cf = 0; 6737 _flag_k = FK_TEST; 6738 edx = MEM32(ebp + (-0xA8)); /* 0x2B04E1A9: mov edx, dword ptr [ebp - 0xa8] */ 6739 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1AF: shl edx, 8 */ 6740 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6741 edx = edx << 8u; /* 0x2B04E1AF: shl edx, 8 */ 6742 _flag_a = (uint32_t)((edx | edi)); _flag_b = (uint32_t)((edx | edi)); 6743 edx = edx | edi; /* 0x2B04E1B2: or edx, edi */ 6744 _cf = 0; 6745 _flag_k = FK_TEST; 6746 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x2B04E1B4: shl edx, 8 */ 6747 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6748 edx = edx << 8u; /* 0x2B04E1B4: shl edx, 8 */ 6749 MEM32(ebp + (-0x48)) = ecx; /* 0x2B04E1B7: mov dword ptr [ebp - 0x48], ecx */ 6750 _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax)); 6751 edx = edx | eax; /* 0x2B04E1BA: or edx, eax */ 6752 _cf = 0; 6753 _flag_k = FK_TEST; 6754 goto L_2B04E2A9; /* 0x2B04E1BC: jmp 0x2b04e2a9 */ 6755 L_2B04E1C1: 6756 eax = ebp + (-0x1C); /* 0x2B04E1C1: lea eax, [ebp - 0x1c] */ 6757 PUSH32(esp, eax); /* 0x2B04E1C4: push eax */ 6758 ecx = ebp + (-0x54); /* 0x2B04E1C5: lea ecx, [ebp - 0x54] */ 6759 PUSH32(esp, ecx); /* 0x2B04E1C8: push ecx */ 6760 edx = ebp + (-0x8C); /* 0x2B04E1C9: lea edx, [ebp - 0x8c] */ 6761 PUSH32(esp, edx); /* 0x2B04E1CF: push edx */ 6762 eax = ebp + (-0x1E0); /* 0x2B04E1D0: lea eax, [ebp - 0x1e0] */ 6763 PUSH32(esp, eax); /* 0x2B04E1D6: push eax */ 6764 ecx = ebp + (-0x5E0); /* 0x2B04E1D7: lea ecx, [ebp - 0x5e0] */ 6765 PUSH32(esp, 0x2B0E837Cu); /* 0x2B04E1DD: push 0x2b0e837c */ 6766 PUSH32(esp, ecx); /* 0x2B04E1E2: push ecx */ 6767 RECOMP_ICALL(esi); /* 0x2B04E1E3: call esi */ 6768 RECOMP_FLAGS_IN(); 6769 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 6770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6771 esp = esp + 0x18u; /* 0x2B04E1E5: add esp, 0x18 */ 6772 _flag_k = FK_ADD; 6773 /* cmp eax, 4 */ /* 0x2B04E1E8: cmp eax, 4 */ 6774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6776 _flag_k = FK_CMP; 6777 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E20E; /* 0x2B04E1EB: jne 0x2b04e20e */ 6778 L_2B04E1ED: 6779 eax = MEM32(ebp + (-0x8C)); /* 0x2B04E1ED: mov eax, dword ptr [ebp - 0x8c] */ 6780 edi = MEM32(ebp + (-0x54)); /* 0x2B04E1F3: mov edi, dword ptr [ebp - 0x54] */ 6781 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E1F6: mov ecx, dword ptr [ebp - 0x1c] */ 6782 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1F9: shl eax, 8 */ 6783 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6784 eax = eax << 8u; /* 0x2B04E1F9: shl eax, 8 */ 6785 _flag_a = (uint32_t)((eax | edi)); _flag_b = (uint32_t)((eax | edi)); 6786 eax = eax | edi; /* 0x2B04E1FC: or eax, edi */ 6787 _cf = 0; 6788 _flag_k = FK_TEST; 6789 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x2B04E1FE: shl eax, 8 */ 6790 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6791 eax = eax << 8u; /* 0x2B04E1FE: shl eax, 8 */ 6792 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 6793 eax = eax | ecx; /* 0x2B04E201: or eax, ecx */ 6794 _cf = 0; 6795 _flag_k = FK_TEST; 6796 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E203: mov dword ptr [ebp - 0x48], eax */ 6797 MEM32(ebp + (-0x4C)) = eax; /* 0x2B04E206: mov dword ptr [ebp - 0x4c], eax */ 6798 goto L_2B04E2AC; /* 0x2B04E209: jmp 0x2b04e2ac */ 6799 L_2B04E20E: 6800 edx = ebp + (-0x4C); /* 0x2B04E20E: lea edx, [ebp - 0x4c] */ 6801 PUSH32(esp, edx); /* 0x2B04E211: push edx */ 6802 eax = ebp + (-0x48); /* 0x2B04E212: lea eax, [ebp - 0x48] */ 6803 PUSH32(esp, eax); /* 0x2B04E215: push eax */ 6804 ecx = ebp + (-0x1E0); /* 0x2B04E216: lea ecx, [ebp - 0x1e0] */ 6805 PUSH32(esp, ecx); /* 0x2B04E21C: push ecx */ 6806 edx = ebp + (-0x5E0); /* 0x2B04E21D: lea edx, [ebp - 0x5e0] */ 6807 PUSH32(esp, 0x2B0E836Cu); /* 0x2B04E223: push 0x2b0e836c */ 6808 PUSH32(esp, edx); /* 0x2B04E228: push edx */ 6809 RECOMP_ICALL(esi); /* 0x2B04E229: call esi */ 6810 RECOMP_FLAGS_IN(); 6811 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6813 esp = esp + 0x14u; /* 0x2B04E22B: add esp, 0x14 */ 6814 _flag_k = FK_ADD; 6815 /* cmp eax, 3 */ /* 0x2B04E22E: cmp eax, 3 */ 6816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 6817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6818 _flag_k = FK_CMP; 6819 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E231: je 0x2b04e2ac */ 6820 L_2B04E233: 6821 eax = ebp + (-0x4C); /* 0x2B04E233: lea eax, [ebp - 0x4c] */ 6822 PUSH32(esp, eax); /* 0x2B04E236: push eax */ 6823 ecx = ebp + (-0x48); /* 0x2B04E237: lea ecx, [ebp - 0x48] */ 6824 PUSH32(esp, ecx); /* 0x2B04E23A: push ecx */ 6825 edx = ebp + (-0x1E0); /* 0x2B04E23B: lea edx, [ebp - 0x1e0] */ 6826 PUSH32(esp, edx); /* 0x2B04E241: push edx */ 6827 eax = ebp + (-0x5E0); /* 0x2B04E242: lea eax, [ebp - 0x5e0] */ 6828 PUSH32(esp, 0x2B0E835Cu); /* 0x2B04E248: push 0x2b0e835c */ 6829 PUSH32(esp, eax); /* 0x2B04E24D: push eax */ 6830 RECOMP_ICALL(esi); /* 0x2B04E24E: call esi */ 6831 RECOMP_FLAGS_IN(); 6832 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6833 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6834 esp = esp + 0x14u; /* 0x2B04E250: add esp, 0x14 */ 6835 _flag_k = FK_ADD; 6836 /* cmp eax, 3 */ /* 0x2B04E253: cmp eax, 3 */ 6837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 6838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6839 _flag_k = FK_CMP; 6840 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E2AC; /* 0x2B04E256: je 0x2b04e2ac */ 6841 L_2B04E258: 6842 ecx = ebp + (-0x48); /* 0x2B04E258: lea ecx, [ebp - 0x48] */ 6843 PUSH32(esp, ecx); /* 0x2B04E25B: push ecx */ 6844 edx = ebp + (-0x1E0); /* 0x2B04E25C: lea edx, [ebp - 0x1e0] */ 6845 PUSH32(esp, edx); /* 0x2B04E262: push edx */ 6846 eax = ebp + (-0x5E0); /* 0x2B04E263: lea eax, [ebp - 0x5e0] */ 6847 PUSH32(esp, 0x2B0E8350u); /* 0x2B04E269: push 0x2b0e8350 */ 6848 PUSH32(esp, eax); /* 0x2B04E26E: push eax */ 6849 RECOMP_ICALL(esi); /* 0x2B04E26F: call esi */ 6850 RECOMP_FLAGS_IN(); 6851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6853 esp = esp + 0x10u; /* 0x2B04E271: add esp, 0x10 */ 6854 _flag_k = FK_ADD; 6855 /* cmp eax, 2 */ /* 0x2B04E274: cmp eax, 2 */ 6856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6858 _flag_k = FK_CMP; 6859 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E281; /* 0x2B04E277: jne 0x2b04e281 */ 6860 L_2B04E279: 6861 ecx = MEM32(ebp + (-0x48)); /* 0x2B04E279: mov ecx, dword ptr [ebp - 0x48] */ 6862 MEM32(ebp + (-0x4C)) = ecx; /* 0x2B04E27C: mov dword ptr [ebp - 0x4c], ecx */ 6863 goto L_2B04E2AC; /* 0x2B04E27F: jmp 0x2b04e2ac */ 6864 L_2B04E281: 6865 edx = ebp + (-0x48); /* 0x2B04E281: lea edx, [ebp - 0x48] */ 6866 PUSH32(esp, edx); /* 0x2B04E284: push edx */ 6867 eax = ebp + (-0x1E0); /* 0x2B04E285: lea eax, [ebp - 0x1e0] */ 6868 PUSH32(esp, eax); /* 0x2B04E28B: push eax */ 6869 ecx = ebp + (-0x5E0); /* 0x2B04E28C: lea ecx, [ebp - 0x5e0] */ 6870 PUSH32(esp, 0x2B0E8344u); /* 0x2B04E292: push 0x2b0e8344 */ 6871 PUSH32(esp, ecx); /* 0x2B04E297: push ecx */ 6872 RECOMP_ICALL(esi); /* 0x2B04E298: call esi */ 6873 RECOMP_FLAGS_IN(); 6874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6876 esp = esp + 0x10u; /* 0x2B04E29A: add esp, 0x10 */ 6877 _flag_k = FK_ADD; 6878 /* cmp eax, 2 */ /* 0x2B04E29D: cmp eax, 2 */ 6879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6881 _flag_k = FK_CMP; 6882 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E2A0: jne 0x2b04e471 */ 6883 L_2B04E2A6: 6884 edx = MEM32(ebp + (-0x48)); /* 0x2B04E2A6: mov edx, dword ptr [ebp - 0x48] */ 6885 L_2B04E2A9: 6886 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E2A9: mov dword ptr [ebp - 0x4c], edx */ 6887 L_2B04E2AC: 6888 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E2AC: mov al, byte ptr [ebp + 0xb] */ 6889 PUSH32(esp, ebx); /* 0x2B04E2AF: push ebx */ 6890 ecx = ebp + (-0x64); /* 0x2B04E2B0: lea ecx, [ebp - 0x64] */ 6891 MEM8(ebp + (-0xE1)) = (uint8_t)(LO8(ebx)); /* 0x2B04E2B3: mov byte ptr [ebp - 0xe1], bl */ 6892 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E2B9: mov byte ptr [ebp - 0x64], al */ 6893 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E2BC: call dword ptr [0x2b0b514c] */ 6894 RECOMP_FLAGS_IN(); 6895 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6896 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E2C2: or ecx, 0xffffffff */ 6897 _cf = 0; 6898 _flag_k = FK_TEST; 6899 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6900 eax = 0; /* 0x2B04E2C5: xor eax, eax */ 6901 _cf = 0; 6902 _flag_k = FK_TEST; 6903 edi = ebp + (-0x1E0); /* 0x2B04E2C7: lea edi, [ebp - 0x1e0] */ 6904 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; } /* 0x2B04E2CD: repne scasb al, byte ptr es:[edi] */ 6905 ecx = ~ecx; /* 0x2B04E2CF: not ecx */ 6906 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6907 ecx = ecx - 1; /* 0x2B04E2D1: dec ecx */ 6908 _flag_k = FK_DEC; 6909 PUSH32(esp, ecx); /* 0x2B04E2D2: push ecx */ 6910 ecx = ebp + (-0x1E0); /* 0x2B04E2D3: lea ecx, [ebp - 0x1e0] */ 6911 PUSH32(esp, ecx); /* 0x2B04E2D9: push ecx */ 6912 ecx = ebp + (-0x64); /* 0x2B04E2DA: lea ecx, [ebp - 0x64] */ 6913 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E2DD: call dword ptr [0x2b0b5148] */ 6914 RECOMP_FLAGS_IN(); 6915 edx = MEM32(ebp + (-0x80)); /* 0x2B04E2E3: mov edx, dword ptr [ebp - 0x80] */ 6916 edi = MEM32(edx + 0x1A4); /* 0x2B04E2E6: mov edi, dword ptr [edx + 0x1a4] */ 6917 eax = ebp + (-0x64); /* 0x2B04E2EC: lea eax, [ebp - 0x64] */ 6918 PUSH32(esp, eax); /* 0x2B04E2EF: push eax */ 6919 ecx = ebp + (-0x20); /* 0x2B04E2F0: lea ecx, [ebp - 0x20] */ 6920 PUSH32(esp, ecx); /* 0x2B04E2F3: push ecx */ 6921 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E2F4: mov ecx, dword ptr [ebp - 0x28] */ 6922 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Du); /* 0x2B04E2F7: mov byte ptr [ebp - 4], 0x3d */ 6923 RECOMP_ICALL(0x2B08DFD0u); /* 0x2B04E2FB: call 0x2b08dfd0 */ /* not lifted */ 6924 RECOMP_FLAGS_IN(); 6925 /* cmp MEM32(eax), edi */ /* 0x2B04E300: cmp dword ptr [eax], edi */ 6926 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 6927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6928 _flag_k = FK_CMP; 6929 PUSH32(esp, 1); /* 0x2B04E302: push 1 */ 6930 ecx = ebp + (-0x64); /* 0x2B04E304: lea ecx, [ebp - 0x64] */ 6931 MEM8(ebp + (-0x4D)) = (uint8_t)((CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B04E307: sete byte ptr [ebp - 0x4d] */ 6932 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E30B: mov byte ptr [ebp - 4], 0x3c */ 6933 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E30F: call dword ptr [0x2b0b514c] */ 6934 RECOMP_FLAGS_IN(); 6935 /* cmp MEM8(ebp + (-0x4D)), LO8(ebx) */ /* 0x2B04E315: cmp byte ptr [ebp - 0x4d], bl */ 6936 _flag_a = (uint32_t)(MEM8(ebp + (-0x4D))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6938 _flag_k = FK_NARROW(FK_CMP, 24); 6939 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E471; /* 0x2B04E318: jne 0x2b04e471 */ 6940 L_2B04E31E: 6941 eax = MEM32(ebp + (-0x48)); /* 0x2B04E31E: mov eax, dword ptr [ebp - 0x48] */ 6942 edx = MEM32(ebp + (-0x4C)); /* 0x2B04E321: mov edx, dword ptr [ebp - 0x4c] */ 6943 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00FFFFFFu); 6944 eax = eax & 0x00FFFFFFu; /* 0x2B04E324: and eax, 0xffffff */ 6945 _cf = 0; 6946 _flag_k = FK_TEST; 6947 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x00FFFFFFu); 6948 edx = edx & 0x00FFFFFFu; /* 0x2B04E329: and edx, 0xffffff */ 6949 _cf = 0; 6950 _flag_k = FK_TEST; 6951 /* cmp eax, 0xFF00u */ /* 0x2B04E32F: cmp eax, 0xff00 */ 6952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFF00u); 6953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6954 _flag_k = FK_CMP; 6955 MEM32(ebp + (-0x48)) = eax; /* 0x2B04E334: mov dword ptr [ebp - 0x48], eax */ 6956 MEM32(ebp + (-0x4C)) = edx; /* 0x2B04E337: mov dword ptr [ebp - 0x4c], edx */ 6957 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E343; /* 0x2B04E33A: jne 0x2b04e343 */ 6958 L_2B04E33C: 6959 MEM32(ebp + (-0x48)) = 0xFE00u; /* 0x2B04E33C: mov dword ptr [ebp - 0x48], 0xfe00 */ 6960 L_2B04E343: 6961 /* cmp MEM32(ebp + (-0x4C)), 0xFF00u */ /* 0x2B04E343: cmp dword ptr [ebp - 0x4c], 0xff00 */ 6962 _flag_a = (uint32_t)(MEM32(ebp + (-0x4C))); _flag_b = (uint32_t)(0xFF00u); 6963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6964 _flag_k = FK_CMP; 6965 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E353; /* 0x2B04E34A: jne 0x2b04e353 */ 6966 L_2B04E34C: 6967 MEM32(ebp + (-0x4C)) = 0xFE00u; /* 0x2B04E34C: mov dword ptr [ebp - 0x4c], 0xfe00 */ 6968 L_2B04E353: 6969 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E353: mov dl, byte ptr [ebp + 0xb] */ 6970 PUSH32(esp, ebx); /* 0x2B04E356: push ebx */ 6971 ecx = ebp + (-0xB8); /* 0x2B04E357: lea ecx, [ebp - 0xb8] */ 6972 MEM8(ebp + (-0xB8)) = (uint8_t)(LO8(edx)); /* 0x2B04E35D: mov byte ptr [ebp - 0xb8], dl */ 6973 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E363: call dword ptr [0x2b0b514c] */ 6974 RECOMP_FLAGS_IN(); 6975 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6976 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E369: or ecx, 0xffffffff */ 6977 _cf = 0; 6978 _flag_k = FK_TEST; 6979 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6980 eax = 0; /* 0x2B04E36C: xor eax, eax */ 6981 _cf = 0; 6982 _flag_k = FK_TEST; 6983 edi = ebp + (-0x1E0); /* 0x2B04E36E: lea edi, [ebp - 0x1e0] */ 6984 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; } /* 0x2B04E374: repne scasb al, byte ptr es:[edi] */ 6985 ecx = ~ecx; /* 0x2B04E376: not ecx */ 6986 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6987 ecx = ecx - 1; /* 0x2B04E378: dec ecx */ 6988 _flag_k = FK_DEC; 6989 PUSH32(esp, ecx); /* 0x2B04E379: push ecx */ 6990 eax = ebp + (-0x1E0); /* 0x2B04E37A: lea eax, [ebp - 0x1e0] */ 6991 PUSH32(esp, eax); /* 0x2B04E380: push eax */ 6992 ecx = ebp + (-0xB8); /* 0x2B04E381: lea ecx, [ebp - 0xb8] */ 6993 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E387: call dword ptr [0x2b0b5148] */ 6994 RECOMP_FLAGS_IN(); 6995 ecx = ebp + (-0x4C); /* 0x2B04E38D: lea ecx, [ebp - 0x4c] */ 6996 PUSH32(esp, ecx); /* 0x2B04E390: push ecx */ 6997 edx = ebp + (-0x48); /* 0x2B04E391: lea edx, [ebp - 0x48] */ 6998 PUSH32(esp, edx); /* 0x2B04E394: push edx */ 6999 ecx = ebp + (-0xC8); /* 0x2B04E395: lea ecx, [ebp - 0xc8] */ 7000 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E39B: mov byte ptr [ebp - 4], 0x3e */ 7001 RECOMP_ICALL(0x2B053AC0u); /* 0x2B04E39F: call 0x2b053ac0 */ /* not lifted */ 7002 RECOMP_FLAGS_IN(); 7003 esi = MEM32(eax); /* 0x2B04E3A4: mov esi, dword ptr [eax] */ 7004 eax = MEM32(eax + 0x4); /* 0x2B04E3A6: mov eax, dword ptr [eax + 4] */ 7005 ecx = ebp + (-0x88); /* 0x2B04E3A9: lea ecx, [ebp - 0x88] */ 7006 PUSH32(esp, ecx); /* 0x2B04E3AF: push ecx */ 7007 edx = ebp + (-0xB8); /* 0x2B04E3B0: lea edx, [ebp - 0xb8] */ 7008 PUSH32(esp, edx); /* 0x2B04E3B6: push edx */ 7009 ecx = ebp + (-0xE0); /* 0x2B04E3B7: lea ecx, [ebp - 0xe0] */ 7010 MEM32(ebp + (-0x3C)) = eax; /* 0x2B04E3BD: mov dword ptr [ebp - 0x3c], eax */ 7011 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E3C0: mov dword ptr [ebp - 0x88], ebx */ 7012 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E3C6: mov dword ptr [ebp - 0x84], ebx */ 7013 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E3CC: call 0x2b051ac0 */ /* not lifted */ 7014 RECOMP_FLAGS_IN(); 7015 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E3D1: mov ecx, dword ptr [ebp - 0x28] */ 7016 PUSH32(esp, eax); /* 0x2B04E3D4: push eax */ 7017 eax = ebp + (-0x30); /* 0x2B04E3D5: lea eax, [ebp - 0x30] */ 7018 PUSH32(esp, eax); /* 0x2B04E3D8: push eax */ 7019 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Fu); /* 0x2B04E3D9: mov byte ptr [ebp - 4], 0x3f */ 7020 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E3DD: call 0x2b0519d0 */ /* not lifted */ 7021 RECOMP_FLAGS_IN(); 7022 edi = MEM32(eax); /* 0x2B04E3E2: mov edi, dword ptr [eax] */ 7023 PUSH32(esp, 1); /* 0x2B04E3E4: push 1 */ 7024 ecx = ebp + (-0xE0); /* 0x2B04E3E6: lea ecx, [ebp - 0xe0] */ 7025 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Eu); /* 0x2B04E3EC: mov byte ptr [ebp - 4], 0x3e */ 7026 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E3F0: call dword ptr [0x2b0b514c] */ 7027 RECOMP_FLAGS_IN(); 7028 ecx = MEM32(ebp + (-0x3C)); /* 0x2B04E3F6: mov ecx, dword ptr [ebp - 0x3c] */ 7029 MEM32(edi + 0x1C) = esi; /* 0x2B04E3F9: mov dword ptr [edi + 0x1c], esi */ 7030 MEM32(edi + 0x20) = ecx; /* 0x2B04E3FC: mov dword ptr [edi + 0x20], ecx */ 7031 PUSH32(esp, 1); /* 0x2B04E3FF: push 1 */ 7032 ecx = ebp + (-0xB8); /* 0x2B04E401: lea ecx, [ebp - 0xb8] */ 7033 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E407: mov byte ptr [ebp - 4], 0x3c */ 7034 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E40B: call dword ptr [0x2b0b514c] */ 7035 RECOMP_FLAGS_IN(); 7036 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B04E411: mov dl, byte ptr [ebp + 0xb] */ 7037 PUSH32(esp, ebx); /* 0x2B04E414: push ebx */ 7038 ecx = ebp + (-0x74); /* 0x2B04E415: lea ecx, [ebp - 0x74] */ 7039 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(edx)); /* 0x2B04E418: mov byte ptr [ebp - 0x74], dl */ 7040 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E41B: call dword ptr [0x2b0b514c] */ 7041 RECOMP_FLAGS_IN(); 7042 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7043 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E421: or ecx, 0xffffffff */ 7044 _cf = 0; 7045 _flag_k = FK_TEST; 7046 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7047 eax = 0; /* 0x2B04E424: xor eax, eax */ 7048 _cf = 0; 7049 _flag_k = FK_TEST; 7050 edi = ebp + (-0x1E0); /* 0x2B04E426: lea edi, [ebp - 0x1e0] */ 7051 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; } /* 0x2B04E42C: repne scasb al, byte ptr es:[edi] */ 7052 ecx = ~ecx; /* 0x2B04E42E: not ecx */ 7053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7054 ecx = ecx - 1; /* 0x2B04E430: dec ecx */ 7055 _flag_k = FK_DEC; 7056 PUSH32(esp, ecx); /* 0x2B04E431: push ecx */ 7057 eax = ebp + (-0x1E0); /* 0x2B04E432: lea eax, [ebp - 0x1e0] */ 7058 PUSH32(esp, eax); /* 0x2B04E438: push eax */ 7059 ecx = ebp + (-0x74); /* 0x2B04E439: lea ecx, [ebp - 0x74] */ 7060 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B04E43C: call dword ptr [0x2b0b5148] */ 7061 RECOMP_FLAGS_IN(); 7062 edx = MEM32(ebp + (-0x94)); /* 0x2B04E442: mov edx, dword ptr [ebp - 0x94] */ 7063 ecx = ebp + (-0x74); /* 0x2B04E448: lea ecx, [ebp - 0x74] */ 7064 PUSH32(esp, ecx); /* 0x2B04E44B: push ecx */ 7065 PUSH32(esp, edx); /* 0x2B04E44C: push edx */ 7066 ecx = ebp + (-0x9C); /* 0x2B04E44D: lea ecx, [ebp - 0x9c] */ 7067 MEM8(ebp + (-0x4)) = (uint8_t)(0x40u); /* 0x2B04E453: mov byte ptr [ebp - 4], 0x40 */ 7068 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E457: call 0x2b002e20 */ /* not lifted */ 7069 RECOMP_FLAGS_IN(); 7070 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E45C: mov byte ptr [ebp - 4], 0x3c */ 7071 PUSH32(esp, 1); /* 0x2B04E460: push 1 */ 7072 ecx = ebp + (-0x74); /* 0x2B04E462: lea ecx, [ebp - 0x74] */ 7073 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E465: call dword ptr [0x2b0b514c] */ 7074 RECOMP_FLAGS_IN(); 7075 esi = MEM32(0x2B0B5220); /* 0x2B04E46B: mov esi, dword ptr [0x2b0b5220] */ 7076 L_2B04E471: 7077 eax = MEM32(ebp + (-0x18)); /* 0x2B04E471: mov eax, dword ptr [ebp - 0x18] */ 7078 PUSH32(esp, eax); /* 0x2B04E474: push eax */ 7079 ecx = ebp + (-0x5E0); /* 0x2B04E475: lea ecx, [ebp - 0x5e0] */ 7080 PUSH32(esp, 0x400u); /* 0x2B04E47B: push 0x400 */ 7081 PUSH32(esp, ecx); /* 0x2B04E480: push ecx */ 7082 RECOMP_ICALL(MEM32(0x2B0B51D0)); /* 0x2B04E481: call dword ptr [0x2b0b51d0] */ 7083 RECOMP_FLAGS_IN(); 7084 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7086 esp = esp + 0xCu; /* 0x2B04E487: add esp, 0xc */ 7087 _flag_k = FK_ADD; 7088 /* test eax, eax */ /* 0x2B04E48A: test eax, eax */ 7089 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7090 _cf = 0; 7091 _flag_k = FK_TEST; 7092 RECOMP_BACKEDGE(); 7093 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E113; /* 0x2B04E48C: jne 0x2b04e113 */ 7094 L_2B04E492: 7095 edx = MEM32(ebp + (-0x18)); /* 0x2B04E492: mov edx, dword ptr [ebp - 0x18] */ 7096 PUSH32(esp, edx); /* 0x2B04E495: push edx */ 7097 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E496: call dword ptr [0x2b0b51cc] */ 7098 RECOMP_FLAGS_IN(); 7099 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7101 esp = esp + 4; /* 0x2B04E49C: add esp, 4 */ 7102 _flag_k = FK_ADD; 7103 /* cmp MEM8(ebp + 0x8), LO8(ebx) */ /* 0x2B04E49F: cmp byte ptr [ebp + 8], bl */ 7104 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7106 _flag_k = FK_NARROW(FK_CMP, 24); 7107 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7D4; /* 0x2B04E4A2: je 0x2b04e7d4 */ 7108 L_2B04E4A8: 7109 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E4A8: mov al, byte ptr [ebp + 0xb] */ 7110 MEM8(ebp + (-0x64)) = (uint8_t)(LO8(eax)); /* 0x2B04E4AB: mov byte ptr [ebp - 0x64], al */ 7111 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E4AE: mov dword ptr [ebp - 0x60], ebx */ 7112 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E4B1: mov dword ptr [ebp - 0x5c], ebx */ 7113 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E4B4: mov dword ptr [ebp - 0x58], ebx */ 7114 ecx = ebp + (-0x20); /* 0x2B04E4B7: lea ecx, [ebp - 0x20] */ 7115 PUSH32(esp, ecx); /* 0x2B04E4BA: push ecx */ 7116 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E4BB: mov ecx, dword ptr [ebp - 0x28] */ 7117 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E4BE: mov byte ptr [ebp - 4], 0x41 */ 7118 RECOMP_ICALL(0x2B018B60u); /* 0x2B04E4C2: call 0x2b018b60 */ /* not lifted */ 7119 RECOMP_FLAGS_IN(); 7120 edx = MEM32(ebp + (-0x80)); /* 0x2B04E4C7: mov edx, dword ptr [ebp - 0x80] */ 7121 eax = MEM32(eax); /* 0x2B04E4CA: mov eax, dword ptr [eax] */ 7122 /* cmp eax, MEM32(edx + 0x1A4) */ /* 0x2B04E4CC: cmp eax, dword ptr [edx + 0x1a4] */ 7123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x1A4)); 7124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7125 _flag_k = FK_CMP; 7126 MEM32(ebp + 0x8) = eax; /* 0x2B04E4D2: mov dword ptr [ebp + 8], eax */ 7127 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E53B; /* 0x2B04E4D5: je 0x2b04e53b */ 7128 L_2B04E4D7: 7129 ecx = MEM32(ebp + (-0x94)); /* 0x2B04E4D7: mov ecx, dword ptr [ebp - 0x94] */ 7130 esi = MEM32(ebp + (-0x98)); /* 0x2B04E4DD: mov esi, dword ptr [ebp - 0x98] */ 7131 /* cmp esi, ecx */ /* 0x2B04E4E3: cmp esi, ecx */ 7132 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 7133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7134 _flag_k = FK_CMP; 7135 edx = eax + 0xC; /* 0x2B04E4E5: lea edx, [eax + 0xc] */ 7136 edi = ecx; /* 0x2B04E4E8: mov edi, ecx */ 7137 MEM32(ebp + (-0x10)) = edx; /* 0x2B04E4EA: mov dword ptr [ebp - 0x10], edx */ 7138 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E513; /* 0x2B04E4ED: je 0x2b04e513 */ 7139 L_2B04E4EF: 7140 eax = MEM32(ebp + (-0x10)); /* 0x2B04E4EF: mov eax, dword ptr [ebp - 0x10] */ 7141 PUSH32(esp, eax); /* 0x2B04E4F2: push eax */ 7142 PUSH32(esp, esi); /* 0x2B04E4F3: push esi */ 7143 RECOMP_ICALL(MEM32(0x2B0B5180)); /* 0x2B04E4F4: call dword ptr [0x2b0b5180] */ 7144 RECOMP_FLAGS_IN(); 7145 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7146 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7147 esp = esp + 8; /* 0x2B04E4FA: add esp, 8 */ 7148 _flag_k = FK_ADD; 7149 /* test LO8(eax), LO8(eax) */ /* 0x2B04E4FD: test al, al */ 7150 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7151 _cf = 0; 7152 _flag_k = FK_NARROW(FK_TEST, 24); 7153 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04E508; /* 0x2B04E4FF: jne 0x2b04e508 */ 7154 L_2B04E501: 7155 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 7156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7157 esi = esi + 0x10u; /* 0x2B04E501: add esi, 0x10 */ 7158 _flag_k = FK_ADD; 7159 /* cmp esi, edi */ /* 0x2B04E504: cmp esi, edi */ 7160 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 7161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7162 _flag_k = FK_CMP; 7163 RECOMP_BACKEDGE(); 7164 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4EF; /* 0x2B04E506: jne 0x2b04e4ef */ 7165 L_2B04E508: 7166 /* cmp esi, MEM32(ebp + (-0x94)) */ /* 0x2B04E508: cmp esi, dword ptr [ebp - 0x94] */ 7167 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x94))); 7168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7169 _flag_k = FK_CMP; 7170 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E523; /* 0x2B04E50E: jne 0x2b04e523 */ 7171 L_2B04E510: 7172 eax = MEM32(ebp + 0x8); /* 0x2B04E510: mov eax, dword ptr [ebp + 8] */ 7173 L_2B04E513: 7174 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E513: mov ecx, dword ptr [ebp - 0x5c] */ 7175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 7176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7177 eax = eax + 0xCu; /* 0x2B04E516: add eax, 0xc */ 7178 _flag_k = FK_ADD; 7179 PUSH32(esp, eax); /* 0x2B04E519: push eax */ 7180 PUSH32(esp, ecx); /* 0x2B04E51A: push ecx */ 7181 ecx = ebp + (-0x64); /* 0x2B04E51B: lea ecx, [ebp - 0x64] */ 7182 RECOMP_ICALL(0x2B002E20u); /* 0x2B04E51E: call 0x2b002e20 */ /* not lifted */ 7183 RECOMP_FLAGS_IN(); 7184 L_2B04E523: 7185 ecx = ebp + 0x8; /* 0x2B04E523: lea ecx, [ebp + 8] */ 7186 RECOMP_ICALL(0x2B0199D0u); /* 0x2B04E526: call 0x2b0199d0 */ /* not lifted */ 7187 RECOMP_FLAGS_IN(); 7188 edx = MEM32(ebp + (-0x80)); /* 0x2B04E52B: mov edx, dword ptr [ebp - 0x80] */ 7189 ecx = MEM32(edx + 0x1A4); /* 0x2B04E52E: mov ecx, dword ptr [edx + 0x1a4] */ 7190 eax = MEM32(ebp + 0x8); /* 0x2B04E534: mov eax, dword ptr [ebp + 8] */ 7191 /* cmp eax, ecx */ /* 0x2B04E537: cmp eax, ecx */ 7192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7194 _flag_k = FK_CMP; 7195 RECOMP_BACKEDGE(); 7196 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E4D7; /* 0x2B04E539: jne 0x2b04e4d7 */ 7197 L_2B04E53B: 7198 ecx = ebp + (-0x64); /* 0x2B04E53B: lea ecx, [ebp - 0x64] */ 7199 RECOMP_ICALL(0x2B002FC0u); /* 0x2B04E53E: call 0x2b002fc0 */ /* not lifted */ 7200 RECOMP_FLAGS_IN(); 7201 /* test eax, eax */ /* 0x2B04E543: test eax, eax */ 7202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7203 _cf = 0; 7204 _flag_k = FK_TEST; 7205 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E7C8; /* 0x2B04E545: je 0x2b04e7c8 */ 7206 L_2B04E54B: 7207 PUSH32(esp, 0x2B0E8340u); /* 0x2B04E54B: push 0x2b0e8340 */ 7208 PUSH32(esp, 0x2B0E83C4u); /* 0x2B04E550: push 0x2b0e83c4 */ 7209 RECOMP_ICALL(MEM32(0x2B0B51C8)); /* 0x2B04E555: call dword ptr [0x2b0b51c8] */ 7210 RECOMP_FLAGS_IN(); 7211 esi = eax; /* 0x2B04E55B: mov esi, eax */ 7212 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7214 esp = esp + 8; /* 0x2B04E55D: add esp, 8 */ 7215 _flag_k = FK_ADD; 7216 /* cmp esi, ebx */ /* 0x2B04E560: cmp esi, ebx */ 7217 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 7218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7219 _flag_k = FK_CMP; 7220 MEM32(ebp + (-0x54)) = esi; /* 0x2B04E562: mov dword ptr [ebp - 0x54], esi */ 7221 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E5D2; /* 0x2B04E565: jne 0x2b04e5d2 */ 7222 L_2B04E567: 7223 eax = MEM32(ebp + (-0x5C)); /* 0x2B04E567: mov eax, dword ptr [ebp - 0x5c] */ 7224 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E56A: mov ecx, dword ptr [ebp - 0x60] */ 7225 PUSH32(esp, eax); /* 0x2B04E56D: push eax */ 7226 PUSH32(esp, ecx); /* 0x2B04E56E: push ecx */ 7227 ecx = ebp + (-0x64); /* 0x2B04E56F: lea ecx, [ebp - 0x64] */ 7228 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E572: mov byte ptr [ebp - 4], 0x3c */ 7229 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E576: call 0x2b002fe0 */ /* not lifted */ 7230 RECOMP_FLAGS_IN(); 7231 edx = MEM32(ebp + (-0x60)); /* 0x2B04E57B: mov edx, dword ptr [ebp - 0x60] */ 7232 PUSH32(esp, edx); /* 0x2B04E57E: push edx */ 7233 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E57F: call 0x2b0ab1ba */ /* not lifted */ 7234 RECOMP_FLAGS_IN(); 7235 eax = MEM32(ebp + (-0x94)); /* 0x2B04E584: mov eax, dword ptr [ebp - 0x94] */ 7236 ecx = MEM32(ebp + (-0x98)); /* 0x2B04E58A: mov ecx, dword ptr [ebp - 0x98] */ 7237 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7238 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7239 esp = esp + 4; /* 0x2B04E590: add esp, 4 */ 7240 _flag_k = FK_ADD; 7241 PUSH32(esp, eax); /* 0x2B04E593: push eax */ 7242 PUSH32(esp, ecx); /* 0x2B04E594: push ecx */ 7243 ecx = ebp + (-0x9C); /* 0x2B04E595: lea ecx, [ebp - 0x9c] */ 7244 MEM32(ebp + (-0x60)) = ebx; /* 0x2B04E59B: mov dword ptr [ebp - 0x60], ebx */ 7245 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04E59E: mov dword ptr [ebp - 0x5c], ebx */ 7246 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04E5A1: mov dword ptr [ebp - 0x58], ebx */ 7247 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E5A4: mov dword ptr [ebp - 4], 0xffffffff */ 7248 RECOMP_ICALL(0x2B002FE0u); /* 0x2B04E5AB: call 0x2b002fe0 */ /* not lifted */ 7249 RECOMP_FLAGS_IN(); 7250 edx = MEM32(ebp + (-0x98)); /* 0x2B04E5B0: mov edx, dword ptr [ebp - 0x98] */ 7251 PUSH32(esp, edx); /* 0x2B04E5B6: push edx */ 7252 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04E5B7: call 0x2b0ab1ba */ /* not lifted */ 7253 RECOMP_FLAGS_IN(); 7254 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7256 esp = esp + 4; /* 0x2B04E5BC: add esp, 4 */ 7257 _flag_k = FK_ADD; 7258 edi = POP32_VAL(esp); /* 0x2B04E5BF: pop edi */ 7259 esi = POP32_VAL(esp); /* 0x2B04E5C0: pop esi */ 7260 ebx = POP32_VAL(esp); /* 0x2B04E5C1: pop ebx */ 7261 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E5C2: mov ecx, dword ptr [ebp - 0xc] */ 7262 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E5C5: mov dword ptr fs:[0], ecx */ 7263 esp = ebp; /* 0x2B04E5CC: mov esp, ebp */ 7264 ebp = POP32_VAL(esp); /* 0x2B04E5CE: pop ebp */ 7265 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E5CF: ret 4 */ 7266 L_2B04E5D2: 7267 /* cmp MEM8(ebp + (-0x41)), LO8(ebx) */ /* 0x2B04E5D2: cmp byte ptr [ebp - 0x41], bl */ 7268 _flag_a = (uint32_t)(MEM8(ebp + (-0x41))) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7270 _flag_k = FK_NARROW(FK_CMP, 24); 7271 edi = MEM32(0x2B0B5200); /* 0x2B04E5D5: mov edi, dword ptr [0x2b0b5200] */ 7272 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04E69A; /* 0x2B04E5DB: jne 0x2b04e69a */ 7273 L_2B04E5E1: 7274 PUSH32(esp, 0x2B0E8320u); /* 0x2B04E5E1: push 0x2b0e8320 */ 7275 PUSH32(esp, esi); /* 0x2B04E5E6: push esi */ 7276 RECOMP_ICALL(edi); /* 0x2B04E5E7: call edi */ 7277 RECOMP_FLAGS_IN(); 7278 PUSH32(esp, 0x2B0E82D4u); /* 0x2B04E5E9: push 0x2b0e82d4 */ 7279 PUSH32(esp, esi); /* 0x2B04E5EE: push esi */ 7280 RECOMP_ICALL(edi); /* 0x2B04E5EF: call edi */ 7281 RECOMP_FLAGS_IN(); 7282 PUSH32(esp, 0x2B0E8294u); /* 0x2B04E5F1: push 0x2b0e8294 */ 7283 PUSH32(esp, esi); /* 0x2B04E5F6: push esi */ 7284 RECOMP_ICALL(edi); /* 0x2B04E5F7: call edi */ 7285 RECOMP_FLAGS_IN(); 7286 PUSH32(esp, 0x2B0E825Cu); /* 0x2B04E5F9: push 0x2b0e825c */ 7287 PUSH32(esp, esi); /* 0x2B04E5FE: push esi */ 7288 RECOMP_ICALL(edi); /* 0x2B04E5FF: call edi */ 7289 RECOMP_FLAGS_IN(); 7290 PUSH32(esp, 0x2B0E821Cu); /* 0x2B04E601: push 0x2b0e821c */ 7291 PUSH32(esp, esi); /* 0x2B04E606: push esi */ 7292 RECOMP_ICALL(edi); /* 0x2B04E607: call edi */ 7293 RECOMP_FLAGS_IN(); 7294 PUSH32(esp, 0x2B0E8210u); /* 0x2B04E609: push 0x2b0e8210 */ 7295 PUSH32(esp, esi); /* 0x2B04E60E: push esi */ 7296 RECOMP_ICALL(edi); /* 0x2B04E60F: call edi */ 7297 RECOMP_FLAGS_IN(); 7298 PUSH32(esp, 0x2B0E81C4u); /* 0x2B04E611: push 0x2b0e81c4 */ 7299 PUSH32(esp, esi); /* 0x2B04E616: push esi */ 7300 RECOMP_ICALL(edi); /* 0x2B04E617: call edi */ 7301 RECOMP_FLAGS_IN(); 7302 PUSH32(esp, 0x2B0E817Cu); /* 0x2B04E619: push 0x2b0e817c */ 7303 PUSH32(esp, esi); /* 0x2B04E61E: push esi */ 7304 RECOMP_ICALL(edi); /* 0x2B04E61F: call edi */ 7305 RECOMP_FLAGS_IN(); 7306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 7307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7308 esp = esp + 0x40u; /* 0x2B04E621: add esp, 0x40 */ 7309 _flag_k = FK_ADD; 7310 PUSH32(esp, 0x2B0E8138u); /* 0x2B04E624: push 0x2b0e8138 */ 7311 PUSH32(esp, esi); /* 0x2B04E629: push esi */ 7312 RECOMP_ICALL(edi); /* 0x2B04E62A: call edi */ 7313 RECOMP_FLAGS_IN(); 7314 PUSH32(esp, 0x2B0E8120u); /* 0x2B04E62C: push 0x2b0e8120 */ 7315 PUSH32(esp, esi); /* 0x2B04E631: push esi */ 7316 RECOMP_ICALL(edi); /* 0x2B04E632: call edi */ 7317 RECOMP_FLAGS_IN(); 7318 PUSH32(esp, 0x2B0E810Cu); /* 0x2B04E634: push 0x2b0e810c */ 7319 PUSH32(esp, esi); /* 0x2B04E639: push esi */ 7320 RECOMP_ICALL(edi); /* 0x2B04E63A: call edi */ 7321 RECOMP_FLAGS_IN(); 7322 PUSH32(esp, 0x2B0E80BCu); /* 0x2B04E63C: push 0x2b0e80bc */ 7323 PUSH32(esp, esi); /* 0x2B04E641: push esi */ 7324 RECOMP_ICALL(edi); /* 0x2B04E642: call edi */ 7325 RECOMP_FLAGS_IN(); 7326 PUSH32(esp, 0x2B0E8068u); /* 0x2B04E644: push 0x2b0e8068 */ 7327 PUSH32(esp, esi); /* 0x2B04E649: push esi */ 7328 RECOMP_ICALL(edi); /* 0x2B04E64A: call edi */ 7329 RECOMP_FLAGS_IN(); 7330 PUSH32(esp, 0x2B0E8018u); /* 0x2B04E64C: push 0x2b0e8018 */ 7331 PUSH32(esp, esi); /* 0x2B04E651: push esi */ 7332 RECOMP_ICALL(edi); /* 0x2B04E652: call edi */ 7333 RECOMP_FLAGS_IN(); 7334 PUSH32(esp, 0x2B0E7FC4u); /* 0x2B04E654: push 0x2b0e7fc4 */ 7335 PUSH32(esp, esi); /* 0x2B04E659: push esi */ 7336 RECOMP_ICALL(edi); /* 0x2B04E65A: call edi */ 7337 RECOMP_FLAGS_IN(); 7338 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E65C: push 0x2b0e2bf8 */ 7339 PUSH32(esp, esi); /* 0x2B04E661: push esi */ 7340 RECOMP_ICALL(edi); /* 0x2B04E662: call edi */ 7341 RECOMP_FLAGS_IN(); 7342 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 7343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7344 esp = esp + 0x40u; /* 0x2B04E664: add esp, 0x40 */ 7345 _flag_k = FK_ADD; 7346 PUSH32(esp, 0x2B0E7F8Cu); /* 0x2B04E667: push 0x2b0e7f8c */ 7347 PUSH32(esp, esi); /* 0x2B04E66C: push esi */ 7348 RECOMP_ICALL(edi); /* 0x2B04E66D: call edi */ 7349 RECOMP_FLAGS_IN(); 7350 PUSH32(esp, 0x2B0E7F54u); /* 0x2B04E66F: push 0x2b0e7f54 */ 7351 PUSH32(esp, esi); /* 0x2B04E674: push esi */ 7352 RECOMP_ICALL(edi); /* 0x2B04E675: call edi */ 7353 RECOMP_FLAGS_IN(); 7354 PUSH32(esp, 0x2B0E7F18u); /* 0x2B04E677: push 0x2b0e7f18 */ 7355 PUSH32(esp, esi); /* 0x2B04E67C: push esi */ 7356 RECOMP_ICALL(edi); /* 0x2B04E67D: call edi */ 7357 RECOMP_FLAGS_IN(); 7358 PUSH32(esp, 0x2B0E7ED4u); /* 0x2B04E67F: push 0x2b0e7ed4 */ 7359 PUSH32(esp, esi); /* 0x2B04E684: push esi */ 7360 RECOMP_ICALL(edi); /* 0x2B04E685: call edi */ 7361 RECOMP_FLAGS_IN(); 7362 PUSH32(esp, 0x2B0E7EACu); /* 0x2B04E687: push 0x2b0e7eac */ 7363 PUSH32(esp, esi); /* 0x2B04E68C: push esi */ 7364 RECOMP_ICALL(edi); /* 0x2B04E68D: call edi */ 7365 RECOMP_FLAGS_IN(); 7366 PUSH32(esp, 0x2B0E2BF8u); /* 0x2B04E68F: push 0x2b0e2bf8 */ 7367 PUSH32(esp, esi); /* 0x2B04E694: push esi */ 7368 RECOMP_ICALL(edi); /* 0x2B04E695: call edi */ 7369 RECOMP_FLAGS_IN(); 7370 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 7371 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7372 esp = esp + 0x30u; /* 0x2B04E697: add esp, 0x30 */ 7373 _flag_k = FK_ADD; 7374 L_2B04E69A: 7375 MEM32(ebp + (-0x18)) = ebx; /* 0x2B04E69A: mov dword ptr [ebp - 0x18], ebx */ 7376 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7377 edi = 0; /* 0x2B04E69D: xor edi, edi */ 7378 _cf = 0; 7379 _flag_k = FK_TEST; 7380 L_2B04E69F: 7381 eax = MEM32(ebp + (-0x60)); /* 0x2B04E69F: mov eax, dword ptr [ebp - 0x60] */ 7382 /* cmp eax, ebx */ /* 0x2B04E6A2: cmp eax, ebx */ 7383 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7385 _flag_k = FK_CMP; 7386 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6A4: je 0x2b04e7be */ 7387 L_2B04E6AA: 7388 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E6AA: mov ecx, dword ptr [ebp - 0x5c] */ 7389 edx = MEM32(ebp + (-0x18)); /* 0x2B04E6AD: mov edx, dword ptr [ebp - 0x18] */ 7390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7392 ecx = ecx - eax; /* 0x2B04E6B0: sub ecx, eax */ 7393 _flag_k = FK_CMP; 7394 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B04E6B2: sar ecx, 4 */ 7395 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7396 ecx = (uint32_t)((int32_t)ecx >> 4u); 7397 /* cmp edx, ecx */ /* 0x2B04E6B5: cmp edx, ecx */ 7398 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7400 _flag_k = FK_CMP; 7401 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6B7: jae 0x2b04e7be */ 7402 L_2B04E6BD: 7403 edx = ebp + (-0x88); /* 0x2B04E6BD: lea edx, [ebp - 0x88] */ 7404 PUSH32(esp, edx); /* 0x2B04E6C3: push edx */ 7405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7407 eax = eax + edi; /* 0x2B04E6C4: add eax, edi */ 7408 _flag_k = FK_ADD; 7409 PUSH32(esp, eax); /* 0x2B04E6C6: push eax */ 7410 ecx = ebp + (-0xE0); /* 0x2B04E6C7: lea ecx, [ebp - 0xe0] */ 7411 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E6CD: mov dword ptr [ebp - 0x88], ebx */ 7412 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E6D3: mov dword ptr [ebp - 0x84], ebx */ 7413 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E6D9: call 0x2b051ac0 */ /* not lifted */ 7414 RECOMP_FLAGS_IN(); 7415 PUSH32(esp, eax); /* 0x2B04E6DE: push eax */ 7416 ecx = ebp + (-0x30); /* 0x2B04E6DF: lea ecx, [ebp - 0x30] */ 7417 PUSH32(esp, ecx); /* 0x2B04E6E2: push ecx */ 7418 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E6E3: mov ecx, dword ptr [ebp - 0x28] */ 7419 MEM8(ebp + (-0x4)) = (uint8_t)(0x42u); /* 0x2B04E6E6: mov byte ptr [ebp - 4], 0x42 */ 7420 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E6EA: call 0x2b0519d0 */ /* not lifted */ 7421 RECOMP_FLAGS_IN(); 7422 esi = MEM32(eax); /* 0x2B04E6EF: mov esi, dword ptr [eax] */ 7423 PUSH32(esp, 1); /* 0x2B04E6F1: push 1 */ 7424 ecx = ebp + (-0xE0); /* 0x2B04E6F3: lea ecx, [ebp - 0xe0] */ 7425 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E6F9: mov byte ptr [ebp - 4], 0x41 */ 7426 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E6FD: call dword ptr [0x2b0b514c] */ 7427 RECOMP_FLAGS_IN(); 7428 edx = MEM32(esi + 0x1C); /* 0x2B04E703: mov edx, dword ptr [esi + 0x1c] */ 7429 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E706: mov ecx, dword ptr [ebp - 0x60] */ 7430 eax = ebp + (-0xA4); /* 0x2B04E709: lea eax, [ebp - 0xa4] */ 7431 MEM32(ebp + (-0x1C)) = edx; /* 0x2B04E70F: mov dword ptr [ebp - 0x1c], edx */ 7432 edx = edi + ecx; /* 0x2B04E712: lea edx, [edi + ecx] */ 7433 PUSH32(esp, eax); /* 0x2B04E715: push eax */ 7434 PUSH32(esp, edx); /* 0x2B04E716: push edx */ 7435 ecx = ebp + (-0xC0); /* 0x2B04E717: lea ecx, [ebp - 0xc0] */ 7436 MEM32(ebp + (-0xA4)) = ebx; /* 0x2B04E71D: mov dword ptr [ebp - 0xa4], ebx */ 7437 MEM32(ebp + (-0xA0)) = ebx; /* 0x2B04E723: mov dword ptr [ebp - 0xa0], ebx */ 7438 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E729: call 0x2b051ac0 */ /* not lifted */ 7439 RECOMP_FLAGS_IN(); 7440 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E72E: mov ecx, dword ptr [ebp - 0x28] */ 7441 PUSH32(esp, eax); /* 0x2B04E731: push eax */ 7442 eax = ebp + (-0xC8); /* 0x2B04E732: lea eax, [ebp - 0xc8] */ 7443 PUSH32(esp, eax); /* 0x2B04E738: push eax */ 7444 MEM8(ebp + (-0x4)) = (uint8_t)(0x43u); /* 0x2B04E739: mov byte ptr [ebp - 4], 0x43 */ 7445 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E73D: call 0x2b0519d0 */ /* not lifted */ 7446 RECOMP_FLAGS_IN(); 7447 esi = MEM32(eax); /* 0x2B04E742: mov esi, dword ptr [eax] */ 7448 PUSH32(esp, 1); /* 0x2B04E744: push 1 */ 7449 ecx = ebp + (-0xC0); /* 0x2B04E746: lea ecx, [ebp - 0xc0] */ 7450 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E74C: mov byte ptr [ebp - 4], 0x41 */ 7451 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E750: call dword ptr [0x2b0b514c] */ 7452 RECOMP_FLAGS_IN(); 7453 edx = MEM32(ebp + (-0x60)); /* 0x2B04E756: mov edx, dword ptr [ebp - 0x60] */ 7454 ecx = MEM32(esi + 0x20); /* 0x2B04E759: mov ecx, dword ptr [esi + 0x20] */ 7455 eax = MEM32(edi + edx + 0x4); /* 0x2B04E75C: mov eax, dword ptr [edi + edx + 4] */ 7456 /* cmp eax, ebx */ /* 0x2B04E760: cmp eax, ebx */ 7457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7459 _flag_k = FK_CMP; 7460 esi = MEM32(0x2B0B513C); /* 0x2B04E762: mov esi, dword ptr [0x2b0b513c] */ 7461 MEM32(ebp + (-0x10)) = ecx; /* 0x2B04E768: mov dword ptr [ebp - 0x10], ecx */ 7462 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E76F; /* 0x2B04E76B: je 0x2b04e76f */ 7463 L_2B04E76D: 7464 esi = eax; /* 0x2B04E76D: mov esi, eax */ 7465 L_2B04E76F: 7466 eax = ecx; /* 0x2B04E76F: mov eax, ecx */ 7467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 7468 eax = eax & 0xFFu; /* 0x2B04E771: and eax, 0xff */ 7469 _cf = 0; 7470 _flag_k = FK_TEST; 7471 PUSH32(esp, eax); /* 0x2B04E776: push eax */ 7472 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7473 edx = 0; /* 0x2B04E777: xor edx, edx */ 7474 _cf = 0; 7475 _flag_k = FK_TEST; 7476 SET_LO8(edx, HI8(ecx)); /* 0x2B04E779: mov dl, ch */ 7477 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E77B: mov ecx, dword ptr [ebp - 0x1c] */ 7478 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7479 eax = 0; /* 0x2B04E77E: xor eax, eax */ 7480 _cf = 0; 7481 _flag_k = FK_TEST; 7482 SET_LO8(eax, MEM8(ebp + (-0xE))); /* 0x2B04E780: mov al, byte ptr [ebp - 0xe] */ 7483 PUSH32(esp, edx); /* 0x2B04E783: push edx */ 7484 edx = ecx; /* 0x2B04E784: mov edx, ecx */ 7485 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 7486 edx = edx & 0xFFu; /* 0x2B04E786: and edx, 0xff */ 7487 _cf = 0; 7488 _flag_k = FK_TEST; 7489 PUSH32(esp, eax); /* 0x2B04E78C: push eax */ 7490 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7491 eax = 0; /* 0x2B04E78D: xor eax, eax */ 7492 _cf = 0; 7493 _flag_k = FK_TEST; 7494 SET_LO8(eax, HI8(ecx)); /* 0x2B04E78F: mov al, ch */ 7495 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7496 ecx = 0; /* 0x2B04E791: xor ecx, ecx */ 7497 _cf = 0; 7498 _flag_k = FK_TEST; 7499 SET_LO8(ecx, MEM8(ebp + (-0x1A))); /* 0x2B04E793: mov cl, byte ptr [ebp - 0x1a] */ 7500 PUSH32(esp, edx); /* 0x2B04E796: push edx */ 7501 edx = MEM32(ebp + (-0x54)); /* 0x2B04E797: mov edx, dword ptr [ebp - 0x54] */ 7502 PUSH32(esp, eax); /* 0x2B04E79A: push eax */ 7503 PUSH32(esp, ecx); /* 0x2B04E79B: push ecx */ 7504 PUSH32(esp, esi); /* 0x2B04E79C: push esi */ 7505 PUSH32(esp, 0x2B0E7E8Cu); /* 0x2B04E79D: push 0x2b0e7e8c */ 7506 PUSH32(esp, edx); /* 0x2B04E7A2: push edx */ 7507 RECOMP_ICALL(MEM32(0x2B0B5200)); /* 0x2B04E7A3: call dword ptr [0x2b0b5200] */ 7508 RECOMP_FLAGS_IN(); 7509 ecx = MEM32(ebp + (-0x18)); /* 0x2B04E7A9: mov ecx, dword ptr [ebp - 0x18] */ 7510 esi = MEM32(ebp + (-0x54)); /* 0x2B04E7AC: mov esi, dword ptr [ebp - 0x54] */ 7511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 7512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7513 esp = esp + 0x24u; /* 0x2B04E7AF: add esp, 0x24 */ 7514 _flag_k = FK_ADD; 7515 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7516 ecx = ecx + 1; /* 0x2B04E7B2: inc ecx */ 7517 _flag_k = FK_INC; 7518 MEM32(ebp + (-0x18)) = ecx; /* 0x2B04E7B3: mov dword ptr [ebp - 0x18], ecx */ 7519 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 7520 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7521 edi = edi + 0x10u; /* 0x2B04E7B6: add edi, 0x10 */ 7522 _flag_k = FK_ADD; 7523 RECOMP_BACKEDGE(); 7524 goto L_2B04E69F; /* 0x2B04E7B9: jmp 0x2b04e69f */ 7525 L_2B04E7BE: 7526 PUSH32(esp, esi); /* 0x2B04E7BE: push esi */ 7527 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E7BF: call dword ptr [0x2b0b51cc] */ 7528 RECOMP_FLAGS_IN(); 7529 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7531 esp = esp + 4; /* 0x2B04E7C5: add esp, 4 */ 7532 _flag_k = FK_ADD; 7533 L_2B04E7C8: 7534 ecx = ebp + (-0x64); /* 0x2B04E7C8: lea ecx, [ebp - 0x64] */ 7535 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E7CB: mov byte ptr [ebp - 4], 0x3c */ 7536 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7CF: call 0x2b002db0 */ /* not lifted */ 7537 RECOMP_FLAGS_IN(); 7538 L_2B04E7D4: 7539 ecx = ebp + (-0x9C); /* 0x2B04E7D4: lea ecx, [ebp - 0x9c] */ 7540 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E7DA: mov dword ptr [ebp - 4], 0xffffffff */ 7541 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7E1: call 0x2b002db0 */ /* not lifted */ 7542 RECOMP_FLAGS_IN(); 7543 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E7E6: mov ecx, dword ptr [ebp - 0xc] */ 7544 edi = POP32_VAL(esp); /* 0x2B04E7E9: pop edi */ 7545 esi = POP32_VAL(esp); /* 0x2B04E7EA: pop esi */ 7546 ebx = POP32_VAL(esp); /* 0x2B04E7EB: pop ebx */ 7547 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E7EC: mov dword ptr fs:[0], ecx */ 7548 esp = ebp; /* 0x2B04E7F3: mov esp, ebp */ 7549 ebp = POP32_VAL(esp); /* 0x2B04E7F5: pop ebp */ 7550 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E7F6: ret 4 */ 7551 RECOMP_REGS_OUT(); 7552 } 7553 7554 void sub_2B04E69F(void) { 7555 int _fpu_cmp = 0; 7556 uint32_t _cf = 0; 7557 int _df = 1; 7558 uint32_t _flag_k = FK_NONE; 7559 uint32_t _flag_a = 0, _flag_b = 0; 7560 uint32_t _itail_tgt = 0; 7561 RECOMP_REGS_LOCALS 7562 RECOMP_ENTER(0x2B04E69Fu); 7563 7564 L_2B04E69F: 7565 eax = MEM32(ebp + (-0x60)); /* 0x2B04E69F: mov eax, dword ptr [ebp - 0x60] */ 7566 /* cmp eax, ebx */ /* 0x2B04E6A2: cmp eax, ebx */ 7567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7569 _flag_k = FK_CMP; 7570 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6A4: je 0x2b04e7be */ 7571 L_2B04E6AA: 7572 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04E6AA: mov ecx, dword ptr [ebp - 0x5c] */ 7573 edx = MEM32(ebp + (-0x18)); /* 0x2B04E6AD: mov edx, dword ptr [ebp - 0x18] */ 7574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7576 ecx = ecx - eax; /* 0x2B04E6B0: sub ecx, eax */ 7577 _flag_k = FK_CMP; 7578 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B04E6B2: sar ecx, 4 */ 7579 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7580 ecx = (uint32_t)((int32_t)ecx >> 4u); 7581 /* cmp edx, ecx */ /* 0x2B04E6B5: cmp edx, ecx */ 7582 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7584 _flag_k = FK_CMP; 7585 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04E7BE; /* 0x2B04E6B7: jae 0x2b04e7be */ 7586 L_2B04E6BD: 7587 edx = ebp + (-0x88); /* 0x2B04E6BD: lea edx, [ebp - 0x88] */ 7588 PUSH32(esp, edx); /* 0x2B04E6C3: push edx */ 7589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7590 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7591 eax = eax + edi; /* 0x2B04E6C4: add eax, edi */ 7592 _flag_k = FK_ADD; 7593 PUSH32(esp, eax); /* 0x2B04E6C6: push eax */ 7594 ecx = ebp + (-0xE0); /* 0x2B04E6C7: lea ecx, [ebp - 0xe0] */ 7595 MEM32(ebp + (-0x88)) = ebx; /* 0x2B04E6CD: mov dword ptr [ebp - 0x88], ebx */ 7596 MEM32(ebp + (-0x84)) = ebx; /* 0x2B04E6D3: mov dword ptr [ebp - 0x84], ebx */ 7597 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E6D9: call 0x2b051ac0 */ /* not lifted */ 7598 RECOMP_FLAGS_IN(); 7599 PUSH32(esp, eax); /* 0x2B04E6DE: push eax */ 7600 ecx = ebp + (-0x30); /* 0x2B04E6DF: lea ecx, [ebp - 0x30] */ 7601 PUSH32(esp, ecx); /* 0x2B04E6E2: push ecx */ 7602 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E6E3: mov ecx, dword ptr [ebp - 0x28] */ 7603 MEM8(ebp + (-0x4)) = (uint8_t)(0x42u); /* 0x2B04E6E6: mov byte ptr [ebp - 4], 0x42 */ 7604 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E6EA: call 0x2b0519d0 */ /* not lifted */ 7605 RECOMP_FLAGS_IN(); 7606 esi = MEM32(eax); /* 0x2B04E6EF: mov esi, dword ptr [eax] */ 7607 PUSH32(esp, 1); /* 0x2B04E6F1: push 1 */ 7608 ecx = ebp + (-0xE0); /* 0x2B04E6F3: lea ecx, [ebp - 0xe0] */ 7609 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E6F9: mov byte ptr [ebp - 4], 0x41 */ 7610 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E6FD: call dword ptr [0x2b0b514c] */ 7611 RECOMP_FLAGS_IN(); 7612 edx = MEM32(esi + 0x1C); /* 0x2B04E703: mov edx, dword ptr [esi + 0x1c] */ 7613 ecx = MEM32(ebp + (-0x60)); /* 0x2B04E706: mov ecx, dword ptr [ebp - 0x60] */ 7614 eax = ebp + (-0xA4); /* 0x2B04E709: lea eax, [ebp - 0xa4] */ 7615 MEM32(ebp + (-0x1C)) = edx; /* 0x2B04E70F: mov dword ptr [ebp - 0x1c], edx */ 7616 edx = edi + ecx; /* 0x2B04E712: lea edx, [edi + ecx] */ 7617 PUSH32(esp, eax); /* 0x2B04E715: push eax */ 7618 PUSH32(esp, edx); /* 0x2B04E716: push edx */ 7619 ecx = ebp + (-0xC0); /* 0x2B04E717: lea ecx, [ebp - 0xc0] */ 7620 MEM32(ebp + (-0xA4)) = ebx; /* 0x2B04E71D: mov dword ptr [ebp - 0xa4], ebx */ 7621 MEM32(ebp + (-0xA0)) = ebx; /* 0x2B04E723: mov dword ptr [ebp - 0xa0], ebx */ 7622 RECOMP_ICALL(0x2B051AC0u); /* 0x2B04E729: call 0x2b051ac0 */ /* not lifted */ 7623 RECOMP_FLAGS_IN(); 7624 ecx = MEM32(ebp + (-0x28)); /* 0x2B04E72E: mov ecx, dword ptr [ebp - 0x28] */ 7625 PUSH32(esp, eax); /* 0x2B04E731: push eax */ 7626 eax = ebp + (-0xC8); /* 0x2B04E732: lea eax, [ebp - 0xc8] */ 7627 PUSH32(esp, eax); /* 0x2B04E738: push eax */ 7628 MEM8(ebp + (-0x4)) = (uint8_t)(0x43u); /* 0x2B04E739: mov byte ptr [ebp - 4], 0x43 */ 7629 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E73D: call 0x2b0519d0 */ /* not lifted */ 7630 RECOMP_FLAGS_IN(); 7631 esi = MEM32(eax); /* 0x2B04E742: mov esi, dword ptr [eax] */ 7632 PUSH32(esp, 1); /* 0x2B04E744: push 1 */ 7633 ecx = ebp + (-0xC0); /* 0x2B04E746: lea ecx, [ebp - 0xc0] */ 7634 MEM8(ebp + (-0x4)) = (uint8_t)(0x41u); /* 0x2B04E74C: mov byte ptr [ebp - 4], 0x41 */ 7635 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E750: call dword ptr [0x2b0b514c] */ 7636 RECOMP_FLAGS_IN(); 7637 edx = MEM32(ebp + (-0x60)); /* 0x2B04E756: mov edx, dword ptr [ebp - 0x60] */ 7638 ecx = MEM32(esi + 0x20); /* 0x2B04E759: mov ecx, dword ptr [esi + 0x20] */ 7639 eax = MEM32(edi + edx + 0x4); /* 0x2B04E75C: mov eax, dword ptr [edi + edx + 4] */ 7640 /* cmp eax, ebx */ /* 0x2B04E760: cmp eax, ebx */ 7641 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7643 _flag_k = FK_CMP; 7644 esi = MEM32(0x2B0B513C); /* 0x2B04E762: mov esi, dword ptr [0x2b0b513c] */ 7645 MEM32(ebp + (-0x10)) = ecx; /* 0x2B04E768: mov dword ptr [ebp - 0x10], ecx */ 7646 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04E76F; /* 0x2B04E76B: je 0x2b04e76f */ 7647 L_2B04E76D: 7648 esi = eax; /* 0x2B04E76D: mov esi, eax */ 7649 L_2B04E76F: 7650 eax = ecx; /* 0x2B04E76F: mov eax, ecx */ 7651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 7652 eax = eax & 0xFFu; /* 0x2B04E771: and eax, 0xff */ 7653 _cf = 0; 7654 _flag_k = FK_TEST; 7655 PUSH32(esp, eax); /* 0x2B04E776: push eax */ 7656 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7657 edx = 0; /* 0x2B04E777: xor edx, edx */ 7658 _cf = 0; 7659 _flag_k = FK_TEST; 7660 SET_LO8(edx, HI8(ecx)); /* 0x2B04E779: mov dl, ch */ 7661 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04E77B: mov ecx, dword ptr [ebp - 0x1c] */ 7662 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7663 eax = 0; /* 0x2B04E77E: xor eax, eax */ 7664 _cf = 0; 7665 _flag_k = FK_TEST; 7666 SET_LO8(eax, MEM8(ebp + (-0xE))); /* 0x2B04E780: mov al, byte ptr [ebp - 0xe] */ 7667 PUSH32(esp, edx); /* 0x2B04E783: push edx */ 7668 edx = ecx; /* 0x2B04E784: mov edx, ecx */ 7669 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 7670 edx = edx & 0xFFu; /* 0x2B04E786: and edx, 0xff */ 7671 _cf = 0; 7672 _flag_k = FK_TEST; 7673 PUSH32(esp, eax); /* 0x2B04E78C: push eax */ 7674 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7675 eax = 0; /* 0x2B04E78D: xor eax, eax */ 7676 _cf = 0; 7677 _flag_k = FK_TEST; 7678 SET_LO8(eax, HI8(ecx)); /* 0x2B04E78F: mov al, ch */ 7679 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7680 ecx = 0; /* 0x2B04E791: xor ecx, ecx */ 7681 _cf = 0; 7682 _flag_k = FK_TEST; 7683 SET_LO8(ecx, MEM8(ebp + (-0x1A))); /* 0x2B04E793: mov cl, byte ptr [ebp - 0x1a] */ 7684 PUSH32(esp, edx); /* 0x2B04E796: push edx */ 7685 edx = MEM32(ebp + (-0x54)); /* 0x2B04E797: mov edx, dword ptr [ebp - 0x54] */ 7686 PUSH32(esp, eax); /* 0x2B04E79A: push eax */ 7687 PUSH32(esp, ecx); /* 0x2B04E79B: push ecx */ 7688 PUSH32(esp, esi); /* 0x2B04E79C: push esi */ 7689 PUSH32(esp, 0x2B0E7E8Cu); /* 0x2B04E79D: push 0x2b0e7e8c */ 7690 PUSH32(esp, edx); /* 0x2B04E7A2: push edx */ 7691 RECOMP_ICALL(MEM32(0x2B0B5200)); /* 0x2B04E7A3: call dword ptr [0x2b0b5200] */ 7692 RECOMP_FLAGS_IN(); 7693 ecx = MEM32(ebp + (-0x18)); /* 0x2B04E7A9: mov ecx, dword ptr [ebp - 0x18] */ 7694 esi = MEM32(ebp + (-0x54)); /* 0x2B04E7AC: mov esi, dword ptr [ebp - 0x54] */ 7695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 7696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7697 esp = esp + 0x24u; /* 0x2B04E7AF: add esp, 0x24 */ 7698 _flag_k = FK_ADD; 7699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7700 ecx = ecx + 1; /* 0x2B04E7B2: inc ecx */ 7701 _flag_k = FK_INC; 7702 MEM32(ebp + (-0x18)) = ecx; /* 0x2B04E7B3: mov dword ptr [ebp - 0x18], ecx */ 7703 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 7704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7705 edi = edi + 0x10u; /* 0x2B04E7B6: add edi, 0x10 */ 7706 _flag_k = FK_ADD; 7707 RECOMP_BACKEDGE(); 7708 goto L_2B04E69F; /* 0x2B04E7B9: jmp 0x2b04e69f */ 7709 L_2B04E7BE: 7710 PUSH32(esp, esi); /* 0x2B04E7BE: push esi */ 7711 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B04E7BF: call dword ptr [0x2b0b51cc] */ 7712 RECOMP_FLAGS_IN(); 7713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7715 esp = esp + 4; /* 0x2B04E7C5: add esp, 4 */ 7716 _flag_k = FK_ADD; 7717 ecx = ebp + (-0x64); /* 0x2B04E7C8: lea ecx, [ebp - 0x64] */ 7718 MEM8(ebp + (-0x4)) = (uint8_t)(0x3Cu); /* 0x2B04E7CB: mov byte ptr [ebp - 4], 0x3c */ 7719 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7CF: call 0x2b002db0 */ /* not lifted */ 7720 RECOMP_FLAGS_IN(); 7721 ecx = ebp + (-0x9C); /* 0x2B04E7D4: lea ecx, [ebp - 0x9c] */ 7722 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E7DA: mov dword ptr [ebp - 4], 0xffffffff */ 7723 RECOMP_ICALL(0x2B002DB0u); /* 0x2B04E7E1: call 0x2b002db0 */ /* not lifted */ 7724 RECOMP_FLAGS_IN(); 7725 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E7E6: mov ecx, dword ptr [ebp - 0xc] */ 7726 edi = POP32_VAL(esp); /* 0x2B04E7E9: pop edi */ 7727 esi = POP32_VAL(esp); /* 0x2B04E7EA: pop esi */ 7728 ebx = POP32_VAL(esp); /* 0x2B04E7EB: pop ebx */ 7729 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E7EC: mov dword ptr fs:[0], ecx */ 7730 esp = ebp; /* 0x2B04E7F3: mov esp, ebp */ 7731 ebp = POP32_VAL(esp); /* 0x2B04E7F5: pop ebp */ 7732 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04E7F6: ret 4 */ 7733 RECOMP_REGS_OUT(); 7734 } 7735 7736 void sub_2B04E800(void) { 7737 int _fpu_cmp = 0; 7738 uint32_t _cf = 0; 7739 int _df = 1; 7740 uint32_t _flag_k = FK_NONE; 7741 uint32_t _flag_a = 0, _flag_b = 0; 7742 uint32_t _itail_tgt = 0; 7743 RECOMP_REGS_LOCALS 7744 RECOMP_ENTER(0x2B04E800u); 7745 7746 L_2B04E800: 7747 PUSH32(esp, ebp); /* 0x2B04E800: push ebp */ 7748 ebp = esp; /* 0x2B04E801: mov ebp, esp */ 7749 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B04E803: push -1 */ 7750 PUSH32(esp, 0x2B0AF80Bu); /* 0x2B04E805: push 0x2b0af80b */ 7751 eax = MEM32(FS_BASE + (0)); /* 0x2B04E80A: mov eax, dword ptr fs:[0] */ 7752 PUSH32(esp, eax); /* 0x2B04E810: push eax */ 7753 MEM32(FS_BASE + (0)) = esp; /* 0x2B04E811: mov dword ptr fs:[0], esp */ 7754 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x70u); 7755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7756 esp = esp - 0x70u; /* 0x2B04E818: sub esp, 0x70 */ 7757 _flag_k = FK_CMP; 7758 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x2B04E81B: mov al, byte ptr [ebp + 0xf] */ 7759 PUSH32(esp, ebx); /* 0x2B04E81E: push ebx */ 7760 PUSH32(esp, esi); /* 0x2B04E81F: push esi */ 7761 PUSH32(esp, edi); /* 0x2B04E820: push edi */ 7762 esi = ecx; /* 0x2B04E821: mov esi, ecx */ 7763 PUSH32(esp, 0); /* 0x2B04E823: push 0 */ 7764 ecx = ebp + (-0x3C); /* 0x2B04E825: lea ecx, [ebp - 0x3c] */ 7765 MEM32(ebp + (-0x10)) = esi; /* 0x2B04E828: mov dword ptr [ebp - 0x10], esi */ 7766 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x2B04E82B: mov byte ptr [ebp - 0x3c], al */ 7767 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E82E: call dword ptr [0x2b0b514c] */ 7768 RECOMP_FLAGS_IN(); 7769 ebx = MEM32(ebp + 0x8); /* 0x2B04E834: mov ebx, dword ptr [ebp + 8] */ 7770 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7771 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E837: or ecx, 0xffffffff */ 7772 _cf = 0; 7773 _flag_k = FK_TEST; 7774 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7775 eax = 0; /* 0x2B04E83A: xor eax, eax */ 7776 _cf = 0; 7777 _flag_k = FK_TEST; 7778 edi = ebx; /* 0x2B04E83C: mov edi, ebx */ 7779 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; } /* 0x2B04E83E: repne scasb al, byte ptr es:[edi] */ 7780 ecx = ~ecx; /* 0x2B04E840: not ecx */ 7781 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7782 ecx = ecx - 1; /* 0x2B04E842: dec ecx */ 7783 _flag_k = FK_DEC; 7784 edi = ecx; /* 0x2B04E843: mov edi, ecx */ 7785 PUSH32(esp, 1); /* 0x2B04E845: push 1 */ 7786 PUSH32(esp, edi); /* 0x2B04E847: push edi */ 7787 ecx = ebp + (-0x3C); /* 0x2B04E848: lea ecx, [ebp - 0x3c] */ 7788 MEM32(ebp + 0x8) = edi; /* 0x2B04E84B: mov dword ptr [ebp + 8], edi */ 7789 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04E84E: call dword ptr [0x2b0b5154] */ 7790 RECOMP_FLAGS_IN(); 7791 /* test LO8(eax), LO8(eax) */ /* 0x2B04E854: test al, al */ 7792 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7793 _cf = 0; 7794 _flag_k = FK_NARROW(FK_TEST, 24); 7795 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E87C; /* 0x2B04E856: je 0x2b04e87c */ 7796 L_2B04E858: 7797 ecx = edi; /* 0x2B04E858: mov ecx, edi */ 7798 edi = MEM32(ebp + (-0x38)); /* 0x2B04E85A: mov edi, dword ptr [ebp - 0x38] */ 7799 edx = ecx; /* 0x2B04E85D: mov edx, ecx */ 7800 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04E85F: shr ecx, 2 */ 7801 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7802 ecx = ecx >> 2u; /* 0x2B04E85F: shr ecx, 2 */ 7803 esi = ebx; /* 0x2B04E862: mov esi, ebx */ 7804 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04E864: 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; } 7805 ecx = edx; /* 0x2B04E866: mov ecx, edx */ 7806 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7807 ecx = ecx & 3; /* 0x2B04E868: and ecx, 3 */ 7808 _cf = 0; 7809 _flag_k = FK_TEST; 7810 eax = edx; /* 0x2B04E86B: mov eax, edx */ 7811 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04E86D: 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; } 7812 PUSH32(esp, eax); /* 0x2B04E86F: push eax */ 7813 ecx = ebp + (-0x3C); /* 0x2B04E870: lea ecx, [ebp - 0x3c] */ 7814 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04E873: call dword ptr [0x2b0b5150] */ 7815 RECOMP_FLAGS_IN(); 7816 esi = MEM32(ebp + (-0x10)); /* 0x2B04E879: mov esi, dword ptr [ebp - 0x10] */ 7817 L_2B04E87C: 7818 edi = MEM32(esi + 0x1A4); /* 0x2B04E87C: mov edi, dword ptr [esi + 0x1a4] */ 7819 ecx = ebp + (-0x3C); /* 0x2B04E882: lea ecx, [ebp - 0x3c] */ 7820 PUSH32(esp, ecx); /* 0x2B04E885: push ecx */ 7821 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1A0u); 7822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7823 esi = esi + 0x1A0u; /* 0x2B04E886: add esi, 0x1a0 */ 7824 _flag_k = FK_ADD; 7825 edx = ebp + 0x8; /* 0x2B04E88C: lea edx, [ebp + 8] */ 7826 PUSH32(esp, edx); /* 0x2B04E88F: push edx */ 7827 ecx = esi; /* 0x2B04E890: mov ecx, esi */ 7828 MEM32(ebp + (-0x4)) = 0; /* 0x2B04E892: mov dword ptr [ebp - 4], 0 */ 7829 MEM32(ebp + (-0x10)) = esi; /* 0x2B04E899: mov dword ptr [ebp - 0x10], esi */ 7830 RECOMP_ICALL(0x2B08DFD0u); /* 0x2B04E89C: call 0x2b08dfd0 */ /* not lifted */ 7831 RECOMP_FLAGS_IN(); 7832 /* cmp MEM32(eax), edi */ /* 0x2B04E8A1: cmp dword ptr [eax], edi */ 7833 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 7834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7835 _flag_k = FK_CMP; 7836 PUSH32(esp, 1); /* 0x2B04E8A3: push 1 */ 7837 ecx = ebp + (-0x3C); /* 0x2B04E8A5: lea ecx, [ebp - 0x3c] */ 7838 MEM8(ebp + 0xB) = (uint8_t)((CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B04E8A8: sete byte ptr [ebp + 0xb] */ 7839 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E8AC: mov dword ptr [ebp - 4], 0xffffffff */ 7840 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E8B3: call dword ptr [0x2b0b514c] */ 7841 RECOMP_FLAGS_IN(); 7842 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04E8B9: mov al, byte ptr [ebp + 0xb] */ 7843 /* test LO8(eax), LO8(eax) */ /* 0x2B04E8BC: test al, al */ 7844 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7845 _cf = 0; 7846 _flag_k = FK_NARROW(FK_TEST, 24); 7847 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E8D8; /* 0x2B04E8BE: je 0x2b04e8d8 */ 7848 L_2B04E8C0: 7849 edi = POP32_VAL(esp); /* 0x2B04E8C0: pop edi */ 7850 esi = POP32_VAL(esp); /* 0x2B04E8C1: pop esi */ 7851 eax = 0x00FFFFFFu; /* 0x2B04E8C2: mov eax, 0xffffff */ 7852 ebx = POP32_VAL(esp); /* 0x2B04E8C7: pop ebx */ 7853 ecx = MEM32(ebp + (-0xC)); /* 0x2B04E8C8: mov ecx, dword ptr [ebp - 0xc] */ 7854 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04E8CB: mov dword ptr fs:[0], ecx */ 7855 esp = ebp; /* 0x2B04E8D2: mov esp, ebp */ 7856 ebp = POP32_VAL(esp); /* 0x2B04E8D4: pop ebp */ 7857 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B04E8D5: ret 8 */ 7858 L_2B04E8D8: 7859 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x2B04E8D8: mov al, byte ptr [ebp + 0xc] */ 7860 /* test LO8(eax), LO8(eax) */ /* 0x2B04E8DB: test al, al */ 7861 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7862 _cf = 0; 7863 _flag_k = FK_NARROW(FK_TEST, 24); 7864 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E98F; /* 0x2B04E8DD: je 0x2b04e98f */ 7865 L_2B04E8E3: 7866 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x2B04E8E3: mov al, byte ptr [ebp + 0xf] */ 7867 PUSH32(esp, 0); /* 0x2B04E8E6: push 0 */ 7868 ecx = ebp + (-0x3C); /* 0x2B04E8E8: lea ecx, [ebp - 0x3c] */ 7869 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x2B04E8EB: mov byte ptr [ebp - 0x3c], al */ 7870 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E8EE: call dword ptr [0x2b0b514c] */ 7871 RECOMP_FLAGS_IN(); 7872 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7873 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E8F4: or ecx, 0xffffffff */ 7874 _cf = 0; 7875 _flag_k = FK_TEST; 7876 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7877 eax = 0; /* 0x2B04E8F7: xor eax, eax */ 7878 _cf = 0; 7879 _flag_k = FK_TEST; 7880 edi = ebx; /* 0x2B04E8F9: mov edi, ebx */ 7881 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; } /* 0x2B04E8FB: repne scasb al, byte ptr es:[edi] */ 7882 ecx = ~ecx; /* 0x2B04E8FD: not ecx */ 7883 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7884 ecx = ecx - 1; /* 0x2B04E8FF: dec ecx */ 7885 _flag_k = FK_DEC; 7886 edi = ecx; /* 0x2B04E900: mov edi, ecx */ 7887 PUSH32(esp, 1); /* 0x2B04E902: push 1 */ 7888 PUSH32(esp, edi); /* 0x2B04E904: push edi */ 7889 ecx = ebp + (-0x3C); /* 0x2B04E905: lea ecx, [ebp - 0x3c] */ 7890 MEM32(ebp + 0xC) = edi; /* 0x2B04E908: mov dword ptr [ebp + 0xc], edi */ 7891 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04E90B: call dword ptr [0x2b0b5154] */ 7892 RECOMP_FLAGS_IN(); 7893 /* test LO8(eax), LO8(eax) */ /* 0x2B04E911: test al, al */ 7894 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7895 _cf = 0; 7896 _flag_k = FK_NARROW(FK_TEST, 24); 7897 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E939; /* 0x2B04E913: je 0x2b04e939 */ 7898 L_2B04E915: 7899 ecx = edi; /* 0x2B04E915: mov ecx, edi */ 7900 edi = MEM32(ebp + (-0x38)); /* 0x2B04E917: mov edi, dword ptr [ebp - 0x38] */ 7901 edx = ecx; /* 0x2B04E91A: mov edx, ecx */ 7902 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04E91C: shr ecx, 2 */ 7903 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7904 ecx = ecx >> 2u; /* 0x2B04E91C: shr ecx, 2 */ 7905 esi = ebx; /* 0x2B04E91F: mov esi, ebx */ 7906 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04E921: 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; } 7907 ecx = edx; /* 0x2B04E923: mov ecx, edx */ 7908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7909 ecx = ecx & 3; /* 0x2B04E925: and ecx, 3 */ 7910 _cf = 0; 7911 _flag_k = FK_TEST; 7912 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04E928: 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; } 7913 ecx = MEM32(ebp + (-0x38)); /* 0x2B04E92A: mov ecx, dword ptr [ebp - 0x38] */ 7914 esi = MEM32(ebp + (-0x10)); /* 0x2B04E92D: mov esi, dword ptr [ebp - 0x10] */ 7915 eax = edx; /* 0x2B04E930: mov eax, edx */ 7916 MEM32(ebp + (-0x34)) = eax; /* 0x2B04E932: mov dword ptr [ebp - 0x34], eax */ 7917 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B04E935: mov byte ptr [ecx + eax], 0 */ 7918 L_2B04E939: 7919 edx = ebp + (-0x3C); /* 0x2B04E939: lea edx, [ebp - 0x3c] */ 7920 PUSH32(esp, edx); /* 0x2B04E93C: push edx */ 7921 ecx = ebp + (-0x64); /* 0x2B04E93D: lea ecx, [ebp - 0x64] */ 7922 MEM32(ebp + (-0x4)) = 1; /* 0x2B04E940: mov dword ptr [ebp - 4], 1 */ 7923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7924 edi = 0; /* 0x2B04E947: xor edi, edi */ 7925 _cf = 0; 7926 _flag_k = FK_TEST; 7927 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7928 ebx = 0; /* 0x2B04E949: xor ebx, ebx */ 7929 _cf = 0; 7930 _flag_k = FK_TEST; 7931 RECOMP_ICALL(MEM32(0x2B0B5164)); /* 0x2B04E94B: call dword ptr [0x2b0b5164] */ 7932 RECOMP_FLAGS_IN(); 7933 MEM32(ebp + (-0x54)) = edi; /* 0x2B04E951: mov dword ptr [ebp - 0x54], edi */ 7934 MEM32(ebp + (-0x50)) = ebx; /* 0x2B04E954: mov dword ptr [ebp - 0x50], ebx */ 7935 eax = ebp + (-0x64); /* 0x2B04E957: lea eax, [ebp - 0x64] */ 7936 PUSH32(esp, eax); /* 0x2B04E95A: push eax */ 7937 ecx = ebp + (-0x14); /* 0x2B04E95B: lea ecx, [ebp - 0x14] */ 7938 PUSH32(esp, ecx); /* 0x2B04E95E: push ecx */ 7939 ecx = esi; /* 0x2B04E95F: mov ecx, esi */ 7940 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04E961: mov byte ptr [ebp - 4], 2 */ 7941 RECOMP_ICALL(0x2B0519D0u); /* 0x2B04E965: call 0x2b0519d0 */ /* not lifted */ 7942 RECOMP_FLAGS_IN(); 7943 esi = MEM32(eax); /* 0x2B04E96A: mov esi, dword ptr [eax] */ 7944 PUSH32(esp, 1); /* 0x2B04E96C: push 1 */ 7945 ecx = ebp + (-0x64); /* 0x2B04E96E: lea ecx, [ebp - 0x64] */ 7946 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B04E971: mov byte ptr [ebp - 4], 1 */ 7947 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E975: call dword ptr [0x2b0b514c] */ 7948 RECOMP_FLAGS_IN(); 7949 esi = MEM32(esi + 0x20); /* 0x2B04E97B: mov esi, dword ptr [esi + 0x20] */ 7950 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04E97E: mov dword ptr [ebp - 4], 0xffffffff */ 7951 PUSH32(esp, 1); /* 0x2B04E985: push 1 */ 7952 ecx = ebp + (-0x3C); /* 0x2B04E987: lea ecx, [ebp - 0x3c] */ 7953 goto L_2B04EA55; /* 0x2B04E98A: jmp 0x2b04ea55 */ 7954 L_2B04E98F: 7955 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x2B04E98F: mov dl, byte ptr [ebp + 0xf] */ 7956 PUSH32(esp, 0); /* 0x2B04E992: push 0 */ 7957 ecx = ebp + (-0x4C); /* 0x2B04E994: lea ecx, [ebp - 0x4c] */ 7958 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(edx)); /* 0x2B04E997: mov byte ptr [ebp - 0x4c], dl */ 7959 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04E99A: call dword ptr [0x2b0b514c] */ 7960 RECOMP_FLAGS_IN(); 7961 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7962 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04E9A0: or ecx, 0xffffffff */ 7963 _cf = 0; 7964 _flag_k = FK_TEST; 7965 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7966 eax = 0; /* 0x2B04E9A3: xor eax, eax */ 7967 _cf = 0; 7968 _flag_k = FK_TEST; 7969 edi = ebx; /* 0x2B04E9A5: mov edi, ebx */ 7970 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; } /* 0x2B04E9A7: repne scasb al, byte ptr es:[edi] */ 7971 ecx = ~ecx; /* 0x2B04E9A9: not ecx */ 7972 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7973 ecx = ecx - 1; /* 0x2B04E9AB: dec ecx */ 7974 _flag_k = FK_DEC; 7975 edi = ecx; /* 0x2B04E9AC: mov edi, ecx */ 7976 PUSH32(esp, 1); /* 0x2B04E9AE: push 1 */ 7977 PUSH32(esp, edi); /* 0x2B04E9B0: push edi */ 7978 ecx = ebp + (-0x4C); /* 0x2B04E9B1: lea ecx, [ebp - 0x4c] */ 7979 MEM32(ebp + 0xC) = edi; /* 0x2B04E9B4: mov dword ptr [ebp + 0xc], edi */ 7980 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04E9B7: call dword ptr [0x2b0b5154] */ 7981 RECOMP_FLAGS_IN(); 7982 /* test LO8(eax), LO8(eax) */ /* 0x2B04E9BD: test al, al */ 7983 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7984 _cf = 0; 7985 _flag_k = FK_NARROW(FK_TEST, 24); 7986 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04E9E3; /* 0x2B04E9BF: je 0x2b04e9e3 */ 7987 L_2B04E9C1: 7988 ecx = edi; /* 0x2B04E9C1: mov ecx, edi */ 7989 edi = MEM32(ebp + (-0x48)); /* 0x2B04E9C3: mov edi, dword ptr [ebp - 0x48] */ 7990 eax = ecx; /* 0x2B04E9C6: mov eax, ecx */ 7991 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04E9C8: shr ecx, 2 */ 7992 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7993 ecx = ecx >> 2u; /* 0x2B04E9C8: shr ecx, 2 */ 7994 esi = ebx; /* 0x2B04E9CB: mov esi, ebx */ 7995 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04E9CD: 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; } 7996 ecx = eax; /* 0x2B04E9CF: mov ecx, eax */ 7997 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7998 ecx = ecx & 3; /* 0x2B04E9D1: and ecx, 3 */ 7999 _cf = 0; 8000 _flag_k = FK_TEST; 8001 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04E9D4: 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; } 8002 ecx = MEM32(ebp + (-0x48)); /* 0x2B04E9D6: mov ecx, dword ptr [ebp - 0x48] */ 8003 esi = MEM32(ebp + (-0x10)); /* 0x2B04E9D9: mov esi, dword ptr [ebp - 0x10] */ 8004 MEM32(ebp + (-0x44)) = eax; /* 0x2B04E9DC: mov dword ptr [ebp - 0x44], eax */ 8005 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B04E9DF: mov byte ptr [ecx + eax], 0 */ 8006 L_2B04E9E3: 8007 edx = ebp + (-0x4C); /* 0x2B04E9E3: lea edx, [ebp - 0x4c] */ 8008 PUSH32(esp, edx); /* 0x2B04E9E6: push edx */ 8009 ecx = ebp + (-0x7C); /* 0x2B04E9E7: lea ecx, [ebp - 0x7c] */ 8010 MEM32(ebp + (-0x4)) = 3; /* 0x2B04E9EA: mov dword ptr [ebp - 4], 3 */ 8011 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8012 edi = 0; /* 0x2B04E9F1: xor edi, edi */ 8013 _cf = 0; 8014 _flag_k = FK_TEST; 8015 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8016 ebx = 0; /* 0x2B04E9F3: xor ebx, ebx */ 8017 _cf = 0; 8018 _flag_k = FK_TEST; 8019 RECOMP_ICALL(MEM32(0x2B0B5164)); /* 0x2B04E9F5: call dword ptr [0x2b0b5164] */ 8020 RECOMP_FLAGS_IN(); 8021 MEM32(ebp + (-0x6C)) = edi; /* 0x2B04E9FB: mov dword ptr [ebp - 0x6c], edi */ 8022 MEM32(ebp + (-0x68)) = ebx; /* 0x2B04E9FE: mov dword ptr [ebp - 0x68], ebx */ 8023 eax = ebp + (-0x7C); /* 0x2B04EA01: lea eax, [ebp - 0x7c] */ 8024 PUSH32(esp, eax); /* 0x2B04EA04: push eax */ 8025 ecx = ebp + (-0x24); /* 0x2B04EA05: lea ecx, [ebp - 0x24] */ 8026 PUSH32(esp, ecx); /* 0x2B04EA08: push ecx */ 8027 ecx = esi; /* 0x2B04EA09: mov ecx, esi */ 8028 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04EA0B: mov byte ptr [ebp - 4], 4 */ 8029 RECOMP_ICALL(0x2B051FA0u); /* 0x2B04EA0F: call 0x2b051fa0 */ /* not lifted */ 8030 RECOMP_FLAGS_IN(); 8031 edx = MEM32(eax); /* 0x2B04EA14: mov edx, dword ptr [eax] */ 8032 MEM32(ebp + (-0x1C)) = edx; /* 0x2B04EA16: mov dword ptr [ebp - 0x1c], edx */ 8033 eax = MEM32(eax + 0x4); /* 0x2B04EA19: mov eax, dword ptr [eax + 4] */ 8034 ecx = ebp + (-0x18); /* 0x2B04EA1C: lea ecx, [ebp - 0x18] */ 8035 PUSH32(esp, ecx); /* 0x2B04EA1F: push ecx */ 8036 edx = ebp + (-0x1C); /* 0x2B04EA20: lea edx, [ebp - 0x1c] */ 8037 PUSH32(esp, edx); /* 0x2B04EA23: push edx */ 8038 ecx = ebp + (-0x2C); /* 0x2B04EA24: lea ecx, [ebp - 0x2c] */ 8039 MEM32(ebp + (-0x18)) = eax; /* 0x2B04EA27: mov dword ptr [ebp - 0x18], eax */ 8040 RECOMP_ICALL(0x2B02A020u); /* 0x2B04EA2A: call 0x2b02a020 */ /* not lifted */ 8041 RECOMP_FLAGS_IN(); 8042 esi = MEM32(eax); /* 0x2B04EA2F: mov esi, dword ptr [eax] */ 8043 eax = MEM32(eax + 0x4); /* 0x2B04EA31: mov eax, dword ptr [eax + 4] */ 8044 PUSH32(esp, 1); /* 0x2B04EA34: push 1 */ 8045 ecx = ebp + (-0x7C); /* 0x2B04EA36: lea ecx, [ebp - 0x7c] */ 8046 MEM32(ebp + (-0x10)) = eax; /* 0x2B04EA39: mov dword ptr [ebp - 0x10], eax */ 8047 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EA3C: mov byte ptr [ebp - 4], 3 */ 8048 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EA40: call dword ptr [0x2b0b514c] */ 8049 RECOMP_FLAGS_IN(); 8050 esi = MEM32(esi + 0x1C); /* 0x2B04EA46: mov esi, dword ptr [esi + 0x1c] */ 8051 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04EA49: mov dword ptr [ebp - 4], 0xffffffff */ 8052 PUSH32(esp, 1); /* 0x2B04EA50: push 1 */ 8053 ecx = ebp + (-0x4C); /* 0x2B04EA52: lea ecx, [ebp - 0x4c] */ 8054 L_2B04EA55: 8055 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EA55: call dword ptr [0x2b0b514c] */ 8056 RECOMP_FLAGS_IN(); 8057 ecx = MEM32(ebp + (-0xC)); /* 0x2B04EA5B: mov ecx, dword ptr [ebp - 0xc] */ 8058 edi = POP32_VAL(esp); /* 0x2B04EA5E: pop edi */ 8059 eax = esi; /* 0x2B04EA5F: mov eax, esi */ 8060 esi = POP32_VAL(esp); /* 0x2B04EA61: pop esi */ 8061 ebx = POP32_VAL(esp); /* 0x2B04EA62: pop ebx */ 8062 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04EA63: mov dword ptr fs:[0], ecx */ 8063 esp = ebp; /* 0x2B04EA6A: mov esp, ebp */ 8064 ebp = POP32_VAL(esp); /* 0x2B04EA6C: pop ebp */ 8065 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B04EA6D: ret 8 */ 8066 RECOMP_REGS_OUT(); 8067 } 8068 8069 void sub_2B04EA55(void) { 8070 int _fpu_cmp = 0; 8071 uint32_t _cf = 0; 8072 int _df = 1; 8073 uint32_t _flag_k = FK_NONE; 8074 uint32_t _flag_a = 0, _flag_b = 0; 8075 uint32_t _itail_tgt = 0; 8076 RECOMP_REGS_LOCALS 8077 RECOMP_ENTER(0x2B04EA55u); 8078 8079 L_2B04EA55: 8080 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EA55: call dword ptr [0x2b0b514c] */ 8081 RECOMP_FLAGS_IN(); 8082 ecx = MEM32(ebp + (-0xC)); /* 0x2B04EA5B: mov ecx, dword ptr [ebp - 0xc] */ 8083 edi = POP32_VAL(esp); /* 0x2B04EA5E: pop edi */ 8084 eax = esi; /* 0x2B04EA5F: mov eax, esi */ 8085 esi = POP32_VAL(esp); /* 0x2B04EA61: pop esi */ 8086 ebx = POP32_VAL(esp); /* 0x2B04EA62: pop ebx */ 8087 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04EA63: mov dword ptr fs:[0], ecx */ 8088 esp = ebp; /* 0x2B04EA6A: mov esp, ebp */ 8089 ebp = POP32_VAL(esp); /* 0x2B04EA6C: pop ebp */ 8090 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B04EA6D: ret 8 */ 8091 RECOMP_REGS_OUT(); 8092 } 8093 8094 void sub_2B04EA70(void) { 8095 int _fpu_cmp = 0; 8096 uint32_t _cf = 0; 8097 int _df = 1; 8098 uint32_t _flag_k = FK_NONE; 8099 uint32_t _flag_a = 0, _flag_b = 0; 8100 uint32_t _itail_tgt = 0; 8101 RECOMP_REGS_LOCALS 8102 RECOMP_ENTER(0x2B04EA70u); 8103 8104 L_2B04EA70: 8105 PUSH32(esp, ebp); /* 0x2B04EA70: push ebp */ 8106 ebp = esp; /* 0x2B04EA71: mov ebp, esp */ 8107 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B04EA73: push -1 */ 8108 PUSH32(esp, 0x2B0AF859u); /* 0x2B04EA75: push 0x2b0af859 */ 8109 eax = MEM32(FS_BASE + (0)); /* 0x2B04EA7A: mov eax, dword ptr fs:[0] */ 8110 PUSH32(esp, eax); /* 0x2B04EA80: push eax */ 8111 MEM32(FS_BASE + (0)) = esp; /* 0x2B04EA81: mov dword ptr fs:[0], esp */ 8112 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 8113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8114 esp = esp - 0x68u; /* 0x2B04EA88: sub esp, 0x68 */ 8115 _flag_k = FK_CMP; 8116 PUSH32(esp, ebx); /* 0x2B04EA8B: push ebx */ 8117 ebx = ecx; /* 0x2B04EA8C: mov ebx, ecx */ 8118 ecx = MEM32(ebx + 0x8); /* 0x2B04EA8E: mov ecx, dword ptr [ebx + 8] */ 8119 eax = MEM32(ebx + 0x4); /* 0x2B04EA91: mov eax, dword ptr [ebx + 4] */ 8120 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 8121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8122 ecx = ecx + 0x14u; /* 0x2B04EA94: add ecx, 0x14 */ 8123 _flag_k = FK_ADD; 8124 PUSH32(esp, esi); /* 0x2B04EA97: push esi */ 8125 MEM32(ebp + (-0x34)) = eax; /* 0x2B04EA98: mov dword ptr [ebp - 0x34], eax */ 8126 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EA9B: mov dword ptr [ebp - 0x30], ecx */ 8127 ecx = MEM32(ebx + 0x2C); /* 0x2B04EA9E: mov ecx, dword ptr [ebx + 0x2c] */ 8128 edx = MEM32(ecx); /* 0x2B04EAA1: mov edx, dword ptr [ecx] */ 8129 PUSH32(esp, edi); /* 0x2B04EAA3: push edi */ 8130 eax = ebp + (-0x34); /* 0x2B04EAA4: lea eax, [ebp - 0x34] */ 8131 PUSH32(esp, eax); /* 0x2B04EAA7: push eax */ 8132 MEM32(ebp + (-0x18)) = ebx; /* 0x2B04EAA8: mov dword ptr [ebp - 0x18], ebx */ 8133 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B04EAAB: call dword ptr [edx + 0x14] */ 8134 RECOMP_FLAGS_IN(); 8135 ecx = MEM32(ebx + 0x28); /* 0x2B04EAAE: mov ecx, dword ptr [ebx + 0x28] */ 8136 edx = MEM32(ecx); /* 0x2B04EAB1: mov edx, dword ptr [ecx] */ 8137 eax = ebp + (-0x34); /* 0x2B04EAB3: lea eax, [ebp - 0x34] */ 8138 PUSH32(esp, eax); /* 0x2B04EAB6: push eax */ 8139 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B04EAB7: call dword ptr [edx + 0x14] */ 8140 RECOMP_FLAGS_IN(); 8141 ecx = ebp + (-0x34); /* 0x2B04EABA: lea ecx, [ebp - 0x34] */ 8142 PUSH32(esp, ecx); /* 0x2B04EABD: push ecx */ 8143 ecx = MEM32(ebx + 0x30); /* 0x2B04EABE: mov ecx, dword ptr [ebx + 0x30] */ 8144 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EAC1: call dword ptr [0x2b0b5940] */ 8145 RECOMP_FLAGS_IN(); 8146 eax = MEM32(ebx + 0x30); /* 0x2B04EAC7: mov eax, dword ptr [ebx + 0x30] */ 8147 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EACA: mov byte ptr [eax + 9], 1 */ 8148 eax = MEM32(ebx + 0x3C); /* 0x2B04EACE: mov eax, dword ptr [ebx + 0x3c] */ 8149 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EAD1: mov byte ptr [eax + 8], 0 */ 8150 ecx = MEM32(ebx + 0x4); /* 0x2B04EAD5: mov ecx, dword ptr [ebx + 4] */ 8151 eax = MEM32(ebx + 0x8); /* 0x2B04EAD8: mov eax, dword ptr [ebx + 8] */ 8152 edx = MEM32(ebx + 0x100); /* 0x2B04EADB: mov edx, dword ptr [ebx + 0x100] */ 8153 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x11u); 8154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8155 ecx = ecx + 0x11u; /* 0x2B04EAE1: add ecx, 0x11 */ 8156 _flag_k = FK_ADD; 8157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x25u); 8158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8159 eax = eax + 0x25u; /* 0x2B04EAE4: add eax, 0x25 */ 8160 _flag_k = FK_ADD; 8161 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EAE7: mov dword ptr [ebp - 0x34], ecx */ 8162 MEM32(ebp + (-0x30)) = eax; /* 0x2B04EAEA: mov dword ptr [ebp - 0x30], eax */ 8163 edx = MEM32(edx + 0x4); /* 0x2B04EAED: mov edx, dword ptr [edx + 4] */ 8164 MEM32(ebp + (-0x20)) = edx; /* 0x2B04EAF0: mov dword ptr [ebp - 0x20], edx */ 8165 edx = MEM32(ebx + 0x48); /* 0x2B04EAF3: mov edx, dword ptr [ebx + 0x48] */ 8166 /* test edx, edx */ /* 0x2B04EAF6: test edx, edx */ 8167 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8168 _cf = 0; 8169 _flag_k = FK_TEST; 8170 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EB08; /* 0x2B04EAF8: jle 0x2b04eb08 */ 8171 L_2B04EAFA: 8172 esi = MEM32(ebp + (-0x20)); /* 0x2B04EAFA: mov esi, dword ptr [ebp - 0x20] */ 8173 edx = edx + edx * 2; /* 0x2B04EAFD: lea edx, [edx + edx*2] */ 8174 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B04EB00: shl edx, 4 */ 8175 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8176 edx = edx << 4u; /* 0x2B04EB00: shl edx, 4 */ 8177 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 8178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8179 esi = esi + edx; /* 0x2B04EB03: add esi, edx */ 8180 _flag_k = FK_ADD; 8181 MEM32(ebp + (-0x20)) = esi; /* 0x2B04EB05: mov dword ptr [ebp - 0x20], esi */ 8182 L_2B04EB08: 8183 esi = MEM32(ebp + (-0x18)); /* 0x2B04EB08: mov esi, dword ptr [ebp - 0x18] */ 8184 edi = MEM32(ebp + (-0x20)); /* 0x2B04EB0B: mov edi, dword ptr [ebp - 0x20] */ 8185 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EB0E: mov dword ptr [ebp - 0x1c], 0 */ 8186 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x5Cu); 8187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8188 ebx = ebx + 0x5Cu; /* 0x2B04EB15: add ebx, 0x5c */ 8189 _flag_k = FK_ADD; 8190 goto L_2B04EB1D; /* 0x2B04EB18: jmp 0x2b04eb1d */ 8191 L_2B04EB1A: 8192 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 8193 L_2B04EB1D: 8194 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 8195 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 8196 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8198 _flag_k = FK_CMP; 8199 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 8200 L_2B04EB2C: 8201 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 8202 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 8203 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8204 _cf = 0; 8205 _flag_k = FK_TEST; 8206 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 8207 L_2B04EB37: 8208 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 8209 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 8210 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 8211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8212 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 8213 _flag_k = FK_ADD; 8214 eax = edx; /* 0x2B04EB40: mov eax, edx */ 8215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8216 eax = eax - 1; /* 0x2B04EB42: dec eax */ 8217 _flag_k = FK_DEC; 8218 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 8219 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 8220 L_2B04EB48: 8221 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8222 eax = eax - 1; /* 0x2B04EB48: dec eax */ 8223 _flag_k = FK_DEC; 8224 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 8225 L_2B04EB4B: 8226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8227 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 8228 _flag_k = FK_DEC; 8229 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 8230 L_2B04EB4E: 8231 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 8232 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 8233 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 8234 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 8235 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 8236 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 8237 RECOMP_FLAGS_IN(); 8238 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 8239 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 8240 L_2B04EB67: 8241 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 8242 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 8243 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 8244 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 8245 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 8246 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 8247 RECOMP_FLAGS_IN(); 8248 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 8249 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 8250 L_2B04EB80: 8251 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 8252 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 8253 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 8254 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 8255 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 8256 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 8257 RECOMP_FLAGS_IN(); 8258 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 8259 L_2B04EB97: 8260 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 8261 L_2B04EB9B: 8262 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 8263 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 8264 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 8265 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 8266 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 8267 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 8268 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 8269 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 8270 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 8271 L_2B04EBBA: 8272 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 8273 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 8274 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8275 _cf = 0; 8276 _flag_k = FK_NARROW(FK_TEST, 24); 8277 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 8278 L_2B04EBC1: 8279 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 8280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8281 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 8282 _flag_k = FK_DEC; 8283 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 8284 L_2B04EBC7: 8285 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 8286 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 8287 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 8288 L_2B04EBD0: 8289 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 8290 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 8291 L_2B04EBD7: 8292 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 8293 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 8294 RECOMP_FLAGS_IN(); 8295 L_2B04EBE0: 8296 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 8297 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 8298 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 8299 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 8300 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 8301 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 8302 RECOMP_FLAGS_IN(); 8303 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 8304 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 8305 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 8306 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 8307 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8308 _cf = 0; 8309 _flag_k = FK_NARROW(FK_TEST, 24); 8310 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 8311 L_2B04EC02: 8312 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 8313 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 8314 L_2B04EC09: 8315 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 8316 L_2B04EC0E: 8317 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 8318 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 8319 RECOMP_FLAGS_IN(); 8320 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 8321 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 8322 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 8323 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 8324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8326 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 8327 _flag_k = FK_ADD; 8328 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 8329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8330 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 8331 _flag_k = FK_ADD; 8332 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 8333 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 8334 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 8335 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 8336 RECOMP_FLAGS_IN(); 8337 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 8338 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 8339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8340 _cf = 0; 8341 _flag_k = FK_TEST; 8342 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 8343 L_2B04EC39: 8344 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 8345 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 8346 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 8347 L_2B04EC44: 8348 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 8349 L_2B04EC47: 8350 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 8351 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 8352 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 8353 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 8354 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 8355 RECOMP_FLAGS_IN(); 8356 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 8357 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8358 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 8359 _cf = 0; 8360 _flag_k = FK_TEST; 8361 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8362 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 8363 _cf = 0; 8364 _flag_k = FK_TEST; 8365 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 8366 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 8367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8368 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 8369 _flag_k = FK_DEC; 8370 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 8371 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 8372 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 8373 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 8374 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 8375 RECOMP_FLAGS_IN(); 8376 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 8377 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8378 _cf = 0; 8379 _flag_k = FK_NARROW(FK_TEST, 24); 8380 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 8381 L_2B04EC78: 8382 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 8383 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 8384 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 8385 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 8386 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 8387 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 8388 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8389 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 8390 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 8391 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 8392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8393 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 8394 _cf = 0; 8395 _flag_k = FK_TEST; 8396 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 8397 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 8398 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 8399 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 8400 RECOMP_FLAGS_IN(); 8401 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 8402 L_2B04EC9E: 8403 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8404 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 8405 _cf = 0; 8406 _flag_k = FK_TEST; 8407 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 8408 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 8409 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 8410 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 8411 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 8412 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 8413 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 8414 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 8415 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 8416 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 8417 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 8418 RECOMP_FLAGS_IN(); 8419 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 8420 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 8421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8423 _flag_k = FK_CMP; 8424 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 8425 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 8426 L_2B04ECCD: 8427 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 8428 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 8429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 8430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8431 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 8432 _flag_k = FK_ADD; 8433 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8434 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 8435 _flag_k = FK_DEC; 8436 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 8437 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 8438 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8439 _cf = 0; 8440 _flag_k = FK_TEST; 8441 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 8442 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 8443 L_2B04ECDE: 8444 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 8445 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8446 _cf = 0; 8447 _flag_k = FK_TEST; 8448 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 8449 L_2B04ECE2: 8450 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 8451 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 8452 RECOMP_FLAGS_IN(); 8453 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 8454 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 8455 RECOMP_FLAGS_IN(); 8456 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8458 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 8459 _flag_k = FK_ADD; 8460 L_2B04ECF2: 8461 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 8462 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 8463 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 8464 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 8465 RECOMP_FLAGS_IN(); 8466 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 8467 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 8468 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 8469 L_2B04ED0D: 8470 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 8471 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 8472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 8473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8474 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 8475 _flag_k = FK_ADD; 8476 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8477 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 8478 _flag_k = FK_INC; 8479 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 8480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8481 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 8482 _flag_k = FK_ADD; 8483 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 8484 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8485 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 8486 _flag_k = FK_ADD; 8487 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 8488 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 8489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8490 _flag_k = FK_CMP; 8491 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 8492 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 8493 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 8494 RECOMP_BACKEDGE(); 8495 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 8496 L_2B04ED2F: 8497 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 8498 L_2B04ED31: 8499 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 8500 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 8501 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 8502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8503 _flag_k = FK_CMP; 8504 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 8505 L_2B04ED39: 8506 eax = edx; /* 0x2B04ED39: mov eax, edx */ 8507 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 8508 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8509 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 8510 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 8511 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 8512 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8514 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 8515 _flag_k = FK_CMP; 8516 L_2B04ED49: 8517 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 8518 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 8519 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 8520 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 8521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8522 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 8523 _flag_k = FK_ADD; 8524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8525 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 8526 _flag_k = FK_DEC; 8527 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 8528 RECOMP_BACKEDGE(); 8529 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 8530 L_2B04ED5C: 8531 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 8532 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 8533 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 8534 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 8535 RECOMP_FLAGS_IN(); 8536 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 8537 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 8538 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8539 edi = 0; /* 0x2B04ED70: xor edi, edi */ 8540 _cf = 0; 8541 _flag_k = FK_TEST; 8542 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 8543 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8544 _cf = 0; 8545 _flag_k = FK_TEST; 8546 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 8547 L_2B04ED76: 8548 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 8549 L_2B04ED79: 8550 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 8551 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 8552 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 8553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8555 _flag_k = FK_CMP; 8556 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 8557 L_2B04ED87: 8558 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 8559 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 8560 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 8561 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 8562 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 8563 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 8564 RECOMP_FLAGS_IN(); 8565 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 8566 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 8567 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 8568 _flag_k = FK_INC; 8569 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 8570 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8572 _flag_k = FK_CMP; 8573 RECOMP_BACKEDGE(); 8574 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 8575 L_2B04EDA1: 8576 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 8577 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 8578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 8579 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8580 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 8581 _flag_k = FK_ADD; 8582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 8583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8584 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 8585 _flag_k = FK_ADD; 8586 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 8587 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 8588 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 8589 L_2B04EDBF: 8590 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 8591 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 8592 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 8593 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 8594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8596 _flag_k = FK_CMP; 8597 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 8598 L_2B04EDD4: 8599 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 8600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 8601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8602 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 8603 _flag_k = FK_ADD; 8604 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 8605 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 8606 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 8607 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 8608 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 8609 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 8610 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 8611 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 8612 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 8613 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 8614 RECOMP_FLAGS_IN(); 8615 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 8616 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8617 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 8618 _cf = 0; 8619 _flag_k = FK_TEST; 8620 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 8621 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 8622 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 8623 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 8624 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 8625 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 8626 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 8627 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8629 _flag_k = FK_CMP; 8630 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 8631 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 8632 L_2B04EE1E: 8633 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 8634 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 8635 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8636 _cf = 0; 8637 _flag_k = FK_TEST; 8638 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 8639 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 8640 L_2B04EE28: 8641 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 8642 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 8643 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8644 _cf = 0; 8645 _flag_k = FK_NARROW(FK_TEST, 24); 8646 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 8647 L_2B04EE2F: 8648 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 8649 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8651 _flag_k = FK_NARROW(FK_CMP, 24); 8652 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 8653 L_2B04EE34: 8654 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 8655 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 8656 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 8657 RECOMP_FLAGS_IN(); 8658 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 8659 L_2B04EE40: 8660 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 8661 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 8662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8663 _cf = 0; 8664 _flag_k = FK_TEST; 8665 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 8666 L_2B04EE46: 8667 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 8668 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 8669 L_2B04EE4D: 8670 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 8671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8673 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 8674 _flag_k = FK_ADD; 8675 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 8676 L_2B04EE53: 8677 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 8678 L_2B04EE58: 8679 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 8680 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 8681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8682 _flag_k = FK_NARROW(FK_CMP, 24); 8683 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 8684 L_2B04EE5D: 8685 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 8686 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 8687 _flag_k = FK_INC; 8688 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 8689 L_2B04EE63: 8690 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 8691 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 8692 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 8693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8694 _flag_k = FK_CMP; 8695 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 8696 L_2B04EE6A: 8697 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 8698 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 8699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8700 _cf = 0; 8701 _flag_k = FK_TEST; 8702 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 8703 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 8704 L_2B04EE74: 8705 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 8706 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 8707 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8708 _cf = 0; 8709 _flag_k = FK_NARROW(FK_TEST, 24); 8710 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 8711 L_2B04EE7B: 8712 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 8713 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8715 _flag_k = FK_NARROW(FK_CMP, 24); 8716 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 8717 L_2B04EE7F: 8718 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 8719 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 8720 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 8721 RECOMP_FLAGS_IN(); 8722 L_2B04EE88: 8723 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 8724 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 8725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8726 _cf = 0; 8727 _flag_k = FK_TEST; 8728 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 8729 L_2B04EE8E: 8730 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 8731 L_2B04EE92: 8732 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 8733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8735 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 8736 _flag_k = FK_ADD; 8737 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 8738 L_2B04EE98: 8739 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 8740 L_2B04EE9D: 8741 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 8742 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 8743 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 8744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 8745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8746 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 8747 _flag_k = FK_CMP; 8748 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 8749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8751 _flag_k = FK_CMP; 8752 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 8753 L_2B04EEAF: 8754 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 8755 RECOMP_FLAGS_IN(); 8756 L_2B04EEB5: 8757 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 8758 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 8759 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 8760 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 8761 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 8762 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 8763 RECOMP_FLAGS_IN(); 8764 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 8765 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8766 _cf = 0; 8767 _flag_k = FK_NARROW(FK_TEST, 24); 8768 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 8769 L_2B04EECB: 8770 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 8771 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 8772 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 8773 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8775 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 8776 _flag_k = FK_ADD; 8777 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 8778 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 8779 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 8780 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 8781 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 8782 L_2B04EEE4: 8783 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 8784 L_2B04EEE7: 8785 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 8786 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 8787 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 8788 _flag_k = FK_INC; 8789 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 8790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8792 _flag_k = FK_CMP; 8793 RECOMP_BACKEDGE(); 8794 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 8795 L_2B04EEF3: 8796 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 8797 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 8798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8799 _cf = 0; 8800 _flag_k = FK_TEST; 8801 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 8802 L_2B04EEFA: 8803 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 8804 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 8805 L_2B04EF02: 8806 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 8807 L_2B04EF05: 8808 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 8809 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 8810 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8811 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 8812 _cf = 0; 8813 _flag_k = FK_TEST; 8814 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 8815 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 8816 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 8817 edi = esi; /* 0x2B04EF16: mov edi, esi */ 8818 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8819 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 8820 _cf = 0; 8821 _flag_k = FK_TEST; 8822 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 8823 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 8824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8825 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 8826 _flag_k = FK_DEC; 8827 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 8828 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 8829 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 8830 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 8831 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 8832 RECOMP_FLAGS_IN(); 8833 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 8834 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8835 _cf = 0; 8836 _flag_k = FK_NARROW(FK_TEST, 24); 8837 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 8838 L_2B04EF32: 8839 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 8840 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 8841 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 8842 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 8843 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8844 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 8845 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 8846 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 8847 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8848 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 8849 _cf = 0; 8850 _flag_k = FK_TEST; 8851 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 8852 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 8853 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 8854 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 8855 RECOMP_FLAGS_IN(); 8856 L_2B04EF4F: 8857 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 8858 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 8859 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 8860 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 8861 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 8862 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 8863 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 8864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8865 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 8866 _flag_k = FK_ADD; 8867 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 8868 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 8869 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8871 _flag_k = FK_CMP; 8872 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 8873 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 8874 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 8875 L_2B04EF76: 8876 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 8877 L_2B04EF78: 8878 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 8879 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 8880 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 8881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8882 _flag_k = FK_CMP; 8883 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 8884 L_2B04EF7F: 8885 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 8886 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 8887 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 8888 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 8889 RECOMP_FLAGS_IN(); 8890 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 8891 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 8892 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 8893 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 8894 RECOMP_FLAGS_IN(); 8895 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 8896 L_2B04EF9A: 8897 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 8898 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8899 _cf = 0; 8900 _flag_k = FK_TEST; 8901 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 8902 L_2B04EF9E: 8903 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 8904 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 8905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8906 _flag_k = FK_CMP; 8907 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 8908 L_2B04EFA2: 8909 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 8910 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 8911 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8912 _cf = 0; 8913 _flag_k = FK_TEST; 8914 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 8915 L_2B04EFA9: 8916 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 8917 L_2B04EFAE: 8918 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 8919 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 8920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8921 _flag_k = FK_NARROW(FK_CMP, 24); 8922 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 8923 L_2B04EFB4: 8924 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 8925 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 8926 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 8927 RECOMP_FLAGS_IN(); 8928 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 8929 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 8930 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8931 _cf = 0; 8932 _flag_k = FK_TEST; 8933 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 8934 L_2B04EFC5: 8935 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 8936 L_2B04EFCA: 8937 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 8938 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 8939 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 8940 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 8941 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 8942 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 8943 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 8944 _flag_k = FK_NARROW(FK_INC, 24); 8945 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 8946 L_2B04EFDE: 8947 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 8948 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 8949 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 8950 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 8951 RECOMP_FLAGS_IN(); 8952 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 8953 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8954 _cf = 0; 8955 _flag_k = FK_NARROW(FK_TEST, 24); 8956 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 8957 L_2B04EFED: 8958 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 8959 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 8960 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8961 _cf = 0; 8962 _flag_k = FK_TEST; 8963 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 8964 L_2B04EFF4: 8965 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 8966 L_2B04EFFA: 8967 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 8968 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 8969 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 8970 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 8971 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 8972 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8973 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 8974 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 8975 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 8976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8977 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 8978 _cf = 0; 8979 _flag_k = FK_TEST; 8980 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 8981 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 8982 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 8983 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 8984 RECOMP_FLAGS_IN(); 8985 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 8986 L_2B04F01C: 8987 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 8988 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8989 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 8990 _cf = 0; 8991 _flag_k = FK_TEST; 8992 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 8993 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8995 _flag_k = FK_CMP; 8996 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 8997 L_2B04F025: 8998 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 8999 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 9000 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9001 edx = edx - 1; /* 0x2B04F02B: dec edx */ 9002 _flag_k = FK_DEC; 9003 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 9004 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 9005 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 9006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9007 _flag_k = FK_CMP; 9008 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 9009 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 9010 L_2B04F034: 9011 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 9012 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 9013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9014 _flag_k = FK_CMP; 9015 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 9016 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 9017 L_2B04F03B: 9018 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 9019 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 9020 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 9021 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 9022 RECOMP_FLAGS_IN(); 9023 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 9024 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 9025 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 9026 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 9027 RECOMP_FLAGS_IN(); 9028 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 9029 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 9030 RECOMP_FLAGS_IN(); 9031 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9032 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9033 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 9034 _flag_k = FK_ADD; 9035 L_2B04F062: 9036 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 9037 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 9038 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 9039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9040 _flag_k = FK_CMP; 9041 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 9042 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 9043 L_2B04F06D: 9044 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 9045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9046 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 9047 _flag_k = FK_DEC; 9048 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 9049 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9050 _cf = 0; 9051 _flag_k = FK_NARROW(FK_TEST, 24); 9052 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 9053 L_2B04F075: 9054 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 9055 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9057 _flag_k = FK_NARROW(FK_CMP, 24); 9058 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 9059 L_2B04F079: 9060 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9061 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 9062 _flag_k = FK_NARROW(FK_DEC, 24); 9063 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 9064 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 9065 L_2B04F07F: 9066 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 9067 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 9068 RECOMP_FLAGS_IN(); 9069 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9070 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9071 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 9072 _flag_k = FK_ADD; 9073 L_2B04F088: 9074 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 9075 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 9076 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 9077 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 9078 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 9079 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 9080 _cf = 0; 9081 _flag_k = FK_NARROW(FK_TEST, 24); 9082 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 9083 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 9084 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 9085 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 9086 L_2B04F0A2: 9087 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 9088 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 9089 L_2B04F0A9: 9090 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 9091 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 9092 L_2B04F0AD: 9093 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 9094 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 9095 RECOMP_FLAGS_IN(); 9096 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 9097 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 9098 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 9099 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 9100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 9101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9102 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 9103 _flag_k = FK_ADD; 9104 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 9105 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 9106 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 9107 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 9108 RECOMP_FLAGS_IN(); 9109 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 9110 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 9111 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 9112 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 9113 _cf = 0; 9114 _flag_k = FK_NARROW(FK_TEST, 24); 9115 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 9116 L_2B04F0DB: 9117 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 9118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 9119 _cf = 0; 9120 _flag_k = FK_TEST; 9121 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 9122 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 9123 L_2B04F0E4: 9124 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 9125 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 9126 L_2B04F0E8: 9127 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 9128 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 9129 L_2B04F0EC: 9130 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 9131 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 9132 L_2B04F0EF: 9133 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 9134 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 9135 RECOMP_FLAGS_IN(); 9136 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 9137 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 9138 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 9139 RECOMP_FLAGS_IN(); 9140 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 9141 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 9142 RECOMP_FLAGS_IN(); 9143 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 9144 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 9145 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 9146 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 9147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 9148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9149 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 9150 _flag_k = FK_ADD; 9151 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 9152 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 9153 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 9154 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 9155 RECOMP_FLAGS_IN(); 9156 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 9157 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 9158 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 9159 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 9160 _cf = 0; 9161 _flag_k = FK_NARROW(FK_TEST, 24); 9162 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 9163 L_2B04F12F: 9164 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 9165 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 9166 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 9167 L_2B04F136: 9168 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 9169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 9170 _cf = 0; 9171 _flag_k = FK_TEST; 9172 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 9173 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 9174 L_2B04F140: 9175 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 9176 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 9177 L_2B04F144: 9178 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 9179 L_2B04F146: 9180 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 9181 RECOMP_FLAGS_IN(); 9182 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 9183 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 9184 RECOMP_FLAGS_IN(); 9185 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 9186 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 9187 RECOMP_FLAGS_IN(); 9188 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 9189 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 9190 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 9191 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 9192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9193 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 9194 _flag_k = FK_ADD; 9195 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 9196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9197 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 9198 _flag_k = FK_ADD; 9199 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 9200 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 9201 edi = edi + 1; /* 0x2B04F168: inc edi */ 9202 _flag_k = FK_INC; 9203 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9204 esi = 0; /* 0x2B04F169: xor esi, esi */ 9205 _cf = 0; 9206 _flag_k = FK_TEST; 9207 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 9208 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9210 _flag_k = FK_CMP; 9211 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 9212 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 9213 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 9214 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 9215 L_2B04F17C: 9216 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 9217 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 9218 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 9219 _cf = 0; 9220 _flag_k = FK_NARROW(FK_TEST, 24); 9221 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 9222 L_2B04F183: 9223 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 9224 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9226 _flag_k = FK_NARROW(FK_CMP, 24); 9227 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 9228 L_2B04F188: 9229 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 9230 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 9231 _flag_k = FK_NARROW(FK_DEC, 24); 9232 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 9233 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 9234 L_2B04F18F: 9235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9236 eax = eax - 1; /* 0x2B04F18F: dec eax */ 9237 _flag_k = FK_DEC; 9238 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 9239 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 9240 RECOMP_FLAGS_IN(); 9241 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9243 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 9244 _flag_k = FK_ADD; 9245 L_2B04F199: 9246 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 9247 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 9248 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 9249 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 9250 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 9251 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 9252 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 9253 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 9254 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 9255 RECOMP_FLAGS_IN(); 9256 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 9257 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 9258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9259 _flag_k = FK_CMP; 9260 RECOMP_BACKEDGE(); 9261 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 9262 L_2B04F1BC: 9263 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 9264 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 9265 L_2B04F1C1: 9266 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 9267 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 9268 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 9269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9270 _flag_k = FK_CMP; 9271 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 9272 L_2B04F1C9: 9273 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 9274 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 9275 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 9276 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 9277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9278 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 9279 _flag_k = FK_CMP; 9280 L_2B04F1D7: 9281 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 9282 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 9283 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 9284 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 9285 RECOMP_FLAGS_IN(); 9286 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 9287 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 9288 RECOMP_FLAGS_IN(); 9289 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 9290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9291 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 9292 _flag_k = FK_ADD; 9293 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 9294 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 9295 _flag_k = FK_DEC; 9296 RECOMP_BACKEDGE(); 9297 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 9298 L_2B04F1F5: 9299 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 9300 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 9301 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 9302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 9303 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9304 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 9305 _flag_k = FK_ADD; 9306 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 9307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9308 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 9309 _flag_k = FK_ADD; 9310 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 9311 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 9312 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 9313 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 9314 RECOMP_FLAGS_IN(); 9315 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 9316 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 9317 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 9318 RECOMP_FLAGS_IN(); 9319 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 9320 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 9321 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 9322 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 9323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9324 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 9325 _flag_k = FK_ADD; 9326 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 9327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 9328 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9329 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 9330 _flag_k = FK_ADD; 9331 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 9332 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 9333 RECOMP_FLAGS_IN(); 9334 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 9335 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 9336 RECOMP_FLAGS_IN(); 9337 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 9338 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 9339 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9340 _cf = 0; 9341 _flag_k = FK_NARROW(FK_TEST, 24); 9342 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 9343 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 9344 L_2B04F246: 9345 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 9346 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 9347 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 9348 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 9349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 9350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9351 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 9352 _flag_k = FK_ADD; 9353 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 9354 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 9355 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 9356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9357 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 9358 _flag_k = FK_ADD; 9359 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 9360 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 9361 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 9362 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 9363 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 9364 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 9365 RECOMP_FLAGS_IN(); 9366 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 9367 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 9368 RECOMP_FLAGS_IN(); 9369 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 9370 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 9371 RECOMP_FLAGS_IN(); 9372 L_2B04F283: 9373 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 9374 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 9375 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9376 _cf = 0; 9377 _flag_k = FK_NARROW(FK_TEST, 24); 9378 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 9379 L_2B04F28D: 9380 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 9381 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 9382 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 9383 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 9384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 9385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9386 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 9387 _flag_k = FK_ADD; 9388 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 9389 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 9390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 9391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9392 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 9393 _flag_k = FK_ADD; 9394 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 9395 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 9396 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 9397 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 9398 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 9399 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 9400 RECOMP_FLAGS_IN(); 9401 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 9402 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 9403 RECOMP_FLAGS_IN(); 9404 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 9405 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 9406 RECOMP_FLAGS_IN(); 9407 L_2B04F2D0: 9408 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 9409 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 9410 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 9411 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 9412 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 9413 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 9414 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 9415 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 9416 RECOMP_REGS_OUT(); 9417 } 9418 9419 void sub_2B04EB1A(void) { 9420 int _fpu_cmp = 0; 9421 uint32_t _cf = 0; 9422 int _df = 1; 9423 uint32_t _flag_k = FK_NONE; 9424 uint32_t _flag_a = 0, _flag_b = 0; 9425 uint32_t _itail_tgt = 0; 9426 RECOMP_REGS_LOCALS 9427 RECOMP_ENTER(0x2B04EB1Au); 9428 9429 L_2B04EB1A: 9430 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 9431 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 9432 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 9433 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 9434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9435 _flag_k = FK_CMP; 9436 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 9437 L_2B04EB2C: 9438 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 9439 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 9440 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9441 _cf = 0; 9442 _flag_k = FK_TEST; 9443 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 9444 L_2B04EB37: 9445 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 9446 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 9447 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 9448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9449 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 9450 _flag_k = FK_ADD; 9451 eax = edx; /* 0x2B04EB40: mov eax, edx */ 9452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9453 eax = eax - 1; /* 0x2B04EB42: dec eax */ 9454 _flag_k = FK_DEC; 9455 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 9456 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 9457 L_2B04EB48: 9458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9459 eax = eax - 1; /* 0x2B04EB48: dec eax */ 9460 _flag_k = FK_DEC; 9461 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 9462 L_2B04EB4B: 9463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9464 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 9465 _flag_k = FK_DEC; 9466 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 9467 L_2B04EB4E: 9468 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 9469 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 9470 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 9471 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 9472 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 9473 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 9474 RECOMP_FLAGS_IN(); 9475 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 9476 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 9477 L_2B04EB67: 9478 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 9479 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 9480 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 9481 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 9482 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 9483 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 9484 RECOMP_FLAGS_IN(); 9485 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 9486 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 9487 L_2B04EB80: 9488 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 9489 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 9490 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 9491 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 9492 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 9493 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 9494 RECOMP_FLAGS_IN(); 9495 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 9496 L_2B04EB97: 9497 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 9498 L_2B04EB9B: 9499 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 9500 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 9501 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 9502 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 9503 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 9504 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 9505 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 9506 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 9507 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 9508 L_2B04EBBA: 9509 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 9510 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 9511 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9512 _cf = 0; 9513 _flag_k = FK_NARROW(FK_TEST, 24); 9514 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 9515 L_2B04EBC1: 9516 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 9517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9518 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 9519 _flag_k = FK_DEC; 9520 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 9521 L_2B04EBC7: 9522 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 9523 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 9524 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 9525 L_2B04EBD0: 9526 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 9527 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 9528 L_2B04EBD7: 9529 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 9530 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 9531 RECOMP_FLAGS_IN(); 9532 L_2B04EBE0: 9533 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 9534 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 9535 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 9536 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 9537 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 9538 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 9539 RECOMP_FLAGS_IN(); 9540 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 9541 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 9542 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 9543 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 9544 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9545 _cf = 0; 9546 _flag_k = FK_NARROW(FK_TEST, 24); 9547 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 9548 L_2B04EC02: 9549 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 9550 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 9551 L_2B04EC09: 9552 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 9553 L_2B04EC0E: 9554 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 9555 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 9556 RECOMP_FLAGS_IN(); 9557 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 9558 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 9559 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 9560 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 9561 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 9562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9563 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 9564 _flag_k = FK_ADD; 9565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 9566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9567 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 9568 _flag_k = FK_ADD; 9569 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 9570 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 9571 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 9572 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 9573 RECOMP_FLAGS_IN(); 9574 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 9575 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 9576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9577 _cf = 0; 9578 _flag_k = FK_TEST; 9579 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 9580 L_2B04EC39: 9581 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 9582 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 9583 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 9584 L_2B04EC44: 9585 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 9586 L_2B04EC47: 9587 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 9588 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 9589 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 9590 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 9591 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 9592 RECOMP_FLAGS_IN(); 9593 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 9594 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 9595 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 9596 _cf = 0; 9597 _flag_k = FK_TEST; 9598 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9599 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 9600 _cf = 0; 9601 _flag_k = FK_TEST; 9602 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 9603 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 9604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9605 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 9606 _flag_k = FK_DEC; 9607 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 9608 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 9609 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 9610 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 9611 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 9612 RECOMP_FLAGS_IN(); 9613 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 9614 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9615 _cf = 0; 9616 _flag_k = FK_NARROW(FK_TEST, 24); 9617 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 9618 L_2B04EC78: 9619 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 9620 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 9621 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 9622 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 9623 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 9624 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 9625 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9626 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 9627 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 9628 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 9629 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9630 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 9631 _cf = 0; 9632 _flag_k = FK_TEST; 9633 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 9634 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 9635 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 9636 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 9637 RECOMP_FLAGS_IN(); 9638 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 9639 L_2B04EC9E: 9640 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9641 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 9642 _cf = 0; 9643 _flag_k = FK_TEST; 9644 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 9645 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 9646 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 9647 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 9648 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 9649 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 9650 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 9651 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 9652 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 9653 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 9654 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 9655 RECOMP_FLAGS_IN(); 9656 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 9657 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 9658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9660 _flag_k = FK_CMP; 9661 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 9662 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 9663 L_2B04ECCD: 9664 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 9665 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 9666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 9667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9668 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 9669 _flag_k = FK_ADD; 9670 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9671 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 9672 _flag_k = FK_DEC; 9673 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 9674 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 9675 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9676 _cf = 0; 9677 _flag_k = FK_TEST; 9678 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 9679 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 9680 L_2B04ECDE: 9681 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 9682 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9683 _cf = 0; 9684 _flag_k = FK_TEST; 9685 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 9686 L_2B04ECE2: 9687 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 9688 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 9689 RECOMP_FLAGS_IN(); 9690 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 9691 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 9692 RECOMP_FLAGS_IN(); 9693 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9694 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9695 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 9696 _flag_k = FK_ADD; 9697 L_2B04ECF2: 9698 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 9699 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 9700 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 9701 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 9702 RECOMP_FLAGS_IN(); 9703 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 9704 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 9705 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 9706 L_2B04ED0D: 9707 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 9708 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 9709 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 9710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9711 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 9712 _flag_k = FK_ADD; 9713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9714 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 9715 _flag_k = FK_INC; 9716 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 9717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9718 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 9719 _flag_k = FK_ADD; 9720 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 9721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9722 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 9723 _flag_k = FK_ADD; 9724 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 9725 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 9726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9727 _flag_k = FK_CMP; 9728 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 9729 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 9730 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 9731 RECOMP_BACKEDGE(); 9732 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 9733 L_2B04ED2F: 9734 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 9735 L_2B04ED31: 9736 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 9737 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 9738 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 9739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9740 _flag_k = FK_CMP; 9741 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 9742 L_2B04ED39: 9743 eax = edx; /* 0x2B04ED39: mov eax, edx */ 9744 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 9745 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9746 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 9747 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 9748 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 9749 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9751 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 9752 _flag_k = FK_CMP; 9753 L_2B04ED49: 9754 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 9755 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 9756 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 9757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 9758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9759 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 9760 _flag_k = FK_ADD; 9761 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9762 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 9763 _flag_k = FK_DEC; 9764 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 9765 RECOMP_BACKEDGE(); 9766 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 9767 L_2B04ED5C: 9768 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 9769 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 9770 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 9771 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 9772 RECOMP_FLAGS_IN(); 9773 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 9774 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 9775 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9776 edi = 0; /* 0x2B04ED70: xor edi, edi */ 9777 _cf = 0; 9778 _flag_k = FK_TEST; 9779 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 9780 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9781 _cf = 0; 9782 _flag_k = FK_TEST; 9783 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 9784 L_2B04ED76: 9785 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 9786 L_2B04ED79: 9787 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 9788 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 9789 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 9790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 9791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9792 _flag_k = FK_CMP; 9793 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 9794 L_2B04ED87: 9795 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 9796 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 9797 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 9798 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 9799 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 9800 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 9801 RECOMP_FLAGS_IN(); 9802 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 9803 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 9804 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 9805 _flag_k = FK_INC; 9806 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 9807 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9809 _flag_k = FK_CMP; 9810 RECOMP_BACKEDGE(); 9811 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 9812 L_2B04EDA1: 9813 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 9814 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 9815 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 9816 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9817 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 9818 _flag_k = FK_ADD; 9819 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 9820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9821 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 9822 _flag_k = FK_ADD; 9823 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 9824 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 9825 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 9826 L_2B04EDBF: 9827 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 9828 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 9829 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 9830 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 9831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 9832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9833 _flag_k = FK_CMP; 9834 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 9835 L_2B04EDD4: 9836 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 9837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 9838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9839 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 9840 _flag_k = FK_ADD; 9841 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 9842 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 9843 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 9844 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 9845 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 9846 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 9847 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 9848 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 9849 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 9850 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 9851 RECOMP_FLAGS_IN(); 9852 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 9853 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9854 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 9855 _cf = 0; 9856 _flag_k = FK_TEST; 9857 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 9858 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 9859 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 9860 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 9861 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 9862 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 9863 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 9864 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9866 _flag_k = FK_CMP; 9867 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 9868 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 9869 L_2B04EE1E: 9870 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 9871 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 9872 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9873 _cf = 0; 9874 _flag_k = FK_TEST; 9875 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 9876 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 9877 L_2B04EE28: 9878 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 9879 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 9880 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9881 _cf = 0; 9882 _flag_k = FK_NARROW(FK_TEST, 24); 9883 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 9884 L_2B04EE2F: 9885 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 9886 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9888 _flag_k = FK_NARROW(FK_CMP, 24); 9889 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 9890 L_2B04EE34: 9891 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 9892 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 9893 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 9894 RECOMP_FLAGS_IN(); 9895 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 9896 L_2B04EE40: 9897 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 9898 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 9899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9900 _cf = 0; 9901 _flag_k = FK_TEST; 9902 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 9903 L_2B04EE46: 9904 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 9905 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 9906 L_2B04EE4D: 9907 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 9908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9910 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 9911 _flag_k = FK_ADD; 9912 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 9913 L_2B04EE53: 9914 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 9915 L_2B04EE58: 9916 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 9917 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 9918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9919 _flag_k = FK_NARROW(FK_CMP, 24); 9920 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 9921 L_2B04EE5D: 9922 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 9923 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 9924 _flag_k = FK_INC; 9925 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 9926 L_2B04EE63: 9927 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 9928 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 9929 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9931 _flag_k = FK_CMP; 9932 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 9933 L_2B04EE6A: 9934 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 9935 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 9936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9937 _cf = 0; 9938 _flag_k = FK_TEST; 9939 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 9940 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 9941 L_2B04EE74: 9942 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 9943 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 9944 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9945 _cf = 0; 9946 _flag_k = FK_NARROW(FK_TEST, 24); 9947 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 9948 L_2B04EE7B: 9949 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 9950 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9952 _flag_k = FK_NARROW(FK_CMP, 24); 9953 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 9954 L_2B04EE7F: 9955 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 9956 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 9957 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 9958 RECOMP_FLAGS_IN(); 9959 L_2B04EE88: 9960 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 9961 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 9962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9963 _cf = 0; 9964 _flag_k = FK_TEST; 9965 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 9966 L_2B04EE8E: 9967 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 9968 L_2B04EE92: 9969 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 9970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9971 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9972 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 9973 _flag_k = FK_ADD; 9974 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 9975 L_2B04EE98: 9976 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 9977 L_2B04EE9D: 9978 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 9979 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 9980 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 9981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 9982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9983 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 9984 _flag_k = FK_CMP; 9985 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 9986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9988 _flag_k = FK_CMP; 9989 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 9990 L_2B04EEAF: 9991 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 9992 RECOMP_FLAGS_IN(); 9993 L_2B04EEB5: 9994 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 9995 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 9996 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 9997 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 9998 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 9999 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 10000 RECOMP_FLAGS_IN(); 10001 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 10002 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10003 _cf = 0; 10004 _flag_k = FK_NARROW(FK_TEST, 24); 10005 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 10006 L_2B04EECB: 10007 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 10008 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 10009 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 10010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10011 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10012 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 10013 _flag_k = FK_ADD; 10014 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 10015 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 10016 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 10017 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 10018 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 10019 L_2B04EEE4: 10020 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 10021 L_2B04EEE7: 10022 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 10023 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 10024 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 10025 _flag_k = FK_INC; 10026 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 10027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10029 _flag_k = FK_CMP; 10030 RECOMP_BACKEDGE(); 10031 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 10032 L_2B04EEF3: 10033 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 10034 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 10035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10036 _cf = 0; 10037 _flag_k = FK_TEST; 10038 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 10039 L_2B04EEFA: 10040 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 10041 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 10042 L_2B04EF02: 10043 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 10044 L_2B04EF05: 10045 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 10046 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 10047 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10048 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 10049 _cf = 0; 10050 _flag_k = FK_TEST; 10051 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 10052 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 10053 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 10054 edi = esi; /* 0x2B04EF16: mov edi, esi */ 10055 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10056 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 10057 _cf = 0; 10058 _flag_k = FK_TEST; 10059 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 10060 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 10061 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10062 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 10063 _flag_k = FK_DEC; 10064 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 10065 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 10066 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 10067 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 10068 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 10069 RECOMP_FLAGS_IN(); 10070 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 10071 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10072 _cf = 0; 10073 _flag_k = FK_NARROW(FK_TEST, 24); 10074 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 10075 L_2B04EF32: 10076 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 10077 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 10078 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 10079 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 10080 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10081 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 10082 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 10083 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 10084 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10085 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 10086 _cf = 0; 10087 _flag_k = FK_TEST; 10088 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 10089 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 10090 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 10091 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 10092 RECOMP_FLAGS_IN(); 10093 L_2B04EF4F: 10094 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 10095 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 10096 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 10097 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 10098 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 10099 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 10100 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 10101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10102 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 10103 _flag_k = FK_ADD; 10104 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 10105 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 10106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10108 _flag_k = FK_CMP; 10109 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 10110 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 10111 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 10112 L_2B04EF76: 10113 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 10114 L_2B04EF78: 10115 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 10116 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 10117 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 10118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10119 _flag_k = FK_CMP; 10120 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 10121 L_2B04EF7F: 10122 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 10123 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 10124 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 10125 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 10126 RECOMP_FLAGS_IN(); 10127 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 10128 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 10129 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 10130 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 10131 RECOMP_FLAGS_IN(); 10132 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 10133 L_2B04EF9A: 10134 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 10135 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10136 _cf = 0; 10137 _flag_k = FK_TEST; 10138 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 10139 L_2B04EF9E: 10140 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 10141 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 10142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10143 _flag_k = FK_CMP; 10144 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 10145 L_2B04EFA2: 10146 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 10147 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 10148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10149 _cf = 0; 10150 _flag_k = FK_TEST; 10151 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 10152 L_2B04EFA9: 10153 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 10154 L_2B04EFAE: 10155 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 10156 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 10157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10158 _flag_k = FK_NARROW(FK_CMP, 24); 10159 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 10160 L_2B04EFB4: 10161 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 10162 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 10163 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 10164 RECOMP_FLAGS_IN(); 10165 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 10166 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 10167 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10168 _cf = 0; 10169 _flag_k = FK_TEST; 10170 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 10171 L_2B04EFC5: 10172 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 10173 L_2B04EFCA: 10174 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 10175 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 10176 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 10177 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 10178 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 10179 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 10180 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 10181 _flag_k = FK_NARROW(FK_INC, 24); 10182 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 10183 L_2B04EFDE: 10184 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 10185 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 10186 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 10187 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 10188 RECOMP_FLAGS_IN(); 10189 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 10190 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10191 _cf = 0; 10192 _flag_k = FK_NARROW(FK_TEST, 24); 10193 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 10194 L_2B04EFED: 10195 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 10196 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 10197 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10198 _cf = 0; 10199 _flag_k = FK_TEST; 10200 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 10201 L_2B04EFF4: 10202 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 10203 L_2B04EFFA: 10204 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 10205 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 10206 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 10207 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 10208 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 10209 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10210 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 10211 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 10212 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 10213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10214 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 10215 _cf = 0; 10216 _flag_k = FK_TEST; 10217 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 10218 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 10219 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 10220 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 10221 RECOMP_FLAGS_IN(); 10222 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 10223 L_2B04F01C: 10224 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 10225 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10226 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 10227 _cf = 0; 10228 _flag_k = FK_TEST; 10229 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 10230 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10232 _flag_k = FK_CMP; 10233 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 10234 L_2B04F025: 10235 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 10236 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 10237 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10238 edx = edx - 1; /* 0x2B04F02B: dec edx */ 10239 _flag_k = FK_DEC; 10240 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 10241 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 10242 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 10243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10244 _flag_k = FK_CMP; 10245 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 10246 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 10247 L_2B04F034: 10248 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 10249 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10251 _flag_k = FK_CMP; 10252 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 10253 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 10254 L_2B04F03B: 10255 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 10256 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 10257 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 10258 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 10259 RECOMP_FLAGS_IN(); 10260 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 10261 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 10262 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 10263 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 10264 RECOMP_FLAGS_IN(); 10265 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 10266 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 10267 RECOMP_FLAGS_IN(); 10268 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10270 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 10271 _flag_k = FK_ADD; 10272 L_2B04F062: 10273 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 10274 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 10275 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 10276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10277 _flag_k = FK_CMP; 10278 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 10279 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 10280 L_2B04F06D: 10281 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 10282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10283 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 10284 _flag_k = FK_DEC; 10285 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 10286 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10287 _cf = 0; 10288 _flag_k = FK_NARROW(FK_TEST, 24); 10289 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 10290 L_2B04F075: 10291 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 10292 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10294 _flag_k = FK_NARROW(FK_CMP, 24); 10295 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 10296 L_2B04F079: 10297 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10298 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 10299 _flag_k = FK_NARROW(FK_DEC, 24); 10300 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 10301 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 10302 L_2B04F07F: 10303 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 10304 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 10305 RECOMP_FLAGS_IN(); 10306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10308 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 10309 _flag_k = FK_ADD; 10310 L_2B04F088: 10311 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 10312 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 10313 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 10314 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 10315 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 10316 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 10317 _cf = 0; 10318 _flag_k = FK_NARROW(FK_TEST, 24); 10319 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 10320 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 10321 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 10322 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 10323 L_2B04F0A2: 10324 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 10325 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 10326 L_2B04F0A9: 10327 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 10328 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 10329 L_2B04F0AD: 10330 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 10331 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 10332 RECOMP_FLAGS_IN(); 10333 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 10334 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 10335 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 10336 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 10337 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 10338 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10339 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 10340 _flag_k = FK_ADD; 10341 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 10342 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 10343 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 10344 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 10345 RECOMP_FLAGS_IN(); 10346 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 10347 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 10348 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 10349 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 10350 _cf = 0; 10351 _flag_k = FK_NARROW(FK_TEST, 24); 10352 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 10353 L_2B04F0DB: 10354 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 10355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 10356 _cf = 0; 10357 _flag_k = FK_TEST; 10358 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 10359 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 10360 L_2B04F0E4: 10361 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 10362 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 10363 L_2B04F0E8: 10364 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 10365 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 10366 L_2B04F0EC: 10367 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 10368 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 10369 L_2B04F0EF: 10370 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 10371 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 10372 RECOMP_FLAGS_IN(); 10373 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 10374 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 10375 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 10376 RECOMP_FLAGS_IN(); 10377 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 10378 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 10379 RECOMP_FLAGS_IN(); 10380 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 10381 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 10382 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 10383 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 10384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 10385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10386 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 10387 _flag_k = FK_ADD; 10388 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 10389 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 10390 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 10391 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 10392 RECOMP_FLAGS_IN(); 10393 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 10394 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 10395 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 10396 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 10397 _cf = 0; 10398 _flag_k = FK_NARROW(FK_TEST, 24); 10399 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 10400 L_2B04F12F: 10401 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 10402 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 10403 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 10404 L_2B04F136: 10405 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 10406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 10407 _cf = 0; 10408 _flag_k = FK_TEST; 10409 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 10410 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 10411 L_2B04F140: 10412 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 10413 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 10414 L_2B04F144: 10415 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 10416 L_2B04F146: 10417 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 10418 RECOMP_FLAGS_IN(); 10419 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 10420 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 10421 RECOMP_FLAGS_IN(); 10422 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 10423 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 10424 RECOMP_FLAGS_IN(); 10425 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 10426 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 10427 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 10428 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 10429 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10430 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 10431 _flag_k = FK_ADD; 10432 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 10433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10434 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 10435 _flag_k = FK_ADD; 10436 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 10437 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 10438 edi = edi + 1; /* 0x2B04F168: inc edi */ 10439 _flag_k = FK_INC; 10440 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10441 esi = 0; /* 0x2B04F169: xor esi, esi */ 10442 _cf = 0; 10443 _flag_k = FK_TEST; 10444 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 10445 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 10446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10447 _flag_k = FK_CMP; 10448 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 10449 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 10450 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 10451 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 10452 L_2B04F17C: 10453 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 10454 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 10455 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 10456 _cf = 0; 10457 _flag_k = FK_NARROW(FK_TEST, 24); 10458 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 10459 L_2B04F183: 10460 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 10461 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10463 _flag_k = FK_NARROW(FK_CMP, 24); 10464 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 10465 L_2B04F188: 10466 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 10467 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 10468 _flag_k = FK_NARROW(FK_DEC, 24); 10469 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 10470 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 10471 L_2B04F18F: 10472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10473 eax = eax - 1; /* 0x2B04F18F: dec eax */ 10474 _flag_k = FK_DEC; 10475 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 10476 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 10477 RECOMP_FLAGS_IN(); 10478 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10480 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 10481 _flag_k = FK_ADD; 10482 L_2B04F199: 10483 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 10484 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 10485 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 10486 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 10487 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 10488 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 10489 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 10490 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 10491 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 10492 RECOMP_FLAGS_IN(); 10493 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 10494 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 10495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10496 _flag_k = FK_CMP; 10497 RECOMP_BACKEDGE(); 10498 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 10499 L_2B04F1BC: 10500 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 10501 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 10502 L_2B04F1C1: 10503 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 10504 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 10505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 10506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10507 _flag_k = FK_CMP; 10508 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 10509 L_2B04F1C9: 10510 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 10511 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 10512 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 10513 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 10514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10515 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 10516 _flag_k = FK_CMP; 10517 L_2B04F1D7: 10518 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 10519 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 10520 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 10521 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 10522 RECOMP_FLAGS_IN(); 10523 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 10524 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 10525 RECOMP_FLAGS_IN(); 10526 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 10527 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10528 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 10529 _flag_k = FK_ADD; 10530 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 10531 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 10532 _flag_k = FK_DEC; 10533 RECOMP_BACKEDGE(); 10534 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 10535 L_2B04F1F5: 10536 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 10537 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 10538 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 10539 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 10540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10541 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 10542 _flag_k = FK_ADD; 10543 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 10544 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10545 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 10546 _flag_k = FK_ADD; 10547 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 10548 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 10549 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 10550 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 10551 RECOMP_FLAGS_IN(); 10552 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 10553 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 10554 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 10555 RECOMP_FLAGS_IN(); 10556 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 10557 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 10558 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 10559 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 10560 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10561 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 10562 _flag_k = FK_ADD; 10563 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 10564 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 10565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10566 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 10567 _flag_k = FK_ADD; 10568 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 10569 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 10570 RECOMP_FLAGS_IN(); 10571 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 10572 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 10573 RECOMP_FLAGS_IN(); 10574 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 10575 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 10576 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10577 _cf = 0; 10578 _flag_k = FK_NARROW(FK_TEST, 24); 10579 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 10580 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 10581 L_2B04F246: 10582 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 10583 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 10584 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 10585 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 10586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 10587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10588 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 10589 _flag_k = FK_ADD; 10590 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 10591 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 10592 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 10593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10594 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 10595 _flag_k = FK_ADD; 10596 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 10597 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 10598 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 10599 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 10600 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 10601 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 10602 RECOMP_FLAGS_IN(); 10603 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 10604 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 10605 RECOMP_FLAGS_IN(); 10606 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 10607 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 10608 RECOMP_FLAGS_IN(); 10609 L_2B04F283: 10610 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 10611 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 10612 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10613 _cf = 0; 10614 _flag_k = FK_NARROW(FK_TEST, 24); 10615 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 10616 L_2B04F28D: 10617 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 10618 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 10619 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 10620 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 10621 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 10622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10623 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 10624 _flag_k = FK_ADD; 10625 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 10626 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 10627 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 10628 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10629 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 10630 _flag_k = FK_ADD; 10631 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 10632 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 10633 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 10634 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 10635 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 10636 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 10637 RECOMP_FLAGS_IN(); 10638 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 10639 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 10640 RECOMP_FLAGS_IN(); 10641 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 10642 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 10643 RECOMP_FLAGS_IN(); 10644 L_2B04F2D0: 10645 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 10646 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 10647 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 10648 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 10649 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 10650 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 10651 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 10652 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 10653 RECOMP_REGS_OUT(); 10654 } 10655 10656 void sub_2B04EB97(void) { 10657 int _fpu_cmp = 0; 10658 uint32_t _cf = 0; 10659 int _df = 1; 10660 uint32_t _flag_k = FK_NONE; 10661 uint32_t _flag_a = 0, _flag_b = 0; 10662 uint32_t _itail_tgt = 0; 10663 RECOMP_REGS_LOCALS 10664 RECOMP_ENTER(0x2B04EB97u); 10665 10666 goto L_2B04EB97; 10667 L_2B04EB1A: 10668 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 10669 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 10670 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 10671 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 10672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10673 _flag_k = FK_CMP; 10674 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 10675 L_2B04EB2C: 10676 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 10677 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 10678 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10679 _cf = 0; 10680 _flag_k = FK_TEST; 10681 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 10682 L_2B04EB37: 10683 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 10684 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 10685 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 10686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10687 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 10688 _flag_k = FK_ADD; 10689 eax = edx; /* 0x2B04EB40: mov eax, edx */ 10690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10691 eax = eax - 1; /* 0x2B04EB42: dec eax */ 10692 _flag_k = FK_DEC; 10693 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 10694 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 10695 L_2B04EB48: 10696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10697 eax = eax - 1; /* 0x2B04EB48: dec eax */ 10698 _flag_k = FK_DEC; 10699 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 10700 L_2B04EB4B: 10701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10702 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 10703 _flag_k = FK_DEC; 10704 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 10705 L_2B04EB4E: 10706 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 10707 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 10708 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 10709 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 10710 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 10711 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 10712 RECOMP_FLAGS_IN(); 10713 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 10714 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 10715 L_2B04EB67: 10716 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 10717 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 10718 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 10719 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 10720 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 10721 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 10722 RECOMP_FLAGS_IN(); 10723 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 10724 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 10725 L_2B04EB80: 10726 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 10727 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 10728 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 10729 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 10730 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 10731 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 10732 RECOMP_FLAGS_IN(); 10733 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 10734 L_2B04EB97: 10735 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 10736 L_2B04EB9B: 10737 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 10738 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 10739 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 10740 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 10741 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 10742 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 10743 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 10744 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 10745 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 10746 L_2B04EBBA: 10747 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 10748 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 10749 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10750 _cf = 0; 10751 _flag_k = FK_NARROW(FK_TEST, 24); 10752 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 10753 L_2B04EBC1: 10754 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 10755 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10756 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 10757 _flag_k = FK_DEC; 10758 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 10759 L_2B04EBC7: 10760 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 10761 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 10762 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 10763 L_2B04EBD0: 10764 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 10765 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 10766 L_2B04EBD7: 10767 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 10768 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 10769 RECOMP_FLAGS_IN(); 10770 L_2B04EBE0: 10771 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 10772 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 10773 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 10774 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 10775 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 10776 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 10777 RECOMP_FLAGS_IN(); 10778 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 10779 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 10780 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 10781 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 10782 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10783 _cf = 0; 10784 _flag_k = FK_NARROW(FK_TEST, 24); 10785 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 10786 L_2B04EC02: 10787 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 10788 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 10789 L_2B04EC09: 10790 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 10791 L_2B04EC0E: 10792 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 10793 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 10794 RECOMP_FLAGS_IN(); 10795 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 10796 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 10797 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 10798 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 10799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 10800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10801 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 10802 _flag_k = FK_ADD; 10803 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 10804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10805 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 10806 _flag_k = FK_ADD; 10807 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 10808 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 10809 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 10810 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 10811 RECOMP_FLAGS_IN(); 10812 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 10813 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 10814 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10815 _cf = 0; 10816 _flag_k = FK_TEST; 10817 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 10818 L_2B04EC39: 10819 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 10820 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 10821 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 10822 L_2B04EC44: 10823 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 10824 L_2B04EC47: 10825 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 10826 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 10827 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 10828 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 10829 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 10830 RECOMP_FLAGS_IN(); 10831 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 10832 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10833 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 10834 _cf = 0; 10835 _flag_k = FK_TEST; 10836 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10837 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 10838 _cf = 0; 10839 _flag_k = FK_TEST; 10840 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 10841 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 10842 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10843 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 10844 _flag_k = FK_DEC; 10845 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 10846 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 10847 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 10848 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 10849 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 10850 RECOMP_FLAGS_IN(); 10851 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 10852 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10853 _cf = 0; 10854 _flag_k = FK_NARROW(FK_TEST, 24); 10855 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 10856 L_2B04EC78: 10857 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 10858 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 10859 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 10860 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 10861 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 10862 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 10863 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10864 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 10865 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 10866 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 10867 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10868 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 10869 _cf = 0; 10870 _flag_k = FK_TEST; 10871 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 10872 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 10873 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 10874 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 10875 RECOMP_FLAGS_IN(); 10876 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 10877 L_2B04EC9E: 10878 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10879 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 10880 _cf = 0; 10881 _flag_k = FK_TEST; 10882 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 10883 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 10884 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 10885 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 10886 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 10887 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 10888 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 10889 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 10890 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 10891 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 10892 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 10893 RECOMP_FLAGS_IN(); 10894 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 10895 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 10896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10898 _flag_k = FK_CMP; 10899 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 10900 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 10901 L_2B04ECCD: 10902 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 10903 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 10904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 10905 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10906 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 10907 _flag_k = FK_ADD; 10908 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10909 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 10910 _flag_k = FK_DEC; 10911 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 10912 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 10913 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10914 _cf = 0; 10915 _flag_k = FK_TEST; 10916 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 10917 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 10918 L_2B04ECDE: 10919 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 10920 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10921 _cf = 0; 10922 _flag_k = FK_TEST; 10923 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 10924 L_2B04ECE2: 10925 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 10926 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 10927 RECOMP_FLAGS_IN(); 10928 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 10929 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 10930 RECOMP_FLAGS_IN(); 10931 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10932 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10933 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 10934 _flag_k = FK_ADD; 10935 L_2B04ECF2: 10936 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 10937 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 10938 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 10939 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 10940 RECOMP_FLAGS_IN(); 10941 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 10942 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 10943 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 10944 L_2B04ED0D: 10945 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 10946 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 10947 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 10948 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10949 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 10950 _flag_k = FK_ADD; 10951 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10952 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 10953 _flag_k = FK_INC; 10954 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 10955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10956 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 10957 _flag_k = FK_ADD; 10958 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 10959 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10960 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 10961 _flag_k = FK_ADD; 10962 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 10963 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 10964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10965 _flag_k = FK_CMP; 10966 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 10967 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 10968 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 10969 RECOMP_BACKEDGE(); 10970 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 10971 L_2B04ED2F: 10972 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 10973 L_2B04ED31: 10974 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 10975 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 10976 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 10977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10978 _flag_k = FK_CMP; 10979 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 10980 L_2B04ED39: 10981 eax = edx; /* 0x2B04ED39: mov eax, edx */ 10982 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 10983 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10984 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 10985 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 10986 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 10987 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10989 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 10990 _flag_k = FK_CMP; 10991 L_2B04ED49: 10992 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 10993 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 10994 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 10995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 10996 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10997 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 10998 _flag_k = FK_ADD; 10999 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11000 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 11001 _flag_k = FK_DEC; 11002 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 11003 RECOMP_BACKEDGE(); 11004 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 11005 L_2B04ED5C: 11006 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 11007 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 11008 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 11009 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 11010 RECOMP_FLAGS_IN(); 11011 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 11012 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 11013 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11014 edi = 0; /* 0x2B04ED70: xor edi, edi */ 11015 _cf = 0; 11016 _flag_k = FK_TEST; 11017 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 11018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11019 _cf = 0; 11020 _flag_k = FK_TEST; 11021 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 11022 L_2B04ED76: 11023 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 11024 L_2B04ED79: 11025 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 11026 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 11027 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 11028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 11029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11030 _flag_k = FK_CMP; 11031 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 11032 L_2B04ED87: 11033 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 11034 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 11035 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 11036 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 11037 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 11038 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 11039 RECOMP_FLAGS_IN(); 11040 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 11041 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11042 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 11043 _flag_k = FK_INC; 11044 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 11045 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11047 _flag_k = FK_CMP; 11048 RECOMP_BACKEDGE(); 11049 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 11050 L_2B04EDA1: 11051 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 11052 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 11053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 11054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11055 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 11056 _flag_k = FK_ADD; 11057 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 11058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11059 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 11060 _flag_k = FK_ADD; 11061 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 11062 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 11063 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 11064 L_2B04EDBF: 11065 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 11066 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 11067 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 11068 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 11069 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 11070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11071 _flag_k = FK_CMP; 11072 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 11073 L_2B04EDD4: 11074 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 11075 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 11076 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11077 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 11078 _flag_k = FK_ADD; 11079 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 11080 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 11081 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 11082 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 11083 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 11084 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 11085 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 11086 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 11087 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 11088 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 11089 RECOMP_FLAGS_IN(); 11090 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 11091 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11092 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 11093 _cf = 0; 11094 _flag_k = FK_TEST; 11095 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 11096 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 11097 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 11098 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 11099 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 11100 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 11101 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 11102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11104 _flag_k = FK_CMP; 11105 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 11106 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 11107 L_2B04EE1E: 11108 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 11109 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 11110 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11111 _cf = 0; 11112 _flag_k = FK_TEST; 11113 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 11114 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 11115 L_2B04EE28: 11116 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 11117 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 11118 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11119 _cf = 0; 11120 _flag_k = FK_NARROW(FK_TEST, 24); 11121 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 11122 L_2B04EE2F: 11123 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 11124 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 11125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11126 _flag_k = FK_NARROW(FK_CMP, 24); 11127 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 11128 L_2B04EE34: 11129 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 11130 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 11131 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 11132 RECOMP_FLAGS_IN(); 11133 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 11134 L_2B04EE40: 11135 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 11136 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 11137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11138 _cf = 0; 11139 _flag_k = FK_TEST; 11140 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 11141 L_2B04EE46: 11142 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 11143 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 11144 L_2B04EE4D: 11145 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 11146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11148 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 11149 _flag_k = FK_ADD; 11150 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 11151 L_2B04EE53: 11152 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 11153 L_2B04EE58: 11154 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 11155 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 11156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11157 _flag_k = FK_NARROW(FK_CMP, 24); 11158 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 11159 L_2B04EE5D: 11160 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11161 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 11162 _flag_k = FK_INC; 11163 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 11164 L_2B04EE63: 11165 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 11166 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 11167 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 11168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11169 _flag_k = FK_CMP; 11170 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 11171 L_2B04EE6A: 11172 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 11173 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 11174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11175 _cf = 0; 11176 _flag_k = FK_TEST; 11177 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 11178 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 11179 L_2B04EE74: 11180 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 11181 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 11182 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11183 _cf = 0; 11184 _flag_k = FK_NARROW(FK_TEST, 24); 11185 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 11186 L_2B04EE7B: 11187 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 11188 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 11189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11190 _flag_k = FK_NARROW(FK_CMP, 24); 11191 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 11192 L_2B04EE7F: 11193 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 11194 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 11195 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 11196 RECOMP_FLAGS_IN(); 11197 L_2B04EE88: 11198 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 11199 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 11200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11201 _cf = 0; 11202 _flag_k = FK_TEST; 11203 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 11204 L_2B04EE8E: 11205 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 11206 L_2B04EE92: 11207 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 11208 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11210 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 11211 _flag_k = FK_ADD; 11212 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 11213 L_2B04EE98: 11214 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 11215 L_2B04EE9D: 11216 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 11217 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 11218 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 11219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 11220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11221 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 11222 _flag_k = FK_CMP; 11223 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 11224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11226 _flag_k = FK_CMP; 11227 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 11228 L_2B04EEAF: 11229 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 11230 RECOMP_FLAGS_IN(); 11231 L_2B04EEB5: 11232 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 11233 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 11234 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 11235 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 11236 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 11237 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 11238 RECOMP_FLAGS_IN(); 11239 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 11240 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11241 _cf = 0; 11242 _flag_k = FK_NARROW(FK_TEST, 24); 11243 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 11244 L_2B04EECB: 11245 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 11246 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 11247 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 11248 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11250 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 11251 _flag_k = FK_ADD; 11252 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 11253 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 11254 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 11255 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 11256 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 11257 L_2B04EEE4: 11258 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 11259 L_2B04EEE7: 11260 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 11261 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11262 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 11263 _flag_k = FK_INC; 11264 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 11265 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11267 _flag_k = FK_CMP; 11268 RECOMP_BACKEDGE(); 11269 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 11270 L_2B04EEF3: 11271 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 11272 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 11273 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11274 _cf = 0; 11275 _flag_k = FK_TEST; 11276 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 11277 L_2B04EEFA: 11278 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 11279 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 11280 L_2B04EF02: 11281 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 11282 L_2B04EF05: 11283 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 11284 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 11285 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11286 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 11287 _cf = 0; 11288 _flag_k = FK_TEST; 11289 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 11290 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 11291 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 11292 edi = esi; /* 0x2B04EF16: mov edi, esi */ 11293 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 11294 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 11295 _cf = 0; 11296 _flag_k = FK_TEST; 11297 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 11298 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 11299 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11300 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 11301 _flag_k = FK_DEC; 11302 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 11303 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 11304 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 11305 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 11306 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 11307 RECOMP_FLAGS_IN(); 11308 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 11309 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11310 _cf = 0; 11311 _flag_k = FK_NARROW(FK_TEST, 24); 11312 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 11313 L_2B04EF32: 11314 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 11315 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 11316 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 11317 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 11318 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11319 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 11320 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 11321 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 11322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 11323 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 11324 _cf = 0; 11325 _flag_k = FK_TEST; 11326 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 11327 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 11328 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 11329 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 11330 RECOMP_FLAGS_IN(); 11331 L_2B04EF4F: 11332 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 11333 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 11334 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 11335 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 11336 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 11337 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 11338 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 11339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11340 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 11341 _flag_k = FK_ADD; 11342 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 11343 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 11344 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11346 _flag_k = FK_CMP; 11347 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 11348 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 11349 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 11350 L_2B04EF76: 11351 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 11352 L_2B04EF78: 11353 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 11354 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 11355 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 11356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11357 _flag_k = FK_CMP; 11358 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 11359 L_2B04EF7F: 11360 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 11361 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 11362 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 11363 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 11364 RECOMP_FLAGS_IN(); 11365 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 11366 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 11367 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 11368 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 11369 RECOMP_FLAGS_IN(); 11370 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 11371 L_2B04EF9A: 11372 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 11373 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 11374 _cf = 0; 11375 _flag_k = FK_TEST; 11376 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 11377 L_2B04EF9E: 11378 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 11379 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 11380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11381 _flag_k = FK_CMP; 11382 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 11383 L_2B04EFA2: 11384 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 11385 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 11386 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11387 _cf = 0; 11388 _flag_k = FK_TEST; 11389 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 11390 L_2B04EFA9: 11391 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 11392 L_2B04EFAE: 11393 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 11394 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 11395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11396 _flag_k = FK_NARROW(FK_CMP, 24); 11397 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 11398 L_2B04EFB4: 11399 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 11400 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 11401 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 11402 RECOMP_FLAGS_IN(); 11403 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 11404 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 11405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11406 _cf = 0; 11407 _flag_k = FK_TEST; 11408 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 11409 L_2B04EFC5: 11410 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 11411 L_2B04EFCA: 11412 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 11413 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 11414 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 11415 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 11416 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 11417 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 11418 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 11419 _flag_k = FK_NARROW(FK_INC, 24); 11420 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 11421 L_2B04EFDE: 11422 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 11423 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 11424 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 11425 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 11426 RECOMP_FLAGS_IN(); 11427 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 11428 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11429 _cf = 0; 11430 _flag_k = FK_NARROW(FK_TEST, 24); 11431 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 11432 L_2B04EFED: 11433 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 11434 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 11435 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11436 _cf = 0; 11437 _flag_k = FK_TEST; 11438 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 11439 L_2B04EFF4: 11440 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 11441 L_2B04EFFA: 11442 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 11443 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 11444 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 11445 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 11446 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 11447 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11448 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 11449 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 11450 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 11451 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 11452 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 11453 _cf = 0; 11454 _flag_k = FK_TEST; 11455 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 11456 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 11457 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 11458 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 11459 RECOMP_FLAGS_IN(); 11460 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 11461 L_2B04F01C: 11462 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 11463 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11464 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 11465 _cf = 0; 11466 _flag_k = FK_TEST; 11467 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 11468 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 11469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11470 _flag_k = FK_CMP; 11471 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 11472 L_2B04F025: 11473 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 11474 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 11475 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11476 edx = edx - 1; /* 0x2B04F02B: dec edx */ 11477 _flag_k = FK_DEC; 11478 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 11479 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 11480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 11481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11482 _flag_k = FK_CMP; 11483 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 11484 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 11485 L_2B04F034: 11486 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 11487 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 11488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11489 _flag_k = FK_CMP; 11490 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 11491 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 11492 L_2B04F03B: 11493 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 11494 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 11495 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 11496 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 11497 RECOMP_FLAGS_IN(); 11498 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 11499 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 11500 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 11501 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 11502 RECOMP_FLAGS_IN(); 11503 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 11504 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 11505 RECOMP_FLAGS_IN(); 11506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11508 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 11509 _flag_k = FK_ADD; 11510 L_2B04F062: 11511 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 11512 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 11513 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 11514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11515 _flag_k = FK_CMP; 11516 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 11517 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 11518 L_2B04F06D: 11519 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 11520 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11521 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 11522 _flag_k = FK_DEC; 11523 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 11524 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11525 _cf = 0; 11526 _flag_k = FK_NARROW(FK_TEST, 24); 11527 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 11528 L_2B04F075: 11529 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 11530 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 11531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11532 _flag_k = FK_NARROW(FK_CMP, 24); 11533 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 11534 L_2B04F079: 11535 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 11536 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 11537 _flag_k = FK_NARROW(FK_DEC, 24); 11538 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 11539 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 11540 L_2B04F07F: 11541 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 11542 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 11543 RECOMP_FLAGS_IN(); 11544 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11546 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 11547 _flag_k = FK_ADD; 11548 L_2B04F088: 11549 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 11550 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 11551 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 11552 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 11553 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 11554 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11555 _cf = 0; 11556 _flag_k = FK_NARROW(FK_TEST, 24); 11557 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 11558 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 11559 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 11560 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 11561 L_2B04F0A2: 11562 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 11563 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 11564 L_2B04F0A9: 11565 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 11566 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 11567 L_2B04F0AD: 11568 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 11569 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 11570 RECOMP_FLAGS_IN(); 11571 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 11572 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 11573 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 11574 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 11575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 11576 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11577 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 11578 _flag_k = FK_ADD; 11579 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 11580 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 11581 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 11582 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 11583 RECOMP_FLAGS_IN(); 11584 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 11585 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 11586 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 11587 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 11588 _cf = 0; 11589 _flag_k = FK_NARROW(FK_TEST, 24); 11590 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 11591 L_2B04F0DB: 11592 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 11593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 11594 _cf = 0; 11595 _flag_k = FK_TEST; 11596 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 11597 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 11598 L_2B04F0E4: 11599 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 11600 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 11601 L_2B04F0E8: 11602 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 11603 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 11604 L_2B04F0EC: 11605 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 11606 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 11607 L_2B04F0EF: 11608 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 11609 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 11610 RECOMP_FLAGS_IN(); 11611 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 11612 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 11613 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 11614 RECOMP_FLAGS_IN(); 11615 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 11616 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 11617 RECOMP_FLAGS_IN(); 11618 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 11619 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 11620 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 11621 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 11622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 11623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11624 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 11625 _flag_k = FK_ADD; 11626 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 11627 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 11628 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 11629 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 11630 RECOMP_FLAGS_IN(); 11631 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 11632 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 11633 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 11634 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 11635 _cf = 0; 11636 _flag_k = FK_NARROW(FK_TEST, 24); 11637 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 11638 L_2B04F12F: 11639 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 11640 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 11641 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 11642 L_2B04F136: 11643 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 11644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 11645 _cf = 0; 11646 _flag_k = FK_TEST; 11647 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 11648 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 11649 L_2B04F140: 11650 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 11651 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 11652 L_2B04F144: 11653 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 11654 L_2B04F146: 11655 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 11656 RECOMP_FLAGS_IN(); 11657 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 11658 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 11659 RECOMP_FLAGS_IN(); 11660 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 11661 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 11662 RECOMP_FLAGS_IN(); 11663 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 11664 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 11665 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 11666 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 11667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11668 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 11669 _flag_k = FK_ADD; 11670 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 11671 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11672 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 11673 _flag_k = FK_ADD; 11674 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 11675 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11676 edi = edi + 1; /* 0x2B04F168: inc edi */ 11677 _flag_k = FK_INC; 11678 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11679 esi = 0; /* 0x2B04F169: xor esi, esi */ 11680 _cf = 0; 11681 _flag_k = FK_TEST; 11682 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 11683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 11684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11685 _flag_k = FK_CMP; 11686 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 11687 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 11688 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 11689 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 11690 L_2B04F17C: 11691 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 11692 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 11693 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11694 _cf = 0; 11695 _flag_k = FK_NARROW(FK_TEST, 24); 11696 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 11697 L_2B04F183: 11698 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 11699 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 11700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11701 _flag_k = FK_NARROW(FK_CMP, 24); 11702 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 11703 L_2B04F188: 11704 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 11705 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 11706 _flag_k = FK_NARROW(FK_DEC, 24); 11707 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 11708 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 11709 L_2B04F18F: 11710 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11711 eax = eax - 1; /* 0x2B04F18F: dec eax */ 11712 _flag_k = FK_DEC; 11713 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 11714 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 11715 RECOMP_FLAGS_IN(); 11716 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11718 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 11719 _flag_k = FK_ADD; 11720 L_2B04F199: 11721 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 11722 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 11723 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 11724 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 11725 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 11726 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 11727 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 11728 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 11729 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 11730 RECOMP_FLAGS_IN(); 11731 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 11732 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 11733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11734 _flag_k = FK_CMP; 11735 RECOMP_BACKEDGE(); 11736 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 11737 L_2B04F1BC: 11738 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 11739 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 11740 L_2B04F1C1: 11741 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 11742 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 11743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 11744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11745 _flag_k = FK_CMP; 11746 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 11747 L_2B04F1C9: 11748 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 11749 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 11750 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 11751 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 11752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11753 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 11754 _flag_k = FK_CMP; 11755 L_2B04F1D7: 11756 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 11757 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 11758 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 11759 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 11760 RECOMP_FLAGS_IN(); 11761 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 11762 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 11763 RECOMP_FLAGS_IN(); 11764 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 11765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11766 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 11767 _flag_k = FK_ADD; 11768 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 11769 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 11770 _flag_k = FK_DEC; 11771 RECOMP_BACKEDGE(); 11772 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 11773 L_2B04F1F5: 11774 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 11775 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 11776 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 11777 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 11778 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11779 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 11780 _flag_k = FK_ADD; 11781 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 11782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11783 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 11784 _flag_k = FK_ADD; 11785 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 11786 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 11787 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 11788 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 11789 RECOMP_FLAGS_IN(); 11790 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 11791 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 11792 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 11793 RECOMP_FLAGS_IN(); 11794 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 11795 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 11796 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 11797 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 11798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11799 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 11800 _flag_k = FK_ADD; 11801 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 11802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 11803 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11804 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 11805 _flag_k = FK_ADD; 11806 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 11807 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 11808 RECOMP_FLAGS_IN(); 11809 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 11810 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 11811 RECOMP_FLAGS_IN(); 11812 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 11813 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 11814 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11815 _cf = 0; 11816 _flag_k = FK_NARROW(FK_TEST, 24); 11817 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 11818 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 11819 L_2B04F246: 11820 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 11821 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 11822 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 11823 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 11824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 11825 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11826 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 11827 _flag_k = FK_ADD; 11828 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 11829 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 11830 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 11831 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11832 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 11833 _flag_k = FK_ADD; 11834 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 11835 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 11836 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 11837 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 11838 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 11839 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 11840 RECOMP_FLAGS_IN(); 11841 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 11842 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 11843 RECOMP_FLAGS_IN(); 11844 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 11845 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 11846 RECOMP_FLAGS_IN(); 11847 L_2B04F283: 11848 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 11849 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 11850 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11851 _cf = 0; 11852 _flag_k = FK_NARROW(FK_TEST, 24); 11853 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 11854 L_2B04F28D: 11855 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 11856 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 11857 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 11858 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 11859 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 11860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11861 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 11862 _flag_k = FK_ADD; 11863 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 11864 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 11865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 11866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11867 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 11868 _flag_k = FK_ADD; 11869 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 11870 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 11871 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 11872 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 11873 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 11874 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 11875 RECOMP_FLAGS_IN(); 11876 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 11877 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 11878 RECOMP_FLAGS_IN(); 11879 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 11880 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 11881 RECOMP_FLAGS_IN(); 11882 L_2B04F2D0: 11883 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 11884 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 11885 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 11886 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 11887 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 11888 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 11889 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 11890 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 11891 RECOMP_REGS_OUT(); 11892 } 11893 11894 void sub_2B04EB9B(void) { 11895 int _fpu_cmp = 0; 11896 uint32_t _cf = 0; 11897 int _df = 1; 11898 uint32_t _flag_k = FK_NONE; 11899 uint32_t _flag_a = 0, _flag_b = 0; 11900 uint32_t _itail_tgt = 0; 11901 RECOMP_REGS_LOCALS 11902 RECOMP_ENTER(0x2B04EB9Bu); 11903 11904 goto L_2B04EB9B; 11905 L_2B04EB1A: 11906 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 11907 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 11908 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 11909 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 11910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11911 _flag_k = FK_CMP; 11912 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 11913 L_2B04EB2C: 11914 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 11915 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 11916 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11917 _cf = 0; 11918 _flag_k = FK_TEST; 11919 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 11920 L_2B04EB37: 11921 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 11922 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 11923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 11924 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11925 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 11926 _flag_k = FK_ADD; 11927 eax = edx; /* 0x2B04EB40: mov eax, edx */ 11928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11929 eax = eax - 1; /* 0x2B04EB42: dec eax */ 11930 _flag_k = FK_DEC; 11931 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 11932 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 11933 L_2B04EB48: 11934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11935 eax = eax - 1; /* 0x2B04EB48: dec eax */ 11936 _flag_k = FK_DEC; 11937 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 11938 L_2B04EB4B: 11939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11940 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 11941 _flag_k = FK_DEC; 11942 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 11943 L_2B04EB4E: 11944 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 11945 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 11946 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 11947 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 11948 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 11949 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 11950 RECOMP_FLAGS_IN(); 11951 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 11952 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 11953 L_2B04EB67: 11954 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 11955 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 11956 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 11957 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 11958 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 11959 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 11960 RECOMP_FLAGS_IN(); 11961 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 11962 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 11963 L_2B04EB80: 11964 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 11965 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 11966 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 11967 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 11968 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 11969 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 11970 RECOMP_FLAGS_IN(); 11971 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 11972 L_2B04EB97: 11973 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 11974 L_2B04EB9B: 11975 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 11976 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 11977 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 11978 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 11979 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 11980 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 11981 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 11982 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 11983 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 11984 L_2B04EBBA: 11985 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 11986 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 11987 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11988 _cf = 0; 11989 _flag_k = FK_NARROW(FK_TEST, 24); 11990 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 11991 L_2B04EBC1: 11992 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 11993 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11994 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 11995 _flag_k = FK_DEC; 11996 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 11997 L_2B04EBC7: 11998 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 11999 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 12000 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 12001 L_2B04EBD0: 12002 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 12003 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 12004 L_2B04EBD7: 12005 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 12006 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 12007 RECOMP_FLAGS_IN(); 12008 L_2B04EBE0: 12009 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 12010 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 12011 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 12012 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 12013 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 12014 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 12015 RECOMP_FLAGS_IN(); 12016 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 12017 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 12018 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 12019 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 12020 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12021 _cf = 0; 12022 _flag_k = FK_NARROW(FK_TEST, 24); 12023 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 12024 L_2B04EC02: 12025 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 12026 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 12027 L_2B04EC09: 12028 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 12029 L_2B04EC0E: 12030 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 12031 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 12032 RECOMP_FLAGS_IN(); 12033 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 12034 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 12035 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 12036 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 12037 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 12038 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12039 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 12040 _flag_k = FK_ADD; 12041 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 12042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12043 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 12044 _flag_k = FK_ADD; 12045 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 12046 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 12047 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 12048 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 12049 RECOMP_FLAGS_IN(); 12050 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 12051 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 12052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12053 _cf = 0; 12054 _flag_k = FK_TEST; 12055 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 12056 L_2B04EC39: 12057 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 12058 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 12059 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 12060 L_2B04EC44: 12061 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 12062 L_2B04EC47: 12063 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 12064 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 12065 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 12066 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 12067 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 12068 RECOMP_FLAGS_IN(); 12069 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 12070 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12071 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 12072 _cf = 0; 12073 _flag_k = FK_TEST; 12074 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12075 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 12076 _cf = 0; 12077 _flag_k = FK_TEST; 12078 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 12079 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 12080 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12081 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 12082 _flag_k = FK_DEC; 12083 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 12084 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 12085 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 12086 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 12087 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 12088 RECOMP_FLAGS_IN(); 12089 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 12090 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12091 _cf = 0; 12092 _flag_k = FK_NARROW(FK_TEST, 24); 12093 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 12094 L_2B04EC78: 12095 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 12096 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 12097 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 12098 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 12099 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 12100 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 12101 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12102 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 12103 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 12104 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 12105 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 12106 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 12107 _cf = 0; 12108 _flag_k = FK_TEST; 12109 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 12110 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 12111 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 12112 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 12113 RECOMP_FLAGS_IN(); 12114 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 12115 L_2B04EC9E: 12116 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12117 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 12118 _cf = 0; 12119 _flag_k = FK_TEST; 12120 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 12121 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 12122 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 12123 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 12124 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 12125 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 12126 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 12127 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 12128 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 12129 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 12130 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 12131 RECOMP_FLAGS_IN(); 12132 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 12133 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 12134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12136 _flag_k = FK_CMP; 12137 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 12138 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 12139 L_2B04ECCD: 12140 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 12141 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 12142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 12143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12144 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 12145 _flag_k = FK_ADD; 12146 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12147 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 12148 _flag_k = FK_DEC; 12149 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 12150 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 12151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12152 _cf = 0; 12153 _flag_k = FK_TEST; 12154 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 12155 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 12156 L_2B04ECDE: 12157 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 12158 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 12159 _cf = 0; 12160 _flag_k = FK_TEST; 12161 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 12162 L_2B04ECE2: 12163 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 12164 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 12165 RECOMP_FLAGS_IN(); 12166 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 12167 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 12168 RECOMP_FLAGS_IN(); 12169 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12170 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12171 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 12172 _flag_k = FK_ADD; 12173 L_2B04ECF2: 12174 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 12175 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 12176 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 12177 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 12178 RECOMP_FLAGS_IN(); 12179 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 12180 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 12181 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 12182 L_2B04ED0D: 12183 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 12184 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 12185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 12186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12187 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 12188 _flag_k = FK_ADD; 12189 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12190 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 12191 _flag_k = FK_INC; 12192 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 12193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12194 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 12195 _flag_k = FK_ADD; 12196 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 12197 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12198 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 12199 _flag_k = FK_ADD; 12200 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 12201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 12202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12203 _flag_k = FK_CMP; 12204 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 12205 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 12206 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 12207 RECOMP_BACKEDGE(); 12208 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 12209 L_2B04ED2F: 12210 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 12211 L_2B04ED31: 12212 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 12213 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 12214 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 12215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12216 _flag_k = FK_CMP; 12217 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 12218 L_2B04ED39: 12219 eax = edx; /* 0x2B04ED39: mov eax, edx */ 12220 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 12221 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12222 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 12223 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 12224 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 12225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12227 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 12228 _flag_k = FK_CMP; 12229 L_2B04ED49: 12230 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 12231 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 12232 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 12233 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 12234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12235 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 12236 _flag_k = FK_ADD; 12237 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12238 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 12239 _flag_k = FK_DEC; 12240 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 12241 RECOMP_BACKEDGE(); 12242 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 12243 L_2B04ED5C: 12244 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 12245 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 12246 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 12247 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 12248 RECOMP_FLAGS_IN(); 12249 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 12250 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 12251 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12252 edi = 0; /* 0x2B04ED70: xor edi, edi */ 12253 _cf = 0; 12254 _flag_k = FK_TEST; 12255 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 12256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12257 _cf = 0; 12258 _flag_k = FK_TEST; 12259 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 12260 L_2B04ED76: 12261 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 12262 L_2B04ED79: 12263 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 12264 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 12265 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 12266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12268 _flag_k = FK_CMP; 12269 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 12270 L_2B04ED87: 12271 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 12272 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 12273 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 12274 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 12275 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 12276 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 12277 RECOMP_FLAGS_IN(); 12278 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 12279 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 12280 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 12281 _flag_k = FK_INC; 12282 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 12283 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12285 _flag_k = FK_CMP; 12286 RECOMP_BACKEDGE(); 12287 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 12288 L_2B04EDA1: 12289 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 12290 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 12291 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 12292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12293 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 12294 _flag_k = FK_ADD; 12295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 12296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12297 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 12298 _flag_k = FK_ADD; 12299 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 12300 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 12301 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 12302 L_2B04EDBF: 12303 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 12304 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 12305 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 12306 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 12307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12309 _flag_k = FK_CMP; 12310 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 12311 L_2B04EDD4: 12312 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 12313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 12314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12315 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 12316 _flag_k = FK_ADD; 12317 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 12318 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 12319 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 12320 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 12321 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 12322 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 12323 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 12324 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 12325 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 12326 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 12327 RECOMP_FLAGS_IN(); 12328 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 12329 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12330 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 12331 _cf = 0; 12332 _flag_k = FK_TEST; 12333 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 12334 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 12335 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 12336 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 12337 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 12338 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 12339 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 12340 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12342 _flag_k = FK_CMP; 12343 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 12344 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 12345 L_2B04EE1E: 12346 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 12347 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 12348 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 12349 _cf = 0; 12350 _flag_k = FK_TEST; 12351 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 12352 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 12353 L_2B04EE28: 12354 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 12355 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 12356 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12357 _cf = 0; 12358 _flag_k = FK_NARROW(FK_TEST, 24); 12359 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 12360 L_2B04EE2F: 12361 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 12362 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 12363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12364 _flag_k = FK_NARROW(FK_CMP, 24); 12365 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 12366 L_2B04EE34: 12367 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 12368 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 12369 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 12370 RECOMP_FLAGS_IN(); 12371 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 12372 L_2B04EE40: 12373 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 12374 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 12375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12376 _cf = 0; 12377 _flag_k = FK_TEST; 12378 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 12379 L_2B04EE46: 12380 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 12381 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 12382 L_2B04EE4D: 12383 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 12384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12386 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 12387 _flag_k = FK_ADD; 12388 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 12389 L_2B04EE53: 12390 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 12391 L_2B04EE58: 12392 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 12393 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 12394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12395 _flag_k = FK_NARROW(FK_CMP, 24); 12396 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 12397 L_2B04EE5D: 12398 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 12399 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 12400 _flag_k = FK_INC; 12401 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 12402 L_2B04EE63: 12403 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 12404 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 12405 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 12406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12407 _flag_k = FK_CMP; 12408 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 12409 L_2B04EE6A: 12410 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 12411 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 12412 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12413 _cf = 0; 12414 _flag_k = FK_TEST; 12415 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 12416 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 12417 L_2B04EE74: 12418 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 12419 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 12420 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12421 _cf = 0; 12422 _flag_k = FK_NARROW(FK_TEST, 24); 12423 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 12424 L_2B04EE7B: 12425 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 12426 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 12427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12428 _flag_k = FK_NARROW(FK_CMP, 24); 12429 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 12430 L_2B04EE7F: 12431 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 12432 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 12433 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 12434 RECOMP_FLAGS_IN(); 12435 L_2B04EE88: 12436 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 12437 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 12438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12439 _cf = 0; 12440 _flag_k = FK_TEST; 12441 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 12442 L_2B04EE8E: 12443 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 12444 L_2B04EE92: 12445 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 12446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12448 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 12449 _flag_k = FK_ADD; 12450 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 12451 L_2B04EE98: 12452 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 12453 L_2B04EE9D: 12454 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 12455 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 12456 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 12457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 12458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12459 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 12460 _flag_k = FK_CMP; 12461 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 12462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12464 _flag_k = FK_CMP; 12465 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 12466 L_2B04EEAF: 12467 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 12468 RECOMP_FLAGS_IN(); 12469 L_2B04EEB5: 12470 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 12471 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 12472 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 12473 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 12474 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 12475 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 12476 RECOMP_FLAGS_IN(); 12477 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 12478 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12479 _cf = 0; 12480 _flag_k = FK_NARROW(FK_TEST, 24); 12481 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 12482 L_2B04EECB: 12483 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 12484 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 12485 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 12486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12488 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 12489 _flag_k = FK_ADD; 12490 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 12491 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 12492 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 12493 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 12494 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 12495 L_2B04EEE4: 12496 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 12497 L_2B04EEE7: 12498 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 12499 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 12500 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 12501 _flag_k = FK_INC; 12502 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 12503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12505 _flag_k = FK_CMP; 12506 RECOMP_BACKEDGE(); 12507 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 12508 L_2B04EEF3: 12509 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 12510 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 12511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12512 _cf = 0; 12513 _flag_k = FK_TEST; 12514 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 12515 L_2B04EEFA: 12516 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 12517 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 12518 L_2B04EF02: 12519 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 12520 L_2B04EF05: 12521 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 12522 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 12523 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12524 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 12525 _cf = 0; 12526 _flag_k = FK_TEST; 12527 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 12528 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 12529 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 12530 edi = esi; /* 0x2B04EF16: mov edi, esi */ 12531 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12532 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 12533 _cf = 0; 12534 _flag_k = FK_TEST; 12535 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 12536 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 12537 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12538 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 12539 _flag_k = FK_DEC; 12540 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 12541 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 12542 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 12543 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 12544 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 12545 RECOMP_FLAGS_IN(); 12546 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 12547 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12548 _cf = 0; 12549 _flag_k = FK_NARROW(FK_TEST, 24); 12550 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 12551 L_2B04EF32: 12552 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 12553 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 12554 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 12555 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 12556 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12557 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 12558 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 12559 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 12560 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 12561 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 12562 _cf = 0; 12563 _flag_k = FK_TEST; 12564 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 12565 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 12566 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 12567 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 12568 RECOMP_FLAGS_IN(); 12569 L_2B04EF4F: 12570 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 12571 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 12572 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 12573 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 12574 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 12575 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 12576 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 12577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12578 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 12579 _flag_k = FK_ADD; 12580 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 12581 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 12582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12584 _flag_k = FK_CMP; 12585 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 12586 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 12587 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 12588 L_2B04EF76: 12589 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 12590 L_2B04EF78: 12591 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 12592 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 12593 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 12594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12595 _flag_k = FK_CMP; 12596 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 12597 L_2B04EF7F: 12598 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 12599 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 12600 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 12601 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 12602 RECOMP_FLAGS_IN(); 12603 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 12604 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 12605 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 12606 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 12607 RECOMP_FLAGS_IN(); 12608 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 12609 L_2B04EF9A: 12610 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 12611 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 12612 _cf = 0; 12613 _flag_k = FK_TEST; 12614 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 12615 L_2B04EF9E: 12616 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 12617 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 12618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12619 _flag_k = FK_CMP; 12620 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 12621 L_2B04EFA2: 12622 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 12623 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 12624 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12625 _cf = 0; 12626 _flag_k = FK_TEST; 12627 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 12628 L_2B04EFA9: 12629 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 12630 L_2B04EFAE: 12631 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 12632 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 12633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12634 _flag_k = FK_NARROW(FK_CMP, 24); 12635 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 12636 L_2B04EFB4: 12637 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 12638 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 12639 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 12640 RECOMP_FLAGS_IN(); 12641 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 12642 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 12643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12644 _cf = 0; 12645 _flag_k = FK_TEST; 12646 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 12647 L_2B04EFC5: 12648 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 12649 L_2B04EFCA: 12650 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 12651 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 12652 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 12653 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 12654 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 12655 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 12656 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 12657 _flag_k = FK_NARROW(FK_INC, 24); 12658 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 12659 L_2B04EFDE: 12660 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 12661 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 12662 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 12663 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 12664 RECOMP_FLAGS_IN(); 12665 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 12666 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12667 _cf = 0; 12668 _flag_k = FK_NARROW(FK_TEST, 24); 12669 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 12670 L_2B04EFED: 12671 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 12672 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 12673 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 12674 _cf = 0; 12675 _flag_k = FK_TEST; 12676 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 12677 L_2B04EFF4: 12678 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 12679 L_2B04EFFA: 12680 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 12681 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 12682 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 12683 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 12684 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 12685 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12686 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 12687 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 12688 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 12689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 12690 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 12691 _cf = 0; 12692 _flag_k = FK_TEST; 12693 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 12694 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 12695 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 12696 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 12697 RECOMP_FLAGS_IN(); 12698 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 12699 L_2B04F01C: 12700 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 12701 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12702 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 12703 _cf = 0; 12704 _flag_k = FK_TEST; 12705 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 12706 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 12707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12708 _flag_k = FK_CMP; 12709 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 12710 L_2B04F025: 12711 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 12712 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 12713 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12714 edx = edx - 1; /* 0x2B04F02B: dec edx */ 12715 _flag_k = FK_DEC; 12716 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 12717 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 12718 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 12719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12720 _flag_k = FK_CMP; 12721 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 12722 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 12723 L_2B04F034: 12724 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 12725 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 12726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12727 _flag_k = FK_CMP; 12728 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 12729 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 12730 L_2B04F03B: 12731 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 12732 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 12733 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 12734 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 12735 RECOMP_FLAGS_IN(); 12736 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 12737 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 12738 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 12739 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 12740 RECOMP_FLAGS_IN(); 12741 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 12742 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 12743 RECOMP_FLAGS_IN(); 12744 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12746 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 12747 _flag_k = FK_ADD; 12748 L_2B04F062: 12749 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 12750 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 12751 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 12752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12753 _flag_k = FK_CMP; 12754 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 12755 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 12756 L_2B04F06D: 12757 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 12758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12759 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 12760 _flag_k = FK_DEC; 12761 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 12762 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12763 _cf = 0; 12764 _flag_k = FK_NARROW(FK_TEST, 24); 12765 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 12766 L_2B04F075: 12767 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 12768 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 12769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12770 _flag_k = FK_NARROW(FK_CMP, 24); 12771 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 12772 L_2B04F079: 12773 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12774 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 12775 _flag_k = FK_NARROW(FK_DEC, 24); 12776 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 12777 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 12778 L_2B04F07F: 12779 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 12780 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 12781 RECOMP_FLAGS_IN(); 12782 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12784 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 12785 _flag_k = FK_ADD; 12786 L_2B04F088: 12787 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 12788 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 12789 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 12790 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 12791 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 12792 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12793 _cf = 0; 12794 _flag_k = FK_NARROW(FK_TEST, 24); 12795 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 12796 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 12797 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 12798 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 12799 L_2B04F0A2: 12800 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 12801 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 12802 L_2B04F0A9: 12803 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 12804 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 12805 L_2B04F0AD: 12806 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 12807 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 12808 RECOMP_FLAGS_IN(); 12809 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 12810 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 12811 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 12812 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 12813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 12814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12815 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 12816 _flag_k = FK_ADD; 12817 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 12818 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 12819 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 12820 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 12821 RECOMP_FLAGS_IN(); 12822 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 12823 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 12824 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 12825 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 12826 _cf = 0; 12827 _flag_k = FK_NARROW(FK_TEST, 24); 12828 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 12829 L_2B04F0DB: 12830 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 12831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 12832 _cf = 0; 12833 _flag_k = FK_TEST; 12834 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 12835 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 12836 L_2B04F0E4: 12837 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 12838 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 12839 L_2B04F0E8: 12840 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 12841 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 12842 L_2B04F0EC: 12843 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 12844 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 12845 L_2B04F0EF: 12846 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 12847 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 12848 RECOMP_FLAGS_IN(); 12849 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 12850 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 12851 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 12852 RECOMP_FLAGS_IN(); 12853 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 12854 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 12855 RECOMP_FLAGS_IN(); 12856 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 12857 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 12858 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 12859 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 12860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 12861 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12862 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 12863 _flag_k = FK_ADD; 12864 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 12865 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 12866 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 12867 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 12868 RECOMP_FLAGS_IN(); 12869 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 12870 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 12871 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 12872 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 12873 _cf = 0; 12874 _flag_k = FK_NARROW(FK_TEST, 24); 12875 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 12876 L_2B04F12F: 12877 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 12878 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 12879 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 12880 L_2B04F136: 12881 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 12882 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 12883 _cf = 0; 12884 _flag_k = FK_TEST; 12885 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 12886 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 12887 L_2B04F140: 12888 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 12889 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 12890 L_2B04F144: 12891 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 12892 L_2B04F146: 12893 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 12894 RECOMP_FLAGS_IN(); 12895 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 12896 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 12897 RECOMP_FLAGS_IN(); 12898 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 12899 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 12900 RECOMP_FLAGS_IN(); 12901 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 12902 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 12903 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 12904 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 12905 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12906 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 12907 _flag_k = FK_ADD; 12908 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 12909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12910 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 12911 _flag_k = FK_ADD; 12912 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 12913 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 12914 edi = edi + 1; /* 0x2B04F168: inc edi */ 12915 _flag_k = FK_INC; 12916 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12917 esi = 0; /* 0x2B04F169: xor esi, esi */ 12918 _cf = 0; 12919 _flag_k = FK_TEST; 12920 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 12921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 12922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12923 _flag_k = FK_CMP; 12924 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 12925 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 12926 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 12927 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 12928 L_2B04F17C: 12929 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 12930 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 12931 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12932 _cf = 0; 12933 _flag_k = FK_NARROW(FK_TEST, 24); 12934 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 12935 L_2B04F183: 12936 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 12937 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 12938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12939 _flag_k = FK_NARROW(FK_CMP, 24); 12940 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 12941 L_2B04F188: 12942 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 12943 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 12944 _flag_k = FK_NARROW(FK_DEC, 24); 12945 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 12946 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 12947 L_2B04F18F: 12948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12949 eax = eax - 1; /* 0x2B04F18F: dec eax */ 12950 _flag_k = FK_DEC; 12951 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 12952 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 12953 RECOMP_FLAGS_IN(); 12954 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12956 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 12957 _flag_k = FK_ADD; 12958 L_2B04F199: 12959 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 12960 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 12961 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 12962 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 12963 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 12964 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 12965 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 12966 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 12967 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 12968 RECOMP_FLAGS_IN(); 12969 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 12970 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 12971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12972 _flag_k = FK_CMP; 12973 RECOMP_BACKEDGE(); 12974 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 12975 L_2B04F1BC: 12976 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 12977 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 12978 L_2B04F1C1: 12979 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 12980 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 12981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 12982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12983 _flag_k = FK_CMP; 12984 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 12985 L_2B04F1C9: 12986 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 12987 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 12988 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 12989 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 12990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12991 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 12992 _flag_k = FK_CMP; 12993 L_2B04F1D7: 12994 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 12995 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 12996 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 12997 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 12998 RECOMP_FLAGS_IN(); 12999 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 13000 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 13001 RECOMP_FLAGS_IN(); 13002 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 13003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13004 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 13005 _flag_k = FK_ADD; 13006 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 13007 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 13008 _flag_k = FK_DEC; 13009 RECOMP_BACKEDGE(); 13010 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 13011 L_2B04F1F5: 13012 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 13013 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 13014 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 13015 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 13016 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13017 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 13018 _flag_k = FK_ADD; 13019 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 13020 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13021 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 13022 _flag_k = FK_ADD; 13023 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 13024 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 13025 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 13026 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 13027 RECOMP_FLAGS_IN(); 13028 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 13029 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 13030 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 13031 RECOMP_FLAGS_IN(); 13032 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 13033 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 13034 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 13035 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 13036 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13037 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 13038 _flag_k = FK_ADD; 13039 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 13040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 13041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13042 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 13043 _flag_k = FK_ADD; 13044 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 13045 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 13046 RECOMP_FLAGS_IN(); 13047 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 13048 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 13049 RECOMP_FLAGS_IN(); 13050 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 13051 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 13052 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13053 _cf = 0; 13054 _flag_k = FK_NARROW(FK_TEST, 24); 13055 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 13056 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 13057 L_2B04F246: 13058 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 13059 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 13060 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 13061 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 13062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 13063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13064 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 13065 _flag_k = FK_ADD; 13066 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 13067 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 13068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 13069 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13070 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 13071 _flag_k = FK_ADD; 13072 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 13073 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 13074 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 13075 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 13076 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 13077 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 13078 RECOMP_FLAGS_IN(); 13079 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 13080 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 13081 RECOMP_FLAGS_IN(); 13082 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 13083 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 13084 RECOMP_FLAGS_IN(); 13085 L_2B04F283: 13086 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 13087 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 13088 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13089 _cf = 0; 13090 _flag_k = FK_NARROW(FK_TEST, 24); 13091 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 13092 L_2B04F28D: 13093 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 13094 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 13095 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 13096 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 13097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 13098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13099 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 13100 _flag_k = FK_ADD; 13101 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 13102 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 13103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 13104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13105 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 13106 _flag_k = FK_ADD; 13107 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 13108 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 13109 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 13110 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 13111 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 13112 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 13113 RECOMP_FLAGS_IN(); 13114 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 13115 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 13116 RECOMP_FLAGS_IN(); 13117 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 13118 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 13119 RECOMP_FLAGS_IN(); 13120 L_2B04F2D0: 13121 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 13122 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 13123 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 13124 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 13125 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 13126 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 13127 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 13128 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 13129 RECOMP_REGS_OUT(); 13130 } 13131 13132 void sub_2B04EBBA(void) { 13133 int _fpu_cmp = 0; 13134 uint32_t _cf = 0; 13135 int _df = 1; 13136 uint32_t _flag_k = FK_NONE; 13137 uint32_t _flag_a = 0, _flag_b = 0; 13138 uint32_t _itail_tgt = 0; 13139 RECOMP_REGS_LOCALS 13140 RECOMP_ENTER(0x2B04EBBAu); 13141 13142 goto L_2B04EBBA; 13143 L_2B04EB1A: 13144 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 13145 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 13146 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 13147 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 13148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13149 _flag_k = FK_CMP; 13150 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 13151 L_2B04EB2C: 13152 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 13153 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 13154 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 13155 _cf = 0; 13156 _flag_k = FK_TEST; 13157 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 13158 L_2B04EB37: 13159 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 13160 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 13161 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 13162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13163 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 13164 _flag_k = FK_ADD; 13165 eax = edx; /* 0x2B04EB40: mov eax, edx */ 13166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13167 eax = eax - 1; /* 0x2B04EB42: dec eax */ 13168 _flag_k = FK_DEC; 13169 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 13170 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 13171 L_2B04EB48: 13172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13173 eax = eax - 1; /* 0x2B04EB48: dec eax */ 13174 _flag_k = FK_DEC; 13175 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 13176 L_2B04EB4B: 13177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13178 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 13179 _flag_k = FK_DEC; 13180 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 13181 L_2B04EB4E: 13182 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 13183 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 13184 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 13185 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 13186 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 13187 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 13188 RECOMP_FLAGS_IN(); 13189 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 13190 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 13191 L_2B04EB67: 13192 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 13193 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 13194 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 13195 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 13196 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 13197 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 13198 RECOMP_FLAGS_IN(); 13199 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 13200 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 13201 L_2B04EB80: 13202 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 13203 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 13204 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 13205 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 13206 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 13207 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 13208 RECOMP_FLAGS_IN(); 13209 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 13210 L_2B04EB97: 13211 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 13212 L_2B04EB9B: 13213 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 13214 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 13215 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 13216 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 13217 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 13218 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 13219 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 13220 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 13221 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 13222 L_2B04EBBA: 13223 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 13224 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 13225 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13226 _cf = 0; 13227 _flag_k = FK_NARROW(FK_TEST, 24); 13228 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 13229 L_2B04EBC1: 13230 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 13231 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13232 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 13233 _flag_k = FK_DEC; 13234 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 13235 L_2B04EBC7: 13236 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 13237 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 13238 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 13239 L_2B04EBD0: 13240 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 13241 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 13242 L_2B04EBD7: 13243 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 13244 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 13245 RECOMP_FLAGS_IN(); 13246 L_2B04EBE0: 13247 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 13248 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 13249 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 13250 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 13251 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 13252 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 13253 RECOMP_FLAGS_IN(); 13254 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 13255 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 13256 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 13257 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 13258 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13259 _cf = 0; 13260 _flag_k = FK_NARROW(FK_TEST, 24); 13261 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 13262 L_2B04EC02: 13263 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 13264 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 13265 L_2B04EC09: 13266 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 13267 L_2B04EC0E: 13268 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 13269 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 13270 RECOMP_FLAGS_IN(); 13271 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 13272 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 13273 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 13274 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 13275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 13276 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13277 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 13278 _flag_k = FK_ADD; 13279 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 13280 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13281 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 13282 _flag_k = FK_ADD; 13283 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 13284 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 13285 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 13286 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 13287 RECOMP_FLAGS_IN(); 13288 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 13289 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 13290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13291 _cf = 0; 13292 _flag_k = FK_TEST; 13293 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 13294 L_2B04EC39: 13295 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 13296 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 13297 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 13298 L_2B04EC44: 13299 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 13300 L_2B04EC47: 13301 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 13302 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 13303 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 13304 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 13305 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 13306 RECOMP_FLAGS_IN(); 13307 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 13308 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 13309 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 13310 _cf = 0; 13311 _flag_k = FK_TEST; 13312 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13313 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 13314 _cf = 0; 13315 _flag_k = FK_TEST; 13316 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 13317 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 13318 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13319 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 13320 _flag_k = FK_DEC; 13321 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 13322 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 13323 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 13324 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 13325 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 13326 RECOMP_FLAGS_IN(); 13327 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 13328 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13329 _cf = 0; 13330 _flag_k = FK_NARROW(FK_TEST, 24); 13331 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 13332 L_2B04EC78: 13333 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 13334 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 13335 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 13336 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 13337 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 13338 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 13339 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13340 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 13341 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 13342 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 13343 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 13344 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 13345 _cf = 0; 13346 _flag_k = FK_TEST; 13347 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 13348 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 13349 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 13350 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 13351 RECOMP_FLAGS_IN(); 13352 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 13353 L_2B04EC9E: 13354 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13355 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 13356 _cf = 0; 13357 _flag_k = FK_TEST; 13358 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 13359 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 13360 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 13361 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 13362 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 13363 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 13364 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 13365 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 13366 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 13367 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 13368 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 13369 RECOMP_FLAGS_IN(); 13370 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 13371 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 13372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13374 _flag_k = FK_CMP; 13375 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 13376 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 13377 L_2B04ECCD: 13378 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 13379 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 13380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 13381 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13382 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 13383 _flag_k = FK_ADD; 13384 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13385 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 13386 _flag_k = FK_DEC; 13387 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 13388 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 13389 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13390 _cf = 0; 13391 _flag_k = FK_TEST; 13392 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 13393 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 13394 L_2B04ECDE: 13395 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 13396 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13397 _cf = 0; 13398 _flag_k = FK_TEST; 13399 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 13400 L_2B04ECE2: 13401 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 13402 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 13403 RECOMP_FLAGS_IN(); 13404 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 13405 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 13406 RECOMP_FLAGS_IN(); 13407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13409 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 13410 _flag_k = FK_ADD; 13411 L_2B04ECF2: 13412 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 13413 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 13414 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 13415 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 13416 RECOMP_FLAGS_IN(); 13417 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 13418 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 13419 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 13420 L_2B04ED0D: 13421 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 13422 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 13423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 13424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13425 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 13426 _flag_k = FK_ADD; 13427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13428 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 13429 _flag_k = FK_INC; 13430 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 13431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13432 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 13433 _flag_k = FK_ADD; 13434 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 13435 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13436 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 13437 _flag_k = FK_ADD; 13438 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 13439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 13440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13441 _flag_k = FK_CMP; 13442 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 13443 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 13444 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 13445 RECOMP_BACKEDGE(); 13446 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 13447 L_2B04ED2F: 13448 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 13449 L_2B04ED31: 13450 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 13451 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 13452 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 13453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13454 _flag_k = FK_CMP; 13455 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 13456 L_2B04ED39: 13457 eax = edx; /* 0x2B04ED39: mov eax, edx */ 13458 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 13459 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13460 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 13461 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 13462 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 13463 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13465 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 13466 _flag_k = FK_CMP; 13467 L_2B04ED49: 13468 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 13469 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 13470 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 13471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 13472 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13473 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 13474 _flag_k = FK_ADD; 13475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13476 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 13477 _flag_k = FK_DEC; 13478 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 13479 RECOMP_BACKEDGE(); 13480 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 13481 L_2B04ED5C: 13482 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 13483 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 13484 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 13485 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 13486 RECOMP_FLAGS_IN(); 13487 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 13488 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 13489 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13490 edi = 0; /* 0x2B04ED70: xor edi, edi */ 13491 _cf = 0; 13492 _flag_k = FK_TEST; 13493 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 13494 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13495 _cf = 0; 13496 _flag_k = FK_TEST; 13497 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 13498 L_2B04ED76: 13499 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 13500 L_2B04ED79: 13501 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 13502 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 13503 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 13504 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 13505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13506 _flag_k = FK_CMP; 13507 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 13508 L_2B04ED87: 13509 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 13510 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 13511 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 13512 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 13513 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 13514 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 13515 RECOMP_FLAGS_IN(); 13516 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 13517 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 13518 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 13519 _flag_k = FK_INC; 13520 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 13521 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13523 _flag_k = FK_CMP; 13524 RECOMP_BACKEDGE(); 13525 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 13526 L_2B04EDA1: 13527 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 13528 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 13529 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 13530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13531 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 13532 _flag_k = FK_ADD; 13533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 13534 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13535 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 13536 _flag_k = FK_ADD; 13537 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 13538 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 13539 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 13540 L_2B04EDBF: 13541 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 13542 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 13543 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 13544 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 13545 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 13546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13547 _flag_k = FK_CMP; 13548 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 13549 L_2B04EDD4: 13550 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 13551 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 13552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13553 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 13554 _flag_k = FK_ADD; 13555 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 13556 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 13557 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 13558 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 13559 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 13560 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 13561 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 13562 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 13563 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 13564 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 13565 RECOMP_FLAGS_IN(); 13566 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 13567 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13568 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 13569 _cf = 0; 13570 _flag_k = FK_TEST; 13571 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 13572 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 13573 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 13574 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 13575 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 13576 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 13577 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 13578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13580 _flag_k = FK_CMP; 13581 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 13582 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 13583 L_2B04EE1E: 13584 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 13585 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 13586 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 13587 _cf = 0; 13588 _flag_k = FK_TEST; 13589 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 13590 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 13591 L_2B04EE28: 13592 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 13593 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 13594 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13595 _cf = 0; 13596 _flag_k = FK_NARROW(FK_TEST, 24); 13597 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 13598 L_2B04EE2F: 13599 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 13600 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 13601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13602 _flag_k = FK_NARROW(FK_CMP, 24); 13603 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 13604 L_2B04EE34: 13605 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 13606 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 13607 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 13608 RECOMP_FLAGS_IN(); 13609 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 13610 L_2B04EE40: 13611 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 13612 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 13613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13614 _cf = 0; 13615 _flag_k = FK_TEST; 13616 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 13617 L_2B04EE46: 13618 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 13619 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 13620 L_2B04EE4D: 13621 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 13622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13624 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 13625 _flag_k = FK_ADD; 13626 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 13627 L_2B04EE53: 13628 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 13629 L_2B04EE58: 13630 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 13631 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 13632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13633 _flag_k = FK_NARROW(FK_CMP, 24); 13634 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 13635 L_2B04EE5D: 13636 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 13637 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 13638 _flag_k = FK_INC; 13639 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 13640 L_2B04EE63: 13641 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 13642 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 13643 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13645 _flag_k = FK_CMP; 13646 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 13647 L_2B04EE6A: 13648 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 13649 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 13650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13651 _cf = 0; 13652 _flag_k = FK_TEST; 13653 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 13654 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 13655 L_2B04EE74: 13656 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 13657 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 13658 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13659 _cf = 0; 13660 _flag_k = FK_NARROW(FK_TEST, 24); 13661 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 13662 L_2B04EE7B: 13663 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 13664 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 13665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13666 _flag_k = FK_NARROW(FK_CMP, 24); 13667 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 13668 L_2B04EE7F: 13669 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 13670 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 13671 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 13672 RECOMP_FLAGS_IN(); 13673 L_2B04EE88: 13674 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 13675 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 13676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13677 _cf = 0; 13678 _flag_k = FK_TEST; 13679 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 13680 L_2B04EE8E: 13681 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 13682 L_2B04EE92: 13683 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 13684 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13685 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13686 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 13687 _flag_k = FK_ADD; 13688 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 13689 L_2B04EE98: 13690 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 13691 L_2B04EE9D: 13692 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 13693 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 13694 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 13695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 13696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13697 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 13698 _flag_k = FK_CMP; 13699 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 13700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13702 _flag_k = FK_CMP; 13703 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 13704 L_2B04EEAF: 13705 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 13706 RECOMP_FLAGS_IN(); 13707 L_2B04EEB5: 13708 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 13709 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 13710 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 13711 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 13712 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 13713 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 13714 RECOMP_FLAGS_IN(); 13715 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 13716 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13717 _cf = 0; 13718 _flag_k = FK_NARROW(FK_TEST, 24); 13719 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 13720 L_2B04EECB: 13721 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 13722 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 13723 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 13724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13725 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13726 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 13727 _flag_k = FK_ADD; 13728 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 13729 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 13730 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 13731 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 13732 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 13733 L_2B04EEE4: 13734 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 13735 L_2B04EEE7: 13736 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 13737 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 13738 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 13739 _flag_k = FK_INC; 13740 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 13741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13743 _flag_k = FK_CMP; 13744 RECOMP_BACKEDGE(); 13745 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 13746 L_2B04EEF3: 13747 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 13748 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 13749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13750 _cf = 0; 13751 _flag_k = FK_TEST; 13752 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 13753 L_2B04EEFA: 13754 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 13755 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 13756 L_2B04EF02: 13757 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 13758 L_2B04EF05: 13759 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 13760 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 13761 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13762 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 13763 _cf = 0; 13764 _flag_k = FK_TEST; 13765 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 13766 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 13767 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 13768 edi = esi; /* 0x2B04EF16: mov edi, esi */ 13769 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 13770 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 13771 _cf = 0; 13772 _flag_k = FK_TEST; 13773 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 13774 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 13775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13776 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 13777 _flag_k = FK_DEC; 13778 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 13779 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 13780 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 13781 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 13782 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 13783 RECOMP_FLAGS_IN(); 13784 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 13785 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13786 _cf = 0; 13787 _flag_k = FK_NARROW(FK_TEST, 24); 13788 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 13789 L_2B04EF32: 13790 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 13791 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 13792 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 13793 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 13794 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13795 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 13796 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 13797 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 13798 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 13799 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 13800 _cf = 0; 13801 _flag_k = FK_TEST; 13802 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 13803 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 13804 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 13805 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 13806 RECOMP_FLAGS_IN(); 13807 L_2B04EF4F: 13808 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 13809 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 13810 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 13811 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 13812 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 13813 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 13814 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 13815 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13816 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 13817 _flag_k = FK_ADD; 13818 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 13819 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 13820 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 13821 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13822 _flag_k = FK_CMP; 13823 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 13824 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 13825 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 13826 L_2B04EF76: 13827 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 13828 L_2B04EF78: 13829 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 13830 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 13831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 13832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13833 _flag_k = FK_CMP; 13834 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 13835 L_2B04EF7F: 13836 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 13837 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 13838 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 13839 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 13840 RECOMP_FLAGS_IN(); 13841 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 13842 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 13843 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 13844 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 13845 RECOMP_FLAGS_IN(); 13846 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 13847 L_2B04EF9A: 13848 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 13849 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 13850 _cf = 0; 13851 _flag_k = FK_TEST; 13852 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 13853 L_2B04EF9E: 13854 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 13855 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 13856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13857 _flag_k = FK_CMP; 13858 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 13859 L_2B04EFA2: 13860 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 13861 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 13862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13863 _cf = 0; 13864 _flag_k = FK_TEST; 13865 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 13866 L_2B04EFA9: 13867 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 13868 L_2B04EFAE: 13869 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 13870 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 13871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13872 _flag_k = FK_NARROW(FK_CMP, 24); 13873 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 13874 L_2B04EFB4: 13875 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 13876 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 13877 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 13878 RECOMP_FLAGS_IN(); 13879 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 13880 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 13881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13882 _cf = 0; 13883 _flag_k = FK_TEST; 13884 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 13885 L_2B04EFC5: 13886 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 13887 L_2B04EFCA: 13888 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 13889 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 13890 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 13891 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 13892 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 13893 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 13894 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 13895 _flag_k = FK_NARROW(FK_INC, 24); 13896 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 13897 L_2B04EFDE: 13898 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 13899 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 13900 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 13901 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 13902 RECOMP_FLAGS_IN(); 13903 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 13904 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13905 _cf = 0; 13906 _flag_k = FK_NARROW(FK_TEST, 24); 13907 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 13908 L_2B04EFED: 13909 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 13910 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 13911 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 13912 _cf = 0; 13913 _flag_k = FK_TEST; 13914 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 13915 L_2B04EFF4: 13916 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 13917 L_2B04EFFA: 13918 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 13919 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 13920 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 13921 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 13922 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 13923 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13924 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 13925 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 13926 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 13927 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 13928 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 13929 _cf = 0; 13930 _flag_k = FK_TEST; 13931 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 13932 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 13933 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 13934 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 13935 RECOMP_FLAGS_IN(); 13936 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 13937 L_2B04F01C: 13938 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 13939 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13940 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 13941 _cf = 0; 13942 _flag_k = FK_TEST; 13943 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 13944 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 13945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13946 _flag_k = FK_CMP; 13947 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 13948 L_2B04F025: 13949 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 13950 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 13951 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13952 edx = edx - 1; /* 0x2B04F02B: dec edx */ 13953 _flag_k = FK_DEC; 13954 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 13955 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 13956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 13957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13958 _flag_k = FK_CMP; 13959 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 13960 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 13961 L_2B04F034: 13962 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 13963 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 13964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13965 _flag_k = FK_CMP; 13966 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 13967 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 13968 L_2B04F03B: 13969 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 13970 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 13971 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 13972 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 13973 RECOMP_FLAGS_IN(); 13974 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 13975 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 13976 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 13977 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 13978 RECOMP_FLAGS_IN(); 13979 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 13980 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 13981 RECOMP_FLAGS_IN(); 13982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13984 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 13985 _flag_k = FK_ADD; 13986 L_2B04F062: 13987 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 13988 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 13989 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 13990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13991 _flag_k = FK_CMP; 13992 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 13993 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 13994 L_2B04F06D: 13995 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 13996 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13997 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 13998 _flag_k = FK_DEC; 13999 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 14000 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14001 _cf = 0; 14002 _flag_k = FK_NARROW(FK_TEST, 24); 14003 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 14004 L_2B04F075: 14005 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 14006 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 14007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14008 _flag_k = FK_NARROW(FK_CMP, 24); 14009 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 14010 L_2B04F079: 14011 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 14012 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 14013 _flag_k = FK_NARROW(FK_DEC, 24); 14014 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 14015 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 14016 L_2B04F07F: 14017 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 14018 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 14019 RECOMP_FLAGS_IN(); 14020 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14021 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14022 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 14023 _flag_k = FK_ADD; 14024 L_2B04F088: 14025 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 14026 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 14027 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 14028 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 14029 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 14030 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14031 _cf = 0; 14032 _flag_k = FK_NARROW(FK_TEST, 24); 14033 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 14034 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 14035 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 14036 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 14037 L_2B04F0A2: 14038 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 14039 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 14040 L_2B04F0A9: 14041 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 14042 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 14043 L_2B04F0AD: 14044 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 14045 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 14046 RECOMP_FLAGS_IN(); 14047 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 14048 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 14049 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 14050 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 14051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 14052 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14053 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 14054 _flag_k = FK_ADD; 14055 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 14056 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 14057 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 14058 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 14059 RECOMP_FLAGS_IN(); 14060 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 14061 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 14062 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 14063 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 14064 _cf = 0; 14065 _flag_k = FK_NARROW(FK_TEST, 24); 14066 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 14067 L_2B04F0DB: 14068 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 14069 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 14070 _cf = 0; 14071 _flag_k = FK_TEST; 14072 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 14073 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 14074 L_2B04F0E4: 14075 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 14076 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 14077 L_2B04F0E8: 14078 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 14079 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 14080 L_2B04F0EC: 14081 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 14082 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 14083 L_2B04F0EF: 14084 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 14085 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 14086 RECOMP_FLAGS_IN(); 14087 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 14088 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 14089 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 14090 RECOMP_FLAGS_IN(); 14091 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 14092 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 14093 RECOMP_FLAGS_IN(); 14094 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 14095 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 14096 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 14097 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 14098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 14099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14100 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 14101 _flag_k = FK_ADD; 14102 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 14103 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 14104 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 14105 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 14106 RECOMP_FLAGS_IN(); 14107 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 14108 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 14109 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 14110 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 14111 _cf = 0; 14112 _flag_k = FK_NARROW(FK_TEST, 24); 14113 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 14114 L_2B04F12F: 14115 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 14116 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 14117 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 14118 L_2B04F136: 14119 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 14120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 14121 _cf = 0; 14122 _flag_k = FK_TEST; 14123 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 14124 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 14125 L_2B04F140: 14126 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 14127 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 14128 L_2B04F144: 14129 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 14130 L_2B04F146: 14131 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 14132 RECOMP_FLAGS_IN(); 14133 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 14134 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 14135 RECOMP_FLAGS_IN(); 14136 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 14137 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 14138 RECOMP_FLAGS_IN(); 14139 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 14140 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 14141 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 14142 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 14143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14144 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 14145 _flag_k = FK_ADD; 14146 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 14147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14148 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 14149 _flag_k = FK_ADD; 14150 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 14151 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 14152 edi = edi + 1; /* 0x2B04F168: inc edi */ 14153 _flag_k = FK_INC; 14154 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14155 esi = 0; /* 0x2B04F169: xor esi, esi */ 14156 _cf = 0; 14157 _flag_k = FK_TEST; 14158 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 14159 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 14160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14161 _flag_k = FK_CMP; 14162 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 14163 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 14164 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 14165 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 14166 L_2B04F17C: 14167 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 14168 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 14169 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 14170 _cf = 0; 14171 _flag_k = FK_NARROW(FK_TEST, 24); 14172 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 14173 L_2B04F183: 14174 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 14175 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 14176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14177 _flag_k = FK_NARROW(FK_CMP, 24); 14178 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 14179 L_2B04F188: 14180 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 14181 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 14182 _flag_k = FK_NARROW(FK_DEC, 24); 14183 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 14184 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 14185 L_2B04F18F: 14186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14187 eax = eax - 1; /* 0x2B04F18F: dec eax */ 14188 _flag_k = FK_DEC; 14189 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 14190 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 14191 RECOMP_FLAGS_IN(); 14192 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14194 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 14195 _flag_k = FK_ADD; 14196 L_2B04F199: 14197 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 14198 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 14199 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 14200 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 14201 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 14202 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 14203 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 14204 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 14205 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 14206 RECOMP_FLAGS_IN(); 14207 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 14208 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 14209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14210 _flag_k = FK_CMP; 14211 RECOMP_BACKEDGE(); 14212 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 14213 L_2B04F1BC: 14214 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 14215 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 14216 L_2B04F1C1: 14217 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 14218 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 14219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 14220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14221 _flag_k = FK_CMP; 14222 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 14223 L_2B04F1C9: 14224 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 14225 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 14226 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 14227 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 14228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14229 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 14230 _flag_k = FK_CMP; 14231 L_2B04F1D7: 14232 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 14233 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 14234 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 14235 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 14236 RECOMP_FLAGS_IN(); 14237 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 14238 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 14239 RECOMP_FLAGS_IN(); 14240 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 14241 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14242 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 14243 _flag_k = FK_ADD; 14244 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 14245 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 14246 _flag_k = FK_DEC; 14247 RECOMP_BACKEDGE(); 14248 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 14249 L_2B04F1F5: 14250 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 14251 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 14252 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 14253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 14254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14255 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 14256 _flag_k = FK_ADD; 14257 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 14258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14259 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 14260 _flag_k = FK_ADD; 14261 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 14262 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 14263 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 14264 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 14265 RECOMP_FLAGS_IN(); 14266 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 14267 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 14268 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 14269 RECOMP_FLAGS_IN(); 14270 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 14271 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 14272 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 14273 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 14274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14275 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 14276 _flag_k = FK_ADD; 14277 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 14278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 14279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14280 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 14281 _flag_k = FK_ADD; 14282 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 14283 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 14284 RECOMP_FLAGS_IN(); 14285 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 14286 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 14287 RECOMP_FLAGS_IN(); 14288 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 14289 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 14290 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14291 _cf = 0; 14292 _flag_k = FK_NARROW(FK_TEST, 24); 14293 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 14294 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 14295 L_2B04F246: 14296 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 14297 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 14298 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 14299 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 14300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 14301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14302 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 14303 _flag_k = FK_ADD; 14304 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 14305 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 14306 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 14307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14308 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 14309 _flag_k = FK_ADD; 14310 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 14311 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 14312 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 14313 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 14314 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 14315 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 14316 RECOMP_FLAGS_IN(); 14317 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 14318 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 14319 RECOMP_FLAGS_IN(); 14320 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 14321 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 14322 RECOMP_FLAGS_IN(); 14323 L_2B04F283: 14324 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 14325 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 14326 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14327 _cf = 0; 14328 _flag_k = FK_NARROW(FK_TEST, 24); 14329 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 14330 L_2B04F28D: 14331 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 14332 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 14333 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 14334 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 14335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 14336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14337 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 14338 _flag_k = FK_ADD; 14339 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 14340 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 14341 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 14342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14343 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 14344 _flag_k = FK_ADD; 14345 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 14346 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 14347 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 14348 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 14349 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 14350 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 14351 RECOMP_FLAGS_IN(); 14352 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 14353 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 14354 RECOMP_FLAGS_IN(); 14355 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 14356 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 14357 RECOMP_FLAGS_IN(); 14358 L_2B04F2D0: 14359 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 14360 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 14361 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 14362 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 14363 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 14364 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 14365 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 14366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 14367 RECOMP_REGS_OUT(); 14368 } 14369 14370 void sub_2B04EBD7(void) { 14371 int _fpu_cmp = 0; 14372 uint32_t _cf = 0; 14373 int _df = 1; 14374 uint32_t _flag_k = FK_NONE; 14375 uint32_t _flag_a = 0, _flag_b = 0; 14376 uint32_t _itail_tgt = 0; 14377 RECOMP_REGS_LOCALS 14378 RECOMP_ENTER(0x2B04EBD7u); 14379 14380 goto L_2B04EBD7; 14381 L_2B04EB1A: 14382 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 14383 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 14384 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 14385 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 14386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14387 _flag_k = FK_CMP; 14388 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 14389 L_2B04EB2C: 14390 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 14391 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 14392 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 14393 _cf = 0; 14394 _flag_k = FK_TEST; 14395 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 14396 L_2B04EB37: 14397 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 14398 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 14399 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 14400 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14401 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 14402 _flag_k = FK_ADD; 14403 eax = edx; /* 0x2B04EB40: mov eax, edx */ 14404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14405 eax = eax - 1; /* 0x2B04EB42: dec eax */ 14406 _flag_k = FK_DEC; 14407 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 14408 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 14409 L_2B04EB48: 14410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14411 eax = eax - 1; /* 0x2B04EB48: dec eax */ 14412 _flag_k = FK_DEC; 14413 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 14414 L_2B04EB4B: 14415 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14416 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 14417 _flag_k = FK_DEC; 14418 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 14419 L_2B04EB4E: 14420 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 14421 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 14422 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 14423 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 14424 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 14425 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 14426 RECOMP_FLAGS_IN(); 14427 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 14428 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 14429 L_2B04EB67: 14430 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 14431 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 14432 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 14433 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 14434 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 14435 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 14436 RECOMP_FLAGS_IN(); 14437 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 14438 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 14439 L_2B04EB80: 14440 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 14441 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 14442 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 14443 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 14444 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 14445 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 14446 RECOMP_FLAGS_IN(); 14447 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 14448 L_2B04EB97: 14449 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 14450 L_2B04EB9B: 14451 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 14452 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 14453 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 14454 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 14455 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 14456 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 14457 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 14458 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 14459 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 14460 L_2B04EBBA: 14461 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 14462 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 14463 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14464 _cf = 0; 14465 _flag_k = FK_NARROW(FK_TEST, 24); 14466 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 14467 L_2B04EBC1: 14468 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 14469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14470 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 14471 _flag_k = FK_DEC; 14472 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 14473 L_2B04EBC7: 14474 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 14475 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 14476 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 14477 L_2B04EBD0: 14478 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 14479 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 14480 L_2B04EBD7: 14481 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 14482 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 14483 RECOMP_FLAGS_IN(); 14484 L_2B04EBE0: 14485 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 14486 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 14487 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 14488 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 14489 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 14490 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 14491 RECOMP_FLAGS_IN(); 14492 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 14493 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 14494 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 14495 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 14496 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14497 _cf = 0; 14498 _flag_k = FK_NARROW(FK_TEST, 24); 14499 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 14500 L_2B04EC02: 14501 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 14502 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 14503 L_2B04EC09: 14504 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 14505 L_2B04EC0E: 14506 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 14507 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 14508 RECOMP_FLAGS_IN(); 14509 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 14510 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 14511 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 14512 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 14513 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 14514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14515 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 14516 _flag_k = FK_ADD; 14517 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 14518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14519 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 14520 _flag_k = FK_ADD; 14521 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 14522 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 14523 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 14524 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 14525 RECOMP_FLAGS_IN(); 14526 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 14527 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 14528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14529 _cf = 0; 14530 _flag_k = FK_TEST; 14531 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 14532 L_2B04EC39: 14533 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 14534 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 14535 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 14536 L_2B04EC44: 14537 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 14538 L_2B04EC47: 14539 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 14540 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 14541 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 14542 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 14543 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 14544 RECOMP_FLAGS_IN(); 14545 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 14546 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 14547 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 14548 _cf = 0; 14549 _flag_k = FK_TEST; 14550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14551 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 14552 _cf = 0; 14553 _flag_k = FK_TEST; 14554 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 14555 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 14556 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 14557 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 14558 _flag_k = FK_DEC; 14559 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 14560 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 14561 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 14562 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 14563 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 14564 RECOMP_FLAGS_IN(); 14565 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 14566 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14567 _cf = 0; 14568 _flag_k = FK_NARROW(FK_TEST, 24); 14569 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 14570 L_2B04EC78: 14571 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 14572 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 14573 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 14574 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 14575 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 14576 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 14577 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14578 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 14579 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 14580 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 14581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 14582 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 14583 _cf = 0; 14584 _flag_k = FK_TEST; 14585 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 14586 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 14587 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 14588 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 14589 RECOMP_FLAGS_IN(); 14590 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 14591 L_2B04EC9E: 14592 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14593 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 14594 _cf = 0; 14595 _flag_k = FK_TEST; 14596 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 14597 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 14598 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 14599 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 14600 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 14601 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 14602 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 14603 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 14604 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 14605 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 14606 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 14607 RECOMP_FLAGS_IN(); 14608 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 14609 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 14610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 14611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14612 _flag_k = FK_CMP; 14613 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 14614 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 14615 L_2B04ECCD: 14616 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 14617 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 14618 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 14619 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14620 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 14621 _flag_k = FK_ADD; 14622 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14623 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 14624 _flag_k = FK_DEC; 14625 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 14626 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 14627 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 14628 _cf = 0; 14629 _flag_k = FK_TEST; 14630 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 14631 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 14632 L_2B04ECDE: 14633 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 14634 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 14635 _cf = 0; 14636 _flag_k = FK_TEST; 14637 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 14638 L_2B04ECE2: 14639 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 14640 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 14641 RECOMP_FLAGS_IN(); 14642 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 14643 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 14644 RECOMP_FLAGS_IN(); 14645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14647 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 14648 _flag_k = FK_ADD; 14649 L_2B04ECF2: 14650 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 14651 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 14652 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 14653 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 14654 RECOMP_FLAGS_IN(); 14655 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 14656 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 14657 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 14658 L_2B04ED0D: 14659 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 14660 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 14661 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 14662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14663 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 14664 _flag_k = FK_ADD; 14665 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 14666 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 14667 _flag_k = FK_INC; 14668 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 14669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14670 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 14671 _flag_k = FK_ADD; 14672 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 14673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14674 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 14675 _flag_k = FK_ADD; 14676 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 14677 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 14678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14679 _flag_k = FK_CMP; 14680 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 14681 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 14682 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 14683 RECOMP_BACKEDGE(); 14684 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 14685 L_2B04ED2F: 14686 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 14687 L_2B04ED31: 14688 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 14689 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 14690 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 14691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14692 _flag_k = FK_CMP; 14693 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 14694 L_2B04ED39: 14695 eax = edx; /* 0x2B04ED39: mov eax, edx */ 14696 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 14697 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14698 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 14699 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 14700 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 14701 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 14702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14703 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 14704 _flag_k = FK_CMP; 14705 L_2B04ED49: 14706 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 14707 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 14708 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 14709 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 14710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14711 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 14712 _flag_k = FK_ADD; 14713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 14714 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 14715 _flag_k = FK_DEC; 14716 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 14717 RECOMP_BACKEDGE(); 14718 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 14719 L_2B04ED5C: 14720 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 14721 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 14722 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 14723 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 14724 RECOMP_FLAGS_IN(); 14725 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 14726 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 14727 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14728 edi = 0; /* 0x2B04ED70: xor edi, edi */ 14729 _cf = 0; 14730 _flag_k = FK_TEST; 14731 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 14732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14733 _cf = 0; 14734 _flag_k = FK_TEST; 14735 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 14736 L_2B04ED76: 14737 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 14738 L_2B04ED79: 14739 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 14740 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 14741 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 14742 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 14743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14744 _flag_k = FK_CMP; 14745 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 14746 L_2B04ED87: 14747 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 14748 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 14749 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 14750 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 14751 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 14752 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 14753 RECOMP_FLAGS_IN(); 14754 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 14755 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 14756 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 14757 _flag_k = FK_INC; 14758 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 14759 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14761 _flag_k = FK_CMP; 14762 RECOMP_BACKEDGE(); 14763 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 14764 L_2B04EDA1: 14765 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 14766 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 14767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 14768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14769 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 14770 _flag_k = FK_ADD; 14771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 14772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14773 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 14774 _flag_k = FK_ADD; 14775 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 14776 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 14777 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 14778 L_2B04EDBF: 14779 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 14780 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 14781 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 14782 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 14783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 14784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14785 _flag_k = FK_CMP; 14786 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 14787 L_2B04EDD4: 14788 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 14789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 14790 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14791 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 14792 _flag_k = FK_ADD; 14793 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 14794 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 14795 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 14796 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 14797 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 14798 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 14799 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 14800 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 14801 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 14802 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 14803 RECOMP_FLAGS_IN(); 14804 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 14805 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14806 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 14807 _cf = 0; 14808 _flag_k = FK_TEST; 14809 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 14810 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 14811 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 14812 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 14813 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 14814 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 14815 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 14816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 14817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14818 _flag_k = FK_CMP; 14819 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 14820 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 14821 L_2B04EE1E: 14822 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 14823 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 14824 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 14825 _cf = 0; 14826 _flag_k = FK_TEST; 14827 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 14828 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 14829 L_2B04EE28: 14830 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 14831 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 14832 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14833 _cf = 0; 14834 _flag_k = FK_NARROW(FK_TEST, 24); 14835 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 14836 L_2B04EE2F: 14837 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 14838 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 14839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14840 _flag_k = FK_NARROW(FK_CMP, 24); 14841 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 14842 L_2B04EE34: 14843 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 14844 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 14845 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 14846 RECOMP_FLAGS_IN(); 14847 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 14848 L_2B04EE40: 14849 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 14850 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 14851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14852 _cf = 0; 14853 _flag_k = FK_TEST; 14854 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 14855 L_2B04EE46: 14856 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 14857 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 14858 L_2B04EE4D: 14859 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 14860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 14861 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14862 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 14863 _flag_k = FK_ADD; 14864 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 14865 L_2B04EE53: 14866 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 14867 L_2B04EE58: 14868 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 14869 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 14870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14871 _flag_k = FK_NARROW(FK_CMP, 24); 14872 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 14873 L_2B04EE5D: 14874 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 14875 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 14876 _flag_k = FK_INC; 14877 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 14878 L_2B04EE63: 14879 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 14880 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 14881 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 14882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14883 _flag_k = FK_CMP; 14884 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 14885 L_2B04EE6A: 14886 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 14887 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 14888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14889 _cf = 0; 14890 _flag_k = FK_TEST; 14891 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 14892 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 14893 L_2B04EE74: 14894 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 14895 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 14896 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14897 _cf = 0; 14898 _flag_k = FK_NARROW(FK_TEST, 24); 14899 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 14900 L_2B04EE7B: 14901 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 14902 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 14903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14904 _flag_k = FK_NARROW(FK_CMP, 24); 14905 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 14906 L_2B04EE7F: 14907 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 14908 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 14909 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 14910 RECOMP_FLAGS_IN(); 14911 L_2B04EE88: 14912 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 14913 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 14914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14915 _cf = 0; 14916 _flag_k = FK_TEST; 14917 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 14918 L_2B04EE8E: 14919 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 14920 L_2B04EE92: 14921 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 14922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 14923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14924 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 14925 _flag_k = FK_ADD; 14926 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 14927 L_2B04EE98: 14928 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 14929 L_2B04EE9D: 14930 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 14931 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 14932 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 14933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 14934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14935 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 14936 _flag_k = FK_CMP; 14937 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 14938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14940 _flag_k = FK_CMP; 14941 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 14942 L_2B04EEAF: 14943 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 14944 RECOMP_FLAGS_IN(); 14945 L_2B04EEB5: 14946 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 14947 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 14948 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 14949 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 14950 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 14951 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 14952 RECOMP_FLAGS_IN(); 14953 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 14954 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14955 _cf = 0; 14956 _flag_k = FK_NARROW(FK_TEST, 24); 14957 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 14958 L_2B04EECB: 14959 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 14960 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 14961 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 14962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14963 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14964 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 14965 _flag_k = FK_ADD; 14966 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 14967 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 14968 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 14969 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 14970 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 14971 L_2B04EEE4: 14972 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 14973 L_2B04EEE7: 14974 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 14975 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 14976 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 14977 _flag_k = FK_INC; 14978 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 14979 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 14980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14981 _flag_k = FK_CMP; 14982 RECOMP_BACKEDGE(); 14983 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 14984 L_2B04EEF3: 14985 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 14986 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 14987 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14988 _cf = 0; 14989 _flag_k = FK_TEST; 14990 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 14991 L_2B04EEFA: 14992 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 14993 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 14994 L_2B04EF02: 14995 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 14996 L_2B04EF05: 14997 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 14998 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 14999 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15000 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 15001 _cf = 0; 15002 _flag_k = FK_TEST; 15003 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 15004 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 15005 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 15006 edi = esi; /* 0x2B04EF16: mov edi, esi */ 15007 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 15008 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 15009 _cf = 0; 15010 _flag_k = FK_TEST; 15011 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 15012 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 15013 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15014 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 15015 _flag_k = FK_DEC; 15016 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 15017 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 15018 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 15019 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 15020 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 15021 RECOMP_FLAGS_IN(); 15022 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 15023 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15024 _cf = 0; 15025 _flag_k = FK_NARROW(FK_TEST, 24); 15026 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 15027 L_2B04EF32: 15028 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 15029 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 15030 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 15031 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 15032 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15033 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 15034 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 15035 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 15036 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 15037 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 15038 _cf = 0; 15039 _flag_k = FK_TEST; 15040 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 15041 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 15042 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 15043 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 15044 RECOMP_FLAGS_IN(); 15045 L_2B04EF4F: 15046 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 15047 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 15048 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 15049 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 15050 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 15051 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 15052 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 15053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15054 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 15055 _flag_k = FK_ADD; 15056 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 15057 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 15058 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 15059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15060 _flag_k = FK_CMP; 15061 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 15062 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 15063 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 15064 L_2B04EF76: 15065 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 15066 L_2B04EF78: 15067 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 15068 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 15069 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 15070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15071 _flag_k = FK_CMP; 15072 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 15073 L_2B04EF7F: 15074 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 15075 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 15076 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 15077 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 15078 RECOMP_FLAGS_IN(); 15079 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 15080 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 15081 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 15082 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 15083 RECOMP_FLAGS_IN(); 15084 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 15085 L_2B04EF9A: 15086 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 15087 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 15088 _cf = 0; 15089 _flag_k = FK_TEST; 15090 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 15091 L_2B04EF9E: 15092 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 15093 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 15094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15095 _flag_k = FK_CMP; 15096 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 15097 L_2B04EFA2: 15098 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 15099 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 15100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15101 _cf = 0; 15102 _flag_k = FK_TEST; 15103 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 15104 L_2B04EFA9: 15105 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 15106 L_2B04EFAE: 15107 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 15108 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 15109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15110 _flag_k = FK_NARROW(FK_CMP, 24); 15111 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 15112 L_2B04EFB4: 15113 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 15114 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 15115 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 15116 RECOMP_FLAGS_IN(); 15117 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 15118 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 15119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15120 _cf = 0; 15121 _flag_k = FK_TEST; 15122 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 15123 L_2B04EFC5: 15124 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 15125 L_2B04EFCA: 15126 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 15127 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 15128 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 15129 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 15130 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 15131 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 15132 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 15133 _flag_k = FK_NARROW(FK_INC, 24); 15134 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 15135 L_2B04EFDE: 15136 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 15137 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 15138 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 15139 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 15140 RECOMP_FLAGS_IN(); 15141 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 15142 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15143 _cf = 0; 15144 _flag_k = FK_NARROW(FK_TEST, 24); 15145 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 15146 L_2B04EFED: 15147 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 15148 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 15149 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 15150 _cf = 0; 15151 _flag_k = FK_TEST; 15152 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 15153 L_2B04EFF4: 15154 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 15155 L_2B04EFFA: 15156 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 15157 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 15158 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 15159 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 15160 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 15161 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15162 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 15163 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 15164 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 15165 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 15166 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 15167 _cf = 0; 15168 _flag_k = FK_TEST; 15169 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 15170 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 15171 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 15172 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 15173 RECOMP_FLAGS_IN(); 15174 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 15175 L_2B04F01C: 15176 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 15177 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15178 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 15179 _cf = 0; 15180 _flag_k = FK_TEST; 15181 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 15182 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 15183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15184 _flag_k = FK_CMP; 15185 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 15186 L_2B04F025: 15187 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 15188 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 15189 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15190 edx = edx - 1; /* 0x2B04F02B: dec edx */ 15191 _flag_k = FK_DEC; 15192 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 15193 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 15194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 15195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15196 _flag_k = FK_CMP; 15197 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 15198 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 15199 L_2B04F034: 15200 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 15201 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 15202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15203 _flag_k = FK_CMP; 15204 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 15205 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 15206 L_2B04F03B: 15207 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 15208 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 15209 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 15210 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 15211 RECOMP_FLAGS_IN(); 15212 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 15213 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 15214 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 15215 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 15216 RECOMP_FLAGS_IN(); 15217 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 15218 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 15219 RECOMP_FLAGS_IN(); 15220 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15221 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15222 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 15223 _flag_k = FK_ADD; 15224 L_2B04F062: 15225 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 15226 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 15227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 15228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15229 _flag_k = FK_CMP; 15230 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 15231 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 15232 L_2B04F06D: 15233 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 15234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15235 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 15236 _flag_k = FK_DEC; 15237 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 15238 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15239 _cf = 0; 15240 _flag_k = FK_NARROW(FK_TEST, 24); 15241 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 15242 L_2B04F075: 15243 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 15244 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 15245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15246 _flag_k = FK_NARROW(FK_CMP, 24); 15247 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 15248 L_2B04F079: 15249 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 15250 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 15251 _flag_k = FK_NARROW(FK_DEC, 24); 15252 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 15253 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 15254 L_2B04F07F: 15255 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 15256 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 15257 RECOMP_FLAGS_IN(); 15258 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15260 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 15261 _flag_k = FK_ADD; 15262 L_2B04F088: 15263 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 15264 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 15265 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 15266 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 15267 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 15268 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 15269 _cf = 0; 15270 _flag_k = FK_NARROW(FK_TEST, 24); 15271 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 15272 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 15273 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 15274 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 15275 L_2B04F0A2: 15276 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 15277 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 15278 L_2B04F0A9: 15279 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 15280 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 15281 L_2B04F0AD: 15282 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 15283 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 15284 RECOMP_FLAGS_IN(); 15285 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 15286 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 15287 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 15288 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 15289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 15290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15291 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 15292 _flag_k = FK_ADD; 15293 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 15294 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 15295 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 15296 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 15297 RECOMP_FLAGS_IN(); 15298 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 15299 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 15300 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 15301 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 15302 _cf = 0; 15303 _flag_k = FK_NARROW(FK_TEST, 24); 15304 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 15305 L_2B04F0DB: 15306 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 15307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 15308 _cf = 0; 15309 _flag_k = FK_TEST; 15310 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 15311 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 15312 L_2B04F0E4: 15313 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 15314 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 15315 L_2B04F0E8: 15316 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 15317 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 15318 L_2B04F0EC: 15319 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 15320 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 15321 L_2B04F0EF: 15322 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 15323 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 15324 RECOMP_FLAGS_IN(); 15325 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 15326 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 15327 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 15328 RECOMP_FLAGS_IN(); 15329 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 15330 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 15331 RECOMP_FLAGS_IN(); 15332 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 15333 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 15334 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 15335 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 15336 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 15337 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15338 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 15339 _flag_k = FK_ADD; 15340 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 15341 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 15342 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 15343 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 15344 RECOMP_FLAGS_IN(); 15345 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 15346 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 15347 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 15348 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 15349 _cf = 0; 15350 _flag_k = FK_NARROW(FK_TEST, 24); 15351 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 15352 L_2B04F12F: 15353 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 15354 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 15355 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 15356 L_2B04F136: 15357 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 15358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 15359 _cf = 0; 15360 _flag_k = FK_TEST; 15361 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 15362 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 15363 L_2B04F140: 15364 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 15365 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 15366 L_2B04F144: 15367 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 15368 L_2B04F146: 15369 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 15370 RECOMP_FLAGS_IN(); 15371 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 15372 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 15373 RECOMP_FLAGS_IN(); 15374 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 15375 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 15376 RECOMP_FLAGS_IN(); 15377 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 15378 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 15379 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 15380 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 15381 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15382 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 15383 _flag_k = FK_ADD; 15384 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 15385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15386 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 15387 _flag_k = FK_ADD; 15388 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 15389 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 15390 edi = edi + 1; /* 0x2B04F168: inc edi */ 15391 _flag_k = FK_INC; 15392 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15393 esi = 0; /* 0x2B04F169: xor esi, esi */ 15394 _cf = 0; 15395 _flag_k = FK_TEST; 15396 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 15397 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 15398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15399 _flag_k = FK_CMP; 15400 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 15401 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 15402 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 15403 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 15404 L_2B04F17C: 15405 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 15406 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 15407 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 15408 _cf = 0; 15409 _flag_k = FK_NARROW(FK_TEST, 24); 15410 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 15411 L_2B04F183: 15412 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 15413 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 15414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15415 _flag_k = FK_NARROW(FK_CMP, 24); 15416 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 15417 L_2B04F188: 15418 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 15419 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 15420 _flag_k = FK_NARROW(FK_DEC, 24); 15421 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 15422 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 15423 L_2B04F18F: 15424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15425 eax = eax - 1; /* 0x2B04F18F: dec eax */ 15426 _flag_k = FK_DEC; 15427 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 15428 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 15429 RECOMP_FLAGS_IN(); 15430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15432 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 15433 _flag_k = FK_ADD; 15434 L_2B04F199: 15435 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 15436 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 15437 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 15438 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 15439 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 15440 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 15441 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 15442 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 15443 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 15444 RECOMP_FLAGS_IN(); 15445 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 15446 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 15447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15448 _flag_k = FK_CMP; 15449 RECOMP_BACKEDGE(); 15450 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 15451 L_2B04F1BC: 15452 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 15453 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 15454 L_2B04F1C1: 15455 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 15456 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 15457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 15458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15459 _flag_k = FK_CMP; 15460 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 15461 L_2B04F1C9: 15462 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 15463 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 15464 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 15465 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 15466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15467 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 15468 _flag_k = FK_CMP; 15469 L_2B04F1D7: 15470 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 15471 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 15472 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 15473 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 15474 RECOMP_FLAGS_IN(); 15475 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 15476 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 15477 RECOMP_FLAGS_IN(); 15478 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 15479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15480 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 15481 _flag_k = FK_ADD; 15482 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 15483 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 15484 _flag_k = FK_DEC; 15485 RECOMP_BACKEDGE(); 15486 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 15487 L_2B04F1F5: 15488 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 15489 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 15490 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 15491 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 15492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15493 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 15494 _flag_k = FK_ADD; 15495 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 15496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15497 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 15498 _flag_k = FK_ADD; 15499 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 15500 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 15501 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 15502 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 15503 RECOMP_FLAGS_IN(); 15504 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 15505 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 15506 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 15507 RECOMP_FLAGS_IN(); 15508 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 15509 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 15510 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 15511 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 15512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15513 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 15514 _flag_k = FK_ADD; 15515 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 15516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 15517 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15518 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 15519 _flag_k = FK_ADD; 15520 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 15521 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 15522 RECOMP_FLAGS_IN(); 15523 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 15524 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 15525 RECOMP_FLAGS_IN(); 15526 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 15527 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 15528 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15529 _cf = 0; 15530 _flag_k = FK_NARROW(FK_TEST, 24); 15531 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 15532 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 15533 L_2B04F246: 15534 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 15535 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 15536 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 15537 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 15538 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 15539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15540 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 15541 _flag_k = FK_ADD; 15542 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 15543 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 15544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 15545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15546 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 15547 _flag_k = FK_ADD; 15548 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 15549 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 15550 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 15551 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 15552 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 15553 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 15554 RECOMP_FLAGS_IN(); 15555 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 15556 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 15557 RECOMP_FLAGS_IN(); 15558 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 15559 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 15560 RECOMP_FLAGS_IN(); 15561 L_2B04F283: 15562 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 15563 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 15564 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15565 _cf = 0; 15566 _flag_k = FK_NARROW(FK_TEST, 24); 15567 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 15568 L_2B04F28D: 15569 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 15570 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 15571 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 15572 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 15573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 15574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15575 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 15576 _flag_k = FK_ADD; 15577 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 15578 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 15579 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 15580 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15581 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 15582 _flag_k = FK_ADD; 15583 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 15584 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 15585 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 15586 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 15587 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 15588 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 15589 RECOMP_FLAGS_IN(); 15590 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 15591 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 15592 RECOMP_FLAGS_IN(); 15593 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 15594 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 15595 RECOMP_FLAGS_IN(); 15596 L_2B04F2D0: 15597 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 15598 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 15599 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 15600 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 15601 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 15602 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 15603 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 15604 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 15605 RECOMP_REGS_OUT(); 15606 } 15607 15608 void sub_2B04EBE0(void) { 15609 int _fpu_cmp = 0; 15610 uint32_t _cf = 0; 15611 int _df = 1; 15612 uint32_t _flag_k = FK_NONE; 15613 uint32_t _flag_a = 0, _flag_b = 0; 15614 uint32_t _itail_tgt = 0; 15615 RECOMP_REGS_LOCALS 15616 RECOMP_ENTER(0x2B04EBE0u); 15617 15618 goto L_2B04EBE0; 15619 L_2B04EB1A: 15620 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 15621 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 15622 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 15623 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 15624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15625 _flag_k = FK_CMP; 15626 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 15627 L_2B04EB2C: 15628 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 15629 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 15630 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 15631 _cf = 0; 15632 _flag_k = FK_TEST; 15633 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 15634 L_2B04EB37: 15635 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 15636 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 15637 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 15638 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15639 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 15640 _flag_k = FK_ADD; 15641 eax = edx; /* 0x2B04EB40: mov eax, edx */ 15642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15643 eax = eax - 1; /* 0x2B04EB42: dec eax */ 15644 _flag_k = FK_DEC; 15645 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 15646 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 15647 L_2B04EB48: 15648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15649 eax = eax - 1; /* 0x2B04EB48: dec eax */ 15650 _flag_k = FK_DEC; 15651 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 15652 L_2B04EB4B: 15653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15654 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 15655 _flag_k = FK_DEC; 15656 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 15657 L_2B04EB4E: 15658 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 15659 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 15660 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 15661 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 15662 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 15663 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 15664 RECOMP_FLAGS_IN(); 15665 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 15666 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 15667 L_2B04EB67: 15668 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 15669 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 15670 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 15671 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 15672 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 15673 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 15674 RECOMP_FLAGS_IN(); 15675 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 15676 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 15677 L_2B04EB80: 15678 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 15679 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 15680 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 15681 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 15682 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 15683 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 15684 RECOMP_FLAGS_IN(); 15685 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 15686 L_2B04EB97: 15687 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 15688 L_2B04EB9B: 15689 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 15690 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 15691 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 15692 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 15693 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 15694 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 15695 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 15696 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 15697 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 15698 L_2B04EBBA: 15699 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 15700 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 15701 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15702 _cf = 0; 15703 _flag_k = FK_NARROW(FK_TEST, 24); 15704 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 15705 L_2B04EBC1: 15706 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 15707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15708 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 15709 _flag_k = FK_DEC; 15710 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 15711 L_2B04EBC7: 15712 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 15713 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 15714 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 15715 L_2B04EBD0: 15716 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 15717 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 15718 L_2B04EBD7: 15719 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 15720 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 15721 RECOMP_FLAGS_IN(); 15722 L_2B04EBE0: 15723 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 15724 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 15725 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 15726 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 15727 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 15728 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 15729 RECOMP_FLAGS_IN(); 15730 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 15731 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 15732 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 15733 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 15734 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15735 _cf = 0; 15736 _flag_k = FK_NARROW(FK_TEST, 24); 15737 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 15738 L_2B04EC02: 15739 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 15740 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 15741 L_2B04EC09: 15742 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 15743 L_2B04EC0E: 15744 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 15745 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 15746 RECOMP_FLAGS_IN(); 15747 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 15748 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 15749 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 15750 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 15751 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 15752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15753 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 15754 _flag_k = FK_ADD; 15755 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 15756 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15757 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 15758 _flag_k = FK_ADD; 15759 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 15760 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 15761 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 15762 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 15763 RECOMP_FLAGS_IN(); 15764 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 15765 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 15766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15767 _cf = 0; 15768 _flag_k = FK_TEST; 15769 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 15770 L_2B04EC39: 15771 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 15772 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 15773 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 15774 L_2B04EC44: 15775 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 15776 L_2B04EC47: 15777 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 15778 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 15779 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 15780 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 15781 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 15782 RECOMP_FLAGS_IN(); 15783 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 15784 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 15785 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 15786 _cf = 0; 15787 _flag_k = FK_TEST; 15788 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15789 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 15790 _cf = 0; 15791 _flag_k = FK_TEST; 15792 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 15793 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 15794 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15795 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 15796 _flag_k = FK_DEC; 15797 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 15798 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 15799 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 15800 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 15801 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 15802 RECOMP_FLAGS_IN(); 15803 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 15804 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15805 _cf = 0; 15806 _flag_k = FK_NARROW(FK_TEST, 24); 15807 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 15808 L_2B04EC78: 15809 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 15810 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 15811 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 15812 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 15813 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 15814 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 15815 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15816 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 15817 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 15818 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 15819 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 15820 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 15821 _cf = 0; 15822 _flag_k = FK_TEST; 15823 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 15824 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 15825 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 15826 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 15827 RECOMP_FLAGS_IN(); 15828 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 15829 L_2B04EC9E: 15830 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15831 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 15832 _cf = 0; 15833 _flag_k = FK_TEST; 15834 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 15835 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 15836 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 15837 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 15838 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 15839 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 15840 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 15841 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 15842 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 15843 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 15844 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 15845 RECOMP_FLAGS_IN(); 15846 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 15847 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 15848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 15849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15850 _flag_k = FK_CMP; 15851 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 15852 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 15853 L_2B04ECCD: 15854 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 15855 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 15856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 15857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15858 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 15859 _flag_k = FK_ADD; 15860 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15861 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 15862 _flag_k = FK_DEC; 15863 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 15864 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 15865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 15866 _cf = 0; 15867 _flag_k = FK_TEST; 15868 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 15869 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 15870 L_2B04ECDE: 15871 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 15872 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 15873 _cf = 0; 15874 _flag_k = FK_TEST; 15875 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 15876 L_2B04ECE2: 15877 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 15878 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 15879 RECOMP_FLAGS_IN(); 15880 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 15881 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 15882 RECOMP_FLAGS_IN(); 15883 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15884 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15885 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 15886 _flag_k = FK_ADD; 15887 L_2B04ECF2: 15888 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 15889 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 15890 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 15891 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 15892 RECOMP_FLAGS_IN(); 15893 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 15894 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 15895 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 15896 L_2B04ED0D: 15897 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 15898 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 15899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 15900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15901 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 15902 _flag_k = FK_ADD; 15903 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15904 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 15905 _flag_k = FK_INC; 15906 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 15907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15908 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 15909 _flag_k = FK_ADD; 15910 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 15911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15912 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 15913 _flag_k = FK_ADD; 15914 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 15915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 15916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15917 _flag_k = FK_CMP; 15918 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 15919 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 15920 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 15921 RECOMP_BACKEDGE(); 15922 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 15923 L_2B04ED2F: 15924 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 15925 L_2B04ED31: 15926 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 15927 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 15928 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 15929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15930 _flag_k = FK_CMP; 15931 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 15932 L_2B04ED39: 15933 eax = edx; /* 0x2B04ED39: mov eax, edx */ 15934 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 15935 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15936 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 15937 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 15938 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 15939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 15940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15941 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 15942 _flag_k = FK_CMP; 15943 L_2B04ED49: 15944 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 15945 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 15946 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 15947 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 15948 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15949 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 15950 _flag_k = FK_ADD; 15951 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15952 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 15953 _flag_k = FK_DEC; 15954 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 15955 RECOMP_BACKEDGE(); 15956 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 15957 L_2B04ED5C: 15958 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 15959 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 15960 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 15961 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 15962 RECOMP_FLAGS_IN(); 15963 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 15964 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 15965 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15966 edi = 0; /* 0x2B04ED70: xor edi, edi */ 15967 _cf = 0; 15968 _flag_k = FK_TEST; 15969 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 15970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15971 _cf = 0; 15972 _flag_k = FK_TEST; 15973 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 15974 L_2B04ED76: 15975 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 15976 L_2B04ED79: 15977 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 15978 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 15979 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 15980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 15981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15982 _flag_k = FK_CMP; 15983 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 15984 L_2B04ED87: 15985 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 15986 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 15987 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 15988 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 15989 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 15990 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 15991 RECOMP_FLAGS_IN(); 15992 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 15993 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 15994 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 15995 _flag_k = FK_INC; 15996 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 15997 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15999 _flag_k = FK_CMP; 16000 RECOMP_BACKEDGE(); 16001 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 16002 L_2B04EDA1: 16003 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 16004 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 16005 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 16006 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16007 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 16008 _flag_k = FK_ADD; 16009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 16010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16011 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 16012 _flag_k = FK_ADD; 16013 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 16014 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 16015 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 16016 L_2B04EDBF: 16017 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 16018 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 16019 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 16020 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 16021 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 16022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16023 _flag_k = FK_CMP; 16024 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 16025 L_2B04EDD4: 16026 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 16027 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 16028 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16029 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 16030 _flag_k = FK_ADD; 16031 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 16032 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 16033 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 16034 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 16035 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 16036 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 16037 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 16038 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 16039 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 16040 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 16041 RECOMP_FLAGS_IN(); 16042 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 16043 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16044 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 16045 _cf = 0; 16046 _flag_k = FK_TEST; 16047 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 16048 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 16049 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 16050 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 16051 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 16052 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 16053 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 16054 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16056 _flag_k = FK_CMP; 16057 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 16058 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 16059 L_2B04EE1E: 16060 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 16061 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 16062 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 16063 _cf = 0; 16064 _flag_k = FK_TEST; 16065 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 16066 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 16067 L_2B04EE28: 16068 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 16069 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 16070 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16071 _cf = 0; 16072 _flag_k = FK_NARROW(FK_TEST, 24); 16073 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 16074 L_2B04EE2F: 16075 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 16076 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 16077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16078 _flag_k = FK_NARROW(FK_CMP, 24); 16079 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 16080 L_2B04EE34: 16081 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 16082 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 16083 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 16084 RECOMP_FLAGS_IN(); 16085 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 16086 L_2B04EE40: 16087 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 16088 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 16089 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16090 _cf = 0; 16091 _flag_k = FK_TEST; 16092 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 16093 L_2B04EE46: 16094 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 16095 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 16096 L_2B04EE4D: 16097 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 16098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16100 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 16101 _flag_k = FK_ADD; 16102 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 16103 L_2B04EE53: 16104 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 16105 L_2B04EE58: 16106 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 16107 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 16108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16109 _flag_k = FK_NARROW(FK_CMP, 24); 16110 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 16111 L_2B04EE5D: 16112 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 16113 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 16114 _flag_k = FK_INC; 16115 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 16116 L_2B04EE63: 16117 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 16118 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 16119 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 16120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16121 _flag_k = FK_CMP; 16122 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 16123 L_2B04EE6A: 16124 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 16125 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 16126 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16127 _cf = 0; 16128 _flag_k = FK_TEST; 16129 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 16130 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 16131 L_2B04EE74: 16132 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 16133 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 16134 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16135 _cf = 0; 16136 _flag_k = FK_NARROW(FK_TEST, 24); 16137 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 16138 L_2B04EE7B: 16139 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 16140 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 16141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16142 _flag_k = FK_NARROW(FK_CMP, 24); 16143 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 16144 L_2B04EE7F: 16145 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 16146 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 16147 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 16148 RECOMP_FLAGS_IN(); 16149 L_2B04EE88: 16150 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 16151 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 16152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16153 _cf = 0; 16154 _flag_k = FK_TEST; 16155 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 16156 L_2B04EE8E: 16157 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 16158 L_2B04EE92: 16159 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 16160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16162 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 16163 _flag_k = FK_ADD; 16164 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 16165 L_2B04EE98: 16166 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 16167 L_2B04EE9D: 16168 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 16169 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 16170 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 16171 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 16172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16173 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 16174 _flag_k = FK_CMP; 16175 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 16176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16178 _flag_k = FK_CMP; 16179 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 16180 L_2B04EEAF: 16181 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 16182 RECOMP_FLAGS_IN(); 16183 L_2B04EEB5: 16184 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 16185 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 16186 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 16187 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 16188 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 16189 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 16190 RECOMP_FLAGS_IN(); 16191 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 16192 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16193 _cf = 0; 16194 _flag_k = FK_NARROW(FK_TEST, 24); 16195 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 16196 L_2B04EECB: 16197 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 16198 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 16199 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 16200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 16201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16202 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 16203 _flag_k = FK_ADD; 16204 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 16205 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 16206 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 16207 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 16208 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 16209 L_2B04EEE4: 16210 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 16211 L_2B04EEE7: 16212 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 16213 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 16214 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 16215 _flag_k = FK_INC; 16216 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 16217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16219 _flag_k = FK_CMP; 16220 RECOMP_BACKEDGE(); 16221 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 16222 L_2B04EEF3: 16223 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 16224 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 16225 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16226 _cf = 0; 16227 _flag_k = FK_TEST; 16228 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 16229 L_2B04EEFA: 16230 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 16231 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 16232 L_2B04EF02: 16233 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 16234 L_2B04EF05: 16235 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 16236 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 16237 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16238 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 16239 _cf = 0; 16240 _flag_k = FK_TEST; 16241 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 16242 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 16243 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 16244 edi = esi; /* 0x2B04EF16: mov edi, esi */ 16245 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 16246 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 16247 _cf = 0; 16248 _flag_k = FK_TEST; 16249 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 16250 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 16251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 16252 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 16253 _flag_k = FK_DEC; 16254 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 16255 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 16256 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 16257 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 16258 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 16259 RECOMP_FLAGS_IN(); 16260 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 16261 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16262 _cf = 0; 16263 _flag_k = FK_NARROW(FK_TEST, 24); 16264 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 16265 L_2B04EF32: 16266 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 16267 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 16268 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 16269 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 16270 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16271 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 16272 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 16273 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 16274 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16275 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 16276 _cf = 0; 16277 _flag_k = FK_TEST; 16278 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 16279 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 16280 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 16281 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 16282 RECOMP_FLAGS_IN(); 16283 L_2B04EF4F: 16284 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 16285 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 16286 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 16287 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 16288 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 16289 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 16290 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 16291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16292 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 16293 _flag_k = FK_ADD; 16294 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 16295 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 16296 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 16297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16298 _flag_k = FK_CMP; 16299 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 16300 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 16301 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 16302 L_2B04EF76: 16303 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 16304 L_2B04EF78: 16305 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 16306 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 16307 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 16308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16309 _flag_k = FK_CMP; 16310 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 16311 L_2B04EF7F: 16312 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 16313 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 16314 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 16315 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 16316 RECOMP_FLAGS_IN(); 16317 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 16318 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 16319 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 16320 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 16321 RECOMP_FLAGS_IN(); 16322 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 16323 L_2B04EF9A: 16324 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 16325 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 16326 _cf = 0; 16327 _flag_k = FK_TEST; 16328 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 16329 L_2B04EF9E: 16330 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 16331 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 16332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16333 _flag_k = FK_CMP; 16334 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 16335 L_2B04EFA2: 16336 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 16337 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 16338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16339 _cf = 0; 16340 _flag_k = FK_TEST; 16341 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 16342 L_2B04EFA9: 16343 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 16344 L_2B04EFAE: 16345 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 16346 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 16347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16348 _flag_k = FK_NARROW(FK_CMP, 24); 16349 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 16350 L_2B04EFB4: 16351 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 16352 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 16353 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 16354 RECOMP_FLAGS_IN(); 16355 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 16356 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 16357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16358 _cf = 0; 16359 _flag_k = FK_TEST; 16360 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 16361 L_2B04EFC5: 16362 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 16363 L_2B04EFCA: 16364 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 16365 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 16366 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 16367 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 16368 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 16369 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 16370 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 16371 _flag_k = FK_NARROW(FK_INC, 24); 16372 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 16373 L_2B04EFDE: 16374 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 16375 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 16376 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 16377 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 16378 RECOMP_FLAGS_IN(); 16379 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 16380 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16381 _cf = 0; 16382 _flag_k = FK_NARROW(FK_TEST, 24); 16383 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 16384 L_2B04EFED: 16385 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 16386 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 16387 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 16388 _cf = 0; 16389 _flag_k = FK_TEST; 16390 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 16391 L_2B04EFF4: 16392 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 16393 L_2B04EFFA: 16394 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 16395 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 16396 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 16397 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 16398 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 16399 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16400 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 16401 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 16402 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 16403 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 16404 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 16405 _cf = 0; 16406 _flag_k = FK_TEST; 16407 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 16408 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 16409 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 16410 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 16411 RECOMP_FLAGS_IN(); 16412 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 16413 L_2B04F01C: 16414 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 16415 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16416 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 16417 _cf = 0; 16418 _flag_k = FK_TEST; 16419 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 16420 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 16421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16422 _flag_k = FK_CMP; 16423 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 16424 L_2B04F025: 16425 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 16426 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 16427 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16428 edx = edx - 1; /* 0x2B04F02B: dec edx */ 16429 _flag_k = FK_DEC; 16430 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 16431 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 16432 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 16433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16434 _flag_k = FK_CMP; 16435 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 16436 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 16437 L_2B04F034: 16438 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 16439 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 16440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16441 _flag_k = FK_CMP; 16442 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 16443 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 16444 L_2B04F03B: 16445 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 16446 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 16447 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 16448 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 16449 RECOMP_FLAGS_IN(); 16450 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 16451 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 16452 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 16453 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 16454 RECOMP_FLAGS_IN(); 16455 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 16456 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 16457 RECOMP_FLAGS_IN(); 16458 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16460 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 16461 _flag_k = FK_ADD; 16462 L_2B04F062: 16463 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 16464 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 16465 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 16466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16467 _flag_k = FK_CMP; 16468 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 16469 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 16470 L_2B04F06D: 16471 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 16472 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 16473 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 16474 _flag_k = FK_DEC; 16475 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 16476 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16477 _cf = 0; 16478 _flag_k = FK_NARROW(FK_TEST, 24); 16479 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 16480 L_2B04F075: 16481 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 16482 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 16483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16484 _flag_k = FK_NARROW(FK_CMP, 24); 16485 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 16486 L_2B04F079: 16487 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 16488 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 16489 _flag_k = FK_NARROW(FK_DEC, 24); 16490 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 16491 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 16492 L_2B04F07F: 16493 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 16494 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 16495 RECOMP_FLAGS_IN(); 16496 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16498 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 16499 _flag_k = FK_ADD; 16500 L_2B04F088: 16501 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 16502 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 16503 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 16504 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 16505 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 16506 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 16507 _cf = 0; 16508 _flag_k = FK_NARROW(FK_TEST, 24); 16509 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 16510 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 16511 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 16512 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 16513 L_2B04F0A2: 16514 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 16515 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 16516 L_2B04F0A9: 16517 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 16518 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 16519 L_2B04F0AD: 16520 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 16521 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 16522 RECOMP_FLAGS_IN(); 16523 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 16524 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 16525 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 16526 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 16527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 16528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16529 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 16530 _flag_k = FK_ADD; 16531 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 16532 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 16533 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 16534 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 16535 RECOMP_FLAGS_IN(); 16536 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 16537 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 16538 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 16539 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 16540 _cf = 0; 16541 _flag_k = FK_NARROW(FK_TEST, 24); 16542 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 16543 L_2B04F0DB: 16544 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 16545 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 16546 _cf = 0; 16547 _flag_k = FK_TEST; 16548 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 16549 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 16550 L_2B04F0E4: 16551 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 16552 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 16553 L_2B04F0E8: 16554 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 16555 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 16556 L_2B04F0EC: 16557 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 16558 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 16559 L_2B04F0EF: 16560 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 16561 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 16562 RECOMP_FLAGS_IN(); 16563 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 16564 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 16565 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 16566 RECOMP_FLAGS_IN(); 16567 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 16568 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 16569 RECOMP_FLAGS_IN(); 16570 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 16571 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 16572 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 16573 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 16574 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 16575 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16576 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 16577 _flag_k = FK_ADD; 16578 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 16579 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 16580 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 16581 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 16582 RECOMP_FLAGS_IN(); 16583 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 16584 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 16585 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 16586 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 16587 _cf = 0; 16588 _flag_k = FK_NARROW(FK_TEST, 24); 16589 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 16590 L_2B04F12F: 16591 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 16592 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 16593 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 16594 L_2B04F136: 16595 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 16596 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 16597 _cf = 0; 16598 _flag_k = FK_TEST; 16599 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 16600 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 16601 L_2B04F140: 16602 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 16603 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 16604 L_2B04F144: 16605 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 16606 L_2B04F146: 16607 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 16608 RECOMP_FLAGS_IN(); 16609 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 16610 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 16611 RECOMP_FLAGS_IN(); 16612 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 16613 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 16614 RECOMP_FLAGS_IN(); 16615 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 16616 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 16617 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 16618 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 16619 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16620 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 16621 _flag_k = FK_ADD; 16622 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 16623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16624 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 16625 _flag_k = FK_ADD; 16626 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 16627 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 16628 edi = edi + 1; /* 0x2B04F168: inc edi */ 16629 _flag_k = FK_INC; 16630 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16631 esi = 0; /* 0x2B04F169: xor esi, esi */ 16632 _cf = 0; 16633 _flag_k = FK_TEST; 16634 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 16635 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16637 _flag_k = FK_CMP; 16638 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 16639 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 16640 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 16641 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 16642 L_2B04F17C: 16643 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 16644 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 16645 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 16646 _cf = 0; 16647 _flag_k = FK_NARROW(FK_TEST, 24); 16648 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 16649 L_2B04F183: 16650 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 16651 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 16652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16653 _flag_k = FK_NARROW(FK_CMP, 24); 16654 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 16655 L_2B04F188: 16656 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 16657 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 16658 _flag_k = FK_NARROW(FK_DEC, 24); 16659 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 16660 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 16661 L_2B04F18F: 16662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16663 eax = eax - 1; /* 0x2B04F18F: dec eax */ 16664 _flag_k = FK_DEC; 16665 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 16666 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 16667 RECOMP_FLAGS_IN(); 16668 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16670 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 16671 _flag_k = FK_ADD; 16672 L_2B04F199: 16673 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 16674 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 16675 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 16676 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 16677 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 16678 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 16679 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 16680 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 16681 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 16682 RECOMP_FLAGS_IN(); 16683 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 16684 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 16685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16686 _flag_k = FK_CMP; 16687 RECOMP_BACKEDGE(); 16688 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 16689 L_2B04F1BC: 16690 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 16691 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 16692 L_2B04F1C1: 16693 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 16694 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 16695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 16696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16697 _flag_k = FK_CMP; 16698 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 16699 L_2B04F1C9: 16700 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 16701 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 16702 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 16703 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 16704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16705 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 16706 _flag_k = FK_CMP; 16707 L_2B04F1D7: 16708 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 16709 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 16710 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 16711 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 16712 RECOMP_FLAGS_IN(); 16713 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 16714 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 16715 RECOMP_FLAGS_IN(); 16716 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 16717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16718 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 16719 _flag_k = FK_ADD; 16720 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 16721 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 16722 _flag_k = FK_DEC; 16723 RECOMP_BACKEDGE(); 16724 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 16725 L_2B04F1F5: 16726 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 16727 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 16728 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 16729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 16730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16731 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 16732 _flag_k = FK_ADD; 16733 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 16734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16735 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 16736 _flag_k = FK_ADD; 16737 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 16738 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 16739 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 16740 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 16741 RECOMP_FLAGS_IN(); 16742 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 16743 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 16744 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 16745 RECOMP_FLAGS_IN(); 16746 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 16747 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 16748 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 16749 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 16750 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16751 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 16752 _flag_k = FK_ADD; 16753 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 16754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 16755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16756 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 16757 _flag_k = FK_ADD; 16758 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 16759 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 16760 RECOMP_FLAGS_IN(); 16761 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 16762 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 16763 RECOMP_FLAGS_IN(); 16764 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 16765 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 16766 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16767 _cf = 0; 16768 _flag_k = FK_NARROW(FK_TEST, 24); 16769 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 16770 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 16771 L_2B04F246: 16772 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 16773 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 16774 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 16775 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 16776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 16777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16778 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 16779 _flag_k = FK_ADD; 16780 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 16781 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 16782 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 16783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16784 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 16785 _flag_k = FK_ADD; 16786 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 16787 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 16788 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 16789 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 16790 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 16791 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 16792 RECOMP_FLAGS_IN(); 16793 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 16794 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 16795 RECOMP_FLAGS_IN(); 16796 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 16797 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 16798 RECOMP_FLAGS_IN(); 16799 L_2B04F283: 16800 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 16801 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 16802 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16803 _cf = 0; 16804 _flag_k = FK_NARROW(FK_TEST, 24); 16805 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 16806 L_2B04F28D: 16807 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 16808 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 16809 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 16810 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 16811 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 16812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16813 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 16814 _flag_k = FK_ADD; 16815 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 16816 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 16817 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 16818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16819 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 16820 _flag_k = FK_ADD; 16821 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 16822 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 16823 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 16824 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 16825 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 16826 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 16827 RECOMP_FLAGS_IN(); 16828 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 16829 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 16830 RECOMP_FLAGS_IN(); 16831 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 16832 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 16833 RECOMP_FLAGS_IN(); 16834 L_2B04F2D0: 16835 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 16836 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 16837 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 16838 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 16839 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 16840 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 16841 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 16842 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 16843 RECOMP_REGS_OUT(); 16844 } 16845 16846 void sub_2B04EC0E(void) { 16847 int _fpu_cmp = 0; 16848 uint32_t _cf = 0; 16849 int _df = 1; 16850 uint32_t _flag_k = FK_NONE; 16851 uint32_t _flag_a = 0, _flag_b = 0; 16852 uint32_t _itail_tgt = 0; 16853 RECOMP_REGS_LOCALS 16854 RECOMP_ENTER(0x2B04EC0Eu); 16855 16856 goto L_2B04EC0E; 16857 L_2B04EB1A: 16858 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 16859 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 16860 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 16861 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 16862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16863 _flag_k = FK_CMP; 16864 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 16865 L_2B04EB2C: 16866 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 16867 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 16868 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 16869 _cf = 0; 16870 _flag_k = FK_TEST; 16871 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 16872 L_2B04EB37: 16873 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 16874 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 16875 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 16876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16877 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 16878 _flag_k = FK_ADD; 16879 eax = edx; /* 0x2B04EB40: mov eax, edx */ 16880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16881 eax = eax - 1; /* 0x2B04EB42: dec eax */ 16882 _flag_k = FK_DEC; 16883 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 16884 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 16885 L_2B04EB48: 16886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16887 eax = eax - 1; /* 0x2B04EB48: dec eax */ 16888 _flag_k = FK_DEC; 16889 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 16890 L_2B04EB4B: 16891 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16892 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 16893 _flag_k = FK_DEC; 16894 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 16895 L_2B04EB4E: 16896 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 16897 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 16898 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 16899 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 16900 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 16901 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 16902 RECOMP_FLAGS_IN(); 16903 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 16904 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 16905 L_2B04EB67: 16906 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 16907 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 16908 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 16909 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 16910 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 16911 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 16912 RECOMP_FLAGS_IN(); 16913 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 16914 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 16915 L_2B04EB80: 16916 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 16917 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 16918 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 16919 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 16920 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 16921 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 16922 RECOMP_FLAGS_IN(); 16923 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 16924 L_2B04EB97: 16925 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 16926 L_2B04EB9B: 16927 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 16928 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 16929 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 16930 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 16931 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 16932 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 16933 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 16934 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 16935 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 16936 L_2B04EBBA: 16937 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 16938 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 16939 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16940 _cf = 0; 16941 _flag_k = FK_NARROW(FK_TEST, 24); 16942 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 16943 L_2B04EBC1: 16944 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 16945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16946 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 16947 _flag_k = FK_DEC; 16948 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 16949 L_2B04EBC7: 16950 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 16951 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 16952 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 16953 L_2B04EBD0: 16954 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 16955 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 16956 L_2B04EBD7: 16957 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 16958 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 16959 RECOMP_FLAGS_IN(); 16960 L_2B04EBE0: 16961 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 16962 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 16963 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 16964 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 16965 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 16966 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 16967 RECOMP_FLAGS_IN(); 16968 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 16969 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 16970 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 16971 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 16972 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16973 _cf = 0; 16974 _flag_k = FK_NARROW(FK_TEST, 24); 16975 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 16976 L_2B04EC02: 16977 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 16978 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 16979 L_2B04EC09: 16980 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 16981 L_2B04EC0E: 16982 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 16983 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 16984 RECOMP_FLAGS_IN(); 16985 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 16986 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 16987 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 16988 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 16989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 16990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16991 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 16992 _flag_k = FK_ADD; 16993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 16994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16995 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 16996 _flag_k = FK_ADD; 16997 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 16998 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 16999 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 17000 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 17001 RECOMP_FLAGS_IN(); 17002 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 17003 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 17004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17005 _cf = 0; 17006 _flag_k = FK_TEST; 17007 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 17008 L_2B04EC39: 17009 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 17010 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 17011 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 17012 L_2B04EC44: 17013 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 17014 L_2B04EC47: 17015 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 17016 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 17017 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 17018 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 17019 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 17020 RECOMP_FLAGS_IN(); 17021 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 17022 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 17023 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 17024 _cf = 0; 17025 _flag_k = FK_TEST; 17026 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17027 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 17028 _cf = 0; 17029 _flag_k = FK_TEST; 17030 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 17031 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 17032 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17033 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 17034 _flag_k = FK_DEC; 17035 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 17036 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 17037 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 17038 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 17039 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 17040 RECOMP_FLAGS_IN(); 17041 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 17042 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17043 _cf = 0; 17044 _flag_k = FK_NARROW(FK_TEST, 24); 17045 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 17046 L_2B04EC78: 17047 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 17048 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 17049 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 17050 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 17051 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 17052 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 17053 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17054 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 17055 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 17056 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 17057 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 17058 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 17059 _cf = 0; 17060 _flag_k = FK_TEST; 17061 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 17062 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 17063 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 17064 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 17065 RECOMP_FLAGS_IN(); 17066 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 17067 L_2B04EC9E: 17068 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17069 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 17070 _cf = 0; 17071 _flag_k = FK_TEST; 17072 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 17073 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 17074 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 17075 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 17076 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 17077 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 17078 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 17079 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 17080 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 17081 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 17082 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 17083 RECOMP_FLAGS_IN(); 17084 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 17085 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 17086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 17087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17088 _flag_k = FK_CMP; 17089 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 17090 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 17091 L_2B04ECCD: 17092 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 17093 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 17094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 17095 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17096 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 17097 _flag_k = FK_ADD; 17098 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17099 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 17100 _flag_k = FK_DEC; 17101 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 17102 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 17103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 17104 _cf = 0; 17105 _flag_k = FK_TEST; 17106 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 17107 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 17108 L_2B04ECDE: 17109 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 17110 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 17111 _cf = 0; 17112 _flag_k = FK_TEST; 17113 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 17114 L_2B04ECE2: 17115 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 17116 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 17117 RECOMP_FLAGS_IN(); 17118 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 17119 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 17120 RECOMP_FLAGS_IN(); 17121 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17122 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17123 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 17124 _flag_k = FK_ADD; 17125 L_2B04ECF2: 17126 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 17127 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 17128 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 17129 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 17130 RECOMP_FLAGS_IN(); 17131 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 17132 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 17133 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 17134 L_2B04ED0D: 17135 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 17136 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 17137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 17138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17139 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 17140 _flag_k = FK_ADD; 17141 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17142 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 17143 _flag_k = FK_INC; 17144 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 17145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17146 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 17147 _flag_k = FK_ADD; 17148 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 17149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17150 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 17151 _flag_k = FK_ADD; 17152 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 17153 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 17154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17155 _flag_k = FK_CMP; 17156 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 17157 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 17158 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 17159 RECOMP_BACKEDGE(); 17160 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 17161 L_2B04ED2F: 17162 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 17163 L_2B04ED31: 17164 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 17165 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 17166 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 17167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17168 _flag_k = FK_CMP; 17169 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 17170 L_2B04ED39: 17171 eax = edx; /* 0x2B04ED39: mov eax, edx */ 17172 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 17173 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17174 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 17175 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 17176 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 17177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 17178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17179 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 17180 _flag_k = FK_CMP; 17181 L_2B04ED49: 17182 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 17183 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 17184 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 17185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 17186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17187 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 17188 _flag_k = FK_ADD; 17189 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17190 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 17191 _flag_k = FK_DEC; 17192 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 17193 RECOMP_BACKEDGE(); 17194 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 17195 L_2B04ED5C: 17196 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 17197 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 17198 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 17199 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 17200 RECOMP_FLAGS_IN(); 17201 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 17202 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 17203 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17204 edi = 0; /* 0x2B04ED70: xor edi, edi */ 17205 _cf = 0; 17206 _flag_k = FK_TEST; 17207 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 17208 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17209 _cf = 0; 17210 _flag_k = FK_TEST; 17211 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 17212 L_2B04ED76: 17213 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 17214 L_2B04ED79: 17215 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 17216 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 17217 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 17218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 17219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17220 _flag_k = FK_CMP; 17221 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 17222 L_2B04ED87: 17223 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 17224 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 17225 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 17226 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 17227 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 17228 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 17229 RECOMP_FLAGS_IN(); 17230 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 17231 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 17232 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 17233 _flag_k = FK_INC; 17234 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 17235 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17237 _flag_k = FK_CMP; 17238 RECOMP_BACKEDGE(); 17239 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 17240 L_2B04EDA1: 17241 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 17242 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 17243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 17244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17245 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 17246 _flag_k = FK_ADD; 17247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 17248 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17249 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 17250 _flag_k = FK_ADD; 17251 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 17252 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 17253 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 17254 L_2B04EDBF: 17255 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 17256 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 17257 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 17258 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 17259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 17260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17261 _flag_k = FK_CMP; 17262 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 17263 L_2B04EDD4: 17264 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 17265 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 17266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17267 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 17268 _flag_k = FK_ADD; 17269 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 17270 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 17271 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 17272 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 17273 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 17274 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 17275 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 17276 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 17277 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 17278 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 17279 RECOMP_FLAGS_IN(); 17280 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 17281 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17282 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 17283 _cf = 0; 17284 _flag_k = FK_TEST; 17285 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 17286 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 17287 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 17288 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 17289 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 17290 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 17291 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 17292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 17293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17294 _flag_k = FK_CMP; 17295 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 17296 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 17297 L_2B04EE1E: 17298 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 17299 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 17300 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 17301 _cf = 0; 17302 _flag_k = FK_TEST; 17303 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 17304 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 17305 L_2B04EE28: 17306 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 17307 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 17308 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 17309 _cf = 0; 17310 _flag_k = FK_NARROW(FK_TEST, 24); 17311 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 17312 L_2B04EE2F: 17313 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 17314 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 17315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17316 _flag_k = FK_NARROW(FK_CMP, 24); 17317 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 17318 L_2B04EE34: 17319 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 17320 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 17321 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 17322 RECOMP_FLAGS_IN(); 17323 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 17324 L_2B04EE40: 17325 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 17326 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 17327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17328 _cf = 0; 17329 _flag_k = FK_TEST; 17330 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 17331 L_2B04EE46: 17332 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 17333 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 17334 L_2B04EE4D: 17335 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 17336 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 17337 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17338 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 17339 _flag_k = FK_ADD; 17340 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 17341 L_2B04EE53: 17342 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 17343 L_2B04EE58: 17344 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 17345 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 17346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17347 _flag_k = FK_NARROW(FK_CMP, 24); 17348 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 17349 L_2B04EE5D: 17350 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 17351 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 17352 _flag_k = FK_INC; 17353 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 17354 L_2B04EE63: 17355 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 17356 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 17357 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 17358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17359 _flag_k = FK_CMP; 17360 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 17361 L_2B04EE6A: 17362 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 17363 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 17364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17365 _cf = 0; 17366 _flag_k = FK_TEST; 17367 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 17368 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 17369 L_2B04EE74: 17370 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 17371 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 17372 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17373 _cf = 0; 17374 _flag_k = FK_NARROW(FK_TEST, 24); 17375 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 17376 L_2B04EE7B: 17377 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 17378 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 17379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17380 _flag_k = FK_NARROW(FK_CMP, 24); 17381 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 17382 L_2B04EE7F: 17383 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 17384 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 17385 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 17386 RECOMP_FLAGS_IN(); 17387 L_2B04EE88: 17388 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 17389 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 17390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17391 _cf = 0; 17392 _flag_k = FK_TEST; 17393 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 17394 L_2B04EE8E: 17395 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 17396 L_2B04EE92: 17397 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 17398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 17399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17400 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 17401 _flag_k = FK_ADD; 17402 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 17403 L_2B04EE98: 17404 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 17405 L_2B04EE9D: 17406 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 17407 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 17408 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 17409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 17410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17411 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 17412 _flag_k = FK_CMP; 17413 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 17414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17416 _flag_k = FK_CMP; 17417 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 17418 L_2B04EEAF: 17419 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 17420 RECOMP_FLAGS_IN(); 17421 L_2B04EEB5: 17422 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 17423 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 17424 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 17425 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 17426 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 17427 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 17428 RECOMP_FLAGS_IN(); 17429 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 17430 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17431 _cf = 0; 17432 _flag_k = FK_NARROW(FK_TEST, 24); 17433 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 17434 L_2B04EECB: 17435 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 17436 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 17437 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 17438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 17439 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17440 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 17441 _flag_k = FK_ADD; 17442 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 17443 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 17444 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 17445 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 17446 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 17447 L_2B04EEE4: 17448 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 17449 L_2B04EEE7: 17450 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 17451 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 17452 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 17453 _flag_k = FK_INC; 17454 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 17455 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 17456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17457 _flag_k = FK_CMP; 17458 RECOMP_BACKEDGE(); 17459 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 17460 L_2B04EEF3: 17461 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 17462 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 17463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17464 _cf = 0; 17465 _flag_k = FK_TEST; 17466 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 17467 L_2B04EEFA: 17468 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 17469 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 17470 L_2B04EF02: 17471 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 17472 L_2B04EF05: 17473 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 17474 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 17475 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17476 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 17477 _cf = 0; 17478 _flag_k = FK_TEST; 17479 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 17480 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 17481 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 17482 edi = esi; /* 0x2B04EF16: mov edi, esi */ 17483 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 17484 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 17485 _cf = 0; 17486 _flag_k = FK_TEST; 17487 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 17488 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 17489 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17490 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 17491 _flag_k = FK_DEC; 17492 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 17493 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 17494 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 17495 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 17496 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 17497 RECOMP_FLAGS_IN(); 17498 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 17499 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17500 _cf = 0; 17501 _flag_k = FK_NARROW(FK_TEST, 24); 17502 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 17503 L_2B04EF32: 17504 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 17505 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 17506 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 17507 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 17508 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17509 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 17510 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 17511 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 17512 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 17513 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 17514 _cf = 0; 17515 _flag_k = FK_TEST; 17516 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 17517 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 17518 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 17519 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 17520 RECOMP_FLAGS_IN(); 17521 L_2B04EF4F: 17522 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 17523 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 17524 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 17525 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 17526 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 17527 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 17528 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 17529 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17530 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 17531 _flag_k = FK_ADD; 17532 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 17533 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 17534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 17535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17536 _flag_k = FK_CMP; 17537 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 17538 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 17539 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 17540 L_2B04EF76: 17541 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 17542 L_2B04EF78: 17543 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 17544 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 17545 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 17546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17547 _flag_k = FK_CMP; 17548 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 17549 L_2B04EF7F: 17550 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 17551 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 17552 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 17553 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 17554 RECOMP_FLAGS_IN(); 17555 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 17556 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 17557 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 17558 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 17559 RECOMP_FLAGS_IN(); 17560 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 17561 L_2B04EF9A: 17562 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 17563 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 17564 _cf = 0; 17565 _flag_k = FK_TEST; 17566 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 17567 L_2B04EF9E: 17568 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 17569 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 17570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17571 _flag_k = FK_CMP; 17572 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 17573 L_2B04EFA2: 17574 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 17575 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 17576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17577 _cf = 0; 17578 _flag_k = FK_TEST; 17579 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 17580 L_2B04EFA9: 17581 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 17582 L_2B04EFAE: 17583 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 17584 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 17585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17586 _flag_k = FK_NARROW(FK_CMP, 24); 17587 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 17588 L_2B04EFB4: 17589 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 17590 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 17591 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 17592 RECOMP_FLAGS_IN(); 17593 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 17594 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 17595 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17596 _cf = 0; 17597 _flag_k = FK_TEST; 17598 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 17599 L_2B04EFC5: 17600 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 17601 L_2B04EFCA: 17602 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 17603 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 17604 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 17605 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 17606 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 17607 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 17608 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 17609 _flag_k = FK_NARROW(FK_INC, 24); 17610 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 17611 L_2B04EFDE: 17612 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 17613 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 17614 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 17615 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 17616 RECOMP_FLAGS_IN(); 17617 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 17618 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17619 _cf = 0; 17620 _flag_k = FK_NARROW(FK_TEST, 24); 17621 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 17622 L_2B04EFED: 17623 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 17624 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 17625 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 17626 _cf = 0; 17627 _flag_k = FK_TEST; 17628 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 17629 L_2B04EFF4: 17630 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 17631 L_2B04EFFA: 17632 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 17633 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 17634 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 17635 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 17636 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 17637 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17638 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 17639 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 17640 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 17641 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 17642 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 17643 _cf = 0; 17644 _flag_k = FK_TEST; 17645 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 17646 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 17647 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 17648 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 17649 RECOMP_FLAGS_IN(); 17650 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 17651 L_2B04F01C: 17652 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 17653 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17654 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 17655 _cf = 0; 17656 _flag_k = FK_TEST; 17657 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 17658 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 17659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17660 _flag_k = FK_CMP; 17661 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 17662 L_2B04F025: 17663 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 17664 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 17665 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17666 edx = edx - 1; /* 0x2B04F02B: dec edx */ 17667 _flag_k = FK_DEC; 17668 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 17669 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 17670 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 17671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17672 _flag_k = FK_CMP; 17673 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 17674 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 17675 L_2B04F034: 17676 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 17677 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 17678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17679 _flag_k = FK_CMP; 17680 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 17681 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 17682 L_2B04F03B: 17683 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 17684 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 17685 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 17686 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 17687 RECOMP_FLAGS_IN(); 17688 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 17689 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 17690 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 17691 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 17692 RECOMP_FLAGS_IN(); 17693 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 17694 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 17695 RECOMP_FLAGS_IN(); 17696 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17698 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 17699 _flag_k = FK_ADD; 17700 L_2B04F062: 17701 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 17702 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 17703 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 17704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17705 _flag_k = FK_CMP; 17706 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 17707 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 17708 L_2B04F06D: 17709 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 17710 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17711 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 17712 _flag_k = FK_DEC; 17713 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 17714 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17715 _cf = 0; 17716 _flag_k = FK_NARROW(FK_TEST, 24); 17717 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 17718 L_2B04F075: 17719 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 17720 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 17721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17722 _flag_k = FK_NARROW(FK_CMP, 24); 17723 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 17724 L_2B04F079: 17725 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 17726 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 17727 _flag_k = FK_NARROW(FK_DEC, 24); 17728 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 17729 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 17730 L_2B04F07F: 17731 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 17732 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 17733 RECOMP_FLAGS_IN(); 17734 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17736 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 17737 _flag_k = FK_ADD; 17738 L_2B04F088: 17739 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 17740 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 17741 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 17742 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 17743 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 17744 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 17745 _cf = 0; 17746 _flag_k = FK_NARROW(FK_TEST, 24); 17747 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 17748 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 17749 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 17750 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 17751 L_2B04F0A2: 17752 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 17753 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 17754 L_2B04F0A9: 17755 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 17756 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 17757 L_2B04F0AD: 17758 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 17759 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 17760 RECOMP_FLAGS_IN(); 17761 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 17762 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 17763 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 17764 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 17765 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 17766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17767 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 17768 _flag_k = FK_ADD; 17769 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 17770 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 17771 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 17772 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 17773 RECOMP_FLAGS_IN(); 17774 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 17775 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 17776 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 17777 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 17778 _cf = 0; 17779 _flag_k = FK_NARROW(FK_TEST, 24); 17780 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 17781 L_2B04F0DB: 17782 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 17783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 17784 _cf = 0; 17785 _flag_k = FK_TEST; 17786 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 17787 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 17788 L_2B04F0E4: 17789 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 17790 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 17791 L_2B04F0E8: 17792 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 17793 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 17794 L_2B04F0EC: 17795 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 17796 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 17797 L_2B04F0EF: 17798 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 17799 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 17800 RECOMP_FLAGS_IN(); 17801 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 17802 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 17803 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 17804 RECOMP_FLAGS_IN(); 17805 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 17806 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 17807 RECOMP_FLAGS_IN(); 17808 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 17809 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 17810 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 17811 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 17812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 17813 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17814 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 17815 _flag_k = FK_ADD; 17816 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 17817 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 17818 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 17819 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 17820 RECOMP_FLAGS_IN(); 17821 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 17822 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 17823 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 17824 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 17825 _cf = 0; 17826 _flag_k = FK_NARROW(FK_TEST, 24); 17827 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 17828 L_2B04F12F: 17829 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 17830 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 17831 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 17832 L_2B04F136: 17833 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 17834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 17835 _cf = 0; 17836 _flag_k = FK_TEST; 17837 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 17838 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 17839 L_2B04F140: 17840 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 17841 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 17842 L_2B04F144: 17843 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 17844 L_2B04F146: 17845 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 17846 RECOMP_FLAGS_IN(); 17847 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 17848 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 17849 RECOMP_FLAGS_IN(); 17850 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 17851 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 17852 RECOMP_FLAGS_IN(); 17853 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 17854 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 17855 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 17856 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 17857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17858 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 17859 _flag_k = FK_ADD; 17860 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 17861 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17862 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 17863 _flag_k = FK_ADD; 17864 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 17865 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 17866 edi = edi + 1; /* 0x2B04F168: inc edi */ 17867 _flag_k = FK_INC; 17868 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17869 esi = 0; /* 0x2B04F169: xor esi, esi */ 17870 _cf = 0; 17871 _flag_k = FK_TEST; 17872 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 17873 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 17874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17875 _flag_k = FK_CMP; 17876 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 17877 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 17878 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 17879 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 17880 L_2B04F17C: 17881 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 17882 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 17883 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 17884 _cf = 0; 17885 _flag_k = FK_NARROW(FK_TEST, 24); 17886 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 17887 L_2B04F183: 17888 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 17889 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 17890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17891 _flag_k = FK_NARROW(FK_CMP, 24); 17892 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 17893 L_2B04F188: 17894 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 17895 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 17896 _flag_k = FK_NARROW(FK_DEC, 24); 17897 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 17898 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 17899 L_2B04F18F: 17900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17901 eax = eax - 1; /* 0x2B04F18F: dec eax */ 17902 _flag_k = FK_DEC; 17903 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 17904 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 17905 RECOMP_FLAGS_IN(); 17906 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17908 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 17909 _flag_k = FK_ADD; 17910 L_2B04F199: 17911 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 17912 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 17913 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 17914 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 17915 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 17916 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 17917 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 17918 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 17919 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 17920 RECOMP_FLAGS_IN(); 17921 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 17922 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 17923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17924 _flag_k = FK_CMP; 17925 RECOMP_BACKEDGE(); 17926 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 17927 L_2B04F1BC: 17928 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 17929 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 17930 L_2B04F1C1: 17931 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 17932 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 17933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 17934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17935 _flag_k = FK_CMP; 17936 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 17937 L_2B04F1C9: 17938 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 17939 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 17940 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 17941 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 17942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17943 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 17944 _flag_k = FK_CMP; 17945 L_2B04F1D7: 17946 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 17947 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 17948 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 17949 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 17950 RECOMP_FLAGS_IN(); 17951 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 17952 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 17953 RECOMP_FLAGS_IN(); 17954 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 17955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17956 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 17957 _flag_k = FK_ADD; 17958 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 17959 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 17960 _flag_k = FK_DEC; 17961 RECOMP_BACKEDGE(); 17962 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 17963 L_2B04F1F5: 17964 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 17965 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 17966 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 17967 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 17968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17969 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 17970 _flag_k = FK_ADD; 17971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 17972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17973 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 17974 _flag_k = FK_ADD; 17975 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 17976 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 17977 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 17978 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 17979 RECOMP_FLAGS_IN(); 17980 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 17981 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 17982 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 17983 RECOMP_FLAGS_IN(); 17984 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 17985 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 17986 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 17987 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 17988 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17989 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 17990 _flag_k = FK_ADD; 17991 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 17992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 17993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17994 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 17995 _flag_k = FK_ADD; 17996 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 17997 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 17998 RECOMP_FLAGS_IN(); 17999 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 18000 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 18001 RECOMP_FLAGS_IN(); 18002 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 18003 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 18004 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18005 _cf = 0; 18006 _flag_k = FK_NARROW(FK_TEST, 24); 18007 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 18008 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 18009 L_2B04F246: 18010 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 18011 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 18012 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 18013 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 18014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 18015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18016 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 18017 _flag_k = FK_ADD; 18018 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 18019 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 18020 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 18021 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18022 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 18023 _flag_k = FK_ADD; 18024 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 18025 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 18026 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 18027 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 18028 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 18029 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 18030 RECOMP_FLAGS_IN(); 18031 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 18032 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 18033 RECOMP_FLAGS_IN(); 18034 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 18035 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 18036 RECOMP_FLAGS_IN(); 18037 L_2B04F283: 18038 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 18039 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 18040 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18041 _cf = 0; 18042 _flag_k = FK_NARROW(FK_TEST, 24); 18043 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 18044 L_2B04F28D: 18045 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 18046 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 18047 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 18048 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 18049 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 18050 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18051 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 18052 _flag_k = FK_ADD; 18053 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 18054 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 18055 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 18056 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18057 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 18058 _flag_k = FK_ADD; 18059 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 18060 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 18061 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 18062 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 18063 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 18064 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 18065 RECOMP_FLAGS_IN(); 18066 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 18067 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 18068 RECOMP_FLAGS_IN(); 18069 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 18070 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 18071 RECOMP_FLAGS_IN(); 18072 L_2B04F2D0: 18073 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 18074 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 18075 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 18076 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 18077 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 18078 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 18079 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 18080 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 18081 RECOMP_REGS_OUT(); 18082 } 18083 18084 void sub_2B04EC47(void) { 18085 int _fpu_cmp = 0; 18086 uint32_t _cf = 0; 18087 int _df = 1; 18088 uint32_t _flag_k = FK_NONE; 18089 uint32_t _flag_a = 0, _flag_b = 0; 18090 uint32_t _itail_tgt = 0; 18091 RECOMP_REGS_LOCALS 18092 RECOMP_ENTER(0x2B04EC47u); 18093 18094 goto L_2B04EC47; 18095 L_2B04EB1A: 18096 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 18097 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 18098 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 18099 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 18100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18101 _flag_k = FK_CMP; 18102 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 18103 L_2B04EB2C: 18104 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 18105 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 18106 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 18107 _cf = 0; 18108 _flag_k = FK_TEST; 18109 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 18110 L_2B04EB37: 18111 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 18112 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 18113 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 18114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18115 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 18116 _flag_k = FK_ADD; 18117 eax = edx; /* 0x2B04EB40: mov eax, edx */ 18118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18119 eax = eax - 1; /* 0x2B04EB42: dec eax */ 18120 _flag_k = FK_DEC; 18121 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 18122 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 18123 L_2B04EB48: 18124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18125 eax = eax - 1; /* 0x2B04EB48: dec eax */ 18126 _flag_k = FK_DEC; 18127 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 18128 L_2B04EB4B: 18129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18130 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 18131 _flag_k = FK_DEC; 18132 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 18133 L_2B04EB4E: 18134 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 18135 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 18136 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 18137 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 18138 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 18139 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 18140 RECOMP_FLAGS_IN(); 18141 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 18142 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 18143 L_2B04EB67: 18144 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 18145 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 18146 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 18147 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 18148 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 18149 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 18150 RECOMP_FLAGS_IN(); 18151 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 18152 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 18153 L_2B04EB80: 18154 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 18155 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 18156 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 18157 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 18158 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 18159 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 18160 RECOMP_FLAGS_IN(); 18161 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 18162 L_2B04EB97: 18163 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 18164 L_2B04EB9B: 18165 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 18166 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 18167 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 18168 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 18169 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 18170 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 18171 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 18172 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 18173 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 18174 L_2B04EBBA: 18175 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 18176 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 18177 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18178 _cf = 0; 18179 _flag_k = FK_NARROW(FK_TEST, 24); 18180 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 18181 L_2B04EBC1: 18182 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 18183 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18184 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 18185 _flag_k = FK_DEC; 18186 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 18187 L_2B04EBC7: 18188 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 18189 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 18190 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 18191 L_2B04EBD0: 18192 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 18193 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 18194 L_2B04EBD7: 18195 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 18196 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 18197 RECOMP_FLAGS_IN(); 18198 L_2B04EBE0: 18199 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 18200 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 18201 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 18202 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 18203 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 18204 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 18205 RECOMP_FLAGS_IN(); 18206 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 18207 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 18208 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 18209 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 18210 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18211 _cf = 0; 18212 _flag_k = FK_NARROW(FK_TEST, 24); 18213 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 18214 L_2B04EC02: 18215 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 18216 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 18217 L_2B04EC09: 18218 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 18219 L_2B04EC0E: 18220 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 18221 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 18222 RECOMP_FLAGS_IN(); 18223 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 18224 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 18225 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 18226 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 18227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 18228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18229 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 18230 _flag_k = FK_ADD; 18231 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 18232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18233 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 18234 _flag_k = FK_ADD; 18235 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 18236 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 18237 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 18238 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 18239 RECOMP_FLAGS_IN(); 18240 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 18241 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 18242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18243 _cf = 0; 18244 _flag_k = FK_TEST; 18245 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 18246 L_2B04EC39: 18247 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 18248 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 18249 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 18250 L_2B04EC44: 18251 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 18252 L_2B04EC47: 18253 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 18254 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 18255 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 18256 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 18257 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 18258 RECOMP_FLAGS_IN(); 18259 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 18260 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 18261 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 18262 _cf = 0; 18263 _flag_k = FK_TEST; 18264 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18265 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 18266 _cf = 0; 18267 _flag_k = FK_TEST; 18268 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 18269 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 18270 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18271 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 18272 _flag_k = FK_DEC; 18273 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 18274 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 18275 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 18276 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 18277 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 18278 RECOMP_FLAGS_IN(); 18279 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 18280 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18281 _cf = 0; 18282 _flag_k = FK_NARROW(FK_TEST, 24); 18283 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 18284 L_2B04EC78: 18285 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 18286 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 18287 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 18288 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 18289 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 18290 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 18291 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18292 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 18293 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 18294 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 18295 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 18296 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 18297 _cf = 0; 18298 _flag_k = FK_TEST; 18299 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 18300 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 18301 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 18302 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 18303 RECOMP_FLAGS_IN(); 18304 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 18305 L_2B04EC9E: 18306 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18307 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 18308 _cf = 0; 18309 _flag_k = FK_TEST; 18310 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 18311 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 18312 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 18313 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 18314 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 18315 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 18316 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 18317 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 18318 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 18319 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 18320 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 18321 RECOMP_FLAGS_IN(); 18322 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 18323 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 18324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18326 _flag_k = FK_CMP; 18327 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 18328 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 18329 L_2B04ECCD: 18330 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 18331 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 18332 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 18333 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18334 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 18335 _flag_k = FK_ADD; 18336 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 18337 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 18338 _flag_k = FK_DEC; 18339 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 18340 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 18341 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 18342 _cf = 0; 18343 _flag_k = FK_TEST; 18344 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 18345 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 18346 L_2B04ECDE: 18347 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 18348 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 18349 _cf = 0; 18350 _flag_k = FK_TEST; 18351 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 18352 L_2B04ECE2: 18353 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 18354 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 18355 RECOMP_FLAGS_IN(); 18356 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 18357 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 18358 RECOMP_FLAGS_IN(); 18359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18361 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 18362 _flag_k = FK_ADD; 18363 L_2B04ECF2: 18364 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 18365 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 18366 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 18367 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 18368 RECOMP_FLAGS_IN(); 18369 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 18370 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 18371 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 18372 L_2B04ED0D: 18373 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 18374 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 18375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 18376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18377 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 18378 _flag_k = FK_ADD; 18379 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18380 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 18381 _flag_k = FK_INC; 18382 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 18383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18384 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 18385 _flag_k = FK_ADD; 18386 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 18387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18388 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 18389 _flag_k = FK_ADD; 18390 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 18391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 18392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18393 _flag_k = FK_CMP; 18394 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 18395 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 18396 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 18397 RECOMP_BACKEDGE(); 18398 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 18399 L_2B04ED2F: 18400 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 18401 L_2B04ED31: 18402 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 18403 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 18404 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 18405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18406 _flag_k = FK_CMP; 18407 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 18408 L_2B04ED39: 18409 eax = edx; /* 0x2B04ED39: mov eax, edx */ 18410 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 18411 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18412 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 18413 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 18414 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 18415 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18417 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 18418 _flag_k = FK_CMP; 18419 L_2B04ED49: 18420 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 18421 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 18422 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 18423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 18424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18425 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 18426 _flag_k = FK_ADD; 18427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18428 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 18429 _flag_k = FK_DEC; 18430 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 18431 RECOMP_BACKEDGE(); 18432 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 18433 L_2B04ED5C: 18434 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 18435 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 18436 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 18437 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 18438 RECOMP_FLAGS_IN(); 18439 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 18440 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 18441 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18442 edi = 0; /* 0x2B04ED70: xor edi, edi */ 18443 _cf = 0; 18444 _flag_k = FK_TEST; 18445 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 18446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18447 _cf = 0; 18448 _flag_k = FK_TEST; 18449 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 18450 L_2B04ED76: 18451 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 18452 L_2B04ED79: 18453 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 18454 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 18455 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 18456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 18457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18458 _flag_k = FK_CMP; 18459 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 18460 L_2B04ED87: 18461 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 18462 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 18463 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 18464 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 18465 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 18466 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 18467 RECOMP_FLAGS_IN(); 18468 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 18469 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 18470 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 18471 _flag_k = FK_INC; 18472 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 18473 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18475 _flag_k = FK_CMP; 18476 RECOMP_BACKEDGE(); 18477 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 18478 L_2B04EDA1: 18479 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 18480 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 18481 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 18482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18483 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 18484 _flag_k = FK_ADD; 18485 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 18486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18487 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 18488 _flag_k = FK_ADD; 18489 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 18490 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 18491 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 18492 L_2B04EDBF: 18493 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 18494 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 18495 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 18496 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 18497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 18498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18499 _flag_k = FK_CMP; 18500 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 18501 L_2B04EDD4: 18502 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 18503 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 18504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18505 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 18506 _flag_k = FK_ADD; 18507 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 18508 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 18509 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 18510 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 18511 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 18512 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 18513 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 18514 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 18515 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 18516 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 18517 RECOMP_FLAGS_IN(); 18518 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 18519 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18520 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 18521 _cf = 0; 18522 _flag_k = FK_TEST; 18523 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 18524 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 18525 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 18526 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 18527 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 18528 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 18529 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 18530 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18532 _flag_k = FK_CMP; 18533 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 18534 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 18535 L_2B04EE1E: 18536 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 18537 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 18538 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 18539 _cf = 0; 18540 _flag_k = FK_TEST; 18541 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 18542 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 18543 L_2B04EE28: 18544 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 18545 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 18546 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 18547 _cf = 0; 18548 _flag_k = FK_NARROW(FK_TEST, 24); 18549 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 18550 L_2B04EE2F: 18551 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 18552 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 18553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18554 _flag_k = FK_NARROW(FK_CMP, 24); 18555 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 18556 L_2B04EE34: 18557 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 18558 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 18559 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 18560 RECOMP_FLAGS_IN(); 18561 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 18562 L_2B04EE40: 18563 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 18564 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 18565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18566 _cf = 0; 18567 _flag_k = FK_TEST; 18568 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 18569 L_2B04EE46: 18570 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 18571 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 18572 L_2B04EE4D: 18573 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 18574 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18575 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18576 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 18577 _flag_k = FK_ADD; 18578 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 18579 L_2B04EE53: 18580 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 18581 L_2B04EE58: 18582 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 18583 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 18584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18585 _flag_k = FK_NARROW(FK_CMP, 24); 18586 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 18587 L_2B04EE5D: 18588 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 18589 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 18590 _flag_k = FK_INC; 18591 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 18592 L_2B04EE63: 18593 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 18594 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 18595 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 18596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18597 _flag_k = FK_CMP; 18598 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 18599 L_2B04EE6A: 18600 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 18601 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 18602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18603 _cf = 0; 18604 _flag_k = FK_TEST; 18605 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 18606 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 18607 L_2B04EE74: 18608 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 18609 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 18610 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18611 _cf = 0; 18612 _flag_k = FK_NARROW(FK_TEST, 24); 18613 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 18614 L_2B04EE7B: 18615 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 18616 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 18617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18618 _flag_k = FK_NARROW(FK_CMP, 24); 18619 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 18620 L_2B04EE7F: 18621 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 18622 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 18623 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 18624 RECOMP_FLAGS_IN(); 18625 L_2B04EE88: 18626 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 18627 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 18628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18629 _cf = 0; 18630 _flag_k = FK_TEST; 18631 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 18632 L_2B04EE8E: 18633 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 18634 L_2B04EE92: 18635 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 18636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18638 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 18639 _flag_k = FK_ADD; 18640 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 18641 L_2B04EE98: 18642 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 18643 L_2B04EE9D: 18644 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 18645 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 18646 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 18647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 18648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18649 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 18650 _flag_k = FK_CMP; 18651 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 18652 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18654 _flag_k = FK_CMP; 18655 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 18656 L_2B04EEAF: 18657 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 18658 RECOMP_FLAGS_IN(); 18659 L_2B04EEB5: 18660 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 18661 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 18662 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 18663 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 18664 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 18665 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 18666 RECOMP_FLAGS_IN(); 18667 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 18668 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18669 _cf = 0; 18670 _flag_k = FK_NARROW(FK_TEST, 24); 18671 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 18672 L_2B04EECB: 18673 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 18674 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 18675 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 18676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 18677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18678 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 18679 _flag_k = FK_ADD; 18680 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 18681 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 18682 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 18683 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 18684 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 18685 L_2B04EEE4: 18686 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 18687 L_2B04EEE7: 18688 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 18689 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 18690 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 18691 _flag_k = FK_INC; 18692 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 18693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18695 _flag_k = FK_CMP; 18696 RECOMP_BACKEDGE(); 18697 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 18698 L_2B04EEF3: 18699 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 18700 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 18701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18702 _cf = 0; 18703 _flag_k = FK_TEST; 18704 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 18705 L_2B04EEFA: 18706 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 18707 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 18708 L_2B04EF02: 18709 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 18710 L_2B04EF05: 18711 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 18712 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 18713 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18714 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 18715 _cf = 0; 18716 _flag_k = FK_TEST; 18717 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 18718 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 18719 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 18720 edi = esi; /* 0x2B04EF16: mov edi, esi */ 18721 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 18722 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 18723 _cf = 0; 18724 _flag_k = FK_TEST; 18725 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 18726 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 18727 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18728 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 18729 _flag_k = FK_DEC; 18730 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 18731 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 18732 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 18733 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 18734 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 18735 RECOMP_FLAGS_IN(); 18736 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 18737 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18738 _cf = 0; 18739 _flag_k = FK_NARROW(FK_TEST, 24); 18740 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 18741 L_2B04EF32: 18742 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 18743 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 18744 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 18745 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 18746 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18747 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 18748 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 18749 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 18750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 18751 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 18752 _cf = 0; 18753 _flag_k = FK_TEST; 18754 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 18755 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 18756 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 18757 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 18758 RECOMP_FLAGS_IN(); 18759 L_2B04EF4F: 18760 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 18761 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 18762 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 18763 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 18764 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 18765 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 18766 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 18767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18768 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 18769 _flag_k = FK_ADD; 18770 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 18771 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 18772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 18773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18774 _flag_k = FK_CMP; 18775 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 18776 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 18777 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 18778 L_2B04EF76: 18779 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 18780 L_2B04EF78: 18781 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 18782 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 18783 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 18784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18785 _flag_k = FK_CMP; 18786 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 18787 L_2B04EF7F: 18788 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 18789 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 18790 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 18791 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 18792 RECOMP_FLAGS_IN(); 18793 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 18794 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 18795 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 18796 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 18797 RECOMP_FLAGS_IN(); 18798 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 18799 L_2B04EF9A: 18800 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 18801 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 18802 _cf = 0; 18803 _flag_k = FK_TEST; 18804 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 18805 L_2B04EF9E: 18806 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 18807 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 18808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18809 _flag_k = FK_CMP; 18810 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 18811 L_2B04EFA2: 18812 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 18813 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 18814 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18815 _cf = 0; 18816 _flag_k = FK_TEST; 18817 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 18818 L_2B04EFA9: 18819 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 18820 L_2B04EFAE: 18821 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 18822 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 18823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18824 _flag_k = FK_NARROW(FK_CMP, 24); 18825 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 18826 L_2B04EFB4: 18827 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 18828 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 18829 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 18830 RECOMP_FLAGS_IN(); 18831 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 18832 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 18833 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18834 _cf = 0; 18835 _flag_k = FK_TEST; 18836 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 18837 L_2B04EFC5: 18838 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 18839 L_2B04EFCA: 18840 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 18841 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 18842 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 18843 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 18844 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 18845 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 18846 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 18847 _flag_k = FK_NARROW(FK_INC, 24); 18848 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 18849 L_2B04EFDE: 18850 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 18851 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 18852 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 18853 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 18854 RECOMP_FLAGS_IN(); 18855 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 18856 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18857 _cf = 0; 18858 _flag_k = FK_NARROW(FK_TEST, 24); 18859 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 18860 L_2B04EFED: 18861 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 18862 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 18863 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 18864 _cf = 0; 18865 _flag_k = FK_TEST; 18866 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 18867 L_2B04EFF4: 18868 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 18869 L_2B04EFFA: 18870 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 18871 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 18872 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 18873 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 18874 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 18875 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18876 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 18877 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 18878 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 18879 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 18880 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 18881 _cf = 0; 18882 _flag_k = FK_TEST; 18883 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 18884 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 18885 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 18886 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 18887 RECOMP_FLAGS_IN(); 18888 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 18889 L_2B04F01C: 18890 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 18891 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18892 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 18893 _cf = 0; 18894 _flag_k = FK_TEST; 18895 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 18896 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 18897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18898 _flag_k = FK_CMP; 18899 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 18900 L_2B04F025: 18901 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 18902 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 18903 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 18904 edx = edx - 1; /* 0x2B04F02B: dec edx */ 18905 _flag_k = FK_DEC; 18906 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 18907 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 18908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 18909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18910 _flag_k = FK_CMP; 18911 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 18912 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 18913 L_2B04F034: 18914 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 18915 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 18916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18917 _flag_k = FK_CMP; 18918 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 18919 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 18920 L_2B04F03B: 18921 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 18922 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 18923 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 18924 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 18925 RECOMP_FLAGS_IN(); 18926 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 18927 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 18928 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 18929 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 18930 RECOMP_FLAGS_IN(); 18931 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 18932 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 18933 RECOMP_FLAGS_IN(); 18934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18936 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 18937 _flag_k = FK_ADD; 18938 L_2B04F062: 18939 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 18940 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 18941 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 18942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18943 _flag_k = FK_CMP; 18944 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 18945 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 18946 L_2B04F06D: 18947 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 18948 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18949 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 18950 _flag_k = FK_DEC; 18951 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 18952 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18953 _cf = 0; 18954 _flag_k = FK_NARROW(FK_TEST, 24); 18955 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 18956 L_2B04F075: 18957 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 18958 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 18959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18960 _flag_k = FK_NARROW(FK_CMP, 24); 18961 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 18962 L_2B04F079: 18963 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 18964 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 18965 _flag_k = FK_NARROW(FK_DEC, 24); 18966 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 18967 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 18968 L_2B04F07F: 18969 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 18970 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 18971 RECOMP_FLAGS_IN(); 18972 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18974 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 18975 _flag_k = FK_ADD; 18976 L_2B04F088: 18977 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 18978 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 18979 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 18980 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 18981 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 18982 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 18983 _cf = 0; 18984 _flag_k = FK_NARROW(FK_TEST, 24); 18985 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 18986 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 18987 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 18988 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 18989 L_2B04F0A2: 18990 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 18991 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 18992 L_2B04F0A9: 18993 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 18994 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 18995 L_2B04F0AD: 18996 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 18997 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 18998 RECOMP_FLAGS_IN(); 18999 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 19000 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 19001 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 19002 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 19003 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 19004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19005 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 19006 _flag_k = FK_ADD; 19007 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 19008 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 19009 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 19010 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 19011 RECOMP_FLAGS_IN(); 19012 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 19013 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 19014 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 19015 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 19016 _cf = 0; 19017 _flag_k = FK_NARROW(FK_TEST, 24); 19018 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 19019 L_2B04F0DB: 19020 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 19021 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 19022 _cf = 0; 19023 _flag_k = FK_TEST; 19024 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 19025 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 19026 L_2B04F0E4: 19027 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 19028 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 19029 L_2B04F0E8: 19030 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 19031 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 19032 L_2B04F0EC: 19033 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 19034 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 19035 L_2B04F0EF: 19036 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 19037 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 19038 RECOMP_FLAGS_IN(); 19039 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 19040 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 19041 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 19042 RECOMP_FLAGS_IN(); 19043 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 19044 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 19045 RECOMP_FLAGS_IN(); 19046 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 19047 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 19048 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 19049 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 19050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 19051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19052 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 19053 _flag_k = FK_ADD; 19054 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 19055 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 19056 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 19057 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 19058 RECOMP_FLAGS_IN(); 19059 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 19060 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 19061 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 19062 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 19063 _cf = 0; 19064 _flag_k = FK_NARROW(FK_TEST, 24); 19065 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 19066 L_2B04F12F: 19067 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 19068 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 19069 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 19070 L_2B04F136: 19071 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 19072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 19073 _cf = 0; 19074 _flag_k = FK_TEST; 19075 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 19076 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 19077 L_2B04F140: 19078 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 19079 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 19080 L_2B04F144: 19081 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 19082 L_2B04F146: 19083 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 19084 RECOMP_FLAGS_IN(); 19085 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 19086 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 19087 RECOMP_FLAGS_IN(); 19088 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 19089 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 19090 RECOMP_FLAGS_IN(); 19091 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 19092 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 19093 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 19094 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 19095 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19096 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 19097 _flag_k = FK_ADD; 19098 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 19099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19100 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 19101 _flag_k = FK_ADD; 19102 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 19103 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 19104 edi = edi + 1; /* 0x2B04F168: inc edi */ 19105 _flag_k = FK_INC; 19106 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19107 esi = 0; /* 0x2B04F169: xor esi, esi */ 19108 _cf = 0; 19109 _flag_k = FK_TEST; 19110 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 19111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 19112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19113 _flag_k = FK_CMP; 19114 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 19115 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 19116 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 19117 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 19118 L_2B04F17C: 19119 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 19120 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 19121 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 19122 _cf = 0; 19123 _flag_k = FK_NARROW(FK_TEST, 24); 19124 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 19125 L_2B04F183: 19126 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 19127 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 19128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19129 _flag_k = FK_NARROW(FK_CMP, 24); 19130 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 19131 L_2B04F188: 19132 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 19133 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 19134 _flag_k = FK_NARROW(FK_DEC, 24); 19135 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 19136 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 19137 L_2B04F18F: 19138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19139 eax = eax - 1; /* 0x2B04F18F: dec eax */ 19140 _flag_k = FK_DEC; 19141 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 19142 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 19143 RECOMP_FLAGS_IN(); 19144 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19146 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 19147 _flag_k = FK_ADD; 19148 L_2B04F199: 19149 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 19150 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 19151 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 19152 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 19153 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 19154 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 19155 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 19156 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 19157 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 19158 RECOMP_FLAGS_IN(); 19159 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 19160 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 19161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19162 _flag_k = FK_CMP; 19163 RECOMP_BACKEDGE(); 19164 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 19165 L_2B04F1BC: 19166 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 19167 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 19168 L_2B04F1C1: 19169 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 19170 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 19171 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 19172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19173 _flag_k = FK_CMP; 19174 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 19175 L_2B04F1C9: 19176 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 19177 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 19178 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 19179 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 19180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19181 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 19182 _flag_k = FK_CMP; 19183 L_2B04F1D7: 19184 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 19185 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 19186 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 19187 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 19188 RECOMP_FLAGS_IN(); 19189 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 19190 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 19191 RECOMP_FLAGS_IN(); 19192 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 19193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19194 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 19195 _flag_k = FK_ADD; 19196 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 19197 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 19198 _flag_k = FK_DEC; 19199 RECOMP_BACKEDGE(); 19200 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 19201 L_2B04F1F5: 19202 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 19203 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 19204 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 19205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 19206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19207 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 19208 _flag_k = FK_ADD; 19209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 19210 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19211 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 19212 _flag_k = FK_ADD; 19213 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 19214 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 19215 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 19216 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 19217 RECOMP_FLAGS_IN(); 19218 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 19219 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 19220 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 19221 RECOMP_FLAGS_IN(); 19222 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 19223 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 19224 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 19225 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 19226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19227 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 19228 _flag_k = FK_ADD; 19229 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 19230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 19231 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19232 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 19233 _flag_k = FK_ADD; 19234 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 19235 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 19236 RECOMP_FLAGS_IN(); 19237 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 19238 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 19239 RECOMP_FLAGS_IN(); 19240 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 19241 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 19242 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19243 _cf = 0; 19244 _flag_k = FK_NARROW(FK_TEST, 24); 19245 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 19246 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 19247 L_2B04F246: 19248 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 19249 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 19250 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 19251 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 19252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 19253 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19254 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 19255 _flag_k = FK_ADD; 19256 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 19257 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 19258 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 19259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19260 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 19261 _flag_k = FK_ADD; 19262 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 19263 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 19264 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 19265 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 19266 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 19267 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 19268 RECOMP_FLAGS_IN(); 19269 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 19270 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 19271 RECOMP_FLAGS_IN(); 19272 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 19273 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 19274 RECOMP_FLAGS_IN(); 19275 L_2B04F283: 19276 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 19277 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 19278 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19279 _cf = 0; 19280 _flag_k = FK_NARROW(FK_TEST, 24); 19281 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 19282 L_2B04F28D: 19283 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 19284 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 19285 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 19286 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 19287 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 19288 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19289 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 19290 _flag_k = FK_ADD; 19291 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 19292 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 19293 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 19294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19295 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 19296 _flag_k = FK_ADD; 19297 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 19298 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 19299 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 19300 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 19301 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 19302 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 19303 RECOMP_FLAGS_IN(); 19304 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 19305 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 19306 RECOMP_FLAGS_IN(); 19307 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 19308 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 19309 RECOMP_FLAGS_IN(); 19310 L_2B04F2D0: 19311 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 19312 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 19313 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 19314 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 19315 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 19316 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 19317 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 19318 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 19319 RECOMP_REGS_OUT(); 19320 } 19321 19322 void sub_2B04ED0D(void) { 19323 int _fpu_cmp = 0; 19324 uint32_t _cf = 0; 19325 int _df = 1; 19326 uint32_t _flag_k = FK_NONE; 19327 uint32_t _flag_a = 0, _flag_b = 0; 19328 uint32_t _itail_tgt = 0; 19329 RECOMP_REGS_LOCALS 19330 RECOMP_ENTER(0x2B04ED0Du); 19331 19332 goto L_2B04ED0D; 19333 L_2B04EB1A: 19334 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EB1A: mov ecx, dword ptr [ebp - 0x34] */ 19335 edx = MEM32(esi + 0x100); /* 0x2B04EB1D: mov edx, dword ptr [esi + 0x100] */ 19336 /* cmp edi, MEM32(edx + 0x8) */ /* 0x2B04EB23: cmp edi, dword ptr [edx + 8] */ 19337 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 19338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19339 _flag_k = FK_CMP; 19340 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ED31; /* 0x2B04EB26: je 0x2b04ed31 */ 19341 L_2B04EB2C: 19342 edx = MEM32(edi + 0x18); /* 0x2B04EB2C: mov edx, dword ptr [edi + 0x18] */ 19343 /* test edx, edx */ /* 0x2B04EB2F: test edx, edx */ 19344 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19345 _cf = 0; 19346 _flag_k = FK_TEST; 19347 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EBBA; /* 0x2B04EB31: jle 0x2b04ebba */ 19348 L_2B04EB37: 19349 MEM32(ebp + (-0x38)) = eax; /* 0x2B04EB37: mov dword ptr [ebp - 0x38], eax */ 19350 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB3A: mov dword ptr [ebp - 0x3c], ecx */ 19351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF3u); 19352 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19353 ecx = ecx + 0xFFFFFFF3u; /* 0x2B04EB3D: add ecx, -0xd */ 19354 _flag_k = FK_ADD; 19355 eax = edx; /* 0x2B04EB40: mov eax, edx */ 19356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19357 eax = eax - 1; /* 0x2B04EB42: dec eax */ 19358 _flag_k = FK_DEC; 19359 MEM32(ebp + (-0x3C)) = ecx; /* 0x2B04EB43: mov dword ptr [ebp - 0x3c], ecx */ 19360 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB80; /* 0x2B04EB46: je 0x2b04eb80 */ 19361 L_2B04EB48: 19362 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19363 eax = eax - 1; /* 0x2B04EB48: dec eax */ 19364 _flag_k = FK_DEC; 19365 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EB67; /* 0x2B04EB49: je 0x2b04eb67 */ 19366 L_2B04EB4B: 19367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19368 eax = eax - 1; /* 0x2B04EB4B: dec eax */ 19369 _flag_k = FK_DEC; 19370 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04EB9B; /* 0x2B04EB4C: jne 0x2b04eb9b */ 19371 L_2B04EB4E: 19372 eax = MEM32(esi + 0x3C); /* 0x2B04EB4E: mov eax, dword ptr [esi + 0x3c] */ 19373 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB51: mov byte ptr [eax + 8], 1 */ 19374 ecx = MEM32(esi + 0x3C); /* 0x2B04EB55: mov ecx, dword ptr [esi + 0x3c] */ 19375 eax = ebp + (-0x3C); /* 0x2B04EB58: lea eax, [ebp - 0x3c] */ 19376 PUSH32(esp, eax); /* 0x2B04EB5B: push eax */ 19377 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB5C: call dword ptr [0x2b0b5940] */ 19378 RECOMP_FLAGS_IN(); 19379 eax = MEM32(esi + 0x3C); /* 0x2B04EB62: mov eax, dword ptr [esi + 0x3c] */ 19380 goto L_2B04EB97; /* 0x2B04EB65: jmp 0x2b04eb97 */ 19381 L_2B04EB67: 19382 eax = MEM32(esi + 0x38); /* 0x2B04EB67: mov eax, dword ptr [esi + 0x38] */ 19383 ecx = ebp + (-0x3C); /* 0x2B04EB6A: lea ecx, [ebp - 0x3c] */ 19384 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB6D: mov byte ptr [eax + 8], 1 */ 19385 PUSH32(esp, ecx); /* 0x2B04EB71: push ecx */ 19386 ecx = MEM32(esi + 0x38); /* 0x2B04EB72: mov ecx, dword ptr [esi + 0x38] */ 19387 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB75: call dword ptr [0x2b0b5940] */ 19388 RECOMP_FLAGS_IN(); 19389 eax = MEM32(esi + 0x38); /* 0x2B04EB7B: mov eax, dword ptr [esi + 0x38] */ 19390 goto L_2B04EB97; /* 0x2B04EB7E: jmp 0x2b04eb97 */ 19391 L_2B04EB80: 19392 eax = MEM32(esi + 0x34); /* 0x2B04EB80: mov eax, dword ptr [esi + 0x34] */ 19393 edx = ebp + (-0x3C); /* 0x2B04EB83: lea edx, [ebp - 0x3c] */ 19394 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EB86: mov byte ptr [eax + 8], 1 */ 19395 ecx = MEM32(esi + 0x34); /* 0x2B04EB8A: mov ecx, dword ptr [esi + 0x34] */ 19396 PUSH32(esp, edx); /* 0x2B04EB8D: push edx */ 19397 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EB8E: call dword ptr [0x2b0b5940] */ 19398 RECOMP_FLAGS_IN(); 19399 eax = MEM32(esi + 0x34); /* 0x2B04EB94: mov eax, dword ptr [esi + 0x34] */ 19400 L_2B04EB97: 19401 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EB97: mov byte ptr [eax + 9], 1 */ 19402 L_2B04EB9B: 19403 eax = MEM32(ebx + (-0x4)); /* 0x2B04EB9B: mov eax, dword ptr [ebx - 4] */ 19404 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EB9E: mov byte ptr [eax + 8], 0 */ 19405 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBA2: mov eax, dword ptr [ebx - 4] */ 19406 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBA5: mov byte ptr [eax + 9], 1 */ 19407 eax = MEM32(ebx); /* 0x2B04EBA9: mov eax, dword ptr [ebx] */ 19408 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B04EBAB: mov byte ptr [eax + 8], 0 */ 19409 eax = MEM32(ebx); /* 0x2B04EBAF: mov eax, dword ptr [ebx] */ 19410 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBB1: mov byte ptr [eax + 9], 1 */ 19411 goto L_2B04ED0D; /* 0x2B04EBB5: jmp 0x2b04ed0d */ 19412 L_2B04EBBA: 19413 SET_LO8(eax, MEM8(edi + 0x24)); /* 0x2B04EBBA: mov al, byte ptr [edi + 0x24] */ 19414 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBBD: test al, al */ 19415 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19416 _cf = 0; 19417 _flag_k = FK_NARROW(FK_TEST, 24); 19418 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EBE0; /* 0x2B04EBBF: jne 0x2b04ebe0 */ 19419 L_2B04EBC1: 19420 eax = MEM32(edi + 0x1C); /* 0x2B04EBC1: mov eax, dword ptr [edi + 0x1c] */ 19421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19422 eax = eax - 1; /* 0x2B04EBC4: dec eax */ 19423 _flag_k = FK_DEC; 19424 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B04EBD0; /* 0x2B04EBC5: je 0x2b04ebd0 */ 19425 L_2B04EBC7: 19426 eax = MEM32(esi + 0x18C); /* 0x2B04EBC7: mov eax, dword ptr [esi + 0x18c] */ 19427 PUSH32(esp, eax); /* 0x2B04EBCD: push eax */ 19428 goto L_2B04EBD7; /* 0x2B04EBCE: jmp 0x2b04ebd7 */ 19429 L_2B04EBD0: 19430 ecx = MEM32(esi + 0x190); /* 0x2B04EBD0: mov ecx, dword ptr [esi + 0x190] */ 19431 PUSH32(esp, ecx); /* 0x2B04EBD6: push ecx */ 19432 L_2B04EBD7: 19433 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBD7: mov ecx, dword ptr [ebx - 4] */ 19434 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04EBDA: call dword ptr [0x2b0b5a28] */ 19435 RECOMP_FLAGS_IN(); 19436 L_2B04EBE0: 19437 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBE0: mov eax, dword ptr [ebx - 4] */ 19438 edx = ebp + (-0x34); /* 0x2B04EBE3: lea edx, [ebp - 0x34] */ 19439 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EBE6: mov byte ptr [eax + 8], 1 */ 19440 ecx = MEM32(ebx + (-0x4)); /* 0x2B04EBEA: mov ecx, dword ptr [ebx - 4] */ 19441 PUSH32(esp, edx); /* 0x2B04EBED: push edx */ 19442 RECOMP_ICALL(MEM32(0x2B0B5940)); /* 0x2B04EBEE: call dword ptr [0x2b0b5940] */ 19443 RECOMP_FLAGS_IN(); 19444 eax = MEM32(ebx + (-0x4)); /* 0x2B04EBF4: mov eax, dword ptr [ebx - 4] */ 19445 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04EBF7: mov byte ptr [eax + 9], 1 */ 19446 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B04EBFB: mov al, byte ptr [edi + 0x2c] */ 19447 /* test LO8(eax), LO8(eax) */ /* 0x2B04EBFE: test al, al */ 19448 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19449 _cf = 0; 19450 _flag_k = FK_NARROW(FK_TEST, 24); 19451 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC09; /* 0x2B04EC00: je 0x2b04ec09 */ 19452 L_2B04EC02: 19453 PUSH32(esp, 0x00FF0000u); /* 0x2B04EC02: push 0xff0000 */ 19454 goto L_2B04EC0E; /* 0x2B04EC07: jmp 0x2b04ec0e */ 19455 L_2B04EC09: 19456 PUSH32(esp, 0x00FFFFFFu); /* 0x2B04EC09: push 0xffffff */ 19457 L_2B04EC0E: 19458 ecx = MEM32(ebx); /* 0x2B04EC0E: mov ecx, dword ptr [ebx] */ 19459 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04EC10: call dword ptr [0x2b0b5858] */ 19460 RECOMP_FLAGS_IN(); 19461 eax = MEM32(ebx); /* 0x2B04EC16: mov eax, dword ptr [ebx] */ 19462 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EC18: mov byte ptr [eax + 8], 1 */ 19463 eax = MEM32(ebp + (-0x30)); /* 0x2B04EC1C: mov eax, dword ptr [ebp - 0x30] */ 19464 ecx = MEM32(ebp + (-0x34)); /* 0x2B04EC1F: mov ecx, dword ptr [ebp - 0x34] */ 19465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 19466 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19467 eax = eax + 2; /* 0x2B04EC22: add eax, 2 */ 19468 _flag_k = FK_ADD; 19469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x22u); 19470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19471 ecx = ecx + 0x22u; /* 0x2B04EC25: add ecx, 0x22 */ 19472 _flag_k = FK_ADD; 19473 PUSH32(esp, eax); /* 0x2B04EC28: push eax */ 19474 PUSH32(esp, ecx); /* 0x2B04EC29: push ecx */ 19475 ecx = MEM32(ebx); /* 0x2B04EC2A: mov ecx, dword ptr [ebx] */ 19476 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EC2C: call dword ptr [0x2b0b5924] */ 19477 RECOMP_FLAGS_IN(); 19478 eax = MEM32(edi + 0xC); /* 0x2B04EC32: mov eax, dword ptr [edi + 0xc] */ 19479 /* test eax, eax */ /* 0x2B04EC35: test eax, eax */ 19480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19481 _cf = 0; 19482 _flag_k = FK_TEST; 19483 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EC44; /* 0x2B04EC37: jne 0x2b04ec44 */ 19484 L_2B04EC39: 19485 edx = MEM32(0x2B0B513C); /* 0x2B04EC39: mov edx, dword ptr [0x2b0b513c] */ 19486 MEM32(ebp + (-0x24)) = edx; /* 0x2B04EC3F: mov dword ptr [ebp - 0x24], edx */ 19487 goto L_2B04EC47; /* 0x2B04EC42: jmp 0x2b04ec47 */ 19488 L_2B04EC44: 19489 MEM32(ebp + (-0x24)) = eax; /* 0x2B04EC44: mov dword ptr [ebp - 0x24], eax */ 19490 L_2B04EC47: 19491 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B04EC47: mov al, byte ptr [ebp - 0xd] */ 19492 PUSH32(esp, 0); /* 0x2B04EC4A: push 0 */ 19493 ecx = ebp + (-0x74); /* 0x2B04EC4C: lea ecx, [ebp - 0x74] */ 19494 MEM8(ebp + (-0x74)) = (uint8_t)(LO8(eax)); /* 0x2B04EC4F: mov byte ptr [ebp - 0x74], al */ 19495 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EC52: call dword ptr [0x2b0b514c] */ 19496 RECOMP_FLAGS_IN(); 19497 edi = MEM32(ebp + (-0x24)); /* 0x2B04EC58: mov edi, dword ptr [ebp - 0x24] */ 19498 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 19499 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EC5B: or ecx, 0xffffffff */ 19500 _cf = 0; 19501 _flag_k = FK_TEST; 19502 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19503 eax = 0; /* 0x2B04EC5E: xor eax, eax */ 19504 _cf = 0; 19505 _flag_k = FK_TEST; 19506 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; } /* 0x2B04EC60: repne scasb al, byte ptr es:[edi] */ 19507 ecx = ~ecx; /* 0x2B04EC62: not ecx */ 19508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19509 ecx = ecx - 1; /* 0x2B04EC64: dec ecx */ 19510 _flag_k = FK_DEC; 19511 PUSH32(esp, 1); /* 0x2B04EC65: push 1 */ 19512 MEM32(ebp + (-0x2C)) = ecx; /* 0x2B04EC67: mov dword ptr [ebp - 0x2c], ecx */ 19513 PUSH32(esp, ecx); /* 0x2B04EC6A: push ecx */ 19514 ecx = ebp + (-0x74); /* 0x2B04EC6B: lea ecx, [ebp - 0x74] */ 19515 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EC6E: call dword ptr [0x2b0b5154] */ 19516 RECOMP_FLAGS_IN(); 19517 /* test LO8(eax), LO8(eax) */ /* 0x2B04EC74: test al, al */ 19518 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19519 _cf = 0; 19520 _flag_k = FK_NARROW(FK_TEST, 24); 19521 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EC9E; /* 0x2B04EC76: je 0x2b04ec9e */ 19522 L_2B04EC78: 19523 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EC78: mov eax, dword ptr [ebp - 0x2c] */ 19524 edi = MEM32(ebp + (-0x70)); /* 0x2B04EC7B: mov edi, dword ptr [ebp - 0x70] */ 19525 esi = MEM32(ebp + (-0x24)); /* 0x2B04EC7E: mov esi, dword ptr [ebp - 0x24] */ 19526 ecx = eax; /* 0x2B04EC81: mov ecx, eax */ 19527 edx = ecx; /* 0x2B04EC83: mov edx, ecx */ 19528 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EC85: shr ecx, 2 */ 19529 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19530 ecx = ecx >> 2u; /* 0x2B04EC85: shr ecx, 2 */ 19531 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EC88: 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; } 19532 ecx = edx; /* 0x2B04EC8A: mov ecx, edx */ 19533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 19534 ecx = ecx & 3; /* 0x2B04EC8C: and ecx, 3 */ 19535 _cf = 0; 19536 _flag_k = FK_TEST; 19537 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EC8F: 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; } 19538 PUSH32(esp, eax); /* 0x2B04EC91: push eax */ 19539 ecx = ebp + (-0x74); /* 0x2B04EC92: lea ecx, [ebp - 0x74] */ 19540 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EC95: call dword ptr [0x2b0b5150] */ 19541 RECOMP_FLAGS_IN(); 19542 esi = MEM32(ebp + (-0x18)); /* 0x2B04EC9B: mov esi, dword ptr [ebp - 0x18] */ 19543 L_2B04EC9E: 19544 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19545 edi = 0; /* 0x2B04EC9E: xor edi, edi */ 19546 _cf = 0; 19547 _flag_k = FK_TEST; 19548 MEM32(ebp + (-0x64)) = edi; /* 0x2B04ECA0: mov dword ptr [ebp - 0x64], edi */ 19549 ecx = MEM32(0x2B0B515C); /* 0x2B04ECA3: mov ecx, dword ptr [0x2b0b515c] */ 19550 edx = MEM32(ecx); /* 0x2B04ECA9: mov edx, dword ptr [ecx] */ 19551 eax = MEM32(ebx); /* 0x2B04ECAB: mov eax, dword ptr [ebx] */ 19552 PUSH32(esp, edx); /* 0x2B04ECAD: push edx */ 19553 PUSH32(esp, edi); /* 0x2B04ECAE: push edi */ 19554 ecx = ebp + (-0x74); /* 0x2B04ECAF: lea ecx, [ebp - 0x74] */ 19555 PUSH32(esp, ecx); /* 0x2B04ECB2: push ecx */ 19556 ecx = eax + 0x14; /* 0x2B04ECB3: lea ecx, [eax + 0x14] */ 19557 MEM32(ebp + (-0x4)) = edi; /* 0x2B04ECB6: mov dword ptr [ebp - 4], edi */ 19558 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04ECB9: call dword ptr [0x2b0b5158] */ 19559 RECOMP_FLAGS_IN(); 19560 eax = MEM32(ebp + (-0x64)); /* 0x2B04ECBF: mov eax, dword ptr [ebp - 0x64] */ 19561 /* cmp eax, edi */ /* 0x2B04ECC2: cmp eax, edi */ 19562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 19563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19564 _flag_k = FK_CMP; 19565 MEM32(ebp + (-0x4)) = 1; /* 0x2B04ECC4: mov dword ptr [ebp - 4], 1 */ 19566 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECCB: je 0x2b04ecf2 */ 19567 L_2B04ECCD: 19568 edx = MEM32(eax + 0x2C); /* 0x2B04ECCD: mov edx, dword ptr [eax + 0x2c] */ 19569 edi = eax; /* 0x2B04ECD0: mov edi, eax */ 19570 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 19571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19572 eax = eax + 0x2Cu; /* 0x2B04ECD2: add eax, 0x2c */ 19573 _flag_k = FK_ADD; 19574 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 19575 edx = edx - 1; /* 0x2B04ECD5: dec edx */ 19576 _flag_k = FK_DEC; 19577 ecx = edx; /* 0x2B04ECD6: mov ecx, edx */ 19578 /* test ecx, ecx */ /* 0x2B04ECD8: test ecx, ecx */ 19579 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19580 _cf = 0; 19581 _flag_k = FK_TEST; 19582 MEM32(eax) = edx; /* 0x2B04ECDA: mov dword ptr [eax], edx */ 19583 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECDC: jne 0x2b04ecf2 */ 19584 L_2B04ECDE: 19585 /* test edi, edi */ /* 0x2B04ECDE: test edi, edi */ 19586 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 19587 _cf = 0; 19588 _flag_k = FK_TEST; 19589 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04ECF2; /* 0x2B04ECE0: je 0x2b04ecf2 */ 19590 L_2B04ECE2: 19591 ecx = edi; /* 0x2B04ECE2: mov ecx, edi */ 19592 RECOMP_ICALL(0x2B005B40u); /* 0x2B04ECE4: call 0x2b005b40 */ /* not lifted */ 19593 RECOMP_FLAGS_IN(); 19594 PUSH32(esp, edi); /* 0x2B04ECE9: push edi */ 19595 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04ECEA: call 0x2b0ab1ba */ /* not lifted */ 19596 RECOMP_FLAGS_IN(); 19597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19598 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19599 esp = esp + 4; /* 0x2B04ECEF: add esp, 4 */ 19600 _flag_k = FK_ADD; 19601 L_2B04ECF2: 19602 PUSH32(esp, 1); /* 0x2B04ECF2: push 1 */ 19603 ecx = ebp + (-0x74); /* 0x2B04ECF4: lea ecx, [ebp - 0x74] */ 19604 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04ECF7: mov dword ptr [ebp - 4], 0xffffffff */ 19605 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04ECFE: call dword ptr [0x2b0b514c] */ 19606 RECOMP_FLAGS_IN(); 19607 eax = MEM32(ebx); /* 0x2B04ED04: mov eax, dword ptr [ebx] */ 19608 edi = MEM32(ebp + (-0x20)); /* 0x2B04ED06: mov edi, dword ptr [ebp - 0x20] */ 19609 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04ED09: mov byte ptr [eax + 9], 1 */ 19610 L_2B04ED0D: 19611 eax = MEM32(ebp + (-0x30)); /* 0x2B04ED0D: mov eax, dword ptr [ebp - 0x30] */ 19612 ecx = MEM32(ebp + (-0x1C)); /* 0x2B04ED10: mov ecx, dword ptr [ebp - 0x1c] */ 19613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 19614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19615 eax = eax + 0xCu; /* 0x2B04ED13: add eax, 0xc */ 19616 _flag_k = FK_ADD; 19617 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19618 ecx = ecx + 1; /* 0x2B04ED16: inc ecx */ 19619 _flag_k = FK_INC; 19620 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 19621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19622 edi = edi + 0x30u; /* 0x2B04ED17: add edi, 0x30 */ 19623 _flag_k = FK_ADD; 19624 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 19625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19626 ebx = ebx + 0x10u; /* 0x2B04ED1A: add ebx, 0x10 */ 19627 _flag_k = FK_ADD; 19628 /* cmp ecx, 0xBu */ /* 0x2B04ED1D: cmp ecx, 0xb */ 19629 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 19630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19631 _flag_k = FK_CMP; 19632 MEM32(ebp + (-0x30)) = eax; /* 0x2B04ED20: mov dword ptr [ebp - 0x30], eax */ 19633 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B04ED23: mov dword ptr [ebp - 0x1c], ecx */ 19634 MEM32(ebp + (-0x20)) = edi; /* 0x2B04ED26: mov dword ptr [ebp - 0x20], edi */ 19635 RECOMP_BACKEDGE(); 19636 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EB1A; /* 0x2B04ED29: jl 0x2b04eb1a */ 19637 L_2B04ED2F: 19638 goto L_2B04ED5C; /* 0x2B04ED2F: jmp 0x2b04ed5c */ 19639 L_2B04ED31: 19640 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 19641 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 19642 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 19643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19644 _flag_k = FK_CMP; 19645 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 19646 L_2B04ED39: 19647 eax = edx; /* 0x2B04ED39: mov eax, edx */ 19648 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 19649 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19650 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 19651 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 19652 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 19653 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19655 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 19656 _flag_k = FK_CMP; 19657 L_2B04ED49: 19658 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 19659 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 19660 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 19661 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 19662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19663 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 19664 _flag_k = FK_ADD; 19665 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19666 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 19667 _flag_k = FK_DEC; 19668 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 19669 RECOMP_BACKEDGE(); 19670 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 19671 L_2B04ED5C: 19672 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 19673 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 19674 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 19675 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 19676 RECOMP_FLAGS_IN(); 19677 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 19678 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 19679 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19680 edi = 0; /* 0x2B04ED70: xor edi, edi */ 19681 _cf = 0; 19682 _flag_k = FK_TEST; 19683 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 19684 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19685 _cf = 0; 19686 _flag_k = FK_TEST; 19687 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 19688 L_2B04ED76: 19689 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 19690 L_2B04ED79: 19691 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 19692 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 19693 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 19694 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 19695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19696 _flag_k = FK_CMP; 19697 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 19698 L_2B04ED87: 19699 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 19700 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 19701 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 19702 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 19703 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 19704 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 19705 RECOMP_FLAGS_IN(); 19706 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 19707 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 19708 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 19709 _flag_k = FK_INC; 19710 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 19711 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19713 _flag_k = FK_CMP; 19714 RECOMP_BACKEDGE(); 19715 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 19716 L_2B04EDA1: 19717 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 19718 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 19719 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 19720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19721 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 19722 _flag_k = FK_ADD; 19723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 19724 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19725 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 19726 _flag_k = FK_ADD; 19727 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 19728 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 19729 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 19730 L_2B04EDBF: 19731 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 19732 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 19733 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 19734 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 19735 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 19736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19737 _flag_k = FK_CMP; 19738 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 19739 L_2B04EDD4: 19740 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 19741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 19742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19743 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 19744 _flag_k = FK_ADD; 19745 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 19746 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 19747 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 19748 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 19749 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 19750 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 19751 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 19752 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 19753 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 19754 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 19755 RECOMP_FLAGS_IN(); 19756 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 19757 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19758 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 19759 _cf = 0; 19760 _flag_k = FK_TEST; 19761 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 19762 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 19763 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 19764 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 19765 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 19766 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 19767 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 19768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 19769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19770 _flag_k = FK_CMP; 19771 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 19772 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 19773 L_2B04EE1E: 19774 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 19775 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 19776 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 19777 _cf = 0; 19778 _flag_k = FK_TEST; 19779 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 19780 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 19781 L_2B04EE28: 19782 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 19783 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 19784 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 19785 _cf = 0; 19786 _flag_k = FK_NARROW(FK_TEST, 24); 19787 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 19788 L_2B04EE2F: 19789 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 19790 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 19791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19792 _flag_k = FK_NARROW(FK_CMP, 24); 19793 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 19794 L_2B04EE34: 19795 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 19796 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 19797 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 19798 RECOMP_FLAGS_IN(); 19799 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 19800 L_2B04EE40: 19801 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 19802 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 19803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19804 _cf = 0; 19805 _flag_k = FK_TEST; 19806 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 19807 L_2B04EE46: 19808 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 19809 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 19810 L_2B04EE4D: 19811 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 19812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 19813 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19814 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 19815 _flag_k = FK_ADD; 19816 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 19817 L_2B04EE53: 19818 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 19819 L_2B04EE58: 19820 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 19821 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 19822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19823 _flag_k = FK_NARROW(FK_CMP, 24); 19824 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 19825 L_2B04EE5D: 19826 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 19827 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 19828 _flag_k = FK_INC; 19829 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 19830 L_2B04EE63: 19831 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 19832 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 19833 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 19834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19835 _flag_k = FK_CMP; 19836 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 19837 L_2B04EE6A: 19838 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 19839 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 19840 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19841 _cf = 0; 19842 _flag_k = FK_TEST; 19843 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 19844 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 19845 L_2B04EE74: 19846 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 19847 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 19848 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19849 _cf = 0; 19850 _flag_k = FK_NARROW(FK_TEST, 24); 19851 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 19852 L_2B04EE7B: 19853 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 19854 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 19855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19856 _flag_k = FK_NARROW(FK_CMP, 24); 19857 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 19858 L_2B04EE7F: 19859 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 19860 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 19861 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 19862 RECOMP_FLAGS_IN(); 19863 L_2B04EE88: 19864 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 19865 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 19866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19867 _cf = 0; 19868 _flag_k = FK_TEST; 19869 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 19870 L_2B04EE8E: 19871 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 19872 L_2B04EE92: 19873 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 19874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 19875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19876 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 19877 _flag_k = FK_ADD; 19878 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 19879 L_2B04EE98: 19880 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 19881 L_2B04EE9D: 19882 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 19883 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 19884 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 19885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 19886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19887 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 19888 _flag_k = FK_CMP; 19889 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 19890 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19892 _flag_k = FK_CMP; 19893 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 19894 L_2B04EEAF: 19895 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 19896 RECOMP_FLAGS_IN(); 19897 L_2B04EEB5: 19898 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 19899 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 19900 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 19901 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 19902 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 19903 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 19904 RECOMP_FLAGS_IN(); 19905 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 19906 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19907 _cf = 0; 19908 _flag_k = FK_NARROW(FK_TEST, 24); 19909 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 19910 L_2B04EECB: 19911 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 19912 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 19913 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 19914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 19915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19916 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 19917 _flag_k = FK_ADD; 19918 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 19919 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 19920 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 19921 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 19922 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 19923 L_2B04EEE4: 19924 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 19925 L_2B04EEE7: 19926 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 19927 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 19928 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 19929 _flag_k = FK_INC; 19930 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 19931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 19932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19933 _flag_k = FK_CMP; 19934 RECOMP_BACKEDGE(); 19935 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 19936 L_2B04EEF3: 19937 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 19938 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 19939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19940 _cf = 0; 19941 _flag_k = FK_TEST; 19942 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 19943 L_2B04EEFA: 19944 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 19945 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 19946 L_2B04EF02: 19947 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 19948 L_2B04EF05: 19949 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 19950 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 19951 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19952 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 19953 _cf = 0; 19954 _flag_k = FK_TEST; 19955 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 19956 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 19957 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 19958 edi = esi; /* 0x2B04EF16: mov edi, esi */ 19959 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 19960 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 19961 _cf = 0; 19962 _flag_k = FK_TEST; 19963 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 19964 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 19965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19966 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 19967 _flag_k = FK_DEC; 19968 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 19969 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 19970 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 19971 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 19972 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 19973 RECOMP_FLAGS_IN(); 19974 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 19975 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19976 _cf = 0; 19977 _flag_k = FK_NARROW(FK_TEST, 24); 19978 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 19979 L_2B04EF32: 19980 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 19981 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 19982 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 19983 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 19984 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19985 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 19986 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 19987 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 19988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 19989 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 19990 _cf = 0; 19991 _flag_k = FK_TEST; 19992 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 19993 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 19994 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 19995 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 19996 RECOMP_FLAGS_IN(); 19997 L_2B04EF4F: 19998 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 19999 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 20000 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 20001 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 20002 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 20003 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 20004 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 20005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20006 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 20007 _flag_k = FK_ADD; 20008 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 20009 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 20010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 20011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20012 _flag_k = FK_CMP; 20013 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 20014 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 20015 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 20016 L_2B04EF76: 20017 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 20018 L_2B04EF78: 20019 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 20020 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 20021 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 20022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20023 _flag_k = FK_CMP; 20024 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 20025 L_2B04EF7F: 20026 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 20027 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 20028 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 20029 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 20030 RECOMP_FLAGS_IN(); 20031 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 20032 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 20033 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 20034 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 20035 RECOMP_FLAGS_IN(); 20036 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 20037 L_2B04EF9A: 20038 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 20039 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 20040 _cf = 0; 20041 _flag_k = FK_TEST; 20042 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 20043 L_2B04EF9E: 20044 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 20045 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 20046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20047 _flag_k = FK_CMP; 20048 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 20049 L_2B04EFA2: 20050 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 20051 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 20052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20053 _cf = 0; 20054 _flag_k = FK_TEST; 20055 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 20056 L_2B04EFA9: 20057 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 20058 L_2B04EFAE: 20059 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 20060 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 20061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20062 _flag_k = FK_NARROW(FK_CMP, 24); 20063 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 20064 L_2B04EFB4: 20065 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 20066 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 20067 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 20068 RECOMP_FLAGS_IN(); 20069 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 20070 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 20071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20072 _cf = 0; 20073 _flag_k = FK_TEST; 20074 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 20075 L_2B04EFC5: 20076 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 20077 L_2B04EFCA: 20078 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 20079 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 20080 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 20081 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 20082 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 20083 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 20084 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 20085 _flag_k = FK_NARROW(FK_INC, 24); 20086 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 20087 L_2B04EFDE: 20088 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 20089 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 20090 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 20091 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 20092 RECOMP_FLAGS_IN(); 20093 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 20094 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 20095 _cf = 0; 20096 _flag_k = FK_NARROW(FK_TEST, 24); 20097 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 20098 L_2B04EFED: 20099 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 20100 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 20101 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 20102 _cf = 0; 20103 _flag_k = FK_TEST; 20104 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 20105 L_2B04EFF4: 20106 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 20107 L_2B04EFFA: 20108 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 20109 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 20110 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 20111 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 20112 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 20113 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20114 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 20115 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 20116 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 20117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 20118 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 20119 _cf = 0; 20120 _flag_k = FK_TEST; 20121 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 20122 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 20123 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 20124 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 20125 RECOMP_FLAGS_IN(); 20126 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 20127 L_2B04F01C: 20128 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 20129 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20130 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 20131 _cf = 0; 20132 _flag_k = FK_TEST; 20133 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 20134 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 20135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20136 _flag_k = FK_CMP; 20137 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 20138 L_2B04F025: 20139 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 20140 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 20141 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 20142 edx = edx - 1; /* 0x2B04F02B: dec edx */ 20143 _flag_k = FK_DEC; 20144 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 20145 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 20146 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 20147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20148 _flag_k = FK_CMP; 20149 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 20150 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 20151 L_2B04F034: 20152 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 20153 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 20154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20155 _flag_k = FK_CMP; 20156 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 20157 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 20158 L_2B04F03B: 20159 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 20160 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 20161 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 20162 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 20163 RECOMP_FLAGS_IN(); 20164 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 20165 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 20166 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 20167 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 20168 RECOMP_FLAGS_IN(); 20169 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 20170 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 20171 RECOMP_FLAGS_IN(); 20172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20174 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 20175 _flag_k = FK_ADD; 20176 L_2B04F062: 20177 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 20178 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 20179 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 20180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20181 _flag_k = FK_CMP; 20182 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 20183 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 20184 L_2B04F06D: 20185 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 20186 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20187 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 20188 _flag_k = FK_DEC; 20189 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 20190 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 20191 _cf = 0; 20192 _flag_k = FK_NARROW(FK_TEST, 24); 20193 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 20194 L_2B04F075: 20195 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 20196 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 20197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20198 _flag_k = FK_NARROW(FK_CMP, 24); 20199 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 20200 L_2B04F079: 20201 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 20202 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 20203 _flag_k = FK_NARROW(FK_DEC, 24); 20204 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 20205 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 20206 L_2B04F07F: 20207 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 20208 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 20209 RECOMP_FLAGS_IN(); 20210 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20212 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 20213 _flag_k = FK_ADD; 20214 L_2B04F088: 20215 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 20216 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 20217 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 20218 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 20219 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 20220 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 20221 _cf = 0; 20222 _flag_k = FK_NARROW(FK_TEST, 24); 20223 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 20224 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 20225 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 20226 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 20227 L_2B04F0A2: 20228 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 20229 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 20230 L_2B04F0A9: 20231 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 20232 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 20233 L_2B04F0AD: 20234 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 20235 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 20236 RECOMP_FLAGS_IN(); 20237 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 20238 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 20239 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 20240 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 20241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 20242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20243 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 20244 _flag_k = FK_ADD; 20245 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 20246 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 20247 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 20248 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 20249 RECOMP_FLAGS_IN(); 20250 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 20251 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 20252 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 20253 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 20254 _cf = 0; 20255 _flag_k = FK_NARROW(FK_TEST, 24); 20256 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 20257 L_2B04F0DB: 20258 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 20259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 20260 _cf = 0; 20261 _flag_k = FK_TEST; 20262 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 20263 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 20264 L_2B04F0E4: 20265 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 20266 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 20267 L_2B04F0E8: 20268 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 20269 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 20270 L_2B04F0EC: 20271 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 20272 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 20273 L_2B04F0EF: 20274 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 20275 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 20276 RECOMP_FLAGS_IN(); 20277 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 20278 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 20279 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 20280 RECOMP_FLAGS_IN(); 20281 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 20282 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 20283 RECOMP_FLAGS_IN(); 20284 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 20285 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 20286 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 20287 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 20288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 20289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20290 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 20291 _flag_k = FK_ADD; 20292 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 20293 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 20294 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 20295 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 20296 RECOMP_FLAGS_IN(); 20297 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 20298 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 20299 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 20300 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 20301 _cf = 0; 20302 _flag_k = FK_NARROW(FK_TEST, 24); 20303 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 20304 L_2B04F12F: 20305 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 20306 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 20307 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 20308 L_2B04F136: 20309 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 20310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 20311 _cf = 0; 20312 _flag_k = FK_TEST; 20313 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 20314 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 20315 L_2B04F140: 20316 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 20317 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 20318 L_2B04F144: 20319 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 20320 L_2B04F146: 20321 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 20322 RECOMP_FLAGS_IN(); 20323 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 20324 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 20325 RECOMP_FLAGS_IN(); 20326 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 20327 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 20328 RECOMP_FLAGS_IN(); 20329 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 20330 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 20331 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 20332 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 20333 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20334 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 20335 _flag_k = FK_ADD; 20336 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 20337 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20338 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 20339 _flag_k = FK_ADD; 20340 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 20341 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 20342 edi = edi + 1; /* 0x2B04F168: inc edi */ 20343 _flag_k = FK_INC; 20344 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20345 esi = 0; /* 0x2B04F169: xor esi, esi */ 20346 _cf = 0; 20347 _flag_k = FK_TEST; 20348 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 20349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 20350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20351 _flag_k = FK_CMP; 20352 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 20353 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 20354 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 20355 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 20356 L_2B04F17C: 20357 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 20358 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 20359 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 20360 _cf = 0; 20361 _flag_k = FK_NARROW(FK_TEST, 24); 20362 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 20363 L_2B04F183: 20364 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 20365 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 20366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20367 _flag_k = FK_NARROW(FK_CMP, 24); 20368 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 20369 L_2B04F188: 20370 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 20371 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 20372 _flag_k = FK_NARROW(FK_DEC, 24); 20373 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 20374 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 20375 L_2B04F18F: 20376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 20377 eax = eax - 1; /* 0x2B04F18F: dec eax */ 20378 _flag_k = FK_DEC; 20379 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 20380 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 20381 RECOMP_FLAGS_IN(); 20382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20384 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 20385 _flag_k = FK_ADD; 20386 L_2B04F199: 20387 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 20388 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 20389 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 20390 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 20391 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 20392 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 20393 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 20394 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 20395 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 20396 RECOMP_FLAGS_IN(); 20397 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 20398 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 20399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20400 _flag_k = FK_CMP; 20401 RECOMP_BACKEDGE(); 20402 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 20403 L_2B04F1BC: 20404 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 20405 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 20406 L_2B04F1C1: 20407 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 20408 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 20409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 20410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20411 _flag_k = FK_CMP; 20412 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 20413 L_2B04F1C9: 20414 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 20415 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 20416 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 20417 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 20418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20419 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 20420 _flag_k = FK_CMP; 20421 L_2B04F1D7: 20422 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 20423 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 20424 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 20425 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 20426 RECOMP_FLAGS_IN(); 20427 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 20428 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 20429 RECOMP_FLAGS_IN(); 20430 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 20431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20432 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 20433 _flag_k = FK_ADD; 20434 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 20435 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 20436 _flag_k = FK_DEC; 20437 RECOMP_BACKEDGE(); 20438 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 20439 L_2B04F1F5: 20440 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 20441 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 20442 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 20443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 20444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20445 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 20446 _flag_k = FK_ADD; 20447 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 20448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20449 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 20450 _flag_k = FK_ADD; 20451 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 20452 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 20453 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 20454 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 20455 RECOMP_FLAGS_IN(); 20456 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 20457 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 20458 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 20459 RECOMP_FLAGS_IN(); 20460 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 20461 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 20462 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 20463 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 20464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20465 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 20466 _flag_k = FK_ADD; 20467 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 20468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 20469 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20470 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 20471 _flag_k = FK_ADD; 20472 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 20473 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 20474 RECOMP_FLAGS_IN(); 20475 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 20476 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 20477 RECOMP_FLAGS_IN(); 20478 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 20479 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 20480 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 20481 _cf = 0; 20482 _flag_k = FK_NARROW(FK_TEST, 24); 20483 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 20484 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 20485 L_2B04F246: 20486 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 20487 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 20488 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 20489 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 20490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 20491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20492 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 20493 _flag_k = FK_ADD; 20494 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 20495 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 20496 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 20497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20498 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 20499 _flag_k = FK_ADD; 20500 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 20501 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 20502 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 20503 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 20504 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 20505 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 20506 RECOMP_FLAGS_IN(); 20507 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 20508 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 20509 RECOMP_FLAGS_IN(); 20510 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 20511 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 20512 RECOMP_FLAGS_IN(); 20513 L_2B04F283: 20514 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 20515 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 20516 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 20517 _cf = 0; 20518 _flag_k = FK_NARROW(FK_TEST, 24); 20519 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 20520 L_2B04F28D: 20521 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 20522 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 20523 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 20524 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 20525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 20526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20527 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 20528 _flag_k = FK_ADD; 20529 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 20530 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 20531 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 20532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20533 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 20534 _flag_k = FK_ADD; 20535 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 20536 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 20537 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 20538 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 20539 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 20540 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 20541 RECOMP_FLAGS_IN(); 20542 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 20543 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 20544 RECOMP_FLAGS_IN(); 20545 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 20546 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 20547 RECOMP_FLAGS_IN(); 20548 L_2B04F2D0: 20549 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 20550 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 20551 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 20552 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 20553 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 20554 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 20555 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 20556 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 20557 RECOMP_REGS_OUT(); 20558 } 20559 20560 void sub_2B04ED31(void) { 20561 int _fpu_cmp = 0; 20562 uint32_t _cf = 0; 20563 int _df = 1; 20564 uint32_t _flag_k = FK_NONE; 20565 uint32_t _flag_a = 0, _flag_b = 0; 20566 uint32_t _itail_tgt = 0; 20567 RECOMP_REGS_LOCALS 20568 RECOMP_ENTER(0x2B04ED31u); 20569 20570 L_2B04ED31: 20571 edx = MEM32(ebp + (-0x1C)); /* 0x2B04ED31: mov edx, dword ptr [ebp - 0x1c] */ 20572 /* cmp edx, 0xBu */ /* 0x2B04ED34: cmp edx, 0xb */ 20573 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 20574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20575 _flag_k = FK_CMP; 20576 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04ED5C; /* 0x2B04ED37: jge 0x2b04ed5c */ 20577 L_2B04ED39: 20578 eax = edx; /* 0x2B04ED39: mov eax, edx */ 20579 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B04ED3B: shl eax, 4 */ 20580 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20581 eax = eax << 4u; /* 0x2B04ED3B: shl eax, 4 */ 20582 ecx = 0xBu; /* 0x2B04ED3E: mov ecx, 0xb */ 20583 eax = eax + esi + 0x5C; /* 0x2B04ED43: lea eax, [eax + esi + 0x5c] */ 20584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 20585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20586 ecx = ecx - edx; /* 0x2B04ED47: sub ecx, edx */ 20587 _flag_k = FK_CMP; 20588 L_2B04ED49: 20589 edx = MEM32(eax + (-0x4)); /* 0x2B04ED49: mov edx, dword ptr [eax - 4] */ 20590 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED4C: mov byte ptr [edx + 8], 0 */ 20591 edx = MEM32(eax); /* 0x2B04ED50: mov edx, dword ptr [eax] */ 20592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 20593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20594 eax = eax + 0x10u; /* 0x2B04ED52: add eax, 0x10 */ 20595 _flag_k = FK_ADD; 20596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20597 ecx = ecx - 1; /* 0x2B04ED55: dec ecx */ 20598 _flag_k = FK_DEC; 20599 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04ED56: mov byte ptr [edx + 8], 0 */ 20600 RECOMP_BACKEDGE(); 20601 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04ED49; /* 0x2B04ED5A: jne 0x2b04ed49 */ 20602 L_2B04ED5C: 20603 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 20604 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 20605 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 20606 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 20607 RECOMP_FLAGS_IN(); 20608 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 20609 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 20610 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20611 edi = 0; /* 0x2B04ED70: xor edi, edi */ 20612 _cf = 0; 20613 _flag_k = FK_TEST; 20614 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 20615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20616 _cf = 0; 20617 _flag_k = FK_TEST; 20618 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 20619 L_2B04ED76: 20620 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 20621 L_2B04ED79: 20622 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 20623 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 20624 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 20625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 20626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20627 _flag_k = FK_CMP; 20628 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 20629 L_2B04ED87: 20630 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 20631 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 20632 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 20633 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 20634 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 20635 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 20636 RECOMP_FLAGS_IN(); 20637 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 20638 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 20639 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 20640 _flag_k = FK_INC; 20641 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 20642 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20644 _flag_k = FK_CMP; 20645 RECOMP_BACKEDGE(); 20646 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 20647 L_2B04EDA1: 20648 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 20649 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 20650 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 20651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20652 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 20653 _flag_k = FK_ADD; 20654 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 20655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20656 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 20657 _flag_k = FK_ADD; 20658 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 20659 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 20660 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 20661 L_2B04EDBF: 20662 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 20663 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 20664 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 20665 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 20666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 20667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20668 _flag_k = FK_CMP; 20669 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 20670 L_2B04EDD4: 20671 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 20672 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 20673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20674 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 20675 _flag_k = FK_ADD; 20676 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 20677 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 20678 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 20679 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 20680 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 20681 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 20682 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 20683 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 20684 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 20685 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 20686 RECOMP_FLAGS_IN(); 20687 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 20688 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20689 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 20690 _cf = 0; 20691 _flag_k = FK_TEST; 20692 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 20693 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 20694 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 20695 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 20696 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 20697 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 20698 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 20699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 20700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20701 _flag_k = FK_CMP; 20702 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 20703 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 20704 L_2B04EE1E: 20705 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 20706 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 20707 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 20708 _cf = 0; 20709 _flag_k = FK_TEST; 20710 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 20711 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 20712 L_2B04EE28: 20713 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 20714 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 20715 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 20716 _cf = 0; 20717 _flag_k = FK_NARROW(FK_TEST, 24); 20718 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 20719 L_2B04EE2F: 20720 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 20721 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 20722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20723 _flag_k = FK_NARROW(FK_CMP, 24); 20724 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 20725 L_2B04EE34: 20726 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 20727 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 20728 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 20729 RECOMP_FLAGS_IN(); 20730 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 20731 L_2B04EE40: 20732 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 20733 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 20734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20735 _cf = 0; 20736 _flag_k = FK_TEST; 20737 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 20738 L_2B04EE46: 20739 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 20740 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 20741 L_2B04EE4D: 20742 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 20743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 20744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20745 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 20746 _flag_k = FK_ADD; 20747 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 20748 L_2B04EE53: 20749 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 20750 L_2B04EE58: 20751 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 20752 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 20753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20754 _flag_k = FK_NARROW(FK_CMP, 24); 20755 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 20756 L_2B04EE5D: 20757 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 20758 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 20759 _flag_k = FK_INC; 20760 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 20761 L_2B04EE63: 20762 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 20763 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 20764 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 20765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20766 _flag_k = FK_CMP; 20767 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 20768 L_2B04EE6A: 20769 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 20770 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 20771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20772 _cf = 0; 20773 _flag_k = FK_TEST; 20774 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 20775 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 20776 L_2B04EE74: 20777 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 20778 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 20779 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 20780 _cf = 0; 20781 _flag_k = FK_NARROW(FK_TEST, 24); 20782 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 20783 L_2B04EE7B: 20784 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 20785 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 20786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20787 _flag_k = FK_NARROW(FK_CMP, 24); 20788 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 20789 L_2B04EE7F: 20790 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 20791 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 20792 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 20793 RECOMP_FLAGS_IN(); 20794 L_2B04EE88: 20795 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 20796 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 20797 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20798 _cf = 0; 20799 _flag_k = FK_TEST; 20800 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 20801 L_2B04EE8E: 20802 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 20803 L_2B04EE92: 20804 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 20805 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 20806 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20807 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 20808 _flag_k = FK_ADD; 20809 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 20810 L_2B04EE98: 20811 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 20812 L_2B04EE9D: 20813 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 20814 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 20815 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 20816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 20817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20818 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 20819 _flag_k = FK_CMP; 20820 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 20821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 20822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20823 _flag_k = FK_CMP; 20824 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 20825 L_2B04EEAF: 20826 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 20827 RECOMP_FLAGS_IN(); 20828 L_2B04EEB5: 20829 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 20830 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 20831 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 20832 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 20833 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 20834 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 20835 RECOMP_FLAGS_IN(); 20836 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 20837 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 20838 _cf = 0; 20839 _flag_k = FK_NARROW(FK_TEST, 24); 20840 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 20841 L_2B04EECB: 20842 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 20843 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 20844 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 20845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 20846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20847 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 20848 _flag_k = FK_ADD; 20849 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 20850 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 20851 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 20852 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 20853 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 20854 L_2B04EEE4: 20855 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 20856 L_2B04EEE7: 20857 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 20858 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 20859 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 20860 _flag_k = FK_INC; 20861 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 20862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 20863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20864 _flag_k = FK_CMP; 20865 RECOMP_BACKEDGE(); 20866 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 20867 L_2B04EEF3: 20868 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 20869 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 20870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20871 _cf = 0; 20872 _flag_k = FK_TEST; 20873 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 20874 L_2B04EEFA: 20875 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 20876 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 20877 L_2B04EF02: 20878 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 20879 L_2B04EF05: 20880 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 20881 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 20882 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20883 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 20884 _cf = 0; 20885 _flag_k = FK_TEST; 20886 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 20887 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 20888 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 20889 edi = esi; /* 0x2B04EF16: mov edi, esi */ 20890 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 20891 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 20892 _cf = 0; 20893 _flag_k = FK_TEST; 20894 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 20895 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 20896 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20897 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 20898 _flag_k = FK_DEC; 20899 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 20900 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 20901 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 20902 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 20903 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 20904 RECOMP_FLAGS_IN(); 20905 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 20906 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 20907 _cf = 0; 20908 _flag_k = FK_NARROW(FK_TEST, 24); 20909 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 20910 L_2B04EF32: 20911 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 20912 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 20913 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 20914 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 20915 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20916 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 20917 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 20918 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 20919 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 20920 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 20921 _cf = 0; 20922 _flag_k = FK_TEST; 20923 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 20924 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 20925 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 20926 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 20927 RECOMP_FLAGS_IN(); 20928 L_2B04EF4F: 20929 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 20930 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 20931 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 20932 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 20933 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 20934 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 20935 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 20936 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20937 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 20938 _flag_k = FK_ADD; 20939 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 20940 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 20941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 20942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20943 _flag_k = FK_CMP; 20944 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 20945 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 20946 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 20947 L_2B04EF76: 20948 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 20949 L_2B04EF78: 20950 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 20951 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 20952 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 20953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20954 _flag_k = FK_CMP; 20955 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 20956 L_2B04EF7F: 20957 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 20958 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 20959 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 20960 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 20961 RECOMP_FLAGS_IN(); 20962 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 20963 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 20964 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 20965 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 20966 RECOMP_FLAGS_IN(); 20967 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 20968 L_2B04EF9A: 20969 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 20970 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 20971 _cf = 0; 20972 _flag_k = FK_TEST; 20973 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 20974 L_2B04EF9E: 20975 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 20976 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 20977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20978 _flag_k = FK_CMP; 20979 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 20980 L_2B04EFA2: 20981 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 20982 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 20983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20984 _cf = 0; 20985 _flag_k = FK_TEST; 20986 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 20987 L_2B04EFA9: 20988 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 20989 L_2B04EFAE: 20990 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 20991 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 20992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20993 _flag_k = FK_NARROW(FK_CMP, 24); 20994 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 20995 L_2B04EFB4: 20996 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 20997 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 20998 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 20999 RECOMP_FLAGS_IN(); 21000 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 21001 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 21002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21003 _cf = 0; 21004 _flag_k = FK_TEST; 21005 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 21006 L_2B04EFC5: 21007 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 21008 L_2B04EFCA: 21009 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 21010 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 21011 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 21012 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 21013 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 21014 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 21015 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 21016 _flag_k = FK_NARROW(FK_INC, 24); 21017 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 21018 L_2B04EFDE: 21019 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 21020 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 21021 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 21022 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 21023 RECOMP_FLAGS_IN(); 21024 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 21025 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21026 _cf = 0; 21027 _flag_k = FK_NARROW(FK_TEST, 24); 21028 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 21029 L_2B04EFED: 21030 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 21031 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 21032 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 21033 _cf = 0; 21034 _flag_k = FK_TEST; 21035 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 21036 L_2B04EFF4: 21037 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 21038 L_2B04EFFA: 21039 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 21040 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 21041 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 21042 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 21043 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 21044 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21045 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 21046 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 21047 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 21048 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 21049 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 21050 _cf = 0; 21051 _flag_k = FK_TEST; 21052 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 21053 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 21054 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 21055 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 21056 RECOMP_FLAGS_IN(); 21057 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 21058 L_2B04F01C: 21059 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 21060 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21061 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 21062 _cf = 0; 21063 _flag_k = FK_TEST; 21064 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 21065 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 21066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21067 _flag_k = FK_CMP; 21068 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 21069 L_2B04F025: 21070 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 21071 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 21072 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 21073 edx = edx - 1; /* 0x2B04F02B: dec edx */ 21074 _flag_k = FK_DEC; 21075 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 21076 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 21077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 21078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21079 _flag_k = FK_CMP; 21080 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 21081 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 21082 L_2B04F034: 21083 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 21084 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 21085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21086 _flag_k = FK_CMP; 21087 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 21088 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 21089 L_2B04F03B: 21090 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 21091 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 21092 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 21093 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 21094 RECOMP_FLAGS_IN(); 21095 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 21096 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 21097 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 21098 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 21099 RECOMP_FLAGS_IN(); 21100 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 21101 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 21102 RECOMP_FLAGS_IN(); 21103 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 21104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21105 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 21106 _flag_k = FK_ADD; 21107 L_2B04F062: 21108 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 21109 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 21110 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 21111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21112 _flag_k = FK_CMP; 21113 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 21114 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 21115 L_2B04F06D: 21116 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 21117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 21118 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 21119 _flag_k = FK_DEC; 21120 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 21121 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21122 _cf = 0; 21123 _flag_k = FK_NARROW(FK_TEST, 24); 21124 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 21125 L_2B04F075: 21126 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 21127 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 21128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21129 _flag_k = FK_NARROW(FK_CMP, 24); 21130 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 21131 L_2B04F079: 21132 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 21133 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 21134 _flag_k = FK_NARROW(FK_DEC, 24); 21135 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 21136 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 21137 L_2B04F07F: 21138 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 21139 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 21140 RECOMP_FLAGS_IN(); 21141 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 21142 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21143 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 21144 _flag_k = FK_ADD; 21145 L_2B04F088: 21146 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 21147 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 21148 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 21149 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 21150 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 21151 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 21152 _cf = 0; 21153 _flag_k = FK_NARROW(FK_TEST, 24); 21154 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 21155 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 21156 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 21157 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 21158 L_2B04F0A2: 21159 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 21160 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 21161 L_2B04F0A9: 21162 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 21163 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 21164 L_2B04F0AD: 21165 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 21166 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 21167 RECOMP_FLAGS_IN(); 21168 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 21169 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 21170 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 21171 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 21172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 21173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21174 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 21175 _flag_k = FK_ADD; 21176 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 21177 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 21178 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 21179 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 21180 RECOMP_FLAGS_IN(); 21181 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 21182 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 21183 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 21184 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 21185 _cf = 0; 21186 _flag_k = FK_NARROW(FK_TEST, 24); 21187 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 21188 L_2B04F0DB: 21189 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 21190 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 21191 _cf = 0; 21192 _flag_k = FK_TEST; 21193 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 21194 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 21195 L_2B04F0E4: 21196 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 21197 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 21198 L_2B04F0E8: 21199 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 21200 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 21201 L_2B04F0EC: 21202 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 21203 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 21204 L_2B04F0EF: 21205 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 21206 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 21207 RECOMP_FLAGS_IN(); 21208 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 21209 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 21210 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 21211 RECOMP_FLAGS_IN(); 21212 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 21213 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 21214 RECOMP_FLAGS_IN(); 21215 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 21216 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 21217 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 21218 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 21219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 21220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21221 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 21222 _flag_k = FK_ADD; 21223 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 21224 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 21225 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 21226 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 21227 RECOMP_FLAGS_IN(); 21228 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 21229 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 21230 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 21231 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 21232 _cf = 0; 21233 _flag_k = FK_NARROW(FK_TEST, 24); 21234 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 21235 L_2B04F12F: 21236 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 21237 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 21238 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 21239 L_2B04F136: 21240 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 21241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 21242 _cf = 0; 21243 _flag_k = FK_TEST; 21244 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 21245 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 21246 L_2B04F140: 21247 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 21248 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 21249 L_2B04F144: 21250 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 21251 L_2B04F146: 21252 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 21253 RECOMP_FLAGS_IN(); 21254 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 21255 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 21256 RECOMP_FLAGS_IN(); 21257 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 21258 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 21259 RECOMP_FLAGS_IN(); 21260 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 21261 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 21262 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 21263 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 21264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21265 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 21266 _flag_k = FK_ADD; 21267 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 21268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21269 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 21270 _flag_k = FK_ADD; 21271 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 21272 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 21273 edi = edi + 1; /* 0x2B04F168: inc edi */ 21274 _flag_k = FK_INC; 21275 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21276 esi = 0; /* 0x2B04F169: xor esi, esi */ 21277 _cf = 0; 21278 _flag_k = FK_TEST; 21279 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 21280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 21281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21282 _flag_k = FK_CMP; 21283 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 21284 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 21285 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 21286 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 21287 L_2B04F17C: 21288 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 21289 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 21290 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 21291 _cf = 0; 21292 _flag_k = FK_NARROW(FK_TEST, 24); 21293 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 21294 L_2B04F183: 21295 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 21296 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 21297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21298 _flag_k = FK_NARROW(FK_CMP, 24); 21299 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 21300 L_2B04F188: 21301 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 21302 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 21303 _flag_k = FK_NARROW(FK_DEC, 24); 21304 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 21305 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 21306 L_2B04F18F: 21307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 21308 eax = eax - 1; /* 0x2B04F18F: dec eax */ 21309 _flag_k = FK_DEC; 21310 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 21311 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 21312 RECOMP_FLAGS_IN(); 21313 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 21314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21315 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 21316 _flag_k = FK_ADD; 21317 L_2B04F199: 21318 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 21319 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 21320 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 21321 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 21322 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 21323 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 21324 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 21325 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 21326 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 21327 RECOMP_FLAGS_IN(); 21328 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 21329 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 21330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21331 _flag_k = FK_CMP; 21332 RECOMP_BACKEDGE(); 21333 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 21334 L_2B04F1BC: 21335 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 21336 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 21337 L_2B04F1C1: 21338 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 21339 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 21340 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 21341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21342 _flag_k = FK_CMP; 21343 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 21344 L_2B04F1C9: 21345 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 21346 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 21347 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 21348 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 21349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21350 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 21351 _flag_k = FK_CMP; 21352 L_2B04F1D7: 21353 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 21354 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 21355 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 21356 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 21357 RECOMP_FLAGS_IN(); 21358 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 21359 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 21360 RECOMP_FLAGS_IN(); 21361 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 21362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21363 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 21364 _flag_k = FK_ADD; 21365 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 21366 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 21367 _flag_k = FK_DEC; 21368 RECOMP_BACKEDGE(); 21369 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 21370 L_2B04F1F5: 21371 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 21372 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 21373 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 21374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 21375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21376 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 21377 _flag_k = FK_ADD; 21378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 21379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21380 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 21381 _flag_k = FK_ADD; 21382 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 21383 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 21384 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 21385 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 21386 RECOMP_FLAGS_IN(); 21387 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 21388 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 21389 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 21390 RECOMP_FLAGS_IN(); 21391 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 21392 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 21393 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 21394 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 21395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21396 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 21397 _flag_k = FK_ADD; 21398 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 21399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 21400 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21401 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 21402 _flag_k = FK_ADD; 21403 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 21404 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 21405 RECOMP_FLAGS_IN(); 21406 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 21407 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 21408 RECOMP_FLAGS_IN(); 21409 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 21410 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 21411 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21412 _cf = 0; 21413 _flag_k = FK_NARROW(FK_TEST, 24); 21414 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 21415 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 21416 L_2B04F246: 21417 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 21418 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 21419 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 21420 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 21421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 21422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21423 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 21424 _flag_k = FK_ADD; 21425 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 21426 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 21427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 21428 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21429 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 21430 _flag_k = FK_ADD; 21431 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 21432 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 21433 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 21434 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 21435 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 21436 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 21437 RECOMP_FLAGS_IN(); 21438 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 21439 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 21440 RECOMP_FLAGS_IN(); 21441 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 21442 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 21443 RECOMP_FLAGS_IN(); 21444 L_2B04F283: 21445 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 21446 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 21447 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21448 _cf = 0; 21449 _flag_k = FK_NARROW(FK_TEST, 24); 21450 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 21451 L_2B04F28D: 21452 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 21453 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 21454 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 21455 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 21456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 21457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21458 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 21459 _flag_k = FK_ADD; 21460 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 21461 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 21462 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 21463 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21464 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 21465 _flag_k = FK_ADD; 21466 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 21467 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 21468 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 21469 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 21470 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 21471 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 21472 RECOMP_FLAGS_IN(); 21473 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 21474 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 21475 RECOMP_FLAGS_IN(); 21476 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 21477 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 21478 RECOMP_FLAGS_IN(); 21479 L_2B04F2D0: 21480 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 21481 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 21482 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 21483 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 21484 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 21485 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 21486 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 21487 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 21488 RECOMP_REGS_OUT(); 21489 } 21490 21491 void sub_2B04ED5C(void) { 21492 int _fpu_cmp = 0; 21493 uint32_t _cf = 0; 21494 int _df = 1; 21495 uint32_t _flag_k = FK_NONE; 21496 uint32_t _flag_a = 0, _flag_b = 0; 21497 uint32_t _itail_tgt = 0; 21498 RECOMP_REGS_LOCALS 21499 RECOMP_ENTER(0x2B04ED5Cu); 21500 21501 L_2B04ED5C: 21502 ecx = ebp + (-0x28); /* 0x2B04ED5C: lea ecx, [ebp - 0x28] */ 21503 PUSH32(esp, ecx); /* 0x2B04ED5F: push ecx */ 21504 ecx = esi; /* 0x2B04ED60: mov ecx, esi */ 21505 RECOMP_ICALL(0x2B0511D0u); /* 0x2B04ED62: call 0x2b0511d0 */ /* not lifted */ 21506 RECOMP_FLAGS_IN(); 21507 MEM32(ebp + (-0x14)) = eax; /* 0x2B04ED67: mov dword ptr [ebp - 0x14], eax */ 21508 eax = MEM32(esi + 0x180); /* 0x2B04ED6A: mov eax, dword ptr [esi + 0x180] */ 21509 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21510 edi = 0; /* 0x2B04ED70: xor edi, edi */ 21511 _cf = 0; 21512 _flag_k = FK_TEST; 21513 /* test eax, eax */ /* 0x2B04ED72: test eax, eax */ 21514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21515 _cf = 0; 21516 _flag_k = FK_TEST; 21517 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED74: jle 0x2b04eda1 */ 21518 L_2B04ED76: 21519 esi = MEM32(ebp + (-0x18)); /* 0x2B04ED76: mov esi, dword ptr [ebp - 0x18] */ 21520 L_2B04ED79: 21521 edx = MEM32(esi + 0x104); /* 0x2B04ED79: mov edx, dword ptr [esi + 0x104] */ 21522 eax = MEM32(ebp + (-0x14)); /* 0x2B04ED7F: mov eax, dword ptr [ebp - 0x14] */ 21523 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04ED82: cmp eax, dword ptr [edx + 8] */ 21524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 21525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21526 _flag_k = FK_CMP; 21527 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EDA1; /* 0x2B04ED85: je 0x2b04eda1 */ 21528 L_2B04ED87: 21529 ecx = ebp + (-0x28); /* 0x2B04ED87: lea ecx, [ebp - 0x28] */ 21530 PUSH32(esp, ecx); /* 0x2B04ED8A: push ecx */ 21531 edx = ebp + (-0x14); /* 0x2B04ED8B: lea edx, [ebp - 0x14] */ 21532 PUSH32(esp, edx); /* 0x2B04ED8E: push edx */ 21533 ecx = esi; /* 0x2B04ED8F: mov ecx, esi */ 21534 RECOMP_ICALL(0x2B051220u); /* 0x2B04ED91: call 0x2b051220 */ /* not lifted */ 21535 RECOMP_FLAGS_IN(); 21536 eax = MEM32(esi + 0x180); /* 0x2B04ED96: mov eax, dword ptr [esi + 0x180] */ 21537 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 21538 edi = edi + 1; /* 0x2B04ED9C: inc edi */ 21539 _flag_k = FK_INC; 21540 /* cmp edi, eax */ /* 0x2B04ED9D: cmp edi, eax */ 21541 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 21542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21543 _flag_k = FK_CMP; 21544 RECOMP_BACKEDGE(); 21545 if (CMP_L(_flag_a, _flag_b)) goto L_2B04ED79; /* 0x2B04ED9F: jl 0x2b04ed79 */ 21546 L_2B04EDA1: 21547 eax = MEM32(ebp + (-0x18)); /* 0x2B04EDA1: mov eax, dword ptr [ebp - 0x18] */ 21548 ecx = MEM32(eax + 0x8); /* 0x2B04EDA4: mov ecx, dword ptr [eax + 8] */ 21549 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC3u); 21550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21551 ecx = ecx + 0xC3u; /* 0x2B04EDA7: add ecx, 0xc3 */ 21552 _flag_k = FK_ADD; 21553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x114u); 21554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21555 eax = eax + 0x114u; /* 0x2B04EDAD: add eax, 0x114 */ 21556 _flag_k = FK_ADD; 21557 MEM32(ebp + (-0x30)) = ecx; /* 0x2B04EDB2: mov dword ptr [ebp - 0x30], ecx */ 21558 MEM32(ebp + (-0x1C)) = 0; /* 0x2B04EDB5: mov dword ptr [ebp - 0x1c], 0 */ 21559 MEM32(ebp + (-0x20)) = eax; /* 0x2B04EDBC: mov dword ptr [ebp - 0x20], eax */ 21560 L_2B04EDBF: 21561 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 21562 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 21563 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 21564 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 21565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 21566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21567 _flag_k = FK_CMP; 21568 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 21569 L_2B04EDD4: 21570 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 21571 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 21572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21573 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 21574 _flag_k = FK_ADD; 21575 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 21576 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 21577 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 21578 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 21579 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 21580 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 21581 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 21582 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 21583 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 21584 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 21585 RECOMP_FLAGS_IN(); 21586 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 21587 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21588 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 21589 _cf = 0; 21590 _flag_k = FK_TEST; 21591 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 21592 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 21593 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 21594 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 21595 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 21596 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 21597 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 21598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 21599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21600 _flag_k = FK_CMP; 21601 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 21602 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 21603 L_2B04EE1E: 21604 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 21605 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 21606 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 21607 _cf = 0; 21608 _flag_k = FK_TEST; 21609 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 21610 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 21611 L_2B04EE28: 21612 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 21613 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 21614 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 21615 _cf = 0; 21616 _flag_k = FK_NARROW(FK_TEST, 24); 21617 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 21618 L_2B04EE2F: 21619 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 21620 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 21621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21622 _flag_k = FK_NARROW(FK_CMP, 24); 21623 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 21624 L_2B04EE34: 21625 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 21626 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 21627 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 21628 RECOMP_FLAGS_IN(); 21629 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 21630 L_2B04EE40: 21631 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 21632 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 21633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21634 _cf = 0; 21635 _flag_k = FK_TEST; 21636 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 21637 L_2B04EE46: 21638 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 21639 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 21640 L_2B04EE4D: 21641 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 21642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 21643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21644 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 21645 _flag_k = FK_ADD; 21646 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 21647 L_2B04EE53: 21648 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 21649 L_2B04EE58: 21650 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 21651 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 21652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21653 _flag_k = FK_NARROW(FK_CMP, 24); 21654 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 21655 L_2B04EE5D: 21656 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 21657 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 21658 _flag_k = FK_INC; 21659 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 21660 L_2B04EE63: 21661 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 21662 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 21663 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 21664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21665 _flag_k = FK_CMP; 21666 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 21667 L_2B04EE6A: 21668 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 21669 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 21670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21671 _cf = 0; 21672 _flag_k = FK_TEST; 21673 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 21674 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 21675 L_2B04EE74: 21676 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 21677 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 21678 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21679 _cf = 0; 21680 _flag_k = FK_NARROW(FK_TEST, 24); 21681 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 21682 L_2B04EE7B: 21683 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 21684 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 21685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21686 _flag_k = FK_NARROW(FK_CMP, 24); 21687 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 21688 L_2B04EE7F: 21689 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 21690 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 21691 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 21692 RECOMP_FLAGS_IN(); 21693 L_2B04EE88: 21694 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 21695 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 21696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21697 _cf = 0; 21698 _flag_k = FK_TEST; 21699 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 21700 L_2B04EE8E: 21701 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 21702 L_2B04EE92: 21703 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 21704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 21705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21706 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 21707 _flag_k = FK_ADD; 21708 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 21709 L_2B04EE98: 21710 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 21711 L_2B04EE9D: 21712 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 21713 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 21714 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 21715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 21716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21717 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 21718 _flag_k = FK_CMP; 21719 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 21720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 21721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21722 _flag_k = FK_CMP; 21723 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 21724 L_2B04EEAF: 21725 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 21726 RECOMP_FLAGS_IN(); 21727 L_2B04EEB5: 21728 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 21729 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 21730 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 21731 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 21732 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 21733 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 21734 RECOMP_FLAGS_IN(); 21735 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 21736 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21737 _cf = 0; 21738 _flag_k = FK_NARROW(FK_TEST, 24); 21739 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 21740 L_2B04EECB: 21741 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 21742 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 21743 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 21744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 21745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21746 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 21747 _flag_k = FK_ADD; 21748 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 21749 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 21750 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 21751 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 21752 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 21753 L_2B04EEE4: 21754 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 21755 L_2B04EEE7: 21756 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 21757 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 21758 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 21759 _flag_k = FK_INC; 21760 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 21761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 21762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21763 _flag_k = FK_CMP; 21764 RECOMP_BACKEDGE(); 21765 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 21766 L_2B04EEF3: 21767 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 21768 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 21769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21770 _cf = 0; 21771 _flag_k = FK_TEST; 21772 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 21773 L_2B04EEFA: 21774 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 21775 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 21776 L_2B04EF02: 21777 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 21778 L_2B04EF05: 21779 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 21780 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 21781 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21782 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 21783 _cf = 0; 21784 _flag_k = FK_TEST; 21785 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 21786 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 21787 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 21788 edi = esi; /* 0x2B04EF16: mov edi, esi */ 21789 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 21790 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 21791 _cf = 0; 21792 _flag_k = FK_TEST; 21793 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 21794 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 21795 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 21796 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 21797 _flag_k = FK_DEC; 21798 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 21799 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 21800 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 21801 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 21802 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 21803 RECOMP_FLAGS_IN(); 21804 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 21805 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21806 _cf = 0; 21807 _flag_k = FK_NARROW(FK_TEST, 24); 21808 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 21809 L_2B04EF32: 21810 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 21811 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 21812 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 21813 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 21814 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21815 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 21816 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 21817 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 21818 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 21819 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 21820 _cf = 0; 21821 _flag_k = FK_TEST; 21822 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 21823 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 21824 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 21825 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 21826 RECOMP_FLAGS_IN(); 21827 L_2B04EF4F: 21828 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 21829 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 21830 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 21831 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 21832 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 21833 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 21834 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 21835 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21836 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 21837 _flag_k = FK_ADD; 21838 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 21839 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 21840 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 21841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21842 _flag_k = FK_CMP; 21843 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 21844 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 21845 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 21846 L_2B04EF76: 21847 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 21848 L_2B04EF78: 21849 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 21850 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 21851 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 21852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21853 _flag_k = FK_CMP; 21854 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 21855 L_2B04EF7F: 21856 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 21857 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 21858 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 21859 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 21860 RECOMP_FLAGS_IN(); 21861 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 21862 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 21863 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 21864 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 21865 RECOMP_FLAGS_IN(); 21866 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 21867 L_2B04EF9A: 21868 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 21869 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 21870 _cf = 0; 21871 _flag_k = FK_TEST; 21872 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 21873 L_2B04EF9E: 21874 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 21875 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 21876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21877 _flag_k = FK_CMP; 21878 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 21879 L_2B04EFA2: 21880 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 21881 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 21882 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21883 _cf = 0; 21884 _flag_k = FK_TEST; 21885 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 21886 L_2B04EFA9: 21887 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 21888 L_2B04EFAE: 21889 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 21890 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 21891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21892 _flag_k = FK_NARROW(FK_CMP, 24); 21893 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 21894 L_2B04EFB4: 21895 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 21896 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 21897 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 21898 RECOMP_FLAGS_IN(); 21899 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 21900 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 21901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21902 _cf = 0; 21903 _flag_k = FK_TEST; 21904 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 21905 L_2B04EFC5: 21906 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 21907 L_2B04EFCA: 21908 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 21909 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 21910 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 21911 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 21912 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 21913 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 21914 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 21915 _flag_k = FK_NARROW(FK_INC, 24); 21916 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 21917 L_2B04EFDE: 21918 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 21919 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 21920 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 21921 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 21922 RECOMP_FLAGS_IN(); 21923 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 21924 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21925 _cf = 0; 21926 _flag_k = FK_NARROW(FK_TEST, 24); 21927 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 21928 L_2B04EFED: 21929 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 21930 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 21931 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 21932 _cf = 0; 21933 _flag_k = FK_TEST; 21934 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 21935 L_2B04EFF4: 21936 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 21937 L_2B04EFFA: 21938 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 21939 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 21940 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 21941 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 21942 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 21943 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21944 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 21945 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 21946 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 21947 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 21948 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 21949 _cf = 0; 21950 _flag_k = FK_TEST; 21951 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 21952 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 21953 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 21954 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 21955 RECOMP_FLAGS_IN(); 21956 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 21957 L_2B04F01C: 21958 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 21959 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21960 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 21961 _cf = 0; 21962 _flag_k = FK_TEST; 21963 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 21964 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 21965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21966 _flag_k = FK_CMP; 21967 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 21968 L_2B04F025: 21969 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 21970 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 21971 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 21972 edx = edx - 1; /* 0x2B04F02B: dec edx */ 21973 _flag_k = FK_DEC; 21974 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 21975 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 21976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 21977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21978 _flag_k = FK_CMP; 21979 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 21980 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 21981 L_2B04F034: 21982 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 21983 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 21984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21985 _flag_k = FK_CMP; 21986 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 21987 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 21988 L_2B04F03B: 21989 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 21990 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 21991 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 21992 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 21993 RECOMP_FLAGS_IN(); 21994 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 21995 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 21996 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 21997 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 21998 RECOMP_FLAGS_IN(); 21999 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 22000 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 22001 RECOMP_FLAGS_IN(); 22002 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22004 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 22005 _flag_k = FK_ADD; 22006 L_2B04F062: 22007 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 22008 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 22009 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 22010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22011 _flag_k = FK_CMP; 22012 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 22013 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 22014 L_2B04F06D: 22015 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 22016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 22017 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 22018 _flag_k = FK_DEC; 22019 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 22020 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22021 _cf = 0; 22022 _flag_k = FK_NARROW(FK_TEST, 24); 22023 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 22024 L_2B04F075: 22025 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 22026 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 22027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22028 _flag_k = FK_NARROW(FK_CMP, 24); 22029 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 22030 L_2B04F079: 22031 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 22032 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 22033 _flag_k = FK_NARROW(FK_DEC, 24); 22034 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 22035 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 22036 L_2B04F07F: 22037 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 22038 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 22039 RECOMP_FLAGS_IN(); 22040 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22042 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 22043 _flag_k = FK_ADD; 22044 L_2B04F088: 22045 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 22046 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 22047 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 22048 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 22049 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 22050 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 22051 _cf = 0; 22052 _flag_k = FK_NARROW(FK_TEST, 24); 22053 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 22054 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 22055 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 22056 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 22057 L_2B04F0A2: 22058 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 22059 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 22060 L_2B04F0A9: 22061 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 22062 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 22063 L_2B04F0AD: 22064 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 22065 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 22066 RECOMP_FLAGS_IN(); 22067 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 22068 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 22069 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 22070 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 22071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 22072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22073 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 22074 _flag_k = FK_ADD; 22075 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 22076 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 22077 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 22078 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 22079 RECOMP_FLAGS_IN(); 22080 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 22081 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 22082 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 22083 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 22084 _cf = 0; 22085 _flag_k = FK_NARROW(FK_TEST, 24); 22086 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 22087 L_2B04F0DB: 22088 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 22089 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 22090 _cf = 0; 22091 _flag_k = FK_TEST; 22092 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 22093 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 22094 L_2B04F0E4: 22095 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 22096 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 22097 L_2B04F0E8: 22098 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 22099 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 22100 L_2B04F0EC: 22101 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 22102 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 22103 L_2B04F0EF: 22104 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 22105 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 22106 RECOMP_FLAGS_IN(); 22107 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 22108 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 22109 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 22110 RECOMP_FLAGS_IN(); 22111 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 22112 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 22113 RECOMP_FLAGS_IN(); 22114 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 22115 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 22116 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 22117 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 22118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 22119 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22120 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 22121 _flag_k = FK_ADD; 22122 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 22123 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 22124 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 22125 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 22126 RECOMP_FLAGS_IN(); 22127 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 22128 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 22129 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 22130 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 22131 _cf = 0; 22132 _flag_k = FK_NARROW(FK_TEST, 24); 22133 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 22134 L_2B04F12F: 22135 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 22136 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 22137 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 22138 L_2B04F136: 22139 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 22140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 22141 _cf = 0; 22142 _flag_k = FK_TEST; 22143 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 22144 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 22145 L_2B04F140: 22146 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 22147 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 22148 L_2B04F144: 22149 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 22150 L_2B04F146: 22151 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 22152 RECOMP_FLAGS_IN(); 22153 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 22154 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 22155 RECOMP_FLAGS_IN(); 22156 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 22157 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 22158 RECOMP_FLAGS_IN(); 22159 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 22160 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 22161 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 22162 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 22163 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22164 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 22165 _flag_k = FK_ADD; 22166 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 22167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22168 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 22169 _flag_k = FK_ADD; 22170 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 22171 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 22172 edi = edi + 1; /* 0x2B04F168: inc edi */ 22173 _flag_k = FK_INC; 22174 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22175 esi = 0; /* 0x2B04F169: xor esi, esi */ 22176 _cf = 0; 22177 _flag_k = FK_TEST; 22178 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 22179 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 22180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22181 _flag_k = FK_CMP; 22182 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 22183 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 22184 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 22185 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 22186 L_2B04F17C: 22187 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 22188 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 22189 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 22190 _cf = 0; 22191 _flag_k = FK_NARROW(FK_TEST, 24); 22192 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 22193 L_2B04F183: 22194 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 22195 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 22196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22197 _flag_k = FK_NARROW(FK_CMP, 24); 22198 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 22199 L_2B04F188: 22200 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 22201 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 22202 _flag_k = FK_NARROW(FK_DEC, 24); 22203 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 22204 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 22205 L_2B04F18F: 22206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 22207 eax = eax - 1; /* 0x2B04F18F: dec eax */ 22208 _flag_k = FK_DEC; 22209 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 22210 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 22211 RECOMP_FLAGS_IN(); 22212 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22214 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 22215 _flag_k = FK_ADD; 22216 L_2B04F199: 22217 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 22218 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 22219 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 22220 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 22221 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 22222 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 22223 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 22224 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 22225 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 22226 RECOMP_FLAGS_IN(); 22227 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 22228 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 22229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22230 _flag_k = FK_CMP; 22231 RECOMP_BACKEDGE(); 22232 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 22233 L_2B04F1BC: 22234 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 22235 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 22236 L_2B04F1C1: 22237 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 22238 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 22239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 22240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22241 _flag_k = FK_CMP; 22242 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 22243 L_2B04F1C9: 22244 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 22245 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 22246 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 22247 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 22248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22249 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 22250 _flag_k = FK_CMP; 22251 L_2B04F1D7: 22252 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 22253 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 22254 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 22255 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 22256 RECOMP_FLAGS_IN(); 22257 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 22258 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 22259 RECOMP_FLAGS_IN(); 22260 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 22261 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22262 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 22263 _flag_k = FK_ADD; 22264 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 22265 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 22266 _flag_k = FK_DEC; 22267 RECOMP_BACKEDGE(); 22268 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 22269 L_2B04F1F5: 22270 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 22271 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 22272 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 22273 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 22274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22275 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 22276 _flag_k = FK_ADD; 22277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 22278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22279 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 22280 _flag_k = FK_ADD; 22281 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 22282 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 22283 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 22284 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 22285 RECOMP_FLAGS_IN(); 22286 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 22287 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 22288 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 22289 RECOMP_FLAGS_IN(); 22290 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 22291 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 22292 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 22293 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 22294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22295 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 22296 _flag_k = FK_ADD; 22297 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 22298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 22299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22300 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 22301 _flag_k = FK_ADD; 22302 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 22303 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 22304 RECOMP_FLAGS_IN(); 22305 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 22306 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 22307 RECOMP_FLAGS_IN(); 22308 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 22309 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 22310 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22311 _cf = 0; 22312 _flag_k = FK_NARROW(FK_TEST, 24); 22313 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 22314 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 22315 L_2B04F246: 22316 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 22317 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 22318 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 22319 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 22320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 22321 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22322 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 22323 _flag_k = FK_ADD; 22324 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 22325 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 22326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 22327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22328 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 22329 _flag_k = FK_ADD; 22330 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 22331 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 22332 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 22333 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 22334 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 22335 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 22336 RECOMP_FLAGS_IN(); 22337 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 22338 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 22339 RECOMP_FLAGS_IN(); 22340 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 22341 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 22342 RECOMP_FLAGS_IN(); 22343 L_2B04F283: 22344 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 22345 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 22346 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22347 _cf = 0; 22348 _flag_k = FK_NARROW(FK_TEST, 24); 22349 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 22350 L_2B04F28D: 22351 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 22352 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 22353 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 22354 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 22355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 22356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22357 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 22358 _flag_k = FK_ADD; 22359 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 22360 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 22361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 22362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22363 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 22364 _flag_k = FK_ADD; 22365 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 22366 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 22367 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 22368 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 22369 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 22370 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 22371 RECOMP_FLAGS_IN(); 22372 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 22373 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 22374 RECOMP_FLAGS_IN(); 22375 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 22376 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 22377 RECOMP_FLAGS_IN(); 22378 L_2B04F2D0: 22379 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 22380 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 22381 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 22382 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 22383 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 22384 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 22385 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 22386 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 22387 RECOMP_REGS_OUT(); 22388 } 22389 22390 void sub_2B04EDBF(void) { 22391 int _fpu_cmp = 0; 22392 uint32_t _cf = 0; 22393 int _df = 1; 22394 uint32_t _flag_k = FK_NONE; 22395 uint32_t _flag_a = 0, _flag_b = 0; 22396 uint32_t _itail_tgt = 0; 22397 RECOMP_REGS_LOCALS 22398 RECOMP_ENTER(0x2B04EDBFu); 22399 22400 L_2B04EDBF: 22401 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 22402 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 22403 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 22404 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 22405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 22406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22407 _flag_k = FK_CMP; 22408 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 22409 L_2B04EDD4: 22410 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 22411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 22412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22413 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 22414 _flag_k = FK_ADD; 22415 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 22416 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 22417 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 22418 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 22419 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 22420 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 22421 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 22422 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 22423 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 22424 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 22425 RECOMP_FLAGS_IN(); 22426 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 22427 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22428 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 22429 _cf = 0; 22430 _flag_k = FK_TEST; 22431 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 22432 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 22433 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 22434 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 22435 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 22436 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 22437 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 22438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 22439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22440 _flag_k = FK_CMP; 22441 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 22442 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 22443 L_2B04EE1E: 22444 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 22445 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 22446 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 22447 _cf = 0; 22448 _flag_k = FK_TEST; 22449 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 22450 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 22451 L_2B04EE28: 22452 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 22453 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 22454 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 22455 _cf = 0; 22456 _flag_k = FK_NARROW(FK_TEST, 24); 22457 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 22458 L_2B04EE2F: 22459 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 22460 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 22461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22462 _flag_k = FK_NARROW(FK_CMP, 24); 22463 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 22464 L_2B04EE34: 22465 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 22466 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 22467 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 22468 RECOMP_FLAGS_IN(); 22469 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 22470 L_2B04EE40: 22471 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 22472 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 22473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22474 _cf = 0; 22475 _flag_k = FK_TEST; 22476 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 22477 L_2B04EE46: 22478 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 22479 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 22480 L_2B04EE4D: 22481 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 22482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 22483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22484 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 22485 _flag_k = FK_ADD; 22486 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 22487 L_2B04EE53: 22488 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 22489 L_2B04EE58: 22490 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 22491 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 22492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22493 _flag_k = FK_NARROW(FK_CMP, 24); 22494 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 22495 L_2B04EE5D: 22496 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 22497 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 22498 _flag_k = FK_INC; 22499 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 22500 L_2B04EE63: 22501 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 22502 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 22503 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 22504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22505 _flag_k = FK_CMP; 22506 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 22507 L_2B04EE6A: 22508 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 22509 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 22510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22511 _cf = 0; 22512 _flag_k = FK_TEST; 22513 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 22514 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 22515 L_2B04EE74: 22516 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 22517 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 22518 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22519 _cf = 0; 22520 _flag_k = FK_NARROW(FK_TEST, 24); 22521 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 22522 L_2B04EE7B: 22523 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 22524 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 22525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22526 _flag_k = FK_NARROW(FK_CMP, 24); 22527 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 22528 L_2B04EE7F: 22529 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 22530 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 22531 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 22532 RECOMP_FLAGS_IN(); 22533 L_2B04EE88: 22534 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 22535 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 22536 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22537 _cf = 0; 22538 _flag_k = FK_TEST; 22539 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 22540 L_2B04EE8E: 22541 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 22542 L_2B04EE92: 22543 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 22544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 22545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22546 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 22547 _flag_k = FK_ADD; 22548 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 22549 L_2B04EE98: 22550 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 22551 L_2B04EE9D: 22552 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 22553 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 22554 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 22555 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 22556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22557 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 22558 _flag_k = FK_CMP; 22559 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 22560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 22561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22562 _flag_k = FK_CMP; 22563 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 22564 L_2B04EEAF: 22565 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 22566 RECOMP_FLAGS_IN(); 22567 L_2B04EEB5: 22568 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 22569 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 22570 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 22571 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 22572 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 22573 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 22574 RECOMP_FLAGS_IN(); 22575 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 22576 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22577 _cf = 0; 22578 _flag_k = FK_NARROW(FK_TEST, 24); 22579 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 22580 L_2B04EECB: 22581 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 22582 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 22583 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 22584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 22585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22586 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 22587 _flag_k = FK_ADD; 22588 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 22589 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 22590 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 22591 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 22592 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 22593 L_2B04EEE4: 22594 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 22595 L_2B04EEE7: 22596 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 22597 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 22598 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 22599 _flag_k = FK_INC; 22600 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 22601 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 22602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22603 _flag_k = FK_CMP; 22604 RECOMP_BACKEDGE(); 22605 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 22606 L_2B04EEF3: 22607 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 22608 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 22609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22610 _cf = 0; 22611 _flag_k = FK_TEST; 22612 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 22613 L_2B04EEFA: 22614 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 22615 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 22616 L_2B04EF02: 22617 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 22618 L_2B04EF05: 22619 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 22620 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 22621 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22622 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 22623 _cf = 0; 22624 _flag_k = FK_TEST; 22625 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 22626 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 22627 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 22628 edi = esi; /* 0x2B04EF16: mov edi, esi */ 22629 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 22630 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 22631 _cf = 0; 22632 _flag_k = FK_TEST; 22633 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 22634 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 22635 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 22636 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 22637 _flag_k = FK_DEC; 22638 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 22639 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 22640 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 22641 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 22642 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 22643 RECOMP_FLAGS_IN(); 22644 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 22645 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22646 _cf = 0; 22647 _flag_k = FK_NARROW(FK_TEST, 24); 22648 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 22649 L_2B04EF32: 22650 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 22651 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 22652 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 22653 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 22654 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 22655 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 22656 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 22657 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 22658 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 22659 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 22660 _cf = 0; 22661 _flag_k = FK_TEST; 22662 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 22663 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 22664 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 22665 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 22666 RECOMP_FLAGS_IN(); 22667 L_2B04EF4F: 22668 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 22669 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 22670 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 22671 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 22672 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 22673 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 22674 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 22675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22676 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 22677 _flag_k = FK_ADD; 22678 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 22679 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 22680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 22681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22682 _flag_k = FK_CMP; 22683 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 22684 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 22685 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 22686 L_2B04EF76: 22687 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 22688 L_2B04EF78: 22689 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 22690 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 22691 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 22692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22693 _flag_k = FK_CMP; 22694 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 22695 L_2B04EF7F: 22696 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 22697 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 22698 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 22699 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 22700 RECOMP_FLAGS_IN(); 22701 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 22702 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 22703 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 22704 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 22705 RECOMP_FLAGS_IN(); 22706 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 22707 L_2B04EF9A: 22708 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 22709 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 22710 _cf = 0; 22711 _flag_k = FK_TEST; 22712 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 22713 L_2B04EF9E: 22714 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 22715 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 22716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22717 _flag_k = FK_CMP; 22718 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 22719 L_2B04EFA2: 22720 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 22721 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 22722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22723 _cf = 0; 22724 _flag_k = FK_TEST; 22725 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 22726 L_2B04EFA9: 22727 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 22728 L_2B04EFAE: 22729 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 22730 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 22731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22732 _flag_k = FK_NARROW(FK_CMP, 24); 22733 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 22734 L_2B04EFB4: 22735 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 22736 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 22737 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 22738 RECOMP_FLAGS_IN(); 22739 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 22740 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 22741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22742 _cf = 0; 22743 _flag_k = FK_TEST; 22744 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 22745 L_2B04EFC5: 22746 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 22747 L_2B04EFCA: 22748 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 22749 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 22750 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 22751 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 22752 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 22753 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 22754 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 22755 _flag_k = FK_NARROW(FK_INC, 24); 22756 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 22757 L_2B04EFDE: 22758 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 22759 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 22760 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 22761 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 22762 RECOMP_FLAGS_IN(); 22763 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 22764 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22765 _cf = 0; 22766 _flag_k = FK_NARROW(FK_TEST, 24); 22767 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 22768 L_2B04EFED: 22769 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 22770 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 22771 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 22772 _cf = 0; 22773 _flag_k = FK_TEST; 22774 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 22775 L_2B04EFF4: 22776 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 22777 L_2B04EFFA: 22778 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 22779 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 22780 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 22781 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 22782 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 22783 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 22784 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 22785 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 22786 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 22787 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 22788 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 22789 _cf = 0; 22790 _flag_k = FK_TEST; 22791 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 22792 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 22793 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 22794 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 22795 RECOMP_FLAGS_IN(); 22796 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 22797 L_2B04F01C: 22798 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 22799 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22800 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 22801 _cf = 0; 22802 _flag_k = FK_TEST; 22803 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 22804 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 22805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22806 _flag_k = FK_CMP; 22807 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 22808 L_2B04F025: 22809 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 22810 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 22811 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 22812 edx = edx - 1; /* 0x2B04F02B: dec edx */ 22813 _flag_k = FK_DEC; 22814 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 22815 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 22816 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 22817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22818 _flag_k = FK_CMP; 22819 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 22820 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 22821 L_2B04F034: 22822 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 22823 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 22824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22825 _flag_k = FK_CMP; 22826 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 22827 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 22828 L_2B04F03B: 22829 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 22830 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 22831 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 22832 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 22833 RECOMP_FLAGS_IN(); 22834 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 22835 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 22836 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 22837 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 22838 RECOMP_FLAGS_IN(); 22839 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 22840 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 22841 RECOMP_FLAGS_IN(); 22842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22844 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 22845 _flag_k = FK_ADD; 22846 L_2B04F062: 22847 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 22848 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 22849 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 22850 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22851 _flag_k = FK_CMP; 22852 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 22853 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 22854 L_2B04F06D: 22855 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 22856 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 22857 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 22858 _flag_k = FK_DEC; 22859 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 22860 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22861 _cf = 0; 22862 _flag_k = FK_NARROW(FK_TEST, 24); 22863 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 22864 L_2B04F075: 22865 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 22866 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 22867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22868 _flag_k = FK_NARROW(FK_CMP, 24); 22869 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 22870 L_2B04F079: 22871 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 22872 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 22873 _flag_k = FK_NARROW(FK_DEC, 24); 22874 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 22875 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 22876 L_2B04F07F: 22877 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 22878 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 22879 RECOMP_FLAGS_IN(); 22880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22882 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 22883 _flag_k = FK_ADD; 22884 L_2B04F088: 22885 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 22886 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 22887 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 22888 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 22889 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 22890 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 22891 _cf = 0; 22892 _flag_k = FK_NARROW(FK_TEST, 24); 22893 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 22894 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 22895 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 22896 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 22897 L_2B04F0A2: 22898 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 22899 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 22900 L_2B04F0A9: 22901 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 22902 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 22903 L_2B04F0AD: 22904 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 22905 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 22906 RECOMP_FLAGS_IN(); 22907 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 22908 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 22909 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 22910 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 22911 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 22912 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22913 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 22914 _flag_k = FK_ADD; 22915 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 22916 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 22917 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 22918 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 22919 RECOMP_FLAGS_IN(); 22920 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 22921 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 22922 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 22923 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 22924 _cf = 0; 22925 _flag_k = FK_NARROW(FK_TEST, 24); 22926 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 22927 L_2B04F0DB: 22928 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 22929 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 22930 _cf = 0; 22931 _flag_k = FK_TEST; 22932 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 22933 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 22934 L_2B04F0E4: 22935 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 22936 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 22937 L_2B04F0E8: 22938 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 22939 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 22940 L_2B04F0EC: 22941 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 22942 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 22943 L_2B04F0EF: 22944 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 22945 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 22946 RECOMP_FLAGS_IN(); 22947 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 22948 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 22949 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 22950 RECOMP_FLAGS_IN(); 22951 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 22952 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 22953 RECOMP_FLAGS_IN(); 22954 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 22955 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 22956 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 22957 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 22958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 22959 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22960 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 22961 _flag_k = FK_ADD; 22962 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 22963 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 22964 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 22965 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 22966 RECOMP_FLAGS_IN(); 22967 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 22968 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 22969 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 22970 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 22971 _cf = 0; 22972 _flag_k = FK_NARROW(FK_TEST, 24); 22973 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 22974 L_2B04F12F: 22975 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 22976 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 22977 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 22978 L_2B04F136: 22979 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 22980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 22981 _cf = 0; 22982 _flag_k = FK_TEST; 22983 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 22984 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 22985 L_2B04F140: 22986 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 22987 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 22988 L_2B04F144: 22989 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 22990 L_2B04F146: 22991 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 22992 RECOMP_FLAGS_IN(); 22993 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 22994 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 22995 RECOMP_FLAGS_IN(); 22996 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 22997 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 22998 RECOMP_FLAGS_IN(); 22999 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 23000 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 23001 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 23002 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 23003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23004 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 23005 _flag_k = FK_ADD; 23006 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 23007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23008 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 23009 _flag_k = FK_ADD; 23010 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 23011 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 23012 edi = edi + 1; /* 0x2B04F168: inc edi */ 23013 _flag_k = FK_INC; 23014 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23015 esi = 0; /* 0x2B04F169: xor esi, esi */ 23016 _cf = 0; 23017 _flag_k = FK_TEST; 23018 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 23019 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 23020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23021 _flag_k = FK_CMP; 23022 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 23023 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 23024 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 23025 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 23026 L_2B04F17C: 23027 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 23028 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 23029 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 23030 _cf = 0; 23031 _flag_k = FK_NARROW(FK_TEST, 24); 23032 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 23033 L_2B04F183: 23034 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 23035 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 23036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23037 _flag_k = FK_NARROW(FK_CMP, 24); 23038 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 23039 L_2B04F188: 23040 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 23041 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 23042 _flag_k = FK_NARROW(FK_DEC, 24); 23043 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 23044 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 23045 L_2B04F18F: 23046 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23047 eax = eax - 1; /* 0x2B04F18F: dec eax */ 23048 _flag_k = FK_DEC; 23049 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 23050 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 23051 RECOMP_FLAGS_IN(); 23052 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23054 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 23055 _flag_k = FK_ADD; 23056 L_2B04F199: 23057 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 23058 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 23059 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 23060 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 23061 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 23062 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 23063 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 23064 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 23065 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 23066 RECOMP_FLAGS_IN(); 23067 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 23068 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 23069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23070 _flag_k = FK_CMP; 23071 RECOMP_BACKEDGE(); 23072 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 23073 L_2B04F1BC: 23074 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 23075 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 23076 L_2B04F1C1: 23077 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 23078 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 23079 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 23080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23081 _flag_k = FK_CMP; 23082 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 23083 L_2B04F1C9: 23084 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 23085 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 23086 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 23087 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 23088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23089 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 23090 _flag_k = FK_CMP; 23091 L_2B04F1D7: 23092 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 23093 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 23094 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 23095 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 23096 RECOMP_FLAGS_IN(); 23097 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 23098 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 23099 RECOMP_FLAGS_IN(); 23100 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 23101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23102 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 23103 _flag_k = FK_ADD; 23104 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 23105 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 23106 _flag_k = FK_DEC; 23107 RECOMP_BACKEDGE(); 23108 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 23109 L_2B04F1F5: 23110 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 23111 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 23112 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 23113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 23114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23115 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 23116 _flag_k = FK_ADD; 23117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 23118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23119 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 23120 _flag_k = FK_ADD; 23121 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 23122 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 23123 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 23124 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 23125 RECOMP_FLAGS_IN(); 23126 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 23127 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 23128 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 23129 RECOMP_FLAGS_IN(); 23130 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 23131 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 23132 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 23133 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 23134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23135 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 23136 _flag_k = FK_ADD; 23137 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 23138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 23139 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23140 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 23141 _flag_k = FK_ADD; 23142 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 23143 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 23144 RECOMP_FLAGS_IN(); 23145 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 23146 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 23147 RECOMP_FLAGS_IN(); 23148 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 23149 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 23150 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23151 _cf = 0; 23152 _flag_k = FK_NARROW(FK_TEST, 24); 23153 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 23154 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 23155 L_2B04F246: 23156 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 23157 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 23158 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 23159 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 23160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 23161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23162 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 23163 _flag_k = FK_ADD; 23164 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 23165 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 23166 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 23167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23168 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 23169 _flag_k = FK_ADD; 23170 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 23171 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 23172 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 23173 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 23174 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 23175 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 23176 RECOMP_FLAGS_IN(); 23177 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 23178 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 23179 RECOMP_FLAGS_IN(); 23180 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 23181 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 23182 RECOMP_FLAGS_IN(); 23183 L_2B04F283: 23184 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 23185 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 23186 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23187 _cf = 0; 23188 _flag_k = FK_NARROW(FK_TEST, 24); 23189 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 23190 L_2B04F28D: 23191 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 23192 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 23193 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 23194 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 23195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 23196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23197 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 23198 _flag_k = FK_ADD; 23199 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 23200 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 23201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 23202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23203 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 23204 _flag_k = FK_ADD; 23205 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 23206 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 23207 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 23208 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 23209 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 23210 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 23211 RECOMP_FLAGS_IN(); 23212 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 23213 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 23214 RECOMP_FLAGS_IN(); 23215 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 23216 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 23217 RECOMP_FLAGS_IN(); 23218 L_2B04F2D0: 23219 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 23220 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 23221 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 23222 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 23223 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 23224 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 23225 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 23226 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 23227 RECOMP_REGS_OUT(); 23228 } 23229 23230 void sub_2B04EE1E(void) { 23231 int _fpu_cmp = 0; 23232 uint32_t _cf = 0; 23233 int _df = 1; 23234 uint32_t _flag_k = FK_NONE; 23235 uint32_t _flag_a = 0, _flag_b = 0; 23236 uint32_t _itail_tgt = 0; 23237 RECOMP_REGS_LOCALS 23238 RECOMP_ENTER(0x2B04EE1Eu); 23239 23240 goto L_2B04EE1E; 23241 L_2B04EDBF: 23242 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 23243 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 23244 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 23245 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 23246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 23247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23248 _flag_k = FK_CMP; 23249 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 23250 L_2B04EDD4: 23251 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 23252 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 23253 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23254 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 23255 _flag_k = FK_ADD; 23256 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 23257 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 23258 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 23259 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 23260 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 23261 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 23262 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 23263 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 23264 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 23265 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 23266 RECOMP_FLAGS_IN(); 23267 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 23268 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23269 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 23270 _cf = 0; 23271 _flag_k = FK_TEST; 23272 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 23273 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 23274 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 23275 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 23276 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 23277 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 23278 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 23279 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 23280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23281 _flag_k = FK_CMP; 23282 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 23283 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 23284 L_2B04EE1E: 23285 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 23286 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 23287 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 23288 _cf = 0; 23289 _flag_k = FK_TEST; 23290 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 23291 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 23292 L_2B04EE28: 23293 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 23294 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 23295 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 23296 _cf = 0; 23297 _flag_k = FK_NARROW(FK_TEST, 24); 23298 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 23299 L_2B04EE2F: 23300 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 23301 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 23302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23303 _flag_k = FK_NARROW(FK_CMP, 24); 23304 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 23305 L_2B04EE34: 23306 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 23307 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 23308 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 23309 RECOMP_FLAGS_IN(); 23310 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 23311 L_2B04EE40: 23312 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 23313 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 23314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23315 _cf = 0; 23316 _flag_k = FK_TEST; 23317 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 23318 L_2B04EE46: 23319 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 23320 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 23321 L_2B04EE4D: 23322 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 23323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 23324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23325 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 23326 _flag_k = FK_ADD; 23327 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 23328 L_2B04EE53: 23329 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 23330 L_2B04EE58: 23331 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 23332 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 23333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23334 _flag_k = FK_NARROW(FK_CMP, 24); 23335 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 23336 L_2B04EE5D: 23337 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 23338 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 23339 _flag_k = FK_INC; 23340 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 23341 L_2B04EE63: 23342 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 23343 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 23344 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 23345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23346 _flag_k = FK_CMP; 23347 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 23348 L_2B04EE6A: 23349 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 23350 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 23351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23352 _cf = 0; 23353 _flag_k = FK_TEST; 23354 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 23355 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 23356 L_2B04EE74: 23357 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 23358 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 23359 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23360 _cf = 0; 23361 _flag_k = FK_NARROW(FK_TEST, 24); 23362 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 23363 L_2B04EE7B: 23364 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 23365 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 23366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23367 _flag_k = FK_NARROW(FK_CMP, 24); 23368 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 23369 L_2B04EE7F: 23370 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 23371 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 23372 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 23373 RECOMP_FLAGS_IN(); 23374 L_2B04EE88: 23375 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 23376 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 23377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23378 _cf = 0; 23379 _flag_k = FK_TEST; 23380 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 23381 L_2B04EE8E: 23382 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 23383 L_2B04EE92: 23384 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 23385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 23386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23387 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 23388 _flag_k = FK_ADD; 23389 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 23390 L_2B04EE98: 23391 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 23392 L_2B04EE9D: 23393 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 23394 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 23395 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 23396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 23397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23398 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 23399 _flag_k = FK_CMP; 23400 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 23401 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23403 _flag_k = FK_CMP; 23404 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 23405 L_2B04EEAF: 23406 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 23407 RECOMP_FLAGS_IN(); 23408 L_2B04EEB5: 23409 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 23410 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 23411 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 23412 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 23413 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 23414 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 23415 RECOMP_FLAGS_IN(); 23416 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 23417 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23418 _cf = 0; 23419 _flag_k = FK_NARROW(FK_TEST, 24); 23420 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 23421 L_2B04EECB: 23422 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 23423 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 23424 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 23425 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 23426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23427 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 23428 _flag_k = FK_ADD; 23429 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 23430 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 23431 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 23432 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 23433 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 23434 L_2B04EEE4: 23435 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 23436 L_2B04EEE7: 23437 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 23438 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 23439 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 23440 _flag_k = FK_INC; 23441 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 23442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 23443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23444 _flag_k = FK_CMP; 23445 RECOMP_BACKEDGE(); 23446 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 23447 L_2B04EEF3: 23448 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 23449 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 23450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23451 _cf = 0; 23452 _flag_k = FK_TEST; 23453 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 23454 L_2B04EEFA: 23455 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 23456 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 23457 L_2B04EF02: 23458 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 23459 L_2B04EF05: 23460 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 23461 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 23462 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23463 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 23464 _cf = 0; 23465 _flag_k = FK_TEST; 23466 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 23467 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 23468 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 23469 edi = esi; /* 0x2B04EF16: mov edi, esi */ 23470 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 23471 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 23472 _cf = 0; 23473 _flag_k = FK_TEST; 23474 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 23475 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 23476 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 23477 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 23478 _flag_k = FK_DEC; 23479 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 23480 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 23481 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 23482 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 23483 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 23484 RECOMP_FLAGS_IN(); 23485 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 23486 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23487 _cf = 0; 23488 _flag_k = FK_NARROW(FK_TEST, 24); 23489 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 23490 L_2B04EF32: 23491 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 23492 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 23493 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 23494 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 23495 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 23496 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 23497 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 23498 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 23499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 23500 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 23501 _cf = 0; 23502 _flag_k = FK_TEST; 23503 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 23504 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 23505 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 23506 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 23507 RECOMP_FLAGS_IN(); 23508 L_2B04EF4F: 23509 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 23510 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 23511 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 23512 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 23513 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 23514 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 23515 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 23516 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23517 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 23518 _flag_k = FK_ADD; 23519 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 23520 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 23521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 23522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23523 _flag_k = FK_CMP; 23524 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 23525 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 23526 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 23527 L_2B04EF76: 23528 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 23529 L_2B04EF78: 23530 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 23531 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 23532 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 23533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23534 _flag_k = FK_CMP; 23535 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 23536 L_2B04EF7F: 23537 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 23538 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 23539 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 23540 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 23541 RECOMP_FLAGS_IN(); 23542 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 23543 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 23544 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 23545 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 23546 RECOMP_FLAGS_IN(); 23547 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 23548 L_2B04EF9A: 23549 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 23550 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 23551 _cf = 0; 23552 _flag_k = FK_TEST; 23553 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 23554 L_2B04EF9E: 23555 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 23556 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 23557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23558 _flag_k = FK_CMP; 23559 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 23560 L_2B04EFA2: 23561 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 23562 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 23563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23564 _cf = 0; 23565 _flag_k = FK_TEST; 23566 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 23567 L_2B04EFA9: 23568 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 23569 L_2B04EFAE: 23570 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 23571 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 23572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23573 _flag_k = FK_NARROW(FK_CMP, 24); 23574 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 23575 L_2B04EFB4: 23576 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 23577 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 23578 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 23579 RECOMP_FLAGS_IN(); 23580 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 23581 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 23582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23583 _cf = 0; 23584 _flag_k = FK_TEST; 23585 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 23586 L_2B04EFC5: 23587 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 23588 L_2B04EFCA: 23589 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 23590 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 23591 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 23592 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 23593 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 23594 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 23595 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 23596 _flag_k = FK_NARROW(FK_INC, 24); 23597 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 23598 L_2B04EFDE: 23599 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 23600 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 23601 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 23602 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 23603 RECOMP_FLAGS_IN(); 23604 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 23605 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23606 _cf = 0; 23607 _flag_k = FK_NARROW(FK_TEST, 24); 23608 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 23609 L_2B04EFED: 23610 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 23611 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 23612 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 23613 _cf = 0; 23614 _flag_k = FK_TEST; 23615 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 23616 L_2B04EFF4: 23617 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 23618 L_2B04EFFA: 23619 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 23620 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 23621 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 23622 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 23623 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 23624 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 23625 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 23626 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 23627 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 23628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 23629 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 23630 _cf = 0; 23631 _flag_k = FK_TEST; 23632 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 23633 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 23634 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 23635 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 23636 RECOMP_FLAGS_IN(); 23637 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 23638 L_2B04F01C: 23639 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 23640 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23641 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 23642 _cf = 0; 23643 _flag_k = FK_TEST; 23644 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 23645 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 23646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23647 _flag_k = FK_CMP; 23648 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 23649 L_2B04F025: 23650 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 23651 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 23652 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 23653 edx = edx - 1; /* 0x2B04F02B: dec edx */ 23654 _flag_k = FK_DEC; 23655 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 23656 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 23657 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 23658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23659 _flag_k = FK_CMP; 23660 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 23661 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 23662 L_2B04F034: 23663 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 23664 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 23665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23666 _flag_k = FK_CMP; 23667 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 23668 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 23669 L_2B04F03B: 23670 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 23671 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 23672 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 23673 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 23674 RECOMP_FLAGS_IN(); 23675 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 23676 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 23677 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 23678 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 23679 RECOMP_FLAGS_IN(); 23680 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 23681 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 23682 RECOMP_FLAGS_IN(); 23683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23685 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 23686 _flag_k = FK_ADD; 23687 L_2B04F062: 23688 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 23689 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 23690 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 23691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23692 _flag_k = FK_CMP; 23693 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 23694 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 23695 L_2B04F06D: 23696 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 23697 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 23698 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 23699 _flag_k = FK_DEC; 23700 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 23701 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23702 _cf = 0; 23703 _flag_k = FK_NARROW(FK_TEST, 24); 23704 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 23705 L_2B04F075: 23706 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 23707 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 23708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23709 _flag_k = FK_NARROW(FK_CMP, 24); 23710 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 23711 L_2B04F079: 23712 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 23713 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 23714 _flag_k = FK_NARROW(FK_DEC, 24); 23715 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 23716 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 23717 L_2B04F07F: 23718 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 23719 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 23720 RECOMP_FLAGS_IN(); 23721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23723 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 23724 _flag_k = FK_ADD; 23725 L_2B04F088: 23726 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 23727 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 23728 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 23729 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 23730 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 23731 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 23732 _cf = 0; 23733 _flag_k = FK_NARROW(FK_TEST, 24); 23734 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 23735 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 23736 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 23737 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 23738 L_2B04F0A2: 23739 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 23740 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 23741 L_2B04F0A9: 23742 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 23743 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 23744 L_2B04F0AD: 23745 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 23746 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 23747 RECOMP_FLAGS_IN(); 23748 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 23749 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 23750 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 23751 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 23752 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 23753 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23754 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 23755 _flag_k = FK_ADD; 23756 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 23757 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 23758 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 23759 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 23760 RECOMP_FLAGS_IN(); 23761 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 23762 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 23763 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 23764 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 23765 _cf = 0; 23766 _flag_k = FK_NARROW(FK_TEST, 24); 23767 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 23768 L_2B04F0DB: 23769 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 23770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 23771 _cf = 0; 23772 _flag_k = FK_TEST; 23773 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 23774 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 23775 L_2B04F0E4: 23776 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 23777 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 23778 L_2B04F0E8: 23779 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 23780 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 23781 L_2B04F0EC: 23782 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 23783 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 23784 L_2B04F0EF: 23785 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 23786 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 23787 RECOMP_FLAGS_IN(); 23788 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 23789 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 23790 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 23791 RECOMP_FLAGS_IN(); 23792 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 23793 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 23794 RECOMP_FLAGS_IN(); 23795 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 23796 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 23797 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 23798 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 23799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 23800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23801 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 23802 _flag_k = FK_ADD; 23803 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 23804 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 23805 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 23806 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 23807 RECOMP_FLAGS_IN(); 23808 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 23809 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 23810 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 23811 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 23812 _cf = 0; 23813 _flag_k = FK_NARROW(FK_TEST, 24); 23814 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 23815 L_2B04F12F: 23816 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 23817 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 23818 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 23819 L_2B04F136: 23820 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 23821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 23822 _cf = 0; 23823 _flag_k = FK_TEST; 23824 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 23825 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 23826 L_2B04F140: 23827 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 23828 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 23829 L_2B04F144: 23830 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 23831 L_2B04F146: 23832 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 23833 RECOMP_FLAGS_IN(); 23834 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 23835 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 23836 RECOMP_FLAGS_IN(); 23837 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 23838 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 23839 RECOMP_FLAGS_IN(); 23840 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 23841 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 23842 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 23843 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 23844 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23845 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 23846 _flag_k = FK_ADD; 23847 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 23848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23849 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 23850 _flag_k = FK_ADD; 23851 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 23852 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 23853 edi = edi + 1; /* 0x2B04F168: inc edi */ 23854 _flag_k = FK_INC; 23855 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23856 esi = 0; /* 0x2B04F169: xor esi, esi */ 23857 _cf = 0; 23858 _flag_k = FK_TEST; 23859 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 23860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 23861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23862 _flag_k = FK_CMP; 23863 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 23864 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 23865 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 23866 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 23867 L_2B04F17C: 23868 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 23869 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 23870 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 23871 _cf = 0; 23872 _flag_k = FK_NARROW(FK_TEST, 24); 23873 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 23874 L_2B04F183: 23875 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 23876 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 23877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23878 _flag_k = FK_NARROW(FK_CMP, 24); 23879 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 23880 L_2B04F188: 23881 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 23882 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 23883 _flag_k = FK_NARROW(FK_DEC, 24); 23884 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 23885 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 23886 L_2B04F18F: 23887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23888 eax = eax - 1; /* 0x2B04F18F: dec eax */ 23889 _flag_k = FK_DEC; 23890 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 23891 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 23892 RECOMP_FLAGS_IN(); 23893 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23894 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23895 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 23896 _flag_k = FK_ADD; 23897 L_2B04F199: 23898 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 23899 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 23900 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 23901 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 23902 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 23903 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 23904 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 23905 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 23906 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 23907 RECOMP_FLAGS_IN(); 23908 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 23909 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 23910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23911 _flag_k = FK_CMP; 23912 RECOMP_BACKEDGE(); 23913 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 23914 L_2B04F1BC: 23915 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 23916 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 23917 L_2B04F1C1: 23918 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 23919 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 23920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 23921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23922 _flag_k = FK_CMP; 23923 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 23924 L_2B04F1C9: 23925 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 23926 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 23927 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 23928 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 23929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23930 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 23931 _flag_k = FK_CMP; 23932 L_2B04F1D7: 23933 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 23934 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 23935 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 23936 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 23937 RECOMP_FLAGS_IN(); 23938 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 23939 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 23940 RECOMP_FLAGS_IN(); 23941 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 23942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23943 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 23944 _flag_k = FK_ADD; 23945 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 23946 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 23947 _flag_k = FK_DEC; 23948 RECOMP_BACKEDGE(); 23949 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 23950 L_2B04F1F5: 23951 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 23952 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 23953 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 23954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 23955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23956 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 23957 _flag_k = FK_ADD; 23958 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 23959 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23960 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 23961 _flag_k = FK_ADD; 23962 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 23963 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 23964 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 23965 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 23966 RECOMP_FLAGS_IN(); 23967 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 23968 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 23969 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 23970 RECOMP_FLAGS_IN(); 23971 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 23972 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 23973 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 23974 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 23975 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23976 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 23977 _flag_k = FK_ADD; 23978 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 23979 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 23980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23981 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 23982 _flag_k = FK_ADD; 23983 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 23984 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 23985 RECOMP_FLAGS_IN(); 23986 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 23987 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 23988 RECOMP_FLAGS_IN(); 23989 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 23990 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 23991 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23992 _cf = 0; 23993 _flag_k = FK_NARROW(FK_TEST, 24); 23994 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 23995 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 23996 L_2B04F246: 23997 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 23998 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 23999 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 24000 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 24001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 24002 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24003 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 24004 _flag_k = FK_ADD; 24005 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 24006 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 24007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 24008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24009 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 24010 _flag_k = FK_ADD; 24011 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 24012 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 24013 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 24014 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 24015 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 24016 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 24017 RECOMP_FLAGS_IN(); 24018 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 24019 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 24020 RECOMP_FLAGS_IN(); 24021 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 24022 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 24023 RECOMP_FLAGS_IN(); 24024 L_2B04F283: 24025 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 24026 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 24027 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24028 _cf = 0; 24029 _flag_k = FK_NARROW(FK_TEST, 24); 24030 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 24031 L_2B04F28D: 24032 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 24033 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 24034 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 24035 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 24036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 24037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24038 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 24039 _flag_k = FK_ADD; 24040 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 24041 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 24042 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 24043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24044 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 24045 _flag_k = FK_ADD; 24046 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 24047 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 24048 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 24049 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 24050 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 24051 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 24052 RECOMP_FLAGS_IN(); 24053 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 24054 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 24055 RECOMP_FLAGS_IN(); 24056 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 24057 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 24058 RECOMP_FLAGS_IN(); 24059 L_2B04F2D0: 24060 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 24061 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 24062 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 24063 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 24064 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 24065 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 24066 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 24067 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 24068 RECOMP_REGS_OUT(); 24069 } 24070 24071 void sub_2B04EE58(void) { 24072 int _fpu_cmp = 0; 24073 uint32_t _cf = 0; 24074 int _df = 1; 24075 uint32_t _flag_k = FK_NONE; 24076 uint32_t _flag_a = 0, _flag_b = 0; 24077 uint32_t _itail_tgt = 0; 24078 RECOMP_REGS_LOCALS 24079 RECOMP_ENTER(0x2B04EE58u); 24080 24081 goto L_2B04EE58; 24082 L_2B04EDBF: 24083 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 24084 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 24085 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 24086 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 24087 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 24088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24089 _flag_k = FK_CMP; 24090 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 24091 L_2B04EDD4: 24092 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 24093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 24094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24095 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 24096 _flag_k = FK_ADD; 24097 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 24098 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 24099 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 24100 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 24101 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 24102 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 24103 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 24104 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 24105 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 24106 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 24107 RECOMP_FLAGS_IN(); 24108 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 24109 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24110 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 24111 _cf = 0; 24112 _flag_k = FK_TEST; 24113 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 24114 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 24115 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 24116 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 24117 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 24118 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 24119 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 24120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 24121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24122 _flag_k = FK_CMP; 24123 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 24124 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 24125 L_2B04EE1E: 24126 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 24127 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 24128 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 24129 _cf = 0; 24130 _flag_k = FK_TEST; 24131 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 24132 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 24133 L_2B04EE28: 24134 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 24135 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 24136 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 24137 _cf = 0; 24138 _flag_k = FK_NARROW(FK_TEST, 24); 24139 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 24140 L_2B04EE2F: 24141 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 24142 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24144 _flag_k = FK_NARROW(FK_CMP, 24); 24145 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 24146 L_2B04EE34: 24147 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 24148 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 24149 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 24150 RECOMP_FLAGS_IN(); 24151 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 24152 L_2B04EE40: 24153 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 24154 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 24155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24156 _cf = 0; 24157 _flag_k = FK_TEST; 24158 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 24159 L_2B04EE46: 24160 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 24161 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 24162 L_2B04EE4D: 24163 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 24164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 24165 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24166 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 24167 _flag_k = FK_ADD; 24168 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 24169 L_2B04EE53: 24170 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 24171 L_2B04EE58: 24172 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 24173 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 24174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24175 _flag_k = FK_NARROW(FK_CMP, 24); 24176 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 24177 L_2B04EE5D: 24178 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 24179 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 24180 _flag_k = FK_INC; 24181 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 24182 L_2B04EE63: 24183 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 24184 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 24185 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 24186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24187 _flag_k = FK_CMP; 24188 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 24189 L_2B04EE6A: 24190 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 24191 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 24192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24193 _cf = 0; 24194 _flag_k = FK_TEST; 24195 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 24196 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 24197 L_2B04EE74: 24198 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 24199 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 24200 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24201 _cf = 0; 24202 _flag_k = FK_NARROW(FK_TEST, 24); 24203 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 24204 L_2B04EE7B: 24205 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 24206 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24208 _flag_k = FK_NARROW(FK_CMP, 24); 24209 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 24210 L_2B04EE7F: 24211 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 24212 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 24213 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 24214 RECOMP_FLAGS_IN(); 24215 L_2B04EE88: 24216 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 24217 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 24218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24219 _cf = 0; 24220 _flag_k = FK_TEST; 24221 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 24222 L_2B04EE8E: 24223 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 24224 L_2B04EE92: 24225 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 24226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 24227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24228 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 24229 _flag_k = FK_ADD; 24230 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 24231 L_2B04EE98: 24232 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 24233 L_2B04EE9D: 24234 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 24235 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 24236 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 24237 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 24238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24239 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 24240 _flag_k = FK_CMP; 24241 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 24242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 24243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24244 _flag_k = FK_CMP; 24245 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 24246 L_2B04EEAF: 24247 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 24248 RECOMP_FLAGS_IN(); 24249 L_2B04EEB5: 24250 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 24251 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 24252 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 24253 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 24254 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 24255 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 24256 RECOMP_FLAGS_IN(); 24257 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 24258 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24259 _cf = 0; 24260 _flag_k = FK_NARROW(FK_TEST, 24); 24261 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 24262 L_2B04EECB: 24263 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 24264 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 24265 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 24266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 24267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24268 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 24269 _flag_k = FK_ADD; 24270 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 24271 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 24272 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 24273 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 24274 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 24275 L_2B04EEE4: 24276 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 24277 L_2B04EEE7: 24278 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 24279 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 24280 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 24281 _flag_k = FK_INC; 24282 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 24283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 24284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24285 _flag_k = FK_CMP; 24286 RECOMP_BACKEDGE(); 24287 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 24288 L_2B04EEF3: 24289 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 24290 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 24291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24292 _cf = 0; 24293 _flag_k = FK_TEST; 24294 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 24295 L_2B04EEFA: 24296 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 24297 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 24298 L_2B04EF02: 24299 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 24300 L_2B04EF05: 24301 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 24302 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 24303 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24304 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 24305 _cf = 0; 24306 _flag_k = FK_TEST; 24307 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 24308 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 24309 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 24310 edi = esi; /* 0x2B04EF16: mov edi, esi */ 24311 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 24312 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 24313 _cf = 0; 24314 _flag_k = FK_TEST; 24315 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 24316 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 24317 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 24318 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 24319 _flag_k = FK_DEC; 24320 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 24321 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 24322 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 24323 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 24324 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 24325 RECOMP_FLAGS_IN(); 24326 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 24327 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24328 _cf = 0; 24329 _flag_k = FK_NARROW(FK_TEST, 24); 24330 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 24331 L_2B04EF32: 24332 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 24333 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 24334 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 24335 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 24336 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 24337 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 24338 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 24339 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 24340 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 24341 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 24342 _cf = 0; 24343 _flag_k = FK_TEST; 24344 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 24345 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 24346 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 24347 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 24348 RECOMP_FLAGS_IN(); 24349 L_2B04EF4F: 24350 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 24351 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 24352 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 24353 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 24354 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 24355 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 24356 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 24357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24358 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 24359 _flag_k = FK_ADD; 24360 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 24361 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 24362 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 24363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24364 _flag_k = FK_CMP; 24365 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 24366 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 24367 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 24368 L_2B04EF76: 24369 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 24370 L_2B04EF78: 24371 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 24372 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 24373 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 24374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24375 _flag_k = FK_CMP; 24376 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 24377 L_2B04EF7F: 24378 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 24379 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 24380 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 24381 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 24382 RECOMP_FLAGS_IN(); 24383 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 24384 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 24385 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 24386 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 24387 RECOMP_FLAGS_IN(); 24388 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 24389 L_2B04EF9A: 24390 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 24391 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 24392 _cf = 0; 24393 _flag_k = FK_TEST; 24394 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 24395 L_2B04EF9E: 24396 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 24397 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 24398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24399 _flag_k = FK_CMP; 24400 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 24401 L_2B04EFA2: 24402 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 24403 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 24404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24405 _cf = 0; 24406 _flag_k = FK_TEST; 24407 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 24408 L_2B04EFA9: 24409 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 24410 L_2B04EFAE: 24411 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 24412 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 24413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24414 _flag_k = FK_NARROW(FK_CMP, 24); 24415 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 24416 L_2B04EFB4: 24417 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 24418 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 24419 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 24420 RECOMP_FLAGS_IN(); 24421 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 24422 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 24423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24424 _cf = 0; 24425 _flag_k = FK_TEST; 24426 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 24427 L_2B04EFC5: 24428 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 24429 L_2B04EFCA: 24430 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 24431 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 24432 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 24433 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 24434 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 24435 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 24436 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 24437 _flag_k = FK_NARROW(FK_INC, 24); 24438 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 24439 L_2B04EFDE: 24440 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 24441 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 24442 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 24443 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 24444 RECOMP_FLAGS_IN(); 24445 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 24446 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24447 _cf = 0; 24448 _flag_k = FK_NARROW(FK_TEST, 24); 24449 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 24450 L_2B04EFED: 24451 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 24452 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 24453 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 24454 _cf = 0; 24455 _flag_k = FK_TEST; 24456 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 24457 L_2B04EFF4: 24458 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 24459 L_2B04EFFA: 24460 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 24461 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 24462 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 24463 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 24464 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 24465 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 24466 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 24467 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 24468 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 24469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 24470 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 24471 _cf = 0; 24472 _flag_k = FK_TEST; 24473 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 24474 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 24475 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 24476 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 24477 RECOMP_FLAGS_IN(); 24478 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 24479 L_2B04F01C: 24480 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 24481 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24482 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 24483 _cf = 0; 24484 _flag_k = FK_TEST; 24485 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 24486 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 24487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24488 _flag_k = FK_CMP; 24489 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 24490 L_2B04F025: 24491 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 24492 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 24493 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 24494 edx = edx - 1; /* 0x2B04F02B: dec edx */ 24495 _flag_k = FK_DEC; 24496 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 24497 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 24498 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 24499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24500 _flag_k = FK_CMP; 24501 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 24502 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 24503 L_2B04F034: 24504 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 24505 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 24506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24507 _flag_k = FK_CMP; 24508 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 24509 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 24510 L_2B04F03B: 24511 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 24512 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 24513 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 24514 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 24515 RECOMP_FLAGS_IN(); 24516 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 24517 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 24518 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 24519 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 24520 RECOMP_FLAGS_IN(); 24521 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 24522 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 24523 RECOMP_FLAGS_IN(); 24524 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24526 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 24527 _flag_k = FK_ADD; 24528 L_2B04F062: 24529 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 24530 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 24531 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 24532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24533 _flag_k = FK_CMP; 24534 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 24535 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 24536 L_2B04F06D: 24537 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 24538 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 24539 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 24540 _flag_k = FK_DEC; 24541 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 24542 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24543 _cf = 0; 24544 _flag_k = FK_NARROW(FK_TEST, 24); 24545 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 24546 L_2B04F075: 24547 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 24548 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24550 _flag_k = FK_NARROW(FK_CMP, 24); 24551 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 24552 L_2B04F079: 24553 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24554 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 24555 _flag_k = FK_NARROW(FK_DEC, 24); 24556 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 24557 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 24558 L_2B04F07F: 24559 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 24560 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 24561 RECOMP_FLAGS_IN(); 24562 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24564 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 24565 _flag_k = FK_ADD; 24566 L_2B04F088: 24567 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 24568 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 24569 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 24570 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 24571 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 24572 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 24573 _cf = 0; 24574 _flag_k = FK_NARROW(FK_TEST, 24); 24575 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 24576 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 24577 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 24578 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 24579 L_2B04F0A2: 24580 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 24581 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 24582 L_2B04F0A9: 24583 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 24584 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 24585 L_2B04F0AD: 24586 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 24587 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 24588 RECOMP_FLAGS_IN(); 24589 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 24590 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 24591 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 24592 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 24593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 24594 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24595 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 24596 _flag_k = FK_ADD; 24597 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 24598 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 24599 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 24600 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 24601 RECOMP_FLAGS_IN(); 24602 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 24603 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 24604 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 24605 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 24606 _cf = 0; 24607 _flag_k = FK_NARROW(FK_TEST, 24); 24608 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 24609 L_2B04F0DB: 24610 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 24611 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 24612 _cf = 0; 24613 _flag_k = FK_TEST; 24614 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 24615 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 24616 L_2B04F0E4: 24617 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 24618 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 24619 L_2B04F0E8: 24620 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 24621 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 24622 L_2B04F0EC: 24623 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 24624 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 24625 L_2B04F0EF: 24626 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 24627 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 24628 RECOMP_FLAGS_IN(); 24629 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 24630 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 24631 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 24632 RECOMP_FLAGS_IN(); 24633 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 24634 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 24635 RECOMP_FLAGS_IN(); 24636 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 24637 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 24638 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 24639 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 24640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 24641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24642 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 24643 _flag_k = FK_ADD; 24644 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 24645 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 24646 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 24647 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 24648 RECOMP_FLAGS_IN(); 24649 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 24650 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 24651 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 24652 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 24653 _cf = 0; 24654 _flag_k = FK_NARROW(FK_TEST, 24); 24655 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 24656 L_2B04F12F: 24657 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 24658 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 24659 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 24660 L_2B04F136: 24661 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 24662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 24663 _cf = 0; 24664 _flag_k = FK_TEST; 24665 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 24666 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 24667 L_2B04F140: 24668 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 24669 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 24670 L_2B04F144: 24671 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 24672 L_2B04F146: 24673 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 24674 RECOMP_FLAGS_IN(); 24675 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 24676 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 24677 RECOMP_FLAGS_IN(); 24678 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 24679 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 24680 RECOMP_FLAGS_IN(); 24681 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 24682 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 24683 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 24684 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 24685 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24686 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 24687 _flag_k = FK_ADD; 24688 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 24689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24690 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 24691 _flag_k = FK_ADD; 24692 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 24693 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 24694 edi = edi + 1; /* 0x2B04F168: inc edi */ 24695 _flag_k = FK_INC; 24696 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24697 esi = 0; /* 0x2B04F169: xor esi, esi */ 24698 _cf = 0; 24699 _flag_k = FK_TEST; 24700 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 24701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 24702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24703 _flag_k = FK_CMP; 24704 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 24705 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 24706 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 24707 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 24708 L_2B04F17C: 24709 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 24710 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 24711 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 24712 _cf = 0; 24713 _flag_k = FK_NARROW(FK_TEST, 24); 24714 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 24715 L_2B04F183: 24716 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 24717 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24719 _flag_k = FK_NARROW(FK_CMP, 24); 24720 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 24721 L_2B04F188: 24722 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 24723 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 24724 _flag_k = FK_NARROW(FK_DEC, 24); 24725 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 24726 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 24727 L_2B04F18F: 24728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 24729 eax = eax - 1; /* 0x2B04F18F: dec eax */ 24730 _flag_k = FK_DEC; 24731 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 24732 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 24733 RECOMP_FLAGS_IN(); 24734 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24736 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 24737 _flag_k = FK_ADD; 24738 L_2B04F199: 24739 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 24740 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 24741 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 24742 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 24743 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 24744 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 24745 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 24746 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 24747 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 24748 RECOMP_FLAGS_IN(); 24749 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 24750 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 24751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24752 _flag_k = FK_CMP; 24753 RECOMP_BACKEDGE(); 24754 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 24755 L_2B04F1BC: 24756 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 24757 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 24758 L_2B04F1C1: 24759 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 24760 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 24761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 24762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24763 _flag_k = FK_CMP; 24764 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 24765 L_2B04F1C9: 24766 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 24767 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 24768 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 24769 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 24770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24771 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 24772 _flag_k = FK_CMP; 24773 L_2B04F1D7: 24774 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 24775 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 24776 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 24777 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 24778 RECOMP_FLAGS_IN(); 24779 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 24780 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 24781 RECOMP_FLAGS_IN(); 24782 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 24783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24784 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 24785 _flag_k = FK_ADD; 24786 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 24787 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 24788 _flag_k = FK_DEC; 24789 RECOMP_BACKEDGE(); 24790 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 24791 L_2B04F1F5: 24792 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 24793 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 24794 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 24795 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 24796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24797 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 24798 _flag_k = FK_ADD; 24799 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 24800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24801 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 24802 _flag_k = FK_ADD; 24803 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 24804 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 24805 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 24806 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 24807 RECOMP_FLAGS_IN(); 24808 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 24809 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 24810 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 24811 RECOMP_FLAGS_IN(); 24812 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 24813 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 24814 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 24815 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 24816 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24817 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 24818 _flag_k = FK_ADD; 24819 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 24820 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 24821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24822 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 24823 _flag_k = FK_ADD; 24824 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 24825 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 24826 RECOMP_FLAGS_IN(); 24827 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 24828 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 24829 RECOMP_FLAGS_IN(); 24830 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 24831 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 24832 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24833 _cf = 0; 24834 _flag_k = FK_NARROW(FK_TEST, 24); 24835 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 24836 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 24837 L_2B04F246: 24838 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 24839 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 24840 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 24841 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 24842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 24843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24844 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 24845 _flag_k = FK_ADD; 24846 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 24847 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 24848 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 24849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24850 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 24851 _flag_k = FK_ADD; 24852 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 24853 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 24854 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 24855 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 24856 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 24857 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 24858 RECOMP_FLAGS_IN(); 24859 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 24860 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 24861 RECOMP_FLAGS_IN(); 24862 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 24863 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 24864 RECOMP_FLAGS_IN(); 24865 L_2B04F283: 24866 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 24867 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 24868 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24869 _cf = 0; 24870 _flag_k = FK_NARROW(FK_TEST, 24); 24871 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 24872 L_2B04F28D: 24873 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 24874 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 24875 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 24876 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 24877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 24878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24879 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 24880 _flag_k = FK_ADD; 24881 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 24882 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 24883 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 24884 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24885 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 24886 _flag_k = FK_ADD; 24887 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 24888 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 24889 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 24890 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 24891 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 24892 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 24893 RECOMP_FLAGS_IN(); 24894 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 24895 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 24896 RECOMP_FLAGS_IN(); 24897 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 24898 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 24899 RECOMP_FLAGS_IN(); 24900 L_2B04F2D0: 24901 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 24902 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 24903 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 24904 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 24905 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 24906 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 24907 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 24908 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 24909 RECOMP_REGS_OUT(); 24910 } 24911 24912 void sub_2B04EE9D(void) { 24913 int _fpu_cmp = 0; 24914 uint32_t _cf = 0; 24915 int _df = 1; 24916 uint32_t _flag_k = FK_NONE; 24917 uint32_t _flag_a = 0, _flag_b = 0; 24918 uint32_t _itail_tgt = 0; 24919 RECOMP_REGS_LOCALS 24920 RECOMP_ENTER(0x2B04EE9Du); 24921 24922 goto L_2B04EE9D; 24923 L_2B04EDBF: 24924 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 24925 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 24926 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 24927 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 24928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 24929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24930 _flag_k = FK_CMP; 24931 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 24932 L_2B04EDD4: 24933 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 24934 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 24935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24936 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 24937 _flag_k = FK_ADD; 24938 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 24939 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 24940 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 24941 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 24942 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 24943 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 24944 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 24945 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 24946 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 24947 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 24948 RECOMP_FLAGS_IN(); 24949 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 24950 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24951 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 24952 _cf = 0; 24953 _flag_k = FK_TEST; 24954 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 24955 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 24956 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 24957 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 24958 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 24959 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 24960 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 24961 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 24962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24963 _flag_k = FK_CMP; 24964 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 24965 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 24966 L_2B04EE1E: 24967 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 24968 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 24969 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 24970 _cf = 0; 24971 _flag_k = FK_TEST; 24972 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 24973 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 24974 L_2B04EE28: 24975 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 24976 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 24977 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 24978 _cf = 0; 24979 _flag_k = FK_NARROW(FK_TEST, 24); 24980 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 24981 L_2B04EE2F: 24982 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 24983 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24985 _flag_k = FK_NARROW(FK_CMP, 24); 24986 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 24987 L_2B04EE34: 24988 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 24989 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 24990 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 24991 RECOMP_FLAGS_IN(); 24992 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 24993 L_2B04EE40: 24994 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 24995 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 24996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24997 _cf = 0; 24998 _flag_k = FK_TEST; 24999 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 25000 L_2B04EE46: 25001 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 25002 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 25003 L_2B04EE4D: 25004 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 25005 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 25006 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25007 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 25008 _flag_k = FK_ADD; 25009 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 25010 L_2B04EE53: 25011 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 25012 L_2B04EE58: 25013 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 25014 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 25015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25016 _flag_k = FK_NARROW(FK_CMP, 24); 25017 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 25018 L_2B04EE5D: 25019 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 25020 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 25021 _flag_k = FK_INC; 25022 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 25023 L_2B04EE63: 25024 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 25025 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 25026 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 25027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25028 _flag_k = FK_CMP; 25029 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 25030 L_2B04EE6A: 25031 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 25032 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 25033 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25034 _cf = 0; 25035 _flag_k = FK_TEST; 25036 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 25037 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 25038 L_2B04EE74: 25039 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 25040 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 25041 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25042 _cf = 0; 25043 _flag_k = FK_NARROW(FK_TEST, 24); 25044 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 25045 L_2B04EE7B: 25046 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 25047 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 25048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25049 _flag_k = FK_NARROW(FK_CMP, 24); 25050 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 25051 L_2B04EE7F: 25052 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 25053 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 25054 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 25055 RECOMP_FLAGS_IN(); 25056 L_2B04EE88: 25057 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 25058 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 25059 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25060 _cf = 0; 25061 _flag_k = FK_TEST; 25062 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 25063 L_2B04EE8E: 25064 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 25065 L_2B04EE92: 25066 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 25067 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 25068 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25069 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 25070 _flag_k = FK_ADD; 25071 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 25072 L_2B04EE98: 25073 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 25074 L_2B04EE9D: 25075 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 25076 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 25077 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 25078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 25079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25080 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 25081 _flag_k = FK_CMP; 25082 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 25083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 25084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25085 _flag_k = FK_CMP; 25086 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 25087 L_2B04EEAF: 25088 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 25089 RECOMP_FLAGS_IN(); 25090 L_2B04EEB5: 25091 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 25092 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 25093 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 25094 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 25095 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 25096 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 25097 RECOMP_FLAGS_IN(); 25098 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 25099 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25100 _cf = 0; 25101 _flag_k = FK_NARROW(FK_TEST, 24); 25102 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 25103 L_2B04EECB: 25104 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 25105 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 25106 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 25107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 25108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25109 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 25110 _flag_k = FK_ADD; 25111 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 25112 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 25113 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 25114 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 25115 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 25116 L_2B04EEE4: 25117 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 25118 L_2B04EEE7: 25119 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 25120 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 25121 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 25122 _flag_k = FK_INC; 25123 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 25124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 25125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25126 _flag_k = FK_CMP; 25127 RECOMP_BACKEDGE(); 25128 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 25129 L_2B04EEF3: 25130 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 25131 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 25132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25133 _cf = 0; 25134 _flag_k = FK_TEST; 25135 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 25136 L_2B04EEFA: 25137 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 25138 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 25139 L_2B04EF02: 25140 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 25141 L_2B04EF05: 25142 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 25143 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 25144 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 25145 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 25146 _cf = 0; 25147 _flag_k = FK_TEST; 25148 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 25149 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 25150 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 25151 edi = esi; /* 0x2B04EF16: mov edi, esi */ 25152 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 25153 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 25154 _cf = 0; 25155 _flag_k = FK_TEST; 25156 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 25157 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 25158 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 25159 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 25160 _flag_k = FK_DEC; 25161 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 25162 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 25163 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 25164 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 25165 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 25166 RECOMP_FLAGS_IN(); 25167 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 25168 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25169 _cf = 0; 25170 _flag_k = FK_NARROW(FK_TEST, 24); 25171 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 25172 L_2B04EF32: 25173 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 25174 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 25175 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 25176 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 25177 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 25178 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 25179 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 25180 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 25181 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 25182 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 25183 _cf = 0; 25184 _flag_k = FK_TEST; 25185 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 25186 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 25187 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 25188 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 25189 RECOMP_FLAGS_IN(); 25190 L_2B04EF4F: 25191 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 25192 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 25193 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 25194 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 25195 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 25196 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 25197 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 25198 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25199 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 25200 _flag_k = FK_ADD; 25201 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 25202 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 25203 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 25204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25205 _flag_k = FK_CMP; 25206 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 25207 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 25208 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 25209 L_2B04EF76: 25210 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 25211 L_2B04EF78: 25212 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 25213 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 25214 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 25215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25216 _flag_k = FK_CMP; 25217 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 25218 L_2B04EF7F: 25219 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 25220 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 25221 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 25222 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 25223 RECOMP_FLAGS_IN(); 25224 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 25225 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 25226 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 25227 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 25228 RECOMP_FLAGS_IN(); 25229 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 25230 L_2B04EF9A: 25231 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 25232 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 25233 _cf = 0; 25234 _flag_k = FK_TEST; 25235 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 25236 L_2B04EF9E: 25237 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 25238 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 25239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25240 _flag_k = FK_CMP; 25241 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 25242 L_2B04EFA2: 25243 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 25244 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 25245 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25246 _cf = 0; 25247 _flag_k = FK_TEST; 25248 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 25249 L_2B04EFA9: 25250 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 25251 L_2B04EFAE: 25252 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 25253 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 25254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25255 _flag_k = FK_NARROW(FK_CMP, 24); 25256 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 25257 L_2B04EFB4: 25258 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 25259 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 25260 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 25261 RECOMP_FLAGS_IN(); 25262 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 25263 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 25264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25265 _cf = 0; 25266 _flag_k = FK_TEST; 25267 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 25268 L_2B04EFC5: 25269 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 25270 L_2B04EFCA: 25271 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 25272 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 25273 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 25274 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 25275 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 25276 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 25277 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 25278 _flag_k = FK_NARROW(FK_INC, 24); 25279 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 25280 L_2B04EFDE: 25281 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 25282 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 25283 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 25284 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 25285 RECOMP_FLAGS_IN(); 25286 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 25287 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25288 _cf = 0; 25289 _flag_k = FK_NARROW(FK_TEST, 24); 25290 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 25291 L_2B04EFED: 25292 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 25293 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 25294 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 25295 _cf = 0; 25296 _flag_k = FK_TEST; 25297 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 25298 L_2B04EFF4: 25299 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 25300 L_2B04EFFA: 25301 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 25302 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 25303 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 25304 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 25305 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 25306 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 25307 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 25308 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 25309 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 25310 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 25311 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 25312 _cf = 0; 25313 _flag_k = FK_TEST; 25314 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 25315 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 25316 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 25317 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 25318 RECOMP_FLAGS_IN(); 25319 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 25320 L_2B04F01C: 25321 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 25322 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 25323 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 25324 _cf = 0; 25325 _flag_k = FK_TEST; 25326 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 25327 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 25328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25329 _flag_k = FK_CMP; 25330 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 25331 L_2B04F025: 25332 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 25333 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 25334 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 25335 edx = edx - 1; /* 0x2B04F02B: dec edx */ 25336 _flag_k = FK_DEC; 25337 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 25338 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 25339 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 25340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25341 _flag_k = FK_CMP; 25342 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 25343 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 25344 L_2B04F034: 25345 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 25346 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 25347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25348 _flag_k = FK_CMP; 25349 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 25350 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 25351 L_2B04F03B: 25352 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 25353 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 25354 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 25355 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 25356 RECOMP_FLAGS_IN(); 25357 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 25358 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 25359 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 25360 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 25361 RECOMP_FLAGS_IN(); 25362 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 25363 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 25364 RECOMP_FLAGS_IN(); 25365 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 25366 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25367 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 25368 _flag_k = FK_ADD; 25369 L_2B04F062: 25370 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 25371 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 25372 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 25373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25374 _flag_k = FK_CMP; 25375 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 25376 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 25377 L_2B04F06D: 25378 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 25379 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 25380 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 25381 _flag_k = FK_DEC; 25382 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 25383 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25384 _cf = 0; 25385 _flag_k = FK_NARROW(FK_TEST, 24); 25386 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 25387 L_2B04F075: 25388 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 25389 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 25390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25391 _flag_k = FK_NARROW(FK_CMP, 24); 25392 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 25393 L_2B04F079: 25394 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 25395 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 25396 _flag_k = FK_NARROW(FK_DEC, 24); 25397 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 25398 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 25399 L_2B04F07F: 25400 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 25401 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 25402 RECOMP_FLAGS_IN(); 25403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 25404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25405 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 25406 _flag_k = FK_ADD; 25407 L_2B04F088: 25408 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 25409 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 25410 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 25411 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 25412 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 25413 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 25414 _cf = 0; 25415 _flag_k = FK_NARROW(FK_TEST, 24); 25416 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 25417 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 25418 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 25419 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 25420 L_2B04F0A2: 25421 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 25422 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 25423 L_2B04F0A9: 25424 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 25425 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 25426 L_2B04F0AD: 25427 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 25428 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 25429 RECOMP_FLAGS_IN(); 25430 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 25431 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 25432 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 25433 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 25434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 25435 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25436 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 25437 _flag_k = FK_ADD; 25438 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 25439 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 25440 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 25441 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 25442 RECOMP_FLAGS_IN(); 25443 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 25444 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 25445 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 25446 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 25447 _cf = 0; 25448 _flag_k = FK_NARROW(FK_TEST, 24); 25449 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 25450 L_2B04F0DB: 25451 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 25452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 25453 _cf = 0; 25454 _flag_k = FK_TEST; 25455 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 25456 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 25457 L_2B04F0E4: 25458 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 25459 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 25460 L_2B04F0E8: 25461 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 25462 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 25463 L_2B04F0EC: 25464 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 25465 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 25466 L_2B04F0EF: 25467 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 25468 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 25469 RECOMP_FLAGS_IN(); 25470 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 25471 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 25472 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 25473 RECOMP_FLAGS_IN(); 25474 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 25475 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 25476 RECOMP_FLAGS_IN(); 25477 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 25478 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 25479 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 25480 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 25481 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 25482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25483 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 25484 _flag_k = FK_ADD; 25485 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 25486 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 25487 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 25488 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 25489 RECOMP_FLAGS_IN(); 25490 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 25491 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 25492 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 25493 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 25494 _cf = 0; 25495 _flag_k = FK_NARROW(FK_TEST, 24); 25496 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 25497 L_2B04F12F: 25498 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 25499 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 25500 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 25501 L_2B04F136: 25502 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 25503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 25504 _cf = 0; 25505 _flag_k = FK_TEST; 25506 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 25507 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 25508 L_2B04F140: 25509 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 25510 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 25511 L_2B04F144: 25512 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 25513 L_2B04F146: 25514 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 25515 RECOMP_FLAGS_IN(); 25516 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 25517 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 25518 RECOMP_FLAGS_IN(); 25519 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 25520 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 25521 RECOMP_FLAGS_IN(); 25522 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 25523 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 25524 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 25525 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 25526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25527 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 25528 _flag_k = FK_ADD; 25529 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 25530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25531 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 25532 _flag_k = FK_ADD; 25533 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 25534 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 25535 edi = edi + 1; /* 0x2B04F168: inc edi */ 25536 _flag_k = FK_INC; 25537 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 25538 esi = 0; /* 0x2B04F169: xor esi, esi */ 25539 _cf = 0; 25540 _flag_k = FK_TEST; 25541 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 25542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 25543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25544 _flag_k = FK_CMP; 25545 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 25546 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 25547 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 25548 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 25549 L_2B04F17C: 25550 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 25551 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 25552 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 25553 _cf = 0; 25554 _flag_k = FK_NARROW(FK_TEST, 24); 25555 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 25556 L_2B04F183: 25557 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 25558 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 25559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25560 _flag_k = FK_NARROW(FK_CMP, 24); 25561 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 25562 L_2B04F188: 25563 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 25564 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 25565 _flag_k = FK_NARROW(FK_DEC, 24); 25566 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 25567 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 25568 L_2B04F18F: 25569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 25570 eax = eax - 1; /* 0x2B04F18F: dec eax */ 25571 _flag_k = FK_DEC; 25572 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 25573 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 25574 RECOMP_FLAGS_IN(); 25575 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 25576 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25577 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 25578 _flag_k = FK_ADD; 25579 L_2B04F199: 25580 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 25581 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 25582 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 25583 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 25584 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 25585 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 25586 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 25587 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 25588 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 25589 RECOMP_FLAGS_IN(); 25590 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 25591 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 25592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25593 _flag_k = FK_CMP; 25594 RECOMP_BACKEDGE(); 25595 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 25596 L_2B04F1BC: 25597 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 25598 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 25599 L_2B04F1C1: 25600 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 25601 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 25602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 25603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25604 _flag_k = FK_CMP; 25605 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 25606 L_2B04F1C9: 25607 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 25608 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 25609 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 25610 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 25611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25612 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 25613 _flag_k = FK_CMP; 25614 L_2B04F1D7: 25615 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 25616 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 25617 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 25618 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 25619 RECOMP_FLAGS_IN(); 25620 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 25621 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 25622 RECOMP_FLAGS_IN(); 25623 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 25624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25625 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 25626 _flag_k = FK_ADD; 25627 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 25628 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 25629 _flag_k = FK_DEC; 25630 RECOMP_BACKEDGE(); 25631 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 25632 L_2B04F1F5: 25633 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 25634 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 25635 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 25636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 25637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25638 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 25639 _flag_k = FK_ADD; 25640 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 25641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25642 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 25643 _flag_k = FK_ADD; 25644 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 25645 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 25646 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 25647 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 25648 RECOMP_FLAGS_IN(); 25649 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 25650 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 25651 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 25652 RECOMP_FLAGS_IN(); 25653 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 25654 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 25655 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 25656 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 25657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25658 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 25659 _flag_k = FK_ADD; 25660 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 25661 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 25662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25663 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 25664 _flag_k = FK_ADD; 25665 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 25666 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 25667 RECOMP_FLAGS_IN(); 25668 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 25669 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 25670 RECOMP_FLAGS_IN(); 25671 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 25672 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 25673 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25674 _cf = 0; 25675 _flag_k = FK_NARROW(FK_TEST, 24); 25676 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 25677 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 25678 L_2B04F246: 25679 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 25680 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 25681 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 25682 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 25683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 25684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25685 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 25686 _flag_k = FK_ADD; 25687 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 25688 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 25689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 25690 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25691 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 25692 _flag_k = FK_ADD; 25693 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 25694 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 25695 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 25696 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 25697 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 25698 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 25699 RECOMP_FLAGS_IN(); 25700 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 25701 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 25702 RECOMP_FLAGS_IN(); 25703 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 25704 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 25705 RECOMP_FLAGS_IN(); 25706 L_2B04F283: 25707 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 25708 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 25709 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25710 _cf = 0; 25711 _flag_k = FK_NARROW(FK_TEST, 24); 25712 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 25713 L_2B04F28D: 25714 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 25715 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 25716 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 25717 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 25718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 25719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25720 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 25721 _flag_k = FK_ADD; 25722 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 25723 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 25724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 25725 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25726 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 25727 _flag_k = FK_ADD; 25728 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 25729 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 25730 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 25731 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 25732 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 25733 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 25734 RECOMP_FLAGS_IN(); 25735 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 25736 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 25737 RECOMP_FLAGS_IN(); 25738 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 25739 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 25740 RECOMP_FLAGS_IN(); 25741 L_2B04F2D0: 25742 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 25743 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 25744 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 25745 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 25746 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 25747 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 25748 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 25749 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 25750 RECOMP_REGS_OUT(); 25751 } 25752 25753 void sub_2B04EEE7(void) { 25754 int _fpu_cmp = 0; 25755 uint32_t _cf = 0; 25756 int _df = 1; 25757 uint32_t _flag_k = FK_NONE; 25758 uint32_t _flag_a = 0, _flag_b = 0; 25759 uint32_t _itail_tgt = 0; 25760 RECOMP_REGS_LOCALS 25761 RECOMP_ENTER(0x2B04EEE7u); 25762 25763 goto L_2B04EEE7; 25764 L_2B04EDBF: 25765 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 25766 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 25767 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 25768 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 25769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 25770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25771 _flag_k = FK_CMP; 25772 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 25773 L_2B04EDD4: 25774 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 25775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 25776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25777 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 25778 _flag_k = FK_ADD; 25779 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 25780 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 25781 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 25782 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 25783 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 25784 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 25785 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 25786 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 25787 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 25788 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 25789 RECOMP_FLAGS_IN(); 25790 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 25791 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 25792 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 25793 _cf = 0; 25794 _flag_k = FK_TEST; 25795 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 25796 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 25797 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 25798 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 25799 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 25800 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 25801 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 25802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 25803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25804 _flag_k = FK_CMP; 25805 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 25806 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 25807 L_2B04EE1E: 25808 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 25809 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 25810 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 25811 _cf = 0; 25812 _flag_k = FK_TEST; 25813 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 25814 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 25815 L_2B04EE28: 25816 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 25817 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 25818 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 25819 _cf = 0; 25820 _flag_k = FK_NARROW(FK_TEST, 24); 25821 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 25822 L_2B04EE2F: 25823 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 25824 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 25825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25826 _flag_k = FK_NARROW(FK_CMP, 24); 25827 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 25828 L_2B04EE34: 25829 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 25830 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 25831 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 25832 RECOMP_FLAGS_IN(); 25833 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 25834 L_2B04EE40: 25835 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 25836 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 25837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25838 _cf = 0; 25839 _flag_k = FK_TEST; 25840 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 25841 L_2B04EE46: 25842 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 25843 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 25844 L_2B04EE4D: 25845 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 25846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 25847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25848 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 25849 _flag_k = FK_ADD; 25850 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 25851 L_2B04EE53: 25852 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 25853 L_2B04EE58: 25854 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 25855 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 25856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25857 _flag_k = FK_NARROW(FK_CMP, 24); 25858 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 25859 L_2B04EE5D: 25860 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 25861 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 25862 _flag_k = FK_INC; 25863 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 25864 L_2B04EE63: 25865 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 25866 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 25867 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 25868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25869 _flag_k = FK_CMP; 25870 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 25871 L_2B04EE6A: 25872 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 25873 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 25874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25875 _cf = 0; 25876 _flag_k = FK_TEST; 25877 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 25878 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 25879 L_2B04EE74: 25880 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 25881 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 25882 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25883 _cf = 0; 25884 _flag_k = FK_NARROW(FK_TEST, 24); 25885 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 25886 L_2B04EE7B: 25887 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 25888 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 25889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25890 _flag_k = FK_NARROW(FK_CMP, 24); 25891 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 25892 L_2B04EE7F: 25893 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 25894 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 25895 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 25896 RECOMP_FLAGS_IN(); 25897 L_2B04EE88: 25898 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 25899 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 25900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25901 _cf = 0; 25902 _flag_k = FK_TEST; 25903 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 25904 L_2B04EE8E: 25905 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 25906 L_2B04EE92: 25907 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 25908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 25909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25910 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 25911 _flag_k = FK_ADD; 25912 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 25913 L_2B04EE98: 25914 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 25915 L_2B04EE9D: 25916 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 25917 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 25918 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 25919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 25920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25921 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 25922 _flag_k = FK_CMP; 25923 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 25924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 25925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25926 _flag_k = FK_CMP; 25927 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 25928 L_2B04EEAF: 25929 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 25930 RECOMP_FLAGS_IN(); 25931 L_2B04EEB5: 25932 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 25933 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 25934 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 25935 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 25936 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 25937 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 25938 RECOMP_FLAGS_IN(); 25939 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 25940 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25941 _cf = 0; 25942 _flag_k = FK_NARROW(FK_TEST, 24); 25943 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 25944 L_2B04EECB: 25945 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 25946 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 25947 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 25948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 25949 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25950 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 25951 _flag_k = FK_ADD; 25952 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 25953 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 25954 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 25955 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 25956 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 25957 L_2B04EEE4: 25958 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 25959 L_2B04EEE7: 25960 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 25961 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 25962 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 25963 _flag_k = FK_INC; 25964 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 25965 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 25966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25967 _flag_k = FK_CMP; 25968 RECOMP_BACKEDGE(); 25969 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 25970 L_2B04EEF3: 25971 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 25972 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 25973 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 25974 _cf = 0; 25975 _flag_k = FK_TEST; 25976 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 25977 L_2B04EEFA: 25978 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 25979 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 25980 L_2B04EF02: 25981 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 25982 L_2B04EF05: 25983 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 25984 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 25985 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 25986 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 25987 _cf = 0; 25988 _flag_k = FK_TEST; 25989 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 25990 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 25991 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 25992 edi = esi; /* 0x2B04EF16: mov edi, esi */ 25993 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 25994 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 25995 _cf = 0; 25996 _flag_k = FK_TEST; 25997 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 25998 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 25999 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 26000 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 26001 _flag_k = FK_DEC; 26002 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 26003 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 26004 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 26005 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 26006 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 26007 RECOMP_FLAGS_IN(); 26008 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 26009 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 26010 _cf = 0; 26011 _flag_k = FK_NARROW(FK_TEST, 24); 26012 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 26013 L_2B04EF32: 26014 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 26015 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 26016 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 26017 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 26018 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 26019 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 26020 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 26021 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 26022 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 26023 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 26024 _cf = 0; 26025 _flag_k = FK_TEST; 26026 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 26027 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 26028 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 26029 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 26030 RECOMP_FLAGS_IN(); 26031 L_2B04EF4F: 26032 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 26033 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 26034 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 26035 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 26036 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 26037 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 26038 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 26039 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26040 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 26041 _flag_k = FK_ADD; 26042 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 26043 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 26044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 26045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26046 _flag_k = FK_CMP; 26047 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 26048 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 26049 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 26050 L_2B04EF76: 26051 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 26052 L_2B04EF78: 26053 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 26054 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 26055 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 26056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26057 _flag_k = FK_CMP; 26058 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 26059 L_2B04EF7F: 26060 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 26061 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 26062 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 26063 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 26064 RECOMP_FLAGS_IN(); 26065 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 26066 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 26067 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 26068 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 26069 RECOMP_FLAGS_IN(); 26070 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 26071 L_2B04EF9A: 26072 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 26073 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 26074 _cf = 0; 26075 _flag_k = FK_TEST; 26076 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 26077 L_2B04EF9E: 26078 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 26079 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 26080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26081 _flag_k = FK_CMP; 26082 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 26083 L_2B04EFA2: 26084 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 26085 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 26086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 26087 _cf = 0; 26088 _flag_k = FK_TEST; 26089 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 26090 L_2B04EFA9: 26091 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 26092 L_2B04EFAE: 26093 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 26094 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 26095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26096 _flag_k = FK_NARROW(FK_CMP, 24); 26097 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 26098 L_2B04EFB4: 26099 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 26100 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 26101 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 26102 RECOMP_FLAGS_IN(); 26103 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 26104 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 26105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 26106 _cf = 0; 26107 _flag_k = FK_TEST; 26108 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 26109 L_2B04EFC5: 26110 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 26111 L_2B04EFCA: 26112 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 26113 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 26114 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 26115 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 26116 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 26117 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 26118 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 26119 _flag_k = FK_NARROW(FK_INC, 24); 26120 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 26121 L_2B04EFDE: 26122 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 26123 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 26124 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 26125 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 26126 RECOMP_FLAGS_IN(); 26127 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 26128 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 26129 _cf = 0; 26130 _flag_k = FK_NARROW(FK_TEST, 24); 26131 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 26132 L_2B04EFED: 26133 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 26134 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 26135 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 26136 _cf = 0; 26137 _flag_k = FK_TEST; 26138 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 26139 L_2B04EFF4: 26140 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 26141 L_2B04EFFA: 26142 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 26143 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 26144 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 26145 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 26146 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 26147 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 26148 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 26149 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 26150 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 26151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 26152 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 26153 _cf = 0; 26154 _flag_k = FK_TEST; 26155 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 26156 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 26157 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 26158 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 26159 RECOMP_FLAGS_IN(); 26160 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 26161 L_2B04F01C: 26162 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 26163 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 26164 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 26165 _cf = 0; 26166 _flag_k = FK_TEST; 26167 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 26168 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 26169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26170 _flag_k = FK_CMP; 26171 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 26172 L_2B04F025: 26173 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 26174 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 26175 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 26176 edx = edx - 1; /* 0x2B04F02B: dec edx */ 26177 _flag_k = FK_DEC; 26178 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 26179 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 26180 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 26181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26182 _flag_k = FK_CMP; 26183 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 26184 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 26185 L_2B04F034: 26186 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 26187 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 26188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26189 _flag_k = FK_CMP; 26190 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 26191 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 26192 L_2B04F03B: 26193 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 26194 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 26195 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 26196 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 26197 RECOMP_FLAGS_IN(); 26198 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 26199 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 26200 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 26201 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 26202 RECOMP_FLAGS_IN(); 26203 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 26204 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 26205 RECOMP_FLAGS_IN(); 26206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 26207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26208 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 26209 _flag_k = FK_ADD; 26210 L_2B04F062: 26211 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 26212 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 26213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 26214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26215 _flag_k = FK_CMP; 26216 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 26217 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 26218 L_2B04F06D: 26219 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 26220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 26221 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 26222 _flag_k = FK_DEC; 26223 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 26224 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 26225 _cf = 0; 26226 _flag_k = FK_NARROW(FK_TEST, 24); 26227 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 26228 L_2B04F075: 26229 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 26230 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 26231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26232 _flag_k = FK_NARROW(FK_CMP, 24); 26233 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 26234 L_2B04F079: 26235 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 26236 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 26237 _flag_k = FK_NARROW(FK_DEC, 24); 26238 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 26239 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 26240 L_2B04F07F: 26241 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 26242 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 26243 RECOMP_FLAGS_IN(); 26244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 26245 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26246 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 26247 _flag_k = FK_ADD; 26248 L_2B04F088: 26249 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 26250 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 26251 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 26252 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 26253 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 26254 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 26255 _cf = 0; 26256 _flag_k = FK_NARROW(FK_TEST, 24); 26257 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 26258 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 26259 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 26260 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 26261 L_2B04F0A2: 26262 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 26263 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 26264 L_2B04F0A9: 26265 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 26266 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 26267 L_2B04F0AD: 26268 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 26269 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 26270 RECOMP_FLAGS_IN(); 26271 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 26272 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 26273 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 26274 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 26275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 26276 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26277 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 26278 _flag_k = FK_ADD; 26279 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 26280 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 26281 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 26282 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 26283 RECOMP_FLAGS_IN(); 26284 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 26285 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 26286 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 26287 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 26288 _cf = 0; 26289 _flag_k = FK_NARROW(FK_TEST, 24); 26290 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 26291 L_2B04F0DB: 26292 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 26293 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 26294 _cf = 0; 26295 _flag_k = FK_TEST; 26296 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 26297 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 26298 L_2B04F0E4: 26299 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 26300 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 26301 L_2B04F0E8: 26302 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 26303 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 26304 L_2B04F0EC: 26305 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 26306 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 26307 L_2B04F0EF: 26308 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 26309 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 26310 RECOMP_FLAGS_IN(); 26311 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 26312 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 26313 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 26314 RECOMP_FLAGS_IN(); 26315 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 26316 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 26317 RECOMP_FLAGS_IN(); 26318 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 26319 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 26320 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 26321 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 26322 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 26323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26324 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 26325 _flag_k = FK_ADD; 26326 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 26327 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 26328 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 26329 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 26330 RECOMP_FLAGS_IN(); 26331 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 26332 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 26333 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 26334 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 26335 _cf = 0; 26336 _flag_k = FK_NARROW(FK_TEST, 24); 26337 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 26338 L_2B04F12F: 26339 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 26340 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 26341 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 26342 L_2B04F136: 26343 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 26344 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 26345 _cf = 0; 26346 _flag_k = FK_TEST; 26347 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 26348 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 26349 L_2B04F140: 26350 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 26351 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 26352 L_2B04F144: 26353 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 26354 L_2B04F146: 26355 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 26356 RECOMP_FLAGS_IN(); 26357 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 26358 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 26359 RECOMP_FLAGS_IN(); 26360 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 26361 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 26362 RECOMP_FLAGS_IN(); 26363 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 26364 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 26365 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 26366 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 26367 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26368 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 26369 _flag_k = FK_ADD; 26370 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 26371 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26372 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 26373 _flag_k = FK_ADD; 26374 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 26375 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 26376 edi = edi + 1; /* 0x2B04F168: inc edi */ 26377 _flag_k = FK_INC; 26378 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 26379 esi = 0; /* 0x2B04F169: xor esi, esi */ 26380 _cf = 0; 26381 _flag_k = FK_TEST; 26382 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 26383 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 26384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26385 _flag_k = FK_CMP; 26386 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 26387 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 26388 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 26389 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 26390 L_2B04F17C: 26391 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 26392 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 26393 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 26394 _cf = 0; 26395 _flag_k = FK_NARROW(FK_TEST, 24); 26396 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 26397 L_2B04F183: 26398 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 26399 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 26400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26401 _flag_k = FK_NARROW(FK_CMP, 24); 26402 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 26403 L_2B04F188: 26404 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 26405 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 26406 _flag_k = FK_NARROW(FK_DEC, 24); 26407 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 26408 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 26409 L_2B04F18F: 26410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 26411 eax = eax - 1; /* 0x2B04F18F: dec eax */ 26412 _flag_k = FK_DEC; 26413 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 26414 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 26415 RECOMP_FLAGS_IN(); 26416 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 26417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26418 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 26419 _flag_k = FK_ADD; 26420 L_2B04F199: 26421 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 26422 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 26423 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 26424 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 26425 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 26426 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 26427 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 26428 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 26429 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 26430 RECOMP_FLAGS_IN(); 26431 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 26432 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 26433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26434 _flag_k = FK_CMP; 26435 RECOMP_BACKEDGE(); 26436 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 26437 L_2B04F1BC: 26438 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 26439 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 26440 L_2B04F1C1: 26441 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 26442 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 26443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 26444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26445 _flag_k = FK_CMP; 26446 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 26447 L_2B04F1C9: 26448 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 26449 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 26450 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 26451 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 26452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26453 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 26454 _flag_k = FK_CMP; 26455 L_2B04F1D7: 26456 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 26457 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 26458 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 26459 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 26460 RECOMP_FLAGS_IN(); 26461 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 26462 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 26463 RECOMP_FLAGS_IN(); 26464 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 26465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26466 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 26467 _flag_k = FK_ADD; 26468 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 26469 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 26470 _flag_k = FK_DEC; 26471 RECOMP_BACKEDGE(); 26472 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 26473 L_2B04F1F5: 26474 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 26475 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 26476 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 26477 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 26478 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26479 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 26480 _flag_k = FK_ADD; 26481 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 26482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26483 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 26484 _flag_k = FK_ADD; 26485 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 26486 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 26487 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 26488 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 26489 RECOMP_FLAGS_IN(); 26490 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 26491 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 26492 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 26493 RECOMP_FLAGS_IN(); 26494 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 26495 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 26496 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 26497 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 26498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26499 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 26500 _flag_k = FK_ADD; 26501 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 26502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 26503 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26504 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 26505 _flag_k = FK_ADD; 26506 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 26507 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 26508 RECOMP_FLAGS_IN(); 26509 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 26510 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 26511 RECOMP_FLAGS_IN(); 26512 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 26513 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 26514 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 26515 _cf = 0; 26516 _flag_k = FK_NARROW(FK_TEST, 24); 26517 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 26518 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 26519 L_2B04F246: 26520 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 26521 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 26522 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 26523 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 26524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 26525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26526 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 26527 _flag_k = FK_ADD; 26528 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 26529 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 26530 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 26531 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26532 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 26533 _flag_k = FK_ADD; 26534 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 26535 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 26536 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 26537 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 26538 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 26539 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 26540 RECOMP_FLAGS_IN(); 26541 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 26542 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 26543 RECOMP_FLAGS_IN(); 26544 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 26545 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 26546 RECOMP_FLAGS_IN(); 26547 L_2B04F283: 26548 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 26549 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 26550 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 26551 _cf = 0; 26552 _flag_k = FK_NARROW(FK_TEST, 24); 26553 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 26554 L_2B04F28D: 26555 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 26556 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 26557 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 26558 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 26559 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 26560 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26561 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 26562 _flag_k = FK_ADD; 26563 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 26564 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 26565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 26566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26567 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 26568 _flag_k = FK_ADD; 26569 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 26570 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 26571 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 26572 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 26573 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 26574 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 26575 RECOMP_FLAGS_IN(); 26576 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 26577 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 26578 RECOMP_FLAGS_IN(); 26579 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 26580 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 26581 RECOMP_FLAGS_IN(); 26582 L_2B04F2D0: 26583 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 26584 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 26585 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 26586 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 26587 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 26588 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 26589 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 26590 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 26591 RECOMP_REGS_OUT(); 26592 } 26593 26594 void sub_2B04EEFA(void) { 26595 int _fpu_cmp = 0; 26596 uint32_t _cf = 0; 26597 int _df = 1; 26598 uint32_t _flag_k = FK_NONE; 26599 uint32_t _flag_a = 0, _flag_b = 0; 26600 uint32_t _itail_tgt = 0; 26601 RECOMP_REGS_LOCALS 26602 RECOMP_ENTER(0x2B04EEFAu); 26603 26604 goto L_2B04EEFA; 26605 L_2B04EDBF: 26606 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 26607 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 26608 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 26609 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 26610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 26611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26612 _flag_k = FK_CMP; 26613 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 26614 L_2B04EDD4: 26615 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 26616 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 26617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26618 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 26619 _flag_k = FK_ADD; 26620 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 26621 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 26622 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 26623 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 26624 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 26625 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 26626 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 26627 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 26628 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 26629 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 26630 RECOMP_FLAGS_IN(); 26631 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 26632 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 26633 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 26634 _cf = 0; 26635 _flag_k = FK_TEST; 26636 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 26637 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 26638 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 26639 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 26640 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 26641 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 26642 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 26643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 26644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26645 _flag_k = FK_CMP; 26646 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 26647 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 26648 L_2B04EE1E: 26649 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 26650 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 26651 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 26652 _cf = 0; 26653 _flag_k = FK_TEST; 26654 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 26655 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 26656 L_2B04EE28: 26657 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 26658 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 26659 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 26660 _cf = 0; 26661 _flag_k = FK_NARROW(FK_TEST, 24); 26662 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 26663 L_2B04EE2F: 26664 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 26665 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 26666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26667 _flag_k = FK_NARROW(FK_CMP, 24); 26668 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 26669 L_2B04EE34: 26670 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 26671 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 26672 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 26673 RECOMP_FLAGS_IN(); 26674 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 26675 L_2B04EE40: 26676 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 26677 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 26678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 26679 _cf = 0; 26680 _flag_k = FK_TEST; 26681 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 26682 L_2B04EE46: 26683 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 26684 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 26685 L_2B04EE4D: 26686 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 26687 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 26688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26689 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 26690 _flag_k = FK_ADD; 26691 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 26692 L_2B04EE53: 26693 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 26694 L_2B04EE58: 26695 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 26696 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 26697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26698 _flag_k = FK_NARROW(FK_CMP, 24); 26699 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 26700 L_2B04EE5D: 26701 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 26702 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 26703 _flag_k = FK_INC; 26704 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 26705 L_2B04EE63: 26706 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 26707 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 26708 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 26709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26710 _flag_k = FK_CMP; 26711 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 26712 L_2B04EE6A: 26713 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 26714 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 26715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 26716 _cf = 0; 26717 _flag_k = FK_TEST; 26718 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 26719 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 26720 L_2B04EE74: 26721 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 26722 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 26723 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 26724 _cf = 0; 26725 _flag_k = FK_NARROW(FK_TEST, 24); 26726 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 26727 L_2B04EE7B: 26728 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 26729 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 26730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26731 _flag_k = FK_NARROW(FK_CMP, 24); 26732 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 26733 L_2B04EE7F: 26734 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 26735 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 26736 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 26737 RECOMP_FLAGS_IN(); 26738 L_2B04EE88: 26739 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 26740 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 26741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 26742 _cf = 0; 26743 _flag_k = FK_TEST; 26744 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 26745 L_2B04EE8E: 26746 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 26747 L_2B04EE92: 26748 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 26749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 26750 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26751 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 26752 _flag_k = FK_ADD; 26753 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 26754 L_2B04EE98: 26755 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 26756 L_2B04EE9D: 26757 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 26758 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 26759 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 26760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 26761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26762 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 26763 _flag_k = FK_CMP; 26764 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 26765 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 26766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26767 _flag_k = FK_CMP; 26768 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 26769 L_2B04EEAF: 26770 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 26771 RECOMP_FLAGS_IN(); 26772 L_2B04EEB5: 26773 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 26774 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 26775 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 26776 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 26777 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 26778 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 26779 RECOMP_FLAGS_IN(); 26780 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 26781 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 26782 _cf = 0; 26783 _flag_k = FK_NARROW(FK_TEST, 24); 26784 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 26785 L_2B04EECB: 26786 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 26787 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 26788 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 26789 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 26790 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26791 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 26792 _flag_k = FK_ADD; 26793 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 26794 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 26795 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 26796 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 26797 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 26798 L_2B04EEE4: 26799 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 26800 L_2B04EEE7: 26801 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 26802 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 26803 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 26804 _flag_k = FK_INC; 26805 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 26806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 26807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26808 _flag_k = FK_CMP; 26809 RECOMP_BACKEDGE(); 26810 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 26811 L_2B04EEF3: 26812 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 26813 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 26814 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 26815 _cf = 0; 26816 _flag_k = FK_TEST; 26817 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 26818 L_2B04EEFA: 26819 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 26820 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 26821 L_2B04EF02: 26822 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 26823 L_2B04EF05: 26824 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 26825 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 26826 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 26827 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 26828 _cf = 0; 26829 _flag_k = FK_TEST; 26830 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 26831 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 26832 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 26833 edi = esi; /* 0x2B04EF16: mov edi, esi */ 26834 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 26835 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 26836 _cf = 0; 26837 _flag_k = FK_TEST; 26838 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 26839 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 26840 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 26841 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 26842 _flag_k = FK_DEC; 26843 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 26844 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 26845 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 26846 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 26847 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 26848 RECOMP_FLAGS_IN(); 26849 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 26850 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 26851 _cf = 0; 26852 _flag_k = FK_NARROW(FK_TEST, 24); 26853 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 26854 L_2B04EF32: 26855 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 26856 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 26857 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 26858 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 26859 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 26860 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 26861 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 26862 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 26863 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 26864 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 26865 _cf = 0; 26866 _flag_k = FK_TEST; 26867 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 26868 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 26869 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 26870 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 26871 RECOMP_FLAGS_IN(); 26872 L_2B04EF4F: 26873 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 26874 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 26875 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 26876 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 26877 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 26878 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 26879 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 26880 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26881 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 26882 _flag_k = FK_ADD; 26883 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 26884 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 26885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 26886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26887 _flag_k = FK_CMP; 26888 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 26889 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 26890 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 26891 L_2B04EF76: 26892 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 26893 L_2B04EF78: 26894 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 26895 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 26896 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 26897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26898 _flag_k = FK_CMP; 26899 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 26900 L_2B04EF7F: 26901 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 26902 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 26903 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 26904 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 26905 RECOMP_FLAGS_IN(); 26906 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 26907 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 26908 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 26909 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 26910 RECOMP_FLAGS_IN(); 26911 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 26912 L_2B04EF9A: 26913 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 26914 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 26915 _cf = 0; 26916 _flag_k = FK_TEST; 26917 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 26918 L_2B04EF9E: 26919 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 26920 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 26921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26922 _flag_k = FK_CMP; 26923 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 26924 L_2B04EFA2: 26925 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 26926 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 26927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 26928 _cf = 0; 26929 _flag_k = FK_TEST; 26930 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 26931 L_2B04EFA9: 26932 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 26933 L_2B04EFAE: 26934 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 26935 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 26936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26937 _flag_k = FK_NARROW(FK_CMP, 24); 26938 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 26939 L_2B04EFB4: 26940 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 26941 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 26942 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 26943 RECOMP_FLAGS_IN(); 26944 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 26945 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 26946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 26947 _cf = 0; 26948 _flag_k = FK_TEST; 26949 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 26950 L_2B04EFC5: 26951 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 26952 L_2B04EFCA: 26953 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 26954 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 26955 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 26956 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 26957 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 26958 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 26959 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 26960 _flag_k = FK_NARROW(FK_INC, 24); 26961 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 26962 L_2B04EFDE: 26963 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 26964 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 26965 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 26966 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 26967 RECOMP_FLAGS_IN(); 26968 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 26969 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 26970 _cf = 0; 26971 _flag_k = FK_NARROW(FK_TEST, 24); 26972 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 26973 L_2B04EFED: 26974 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 26975 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 26976 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 26977 _cf = 0; 26978 _flag_k = FK_TEST; 26979 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 26980 L_2B04EFF4: 26981 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 26982 L_2B04EFFA: 26983 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 26984 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 26985 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 26986 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 26987 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 26988 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 26989 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 26990 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 26991 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 26992 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 26993 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 26994 _cf = 0; 26995 _flag_k = FK_TEST; 26996 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 26997 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 26998 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 26999 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 27000 RECOMP_FLAGS_IN(); 27001 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 27002 L_2B04F01C: 27003 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 27004 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 27005 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 27006 _cf = 0; 27007 _flag_k = FK_TEST; 27008 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 27009 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 27010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27011 _flag_k = FK_CMP; 27012 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 27013 L_2B04F025: 27014 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 27015 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 27016 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 27017 edx = edx - 1; /* 0x2B04F02B: dec edx */ 27018 _flag_k = FK_DEC; 27019 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 27020 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 27021 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 27022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27023 _flag_k = FK_CMP; 27024 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 27025 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 27026 L_2B04F034: 27027 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 27028 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 27029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27030 _flag_k = FK_CMP; 27031 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 27032 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 27033 L_2B04F03B: 27034 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 27035 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 27036 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 27037 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 27038 RECOMP_FLAGS_IN(); 27039 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 27040 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 27041 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 27042 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 27043 RECOMP_FLAGS_IN(); 27044 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 27045 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 27046 RECOMP_FLAGS_IN(); 27047 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 27048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27049 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 27050 _flag_k = FK_ADD; 27051 L_2B04F062: 27052 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 27053 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 27054 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 27055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27056 _flag_k = FK_CMP; 27057 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 27058 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 27059 L_2B04F06D: 27060 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 27061 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 27062 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 27063 _flag_k = FK_DEC; 27064 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 27065 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 27066 _cf = 0; 27067 _flag_k = FK_NARROW(FK_TEST, 24); 27068 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 27069 L_2B04F075: 27070 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 27071 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 27072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27073 _flag_k = FK_NARROW(FK_CMP, 24); 27074 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 27075 L_2B04F079: 27076 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 27077 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 27078 _flag_k = FK_NARROW(FK_DEC, 24); 27079 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 27080 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 27081 L_2B04F07F: 27082 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 27083 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 27084 RECOMP_FLAGS_IN(); 27085 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 27086 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27087 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 27088 _flag_k = FK_ADD; 27089 L_2B04F088: 27090 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 27091 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 27092 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 27093 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 27094 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 27095 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 27096 _cf = 0; 27097 _flag_k = FK_NARROW(FK_TEST, 24); 27098 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 27099 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 27100 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 27101 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 27102 L_2B04F0A2: 27103 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 27104 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 27105 L_2B04F0A9: 27106 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 27107 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 27108 L_2B04F0AD: 27109 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 27110 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 27111 RECOMP_FLAGS_IN(); 27112 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 27113 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 27114 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 27115 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 27116 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 27117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27118 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 27119 _flag_k = FK_ADD; 27120 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 27121 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 27122 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 27123 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 27124 RECOMP_FLAGS_IN(); 27125 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 27126 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 27127 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 27128 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 27129 _cf = 0; 27130 _flag_k = FK_NARROW(FK_TEST, 24); 27131 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 27132 L_2B04F0DB: 27133 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 27134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 27135 _cf = 0; 27136 _flag_k = FK_TEST; 27137 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 27138 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 27139 L_2B04F0E4: 27140 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 27141 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 27142 L_2B04F0E8: 27143 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 27144 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 27145 L_2B04F0EC: 27146 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 27147 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 27148 L_2B04F0EF: 27149 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 27150 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 27151 RECOMP_FLAGS_IN(); 27152 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 27153 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 27154 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 27155 RECOMP_FLAGS_IN(); 27156 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 27157 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 27158 RECOMP_FLAGS_IN(); 27159 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 27160 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 27161 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 27162 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 27163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 27164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27165 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 27166 _flag_k = FK_ADD; 27167 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 27168 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 27169 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 27170 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 27171 RECOMP_FLAGS_IN(); 27172 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 27173 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 27174 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 27175 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 27176 _cf = 0; 27177 _flag_k = FK_NARROW(FK_TEST, 24); 27178 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 27179 L_2B04F12F: 27180 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 27181 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 27182 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 27183 L_2B04F136: 27184 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 27185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 27186 _cf = 0; 27187 _flag_k = FK_TEST; 27188 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 27189 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 27190 L_2B04F140: 27191 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 27192 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 27193 L_2B04F144: 27194 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 27195 L_2B04F146: 27196 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 27197 RECOMP_FLAGS_IN(); 27198 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 27199 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 27200 RECOMP_FLAGS_IN(); 27201 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 27202 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 27203 RECOMP_FLAGS_IN(); 27204 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 27205 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 27206 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 27207 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 27208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27209 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 27210 _flag_k = FK_ADD; 27211 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 27212 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27213 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 27214 _flag_k = FK_ADD; 27215 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 27216 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 27217 edi = edi + 1; /* 0x2B04F168: inc edi */ 27218 _flag_k = FK_INC; 27219 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 27220 esi = 0; /* 0x2B04F169: xor esi, esi */ 27221 _cf = 0; 27222 _flag_k = FK_TEST; 27223 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 27224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 27225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27226 _flag_k = FK_CMP; 27227 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 27228 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 27229 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 27230 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 27231 L_2B04F17C: 27232 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 27233 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 27234 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 27235 _cf = 0; 27236 _flag_k = FK_NARROW(FK_TEST, 24); 27237 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 27238 L_2B04F183: 27239 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 27240 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 27241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27242 _flag_k = FK_NARROW(FK_CMP, 24); 27243 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 27244 L_2B04F188: 27245 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 27246 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 27247 _flag_k = FK_NARROW(FK_DEC, 24); 27248 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 27249 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 27250 L_2B04F18F: 27251 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 27252 eax = eax - 1; /* 0x2B04F18F: dec eax */ 27253 _flag_k = FK_DEC; 27254 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 27255 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 27256 RECOMP_FLAGS_IN(); 27257 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 27258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27259 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 27260 _flag_k = FK_ADD; 27261 L_2B04F199: 27262 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 27263 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 27264 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 27265 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 27266 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 27267 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 27268 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 27269 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 27270 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 27271 RECOMP_FLAGS_IN(); 27272 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 27273 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 27274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27275 _flag_k = FK_CMP; 27276 RECOMP_BACKEDGE(); 27277 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 27278 L_2B04F1BC: 27279 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 27280 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 27281 L_2B04F1C1: 27282 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 27283 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 27284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 27285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27286 _flag_k = FK_CMP; 27287 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 27288 L_2B04F1C9: 27289 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 27290 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 27291 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 27292 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 27293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27294 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 27295 _flag_k = FK_CMP; 27296 L_2B04F1D7: 27297 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 27298 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 27299 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 27300 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 27301 RECOMP_FLAGS_IN(); 27302 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 27303 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 27304 RECOMP_FLAGS_IN(); 27305 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 27306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27307 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 27308 _flag_k = FK_ADD; 27309 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 27310 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 27311 _flag_k = FK_DEC; 27312 RECOMP_BACKEDGE(); 27313 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 27314 L_2B04F1F5: 27315 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 27316 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 27317 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 27318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 27319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27320 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 27321 _flag_k = FK_ADD; 27322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 27323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27324 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 27325 _flag_k = FK_ADD; 27326 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 27327 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 27328 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 27329 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 27330 RECOMP_FLAGS_IN(); 27331 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 27332 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 27333 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 27334 RECOMP_FLAGS_IN(); 27335 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 27336 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 27337 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 27338 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 27339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27340 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 27341 _flag_k = FK_ADD; 27342 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 27343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 27344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27345 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 27346 _flag_k = FK_ADD; 27347 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 27348 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 27349 RECOMP_FLAGS_IN(); 27350 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 27351 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 27352 RECOMP_FLAGS_IN(); 27353 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 27354 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 27355 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 27356 _cf = 0; 27357 _flag_k = FK_NARROW(FK_TEST, 24); 27358 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 27359 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 27360 L_2B04F246: 27361 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 27362 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 27363 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 27364 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 27365 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 27366 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27367 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 27368 _flag_k = FK_ADD; 27369 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 27370 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 27371 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 27372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27373 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 27374 _flag_k = FK_ADD; 27375 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 27376 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 27377 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 27378 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 27379 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 27380 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 27381 RECOMP_FLAGS_IN(); 27382 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 27383 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 27384 RECOMP_FLAGS_IN(); 27385 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 27386 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 27387 RECOMP_FLAGS_IN(); 27388 L_2B04F283: 27389 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 27390 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 27391 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 27392 _cf = 0; 27393 _flag_k = FK_NARROW(FK_TEST, 24); 27394 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 27395 L_2B04F28D: 27396 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 27397 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 27398 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 27399 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 27400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 27401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27402 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 27403 _flag_k = FK_ADD; 27404 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 27405 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 27406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 27407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27408 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 27409 _flag_k = FK_ADD; 27410 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 27411 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 27412 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 27413 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 27414 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 27415 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 27416 RECOMP_FLAGS_IN(); 27417 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 27418 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 27419 RECOMP_FLAGS_IN(); 27420 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 27421 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 27422 RECOMP_FLAGS_IN(); 27423 L_2B04F2D0: 27424 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 27425 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 27426 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 27427 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 27428 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 27429 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 27430 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 27431 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 27432 RECOMP_REGS_OUT(); 27433 } 27434 27435 void sub_2B04EF05(void) { 27436 int _fpu_cmp = 0; 27437 uint32_t _cf = 0; 27438 int _df = 1; 27439 uint32_t _flag_k = FK_NONE; 27440 uint32_t _flag_a = 0, _flag_b = 0; 27441 uint32_t _itail_tgt = 0; 27442 RECOMP_REGS_LOCALS 27443 RECOMP_ENTER(0x2B04EF05u); 27444 27445 goto L_2B04EF05; 27446 L_2B04EDBF: 27447 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 27448 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 27449 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 27450 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 27451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 27452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27453 _flag_k = FK_CMP; 27454 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 27455 L_2B04EDD4: 27456 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 27457 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 27458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27459 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 27460 _flag_k = FK_ADD; 27461 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 27462 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 27463 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 27464 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 27465 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 27466 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 27467 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 27468 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 27469 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 27470 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 27471 RECOMP_FLAGS_IN(); 27472 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 27473 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 27474 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 27475 _cf = 0; 27476 _flag_k = FK_TEST; 27477 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 27478 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 27479 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 27480 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 27481 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 27482 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 27483 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 27484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 27485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27486 _flag_k = FK_CMP; 27487 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 27488 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 27489 L_2B04EE1E: 27490 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 27491 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 27492 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 27493 _cf = 0; 27494 _flag_k = FK_TEST; 27495 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 27496 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 27497 L_2B04EE28: 27498 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 27499 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 27500 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 27501 _cf = 0; 27502 _flag_k = FK_NARROW(FK_TEST, 24); 27503 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 27504 L_2B04EE2F: 27505 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 27506 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 27507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27508 _flag_k = FK_NARROW(FK_CMP, 24); 27509 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 27510 L_2B04EE34: 27511 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 27512 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 27513 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 27514 RECOMP_FLAGS_IN(); 27515 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 27516 L_2B04EE40: 27517 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 27518 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 27519 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 27520 _cf = 0; 27521 _flag_k = FK_TEST; 27522 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 27523 L_2B04EE46: 27524 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 27525 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 27526 L_2B04EE4D: 27527 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 27528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 27529 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27530 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 27531 _flag_k = FK_ADD; 27532 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 27533 L_2B04EE53: 27534 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 27535 L_2B04EE58: 27536 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 27537 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 27538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27539 _flag_k = FK_NARROW(FK_CMP, 24); 27540 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 27541 L_2B04EE5D: 27542 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 27543 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 27544 _flag_k = FK_INC; 27545 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 27546 L_2B04EE63: 27547 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 27548 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 27549 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 27550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27551 _flag_k = FK_CMP; 27552 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 27553 L_2B04EE6A: 27554 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 27555 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 27556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 27557 _cf = 0; 27558 _flag_k = FK_TEST; 27559 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 27560 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 27561 L_2B04EE74: 27562 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 27563 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 27564 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 27565 _cf = 0; 27566 _flag_k = FK_NARROW(FK_TEST, 24); 27567 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 27568 L_2B04EE7B: 27569 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 27570 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 27571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27572 _flag_k = FK_NARROW(FK_CMP, 24); 27573 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 27574 L_2B04EE7F: 27575 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 27576 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 27577 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 27578 RECOMP_FLAGS_IN(); 27579 L_2B04EE88: 27580 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 27581 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 27582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 27583 _cf = 0; 27584 _flag_k = FK_TEST; 27585 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 27586 L_2B04EE8E: 27587 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 27588 L_2B04EE92: 27589 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 27590 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 27591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27592 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 27593 _flag_k = FK_ADD; 27594 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 27595 L_2B04EE98: 27596 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 27597 L_2B04EE9D: 27598 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 27599 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 27600 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 27601 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 27602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27603 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 27604 _flag_k = FK_CMP; 27605 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 27606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 27607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27608 _flag_k = FK_CMP; 27609 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 27610 L_2B04EEAF: 27611 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 27612 RECOMP_FLAGS_IN(); 27613 L_2B04EEB5: 27614 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 27615 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 27616 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 27617 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 27618 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 27619 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 27620 RECOMP_FLAGS_IN(); 27621 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 27622 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 27623 _cf = 0; 27624 _flag_k = FK_NARROW(FK_TEST, 24); 27625 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 27626 L_2B04EECB: 27627 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 27628 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 27629 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 27630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 27631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27632 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 27633 _flag_k = FK_ADD; 27634 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 27635 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 27636 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 27637 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 27638 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 27639 L_2B04EEE4: 27640 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 27641 L_2B04EEE7: 27642 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 27643 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 27644 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 27645 _flag_k = FK_INC; 27646 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 27647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 27648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27649 _flag_k = FK_CMP; 27650 RECOMP_BACKEDGE(); 27651 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 27652 L_2B04EEF3: 27653 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 27654 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 27655 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 27656 _cf = 0; 27657 _flag_k = FK_TEST; 27658 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 27659 L_2B04EEFA: 27660 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 27661 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 27662 L_2B04EF02: 27663 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 27664 L_2B04EF05: 27665 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 27666 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 27667 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 27668 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 27669 _cf = 0; 27670 _flag_k = FK_TEST; 27671 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 27672 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 27673 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 27674 edi = esi; /* 0x2B04EF16: mov edi, esi */ 27675 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 27676 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 27677 _cf = 0; 27678 _flag_k = FK_TEST; 27679 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 27680 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 27681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 27682 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 27683 _flag_k = FK_DEC; 27684 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 27685 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 27686 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 27687 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 27688 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 27689 RECOMP_FLAGS_IN(); 27690 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 27691 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 27692 _cf = 0; 27693 _flag_k = FK_NARROW(FK_TEST, 24); 27694 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 27695 L_2B04EF32: 27696 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 27697 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 27698 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 27699 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 27700 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 27701 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 27702 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 27703 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 27704 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 27705 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 27706 _cf = 0; 27707 _flag_k = FK_TEST; 27708 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 27709 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 27710 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 27711 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 27712 RECOMP_FLAGS_IN(); 27713 L_2B04EF4F: 27714 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 27715 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 27716 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 27717 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 27718 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 27719 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 27720 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 27721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27722 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 27723 _flag_k = FK_ADD; 27724 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 27725 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 27726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 27727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27728 _flag_k = FK_CMP; 27729 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 27730 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 27731 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 27732 L_2B04EF76: 27733 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 27734 L_2B04EF78: 27735 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 27736 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 27737 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 27738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27739 _flag_k = FK_CMP; 27740 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 27741 L_2B04EF7F: 27742 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 27743 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 27744 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 27745 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 27746 RECOMP_FLAGS_IN(); 27747 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 27748 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 27749 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 27750 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 27751 RECOMP_FLAGS_IN(); 27752 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 27753 L_2B04EF9A: 27754 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 27755 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 27756 _cf = 0; 27757 _flag_k = FK_TEST; 27758 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 27759 L_2B04EF9E: 27760 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 27761 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 27762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27763 _flag_k = FK_CMP; 27764 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 27765 L_2B04EFA2: 27766 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 27767 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 27768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 27769 _cf = 0; 27770 _flag_k = FK_TEST; 27771 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 27772 L_2B04EFA9: 27773 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 27774 L_2B04EFAE: 27775 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 27776 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 27777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27778 _flag_k = FK_NARROW(FK_CMP, 24); 27779 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 27780 L_2B04EFB4: 27781 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 27782 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 27783 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 27784 RECOMP_FLAGS_IN(); 27785 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 27786 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 27787 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 27788 _cf = 0; 27789 _flag_k = FK_TEST; 27790 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 27791 L_2B04EFC5: 27792 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 27793 L_2B04EFCA: 27794 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 27795 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 27796 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 27797 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 27798 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 27799 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 27800 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 27801 _flag_k = FK_NARROW(FK_INC, 24); 27802 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 27803 L_2B04EFDE: 27804 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 27805 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 27806 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 27807 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 27808 RECOMP_FLAGS_IN(); 27809 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 27810 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 27811 _cf = 0; 27812 _flag_k = FK_NARROW(FK_TEST, 24); 27813 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 27814 L_2B04EFED: 27815 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 27816 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 27817 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 27818 _cf = 0; 27819 _flag_k = FK_TEST; 27820 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 27821 L_2B04EFF4: 27822 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 27823 L_2B04EFFA: 27824 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 27825 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 27826 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 27827 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 27828 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 27829 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 27830 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 27831 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 27832 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 27833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 27834 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 27835 _cf = 0; 27836 _flag_k = FK_TEST; 27837 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 27838 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 27839 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 27840 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 27841 RECOMP_FLAGS_IN(); 27842 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 27843 L_2B04F01C: 27844 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 27845 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 27846 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 27847 _cf = 0; 27848 _flag_k = FK_TEST; 27849 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 27850 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 27851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27852 _flag_k = FK_CMP; 27853 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 27854 L_2B04F025: 27855 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 27856 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 27857 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 27858 edx = edx - 1; /* 0x2B04F02B: dec edx */ 27859 _flag_k = FK_DEC; 27860 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 27861 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 27862 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 27863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27864 _flag_k = FK_CMP; 27865 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 27866 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 27867 L_2B04F034: 27868 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 27869 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 27870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27871 _flag_k = FK_CMP; 27872 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 27873 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 27874 L_2B04F03B: 27875 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 27876 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 27877 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 27878 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 27879 RECOMP_FLAGS_IN(); 27880 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 27881 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 27882 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 27883 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 27884 RECOMP_FLAGS_IN(); 27885 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 27886 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 27887 RECOMP_FLAGS_IN(); 27888 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 27889 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27890 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 27891 _flag_k = FK_ADD; 27892 L_2B04F062: 27893 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 27894 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 27895 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 27896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27897 _flag_k = FK_CMP; 27898 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 27899 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 27900 L_2B04F06D: 27901 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 27902 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 27903 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 27904 _flag_k = FK_DEC; 27905 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 27906 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 27907 _cf = 0; 27908 _flag_k = FK_NARROW(FK_TEST, 24); 27909 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 27910 L_2B04F075: 27911 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 27912 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 27913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27914 _flag_k = FK_NARROW(FK_CMP, 24); 27915 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 27916 L_2B04F079: 27917 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 27918 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 27919 _flag_k = FK_NARROW(FK_DEC, 24); 27920 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 27921 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 27922 L_2B04F07F: 27923 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 27924 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 27925 RECOMP_FLAGS_IN(); 27926 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 27927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27928 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 27929 _flag_k = FK_ADD; 27930 L_2B04F088: 27931 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 27932 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 27933 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 27934 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 27935 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 27936 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 27937 _cf = 0; 27938 _flag_k = FK_NARROW(FK_TEST, 24); 27939 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 27940 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 27941 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 27942 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 27943 L_2B04F0A2: 27944 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 27945 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 27946 L_2B04F0A9: 27947 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 27948 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 27949 L_2B04F0AD: 27950 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 27951 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 27952 RECOMP_FLAGS_IN(); 27953 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 27954 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 27955 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 27956 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 27957 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 27958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27959 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 27960 _flag_k = FK_ADD; 27961 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 27962 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 27963 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 27964 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 27965 RECOMP_FLAGS_IN(); 27966 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 27967 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 27968 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 27969 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 27970 _cf = 0; 27971 _flag_k = FK_NARROW(FK_TEST, 24); 27972 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 27973 L_2B04F0DB: 27974 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 27975 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 27976 _cf = 0; 27977 _flag_k = FK_TEST; 27978 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 27979 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 27980 L_2B04F0E4: 27981 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 27982 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 27983 L_2B04F0E8: 27984 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 27985 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 27986 L_2B04F0EC: 27987 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 27988 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 27989 L_2B04F0EF: 27990 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 27991 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 27992 RECOMP_FLAGS_IN(); 27993 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 27994 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 27995 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 27996 RECOMP_FLAGS_IN(); 27997 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 27998 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 27999 RECOMP_FLAGS_IN(); 28000 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 28001 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 28002 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 28003 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 28004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 28005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28006 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 28007 _flag_k = FK_ADD; 28008 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 28009 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 28010 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 28011 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 28012 RECOMP_FLAGS_IN(); 28013 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 28014 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 28015 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 28016 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 28017 _cf = 0; 28018 _flag_k = FK_NARROW(FK_TEST, 24); 28019 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 28020 L_2B04F12F: 28021 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 28022 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 28023 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 28024 L_2B04F136: 28025 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 28026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 28027 _cf = 0; 28028 _flag_k = FK_TEST; 28029 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 28030 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 28031 L_2B04F140: 28032 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 28033 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 28034 L_2B04F144: 28035 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 28036 L_2B04F146: 28037 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 28038 RECOMP_FLAGS_IN(); 28039 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 28040 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 28041 RECOMP_FLAGS_IN(); 28042 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 28043 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 28044 RECOMP_FLAGS_IN(); 28045 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 28046 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 28047 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 28048 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 28049 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28050 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 28051 _flag_k = FK_ADD; 28052 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 28053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28054 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 28055 _flag_k = FK_ADD; 28056 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 28057 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 28058 edi = edi + 1; /* 0x2B04F168: inc edi */ 28059 _flag_k = FK_INC; 28060 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 28061 esi = 0; /* 0x2B04F169: xor esi, esi */ 28062 _cf = 0; 28063 _flag_k = FK_TEST; 28064 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 28065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 28066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28067 _flag_k = FK_CMP; 28068 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 28069 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 28070 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 28071 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 28072 L_2B04F17C: 28073 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 28074 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 28075 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 28076 _cf = 0; 28077 _flag_k = FK_NARROW(FK_TEST, 24); 28078 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 28079 L_2B04F183: 28080 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 28081 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 28082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28083 _flag_k = FK_NARROW(FK_CMP, 24); 28084 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 28085 L_2B04F188: 28086 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 28087 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 28088 _flag_k = FK_NARROW(FK_DEC, 24); 28089 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 28090 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 28091 L_2B04F18F: 28092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 28093 eax = eax - 1; /* 0x2B04F18F: dec eax */ 28094 _flag_k = FK_DEC; 28095 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 28096 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 28097 RECOMP_FLAGS_IN(); 28098 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 28099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28100 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 28101 _flag_k = FK_ADD; 28102 L_2B04F199: 28103 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 28104 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 28105 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 28106 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 28107 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 28108 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 28109 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 28110 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 28111 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 28112 RECOMP_FLAGS_IN(); 28113 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 28114 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 28115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28116 _flag_k = FK_CMP; 28117 RECOMP_BACKEDGE(); 28118 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 28119 L_2B04F1BC: 28120 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 28121 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 28122 L_2B04F1C1: 28123 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 28124 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 28125 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 28126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28127 _flag_k = FK_CMP; 28128 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 28129 L_2B04F1C9: 28130 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 28131 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 28132 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 28133 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 28134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28135 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 28136 _flag_k = FK_CMP; 28137 L_2B04F1D7: 28138 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 28139 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 28140 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 28141 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 28142 RECOMP_FLAGS_IN(); 28143 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 28144 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 28145 RECOMP_FLAGS_IN(); 28146 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 28147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28148 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 28149 _flag_k = FK_ADD; 28150 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 28151 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 28152 _flag_k = FK_DEC; 28153 RECOMP_BACKEDGE(); 28154 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 28155 L_2B04F1F5: 28156 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 28157 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 28158 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 28159 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 28160 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28161 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 28162 _flag_k = FK_ADD; 28163 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 28164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28165 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 28166 _flag_k = FK_ADD; 28167 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 28168 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 28169 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 28170 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 28171 RECOMP_FLAGS_IN(); 28172 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 28173 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 28174 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 28175 RECOMP_FLAGS_IN(); 28176 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 28177 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 28178 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 28179 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 28180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28181 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 28182 _flag_k = FK_ADD; 28183 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 28184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 28185 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28186 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 28187 _flag_k = FK_ADD; 28188 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 28189 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 28190 RECOMP_FLAGS_IN(); 28191 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 28192 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 28193 RECOMP_FLAGS_IN(); 28194 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 28195 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 28196 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 28197 _cf = 0; 28198 _flag_k = FK_NARROW(FK_TEST, 24); 28199 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 28200 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 28201 L_2B04F246: 28202 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 28203 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 28204 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 28205 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 28206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 28207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28208 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 28209 _flag_k = FK_ADD; 28210 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 28211 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 28212 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 28213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28214 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 28215 _flag_k = FK_ADD; 28216 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 28217 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 28218 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 28219 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 28220 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 28221 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 28222 RECOMP_FLAGS_IN(); 28223 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 28224 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 28225 RECOMP_FLAGS_IN(); 28226 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 28227 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 28228 RECOMP_FLAGS_IN(); 28229 L_2B04F283: 28230 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 28231 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 28232 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 28233 _cf = 0; 28234 _flag_k = FK_NARROW(FK_TEST, 24); 28235 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 28236 L_2B04F28D: 28237 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 28238 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 28239 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 28240 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 28241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 28242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28243 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 28244 _flag_k = FK_ADD; 28245 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 28246 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 28247 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 28248 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28249 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 28250 _flag_k = FK_ADD; 28251 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 28252 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 28253 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 28254 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 28255 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 28256 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 28257 RECOMP_FLAGS_IN(); 28258 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 28259 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 28260 RECOMP_FLAGS_IN(); 28261 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 28262 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 28263 RECOMP_FLAGS_IN(); 28264 L_2B04F2D0: 28265 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 28266 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 28267 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 28268 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 28269 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 28270 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 28271 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 28272 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 28273 RECOMP_REGS_OUT(); 28274 } 28275 28276 void sub_2B04F01C(void) { 28277 int _fpu_cmp = 0; 28278 uint32_t _cf = 0; 28279 int _df = 1; 28280 uint32_t _flag_k = FK_NONE; 28281 uint32_t _flag_a = 0, _flag_b = 0; 28282 uint32_t _itail_tgt = 0; 28283 RECOMP_REGS_LOCALS 28284 RECOMP_ENTER(0x2B04F01Cu); 28285 28286 goto L_2B04F01C; 28287 L_2B04EDBF: 28288 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 28289 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 28290 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 28291 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 28292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 28293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28294 _flag_k = FK_CMP; 28295 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 28296 L_2B04EDD4: 28297 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 28298 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 28299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28300 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 28301 _flag_k = FK_ADD; 28302 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 28303 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 28304 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 28305 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 28306 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 28307 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 28308 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 28309 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 28310 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 28311 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 28312 RECOMP_FLAGS_IN(); 28313 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 28314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 28315 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 28316 _cf = 0; 28317 _flag_k = FK_TEST; 28318 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 28319 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 28320 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 28321 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 28322 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 28323 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 28324 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 28325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 28326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28327 _flag_k = FK_CMP; 28328 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 28329 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 28330 L_2B04EE1E: 28331 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 28332 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 28333 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 28334 _cf = 0; 28335 _flag_k = FK_TEST; 28336 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 28337 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 28338 L_2B04EE28: 28339 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 28340 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 28341 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 28342 _cf = 0; 28343 _flag_k = FK_NARROW(FK_TEST, 24); 28344 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 28345 L_2B04EE2F: 28346 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 28347 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 28348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28349 _flag_k = FK_NARROW(FK_CMP, 24); 28350 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 28351 L_2B04EE34: 28352 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 28353 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 28354 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 28355 RECOMP_FLAGS_IN(); 28356 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 28357 L_2B04EE40: 28358 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 28359 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 28360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 28361 _cf = 0; 28362 _flag_k = FK_TEST; 28363 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 28364 L_2B04EE46: 28365 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 28366 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 28367 L_2B04EE4D: 28368 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 28369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 28370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28371 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 28372 _flag_k = FK_ADD; 28373 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 28374 L_2B04EE53: 28375 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 28376 L_2B04EE58: 28377 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 28378 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 28379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28380 _flag_k = FK_NARROW(FK_CMP, 24); 28381 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 28382 L_2B04EE5D: 28383 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 28384 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 28385 _flag_k = FK_INC; 28386 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 28387 L_2B04EE63: 28388 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 28389 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 28390 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 28391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28392 _flag_k = FK_CMP; 28393 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 28394 L_2B04EE6A: 28395 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 28396 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 28397 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 28398 _cf = 0; 28399 _flag_k = FK_TEST; 28400 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 28401 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 28402 L_2B04EE74: 28403 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 28404 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 28405 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 28406 _cf = 0; 28407 _flag_k = FK_NARROW(FK_TEST, 24); 28408 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 28409 L_2B04EE7B: 28410 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 28411 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 28412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28413 _flag_k = FK_NARROW(FK_CMP, 24); 28414 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 28415 L_2B04EE7F: 28416 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 28417 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 28418 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 28419 RECOMP_FLAGS_IN(); 28420 L_2B04EE88: 28421 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 28422 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 28423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 28424 _cf = 0; 28425 _flag_k = FK_TEST; 28426 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 28427 L_2B04EE8E: 28428 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 28429 L_2B04EE92: 28430 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 28431 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 28432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28433 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 28434 _flag_k = FK_ADD; 28435 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 28436 L_2B04EE98: 28437 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 28438 L_2B04EE9D: 28439 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 28440 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 28441 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 28442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 28443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28444 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 28445 _flag_k = FK_CMP; 28446 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 28447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 28448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28449 _flag_k = FK_CMP; 28450 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 28451 L_2B04EEAF: 28452 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 28453 RECOMP_FLAGS_IN(); 28454 L_2B04EEB5: 28455 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 28456 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 28457 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 28458 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 28459 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 28460 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 28461 RECOMP_FLAGS_IN(); 28462 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 28463 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 28464 _cf = 0; 28465 _flag_k = FK_NARROW(FK_TEST, 24); 28466 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 28467 L_2B04EECB: 28468 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 28469 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 28470 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 28471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 28472 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28473 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 28474 _flag_k = FK_ADD; 28475 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 28476 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 28477 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 28478 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 28479 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 28480 L_2B04EEE4: 28481 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 28482 L_2B04EEE7: 28483 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 28484 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 28485 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 28486 _flag_k = FK_INC; 28487 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 28488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 28489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28490 _flag_k = FK_CMP; 28491 RECOMP_BACKEDGE(); 28492 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 28493 L_2B04EEF3: 28494 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 28495 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 28496 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 28497 _cf = 0; 28498 _flag_k = FK_TEST; 28499 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 28500 L_2B04EEFA: 28501 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 28502 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 28503 L_2B04EF02: 28504 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 28505 L_2B04EF05: 28506 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 28507 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 28508 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 28509 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 28510 _cf = 0; 28511 _flag_k = FK_TEST; 28512 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 28513 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 28514 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 28515 edi = esi; /* 0x2B04EF16: mov edi, esi */ 28516 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 28517 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 28518 _cf = 0; 28519 _flag_k = FK_TEST; 28520 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 28521 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 28522 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 28523 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 28524 _flag_k = FK_DEC; 28525 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 28526 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 28527 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 28528 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 28529 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 28530 RECOMP_FLAGS_IN(); 28531 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 28532 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 28533 _cf = 0; 28534 _flag_k = FK_NARROW(FK_TEST, 24); 28535 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 28536 L_2B04EF32: 28537 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 28538 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 28539 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 28540 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 28541 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 28542 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 28543 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 28544 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 28545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 28546 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 28547 _cf = 0; 28548 _flag_k = FK_TEST; 28549 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 28550 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 28551 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 28552 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 28553 RECOMP_FLAGS_IN(); 28554 L_2B04EF4F: 28555 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 28556 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 28557 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 28558 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 28559 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 28560 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 28561 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 28562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28563 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 28564 _flag_k = FK_ADD; 28565 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 28566 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 28567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 28568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28569 _flag_k = FK_CMP; 28570 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 28571 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 28572 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 28573 L_2B04EF76: 28574 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 28575 L_2B04EF78: 28576 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 28577 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 28578 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 28579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28580 _flag_k = FK_CMP; 28581 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 28582 L_2B04EF7F: 28583 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 28584 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 28585 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 28586 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 28587 RECOMP_FLAGS_IN(); 28588 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 28589 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 28590 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 28591 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 28592 RECOMP_FLAGS_IN(); 28593 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 28594 L_2B04EF9A: 28595 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 28596 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 28597 _cf = 0; 28598 _flag_k = FK_TEST; 28599 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 28600 L_2B04EF9E: 28601 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 28602 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 28603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28604 _flag_k = FK_CMP; 28605 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 28606 L_2B04EFA2: 28607 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 28608 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 28609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 28610 _cf = 0; 28611 _flag_k = FK_TEST; 28612 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 28613 L_2B04EFA9: 28614 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 28615 L_2B04EFAE: 28616 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 28617 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 28618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28619 _flag_k = FK_NARROW(FK_CMP, 24); 28620 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 28621 L_2B04EFB4: 28622 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 28623 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 28624 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 28625 RECOMP_FLAGS_IN(); 28626 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 28627 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 28628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 28629 _cf = 0; 28630 _flag_k = FK_TEST; 28631 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 28632 L_2B04EFC5: 28633 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 28634 L_2B04EFCA: 28635 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 28636 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 28637 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 28638 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 28639 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 28640 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 28641 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 28642 _flag_k = FK_NARROW(FK_INC, 24); 28643 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 28644 L_2B04EFDE: 28645 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 28646 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 28647 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 28648 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 28649 RECOMP_FLAGS_IN(); 28650 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 28651 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 28652 _cf = 0; 28653 _flag_k = FK_NARROW(FK_TEST, 24); 28654 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 28655 L_2B04EFED: 28656 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 28657 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 28658 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 28659 _cf = 0; 28660 _flag_k = FK_TEST; 28661 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 28662 L_2B04EFF4: 28663 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 28664 L_2B04EFFA: 28665 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 28666 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 28667 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 28668 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 28669 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 28670 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 28671 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 28672 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 28673 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 28674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 28675 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 28676 _cf = 0; 28677 _flag_k = FK_TEST; 28678 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 28679 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 28680 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 28681 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 28682 RECOMP_FLAGS_IN(); 28683 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 28684 L_2B04F01C: 28685 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 28686 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 28687 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 28688 _cf = 0; 28689 _flag_k = FK_TEST; 28690 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 28691 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 28692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28693 _flag_k = FK_CMP; 28694 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 28695 L_2B04F025: 28696 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 28697 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 28698 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 28699 edx = edx - 1; /* 0x2B04F02B: dec edx */ 28700 _flag_k = FK_DEC; 28701 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 28702 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 28703 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 28704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28705 _flag_k = FK_CMP; 28706 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 28707 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 28708 L_2B04F034: 28709 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 28710 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 28711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28712 _flag_k = FK_CMP; 28713 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 28714 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 28715 L_2B04F03B: 28716 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 28717 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 28718 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 28719 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 28720 RECOMP_FLAGS_IN(); 28721 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 28722 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 28723 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 28724 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 28725 RECOMP_FLAGS_IN(); 28726 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 28727 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 28728 RECOMP_FLAGS_IN(); 28729 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 28730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28731 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 28732 _flag_k = FK_ADD; 28733 L_2B04F062: 28734 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 28735 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 28736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 28737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28738 _flag_k = FK_CMP; 28739 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 28740 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 28741 L_2B04F06D: 28742 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 28743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 28744 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 28745 _flag_k = FK_DEC; 28746 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 28747 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 28748 _cf = 0; 28749 _flag_k = FK_NARROW(FK_TEST, 24); 28750 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 28751 L_2B04F075: 28752 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 28753 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 28754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28755 _flag_k = FK_NARROW(FK_CMP, 24); 28756 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 28757 L_2B04F079: 28758 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 28759 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 28760 _flag_k = FK_NARROW(FK_DEC, 24); 28761 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 28762 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 28763 L_2B04F07F: 28764 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 28765 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 28766 RECOMP_FLAGS_IN(); 28767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 28768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28769 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 28770 _flag_k = FK_ADD; 28771 L_2B04F088: 28772 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 28773 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 28774 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 28775 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 28776 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 28777 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 28778 _cf = 0; 28779 _flag_k = FK_NARROW(FK_TEST, 24); 28780 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 28781 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 28782 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 28783 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 28784 L_2B04F0A2: 28785 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 28786 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 28787 L_2B04F0A9: 28788 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 28789 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 28790 L_2B04F0AD: 28791 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 28792 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 28793 RECOMP_FLAGS_IN(); 28794 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 28795 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 28796 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 28797 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 28798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 28799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28800 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 28801 _flag_k = FK_ADD; 28802 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 28803 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 28804 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 28805 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 28806 RECOMP_FLAGS_IN(); 28807 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 28808 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 28809 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 28810 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 28811 _cf = 0; 28812 _flag_k = FK_NARROW(FK_TEST, 24); 28813 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 28814 L_2B04F0DB: 28815 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 28816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 28817 _cf = 0; 28818 _flag_k = FK_TEST; 28819 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 28820 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 28821 L_2B04F0E4: 28822 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 28823 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 28824 L_2B04F0E8: 28825 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 28826 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 28827 L_2B04F0EC: 28828 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 28829 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 28830 L_2B04F0EF: 28831 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 28832 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 28833 RECOMP_FLAGS_IN(); 28834 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 28835 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 28836 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 28837 RECOMP_FLAGS_IN(); 28838 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 28839 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 28840 RECOMP_FLAGS_IN(); 28841 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 28842 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 28843 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 28844 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 28845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 28846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28847 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 28848 _flag_k = FK_ADD; 28849 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 28850 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 28851 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 28852 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 28853 RECOMP_FLAGS_IN(); 28854 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 28855 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 28856 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 28857 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 28858 _cf = 0; 28859 _flag_k = FK_NARROW(FK_TEST, 24); 28860 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 28861 L_2B04F12F: 28862 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 28863 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 28864 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 28865 L_2B04F136: 28866 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 28867 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 28868 _cf = 0; 28869 _flag_k = FK_TEST; 28870 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 28871 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 28872 L_2B04F140: 28873 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 28874 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 28875 L_2B04F144: 28876 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 28877 L_2B04F146: 28878 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 28879 RECOMP_FLAGS_IN(); 28880 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 28881 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 28882 RECOMP_FLAGS_IN(); 28883 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 28884 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 28885 RECOMP_FLAGS_IN(); 28886 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 28887 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 28888 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 28889 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 28890 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28891 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 28892 _flag_k = FK_ADD; 28893 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 28894 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28895 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 28896 _flag_k = FK_ADD; 28897 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 28898 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 28899 edi = edi + 1; /* 0x2B04F168: inc edi */ 28900 _flag_k = FK_INC; 28901 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 28902 esi = 0; /* 0x2B04F169: xor esi, esi */ 28903 _cf = 0; 28904 _flag_k = FK_TEST; 28905 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 28906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 28907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28908 _flag_k = FK_CMP; 28909 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 28910 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 28911 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 28912 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 28913 L_2B04F17C: 28914 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 28915 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 28916 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 28917 _cf = 0; 28918 _flag_k = FK_NARROW(FK_TEST, 24); 28919 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 28920 L_2B04F183: 28921 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 28922 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 28923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28924 _flag_k = FK_NARROW(FK_CMP, 24); 28925 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 28926 L_2B04F188: 28927 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 28928 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 28929 _flag_k = FK_NARROW(FK_DEC, 24); 28930 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 28931 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 28932 L_2B04F18F: 28933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 28934 eax = eax - 1; /* 0x2B04F18F: dec eax */ 28935 _flag_k = FK_DEC; 28936 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 28937 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 28938 RECOMP_FLAGS_IN(); 28939 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 28940 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28941 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 28942 _flag_k = FK_ADD; 28943 L_2B04F199: 28944 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 28945 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 28946 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 28947 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 28948 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 28949 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 28950 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 28951 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 28952 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 28953 RECOMP_FLAGS_IN(); 28954 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 28955 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 28956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28957 _flag_k = FK_CMP; 28958 RECOMP_BACKEDGE(); 28959 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 28960 L_2B04F1BC: 28961 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 28962 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 28963 L_2B04F1C1: 28964 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 28965 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 28966 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 28967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28968 _flag_k = FK_CMP; 28969 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 28970 L_2B04F1C9: 28971 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 28972 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 28973 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 28974 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 28975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28976 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 28977 _flag_k = FK_CMP; 28978 L_2B04F1D7: 28979 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 28980 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 28981 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 28982 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 28983 RECOMP_FLAGS_IN(); 28984 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 28985 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 28986 RECOMP_FLAGS_IN(); 28987 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 28988 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28989 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 28990 _flag_k = FK_ADD; 28991 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 28992 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 28993 _flag_k = FK_DEC; 28994 RECOMP_BACKEDGE(); 28995 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 28996 L_2B04F1F5: 28997 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 28998 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 28999 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 29000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 29001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29002 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 29003 _flag_k = FK_ADD; 29004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 29005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29006 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 29007 _flag_k = FK_ADD; 29008 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 29009 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 29010 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 29011 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 29012 RECOMP_FLAGS_IN(); 29013 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 29014 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 29015 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 29016 RECOMP_FLAGS_IN(); 29017 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 29018 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 29019 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 29020 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 29021 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29022 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 29023 _flag_k = FK_ADD; 29024 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 29025 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 29026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29027 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 29028 _flag_k = FK_ADD; 29029 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 29030 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 29031 RECOMP_FLAGS_IN(); 29032 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 29033 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 29034 RECOMP_FLAGS_IN(); 29035 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 29036 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 29037 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 29038 _cf = 0; 29039 _flag_k = FK_NARROW(FK_TEST, 24); 29040 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 29041 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 29042 L_2B04F246: 29043 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 29044 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 29045 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 29046 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 29047 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 29048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29049 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 29050 _flag_k = FK_ADD; 29051 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 29052 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 29053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 29054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29055 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 29056 _flag_k = FK_ADD; 29057 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 29058 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 29059 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 29060 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 29061 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 29062 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 29063 RECOMP_FLAGS_IN(); 29064 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 29065 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 29066 RECOMP_FLAGS_IN(); 29067 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 29068 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 29069 RECOMP_FLAGS_IN(); 29070 L_2B04F283: 29071 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 29072 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 29073 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 29074 _cf = 0; 29075 _flag_k = FK_NARROW(FK_TEST, 24); 29076 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 29077 L_2B04F28D: 29078 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 29079 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 29080 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 29081 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 29082 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 29083 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29084 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 29085 _flag_k = FK_ADD; 29086 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 29087 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 29088 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 29089 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29090 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 29091 _flag_k = FK_ADD; 29092 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 29093 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 29094 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 29095 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 29096 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 29097 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 29098 RECOMP_FLAGS_IN(); 29099 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 29100 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 29101 RECOMP_FLAGS_IN(); 29102 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 29103 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 29104 RECOMP_FLAGS_IN(); 29105 L_2B04F2D0: 29106 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 29107 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 29108 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 29109 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 29110 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 29111 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 29112 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 29113 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 29114 RECOMP_REGS_OUT(); 29115 } 29116 29117 void sub_2B04F088(void) { 29118 int _fpu_cmp = 0; 29119 uint32_t _cf = 0; 29120 int _df = 1; 29121 uint32_t _flag_k = FK_NONE; 29122 uint32_t _flag_a = 0, _flag_b = 0; 29123 uint32_t _itail_tgt = 0; 29124 RECOMP_REGS_LOCALS 29125 RECOMP_ENTER(0x2B04F088u); 29126 29127 goto L_2B04F088; 29128 L_2B04EDBF: 29129 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 29130 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 29131 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 29132 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 29133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 29134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29135 _flag_k = FK_CMP; 29136 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 29137 L_2B04EDD4: 29138 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 29139 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 29140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29141 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 29142 _flag_k = FK_ADD; 29143 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 29144 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 29145 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 29146 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 29147 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 29148 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 29149 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 29150 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 29151 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 29152 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 29153 RECOMP_FLAGS_IN(); 29154 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 29155 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 29156 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 29157 _cf = 0; 29158 _flag_k = FK_TEST; 29159 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 29160 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 29161 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 29162 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 29163 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 29164 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 29165 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 29166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 29167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29168 _flag_k = FK_CMP; 29169 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 29170 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 29171 L_2B04EE1E: 29172 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 29173 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 29174 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 29175 _cf = 0; 29176 _flag_k = FK_TEST; 29177 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 29178 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 29179 L_2B04EE28: 29180 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 29181 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 29182 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 29183 _cf = 0; 29184 _flag_k = FK_NARROW(FK_TEST, 24); 29185 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 29186 L_2B04EE2F: 29187 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 29188 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 29189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29190 _flag_k = FK_NARROW(FK_CMP, 24); 29191 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 29192 L_2B04EE34: 29193 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 29194 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 29195 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 29196 RECOMP_FLAGS_IN(); 29197 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 29198 L_2B04EE40: 29199 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 29200 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 29201 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 29202 _cf = 0; 29203 _flag_k = FK_TEST; 29204 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 29205 L_2B04EE46: 29206 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 29207 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 29208 L_2B04EE4D: 29209 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 29210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 29211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29212 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 29213 _flag_k = FK_ADD; 29214 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 29215 L_2B04EE53: 29216 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 29217 L_2B04EE58: 29218 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 29219 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 29220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29221 _flag_k = FK_NARROW(FK_CMP, 24); 29222 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 29223 L_2B04EE5D: 29224 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 29225 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 29226 _flag_k = FK_INC; 29227 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 29228 L_2B04EE63: 29229 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 29230 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 29231 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 29232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29233 _flag_k = FK_CMP; 29234 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 29235 L_2B04EE6A: 29236 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 29237 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 29238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 29239 _cf = 0; 29240 _flag_k = FK_TEST; 29241 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 29242 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 29243 L_2B04EE74: 29244 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 29245 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 29246 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 29247 _cf = 0; 29248 _flag_k = FK_NARROW(FK_TEST, 24); 29249 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 29250 L_2B04EE7B: 29251 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 29252 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 29253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29254 _flag_k = FK_NARROW(FK_CMP, 24); 29255 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 29256 L_2B04EE7F: 29257 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 29258 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 29259 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 29260 RECOMP_FLAGS_IN(); 29261 L_2B04EE88: 29262 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 29263 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 29264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 29265 _cf = 0; 29266 _flag_k = FK_TEST; 29267 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 29268 L_2B04EE8E: 29269 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 29270 L_2B04EE92: 29271 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 29272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 29273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29274 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 29275 _flag_k = FK_ADD; 29276 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 29277 L_2B04EE98: 29278 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 29279 L_2B04EE9D: 29280 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 29281 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 29282 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 29283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 29284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29285 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 29286 _flag_k = FK_CMP; 29287 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 29288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 29289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29290 _flag_k = FK_CMP; 29291 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 29292 L_2B04EEAF: 29293 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 29294 RECOMP_FLAGS_IN(); 29295 L_2B04EEB5: 29296 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 29297 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 29298 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 29299 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 29300 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 29301 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 29302 RECOMP_FLAGS_IN(); 29303 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 29304 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 29305 _cf = 0; 29306 _flag_k = FK_NARROW(FK_TEST, 24); 29307 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 29308 L_2B04EECB: 29309 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 29310 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 29311 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 29312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 29313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29314 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 29315 _flag_k = FK_ADD; 29316 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 29317 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 29318 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 29319 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 29320 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 29321 L_2B04EEE4: 29322 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 29323 L_2B04EEE7: 29324 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 29325 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 29326 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 29327 _flag_k = FK_INC; 29328 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 29329 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 29330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29331 _flag_k = FK_CMP; 29332 RECOMP_BACKEDGE(); 29333 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 29334 L_2B04EEF3: 29335 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 29336 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 29337 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 29338 _cf = 0; 29339 _flag_k = FK_TEST; 29340 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 29341 L_2B04EEFA: 29342 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 29343 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 29344 L_2B04EF02: 29345 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 29346 L_2B04EF05: 29347 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 29348 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 29349 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 29350 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 29351 _cf = 0; 29352 _flag_k = FK_TEST; 29353 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 29354 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 29355 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 29356 edi = esi; /* 0x2B04EF16: mov edi, esi */ 29357 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 29358 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 29359 _cf = 0; 29360 _flag_k = FK_TEST; 29361 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 29362 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 29363 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 29364 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 29365 _flag_k = FK_DEC; 29366 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 29367 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 29368 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 29369 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 29370 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 29371 RECOMP_FLAGS_IN(); 29372 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 29373 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 29374 _cf = 0; 29375 _flag_k = FK_NARROW(FK_TEST, 24); 29376 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 29377 L_2B04EF32: 29378 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 29379 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 29380 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 29381 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 29382 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 29383 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 29384 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 29385 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 29386 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 29387 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 29388 _cf = 0; 29389 _flag_k = FK_TEST; 29390 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 29391 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 29392 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 29393 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 29394 RECOMP_FLAGS_IN(); 29395 L_2B04EF4F: 29396 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 29397 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 29398 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 29399 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 29400 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 29401 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 29402 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 29403 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29404 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 29405 _flag_k = FK_ADD; 29406 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 29407 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 29408 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 29409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29410 _flag_k = FK_CMP; 29411 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 29412 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 29413 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 29414 L_2B04EF76: 29415 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 29416 L_2B04EF78: 29417 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 29418 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 29419 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 29420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29421 _flag_k = FK_CMP; 29422 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 29423 L_2B04EF7F: 29424 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 29425 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 29426 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 29427 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 29428 RECOMP_FLAGS_IN(); 29429 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 29430 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 29431 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 29432 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 29433 RECOMP_FLAGS_IN(); 29434 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 29435 L_2B04EF9A: 29436 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 29437 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 29438 _cf = 0; 29439 _flag_k = FK_TEST; 29440 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 29441 L_2B04EF9E: 29442 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 29443 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 29444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29445 _flag_k = FK_CMP; 29446 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 29447 L_2B04EFA2: 29448 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 29449 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 29450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 29451 _cf = 0; 29452 _flag_k = FK_TEST; 29453 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 29454 L_2B04EFA9: 29455 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 29456 L_2B04EFAE: 29457 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 29458 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 29459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29460 _flag_k = FK_NARROW(FK_CMP, 24); 29461 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 29462 L_2B04EFB4: 29463 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 29464 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 29465 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 29466 RECOMP_FLAGS_IN(); 29467 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 29468 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 29469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 29470 _cf = 0; 29471 _flag_k = FK_TEST; 29472 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 29473 L_2B04EFC5: 29474 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 29475 L_2B04EFCA: 29476 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 29477 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 29478 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 29479 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 29480 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 29481 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 29482 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 29483 _flag_k = FK_NARROW(FK_INC, 24); 29484 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 29485 L_2B04EFDE: 29486 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 29487 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 29488 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 29489 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 29490 RECOMP_FLAGS_IN(); 29491 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 29492 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 29493 _cf = 0; 29494 _flag_k = FK_NARROW(FK_TEST, 24); 29495 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 29496 L_2B04EFED: 29497 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 29498 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 29499 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 29500 _cf = 0; 29501 _flag_k = FK_TEST; 29502 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 29503 L_2B04EFF4: 29504 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 29505 L_2B04EFFA: 29506 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 29507 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 29508 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 29509 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 29510 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 29511 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 29512 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 29513 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 29514 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 29515 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 29516 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 29517 _cf = 0; 29518 _flag_k = FK_TEST; 29519 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 29520 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 29521 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 29522 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 29523 RECOMP_FLAGS_IN(); 29524 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 29525 L_2B04F01C: 29526 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 29527 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 29528 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 29529 _cf = 0; 29530 _flag_k = FK_TEST; 29531 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 29532 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 29533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29534 _flag_k = FK_CMP; 29535 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 29536 L_2B04F025: 29537 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 29538 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 29539 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 29540 edx = edx - 1; /* 0x2B04F02B: dec edx */ 29541 _flag_k = FK_DEC; 29542 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 29543 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 29544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 29545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29546 _flag_k = FK_CMP; 29547 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 29548 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 29549 L_2B04F034: 29550 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 29551 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 29552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29553 _flag_k = FK_CMP; 29554 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 29555 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 29556 L_2B04F03B: 29557 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 29558 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 29559 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 29560 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 29561 RECOMP_FLAGS_IN(); 29562 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 29563 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 29564 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 29565 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 29566 RECOMP_FLAGS_IN(); 29567 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 29568 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 29569 RECOMP_FLAGS_IN(); 29570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 29571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29572 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 29573 _flag_k = FK_ADD; 29574 L_2B04F062: 29575 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 29576 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 29577 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 29578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29579 _flag_k = FK_CMP; 29580 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 29581 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 29582 L_2B04F06D: 29583 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 29584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 29585 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 29586 _flag_k = FK_DEC; 29587 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 29588 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 29589 _cf = 0; 29590 _flag_k = FK_NARROW(FK_TEST, 24); 29591 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 29592 L_2B04F075: 29593 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 29594 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 29595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29596 _flag_k = FK_NARROW(FK_CMP, 24); 29597 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 29598 L_2B04F079: 29599 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 29600 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 29601 _flag_k = FK_NARROW(FK_DEC, 24); 29602 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 29603 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 29604 L_2B04F07F: 29605 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 29606 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 29607 RECOMP_FLAGS_IN(); 29608 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 29609 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29610 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 29611 _flag_k = FK_ADD; 29612 L_2B04F088: 29613 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 29614 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 29615 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 29616 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 29617 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 29618 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 29619 _cf = 0; 29620 _flag_k = FK_NARROW(FK_TEST, 24); 29621 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 29622 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 29623 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 29624 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 29625 L_2B04F0A2: 29626 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 29627 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 29628 L_2B04F0A9: 29629 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 29630 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 29631 L_2B04F0AD: 29632 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 29633 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 29634 RECOMP_FLAGS_IN(); 29635 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 29636 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 29637 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 29638 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 29639 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 29640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29641 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 29642 _flag_k = FK_ADD; 29643 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 29644 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 29645 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 29646 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 29647 RECOMP_FLAGS_IN(); 29648 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 29649 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 29650 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 29651 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 29652 _cf = 0; 29653 _flag_k = FK_NARROW(FK_TEST, 24); 29654 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 29655 L_2B04F0DB: 29656 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 29657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 29658 _cf = 0; 29659 _flag_k = FK_TEST; 29660 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 29661 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 29662 L_2B04F0E4: 29663 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 29664 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 29665 L_2B04F0E8: 29666 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 29667 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 29668 L_2B04F0EC: 29669 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 29670 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 29671 L_2B04F0EF: 29672 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 29673 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 29674 RECOMP_FLAGS_IN(); 29675 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 29676 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 29677 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 29678 RECOMP_FLAGS_IN(); 29679 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 29680 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 29681 RECOMP_FLAGS_IN(); 29682 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 29683 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 29684 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 29685 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 29686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 29687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29688 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 29689 _flag_k = FK_ADD; 29690 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 29691 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 29692 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 29693 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 29694 RECOMP_FLAGS_IN(); 29695 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 29696 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 29697 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 29698 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 29699 _cf = 0; 29700 _flag_k = FK_NARROW(FK_TEST, 24); 29701 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 29702 L_2B04F12F: 29703 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 29704 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 29705 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 29706 L_2B04F136: 29707 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 29708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 29709 _cf = 0; 29710 _flag_k = FK_TEST; 29711 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 29712 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 29713 L_2B04F140: 29714 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 29715 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 29716 L_2B04F144: 29717 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 29718 L_2B04F146: 29719 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 29720 RECOMP_FLAGS_IN(); 29721 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 29722 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 29723 RECOMP_FLAGS_IN(); 29724 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 29725 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 29726 RECOMP_FLAGS_IN(); 29727 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 29728 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 29729 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 29730 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 29731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29732 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 29733 _flag_k = FK_ADD; 29734 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 29735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29736 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 29737 _flag_k = FK_ADD; 29738 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 29739 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 29740 edi = edi + 1; /* 0x2B04F168: inc edi */ 29741 _flag_k = FK_INC; 29742 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 29743 esi = 0; /* 0x2B04F169: xor esi, esi */ 29744 _cf = 0; 29745 _flag_k = FK_TEST; 29746 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 29747 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 29748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29749 _flag_k = FK_CMP; 29750 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 29751 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 29752 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 29753 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 29754 L_2B04F17C: 29755 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 29756 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 29757 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 29758 _cf = 0; 29759 _flag_k = FK_NARROW(FK_TEST, 24); 29760 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 29761 L_2B04F183: 29762 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 29763 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 29764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29765 _flag_k = FK_NARROW(FK_CMP, 24); 29766 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 29767 L_2B04F188: 29768 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 29769 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 29770 _flag_k = FK_NARROW(FK_DEC, 24); 29771 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 29772 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 29773 L_2B04F18F: 29774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 29775 eax = eax - 1; /* 0x2B04F18F: dec eax */ 29776 _flag_k = FK_DEC; 29777 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 29778 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 29779 RECOMP_FLAGS_IN(); 29780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 29781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29782 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 29783 _flag_k = FK_ADD; 29784 L_2B04F199: 29785 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 29786 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 29787 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 29788 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 29789 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 29790 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 29791 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 29792 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 29793 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 29794 RECOMP_FLAGS_IN(); 29795 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 29796 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 29797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29798 _flag_k = FK_CMP; 29799 RECOMP_BACKEDGE(); 29800 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 29801 L_2B04F1BC: 29802 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 29803 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 29804 L_2B04F1C1: 29805 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 29806 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 29807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 29808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29809 _flag_k = FK_CMP; 29810 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 29811 L_2B04F1C9: 29812 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 29813 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 29814 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 29815 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 29816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29817 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 29818 _flag_k = FK_CMP; 29819 L_2B04F1D7: 29820 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 29821 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 29822 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 29823 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 29824 RECOMP_FLAGS_IN(); 29825 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 29826 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 29827 RECOMP_FLAGS_IN(); 29828 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 29829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29830 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 29831 _flag_k = FK_ADD; 29832 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 29833 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 29834 _flag_k = FK_DEC; 29835 RECOMP_BACKEDGE(); 29836 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 29837 L_2B04F1F5: 29838 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 29839 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 29840 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 29841 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 29842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29843 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 29844 _flag_k = FK_ADD; 29845 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 29846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29847 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 29848 _flag_k = FK_ADD; 29849 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 29850 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 29851 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 29852 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 29853 RECOMP_FLAGS_IN(); 29854 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 29855 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 29856 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 29857 RECOMP_FLAGS_IN(); 29858 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 29859 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 29860 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 29861 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 29862 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29863 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 29864 _flag_k = FK_ADD; 29865 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 29866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 29867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29868 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 29869 _flag_k = FK_ADD; 29870 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 29871 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 29872 RECOMP_FLAGS_IN(); 29873 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 29874 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 29875 RECOMP_FLAGS_IN(); 29876 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 29877 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 29878 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 29879 _cf = 0; 29880 _flag_k = FK_NARROW(FK_TEST, 24); 29881 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 29882 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 29883 L_2B04F246: 29884 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 29885 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 29886 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 29887 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 29888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 29889 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29890 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 29891 _flag_k = FK_ADD; 29892 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 29893 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 29894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 29895 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29896 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 29897 _flag_k = FK_ADD; 29898 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 29899 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 29900 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 29901 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 29902 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 29903 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 29904 RECOMP_FLAGS_IN(); 29905 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 29906 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 29907 RECOMP_FLAGS_IN(); 29908 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 29909 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 29910 RECOMP_FLAGS_IN(); 29911 L_2B04F283: 29912 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 29913 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 29914 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 29915 _cf = 0; 29916 _flag_k = FK_NARROW(FK_TEST, 24); 29917 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 29918 L_2B04F28D: 29919 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 29920 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 29921 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 29922 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 29923 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 29924 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29925 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 29926 _flag_k = FK_ADD; 29927 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 29928 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 29929 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 29930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29931 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 29932 _flag_k = FK_ADD; 29933 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 29934 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 29935 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 29936 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 29937 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 29938 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 29939 RECOMP_FLAGS_IN(); 29940 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 29941 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 29942 RECOMP_FLAGS_IN(); 29943 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 29944 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 29945 RECOMP_FLAGS_IN(); 29946 L_2B04F2D0: 29947 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 29948 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 29949 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 29950 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 29951 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 29952 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 29953 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 29954 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 29955 RECOMP_REGS_OUT(); 29956 } 29957 29958 void sub_2B04F0AD(void) { 29959 int _fpu_cmp = 0; 29960 uint32_t _cf = 0; 29961 int _df = 1; 29962 uint32_t _flag_k = FK_NONE; 29963 uint32_t _flag_a = 0, _flag_b = 0; 29964 uint32_t _itail_tgt = 0; 29965 RECOMP_REGS_LOCALS 29966 RECOMP_ENTER(0x2B04F0ADu); 29967 29968 goto L_2B04F0AD; 29969 L_2B04EDBF: 29970 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 29971 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 29972 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 29973 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 29974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 29975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29976 _flag_k = FK_CMP; 29977 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 29978 L_2B04EDD4: 29979 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 29980 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 29981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29982 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 29983 _flag_k = FK_ADD; 29984 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 29985 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 29986 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 29987 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 29988 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 29989 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 29990 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 29991 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 29992 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 29993 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 29994 RECOMP_FLAGS_IN(); 29995 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 29996 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 29997 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 29998 _cf = 0; 29999 _flag_k = FK_TEST; 30000 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 30001 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 30002 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 30003 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 30004 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 30005 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 30006 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 30007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 30008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30009 _flag_k = FK_CMP; 30010 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 30011 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 30012 L_2B04EE1E: 30013 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 30014 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 30015 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 30016 _cf = 0; 30017 _flag_k = FK_TEST; 30018 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 30019 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 30020 L_2B04EE28: 30021 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 30022 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 30023 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 30024 _cf = 0; 30025 _flag_k = FK_NARROW(FK_TEST, 24); 30026 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 30027 L_2B04EE2F: 30028 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 30029 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 30030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30031 _flag_k = FK_NARROW(FK_CMP, 24); 30032 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 30033 L_2B04EE34: 30034 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 30035 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 30036 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 30037 RECOMP_FLAGS_IN(); 30038 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 30039 L_2B04EE40: 30040 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 30041 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 30042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30043 _cf = 0; 30044 _flag_k = FK_TEST; 30045 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 30046 L_2B04EE46: 30047 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 30048 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 30049 L_2B04EE4D: 30050 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 30051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 30052 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30053 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 30054 _flag_k = FK_ADD; 30055 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 30056 L_2B04EE53: 30057 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 30058 L_2B04EE58: 30059 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 30060 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 30061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30062 _flag_k = FK_NARROW(FK_CMP, 24); 30063 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 30064 L_2B04EE5D: 30065 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 30066 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 30067 _flag_k = FK_INC; 30068 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 30069 L_2B04EE63: 30070 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 30071 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 30072 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 30073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30074 _flag_k = FK_CMP; 30075 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 30076 L_2B04EE6A: 30077 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 30078 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 30079 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30080 _cf = 0; 30081 _flag_k = FK_TEST; 30082 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 30083 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 30084 L_2B04EE74: 30085 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 30086 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 30087 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 30088 _cf = 0; 30089 _flag_k = FK_NARROW(FK_TEST, 24); 30090 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 30091 L_2B04EE7B: 30092 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 30093 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 30094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30095 _flag_k = FK_NARROW(FK_CMP, 24); 30096 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 30097 L_2B04EE7F: 30098 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 30099 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 30100 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 30101 RECOMP_FLAGS_IN(); 30102 L_2B04EE88: 30103 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 30104 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 30105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30106 _cf = 0; 30107 _flag_k = FK_TEST; 30108 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 30109 L_2B04EE8E: 30110 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 30111 L_2B04EE92: 30112 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 30113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 30114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30115 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 30116 _flag_k = FK_ADD; 30117 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 30118 L_2B04EE98: 30119 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 30120 L_2B04EE9D: 30121 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 30122 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 30123 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 30124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 30125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30126 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 30127 _flag_k = FK_CMP; 30128 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 30129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30131 _flag_k = FK_CMP; 30132 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 30133 L_2B04EEAF: 30134 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 30135 RECOMP_FLAGS_IN(); 30136 L_2B04EEB5: 30137 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 30138 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 30139 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 30140 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 30141 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 30142 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 30143 RECOMP_FLAGS_IN(); 30144 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 30145 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 30146 _cf = 0; 30147 _flag_k = FK_NARROW(FK_TEST, 24); 30148 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 30149 L_2B04EECB: 30150 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 30151 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 30152 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 30153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 30154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30155 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 30156 _flag_k = FK_ADD; 30157 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 30158 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 30159 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 30160 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 30161 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 30162 L_2B04EEE4: 30163 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 30164 L_2B04EEE7: 30165 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 30166 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 30167 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 30168 _flag_k = FK_INC; 30169 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 30170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 30171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30172 _flag_k = FK_CMP; 30173 RECOMP_BACKEDGE(); 30174 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 30175 L_2B04EEF3: 30176 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 30177 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 30178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30179 _cf = 0; 30180 _flag_k = FK_TEST; 30181 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 30182 L_2B04EEFA: 30183 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 30184 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 30185 L_2B04EF02: 30186 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 30187 L_2B04EF05: 30188 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 30189 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 30190 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 30191 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 30192 _cf = 0; 30193 _flag_k = FK_TEST; 30194 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 30195 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 30196 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 30197 edi = esi; /* 0x2B04EF16: mov edi, esi */ 30198 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 30199 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 30200 _cf = 0; 30201 _flag_k = FK_TEST; 30202 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 30203 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 30204 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 30205 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 30206 _flag_k = FK_DEC; 30207 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 30208 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 30209 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 30210 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 30211 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 30212 RECOMP_FLAGS_IN(); 30213 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 30214 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 30215 _cf = 0; 30216 _flag_k = FK_NARROW(FK_TEST, 24); 30217 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 30218 L_2B04EF32: 30219 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 30220 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 30221 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 30222 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 30223 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 30224 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 30225 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 30226 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 30227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 30228 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 30229 _cf = 0; 30230 _flag_k = FK_TEST; 30231 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 30232 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 30233 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 30234 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 30235 RECOMP_FLAGS_IN(); 30236 L_2B04EF4F: 30237 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 30238 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 30239 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 30240 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 30241 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 30242 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 30243 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 30244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30245 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 30246 _flag_k = FK_ADD; 30247 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 30248 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 30249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 30250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30251 _flag_k = FK_CMP; 30252 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 30253 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 30254 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 30255 L_2B04EF76: 30256 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 30257 L_2B04EF78: 30258 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 30259 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 30260 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 30261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30262 _flag_k = FK_CMP; 30263 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 30264 L_2B04EF7F: 30265 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 30266 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 30267 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 30268 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 30269 RECOMP_FLAGS_IN(); 30270 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 30271 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 30272 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 30273 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 30274 RECOMP_FLAGS_IN(); 30275 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 30276 L_2B04EF9A: 30277 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 30278 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 30279 _cf = 0; 30280 _flag_k = FK_TEST; 30281 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 30282 L_2B04EF9E: 30283 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 30284 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 30285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30286 _flag_k = FK_CMP; 30287 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 30288 L_2B04EFA2: 30289 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 30290 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 30291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30292 _cf = 0; 30293 _flag_k = FK_TEST; 30294 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 30295 L_2B04EFA9: 30296 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 30297 L_2B04EFAE: 30298 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 30299 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 30300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30301 _flag_k = FK_NARROW(FK_CMP, 24); 30302 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 30303 L_2B04EFB4: 30304 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 30305 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 30306 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 30307 RECOMP_FLAGS_IN(); 30308 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 30309 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 30310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30311 _cf = 0; 30312 _flag_k = FK_TEST; 30313 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 30314 L_2B04EFC5: 30315 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 30316 L_2B04EFCA: 30317 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 30318 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 30319 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 30320 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 30321 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 30322 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 30323 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 30324 _flag_k = FK_NARROW(FK_INC, 24); 30325 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 30326 L_2B04EFDE: 30327 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 30328 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 30329 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 30330 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 30331 RECOMP_FLAGS_IN(); 30332 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 30333 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 30334 _cf = 0; 30335 _flag_k = FK_NARROW(FK_TEST, 24); 30336 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 30337 L_2B04EFED: 30338 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 30339 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 30340 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 30341 _cf = 0; 30342 _flag_k = FK_TEST; 30343 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 30344 L_2B04EFF4: 30345 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 30346 L_2B04EFFA: 30347 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 30348 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 30349 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 30350 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 30351 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 30352 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 30353 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 30354 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 30355 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 30356 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 30357 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 30358 _cf = 0; 30359 _flag_k = FK_TEST; 30360 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 30361 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 30362 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 30363 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 30364 RECOMP_FLAGS_IN(); 30365 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 30366 L_2B04F01C: 30367 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 30368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 30369 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 30370 _cf = 0; 30371 _flag_k = FK_TEST; 30372 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 30373 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 30374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30375 _flag_k = FK_CMP; 30376 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 30377 L_2B04F025: 30378 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 30379 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 30380 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 30381 edx = edx - 1; /* 0x2B04F02B: dec edx */ 30382 _flag_k = FK_DEC; 30383 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 30384 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 30385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 30386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30387 _flag_k = FK_CMP; 30388 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 30389 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 30390 L_2B04F034: 30391 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 30392 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 30393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30394 _flag_k = FK_CMP; 30395 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 30396 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 30397 L_2B04F03B: 30398 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 30399 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 30400 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 30401 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 30402 RECOMP_FLAGS_IN(); 30403 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 30404 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 30405 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 30406 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 30407 RECOMP_FLAGS_IN(); 30408 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 30409 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 30410 RECOMP_FLAGS_IN(); 30411 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30413 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 30414 _flag_k = FK_ADD; 30415 L_2B04F062: 30416 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 30417 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 30418 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 30419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30420 _flag_k = FK_CMP; 30421 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 30422 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 30423 L_2B04F06D: 30424 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 30425 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 30426 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 30427 _flag_k = FK_DEC; 30428 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 30429 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 30430 _cf = 0; 30431 _flag_k = FK_NARROW(FK_TEST, 24); 30432 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 30433 L_2B04F075: 30434 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 30435 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 30436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30437 _flag_k = FK_NARROW(FK_CMP, 24); 30438 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 30439 L_2B04F079: 30440 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 30441 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 30442 _flag_k = FK_NARROW(FK_DEC, 24); 30443 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 30444 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 30445 L_2B04F07F: 30446 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 30447 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 30448 RECOMP_FLAGS_IN(); 30449 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30450 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30451 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 30452 _flag_k = FK_ADD; 30453 L_2B04F088: 30454 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 30455 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 30456 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 30457 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 30458 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 30459 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 30460 _cf = 0; 30461 _flag_k = FK_NARROW(FK_TEST, 24); 30462 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 30463 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 30464 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 30465 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 30466 L_2B04F0A2: 30467 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 30468 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 30469 L_2B04F0A9: 30470 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 30471 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 30472 L_2B04F0AD: 30473 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 30474 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 30475 RECOMP_FLAGS_IN(); 30476 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 30477 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 30478 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 30479 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 30480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 30481 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30482 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 30483 _flag_k = FK_ADD; 30484 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 30485 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 30486 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 30487 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 30488 RECOMP_FLAGS_IN(); 30489 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 30490 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 30491 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 30492 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 30493 _cf = 0; 30494 _flag_k = FK_NARROW(FK_TEST, 24); 30495 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 30496 L_2B04F0DB: 30497 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 30498 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 30499 _cf = 0; 30500 _flag_k = FK_TEST; 30501 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 30502 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 30503 L_2B04F0E4: 30504 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 30505 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 30506 L_2B04F0E8: 30507 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 30508 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 30509 L_2B04F0EC: 30510 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 30511 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 30512 L_2B04F0EF: 30513 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 30514 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 30515 RECOMP_FLAGS_IN(); 30516 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 30517 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 30518 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 30519 RECOMP_FLAGS_IN(); 30520 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 30521 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 30522 RECOMP_FLAGS_IN(); 30523 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 30524 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 30525 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 30526 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 30527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 30528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30529 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 30530 _flag_k = FK_ADD; 30531 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 30532 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 30533 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 30534 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 30535 RECOMP_FLAGS_IN(); 30536 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 30537 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 30538 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 30539 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 30540 _cf = 0; 30541 _flag_k = FK_NARROW(FK_TEST, 24); 30542 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 30543 L_2B04F12F: 30544 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 30545 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 30546 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 30547 L_2B04F136: 30548 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 30549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 30550 _cf = 0; 30551 _flag_k = FK_TEST; 30552 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 30553 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 30554 L_2B04F140: 30555 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 30556 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 30557 L_2B04F144: 30558 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 30559 L_2B04F146: 30560 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 30561 RECOMP_FLAGS_IN(); 30562 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 30563 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 30564 RECOMP_FLAGS_IN(); 30565 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 30566 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 30567 RECOMP_FLAGS_IN(); 30568 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 30569 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 30570 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 30571 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 30572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30573 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 30574 _flag_k = FK_ADD; 30575 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 30576 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30577 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 30578 _flag_k = FK_ADD; 30579 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 30580 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 30581 edi = edi + 1; /* 0x2B04F168: inc edi */ 30582 _flag_k = FK_INC; 30583 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 30584 esi = 0; /* 0x2B04F169: xor esi, esi */ 30585 _cf = 0; 30586 _flag_k = FK_TEST; 30587 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 30588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 30589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30590 _flag_k = FK_CMP; 30591 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 30592 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 30593 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 30594 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 30595 L_2B04F17C: 30596 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 30597 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 30598 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 30599 _cf = 0; 30600 _flag_k = FK_NARROW(FK_TEST, 24); 30601 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 30602 L_2B04F183: 30603 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 30604 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 30605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30606 _flag_k = FK_NARROW(FK_CMP, 24); 30607 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 30608 L_2B04F188: 30609 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 30610 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 30611 _flag_k = FK_NARROW(FK_DEC, 24); 30612 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 30613 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 30614 L_2B04F18F: 30615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30616 eax = eax - 1; /* 0x2B04F18F: dec eax */ 30617 _flag_k = FK_DEC; 30618 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 30619 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 30620 RECOMP_FLAGS_IN(); 30621 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30623 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 30624 _flag_k = FK_ADD; 30625 L_2B04F199: 30626 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 30627 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 30628 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 30629 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 30630 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 30631 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 30632 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 30633 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 30634 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 30635 RECOMP_FLAGS_IN(); 30636 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 30637 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 30638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30639 _flag_k = FK_CMP; 30640 RECOMP_BACKEDGE(); 30641 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 30642 L_2B04F1BC: 30643 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 30644 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 30645 L_2B04F1C1: 30646 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 30647 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 30648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 30649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30650 _flag_k = FK_CMP; 30651 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 30652 L_2B04F1C9: 30653 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 30654 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 30655 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 30656 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 30657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30658 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 30659 _flag_k = FK_CMP; 30660 L_2B04F1D7: 30661 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 30662 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 30663 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 30664 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 30665 RECOMP_FLAGS_IN(); 30666 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 30667 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 30668 RECOMP_FLAGS_IN(); 30669 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 30670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30671 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 30672 _flag_k = FK_ADD; 30673 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 30674 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 30675 _flag_k = FK_DEC; 30676 RECOMP_BACKEDGE(); 30677 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 30678 L_2B04F1F5: 30679 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 30680 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 30681 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 30682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 30683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30684 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 30685 _flag_k = FK_ADD; 30686 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 30687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30688 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 30689 _flag_k = FK_ADD; 30690 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 30691 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 30692 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 30693 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 30694 RECOMP_FLAGS_IN(); 30695 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 30696 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 30697 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 30698 RECOMP_FLAGS_IN(); 30699 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 30700 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 30701 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 30702 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 30703 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30704 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 30705 _flag_k = FK_ADD; 30706 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 30707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 30708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30709 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 30710 _flag_k = FK_ADD; 30711 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 30712 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 30713 RECOMP_FLAGS_IN(); 30714 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 30715 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 30716 RECOMP_FLAGS_IN(); 30717 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 30718 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 30719 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 30720 _cf = 0; 30721 _flag_k = FK_NARROW(FK_TEST, 24); 30722 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 30723 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 30724 L_2B04F246: 30725 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 30726 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 30727 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 30728 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 30729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 30730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30731 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 30732 _flag_k = FK_ADD; 30733 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 30734 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 30735 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 30736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30737 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 30738 _flag_k = FK_ADD; 30739 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 30740 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 30741 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 30742 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 30743 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 30744 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 30745 RECOMP_FLAGS_IN(); 30746 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 30747 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 30748 RECOMP_FLAGS_IN(); 30749 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 30750 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 30751 RECOMP_FLAGS_IN(); 30752 L_2B04F283: 30753 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 30754 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 30755 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 30756 _cf = 0; 30757 _flag_k = FK_NARROW(FK_TEST, 24); 30758 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 30759 L_2B04F28D: 30760 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 30761 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 30762 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 30763 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 30764 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 30765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30766 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 30767 _flag_k = FK_ADD; 30768 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 30769 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 30770 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 30771 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30772 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 30773 _flag_k = FK_ADD; 30774 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 30775 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 30776 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 30777 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 30778 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 30779 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 30780 RECOMP_FLAGS_IN(); 30781 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 30782 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 30783 RECOMP_FLAGS_IN(); 30784 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 30785 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 30786 RECOMP_FLAGS_IN(); 30787 L_2B04F2D0: 30788 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 30789 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 30790 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 30791 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 30792 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 30793 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 30794 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 30795 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 30796 RECOMP_REGS_OUT(); 30797 } 30798 30799 void sub_2B04F0EF(void) { 30800 int _fpu_cmp = 0; 30801 uint32_t _cf = 0; 30802 int _df = 1; 30803 uint32_t _flag_k = FK_NONE; 30804 uint32_t _flag_a = 0, _flag_b = 0; 30805 uint32_t _itail_tgt = 0; 30806 RECOMP_REGS_LOCALS 30807 RECOMP_ENTER(0x2B04F0EFu); 30808 30809 goto L_2B04F0EF; 30810 L_2B04EDBF: 30811 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 30812 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 30813 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 30814 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 30815 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 30816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30817 _flag_k = FK_CMP; 30818 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 30819 L_2B04EDD4: 30820 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 30821 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 30822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30823 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 30824 _flag_k = FK_ADD; 30825 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 30826 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 30827 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 30828 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 30829 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 30830 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 30831 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 30832 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 30833 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 30834 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 30835 RECOMP_FLAGS_IN(); 30836 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 30837 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 30838 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 30839 _cf = 0; 30840 _flag_k = FK_TEST; 30841 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 30842 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 30843 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 30844 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 30845 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 30846 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 30847 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 30848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 30849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30850 _flag_k = FK_CMP; 30851 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 30852 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 30853 L_2B04EE1E: 30854 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 30855 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 30856 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 30857 _cf = 0; 30858 _flag_k = FK_TEST; 30859 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 30860 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 30861 L_2B04EE28: 30862 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 30863 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 30864 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 30865 _cf = 0; 30866 _flag_k = FK_NARROW(FK_TEST, 24); 30867 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 30868 L_2B04EE2F: 30869 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 30870 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 30871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30872 _flag_k = FK_NARROW(FK_CMP, 24); 30873 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 30874 L_2B04EE34: 30875 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 30876 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 30877 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 30878 RECOMP_FLAGS_IN(); 30879 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 30880 L_2B04EE40: 30881 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 30882 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 30883 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30884 _cf = 0; 30885 _flag_k = FK_TEST; 30886 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 30887 L_2B04EE46: 30888 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 30889 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 30890 L_2B04EE4D: 30891 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 30892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 30893 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30894 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 30895 _flag_k = FK_ADD; 30896 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 30897 L_2B04EE53: 30898 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 30899 L_2B04EE58: 30900 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 30901 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 30902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30903 _flag_k = FK_NARROW(FK_CMP, 24); 30904 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 30905 L_2B04EE5D: 30906 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 30907 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 30908 _flag_k = FK_INC; 30909 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 30910 L_2B04EE63: 30911 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 30912 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 30913 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 30914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30915 _flag_k = FK_CMP; 30916 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 30917 L_2B04EE6A: 30918 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 30919 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 30920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30921 _cf = 0; 30922 _flag_k = FK_TEST; 30923 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 30924 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 30925 L_2B04EE74: 30926 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 30927 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 30928 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 30929 _cf = 0; 30930 _flag_k = FK_NARROW(FK_TEST, 24); 30931 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 30932 L_2B04EE7B: 30933 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 30934 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 30935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30936 _flag_k = FK_NARROW(FK_CMP, 24); 30937 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 30938 L_2B04EE7F: 30939 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 30940 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 30941 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 30942 RECOMP_FLAGS_IN(); 30943 L_2B04EE88: 30944 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 30945 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 30946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30947 _cf = 0; 30948 _flag_k = FK_TEST; 30949 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 30950 L_2B04EE8E: 30951 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 30952 L_2B04EE92: 30953 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 30954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 30955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30956 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 30957 _flag_k = FK_ADD; 30958 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 30959 L_2B04EE98: 30960 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 30961 L_2B04EE9D: 30962 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 30963 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 30964 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 30965 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 30966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30967 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 30968 _flag_k = FK_CMP; 30969 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 30970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30972 _flag_k = FK_CMP; 30973 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 30974 L_2B04EEAF: 30975 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 30976 RECOMP_FLAGS_IN(); 30977 L_2B04EEB5: 30978 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 30979 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 30980 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 30981 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 30982 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 30983 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 30984 RECOMP_FLAGS_IN(); 30985 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 30986 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 30987 _cf = 0; 30988 _flag_k = FK_NARROW(FK_TEST, 24); 30989 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 30990 L_2B04EECB: 30991 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 30992 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 30993 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 30994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 30995 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30996 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 30997 _flag_k = FK_ADD; 30998 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 30999 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 31000 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 31001 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 31002 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 31003 L_2B04EEE4: 31004 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 31005 L_2B04EEE7: 31006 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 31007 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 31008 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 31009 _flag_k = FK_INC; 31010 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 31011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 31012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31013 _flag_k = FK_CMP; 31014 RECOMP_BACKEDGE(); 31015 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 31016 L_2B04EEF3: 31017 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 31018 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 31019 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31020 _cf = 0; 31021 _flag_k = FK_TEST; 31022 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 31023 L_2B04EEFA: 31024 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 31025 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 31026 L_2B04EF02: 31027 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 31028 L_2B04EF05: 31029 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 31030 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 31031 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 31032 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 31033 _cf = 0; 31034 _flag_k = FK_TEST; 31035 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 31036 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 31037 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 31038 edi = esi; /* 0x2B04EF16: mov edi, esi */ 31039 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 31040 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 31041 _cf = 0; 31042 _flag_k = FK_TEST; 31043 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 31044 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 31045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 31046 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 31047 _flag_k = FK_DEC; 31048 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 31049 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 31050 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 31051 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 31052 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 31053 RECOMP_FLAGS_IN(); 31054 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 31055 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 31056 _cf = 0; 31057 _flag_k = FK_NARROW(FK_TEST, 24); 31058 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 31059 L_2B04EF32: 31060 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 31061 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 31062 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 31063 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 31064 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 31065 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 31066 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 31067 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 31068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 31069 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 31070 _cf = 0; 31071 _flag_k = FK_TEST; 31072 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 31073 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 31074 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 31075 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 31076 RECOMP_FLAGS_IN(); 31077 L_2B04EF4F: 31078 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 31079 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 31080 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 31081 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 31082 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 31083 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 31084 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 31085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31086 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 31087 _flag_k = FK_ADD; 31088 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 31089 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 31090 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 31091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31092 _flag_k = FK_CMP; 31093 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 31094 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 31095 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 31096 L_2B04EF76: 31097 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 31098 L_2B04EF78: 31099 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 31100 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 31101 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 31102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31103 _flag_k = FK_CMP; 31104 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 31105 L_2B04EF7F: 31106 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 31107 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 31108 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 31109 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 31110 RECOMP_FLAGS_IN(); 31111 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 31112 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 31113 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 31114 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 31115 RECOMP_FLAGS_IN(); 31116 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 31117 L_2B04EF9A: 31118 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 31119 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 31120 _cf = 0; 31121 _flag_k = FK_TEST; 31122 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 31123 L_2B04EF9E: 31124 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 31125 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 31126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31127 _flag_k = FK_CMP; 31128 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 31129 L_2B04EFA2: 31130 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 31131 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 31132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31133 _cf = 0; 31134 _flag_k = FK_TEST; 31135 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 31136 L_2B04EFA9: 31137 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 31138 L_2B04EFAE: 31139 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 31140 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 31141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31142 _flag_k = FK_NARROW(FK_CMP, 24); 31143 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 31144 L_2B04EFB4: 31145 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 31146 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 31147 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 31148 RECOMP_FLAGS_IN(); 31149 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 31150 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 31151 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31152 _cf = 0; 31153 _flag_k = FK_TEST; 31154 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 31155 L_2B04EFC5: 31156 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 31157 L_2B04EFCA: 31158 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 31159 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 31160 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 31161 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 31162 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 31163 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 31164 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 31165 _flag_k = FK_NARROW(FK_INC, 24); 31166 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 31167 L_2B04EFDE: 31168 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 31169 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 31170 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 31171 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 31172 RECOMP_FLAGS_IN(); 31173 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 31174 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 31175 _cf = 0; 31176 _flag_k = FK_NARROW(FK_TEST, 24); 31177 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 31178 L_2B04EFED: 31179 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 31180 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 31181 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 31182 _cf = 0; 31183 _flag_k = FK_TEST; 31184 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 31185 L_2B04EFF4: 31186 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 31187 L_2B04EFFA: 31188 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 31189 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 31190 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 31191 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 31192 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 31193 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 31194 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 31195 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 31196 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 31197 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 31198 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 31199 _cf = 0; 31200 _flag_k = FK_TEST; 31201 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 31202 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 31203 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 31204 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 31205 RECOMP_FLAGS_IN(); 31206 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 31207 L_2B04F01C: 31208 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 31209 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 31210 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 31211 _cf = 0; 31212 _flag_k = FK_TEST; 31213 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 31214 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 31215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31216 _flag_k = FK_CMP; 31217 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 31218 L_2B04F025: 31219 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 31220 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 31221 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 31222 edx = edx - 1; /* 0x2B04F02B: dec edx */ 31223 _flag_k = FK_DEC; 31224 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 31225 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 31226 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 31227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31228 _flag_k = FK_CMP; 31229 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 31230 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 31231 L_2B04F034: 31232 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 31233 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 31234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31235 _flag_k = FK_CMP; 31236 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 31237 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 31238 L_2B04F03B: 31239 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 31240 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 31241 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 31242 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 31243 RECOMP_FLAGS_IN(); 31244 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 31245 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 31246 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 31247 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 31248 RECOMP_FLAGS_IN(); 31249 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 31250 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 31251 RECOMP_FLAGS_IN(); 31252 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 31253 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31254 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 31255 _flag_k = FK_ADD; 31256 L_2B04F062: 31257 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 31258 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 31259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 31260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31261 _flag_k = FK_CMP; 31262 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 31263 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 31264 L_2B04F06D: 31265 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 31266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 31267 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 31268 _flag_k = FK_DEC; 31269 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 31270 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 31271 _cf = 0; 31272 _flag_k = FK_NARROW(FK_TEST, 24); 31273 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 31274 L_2B04F075: 31275 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 31276 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 31277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31278 _flag_k = FK_NARROW(FK_CMP, 24); 31279 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 31280 L_2B04F079: 31281 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 31282 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 31283 _flag_k = FK_NARROW(FK_DEC, 24); 31284 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 31285 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 31286 L_2B04F07F: 31287 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 31288 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 31289 RECOMP_FLAGS_IN(); 31290 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 31291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31292 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 31293 _flag_k = FK_ADD; 31294 L_2B04F088: 31295 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 31296 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 31297 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 31298 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 31299 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 31300 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 31301 _cf = 0; 31302 _flag_k = FK_NARROW(FK_TEST, 24); 31303 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 31304 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 31305 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 31306 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 31307 L_2B04F0A2: 31308 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 31309 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 31310 L_2B04F0A9: 31311 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 31312 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 31313 L_2B04F0AD: 31314 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 31315 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 31316 RECOMP_FLAGS_IN(); 31317 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 31318 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 31319 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 31320 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 31321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 31322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31323 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 31324 _flag_k = FK_ADD; 31325 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 31326 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 31327 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 31328 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 31329 RECOMP_FLAGS_IN(); 31330 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 31331 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 31332 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 31333 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 31334 _cf = 0; 31335 _flag_k = FK_NARROW(FK_TEST, 24); 31336 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 31337 L_2B04F0DB: 31338 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 31339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 31340 _cf = 0; 31341 _flag_k = FK_TEST; 31342 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 31343 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 31344 L_2B04F0E4: 31345 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 31346 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 31347 L_2B04F0E8: 31348 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 31349 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 31350 L_2B04F0EC: 31351 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 31352 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 31353 L_2B04F0EF: 31354 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 31355 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 31356 RECOMP_FLAGS_IN(); 31357 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 31358 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 31359 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 31360 RECOMP_FLAGS_IN(); 31361 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 31362 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 31363 RECOMP_FLAGS_IN(); 31364 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 31365 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 31366 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 31367 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 31368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 31369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31370 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 31371 _flag_k = FK_ADD; 31372 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 31373 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 31374 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 31375 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 31376 RECOMP_FLAGS_IN(); 31377 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 31378 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 31379 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 31380 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 31381 _cf = 0; 31382 _flag_k = FK_NARROW(FK_TEST, 24); 31383 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 31384 L_2B04F12F: 31385 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 31386 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 31387 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 31388 L_2B04F136: 31389 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 31390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 31391 _cf = 0; 31392 _flag_k = FK_TEST; 31393 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 31394 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 31395 L_2B04F140: 31396 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 31397 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 31398 L_2B04F144: 31399 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 31400 L_2B04F146: 31401 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 31402 RECOMP_FLAGS_IN(); 31403 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 31404 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 31405 RECOMP_FLAGS_IN(); 31406 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 31407 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 31408 RECOMP_FLAGS_IN(); 31409 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 31410 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 31411 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 31412 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 31413 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31414 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 31415 _flag_k = FK_ADD; 31416 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 31417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31418 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 31419 _flag_k = FK_ADD; 31420 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 31421 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 31422 edi = edi + 1; /* 0x2B04F168: inc edi */ 31423 _flag_k = FK_INC; 31424 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 31425 esi = 0; /* 0x2B04F169: xor esi, esi */ 31426 _cf = 0; 31427 _flag_k = FK_TEST; 31428 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 31429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 31430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31431 _flag_k = FK_CMP; 31432 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 31433 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 31434 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 31435 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 31436 L_2B04F17C: 31437 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 31438 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 31439 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 31440 _cf = 0; 31441 _flag_k = FK_NARROW(FK_TEST, 24); 31442 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 31443 L_2B04F183: 31444 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 31445 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 31446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31447 _flag_k = FK_NARROW(FK_CMP, 24); 31448 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 31449 L_2B04F188: 31450 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 31451 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 31452 _flag_k = FK_NARROW(FK_DEC, 24); 31453 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 31454 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 31455 L_2B04F18F: 31456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 31457 eax = eax - 1; /* 0x2B04F18F: dec eax */ 31458 _flag_k = FK_DEC; 31459 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 31460 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 31461 RECOMP_FLAGS_IN(); 31462 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 31463 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31464 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 31465 _flag_k = FK_ADD; 31466 L_2B04F199: 31467 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 31468 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 31469 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 31470 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 31471 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 31472 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 31473 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 31474 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 31475 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 31476 RECOMP_FLAGS_IN(); 31477 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 31478 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 31479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31480 _flag_k = FK_CMP; 31481 RECOMP_BACKEDGE(); 31482 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 31483 L_2B04F1BC: 31484 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 31485 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 31486 L_2B04F1C1: 31487 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 31488 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 31489 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 31490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31491 _flag_k = FK_CMP; 31492 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 31493 L_2B04F1C9: 31494 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 31495 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 31496 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 31497 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 31498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31499 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 31500 _flag_k = FK_CMP; 31501 L_2B04F1D7: 31502 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 31503 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 31504 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 31505 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 31506 RECOMP_FLAGS_IN(); 31507 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 31508 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 31509 RECOMP_FLAGS_IN(); 31510 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 31511 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31512 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 31513 _flag_k = FK_ADD; 31514 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 31515 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 31516 _flag_k = FK_DEC; 31517 RECOMP_BACKEDGE(); 31518 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 31519 L_2B04F1F5: 31520 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 31521 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 31522 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 31523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 31524 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31525 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 31526 _flag_k = FK_ADD; 31527 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 31528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31529 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 31530 _flag_k = FK_ADD; 31531 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 31532 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 31533 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 31534 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 31535 RECOMP_FLAGS_IN(); 31536 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 31537 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 31538 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 31539 RECOMP_FLAGS_IN(); 31540 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 31541 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 31542 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 31543 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 31544 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31545 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 31546 _flag_k = FK_ADD; 31547 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 31548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 31549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31550 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 31551 _flag_k = FK_ADD; 31552 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 31553 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 31554 RECOMP_FLAGS_IN(); 31555 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 31556 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 31557 RECOMP_FLAGS_IN(); 31558 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 31559 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 31560 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 31561 _cf = 0; 31562 _flag_k = FK_NARROW(FK_TEST, 24); 31563 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 31564 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 31565 L_2B04F246: 31566 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 31567 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 31568 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 31569 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 31570 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 31571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31572 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 31573 _flag_k = FK_ADD; 31574 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 31575 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 31576 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 31577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31578 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 31579 _flag_k = FK_ADD; 31580 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 31581 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 31582 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 31583 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 31584 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 31585 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 31586 RECOMP_FLAGS_IN(); 31587 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 31588 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 31589 RECOMP_FLAGS_IN(); 31590 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 31591 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 31592 RECOMP_FLAGS_IN(); 31593 L_2B04F283: 31594 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 31595 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 31596 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 31597 _cf = 0; 31598 _flag_k = FK_NARROW(FK_TEST, 24); 31599 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 31600 L_2B04F28D: 31601 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 31602 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 31603 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 31604 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 31605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 31606 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31607 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 31608 _flag_k = FK_ADD; 31609 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 31610 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 31611 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 31612 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31613 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 31614 _flag_k = FK_ADD; 31615 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 31616 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 31617 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 31618 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 31619 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 31620 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 31621 RECOMP_FLAGS_IN(); 31622 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 31623 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 31624 RECOMP_FLAGS_IN(); 31625 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 31626 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 31627 RECOMP_FLAGS_IN(); 31628 L_2B04F2D0: 31629 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 31630 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 31631 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 31632 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 31633 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 31634 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 31635 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 31636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 31637 RECOMP_REGS_OUT(); 31638 } 31639 31640 void sub_2B04F146(void) { 31641 int _fpu_cmp = 0; 31642 uint32_t _cf = 0; 31643 int _df = 1; 31644 uint32_t _flag_k = FK_NONE; 31645 uint32_t _flag_a = 0, _flag_b = 0; 31646 uint32_t _itail_tgt = 0; 31647 RECOMP_REGS_LOCALS 31648 RECOMP_ENTER(0x2B04F146u); 31649 31650 goto L_2B04F146; 31651 L_2B04EDBF: 31652 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 31653 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 31654 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 31655 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 31656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 31657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31658 _flag_k = FK_CMP; 31659 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 31660 L_2B04EDD4: 31661 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 31662 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 31663 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31664 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 31665 _flag_k = FK_ADD; 31666 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 31667 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 31668 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 31669 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 31670 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 31671 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 31672 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 31673 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 31674 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 31675 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 31676 RECOMP_FLAGS_IN(); 31677 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 31678 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 31679 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 31680 _cf = 0; 31681 _flag_k = FK_TEST; 31682 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 31683 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 31684 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 31685 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 31686 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 31687 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 31688 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 31689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 31690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31691 _flag_k = FK_CMP; 31692 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 31693 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 31694 L_2B04EE1E: 31695 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 31696 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 31697 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 31698 _cf = 0; 31699 _flag_k = FK_TEST; 31700 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 31701 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 31702 L_2B04EE28: 31703 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 31704 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 31705 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 31706 _cf = 0; 31707 _flag_k = FK_NARROW(FK_TEST, 24); 31708 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 31709 L_2B04EE2F: 31710 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 31711 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 31712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31713 _flag_k = FK_NARROW(FK_CMP, 24); 31714 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 31715 L_2B04EE34: 31716 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 31717 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 31718 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 31719 RECOMP_FLAGS_IN(); 31720 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 31721 L_2B04EE40: 31722 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 31723 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 31724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31725 _cf = 0; 31726 _flag_k = FK_TEST; 31727 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 31728 L_2B04EE46: 31729 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 31730 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 31731 L_2B04EE4D: 31732 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 31733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 31734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31735 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 31736 _flag_k = FK_ADD; 31737 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 31738 L_2B04EE53: 31739 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 31740 L_2B04EE58: 31741 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 31742 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 31743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31744 _flag_k = FK_NARROW(FK_CMP, 24); 31745 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 31746 L_2B04EE5D: 31747 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 31748 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 31749 _flag_k = FK_INC; 31750 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 31751 L_2B04EE63: 31752 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 31753 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 31754 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 31755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31756 _flag_k = FK_CMP; 31757 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 31758 L_2B04EE6A: 31759 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 31760 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 31761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31762 _cf = 0; 31763 _flag_k = FK_TEST; 31764 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 31765 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 31766 L_2B04EE74: 31767 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 31768 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 31769 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 31770 _cf = 0; 31771 _flag_k = FK_NARROW(FK_TEST, 24); 31772 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 31773 L_2B04EE7B: 31774 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 31775 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 31776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31777 _flag_k = FK_NARROW(FK_CMP, 24); 31778 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 31779 L_2B04EE7F: 31780 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 31781 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 31782 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 31783 RECOMP_FLAGS_IN(); 31784 L_2B04EE88: 31785 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 31786 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 31787 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31788 _cf = 0; 31789 _flag_k = FK_TEST; 31790 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 31791 L_2B04EE8E: 31792 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 31793 L_2B04EE92: 31794 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 31795 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 31796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31797 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 31798 _flag_k = FK_ADD; 31799 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 31800 L_2B04EE98: 31801 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 31802 L_2B04EE9D: 31803 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 31804 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 31805 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 31806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 31807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31808 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 31809 _flag_k = FK_CMP; 31810 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 31811 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 31812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31813 _flag_k = FK_CMP; 31814 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 31815 L_2B04EEAF: 31816 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 31817 RECOMP_FLAGS_IN(); 31818 L_2B04EEB5: 31819 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 31820 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 31821 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 31822 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 31823 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 31824 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 31825 RECOMP_FLAGS_IN(); 31826 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 31827 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 31828 _cf = 0; 31829 _flag_k = FK_NARROW(FK_TEST, 24); 31830 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 31831 L_2B04EECB: 31832 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 31833 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 31834 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 31835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 31836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31837 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 31838 _flag_k = FK_ADD; 31839 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 31840 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 31841 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 31842 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 31843 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 31844 L_2B04EEE4: 31845 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 31846 L_2B04EEE7: 31847 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 31848 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 31849 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 31850 _flag_k = FK_INC; 31851 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 31852 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 31853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31854 _flag_k = FK_CMP; 31855 RECOMP_BACKEDGE(); 31856 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 31857 L_2B04EEF3: 31858 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 31859 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 31860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31861 _cf = 0; 31862 _flag_k = FK_TEST; 31863 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 31864 L_2B04EEFA: 31865 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 31866 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 31867 L_2B04EF02: 31868 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 31869 L_2B04EF05: 31870 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 31871 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 31872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 31873 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 31874 _cf = 0; 31875 _flag_k = FK_TEST; 31876 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 31877 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 31878 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 31879 edi = esi; /* 0x2B04EF16: mov edi, esi */ 31880 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 31881 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 31882 _cf = 0; 31883 _flag_k = FK_TEST; 31884 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 31885 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 31886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 31887 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 31888 _flag_k = FK_DEC; 31889 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 31890 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 31891 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 31892 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 31893 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 31894 RECOMP_FLAGS_IN(); 31895 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 31896 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 31897 _cf = 0; 31898 _flag_k = FK_NARROW(FK_TEST, 24); 31899 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 31900 L_2B04EF32: 31901 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 31902 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 31903 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 31904 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 31905 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 31906 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 31907 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 31908 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 31909 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 31910 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 31911 _cf = 0; 31912 _flag_k = FK_TEST; 31913 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 31914 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 31915 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 31916 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 31917 RECOMP_FLAGS_IN(); 31918 L_2B04EF4F: 31919 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 31920 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 31921 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 31922 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 31923 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 31924 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 31925 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 31926 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 31927 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 31928 _flag_k = FK_ADD; 31929 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 31930 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 31931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 31932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31933 _flag_k = FK_CMP; 31934 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 31935 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 31936 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 31937 L_2B04EF76: 31938 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 31939 L_2B04EF78: 31940 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 31941 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 31942 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 31943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31944 _flag_k = FK_CMP; 31945 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 31946 L_2B04EF7F: 31947 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 31948 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 31949 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 31950 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 31951 RECOMP_FLAGS_IN(); 31952 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 31953 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 31954 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 31955 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 31956 RECOMP_FLAGS_IN(); 31957 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 31958 L_2B04EF9A: 31959 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 31960 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 31961 _cf = 0; 31962 _flag_k = FK_TEST; 31963 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 31964 L_2B04EF9E: 31965 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 31966 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 31967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31968 _flag_k = FK_CMP; 31969 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 31970 L_2B04EFA2: 31971 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 31972 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 31973 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31974 _cf = 0; 31975 _flag_k = FK_TEST; 31976 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 31977 L_2B04EFA9: 31978 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 31979 L_2B04EFAE: 31980 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 31981 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 31982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31983 _flag_k = FK_NARROW(FK_CMP, 24); 31984 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 31985 L_2B04EFB4: 31986 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 31987 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 31988 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 31989 RECOMP_FLAGS_IN(); 31990 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 31991 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 31992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31993 _cf = 0; 31994 _flag_k = FK_TEST; 31995 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 31996 L_2B04EFC5: 31997 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 31998 L_2B04EFCA: 31999 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 32000 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 32001 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 32002 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 32003 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 32004 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 32005 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 32006 _flag_k = FK_NARROW(FK_INC, 24); 32007 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 32008 L_2B04EFDE: 32009 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 32010 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 32011 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 32012 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 32013 RECOMP_FLAGS_IN(); 32014 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 32015 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 32016 _cf = 0; 32017 _flag_k = FK_NARROW(FK_TEST, 24); 32018 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 32019 L_2B04EFED: 32020 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 32021 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 32022 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 32023 _cf = 0; 32024 _flag_k = FK_TEST; 32025 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 32026 L_2B04EFF4: 32027 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 32028 L_2B04EFFA: 32029 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 32030 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 32031 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 32032 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 32033 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 32034 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 32035 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 32036 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 32037 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 32038 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 32039 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 32040 _cf = 0; 32041 _flag_k = FK_TEST; 32042 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 32043 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 32044 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 32045 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 32046 RECOMP_FLAGS_IN(); 32047 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 32048 L_2B04F01C: 32049 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 32050 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 32051 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 32052 _cf = 0; 32053 _flag_k = FK_TEST; 32054 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 32055 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 32056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32057 _flag_k = FK_CMP; 32058 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 32059 L_2B04F025: 32060 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 32061 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 32062 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 32063 edx = edx - 1; /* 0x2B04F02B: dec edx */ 32064 _flag_k = FK_DEC; 32065 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 32066 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 32067 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 32068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32069 _flag_k = FK_CMP; 32070 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 32071 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 32072 L_2B04F034: 32073 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 32074 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 32075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32076 _flag_k = FK_CMP; 32077 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 32078 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 32079 L_2B04F03B: 32080 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 32081 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 32082 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 32083 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 32084 RECOMP_FLAGS_IN(); 32085 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 32086 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 32087 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 32088 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 32089 RECOMP_FLAGS_IN(); 32090 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 32091 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 32092 RECOMP_FLAGS_IN(); 32093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 32094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32095 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 32096 _flag_k = FK_ADD; 32097 L_2B04F062: 32098 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 32099 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 32100 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 32101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32102 _flag_k = FK_CMP; 32103 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 32104 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 32105 L_2B04F06D: 32106 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 32107 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 32108 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 32109 _flag_k = FK_DEC; 32110 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 32111 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 32112 _cf = 0; 32113 _flag_k = FK_NARROW(FK_TEST, 24); 32114 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 32115 L_2B04F075: 32116 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 32117 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 32118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32119 _flag_k = FK_NARROW(FK_CMP, 24); 32120 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 32121 L_2B04F079: 32122 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 32123 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 32124 _flag_k = FK_NARROW(FK_DEC, 24); 32125 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 32126 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 32127 L_2B04F07F: 32128 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 32129 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 32130 RECOMP_FLAGS_IN(); 32131 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 32132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32133 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 32134 _flag_k = FK_ADD; 32135 L_2B04F088: 32136 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 32137 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 32138 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 32139 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 32140 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 32141 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 32142 _cf = 0; 32143 _flag_k = FK_NARROW(FK_TEST, 24); 32144 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 32145 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 32146 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 32147 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 32148 L_2B04F0A2: 32149 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 32150 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 32151 L_2B04F0A9: 32152 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 32153 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 32154 L_2B04F0AD: 32155 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 32156 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 32157 RECOMP_FLAGS_IN(); 32158 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 32159 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 32160 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 32161 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 32162 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 32163 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32164 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 32165 _flag_k = FK_ADD; 32166 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 32167 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 32168 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 32169 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 32170 RECOMP_FLAGS_IN(); 32171 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 32172 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 32173 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 32174 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 32175 _cf = 0; 32176 _flag_k = FK_NARROW(FK_TEST, 24); 32177 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 32178 L_2B04F0DB: 32179 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 32180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 32181 _cf = 0; 32182 _flag_k = FK_TEST; 32183 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 32184 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 32185 L_2B04F0E4: 32186 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 32187 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 32188 L_2B04F0E8: 32189 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 32190 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 32191 L_2B04F0EC: 32192 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 32193 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 32194 L_2B04F0EF: 32195 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 32196 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 32197 RECOMP_FLAGS_IN(); 32198 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 32199 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 32200 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 32201 RECOMP_FLAGS_IN(); 32202 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 32203 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 32204 RECOMP_FLAGS_IN(); 32205 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 32206 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 32207 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 32208 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 32209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 32210 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32211 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 32212 _flag_k = FK_ADD; 32213 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 32214 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 32215 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 32216 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 32217 RECOMP_FLAGS_IN(); 32218 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 32219 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 32220 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 32221 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 32222 _cf = 0; 32223 _flag_k = FK_NARROW(FK_TEST, 24); 32224 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 32225 L_2B04F12F: 32226 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 32227 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 32228 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 32229 L_2B04F136: 32230 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 32231 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 32232 _cf = 0; 32233 _flag_k = FK_TEST; 32234 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 32235 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 32236 L_2B04F140: 32237 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 32238 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 32239 L_2B04F144: 32240 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 32241 L_2B04F146: 32242 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 32243 RECOMP_FLAGS_IN(); 32244 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 32245 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 32246 RECOMP_FLAGS_IN(); 32247 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 32248 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 32249 RECOMP_FLAGS_IN(); 32250 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 32251 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 32252 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 32253 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 32254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32255 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 32256 _flag_k = FK_ADD; 32257 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 32258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32259 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 32260 _flag_k = FK_ADD; 32261 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 32262 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 32263 edi = edi + 1; /* 0x2B04F168: inc edi */ 32264 _flag_k = FK_INC; 32265 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 32266 esi = 0; /* 0x2B04F169: xor esi, esi */ 32267 _cf = 0; 32268 _flag_k = FK_TEST; 32269 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 32270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 32271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32272 _flag_k = FK_CMP; 32273 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 32274 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 32275 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 32276 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 32277 L_2B04F17C: 32278 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 32279 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 32280 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 32281 _cf = 0; 32282 _flag_k = FK_NARROW(FK_TEST, 24); 32283 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 32284 L_2B04F183: 32285 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 32286 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 32287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32288 _flag_k = FK_NARROW(FK_CMP, 24); 32289 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 32290 L_2B04F188: 32291 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 32292 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 32293 _flag_k = FK_NARROW(FK_DEC, 24); 32294 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 32295 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 32296 L_2B04F18F: 32297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 32298 eax = eax - 1; /* 0x2B04F18F: dec eax */ 32299 _flag_k = FK_DEC; 32300 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 32301 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 32302 RECOMP_FLAGS_IN(); 32303 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 32304 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32305 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 32306 _flag_k = FK_ADD; 32307 L_2B04F199: 32308 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 32309 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 32310 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 32311 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 32312 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 32313 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 32314 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 32315 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 32316 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 32317 RECOMP_FLAGS_IN(); 32318 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 32319 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 32320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32321 _flag_k = FK_CMP; 32322 RECOMP_BACKEDGE(); 32323 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 32324 L_2B04F1BC: 32325 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 32326 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 32327 L_2B04F1C1: 32328 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 32329 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 32330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 32331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32332 _flag_k = FK_CMP; 32333 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 32334 L_2B04F1C9: 32335 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 32336 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 32337 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 32338 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 32339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32340 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 32341 _flag_k = FK_CMP; 32342 L_2B04F1D7: 32343 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 32344 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 32345 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 32346 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 32347 RECOMP_FLAGS_IN(); 32348 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 32349 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 32350 RECOMP_FLAGS_IN(); 32351 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 32352 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32353 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 32354 _flag_k = FK_ADD; 32355 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 32356 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 32357 _flag_k = FK_DEC; 32358 RECOMP_BACKEDGE(); 32359 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 32360 L_2B04F1F5: 32361 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 32362 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 32363 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 32364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 32365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32366 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 32367 _flag_k = FK_ADD; 32368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 32369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32370 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 32371 _flag_k = FK_ADD; 32372 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 32373 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 32374 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 32375 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 32376 RECOMP_FLAGS_IN(); 32377 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 32378 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 32379 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 32380 RECOMP_FLAGS_IN(); 32381 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 32382 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 32383 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 32384 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 32385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32386 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 32387 _flag_k = FK_ADD; 32388 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 32389 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 32390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32391 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 32392 _flag_k = FK_ADD; 32393 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 32394 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 32395 RECOMP_FLAGS_IN(); 32396 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 32397 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 32398 RECOMP_FLAGS_IN(); 32399 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 32400 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 32401 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 32402 _cf = 0; 32403 _flag_k = FK_NARROW(FK_TEST, 24); 32404 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 32405 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 32406 L_2B04F246: 32407 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 32408 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 32409 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 32410 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 32411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 32412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32413 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 32414 _flag_k = FK_ADD; 32415 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 32416 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 32417 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 32418 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32419 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 32420 _flag_k = FK_ADD; 32421 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 32422 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 32423 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 32424 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 32425 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 32426 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 32427 RECOMP_FLAGS_IN(); 32428 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 32429 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 32430 RECOMP_FLAGS_IN(); 32431 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 32432 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 32433 RECOMP_FLAGS_IN(); 32434 L_2B04F283: 32435 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 32436 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 32437 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 32438 _cf = 0; 32439 _flag_k = FK_NARROW(FK_TEST, 24); 32440 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 32441 L_2B04F28D: 32442 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 32443 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 32444 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 32445 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 32446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 32447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32448 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 32449 _flag_k = FK_ADD; 32450 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 32451 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 32452 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 32453 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32454 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 32455 _flag_k = FK_ADD; 32456 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 32457 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 32458 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 32459 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 32460 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 32461 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 32462 RECOMP_FLAGS_IN(); 32463 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 32464 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 32465 RECOMP_FLAGS_IN(); 32466 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 32467 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 32468 RECOMP_FLAGS_IN(); 32469 L_2B04F2D0: 32470 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 32471 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 32472 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 32473 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 32474 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 32475 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 32476 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 32477 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 32478 RECOMP_REGS_OUT(); 32479 } 32480 32481 void sub_2B04F199(void) { 32482 int _fpu_cmp = 0; 32483 uint32_t _cf = 0; 32484 int _df = 1; 32485 uint32_t _flag_k = FK_NONE; 32486 uint32_t _flag_a = 0, _flag_b = 0; 32487 uint32_t _itail_tgt = 0; 32488 RECOMP_REGS_LOCALS 32489 RECOMP_ENTER(0x2B04F199u); 32490 32491 goto L_2B04F199; 32492 L_2B04EDBF: 32493 esi = MEM32(ebp + (-0x18)); /* 0x2B04EDBF: mov esi, dword ptr [ebp - 0x18] */ 32494 edx = MEM32(esi + 0x104); /* 0x2B04EDC2: mov edx, dword ptr [esi + 0x104] */ 32495 eax = MEM32(ebp + (-0x14)); /* 0x2B04EDC8: mov eax, dword ptr [ebp - 0x14] */ 32496 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04EDCB: cmp eax, dword ptr [edx + 8] */ 32497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 32498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32499 _flag_k = FK_CMP; 32500 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F1C1; /* 0x2B04EDCE: je 0x2b04f1c1 */ 32501 L_2B04EDD4: 32502 ecx = MEM32(esi + 0x4); /* 0x2B04EDD4: mov ecx, dword ptr [esi + 4] */ 32503 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 32504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32505 ecx = ecx + 8; /* 0x2B04EDD7: add ecx, 8 */ 32506 _flag_k = FK_ADD; 32507 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04EDDA: mov dword ptr [ebp - 0x34], ecx */ 32508 ecx = MEM32(ebp + (-0x20)); /* 0x2B04EDDD: mov ecx, dword ptr [ebp - 0x20] */ 32509 eax = MEM32(ecx + (-0x4)); /* 0x2B04EDE0: mov eax, dword ptr [ecx - 4] */ 32510 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B04EDE3: mov byte ptr [eax + 8], 1 */ 32511 edx = MEM32(ebp + (-0x30)); /* 0x2B04EDE7: mov edx, dword ptr [ebp - 0x30] */ 32512 eax = MEM32(ebp + (-0x34)); /* 0x2B04EDEA: mov eax, dword ptr [ebp - 0x34] */ 32513 ecx = MEM32(ecx + (-0x4)); /* 0x2B04EDED: mov ecx, dword ptr [ecx - 4] */ 32514 PUSH32(esp, edx); /* 0x2B04EDF0: push edx */ 32515 PUSH32(esp, eax); /* 0x2B04EDF1: push eax */ 32516 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B04EDF2: call dword ptr [0x2b0b5924] */ 32517 RECOMP_FLAGS_IN(); 32518 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EDF8: mov cl, byte ptr [ebp - 0xd] */ 32519 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 32520 edi = 0; /* 0x2B04EDFB: xor edi, edi */ 32521 _cf = 0; 32522 _flag_k = FK_TEST; 32523 MEM8(ebp + (-0x4C)) = (uint8_t)(LO8(ecx)); /* 0x2B04EDFD: mov byte ptr [ebp - 0x4c], cl */ 32524 MEM32(ebp + (-0x48)) = edi; /* 0x2B04EE00: mov dword ptr [ebp - 0x48], edi */ 32525 MEM32(ebp + (-0x44)) = edi; /* 0x2B04EE03: mov dword ptr [ebp - 0x44], edi */ 32526 MEM32(ebp + (-0x40)) = edi; /* 0x2B04EE06: mov dword ptr [ebp - 0x40], edi */ 32527 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE09: mov ecx, dword ptr [ebp - 0x14] */ 32528 eax = MEM32(ecx + 0x8); /* 0x2B04EE0C: mov eax, dword ptr [ecx + 8] */ 32529 /* cmp eax, edi */ /* 0x2B04EE0F: cmp eax, edi */ 32530 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 32531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32532 _flag_k = FK_CMP; 32533 MEM32(ebp + (-0x4)) = 2; /* 0x2B04EE11: mov dword ptr [ebp - 4], 2 */ 32534 if (CMP_BE(_flag_a, _flag_b)) goto L_2B04EEFA; /* 0x2B04EE18: jbe 0x2b04eefa */ 32535 L_2B04EE1E: 32536 esi = MEM32(ecx + 0x4); /* 0x2B04EE1E: mov esi, dword ptr [ecx + 4] */ 32537 /* test esi, esi */ /* 0x2B04EE21: test esi, esi */ 32538 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 32539 _cf = 0; 32540 _flag_k = FK_TEST; 32541 ebx = ecx + 0x4; /* 0x2B04EE23: lea ebx, [ecx + 4] */ 32542 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE53; /* 0x2B04EE26: je 0x2b04ee53 */ 32543 L_2B04EE28: 32544 SET_LO8(edx, MEM8(esi + (-0x1))); /* 0x2B04EE28: mov dl, byte ptr [esi - 1] */ 32545 /* test LO8(edx), LO8(edx) */ /* 0x2B04EE2B: test dl, dl */ 32546 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 32547 _cf = 0; 32548 _flag_k = FK_NARROW(FK_TEST, 24); 32549 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE2D: je 0x2b04ee40 */ 32550 L_2B04EE2F: 32551 /* cmp LO8(edx), 0xFFu */ /* 0x2B04EE2F: cmp dl, 0xff */ 32552 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 32553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32554 _flag_k = FK_NARROW(FK_CMP, 24); 32555 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE40; /* 0x2B04EE32: je 0x2b04ee40 */ 32556 L_2B04EE34: 32557 PUSH32(esp, 0); /* 0x2B04EE34: push 0 */ 32558 PUSH32(esp, eax); /* 0x2B04EE36: push eax */ 32559 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE37: call dword ptr [0x2b0b5154] */ 32560 RECOMP_FLAGS_IN(); 32561 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE3D: mov ecx, dword ptr [ebp - 0x14] */ 32562 L_2B04EE40: 32563 eax = MEM32(ebx); /* 0x2B04EE40: mov eax, dword ptr [ebx] */ 32564 /* test eax, eax */ /* 0x2B04EE42: test eax, eax */ 32565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 32566 _cf = 0; 32567 _flag_k = FK_TEST; 32568 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE4D; /* 0x2B04EE44: je 0x2b04ee4d */ 32569 L_2B04EE46: 32570 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE46: mov byte ptr [eax - 1], 0xff */ 32571 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EE4A: mov ecx, dword ptr [ebp - 0x14] */ 32572 L_2B04EE4D: 32573 eax = MEM32(ebx); /* 0x2B04EE4D: mov eax, dword ptr [ebx] */ 32574 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 32575 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32576 eax = eax + edi; /* 0x2B04EE4F: add eax, edi */ 32577 _flag_k = FK_ADD; 32578 goto L_2B04EE58; /* 0x2B04EE51: jmp 0x2b04ee58 */ 32579 L_2B04EE53: 32580 eax = MEM32(0x2B0B513C); /* 0x2B04EE53: mov eax, dword ptr [0x2b0b513c] */ 32581 L_2B04EE58: 32582 /* cmp MEM8(eax), 0x10u */ /* 0x2B04EE58: cmp byte ptr [eax], 0x10 */ 32583 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 32584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32585 _flag_k = FK_NARROW(FK_CMP, 24); 32586 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EE63; /* 0x2B04EE5B: jne 0x2b04ee63 */ 32587 L_2B04EE5D: 32588 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 32589 edi = edi + 1; /* 0x2B04EE5D: inc edi */ 32590 _flag_k = FK_INC; 32591 goto L_2B04EEE7; /* 0x2B04EE5E: jmp 0x2b04eee7 */ 32592 L_2B04EE63: 32593 edx = MEM32(ecx + 0x8); /* 0x2B04EE63: mov edx, dword ptr [ecx + 8] */ 32594 /* cmp edx, edi */ /* 0x2B04EE66: cmp edx, edi */ 32595 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 32596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32597 _flag_k = FK_CMP; 32598 if (CMP_B(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE68: jb 0x2b04ee98 */ 32599 L_2B04EE6A: 32600 eax = MEM32(ecx + 0x4); /* 0x2B04EE6A: mov eax, dword ptr [ecx + 4] */ 32601 /* test eax, eax */ /* 0x2B04EE6D: test eax, eax */ 32602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 32603 _cf = 0; 32604 _flag_k = FK_TEST; 32605 esi = ecx + 0x4; /* 0x2B04EE6F: lea esi, [ecx + 4] */ 32606 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE98; /* 0x2B04EE72: je 0x2b04ee98 */ 32607 L_2B04EE74: 32608 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x2B04EE74: mov al, byte ptr [eax - 1] */ 32609 /* test LO8(eax), LO8(eax) */ /* 0x2B04EE77: test al, al */ 32610 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 32611 _cf = 0; 32612 _flag_k = FK_NARROW(FK_TEST, 24); 32613 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE79: je 0x2b04ee88 */ 32614 L_2B04EE7B: 32615 /* cmp LO8(eax), 0xFFu */ /* 0x2B04EE7B: cmp al, 0xff */ 32616 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 32617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32618 _flag_k = FK_NARROW(FK_CMP, 24); 32619 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04EE88; /* 0x2B04EE7D: je 0x2b04ee88 */ 32620 L_2B04EE7F: 32621 PUSH32(esp, 0); /* 0x2B04EE7F: push 0 */ 32622 PUSH32(esp, edx); /* 0x2B04EE81: push edx */ 32623 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EE82: call dword ptr [0x2b0b5154] */ 32624 RECOMP_FLAGS_IN(); 32625 L_2B04EE88: 32626 eax = MEM32(esi); /* 0x2B04EE88: mov eax, dword ptr [esi] */ 32627 /* test eax, eax */ /* 0x2B04EE8A: test eax, eax */ 32628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 32629 _cf = 0; 32630 _flag_k = FK_TEST; 32631 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EE92; /* 0x2B04EE8C: je 0x2b04ee92 */ 32632 L_2B04EE8E: 32633 MEM8(eax + (-0x1)) = (uint8_t)(0xFFu); /* 0x2B04EE8E: mov byte ptr [eax - 1], 0xff */ 32634 L_2B04EE92: 32635 eax = MEM32(esi); /* 0x2B04EE92: mov eax, dword ptr [esi] */ 32636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 32637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32638 eax = eax + edi; /* 0x2B04EE94: add eax, edi */ 32639 _flag_k = FK_ADD; 32640 goto L_2B04EE9D; /* 0x2B04EE96: jmp 0x2b04ee9d */ 32641 L_2B04EE98: 32642 eax = MEM32(0x2B0B513C); /* 0x2B04EE98: mov eax, dword ptr [0x2b0b513c] */ 32643 L_2B04EE9D: 32644 edx = MEM32(0x2B0B515C); /* 0x2B04EE9D: mov edx, dword ptr [0x2b0b515c] */ 32645 SET_LO8(ebx, MEM8(eax)); /* 0x2B04EEA3: mov bl, byte ptr [eax] */ 32646 eax = MEM32(edx); /* 0x2B04EEA5: mov eax, dword ptr [edx] */ 32647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x44))); 32648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32649 eax = eax - MEM32(ebp + (-0x44)); /* 0x2B04EEA7: sub eax, dword ptr [ebp - 0x44] */ 32650 _flag_k = FK_CMP; 32651 /* cmp eax, 1 */ /* 0x2B04EEAA: cmp eax, 1 */ 32652 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 32653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32654 _flag_k = FK_CMP; 32655 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EEB5; /* 0x2B04EEAD: ja 0x2b04eeb5 */ 32656 L_2B04EEAF: 32657 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B04EEAF: call dword ptr [0x2b0b51a8] */ 32658 RECOMP_FLAGS_IN(); 32659 L_2B04EEB5: 32660 ecx = MEM32(ebp + (-0x44)); /* 0x2B04EEB5: mov ecx, dword ptr [ebp - 0x44] */ 32661 esi = ecx + 0x1; /* 0x2B04EEB8: lea esi, [ecx + 1] */ 32662 PUSH32(esp, 0); /* 0x2B04EEBB: push 0 */ 32663 PUSH32(esp, esi); /* 0x2B04EEBD: push esi */ 32664 ecx = ebp + (-0x4C); /* 0x2B04EEBE: lea ecx, [ebp - 0x4c] */ 32665 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EEC1: call dword ptr [0x2b0b5154] */ 32666 RECOMP_FLAGS_IN(); 32667 /* test LO8(eax), LO8(eax) */ /* 0x2B04EEC7: test al, al */ 32668 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 32669 _cf = 0; 32670 _flag_k = FK_NARROW(FK_TEST, 24); 32671 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EEE4; /* 0x2B04EEC9: je 0x2b04eee4 */ 32672 L_2B04EECB: 32673 eax = MEM32(ebp + (-0x44)); /* 0x2B04EECB: mov eax, dword ptr [ebp - 0x44] */ 32674 edx = MEM32(ebp + (-0x48)); /* 0x2B04EECE: mov edx, dword ptr [ebp - 0x48] */ 32675 ecx = (int32_t)(int8_t)LO8(ebx); /* 0x2B04EED1: movsx ecx, bl */ 32676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 32677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32678 eax = eax + edx; /* 0x2B04EED4: add eax, edx */ 32679 _flag_k = FK_ADD; 32680 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B04EED6: mov byte ptr [eax], cl */ 32681 eax = MEM32(ebp + (-0x48)); /* 0x2B04EED8: mov eax, dword ptr [ebp - 0x48] */ 32682 MEM32(ebp + (-0x44)) = esi; /* 0x2B04EEDB: mov dword ptr [ebp - 0x44], esi */ 32683 SET_HI8(ecx, LO8(ecx)); /* 0x2B04EEDE: mov ch, cl */ 32684 MEM8(eax + esi) = (uint8_t)(0); /* 0x2B04EEE0: mov byte ptr [eax + esi], 0 */ 32685 L_2B04EEE4: 32686 ecx = MEM32(ebp + (-0x14)); /* 0x2B04EEE4: mov ecx, dword ptr [ebp - 0x14] */ 32687 L_2B04EEE7: 32688 eax = MEM32(ecx + 0x8); /* 0x2B04EEE7: mov eax, dword ptr [ecx + 8] */ 32689 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 32690 edi = edi + 1; /* 0x2B04EEEA: inc edi */ 32691 _flag_k = FK_INC; 32692 /* cmp eax, edi */ /* 0x2B04EEEB: cmp eax, edi */ 32693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 32694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32695 _flag_k = FK_CMP; 32696 RECOMP_BACKEDGE(); 32697 if (CMP_A(_flag_a, _flag_b)) goto L_2B04EE1E; /* 0x2B04EEED: ja 0x2b04ee1e */ 32698 L_2B04EEF3: 32699 eax = MEM32(ebp + (-0x48)); /* 0x2B04EEF3: mov eax, dword ptr [ebp - 0x48] */ 32700 /* test eax, eax */ /* 0x2B04EEF6: test eax, eax */ 32701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 32702 _cf = 0; 32703 _flag_k = FK_TEST; 32704 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EF02; /* 0x2B04EEF8: jne 0x2b04ef02 */ 32705 L_2B04EEFA: 32706 esi = MEM32(0x2B0B513C); /* 0x2B04EEFA: mov esi, dword ptr [0x2b0b513c] */ 32707 goto L_2B04EF05; /* 0x2B04EF00: jmp 0x2b04ef05 */ 32708 L_2B04EF02: 32709 esi = MEM32(ebp + (-0x48)); /* 0x2B04EF02: mov esi, dword ptr [ebp - 0x48] */ 32710 L_2B04EF05: 32711 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B04EF05: mov cl, byte ptr [ebp - 0xd] */ 32712 MEM8(ebp + (-0x60)) = (uint8_t)(LO8(ecx)); /* 0x2B04EF08: mov byte ptr [ebp - 0x60], cl */ 32713 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 32714 eax = 0; /* 0x2B04EF0B: xor eax, eax */ 32715 _cf = 0; 32716 _flag_k = FK_TEST; 32717 MEM32(ebp + (-0x5C)) = eax; /* 0x2B04EF0D: mov dword ptr [ebp - 0x5c], eax */ 32718 MEM32(ebp + (-0x58)) = eax; /* 0x2B04EF10: mov dword ptr [ebp - 0x58], eax */ 32719 MEM32(ebp + (-0x54)) = eax; /* 0x2B04EF13: mov dword ptr [ebp - 0x54], eax */ 32720 edi = esi; /* 0x2B04EF16: mov edi, esi */ 32721 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 32722 ecx = ecx | 0xFFFFFFFFu; /* 0x2B04EF18: or ecx, 0xffffffff */ 32723 _cf = 0; 32724 _flag_k = FK_TEST; 32725 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; } /* 0x2B04EF1B: repne scasb al, byte ptr es:[edi] */ 32726 ecx = ~ecx; /* 0x2B04EF1D: not ecx */ 32727 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 32728 ecx = ecx - 1; /* 0x2B04EF1F: dec ecx */ 32729 _flag_k = FK_DEC; 32730 ebx = ecx; /* 0x2B04EF20: mov ebx, ecx */ 32731 PUSH32(esp, 1); /* 0x2B04EF22: push 1 */ 32732 PUSH32(esp, ebx); /* 0x2B04EF24: push ebx */ 32733 ecx = ebp + (-0x60); /* 0x2B04EF25: lea ecx, [ebp - 0x60] */ 32734 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EF28: call dword ptr [0x2b0b5154] */ 32735 RECOMP_FLAGS_IN(); 32736 /* test LO8(eax), LO8(eax) */ /* 0x2B04EF2E: test al, al */ 32737 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 32738 _cf = 0; 32739 _flag_k = FK_NARROW(FK_TEST, 24); 32740 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EF4F; /* 0x2B04EF30: je 0x2b04ef4f */ 32741 L_2B04EF32: 32742 edi = MEM32(ebp + (-0x5C)); /* 0x2B04EF32: mov edi, dword ptr [ebp - 0x5c] */ 32743 ecx = ebx; /* 0x2B04EF35: mov ecx, ebx */ 32744 edx = ecx; /* 0x2B04EF37: mov edx, ecx */ 32745 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04EF39: shr ecx, 2 */ 32746 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 32747 ecx = ecx >> 2u; /* 0x2B04EF39: shr ecx, 2 */ 32748 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04EF3C: 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; } 32749 ecx = edx; /* 0x2B04EF3E: mov ecx, edx */ 32750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 32751 ecx = ecx & 3; /* 0x2B04EF40: and ecx, 3 */ 32752 _cf = 0; 32753 _flag_k = FK_TEST; 32754 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04EF43: 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; } 32755 PUSH32(esp, ebx); /* 0x2B04EF45: push ebx */ 32756 ecx = ebp + (-0x60); /* 0x2B04EF46: lea ecx, [ebp - 0x60] */ 32757 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04EF49: call dword ptr [0x2b0b5150] */ 32758 RECOMP_FLAGS_IN(); 32759 L_2B04EF4F: 32760 MEM32(ebp + (-0x50)) = 0; /* 0x2B04EF4F: mov dword ptr [ebp - 0x50], 0 */ 32761 esi = MEM32(ebp + (-0x20)); /* 0x2B04EF56: mov esi, dword ptr [ebp - 0x20] */ 32762 eax = MEM32(0x2B0B515C); /* 0x2B04EF59: mov eax, dword ptr [0x2b0b515c] */ 32763 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EF5E: mov ecx, dword ptr [ebp - 0x58] */ 32764 edi = MEM32(esi + (-0x4)); /* 0x2B04EF61: mov edi, dword ptr [esi - 4] */ 32765 eax = MEM32(eax); /* 0x2B04EF64: mov eax, dword ptr [eax] */ 32766 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 32767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32768 edi = edi + 0x14u; /* 0x2B04EF66: add edi, 0x14 */ 32769 _flag_k = FK_ADD; 32770 ebx = ecx; /* 0x2B04EF69: mov ebx, ecx */ 32771 /* cmp eax, ebx */ /* 0x2B04EF6B: cmp eax, ebx */ 32772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 32773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32774 _flag_k = FK_CMP; 32775 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B04EF6D: mov byte ptr [ebp - 4], 3 */ 32776 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04EF71: mov dword ptr [ebp - 0x2c], edi */ 32777 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EF78; /* 0x2B04EF74: jae 0x2b04ef78 */ 32778 L_2B04EF76: 32779 ebx = eax; /* 0x2B04EF76: mov ebx, eax */ 32780 L_2B04EF78: 32781 edx = ebp + (-0x60); /* 0x2B04EF78: lea edx, [ebp - 0x60] */ 32782 /* cmp edi, edx */ /* 0x2B04EF7B: cmp edi, edx */ 32783 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 32784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32785 _flag_k = FK_CMP; 32786 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EF9A; /* 0x2B04EF7D: jne 0x2b04ef9a */ 32787 L_2B04EF7F: 32788 PUSH32(esp, eax); /* 0x2B04EF7F: push eax */ 32789 PUSH32(esp, ebx); /* 0x2B04EF80: push ebx */ 32790 ecx = edi; /* 0x2B04EF81: mov ecx, edi */ 32791 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF83: call dword ptr [0x2b0b51ac] */ 32792 RECOMP_FLAGS_IN(); 32793 PUSH32(esp, 0); /* 0x2B04EF89: push 0 */ 32794 PUSH32(esp, 0); /* 0x2B04EF8B: push 0 */ 32795 ecx = edi; /* 0x2B04EF8D: mov ecx, edi */ 32796 RECOMP_ICALL(MEM32(0x2B0B51AC)); /* 0x2B04EF8F: call dword ptr [0x2b0b51ac] */ 32797 RECOMP_FLAGS_IN(); 32798 goto L_2B04F01C; /* 0x2B04EF95: jmp 0x2b04f01c */ 32799 L_2B04EF9A: 32800 /* test ebx, ebx */ /* 0x2B04EF9A: test ebx, ebx */ 32801 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 32802 _cf = 0; 32803 _flag_k = FK_TEST; 32804 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EF9C: jbe 0x2b04efde */ 32805 L_2B04EF9E: 32806 /* cmp ebx, ecx */ /* 0x2B04EF9E: cmp ebx, ecx */ 32807 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 32808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32809 _flag_k = FK_CMP; 32810 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFA0: jne 0x2b04efde */ 32811 L_2B04EFA2: 32812 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFA2: mov eax, dword ptr [ebp - 0x5c] */ 32813 /* test eax, eax */ /* 0x2B04EFA5: test eax, eax */ 32814 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 32815 _cf = 0; 32816 _flag_k = FK_TEST; 32817 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFAE; /* 0x2B04EFA7: jne 0x2b04efae */ 32818 L_2B04EFA9: 32819 eax = MEM32(0x2B0B513C); /* 0x2B04EFA9: mov eax, dword ptr [0x2b0b513c] */ 32820 L_2B04EFAE: 32821 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B04EFAE: cmp byte ptr [eax - 1], 0xfe */ 32822 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 32823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32824 _flag_k = FK_NARROW(FK_CMP, 24); 32825 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04EFDE; /* 0x2B04EFB2: jae 0x2b04efde */ 32826 L_2B04EFB4: 32827 PUSH32(esp, 1); /* 0x2B04EFB4: push 1 */ 32828 ecx = edi; /* 0x2B04EFB6: mov ecx, edi */ 32829 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04EFB8: call dword ptr [0x2b0b514c] */ 32830 RECOMP_FLAGS_IN(); 32831 eax = MEM32(ebp + (-0x5C)); /* 0x2B04EFBE: mov eax, dword ptr [ebp - 0x5c] */ 32832 /* test eax, eax */ /* 0x2B04EFC1: test eax, eax */ 32833 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 32834 _cf = 0; 32835 _flag_k = FK_TEST; 32836 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFCA; /* 0x2B04EFC3: jne 0x2b04efca */ 32837 L_2B04EFC5: 32838 eax = MEM32(0x2B0B513C); /* 0x2B04EFC5: mov eax, dword ptr [0x2b0b513c] */ 32839 L_2B04EFCA: 32840 MEM32(edi + 0x4) = eax; /* 0x2B04EFCA: mov dword ptr [edi + 4], eax */ 32841 ecx = MEM32(ebp + (-0x58)); /* 0x2B04EFCD: mov ecx, dword ptr [ebp - 0x58] */ 32842 MEM32(edi + 0x8) = ecx; /* 0x2B04EFD0: mov dword ptr [edi + 8], ecx */ 32843 edx = MEM32(ebp + (-0x54)); /* 0x2B04EFD3: mov edx, dword ptr [ebp - 0x54] */ 32844 MEM32(edi + 0xC) = edx; /* 0x2B04EFD6: mov dword ptr [edi + 0xc], edx */ 32845 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 32846 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B04EFD9: inc byte ptr [eax - 1] */ 32847 _flag_k = FK_NARROW(FK_INC, 24); 32848 goto L_2B04F01C; /* 0x2B04EFDC: jmp 0x2b04f01c */ 32849 L_2B04EFDE: 32850 PUSH32(esp, 1); /* 0x2B04EFDE: push 1 */ 32851 PUSH32(esp, ebx); /* 0x2B04EFE0: push ebx */ 32852 ecx = edi; /* 0x2B04EFE1: mov ecx, edi */ 32853 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B04EFE3: call dword ptr [0x2b0b5154] */ 32854 RECOMP_FLAGS_IN(); 32855 /* test LO8(eax), LO8(eax) */ /* 0x2B04EFE9: test al, al */ 32856 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 32857 _cf = 0; 32858 _flag_k = FK_NARROW(FK_TEST, 24); 32859 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F01C; /* 0x2B04EFEB: je 0x2b04f01c */ 32860 L_2B04EFED: 32861 esi = MEM32(ebp + (-0x5C)); /* 0x2B04EFED: mov esi, dword ptr [ebp - 0x5c] */ 32862 /* test esi, esi */ /* 0x2B04EFF0: test esi, esi */ 32863 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 32864 _cf = 0; 32865 _flag_k = FK_TEST; 32866 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04EFFA; /* 0x2B04EFF2: jne 0x2b04effa */ 32867 L_2B04EFF4: 32868 esi = MEM32(0x2B0B513C); /* 0x2B04EFF4: mov esi, dword ptr [0x2b0b513c] */ 32869 L_2B04EFFA: 32870 eax = MEM32(ebp + (-0x2C)); /* 0x2B04EFFA: mov eax, dword ptr [ebp - 0x2c] */ 32871 edi = MEM32(eax + 0x4); /* 0x2B04EFFD: mov edi, dword ptr [eax + 4] */ 32872 ecx = ebx; /* 0x2B04F000: mov ecx, ebx */ 32873 edx = ecx; /* 0x2B04F002: mov edx, ecx */ 32874 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B04F004: shr ecx, 2 */ 32875 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 32876 ecx = ecx >> 2u; /* 0x2B04F004: shr ecx, 2 */ 32877 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B04F007: 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; } 32878 ecx = edx; /* 0x2B04F009: mov ecx, edx */ 32879 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 32880 ecx = ecx & 3; /* 0x2B04F00B: and ecx, 3 */ 32881 _cf = 0; 32882 _flag_k = FK_TEST; 32883 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B04F00E: 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; } 32884 PUSH32(esp, ebx); /* 0x2B04F010: push ebx */ 32885 ecx = eax; /* 0x2B04F011: mov ecx, eax */ 32886 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B04F013: call dword ptr [0x2b0b5150] */ 32887 RECOMP_FLAGS_IN(); 32888 esi = MEM32(ebp + (-0x20)); /* 0x2B04F019: mov esi, dword ptr [ebp - 0x20] */ 32889 L_2B04F01C: 32890 edi = MEM32(ebp + (-0x50)); /* 0x2B04F01C: mov edi, dword ptr [ebp - 0x50] */ 32891 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 32892 ebx = 0; /* 0x2B04F01F: xor ebx, ebx */ 32893 _cf = 0; 32894 _flag_k = FK_TEST; 32895 /* cmp edi, ebx */ /* 0x2B04F021: cmp edi, ebx */ 32896 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 32897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32898 _flag_k = FK_CMP; 32899 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F023: je 0x2b04f062 */ 32900 L_2B04F025: 32901 edx = MEM32(edi + 0x2C); /* 0x2B04F025: mov edx, dword ptr [edi + 0x2c] */ 32902 eax = edi + 0x2C; /* 0x2B04F028: lea eax, [edi + 0x2c] */ 32903 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 32904 edx = edx - 1; /* 0x2B04F02B: dec edx */ 32905 _flag_k = FK_DEC; 32906 ecx = edx; /* 0x2B04F02C: mov ecx, edx */ 32907 /* cmp ecx, ebx */ /* 0x2B04F02E: cmp ecx, ebx */ 32908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 32909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32910 _flag_k = FK_CMP; 32911 MEM32(eax) = edx; /* 0x2B04F030: mov dword ptr [eax], edx */ 32912 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F032: jne 0x2b04f062 */ 32913 L_2B04F034: 32914 /* cmp edi, ebx */ /* 0x2B04F034: cmp edi, ebx */ 32915 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 32916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32917 _flag_k = FK_CMP; 32918 MEM32(ebp + (-0x2C)) = edi; /* 0x2B04F036: mov dword ptr [ebp - 0x2c], edi */ 32919 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F062; /* 0x2B04F039: je 0x2b04f062 */ 32920 L_2B04F03B: 32921 PUSH32(esp, 1); /* 0x2B04F03B: push 1 */ 32922 ecx = edi + 0x1C; /* 0x2B04F03D: lea ecx, [edi + 0x1c] */ 32923 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B04F040: mov byte ptr [ebp - 4], 5 */ 32924 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F044: call dword ptr [0x2b0b514c] */ 32925 RECOMP_FLAGS_IN(); 32926 PUSH32(esp, 1); /* 0x2B04F04A: push 1 */ 32927 ecx = edi + 0xC; /* 0x2B04F04C: lea ecx, [edi + 0xc] */ 32928 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B04F04F: mov byte ptr [ebp - 4], 4 */ 32929 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F053: call dword ptr [0x2b0b514c] */ 32930 RECOMP_FLAGS_IN(); 32931 PUSH32(esp, edi); /* 0x2B04F059: push edi */ 32932 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F05A: call 0x2b0ab1ba */ /* not lifted */ 32933 RECOMP_FLAGS_IN(); 32934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 32935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32936 esp = esp + 4; /* 0x2B04F05F: add esp, 4 */ 32937 _flag_k = FK_ADD; 32938 L_2B04F062: 32939 ecx = MEM32(ebp + (-0x5C)); /* 0x2B04F062: mov ecx, dword ptr [ebp - 0x5c] */ 32940 /* cmp ecx, ebx */ /* 0x2B04F065: cmp ecx, ebx */ 32941 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 32942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32943 _flag_k = FK_CMP; 32944 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04F067: mov byte ptr [ebp - 4], 2 */ 32945 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F088; /* 0x2B04F06B: je 0x2b04f088 */ 32946 L_2B04F06D: 32947 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04F06D: mov al, byte ptr [ecx - 1] */ 32948 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 32949 ecx = ecx - 1; /* 0x2B04F070: dec ecx */ 32950 _flag_k = FK_DEC; 32951 /* test LO8(eax), LO8(eax) */ /* 0x2B04F071: test al, al */ 32952 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 32953 _cf = 0; 32954 _flag_k = FK_NARROW(FK_TEST, 24); 32955 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F073: je 0x2b04f07f */ 32956 L_2B04F075: 32957 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F075: cmp al, 0xff */ 32958 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 32959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32960 _flag_k = FK_NARROW(FK_CMP, 24); 32961 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F07F; /* 0x2B04F077: je 0x2b04f07f */ 32962 L_2B04F079: 32963 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 32964 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F079: dec al */ 32965 _flag_k = FK_NARROW(FK_DEC, 24); 32966 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F07B: mov byte ptr [ecx], al */ 32967 goto L_2B04F088; /* 0x2B04F07D: jmp 0x2b04f088 */ 32968 L_2B04F07F: 32969 PUSH32(esp, ecx); /* 0x2B04F07F: push ecx */ 32970 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F080: call 0x2b0ab1ba */ /* not lifted */ 32971 RECOMP_FLAGS_IN(); 32972 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 32973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32974 esp = esp + 4; /* 0x2B04F085: add esp, 4 */ 32975 _flag_k = FK_ADD; 32976 L_2B04F088: 32977 eax = MEM32(esi + (-0x4)); /* 0x2B04F088: mov eax, dword ptr [esi - 4] */ 32978 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B04F08B: mov byte ptr [eax + 9], 1 */ 32979 eax = MEM32(ebp + (-0x14)); /* 0x2B04F08F: mov eax, dword ptr [ebp - 0x14] */ 32980 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B04F092: mov cl, byte ptr [eax + 0x2c] */ 32981 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F095: test cl, cl */ 32982 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 32983 _cf = 0; 32984 _flag_k = FK_NARROW(FK_TEST, 24); 32985 MEM32(ebp + (-0x5C)) = ebx; /* 0x2B04F097: mov dword ptr [ebp - 0x5c], ebx */ 32986 MEM32(ebp + (-0x58)) = ebx; /* 0x2B04F09A: mov dword ptr [ebp - 0x58], ebx */ 32987 MEM32(ebp + (-0x54)) = ebx; /* 0x2B04F09D: mov dword ptr [ebp - 0x54], ebx */ 32988 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F0A9; /* 0x2B04F0A0: je 0x2b04f0a9 */ 32989 L_2B04F0A2: 32990 PUSH32(esp, 0x00FF0000u); /* 0x2B04F0A2: push 0xff0000 */ 32991 goto L_2B04F0AD; /* 0x2B04F0A7: jmp 0x2b04f0ad */ 32992 L_2B04F0A9: 32993 eax = MEM32(eax + 0x24); /* 0x2B04F0A9: mov eax, dword ptr [eax + 0x24] */ 32994 PUSH32(esp, eax); /* 0x2B04F0AC: push eax */ 32995 L_2B04F0AD: 32996 ecx = MEM32(esi + (-0x4)); /* 0x2B04F0AD: mov ecx, dword ptr [esi - 4] */ 32997 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B04F0B0: call dword ptr [0x2b0b5858] */ 32998 RECOMP_FLAGS_IN(); 32999 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F0B6: mov ecx, dword ptr [ebp - 0x18] */ 33000 eax = MEM32(ecx + 0x4); /* 0x2B04F0B9: mov eax, dword ptr [ecx + 4] */ 33001 edx = MEM32(ebp + (-0x30)); /* 0x2B04F0BC: mov edx, dword ptr [ebp - 0x30] */ 33002 ecx = MEM32(esi); /* 0x2B04F0BF: mov ecx, dword ptr [esi] */ 33003 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x92u); 33004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33005 eax = eax + 0x92u; /* 0x2B04F0C1: add eax, 0x92 */ 33006 _flag_k = FK_ADD; 33007 PUSH32(esp, edx); /* 0x2B04F0C6: push edx */ 33008 PUSH32(esp, eax); /* 0x2B04F0C7: push eax */ 33009 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F0C8: mov dword ptr [ebp - 0x34], eax */ 33010 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F0CB: call dword ptr [0x2b0b5a4c] */ 33011 RECOMP_FLAGS_IN(); 33012 eax = MEM32(ebp + (-0x14)); /* 0x2B04F0D1: mov eax, dword ptr [ebp - 0x14] */ 33013 eax = MEM32(eax + 0x1C); /* 0x2B04F0D4: mov eax, dword ptr [eax + 0x1c] */ 33014 /* test LO8(eax), 9 */ /* 0x2B04F0D7: test al, 9 */ 33015 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(9) << 24; 33016 _cf = 0; 33017 _flag_k = FK_NARROW(FK_TEST, 24); 33018 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0EC; /* 0x2B04F0D9: jne 0x2b04f0ec */ 33019 L_2B04F0DB: 33020 /* test eax, 0x01000000u */ /* 0x2B04F0DB: test eax, 0x1000000 */ 33021 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 33022 _cf = 0; 33023 _flag_k = FK_TEST; 33024 ecx = MEM32(esi); /* 0x2B04F0E0: mov ecx, dword ptr [esi] */ 33025 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F0E8; /* 0x2B04F0E2: jne 0x2b04f0e8 */ 33026 L_2B04F0E4: 33027 PUSH32(esp, 2); /* 0x2B04F0E4: push 2 */ 33028 goto L_2B04F0EF; /* 0x2B04F0E6: jmp 0x2b04f0ef */ 33029 L_2B04F0E8: 33030 PUSH32(esp, 1); /* 0x2B04F0E8: push 1 */ 33031 goto L_2B04F0EF; /* 0x2B04F0EA: jmp 0x2b04f0ef */ 33032 L_2B04F0EC: 33033 ecx = MEM32(esi); /* 0x2B04F0EC: mov ecx, dword ptr [esi] */ 33034 PUSH32(esp, ebx); /* 0x2B04F0EE: push ebx */ 33035 L_2B04F0EF: 33036 edi = MEM32(0x2B0B5AB4); /* 0x2B04F0EF: mov edi, dword ptr [0x2b0b5ab4] */ 33037 RECOMP_ICALL(edi); /* 0x2B04F0F5: call edi */ 33038 RECOMP_FLAGS_IN(); 33039 ecx = MEM32(esi); /* 0x2B04F0F7: mov ecx, dword ptr [esi] */ 33040 ebx = MEM32(0x2B0B5B3C); /* 0x2B04F0F9: mov ebx, dword ptr [0x2b0b5b3c] */ 33041 RECOMP_ICALL(ebx); /* 0x2B04F0FF: call ebx */ 33042 RECOMP_FLAGS_IN(); 33043 ecx = MEM32(esi); /* 0x2B04F101: mov ecx, dword ptr [esi] */ 33044 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F103: call dword ptr [0x2b0b5960] */ 33045 RECOMP_FLAGS_IN(); 33046 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F109: mov ecx, dword ptr [ebp - 0x18] */ 33047 eax = MEM32(ecx + 0x4); /* 0x2B04F10C: mov eax, dword ptr [ecx + 4] */ 33048 edx = MEM32(ebp + (-0x30)); /* 0x2B04F10F: mov edx, dword ptr [ebp - 0x30] */ 33049 ecx = MEM32(esi + 0x4); /* 0x2B04F112: mov ecx, dword ptr [esi + 4] */ 33050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xA1u); 33051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33052 eax = eax + 0xA1u; /* 0x2B04F115: add eax, 0xa1 */ 33053 _flag_k = FK_ADD; 33054 PUSH32(esp, edx); /* 0x2B04F11A: push edx */ 33055 PUSH32(esp, eax); /* 0x2B04F11B: push eax */ 33056 MEM32(ebp + (-0x34)) = eax; /* 0x2B04F11C: mov dword ptr [ebp - 0x34], eax */ 33057 RECOMP_ICALL(MEM32(0x2B0B5A4C)); /* 0x2B04F11F: call dword ptr [0x2b0b5a4c] */ 33058 RECOMP_FLAGS_IN(); 33059 eax = MEM32(ebp + (-0x14)); /* 0x2B04F125: mov eax, dword ptr [ebp - 0x14] */ 33060 eax = MEM32(eax + 0x1C); /* 0x2B04F128: mov eax, dword ptr [eax + 0x1c] */ 33061 /* test LO8(eax), 8 */ /* 0x2B04F12B: test al, 8 */ 33062 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 33063 _cf = 0; 33064 _flag_k = FK_NARROW(FK_TEST, 24); 33065 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F136; /* 0x2B04F12D: je 0x2b04f136 */ 33066 L_2B04F12F: 33067 ecx = MEM32(esi + 0x4); /* 0x2B04F12F: mov ecx, dword ptr [esi + 4] */ 33068 PUSH32(esp, 0); /* 0x2B04F132: push 0 */ 33069 goto L_2B04F146; /* 0x2B04F134: jmp 0x2b04f146 */ 33070 L_2B04F136: 33071 /* test eax, 0x02000000u */ /* 0x2B04F136: test eax, 0x2000000 */ 33072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 33073 _cf = 0; 33074 _flag_k = FK_TEST; 33075 ecx = MEM32(esi + 0x4); /* 0x2B04F13B: mov ecx, dword ptr [esi + 4] */ 33076 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F144; /* 0x2B04F13E: je 0x2b04f144 */ 33077 L_2B04F140: 33078 PUSH32(esp, 2); /* 0x2B04F140: push 2 */ 33079 goto L_2B04F146; /* 0x2B04F142: jmp 0x2b04f146 */ 33080 L_2B04F144: 33081 PUSH32(esp, 1); /* 0x2B04F144: push 1 */ 33082 L_2B04F146: 33083 RECOMP_ICALL(edi); /* 0x2B04F146: call edi */ 33084 RECOMP_FLAGS_IN(); 33085 ecx = MEM32(esi + 0x4); /* 0x2B04F148: mov ecx, dword ptr [esi + 4] */ 33086 RECOMP_ICALL(ebx); /* 0x2B04F14B: call ebx */ 33087 RECOMP_FLAGS_IN(); 33088 ecx = MEM32(esi + 0x4); /* 0x2B04F14D: mov ecx, dword ptr [esi + 4] */ 33089 RECOMP_ICALL(MEM32(0x2B0B5960)); /* 0x2B04F150: call dword ptr [0x2b0b5960] */ 33090 RECOMP_FLAGS_IN(); 33091 ebx = MEM32(ebp + (-0x30)); /* 0x2B04F156: mov ebx, dword ptr [ebp - 0x30] */ 33092 edi = MEM32(ebp + (-0x1C)); /* 0x2B04F159: mov edi, dword ptr [ebp - 0x1c] */ 33093 eax = MEM32(ebp + (-0x48)); /* 0x2B04F15C: mov eax, dword ptr [ebp - 0x48] */ 33094 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 33095 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33096 esi = esi + 0x14u; /* 0x2B04F15F: add esi, 0x14 */ 33097 _flag_k = FK_ADD; 33098 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 33099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33100 ebx = ebx + 0xCu; /* 0x2B04F162: add ebx, 0xc */ 33101 _flag_k = FK_ADD; 33102 MEM32(ebp + (-0x20)) = esi; /* 0x2B04F165: mov dword ptr [ebp - 0x20], esi */ 33103 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 33104 edi = edi + 1; /* 0x2B04F168: inc edi */ 33105 _flag_k = FK_INC; 33106 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 33107 esi = 0; /* 0x2B04F169: xor esi, esi */ 33108 _cf = 0; 33109 _flag_k = FK_TEST; 33110 /* cmp eax, esi */ /* 0x2B04F16B: cmp eax, esi */ 33111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 33112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33113 _flag_k = FK_CMP; 33114 MEM32(ebp + (-0x30)) = ebx; /* 0x2B04F16D: mov dword ptr [ebp - 0x30], ebx */ 33115 MEM32(ebp + (-0x1C)) = edi; /* 0x2B04F170: mov dword ptr [ebp - 0x1c], edi */ 33116 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F173: mov dword ptr [ebp - 4], 0xffffffff */ 33117 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F199; /* 0x2B04F17A: je 0x2b04f199 */ 33118 L_2B04F17C: 33119 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x2B04F17C: mov cl, byte ptr [eax - 1] */ 33120 /* test LO8(ecx), LO8(ecx) */ /* 0x2B04F17F: test cl, cl */ 33121 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 33122 _cf = 0; 33123 _flag_k = FK_NARROW(FK_TEST, 24); 33124 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F181: je 0x2b04f18f */ 33125 L_2B04F183: 33126 /* cmp LO8(ecx), 0xFFu */ /* 0x2B04F183: cmp cl, 0xff */ 33127 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 33128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33129 _flag_k = FK_NARROW(FK_CMP, 24); 33130 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F18F; /* 0x2B04F186: je 0x2b04f18f */ 33131 L_2B04F188: 33132 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 33133 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B04F188: dec cl */ 33134 _flag_k = FK_NARROW(FK_DEC, 24); 33135 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x2B04F18A: mov byte ptr [eax - 1], cl */ 33136 goto L_2B04F199; /* 0x2B04F18D: jmp 0x2b04f199 */ 33137 L_2B04F18F: 33138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 33139 eax = eax - 1; /* 0x2B04F18F: dec eax */ 33140 _flag_k = FK_DEC; 33141 PUSH32(esp, eax); /* 0x2B04F190: push eax */ 33142 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F191: call 0x2b0ab1ba */ /* not lifted */ 33143 RECOMP_FLAGS_IN(); 33144 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 33145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33146 esp = esp + 4; /* 0x2B04F196: add esp, 4 */ 33147 _flag_k = FK_ADD; 33148 L_2B04F199: 33149 ecx = ebp + (-0x28); /* 0x2B04F199: lea ecx, [ebp - 0x28] */ 33150 PUSH32(esp, ecx); /* 0x2B04F19C: push ecx */ 33151 ecx = MEM32(ebp + (-0x18)); /* 0x2B04F19D: mov ecx, dword ptr [ebp - 0x18] */ 33152 edx = ebp + (-0x14); /* 0x2B04F1A0: lea edx, [ebp - 0x14] */ 33153 PUSH32(esp, edx); /* 0x2B04F1A3: push edx */ 33154 MEM32(ebp + (-0x48)) = esi; /* 0x2B04F1A4: mov dword ptr [ebp - 0x48], esi */ 33155 MEM32(ebp + (-0x44)) = esi; /* 0x2B04F1A7: mov dword ptr [ebp - 0x44], esi */ 33156 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F1AA: mov dword ptr [ebp - 0x40], esi */ 33157 RECOMP_ICALL(0x2B051220u); /* 0x2B04F1AD: call 0x2b051220 */ /* not lifted */ 33158 RECOMP_FLAGS_IN(); 33159 /* cmp MEM32(ebp + (-0x1C)), 6 */ /* 0x2B04F1B2: cmp dword ptr [ebp - 0x1c], 6 */ 33160 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(6); 33161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33162 _flag_k = FK_CMP; 33163 RECOMP_BACKEDGE(); 33164 if (CMP_L(_flag_a, _flag_b)) goto L_2B04EDBF; /* 0x2B04F1B6: jl 0x2b04edbf */ 33165 L_2B04F1BC: 33166 esi = MEM32(ebp + (-0x18)); /* 0x2B04F1BC: mov esi, dword ptr [ebp - 0x18] */ 33167 goto L_2B04F1F5; /* 0x2B04F1BF: jmp 0x2b04f1f5 */ 33168 L_2B04F1C1: 33169 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 33170 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 33171 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 33172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33173 _flag_k = FK_CMP; 33174 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 33175 L_2B04F1C9: 33176 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 33177 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 33178 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 33179 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 33180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33181 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 33182 _flag_k = FK_CMP; 33183 L_2B04F1D7: 33184 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 33185 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 33186 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 33187 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 33188 RECOMP_FLAGS_IN(); 33189 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 33190 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 33191 RECOMP_FLAGS_IN(); 33192 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 33193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33194 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 33195 _flag_k = FK_ADD; 33196 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 33197 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 33198 _flag_k = FK_DEC; 33199 RECOMP_BACKEDGE(); 33200 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 33201 L_2B04F1F5: 33202 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 33203 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 33204 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 33205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 33206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33207 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 33208 _flag_k = FK_ADD; 33209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 33210 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33211 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 33212 _flag_k = FK_ADD; 33213 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 33214 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 33215 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 33216 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 33217 RECOMP_FLAGS_IN(); 33218 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 33219 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 33220 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 33221 RECOMP_FLAGS_IN(); 33222 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 33223 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 33224 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 33225 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 33226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33227 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 33228 _flag_k = FK_ADD; 33229 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 33230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 33231 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33232 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 33233 _flag_k = FK_ADD; 33234 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 33235 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 33236 RECOMP_FLAGS_IN(); 33237 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 33238 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 33239 RECOMP_FLAGS_IN(); 33240 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 33241 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 33242 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 33243 _cf = 0; 33244 _flag_k = FK_NARROW(FK_TEST, 24); 33245 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 33246 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 33247 L_2B04F246: 33248 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 33249 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 33250 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 33251 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 33252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 33253 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33254 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 33255 _flag_k = FK_ADD; 33256 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 33257 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 33258 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 33259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33260 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 33261 _flag_k = FK_ADD; 33262 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 33263 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 33264 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 33265 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 33266 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 33267 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 33268 RECOMP_FLAGS_IN(); 33269 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 33270 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 33271 RECOMP_FLAGS_IN(); 33272 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 33273 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 33274 RECOMP_FLAGS_IN(); 33275 L_2B04F283: 33276 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 33277 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 33278 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 33279 _cf = 0; 33280 _flag_k = FK_NARROW(FK_TEST, 24); 33281 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 33282 L_2B04F28D: 33283 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 33284 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 33285 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 33286 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 33287 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 33288 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33289 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 33290 _flag_k = FK_ADD; 33291 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 33292 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 33293 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 33294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33295 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 33296 _flag_k = FK_ADD; 33297 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 33298 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 33299 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 33300 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 33301 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 33302 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 33303 RECOMP_FLAGS_IN(); 33304 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 33305 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 33306 RECOMP_FLAGS_IN(); 33307 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 33308 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 33309 RECOMP_FLAGS_IN(); 33310 L_2B04F2D0: 33311 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 33312 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 33313 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 33314 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 33315 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 33316 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 33317 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 33318 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 33319 RECOMP_REGS_OUT(); 33320 } 33321 33322 void sub_2B04F1C1(void) { 33323 int _fpu_cmp = 0; 33324 uint32_t _cf = 0; 33325 int _df = 1; 33326 uint32_t _flag_k = FK_NONE; 33327 uint32_t _flag_a = 0, _flag_b = 0; 33328 uint32_t _itail_tgt = 0; 33329 RECOMP_REGS_LOCALS 33330 RECOMP_ENTER(0x2B04F1C1u); 33331 33332 L_2B04F1C1: 33333 eax = MEM32(ebp + (-0x1C)); /* 0x2B04F1C1: mov eax, dword ptr [ebp - 0x1c] */ 33334 /* cmp eax, 6 */ /* 0x2B04F1C4: cmp eax, 6 */ 33335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 33336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33337 _flag_k = FK_CMP; 33338 if (CMP_GE(_flag_a, _flag_b)) goto L_2B04F1F5; /* 0x2B04F1C7: jge 0x2b04f1f5 */ 33339 L_2B04F1C9: 33340 ecx = eax + eax * 4 + 0x46; /* 0x2B04F1C9: lea ecx, [eax + eax*4 + 0x46] */ 33341 ebx = 6; /* 0x2B04F1CD: mov ebx, 6 */ 33342 edi = esi + ecx * 4; /* 0x2B04F1D2: lea edi, [esi + ecx*4] */ 33343 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 33344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33345 ebx = ebx - eax; /* 0x2B04F1D5: sub ebx, eax */ 33346 _flag_k = FK_CMP; 33347 L_2B04F1D7: 33348 edx = MEM32(edi + (-0x8)); /* 0x2B04F1D7: mov edx, dword ptr [edi - 8] */ 33349 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B04F1DA: mov byte ptr [edx + 8], 0 */ 33350 ecx = MEM32(edi); /* 0x2B04F1DE: mov ecx, dword ptr [edi] */ 33351 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E0: call dword ptr [0x2b0b5b34] */ 33352 RECOMP_FLAGS_IN(); 33353 ecx = MEM32(edi + (-0x4)); /* 0x2B04F1E6: mov ecx, dword ptr [edi - 4] */ 33354 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B04F1E9: call dword ptr [0x2b0b5b34] */ 33355 RECOMP_FLAGS_IN(); 33356 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 33357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33358 edi = edi + 0x14u; /* 0x2B04F1EF: add edi, 0x14 */ 33359 _flag_k = FK_ADD; 33360 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 33361 ebx = ebx - 1; /* 0x2B04F1F2: dec ebx */ 33362 _flag_k = FK_DEC; 33363 RECOMP_BACKEDGE(); 33364 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F1D7; /* 0x2B04F1F3: jne 0x2b04f1d7 */ 33365 L_2B04F1F5: 33366 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 33367 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 33368 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 33369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 33370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33371 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 33372 _flag_k = FK_ADD; 33373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 33374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33375 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 33376 _flag_k = FK_ADD; 33377 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 33378 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 33379 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 33380 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 33381 RECOMP_FLAGS_IN(); 33382 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 33383 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 33384 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 33385 RECOMP_FLAGS_IN(); 33386 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 33387 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 33388 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 33389 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 33390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33391 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 33392 _flag_k = FK_ADD; 33393 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 33394 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 33395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33396 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 33397 _flag_k = FK_ADD; 33398 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 33399 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 33400 RECOMP_FLAGS_IN(); 33401 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 33402 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 33403 RECOMP_FLAGS_IN(); 33404 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 33405 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 33406 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 33407 _cf = 0; 33408 _flag_k = FK_NARROW(FK_TEST, 24); 33409 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 33410 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 33411 L_2B04F246: 33412 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 33413 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 33414 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 33415 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 33416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 33417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33418 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 33419 _flag_k = FK_ADD; 33420 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 33421 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 33422 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 33423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33424 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 33425 _flag_k = FK_ADD; 33426 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 33427 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 33428 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 33429 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 33430 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 33431 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 33432 RECOMP_FLAGS_IN(); 33433 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 33434 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 33435 RECOMP_FLAGS_IN(); 33436 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 33437 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 33438 RECOMP_FLAGS_IN(); 33439 L_2B04F283: 33440 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 33441 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 33442 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 33443 _cf = 0; 33444 _flag_k = FK_NARROW(FK_TEST, 24); 33445 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 33446 L_2B04F28D: 33447 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 33448 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 33449 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 33450 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 33451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 33452 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33453 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 33454 _flag_k = FK_ADD; 33455 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 33456 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 33457 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 33458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33459 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 33460 _flag_k = FK_ADD; 33461 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 33462 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 33463 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 33464 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 33465 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 33466 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 33467 RECOMP_FLAGS_IN(); 33468 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 33469 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 33470 RECOMP_FLAGS_IN(); 33471 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 33472 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 33473 RECOMP_FLAGS_IN(); 33474 L_2B04F2D0: 33475 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 33476 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 33477 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 33478 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 33479 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 33480 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 33481 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 33482 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 33483 RECOMP_REGS_OUT(); 33484 } 33485 33486 void sub_2B04F1F5(void) { 33487 int _fpu_cmp = 0; 33488 uint32_t _cf = 0; 33489 int _df = 1; 33490 uint32_t _flag_k = FK_NONE; 33491 uint32_t _flag_a = 0, _flag_b = 0; 33492 uint32_t _itail_tgt = 0; 33493 RECOMP_REGS_LOCALS 33494 RECOMP_ENTER(0x2B04F1F5u); 33495 33496 L_2B04F1F5: 33497 eax = MEM32(esi + 0x8); /* 0x2B04F1F5: mov eax, dword ptr [esi + 8] */ 33498 ecx = MEM32(esi + 0x4); /* 0x2B04F1F8: mov ecx, dword ptr [esi + 4] */ 33499 edi = MEM32(0x2B0B581C); /* 0x2B04F1FB: mov edi, dword ptr [0x2b0b581c] */ 33500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x111u); 33501 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33502 eax = eax + 0x111u; /* 0x2B04F201: add eax, 0x111 */ 33503 _flag_k = FK_ADD; 33504 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 33505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33506 ecx = ecx + 5; /* 0x2B04F206: add ecx, 5 */ 33507 _flag_k = FK_ADD; 33508 PUSH32(esp, eax); /* 0x2B04F209: push eax */ 33509 PUSH32(esp, ecx); /* 0x2B04F20A: push ecx */ 33510 ecx = MEM32(esi + 0x44); /* 0x2B04F20B: mov ecx, dword ptr [esi + 0x44] */ 33511 RECOMP_ICALL(edi); /* 0x2B04F20E: call edi */ 33512 RECOMP_FLAGS_IN(); 33513 ecx = MEM32(esi + 0x44); /* 0x2B04F210: mov ecx, dword ptr [esi + 0x44] */ 33514 ebx = MEM32(0x2B0B5960); /* 0x2B04F213: mov ebx, dword ptr [0x2b0b5960] */ 33515 RECOMP_ICALL(ebx); /* 0x2B04F219: call ebx */ 33516 RECOMP_FLAGS_IN(); 33517 edx = MEM32(esi + 0x8); /* 0x2B04F21B: mov edx, dword ptr [esi + 8] */ 33518 eax = MEM32(esi + 0x4); /* 0x2B04F21E: mov eax, dword ptr [esi + 4] */ 33519 ecx = MEM32(esi + 0x40); /* 0x2B04F221: mov ecx, dword ptr [esi + 0x40] */ 33520 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x111u); 33521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33522 edx = edx + 0x111u; /* 0x2B04F224: add edx, 0x111 */ 33523 _flag_k = FK_ADD; 33524 PUSH32(esp, edx); /* 0x2B04F22A: push edx */ 33525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 33526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33527 eax = eax + 0x5Fu; /* 0x2B04F22B: add eax, 0x5f */ 33528 _flag_k = FK_ADD; 33529 PUSH32(esp, eax); /* 0x2B04F22E: push eax */ 33530 RECOMP_ICALL(edi); /* 0x2B04F22F: call edi */ 33531 RECOMP_FLAGS_IN(); 33532 ecx = MEM32(esi + 0x40); /* 0x2B04F231: mov ecx, dword ptr [esi + 0x40] */ 33533 RECOMP_ICALL(ebx); /* 0x2B04F234: call ebx */ 33534 RECOMP_FLAGS_IN(); 33535 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F236: mov al, byte ptr [esi + 0x19c] */ 33536 /* test LO8(eax), LO8(eax) */ /* 0x2B04F23C: test al, al */ 33537 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 33538 _cf = 0; 33539 _flag_k = FK_NARROW(FK_TEST, 24); 33540 ebx = MEM32(0x2B0B585C); /* 0x2B04F23E: mov ebx, dword ptr [0x2b0b585c] */ 33541 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F283; /* 0x2B04F244: je 0x2b04f283 */ 33542 L_2B04F246: 33543 ecx = MEM32(esi + 0x8); /* 0x2B04F246: mov ecx, dword ptr [esi + 8] */ 33544 eax = MEM32(esi + 0x4); /* 0x2B04F249: mov eax, dword ptr [esi + 4] */ 33545 edi = ecx + 0x1C; /* 0x2B04F24C: lea edi, [ecx + 0x1c] */ 33546 PUSH32(esp, edi); /* 0x2B04F24F: push edi */ 33547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 33548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33549 eax = eax + 0xB4u; /* 0x2B04F250: add eax, 0xb4 */ 33550 _flag_k = FK_ADD; 33551 edx = ecx + 0x27; /* 0x2B04F255: lea edx, [ecx + 0x27] */ 33552 PUSH32(esp, eax); /* 0x2B04F258: push eax */ 33553 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA4u); 33554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33555 ecx = ecx + 0xA4u; /* 0x2B04F259: add ecx, 0xa4 */ 33556 _flag_k = FK_ADD; 33557 PUSH32(esp, ecx); /* 0x2B04F25F: push ecx */ 33558 ecx = MEM32(esi + 0x194); /* 0x2B04F260: mov ecx, dword ptr [esi + 0x194] */ 33559 PUSH32(esp, eax); /* 0x2B04F266: push eax */ 33560 PUSH32(esp, edx); /* 0x2B04F267: push edx */ 33561 PUSH32(esp, eax); /* 0x2B04F268: push eax */ 33562 RECOMP_ICALL(ebx); /* 0x2B04F269: call ebx */ 33563 RECOMP_FLAGS_IN(); 33564 ecx = MEM32(esi + 0x194); /* 0x2B04F26B: mov ecx, dword ptr [esi + 0x194] */ 33565 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F271: call dword ptr [0x2b0b5bb0] */ 33566 RECOMP_FLAGS_IN(); 33567 ecx = MEM32(esi + 0x194); /* 0x2B04F277: mov ecx, dword ptr [esi + 0x194] */ 33568 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F27D: call dword ptr [0x2b0b5b74] */ 33569 RECOMP_FLAGS_IN(); 33570 L_2B04F283: 33571 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F283: mov al, byte ptr [esi + 0x19d] */ 33572 /* test LO8(eax), LO8(eax) */ /* 0x2B04F289: test al, al */ 33573 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 33574 _cf = 0; 33575 _flag_k = FK_NARROW(FK_TEST, 24); 33576 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F2D0; /* 0x2B04F28B: je 0x2b04f2d0 */ 33577 L_2B04F28D: 33578 ecx = MEM32(esi + 0x8); /* 0x2B04F28D: mov ecx, dword ptr [esi + 8] */ 33579 eax = MEM32(esi + 0x4); /* 0x2B04F290: mov eax, dword ptr [esi + 4] */ 33580 edi = ecx + 0xBE; /* 0x2B04F293: lea edi, [ecx + 0xbe] */ 33581 PUSH32(esp, edi); /* 0x2B04F299: push edi */ 33582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 33583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33584 eax = eax + 0xB4u; /* 0x2B04F29A: add eax, 0xb4 */ 33585 _flag_k = FK_ADD; 33586 edx = ecx + 0xC9; /* 0x2B04F29F: lea edx, [ecx + 0xc9] */ 33587 PUSH32(esp, eax); /* 0x2B04F2A5: push eax */ 33588 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u); 33589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33590 ecx = ecx + 0x104u; /* 0x2B04F2A6: add ecx, 0x104 */ 33591 _flag_k = FK_ADD; 33592 PUSH32(esp, ecx); /* 0x2B04F2AC: push ecx */ 33593 ecx = MEM32(esi + 0x198); /* 0x2B04F2AD: mov ecx, dword ptr [esi + 0x198] */ 33594 PUSH32(esp, eax); /* 0x2B04F2B3: push eax */ 33595 PUSH32(esp, edx); /* 0x2B04F2B4: push edx */ 33596 PUSH32(esp, eax); /* 0x2B04F2B5: push eax */ 33597 RECOMP_ICALL(ebx); /* 0x2B04F2B6: call ebx */ 33598 RECOMP_FLAGS_IN(); 33599 ecx = MEM32(esi + 0x198); /* 0x2B04F2B8: mov ecx, dword ptr [esi + 0x198] */ 33600 RECOMP_ICALL(MEM32(0x2B0B5BB0)); /* 0x2B04F2BE: call dword ptr [0x2b0b5bb0] */ 33601 RECOMP_FLAGS_IN(); 33602 ecx = MEM32(esi + 0x198); /* 0x2B04F2C4: mov ecx, dword ptr [esi + 0x198] */ 33603 RECOMP_ICALL(MEM32(0x2B0B5B74)); /* 0x2B04F2CA: call dword ptr [0x2b0b5b74] */ 33604 RECOMP_FLAGS_IN(); 33605 L_2B04F2D0: 33606 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F2D0: mov ecx, dword ptr [ebp - 0xc] */ 33607 edi = POP32_VAL(esp); /* 0x2B04F2D3: pop edi */ 33608 esi = POP32_VAL(esp); /* 0x2B04F2D4: pop esi */ 33609 ebx = POP32_VAL(esp); /* 0x2B04F2D5: pop ebx */ 33610 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F2D6: mov dword ptr fs:[0], ecx */ 33611 esp = ebp; /* 0x2B04F2DD: mov esp, ebp */ 33612 ebp = POP32_VAL(esp); /* 0x2B04F2DF: pop ebp */ 33613 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F2E0: ret */ 33614 RECOMP_REGS_OUT(); 33615 } 33616 33617 void sub_2B04F2F0(void) { 33618 int _fpu_cmp = 0; 33619 uint32_t _cf = 0; 33620 int _df = 1; 33621 uint32_t _flag_k = FK_NONE; 33622 uint32_t _flag_a = 0, _flag_b = 0; 33623 uint32_t _itail_tgt = 0; 33624 RECOMP_REGS_LOCALS 33625 RECOMP_ENTER(0x2B04F2F0u); 33626 33627 L_2B04F2F0: 33628 PUSH32(esp, ebp); /* 0x2B04F2F0: push ebp */ 33629 ebp = esp; /* 0x2B04F2F1: mov ebp, esp */ 33630 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 33631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33632 esp = esp - 0x30u; /* 0x2B04F2F3: sub esp, 0x30 */ 33633 _flag_k = FK_CMP; 33634 PUSH32(esp, ebx); /* 0x2B04F2F6: push ebx */ 33635 PUSH32(esp, esi); /* 0x2B04F2F7: push esi */ 33636 PUSH32(esp, edi); /* 0x2B04F2F8: push edi */ 33637 edi = ecx; /* 0x2B04F2F9: mov edi, ecx */ 33638 SET_LO8(eax, MEM8(edi + 0xC)); /* 0x2B04F2FB: mov al, byte ptr [edi + 0xc] */ 33639 /* test LO8(eax), LO8(eax) */ /* 0x2B04F2FE: test al, al */ 33640 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 33641 _cf = 0; 33642 _flag_k = FK_NARROW(FK_TEST, 24); 33643 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F43C; /* 0x2B04F300: je 0x2b04f43c */ 33644 L_2B04F306: 33645 eax = MEM32(edi + 0x100); /* 0x2B04F306: mov eax, dword ptr [edi + 0x100] */ 33646 ebx = MEM32(eax + 0x4); /* 0x2B04F30C: mov ebx, dword ptr [eax + 4] */ 33647 eax = MEM32(edi + 0x48); /* 0x2B04F30F: mov eax, dword ptr [edi + 0x48] */ 33648 /* test eax, eax */ /* 0x2B04F312: test eax, eax */ 33649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 33650 _cf = 0; 33651 _flag_k = FK_TEST; 33652 MEM32(ebp + (-0x8)) = ebx; /* 0x2B04F314: mov dword ptr [ebp - 8], ebx */ 33653 if (TEST_LE(_flag_a, _flag_b)) goto L_2B04F324; /* 0x2B04F317: jle 0x2b04f324 */ 33654 L_2B04F319: 33655 ecx = eax + eax * 2; /* 0x2B04F319: lea ecx, [eax + eax*2] */ 33656 if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x2B04F31C: shl ecx, 4 */ 33657 if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 33658 ecx = ecx << 4u; /* 0x2B04F31C: shl ecx, 4 */ 33659 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 33660 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33661 ebx = ebx + ecx; /* 0x2B04F31F: add ebx, ecx */ 33662 _flag_k = FK_ADD; 33663 MEM32(ebp + (-0x8)) = ebx; /* 0x2B04F321: mov dword ptr [ebp - 8], ebx */ 33664 L_2B04F324: 33665 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B04F324: call dword ptr [0x2b0b53bc] */ 33666 RECOMP_FLAGS_IN(); 33667 edx = MEM32(0x2B0EEAFC); /* 0x2B04F32A: mov edx, dword ptr [0x2b0eeafc] */ 33668 eax = MEM32(eax + 0x24); /* 0x2B04F330: mov eax, dword ptr [eax + 0x24] */ 33669 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x5DCu); 33670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33671 edx = edx + 0x5DCu; /* 0x2B04F333: add edx, 0x5dc */ 33672 _flag_k = FK_ADD; 33673 /* cmp eax, edx */ /* 0x2B04F339: cmp eax, edx */ 33674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 33675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33676 _flag_k = FK_CMP; 33677 MEM32(ebp + (-0xC)) = eax; /* 0x2B04F33B: mov dword ptr [ebp - 0xc], eax */ 33678 if (CMP_LE(_flag_a, _flag_b)) goto L_2B04F3CC; /* 0x2B04F33E: jle 0x2b04f3cc */ 33679 L_2B04F344: 33680 MEM32(0x2B0EEAFC) = eax; /* 0x2B04F344: mov dword ptr [0x2b0eeafc], eax */ 33681 eax = ebp + (-0x30); /* 0x2B04F349: lea eax, [ebp - 0x30] */ 33682 PUSH32(esp, eax); /* 0x2B04F34C: push eax */ 33683 PUSH32(esp, 0x2B0E83C4u); /* 0x2B04F34D: push 0x2b0e83c4 */ 33684 RECOMP_ICALL(MEM32(0x2B0B5254)); /* 0x2B04F352: call dword ptr [0x2b0b5254] */ 33685 RECOMP_FLAGS_IN(); 33686 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 33687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33688 esp = esp + 8; /* 0x2B04F358: add esp, 8 */ 33689 _flag_k = FK_ADD; 33690 /* test eax, eax */ /* 0x2B04F35B: test eax, eax */ 33691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 33692 _cf = 0; 33693 _flag_k = FK_TEST; 33694 if (TEST_S(_flag_a, _flag_b)) goto L_2B04F3CC; /* 0x2B04F35D: jl 0x2b04f3cc */ 33695 L_2B04F35F: 33696 eax = MEM32(0x2B0EEB00); /* 0x2B04F35F: mov eax, dword ptr [0x2b0eeb00] */ 33697 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x2B04F364: cmp dword ptr [ebp - 0x14], eax */ 33698 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 33699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33700 _flag_k = FK_CMP; 33701 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F3CC; /* 0x2B04F367: je 0x2b04f3cc */ 33702 L_2B04F369: 33703 /* test eax, eax */ /* 0x2B04F369: test eax, eax */ 33704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 33705 _cf = 0; 33706 _flag_k = FK_TEST; 33707 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F3C3; /* 0x2B04F36B: je 0x2b04f3c3 */ 33708 L_2B04F36D: 33709 PUSH32(esp, 0); /* 0x2B04F36D: push 0 */ 33710 ecx = edi; /* 0x2B04F36F: mov ecx, edi */ 33711 RECOMP_ICALL(0x2B04CDF0u); /* 0x2B04F371: call 0x2b04cdf0 */ /* not lifted */ 33712 RECOMP_FLAGS_IN(); 33713 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 33714 ebx = 0; /* 0x2B04F376: xor ebx, ebx */ 33715 _cf = 0; 33716 _flag_k = FK_TEST; 33717 MEM32(ebp + (-0x4)) = ebx; /* 0x2B04F378: mov dword ptr [ebp - 4], ebx */ 33718 L_2B04F37B: 33719 esi = MEM32(edi + 0x104); /* 0x2B04F37B: mov esi, dword ptr [edi + 0x104] */ 33720 eax = MEM32(esi + 0x4); /* 0x2B04F381: mov eax, dword ptr [esi + 4] */ 33721 /* test eax, eax */ /* 0x2B04F384: test eax, eax */ 33722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 33723 _cf = 0; 33724 _flag_k = FK_TEST; 33725 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F3B9; /* 0x2B04F386: je 0x2b04f3b9 */ 33726 L_2B04F388: 33727 ecx = MEM32(esi + 0x8); /* 0x2B04F388: mov ecx, dword ptr [esi + 8] */ 33728 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 33729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33730 ecx = ecx - eax; /* 0x2B04F38B: sub ecx, eax */ 33731 _flag_k = FK_CMP; 33732 eax = 0x2AAAAAABu; /* 0x2B04F38D: mov eax, 0x2aaaaaab */ 33733 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04F392: imul ecx */ 33734 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 33735 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 33736 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04F394: sar edx, 3 */ 33737 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 33738 edx = (uint32_t)((int32_t)edx >> 3u); 33739 ecx = edx; /* 0x2B04F397: mov ecx, edx */ 33740 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04F399: shr ecx, 0x1f */ 33741 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 33742 ecx = ecx >> 31u; /* 0x2B04F399: shr ecx, 0x1f */ 33743 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 33744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33745 edx = edx + ecx; /* 0x2B04F39C: add edx, ecx */ 33746 _flag_k = FK_ADD; 33747 /* cmp ebx, edx */ /* 0x2B04F39E: cmp ebx, edx */ 33748 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 33749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33750 _flag_k = FK_CMP; 33751 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04F3B9; /* 0x2B04F3A0: jae 0x2b04f3b9 */ 33752 L_2B04F3A2: 33753 ecx = MEM32(esi + 0x4); /* 0x2B04F3A2: mov ecx, dword ptr [esi + 4] */ 33754 esi = MEM32(ebp + (-0x4)); /* 0x2B04F3A5: mov esi, dword ptr [ebp - 4] */ 33755 PUSH32(esp, edi); /* 0x2B04F3A8: push edi */ 33756 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 33757 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33758 ecx = ecx + esi; /* 0x2B04F3A9: add ecx, esi */ 33759 _flag_k = FK_ADD; 33760 RECOMP_ICALL(0x2B051720u); /* 0x2B04F3AB: call 0x2b051720 */ /* not lifted */ 33761 RECOMP_FLAGS_IN(); 33762 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 33763 ebx = ebx + 1; /* 0x2B04F3B0: inc ebx */ 33764 _flag_k = FK_INC; 33765 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 33766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33767 esi = esi + 0x30u; /* 0x2B04F3B1: add esi, 0x30 */ 33768 _flag_k = FK_ADD; 33769 MEM32(ebp + (-0x4)) = esi; /* 0x2B04F3B4: mov dword ptr [ebp - 4], esi */ 33770 RECOMP_BACKEDGE(); 33771 goto L_2B04F37B; /* 0x2B04F3B7: jmp 0x2b04f37b */ 33772 L_2B04F3B9: 33773 ecx = edi; /* 0x2B04F3B9: mov ecx, edi */ 33774 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04F3BB: call 0x2b03a2b0 */ /* not lifted */ 33775 RECOMP_FLAGS_IN(); 33776 ebx = MEM32(ebp + (-0x8)); /* 0x2B04F3C0: mov ebx, dword ptr [ebp - 8] */ 33777 L_2B04F3C3: 33778 edx = MEM32(ebp + (-0x14)); /* 0x2B04F3C3: mov edx, dword ptr [ebp - 0x14] */ 33779 MEM32(0x2B0EEB00) = edx; /* 0x2B04F3C6: mov dword ptr [0x2b0eeb00], edx */ 33780 L_2B04F3CC: 33781 MEM32(ebp + (-0x8)) = 0; /* 0x2B04F3CC: mov dword ptr [ebp - 8], 0 */ 33782 esi = edi + 0x58; /* 0x2B04F3D3: lea esi, [edi + 0x58] */ 33783 L_2B04F3D6: 33784 eax = MEM32(edi + 0x100); /* 0x2B04F3D6: mov eax, dword ptr [edi + 0x100] */ 33785 /* cmp MEM32(eax + 0x8), ebx */ /* 0x2B04F3DC: cmp dword ptr [eax + 8], ebx */ 33786 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ebx); 33787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33788 _flag_k = FK_CMP; 33789 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F43C; /* 0x2B04F3DF: je 0x2b04f43c */ 33790 L_2B04F3E1: 33791 SET_LO8(eax, MEM8(ebx + 0x24)); /* 0x2B04F3E1: mov al, byte ptr [ebx + 0x24] */ 33792 /* test LO8(eax), LO8(eax) */ /* 0x2B04F3E4: test al, al */ 33793 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 33794 _cf = 0; 33795 _flag_k = FK_NARROW(FK_TEST, 24); 33796 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F42A; /* 0x2B04F3E6: je 0x2b04f42a */ 33797 L_2B04F3E8: 33798 ecx = MEM32(ebx + 0x20); /* 0x2B04F3E8: mov ecx, dword ptr [ebx + 0x20] */ 33799 eax = MEM32(ebp + (-0xC)); /* 0x2B04F3EB: mov eax, dword ptr [ebp - 0xc] */ 33800 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3E8u); 33801 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33802 ecx = ecx + 0x3E8u; /* 0x2B04F3EE: add ecx, 0x3e8 */ 33803 _flag_k = FK_ADD; 33804 /* cmp ecx, eax */ /* 0x2B04F3F4: cmp ecx, eax */ 33805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 33806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33807 _flag_k = FK_CMP; 33808 if (CMP_G(_flag_a, _flag_b)) goto L_2B04F3FB; /* 0x2B04F3F6: jg 0x2b04f3fb */ 33809 L_2B04F3F8: 33810 MEM32(ebx + 0x20) = eax; /* 0x2B04F3F8: mov dword ptr [ebx + 0x20], eax */ 33811 L_2B04F3FB: 33812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x20)); 33813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33814 eax = eax - MEM32(ebx + 0x20); /* 0x2B04F3FB: sub eax, dword ptr [ebx + 0x20] */ 33815 _flag_k = FK_CMP; 33816 /* cmp eax, 0x1F4u */ /* 0x2B04F3FE: cmp eax, 0x1f4 */ 33817 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1F4u); 33818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33819 _flag_k = FK_CMP; 33820 if (CMP_LE(_flag_a, _flag_b)) goto L_2B04F40E; /* 0x2B04F403: jle 0x2b04f40e */ 33821 L_2B04F405: 33822 edx = MEM32(edi + 0x18C); /* 0x2B04F405: mov edx, dword ptr [edi + 0x18c] */ 33823 PUSH32(esp, edx); /* 0x2B04F40B: push edx */ 33824 goto L_2B04F415; /* 0x2B04F40C: jmp 0x2b04f415 */ 33825 L_2B04F40E: 33826 eax = MEM32(edi + 0x190); /* 0x2B04F40E: mov eax, dword ptr [edi + 0x190] */ 33827 PUSH32(esp, eax); /* 0x2B04F414: push eax */ 33828 L_2B04F415: 33829 ecx = MEM32(esi); /* 0x2B04F415: mov ecx, dword ptr [esi] */ 33830 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04F417: call dword ptr [0x2b0b5a28] */ 33831 RECOMP_FLAGS_IN(); 33832 ecx = MEM32(esi); /* 0x2B04F41D: mov ecx, dword ptr [esi] */ 33833 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B04F41F: mov byte ptr [ecx + 9], 1 */ 33834 ecx = edi; /* 0x2B04F423: mov ecx, edi */ 33835 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04F425: call 0x2b03a2b0 */ /* not lifted */ 33836 RECOMP_FLAGS_IN(); 33837 L_2B04F42A: 33838 eax = MEM32(ebp + (-0x8)); /* 0x2B04F42A: mov eax, dword ptr [ebp - 8] */ 33839 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 33840 eax = eax + 1; /* 0x2B04F42D: inc eax */ 33841 _flag_k = FK_INC; 33842 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 33843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33844 esi = esi + 0x10u; /* 0x2B04F42E: add esi, 0x10 */ 33845 _flag_k = FK_ADD; 33846 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 33847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33848 ebx = ebx + 0x30u; /* 0x2B04F431: add ebx, 0x30 */ 33849 _flag_k = FK_ADD; 33850 /* cmp eax, 0xBu */ /* 0x2B04F434: cmp eax, 0xb */ 33851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 33852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33853 _flag_k = FK_CMP; 33854 MEM32(ebp + (-0x8)) = eax; /* 0x2B04F437: mov dword ptr [ebp - 8], eax */ 33855 RECOMP_BACKEDGE(); 33856 if (CMP_L(_flag_a, _flag_b)) goto L_2B04F3D6; /* 0x2B04F43A: jl 0x2b04f3d6 */ 33857 L_2B04F43C: 33858 edi = POP32_VAL(esp); /* 0x2B04F43C: pop edi */ 33859 esi = POP32_VAL(esp); /* 0x2B04F43D: pop esi */ 33860 ebx = POP32_VAL(esp); /* 0x2B04F43E: pop ebx */ 33861 esp = ebp; /* 0x2B04F43F: mov esp, ebp */ 33862 ebp = POP32_VAL(esp); /* 0x2B04F441: pop ebp */ 33863 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F442: ret */ 33864 RECOMP_REGS_OUT(); 33865 } 33866 33867 void sub_2B04F37B(void) { 33868 int _fpu_cmp = 0; 33869 uint32_t _cf = 0; 33870 int _df = 1; 33871 uint32_t _flag_k = FK_NONE; 33872 uint32_t _flag_a = 0, _flag_b = 0; 33873 uint32_t _itail_tgt = 0; 33874 RECOMP_REGS_LOCALS 33875 RECOMP_ENTER(0x2B04F37Bu); 33876 33877 L_2B04F37B: 33878 esi = MEM32(edi + 0x104); /* 0x2B04F37B: mov esi, dword ptr [edi + 0x104] */ 33879 eax = MEM32(esi + 0x4); /* 0x2B04F381: mov eax, dword ptr [esi + 4] */ 33880 /* test eax, eax */ /* 0x2B04F384: test eax, eax */ 33881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 33882 _cf = 0; 33883 _flag_k = FK_TEST; 33884 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F3B9; /* 0x2B04F386: je 0x2b04f3b9 */ 33885 L_2B04F388: 33886 ecx = MEM32(esi + 0x8); /* 0x2B04F388: mov ecx, dword ptr [esi + 8] */ 33887 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 33888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33889 ecx = ecx - eax; /* 0x2B04F38B: sub ecx, eax */ 33890 _flag_k = FK_CMP; 33891 eax = 0x2AAAAAABu; /* 0x2B04F38D: mov eax, 0x2aaaaaab */ 33892 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04F392: imul ecx */ 33893 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 33894 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 33895 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04F394: sar edx, 3 */ 33896 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 33897 edx = (uint32_t)((int32_t)edx >> 3u); 33898 ecx = edx; /* 0x2B04F397: mov ecx, edx */ 33899 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04F399: shr ecx, 0x1f */ 33900 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 33901 ecx = ecx >> 31u; /* 0x2B04F399: shr ecx, 0x1f */ 33902 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 33903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33904 edx = edx + ecx; /* 0x2B04F39C: add edx, ecx */ 33905 _flag_k = FK_ADD; 33906 /* cmp ebx, edx */ /* 0x2B04F39E: cmp ebx, edx */ 33907 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 33908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33909 _flag_k = FK_CMP; 33910 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04F3B9; /* 0x2B04F3A0: jae 0x2b04f3b9 */ 33911 L_2B04F3A2: 33912 ecx = MEM32(esi + 0x4); /* 0x2B04F3A2: mov ecx, dword ptr [esi + 4] */ 33913 esi = MEM32(ebp + (-0x4)); /* 0x2B04F3A5: mov esi, dword ptr [ebp - 4] */ 33914 PUSH32(esp, edi); /* 0x2B04F3A8: push edi */ 33915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 33916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33917 ecx = ecx + esi; /* 0x2B04F3A9: add ecx, esi */ 33918 _flag_k = FK_ADD; 33919 RECOMP_ICALL(0x2B051720u); /* 0x2B04F3AB: call 0x2b051720 */ /* not lifted */ 33920 RECOMP_FLAGS_IN(); 33921 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 33922 ebx = ebx + 1; /* 0x2B04F3B0: inc ebx */ 33923 _flag_k = FK_INC; 33924 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 33925 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33926 esi = esi + 0x30u; /* 0x2B04F3B1: add esi, 0x30 */ 33927 _flag_k = FK_ADD; 33928 MEM32(ebp + (-0x4)) = esi; /* 0x2B04F3B4: mov dword ptr [ebp - 4], esi */ 33929 RECOMP_BACKEDGE(); 33930 goto L_2B04F37B; /* 0x2B04F3B7: jmp 0x2b04f37b */ 33931 L_2B04F3B9: 33932 ecx = edi; /* 0x2B04F3B9: mov ecx, edi */ 33933 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04F3BB: call 0x2b03a2b0 */ /* not lifted */ 33934 RECOMP_FLAGS_IN(); 33935 ebx = MEM32(ebp + (-0x8)); /* 0x2B04F3C0: mov ebx, dword ptr [ebp - 8] */ 33936 edx = MEM32(ebp + (-0x14)); /* 0x2B04F3C3: mov edx, dword ptr [ebp - 0x14] */ 33937 MEM32(0x2B0EEB00) = edx; /* 0x2B04F3C6: mov dword ptr [0x2b0eeb00], edx */ 33938 MEM32(ebp + (-0x8)) = 0; /* 0x2B04F3CC: mov dword ptr [ebp - 8], 0 */ 33939 esi = edi + 0x58; /* 0x2B04F3D3: lea esi, [edi + 0x58] */ 33940 L_2B04F3D6: 33941 eax = MEM32(edi + 0x100); /* 0x2B04F3D6: mov eax, dword ptr [edi + 0x100] */ 33942 /* cmp MEM32(eax + 0x8), ebx */ /* 0x2B04F3DC: cmp dword ptr [eax + 8], ebx */ 33943 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ebx); 33944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33945 _flag_k = FK_CMP; 33946 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F43C; /* 0x2B04F3DF: je 0x2b04f43c */ 33947 L_2B04F3E1: 33948 SET_LO8(eax, MEM8(ebx + 0x24)); /* 0x2B04F3E1: mov al, byte ptr [ebx + 0x24] */ 33949 /* test LO8(eax), LO8(eax) */ /* 0x2B04F3E4: test al, al */ 33950 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 33951 _cf = 0; 33952 _flag_k = FK_NARROW(FK_TEST, 24); 33953 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F42A; /* 0x2B04F3E6: je 0x2b04f42a */ 33954 L_2B04F3E8: 33955 ecx = MEM32(ebx + 0x20); /* 0x2B04F3E8: mov ecx, dword ptr [ebx + 0x20] */ 33956 eax = MEM32(ebp + (-0xC)); /* 0x2B04F3EB: mov eax, dword ptr [ebp - 0xc] */ 33957 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3E8u); 33958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 33959 ecx = ecx + 0x3E8u; /* 0x2B04F3EE: add ecx, 0x3e8 */ 33960 _flag_k = FK_ADD; 33961 /* cmp ecx, eax */ /* 0x2B04F3F4: cmp ecx, eax */ 33962 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 33963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33964 _flag_k = FK_CMP; 33965 if (CMP_G(_flag_a, _flag_b)) goto L_2B04F3FB; /* 0x2B04F3F6: jg 0x2b04f3fb */ 33966 L_2B04F3F8: 33967 MEM32(ebx + 0x20) = eax; /* 0x2B04F3F8: mov dword ptr [ebx + 0x20], eax */ 33968 L_2B04F3FB: 33969 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x20)); 33970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33971 eax = eax - MEM32(ebx + 0x20); /* 0x2B04F3FB: sub eax, dword ptr [ebx + 0x20] */ 33972 _flag_k = FK_CMP; 33973 /* cmp eax, 0x1F4u */ /* 0x2B04F3FE: cmp eax, 0x1f4 */ 33974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1F4u); 33975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33976 _flag_k = FK_CMP; 33977 if (CMP_LE(_flag_a, _flag_b)) goto L_2B04F40E; /* 0x2B04F403: jle 0x2b04f40e */ 33978 L_2B04F405: 33979 edx = MEM32(edi + 0x18C); /* 0x2B04F405: mov edx, dword ptr [edi + 0x18c] */ 33980 PUSH32(esp, edx); /* 0x2B04F40B: push edx */ 33981 goto L_2B04F415; /* 0x2B04F40C: jmp 0x2b04f415 */ 33982 L_2B04F40E: 33983 eax = MEM32(edi + 0x190); /* 0x2B04F40E: mov eax, dword ptr [edi + 0x190] */ 33984 PUSH32(esp, eax); /* 0x2B04F414: push eax */ 33985 L_2B04F415: 33986 ecx = MEM32(esi); /* 0x2B04F415: mov ecx, dword ptr [esi] */ 33987 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04F417: call dword ptr [0x2b0b5a28] */ 33988 RECOMP_FLAGS_IN(); 33989 ecx = MEM32(esi); /* 0x2B04F41D: mov ecx, dword ptr [esi] */ 33990 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B04F41F: mov byte ptr [ecx + 9], 1 */ 33991 ecx = edi; /* 0x2B04F423: mov ecx, edi */ 33992 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04F425: call 0x2b03a2b0 */ /* not lifted */ 33993 RECOMP_FLAGS_IN(); 33994 L_2B04F42A: 33995 eax = MEM32(ebp + (-0x8)); /* 0x2B04F42A: mov eax, dword ptr [ebp - 8] */ 33996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 33997 eax = eax + 1; /* 0x2B04F42D: inc eax */ 33998 _flag_k = FK_INC; 33999 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 34000 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34001 esi = esi + 0x10u; /* 0x2B04F42E: add esi, 0x10 */ 34002 _flag_k = FK_ADD; 34003 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 34004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34005 ebx = ebx + 0x30u; /* 0x2B04F431: add ebx, 0x30 */ 34006 _flag_k = FK_ADD; 34007 /* cmp eax, 0xBu */ /* 0x2B04F434: cmp eax, 0xb */ 34008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 34009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34010 _flag_k = FK_CMP; 34011 MEM32(ebp + (-0x8)) = eax; /* 0x2B04F437: mov dword ptr [ebp - 8], eax */ 34012 RECOMP_BACKEDGE(); 34013 if (CMP_L(_flag_a, _flag_b)) goto L_2B04F3D6; /* 0x2B04F43A: jl 0x2b04f3d6 */ 34014 L_2B04F43C: 34015 edi = POP32_VAL(esp); /* 0x2B04F43C: pop edi */ 34016 esi = POP32_VAL(esp); /* 0x2B04F43D: pop esi */ 34017 ebx = POP32_VAL(esp); /* 0x2B04F43E: pop ebx */ 34018 esp = ebp; /* 0x2B04F43F: mov esp, ebp */ 34019 ebp = POP32_VAL(esp); /* 0x2B04F441: pop ebp */ 34020 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F442: ret */ 34021 RECOMP_REGS_OUT(); 34022 } 34023 34024 void sub_2B04F3D6(void) { 34025 int _fpu_cmp = 0; 34026 uint32_t _cf = 0; 34027 int _df = 1; 34028 uint32_t _flag_k = FK_NONE; 34029 uint32_t _flag_a = 0, _flag_b = 0; 34030 uint32_t _itail_tgt = 0; 34031 RECOMP_REGS_LOCALS 34032 RECOMP_ENTER(0x2B04F3D6u); 34033 34034 L_2B04F3D6: 34035 eax = MEM32(edi + 0x100); /* 0x2B04F3D6: mov eax, dword ptr [edi + 0x100] */ 34036 /* cmp MEM32(eax + 0x8), ebx */ /* 0x2B04F3DC: cmp dword ptr [eax + 8], ebx */ 34037 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ebx); 34038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34039 _flag_k = FK_CMP; 34040 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F43C; /* 0x2B04F3DF: je 0x2b04f43c */ 34041 L_2B04F3E1: 34042 SET_LO8(eax, MEM8(ebx + 0x24)); /* 0x2B04F3E1: mov al, byte ptr [ebx + 0x24] */ 34043 /* test LO8(eax), LO8(eax) */ /* 0x2B04F3E4: test al, al */ 34044 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 34045 _cf = 0; 34046 _flag_k = FK_NARROW(FK_TEST, 24); 34047 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F42A; /* 0x2B04F3E6: je 0x2b04f42a */ 34048 L_2B04F3E8: 34049 ecx = MEM32(ebx + 0x20); /* 0x2B04F3E8: mov ecx, dword ptr [ebx + 0x20] */ 34050 eax = MEM32(ebp + (-0xC)); /* 0x2B04F3EB: mov eax, dword ptr [ebp - 0xc] */ 34051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3E8u); 34052 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34053 ecx = ecx + 0x3E8u; /* 0x2B04F3EE: add ecx, 0x3e8 */ 34054 _flag_k = FK_ADD; 34055 /* cmp ecx, eax */ /* 0x2B04F3F4: cmp ecx, eax */ 34056 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 34057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34058 _flag_k = FK_CMP; 34059 if (CMP_G(_flag_a, _flag_b)) goto L_2B04F3FB; /* 0x2B04F3F6: jg 0x2b04f3fb */ 34060 L_2B04F3F8: 34061 MEM32(ebx + 0x20) = eax; /* 0x2B04F3F8: mov dword ptr [ebx + 0x20], eax */ 34062 L_2B04F3FB: 34063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x20)); 34064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34065 eax = eax - MEM32(ebx + 0x20); /* 0x2B04F3FB: sub eax, dword ptr [ebx + 0x20] */ 34066 _flag_k = FK_CMP; 34067 /* cmp eax, 0x1F4u */ /* 0x2B04F3FE: cmp eax, 0x1f4 */ 34068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1F4u); 34069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34070 _flag_k = FK_CMP; 34071 if (CMP_LE(_flag_a, _flag_b)) goto L_2B04F40E; /* 0x2B04F403: jle 0x2b04f40e */ 34072 L_2B04F405: 34073 edx = MEM32(edi + 0x18C); /* 0x2B04F405: mov edx, dword ptr [edi + 0x18c] */ 34074 PUSH32(esp, edx); /* 0x2B04F40B: push edx */ 34075 goto L_2B04F415; /* 0x2B04F40C: jmp 0x2b04f415 */ 34076 L_2B04F40E: 34077 eax = MEM32(edi + 0x190); /* 0x2B04F40E: mov eax, dword ptr [edi + 0x190] */ 34078 PUSH32(esp, eax); /* 0x2B04F414: push eax */ 34079 L_2B04F415: 34080 ecx = MEM32(esi); /* 0x2B04F415: mov ecx, dword ptr [esi] */ 34081 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04F417: call dword ptr [0x2b0b5a28] */ 34082 RECOMP_FLAGS_IN(); 34083 ecx = MEM32(esi); /* 0x2B04F41D: mov ecx, dword ptr [esi] */ 34084 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B04F41F: mov byte ptr [ecx + 9], 1 */ 34085 ecx = edi; /* 0x2B04F423: mov ecx, edi */ 34086 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04F425: call 0x2b03a2b0 */ /* not lifted */ 34087 RECOMP_FLAGS_IN(); 34088 L_2B04F42A: 34089 eax = MEM32(ebp + (-0x8)); /* 0x2B04F42A: mov eax, dword ptr [ebp - 8] */ 34090 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 34091 eax = eax + 1; /* 0x2B04F42D: inc eax */ 34092 _flag_k = FK_INC; 34093 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 34094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34095 esi = esi + 0x10u; /* 0x2B04F42E: add esi, 0x10 */ 34096 _flag_k = FK_ADD; 34097 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 34098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34099 ebx = ebx + 0x30u; /* 0x2B04F431: add ebx, 0x30 */ 34100 _flag_k = FK_ADD; 34101 /* cmp eax, 0xBu */ /* 0x2B04F434: cmp eax, 0xb */ 34102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 34103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34104 _flag_k = FK_CMP; 34105 MEM32(ebp + (-0x8)) = eax; /* 0x2B04F437: mov dword ptr [ebp - 8], eax */ 34106 RECOMP_BACKEDGE(); 34107 if (CMP_L(_flag_a, _flag_b)) goto L_2B04F3D6; /* 0x2B04F43A: jl 0x2b04f3d6 */ 34108 L_2B04F43C: 34109 edi = POP32_VAL(esp); /* 0x2B04F43C: pop edi */ 34110 esi = POP32_VAL(esp); /* 0x2B04F43D: pop esi */ 34111 ebx = POP32_VAL(esp); /* 0x2B04F43E: pop ebx */ 34112 esp = ebp; /* 0x2B04F43F: mov esp, ebp */ 34113 ebp = POP32_VAL(esp); /* 0x2B04F441: pop ebp */ 34114 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F442: ret */ 34115 RECOMP_REGS_OUT(); 34116 } 34117 34118 void sub_2B04F415(void) { 34119 int _fpu_cmp = 0; 34120 uint32_t _cf = 0; 34121 int _df = 1; 34122 uint32_t _flag_k = FK_NONE; 34123 uint32_t _flag_a = 0, _flag_b = 0; 34124 uint32_t _itail_tgt = 0; 34125 RECOMP_REGS_LOCALS 34126 RECOMP_ENTER(0x2B04F415u); 34127 34128 goto L_2B04F415; 34129 L_2B04F3D6: 34130 eax = MEM32(edi + 0x100); /* 0x2B04F3D6: mov eax, dword ptr [edi + 0x100] */ 34131 /* cmp MEM32(eax + 0x8), ebx */ /* 0x2B04F3DC: cmp dword ptr [eax + 8], ebx */ 34132 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ebx); 34133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34134 _flag_k = FK_CMP; 34135 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F43C; /* 0x2B04F3DF: je 0x2b04f43c */ 34136 L_2B04F3E1: 34137 SET_LO8(eax, MEM8(ebx + 0x24)); /* 0x2B04F3E1: mov al, byte ptr [ebx + 0x24] */ 34138 /* test LO8(eax), LO8(eax) */ /* 0x2B04F3E4: test al, al */ 34139 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 34140 _cf = 0; 34141 _flag_k = FK_NARROW(FK_TEST, 24); 34142 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F42A; /* 0x2B04F3E6: je 0x2b04f42a */ 34143 L_2B04F3E8: 34144 ecx = MEM32(ebx + 0x20); /* 0x2B04F3E8: mov ecx, dword ptr [ebx + 0x20] */ 34145 eax = MEM32(ebp + (-0xC)); /* 0x2B04F3EB: mov eax, dword ptr [ebp - 0xc] */ 34146 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3E8u); 34147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34148 ecx = ecx + 0x3E8u; /* 0x2B04F3EE: add ecx, 0x3e8 */ 34149 _flag_k = FK_ADD; 34150 /* cmp ecx, eax */ /* 0x2B04F3F4: cmp ecx, eax */ 34151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 34152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34153 _flag_k = FK_CMP; 34154 if (CMP_G(_flag_a, _flag_b)) goto L_2B04F3FB; /* 0x2B04F3F6: jg 0x2b04f3fb */ 34155 L_2B04F3F8: 34156 MEM32(ebx + 0x20) = eax; /* 0x2B04F3F8: mov dword ptr [ebx + 0x20], eax */ 34157 L_2B04F3FB: 34158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x20)); 34159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34160 eax = eax - MEM32(ebx + 0x20); /* 0x2B04F3FB: sub eax, dword ptr [ebx + 0x20] */ 34161 _flag_k = FK_CMP; 34162 /* cmp eax, 0x1F4u */ /* 0x2B04F3FE: cmp eax, 0x1f4 */ 34163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1F4u); 34164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34165 _flag_k = FK_CMP; 34166 if (CMP_LE(_flag_a, _flag_b)) goto L_2B04F40E; /* 0x2B04F403: jle 0x2b04f40e */ 34167 L_2B04F405: 34168 edx = MEM32(edi + 0x18C); /* 0x2B04F405: mov edx, dword ptr [edi + 0x18c] */ 34169 PUSH32(esp, edx); /* 0x2B04F40B: push edx */ 34170 goto L_2B04F415; /* 0x2B04F40C: jmp 0x2b04f415 */ 34171 L_2B04F40E: 34172 eax = MEM32(edi + 0x190); /* 0x2B04F40E: mov eax, dword ptr [edi + 0x190] */ 34173 PUSH32(esp, eax); /* 0x2B04F414: push eax */ 34174 L_2B04F415: 34175 ecx = MEM32(esi); /* 0x2B04F415: mov ecx, dword ptr [esi] */ 34176 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04F417: call dword ptr [0x2b0b5a28] */ 34177 RECOMP_FLAGS_IN(); 34178 ecx = MEM32(esi); /* 0x2B04F41D: mov ecx, dword ptr [esi] */ 34179 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B04F41F: mov byte ptr [ecx + 9], 1 */ 34180 ecx = edi; /* 0x2B04F423: mov ecx, edi */ 34181 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04F425: call 0x2b03a2b0 */ /* not lifted */ 34182 RECOMP_FLAGS_IN(); 34183 L_2B04F42A: 34184 eax = MEM32(ebp + (-0x8)); /* 0x2B04F42A: mov eax, dword ptr [ebp - 8] */ 34185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 34186 eax = eax + 1; /* 0x2B04F42D: inc eax */ 34187 _flag_k = FK_INC; 34188 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 34189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34190 esi = esi + 0x10u; /* 0x2B04F42E: add esi, 0x10 */ 34191 _flag_k = FK_ADD; 34192 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 34193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34194 ebx = ebx + 0x30u; /* 0x2B04F431: add ebx, 0x30 */ 34195 _flag_k = FK_ADD; 34196 /* cmp eax, 0xBu */ /* 0x2B04F434: cmp eax, 0xb */ 34197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 34198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34199 _flag_k = FK_CMP; 34200 MEM32(ebp + (-0x8)) = eax; /* 0x2B04F437: mov dword ptr [ebp - 8], eax */ 34201 RECOMP_BACKEDGE(); 34202 if (CMP_L(_flag_a, _flag_b)) goto L_2B04F3D6; /* 0x2B04F43A: jl 0x2b04f3d6 */ 34203 L_2B04F43C: 34204 edi = POP32_VAL(esp); /* 0x2B04F43C: pop edi */ 34205 esi = POP32_VAL(esp); /* 0x2B04F43D: pop esi */ 34206 ebx = POP32_VAL(esp); /* 0x2B04F43E: pop ebx */ 34207 esp = ebp; /* 0x2B04F43F: mov esp, ebp */ 34208 ebp = POP32_VAL(esp); /* 0x2B04F441: pop ebp */ 34209 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F442: ret */ 34210 RECOMP_REGS_OUT(); 34211 } 34212 34213 void sub_2B04F42A(void) { 34214 int _fpu_cmp = 0; 34215 uint32_t _cf = 0; 34216 int _df = 1; 34217 uint32_t _flag_k = FK_NONE; 34218 uint32_t _flag_a = 0, _flag_b = 0; 34219 uint32_t _itail_tgt = 0; 34220 RECOMP_REGS_LOCALS 34221 RECOMP_ENTER(0x2B04F42Au); 34222 34223 goto L_2B04F42A; 34224 L_2B04F3D6: 34225 eax = MEM32(edi + 0x100); /* 0x2B04F3D6: mov eax, dword ptr [edi + 0x100] */ 34226 /* cmp MEM32(eax + 0x8), ebx */ /* 0x2B04F3DC: cmp dword ptr [eax + 8], ebx */ 34227 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ebx); 34228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34229 _flag_k = FK_CMP; 34230 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F43C; /* 0x2B04F3DF: je 0x2b04f43c */ 34231 L_2B04F3E1: 34232 SET_LO8(eax, MEM8(ebx + 0x24)); /* 0x2B04F3E1: mov al, byte ptr [ebx + 0x24] */ 34233 /* test LO8(eax), LO8(eax) */ /* 0x2B04F3E4: test al, al */ 34234 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 34235 _cf = 0; 34236 _flag_k = FK_NARROW(FK_TEST, 24); 34237 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F42A; /* 0x2B04F3E6: je 0x2b04f42a */ 34238 L_2B04F3E8: 34239 ecx = MEM32(ebx + 0x20); /* 0x2B04F3E8: mov ecx, dword ptr [ebx + 0x20] */ 34240 eax = MEM32(ebp + (-0xC)); /* 0x2B04F3EB: mov eax, dword ptr [ebp - 0xc] */ 34241 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3E8u); 34242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34243 ecx = ecx + 0x3E8u; /* 0x2B04F3EE: add ecx, 0x3e8 */ 34244 _flag_k = FK_ADD; 34245 /* cmp ecx, eax */ /* 0x2B04F3F4: cmp ecx, eax */ 34246 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 34247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34248 _flag_k = FK_CMP; 34249 if (CMP_G(_flag_a, _flag_b)) goto L_2B04F3FB; /* 0x2B04F3F6: jg 0x2b04f3fb */ 34250 L_2B04F3F8: 34251 MEM32(ebx + 0x20) = eax; /* 0x2B04F3F8: mov dword ptr [ebx + 0x20], eax */ 34252 L_2B04F3FB: 34253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x20)); 34254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34255 eax = eax - MEM32(ebx + 0x20); /* 0x2B04F3FB: sub eax, dword ptr [ebx + 0x20] */ 34256 _flag_k = FK_CMP; 34257 /* cmp eax, 0x1F4u */ /* 0x2B04F3FE: cmp eax, 0x1f4 */ 34258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1F4u); 34259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34260 _flag_k = FK_CMP; 34261 if (CMP_LE(_flag_a, _flag_b)) goto L_2B04F40E; /* 0x2B04F403: jle 0x2b04f40e */ 34262 L_2B04F405: 34263 edx = MEM32(edi + 0x18C); /* 0x2B04F405: mov edx, dword ptr [edi + 0x18c] */ 34264 PUSH32(esp, edx); /* 0x2B04F40B: push edx */ 34265 goto L_2B04F415; /* 0x2B04F40C: jmp 0x2b04f415 */ 34266 L_2B04F40E: 34267 eax = MEM32(edi + 0x190); /* 0x2B04F40E: mov eax, dword ptr [edi + 0x190] */ 34268 PUSH32(esp, eax); /* 0x2B04F414: push eax */ 34269 L_2B04F415: 34270 ecx = MEM32(esi); /* 0x2B04F415: mov ecx, dword ptr [esi] */ 34271 RECOMP_ICALL(MEM32(0x2B0B5A28)); /* 0x2B04F417: call dword ptr [0x2b0b5a28] */ 34272 RECOMP_FLAGS_IN(); 34273 ecx = MEM32(esi); /* 0x2B04F41D: mov ecx, dword ptr [esi] */ 34274 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B04F41F: mov byte ptr [ecx + 9], 1 */ 34275 ecx = edi; /* 0x2B04F423: mov ecx, edi */ 34276 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04F425: call 0x2b03a2b0 */ /* not lifted */ 34277 RECOMP_FLAGS_IN(); 34278 L_2B04F42A: 34279 eax = MEM32(ebp + (-0x8)); /* 0x2B04F42A: mov eax, dword ptr [ebp - 8] */ 34280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 34281 eax = eax + 1; /* 0x2B04F42D: inc eax */ 34282 _flag_k = FK_INC; 34283 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 34284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34285 esi = esi + 0x10u; /* 0x2B04F42E: add esi, 0x10 */ 34286 _flag_k = FK_ADD; 34287 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 34288 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34289 ebx = ebx + 0x30u; /* 0x2B04F431: add ebx, 0x30 */ 34290 _flag_k = FK_ADD; 34291 /* cmp eax, 0xBu */ /* 0x2B04F434: cmp eax, 0xb */ 34292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 34293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34294 _flag_k = FK_CMP; 34295 MEM32(ebp + (-0x8)) = eax; /* 0x2B04F437: mov dword ptr [ebp - 8], eax */ 34296 RECOMP_BACKEDGE(); 34297 if (CMP_L(_flag_a, _flag_b)) goto L_2B04F3D6; /* 0x2B04F43A: jl 0x2b04f3d6 */ 34298 L_2B04F43C: 34299 edi = POP32_VAL(esp); /* 0x2B04F43C: pop edi */ 34300 esi = POP32_VAL(esp); /* 0x2B04F43D: pop esi */ 34301 ebx = POP32_VAL(esp); /* 0x2B04F43E: pop ebx */ 34302 esp = ebp; /* 0x2B04F43F: mov esp, ebp */ 34303 ebp = POP32_VAL(esp); /* 0x2B04F441: pop ebp */ 34304 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F442: ret */ 34305 RECOMP_REGS_OUT(); 34306 } 34307 34308 void sub_2B04F43C(void) { 34309 int _fpu_cmp = 0; 34310 uint32_t _cf = 0; 34311 int _df = 1; 34312 uint32_t _flag_k = FK_NONE; 34313 uint32_t _flag_a = 0, _flag_b = 0; 34314 uint32_t _itail_tgt = 0; 34315 RECOMP_REGS_LOCALS 34316 RECOMP_ENTER(0x2B04F43Cu); 34317 34318 L_2B04F43C: 34319 edi = POP32_VAL(esp); /* 0x2B04F43C: pop edi */ 34320 esi = POP32_VAL(esp); /* 0x2B04F43D: pop esi */ 34321 ebx = POP32_VAL(esp); /* 0x2B04F43E: pop ebx */ 34322 esp = ebp; /* 0x2B04F43F: mov esp, ebp */ 34323 ebp = POP32_VAL(esp); /* 0x2B04F441: pop ebp */ 34324 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F442: ret */ 34325 RECOMP_REGS_OUT(); 34326 } 34327 34328 void sub_2B04F450(void) { 34329 int _fpu_cmp = 0; 34330 uint32_t _cf = 0; 34331 int _df = 1; 34332 uint32_t _flag_k = FK_NONE; 34333 uint32_t _flag_a = 0, _flag_b = 0; 34334 uint32_t _itail_tgt = 0; 34335 RECOMP_REGS_LOCALS 34336 RECOMP_ENTER(0x2B04F450u); 34337 34338 L_2B04F450: 34339 PUSH32(esp, esi); /* 0x2B04F450: push esi */ 34340 esi = ecx; /* 0x2B04F451: mov esi, ecx */ 34341 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x2B04F453: mov al, byte ptr [esi + 0x14] */ 34342 /* test LO8(eax), LO8(eax) */ /* 0x2B04F456: test al, al */ 34343 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 34344 _cf = 0; 34345 _flag_k = FK_NARROW(FK_TEST, 24); 34346 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F508; /* 0x2B04F458: je 0x2b04f508 */ 34347 L_2B04F45E: 34348 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x2B04F45E: mov al, byte ptr [esi + 0xc] */ 34349 /* test LO8(eax), LO8(eax) */ /* 0x2B04F461: test al, al */ 34350 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 34351 _cf = 0; 34352 _flag_k = FK_NARROW(FK_TEST, 24); 34353 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F508; /* 0x2B04F463: je 0x2b04f508 */ 34354 L_2B04F469: 34355 eax = MEM32(esi + 0x2C); /* 0x2B04F469: mov eax, dword ptr [esi + 0x2c] */ 34356 PUSH32(esp, ebx); /* 0x2B04F46C: push ebx */ 34357 SET_LO8(ebx, 1); /* 0x2B04F46D: mov bl, 1 */ 34358 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F46F: mov byte ptr [eax + 8], bl */ 34359 ecx = MEM32(esi + 0x28); /* 0x2B04F472: mov ecx, dword ptr [esi + 0x28] */ 34360 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F475: mov byte ptr [ecx + 8], bl */ 34361 edx = MEM32(esi + 0x30); /* 0x2B04F478: mov edx, dword ptr [esi + 0x30] */ 34362 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F47B: mov byte ptr [edx + 8], bl */ 34363 eax = MEM32(esi + 0x34); /* 0x2B04F47E: mov eax, dword ptr [esi + 0x34] */ 34364 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F481: mov byte ptr [eax + 8], bl */ 34365 ecx = MEM32(esi + 0x38); /* 0x2B04F484: mov ecx, dword ptr [esi + 0x38] */ 34366 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F487: mov byte ptr [ecx + 8], bl */ 34367 edx = MEM32(esi + 0x3C); /* 0x2B04F48A: mov edx, dword ptr [esi + 0x3c] */ 34368 PUSH32(esp, edi); /* 0x2B04F48D: push edi */ 34369 edi = MEM32(0x2B0B5B3C); /* 0x2B04F48E: mov edi, dword ptr [0x2b0b5b3c] */ 34370 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F494: mov byte ptr [edx + 8], bl */ 34371 ecx = MEM32(esi + 0x40); /* 0x2B04F497: mov ecx, dword ptr [esi + 0x40] */ 34372 RECOMP_ICALL(edi); /* 0x2B04F49A: call edi */ 34373 RECOMP_FLAGS_IN(); 34374 ecx = MEM32(esi + 0x44); /* 0x2B04F49C: mov ecx, dword ptr [esi + 0x44] */ 34375 RECOMP_ICALL(edi); /* 0x2B04F49F: call edi */ 34376 RECOMP_FLAGS_IN(); 34377 SET_LO8(eax, MEM8(esi + 0x19C)); /* 0x2B04F4A1: mov al, byte ptr [esi + 0x19c] */ 34378 /* test LO8(eax), LO8(eax) */ /* 0x2B04F4A7: test al, al */ 34379 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 34380 _cf = 0; 34381 _flag_k = FK_NARROW(FK_TEST, 24); 34382 edi = MEM32(0x2B0B5BB0); /* 0x2B04F4A9: mov edi, dword ptr [0x2b0b5bb0] */ 34383 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F4B9; /* 0x2B04F4AF: je 0x2b04f4b9 */ 34384 L_2B04F4B1: 34385 ecx = MEM32(esi + 0x194); /* 0x2B04F4B1: mov ecx, dword ptr [esi + 0x194] */ 34386 RECOMP_ICALL(edi); /* 0x2B04F4B7: call edi */ 34387 RECOMP_FLAGS_IN(); 34388 L_2B04F4B9: 34389 SET_LO8(eax, MEM8(esi + 0x19D)); /* 0x2B04F4B9: mov al, byte ptr [esi + 0x19d] */ 34390 /* test LO8(eax), LO8(eax) */ /* 0x2B04F4BF: test al, al */ 34391 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 34392 _cf = 0; 34393 _flag_k = FK_NARROW(FK_TEST, 24); 34394 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F4CB; /* 0x2B04F4C1: je 0x2b04f4cb */ 34395 L_2B04F4C3: 34396 ecx = MEM32(esi + 0x198); /* 0x2B04F4C3: mov ecx, dword ptr [esi + 0x198] */ 34397 RECOMP_ICALL(edi); /* 0x2B04F4C9: call edi */ 34398 RECOMP_FLAGS_IN(); 34399 L_2B04F4CB: 34400 eax = esi + 0x5C; /* 0x2B04F4CB: lea eax, [esi + 0x5c] */ 34401 ecx = 0xBu; /* 0x2B04F4CE: mov ecx, 0xb */ 34402 L_2B04F4D3: 34403 edx = MEM32(eax + (-0x4)); /* 0x2B04F4D3: mov edx, dword ptr [eax - 4] */ 34404 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F4D6: mov byte ptr [edx + 8], bl */ 34405 edx = MEM32(eax); /* 0x2B04F4D9: mov edx, dword ptr [eax] */ 34406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 34407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34408 eax = eax + 0x10u; /* 0x2B04F4DB: add eax, 0x10 */ 34409 _flag_k = FK_ADD; 34410 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 34411 ecx = ecx - 1; /* 0x2B04F4DE: dec ecx */ 34412 _flag_k = FK_DEC; 34413 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F4DF: mov byte ptr [edx + 8], bl */ 34414 RECOMP_BACKEDGE(); 34415 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F4D3; /* 0x2B04F4E2: jne 0x2b04f4d3 */ 34416 L_2B04F4E4: 34417 eax = esi + 0x114; /* 0x2B04F4E4: lea eax, [esi + 0x114] */ 34418 ecx = 6; /* 0x2B04F4EA: mov ecx, 6 */ 34419 L_2B04F4EF: 34420 edx = MEM32(eax + (-0x4)); /* 0x2B04F4EF: mov edx, dword ptr [eax - 4] */ 34421 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F4F2: mov byte ptr [edx + 8], bl */ 34422 edx = MEM32(eax); /* 0x2B04F4F5: mov edx, dword ptr [eax] */ 34423 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F4F7: mov byte ptr [edx + 8], bl */ 34424 edx = MEM32(eax + 0x4); /* 0x2B04F4FA: mov edx, dword ptr [eax + 4] */ 34425 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 34426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34427 eax = eax + 0x14u; /* 0x2B04F4FD: add eax, 0x14 */ 34428 _flag_k = FK_ADD; 34429 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 34430 ecx = ecx - 1; /* 0x2B04F500: dec ecx */ 34431 _flag_k = FK_DEC; 34432 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F501: mov byte ptr [edx + 8], bl */ 34433 RECOMP_BACKEDGE(); 34434 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F4EF; /* 0x2B04F504: jne 0x2b04f4ef */ 34435 L_2B04F506: 34436 edi = POP32_VAL(esp); /* 0x2B04F506: pop edi */ 34437 ebx = POP32_VAL(esp); /* 0x2B04F507: pop ebx */ 34438 L_2B04F508: 34439 esi = POP32_VAL(esp); /* 0x2B04F508: pop esi */ 34440 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F509: ret */ 34441 RECOMP_REGS_OUT(); 34442 } 34443 34444 void sub_2B04F510(void) { 34445 int _fpu_cmp = 0; 34446 uint32_t _cf = 0; 34447 int _df = 1; 34448 uint32_t _flag_k = FK_NONE; 34449 uint32_t _flag_a = 0, _flag_b = 0; 34450 uint32_t _itail_tgt = 0; 34451 RECOMP_REGS_LOCALS 34452 RECOMP_ENTER(0x2B04F510u); 34453 34454 L_2B04F510: 34455 PUSH32(esp, ebp); /* 0x2B04F510: push ebp */ 34456 ebp = esp; /* 0x2B04F511: mov ebp, esp */ 34457 PUSH32(esp, ecx); /* 0x2B04F513: push ecx */ 34458 PUSH32(esp, ebx); /* 0x2B04F514: push ebx */ 34459 PUSH32(esp, esi); /* 0x2B04F515: push esi */ 34460 esi = ecx; /* 0x2B04F516: mov esi, ecx */ 34461 eax = MEM32(esi + 0x2C); /* 0x2B04F518: mov eax, dword ptr [esi + 0x2c] */ 34462 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 34463 SET_LO8(ebx, 0); /* 0x2B04F51B: xor bl, bl */ 34464 _cf = 0; 34465 _flag_k = FK_NARROW(FK_TEST, 24); 34466 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F51D: mov byte ptr [eax + 8], bl */ 34467 ecx = MEM32(esi + 0x28); /* 0x2B04F520: mov ecx, dword ptr [esi + 0x28] */ 34468 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F523: mov byte ptr [ecx + 8], bl */ 34469 edx = MEM32(esi + 0x30); /* 0x2B04F526: mov edx, dword ptr [esi + 0x30] */ 34470 PUSH32(esp, edi); /* 0x2B04F529: push edi */ 34471 edi = MEM32(0x2B0B5BA8); /* 0x2B04F52A: mov edi, dword ptr [0x2b0b5ba8] */ 34472 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F530: mov byte ptr [edx + 8], bl */ 34473 ecx = MEM32(esi + 0x194); /* 0x2B04F533: mov ecx, dword ptr [esi + 0x194] */ 34474 RECOMP_ICALL(edi); /* 0x2B04F539: call edi */ 34475 RECOMP_FLAGS_IN(); 34476 ecx = MEM32(esi + 0x198); /* 0x2B04F53B: mov ecx, dword ptr [esi + 0x198] */ 34477 RECOMP_ICALL(edi); /* 0x2B04F541: call edi */ 34478 RECOMP_FLAGS_IN(); 34479 eax = MEM32(esi + 0x34); /* 0x2B04F543: mov eax, dword ptr [esi + 0x34] */ 34480 edi = MEM32(0x2B0B5B34); /* 0x2B04F546: mov edi, dword ptr [0x2b0b5b34] */ 34481 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F54C: mov byte ptr [eax + 8], bl */ 34482 ecx = MEM32(esi + 0x38); /* 0x2B04F54F: mov ecx, dword ptr [esi + 0x38] */ 34483 MEM8(ecx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F552: mov byte ptr [ecx + 8], bl */ 34484 edx = MEM32(esi + 0x3C); /* 0x2B04F555: mov edx, dword ptr [esi + 0x3c] */ 34485 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F558: mov byte ptr [edx + 8], bl */ 34486 ecx = MEM32(esi + 0x40); /* 0x2B04F55B: mov ecx, dword ptr [esi + 0x40] */ 34487 RECOMP_ICALL(edi); /* 0x2B04F55E: call edi */ 34488 RECOMP_FLAGS_IN(); 34489 ecx = MEM32(esi + 0x44); /* 0x2B04F560: mov ecx, dword ptr [esi + 0x44] */ 34490 RECOMP_ICALL(edi); /* 0x2B04F563: call edi */ 34491 RECOMP_FLAGS_IN(); 34492 eax = esi + 0x5C; /* 0x2B04F565: lea eax, [esi + 0x5c] */ 34493 ecx = 0xBu; /* 0x2B04F568: mov ecx, 0xb */ 34494 L_2B04F56D: 34495 edx = MEM32(eax + (-0x4)); /* 0x2B04F56D: mov edx, dword ptr [eax - 4] */ 34496 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F570: mov byte ptr [edx + 8], bl */ 34497 edx = MEM32(eax); /* 0x2B04F573: mov edx, dword ptr [eax] */ 34498 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 34499 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34500 eax = eax + 0x10u; /* 0x2B04F575: add eax, 0x10 */ 34501 _flag_k = FK_ADD; 34502 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 34503 ecx = ecx - 1; /* 0x2B04F578: dec ecx */ 34504 _flag_k = FK_DEC; 34505 MEM8(edx + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F579: mov byte ptr [edx + 8], bl */ 34506 RECOMP_BACKEDGE(); 34507 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F56D; /* 0x2B04F57C: jne 0x2b04f56d */ 34508 L_2B04F57E: 34509 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x114u); 34510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34511 esi = esi + 0x114u; /* 0x2B04F57E: add esi, 0x114 */ 34512 _flag_k = FK_ADD; 34513 MEM32(ebp + (-0x4)) = 6; /* 0x2B04F584: mov dword ptr [ebp - 4], 6 */ 34514 L_2B04F58B: 34515 eax = MEM32(esi + (-0x4)); /* 0x2B04F58B: mov eax, dword ptr [esi - 4] */ 34516 MEM8(eax + 0x8) = (uint8_t)(LO8(ebx)); /* 0x2B04F58E: mov byte ptr [eax + 8], bl */ 34517 ecx = MEM32(esi); /* 0x2B04F591: mov ecx, dword ptr [esi] */ 34518 RECOMP_ICALL(edi); /* 0x2B04F593: call edi */ 34519 RECOMP_FLAGS_IN(); 34520 ecx = MEM32(esi + 0x4); /* 0x2B04F595: mov ecx, dword ptr [esi + 4] */ 34521 RECOMP_ICALL(edi); /* 0x2B04F598: call edi */ 34522 RECOMP_FLAGS_IN(); 34523 eax = MEM32(ebp + (-0x4)); /* 0x2B04F59A: mov eax, dword ptr [ebp - 4] */ 34524 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 34525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34526 esi = esi + 0x14u; /* 0x2B04F59D: add esi, 0x14 */ 34527 _flag_k = FK_ADD; 34528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 34529 eax = eax - 1; /* 0x2B04F5A0: dec eax */ 34530 _flag_k = FK_DEC; 34531 MEM32(ebp + (-0x4)) = eax; /* 0x2B04F5A1: mov dword ptr [ebp - 4], eax */ 34532 RECOMP_BACKEDGE(); 34533 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B04F58B; /* 0x2B04F5A4: jne 0x2b04f58b */ 34534 L_2B04F5A6: 34535 edi = POP32_VAL(esp); /* 0x2B04F5A6: pop edi */ 34536 esi = POP32_VAL(esp); /* 0x2B04F5A7: pop esi */ 34537 ebx = POP32_VAL(esp); /* 0x2B04F5A8: pop ebx */ 34538 esp = ebp; /* 0x2B04F5A9: mov esp, ebp */ 34539 ebp = POP32_VAL(esp); /* 0x2B04F5AB: pop ebp */ 34540 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F5AC: ret */ 34541 RECOMP_REGS_OUT(); 34542 } 34543 34544 void sub_2B04F5B0(void) { 34545 int _fpu_cmp = 0; 34546 uint32_t _cf = 0; 34547 int _df = 1; 34548 uint32_t _flag_k = FK_NONE; 34549 uint32_t _flag_a = 0, _flag_b = 0; 34550 uint32_t _itail_tgt = 0; 34551 RECOMP_REGS_LOCALS 34552 RECOMP_ENTER(0x2B04F5B0u); 34553 34554 L_2B04F5B0: 34555 edx = MEM32(ecx + 0x100); /* 0x2B04F5B0: mov edx, dword ptr [ecx + 0x100] */ 34556 eax = MEM32(edx + 0x4); /* 0x2B04F5B6: mov eax, dword ptr [edx + 4] */ 34557 PUSH32(esp, esi); /* 0x2B04F5B9: push esi */ 34558 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04F5BA: cmp eax, dword ptr [edx + 8] */ 34559 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 34560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34561 _flag_k = FK_CMP; 34562 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F5D6; /* 0x2B04F5BD: je 0x2b04f5d6 */ 34563 L_2B04F5BF: 34564 PUSH32(esp, edi); /* 0x2B04F5BF: push edi */ 34565 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 34566 SET_LO8(edx, 0); /* 0x2B04F5C0: xor dl, dl */ 34567 _cf = 0; 34568 _flag_k = FK_NARROW(FK_TEST, 24); 34569 L_2B04F5C2: 34570 MEM8(eax + 0x2C) = (uint8_t)(LO8(edx)); /* 0x2B04F5C2: mov byte ptr [eax + 0x2c], dl */ 34571 esi = MEM32(ecx + 0x100); /* 0x2B04F5C5: mov esi, dword ptr [ecx + 0x100] */ 34572 edi = MEM32(esi + 0x8); /* 0x2B04F5CB: mov edi, dword ptr [esi + 8] */ 34573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 34574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34575 eax = eax + 0x30u; /* 0x2B04F5CE: add eax, 0x30 */ 34576 _flag_k = FK_ADD; 34577 /* cmp eax, edi */ /* 0x2B04F5D1: cmp eax, edi */ 34578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 34579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34580 _flag_k = FK_CMP; 34581 RECOMP_BACKEDGE(); 34582 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F5C2; /* 0x2B04F5D3: jne 0x2b04f5c2 */ 34583 L_2B04F5D5: 34584 edi = POP32_VAL(esp); /* 0x2B04F5D5: pop edi */ 34585 L_2B04F5D6: 34586 esi = POP32_VAL(esp); /* 0x2B04F5D6: pop esi */ 34587 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F5D7: ret */ 34588 RECOMP_REGS_OUT(); 34589 } 34590 34591 void sub_2B04F5E0(void) { 34592 int _fpu_cmp = 0; 34593 uint32_t _cf = 0; 34594 int _df = 1; 34595 uint32_t _flag_k = FK_NONE; 34596 uint32_t _flag_a = 0, _flag_b = 0; 34597 uint32_t _itail_tgt = 0; 34598 RECOMP_REGS_LOCALS 34599 RECOMP_ENTER(0x2B04F5E0u); 34600 34601 L_2B04F5E0: 34602 edx = MEM32(ecx + 0x104); /* 0x2B04F5E0: mov edx, dword ptr [ecx + 0x104] */ 34603 eax = MEM32(edx + 0x4); /* 0x2B04F5E6: mov eax, dword ptr [edx + 4] */ 34604 PUSH32(esp, esi); /* 0x2B04F5E9: push esi */ 34605 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B04F5EA: cmp eax, dword ptr [edx + 8] */ 34606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 34607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34608 _flag_k = FK_CMP; 34609 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F606; /* 0x2B04F5ED: je 0x2b04f606 */ 34610 L_2B04F5EF: 34611 PUSH32(esp, edi); /* 0x2B04F5EF: push edi */ 34612 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 34613 SET_LO8(edx, 0); /* 0x2B04F5F0: xor dl, dl */ 34614 _cf = 0; 34615 _flag_k = FK_NARROW(FK_TEST, 24); 34616 L_2B04F5F2: 34617 MEM8(eax + 0x2C) = (uint8_t)(LO8(edx)); /* 0x2B04F5F2: mov byte ptr [eax + 0x2c], dl */ 34618 esi = MEM32(ecx + 0x104); /* 0x2B04F5F5: mov esi, dword ptr [ecx + 0x104] */ 34619 edi = MEM32(esi + 0x8); /* 0x2B04F5FB: mov edi, dword ptr [esi + 8] */ 34620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 34621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34622 eax = eax + 0x30u; /* 0x2B04F5FE: add eax, 0x30 */ 34623 _flag_k = FK_ADD; 34624 /* cmp eax, edi */ /* 0x2B04F601: cmp eax, edi */ 34625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 34626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34627 _flag_k = FK_CMP; 34628 RECOMP_BACKEDGE(); 34629 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F5F2; /* 0x2B04F603: jne 0x2b04f5f2 */ 34630 L_2B04F605: 34631 edi = POP32_VAL(esp); /* 0x2B04F605: pop edi */ 34632 L_2B04F606: 34633 esi = POP32_VAL(esp); /* 0x2B04F606: pop esi */ 34634 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04F607: ret */ 34635 RECOMP_REGS_OUT(); 34636 } 34637 34638 void sub_2B04F610(void) { 34639 int _fpu_cmp = 0; 34640 uint32_t _cf = 0; 34641 int _df = 1; 34642 uint32_t _flag_k = FK_NONE; 34643 uint32_t _flag_a = 0, _flag_b = 0; 34644 uint32_t _itail_tgt = 0; 34645 RECOMP_REGS_LOCALS 34646 RECOMP_ENTER(0x2B04F610u); 34647 34648 L_2B04F610: 34649 PUSH32(esp, ebp); /* 0x2B04F610: push ebp */ 34650 ebp = esp; /* 0x2B04F611: mov ebp, esp */ 34651 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B04F613: push -1 */ 34652 PUSH32(esp, 0x2B0AF878u); /* 0x2B04F615: push 0x2b0af878 */ 34653 eax = MEM32(FS_BASE + (0)); /* 0x2B04F61A: mov eax, dword ptr fs:[0] */ 34654 PUSH32(esp, eax); /* 0x2B04F620: push eax */ 34655 MEM32(FS_BASE + (0)) = esp; /* 0x2B04F621: mov dword ptr fs:[0], esp */ 34656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 34657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34658 esp = esp - 0x38u; /* 0x2B04F628: sub esp, 0x38 */ 34659 _flag_k = FK_CMP; 34660 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x2B04F62B: mov al, byte ptr [ebp + 0xf] */ 34661 PUSH32(esp, ebx); /* 0x2B04F62E: push ebx */ 34662 PUSH32(esp, esi); /* 0x2B04F62F: push esi */ 34663 PUSH32(esp, edi); /* 0x2B04F630: push edi */ 34664 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 34665 ebx = 0; /* 0x2B04F631: xor ebx, ebx */ 34666 _cf = 0; 34667 _flag_k = FK_TEST; 34668 edi = ecx; /* 0x2B04F633: mov edi, ecx */ 34669 PUSH32(esp, ebx); /* 0x2B04F635: push ebx */ 34670 ecx = ebp + (-0x3C); /* 0x2B04F636: lea ecx, [ebp - 0x3c] */ 34671 MEM32(ebp + (-0x10)) = edi; /* 0x2B04F639: mov dword ptr [ebp - 0x10], edi */ 34672 MEM32(ebp + (-0x44)) = ebx; /* 0x2B04F63C: mov dword ptr [ebp - 0x44], ebx */ 34673 MEM32(ebp + (-0x40)) = ebx; /* 0x2B04F63F: mov dword ptr [ebp - 0x40], ebx */ 34674 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x2B04F642: mov byte ptr [ebp - 0x3c], al */ 34675 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F645: call dword ptr [0x2b0b514c] */ 34676 RECOMP_FLAGS_IN(); 34677 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ebx)); /* 0x2B04F64B: mov byte ptr [ebp - 0x20], bl */ 34678 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B04F64E: mov dword ptr [ebp - 0x1c], ebx */ 34679 MEM8(ebp + (-0x18)) = (uint8_t)(LO8(ebx)); /* 0x2B04F651: mov byte ptr [ebp - 0x18], bl */ 34680 ecx = MEM32(0x2B0B515C); /* 0x2B04F654: mov ecx, dword ptr [0x2b0b515c] */ 34681 esi = MEM32(ebp + 0xC); /* 0x2B04F65A: mov esi, dword ptr [ebp + 0xc] */ 34682 eax = 0xC350u; /* 0x2B04F65D: mov eax, 0xc350 */ 34683 MEM32(ebp + (-0x44)) = eax; /* 0x2B04F662: mov dword ptr [ebp - 0x44], eax */ 34684 eax = MEM32(ebp + 0x8); /* 0x2B04F665: mov eax, dword ptr [ebp + 8] */ 34685 MEM32(ebp + (-0x40)) = esi; /* 0x2B04F668: mov dword ptr [ebp - 0x40], esi */ 34686 MEM32(ebp + (-0x2C)) = ebx; /* 0x2B04F66B: mov dword ptr [ebp - 0x2c], ebx */ 34687 edx = MEM32(ecx); /* 0x2B04F66E: mov edx, dword ptr [ecx] */ 34688 PUSH32(esp, edx); /* 0x2B04F670: push edx */ 34689 PUSH32(esp, ebx); /* 0x2B04F671: push ebx */ 34690 PUSH32(esp, eax); /* 0x2B04F672: push eax */ 34691 ecx = ebp + (-0x3C); /* 0x2B04F673: lea ecx, [ebp - 0x3c] */ 34692 MEM32(ebp + (-0x4)) = ebx; /* 0x2B04F676: mov dword ptr [ebp - 4], ebx */ 34693 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04F679: call dword ptr [0x2b0b5158] */ 34694 RECOMP_FLAGS_IN(); 34695 ecx = MEM32(edi + 0x100); /* 0x2B04F67F: mov ecx, dword ptr [edi + 0x100] */ 34696 edx = ebp + (-0x44); /* 0x2B04F685: lea edx, [ebp - 0x44] */ 34697 PUSH32(esp, edx); /* 0x2B04F688: push edx */ 34698 MEM32(ebp + (-0x28)) = 1; /* 0x2B04F689: mov dword ptr [ebp - 0x28], 1 */ 34699 MEM8(ebp + (-0x18)) = (uint8_t)(LO8(ebx)); /* 0x2B04F690: mov byte ptr [ebp - 0x18], bl */ 34700 MEM32(ebp + (-0x24)) = ebx; /* 0x2B04F693: mov dword ptr [ebp - 0x24], ebx */ 34701 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ebx)); /* 0x2B04F696: mov byte ptr [ebp - 0x20], bl */ 34702 MEM8(ebp + (-0x17)) = (uint8_t)(LO8(ebx)); /* 0x2B04F699: mov byte ptr [ebp - 0x17], bl */ 34703 MEM32(ebp + (-0x1C)) = ebx; /* 0x2B04F69C: mov dword ptr [ebp - 0x1c], ebx */ 34704 eax = MEM32(ecx + 0x8); /* 0x2B04F69F: mov eax, dword ptr [ecx + 8] */ 34705 PUSH32(esp, 1); /* 0x2B04F6A2: push 1 */ 34706 PUSH32(esp, eax); /* 0x2B04F6A4: push eax */ 34707 RECOMP_ICALL(0x2B052680u); /* 0x2B04F6A5: call 0x2b052680 */ /* not lifted */ 34708 RECOMP_FLAGS_IN(); 34709 PUSH32(esp, 1); /* 0x2B04F6AA: push 1 */ 34710 ecx = ebp + (-0x17); /* 0x2B04F6AC: lea ecx, [ebp - 0x17] */ 34711 PUSH32(esp, ecx); /* 0x2B04F6AF: push ecx */ 34712 PUSH32(esp, esi); /* 0x2B04F6B0: push esi */ 34713 RECOMP_ICALL(0x2B016630u); /* 0x2B04F6B1: call 0x2b016630 */ /* not lifted */ 34714 RECOMP_FLAGS_IN(); 34715 ecx = eax; /* 0x2B04F6B6: mov ecx, eax */ 34716 RECOMP_ICALL(0x2B016D90u); /* 0x2B04F6B8: call 0x2b016d90 */ /* not lifted */ 34717 RECOMP_FLAGS_IN(); 34718 eax = MEM32(edi + 0x100); /* 0x2B04F6BD: mov eax, dword ptr [edi + 0x100] */ 34719 ecx = MEM32(eax + 0x8); /* 0x2B04F6C3: mov ecx, dword ptr [eax + 8] */ 34720 esi = MEM32(eax + 0x4); /* 0x2B04F6C6: mov esi, dword ptr [eax + 4] */ 34721 MEM32(ebp + 0xC) = ecx; /* 0x2B04F6C9: mov dword ptr [ebp + 0xc], ecx */ 34722 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 34723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34724 ecx = ecx - esi; /* 0x2B04F6CC: sub ecx, esi */ 34725 _flag_k = FK_CMP; 34726 eax = 0x2AAAAAABu; /* 0x2B04F6CE: mov eax, 0x2aaaaaab */ 34727 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04F6D3: imul ecx */ 34728 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 34729 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 34730 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04F6D5: sar edx, 3 */ 34731 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 34732 edx = (uint32_t)((int32_t)edx >> 3u); 34733 eax = edx; /* 0x2B04F6D8: mov eax, edx */ 34734 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04F6DA: shr eax, 0x1f */ 34735 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 34736 eax = eax >> 31u; /* 0x2B04F6DA: shr eax, 0x1f */ 34737 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 34738 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34739 edx = edx + eax; /* 0x2B04F6DD: add edx, eax */ 34740 _flag_k = FK_ADD; 34741 /* cmp edx, 0x10u */ /* 0x2B04F6DF: cmp edx, 0x10 */ 34742 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 34743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34744 _flag_k = FK_CMP; 34745 PUSH32(esp, ebx); /* 0x2B04F6E2: push ebx */ 34746 if (CMP_G(_flag_a, _flag_b)) goto L_2B04F6F7; /* 0x2B04F6E3: jg 0x2b04f6f7 */ 34747 L_2B04F6E5: 34748 ecx = MEM32(ebp + 0xC); /* 0x2B04F6E5: mov ecx, dword ptr [ebp + 0xc] */ 34749 PUSH32(esp, ecx); /* 0x2B04F6E8: push ecx */ 34750 PUSH32(esp, esi); /* 0x2B04F6E9: push esi */ 34751 RECOMP_ICALL(0x2B054410u); /* 0x2B04F6EA: call 0x2b054410 */ /* not lifted */ 34752 RECOMP_FLAGS_IN(); 34753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 34754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34755 esp = esp + 0xCu; /* 0x2B04F6EF: add esp, 0xc */ 34756 _flag_k = FK_ADD; 34757 goto L_2B04F793; /* 0x2B04F6F2: jmp 0x2b04f793 */ 34758 L_2B04F6F7: 34759 edx = MEM32(ebp + 0xC); /* 0x2B04F6F7: mov edx, dword ptr [ebp + 0xc] */ 34760 PUSH32(esp, edx); /* 0x2B04F6FA: push edx */ 34761 PUSH32(esp, esi); /* 0x2B04F6FB: push esi */ 34762 RECOMP_ICALL(0x2B053E60u); /* 0x2B04F6FC: call 0x2b053e60 */ /* not lifted */ 34763 RECOMP_FLAGS_IN(); 34764 eax = esi + 0x300; /* 0x2B04F701: lea eax, [esi + 0x300] */ 34765 PUSH32(esp, ebx); /* 0x2B04F707: push ebx */ 34766 PUSH32(esp, eax); /* 0x2B04F708: push eax */ 34767 PUSH32(esp, esi); /* 0x2B04F709: push esi */ 34768 MEM32(ebp + 0x8) = eax; /* 0x2B04F70A: mov dword ptr [ebp + 8], eax */ 34769 RECOMP_ICALL(0x2B054410u); /* 0x2B04F70D: call 0x2b054410 */ /* not lifted */ 34770 RECOMP_FLAGS_IN(); 34771 eax = MEM32(ebp + 0x8); /* 0x2B04F712: mov eax, dword ptr [ebp + 8] */ 34772 ecx = MEM32(ebp + 0xC); /* 0x2B04F715: mov ecx, dword ptr [ebp + 0xc] */ 34773 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 34774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34775 esp = esp + 0x18u; /* 0x2B04F718: add esp, 0x18 */ 34776 _flag_k = FK_ADD; 34777 /* cmp eax, ecx */ /* 0x2B04F71B: cmp eax, ecx */ 34778 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 34779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34780 _flag_k = FK_CMP; 34781 MEM32(ebp + 0x8) = eax; /* 0x2B04F71D: mov dword ptr [ebp + 8], eax */ 34782 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F793; /* 0x2B04F720: je 0x2b04f793 */ 34783 L_2B04F722: 34784 edi = eax + 0x8; /* 0x2B04F722: lea edi, [eax + 8] */ 34785 goto L_2B04F72A; /* 0x2B04F725: jmp 0x2b04f72a */ 34786 L_2B04F727: 34787 eax = MEM32(ebp + 0x8); /* 0x2B04F727: mov eax, dword ptr [ebp + 8] */ 34788 L_2B04F72A: 34789 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 34790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34791 esp = esp - 0x30u; /* 0x2B04F72A: sub esp, 0x30 */ 34792 _flag_k = FK_CMP; 34793 esi = esp; /* 0x2B04F72D: mov esi, esp */ 34794 /* cmp esi, eax */ /* 0x2B04F72F: cmp esi, eax */ 34795 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 34796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34797 _flag_k = FK_CMP; 34798 MEM32(ebp + (-0x14)) = esp; /* 0x2B04F731: mov dword ptr [ebp - 0x14], esp */ 34799 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F740; /* 0x2B04F734: je 0x2b04f740 */ 34800 L_2B04F736: 34801 eax = MEM32(eax); /* 0x2B04F736: mov eax, dword ptr [eax] */ 34802 MEM32(esi) = eax; /* 0x2B04F738: mov dword ptr [esi], eax */ 34803 ecx = MEM32(edi + (-0x4)); /* 0x2B04F73A: mov ecx, dword ptr [edi - 4] */ 34804 MEM32(esi + 0x4) = ecx; /* 0x2B04F73D: mov dword ptr [esi + 4], ecx */ 34805 L_2B04F740: 34806 PUSH32(esp, edi); /* 0x2B04F740: push edi */ 34807 ecx = esi + 0x8; /* 0x2B04F741: lea ecx, [esi + 8] */ 34808 RECOMP_ICALL(MEM32(0x2B0B5164)); /* 0x2B04F744: call dword ptr [0x2b0b5164] */ 34809 RECOMP_FLAGS_IN(); 34810 edx = MEM32(edi + 0x10); /* 0x2B04F74A: mov edx, dword ptr [edi + 0x10] */ 34811 MEM32(esi + 0x18) = edx; /* 0x2B04F74D: mov dword ptr [esi + 0x18], edx */ 34812 eax = MEM32(edi + 0x14); /* 0x2B04F750: mov eax, dword ptr [edi + 0x14] */ 34813 MEM32(esi + 0x1C) = eax; /* 0x2B04F753: mov dword ptr [esi + 0x1c], eax */ 34814 ecx = MEM32(edi + 0x18); /* 0x2B04F756: mov ecx, dword ptr [edi + 0x18] */ 34815 MEM32(esi + 0x20) = ecx; /* 0x2B04F759: mov dword ptr [esi + 0x20], ecx */ 34816 SET_LO8(edx, MEM8(edi + 0x1C)); /* 0x2B04F75C: mov dl, byte ptr [edi + 0x1c] */ 34817 MEM8(esi + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B04F75F: mov byte ptr [esi + 0x24], dl */ 34818 eax = MEM32(edi + 0x20); /* 0x2B04F762: mov eax, dword ptr [edi + 0x20] */ 34819 MEM32(esi + 0x28) = eax; /* 0x2B04F765: mov dword ptr [esi + 0x28], eax */ 34820 SET_LO8(ecx, MEM8(edi + 0x24)); /* 0x2B04F768: mov cl, byte ptr [edi + 0x24] */ 34821 MEM8(esi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x2B04F76B: mov byte ptr [esi + 0x2c], cl */ 34822 SET_LO8(edx, MEM8(edi + 0x25)); /* 0x2B04F76E: mov dl, byte ptr [edi + 0x25] */ 34823 MEM8(esi + 0x2D) = (uint8_t)(LO8(edx)); /* 0x2B04F771: mov byte ptr [esi + 0x2d], dl */ 34824 esi = MEM32(ebp + 0x8); /* 0x2B04F774: mov esi, dword ptr [ebp + 8] */ 34825 PUSH32(esp, esi); /* 0x2B04F777: push esi */ 34826 RECOMP_ICALL(0x2B053F90u); /* 0x2B04F778: call 0x2b053f90 */ /* not lifted */ 34827 RECOMP_FLAGS_IN(); 34828 eax = MEM32(ebp + 0xC); /* 0x2B04F77D: mov eax, dword ptr [ebp + 0xc] */ 34829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 34830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34831 esi = esi + 0x30u; /* 0x2B04F780: add esi, 0x30 */ 34832 _flag_k = FK_ADD; 34833 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 34834 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34835 esp = esp + 0x34u; /* 0x2B04F783: add esp, 0x34 */ 34836 _flag_k = FK_ADD; 34837 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 34838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34839 edi = edi + 0x30u; /* 0x2B04F786: add edi, 0x30 */ 34840 _flag_k = FK_ADD; 34841 /* cmp esi, eax */ /* 0x2B04F789: cmp esi, eax */ 34842 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 34843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34844 _flag_k = FK_CMP; 34845 MEM32(ebp + 0x8) = esi; /* 0x2B04F78B: mov dword ptr [ebp + 8], esi */ 34846 RECOMP_BACKEDGE(); 34847 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F727; /* 0x2B04F78E: jne 0x2b04f727 */ 34848 L_2B04F790: 34849 edi = MEM32(ebp + (-0x10)); /* 0x2B04F790: mov edi, dword ptr [ebp - 0x10] */ 34850 L_2B04F793: 34851 ecx = edi; /* 0x2B04F793: mov ecx, edi */ 34852 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04F795: call 0x2b0510b0 */ /* not lifted */ 34853 RECOMP_FLAGS_IN(); 34854 ecx = edi; /* 0x2B04F79A: mov ecx, edi */ 34855 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04F79C: call 0x2b03a2b0 */ /* not lifted */ 34856 RECOMP_FLAGS_IN(); 34857 eax = MEM32(ebp + (-0x38)); /* 0x2B04F7A1: mov eax, dword ptr [ebp - 0x38] */ 34858 /* cmp eax, ebx */ /* 0x2B04F7A4: cmp eax, ebx */ 34859 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 34860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34861 _flag_k = FK_CMP; 34862 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F7D5; /* 0x2B04F7A6: je 0x2b04f7d5 */ 34863 L_2B04F7A8: 34864 ecx = eax + (-0x1); /* 0x2B04F7A8: lea ecx, [eax - 1] */ 34865 SET_LO8(eax, MEM8(ecx)); /* 0x2B04F7AB: mov al, byte ptr [ecx] */ 34866 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04F7AD: cmp al, bl */ 34867 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 34868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34869 _flag_k = FK_NARROW(FK_CMP, 24); 34870 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F7CC; /* 0x2B04F7AF: je 0x2b04f7cc */ 34871 L_2B04F7B1: 34872 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F7B1: cmp al, 0xff */ 34873 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 34874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34875 _flag_k = FK_NARROW(FK_CMP, 24); 34876 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F7CC; /* 0x2B04F7B3: je 0x2b04f7cc */ 34877 L_2B04F7B5: 34878 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 34879 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F7B5: dec al */ 34880 _flag_k = FK_NARROW(FK_DEC, 24); 34881 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F7B7: mov byte ptr [ecx], al */ 34882 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F7B9: mov ecx, dword ptr [ebp - 0xc] */ 34883 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F7BC: mov dword ptr fs:[0], ecx */ 34884 edi = POP32_VAL(esp); /* 0x2B04F7C3: pop edi */ 34885 esi = POP32_VAL(esp); /* 0x2B04F7C4: pop esi */ 34886 ebx = POP32_VAL(esp); /* 0x2B04F7C5: pop ebx */ 34887 esp = ebp; /* 0x2B04F7C6: mov esp, ebp */ 34888 ebp = POP32_VAL(esp); /* 0x2B04F7C8: pop ebp */ 34889 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B04F7C9: ret 8 */ 34890 L_2B04F7CC: 34891 PUSH32(esp, ecx); /* 0x2B04F7CC: push ecx */ 34892 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F7CD: call 0x2b0ab1ba */ /* not lifted */ 34893 RECOMP_FLAGS_IN(); 34894 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 34895 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34896 esp = esp + 4; /* 0x2B04F7D2: add esp, 4 */ 34897 _flag_k = FK_ADD; 34898 L_2B04F7D5: 34899 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F7D5: mov ecx, dword ptr [ebp - 0xc] */ 34900 edi = POP32_VAL(esp); /* 0x2B04F7D8: pop edi */ 34901 esi = POP32_VAL(esp); /* 0x2B04F7D9: pop esi */ 34902 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F7DA: mov dword ptr fs:[0], ecx */ 34903 ebx = POP32_VAL(esp); /* 0x2B04F7E1: pop ebx */ 34904 esp = ebp; /* 0x2B04F7E2: mov esp, ebp */ 34905 ebp = POP32_VAL(esp); /* 0x2B04F7E4: pop ebp */ 34906 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B04F7E5: ret 8 */ 34907 RECOMP_REGS_OUT(); 34908 } 34909 34910 void sub_2B04F793(void) { 34911 int _fpu_cmp = 0; 34912 uint32_t _cf = 0; 34913 int _df = 1; 34914 uint32_t _flag_k = FK_NONE; 34915 uint32_t _flag_a = 0, _flag_b = 0; 34916 uint32_t _itail_tgt = 0; 34917 RECOMP_REGS_LOCALS 34918 RECOMP_ENTER(0x2B04F793u); 34919 34920 L_2B04F793: 34921 ecx = edi; /* 0x2B04F793: mov ecx, edi */ 34922 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04F795: call 0x2b0510b0 */ /* not lifted */ 34923 RECOMP_FLAGS_IN(); 34924 ecx = edi; /* 0x2B04F79A: mov ecx, edi */ 34925 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04F79C: call 0x2b03a2b0 */ /* not lifted */ 34926 RECOMP_FLAGS_IN(); 34927 eax = MEM32(ebp + (-0x38)); /* 0x2B04F7A1: mov eax, dword ptr [ebp - 0x38] */ 34928 /* cmp eax, ebx */ /* 0x2B04F7A4: cmp eax, ebx */ 34929 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 34930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34931 _flag_k = FK_CMP; 34932 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F7D5; /* 0x2B04F7A6: je 0x2b04f7d5 */ 34933 L_2B04F7A8: 34934 ecx = eax + (-0x1); /* 0x2B04F7A8: lea ecx, [eax - 1] */ 34935 SET_LO8(eax, MEM8(ecx)); /* 0x2B04F7AB: mov al, byte ptr [ecx] */ 34936 /* cmp LO8(eax), LO8(ebx) */ /* 0x2B04F7AD: cmp al, bl */ 34937 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 34938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34939 _flag_k = FK_NARROW(FK_CMP, 24); 34940 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F7CC; /* 0x2B04F7AF: je 0x2b04f7cc */ 34941 L_2B04F7B1: 34942 /* cmp LO8(eax), 0xFFu */ /* 0x2B04F7B1: cmp al, 0xff */ 34943 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 34944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 34945 _flag_k = FK_NARROW(FK_CMP, 24); 34946 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F7CC; /* 0x2B04F7B3: je 0x2b04f7cc */ 34947 L_2B04F7B5: 34948 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 34949 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04F7B5: dec al */ 34950 _flag_k = FK_NARROW(FK_DEC, 24); 34951 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04F7B7: mov byte ptr [ecx], al */ 34952 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F7B9: mov ecx, dword ptr [ebp - 0xc] */ 34953 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F7BC: mov dword ptr fs:[0], ecx */ 34954 edi = POP32_VAL(esp); /* 0x2B04F7C3: pop edi */ 34955 esi = POP32_VAL(esp); /* 0x2B04F7C4: pop esi */ 34956 ebx = POP32_VAL(esp); /* 0x2B04F7C5: pop ebx */ 34957 esp = ebp; /* 0x2B04F7C6: mov esp, ebp */ 34958 ebp = POP32_VAL(esp); /* 0x2B04F7C8: pop ebp */ 34959 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B04F7C9: ret 8 */ 34960 L_2B04F7CC: 34961 PUSH32(esp, ecx); /* 0x2B04F7CC: push ecx */ 34962 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04F7CD: call 0x2b0ab1ba */ /* not lifted */ 34963 RECOMP_FLAGS_IN(); 34964 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 34965 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 34966 esp = esp + 4; /* 0x2B04F7D2: add esp, 4 */ 34967 _flag_k = FK_ADD; 34968 L_2B04F7D5: 34969 ecx = MEM32(ebp + (-0xC)); /* 0x2B04F7D5: mov ecx, dword ptr [ebp - 0xc] */ 34970 edi = POP32_VAL(esp); /* 0x2B04F7D8: pop edi */ 34971 esi = POP32_VAL(esp); /* 0x2B04F7D9: pop esi */ 34972 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04F7DA: mov dword ptr fs:[0], ecx */ 34973 ebx = POP32_VAL(esp); /* 0x2B04F7E1: pop ebx */ 34974 esp = ebp; /* 0x2B04F7E2: mov esp, ebp */ 34975 ebp = POP32_VAL(esp); /* 0x2B04F7E4: pop ebp */ 34976 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B04F7E5: ret 8 */ 34977 RECOMP_REGS_OUT(); 34978 } 34979 34980 void sub_2B04F7F0(void) { 34981 int _fpu_cmp = 0; 34982 uint32_t _cf = 0; 34983 int _df = 1; 34984 uint32_t _flag_k = FK_NONE; 34985 uint32_t _flag_a = 0, _flag_b = 0; 34986 uint32_t _itail_tgt = 0; 34987 RECOMP_REGS_LOCALS 34988 RECOMP_ENTER(0x2B04F7F0u); 34989 34990 L_2B04F7F0: 34991 PUSH32(esp, ebp); /* 0x2B04F7F0: push ebp */ 34992 ebp = esp; /* 0x2B04F7F1: mov ebp, esp */ 34993 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B04F7F3: push -1 */ 34994 PUSH32(esp, 0x2B0AF8A8u); /* 0x2B04F7F5: push 0x2b0af8a8 */ 34995 eax = MEM32(FS_BASE + (0)); /* 0x2B04F7FA: mov eax, dword ptr fs:[0] */ 34996 PUSH32(esp, eax); /* 0x2B04F800: push eax */ 34997 MEM32(FS_BASE + (0)) = esp; /* 0x2B04F801: mov dword ptr fs:[0], esp */ 34998 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 34999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35000 esp = esp - 0x44u; /* 0x2B04F808: sub esp, 0x44 */ 35001 _flag_k = FK_CMP; 35002 eax = MEM32(ebp + 0x8); /* 0x2B04F80B: mov eax, dword ptr [ebp + 8] */ 35003 PUSH32(esp, ebx); /* 0x2B04F80E: push ebx */ 35004 ebx = MEM32(eax + 0x4); /* 0x2B04F80F: mov ebx, dword ptr [eax + 4] */ 35005 eax = MEM32(eax + 0x8); /* 0x2B04F812: mov eax, dword ptr [eax + 8] */ 35006 /* cmp ebx, eax */ /* 0x2B04F815: cmp ebx, eax */ 35007 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 35008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35009 _flag_k = FK_CMP; 35010 PUSH32(esp, esi); /* 0x2B04F817: push esi */ 35011 PUSH32(esp, edi); /* 0x2B04F818: push edi */ 35012 MEM32(ebp + (-0x10)) = ecx; /* 0x2B04F819: mov dword ptr [ebp - 0x10], ecx */ 35013 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F908; /* 0x2B04F81C: je 0x2b04f908 */ 35014 L_2B04F822: 35015 edi = ebx + 0x1C; /* 0x2B04F822: lea edi, [ebx + 0x1c] */ 35016 L_2B04F825: 35017 eax = MEM32(ebp + (-0x10)); /* 0x2B04F825: mov eax, dword ptr [ebp - 0x10] */ 35018 eax = MEM32(eax + 0x100); /* 0x2B04F828: mov eax, dword ptr [eax + 0x100] */ 35019 esi = MEM32(eax + 0x4); /* 0x2B04F82E: mov esi, dword ptr [eax + 4] */ 35020 eax = MEM32(eax + 0x8); /* 0x2B04F831: mov eax, dword ptr [eax + 8] */ 35021 /* cmp esi, eax */ /* 0x2B04F834: cmp esi, eax */ 35022 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35024 _flag_k = FK_CMP; 35025 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F84A; /* 0x2B04F836: je 0x2b04f84a */ 35026 L_2B04F838: 35027 ecx = MEM32(ebx); /* 0x2B04F838: mov ecx, dword ptr [ebx] */ 35028 L_2B04F83A: 35029 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B04F83A: cmp ecx, dword ptr [esi + 4] */ 35030 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 35031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35032 _flag_k = FK_CMP; 35033 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F995; /* 0x2B04F83D: je 0x2b04f995 */ 35034 L_2B04F843: 35035 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35036 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35037 esi = esi + 0x30u; /* 0x2B04F843: add esi, 0x30 */ 35038 _flag_k = FK_ADD; 35039 /* cmp esi, eax */ /* 0x2B04F846: cmp esi, eax */ 35040 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35042 _flag_k = FK_CMP; 35043 RECOMP_BACKEDGE(); 35044 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F83A; /* 0x2B04F848: jne 0x2b04f83a */ 35045 L_2B04F84A: 35046 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04F84A: mov al, byte ptr [ebp + 0xb] */ 35047 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 35048 esi = 0; /* 0x2B04F84D: xor esi, esi */ 35049 _cf = 0; 35050 _flag_k = FK_TEST; 35051 PUSH32(esp, esi); /* 0x2B04F84F: push esi */ 35052 ecx = ebp + (-0x48); /* 0x2B04F850: lea ecx, [ebp - 0x48] */ 35053 MEM32(ebp + (-0x50)) = esi; /* 0x2B04F853: mov dword ptr [ebp - 0x50], esi */ 35054 MEM32(ebp + (-0x4C)) = esi; /* 0x2B04F856: mov dword ptr [ebp - 0x4c], esi */ 35055 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(eax)); /* 0x2B04F859: mov byte ptr [ebp - 0x48], al */ 35056 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F85C: call dword ptr [0x2b0b514c] */ 35057 RECOMP_FLAGS_IN(); 35058 MEM8(ebp + (-0x2C)) = (uint8_t)(0); /* 0x2B04F862: mov byte ptr [ebp - 0x2c], 0 */ 35059 MEM32(ebp + (-0x28)) = esi; /* 0x2B04F866: mov dword ptr [ebp - 0x28], esi */ 35060 MEM8(ebp + (-0x24)) = (uint8_t)(0); /* 0x2B04F869: mov byte ptr [ebp - 0x24], 0 */ 35061 eax = MEM32(ebx); /* 0x2B04F86D: mov eax, dword ptr [ebx] */ 35062 ecx = 0xC350u; /* 0x2B04F86F: mov ecx, 0xc350 */ 35063 MEM32(ebp + (-0x50)) = ecx; /* 0x2B04F874: mov dword ptr [ebp - 0x50], ecx */ 35064 ecx = MEM32(0x2B0B515C); /* 0x2B04F877: mov ecx, dword ptr [0x2b0b515c] */ 35065 MEM32(ebp + (-0x4C)) = eax; /* 0x2B04F87D: mov dword ptr [ebp - 0x4c], eax */ 35066 MEM32(ebp + (-0x38)) = esi; /* 0x2B04F880: mov dword ptr [ebp - 0x38], esi */ 35067 edx = MEM32(ecx); /* 0x2B04F883: mov edx, dword ptr [ecx] */ 35068 PUSH32(esp, edx); /* 0x2B04F885: push edx */ 35069 PUSH32(esp, esi); /* 0x2B04F886: push esi */ 35070 eax = edi + (-0x18); /* 0x2B04F887: lea eax, [edi - 0x18] */ 35071 PUSH32(esp, eax); /* 0x2B04F88A: push eax */ 35072 ecx = ebp + (-0x48); /* 0x2B04F88B: lea ecx, [ebp - 0x48] */ 35073 MEM32(ebp + (-0x4)) = esi; /* 0x2B04F88E: mov dword ptr [ebp - 4], esi */ 35074 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04F891: call dword ptr [0x2b0b5158] */ 35075 RECOMP_FLAGS_IN(); 35076 eax = MEM32(edi); /* 0x2B04F897: mov eax, dword ptr [edi] */ 35077 /* cmp eax, esi */ /* 0x2B04F899: cmp eax, esi */ 35078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 35079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35080 _flag_k = FK_CMP; 35081 ecx = MEM32(edi + (-0x8)); /* 0x2B04F89B: mov ecx, dword ptr [edi - 8] */ 35082 edx = MEM32(0x2B0E7E34); /* 0x2B04F89E: mov edx, dword ptr [0x2b0e7e34] */ 35083 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04F8A4: mov dword ptr [ebp - 0x34], ecx */ 35084 MEM8(ebp + (-0x24)) = (uint8_t)(0); /* 0x2B04F8A7: mov byte ptr [ebp - 0x24], 0 */ 35085 MEM32(ebp + (-0x30)) = esi; /* 0x2B04F8AB: mov dword ptr [ebp - 0x30], esi */ 35086 MEM8(ebp + (-0x2C)) = (uint8_t)(0); /* 0x2B04F8AE: mov byte ptr [ebp - 0x2c], 0 */ 35087 MEM8(ebp + (-0x23)) = (uint8_t)(1); /* 0x2B04F8B2: mov byte ptr [ebp - 0x23], 1 */ 35088 MEM32(ebp + (-0x28)) = edx; /* 0x2B04F8B6: mov dword ptr [ebp - 0x28], edx */ 35089 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F8CA; /* 0x2B04F8B9: je 0x2b04f8ca */ 35090 L_2B04F8BB: 35091 ecx = MEM32(edi + 0x4); /* 0x2B04F8BB: mov ecx, dword ptr [edi + 4] */ 35092 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 35093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35094 ecx = ecx - eax; /* 0x2B04F8BE: sub ecx, eax */ 35095 _flag_k = FK_CMP; 35096 /* cmp ecx, 1 */ /* 0x2B04F8C0: cmp ecx, 1 */ 35097 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 35098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35099 _flag_k = FK_CMP; 35100 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F8CA; /* 0x2B04F8C3: jne 0x2b04f8ca */ 35101 L_2B04F8C5: 35102 SET_LO8(edx, MEM8(eax)); /* 0x2B04F8C5: mov dl, byte ptr [eax] */ 35103 MEM8(ebp + (-0x23)) = (uint8_t)(LO8(edx)); /* 0x2B04F8C7: mov byte ptr [ebp - 0x23], dl */ 35104 L_2B04F8CA: 35105 eax = MEM32(ebp + (-0x10)); /* 0x2B04F8CA: mov eax, dword ptr [ebp - 0x10] */ 35106 ecx = MEM32(eax + 0x100); /* 0x2B04F8CD: mov ecx, dword ptr [eax + 0x100] */ 35107 eax = MEM32(ecx + 0x8); /* 0x2B04F8D3: mov eax, dword ptr [ecx + 8] */ 35108 edx = ebp + (-0x50); /* 0x2B04F8D6: lea edx, [ebp - 0x50] */ 35109 PUSH32(esp, edx); /* 0x2B04F8D9: push edx */ 35110 PUSH32(esp, 1); /* 0x2B04F8DA: push 1 */ 35111 PUSH32(esp, eax); /* 0x2B04F8DC: push eax */ 35112 RECOMP_ICALL(0x2B052680u); /* 0x2B04F8DD: call 0x2b052680 */ /* not lifted */ 35113 RECOMP_FLAGS_IN(); 35114 PUSH32(esp, 1); /* 0x2B04F8E2: push 1 */ 35115 ecx = ebp + (-0x48); /* 0x2B04F8E4: lea ecx, [ebp - 0x48] */ 35116 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F8E7: mov dword ptr [ebp - 4], 0xffffffff */ 35117 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F8EE: call dword ptr [0x2b0b514c] */ 35118 RECOMP_FLAGS_IN(); 35119 L_2B04F8F4: 35120 eax = MEM32(ebp + 0x8); /* 0x2B04F8F4: mov eax, dword ptr [ebp + 8] */ 35121 ecx = MEM32(eax + 0x8); /* 0x2B04F8F7: mov ecx, dword ptr [eax + 8] */ 35122 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x28u); 35123 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35124 ebx = ebx + 0x28u; /* 0x2B04F8FA: add ebx, 0x28 */ 35125 _flag_k = FK_ADD; 35126 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 35127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35128 edi = edi + 0x28u; /* 0x2B04F8FD: add edi, 0x28 */ 35129 _flag_k = FK_ADD; 35130 /* cmp ebx, ecx */ /* 0x2B04F900: cmp ebx, ecx */ 35131 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 35132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35133 _flag_k = FK_CMP; 35134 RECOMP_BACKEDGE(); 35135 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F825; /* 0x2B04F902: jne 0x2b04f825 */ 35136 L_2B04F908: 35137 eax = MEM32(ebp + (-0x10)); /* 0x2B04F908: mov eax, dword ptr [ebp - 0x10] */ 35138 ebx = MEM32(eax + 0x100); /* 0x2B04F90B: mov ebx, dword ptr [eax + 0x100] */ 35139 esi = MEM32(ebx + 0x4); /* 0x2B04F911: mov esi, dword ptr [ebx + 4] */ 35140 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F914: cmp esi, dword ptr [ebx + 8] */ 35141 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 35142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35143 _flag_k = FK_CMP; 35144 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9F2; /* 0x2B04F917: je 0x2b04f9f2 */ 35145 L_2B04F91D: 35146 ecx = MEM32(esi + 0x18); /* 0x2B04F91D: mov ecx, dword ptr [esi + 0x18] */ 35147 /* test ecx, ecx */ /* 0x2B04F920: test ecx, ecx */ 35148 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 35149 _cf = 0; 35150 _flag_k = FK_TEST; 35151 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F922: jne 0x2b04f9e6 */ 35152 L_2B04F928: 35153 ecx = MEM32(esi + 0x28); /* 0x2B04F928: mov ecx, dword ptr [esi + 0x28] */ 35154 /* cmp ecx, MEM32(0x2B0E7E34) */ /* 0x2B04F92B: cmp ecx, dword ptr [0x2b0e7e34] */ 35155 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x2B0E7E34)); 35156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35157 _flag_k = FK_CMP; 35158 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F931: je 0x2b04f9e6 */ 35159 L_2B04F937: 35160 eax = MEM32(ebx + 0x8); /* 0x2B04F937: mov eax, dword ptr [ebx + 8] */ 35161 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35163 esi = esi + 0x30u; /* 0x2B04F93A: add esi, 0x30 */ 35164 _flag_k = FK_ADD; 35165 /* cmp esi, eax */ /* 0x2B04F93D: cmp esi, eax */ 35166 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35168 _flag_k = FK_CMP; 35169 MEM32(ebp + 0x8) = eax; /* 0x2B04F93F: mov dword ptr [ebp + 8], eax */ 35170 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F95C; /* 0x2B04F942: je 0x2b04f95c */ 35171 L_2B04F944: 35172 edi = esi + (-0x30); /* 0x2B04F944: lea edi, [esi - 0x30] */ 35173 L_2B04F947: 35174 PUSH32(esp, esi); /* 0x2B04F947: push esi */ 35175 ecx = edi; /* 0x2B04F948: mov ecx, edi */ 35176 RECOMP_ICALL(0x2B053640u); /* 0x2B04F94A: call 0x2b053640 */ /* not lifted */ 35177 RECOMP_FLAGS_IN(); 35178 eax = MEM32(ebp + 0x8); /* 0x2B04F94F: mov eax, dword ptr [ebp + 8] */ 35179 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35181 esi = esi + 0x30u; /* 0x2B04F952: add esi, 0x30 */ 35182 _flag_k = FK_ADD; 35183 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 35184 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35185 edi = edi + 0x30u; /* 0x2B04F955: add edi, 0x30 */ 35186 _flag_k = FK_ADD; 35187 /* cmp esi, eax */ /* 0x2B04F958: cmp esi, eax */ 35188 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35190 _flag_k = FK_CMP; 35191 RECOMP_BACKEDGE(); 35192 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F947; /* 0x2B04F95A: jne 0x2b04f947 */ 35193 L_2B04F95C: 35194 eax = MEM32(ebx + 0x8); /* 0x2B04F95C: mov eax, dword ptr [ebx + 8] */ 35195 esi = eax + (-0x30); /* 0x2B04F95F: lea esi, [eax - 0x30] */ 35196 /* cmp esi, eax */ /* 0x2B04F962: cmp esi, eax */ 35197 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35199 _flag_k = FK_CMP; 35200 MEM32(ebp + 0x8) = eax; /* 0x2B04F964: mov dword ptr [ebp + 8], eax */ 35201 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F983; /* 0x2B04F967: je 0x2b04f983 */ 35202 L_2B04F969: 35203 edi = esi + 0x8; /* 0x2B04F969: lea edi, [esi + 8] */ 35204 L_2B04F96C: 35205 PUSH32(esp, 1); /* 0x2B04F96C: push 1 */ 35206 ecx = edi; /* 0x2B04F96E: mov ecx, edi */ 35207 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F970: call dword ptr [0x2b0b514c] */ 35208 RECOMP_FLAGS_IN(); 35209 eax = MEM32(ebp + 0x8); /* 0x2B04F976: mov eax, dword ptr [ebp + 8] */ 35210 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35212 esi = esi + 0x30u; /* 0x2B04F979: add esi, 0x30 */ 35213 _flag_k = FK_ADD; 35214 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 35215 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35216 edi = edi + 0x30u; /* 0x2B04F97C: add edi, 0x30 */ 35217 _flag_k = FK_ADD; 35218 /* cmp esi, eax */ /* 0x2B04F97F: cmp esi, eax */ 35219 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35221 _flag_k = FK_CMP; 35222 RECOMP_BACKEDGE(); 35223 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F96C; /* 0x2B04F981: jne 0x2b04f96c */ 35224 L_2B04F983: 35225 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0xFFFFFFD0u); 35226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35227 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0xFFFFFFD0u; /* 0x2B04F983: add dword ptr [ebx + 8], -0x30 */ 35228 _flag_k = FK_ADD; 35229 eax = MEM32(ebp + (-0x10)); /* 0x2B04F987: mov eax, dword ptr [ebp - 0x10] */ 35230 ebx = MEM32(eax + 0x100); /* 0x2B04F98A: mov ebx, dword ptr [eax + 0x100] */ 35231 esi = MEM32(ebx + 0x4); /* 0x2B04F990: mov esi, dword ptr [ebx + 4] */ 35232 goto L_2B04F9E9; /* 0x2B04F993: jmp 0x2b04f9e9 */ 35233 L_2B04F995: 35234 ecx = MEM32(0x2B0B515C); /* 0x2B04F995: mov ecx, dword ptr [0x2b0b515c] */ 35235 edx = MEM32(ecx); /* 0x2B04F99B: mov edx, dword ptr [ecx] */ 35236 PUSH32(esp, edx); /* 0x2B04F99D: push edx */ 35237 PUSH32(esp, 0); /* 0x2B04F99E: push 0 */ 35238 eax = edi + (-0x18); /* 0x2B04F9A0: lea eax, [edi - 0x18] */ 35239 PUSH32(esp, eax); /* 0x2B04F9A3: push eax */ 35240 ecx = esi + 0x8; /* 0x2B04F9A4: lea ecx, [esi + 8] */ 35241 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04F9A7: call dword ptr [0x2b0b5158] */ 35242 RECOMP_FLAGS_IN(); 35243 ecx = MEM32(edi + (-0x8)); /* 0x2B04F9AD: mov ecx, dword ptr [edi - 8] */ 35244 MEM32(esi + 0x1C) = ecx; /* 0x2B04F9B0: mov dword ptr [esi + 0x1c], ecx */ 35245 edx = MEM32(0x2B0E7E34); /* 0x2B04F9B3: mov edx, dword ptr [0x2b0e7e34] */ 35246 MEM32(esi + 0x28) = edx; /* 0x2B04F9B9: mov dword ptr [esi + 0x28], edx */ 35247 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Du); 35248 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35249 esi = esi + 0x2Du; /* 0x2B04F9BC: add esi, 0x2d */ 35250 _flag_k = FK_ADD; 35251 MEM8(esi) = (uint8_t)(0); /* 0x2B04F9BF: mov byte ptr [esi], 0 */ 35252 MEM8(esi) = (uint8_t)(1); /* 0x2B04F9C2: mov byte ptr [esi], 1 */ 35253 eax = MEM32(edi); /* 0x2B04F9C5: mov eax, dword ptr [edi] */ 35254 /* test eax, eax */ /* 0x2B04F9C7: test eax, eax */ 35255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 35256 _cf = 0; 35257 _flag_k = FK_TEST; 35258 RECOMP_BACKEDGE(); 35259 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F8F4; /* 0x2B04F9C9: je 0x2b04f8f4 */ 35260 L_2B04F9CF: 35261 ecx = MEM32(edi + 0x4); /* 0x2B04F9CF: mov ecx, dword ptr [edi + 4] */ 35262 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 35263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35264 ecx = ecx - eax; /* 0x2B04F9D2: sub ecx, eax */ 35265 _flag_k = FK_CMP; 35266 /* cmp ecx, 1 */ /* 0x2B04F9D4: cmp ecx, 1 */ 35267 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 35268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35269 _flag_k = FK_CMP; 35270 RECOMP_BACKEDGE(); 35271 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F8F4; /* 0x2B04F9D7: jne 0x2b04f8f4 */ 35272 L_2B04F9DD: 35273 SET_LO8(edx, MEM8(eax)); /* 0x2B04F9DD: mov dl, byte ptr [eax] */ 35274 MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x2B04F9DF: mov byte ptr [esi], dl */ 35275 RECOMP_BACKEDGE(); 35276 goto L_2B04F8F4; /* 0x2B04F9E1: jmp 0x2b04f8f4 */ 35277 L_2B04F9E6: 35278 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35280 esi = esi + 0x30u; /* 0x2B04F9E6: add esi, 0x30 */ 35281 _flag_k = FK_ADD; 35282 L_2B04F9E9: 35283 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F9E9: cmp esi, dword ptr [ebx + 8] */ 35284 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 35285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35286 _flag_k = FK_CMP; 35287 RECOMP_BACKEDGE(); 35288 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F91D; /* 0x2B04F9EC: jne 0x2b04f91d */ 35289 L_2B04F9F2: 35290 eax = MEM32(eax + 0x100); /* 0x2B04F9F2: mov eax, dword ptr [eax + 0x100] */ 35291 edi = MEM32(eax + 0x8); /* 0x2B04F9F8: mov edi, dword ptr [eax + 8] */ 35292 esi = MEM32(eax + 0x4); /* 0x2B04F9FB: mov esi, dword ptr [eax + 4] */ 35293 ecx = edi; /* 0x2B04F9FE: mov ecx, edi */ 35294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 35295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35296 ecx = ecx - esi; /* 0x2B04FA00: sub ecx, esi */ 35297 _flag_k = FK_CMP; 35298 eax = 0x2AAAAAABu; /* 0x2B04FA02: mov eax, 0x2aaaaaab */ 35299 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA07: imul ecx */ 35300 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 35301 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 35302 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FA09: sar edx, 3 */ 35303 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35304 edx = (uint32_t)((int32_t)edx >> 3u); 35305 eax = edx; /* 0x2B04FA0C: mov eax, edx */ 35306 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FA0E: shr eax, 0x1f */ 35307 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35308 eax = eax >> 31u; /* 0x2B04FA0E: shr eax, 0x1f */ 35309 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 35310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35311 edx = edx + eax; /* 0x2B04FA11: add edx, eax */ 35312 _flag_k = FK_ADD; 35313 /* cmp edx, 0x10u */ /* 0x2B04FA13: cmp edx, 0x10 */ 35314 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 35315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35316 _flag_k = FK_CMP; 35317 MEM32(ebp + 0x8) = edi; /* 0x2B04FA16: mov dword ptr [ebp + 8], edi */ 35318 MEM32(ebp + (-0x14)) = esi; /* 0x2B04FA19: mov dword ptr [ebp - 0x14], esi */ 35319 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FA1C: jg 0x2b04fa2f */ 35320 L_2B04FA1E: 35321 PUSH32(esp, 0); /* 0x2B04FA1E: push 0 */ 35322 PUSH32(esp, edi); /* 0x2B04FA20: push edi */ 35323 PUSH32(esp, esi); /* 0x2B04FA21: push esi */ 35324 RECOMP_ICALL(0x2B054410u); /* 0x2B04FA22: call 0x2b054410 */ /* not lifted */ 35325 RECOMP_FLAGS_IN(); 35326 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 35327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35328 esp = esp + 0xCu; /* 0x2B04FA27: add esp, 0xc */ 35329 _flag_k = FK_ADD; 35330 goto L_2B04FBB4; /* 0x2B04FA2A: jmp 0x2b04fbb4 */ 35331 L_2B04FA2F: 35332 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 35333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35334 esp = esp - 0x30u; /* 0x2B04FA2F: sub esp, 0x30 */ 35335 _flag_k = FK_CMP; 35336 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA32: mov dword ptr [ebp - 0x18], esp */ 35337 ebx = esp; /* 0x2B04FA35: mov ebx, esp */ 35338 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 35339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35340 esp = esp - 0x30u; /* 0x2B04FA37: sub esp, 0x30 */ 35341 _flag_k = FK_CMP; 35342 edx = edi + (-0x30); /* 0x2B04FA3A: lea edx, [edi - 0x30] */ 35343 ecx = esp; /* 0x2B04FA3D: mov ecx, esp */ 35344 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA3F: mov dword ptr [ebp - 0x18], esp */ 35345 PUSH32(esp, edx); /* 0x2B04FA42: push edx */ 35346 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA43: call 0x2b053940 */ /* not lifted */ 35347 RECOMP_FLAGS_IN(); 35348 ecx = edi; /* 0x2B04FA48: mov ecx, edi */ 35349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 35350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35351 ecx = ecx - esi; /* 0x2B04FA4A: sub ecx, esi */ 35352 _flag_k = FK_CMP; 35353 eax = 0x2AAAAAABu; /* 0x2B04FA4C: mov eax, 0x2aaaaaab */ 35354 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA51: imul ecx */ 35355 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 35356 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 35357 eax = edx; /* 0x2B04FA53: mov eax, edx */ 35358 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B04FA55: sar eax, 3 */ 35359 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35360 eax = (uint32_t)((int32_t)eax >> 3u); 35361 ecx = eax; /* 0x2B04FA58: mov ecx, eax */ 35362 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FA5A: shr ecx, 0x1f */ 35363 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35364 ecx = ecx >> 31u; /* 0x2B04FA5A: shr ecx, 0x1f */ 35365 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 35366 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35367 eax = eax + ecx; /* 0x2B04FA5D: add eax, ecx */ 35368 _flag_k = FK_ADD; 35369 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B04FA5F: cdq */ 35370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 35371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35372 eax = eax - edx; /* 0x2B04FA60: sub eax, edx */ 35373 _flag_k = FK_CMP; 35374 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B04FA62: sar eax, 1 */ 35375 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35376 eax = (uint32_t)((int32_t)eax >> 1u); 35377 edx = eax + eax * 2; /* 0x2B04FA64: lea edx, [eax + eax*2] */ 35378 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 35379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35380 esp = esp - 0x30u; /* 0x2B04FA67: sub esp, 0x30 */ 35381 _flag_k = FK_CMP; 35382 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B04FA6A: shl edx, 4 */ 35383 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35384 edx = edx << 4u; /* 0x2B04FA6A: shl edx, 4 */ 35385 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 35386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35387 edx = edx + esi; /* 0x2B04FA6D: add edx, esi */ 35388 _flag_k = FK_ADD; 35389 ecx = esp; /* 0x2B04FA6F: mov ecx, esp */ 35390 MEM32(ebp + (-0x1C)) = esp; /* 0x2B04FA71: mov dword ptr [ebp - 0x1c], esp */ 35391 PUSH32(esp, edx); /* 0x2B04FA74: push edx */ 35392 MEM32(ebp + (-0x4)) = 1; /* 0x2B04FA75: mov dword ptr [ebp - 4], 1 */ 35393 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA7C: call 0x2b053940 */ /* not lifted */ 35394 RECOMP_FLAGS_IN(); 35395 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 35396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35397 esp = esp - 0x30u; /* 0x2B04FA81: sub esp, 0x30 */ 35398 _flag_k = FK_CMP; 35399 ecx = esp; /* 0x2B04FA84: mov ecx, esp */ 35400 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FA86: mov dword ptr [ebp - 0x20], esp */ 35401 PUSH32(esp, esi); /* 0x2B04FA89: push esi */ 35402 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04FA8A: mov byte ptr [ebp - 4], 2 */ 35403 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA8E: call 0x2b053940 */ /* not lifted */ 35404 RECOMP_FLAGS_IN(); 35405 PUSH32(esp, ebx); /* 0x2B04FA93: push ebx */ 35406 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04FA94: mov dword ptr [ebp - 4], 0xffffffff */ 35407 RECOMP_ICALL(0x2B054620u); /* 0x2B04FA9B: call 0x2b054620 */ /* not lifted */ 35408 RECOMP_FLAGS_IN(); 35409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 35410 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35411 esp = esp + 0x94u; /* 0x2B04FAA0: add esp, 0x94 */ 35412 _flag_k = FK_ADD; 35413 PUSH32(esp, edi); /* 0x2B04FAA6: push edi */ 35414 PUSH32(esp, esi); /* 0x2B04FAA7: push esi */ 35415 RECOMP_ICALL(0x2B054940u); /* 0x2B04FAA8: call 0x2b054940 */ /* not lifted */ 35416 RECOMP_FLAGS_IN(); 35417 ebx = eax; /* 0x2B04FAAD: mov ebx, eax */ 35418 ecx = edi; /* 0x2B04FAAF: mov ecx, edi */ 35419 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 35420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35421 ecx = ecx - ebx; /* 0x2B04FAB1: sub ecx, ebx */ 35422 _flag_k = FK_CMP; 35423 eax = 0x2AAAAAABu; /* 0x2B04FAB3: mov eax, 0x2aaaaaab */ 35424 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FAB8: imul ecx */ 35425 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 35426 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 35427 ecx = edx; /* 0x2B04FABA: mov ecx, edx */ 35428 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B04FABC: sar ecx, 3 */ 35429 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35430 ecx = (uint32_t)((int32_t)ecx >> 3u); 35431 eax = ecx; /* 0x2B04FABF: mov eax, ecx */ 35432 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAC1: shr eax, 0x1f */ 35433 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35434 eax = eax >> 31u; /* 0x2B04FAC1: shr eax, 0x1f */ 35435 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 35436 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35437 ecx = ecx + eax; /* 0x2B04FAC4: add ecx, eax */ 35438 _flag_k = FK_ADD; 35439 edx = ebx; /* 0x2B04FAC6: mov edx, ebx */ 35440 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 35441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35442 edx = edx - esi; /* 0x2B04FAC8: sub edx, esi */ 35443 _flag_k = FK_CMP; 35444 eax = 0x2AAAAAABu; /* 0x2B04FACA: mov eax, 0x2aaaaaab */ 35445 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B04FACF: imul edx */ 35446 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 35447 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 35448 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FAD1: sar edx, 3 */ 35449 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35450 edx = (uint32_t)((int32_t)edx >> 3u); 35451 eax = edx; /* 0x2B04FAD4: mov eax, edx */ 35452 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAD6: shr eax, 0x1f */ 35453 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35454 eax = eax >> 31u; /* 0x2B04FAD6: shr eax, 0x1f */ 35455 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 35456 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35457 esp = esp + 0x38u; /* 0x2B04FAD9: add esp, 0x38 */ 35458 _flag_k = FK_ADD; 35459 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 35460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35461 edx = edx + eax; /* 0x2B04FADC: add edx, eax */ 35462 _flag_k = FK_ADD; 35463 /* cmp ecx, edx */ /* 0x2B04FADE: cmp ecx, edx */ 35464 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 35465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35466 _flag_k = FK_CMP; 35467 PUSH32(esp, 0); /* 0x2B04FAE0: push 0 */ 35468 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FAF2; /* 0x2B04FAE2: jg 0x2b04faf2 */ 35469 L_2B04FAE4: 35470 PUSH32(esp, edi); /* 0x2B04FAE4: push edi */ 35471 PUSH32(esp, ebx); /* 0x2B04FAE5: push ebx */ 35472 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAE6: call 0x2b053e60 */ /* not lifted */ 35473 RECOMP_FLAGS_IN(); 35474 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 35475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35476 esp = esp + 0xCu; /* 0x2B04FAEB: add esp, 0xc */ 35477 _flag_k = FK_ADD; 35478 edi = ebx; /* 0x2B04FAEE: mov edi, ebx */ 35479 goto L_2B04FAFE; /* 0x2B04FAF0: jmp 0x2b04fafe */ 35480 L_2B04FAF2: 35481 PUSH32(esp, ebx); /* 0x2B04FAF2: push ebx */ 35482 PUSH32(esp, esi); /* 0x2B04FAF3: push esi */ 35483 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAF4: call 0x2b053e60 */ /* not lifted */ 35484 RECOMP_FLAGS_IN(); 35485 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 35486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35487 esp = esp + 0xCu; /* 0x2B04FAF9: add esp, 0xc */ 35488 _flag_k = FK_ADD; 35489 esi = ebx; /* 0x2B04FAFC: mov esi, ebx */ 35490 L_2B04FAFE: 35491 ecx = edi; /* 0x2B04FAFE: mov ecx, edi */ 35492 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 35493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35494 ecx = ecx - esi; /* 0x2B04FB00: sub ecx, esi */ 35495 _flag_k = FK_CMP; 35496 eax = 0x2AAAAAABu; /* 0x2B04FB02: mov eax, 0x2aaaaaab */ 35497 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FB07: imul ecx */ 35498 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 35499 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 35500 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FB09: sar edx, 3 */ 35501 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35502 edx = (uint32_t)((int32_t)edx >> 3u); 35503 ecx = edx; /* 0x2B04FB0C: mov ecx, edx */ 35504 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FB0E: shr ecx, 0x1f */ 35505 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35506 ecx = ecx >> 31u; /* 0x2B04FB0E: shr ecx, 0x1f */ 35507 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 35508 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35509 edx = edx + ecx; /* 0x2B04FB11: add edx, ecx */ 35510 _flag_k = FK_ADD; 35511 /* cmp edx, 0x10u */ /* 0x2B04FB13: cmp edx, 0x10 */ 35512 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 35513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35514 _flag_k = FK_CMP; 35515 RECOMP_BACKEDGE(); 35516 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FB16: jg 0x2b04fa2f */ 35517 L_2B04FB1C: 35518 esi = MEM32(ebp + (-0x14)); /* 0x2B04FB1C: mov esi, dword ptr [ebp - 0x14] */ 35519 PUSH32(esp, 0); /* 0x2B04FB1F: push 0 */ 35520 ebx = esi + 0x300; /* 0x2B04FB21: lea ebx, [esi + 0x300] */ 35521 PUSH32(esp, ebx); /* 0x2B04FB27: push ebx */ 35522 PUSH32(esp, esi); /* 0x2B04FB28: push esi */ 35523 RECOMP_ICALL(0x2B054410u); /* 0x2B04FB29: call 0x2b054410 */ /* not lifted */ 35524 RECOMP_FLAGS_IN(); 35525 eax = MEM32(ebp + 0x8); /* 0x2B04FB2E: mov eax, dword ptr [ebp + 8] */ 35526 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 35527 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35528 esp = esp + 0xCu; /* 0x2B04FB31: add esp, 0xc */ 35529 _flag_k = FK_ADD; 35530 /* cmp ebx, eax */ /* 0x2B04FB34: cmp ebx, eax */ 35531 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 35532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35533 _flag_k = FK_CMP; 35534 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FBB4; /* 0x2B04FB36: je 0x2b04fbb4 */ 35535 L_2B04FB38: 35536 esi = ebx + 0x8; /* 0x2B04FB38: lea esi, [ebx + 8] */ 35537 L_2B04FB3B: 35538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 35539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35540 esp = esp - 0x30u; /* 0x2B04FB3B: sub esp, 0x30 */ 35541 _flag_k = FK_CMP; 35542 edi = esp; /* 0x2B04FB3E: mov edi, esp */ 35543 /* cmp edi, ebx */ /* 0x2B04FB40: cmp edi, ebx */ 35544 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 35545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35546 _flag_k = FK_CMP; 35547 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FB42: mov dword ptr [ebp - 0x20], esp */ 35548 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FB51; /* 0x2B04FB45: je 0x2b04fb51 */ 35549 L_2B04FB47: 35550 edx = MEM32(ebx); /* 0x2B04FB47: mov edx, dword ptr [ebx] */ 35551 MEM32(edi) = edx; /* 0x2B04FB49: mov dword ptr [edi], edx */ 35552 eax = MEM32(esi + (-0x4)); /* 0x2B04FB4B: mov eax, dword ptr [esi - 4] */ 35553 MEM32(edi + 0x4) = eax; /* 0x2B04FB4E: mov dword ptr [edi + 4], eax */ 35554 L_2B04FB51: 35555 SET_LO8(edx, MEM8(esi)); /* 0x2B04FB51: mov dl, byte ptr [esi] */ 35556 ecx = edi + 0x8; /* 0x2B04FB53: lea ecx, [edi + 8] */ 35557 PUSH32(esp, 0); /* 0x2B04FB56: push 0 */ 35558 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2B04FB58: mov byte ptr [ecx], dl */ 35559 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04FB5A: call dword ptr [0x2b0b514c] */ 35560 RECOMP_FLAGS_IN(); 35561 eax = MEM32(0x2B0B515C); /* 0x2B04FB60: mov eax, dword ptr [0x2b0b515c] */ 35562 ecx = MEM32(eax); /* 0x2B04FB65: mov ecx, dword ptr [eax] */ 35563 PUSH32(esp, ecx); /* 0x2B04FB67: push ecx */ 35564 PUSH32(esp, 0); /* 0x2B04FB68: push 0 */ 35565 PUSH32(esp, esi); /* 0x2B04FB6A: push esi */ 35566 ecx = edi + 0x8; /* 0x2B04FB6B: lea ecx, [edi + 8] */ 35567 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04FB6E: call dword ptr [0x2b0b5158] */ 35568 RECOMP_FLAGS_IN(); 35569 edx = MEM32(esi + 0x10); /* 0x2B04FB74: mov edx, dword ptr [esi + 0x10] */ 35570 MEM32(edi + 0x18) = edx; /* 0x2B04FB77: mov dword ptr [edi + 0x18], edx */ 35571 eax = MEM32(esi + 0x14); /* 0x2B04FB7A: mov eax, dword ptr [esi + 0x14] */ 35572 MEM32(edi + 0x1C) = eax; /* 0x2B04FB7D: mov dword ptr [edi + 0x1c], eax */ 35573 ecx = MEM32(esi + 0x18); /* 0x2B04FB80: mov ecx, dword ptr [esi + 0x18] */ 35574 MEM32(edi + 0x20) = ecx; /* 0x2B04FB83: mov dword ptr [edi + 0x20], ecx */ 35575 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x2B04FB86: mov dl, byte ptr [esi + 0x1c] */ 35576 MEM8(edi + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B04FB89: mov byte ptr [edi + 0x24], dl */ 35577 eax = MEM32(esi + 0x20); /* 0x2B04FB8C: mov eax, dword ptr [esi + 0x20] */ 35578 MEM32(edi + 0x28) = eax; /* 0x2B04FB8F: mov dword ptr [edi + 0x28], eax */ 35579 SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x2B04FB92: mov cl, byte ptr [esi + 0x24] */ 35580 MEM8(edi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x2B04FB95: mov byte ptr [edi + 0x2c], cl */ 35581 SET_LO8(edx, MEM8(esi + 0x25)); /* 0x2B04FB98: mov dl, byte ptr [esi + 0x25] */ 35582 PUSH32(esp, ebx); /* 0x2B04FB9B: push ebx */ 35583 MEM8(edi + 0x2D) = (uint8_t)(LO8(edx)); /* 0x2B04FB9C: mov byte ptr [edi + 0x2d], dl */ 35584 RECOMP_ICALL(0x2B053F90u); /* 0x2B04FB9F: call 0x2b053f90 */ /* not lifted */ 35585 RECOMP_FLAGS_IN(); 35586 eax = MEM32(ebp + 0x8); /* 0x2B04FBA4: mov eax, dword ptr [ebp + 8] */ 35587 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 35588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35589 ebx = ebx + 0x30u; /* 0x2B04FBA7: add ebx, 0x30 */ 35590 _flag_k = FK_ADD; 35591 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 35592 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35593 esp = esp + 0x34u; /* 0x2B04FBAA: add esp, 0x34 */ 35594 _flag_k = FK_ADD; 35595 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35597 esi = esi + 0x30u; /* 0x2B04FBAD: add esi, 0x30 */ 35598 _flag_k = FK_ADD; 35599 /* cmp ebx, eax */ /* 0x2B04FBB0: cmp ebx, eax */ 35600 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 35601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35602 _flag_k = FK_CMP; 35603 RECOMP_BACKEDGE(); 35604 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FB3B; /* 0x2B04FBB2: jne 0x2b04fb3b */ 35605 L_2B04FBB4: 35606 esi = MEM32(ebp + (-0x10)); /* 0x2B04FBB4: mov esi, dword ptr [ebp - 0x10] */ 35607 ecx = esi; /* 0x2B04FBB7: mov ecx, esi */ 35608 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FBB9: call 0x2b0510b0 */ /* not lifted */ 35609 RECOMP_FLAGS_IN(); 35610 ecx = esi; /* 0x2B04FBBE: mov ecx, esi */ 35611 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FBC0: call 0x2b03a2b0 */ /* not lifted */ 35612 RECOMP_FLAGS_IN(); 35613 eax = MEM32(0x2B0E7E34); /* 0x2B04FBC5: mov eax, dword ptr [0x2b0e7e34] */ 35614 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FBCA: mov ecx, dword ptr [ebp - 0xc] */ 35615 edi = POP32_VAL(esp); /* 0x2B04FBCD: pop edi */ 35616 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 35617 eax = eax + 1; /* 0x2B04FBCE: inc eax */ 35618 _flag_k = FK_INC; 35619 esi = POP32_VAL(esp); /* 0x2B04FBCF: pop esi */ 35620 MEM32(0x2B0E7E34) = eax; /* 0x2B04FBD0: mov dword ptr [0x2b0e7e34], eax */ 35621 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FBD5: mov dword ptr fs:[0], ecx */ 35622 ebx = POP32_VAL(esp); /* 0x2B04FBDC: pop ebx */ 35623 esp = ebp; /* 0x2B04FBDD: mov esp, ebp */ 35624 ebp = POP32_VAL(esp); /* 0x2B04FBDF: pop ebp */ 35625 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04FBE0: ret 4 */ 35626 RECOMP_REGS_OUT(); 35627 } 35628 35629 void sub_2B04F825(void) { 35630 int _fpu_cmp = 0; 35631 uint32_t _cf = 0; 35632 int _df = 1; 35633 uint32_t _flag_k = FK_NONE; 35634 uint32_t _flag_a = 0, _flag_b = 0; 35635 uint32_t _itail_tgt = 0; 35636 RECOMP_REGS_LOCALS 35637 RECOMP_ENTER(0x2B04F825u); 35638 35639 L_2B04F825: 35640 eax = MEM32(ebp + (-0x10)); /* 0x2B04F825: mov eax, dword ptr [ebp - 0x10] */ 35641 eax = MEM32(eax + 0x100); /* 0x2B04F828: mov eax, dword ptr [eax + 0x100] */ 35642 esi = MEM32(eax + 0x4); /* 0x2B04F82E: mov esi, dword ptr [eax + 4] */ 35643 eax = MEM32(eax + 0x8); /* 0x2B04F831: mov eax, dword ptr [eax + 8] */ 35644 /* cmp esi, eax */ /* 0x2B04F834: cmp esi, eax */ 35645 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35647 _flag_k = FK_CMP; 35648 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F84A; /* 0x2B04F836: je 0x2b04f84a */ 35649 L_2B04F838: 35650 ecx = MEM32(ebx); /* 0x2B04F838: mov ecx, dword ptr [ebx] */ 35651 L_2B04F83A: 35652 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B04F83A: cmp ecx, dword ptr [esi + 4] */ 35653 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 35654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35655 _flag_k = FK_CMP; 35656 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F995; /* 0x2B04F83D: je 0x2b04f995 */ 35657 L_2B04F843: 35658 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35660 esi = esi + 0x30u; /* 0x2B04F843: add esi, 0x30 */ 35661 _flag_k = FK_ADD; 35662 /* cmp esi, eax */ /* 0x2B04F846: cmp esi, eax */ 35663 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35665 _flag_k = FK_CMP; 35666 RECOMP_BACKEDGE(); 35667 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F83A; /* 0x2B04F848: jne 0x2b04f83a */ 35668 L_2B04F84A: 35669 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04F84A: mov al, byte ptr [ebp + 0xb] */ 35670 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 35671 esi = 0; /* 0x2B04F84D: xor esi, esi */ 35672 _cf = 0; 35673 _flag_k = FK_TEST; 35674 PUSH32(esp, esi); /* 0x2B04F84F: push esi */ 35675 ecx = ebp + (-0x48); /* 0x2B04F850: lea ecx, [ebp - 0x48] */ 35676 MEM32(ebp + (-0x50)) = esi; /* 0x2B04F853: mov dword ptr [ebp - 0x50], esi */ 35677 MEM32(ebp + (-0x4C)) = esi; /* 0x2B04F856: mov dword ptr [ebp - 0x4c], esi */ 35678 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(eax)); /* 0x2B04F859: mov byte ptr [ebp - 0x48], al */ 35679 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F85C: call dword ptr [0x2b0b514c] */ 35680 RECOMP_FLAGS_IN(); 35681 MEM8(ebp + (-0x2C)) = (uint8_t)(0); /* 0x2B04F862: mov byte ptr [ebp - 0x2c], 0 */ 35682 MEM32(ebp + (-0x28)) = esi; /* 0x2B04F866: mov dword ptr [ebp - 0x28], esi */ 35683 MEM8(ebp + (-0x24)) = (uint8_t)(0); /* 0x2B04F869: mov byte ptr [ebp - 0x24], 0 */ 35684 eax = MEM32(ebx); /* 0x2B04F86D: mov eax, dword ptr [ebx] */ 35685 ecx = 0xC350u; /* 0x2B04F86F: mov ecx, 0xc350 */ 35686 MEM32(ebp + (-0x50)) = ecx; /* 0x2B04F874: mov dword ptr [ebp - 0x50], ecx */ 35687 ecx = MEM32(0x2B0B515C); /* 0x2B04F877: mov ecx, dword ptr [0x2b0b515c] */ 35688 MEM32(ebp + (-0x4C)) = eax; /* 0x2B04F87D: mov dword ptr [ebp - 0x4c], eax */ 35689 MEM32(ebp + (-0x38)) = esi; /* 0x2B04F880: mov dword ptr [ebp - 0x38], esi */ 35690 edx = MEM32(ecx); /* 0x2B04F883: mov edx, dword ptr [ecx] */ 35691 PUSH32(esp, edx); /* 0x2B04F885: push edx */ 35692 PUSH32(esp, esi); /* 0x2B04F886: push esi */ 35693 eax = edi + (-0x18); /* 0x2B04F887: lea eax, [edi - 0x18] */ 35694 PUSH32(esp, eax); /* 0x2B04F88A: push eax */ 35695 ecx = ebp + (-0x48); /* 0x2B04F88B: lea ecx, [ebp - 0x48] */ 35696 MEM32(ebp + (-0x4)) = esi; /* 0x2B04F88E: mov dword ptr [ebp - 4], esi */ 35697 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04F891: call dword ptr [0x2b0b5158] */ 35698 RECOMP_FLAGS_IN(); 35699 eax = MEM32(edi); /* 0x2B04F897: mov eax, dword ptr [edi] */ 35700 /* cmp eax, esi */ /* 0x2B04F899: cmp eax, esi */ 35701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 35702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35703 _flag_k = FK_CMP; 35704 ecx = MEM32(edi + (-0x8)); /* 0x2B04F89B: mov ecx, dword ptr [edi - 8] */ 35705 edx = MEM32(0x2B0E7E34); /* 0x2B04F89E: mov edx, dword ptr [0x2b0e7e34] */ 35706 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04F8A4: mov dword ptr [ebp - 0x34], ecx */ 35707 MEM8(ebp + (-0x24)) = (uint8_t)(0); /* 0x2B04F8A7: mov byte ptr [ebp - 0x24], 0 */ 35708 MEM32(ebp + (-0x30)) = esi; /* 0x2B04F8AB: mov dword ptr [ebp - 0x30], esi */ 35709 MEM8(ebp + (-0x2C)) = (uint8_t)(0); /* 0x2B04F8AE: mov byte ptr [ebp - 0x2c], 0 */ 35710 MEM8(ebp + (-0x23)) = (uint8_t)(1); /* 0x2B04F8B2: mov byte ptr [ebp - 0x23], 1 */ 35711 MEM32(ebp + (-0x28)) = edx; /* 0x2B04F8B6: mov dword ptr [ebp - 0x28], edx */ 35712 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F8CA; /* 0x2B04F8B9: je 0x2b04f8ca */ 35713 L_2B04F8BB: 35714 ecx = MEM32(edi + 0x4); /* 0x2B04F8BB: mov ecx, dword ptr [edi + 4] */ 35715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 35716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35717 ecx = ecx - eax; /* 0x2B04F8BE: sub ecx, eax */ 35718 _flag_k = FK_CMP; 35719 /* cmp ecx, 1 */ /* 0x2B04F8C0: cmp ecx, 1 */ 35720 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 35721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35722 _flag_k = FK_CMP; 35723 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F8CA; /* 0x2B04F8C3: jne 0x2b04f8ca */ 35724 L_2B04F8C5: 35725 SET_LO8(edx, MEM8(eax)); /* 0x2B04F8C5: mov dl, byte ptr [eax] */ 35726 MEM8(ebp + (-0x23)) = (uint8_t)(LO8(edx)); /* 0x2B04F8C7: mov byte ptr [ebp - 0x23], dl */ 35727 L_2B04F8CA: 35728 eax = MEM32(ebp + (-0x10)); /* 0x2B04F8CA: mov eax, dword ptr [ebp - 0x10] */ 35729 ecx = MEM32(eax + 0x100); /* 0x2B04F8CD: mov ecx, dword ptr [eax + 0x100] */ 35730 eax = MEM32(ecx + 0x8); /* 0x2B04F8D3: mov eax, dword ptr [ecx + 8] */ 35731 edx = ebp + (-0x50); /* 0x2B04F8D6: lea edx, [ebp - 0x50] */ 35732 PUSH32(esp, edx); /* 0x2B04F8D9: push edx */ 35733 PUSH32(esp, 1); /* 0x2B04F8DA: push 1 */ 35734 PUSH32(esp, eax); /* 0x2B04F8DC: push eax */ 35735 RECOMP_ICALL(0x2B052680u); /* 0x2B04F8DD: call 0x2b052680 */ /* not lifted */ 35736 RECOMP_FLAGS_IN(); 35737 PUSH32(esp, 1); /* 0x2B04F8E2: push 1 */ 35738 ecx = ebp + (-0x48); /* 0x2B04F8E4: lea ecx, [ebp - 0x48] */ 35739 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F8E7: mov dword ptr [ebp - 4], 0xffffffff */ 35740 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F8EE: call dword ptr [0x2b0b514c] */ 35741 RECOMP_FLAGS_IN(); 35742 L_2B04F8F4: 35743 eax = MEM32(ebp + 0x8); /* 0x2B04F8F4: mov eax, dword ptr [ebp + 8] */ 35744 ecx = MEM32(eax + 0x8); /* 0x2B04F8F7: mov ecx, dword ptr [eax + 8] */ 35745 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x28u); 35746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35747 ebx = ebx + 0x28u; /* 0x2B04F8FA: add ebx, 0x28 */ 35748 _flag_k = FK_ADD; 35749 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 35750 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35751 edi = edi + 0x28u; /* 0x2B04F8FD: add edi, 0x28 */ 35752 _flag_k = FK_ADD; 35753 /* cmp ebx, ecx */ /* 0x2B04F900: cmp ebx, ecx */ 35754 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 35755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35756 _flag_k = FK_CMP; 35757 RECOMP_BACKEDGE(); 35758 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F825; /* 0x2B04F902: jne 0x2b04f825 */ 35759 L_2B04F908: 35760 eax = MEM32(ebp + (-0x10)); /* 0x2B04F908: mov eax, dword ptr [ebp - 0x10] */ 35761 ebx = MEM32(eax + 0x100); /* 0x2B04F90B: mov ebx, dword ptr [eax + 0x100] */ 35762 esi = MEM32(ebx + 0x4); /* 0x2B04F911: mov esi, dword ptr [ebx + 4] */ 35763 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F914: cmp esi, dword ptr [ebx + 8] */ 35764 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 35765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35766 _flag_k = FK_CMP; 35767 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9F2; /* 0x2B04F917: je 0x2b04f9f2 */ 35768 L_2B04F91D: 35769 ecx = MEM32(esi + 0x18); /* 0x2B04F91D: mov ecx, dword ptr [esi + 0x18] */ 35770 /* test ecx, ecx */ /* 0x2B04F920: test ecx, ecx */ 35771 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 35772 _cf = 0; 35773 _flag_k = FK_TEST; 35774 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F922: jne 0x2b04f9e6 */ 35775 L_2B04F928: 35776 ecx = MEM32(esi + 0x28); /* 0x2B04F928: mov ecx, dword ptr [esi + 0x28] */ 35777 /* cmp ecx, MEM32(0x2B0E7E34) */ /* 0x2B04F92B: cmp ecx, dword ptr [0x2b0e7e34] */ 35778 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x2B0E7E34)); 35779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35780 _flag_k = FK_CMP; 35781 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F931: je 0x2b04f9e6 */ 35782 L_2B04F937: 35783 eax = MEM32(ebx + 0x8); /* 0x2B04F937: mov eax, dword ptr [ebx + 8] */ 35784 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35786 esi = esi + 0x30u; /* 0x2B04F93A: add esi, 0x30 */ 35787 _flag_k = FK_ADD; 35788 /* cmp esi, eax */ /* 0x2B04F93D: cmp esi, eax */ 35789 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35791 _flag_k = FK_CMP; 35792 MEM32(ebp + 0x8) = eax; /* 0x2B04F93F: mov dword ptr [ebp + 8], eax */ 35793 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F95C; /* 0x2B04F942: je 0x2b04f95c */ 35794 L_2B04F944: 35795 edi = esi + (-0x30); /* 0x2B04F944: lea edi, [esi - 0x30] */ 35796 L_2B04F947: 35797 PUSH32(esp, esi); /* 0x2B04F947: push esi */ 35798 ecx = edi; /* 0x2B04F948: mov ecx, edi */ 35799 RECOMP_ICALL(0x2B053640u); /* 0x2B04F94A: call 0x2b053640 */ /* not lifted */ 35800 RECOMP_FLAGS_IN(); 35801 eax = MEM32(ebp + 0x8); /* 0x2B04F94F: mov eax, dword ptr [ebp + 8] */ 35802 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35803 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35804 esi = esi + 0x30u; /* 0x2B04F952: add esi, 0x30 */ 35805 _flag_k = FK_ADD; 35806 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 35807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35808 edi = edi + 0x30u; /* 0x2B04F955: add edi, 0x30 */ 35809 _flag_k = FK_ADD; 35810 /* cmp esi, eax */ /* 0x2B04F958: cmp esi, eax */ 35811 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35813 _flag_k = FK_CMP; 35814 RECOMP_BACKEDGE(); 35815 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F947; /* 0x2B04F95A: jne 0x2b04f947 */ 35816 L_2B04F95C: 35817 eax = MEM32(ebx + 0x8); /* 0x2B04F95C: mov eax, dword ptr [ebx + 8] */ 35818 esi = eax + (-0x30); /* 0x2B04F95F: lea esi, [eax - 0x30] */ 35819 /* cmp esi, eax */ /* 0x2B04F962: cmp esi, eax */ 35820 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35821 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35822 _flag_k = FK_CMP; 35823 MEM32(ebp + 0x8) = eax; /* 0x2B04F964: mov dword ptr [ebp + 8], eax */ 35824 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F983; /* 0x2B04F967: je 0x2b04f983 */ 35825 L_2B04F969: 35826 edi = esi + 0x8; /* 0x2B04F969: lea edi, [esi + 8] */ 35827 L_2B04F96C: 35828 PUSH32(esp, 1); /* 0x2B04F96C: push 1 */ 35829 ecx = edi; /* 0x2B04F96E: mov ecx, edi */ 35830 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F970: call dword ptr [0x2b0b514c] */ 35831 RECOMP_FLAGS_IN(); 35832 eax = MEM32(ebp + 0x8); /* 0x2B04F976: mov eax, dword ptr [ebp + 8] */ 35833 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35834 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35835 esi = esi + 0x30u; /* 0x2B04F979: add esi, 0x30 */ 35836 _flag_k = FK_ADD; 35837 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 35838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35839 edi = edi + 0x30u; /* 0x2B04F97C: add edi, 0x30 */ 35840 _flag_k = FK_ADD; 35841 /* cmp esi, eax */ /* 0x2B04F97F: cmp esi, eax */ 35842 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 35843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35844 _flag_k = FK_CMP; 35845 RECOMP_BACKEDGE(); 35846 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F96C; /* 0x2B04F981: jne 0x2b04f96c */ 35847 L_2B04F983: 35848 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0xFFFFFFD0u); 35849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35850 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0xFFFFFFD0u; /* 0x2B04F983: add dword ptr [ebx + 8], -0x30 */ 35851 _flag_k = FK_ADD; 35852 eax = MEM32(ebp + (-0x10)); /* 0x2B04F987: mov eax, dword ptr [ebp - 0x10] */ 35853 ebx = MEM32(eax + 0x100); /* 0x2B04F98A: mov ebx, dword ptr [eax + 0x100] */ 35854 esi = MEM32(ebx + 0x4); /* 0x2B04F990: mov esi, dword ptr [ebx + 4] */ 35855 goto L_2B04F9E9; /* 0x2B04F993: jmp 0x2b04f9e9 */ 35856 L_2B04F995: 35857 ecx = MEM32(0x2B0B515C); /* 0x2B04F995: mov ecx, dword ptr [0x2b0b515c] */ 35858 edx = MEM32(ecx); /* 0x2B04F99B: mov edx, dword ptr [ecx] */ 35859 PUSH32(esp, edx); /* 0x2B04F99D: push edx */ 35860 PUSH32(esp, 0); /* 0x2B04F99E: push 0 */ 35861 eax = edi + (-0x18); /* 0x2B04F9A0: lea eax, [edi - 0x18] */ 35862 PUSH32(esp, eax); /* 0x2B04F9A3: push eax */ 35863 ecx = esi + 0x8; /* 0x2B04F9A4: lea ecx, [esi + 8] */ 35864 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04F9A7: call dword ptr [0x2b0b5158] */ 35865 RECOMP_FLAGS_IN(); 35866 ecx = MEM32(edi + (-0x8)); /* 0x2B04F9AD: mov ecx, dword ptr [edi - 8] */ 35867 MEM32(esi + 0x1C) = ecx; /* 0x2B04F9B0: mov dword ptr [esi + 0x1c], ecx */ 35868 edx = MEM32(0x2B0E7E34); /* 0x2B04F9B3: mov edx, dword ptr [0x2b0e7e34] */ 35869 MEM32(esi + 0x28) = edx; /* 0x2B04F9B9: mov dword ptr [esi + 0x28], edx */ 35870 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Du); 35871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35872 esi = esi + 0x2Du; /* 0x2B04F9BC: add esi, 0x2d */ 35873 _flag_k = FK_ADD; 35874 MEM8(esi) = (uint8_t)(0); /* 0x2B04F9BF: mov byte ptr [esi], 0 */ 35875 MEM8(esi) = (uint8_t)(1); /* 0x2B04F9C2: mov byte ptr [esi], 1 */ 35876 eax = MEM32(edi); /* 0x2B04F9C5: mov eax, dword ptr [edi] */ 35877 /* test eax, eax */ /* 0x2B04F9C7: test eax, eax */ 35878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 35879 _cf = 0; 35880 _flag_k = FK_TEST; 35881 RECOMP_BACKEDGE(); 35882 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F8F4; /* 0x2B04F9C9: je 0x2b04f8f4 */ 35883 L_2B04F9CF: 35884 ecx = MEM32(edi + 0x4); /* 0x2B04F9CF: mov ecx, dword ptr [edi + 4] */ 35885 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 35886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35887 ecx = ecx - eax; /* 0x2B04F9D2: sub ecx, eax */ 35888 _flag_k = FK_CMP; 35889 /* cmp ecx, 1 */ /* 0x2B04F9D4: cmp ecx, 1 */ 35890 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 35891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35892 _flag_k = FK_CMP; 35893 RECOMP_BACKEDGE(); 35894 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F8F4; /* 0x2B04F9D7: jne 0x2b04f8f4 */ 35895 L_2B04F9DD: 35896 SET_LO8(edx, MEM8(eax)); /* 0x2B04F9DD: mov dl, byte ptr [eax] */ 35897 MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x2B04F9DF: mov byte ptr [esi], dl */ 35898 RECOMP_BACKEDGE(); 35899 goto L_2B04F8F4; /* 0x2B04F9E1: jmp 0x2b04f8f4 */ 35900 L_2B04F9E6: 35901 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 35902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35903 esi = esi + 0x30u; /* 0x2B04F9E6: add esi, 0x30 */ 35904 _flag_k = FK_ADD; 35905 L_2B04F9E9: 35906 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F9E9: cmp esi, dword ptr [ebx + 8] */ 35907 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 35908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35909 _flag_k = FK_CMP; 35910 RECOMP_BACKEDGE(); 35911 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F91D; /* 0x2B04F9EC: jne 0x2b04f91d */ 35912 L_2B04F9F2: 35913 eax = MEM32(eax + 0x100); /* 0x2B04F9F2: mov eax, dword ptr [eax + 0x100] */ 35914 edi = MEM32(eax + 0x8); /* 0x2B04F9F8: mov edi, dword ptr [eax + 8] */ 35915 esi = MEM32(eax + 0x4); /* 0x2B04F9FB: mov esi, dword ptr [eax + 4] */ 35916 ecx = edi; /* 0x2B04F9FE: mov ecx, edi */ 35917 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 35918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35919 ecx = ecx - esi; /* 0x2B04FA00: sub ecx, esi */ 35920 _flag_k = FK_CMP; 35921 eax = 0x2AAAAAABu; /* 0x2B04FA02: mov eax, 0x2aaaaaab */ 35922 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA07: imul ecx */ 35923 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 35924 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 35925 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FA09: sar edx, 3 */ 35926 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35927 edx = (uint32_t)((int32_t)edx >> 3u); 35928 eax = edx; /* 0x2B04FA0C: mov eax, edx */ 35929 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FA0E: shr eax, 0x1f */ 35930 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35931 eax = eax >> 31u; /* 0x2B04FA0E: shr eax, 0x1f */ 35932 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 35933 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35934 edx = edx + eax; /* 0x2B04FA11: add edx, eax */ 35935 _flag_k = FK_ADD; 35936 /* cmp edx, 0x10u */ /* 0x2B04FA13: cmp edx, 0x10 */ 35937 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 35938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35939 _flag_k = FK_CMP; 35940 MEM32(ebp + 0x8) = edi; /* 0x2B04FA16: mov dword ptr [ebp + 8], edi */ 35941 MEM32(ebp + (-0x14)) = esi; /* 0x2B04FA19: mov dword ptr [ebp - 0x14], esi */ 35942 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FA1C: jg 0x2b04fa2f */ 35943 L_2B04FA1E: 35944 PUSH32(esp, 0); /* 0x2B04FA1E: push 0 */ 35945 PUSH32(esp, edi); /* 0x2B04FA20: push edi */ 35946 PUSH32(esp, esi); /* 0x2B04FA21: push esi */ 35947 RECOMP_ICALL(0x2B054410u); /* 0x2B04FA22: call 0x2b054410 */ /* not lifted */ 35948 RECOMP_FLAGS_IN(); 35949 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 35950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35951 esp = esp + 0xCu; /* 0x2B04FA27: add esp, 0xc */ 35952 _flag_k = FK_ADD; 35953 goto L_2B04FBB4; /* 0x2B04FA2A: jmp 0x2b04fbb4 */ 35954 L_2B04FA2F: 35955 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 35956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35957 esp = esp - 0x30u; /* 0x2B04FA2F: sub esp, 0x30 */ 35958 _flag_k = FK_CMP; 35959 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA32: mov dword ptr [ebp - 0x18], esp */ 35960 ebx = esp; /* 0x2B04FA35: mov ebx, esp */ 35961 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 35962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35963 esp = esp - 0x30u; /* 0x2B04FA37: sub esp, 0x30 */ 35964 _flag_k = FK_CMP; 35965 edx = edi + (-0x30); /* 0x2B04FA3A: lea edx, [edi - 0x30] */ 35966 ecx = esp; /* 0x2B04FA3D: mov ecx, esp */ 35967 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA3F: mov dword ptr [ebp - 0x18], esp */ 35968 PUSH32(esp, edx); /* 0x2B04FA42: push edx */ 35969 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA43: call 0x2b053940 */ /* not lifted */ 35970 RECOMP_FLAGS_IN(); 35971 ecx = edi; /* 0x2B04FA48: mov ecx, edi */ 35972 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 35973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35974 ecx = ecx - esi; /* 0x2B04FA4A: sub ecx, esi */ 35975 _flag_k = FK_CMP; 35976 eax = 0x2AAAAAABu; /* 0x2B04FA4C: mov eax, 0x2aaaaaab */ 35977 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA51: imul ecx */ 35978 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 35979 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 35980 eax = edx; /* 0x2B04FA53: mov eax, edx */ 35981 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B04FA55: sar eax, 3 */ 35982 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35983 eax = (uint32_t)((int32_t)eax >> 3u); 35984 ecx = eax; /* 0x2B04FA58: mov ecx, eax */ 35985 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FA5A: shr ecx, 0x1f */ 35986 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35987 ecx = ecx >> 31u; /* 0x2B04FA5A: shr ecx, 0x1f */ 35988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 35989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35990 eax = eax + ecx; /* 0x2B04FA5D: add eax, ecx */ 35991 _flag_k = FK_ADD; 35992 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B04FA5F: cdq */ 35993 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 35994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 35995 eax = eax - edx; /* 0x2B04FA60: sub eax, edx */ 35996 _flag_k = FK_CMP; 35997 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B04FA62: sar eax, 1 */ 35998 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 35999 eax = (uint32_t)((int32_t)eax >> 1u); 36000 edx = eax + eax * 2; /* 0x2B04FA64: lea edx, [eax + eax*2] */ 36001 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 36002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36003 esp = esp - 0x30u; /* 0x2B04FA67: sub esp, 0x30 */ 36004 _flag_k = FK_CMP; 36005 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B04FA6A: shl edx, 4 */ 36006 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36007 edx = edx << 4u; /* 0x2B04FA6A: shl edx, 4 */ 36008 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 36009 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36010 edx = edx + esi; /* 0x2B04FA6D: add edx, esi */ 36011 _flag_k = FK_ADD; 36012 ecx = esp; /* 0x2B04FA6F: mov ecx, esp */ 36013 MEM32(ebp + (-0x1C)) = esp; /* 0x2B04FA71: mov dword ptr [ebp - 0x1c], esp */ 36014 PUSH32(esp, edx); /* 0x2B04FA74: push edx */ 36015 MEM32(ebp + (-0x4)) = 1; /* 0x2B04FA75: mov dword ptr [ebp - 4], 1 */ 36016 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA7C: call 0x2b053940 */ /* not lifted */ 36017 RECOMP_FLAGS_IN(); 36018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 36019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36020 esp = esp - 0x30u; /* 0x2B04FA81: sub esp, 0x30 */ 36021 _flag_k = FK_CMP; 36022 ecx = esp; /* 0x2B04FA84: mov ecx, esp */ 36023 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FA86: mov dword ptr [ebp - 0x20], esp */ 36024 PUSH32(esp, esi); /* 0x2B04FA89: push esi */ 36025 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04FA8A: mov byte ptr [ebp - 4], 2 */ 36026 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA8E: call 0x2b053940 */ /* not lifted */ 36027 RECOMP_FLAGS_IN(); 36028 PUSH32(esp, ebx); /* 0x2B04FA93: push ebx */ 36029 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04FA94: mov dword ptr [ebp - 4], 0xffffffff */ 36030 RECOMP_ICALL(0x2B054620u); /* 0x2B04FA9B: call 0x2b054620 */ /* not lifted */ 36031 RECOMP_FLAGS_IN(); 36032 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 36033 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36034 esp = esp + 0x94u; /* 0x2B04FAA0: add esp, 0x94 */ 36035 _flag_k = FK_ADD; 36036 PUSH32(esp, edi); /* 0x2B04FAA6: push edi */ 36037 PUSH32(esp, esi); /* 0x2B04FAA7: push esi */ 36038 RECOMP_ICALL(0x2B054940u); /* 0x2B04FAA8: call 0x2b054940 */ /* not lifted */ 36039 RECOMP_FLAGS_IN(); 36040 ebx = eax; /* 0x2B04FAAD: mov ebx, eax */ 36041 ecx = edi; /* 0x2B04FAAF: mov ecx, edi */ 36042 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 36043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36044 ecx = ecx - ebx; /* 0x2B04FAB1: sub ecx, ebx */ 36045 _flag_k = FK_CMP; 36046 eax = 0x2AAAAAABu; /* 0x2B04FAB3: mov eax, 0x2aaaaaab */ 36047 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FAB8: imul ecx */ 36048 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 36049 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 36050 ecx = edx; /* 0x2B04FABA: mov ecx, edx */ 36051 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B04FABC: sar ecx, 3 */ 36052 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36053 ecx = (uint32_t)((int32_t)ecx >> 3u); 36054 eax = ecx; /* 0x2B04FABF: mov eax, ecx */ 36055 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAC1: shr eax, 0x1f */ 36056 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36057 eax = eax >> 31u; /* 0x2B04FAC1: shr eax, 0x1f */ 36058 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 36059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36060 ecx = ecx + eax; /* 0x2B04FAC4: add ecx, eax */ 36061 _flag_k = FK_ADD; 36062 edx = ebx; /* 0x2B04FAC6: mov edx, ebx */ 36063 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 36064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36065 edx = edx - esi; /* 0x2B04FAC8: sub edx, esi */ 36066 _flag_k = FK_CMP; 36067 eax = 0x2AAAAAABu; /* 0x2B04FACA: mov eax, 0x2aaaaaab */ 36068 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B04FACF: imul edx */ 36069 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 36070 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 36071 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FAD1: sar edx, 3 */ 36072 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36073 edx = (uint32_t)((int32_t)edx >> 3u); 36074 eax = edx; /* 0x2B04FAD4: mov eax, edx */ 36075 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAD6: shr eax, 0x1f */ 36076 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36077 eax = eax >> 31u; /* 0x2B04FAD6: shr eax, 0x1f */ 36078 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 36079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36080 esp = esp + 0x38u; /* 0x2B04FAD9: add esp, 0x38 */ 36081 _flag_k = FK_ADD; 36082 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 36083 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36084 edx = edx + eax; /* 0x2B04FADC: add edx, eax */ 36085 _flag_k = FK_ADD; 36086 /* cmp ecx, edx */ /* 0x2B04FADE: cmp ecx, edx */ 36087 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 36088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36089 _flag_k = FK_CMP; 36090 PUSH32(esp, 0); /* 0x2B04FAE0: push 0 */ 36091 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FAF2; /* 0x2B04FAE2: jg 0x2b04faf2 */ 36092 L_2B04FAE4: 36093 PUSH32(esp, edi); /* 0x2B04FAE4: push edi */ 36094 PUSH32(esp, ebx); /* 0x2B04FAE5: push ebx */ 36095 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAE6: call 0x2b053e60 */ /* not lifted */ 36096 RECOMP_FLAGS_IN(); 36097 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 36098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36099 esp = esp + 0xCu; /* 0x2B04FAEB: add esp, 0xc */ 36100 _flag_k = FK_ADD; 36101 edi = ebx; /* 0x2B04FAEE: mov edi, ebx */ 36102 goto L_2B04FAFE; /* 0x2B04FAF0: jmp 0x2b04fafe */ 36103 L_2B04FAF2: 36104 PUSH32(esp, ebx); /* 0x2B04FAF2: push ebx */ 36105 PUSH32(esp, esi); /* 0x2B04FAF3: push esi */ 36106 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAF4: call 0x2b053e60 */ /* not lifted */ 36107 RECOMP_FLAGS_IN(); 36108 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 36109 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36110 esp = esp + 0xCu; /* 0x2B04FAF9: add esp, 0xc */ 36111 _flag_k = FK_ADD; 36112 esi = ebx; /* 0x2B04FAFC: mov esi, ebx */ 36113 L_2B04FAFE: 36114 ecx = edi; /* 0x2B04FAFE: mov ecx, edi */ 36115 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 36116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36117 ecx = ecx - esi; /* 0x2B04FB00: sub ecx, esi */ 36118 _flag_k = FK_CMP; 36119 eax = 0x2AAAAAABu; /* 0x2B04FB02: mov eax, 0x2aaaaaab */ 36120 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FB07: imul ecx */ 36121 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 36122 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 36123 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FB09: sar edx, 3 */ 36124 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36125 edx = (uint32_t)((int32_t)edx >> 3u); 36126 ecx = edx; /* 0x2B04FB0C: mov ecx, edx */ 36127 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FB0E: shr ecx, 0x1f */ 36128 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36129 ecx = ecx >> 31u; /* 0x2B04FB0E: shr ecx, 0x1f */ 36130 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 36131 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36132 edx = edx + ecx; /* 0x2B04FB11: add edx, ecx */ 36133 _flag_k = FK_ADD; 36134 /* cmp edx, 0x10u */ /* 0x2B04FB13: cmp edx, 0x10 */ 36135 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 36136 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36137 _flag_k = FK_CMP; 36138 RECOMP_BACKEDGE(); 36139 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FB16: jg 0x2b04fa2f */ 36140 L_2B04FB1C: 36141 esi = MEM32(ebp + (-0x14)); /* 0x2B04FB1C: mov esi, dword ptr [ebp - 0x14] */ 36142 PUSH32(esp, 0); /* 0x2B04FB1F: push 0 */ 36143 ebx = esi + 0x300; /* 0x2B04FB21: lea ebx, [esi + 0x300] */ 36144 PUSH32(esp, ebx); /* 0x2B04FB27: push ebx */ 36145 PUSH32(esp, esi); /* 0x2B04FB28: push esi */ 36146 RECOMP_ICALL(0x2B054410u); /* 0x2B04FB29: call 0x2b054410 */ /* not lifted */ 36147 RECOMP_FLAGS_IN(); 36148 eax = MEM32(ebp + 0x8); /* 0x2B04FB2E: mov eax, dword ptr [ebp + 8] */ 36149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 36150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36151 esp = esp + 0xCu; /* 0x2B04FB31: add esp, 0xc */ 36152 _flag_k = FK_ADD; 36153 /* cmp ebx, eax */ /* 0x2B04FB34: cmp ebx, eax */ 36154 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 36155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36156 _flag_k = FK_CMP; 36157 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FBB4; /* 0x2B04FB36: je 0x2b04fbb4 */ 36158 L_2B04FB38: 36159 esi = ebx + 0x8; /* 0x2B04FB38: lea esi, [ebx + 8] */ 36160 L_2B04FB3B: 36161 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 36162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36163 esp = esp - 0x30u; /* 0x2B04FB3B: sub esp, 0x30 */ 36164 _flag_k = FK_CMP; 36165 edi = esp; /* 0x2B04FB3E: mov edi, esp */ 36166 /* cmp edi, ebx */ /* 0x2B04FB40: cmp edi, ebx */ 36167 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 36168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36169 _flag_k = FK_CMP; 36170 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FB42: mov dword ptr [ebp - 0x20], esp */ 36171 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FB51; /* 0x2B04FB45: je 0x2b04fb51 */ 36172 L_2B04FB47: 36173 edx = MEM32(ebx); /* 0x2B04FB47: mov edx, dword ptr [ebx] */ 36174 MEM32(edi) = edx; /* 0x2B04FB49: mov dword ptr [edi], edx */ 36175 eax = MEM32(esi + (-0x4)); /* 0x2B04FB4B: mov eax, dword ptr [esi - 4] */ 36176 MEM32(edi + 0x4) = eax; /* 0x2B04FB4E: mov dword ptr [edi + 4], eax */ 36177 L_2B04FB51: 36178 SET_LO8(edx, MEM8(esi)); /* 0x2B04FB51: mov dl, byte ptr [esi] */ 36179 ecx = edi + 0x8; /* 0x2B04FB53: lea ecx, [edi + 8] */ 36180 PUSH32(esp, 0); /* 0x2B04FB56: push 0 */ 36181 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2B04FB58: mov byte ptr [ecx], dl */ 36182 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04FB5A: call dword ptr [0x2b0b514c] */ 36183 RECOMP_FLAGS_IN(); 36184 eax = MEM32(0x2B0B515C); /* 0x2B04FB60: mov eax, dword ptr [0x2b0b515c] */ 36185 ecx = MEM32(eax); /* 0x2B04FB65: mov ecx, dword ptr [eax] */ 36186 PUSH32(esp, ecx); /* 0x2B04FB67: push ecx */ 36187 PUSH32(esp, 0); /* 0x2B04FB68: push 0 */ 36188 PUSH32(esp, esi); /* 0x2B04FB6A: push esi */ 36189 ecx = edi + 0x8; /* 0x2B04FB6B: lea ecx, [edi + 8] */ 36190 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04FB6E: call dword ptr [0x2b0b5158] */ 36191 RECOMP_FLAGS_IN(); 36192 edx = MEM32(esi + 0x10); /* 0x2B04FB74: mov edx, dword ptr [esi + 0x10] */ 36193 MEM32(edi + 0x18) = edx; /* 0x2B04FB77: mov dword ptr [edi + 0x18], edx */ 36194 eax = MEM32(esi + 0x14); /* 0x2B04FB7A: mov eax, dword ptr [esi + 0x14] */ 36195 MEM32(edi + 0x1C) = eax; /* 0x2B04FB7D: mov dword ptr [edi + 0x1c], eax */ 36196 ecx = MEM32(esi + 0x18); /* 0x2B04FB80: mov ecx, dword ptr [esi + 0x18] */ 36197 MEM32(edi + 0x20) = ecx; /* 0x2B04FB83: mov dword ptr [edi + 0x20], ecx */ 36198 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x2B04FB86: mov dl, byte ptr [esi + 0x1c] */ 36199 MEM8(edi + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B04FB89: mov byte ptr [edi + 0x24], dl */ 36200 eax = MEM32(esi + 0x20); /* 0x2B04FB8C: mov eax, dword ptr [esi + 0x20] */ 36201 MEM32(edi + 0x28) = eax; /* 0x2B04FB8F: mov dword ptr [edi + 0x28], eax */ 36202 SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x2B04FB92: mov cl, byte ptr [esi + 0x24] */ 36203 MEM8(edi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x2B04FB95: mov byte ptr [edi + 0x2c], cl */ 36204 SET_LO8(edx, MEM8(esi + 0x25)); /* 0x2B04FB98: mov dl, byte ptr [esi + 0x25] */ 36205 PUSH32(esp, ebx); /* 0x2B04FB9B: push ebx */ 36206 MEM8(edi + 0x2D) = (uint8_t)(LO8(edx)); /* 0x2B04FB9C: mov byte ptr [edi + 0x2d], dl */ 36207 RECOMP_ICALL(0x2B053F90u); /* 0x2B04FB9F: call 0x2b053f90 */ /* not lifted */ 36208 RECOMP_FLAGS_IN(); 36209 eax = MEM32(ebp + 0x8); /* 0x2B04FBA4: mov eax, dword ptr [ebp + 8] */ 36210 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 36211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36212 ebx = ebx + 0x30u; /* 0x2B04FBA7: add ebx, 0x30 */ 36213 _flag_k = FK_ADD; 36214 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 36215 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36216 esp = esp + 0x34u; /* 0x2B04FBAA: add esp, 0x34 */ 36217 _flag_k = FK_ADD; 36218 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36219 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36220 esi = esi + 0x30u; /* 0x2B04FBAD: add esi, 0x30 */ 36221 _flag_k = FK_ADD; 36222 /* cmp ebx, eax */ /* 0x2B04FBB0: cmp ebx, eax */ 36223 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 36224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36225 _flag_k = FK_CMP; 36226 RECOMP_BACKEDGE(); 36227 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FB3B; /* 0x2B04FBB2: jne 0x2b04fb3b */ 36228 L_2B04FBB4: 36229 esi = MEM32(ebp + (-0x10)); /* 0x2B04FBB4: mov esi, dword ptr [ebp - 0x10] */ 36230 ecx = esi; /* 0x2B04FBB7: mov ecx, esi */ 36231 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FBB9: call 0x2b0510b0 */ /* not lifted */ 36232 RECOMP_FLAGS_IN(); 36233 ecx = esi; /* 0x2B04FBBE: mov ecx, esi */ 36234 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FBC0: call 0x2b03a2b0 */ /* not lifted */ 36235 RECOMP_FLAGS_IN(); 36236 eax = MEM32(0x2B0E7E34); /* 0x2B04FBC5: mov eax, dword ptr [0x2b0e7e34] */ 36237 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FBCA: mov ecx, dword ptr [ebp - 0xc] */ 36238 edi = POP32_VAL(esp); /* 0x2B04FBCD: pop edi */ 36239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 36240 eax = eax + 1; /* 0x2B04FBCE: inc eax */ 36241 _flag_k = FK_INC; 36242 esi = POP32_VAL(esp); /* 0x2B04FBCF: pop esi */ 36243 MEM32(0x2B0E7E34) = eax; /* 0x2B04FBD0: mov dword ptr [0x2b0e7e34], eax */ 36244 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FBD5: mov dword ptr fs:[0], ecx */ 36245 ebx = POP32_VAL(esp); /* 0x2B04FBDC: pop ebx */ 36246 esp = ebp; /* 0x2B04FBDD: mov esp, ebp */ 36247 ebp = POP32_VAL(esp); /* 0x2B04FBDF: pop ebp */ 36248 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04FBE0: ret 4 */ 36249 RECOMP_REGS_OUT(); 36250 } 36251 36252 void sub_2B04F8F4(void) { 36253 int _fpu_cmp = 0; 36254 uint32_t _cf = 0; 36255 int _df = 1; 36256 uint32_t _flag_k = FK_NONE; 36257 uint32_t _flag_a = 0, _flag_b = 0; 36258 uint32_t _itail_tgt = 0; 36259 RECOMP_REGS_LOCALS 36260 RECOMP_ENTER(0x2B04F8F4u); 36261 36262 goto L_2B04F8F4; 36263 L_2B04F825: 36264 eax = MEM32(ebp + (-0x10)); /* 0x2B04F825: mov eax, dword ptr [ebp - 0x10] */ 36265 eax = MEM32(eax + 0x100); /* 0x2B04F828: mov eax, dword ptr [eax + 0x100] */ 36266 esi = MEM32(eax + 0x4); /* 0x2B04F82E: mov esi, dword ptr [eax + 4] */ 36267 eax = MEM32(eax + 0x8); /* 0x2B04F831: mov eax, dword ptr [eax + 8] */ 36268 /* cmp esi, eax */ /* 0x2B04F834: cmp esi, eax */ 36269 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36271 _flag_k = FK_CMP; 36272 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F84A; /* 0x2B04F836: je 0x2b04f84a */ 36273 L_2B04F838: 36274 ecx = MEM32(ebx); /* 0x2B04F838: mov ecx, dword ptr [ebx] */ 36275 L_2B04F83A: 36276 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B04F83A: cmp ecx, dword ptr [esi + 4] */ 36277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 36278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36279 _flag_k = FK_CMP; 36280 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F995; /* 0x2B04F83D: je 0x2b04f995 */ 36281 L_2B04F843: 36282 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36284 esi = esi + 0x30u; /* 0x2B04F843: add esi, 0x30 */ 36285 _flag_k = FK_ADD; 36286 /* cmp esi, eax */ /* 0x2B04F846: cmp esi, eax */ 36287 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36289 _flag_k = FK_CMP; 36290 RECOMP_BACKEDGE(); 36291 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F83A; /* 0x2B04F848: jne 0x2b04f83a */ 36292 L_2B04F84A: 36293 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04F84A: mov al, byte ptr [ebp + 0xb] */ 36294 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 36295 esi = 0; /* 0x2B04F84D: xor esi, esi */ 36296 _cf = 0; 36297 _flag_k = FK_TEST; 36298 PUSH32(esp, esi); /* 0x2B04F84F: push esi */ 36299 ecx = ebp + (-0x48); /* 0x2B04F850: lea ecx, [ebp - 0x48] */ 36300 MEM32(ebp + (-0x50)) = esi; /* 0x2B04F853: mov dword ptr [ebp - 0x50], esi */ 36301 MEM32(ebp + (-0x4C)) = esi; /* 0x2B04F856: mov dword ptr [ebp - 0x4c], esi */ 36302 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(eax)); /* 0x2B04F859: mov byte ptr [ebp - 0x48], al */ 36303 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F85C: call dword ptr [0x2b0b514c] */ 36304 RECOMP_FLAGS_IN(); 36305 MEM8(ebp + (-0x2C)) = (uint8_t)(0); /* 0x2B04F862: mov byte ptr [ebp - 0x2c], 0 */ 36306 MEM32(ebp + (-0x28)) = esi; /* 0x2B04F866: mov dword ptr [ebp - 0x28], esi */ 36307 MEM8(ebp + (-0x24)) = (uint8_t)(0); /* 0x2B04F869: mov byte ptr [ebp - 0x24], 0 */ 36308 eax = MEM32(ebx); /* 0x2B04F86D: mov eax, dword ptr [ebx] */ 36309 ecx = 0xC350u; /* 0x2B04F86F: mov ecx, 0xc350 */ 36310 MEM32(ebp + (-0x50)) = ecx; /* 0x2B04F874: mov dword ptr [ebp - 0x50], ecx */ 36311 ecx = MEM32(0x2B0B515C); /* 0x2B04F877: mov ecx, dword ptr [0x2b0b515c] */ 36312 MEM32(ebp + (-0x4C)) = eax; /* 0x2B04F87D: mov dword ptr [ebp - 0x4c], eax */ 36313 MEM32(ebp + (-0x38)) = esi; /* 0x2B04F880: mov dword ptr [ebp - 0x38], esi */ 36314 edx = MEM32(ecx); /* 0x2B04F883: mov edx, dword ptr [ecx] */ 36315 PUSH32(esp, edx); /* 0x2B04F885: push edx */ 36316 PUSH32(esp, esi); /* 0x2B04F886: push esi */ 36317 eax = edi + (-0x18); /* 0x2B04F887: lea eax, [edi - 0x18] */ 36318 PUSH32(esp, eax); /* 0x2B04F88A: push eax */ 36319 ecx = ebp + (-0x48); /* 0x2B04F88B: lea ecx, [ebp - 0x48] */ 36320 MEM32(ebp + (-0x4)) = esi; /* 0x2B04F88E: mov dword ptr [ebp - 4], esi */ 36321 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04F891: call dword ptr [0x2b0b5158] */ 36322 RECOMP_FLAGS_IN(); 36323 eax = MEM32(edi); /* 0x2B04F897: mov eax, dword ptr [edi] */ 36324 /* cmp eax, esi */ /* 0x2B04F899: cmp eax, esi */ 36325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 36326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36327 _flag_k = FK_CMP; 36328 ecx = MEM32(edi + (-0x8)); /* 0x2B04F89B: mov ecx, dword ptr [edi - 8] */ 36329 edx = MEM32(0x2B0E7E34); /* 0x2B04F89E: mov edx, dword ptr [0x2b0e7e34] */ 36330 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04F8A4: mov dword ptr [ebp - 0x34], ecx */ 36331 MEM8(ebp + (-0x24)) = (uint8_t)(0); /* 0x2B04F8A7: mov byte ptr [ebp - 0x24], 0 */ 36332 MEM32(ebp + (-0x30)) = esi; /* 0x2B04F8AB: mov dword ptr [ebp - 0x30], esi */ 36333 MEM8(ebp + (-0x2C)) = (uint8_t)(0); /* 0x2B04F8AE: mov byte ptr [ebp - 0x2c], 0 */ 36334 MEM8(ebp + (-0x23)) = (uint8_t)(1); /* 0x2B04F8B2: mov byte ptr [ebp - 0x23], 1 */ 36335 MEM32(ebp + (-0x28)) = edx; /* 0x2B04F8B6: mov dword ptr [ebp - 0x28], edx */ 36336 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F8CA; /* 0x2B04F8B9: je 0x2b04f8ca */ 36337 L_2B04F8BB: 36338 ecx = MEM32(edi + 0x4); /* 0x2B04F8BB: mov ecx, dword ptr [edi + 4] */ 36339 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 36340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36341 ecx = ecx - eax; /* 0x2B04F8BE: sub ecx, eax */ 36342 _flag_k = FK_CMP; 36343 /* cmp ecx, 1 */ /* 0x2B04F8C0: cmp ecx, 1 */ 36344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 36345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36346 _flag_k = FK_CMP; 36347 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F8CA; /* 0x2B04F8C3: jne 0x2b04f8ca */ 36348 L_2B04F8C5: 36349 SET_LO8(edx, MEM8(eax)); /* 0x2B04F8C5: mov dl, byte ptr [eax] */ 36350 MEM8(ebp + (-0x23)) = (uint8_t)(LO8(edx)); /* 0x2B04F8C7: mov byte ptr [ebp - 0x23], dl */ 36351 L_2B04F8CA: 36352 eax = MEM32(ebp + (-0x10)); /* 0x2B04F8CA: mov eax, dword ptr [ebp - 0x10] */ 36353 ecx = MEM32(eax + 0x100); /* 0x2B04F8CD: mov ecx, dword ptr [eax + 0x100] */ 36354 eax = MEM32(ecx + 0x8); /* 0x2B04F8D3: mov eax, dword ptr [ecx + 8] */ 36355 edx = ebp + (-0x50); /* 0x2B04F8D6: lea edx, [ebp - 0x50] */ 36356 PUSH32(esp, edx); /* 0x2B04F8D9: push edx */ 36357 PUSH32(esp, 1); /* 0x2B04F8DA: push 1 */ 36358 PUSH32(esp, eax); /* 0x2B04F8DC: push eax */ 36359 RECOMP_ICALL(0x2B052680u); /* 0x2B04F8DD: call 0x2b052680 */ /* not lifted */ 36360 RECOMP_FLAGS_IN(); 36361 PUSH32(esp, 1); /* 0x2B04F8E2: push 1 */ 36362 ecx = ebp + (-0x48); /* 0x2B04F8E4: lea ecx, [ebp - 0x48] */ 36363 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F8E7: mov dword ptr [ebp - 4], 0xffffffff */ 36364 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F8EE: call dword ptr [0x2b0b514c] */ 36365 RECOMP_FLAGS_IN(); 36366 L_2B04F8F4: 36367 eax = MEM32(ebp + 0x8); /* 0x2B04F8F4: mov eax, dword ptr [ebp + 8] */ 36368 ecx = MEM32(eax + 0x8); /* 0x2B04F8F7: mov ecx, dword ptr [eax + 8] */ 36369 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x28u); 36370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36371 ebx = ebx + 0x28u; /* 0x2B04F8FA: add ebx, 0x28 */ 36372 _flag_k = FK_ADD; 36373 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 36374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36375 edi = edi + 0x28u; /* 0x2B04F8FD: add edi, 0x28 */ 36376 _flag_k = FK_ADD; 36377 /* cmp ebx, ecx */ /* 0x2B04F900: cmp ebx, ecx */ 36378 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 36379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36380 _flag_k = FK_CMP; 36381 RECOMP_BACKEDGE(); 36382 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F825; /* 0x2B04F902: jne 0x2b04f825 */ 36383 L_2B04F908: 36384 eax = MEM32(ebp + (-0x10)); /* 0x2B04F908: mov eax, dword ptr [ebp - 0x10] */ 36385 ebx = MEM32(eax + 0x100); /* 0x2B04F90B: mov ebx, dword ptr [eax + 0x100] */ 36386 esi = MEM32(ebx + 0x4); /* 0x2B04F911: mov esi, dword ptr [ebx + 4] */ 36387 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F914: cmp esi, dword ptr [ebx + 8] */ 36388 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 36389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36390 _flag_k = FK_CMP; 36391 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9F2; /* 0x2B04F917: je 0x2b04f9f2 */ 36392 L_2B04F91D: 36393 ecx = MEM32(esi + 0x18); /* 0x2B04F91D: mov ecx, dword ptr [esi + 0x18] */ 36394 /* test ecx, ecx */ /* 0x2B04F920: test ecx, ecx */ 36395 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 36396 _cf = 0; 36397 _flag_k = FK_TEST; 36398 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F922: jne 0x2b04f9e6 */ 36399 L_2B04F928: 36400 ecx = MEM32(esi + 0x28); /* 0x2B04F928: mov ecx, dword ptr [esi + 0x28] */ 36401 /* cmp ecx, MEM32(0x2B0E7E34) */ /* 0x2B04F92B: cmp ecx, dword ptr [0x2b0e7e34] */ 36402 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x2B0E7E34)); 36403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36404 _flag_k = FK_CMP; 36405 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F931: je 0x2b04f9e6 */ 36406 L_2B04F937: 36407 eax = MEM32(ebx + 0x8); /* 0x2B04F937: mov eax, dword ptr [ebx + 8] */ 36408 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36409 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36410 esi = esi + 0x30u; /* 0x2B04F93A: add esi, 0x30 */ 36411 _flag_k = FK_ADD; 36412 /* cmp esi, eax */ /* 0x2B04F93D: cmp esi, eax */ 36413 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36415 _flag_k = FK_CMP; 36416 MEM32(ebp + 0x8) = eax; /* 0x2B04F93F: mov dword ptr [ebp + 8], eax */ 36417 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F95C; /* 0x2B04F942: je 0x2b04f95c */ 36418 L_2B04F944: 36419 edi = esi + (-0x30); /* 0x2B04F944: lea edi, [esi - 0x30] */ 36420 L_2B04F947: 36421 PUSH32(esp, esi); /* 0x2B04F947: push esi */ 36422 ecx = edi; /* 0x2B04F948: mov ecx, edi */ 36423 RECOMP_ICALL(0x2B053640u); /* 0x2B04F94A: call 0x2b053640 */ /* not lifted */ 36424 RECOMP_FLAGS_IN(); 36425 eax = MEM32(ebp + 0x8); /* 0x2B04F94F: mov eax, dword ptr [ebp + 8] */ 36426 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36428 esi = esi + 0x30u; /* 0x2B04F952: add esi, 0x30 */ 36429 _flag_k = FK_ADD; 36430 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 36431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36432 edi = edi + 0x30u; /* 0x2B04F955: add edi, 0x30 */ 36433 _flag_k = FK_ADD; 36434 /* cmp esi, eax */ /* 0x2B04F958: cmp esi, eax */ 36435 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36437 _flag_k = FK_CMP; 36438 RECOMP_BACKEDGE(); 36439 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F947; /* 0x2B04F95A: jne 0x2b04f947 */ 36440 L_2B04F95C: 36441 eax = MEM32(ebx + 0x8); /* 0x2B04F95C: mov eax, dword ptr [ebx + 8] */ 36442 esi = eax + (-0x30); /* 0x2B04F95F: lea esi, [eax - 0x30] */ 36443 /* cmp esi, eax */ /* 0x2B04F962: cmp esi, eax */ 36444 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36446 _flag_k = FK_CMP; 36447 MEM32(ebp + 0x8) = eax; /* 0x2B04F964: mov dword ptr [ebp + 8], eax */ 36448 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F983; /* 0x2B04F967: je 0x2b04f983 */ 36449 L_2B04F969: 36450 edi = esi + 0x8; /* 0x2B04F969: lea edi, [esi + 8] */ 36451 L_2B04F96C: 36452 PUSH32(esp, 1); /* 0x2B04F96C: push 1 */ 36453 ecx = edi; /* 0x2B04F96E: mov ecx, edi */ 36454 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F970: call dword ptr [0x2b0b514c] */ 36455 RECOMP_FLAGS_IN(); 36456 eax = MEM32(ebp + 0x8); /* 0x2B04F976: mov eax, dword ptr [ebp + 8] */ 36457 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36459 esi = esi + 0x30u; /* 0x2B04F979: add esi, 0x30 */ 36460 _flag_k = FK_ADD; 36461 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 36462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36463 edi = edi + 0x30u; /* 0x2B04F97C: add edi, 0x30 */ 36464 _flag_k = FK_ADD; 36465 /* cmp esi, eax */ /* 0x2B04F97F: cmp esi, eax */ 36466 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36468 _flag_k = FK_CMP; 36469 RECOMP_BACKEDGE(); 36470 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F96C; /* 0x2B04F981: jne 0x2b04f96c */ 36471 L_2B04F983: 36472 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0xFFFFFFD0u); 36473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36474 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0xFFFFFFD0u; /* 0x2B04F983: add dword ptr [ebx + 8], -0x30 */ 36475 _flag_k = FK_ADD; 36476 eax = MEM32(ebp + (-0x10)); /* 0x2B04F987: mov eax, dword ptr [ebp - 0x10] */ 36477 ebx = MEM32(eax + 0x100); /* 0x2B04F98A: mov ebx, dword ptr [eax + 0x100] */ 36478 esi = MEM32(ebx + 0x4); /* 0x2B04F990: mov esi, dword ptr [ebx + 4] */ 36479 goto L_2B04F9E9; /* 0x2B04F993: jmp 0x2b04f9e9 */ 36480 L_2B04F995: 36481 ecx = MEM32(0x2B0B515C); /* 0x2B04F995: mov ecx, dword ptr [0x2b0b515c] */ 36482 edx = MEM32(ecx); /* 0x2B04F99B: mov edx, dword ptr [ecx] */ 36483 PUSH32(esp, edx); /* 0x2B04F99D: push edx */ 36484 PUSH32(esp, 0); /* 0x2B04F99E: push 0 */ 36485 eax = edi + (-0x18); /* 0x2B04F9A0: lea eax, [edi - 0x18] */ 36486 PUSH32(esp, eax); /* 0x2B04F9A3: push eax */ 36487 ecx = esi + 0x8; /* 0x2B04F9A4: lea ecx, [esi + 8] */ 36488 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04F9A7: call dword ptr [0x2b0b5158] */ 36489 RECOMP_FLAGS_IN(); 36490 ecx = MEM32(edi + (-0x8)); /* 0x2B04F9AD: mov ecx, dword ptr [edi - 8] */ 36491 MEM32(esi + 0x1C) = ecx; /* 0x2B04F9B0: mov dword ptr [esi + 0x1c], ecx */ 36492 edx = MEM32(0x2B0E7E34); /* 0x2B04F9B3: mov edx, dword ptr [0x2b0e7e34] */ 36493 MEM32(esi + 0x28) = edx; /* 0x2B04F9B9: mov dword ptr [esi + 0x28], edx */ 36494 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Du); 36495 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36496 esi = esi + 0x2Du; /* 0x2B04F9BC: add esi, 0x2d */ 36497 _flag_k = FK_ADD; 36498 MEM8(esi) = (uint8_t)(0); /* 0x2B04F9BF: mov byte ptr [esi], 0 */ 36499 MEM8(esi) = (uint8_t)(1); /* 0x2B04F9C2: mov byte ptr [esi], 1 */ 36500 eax = MEM32(edi); /* 0x2B04F9C5: mov eax, dword ptr [edi] */ 36501 /* test eax, eax */ /* 0x2B04F9C7: test eax, eax */ 36502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 36503 _cf = 0; 36504 _flag_k = FK_TEST; 36505 RECOMP_BACKEDGE(); 36506 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F8F4; /* 0x2B04F9C9: je 0x2b04f8f4 */ 36507 L_2B04F9CF: 36508 ecx = MEM32(edi + 0x4); /* 0x2B04F9CF: mov ecx, dword ptr [edi + 4] */ 36509 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 36510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36511 ecx = ecx - eax; /* 0x2B04F9D2: sub ecx, eax */ 36512 _flag_k = FK_CMP; 36513 /* cmp ecx, 1 */ /* 0x2B04F9D4: cmp ecx, 1 */ 36514 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 36515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36516 _flag_k = FK_CMP; 36517 RECOMP_BACKEDGE(); 36518 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F8F4; /* 0x2B04F9D7: jne 0x2b04f8f4 */ 36519 L_2B04F9DD: 36520 SET_LO8(edx, MEM8(eax)); /* 0x2B04F9DD: mov dl, byte ptr [eax] */ 36521 MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x2B04F9DF: mov byte ptr [esi], dl */ 36522 RECOMP_BACKEDGE(); 36523 goto L_2B04F8F4; /* 0x2B04F9E1: jmp 0x2b04f8f4 */ 36524 L_2B04F9E6: 36525 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36527 esi = esi + 0x30u; /* 0x2B04F9E6: add esi, 0x30 */ 36528 _flag_k = FK_ADD; 36529 L_2B04F9E9: 36530 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F9E9: cmp esi, dword ptr [ebx + 8] */ 36531 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 36532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36533 _flag_k = FK_CMP; 36534 RECOMP_BACKEDGE(); 36535 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F91D; /* 0x2B04F9EC: jne 0x2b04f91d */ 36536 L_2B04F9F2: 36537 eax = MEM32(eax + 0x100); /* 0x2B04F9F2: mov eax, dword ptr [eax + 0x100] */ 36538 edi = MEM32(eax + 0x8); /* 0x2B04F9F8: mov edi, dword ptr [eax + 8] */ 36539 esi = MEM32(eax + 0x4); /* 0x2B04F9FB: mov esi, dword ptr [eax + 4] */ 36540 ecx = edi; /* 0x2B04F9FE: mov ecx, edi */ 36541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 36542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36543 ecx = ecx - esi; /* 0x2B04FA00: sub ecx, esi */ 36544 _flag_k = FK_CMP; 36545 eax = 0x2AAAAAABu; /* 0x2B04FA02: mov eax, 0x2aaaaaab */ 36546 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA07: imul ecx */ 36547 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 36548 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 36549 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FA09: sar edx, 3 */ 36550 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36551 edx = (uint32_t)((int32_t)edx >> 3u); 36552 eax = edx; /* 0x2B04FA0C: mov eax, edx */ 36553 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FA0E: shr eax, 0x1f */ 36554 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36555 eax = eax >> 31u; /* 0x2B04FA0E: shr eax, 0x1f */ 36556 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 36557 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36558 edx = edx + eax; /* 0x2B04FA11: add edx, eax */ 36559 _flag_k = FK_ADD; 36560 /* cmp edx, 0x10u */ /* 0x2B04FA13: cmp edx, 0x10 */ 36561 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 36562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36563 _flag_k = FK_CMP; 36564 MEM32(ebp + 0x8) = edi; /* 0x2B04FA16: mov dword ptr [ebp + 8], edi */ 36565 MEM32(ebp + (-0x14)) = esi; /* 0x2B04FA19: mov dword ptr [ebp - 0x14], esi */ 36566 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FA1C: jg 0x2b04fa2f */ 36567 L_2B04FA1E: 36568 PUSH32(esp, 0); /* 0x2B04FA1E: push 0 */ 36569 PUSH32(esp, edi); /* 0x2B04FA20: push edi */ 36570 PUSH32(esp, esi); /* 0x2B04FA21: push esi */ 36571 RECOMP_ICALL(0x2B054410u); /* 0x2B04FA22: call 0x2b054410 */ /* not lifted */ 36572 RECOMP_FLAGS_IN(); 36573 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 36574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36575 esp = esp + 0xCu; /* 0x2B04FA27: add esp, 0xc */ 36576 _flag_k = FK_ADD; 36577 goto L_2B04FBB4; /* 0x2B04FA2A: jmp 0x2b04fbb4 */ 36578 L_2B04FA2F: 36579 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 36580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36581 esp = esp - 0x30u; /* 0x2B04FA2F: sub esp, 0x30 */ 36582 _flag_k = FK_CMP; 36583 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA32: mov dword ptr [ebp - 0x18], esp */ 36584 ebx = esp; /* 0x2B04FA35: mov ebx, esp */ 36585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 36586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36587 esp = esp - 0x30u; /* 0x2B04FA37: sub esp, 0x30 */ 36588 _flag_k = FK_CMP; 36589 edx = edi + (-0x30); /* 0x2B04FA3A: lea edx, [edi - 0x30] */ 36590 ecx = esp; /* 0x2B04FA3D: mov ecx, esp */ 36591 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA3F: mov dword ptr [ebp - 0x18], esp */ 36592 PUSH32(esp, edx); /* 0x2B04FA42: push edx */ 36593 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA43: call 0x2b053940 */ /* not lifted */ 36594 RECOMP_FLAGS_IN(); 36595 ecx = edi; /* 0x2B04FA48: mov ecx, edi */ 36596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 36597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36598 ecx = ecx - esi; /* 0x2B04FA4A: sub ecx, esi */ 36599 _flag_k = FK_CMP; 36600 eax = 0x2AAAAAABu; /* 0x2B04FA4C: mov eax, 0x2aaaaaab */ 36601 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA51: imul ecx */ 36602 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 36603 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 36604 eax = edx; /* 0x2B04FA53: mov eax, edx */ 36605 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B04FA55: sar eax, 3 */ 36606 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36607 eax = (uint32_t)((int32_t)eax >> 3u); 36608 ecx = eax; /* 0x2B04FA58: mov ecx, eax */ 36609 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FA5A: shr ecx, 0x1f */ 36610 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36611 ecx = ecx >> 31u; /* 0x2B04FA5A: shr ecx, 0x1f */ 36612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 36613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36614 eax = eax + ecx; /* 0x2B04FA5D: add eax, ecx */ 36615 _flag_k = FK_ADD; 36616 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B04FA5F: cdq */ 36617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 36618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36619 eax = eax - edx; /* 0x2B04FA60: sub eax, edx */ 36620 _flag_k = FK_CMP; 36621 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B04FA62: sar eax, 1 */ 36622 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36623 eax = (uint32_t)((int32_t)eax >> 1u); 36624 edx = eax + eax * 2; /* 0x2B04FA64: lea edx, [eax + eax*2] */ 36625 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 36626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36627 esp = esp - 0x30u; /* 0x2B04FA67: sub esp, 0x30 */ 36628 _flag_k = FK_CMP; 36629 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B04FA6A: shl edx, 4 */ 36630 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36631 edx = edx << 4u; /* 0x2B04FA6A: shl edx, 4 */ 36632 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 36633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36634 edx = edx + esi; /* 0x2B04FA6D: add edx, esi */ 36635 _flag_k = FK_ADD; 36636 ecx = esp; /* 0x2B04FA6F: mov ecx, esp */ 36637 MEM32(ebp + (-0x1C)) = esp; /* 0x2B04FA71: mov dword ptr [ebp - 0x1c], esp */ 36638 PUSH32(esp, edx); /* 0x2B04FA74: push edx */ 36639 MEM32(ebp + (-0x4)) = 1; /* 0x2B04FA75: mov dword ptr [ebp - 4], 1 */ 36640 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA7C: call 0x2b053940 */ /* not lifted */ 36641 RECOMP_FLAGS_IN(); 36642 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 36643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36644 esp = esp - 0x30u; /* 0x2B04FA81: sub esp, 0x30 */ 36645 _flag_k = FK_CMP; 36646 ecx = esp; /* 0x2B04FA84: mov ecx, esp */ 36647 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FA86: mov dword ptr [ebp - 0x20], esp */ 36648 PUSH32(esp, esi); /* 0x2B04FA89: push esi */ 36649 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04FA8A: mov byte ptr [ebp - 4], 2 */ 36650 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA8E: call 0x2b053940 */ /* not lifted */ 36651 RECOMP_FLAGS_IN(); 36652 PUSH32(esp, ebx); /* 0x2B04FA93: push ebx */ 36653 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04FA94: mov dword ptr [ebp - 4], 0xffffffff */ 36654 RECOMP_ICALL(0x2B054620u); /* 0x2B04FA9B: call 0x2b054620 */ /* not lifted */ 36655 RECOMP_FLAGS_IN(); 36656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 36657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36658 esp = esp + 0x94u; /* 0x2B04FAA0: add esp, 0x94 */ 36659 _flag_k = FK_ADD; 36660 PUSH32(esp, edi); /* 0x2B04FAA6: push edi */ 36661 PUSH32(esp, esi); /* 0x2B04FAA7: push esi */ 36662 RECOMP_ICALL(0x2B054940u); /* 0x2B04FAA8: call 0x2b054940 */ /* not lifted */ 36663 RECOMP_FLAGS_IN(); 36664 ebx = eax; /* 0x2B04FAAD: mov ebx, eax */ 36665 ecx = edi; /* 0x2B04FAAF: mov ecx, edi */ 36666 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 36667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36668 ecx = ecx - ebx; /* 0x2B04FAB1: sub ecx, ebx */ 36669 _flag_k = FK_CMP; 36670 eax = 0x2AAAAAABu; /* 0x2B04FAB3: mov eax, 0x2aaaaaab */ 36671 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FAB8: imul ecx */ 36672 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 36673 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 36674 ecx = edx; /* 0x2B04FABA: mov ecx, edx */ 36675 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B04FABC: sar ecx, 3 */ 36676 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36677 ecx = (uint32_t)((int32_t)ecx >> 3u); 36678 eax = ecx; /* 0x2B04FABF: mov eax, ecx */ 36679 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAC1: shr eax, 0x1f */ 36680 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36681 eax = eax >> 31u; /* 0x2B04FAC1: shr eax, 0x1f */ 36682 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 36683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36684 ecx = ecx + eax; /* 0x2B04FAC4: add ecx, eax */ 36685 _flag_k = FK_ADD; 36686 edx = ebx; /* 0x2B04FAC6: mov edx, ebx */ 36687 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 36688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36689 edx = edx - esi; /* 0x2B04FAC8: sub edx, esi */ 36690 _flag_k = FK_CMP; 36691 eax = 0x2AAAAAABu; /* 0x2B04FACA: mov eax, 0x2aaaaaab */ 36692 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B04FACF: imul edx */ 36693 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 36694 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 36695 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FAD1: sar edx, 3 */ 36696 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36697 edx = (uint32_t)((int32_t)edx >> 3u); 36698 eax = edx; /* 0x2B04FAD4: mov eax, edx */ 36699 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAD6: shr eax, 0x1f */ 36700 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36701 eax = eax >> 31u; /* 0x2B04FAD6: shr eax, 0x1f */ 36702 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 36703 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36704 esp = esp + 0x38u; /* 0x2B04FAD9: add esp, 0x38 */ 36705 _flag_k = FK_ADD; 36706 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 36707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36708 edx = edx + eax; /* 0x2B04FADC: add edx, eax */ 36709 _flag_k = FK_ADD; 36710 /* cmp ecx, edx */ /* 0x2B04FADE: cmp ecx, edx */ 36711 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 36712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36713 _flag_k = FK_CMP; 36714 PUSH32(esp, 0); /* 0x2B04FAE0: push 0 */ 36715 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FAF2; /* 0x2B04FAE2: jg 0x2b04faf2 */ 36716 L_2B04FAE4: 36717 PUSH32(esp, edi); /* 0x2B04FAE4: push edi */ 36718 PUSH32(esp, ebx); /* 0x2B04FAE5: push ebx */ 36719 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAE6: call 0x2b053e60 */ /* not lifted */ 36720 RECOMP_FLAGS_IN(); 36721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 36722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36723 esp = esp + 0xCu; /* 0x2B04FAEB: add esp, 0xc */ 36724 _flag_k = FK_ADD; 36725 edi = ebx; /* 0x2B04FAEE: mov edi, ebx */ 36726 goto L_2B04FAFE; /* 0x2B04FAF0: jmp 0x2b04fafe */ 36727 L_2B04FAF2: 36728 PUSH32(esp, ebx); /* 0x2B04FAF2: push ebx */ 36729 PUSH32(esp, esi); /* 0x2B04FAF3: push esi */ 36730 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAF4: call 0x2b053e60 */ /* not lifted */ 36731 RECOMP_FLAGS_IN(); 36732 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 36733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36734 esp = esp + 0xCu; /* 0x2B04FAF9: add esp, 0xc */ 36735 _flag_k = FK_ADD; 36736 esi = ebx; /* 0x2B04FAFC: mov esi, ebx */ 36737 L_2B04FAFE: 36738 ecx = edi; /* 0x2B04FAFE: mov ecx, edi */ 36739 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 36740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36741 ecx = ecx - esi; /* 0x2B04FB00: sub ecx, esi */ 36742 _flag_k = FK_CMP; 36743 eax = 0x2AAAAAABu; /* 0x2B04FB02: mov eax, 0x2aaaaaab */ 36744 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FB07: imul ecx */ 36745 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 36746 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 36747 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FB09: sar edx, 3 */ 36748 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36749 edx = (uint32_t)((int32_t)edx >> 3u); 36750 ecx = edx; /* 0x2B04FB0C: mov ecx, edx */ 36751 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FB0E: shr ecx, 0x1f */ 36752 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 36753 ecx = ecx >> 31u; /* 0x2B04FB0E: shr ecx, 0x1f */ 36754 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 36755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36756 edx = edx + ecx; /* 0x2B04FB11: add edx, ecx */ 36757 _flag_k = FK_ADD; 36758 /* cmp edx, 0x10u */ /* 0x2B04FB13: cmp edx, 0x10 */ 36759 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 36760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36761 _flag_k = FK_CMP; 36762 RECOMP_BACKEDGE(); 36763 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FB16: jg 0x2b04fa2f */ 36764 L_2B04FB1C: 36765 esi = MEM32(ebp + (-0x14)); /* 0x2B04FB1C: mov esi, dword ptr [ebp - 0x14] */ 36766 PUSH32(esp, 0); /* 0x2B04FB1F: push 0 */ 36767 ebx = esi + 0x300; /* 0x2B04FB21: lea ebx, [esi + 0x300] */ 36768 PUSH32(esp, ebx); /* 0x2B04FB27: push ebx */ 36769 PUSH32(esp, esi); /* 0x2B04FB28: push esi */ 36770 RECOMP_ICALL(0x2B054410u); /* 0x2B04FB29: call 0x2b054410 */ /* not lifted */ 36771 RECOMP_FLAGS_IN(); 36772 eax = MEM32(ebp + 0x8); /* 0x2B04FB2E: mov eax, dword ptr [ebp + 8] */ 36773 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 36774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36775 esp = esp + 0xCu; /* 0x2B04FB31: add esp, 0xc */ 36776 _flag_k = FK_ADD; 36777 /* cmp ebx, eax */ /* 0x2B04FB34: cmp ebx, eax */ 36778 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 36779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36780 _flag_k = FK_CMP; 36781 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FBB4; /* 0x2B04FB36: je 0x2b04fbb4 */ 36782 L_2B04FB38: 36783 esi = ebx + 0x8; /* 0x2B04FB38: lea esi, [ebx + 8] */ 36784 L_2B04FB3B: 36785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 36786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36787 esp = esp - 0x30u; /* 0x2B04FB3B: sub esp, 0x30 */ 36788 _flag_k = FK_CMP; 36789 edi = esp; /* 0x2B04FB3E: mov edi, esp */ 36790 /* cmp edi, ebx */ /* 0x2B04FB40: cmp edi, ebx */ 36791 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 36792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36793 _flag_k = FK_CMP; 36794 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FB42: mov dword ptr [ebp - 0x20], esp */ 36795 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FB51; /* 0x2B04FB45: je 0x2b04fb51 */ 36796 L_2B04FB47: 36797 edx = MEM32(ebx); /* 0x2B04FB47: mov edx, dword ptr [ebx] */ 36798 MEM32(edi) = edx; /* 0x2B04FB49: mov dword ptr [edi], edx */ 36799 eax = MEM32(esi + (-0x4)); /* 0x2B04FB4B: mov eax, dword ptr [esi - 4] */ 36800 MEM32(edi + 0x4) = eax; /* 0x2B04FB4E: mov dword ptr [edi + 4], eax */ 36801 L_2B04FB51: 36802 SET_LO8(edx, MEM8(esi)); /* 0x2B04FB51: mov dl, byte ptr [esi] */ 36803 ecx = edi + 0x8; /* 0x2B04FB53: lea ecx, [edi + 8] */ 36804 PUSH32(esp, 0); /* 0x2B04FB56: push 0 */ 36805 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2B04FB58: mov byte ptr [ecx], dl */ 36806 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04FB5A: call dword ptr [0x2b0b514c] */ 36807 RECOMP_FLAGS_IN(); 36808 eax = MEM32(0x2B0B515C); /* 0x2B04FB60: mov eax, dword ptr [0x2b0b515c] */ 36809 ecx = MEM32(eax); /* 0x2B04FB65: mov ecx, dword ptr [eax] */ 36810 PUSH32(esp, ecx); /* 0x2B04FB67: push ecx */ 36811 PUSH32(esp, 0); /* 0x2B04FB68: push 0 */ 36812 PUSH32(esp, esi); /* 0x2B04FB6A: push esi */ 36813 ecx = edi + 0x8; /* 0x2B04FB6B: lea ecx, [edi + 8] */ 36814 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04FB6E: call dword ptr [0x2b0b5158] */ 36815 RECOMP_FLAGS_IN(); 36816 edx = MEM32(esi + 0x10); /* 0x2B04FB74: mov edx, dword ptr [esi + 0x10] */ 36817 MEM32(edi + 0x18) = edx; /* 0x2B04FB77: mov dword ptr [edi + 0x18], edx */ 36818 eax = MEM32(esi + 0x14); /* 0x2B04FB7A: mov eax, dword ptr [esi + 0x14] */ 36819 MEM32(edi + 0x1C) = eax; /* 0x2B04FB7D: mov dword ptr [edi + 0x1c], eax */ 36820 ecx = MEM32(esi + 0x18); /* 0x2B04FB80: mov ecx, dword ptr [esi + 0x18] */ 36821 MEM32(edi + 0x20) = ecx; /* 0x2B04FB83: mov dword ptr [edi + 0x20], ecx */ 36822 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x2B04FB86: mov dl, byte ptr [esi + 0x1c] */ 36823 MEM8(edi + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B04FB89: mov byte ptr [edi + 0x24], dl */ 36824 eax = MEM32(esi + 0x20); /* 0x2B04FB8C: mov eax, dword ptr [esi + 0x20] */ 36825 MEM32(edi + 0x28) = eax; /* 0x2B04FB8F: mov dword ptr [edi + 0x28], eax */ 36826 SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x2B04FB92: mov cl, byte ptr [esi + 0x24] */ 36827 MEM8(edi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x2B04FB95: mov byte ptr [edi + 0x2c], cl */ 36828 SET_LO8(edx, MEM8(esi + 0x25)); /* 0x2B04FB98: mov dl, byte ptr [esi + 0x25] */ 36829 PUSH32(esp, ebx); /* 0x2B04FB9B: push ebx */ 36830 MEM8(edi + 0x2D) = (uint8_t)(LO8(edx)); /* 0x2B04FB9C: mov byte ptr [edi + 0x2d], dl */ 36831 RECOMP_ICALL(0x2B053F90u); /* 0x2B04FB9F: call 0x2b053f90 */ /* not lifted */ 36832 RECOMP_FLAGS_IN(); 36833 eax = MEM32(ebp + 0x8); /* 0x2B04FBA4: mov eax, dword ptr [ebp + 8] */ 36834 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 36835 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36836 ebx = ebx + 0x30u; /* 0x2B04FBA7: add ebx, 0x30 */ 36837 _flag_k = FK_ADD; 36838 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 36839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36840 esp = esp + 0x34u; /* 0x2B04FBAA: add esp, 0x34 */ 36841 _flag_k = FK_ADD; 36842 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36844 esi = esi + 0x30u; /* 0x2B04FBAD: add esi, 0x30 */ 36845 _flag_k = FK_ADD; 36846 /* cmp ebx, eax */ /* 0x2B04FBB0: cmp ebx, eax */ 36847 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 36848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36849 _flag_k = FK_CMP; 36850 RECOMP_BACKEDGE(); 36851 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FB3B; /* 0x2B04FBB2: jne 0x2b04fb3b */ 36852 L_2B04FBB4: 36853 esi = MEM32(ebp + (-0x10)); /* 0x2B04FBB4: mov esi, dword ptr [ebp - 0x10] */ 36854 ecx = esi; /* 0x2B04FBB7: mov ecx, esi */ 36855 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FBB9: call 0x2b0510b0 */ /* not lifted */ 36856 RECOMP_FLAGS_IN(); 36857 ecx = esi; /* 0x2B04FBBE: mov ecx, esi */ 36858 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FBC0: call 0x2b03a2b0 */ /* not lifted */ 36859 RECOMP_FLAGS_IN(); 36860 eax = MEM32(0x2B0E7E34); /* 0x2B04FBC5: mov eax, dword ptr [0x2b0e7e34] */ 36861 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FBCA: mov ecx, dword ptr [ebp - 0xc] */ 36862 edi = POP32_VAL(esp); /* 0x2B04FBCD: pop edi */ 36863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 36864 eax = eax + 1; /* 0x2B04FBCE: inc eax */ 36865 _flag_k = FK_INC; 36866 esi = POP32_VAL(esp); /* 0x2B04FBCF: pop esi */ 36867 MEM32(0x2B0E7E34) = eax; /* 0x2B04FBD0: mov dword ptr [0x2b0e7e34], eax */ 36868 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FBD5: mov dword ptr fs:[0], ecx */ 36869 ebx = POP32_VAL(esp); /* 0x2B04FBDC: pop ebx */ 36870 esp = ebp; /* 0x2B04FBDD: mov esp, ebp */ 36871 ebp = POP32_VAL(esp); /* 0x2B04FBDF: pop ebp */ 36872 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04FBE0: ret 4 */ 36873 RECOMP_REGS_OUT(); 36874 } 36875 36876 void sub_2B04F91D(void) { 36877 int _fpu_cmp = 0; 36878 uint32_t _cf = 0; 36879 int _df = 1; 36880 uint32_t _flag_k = FK_NONE; 36881 uint32_t _flag_a = 0, _flag_b = 0; 36882 uint32_t _itail_tgt = 0; 36883 RECOMP_REGS_LOCALS 36884 RECOMP_ENTER(0x2B04F91Du); 36885 36886 L_2B04F91D: 36887 ecx = MEM32(esi + 0x18); /* 0x2B04F91D: mov ecx, dword ptr [esi + 0x18] */ 36888 /* test ecx, ecx */ /* 0x2B04F920: test ecx, ecx */ 36889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 36890 _cf = 0; 36891 _flag_k = FK_TEST; 36892 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F922: jne 0x2b04f9e6 */ 36893 L_2B04F928: 36894 ecx = MEM32(esi + 0x28); /* 0x2B04F928: mov ecx, dword ptr [esi + 0x28] */ 36895 /* cmp ecx, MEM32(0x2B0E7E34) */ /* 0x2B04F92B: cmp ecx, dword ptr [0x2b0e7e34] */ 36896 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x2B0E7E34)); 36897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36898 _flag_k = FK_CMP; 36899 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F931: je 0x2b04f9e6 */ 36900 L_2B04F937: 36901 eax = MEM32(ebx + 0x8); /* 0x2B04F937: mov eax, dword ptr [ebx + 8] */ 36902 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36904 esi = esi + 0x30u; /* 0x2B04F93A: add esi, 0x30 */ 36905 _flag_k = FK_ADD; 36906 /* cmp esi, eax */ /* 0x2B04F93D: cmp esi, eax */ 36907 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36909 _flag_k = FK_CMP; 36910 MEM32(ebp + 0x8) = eax; /* 0x2B04F93F: mov dword ptr [ebp + 8], eax */ 36911 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F95C; /* 0x2B04F942: je 0x2b04f95c */ 36912 L_2B04F944: 36913 edi = esi + (-0x30); /* 0x2B04F944: lea edi, [esi - 0x30] */ 36914 L_2B04F947: 36915 PUSH32(esp, esi); /* 0x2B04F947: push esi */ 36916 ecx = edi; /* 0x2B04F948: mov ecx, edi */ 36917 RECOMP_ICALL(0x2B053640u); /* 0x2B04F94A: call 0x2b053640 */ /* not lifted */ 36918 RECOMP_FLAGS_IN(); 36919 eax = MEM32(ebp + 0x8); /* 0x2B04F94F: mov eax, dword ptr [ebp + 8] */ 36920 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36922 esi = esi + 0x30u; /* 0x2B04F952: add esi, 0x30 */ 36923 _flag_k = FK_ADD; 36924 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 36925 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36926 edi = edi + 0x30u; /* 0x2B04F955: add edi, 0x30 */ 36927 _flag_k = FK_ADD; 36928 /* cmp esi, eax */ /* 0x2B04F958: cmp esi, eax */ 36929 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36931 _flag_k = FK_CMP; 36932 RECOMP_BACKEDGE(); 36933 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F947; /* 0x2B04F95A: jne 0x2b04f947 */ 36934 L_2B04F95C: 36935 eax = MEM32(ebx + 0x8); /* 0x2B04F95C: mov eax, dword ptr [ebx + 8] */ 36936 esi = eax + (-0x30); /* 0x2B04F95F: lea esi, [eax - 0x30] */ 36937 /* cmp esi, eax */ /* 0x2B04F962: cmp esi, eax */ 36938 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36940 _flag_k = FK_CMP; 36941 MEM32(ebp + 0x8) = eax; /* 0x2B04F964: mov dword ptr [ebp + 8], eax */ 36942 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F983; /* 0x2B04F967: je 0x2b04f983 */ 36943 L_2B04F969: 36944 edi = esi + 0x8; /* 0x2B04F969: lea edi, [esi + 8] */ 36945 L_2B04F96C: 36946 PUSH32(esp, 1); /* 0x2B04F96C: push 1 */ 36947 ecx = edi; /* 0x2B04F96E: mov ecx, edi */ 36948 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F970: call dword ptr [0x2b0b514c] */ 36949 RECOMP_FLAGS_IN(); 36950 eax = MEM32(ebp + 0x8); /* 0x2B04F976: mov eax, dword ptr [ebp + 8] */ 36951 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36952 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36953 esi = esi + 0x30u; /* 0x2B04F979: add esi, 0x30 */ 36954 _flag_k = FK_ADD; 36955 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 36956 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36957 edi = edi + 0x30u; /* 0x2B04F97C: add edi, 0x30 */ 36958 _flag_k = FK_ADD; 36959 /* cmp esi, eax */ /* 0x2B04F97F: cmp esi, eax */ 36960 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 36961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36962 _flag_k = FK_CMP; 36963 RECOMP_BACKEDGE(); 36964 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F96C; /* 0x2B04F981: jne 0x2b04f96c */ 36965 L_2B04F983: 36966 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0xFFFFFFD0u); 36967 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36968 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0xFFFFFFD0u; /* 0x2B04F983: add dword ptr [ebx + 8], -0x30 */ 36969 _flag_k = FK_ADD; 36970 eax = MEM32(ebp + (-0x10)); /* 0x2B04F987: mov eax, dword ptr [ebp - 0x10] */ 36971 ebx = MEM32(eax + 0x100); /* 0x2B04F98A: mov ebx, dword ptr [eax + 0x100] */ 36972 esi = MEM32(ebx + 0x4); /* 0x2B04F990: mov esi, dword ptr [ebx + 4] */ 36973 goto L_2B04F9E9; /* 0x2B04F993: jmp 0x2b04f9e9 */ 36974 L_2B04F9E6: 36975 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 36976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36977 esi = esi + 0x30u; /* 0x2B04F9E6: add esi, 0x30 */ 36978 _flag_k = FK_ADD; 36979 L_2B04F9E9: 36980 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F9E9: cmp esi, dword ptr [ebx + 8] */ 36981 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 36982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36983 _flag_k = FK_CMP; 36984 RECOMP_BACKEDGE(); 36985 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F91D; /* 0x2B04F9EC: jne 0x2b04f91d */ 36986 L_2B04F9F2: 36987 eax = MEM32(eax + 0x100); /* 0x2B04F9F2: mov eax, dword ptr [eax + 0x100] */ 36988 edi = MEM32(eax + 0x8); /* 0x2B04F9F8: mov edi, dword ptr [eax + 8] */ 36989 esi = MEM32(eax + 0x4); /* 0x2B04F9FB: mov esi, dword ptr [eax + 4] */ 36990 ecx = edi; /* 0x2B04F9FE: mov ecx, edi */ 36991 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 36992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 36993 ecx = ecx - esi; /* 0x2B04FA00: sub ecx, esi */ 36994 _flag_k = FK_CMP; 36995 eax = 0x2AAAAAABu; /* 0x2B04FA02: mov eax, 0x2aaaaaab */ 36996 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA07: imul ecx */ 36997 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 36998 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 36999 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FA09: sar edx, 3 */ 37000 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37001 edx = (uint32_t)((int32_t)edx >> 3u); 37002 eax = edx; /* 0x2B04FA0C: mov eax, edx */ 37003 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FA0E: shr eax, 0x1f */ 37004 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37005 eax = eax >> 31u; /* 0x2B04FA0E: shr eax, 0x1f */ 37006 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 37007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37008 edx = edx + eax; /* 0x2B04FA11: add edx, eax */ 37009 _flag_k = FK_ADD; 37010 /* cmp edx, 0x10u */ /* 0x2B04FA13: cmp edx, 0x10 */ 37011 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 37012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37013 _flag_k = FK_CMP; 37014 MEM32(ebp + 0x8) = edi; /* 0x2B04FA16: mov dword ptr [ebp + 8], edi */ 37015 MEM32(ebp + (-0x14)) = esi; /* 0x2B04FA19: mov dword ptr [ebp - 0x14], esi */ 37016 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FA1C: jg 0x2b04fa2f */ 37017 L_2B04FA1E: 37018 PUSH32(esp, 0); /* 0x2B04FA1E: push 0 */ 37019 PUSH32(esp, edi); /* 0x2B04FA20: push edi */ 37020 PUSH32(esp, esi); /* 0x2B04FA21: push esi */ 37021 RECOMP_ICALL(0x2B054410u); /* 0x2B04FA22: call 0x2b054410 */ /* not lifted */ 37022 RECOMP_FLAGS_IN(); 37023 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 37024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37025 esp = esp + 0xCu; /* 0x2B04FA27: add esp, 0xc */ 37026 _flag_k = FK_ADD; 37027 goto L_2B04FBB4; /* 0x2B04FA2A: jmp 0x2b04fbb4 */ 37028 L_2B04FA2F: 37029 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37031 esp = esp - 0x30u; /* 0x2B04FA2F: sub esp, 0x30 */ 37032 _flag_k = FK_CMP; 37033 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA32: mov dword ptr [ebp - 0x18], esp */ 37034 ebx = esp; /* 0x2B04FA35: mov ebx, esp */ 37035 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37037 esp = esp - 0x30u; /* 0x2B04FA37: sub esp, 0x30 */ 37038 _flag_k = FK_CMP; 37039 edx = edi + (-0x30); /* 0x2B04FA3A: lea edx, [edi - 0x30] */ 37040 ecx = esp; /* 0x2B04FA3D: mov ecx, esp */ 37041 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA3F: mov dword ptr [ebp - 0x18], esp */ 37042 PUSH32(esp, edx); /* 0x2B04FA42: push edx */ 37043 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA43: call 0x2b053940 */ /* not lifted */ 37044 RECOMP_FLAGS_IN(); 37045 ecx = edi; /* 0x2B04FA48: mov ecx, edi */ 37046 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 37047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37048 ecx = ecx - esi; /* 0x2B04FA4A: sub ecx, esi */ 37049 _flag_k = FK_CMP; 37050 eax = 0x2AAAAAABu; /* 0x2B04FA4C: mov eax, 0x2aaaaaab */ 37051 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA51: imul ecx */ 37052 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 37053 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 37054 eax = edx; /* 0x2B04FA53: mov eax, edx */ 37055 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B04FA55: sar eax, 3 */ 37056 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37057 eax = (uint32_t)((int32_t)eax >> 3u); 37058 ecx = eax; /* 0x2B04FA58: mov ecx, eax */ 37059 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FA5A: shr ecx, 0x1f */ 37060 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37061 ecx = ecx >> 31u; /* 0x2B04FA5A: shr ecx, 0x1f */ 37062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 37063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37064 eax = eax + ecx; /* 0x2B04FA5D: add eax, ecx */ 37065 _flag_k = FK_ADD; 37066 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B04FA5F: cdq */ 37067 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 37068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37069 eax = eax - edx; /* 0x2B04FA60: sub eax, edx */ 37070 _flag_k = FK_CMP; 37071 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B04FA62: sar eax, 1 */ 37072 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37073 eax = (uint32_t)((int32_t)eax >> 1u); 37074 edx = eax + eax * 2; /* 0x2B04FA64: lea edx, [eax + eax*2] */ 37075 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37077 esp = esp - 0x30u; /* 0x2B04FA67: sub esp, 0x30 */ 37078 _flag_k = FK_CMP; 37079 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B04FA6A: shl edx, 4 */ 37080 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37081 edx = edx << 4u; /* 0x2B04FA6A: shl edx, 4 */ 37082 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 37083 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37084 edx = edx + esi; /* 0x2B04FA6D: add edx, esi */ 37085 _flag_k = FK_ADD; 37086 ecx = esp; /* 0x2B04FA6F: mov ecx, esp */ 37087 MEM32(ebp + (-0x1C)) = esp; /* 0x2B04FA71: mov dword ptr [ebp - 0x1c], esp */ 37088 PUSH32(esp, edx); /* 0x2B04FA74: push edx */ 37089 MEM32(ebp + (-0x4)) = 1; /* 0x2B04FA75: mov dword ptr [ebp - 4], 1 */ 37090 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA7C: call 0x2b053940 */ /* not lifted */ 37091 RECOMP_FLAGS_IN(); 37092 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37094 esp = esp - 0x30u; /* 0x2B04FA81: sub esp, 0x30 */ 37095 _flag_k = FK_CMP; 37096 ecx = esp; /* 0x2B04FA84: mov ecx, esp */ 37097 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FA86: mov dword ptr [ebp - 0x20], esp */ 37098 PUSH32(esp, esi); /* 0x2B04FA89: push esi */ 37099 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04FA8A: mov byte ptr [ebp - 4], 2 */ 37100 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA8E: call 0x2b053940 */ /* not lifted */ 37101 RECOMP_FLAGS_IN(); 37102 PUSH32(esp, ebx); /* 0x2B04FA93: push ebx */ 37103 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04FA94: mov dword ptr [ebp - 4], 0xffffffff */ 37104 RECOMP_ICALL(0x2B054620u); /* 0x2B04FA9B: call 0x2b054620 */ /* not lifted */ 37105 RECOMP_FLAGS_IN(); 37106 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 37107 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37108 esp = esp + 0x94u; /* 0x2B04FAA0: add esp, 0x94 */ 37109 _flag_k = FK_ADD; 37110 PUSH32(esp, edi); /* 0x2B04FAA6: push edi */ 37111 PUSH32(esp, esi); /* 0x2B04FAA7: push esi */ 37112 RECOMP_ICALL(0x2B054940u); /* 0x2B04FAA8: call 0x2b054940 */ /* not lifted */ 37113 RECOMP_FLAGS_IN(); 37114 ebx = eax; /* 0x2B04FAAD: mov ebx, eax */ 37115 ecx = edi; /* 0x2B04FAAF: mov ecx, edi */ 37116 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 37117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37118 ecx = ecx - ebx; /* 0x2B04FAB1: sub ecx, ebx */ 37119 _flag_k = FK_CMP; 37120 eax = 0x2AAAAAABu; /* 0x2B04FAB3: mov eax, 0x2aaaaaab */ 37121 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FAB8: imul ecx */ 37122 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 37123 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 37124 ecx = edx; /* 0x2B04FABA: mov ecx, edx */ 37125 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B04FABC: sar ecx, 3 */ 37126 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37127 ecx = (uint32_t)((int32_t)ecx >> 3u); 37128 eax = ecx; /* 0x2B04FABF: mov eax, ecx */ 37129 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAC1: shr eax, 0x1f */ 37130 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37131 eax = eax >> 31u; /* 0x2B04FAC1: shr eax, 0x1f */ 37132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 37133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37134 ecx = ecx + eax; /* 0x2B04FAC4: add ecx, eax */ 37135 _flag_k = FK_ADD; 37136 edx = ebx; /* 0x2B04FAC6: mov edx, ebx */ 37137 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 37138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37139 edx = edx - esi; /* 0x2B04FAC8: sub edx, esi */ 37140 _flag_k = FK_CMP; 37141 eax = 0x2AAAAAABu; /* 0x2B04FACA: mov eax, 0x2aaaaaab */ 37142 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B04FACF: imul edx */ 37143 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 37144 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 37145 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FAD1: sar edx, 3 */ 37146 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37147 edx = (uint32_t)((int32_t)edx >> 3u); 37148 eax = edx; /* 0x2B04FAD4: mov eax, edx */ 37149 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAD6: shr eax, 0x1f */ 37150 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37151 eax = eax >> 31u; /* 0x2B04FAD6: shr eax, 0x1f */ 37152 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 37153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37154 esp = esp + 0x38u; /* 0x2B04FAD9: add esp, 0x38 */ 37155 _flag_k = FK_ADD; 37156 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 37157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37158 edx = edx + eax; /* 0x2B04FADC: add edx, eax */ 37159 _flag_k = FK_ADD; 37160 /* cmp ecx, edx */ /* 0x2B04FADE: cmp ecx, edx */ 37161 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 37162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37163 _flag_k = FK_CMP; 37164 PUSH32(esp, 0); /* 0x2B04FAE0: push 0 */ 37165 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FAF2; /* 0x2B04FAE2: jg 0x2b04faf2 */ 37166 L_2B04FAE4: 37167 PUSH32(esp, edi); /* 0x2B04FAE4: push edi */ 37168 PUSH32(esp, ebx); /* 0x2B04FAE5: push ebx */ 37169 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAE6: call 0x2b053e60 */ /* not lifted */ 37170 RECOMP_FLAGS_IN(); 37171 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 37172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37173 esp = esp + 0xCu; /* 0x2B04FAEB: add esp, 0xc */ 37174 _flag_k = FK_ADD; 37175 edi = ebx; /* 0x2B04FAEE: mov edi, ebx */ 37176 goto L_2B04FAFE; /* 0x2B04FAF0: jmp 0x2b04fafe */ 37177 L_2B04FAF2: 37178 PUSH32(esp, ebx); /* 0x2B04FAF2: push ebx */ 37179 PUSH32(esp, esi); /* 0x2B04FAF3: push esi */ 37180 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAF4: call 0x2b053e60 */ /* not lifted */ 37181 RECOMP_FLAGS_IN(); 37182 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 37183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37184 esp = esp + 0xCu; /* 0x2B04FAF9: add esp, 0xc */ 37185 _flag_k = FK_ADD; 37186 esi = ebx; /* 0x2B04FAFC: mov esi, ebx */ 37187 L_2B04FAFE: 37188 ecx = edi; /* 0x2B04FAFE: mov ecx, edi */ 37189 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 37190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37191 ecx = ecx - esi; /* 0x2B04FB00: sub ecx, esi */ 37192 _flag_k = FK_CMP; 37193 eax = 0x2AAAAAABu; /* 0x2B04FB02: mov eax, 0x2aaaaaab */ 37194 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FB07: imul ecx */ 37195 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 37196 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 37197 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FB09: sar edx, 3 */ 37198 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37199 edx = (uint32_t)((int32_t)edx >> 3u); 37200 ecx = edx; /* 0x2B04FB0C: mov ecx, edx */ 37201 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FB0E: shr ecx, 0x1f */ 37202 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37203 ecx = ecx >> 31u; /* 0x2B04FB0E: shr ecx, 0x1f */ 37204 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 37205 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37206 edx = edx + ecx; /* 0x2B04FB11: add edx, ecx */ 37207 _flag_k = FK_ADD; 37208 /* cmp edx, 0x10u */ /* 0x2B04FB13: cmp edx, 0x10 */ 37209 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 37210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37211 _flag_k = FK_CMP; 37212 RECOMP_BACKEDGE(); 37213 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FB16: jg 0x2b04fa2f */ 37214 L_2B04FB1C: 37215 esi = MEM32(ebp + (-0x14)); /* 0x2B04FB1C: mov esi, dword ptr [ebp - 0x14] */ 37216 PUSH32(esp, 0); /* 0x2B04FB1F: push 0 */ 37217 ebx = esi + 0x300; /* 0x2B04FB21: lea ebx, [esi + 0x300] */ 37218 PUSH32(esp, ebx); /* 0x2B04FB27: push ebx */ 37219 PUSH32(esp, esi); /* 0x2B04FB28: push esi */ 37220 RECOMP_ICALL(0x2B054410u); /* 0x2B04FB29: call 0x2b054410 */ /* not lifted */ 37221 RECOMP_FLAGS_IN(); 37222 eax = MEM32(ebp + 0x8); /* 0x2B04FB2E: mov eax, dword ptr [ebp + 8] */ 37223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 37224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37225 esp = esp + 0xCu; /* 0x2B04FB31: add esp, 0xc */ 37226 _flag_k = FK_ADD; 37227 /* cmp ebx, eax */ /* 0x2B04FB34: cmp ebx, eax */ 37228 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 37229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37230 _flag_k = FK_CMP; 37231 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FBB4; /* 0x2B04FB36: je 0x2b04fbb4 */ 37232 L_2B04FB38: 37233 esi = ebx + 0x8; /* 0x2B04FB38: lea esi, [ebx + 8] */ 37234 L_2B04FB3B: 37235 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37237 esp = esp - 0x30u; /* 0x2B04FB3B: sub esp, 0x30 */ 37238 _flag_k = FK_CMP; 37239 edi = esp; /* 0x2B04FB3E: mov edi, esp */ 37240 /* cmp edi, ebx */ /* 0x2B04FB40: cmp edi, ebx */ 37241 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 37242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37243 _flag_k = FK_CMP; 37244 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FB42: mov dword ptr [ebp - 0x20], esp */ 37245 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FB51; /* 0x2B04FB45: je 0x2b04fb51 */ 37246 L_2B04FB47: 37247 edx = MEM32(ebx); /* 0x2B04FB47: mov edx, dword ptr [ebx] */ 37248 MEM32(edi) = edx; /* 0x2B04FB49: mov dword ptr [edi], edx */ 37249 eax = MEM32(esi + (-0x4)); /* 0x2B04FB4B: mov eax, dword ptr [esi - 4] */ 37250 MEM32(edi + 0x4) = eax; /* 0x2B04FB4E: mov dword ptr [edi + 4], eax */ 37251 L_2B04FB51: 37252 SET_LO8(edx, MEM8(esi)); /* 0x2B04FB51: mov dl, byte ptr [esi] */ 37253 ecx = edi + 0x8; /* 0x2B04FB53: lea ecx, [edi + 8] */ 37254 PUSH32(esp, 0); /* 0x2B04FB56: push 0 */ 37255 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2B04FB58: mov byte ptr [ecx], dl */ 37256 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04FB5A: call dword ptr [0x2b0b514c] */ 37257 RECOMP_FLAGS_IN(); 37258 eax = MEM32(0x2B0B515C); /* 0x2B04FB60: mov eax, dword ptr [0x2b0b515c] */ 37259 ecx = MEM32(eax); /* 0x2B04FB65: mov ecx, dword ptr [eax] */ 37260 PUSH32(esp, ecx); /* 0x2B04FB67: push ecx */ 37261 PUSH32(esp, 0); /* 0x2B04FB68: push 0 */ 37262 PUSH32(esp, esi); /* 0x2B04FB6A: push esi */ 37263 ecx = edi + 0x8; /* 0x2B04FB6B: lea ecx, [edi + 8] */ 37264 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04FB6E: call dword ptr [0x2b0b5158] */ 37265 RECOMP_FLAGS_IN(); 37266 edx = MEM32(esi + 0x10); /* 0x2B04FB74: mov edx, dword ptr [esi + 0x10] */ 37267 MEM32(edi + 0x18) = edx; /* 0x2B04FB77: mov dword ptr [edi + 0x18], edx */ 37268 eax = MEM32(esi + 0x14); /* 0x2B04FB7A: mov eax, dword ptr [esi + 0x14] */ 37269 MEM32(edi + 0x1C) = eax; /* 0x2B04FB7D: mov dword ptr [edi + 0x1c], eax */ 37270 ecx = MEM32(esi + 0x18); /* 0x2B04FB80: mov ecx, dword ptr [esi + 0x18] */ 37271 MEM32(edi + 0x20) = ecx; /* 0x2B04FB83: mov dword ptr [edi + 0x20], ecx */ 37272 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x2B04FB86: mov dl, byte ptr [esi + 0x1c] */ 37273 MEM8(edi + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B04FB89: mov byte ptr [edi + 0x24], dl */ 37274 eax = MEM32(esi + 0x20); /* 0x2B04FB8C: mov eax, dword ptr [esi + 0x20] */ 37275 MEM32(edi + 0x28) = eax; /* 0x2B04FB8F: mov dword ptr [edi + 0x28], eax */ 37276 SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x2B04FB92: mov cl, byte ptr [esi + 0x24] */ 37277 MEM8(edi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x2B04FB95: mov byte ptr [edi + 0x2c], cl */ 37278 SET_LO8(edx, MEM8(esi + 0x25)); /* 0x2B04FB98: mov dl, byte ptr [esi + 0x25] */ 37279 PUSH32(esp, ebx); /* 0x2B04FB9B: push ebx */ 37280 MEM8(edi + 0x2D) = (uint8_t)(LO8(edx)); /* 0x2B04FB9C: mov byte ptr [edi + 0x2d], dl */ 37281 RECOMP_ICALL(0x2B053F90u); /* 0x2B04FB9F: call 0x2b053f90 */ /* not lifted */ 37282 RECOMP_FLAGS_IN(); 37283 eax = MEM32(ebp + 0x8); /* 0x2B04FBA4: mov eax, dword ptr [ebp + 8] */ 37284 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 37285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37286 ebx = ebx + 0x30u; /* 0x2B04FBA7: add ebx, 0x30 */ 37287 _flag_k = FK_ADD; 37288 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 37289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37290 esp = esp + 0x34u; /* 0x2B04FBAA: add esp, 0x34 */ 37291 _flag_k = FK_ADD; 37292 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 37293 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37294 esi = esi + 0x30u; /* 0x2B04FBAD: add esi, 0x30 */ 37295 _flag_k = FK_ADD; 37296 /* cmp ebx, eax */ /* 0x2B04FBB0: cmp ebx, eax */ 37297 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 37298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37299 _flag_k = FK_CMP; 37300 RECOMP_BACKEDGE(); 37301 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FB3B; /* 0x2B04FBB2: jne 0x2b04fb3b */ 37302 L_2B04FBB4: 37303 esi = MEM32(ebp + (-0x10)); /* 0x2B04FBB4: mov esi, dword ptr [ebp - 0x10] */ 37304 ecx = esi; /* 0x2B04FBB7: mov ecx, esi */ 37305 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FBB9: call 0x2b0510b0 */ /* not lifted */ 37306 RECOMP_FLAGS_IN(); 37307 ecx = esi; /* 0x2B04FBBE: mov ecx, esi */ 37308 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FBC0: call 0x2b03a2b0 */ /* not lifted */ 37309 RECOMP_FLAGS_IN(); 37310 eax = MEM32(0x2B0E7E34); /* 0x2B04FBC5: mov eax, dword ptr [0x2b0e7e34] */ 37311 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FBCA: mov ecx, dword ptr [ebp - 0xc] */ 37312 edi = POP32_VAL(esp); /* 0x2B04FBCD: pop edi */ 37313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 37314 eax = eax + 1; /* 0x2B04FBCE: inc eax */ 37315 _flag_k = FK_INC; 37316 esi = POP32_VAL(esp); /* 0x2B04FBCF: pop esi */ 37317 MEM32(0x2B0E7E34) = eax; /* 0x2B04FBD0: mov dword ptr [0x2b0e7e34], eax */ 37318 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FBD5: mov dword ptr fs:[0], ecx */ 37319 ebx = POP32_VAL(esp); /* 0x2B04FBDC: pop ebx */ 37320 esp = ebp; /* 0x2B04FBDD: mov esp, ebp */ 37321 ebp = POP32_VAL(esp); /* 0x2B04FBDF: pop ebp */ 37322 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04FBE0: ret 4 */ 37323 RECOMP_REGS_OUT(); 37324 } 37325 37326 void sub_2B04F995(void) { 37327 int _fpu_cmp = 0; 37328 uint32_t _cf = 0; 37329 int _df = 1; 37330 uint32_t _flag_k = FK_NONE; 37331 uint32_t _flag_a = 0, _flag_b = 0; 37332 uint32_t _itail_tgt = 0; 37333 RECOMP_REGS_LOCALS 37334 RECOMP_ENTER(0x2B04F995u); 37335 37336 goto L_2B04F995; 37337 L_2B04F825: 37338 eax = MEM32(ebp + (-0x10)); /* 0x2B04F825: mov eax, dword ptr [ebp - 0x10] */ 37339 eax = MEM32(eax + 0x100); /* 0x2B04F828: mov eax, dword ptr [eax + 0x100] */ 37340 esi = MEM32(eax + 0x4); /* 0x2B04F82E: mov esi, dword ptr [eax + 4] */ 37341 eax = MEM32(eax + 0x8); /* 0x2B04F831: mov eax, dword ptr [eax + 8] */ 37342 /* cmp esi, eax */ /* 0x2B04F834: cmp esi, eax */ 37343 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 37344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37345 _flag_k = FK_CMP; 37346 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F84A; /* 0x2B04F836: je 0x2b04f84a */ 37347 L_2B04F838: 37348 ecx = MEM32(ebx); /* 0x2B04F838: mov ecx, dword ptr [ebx] */ 37349 L_2B04F83A: 37350 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2B04F83A: cmp ecx, dword ptr [esi + 4] */ 37351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 37352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37353 _flag_k = FK_CMP; 37354 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F995; /* 0x2B04F83D: je 0x2b04f995 */ 37355 L_2B04F843: 37356 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 37357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37358 esi = esi + 0x30u; /* 0x2B04F843: add esi, 0x30 */ 37359 _flag_k = FK_ADD; 37360 /* cmp esi, eax */ /* 0x2B04F846: cmp esi, eax */ 37361 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 37362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37363 _flag_k = FK_CMP; 37364 RECOMP_BACKEDGE(); 37365 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F83A; /* 0x2B04F848: jne 0x2b04f83a */ 37366 L_2B04F84A: 37367 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B04F84A: mov al, byte ptr [ebp + 0xb] */ 37368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 37369 esi = 0; /* 0x2B04F84D: xor esi, esi */ 37370 _cf = 0; 37371 _flag_k = FK_TEST; 37372 PUSH32(esp, esi); /* 0x2B04F84F: push esi */ 37373 ecx = ebp + (-0x48); /* 0x2B04F850: lea ecx, [ebp - 0x48] */ 37374 MEM32(ebp + (-0x50)) = esi; /* 0x2B04F853: mov dword ptr [ebp - 0x50], esi */ 37375 MEM32(ebp + (-0x4C)) = esi; /* 0x2B04F856: mov dword ptr [ebp - 0x4c], esi */ 37376 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(eax)); /* 0x2B04F859: mov byte ptr [ebp - 0x48], al */ 37377 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F85C: call dword ptr [0x2b0b514c] */ 37378 RECOMP_FLAGS_IN(); 37379 MEM8(ebp + (-0x2C)) = (uint8_t)(0); /* 0x2B04F862: mov byte ptr [ebp - 0x2c], 0 */ 37380 MEM32(ebp + (-0x28)) = esi; /* 0x2B04F866: mov dword ptr [ebp - 0x28], esi */ 37381 MEM8(ebp + (-0x24)) = (uint8_t)(0); /* 0x2B04F869: mov byte ptr [ebp - 0x24], 0 */ 37382 eax = MEM32(ebx); /* 0x2B04F86D: mov eax, dword ptr [ebx] */ 37383 ecx = 0xC350u; /* 0x2B04F86F: mov ecx, 0xc350 */ 37384 MEM32(ebp + (-0x50)) = ecx; /* 0x2B04F874: mov dword ptr [ebp - 0x50], ecx */ 37385 ecx = MEM32(0x2B0B515C); /* 0x2B04F877: mov ecx, dword ptr [0x2b0b515c] */ 37386 MEM32(ebp + (-0x4C)) = eax; /* 0x2B04F87D: mov dword ptr [ebp - 0x4c], eax */ 37387 MEM32(ebp + (-0x38)) = esi; /* 0x2B04F880: mov dword ptr [ebp - 0x38], esi */ 37388 edx = MEM32(ecx); /* 0x2B04F883: mov edx, dword ptr [ecx] */ 37389 PUSH32(esp, edx); /* 0x2B04F885: push edx */ 37390 PUSH32(esp, esi); /* 0x2B04F886: push esi */ 37391 eax = edi + (-0x18); /* 0x2B04F887: lea eax, [edi - 0x18] */ 37392 PUSH32(esp, eax); /* 0x2B04F88A: push eax */ 37393 ecx = ebp + (-0x48); /* 0x2B04F88B: lea ecx, [ebp - 0x48] */ 37394 MEM32(ebp + (-0x4)) = esi; /* 0x2B04F88E: mov dword ptr [ebp - 4], esi */ 37395 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04F891: call dword ptr [0x2b0b5158] */ 37396 RECOMP_FLAGS_IN(); 37397 eax = MEM32(edi); /* 0x2B04F897: mov eax, dword ptr [edi] */ 37398 /* cmp eax, esi */ /* 0x2B04F899: cmp eax, esi */ 37399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 37400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37401 _flag_k = FK_CMP; 37402 ecx = MEM32(edi + (-0x8)); /* 0x2B04F89B: mov ecx, dword ptr [edi - 8] */ 37403 edx = MEM32(0x2B0E7E34); /* 0x2B04F89E: mov edx, dword ptr [0x2b0e7e34] */ 37404 MEM32(ebp + (-0x34)) = ecx; /* 0x2B04F8A4: mov dword ptr [ebp - 0x34], ecx */ 37405 MEM8(ebp + (-0x24)) = (uint8_t)(0); /* 0x2B04F8A7: mov byte ptr [ebp - 0x24], 0 */ 37406 MEM32(ebp + (-0x30)) = esi; /* 0x2B04F8AB: mov dword ptr [ebp - 0x30], esi */ 37407 MEM8(ebp + (-0x2C)) = (uint8_t)(0); /* 0x2B04F8AE: mov byte ptr [ebp - 0x2c], 0 */ 37408 MEM8(ebp + (-0x23)) = (uint8_t)(1); /* 0x2B04F8B2: mov byte ptr [ebp - 0x23], 1 */ 37409 MEM32(ebp + (-0x28)) = edx; /* 0x2B04F8B6: mov dword ptr [ebp - 0x28], edx */ 37410 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F8CA; /* 0x2B04F8B9: je 0x2b04f8ca */ 37411 L_2B04F8BB: 37412 ecx = MEM32(edi + 0x4); /* 0x2B04F8BB: mov ecx, dword ptr [edi + 4] */ 37413 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 37414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37415 ecx = ecx - eax; /* 0x2B04F8BE: sub ecx, eax */ 37416 _flag_k = FK_CMP; 37417 /* cmp ecx, 1 */ /* 0x2B04F8C0: cmp ecx, 1 */ 37418 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 37419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37420 _flag_k = FK_CMP; 37421 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F8CA; /* 0x2B04F8C3: jne 0x2b04f8ca */ 37422 L_2B04F8C5: 37423 SET_LO8(edx, MEM8(eax)); /* 0x2B04F8C5: mov dl, byte ptr [eax] */ 37424 MEM8(ebp + (-0x23)) = (uint8_t)(LO8(edx)); /* 0x2B04F8C7: mov byte ptr [ebp - 0x23], dl */ 37425 L_2B04F8CA: 37426 eax = MEM32(ebp + (-0x10)); /* 0x2B04F8CA: mov eax, dword ptr [ebp - 0x10] */ 37427 ecx = MEM32(eax + 0x100); /* 0x2B04F8CD: mov ecx, dword ptr [eax + 0x100] */ 37428 eax = MEM32(ecx + 0x8); /* 0x2B04F8D3: mov eax, dword ptr [ecx + 8] */ 37429 edx = ebp + (-0x50); /* 0x2B04F8D6: lea edx, [ebp - 0x50] */ 37430 PUSH32(esp, edx); /* 0x2B04F8D9: push edx */ 37431 PUSH32(esp, 1); /* 0x2B04F8DA: push 1 */ 37432 PUSH32(esp, eax); /* 0x2B04F8DC: push eax */ 37433 RECOMP_ICALL(0x2B052680u); /* 0x2B04F8DD: call 0x2b052680 */ /* not lifted */ 37434 RECOMP_FLAGS_IN(); 37435 PUSH32(esp, 1); /* 0x2B04F8E2: push 1 */ 37436 ecx = ebp + (-0x48); /* 0x2B04F8E4: lea ecx, [ebp - 0x48] */ 37437 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04F8E7: mov dword ptr [ebp - 4], 0xffffffff */ 37438 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F8EE: call dword ptr [0x2b0b514c] */ 37439 RECOMP_FLAGS_IN(); 37440 L_2B04F8F4: 37441 eax = MEM32(ebp + 0x8); /* 0x2B04F8F4: mov eax, dword ptr [ebp + 8] */ 37442 ecx = MEM32(eax + 0x8); /* 0x2B04F8F7: mov ecx, dword ptr [eax + 8] */ 37443 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x28u); 37444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37445 ebx = ebx + 0x28u; /* 0x2B04F8FA: add ebx, 0x28 */ 37446 _flag_k = FK_ADD; 37447 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 37448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37449 edi = edi + 0x28u; /* 0x2B04F8FD: add edi, 0x28 */ 37450 _flag_k = FK_ADD; 37451 /* cmp ebx, ecx */ /* 0x2B04F900: cmp ebx, ecx */ 37452 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 37453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37454 _flag_k = FK_CMP; 37455 RECOMP_BACKEDGE(); 37456 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F825; /* 0x2B04F902: jne 0x2b04f825 */ 37457 L_2B04F908: 37458 eax = MEM32(ebp + (-0x10)); /* 0x2B04F908: mov eax, dword ptr [ebp - 0x10] */ 37459 ebx = MEM32(eax + 0x100); /* 0x2B04F90B: mov ebx, dword ptr [eax + 0x100] */ 37460 esi = MEM32(ebx + 0x4); /* 0x2B04F911: mov esi, dword ptr [ebx + 4] */ 37461 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F914: cmp esi, dword ptr [ebx + 8] */ 37462 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 37463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37464 _flag_k = FK_CMP; 37465 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9F2; /* 0x2B04F917: je 0x2b04f9f2 */ 37466 L_2B04F91D: 37467 ecx = MEM32(esi + 0x18); /* 0x2B04F91D: mov ecx, dword ptr [esi + 0x18] */ 37468 /* test ecx, ecx */ /* 0x2B04F920: test ecx, ecx */ 37469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 37470 _cf = 0; 37471 _flag_k = FK_TEST; 37472 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F922: jne 0x2b04f9e6 */ 37473 L_2B04F928: 37474 ecx = MEM32(esi + 0x28); /* 0x2B04F928: mov ecx, dword ptr [esi + 0x28] */ 37475 /* cmp ecx, MEM32(0x2B0E7E34) */ /* 0x2B04F92B: cmp ecx, dword ptr [0x2b0e7e34] */ 37476 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x2B0E7E34)); 37477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37478 _flag_k = FK_CMP; 37479 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F931: je 0x2b04f9e6 */ 37480 L_2B04F937: 37481 eax = MEM32(ebx + 0x8); /* 0x2B04F937: mov eax, dword ptr [ebx + 8] */ 37482 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 37483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37484 esi = esi + 0x30u; /* 0x2B04F93A: add esi, 0x30 */ 37485 _flag_k = FK_ADD; 37486 /* cmp esi, eax */ /* 0x2B04F93D: cmp esi, eax */ 37487 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 37488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37489 _flag_k = FK_CMP; 37490 MEM32(ebp + 0x8) = eax; /* 0x2B04F93F: mov dword ptr [ebp + 8], eax */ 37491 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F95C; /* 0x2B04F942: je 0x2b04f95c */ 37492 L_2B04F944: 37493 edi = esi + (-0x30); /* 0x2B04F944: lea edi, [esi - 0x30] */ 37494 L_2B04F947: 37495 PUSH32(esp, esi); /* 0x2B04F947: push esi */ 37496 ecx = edi; /* 0x2B04F948: mov ecx, edi */ 37497 RECOMP_ICALL(0x2B053640u); /* 0x2B04F94A: call 0x2b053640 */ /* not lifted */ 37498 RECOMP_FLAGS_IN(); 37499 eax = MEM32(ebp + 0x8); /* 0x2B04F94F: mov eax, dword ptr [ebp + 8] */ 37500 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 37501 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37502 esi = esi + 0x30u; /* 0x2B04F952: add esi, 0x30 */ 37503 _flag_k = FK_ADD; 37504 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 37505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37506 edi = edi + 0x30u; /* 0x2B04F955: add edi, 0x30 */ 37507 _flag_k = FK_ADD; 37508 /* cmp esi, eax */ /* 0x2B04F958: cmp esi, eax */ 37509 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 37510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37511 _flag_k = FK_CMP; 37512 RECOMP_BACKEDGE(); 37513 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F947; /* 0x2B04F95A: jne 0x2b04f947 */ 37514 L_2B04F95C: 37515 eax = MEM32(ebx + 0x8); /* 0x2B04F95C: mov eax, dword ptr [ebx + 8] */ 37516 esi = eax + (-0x30); /* 0x2B04F95F: lea esi, [eax - 0x30] */ 37517 /* cmp esi, eax */ /* 0x2B04F962: cmp esi, eax */ 37518 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 37519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37520 _flag_k = FK_CMP; 37521 MEM32(ebp + 0x8) = eax; /* 0x2B04F964: mov dword ptr [ebp + 8], eax */ 37522 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F983; /* 0x2B04F967: je 0x2b04f983 */ 37523 L_2B04F969: 37524 edi = esi + 0x8; /* 0x2B04F969: lea edi, [esi + 8] */ 37525 L_2B04F96C: 37526 PUSH32(esp, 1); /* 0x2B04F96C: push 1 */ 37527 ecx = edi; /* 0x2B04F96E: mov ecx, edi */ 37528 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F970: call dword ptr [0x2b0b514c] */ 37529 RECOMP_FLAGS_IN(); 37530 eax = MEM32(ebp + 0x8); /* 0x2B04F976: mov eax, dword ptr [ebp + 8] */ 37531 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 37532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37533 esi = esi + 0x30u; /* 0x2B04F979: add esi, 0x30 */ 37534 _flag_k = FK_ADD; 37535 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 37536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37537 edi = edi + 0x30u; /* 0x2B04F97C: add edi, 0x30 */ 37538 _flag_k = FK_ADD; 37539 /* cmp esi, eax */ /* 0x2B04F97F: cmp esi, eax */ 37540 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 37541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37542 _flag_k = FK_CMP; 37543 RECOMP_BACKEDGE(); 37544 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F96C; /* 0x2B04F981: jne 0x2b04f96c */ 37545 L_2B04F983: 37546 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0xFFFFFFD0u); 37547 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37548 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0xFFFFFFD0u; /* 0x2B04F983: add dword ptr [ebx + 8], -0x30 */ 37549 _flag_k = FK_ADD; 37550 eax = MEM32(ebp + (-0x10)); /* 0x2B04F987: mov eax, dword ptr [ebp - 0x10] */ 37551 ebx = MEM32(eax + 0x100); /* 0x2B04F98A: mov ebx, dword ptr [eax + 0x100] */ 37552 esi = MEM32(ebx + 0x4); /* 0x2B04F990: mov esi, dword ptr [ebx + 4] */ 37553 goto L_2B04F9E9; /* 0x2B04F993: jmp 0x2b04f9e9 */ 37554 L_2B04F995: 37555 ecx = MEM32(0x2B0B515C); /* 0x2B04F995: mov ecx, dword ptr [0x2b0b515c] */ 37556 edx = MEM32(ecx); /* 0x2B04F99B: mov edx, dword ptr [ecx] */ 37557 PUSH32(esp, edx); /* 0x2B04F99D: push edx */ 37558 PUSH32(esp, 0); /* 0x2B04F99E: push 0 */ 37559 eax = edi + (-0x18); /* 0x2B04F9A0: lea eax, [edi - 0x18] */ 37560 PUSH32(esp, eax); /* 0x2B04F9A3: push eax */ 37561 ecx = esi + 0x8; /* 0x2B04F9A4: lea ecx, [esi + 8] */ 37562 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04F9A7: call dword ptr [0x2b0b5158] */ 37563 RECOMP_FLAGS_IN(); 37564 ecx = MEM32(edi + (-0x8)); /* 0x2B04F9AD: mov ecx, dword ptr [edi - 8] */ 37565 MEM32(esi + 0x1C) = ecx; /* 0x2B04F9B0: mov dword ptr [esi + 0x1c], ecx */ 37566 edx = MEM32(0x2B0E7E34); /* 0x2B04F9B3: mov edx, dword ptr [0x2b0e7e34] */ 37567 MEM32(esi + 0x28) = edx; /* 0x2B04F9B9: mov dword ptr [esi + 0x28], edx */ 37568 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Du); 37569 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37570 esi = esi + 0x2Du; /* 0x2B04F9BC: add esi, 0x2d */ 37571 _flag_k = FK_ADD; 37572 MEM8(esi) = (uint8_t)(0); /* 0x2B04F9BF: mov byte ptr [esi], 0 */ 37573 MEM8(esi) = (uint8_t)(1); /* 0x2B04F9C2: mov byte ptr [esi], 1 */ 37574 eax = MEM32(edi); /* 0x2B04F9C5: mov eax, dword ptr [edi] */ 37575 /* test eax, eax */ /* 0x2B04F9C7: test eax, eax */ 37576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 37577 _cf = 0; 37578 _flag_k = FK_TEST; 37579 RECOMP_BACKEDGE(); 37580 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04F8F4; /* 0x2B04F9C9: je 0x2b04f8f4 */ 37581 L_2B04F9CF: 37582 ecx = MEM32(edi + 0x4); /* 0x2B04F9CF: mov ecx, dword ptr [edi + 4] */ 37583 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 37584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37585 ecx = ecx - eax; /* 0x2B04F9D2: sub ecx, eax */ 37586 _flag_k = FK_CMP; 37587 /* cmp ecx, 1 */ /* 0x2B04F9D4: cmp ecx, 1 */ 37588 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 37589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37590 _flag_k = FK_CMP; 37591 RECOMP_BACKEDGE(); 37592 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F8F4; /* 0x2B04F9D7: jne 0x2b04f8f4 */ 37593 L_2B04F9DD: 37594 SET_LO8(edx, MEM8(eax)); /* 0x2B04F9DD: mov dl, byte ptr [eax] */ 37595 MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x2B04F9DF: mov byte ptr [esi], dl */ 37596 RECOMP_BACKEDGE(); 37597 goto L_2B04F8F4; /* 0x2B04F9E1: jmp 0x2b04f8f4 */ 37598 L_2B04F9E6: 37599 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 37600 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37601 esi = esi + 0x30u; /* 0x2B04F9E6: add esi, 0x30 */ 37602 _flag_k = FK_ADD; 37603 L_2B04F9E9: 37604 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F9E9: cmp esi, dword ptr [ebx + 8] */ 37605 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 37606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37607 _flag_k = FK_CMP; 37608 RECOMP_BACKEDGE(); 37609 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F91D; /* 0x2B04F9EC: jne 0x2b04f91d */ 37610 L_2B04F9F2: 37611 eax = MEM32(eax + 0x100); /* 0x2B04F9F2: mov eax, dword ptr [eax + 0x100] */ 37612 edi = MEM32(eax + 0x8); /* 0x2B04F9F8: mov edi, dword ptr [eax + 8] */ 37613 esi = MEM32(eax + 0x4); /* 0x2B04F9FB: mov esi, dword ptr [eax + 4] */ 37614 ecx = edi; /* 0x2B04F9FE: mov ecx, edi */ 37615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 37616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37617 ecx = ecx - esi; /* 0x2B04FA00: sub ecx, esi */ 37618 _flag_k = FK_CMP; 37619 eax = 0x2AAAAAABu; /* 0x2B04FA02: mov eax, 0x2aaaaaab */ 37620 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA07: imul ecx */ 37621 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 37622 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 37623 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FA09: sar edx, 3 */ 37624 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37625 edx = (uint32_t)((int32_t)edx >> 3u); 37626 eax = edx; /* 0x2B04FA0C: mov eax, edx */ 37627 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FA0E: shr eax, 0x1f */ 37628 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37629 eax = eax >> 31u; /* 0x2B04FA0E: shr eax, 0x1f */ 37630 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 37631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37632 edx = edx + eax; /* 0x2B04FA11: add edx, eax */ 37633 _flag_k = FK_ADD; 37634 /* cmp edx, 0x10u */ /* 0x2B04FA13: cmp edx, 0x10 */ 37635 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 37636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37637 _flag_k = FK_CMP; 37638 MEM32(ebp + 0x8) = edi; /* 0x2B04FA16: mov dword ptr [ebp + 8], edi */ 37639 MEM32(ebp + (-0x14)) = esi; /* 0x2B04FA19: mov dword ptr [ebp - 0x14], esi */ 37640 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FA1C: jg 0x2b04fa2f */ 37641 L_2B04FA1E: 37642 PUSH32(esp, 0); /* 0x2B04FA1E: push 0 */ 37643 PUSH32(esp, edi); /* 0x2B04FA20: push edi */ 37644 PUSH32(esp, esi); /* 0x2B04FA21: push esi */ 37645 RECOMP_ICALL(0x2B054410u); /* 0x2B04FA22: call 0x2b054410 */ /* not lifted */ 37646 RECOMP_FLAGS_IN(); 37647 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 37648 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37649 esp = esp + 0xCu; /* 0x2B04FA27: add esp, 0xc */ 37650 _flag_k = FK_ADD; 37651 goto L_2B04FBB4; /* 0x2B04FA2A: jmp 0x2b04fbb4 */ 37652 L_2B04FA2F: 37653 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37655 esp = esp - 0x30u; /* 0x2B04FA2F: sub esp, 0x30 */ 37656 _flag_k = FK_CMP; 37657 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA32: mov dword ptr [ebp - 0x18], esp */ 37658 ebx = esp; /* 0x2B04FA35: mov ebx, esp */ 37659 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37661 esp = esp - 0x30u; /* 0x2B04FA37: sub esp, 0x30 */ 37662 _flag_k = FK_CMP; 37663 edx = edi + (-0x30); /* 0x2B04FA3A: lea edx, [edi - 0x30] */ 37664 ecx = esp; /* 0x2B04FA3D: mov ecx, esp */ 37665 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA3F: mov dword ptr [ebp - 0x18], esp */ 37666 PUSH32(esp, edx); /* 0x2B04FA42: push edx */ 37667 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA43: call 0x2b053940 */ /* not lifted */ 37668 RECOMP_FLAGS_IN(); 37669 ecx = edi; /* 0x2B04FA48: mov ecx, edi */ 37670 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 37671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37672 ecx = ecx - esi; /* 0x2B04FA4A: sub ecx, esi */ 37673 _flag_k = FK_CMP; 37674 eax = 0x2AAAAAABu; /* 0x2B04FA4C: mov eax, 0x2aaaaaab */ 37675 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA51: imul ecx */ 37676 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 37677 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 37678 eax = edx; /* 0x2B04FA53: mov eax, edx */ 37679 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B04FA55: sar eax, 3 */ 37680 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37681 eax = (uint32_t)((int32_t)eax >> 3u); 37682 ecx = eax; /* 0x2B04FA58: mov ecx, eax */ 37683 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FA5A: shr ecx, 0x1f */ 37684 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37685 ecx = ecx >> 31u; /* 0x2B04FA5A: shr ecx, 0x1f */ 37686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 37687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37688 eax = eax + ecx; /* 0x2B04FA5D: add eax, ecx */ 37689 _flag_k = FK_ADD; 37690 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B04FA5F: cdq */ 37691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 37692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37693 eax = eax - edx; /* 0x2B04FA60: sub eax, edx */ 37694 _flag_k = FK_CMP; 37695 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B04FA62: sar eax, 1 */ 37696 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37697 eax = (uint32_t)((int32_t)eax >> 1u); 37698 edx = eax + eax * 2; /* 0x2B04FA64: lea edx, [eax + eax*2] */ 37699 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37701 esp = esp - 0x30u; /* 0x2B04FA67: sub esp, 0x30 */ 37702 _flag_k = FK_CMP; 37703 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B04FA6A: shl edx, 4 */ 37704 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37705 edx = edx << 4u; /* 0x2B04FA6A: shl edx, 4 */ 37706 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 37707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37708 edx = edx + esi; /* 0x2B04FA6D: add edx, esi */ 37709 _flag_k = FK_ADD; 37710 ecx = esp; /* 0x2B04FA6F: mov ecx, esp */ 37711 MEM32(ebp + (-0x1C)) = esp; /* 0x2B04FA71: mov dword ptr [ebp - 0x1c], esp */ 37712 PUSH32(esp, edx); /* 0x2B04FA74: push edx */ 37713 MEM32(ebp + (-0x4)) = 1; /* 0x2B04FA75: mov dword ptr [ebp - 4], 1 */ 37714 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA7C: call 0x2b053940 */ /* not lifted */ 37715 RECOMP_FLAGS_IN(); 37716 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37718 esp = esp - 0x30u; /* 0x2B04FA81: sub esp, 0x30 */ 37719 _flag_k = FK_CMP; 37720 ecx = esp; /* 0x2B04FA84: mov ecx, esp */ 37721 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FA86: mov dword ptr [ebp - 0x20], esp */ 37722 PUSH32(esp, esi); /* 0x2B04FA89: push esi */ 37723 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04FA8A: mov byte ptr [ebp - 4], 2 */ 37724 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA8E: call 0x2b053940 */ /* not lifted */ 37725 RECOMP_FLAGS_IN(); 37726 PUSH32(esp, ebx); /* 0x2B04FA93: push ebx */ 37727 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04FA94: mov dword ptr [ebp - 4], 0xffffffff */ 37728 RECOMP_ICALL(0x2B054620u); /* 0x2B04FA9B: call 0x2b054620 */ /* not lifted */ 37729 RECOMP_FLAGS_IN(); 37730 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 37731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37732 esp = esp + 0x94u; /* 0x2B04FAA0: add esp, 0x94 */ 37733 _flag_k = FK_ADD; 37734 PUSH32(esp, edi); /* 0x2B04FAA6: push edi */ 37735 PUSH32(esp, esi); /* 0x2B04FAA7: push esi */ 37736 RECOMP_ICALL(0x2B054940u); /* 0x2B04FAA8: call 0x2b054940 */ /* not lifted */ 37737 RECOMP_FLAGS_IN(); 37738 ebx = eax; /* 0x2B04FAAD: mov ebx, eax */ 37739 ecx = edi; /* 0x2B04FAAF: mov ecx, edi */ 37740 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 37741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37742 ecx = ecx - ebx; /* 0x2B04FAB1: sub ecx, ebx */ 37743 _flag_k = FK_CMP; 37744 eax = 0x2AAAAAABu; /* 0x2B04FAB3: mov eax, 0x2aaaaaab */ 37745 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FAB8: imul ecx */ 37746 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 37747 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 37748 ecx = edx; /* 0x2B04FABA: mov ecx, edx */ 37749 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B04FABC: sar ecx, 3 */ 37750 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37751 ecx = (uint32_t)((int32_t)ecx >> 3u); 37752 eax = ecx; /* 0x2B04FABF: mov eax, ecx */ 37753 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAC1: shr eax, 0x1f */ 37754 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37755 eax = eax >> 31u; /* 0x2B04FAC1: shr eax, 0x1f */ 37756 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 37757 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37758 ecx = ecx + eax; /* 0x2B04FAC4: add ecx, eax */ 37759 _flag_k = FK_ADD; 37760 edx = ebx; /* 0x2B04FAC6: mov edx, ebx */ 37761 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 37762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37763 edx = edx - esi; /* 0x2B04FAC8: sub edx, esi */ 37764 _flag_k = FK_CMP; 37765 eax = 0x2AAAAAABu; /* 0x2B04FACA: mov eax, 0x2aaaaaab */ 37766 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B04FACF: imul edx */ 37767 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 37768 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 37769 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FAD1: sar edx, 3 */ 37770 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37771 edx = (uint32_t)((int32_t)edx >> 3u); 37772 eax = edx; /* 0x2B04FAD4: mov eax, edx */ 37773 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAD6: shr eax, 0x1f */ 37774 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37775 eax = eax >> 31u; /* 0x2B04FAD6: shr eax, 0x1f */ 37776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 37777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37778 esp = esp + 0x38u; /* 0x2B04FAD9: add esp, 0x38 */ 37779 _flag_k = FK_ADD; 37780 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 37781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37782 edx = edx + eax; /* 0x2B04FADC: add edx, eax */ 37783 _flag_k = FK_ADD; 37784 /* cmp ecx, edx */ /* 0x2B04FADE: cmp ecx, edx */ 37785 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 37786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37787 _flag_k = FK_CMP; 37788 PUSH32(esp, 0); /* 0x2B04FAE0: push 0 */ 37789 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FAF2; /* 0x2B04FAE2: jg 0x2b04faf2 */ 37790 L_2B04FAE4: 37791 PUSH32(esp, edi); /* 0x2B04FAE4: push edi */ 37792 PUSH32(esp, ebx); /* 0x2B04FAE5: push ebx */ 37793 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAE6: call 0x2b053e60 */ /* not lifted */ 37794 RECOMP_FLAGS_IN(); 37795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 37796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37797 esp = esp + 0xCu; /* 0x2B04FAEB: add esp, 0xc */ 37798 _flag_k = FK_ADD; 37799 edi = ebx; /* 0x2B04FAEE: mov edi, ebx */ 37800 goto L_2B04FAFE; /* 0x2B04FAF0: jmp 0x2b04fafe */ 37801 L_2B04FAF2: 37802 PUSH32(esp, ebx); /* 0x2B04FAF2: push ebx */ 37803 PUSH32(esp, esi); /* 0x2B04FAF3: push esi */ 37804 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAF4: call 0x2b053e60 */ /* not lifted */ 37805 RECOMP_FLAGS_IN(); 37806 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 37807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37808 esp = esp + 0xCu; /* 0x2B04FAF9: add esp, 0xc */ 37809 _flag_k = FK_ADD; 37810 esi = ebx; /* 0x2B04FAFC: mov esi, ebx */ 37811 L_2B04FAFE: 37812 ecx = edi; /* 0x2B04FAFE: mov ecx, edi */ 37813 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 37814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37815 ecx = ecx - esi; /* 0x2B04FB00: sub ecx, esi */ 37816 _flag_k = FK_CMP; 37817 eax = 0x2AAAAAABu; /* 0x2B04FB02: mov eax, 0x2aaaaaab */ 37818 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FB07: imul ecx */ 37819 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 37820 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 37821 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FB09: sar edx, 3 */ 37822 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37823 edx = (uint32_t)((int32_t)edx >> 3u); 37824 ecx = edx; /* 0x2B04FB0C: mov ecx, edx */ 37825 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FB0E: shr ecx, 0x1f */ 37826 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 37827 ecx = ecx >> 31u; /* 0x2B04FB0E: shr ecx, 0x1f */ 37828 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 37829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37830 edx = edx + ecx; /* 0x2B04FB11: add edx, ecx */ 37831 _flag_k = FK_ADD; 37832 /* cmp edx, 0x10u */ /* 0x2B04FB13: cmp edx, 0x10 */ 37833 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 37834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37835 _flag_k = FK_CMP; 37836 RECOMP_BACKEDGE(); 37837 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FB16: jg 0x2b04fa2f */ 37838 L_2B04FB1C: 37839 esi = MEM32(ebp + (-0x14)); /* 0x2B04FB1C: mov esi, dword ptr [ebp - 0x14] */ 37840 PUSH32(esp, 0); /* 0x2B04FB1F: push 0 */ 37841 ebx = esi + 0x300; /* 0x2B04FB21: lea ebx, [esi + 0x300] */ 37842 PUSH32(esp, ebx); /* 0x2B04FB27: push ebx */ 37843 PUSH32(esp, esi); /* 0x2B04FB28: push esi */ 37844 RECOMP_ICALL(0x2B054410u); /* 0x2B04FB29: call 0x2b054410 */ /* not lifted */ 37845 RECOMP_FLAGS_IN(); 37846 eax = MEM32(ebp + 0x8); /* 0x2B04FB2E: mov eax, dword ptr [ebp + 8] */ 37847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 37848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37849 esp = esp + 0xCu; /* 0x2B04FB31: add esp, 0xc */ 37850 _flag_k = FK_ADD; 37851 /* cmp ebx, eax */ /* 0x2B04FB34: cmp ebx, eax */ 37852 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 37853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37854 _flag_k = FK_CMP; 37855 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FBB4; /* 0x2B04FB36: je 0x2b04fbb4 */ 37856 L_2B04FB38: 37857 esi = ebx + 0x8; /* 0x2B04FB38: lea esi, [ebx + 8] */ 37858 L_2B04FB3B: 37859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 37860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37861 esp = esp - 0x30u; /* 0x2B04FB3B: sub esp, 0x30 */ 37862 _flag_k = FK_CMP; 37863 edi = esp; /* 0x2B04FB3E: mov edi, esp */ 37864 /* cmp edi, ebx */ /* 0x2B04FB40: cmp edi, ebx */ 37865 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 37866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37867 _flag_k = FK_CMP; 37868 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FB42: mov dword ptr [ebp - 0x20], esp */ 37869 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FB51; /* 0x2B04FB45: je 0x2b04fb51 */ 37870 L_2B04FB47: 37871 edx = MEM32(ebx); /* 0x2B04FB47: mov edx, dword ptr [ebx] */ 37872 MEM32(edi) = edx; /* 0x2B04FB49: mov dword ptr [edi], edx */ 37873 eax = MEM32(esi + (-0x4)); /* 0x2B04FB4B: mov eax, dword ptr [esi - 4] */ 37874 MEM32(edi + 0x4) = eax; /* 0x2B04FB4E: mov dword ptr [edi + 4], eax */ 37875 L_2B04FB51: 37876 SET_LO8(edx, MEM8(esi)); /* 0x2B04FB51: mov dl, byte ptr [esi] */ 37877 ecx = edi + 0x8; /* 0x2B04FB53: lea ecx, [edi + 8] */ 37878 PUSH32(esp, 0); /* 0x2B04FB56: push 0 */ 37879 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2B04FB58: mov byte ptr [ecx], dl */ 37880 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04FB5A: call dword ptr [0x2b0b514c] */ 37881 RECOMP_FLAGS_IN(); 37882 eax = MEM32(0x2B0B515C); /* 0x2B04FB60: mov eax, dword ptr [0x2b0b515c] */ 37883 ecx = MEM32(eax); /* 0x2B04FB65: mov ecx, dword ptr [eax] */ 37884 PUSH32(esp, ecx); /* 0x2B04FB67: push ecx */ 37885 PUSH32(esp, 0); /* 0x2B04FB68: push 0 */ 37886 PUSH32(esp, esi); /* 0x2B04FB6A: push esi */ 37887 ecx = edi + 0x8; /* 0x2B04FB6B: lea ecx, [edi + 8] */ 37888 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04FB6E: call dword ptr [0x2b0b5158] */ 37889 RECOMP_FLAGS_IN(); 37890 edx = MEM32(esi + 0x10); /* 0x2B04FB74: mov edx, dword ptr [esi + 0x10] */ 37891 MEM32(edi + 0x18) = edx; /* 0x2B04FB77: mov dword ptr [edi + 0x18], edx */ 37892 eax = MEM32(esi + 0x14); /* 0x2B04FB7A: mov eax, dword ptr [esi + 0x14] */ 37893 MEM32(edi + 0x1C) = eax; /* 0x2B04FB7D: mov dword ptr [edi + 0x1c], eax */ 37894 ecx = MEM32(esi + 0x18); /* 0x2B04FB80: mov ecx, dword ptr [esi + 0x18] */ 37895 MEM32(edi + 0x20) = ecx; /* 0x2B04FB83: mov dword ptr [edi + 0x20], ecx */ 37896 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x2B04FB86: mov dl, byte ptr [esi + 0x1c] */ 37897 MEM8(edi + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B04FB89: mov byte ptr [edi + 0x24], dl */ 37898 eax = MEM32(esi + 0x20); /* 0x2B04FB8C: mov eax, dword ptr [esi + 0x20] */ 37899 MEM32(edi + 0x28) = eax; /* 0x2B04FB8F: mov dword ptr [edi + 0x28], eax */ 37900 SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x2B04FB92: mov cl, byte ptr [esi + 0x24] */ 37901 MEM8(edi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x2B04FB95: mov byte ptr [edi + 0x2c], cl */ 37902 SET_LO8(edx, MEM8(esi + 0x25)); /* 0x2B04FB98: mov dl, byte ptr [esi + 0x25] */ 37903 PUSH32(esp, ebx); /* 0x2B04FB9B: push ebx */ 37904 MEM8(edi + 0x2D) = (uint8_t)(LO8(edx)); /* 0x2B04FB9C: mov byte ptr [edi + 0x2d], dl */ 37905 RECOMP_ICALL(0x2B053F90u); /* 0x2B04FB9F: call 0x2b053f90 */ /* not lifted */ 37906 RECOMP_FLAGS_IN(); 37907 eax = MEM32(ebp + 0x8); /* 0x2B04FBA4: mov eax, dword ptr [ebp + 8] */ 37908 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 37909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37910 ebx = ebx + 0x30u; /* 0x2B04FBA7: add ebx, 0x30 */ 37911 _flag_k = FK_ADD; 37912 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 37913 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37914 esp = esp + 0x34u; /* 0x2B04FBAA: add esp, 0x34 */ 37915 _flag_k = FK_ADD; 37916 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 37917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37918 esi = esi + 0x30u; /* 0x2B04FBAD: add esi, 0x30 */ 37919 _flag_k = FK_ADD; 37920 /* cmp ebx, eax */ /* 0x2B04FBB0: cmp ebx, eax */ 37921 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 37922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37923 _flag_k = FK_CMP; 37924 RECOMP_BACKEDGE(); 37925 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FB3B; /* 0x2B04FBB2: jne 0x2b04fb3b */ 37926 L_2B04FBB4: 37927 esi = MEM32(ebp + (-0x10)); /* 0x2B04FBB4: mov esi, dword ptr [ebp - 0x10] */ 37928 ecx = esi; /* 0x2B04FBB7: mov ecx, esi */ 37929 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FBB9: call 0x2b0510b0 */ /* not lifted */ 37930 RECOMP_FLAGS_IN(); 37931 ecx = esi; /* 0x2B04FBBE: mov ecx, esi */ 37932 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FBC0: call 0x2b03a2b0 */ /* not lifted */ 37933 RECOMP_FLAGS_IN(); 37934 eax = MEM32(0x2B0E7E34); /* 0x2B04FBC5: mov eax, dword ptr [0x2b0e7e34] */ 37935 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FBCA: mov ecx, dword ptr [ebp - 0xc] */ 37936 edi = POP32_VAL(esp); /* 0x2B04FBCD: pop edi */ 37937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 37938 eax = eax + 1; /* 0x2B04FBCE: inc eax */ 37939 _flag_k = FK_INC; 37940 esi = POP32_VAL(esp); /* 0x2B04FBCF: pop esi */ 37941 MEM32(0x2B0E7E34) = eax; /* 0x2B04FBD0: mov dword ptr [0x2b0e7e34], eax */ 37942 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FBD5: mov dword ptr fs:[0], ecx */ 37943 ebx = POP32_VAL(esp); /* 0x2B04FBDC: pop ebx */ 37944 esp = ebp; /* 0x2B04FBDD: mov esp, ebp */ 37945 ebp = POP32_VAL(esp); /* 0x2B04FBDF: pop ebp */ 37946 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04FBE0: ret 4 */ 37947 RECOMP_REGS_OUT(); 37948 } 37949 37950 void sub_2B04F9E9(void) { 37951 int _fpu_cmp = 0; 37952 uint32_t _cf = 0; 37953 int _df = 1; 37954 uint32_t _flag_k = FK_NONE; 37955 uint32_t _flag_a = 0, _flag_b = 0; 37956 uint32_t _itail_tgt = 0; 37957 RECOMP_REGS_LOCALS 37958 RECOMP_ENTER(0x2B04F9E9u); 37959 37960 goto L_2B04F9E9; 37961 L_2B04F91D: 37962 ecx = MEM32(esi + 0x18); /* 0x2B04F91D: mov ecx, dword ptr [esi + 0x18] */ 37963 /* test ecx, ecx */ /* 0x2B04F920: test ecx, ecx */ 37964 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 37965 _cf = 0; 37966 _flag_k = FK_TEST; 37967 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F922: jne 0x2b04f9e6 */ 37968 L_2B04F928: 37969 ecx = MEM32(esi + 0x28); /* 0x2B04F928: mov ecx, dword ptr [esi + 0x28] */ 37970 /* cmp ecx, MEM32(0x2B0E7E34) */ /* 0x2B04F92B: cmp ecx, dword ptr [0x2b0e7e34] */ 37971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x2B0E7E34)); 37972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37973 _flag_k = FK_CMP; 37974 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F9E6; /* 0x2B04F931: je 0x2b04f9e6 */ 37975 L_2B04F937: 37976 eax = MEM32(ebx + 0x8); /* 0x2B04F937: mov eax, dword ptr [ebx + 8] */ 37977 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 37978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37979 esi = esi + 0x30u; /* 0x2B04F93A: add esi, 0x30 */ 37980 _flag_k = FK_ADD; 37981 /* cmp esi, eax */ /* 0x2B04F93D: cmp esi, eax */ 37982 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 37983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 37984 _flag_k = FK_CMP; 37985 MEM32(ebp + 0x8) = eax; /* 0x2B04F93F: mov dword ptr [ebp + 8], eax */ 37986 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F95C; /* 0x2B04F942: je 0x2b04f95c */ 37987 L_2B04F944: 37988 edi = esi + (-0x30); /* 0x2B04F944: lea edi, [esi - 0x30] */ 37989 L_2B04F947: 37990 PUSH32(esp, esi); /* 0x2B04F947: push esi */ 37991 ecx = edi; /* 0x2B04F948: mov ecx, edi */ 37992 RECOMP_ICALL(0x2B053640u); /* 0x2B04F94A: call 0x2b053640 */ /* not lifted */ 37993 RECOMP_FLAGS_IN(); 37994 eax = MEM32(ebp + 0x8); /* 0x2B04F94F: mov eax, dword ptr [ebp + 8] */ 37995 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 37996 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 37997 esi = esi + 0x30u; /* 0x2B04F952: add esi, 0x30 */ 37998 _flag_k = FK_ADD; 37999 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 38000 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38001 edi = edi + 0x30u; /* 0x2B04F955: add edi, 0x30 */ 38002 _flag_k = FK_ADD; 38003 /* cmp esi, eax */ /* 0x2B04F958: cmp esi, eax */ 38004 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 38005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38006 _flag_k = FK_CMP; 38007 RECOMP_BACKEDGE(); 38008 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F947; /* 0x2B04F95A: jne 0x2b04f947 */ 38009 L_2B04F95C: 38010 eax = MEM32(ebx + 0x8); /* 0x2B04F95C: mov eax, dword ptr [ebx + 8] */ 38011 esi = eax + (-0x30); /* 0x2B04F95F: lea esi, [eax - 0x30] */ 38012 /* cmp esi, eax */ /* 0x2B04F962: cmp esi, eax */ 38013 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 38014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38015 _flag_k = FK_CMP; 38016 MEM32(ebp + 0x8) = eax; /* 0x2B04F964: mov dword ptr [ebp + 8], eax */ 38017 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04F983; /* 0x2B04F967: je 0x2b04f983 */ 38018 L_2B04F969: 38019 edi = esi + 0x8; /* 0x2B04F969: lea edi, [esi + 8] */ 38020 L_2B04F96C: 38021 PUSH32(esp, 1); /* 0x2B04F96C: push 1 */ 38022 ecx = edi; /* 0x2B04F96E: mov ecx, edi */ 38023 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04F970: call dword ptr [0x2b0b514c] */ 38024 RECOMP_FLAGS_IN(); 38025 eax = MEM32(ebp + 0x8); /* 0x2B04F976: mov eax, dword ptr [ebp + 8] */ 38026 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 38027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38028 esi = esi + 0x30u; /* 0x2B04F979: add esi, 0x30 */ 38029 _flag_k = FK_ADD; 38030 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 38031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38032 edi = edi + 0x30u; /* 0x2B04F97C: add edi, 0x30 */ 38033 _flag_k = FK_ADD; 38034 /* cmp esi, eax */ /* 0x2B04F97F: cmp esi, eax */ 38035 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 38036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38037 _flag_k = FK_CMP; 38038 RECOMP_BACKEDGE(); 38039 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F96C; /* 0x2B04F981: jne 0x2b04f96c */ 38040 L_2B04F983: 38041 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0xFFFFFFD0u); 38042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38043 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0xFFFFFFD0u; /* 0x2B04F983: add dword ptr [ebx + 8], -0x30 */ 38044 _flag_k = FK_ADD; 38045 eax = MEM32(ebp + (-0x10)); /* 0x2B04F987: mov eax, dword ptr [ebp - 0x10] */ 38046 ebx = MEM32(eax + 0x100); /* 0x2B04F98A: mov ebx, dword ptr [eax + 0x100] */ 38047 esi = MEM32(ebx + 0x4); /* 0x2B04F990: mov esi, dword ptr [ebx + 4] */ 38048 goto L_2B04F9E9; /* 0x2B04F993: jmp 0x2b04f9e9 */ 38049 L_2B04F9E6: 38050 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 38051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38052 esi = esi + 0x30u; /* 0x2B04F9E6: add esi, 0x30 */ 38053 _flag_k = FK_ADD; 38054 L_2B04F9E9: 38055 /* cmp esi, MEM32(ebx + 0x8) */ /* 0x2B04F9E9: cmp esi, dword ptr [ebx + 8] */ 38056 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 38057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38058 _flag_k = FK_CMP; 38059 RECOMP_BACKEDGE(); 38060 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04F91D; /* 0x2B04F9EC: jne 0x2b04f91d */ 38061 L_2B04F9F2: 38062 eax = MEM32(eax + 0x100); /* 0x2B04F9F2: mov eax, dword ptr [eax + 0x100] */ 38063 edi = MEM32(eax + 0x8); /* 0x2B04F9F8: mov edi, dword ptr [eax + 8] */ 38064 esi = MEM32(eax + 0x4); /* 0x2B04F9FB: mov esi, dword ptr [eax + 4] */ 38065 ecx = edi; /* 0x2B04F9FE: mov ecx, edi */ 38066 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 38067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38068 ecx = ecx - esi; /* 0x2B04FA00: sub ecx, esi */ 38069 _flag_k = FK_CMP; 38070 eax = 0x2AAAAAABu; /* 0x2B04FA02: mov eax, 0x2aaaaaab */ 38071 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA07: imul ecx */ 38072 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38073 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38074 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FA09: sar edx, 3 */ 38075 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38076 edx = (uint32_t)((int32_t)edx >> 3u); 38077 eax = edx; /* 0x2B04FA0C: mov eax, edx */ 38078 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FA0E: shr eax, 0x1f */ 38079 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38080 eax = eax >> 31u; /* 0x2B04FA0E: shr eax, 0x1f */ 38081 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 38082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38083 edx = edx + eax; /* 0x2B04FA11: add edx, eax */ 38084 _flag_k = FK_ADD; 38085 /* cmp edx, 0x10u */ /* 0x2B04FA13: cmp edx, 0x10 */ 38086 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 38087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38088 _flag_k = FK_CMP; 38089 MEM32(ebp + 0x8) = edi; /* 0x2B04FA16: mov dword ptr [ebp + 8], edi */ 38090 MEM32(ebp + (-0x14)) = esi; /* 0x2B04FA19: mov dword ptr [ebp - 0x14], esi */ 38091 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FA1C: jg 0x2b04fa2f */ 38092 L_2B04FA1E: 38093 PUSH32(esp, 0); /* 0x2B04FA1E: push 0 */ 38094 PUSH32(esp, edi); /* 0x2B04FA20: push edi */ 38095 PUSH32(esp, esi); /* 0x2B04FA21: push esi */ 38096 RECOMP_ICALL(0x2B054410u); /* 0x2B04FA22: call 0x2b054410 */ /* not lifted */ 38097 RECOMP_FLAGS_IN(); 38098 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38100 esp = esp + 0xCu; /* 0x2B04FA27: add esp, 0xc */ 38101 _flag_k = FK_ADD; 38102 goto L_2B04FBB4; /* 0x2B04FA2A: jmp 0x2b04fbb4 */ 38103 L_2B04FA2F: 38104 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38106 esp = esp - 0x30u; /* 0x2B04FA2F: sub esp, 0x30 */ 38107 _flag_k = FK_CMP; 38108 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA32: mov dword ptr [ebp - 0x18], esp */ 38109 ebx = esp; /* 0x2B04FA35: mov ebx, esp */ 38110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38112 esp = esp - 0x30u; /* 0x2B04FA37: sub esp, 0x30 */ 38113 _flag_k = FK_CMP; 38114 edx = edi + (-0x30); /* 0x2B04FA3A: lea edx, [edi - 0x30] */ 38115 ecx = esp; /* 0x2B04FA3D: mov ecx, esp */ 38116 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA3F: mov dword ptr [ebp - 0x18], esp */ 38117 PUSH32(esp, edx); /* 0x2B04FA42: push edx */ 38118 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA43: call 0x2b053940 */ /* not lifted */ 38119 RECOMP_FLAGS_IN(); 38120 ecx = edi; /* 0x2B04FA48: mov ecx, edi */ 38121 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 38122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38123 ecx = ecx - esi; /* 0x2B04FA4A: sub ecx, esi */ 38124 _flag_k = FK_CMP; 38125 eax = 0x2AAAAAABu; /* 0x2B04FA4C: mov eax, 0x2aaaaaab */ 38126 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA51: imul ecx */ 38127 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38128 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38129 eax = edx; /* 0x2B04FA53: mov eax, edx */ 38130 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B04FA55: sar eax, 3 */ 38131 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38132 eax = (uint32_t)((int32_t)eax >> 3u); 38133 ecx = eax; /* 0x2B04FA58: mov ecx, eax */ 38134 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FA5A: shr ecx, 0x1f */ 38135 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38136 ecx = ecx >> 31u; /* 0x2B04FA5A: shr ecx, 0x1f */ 38137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 38138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38139 eax = eax + ecx; /* 0x2B04FA5D: add eax, ecx */ 38140 _flag_k = FK_ADD; 38141 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B04FA5F: cdq */ 38142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 38143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38144 eax = eax - edx; /* 0x2B04FA60: sub eax, edx */ 38145 _flag_k = FK_CMP; 38146 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B04FA62: sar eax, 1 */ 38147 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38148 eax = (uint32_t)((int32_t)eax >> 1u); 38149 edx = eax + eax * 2; /* 0x2B04FA64: lea edx, [eax + eax*2] */ 38150 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38152 esp = esp - 0x30u; /* 0x2B04FA67: sub esp, 0x30 */ 38153 _flag_k = FK_CMP; 38154 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B04FA6A: shl edx, 4 */ 38155 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38156 edx = edx << 4u; /* 0x2B04FA6A: shl edx, 4 */ 38157 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 38158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38159 edx = edx + esi; /* 0x2B04FA6D: add edx, esi */ 38160 _flag_k = FK_ADD; 38161 ecx = esp; /* 0x2B04FA6F: mov ecx, esp */ 38162 MEM32(ebp + (-0x1C)) = esp; /* 0x2B04FA71: mov dword ptr [ebp - 0x1c], esp */ 38163 PUSH32(esp, edx); /* 0x2B04FA74: push edx */ 38164 MEM32(ebp + (-0x4)) = 1; /* 0x2B04FA75: mov dword ptr [ebp - 4], 1 */ 38165 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA7C: call 0x2b053940 */ /* not lifted */ 38166 RECOMP_FLAGS_IN(); 38167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38169 esp = esp - 0x30u; /* 0x2B04FA81: sub esp, 0x30 */ 38170 _flag_k = FK_CMP; 38171 ecx = esp; /* 0x2B04FA84: mov ecx, esp */ 38172 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FA86: mov dword ptr [ebp - 0x20], esp */ 38173 PUSH32(esp, esi); /* 0x2B04FA89: push esi */ 38174 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04FA8A: mov byte ptr [ebp - 4], 2 */ 38175 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA8E: call 0x2b053940 */ /* not lifted */ 38176 RECOMP_FLAGS_IN(); 38177 PUSH32(esp, ebx); /* 0x2B04FA93: push ebx */ 38178 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04FA94: mov dword ptr [ebp - 4], 0xffffffff */ 38179 RECOMP_ICALL(0x2B054620u); /* 0x2B04FA9B: call 0x2b054620 */ /* not lifted */ 38180 RECOMP_FLAGS_IN(); 38181 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 38182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38183 esp = esp + 0x94u; /* 0x2B04FAA0: add esp, 0x94 */ 38184 _flag_k = FK_ADD; 38185 PUSH32(esp, edi); /* 0x2B04FAA6: push edi */ 38186 PUSH32(esp, esi); /* 0x2B04FAA7: push esi */ 38187 RECOMP_ICALL(0x2B054940u); /* 0x2B04FAA8: call 0x2b054940 */ /* not lifted */ 38188 RECOMP_FLAGS_IN(); 38189 ebx = eax; /* 0x2B04FAAD: mov ebx, eax */ 38190 ecx = edi; /* 0x2B04FAAF: mov ecx, edi */ 38191 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 38192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38193 ecx = ecx - ebx; /* 0x2B04FAB1: sub ecx, ebx */ 38194 _flag_k = FK_CMP; 38195 eax = 0x2AAAAAABu; /* 0x2B04FAB3: mov eax, 0x2aaaaaab */ 38196 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FAB8: imul ecx */ 38197 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38198 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38199 ecx = edx; /* 0x2B04FABA: mov ecx, edx */ 38200 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B04FABC: sar ecx, 3 */ 38201 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38202 ecx = (uint32_t)((int32_t)ecx >> 3u); 38203 eax = ecx; /* 0x2B04FABF: mov eax, ecx */ 38204 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAC1: shr eax, 0x1f */ 38205 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38206 eax = eax >> 31u; /* 0x2B04FAC1: shr eax, 0x1f */ 38207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 38208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38209 ecx = ecx + eax; /* 0x2B04FAC4: add ecx, eax */ 38210 _flag_k = FK_ADD; 38211 edx = ebx; /* 0x2B04FAC6: mov edx, ebx */ 38212 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 38213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38214 edx = edx - esi; /* 0x2B04FAC8: sub edx, esi */ 38215 _flag_k = FK_CMP; 38216 eax = 0x2AAAAAABu; /* 0x2B04FACA: mov eax, 0x2aaaaaab */ 38217 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B04FACF: imul edx */ 38218 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38219 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38220 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FAD1: sar edx, 3 */ 38221 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38222 edx = (uint32_t)((int32_t)edx >> 3u); 38223 eax = edx; /* 0x2B04FAD4: mov eax, edx */ 38224 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAD6: shr eax, 0x1f */ 38225 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38226 eax = eax >> 31u; /* 0x2B04FAD6: shr eax, 0x1f */ 38227 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 38228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38229 esp = esp + 0x38u; /* 0x2B04FAD9: add esp, 0x38 */ 38230 _flag_k = FK_ADD; 38231 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 38232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38233 edx = edx + eax; /* 0x2B04FADC: add edx, eax */ 38234 _flag_k = FK_ADD; 38235 /* cmp ecx, edx */ /* 0x2B04FADE: cmp ecx, edx */ 38236 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 38237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38238 _flag_k = FK_CMP; 38239 PUSH32(esp, 0); /* 0x2B04FAE0: push 0 */ 38240 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FAF2; /* 0x2B04FAE2: jg 0x2b04faf2 */ 38241 L_2B04FAE4: 38242 PUSH32(esp, edi); /* 0x2B04FAE4: push edi */ 38243 PUSH32(esp, ebx); /* 0x2B04FAE5: push ebx */ 38244 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAE6: call 0x2b053e60 */ /* not lifted */ 38245 RECOMP_FLAGS_IN(); 38246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38248 esp = esp + 0xCu; /* 0x2B04FAEB: add esp, 0xc */ 38249 _flag_k = FK_ADD; 38250 edi = ebx; /* 0x2B04FAEE: mov edi, ebx */ 38251 goto L_2B04FAFE; /* 0x2B04FAF0: jmp 0x2b04fafe */ 38252 L_2B04FAF2: 38253 PUSH32(esp, ebx); /* 0x2B04FAF2: push ebx */ 38254 PUSH32(esp, esi); /* 0x2B04FAF3: push esi */ 38255 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAF4: call 0x2b053e60 */ /* not lifted */ 38256 RECOMP_FLAGS_IN(); 38257 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38259 esp = esp + 0xCu; /* 0x2B04FAF9: add esp, 0xc */ 38260 _flag_k = FK_ADD; 38261 esi = ebx; /* 0x2B04FAFC: mov esi, ebx */ 38262 L_2B04FAFE: 38263 ecx = edi; /* 0x2B04FAFE: mov ecx, edi */ 38264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 38265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38266 ecx = ecx - esi; /* 0x2B04FB00: sub ecx, esi */ 38267 _flag_k = FK_CMP; 38268 eax = 0x2AAAAAABu; /* 0x2B04FB02: mov eax, 0x2aaaaaab */ 38269 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FB07: imul ecx */ 38270 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38271 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38272 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FB09: sar edx, 3 */ 38273 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38274 edx = (uint32_t)((int32_t)edx >> 3u); 38275 ecx = edx; /* 0x2B04FB0C: mov ecx, edx */ 38276 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FB0E: shr ecx, 0x1f */ 38277 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38278 ecx = ecx >> 31u; /* 0x2B04FB0E: shr ecx, 0x1f */ 38279 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 38280 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38281 edx = edx + ecx; /* 0x2B04FB11: add edx, ecx */ 38282 _flag_k = FK_ADD; 38283 /* cmp edx, 0x10u */ /* 0x2B04FB13: cmp edx, 0x10 */ 38284 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 38285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38286 _flag_k = FK_CMP; 38287 RECOMP_BACKEDGE(); 38288 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FB16: jg 0x2b04fa2f */ 38289 L_2B04FB1C: 38290 esi = MEM32(ebp + (-0x14)); /* 0x2B04FB1C: mov esi, dword ptr [ebp - 0x14] */ 38291 PUSH32(esp, 0); /* 0x2B04FB1F: push 0 */ 38292 ebx = esi + 0x300; /* 0x2B04FB21: lea ebx, [esi + 0x300] */ 38293 PUSH32(esp, ebx); /* 0x2B04FB27: push ebx */ 38294 PUSH32(esp, esi); /* 0x2B04FB28: push esi */ 38295 RECOMP_ICALL(0x2B054410u); /* 0x2B04FB29: call 0x2b054410 */ /* not lifted */ 38296 RECOMP_FLAGS_IN(); 38297 eax = MEM32(ebp + 0x8); /* 0x2B04FB2E: mov eax, dword ptr [ebp + 8] */ 38298 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38300 esp = esp + 0xCu; /* 0x2B04FB31: add esp, 0xc */ 38301 _flag_k = FK_ADD; 38302 /* cmp ebx, eax */ /* 0x2B04FB34: cmp ebx, eax */ 38303 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 38304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38305 _flag_k = FK_CMP; 38306 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FBB4; /* 0x2B04FB36: je 0x2b04fbb4 */ 38307 L_2B04FB38: 38308 esi = ebx + 0x8; /* 0x2B04FB38: lea esi, [ebx + 8] */ 38309 L_2B04FB3B: 38310 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38312 esp = esp - 0x30u; /* 0x2B04FB3B: sub esp, 0x30 */ 38313 _flag_k = FK_CMP; 38314 edi = esp; /* 0x2B04FB3E: mov edi, esp */ 38315 /* cmp edi, ebx */ /* 0x2B04FB40: cmp edi, ebx */ 38316 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 38317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38318 _flag_k = FK_CMP; 38319 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FB42: mov dword ptr [ebp - 0x20], esp */ 38320 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FB51; /* 0x2B04FB45: je 0x2b04fb51 */ 38321 L_2B04FB47: 38322 edx = MEM32(ebx); /* 0x2B04FB47: mov edx, dword ptr [ebx] */ 38323 MEM32(edi) = edx; /* 0x2B04FB49: mov dword ptr [edi], edx */ 38324 eax = MEM32(esi + (-0x4)); /* 0x2B04FB4B: mov eax, dword ptr [esi - 4] */ 38325 MEM32(edi + 0x4) = eax; /* 0x2B04FB4E: mov dword ptr [edi + 4], eax */ 38326 L_2B04FB51: 38327 SET_LO8(edx, MEM8(esi)); /* 0x2B04FB51: mov dl, byte ptr [esi] */ 38328 ecx = edi + 0x8; /* 0x2B04FB53: lea ecx, [edi + 8] */ 38329 PUSH32(esp, 0); /* 0x2B04FB56: push 0 */ 38330 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2B04FB58: mov byte ptr [ecx], dl */ 38331 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04FB5A: call dword ptr [0x2b0b514c] */ 38332 RECOMP_FLAGS_IN(); 38333 eax = MEM32(0x2B0B515C); /* 0x2B04FB60: mov eax, dword ptr [0x2b0b515c] */ 38334 ecx = MEM32(eax); /* 0x2B04FB65: mov ecx, dword ptr [eax] */ 38335 PUSH32(esp, ecx); /* 0x2B04FB67: push ecx */ 38336 PUSH32(esp, 0); /* 0x2B04FB68: push 0 */ 38337 PUSH32(esp, esi); /* 0x2B04FB6A: push esi */ 38338 ecx = edi + 0x8; /* 0x2B04FB6B: lea ecx, [edi + 8] */ 38339 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04FB6E: call dword ptr [0x2b0b5158] */ 38340 RECOMP_FLAGS_IN(); 38341 edx = MEM32(esi + 0x10); /* 0x2B04FB74: mov edx, dword ptr [esi + 0x10] */ 38342 MEM32(edi + 0x18) = edx; /* 0x2B04FB77: mov dword ptr [edi + 0x18], edx */ 38343 eax = MEM32(esi + 0x14); /* 0x2B04FB7A: mov eax, dword ptr [esi + 0x14] */ 38344 MEM32(edi + 0x1C) = eax; /* 0x2B04FB7D: mov dword ptr [edi + 0x1c], eax */ 38345 ecx = MEM32(esi + 0x18); /* 0x2B04FB80: mov ecx, dword ptr [esi + 0x18] */ 38346 MEM32(edi + 0x20) = ecx; /* 0x2B04FB83: mov dword ptr [edi + 0x20], ecx */ 38347 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x2B04FB86: mov dl, byte ptr [esi + 0x1c] */ 38348 MEM8(edi + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B04FB89: mov byte ptr [edi + 0x24], dl */ 38349 eax = MEM32(esi + 0x20); /* 0x2B04FB8C: mov eax, dword ptr [esi + 0x20] */ 38350 MEM32(edi + 0x28) = eax; /* 0x2B04FB8F: mov dword ptr [edi + 0x28], eax */ 38351 SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x2B04FB92: mov cl, byte ptr [esi + 0x24] */ 38352 MEM8(edi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x2B04FB95: mov byte ptr [edi + 0x2c], cl */ 38353 SET_LO8(edx, MEM8(esi + 0x25)); /* 0x2B04FB98: mov dl, byte ptr [esi + 0x25] */ 38354 PUSH32(esp, ebx); /* 0x2B04FB9B: push ebx */ 38355 MEM8(edi + 0x2D) = (uint8_t)(LO8(edx)); /* 0x2B04FB9C: mov byte ptr [edi + 0x2d], dl */ 38356 RECOMP_ICALL(0x2B053F90u); /* 0x2B04FB9F: call 0x2b053f90 */ /* not lifted */ 38357 RECOMP_FLAGS_IN(); 38358 eax = MEM32(ebp + 0x8); /* 0x2B04FBA4: mov eax, dword ptr [ebp + 8] */ 38359 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 38360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38361 ebx = ebx + 0x30u; /* 0x2B04FBA7: add ebx, 0x30 */ 38362 _flag_k = FK_ADD; 38363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 38364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38365 esp = esp + 0x34u; /* 0x2B04FBAA: add esp, 0x34 */ 38366 _flag_k = FK_ADD; 38367 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 38368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38369 esi = esi + 0x30u; /* 0x2B04FBAD: add esi, 0x30 */ 38370 _flag_k = FK_ADD; 38371 /* cmp ebx, eax */ /* 0x2B04FBB0: cmp ebx, eax */ 38372 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 38373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38374 _flag_k = FK_CMP; 38375 RECOMP_BACKEDGE(); 38376 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FB3B; /* 0x2B04FBB2: jne 0x2b04fb3b */ 38377 L_2B04FBB4: 38378 esi = MEM32(ebp + (-0x10)); /* 0x2B04FBB4: mov esi, dword ptr [ebp - 0x10] */ 38379 ecx = esi; /* 0x2B04FBB7: mov ecx, esi */ 38380 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FBB9: call 0x2b0510b0 */ /* not lifted */ 38381 RECOMP_FLAGS_IN(); 38382 ecx = esi; /* 0x2B04FBBE: mov ecx, esi */ 38383 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FBC0: call 0x2b03a2b0 */ /* not lifted */ 38384 RECOMP_FLAGS_IN(); 38385 eax = MEM32(0x2B0E7E34); /* 0x2B04FBC5: mov eax, dword ptr [0x2b0e7e34] */ 38386 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FBCA: mov ecx, dword ptr [ebp - 0xc] */ 38387 edi = POP32_VAL(esp); /* 0x2B04FBCD: pop edi */ 38388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 38389 eax = eax + 1; /* 0x2B04FBCE: inc eax */ 38390 _flag_k = FK_INC; 38391 esi = POP32_VAL(esp); /* 0x2B04FBCF: pop esi */ 38392 MEM32(0x2B0E7E34) = eax; /* 0x2B04FBD0: mov dword ptr [0x2b0e7e34], eax */ 38393 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FBD5: mov dword ptr fs:[0], ecx */ 38394 ebx = POP32_VAL(esp); /* 0x2B04FBDC: pop ebx */ 38395 esp = ebp; /* 0x2B04FBDD: mov esp, ebp */ 38396 ebp = POP32_VAL(esp); /* 0x2B04FBDF: pop ebp */ 38397 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04FBE0: ret 4 */ 38398 RECOMP_REGS_OUT(); 38399 } 38400 38401 void sub_2B04FA2F(void) { 38402 int _fpu_cmp = 0; 38403 uint32_t _cf = 0; 38404 int _df = 1; 38405 uint32_t _flag_k = FK_NONE; 38406 uint32_t _flag_a = 0, _flag_b = 0; 38407 uint32_t _itail_tgt = 0; 38408 RECOMP_REGS_LOCALS 38409 RECOMP_ENTER(0x2B04FA2Fu); 38410 38411 L_2B04FA2F: 38412 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38414 esp = esp - 0x30u; /* 0x2B04FA2F: sub esp, 0x30 */ 38415 _flag_k = FK_CMP; 38416 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA32: mov dword ptr [ebp - 0x18], esp */ 38417 ebx = esp; /* 0x2B04FA35: mov ebx, esp */ 38418 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38420 esp = esp - 0x30u; /* 0x2B04FA37: sub esp, 0x30 */ 38421 _flag_k = FK_CMP; 38422 edx = edi + (-0x30); /* 0x2B04FA3A: lea edx, [edi - 0x30] */ 38423 ecx = esp; /* 0x2B04FA3D: mov ecx, esp */ 38424 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA3F: mov dword ptr [ebp - 0x18], esp */ 38425 PUSH32(esp, edx); /* 0x2B04FA42: push edx */ 38426 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA43: call 0x2b053940 */ /* not lifted */ 38427 RECOMP_FLAGS_IN(); 38428 ecx = edi; /* 0x2B04FA48: mov ecx, edi */ 38429 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 38430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38431 ecx = ecx - esi; /* 0x2B04FA4A: sub ecx, esi */ 38432 _flag_k = FK_CMP; 38433 eax = 0x2AAAAAABu; /* 0x2B04FA4C: mov eax, 0x2aaaaaab */ 38434 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA51: imul ecx */ 38435 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38436 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38437 eax = edx; /* 0x2B04FA53: mov eax, edx */ 38438 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B04FA55: sar eax, 3 */ 38439 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38440 eax = (uint32_t)((int32_t)eax >> 3u); 38441 ecx = eax; /* 0x2B04FA58: mov ecx, eax */ 38442 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FA5A: shr ecx, 0x1f */ 38443 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38444 ecx = ecx >> 31u; /* 0x2B04FA5A: shr ecx, 0x1f */ 38445 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 38446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38447 eax = eax + ecx; /* 0x2B04FA5D: add eax, ecx */ 38448 _flag_k = FK_ADD; 38449 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B04FA5F: cdq */ 38450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 38451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38452 eax = eax - edx; /* 0x2B04FA60: sub eax, edx */ 38453 _flag_k = FK_CMP; 38454 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B04FA62: sar eax, 1 */ 38455 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38456 eax = (uint32_t)((int32_t)eax >> 1u); 38457 edx = eax + eax * 2; /* 0x2B04FA64: lea edx, [eax + eax*2] */ 38458 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38460 esp = esp - 0x30u; /* 0x2B04FA67: sub esp, 0x30 */ 38461 _flag_k = FK_CMP; 38462 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B04FA6A: shl edx, 4 */ 38463 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38464 edx = edx << 4u; /* 0x2B04FA6A: shl edx, 4 */ 38465 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 38466 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38467 edx = edx + esi; /* 0x2B04FA6D: add edx, esi */ 38468 _flag_k = FK_ADD; 38469 ecx = esp; /* 0x2B04FA6F: mov ecx, esp */ 38470 MEM32(ebp + (-0x1C)) = esp; /* 0x2B04FA71: mov dword ptr [ebp - 0x1c], esp */ 38471 PUSH32(esp, edx); /* 0x2B04FA74: push edx */ 38472 MEM32(ebp + (-0x4)) = 1; /* 0x2B04FA75: mov dword ptr [ebp - 4], 1 */ 38473 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA7C: call 0x2b053940 */ /* not lifted */ 38474 RECOMP_FLAGS_IN(); 38475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38477 esp = esp - 0x30u; /* 0x2B04FA81: sub esp, 0x30 */ 38478 _flag_k = FK_CMP; 38479 ecx = esp; /* 0x2B04FA84: mov ecx, esp */ 38480 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FA86: mov dword ptr [ebp - 0x20], esp */ 38481 PUSH32(esp, esi); /* 0x2B04FA89: push esi */ 38482 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04FA8A: mov byte ptr [ebp - 4], 2 */ 38483 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA8E: call 0x2b053940 */ /* not lifted */ 38484 RECOMP_FLAGS_IN(); 38485 PUSH32(esp, ebx); /* 0x2B04FA93: push ebx */ 38486 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04FA94: mov dword ptr [ebp - 4], 0xffffffff */ 38487 RECOMP_ICALL(0x2B054620u); /* 0x2B04FA9B: call 0x2b054620 */ /* not lifted */ 38488 RECOMP_FLAGS_IN(); 38489 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 38490 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38491 esp = esp + 0x94u; /* 0x2B04FAA0: add esp, 0x94 */ 38492 _flag_k = FK_ADD; 38493 PUSH32(esp, edi); /* 0x2B04FAA6: push edi */ 38494 PUSH32(esp, esi); /* 0x2B04FAA7: push esi */ 38495 RECOMP_ICALL(0x2B054940u); /* 0x2B04FAA8: call 0x2b054940 */ /* not lifted */ 38496 RECOMP_FLAGS_IN(); 38497 ebx = eax; /* 0x2B04FAAD: mov ebx, eax */ 38498 ecx = edi; /* 0x2B04FAAF: mov ecx, edi */ 38499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 38500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38501 ecx = ecx - ebx; /* 0x2B04FAB1: sub ecx, ebx */ 38502 _flag_k = FK_CMP; 38503 eax = 0x2AAAAAABu; /* 0x2B04FAB3: mov eax, 0x2aaaaaab */ 38504 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FAB8: imul ecx */ 38505 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38506 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38507 ecx = edx; /* 0x2B04FABA: mov ecx, edx */ 38508 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B04FABC: sar ecx, 3 */ 38509 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38510 ecx = (uint32_t)((int32_t)ecx >> 3u); 38511 eax = ecx; /* 0x2B04FABF: mov eax, ecx */ 38512 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAC1: shr eax, 0x1f */ 38513 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38514 eax = eax >> 31u; /* 0x2B04FAC1: shr eax, 0x1f */ 38515 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 38516 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38517 ecx = ecx + eax; /* 0x2B04FAC4: add ecx, eax */ 38518 _flag_k = FK_ADD; 38519 edx = ebx; /* 0x2B04FAC6: mov edx, ebx */ 38520 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 38521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38522 edx = edx - esi; /* 0x2B04FAC8: sub edx, esi */ 38523 _flag_k = FK_CMP; 38524 eax = 0x2AAAAAABu; /* 0x2B04FACA: mov eax, 0x2aaaaaab */ 38525 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B04FACF: imul edx */ 38526 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38527 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38528 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FAD1: sar edx, 3 */ 38529 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38530 edx = (uint32_t)((int32_t)edx >> 3u); 38531 eax = edx; /* 0x2B04FAD4: mov eax, edx */ 38532 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAD6: shr eax, 0x1f */ 38533 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38534 eax = eax >> 31u; /* 0x2B04FAD6: shr eax, 0x1f */ 38535 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 38536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38537 esp = esp + 0x38u; /* 0x2B04FAD9: add esp, 0x38 */ 38538 _flag_k = FK_ADD; 38539 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 38540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38541 edx = edx + eax; /* 0x2B04FADC: add edx, eax */ 38542 _flag_k = FK_ADD; 38543 /* cmp ecx, edx */ /* 0x2B04FADE: cmp ecx, edx */ 38544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 38545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38546 _flag_k = FK_CMP; 38547 PUSH32(esp, 0); /* 0x2B04FAE0: push 0 */ 38548 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FAF2; /* 0x2B04FAE2: jg 0x2b04faf2 */ 38549 L_2B04FAE4: 38550 PUSH32(esp, edi); /* 0x2B04FAE4: push edi */ 38551 PUSH32(esp, ebx); /* 0x2B04FAE5: push ebx */ 38552 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAE6: call 0x2b053e60 */ /* not lifted */ 38553 RECOMP_FLAGS_IN(); 38554 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38556 esp = esp + 0xCu; /* 0x2B04FAEB: add esp, 0xc */ 38557 _flag_k = FK_ADD; 38558 edi = ebx; /* 0x2B04FAEE: mov edi, ebx */ 38559 goto L_2B04FAFE; /* 0x2B04FAF0: jmp 0x2b04fafe */ 38560 L_2B04FAF2: 38561 PUSH32(esp, ebx); /* 0x2B04FAF2: push ebx */ 38562 PUSH32(esp, esi); /* 0x2B04FAF3: push esi */ 38563 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAF4: call 0x2b053e60 */ /* not lifted */ 38564 RECOMP_FLAGS_IN(); 38565 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38567 esp = esp + 0xCu; /* 0x2B04FAF9: add esp, 0xc */ 38568 _flag_k = FK_ADD; 38569 esi = ebx; /* 0x2B04FAFC: mov esi, ebx */ 38570 L_2B04FAFE: 38571 ecx = edi; /* 0x2B04FAFE: mov ecx, edi */ 38572 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 38573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38574 ecx = ecx - esi; /* 0x2B04FB00: sub ecx, esi */ 38575 _flag_k = FK_CMP; 38576 eax = 0x2AAAAAABu; /* 0x2B04FB02: mov eax, 0x2aaaaaab */ 38577 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FB07: imul ecx */ 38578 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38579 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38580 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FB09: sar edx, 3 */ 38581 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38582 edx = (uint32_t)((int32_t)edx >> 3u); 38583 ecx = edx; /* 0x2B04FB0C: mov ecx, edx */ 38584 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FB0E: shr ecx, 0x1f */ 38585 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38586 ecx = ecx >> 31u; /* 0x2B04FB0E: shr ecx, 0x1f */ 38587 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 38588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38589 edx = edx + ecx; /* 0x2B04FB11: add edx, ecx */ 38590 _flag_k = FK_ADD; 38591 /* cmp edx, 0x10u */ /* 0x2B04FB13: cmp edx, 0x10 */ 38592 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 38593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38594 _flag_k = FK_CMP; 38595 RECOMP_BACKEDGE(); 38596 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FB16: jg 0x2b04fa2f */ 38597 L_2B04FB1C: 38598 esi = MEM32(ebp + (-0x14)); /* 0x2B04FB1C: mov esi, dword ptr [ebp - 0x14] */ 38599 PUSH32(esp, 0); /* 0x2B04FB1F: push 0 */ 38600 ebx = esi + 0x300; /* 0x2B04FB21: lea ebx, [esi + 0x300] */ 38601 PUSH32(esp, ebx); /* 0x2B04FB27: push ebx */ 38602 PUSH32(esp, esi); /* 0x2B04FB28: push esi */ 38603 RECOMP_ICALL(0x2B054410u); /* 0x2B04FB29: call 0x2b054410 */ /* not lifted */ 38604 RECOMP_FLAGS_IN(); 38605 eax = MEM32(ebp + 0x8); /* 0x2B04FB2E: mov eax, dword ptr [ebp + 8] */ 38606 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38607 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38608 esp = esp + 0xCu; /* 0x2B04FB31: add esp, 0xc */ 38609 _flag_k = FK_ADD; 38610 /* cmp ebx, eax */ /* 0x2B04FB34: cmp ebx, eax */ 38611 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 38612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38613 _flag_k = FK_CMP; 38614 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FBB4; /* 0x2B04FB36: je 0x2b04fbb4 */ 38615 L_2B04FB38: 38616 esi = ebx + 0x8; /* 0x2B04FB38: lea esi, [ebx + 8] */ 38617 L_2B04FB3B: 38618 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38620 esp = esp - 0x30u; /* 0x2B04FB3B: sub esp, 0x30 */ 38621 _flag_k = FK_CMP; 38622 edi = esp; /* 0x2B04FB3E: mov edi, esp */ 38623 /* cmp edi, ebx */ /* 0x2B04FB40: cmp edi, ebx */ 38624 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 38625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38626 _flag_k = FK_CMP; 38627 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FB42: mov dword ptr [ebp - 0x20], esp */ 38628 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FB51; /* 0x2B04FB45: je 0x2b04fb51 */ 38629 L_2B04FB47: 38630 edx = MEM32(ebx); /* 0x2B04FB47: mov edx, dword ptr [ebx] */ 38631 MEM32(edi) = edx; /* 0x2B04FB49: mov dword ptr [edi], edx */ 38632 eax = MEM32(esi + (-0x4)); /* 0x2B04FB4B: mov eax, dword ptr [esi - 4] */ 38633 MEM32(edi + 0x4) = eax; /* 0x2B04FB4E: mov dword ptr [edi + 4], eax */ 38634 L_2B04FB51: 38635 SET_LO8(edx, MEM8(esi)); /* 0x2B04FB51: mov dl, byte ptr [esi] */ 38636 ecx = edi + 0x8; /* 0x2B04FB53: lea ecx, [edi + 8] */ 38637 PUSH32(esp, 0); /* 0x2B04FB56: push 0 */ 38638 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2B04FB58: mov byte ptr [ecx], dl */ 38639 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04FB5A: call dword ptr [0x2b0b514c] */ 38640 RECOMP_FLAGS_IN(); 38641 eax = MEM32(0x2B0B515C); /* 0x2B04FB60: mov eax, dword ptr [0x2b0b515c] */ 38642 ecx = MEM32(eax); /* 0x2B04FB65: mov ecx, dword ptr [eax] */ 38643 PUSH32(esp, ecx); /* 0x2B04FB67: push ecx */ 38644 PUSH32(esp, 0); /* 0x2B04FB68: push 0 */ 38645 PUSH32(esp, esi); /* 0x2B04FB6A: push esi */ 38646 ecx = edi + 0x8; /* 0x2B04FB6B: lea ecx, [edi + 8] */ 38647 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04FB6E: call dword ptr [0x2b0b5158] */ 38648 RECOMP_FLAGS_IN(); 38649 edx = MEM32(esi + 0x10); /* 0x2B04FB74: mov edx, dword ptr [esi + 0x10] */ 38650 MEM32(edi + 0x18) = edx; /* 0x2B04FB77: mov dword ptr [edi + 0x18], edx */ 38651 eax = MEM32(esi + 0x14); /* 0x2B04FB7A: mov eax, dword ptr [esi + 0x14] */ 38652 MEM32(edi + 0x1C) = eax; /* 0x2B04FB7D: mov dword ptr [edi + 0x1c], eax */ 38653 ecx = MEM32(esi + 0x18); /* 0x2B04FB80: mov ecx, dword ptr [esi + 0x18] */ 38654 MEM32(edi + 0x20) = ecx; /* 0x2B04FB83: mov dword ptr [edi + 0x20], ecx */ 38655 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x2B04FB86: mov dl, byte ptr [esi + 0x1c] */ 38656 MEM8(edi + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B04FB89: mov byte ptr [edi + 0x24], dl */ 38657 eax = MEM32(esi + 0x20); /* 0x2B04FB8C: mov eax, dword ptr [esi + 0x20] */ 38658 MEM32(edi + 0x28) = eax; /* 0x2B04FB8F: mov dword ptr [edi + 0x28], eax */ 38659 SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x2B04FB92: mov cl, byte ptr [esi + 0x24] */ 38660 MEM8(edi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x2B04FB95: mov byte ptr [edi + 0x2c], cl */ 38661 SET_LO8(edx, MEM8(esi + 0x25)); /* 0x2B04FB98: mov dl, byte ptr [esi + 0x25] */ 38662 PUSH32(esp, ebx); /* 0x2B04FB9B: push ebx */ 38663 MEM8(edi + 0x2D) = (uint8_t)(LO8(edx)); /* 0x2B04FB9C: mov byte ptr [edi + 0x2d], dl */ 38664 RECOMP_ICALL(0x2B053F90u); /* 0x2B04FB9F: call 0x2b053f90 */ /* not lifted */ 38665 RECOMP_FLAGS_IN(); 38666 eax = MEM32(ebp + 0x8); /* 0x2B04FBA4: mov eax, dword ptr [ebp + 8] */ 38667 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 38668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38669 ebx = ebx + 0x30u; /* 0x2B04FBA7: add ebx, 0x30 */ 38670 _flag_k = FK_ADD; 38671 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 38672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38673 esp = esp + 0x34u; /* 0x2B04FBAA: add esp, 0x34 */ 38674 _flag_k = FK_ADD; 38675 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 38676 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38677 esi = esi + 0x30u; /* 0x2B04FBAD: add esi, 0x30 */ 38678 _flag_k = FK_ADD; 38679 /* cmp ebx, eax */ /* 0x2B04FBB0: cmp ebx, eax */ 38680 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 38681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38682 _flag_k = FK_CMP; 38683 RECOMP_BACKEDGE(); 38684 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FB3B; /* 0x2B04FBB2: jne 0x2b04fb3b */ 38685 L_2B04FBB4: 38686 esi = MEM32(ebp + (-0x10)); /* 0x2B04FBB4: mov esi, dword ptr [ebp - 0x10] */ 38687 ecx = esi; /* 0x2B04FBB7: mov ecx, esi */ 38688 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FBB9: call 0x2b0510b0 */ /* not lifted */ 38689 RECOMP_FLAGS_IN(); 38690 ecx = esi; /* 0x2B04FBBE: mov ecx, esi */ 38691 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FBC0: call 0x2b03a2b0 */ /* not lifted */ 38692 RECOMP_FLAGS_IN(); 38693 eax = MEM32(0x2B0E7E34); /* 0x2B04FBC5: mov eax, dword ptr [0x2b0e7e34] */ 38694 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FBCA: mov ecx, dword ptr [ebp - 0xc] */ 38695 edi = POP32_VAL(esp); /* 0x2B04FBCD: pop edi */ 38696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 38697 eax = eax + 1; /* 0x2B04FBCE: inc eax */ 38698 _flag_k = FK_INC; 38699 esi = POP32_VAL(esp); /* 0x2B04FBCF: pop esi */ 38700 MEM32(0x2B0E7E34) = eax; /* 0x2B04FBD0: mov dword ptr [0x2b0e7e34], eax */ 38701 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FBD5: mov dword ptr fs:[0], ecx */ 38702 ebx = POP32_VAL(esp); /* 0x2B04FBDC: pop ebx */ 38703 esp = ebp; /* 0x2B04FBDD: mov esp, ebp */ 38704 ebp = POP32_VAL(esp); /* 0x2B04FBDF: pop ebp */ 38705 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04FBE0: ret 4 */ 38706 RECOMP_REGS_OUT(); 38707 } 38708 38709 void sub_2B04FAFE(void) { 38710 int _fpu_cmp = 0; 38711 uint32_t _cf = 0; 38712 int _df = 1; 38713 uint32_t _flag_k = FK_NONE; 38714 uint32_t _flag_a = 0, _flag_b = 0; 38715 uint32_t _itail_tgt = 0; 38716 RECOMP_REGS_LOCALS 38717 RECOMP_ENTER(0x2B04FAFEu); 38718 38719 goto L_2B04FAFE; 38720 L_2B04FA2F: 38721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38723 esp = esp - 0x30u; /* 0x2B04FA2F: sub esp, 0x30 */ 38724 _flag_k = FK_CMP; 38725 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA32: mov dword ptr [ebp - 0x18], esp */ 38726 ebx = esp; /* 0x2B04FA35: mov ebx, esp */ 38727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38729 esp = esp - 0x30u; /* 0x2B04FA37: sub esp, 0x30 */ 38730 _flag_k = FK_CMP; 38731 edx = edi + (-0x30); /* 0x2B04FA3A: lea edx, [edi - 0x30] */ 38732 ecx = esp; /* 0x2B04FA3D: mov ecx, esp */ 38733 MEM32(ebp + (-0x18)) = esp; /* 0x2B04FA3F: mov dword ptr [ebp - 0x18], esp */ 38734 PUSH32(esp, edx); /* 0x2B04FA42: push edx */ 38735 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA43: call 0x2b053940 */ /* not lifted */ 38736 RECOMP_FLAGS_IN(); 38737 ecx = edi; /* 0x2B04FA48: mov ecx, edi */ 38738 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 38739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38740 ecx = ecx - esi; /* 0x2B04FA4A: sub ecx, esi */ 38741 _flag_k = FK_CMP; 38742 eax = 0x2AAAAAABu; /* 0x2B04FA4C: mov eax, 0x2aaaaaab */ 38743 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FA51: imul ecx */ 38744 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38745 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38746 eax = edx; /* 0x2B04FA53: mov eax, edx */ 38747 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x2B04FA55: sar eax, 3 */ 38748 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38749 eax = (uint32_t)((int32_t)eax >> 3u); 38750 ecx = eax; /* 0x2B04FA58: mov ecx, eax */ 38751 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FA5A: shr ecx, 0x1f */ 38752 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38753 ecx = ecx >> 31u; /* 0x2B04FA5A: shr ecx, 0x1f */ 38754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 38755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38756 eax = eax + ecx; /* 0x2B04FA5D: add eax, ecx */ 38757 _flag_k = FK_ADD; 38758 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B04FA5F: cdq */ 38759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 38760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38761 eax = eax - edx; /* 0x2B04FA60: sub eax, edx */ 38762 _flag_k = FK_CMP; 38763 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B04FA62: sar eax, 1 */ 38764 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38765 eax = (uint32_t)((int32_t)eax >> 1u); 38766 edx = eax + eax * 2; /* 0x2B04FA64: lea edx, [eax + eax*2] */ 38767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38769 esp = esp - 0x30u; /* 0x2B04FA67: sub esp, 0x30 */ 38770 _flag_k = FK_CMP; 38771 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B04FA6A: shl edx, 4 */ 38772 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38773 edx = edx << 4u; /* 0x2B04FA6A: shl edx, 4 */ 38774 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 38775 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38776 edx = edx + esi; /* 0x2B04FA6D: add edx, esi */ 38777 _flag_k = FK_ADD; 38778 ecx = esp; /* 0x2B04FA6F: mov ecx, esp */ 38779 MEM32(ebp + (-0x1C)) = esp; /* 0x2B04FA71: mov dword ptr [ebp - 0x1c], esp */ 38780 PUSH32(esp, edx); /* 0x2B04FA74: push edx */ 38781 MEM32(ebp + (-0x4)) = 1; /* 0x2B04FA75: mov dword ptr [ebp - 4], 1 */ 38782 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA7C: call 0x2b053940 */ /* not lifted */ 38783 RECOMP_FLAGS_IN(); 38784 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38786 esp = esp - 0x30u; /* 0x2B04FA81: sub esp, 0x30 */ 38787 _flag_k = FK_CMP; 38788 ecx = esp; /* 0x2B04FA84: mov ecx, esp */ 38789 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FA86: mov dword ptr [ebp - 0x20], esp */ 38790 PUSH32(esp, esi); /* 0x2B04FA89: push esi */ 38791 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B04FA8A: mov byte ptr [ebp - 4], 2 */ 38792 RECOMP_ICALL(0x2B053940u); /* 0x2B04FA8E: call 0x2b053940 */ /* not lifted */ 38793 RECOMP_FLAGS_IN(); 38794 PUSH32(esp, ebx); /* 0x2B04FA93: push ebx */ 38795 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B04FA94: mov dword ptr [ebp - 4], 0xffffffff */ 38796 RECOMP_ICALL(0x2B054620u); /* 0x2B04FA9B: call 0x2b054620 */ /* not lifted */ 38797 RECOMP_FLAGS_IN(); 38798 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 38799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38800 esp = esp + 0x94u; /* 0x2B04FAA0: add esp, 0x94 */ 38801 _flag_k = FK_ADD; 38802 PUSH32(esp, edi); /* 0x2B04FAA6: push edi */ 38803 PUSH32(esp, esi); /* 0x2B04FAA7: push esi */ 38804 RECOMP_ICALL(0x2B054940u); /* 0x2B04FAA8: call 0x2b054940 */ /* not lifted */ 38805 RECOMP_FLAGS_IN(); 38806 ebx = eax; /* 0x2B04FAAD: mov ebx, eax */ 38807 ecx = edi; /* 0x2B04FAAF: mov ecx, edi */ 38808 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 38809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38810 ecx = ecx - ebx; /* 0x2B04FAB1: sub ecx, ebx */ 38811 _flag_k = FK_CMP; 38812 eax = 0x2AAAAAABu; /* 0x2B04FAB3: mov eax, 0x2aaaaaab */ 38813 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FAB8: imul ecx */ 38814 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38815 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38816 ecx = edx; /* 0x2B04FABA: mov ecx, edx */ 38817 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x2B04FABC: sar ecx, 3 */ 38818 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38819 ecx = (uint32_t)((int32_t)ecx >> 3u); 38820 eax = ecx; /* 0x2B04FABF: mov eax, ecx */ 38821 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAC1: shr eax, 0x1f */ 38822 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38823 eax = eax >> 31u; /* 0x2B04FAC1: shr eax, 0x1f */ 38824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 38825 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38826 ecx = ecx + eax; /* 0x2B04FAC4: add ecx, eax */ 38827 _flag_k = FK_ADD; 38828 edx = ebx; /* 0x2B04FAC6: mov edx, ebx */ 38829 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 38830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38831 edx = edx - esi; /* 0x2B04FAC8: sub edx, esi */ 38832 _flag_k = FK_CMP; 38833 eax = 0x2AAAAAABu; /* 0x2B04FACA: mov eax, 0x2aaaaaab */ 38834 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B04FACF: imul edx */ 38835 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38836 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38837 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FAD1: sar edx, 3 */ 38838 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38839 edx = (uint32_t)((int32_t)edx >> 3u); 38840 eax = edx; /* 0x2B04FAD4: mov eax, edx */ 38841 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FAD6: shr eax, 0x1f */ 38842 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38843 eax = eax >> 31u; /* 0x2B04FAD6: shr eax, 0x1f */ 38844 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 38845 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38846 esp = esp + 0x38u; /* 0x2B04FAD9: add esp, 0x38 */ 38847 _flag_k = FK_ADD; 38848 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 38849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38850 edx = edx + eax; /* 0x2B04FADC: add edx, eax */ 38851 _flag_k = FK_ADD; 38852 /* cmp ecx, edx */ /* 0x2B04FADE: cmp ecx, edx */ 38853 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 38854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38855 _flag_k = FK_CMP; 38856 PUSH32(esp, 0); /* 0x2B04FAE0: push 0 */ 38857 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FAF2; /* 0x2B04FAE2: jg 0x2b04faf2 */ 38858 L_2B04FAE4: 38859 PUSH32(esp, edi); /* 0x2B04FAE4: push edi */ 38860 PUSH32(esp, ebx); /* 0x2B04FAE5: push ebx */ 38861 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAE6: call 0x2b053e60 */ /* not lifted */ 38862 RECOMP_FLAGS_IN(); 38863 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38865 esp = esp + 0xCu; /* 0x2B04FAEB: add esp, 0xc */ 38866 _flag_k = FK_ADD; 38867 edi = ebx; /* 0x2B04FAEE: mov edi, ebx */ 38868 goto L_2B04FAFE; /* 0x2B04FAF0: jmp 0x2b04fafe */ 38869 L_2B04FAF2: 38870 PUSH32(esp, ebx); /* 0x2B04FAF2: push ebx */ 38871 PUSH32(esp, esi); /* 0x2B04FAF3: push esi */ 38872 RECOMP_ICALL(0x2B053E60u); /* 0x2B04FAF4: call 0x2b053e60 */ /* not lifted */ 38873 RECOMP_FLAGS_IN(); 38874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38876 esp = esp + 0xCu; /* 0x2B04FAF9: add esp, 0xc */ 38877 _flag_k = FK_ADD; 38878 esi = ebx; /* 0x2B04FAFC: mov esi, ebx */ 38879 L_2B04FAFE: 38880 ecx = edi; /* 0x2B04FAFE: mov ecx, edi */ 38881 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 38882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38883 ecx = ecx - esi; /* 0x2B04FB00: sub ecx, esi */ 38884 _flag_k = FK_CMP; 38885 eax = 0x2AAAAAABu; /* 0x2B04FB02: mov eax, 0x2aaaaaab */ 38886 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FB07: imul ecx */ 38887 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 38888 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 38889 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FB09: sar edx, 3 */ 38890 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38891 edx = (uint32_t)((int32_t)edx >> 3u); 38892 ecx = edx; /* 0x2B04FB0C: mov ecx, edx */ 38893 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B04FB0E: shr ecx, 0x1f */ 38894 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 38895 ecx = ecx >> 31u; /* 0x2B04FB0E: shr ecx, 0x1f */ 38896 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 38897 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38898 edx = edx + ecx; /* 0x2B04FB11: add edx, ecx */ 38899 _flag_k = FK_ADD; 38900 /* cmp edx, 0x10u */ /* 0x2B04FB13: cmp edx, 0x10 */ 38901 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 38902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38903 _flag_k = FK_CMP; 38904 RECOMP_BACKEDGE(); 38905 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FA2F; /* 0x2B04FB16: jg 0x2b04fa2f */ 38906 L_2B04FB1C: 38907 esi = MEM32(ebp + (-0x14)); /* 0x2B04FB1C: mov esi, dword ptr [ebp - 0x14] */ 38908 PUSH32(esp, 0); /* 0x2B04FB1F: push 0 */ 38909 ebx = esi + 0x300; /* 0x2B04FB21: lea ebx, [esi + 0x300] */ 38910 PUSH32(esp, ebx); /* 0x2B04FB27: push ebx */ 38911 PUSH32(esp, esi); /* 0x2B04FB28: push esi */ 38912 RECOMP_ICALL(0x2B054410u); /* 0x2B04FB29: call 0x2b054410 */ /* not lifted */ 38913 RECOMP_FLAGS_IN(); 38914 eax = MEM32(ebp + 0x8); /* 0x2B04FB2E: mov eax, dword ptr [ebp + 8] */ 38915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 38916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38917 esp = esp + 0xCu; /* 0x2B04FB31: add esp, 0xc */ 38918 _flag_k = FK_ADD; 38919 /* cmp ebx, eax */ /* 0x2B04FB34: cmp ebx, eax */ 38920 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 38921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38922 _flag_k = FK_CMP; 38923 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FBB4; /* 0x2B04FB36: je 0x2b04fbb4 */ 38924 L_2B04FB38: 38925 esi = ebx + 0x8; /* 0x2B04FB38: lea esi, [ebx + 8] */ 38926 L_2B04FB3B: 38927 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 38928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38929 esp = esp - 0x30u; /* 0x2B04FB3B: sub esp, 0x30 */ 38930 _flag_k = FK_CMP; 38931 edi = esp; /* 0x2B04FB3E: mov edi, esp */ 38932 /* cmp edi, ebx */ /* 0x2B04FB40: cmp edi, ebx */ 38933 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 38934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38935 _flag_k = FK_CMP; 38936 MEM32(ebp + (-0x20)) = esp; /* 0x2B04FB42: mov dword ptr [ebp - 0x20], esp */ 38937 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FB51; /* 0x2B04FB45: je 0x2b04fb51 */ 38938 L_2B04FB47: 38939 edx = MEM32(ebx); /* 0x2B04FB47: mov edx, dword ptr [ebx] */ 38940 MEM32(edi) = edx; /* 0x2B04FB49: mov dword ptr [edi], edx */ 38941 eax = MEM32(esi + (-0x4)); /* 0x2B04FB4B: mov eax, dword ptr [esi - 4] */ 38942 MEM32(edi + 0x4) = eax; /* 0x2B04FB4E: mov dword ptr [edi + 4], eax */ 38943 L_2B04FB51: 38944 SET_LO8(edx, MEM8(esi)); /* 0x2B04FB51: mov dl, byte ptr [esi] */ 38945 ecx = edi + 0x8; /* 0x2B04FB53: lea ecx, [edi + 8] */ 38946 PUSH32(esp, 0); /* 0x2B04FB56: push 0 */ 38947 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x2B04FB58: mov byte ptr [ecx], dl */ 38948 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04FB5A: call dword ptr [0x2b0b514c] */ 38949 RECOMP_FLAGS_IN(); 38950 eax = MEM32(0x2B0B515C); /* 0x2B04FB60: mov eax, dword ptr [0x2b0b515c] */ 38951 ecx = MEM32(eax); /* 0x2B04FB65: mov ecx, dword ptr [eax] */ 38952 PUSH32(esp, ecx); /* 0x2B04FB67: push ecx */ 38953 PUSH32(esp, 0); /* 0x2B04FB68: push 0 */ 38954 PUSH32(esp, esi); /* 0x2B04FB6A: push esi */ 38955 ecx = edi + 0x8; /* 0x2B04FB6B: lea ecx, [edi + 8] */ 38956 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04FB6E: call dword ptr [0x2b0b5158] */ 38957 RECOMP_FLAGS_IN(); 38958 edx = MEM32(esi + 0x10); /* 0x2B04FB74: mov edx, dword ptr [esi + 0x10] */ 38959 MEM32(edi + 0x18) = edx; /* 0x2B04FB77: mov dword ptr [edi + 0x18], edx */ 38960 eax = MEM32(esi + 0x14); /* 0x2B04FB7A: mov eax, dword ptr [esi + 0x14] */ 38961 MEM32(edi + 0x1C) = eax; /* 0x2B04FB7D: mov dword ptr [edi + 0x1c], eax */ 38962 ecx = MEM32(esi + 0x18); /* 0x2B04FB80: mov ecx, dword ptr [esi + 0x18] */ 38963 MEM32(edi + 0x20) = ecx; /* 0x2B04FB83: mov dword ptr [edi + 0x20], ecx */ 38964 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x2B04FB86: mov dl, byte ptr [esi + 0x1c] */ 38965 MEM8(edi + 0x24) = (uint8_t)(LO8(edx)); /* 0x2B04FB89: mov byte ptr [edi + 0x24], dl */ 38966 eax = MEM32(esi + 0x20); /* 0x2B04FB8C: mov eax, dword ptr [esi + 0x20] */ 38967 MEM32(edi + 0x28) = eax; /* 0x2B04FB8F: mov dword ptr [edi + 0x28], eax */ 38968 SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x2B04FB92: mov cl, byte ptr [esi + 0x24] */ 38969 MEM8(edi + 0x2C) = (uint8_t)(LO8(ecx)); /* 0x2B04FB95: mov byte ptr [edi + 0x2c], cl */ 38970 SET_LO8(edx, MEM8(esi + 0x25)); /* 0x2B04FB98: mov dl, byte ptr [esi + 0x25] */ 38971 PUSH32(esp, ebx); /* 0x2B04FB9B: push ebx */ 38972 MEM8(edi + 0x2D) = (uint8_t)(LO8(edx)); /* 0x2B04FB9C: mov byte ptr [edi + 0x2d], dl */ 38973 RECOMP_ICALL(0x2B053F90u); /* 0x2B04FB9F: call 0x2b053f90 */ /* not lifted */ 38974 RECOMP_FLAGS_IN(); 38975 eax = MEM32(ebp + 0x8); /* 0x2B04FBA4: mov eax, dword ptr [ebp + 8] */ 38976 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 38977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38978 ebx = ebx + 0x30u; /* 0x2B04FBA7: add ebx, 0x30 */ 38979 _flag_k = FK_ADD; 38980 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 38981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38982 esp = esp + 0x34u; /* 0x2B04FBAA: add esp, 0x34 */ 38983 _flag_k = FK_ADD; 38984 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 38985 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 38986 esi = esi + 0x30u; /* 0x2B04FBAD: add esi, 0x30 */ 38987 _flag_k = FK_ADD; 38988 /* cmp ebx, eax */ /* 0x2B04FBB0: cmp ebx, eax */ 38989 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 38990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38991 _flag_k = FK_CMP; 38992 RECOMP_BACKEDGE(); 38993 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FB3B; /* 0x2B04FBB2: jne 0x2b04fb3b */ 38994 L_2B04FBB4: 38995 esi = MEM32(ebp + (-0x10)); /* 0x2B04FBB4: mov esi, dword ptr [ebp - 0x10] */ 38996 ecx = esi; /* 0x2B04FBB7: mov ecx, esi */ 38997 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FBB9: call 0x2b0510b0 */ /* not lifted */ 38998 RECOMP_FLAGS_IN(); 38999 ecx = esi; /* 0x2B04FBBE: mov ecx, esi */ 39000 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FBC0: call 0x2b03a2b0 */ /* not lifted */ 39001 RECOMP_FLAGS_IN(); 39002 eax = MEM32(0x2B0E7E34); /* 0x2B04FBC5: mov eax, dword ptr [0x2b0e7e34] */ 39003 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FBCA: mov ecx, dword ptr [ebp - 0xc] */ 39004 edi = POP32_VAL(esp); /* 0x2B04FBCD: pop edi */ 39005 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 39006 eax = eax + 1; /* 0x2B04FBCE: inc eax */ 39007 _flag_k = FK_INC; 39008 esi = POP32_VAL(esp); /* 0x2B04FBCF: pop esi */ 39009 MEM32(0x2B0E7E34) = eax; /* 0x2B04FBD0: mov dword ptr [0x2b0e7e34], eax */ 39010 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FBD5: mov dword ptr fs:[0], ecx */ 39011 ebx = POP32_VAL(esp); /* 0x2B04FBDC: pop ebx */ 39012 esp = ebp; /* 0x2B04FBDD: mov esp, ebp */ 39013 ebp = POP32_VAL(esp); /* 0x2B04FBDF: pop ebp */ 39014 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04FBE0: ret 4 */ 39015 RECOMP_REGS_OUT(); 39016 } 39017 39018 void sub_2B04FBB4(void) { 39019 int _fpu_cmp = 0; 39020 uint32_t _cf = 0; 39021 int _df = 1; 39022 uint32_t _flag_k = FK_NONE; 39023 uint32_t _flag_a = 0, _flag_b = 0; 39024 uint32_t _itail_tgt = 0; 39025 RECOMP_REGS_LOCALS 39026 RECOMP_ENTER(0x2B04FBB4u); 39027 39028 L_2B04FBB4: 39029 esi = MEM32(ebp + (-0x10)); /* 0x2B04FBB4: mov esi, dword ptr [ebp - 0x10] */ 39030 ecx = esi; /* 0x2B04FBB7: mov ecx, esi */ 39031 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FBB9: call 0x2b0510b0 */ /* not lifted */ 39032 RECOMP_FLAGS_IN(); 39033 ecx = esi; /* 0x2B04FBBE: mov ecx, esi */ 39034 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FBC0: call 0x2b03a2b0 */ /* not lifted */ 39035 RECOMP_FLAGS_IN(); 39036 eax = MEM32(0x2B0E7E34); /* 0x2B04FBC5: mov eax, dword ptr [0x2b0e7e34] */ 39037 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FBCA: mov ecx, dword ptr [ebp - 0xc] */ 39038 edi = POP32_VAL(esp); /* 0x2B04FBCD: pop edi */ 39039 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 39040 eax = eax + 1; /* 0x2B04FBCE: inc eax */ 39041 _flag_k = FK_INC; 39042 esi = POP32_VAL(esp); /* 0x2B04FBCF: pop esi */ 39043 MEM32(0x2B0E7E34) = eax; /* 0x2B04FBD0: mov dword ptr [0x2b0e7e34], eax */ 39044 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FBD5: mov dword ptr fs:[0], ecx */ 39045 ebx = POP32_VAL(esp); /* 0x2B04FBDC: pop ebx */ 39046 esp = ebp; /* 0x2B04FBDD: mov esp, ebp */ 39047 ebp = POP32_VAL(esp); /* 0x2B04FBDF: pop ebp */ 39048 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B04FBE0: ret 4 */ 39049 RECOMP_REGS_OUT(); 39050 } 39051 39052 void sub_2B04FBF0(void) { 39053 int _fpu_cmp = 0; 39054 uint32_t _cf = 0; 39055 int _df = 1; 39056 uint32_t _flag_k = FK_NONE; 39057 uint32_t _flag_a = 0, _flag_b = 0; 39058 uint32_t _itail_tgt = 0; 39059 RECOMP_REGS_LOCALS 39060 RECOMP_ENTER(0x2B04FBF0u); 39061 39062 L_2B04FBF0: 39063 PUSH32(esp, ebp); /* 0x2B04FBF0: push ebp */ 39064 ebp = esp; /* 0x2B04FBF1: mov ebp, esp */ 39065 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 39066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39067 esp = esp - 8; /* 0x2B04FBF3: sub esp, 8 */ 39068 _flag_k = FK_CMP; 39069 PUSH32(esp, esi); /* 0x2B04FBF6: push esi */ 39070 esi = ecx; /* 0x2B04FBF7: mov esi, ecx */ 39071 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B04FBF9: call dword ptr [0x2b0b5b64] */ 39072 RECOMP_FLAGS_IN(); 39073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xD4u); 39074 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39075 eax = eax + 0xD4u; /* 0x2B04FBFF: add eax, 0xd4 */ 39076 _flag_k = FK_ADD; 39077 ecx = ebp + (-0x8); /* 0x2B04FC04: lea ecx, [ebp - 8] */ 39078 /* cmp ecx, eax */ /* 0x2B04FC07: cmp ecx, eax */ 39079 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 39080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39081 _flag_k = FK_CMP; 39082 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FC10; /* 0x2B04FC09: je 0x2b04fc10 */ 39083 L_2B04FC0B: 39084 eax = MEM32(eax + 0x4); /* 0x2B04FC0B: mov eax, dword ptr [eax + 4] */ 39085 goto L_2B04FC13; /* 0x2B04FC0E: jmp 0x2b04fc13 */ 39086 L_2B04FC10: 39087 eax = MEM32(ebp + (-0x4)); /* 0x2B04FC10: mov eax, dword ptr [ebp - 4] */ 39088 L_2B04FC13: 39089 edx = MEM32(ebp + 0xC); /* 0x2B04FC13: mov edx, dword ptr [ebp + 0xc] */ 39090 /* cmp edx, eax */ /* 0x2B04FC16: cmp edx, eax */ 39091 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 39092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39093 _flag_k = FK_CMP; 39094 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FC42; /* 0x2B04FC18: je 0x2b04fc42 */ 39095 L_2B04FC1A: 39096 ecx = MEM32(esi + 0x100); /* 0x2B04FC1A: mov ecx, dword ptr [esi + 0x100] */ 39097 eax = MEM32(ecx + 0x4); /* 0x2B04FC20: mov eax, dword ptr [ecx + 4] */ 39098 ecx = MEM32(ecx + 0x8); /* 0x2B04FC23: mov ecx, dword ptr [ecx + 8] */ 39099 /* cmp eax, ecx */ /* 0x2B04FC26: cmp eax, ecx */ 39100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 39101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39102 _flag_k = FK_CMP; 39103 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FC36; /* 0x2B04FC28: je 0x2b04fc36 */ 39104 L_2B04FC2A: 39105 /* cmp MEM32(eax + 0x4), edx */ /* 0x2B04FC2A: cmp dword ptr [eax + 4], edx */ 39106 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx); 39107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39108 _flag_k = FK_CMP; 39109 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FC42; /* 0x2B04FC2D: je 0x2b04fc42 */ 39110 L_2B04FC2F: 39111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 39112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39113 eax = eax + 0x30u; /* 0x2B04FC2F: add eax, 0x30 */ 39114 _flag_k = FK_ADD; 39115 /* cmp eax, ecx */ /* 0x2B04FC32: cmp eax, ecx */ 39116 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 39117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39118 _flag_k = FK_CMP; 39119 RECOMP_BACKEDGE(); 39120 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FC2A; /* 0x2B04FC34: jne 0x2b04fc2a */ 39121 L_2B04FC36: 39122 PUSH32(esp, edx); /* 0x2B04FC36: push edx */ 39123 edx = MEM32(ebp + 0x8); /* 0x2B04FC37: mov edx, dword ptr [ebp + 8] */ 39124 PUSH32(esp, edx); /* 0x2B04FC3A: push edx */ 39125 ecx = esi; /* 0x2B04FC3B: mov ecx, esi */ 39126 RECOMP_ICALL(0x2B04F610u); /* 0x2B04FC3D: call 0x2b04f610 */ /* not lifted */ 39127 RECOMP_FLAGS_IN(); 39128 L_2B04FC42: 39129 esi = POP32_VAL(esp); /* 0x2B04FC42: pop esi */ 39130 esp = ebp; /* 0x2B04FC43: mov esp, ebp */ 39131 ebp = POP32_VAL(esp); /* 0x2B04FC45: pop ebp */ 39132 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B04FC46: ret 8 */ 39133 RECOMP_REGS_OUT(); 39134 } 39135 39136 void sub_2B04FC50(void) { 39137 int _fpu_cmp = 0; 39138 uint32_t _cf = 0; 39139 int _df = 1; 39140 uint32_t _flag_k = FK_NONE; 39141 uint32_t _flag_a = 0, _flag_b = 0; 39142 uint32_t _itail_tgt = 0; 39143 RECOMP_REGS_LOCALS 39144 RECOMP_ENTER(0x2B04FC50u); 39145 39146 L_2B04FC50: 39147 PUSH32(esp, ebp); /* 0x2B04FC50: push ebp */ 39148 ebp = esp; /* 0x2B04FC51: mov ebp, esp */ 39149 PUSH32(esp, ebx); /* 0x2B04FC53: push ebx */ 39150 PUSH32(esp, esi); /* 0x2B04FC54: push esi */ 39151 PUSH32(esp, edi); /* 0x2B04FC55: push edi */ 39152 edi = ecx; /* 0x2B04FC56: mov edi, ecx */ 39153 eax = MEM32(edi + 0x104); /* 0x2B04FC58: mov eax, dword ptr [edi + 0x104] */ 39154 esi = MEM32(eax + 0x4); /* 0x2B04FC5E: mov esi, dword ptr [eax + 4] */ 39155 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B04FC61: cmp esi, dword ptr [eax + 8] */ 39156 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 39157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39158 _flag_k = FK_CMP; 39159 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FCA0; /* 0x2B04FC64: je 0x2b04fca0 */ 39160 L_2B04FC66: 39161 ebx = MEM32(ebp + 0x8); /* 0x2B04FC66: mov ebx, dword ptr [ebp + 8] */ 39162 L_2B04FC69: 39163 eax = MEM32(ebx + 0x4); /* 0x2B04FC69: mov eax, dword ptr [ebx + 4] */ 39164 /* test eax, eax */ /* 0x2B04FC6C: test eax, eax */ 39165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 39166 _cf = 0; 39167 _flag_k = FK_TEST; 39168 edx = MEM32(0x2B0B513C); /* 0x2B04FC6E: mov edx, dword ptr [0x2b0b513c] */ 39169 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04FC78; /* 0x2B04FC74: jne 0x2b04fc78 */ 39170 L_2B04FC76: 39171 eax = edx; /* 0x2B04FC76: mov eax, edx */ 39172 L_2B04FC78: 39173 ecx = MEM32(esi + 0x4); /* 0x2B04FC78: mov ecx, dword ptr [esi + 4] */ 39174 /* test ecx, ecx */ /* 0x2B04FC7B: test ecx, ecx */ 39175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 39176 _cf = 0; 39177 _flag_k = FK_TEST; 39178 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04FC81; /* 0x2B04FC7D: jne 0x2b04fc81 */ 39179 L_2B04FC7F: 39180 ecx = edx; /* 0x2B04FC7F: mov ecx, edx */ 39181 L_2B04FC81: 39182 PUSH32(esp, eax); /* 0x2B04FC81: push eax */ 39183 PUSH32(esp, ecx); /* 0x2B04FC82: push ecx */ 39184 RECOMP_ICALL(MEM32(0x2B0B521C)); /* 0x2B04FC83: call dword ptr [0x2b0b521c] */ 39185 RECOMP_FLAGS_IN(); 39186 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 39187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39188 esp = esp + 8; /* 0x2B04FC89: add esp, 8 */ 39189 _flag_k = FK_ADD; 39190 /* test eax, eax */ /* 0x2B04FC8C: test eax, eax */ 39191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 39192 _cf = 0; 39193 _flag_k = FK_TEST; 39194 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04FCD3; /* 0x2B04FC8E: je 0x2b04fcd3 */ 39195 L_2B04FC90: 39196 eax = MEM32(edi + 0x104); /* 0x2B04FC90: mov eax, dword ptr [edi + 0x104] */ 39197 ecx = MEM32(eax + 0x8); /* 0x2B04FC96: mov ecx, dword ptr [eax + 8] */ 39198 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 39199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39200 esi = esi + 0x30u; /* 0x2B04FC99: add esi, 0x30 */ 39201 _flag_k = FK_ADD; 39202 /* cmp esi, ecx */ /* 0x2B04FC9C: cmp esi, ecx */ 39203 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 39204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39205 _flag_k = FK_CMP; 39206 RECOMP_BACKEDGE(); 39207 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FC69; /* 0x2B04FC9E: jne 0x2b04fc69 */ 39208 L_2B04FCA0: 39209 ecx = MEM32(edi + 0x100); /* 0x2B04FCA0: mov ecx, dword ptr [edi + 0x100] */ 39210 eax = MEM32(ecx + 0x4); /* 0x2B04FCA6: mov eax, dword ptr [ecx + 4] */ 39211 ecx = MEM32(ecx + 0x8); /* 0x2B04FCA9: mov ecx, dword ptr [ecx + 8] */ 39212 /* cmp eax, ecx */ /* 0x2B04FCAC: cmp eax, ecx */ 39213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 39214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39215 _flag_k = FK_CMP; 39216 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FCC5; /* 0x2B04FCAE: je 0x2b04fcc5 */ 39217 L_2B04FCB0: 39218 edx = MEM32(ebp + 0x10); /* 0x2B04FCB0: mov edx, dword ptr [ebp + 0x10] */ 39219 L_2B04FCB3: 39220 /* cmp MEM32(eax + 0x4), edx */ /* 0x2B04FCB3: cmp dword ptr [eax + 4], edx */ 39221 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx); 39222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39223 _flag_k = FK_CMP; 39224 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FCC1; /* 0x2B04FCB6: je 0x2b04fcc1 */ 39225 L_2B04FCB8: 39226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 39227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39228 eax = eax + 0x30u; /* 0x2B04FCB8: add eax, 0x30 */ 39229 _flag_k = FK_ADD; 39230 /* cmp eax, ecx */ /* 0x2B04FCBB: cmp eax, ecx */ 39231 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 39232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39233 _flag_k = FK_CMP; 39234 RECOMP_BACKEDGE(); 39235 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FCB3; /* 0x2B04FCBD: jne 0x2b04fcb3 */ 39236 L_2B04FCBF: 39237 goto L_2B04FCC5; /* 0x2B04FCBF: jmp 0x2b04fcc5 */ 39238 L_2B04FCC1: 39239 MEM8(eax + 0x24) = (uint8_t)(1); /* 0x2B04FCC1: mov byte ptr [eax + 0x24], 1 */ 39240 L_2B04FCC5: 39241 ecx = edi; /* 0x2B04FCC5: mov ecx, edi */ 39242 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FCC7: call 0x2b0510b0 */ /* not lifted */ 39243 RECOMP_FLAGS_IN(); 39244 ecx = edi; /* 0x2B04FCCC: mov ecx, edi */ 39245 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FCCE: call 0x2b03a2b0 */ /* not lifted */ 39246 RECOMP_FLAGS_IN(); 39247 L_2B04FCD3: 39248 edi = POP32_VAL(esp); /* 0x2B04FCD3: pop edi */ 39249 esi = POP32_VAL(esp); /* 0x2B04FCD4: pop esi */ 39250 ebx = POP32_VAL(esp); /* 0x2B04FCD5: pop ebx */ 39251 ebp = POP32_VAL(esp); /* 0x2B04FCD6: pop ebp */ 39252 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B04FCD7: ret 0xc */ 39253 RECOMP_REGS_OUT(); 39254 } 39255 39256 void sub_2B04FCE0(void) { 39257 int _fpu_cmp = 0; 39258 uint32_t _cf = 0; 39259 int _df = 1; 39260 uint32_t _flag_k = FK_NONE; 39261 uint32_t _flag_a = 0, _flag_b = 0; 39262 uint32_t _itail_tgt = 0; 39263 RECOMP_REGS_LOCALS 39264 RECOMP_ENTER(0x2B04FCE0u); 39265 39266 L_2B04FCE0: 39267 PUSH32(esp, ebp); /* 0x2B04FCE0: push ebp */ 39268 ebp = esp; /* 0x2B04FCE1: mov ebp, esp */ 39269 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B04FCE3: push -1 */ 39270 PUSH32(esp, 0x2B0AF8C8u); /* 0x2B04FCE5: push 0x2b0af8c8 */ 39271 eax = MEM32(FS_BASE + (0)); /* 0x2B04FCEA: mov eax, dword ptr fs:[0] */ 39272 PUSH32(esp, eax); /* 0x2B04FCF0: push eax */ 39273 MEM32(FS_BASE + (0)) = esp; /* 0x2B04FCF1: mov dword ptr fs:[0], esp */ 39274 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 39275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39276 esp = esp - 0x30u; /* 0x2B04FCF8: sub esp, 0x30 */ 39277 _flag_k = FK_CMP; 39278 PUSH32(esp, ebx); /* 0x2B04FCFB: push ebx */ 39279 ebx = ecx; /* 0x2B04FCFC: mov ebx, ecx */ 39280 eax = MEM32(ebx + 0x104); /* 0x2B04FCFE: mov eax, dword ptr [ebx + 0x104] */ 39281 PUSH32(esp, esi); /* 0x2B04FD04: push esi */ 39282 esi = MEM32(eax + 0x4); /* 0x2B04FD05: mov esi, dword ptr [eax + 4] */ 39283 eax = MEM32(eax + 0x8); /* 0x2B04FD08: mov eax, dword ptr [eax + 8] */ 39284 /* cmp esi, eax */ /* 0x2B04FD0B: cmp esi, eax */ 39285 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 39286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39287 _flag_k = FK_CMP; 39288 PUSH32(esp, edi); /* 0x2B04FD0D: push edi */ 39289 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FDB6; /* 0x2B04FD0E: je 0x2b04fdb6 */ 39290 L_2B04FD14: 39291 eax = MEM32(ebp + 0x8); /* 0x2B04FD14: mov eax, dword ptr [ebp + 8] */ 39292 eax = MEM32(eax + 0x4); /* 0x2B04FD17: mov eax, dword ptr [eax + 4] */ 39293 edx = MEM32(0x2B0B513C); /* 0x2B04FD1A: mov edx, dword ptr [0x2b0b513c] */ 39294 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 39295 edi = 0; /* 0x2B04FD20: xor edi, edi */ 39296 _cf = 0; 39297 _flag_k = FK_TEST; 39298 /* cmp eax, edi */ /* 0x2B04FD22: cmp eax, edi */ 39299 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 39300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39301 _flag_k = FK_CMP; 39302 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FD28; /* 0x2B04FD24: jne 0x2b04fd28 */ 39303 L_2B04FD26: 39304 eax = edx; /* 0x2B04FD26: mov eax, edx */ 39305 L_2B04FD28: 39306 ecx = MEM32(esi + 0x4); /* 0x2B04FD28: mov ecx, dword ptr [esi + 4] */ 39307 /* cmp ecx, edi */ /* 0x2B04FD2B: cmp ecx, edi */ 39308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 39309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39310 _flag_k = FK_CMP; 39311 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FD31; /* 0x2B04FD2D: jne 0x2b04fd31 */ 39312 L_2B04FD2F: 39313 ecx = edx; /* 0x2B04FD2F: mov ecx, edx */ 39314 L_2B04FD31: 39315 PUSH32(esp, eax); /* 0x2B04FD31: push eax */ 39316 PUSH32(esp, ecx); /* 0x2B04FD32: push ecx */ 39317 RECOMP_ICALL(MEM32(0x2B0B521C)); /* 0x2B04FD33: call dword ptr [0x2b0b521c] */ 39318 RECOMP_FLAGS_IN(); 39319 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 39320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39321 esp = esp + 8; /* 0x2B04FD39: add esp, 8 */ 39322 _flag_k = FK_ADD; 39323 /* test eax, eax */ /* 0x2B04FD3C: test eax, eax */ 39324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 39325 _cf = 0; 39326 _flag_k = FK_TEST; 39327 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04FD52; /* 0x2B04FD3E: je 0x2b04fd52 */ 39328 L_2B04FD40: 39329 ecx = MEM32(ebx + 0x104); /* 0x2B04FD40: mov ecx, dword ptr [ebx + 0x104] */ 39330 eax = MEM32(ecx + 0x8); /* 0x2B04FD46: mov eax, dword ptr [ecx + 8] */ 39331 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 39332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39333 esi = esi + 0x30u; /* 0x2B04FD49: add esi, 0x30 */ 39334 _flag_k = FK_ADD; 39335 /* cmp esi, eax */ /* 0x2B04FD4C: cmp esi, eax */ 39336 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 39337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39338 _flag_k = FK_CMP; 39339 RECOMP_BACKEDGE(); 39340 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FD14; /* 0x2B04FD4E: jne 0x2b04fd14 */ 39341 L_2B04FD50: 39342 goto L_2B04FDB8; /* 0x2B04FD50: jmp 0x2b04fdb8 */ 39343 L_2B04FD52: 39344 edx = MEM32(ebp + 0xC); /* 0x2B04FD52: mov edx, dword ptr [ebp + 0xc] */ 39345 eax = MEM32(ebp + 0x10); /* 0x2B04FD55: mov eax, dword ptr [ebp + 0x10] */ 39346 ecx = MEM32(ebp + 0x14); /* 0x2B04FD58: mov ecx, dword ptr [ebp + 0x14] */ 39347 MEM32(esi + 0x10) = edx; /* 0x2B04FD5B: mov dword ptr [esi + 0x10], edx */ 39348 MEM32(esi + 0x14) = eax; /* 0x2B04FD5E: mov dword ptr [esi + 0x14], eax */ 39349 /* test MEM32(esi + 0x1C), 0x01000000u */ /* 0x2B04FD61: test dword ptr [esi + 0x1c], 0x1000000 */ 39350 _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(0x01000000u); 39351 _cf = 0; 39352 _flag_k = FK_TEST; 39353 eax = MEM32(ebp + 0x18); /* 0x2B04FD68: mov eax, dword ptr [ebp + 0x18] */ 39354 MEM32(esi + 0x18) = ecx; /* 0x2B04FD6B: mov dword ptr [esi + 0x18], ecx */ 39355 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04FD93; /* 0x2B04FD6E: je 0x2b04fd93 */ 39356 L_2B04FD70: 39357 /* test eax, 0x01000000u */ /* 0x2B04FD70: test eax, 0x1000000 */ 39358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 39359 _cf = 0; 39360 _flag_k = FK_TEST; 39361 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04FDA0; /* 0x2B04FD75: jne 0x2b04fda0 */ 39362 L_2B04FD77: 39363 _flag_a = (uint32_t)(MEM32(ebx + 0x184)); _flag_b = (uint32_t)(1); 39364 MEM32(ebx + 0x184) = MEM32(ebx + 0x184) + 1; /* 0x2B04FD77: inc dword ptr [ebx + 0x184] */ 39365 _flag_k = FK_INC; 39366 MEM32(esi + 0x1C) = eax; /* 0x2B04FD7D: mov dword ptr [esi + 0x1c], eax */ 39367 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FD80: mov ecx, dword ptr [ebp - 0xc] */ 39368 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FD83: mov dword ptr fs:[0], ecx */ 39369 edi = POP32_VAL(esp); /* 0x2B04FD8A: pop edi */ 39370 esi = POP32_VAL(esp); /* 0x2B04FD8B: pop esi */ 39371 ebx = POP32_VAL(esp); /* 0x2B04FD8C: pop ebx */ 39372 esp = ebp; /* 0x2B04FD8D: mov esp, ebp */ 39373 ebp = POP32_VAL(esp); /* 0x2B04FD8F: pop ebp */ 39374 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B04FD90: ret 0x14 */ 39375 L_2B04FD93: 39376 /* test eax, 0x01000000u */ /* 0x2B04FD93: test eax, 0x1000000 */ 39377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 39378 _cf = 0; 39379 _flag_k = FK_TEST; 39380 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04FDA0; /* 0x2B04FD98: je 0x2b04fda0 */ 39381 L_2B04FD9A: 39382 _flag_a = (uint32_t)(MEM32(ebx + 0x184)); _flag_b = (uint32_t)(1); 39383 MEM32(ebx + 0x184) = MEM32(ebx + 0x184) - 1; /* 0x2B04FD9A: dec dword ptr [ebx + 0x184] */ 39384 _flag_k = FK_DEC; 39385 L_2B04FDA0: 39386 MEM32(esi + 0x1C) = eax; /* 0x2B04FDA0: mov dword ptr [esi + 0x1c], eax */ 39387 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FDA3: mov ecx, dword ptr [ebp - 0xc] */ 39388 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FDA6: mov dword ptr fs:[0], ecx */ 39389 edi = POP32_VAL(esp); /* 0x2B04FDAD: pop edi */ 39390 esi = POP32_VAL(esp); /* 0x2B04FDAE: pop esi */ 39391 ebx = POP32_VAL(esp); /* 0x2B04FDAF: pop ebx */ 39392 esp = ebp; /* 0x2B04FDB0: mov esp, ebp */ 39393 ebp = POP32_VAL(esp); /* 0x2B04FDB2: pop ebp */ 39394 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B04FDB3: ret 0x14 */ 39395 L_2B04FDB6: 39396 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 39397 edi = 0; /* 0x2B04FDB6: xor edi, edi */ 39398 _cf = 0; 39399 _flag_k = FK_TEST; 39400 L_2B04FDB8: 39401 esi = MEM32(ebp + 0x18); /* 0x2B04FDB8: mov esi, dword ptr [ebp + 0x18] */ 39402 /* test esi, 0x01000000u */ /* 0x2B04FDBB: test esi, 0x1000000 */ 39403 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x01000000u); 39404 _cf = 0; 39405 _flag_k = FK_TEST; 39406 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B04FDC9; /* 0x2B04FDC1: jne 0x2b04fdc9 */ 39407 L_2B04FDC3: 39408 _flag_a = (uint32_t)(MEM32(ebx + 0x184)); _flag_b = (uint32_t)(1); 39409 MEM32(ebx + 0x184) = MEM32(ebx + 0x184) + 1; /* 0x2B04FDC3: inc dword ptr [ebx + 0x184] */ 39410 _flag_k = FK_INC; 39411 L_2B04FDC9: 39412 SET_LO8(edx, MEM8(ebp + 0x1B)); /* 0x2B04FDC9: mov dl, byte ptr [ebp + 0x1b] */ 39413 PUSH32(esp, edi); /* 0x2B04FDCC: push edi */ 39414 ecx = ebp + (-0x3C); /* 0x2B04FDCD: lea ecx, [ebp - 0x3c] */ 39415 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(edx)); /* 0x2B04FDD0: mov byte ptr [ebp - 0x3c], dl */ 39416 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B04FDD3: call dword ptr [0x2b0b514c] */ 39417 RECOMP_FLAGS_IN(); 39418 MEM32(ebp + (-0x20)) = edi; /* 0x2B04FDD9: mov dword ptr [ebp - 0x20], edi */ 39419 MEM32(ebp + (-0x14)) = edi; /* 0x2B04FDDC: mov dword ptr [ebp - 0x14], edi */ 39420 MEM8(ebp + (-0x10)) = (uint8_t)(0); /* 0x2B04FDDF: mov byte ptr [ebp - 0x10], 0 */ 39421 eax = MEM32(0x2B0B515C); /* 0x2B04FDE3: mov eax, dword ptr [0x2b0b515c] */ 39422 ecx = MEM32(eax); /* 0x2B04FDE8: mov ecx, dword ptr [eax] */ 39423 edx = MEM32(ebp + 0x8); /* 0x2B04FDEA: mov edx, dword ptr [ebp + 8] */ 39424 PUSH32(esp, ecx); /* 0x2B04FDED: push ecx */ 39425 PUSH32(esp, edi); /* 0x2B04FDEE: push edi */ 39426 PUSH32(esp, edx); /* 0x2B04FDEF: push edx */ 39427 ecx = ebp + (-0x3C); /* 0x2B04FDF0: lea ecx, [ebp - 0x3c] */ 39428 MEM32(ebp + (-0x4)) = edi; /* 0x2B04FDF3: mov dword ptr [ebp - 4], edi */ 39429 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B04FDF6: call dword ptr [0x2b0b5158] */ 39430 RECOMP_FLAGS_IN(); 39431 ecx = MEM32(ebp + 0x10); /* 0x2B04FDFC: mov ecx, dword ptr [ebp + 0x10] */ 39432 eax = MEM32(ebp + 0xC); /* 0x2B04FDFF: mov eax, dword ptr [ebp + 0xc] */ 39433 edx = MEM32(ebp + 0x14); /* 0x2B04FE02: mov edx, dword ptr [ebp + 0x14] */ 39434 MEM32(ebp + (-0x28)) = ecx; /* 0x2B04FE05: mov dword ptr [ebp - 0x28], ecx */ 39435 PUSH32(esp, ebx); /* 0x2B04FE08: push ebx */ 39436 ecx = ebp + (-0x3C); /* 0x2B04FE09: lea ecx, [ebp - 0x3c] */ 39437 MEM32(ebp + (-0x2C)) = eax; /* 0x2B04FE0C: mov dword ptr [ebp - 0x2c], eax */ 39438 MEM32(ebp + (-0x24)) = edx; /* 0x2B04FE0F: mov dword ptr [ebp - 0x24], edx */ 39439 MEM32(ebp + (-0x20)) = esi; /* 0x2B04FE12: mov dword ptr [ebp - 0x20], esi */ 39440 MEM8(ebp + (-0x10)) = (uint8_t)(0); /* 0x2B04FE15: mov byte ptr [ebp - 0x10], 0 */ 39441 MEM32(ebp + (-0x14)) = edi; /* 0x2B04FE19: mov dword ptr [ebp - 0x14], edi */ 39442 RECOMP_ICALL(0x2B051720u); /* 0x2B04FE1C: call 0x2b051720 */ /* not lifted */ 39443 RECOMP_FLAGS_IN(); 39444 ecx = ebp + (-0x3C); /* 0x2B04FE21: lea ecx, [ebp - 0x3c] */ 39445 RECOMP_ICALL(0x2B0515E0u); /* 0x2B04FE24: call 0x2b0515e0 */ /* not lifted */ 39446 RECOMP_FLAGS_IN(); 39447 ecx = MEM32(ebx + 0x104); /* 0x2B04FE29: mov ecx, dword ptr [ebx + 0x104] */ 39448 edx = MEM32(ecx + 0x8); /* 0x2B04FE2F: mov edx, dword ptr [ecx + 8] */ 39449 eax = ebp + (-0x3C); /* 0x2B04FE32: lea eax, [ebp - 0x3c] */ 39450 PUSH32(esp, eax); /* 0x2B04FE35: push eax */ 39451 PUSH32(esp, 1); /* 0x2B04FE36: push 1 */ 39452 PUSH32(esp, edx); /* 0x2B04FE38: push edx */ 39453 RECOMP_ICALL(0x2B051C30u); /* 0x2B04FE39: call 0x2b051c30 */ /* not lifted */ 39454 RECOMP_FLAGS_IN(); 39455 eax = MEM32(ebx + 0x104); /* 0x2B04FE3E: mov eax, dword ptr [ebx + 0x104] */ 39456 esi = MEM32(eax + 0x8); /* 0x2B04FE44: mov esi, dword ptr [eax + 8] */ 39457 edi = MEM32(eax + 0x4); /* 0x2B04FE47: mov edi, dword ptr [eax + 4] */ 39458 ecx = esi; /* 0x2B04FE4A: mov ecx, esi */ 39459 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 39460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39461 ecx = ecx - edi; /* 0x2B04FE4C: sub ecx, edi */ 39462 _flag_k = FK_CMP; 39463 eax = 0x2AAAAAABu; /* 0x2B04FE4E: mov eax, 0x2aaaaaab */ 39464 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B04FE53: imul ecx */ 39465 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 39466 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 39467 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B04FE55: sar edx, 3 */ 39468 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 39469 edx = (uint32_t)((int32_t)edx >> 3u); 39470 eax = edx; /* 0x2B04FE58: mov eax, edx */ 39471 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B04FE5A: shr eax, 0x1f */ 39472 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 39473 eax = eax >> 31u; /* 0x2B04FE5A: shr eax, 0x1f */ 39474 PUSH32(esp, 0); /* 0x2B04FE5D: push 0 */ 39475 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 39476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39477 edx = edx + eax; /* 0x2B04FE5F: add edx, eax */ 39478 _flag_k = FK_ADD; 39479 /* cmp edx, 0x10u */ /* 0x2B04FE61: cmp edx, 0x10 */ 39480 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 39481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39482 _flag_k = FK_CMP; 39483 PUSH32(esp, esi); /* 0x2B04FE64: push esi */ 39484 PUSH32(esp, edi); /* 0x2B04FE65: push edi */ 39485 if (CMP_G(_flag_a, _flag_b)) goto L_2B04FE72; /* 0x2B04FE66: jg 0x2b04fe72 */ 39486 L_2B04FE68: 39487 RECOMP_ICALL(0x2B054B40u); /* 0x2B04FE68: call 0x2b054b40 */ /* not lifted */ 39488 RECOMP_FLAGS_IN(); 39489 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 39490 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39491 esp = esp + 0xCu; /* 0x2B04FE6D: add esp, 0xc */ 39492 _flag_k = FK_ADD; 39493 goto L_2B04FEB1; /* 0x2B04FE70: jmp 0x2b04feb1 */ 39494 L_2B04FE72: 39495 RECOMP_ICALL(0x2B054110u); /* 0x2B04FE72: call 0x2b054110 */ /* not lifted */ 39496 RECOMP_FLAGS_IN(); 39497 eax = edi + 0x300; /* 0x2B04FE77: lea eax, [edi + 0x300] */ 39498 PUSH32(esp, 0); /* 0x2B04FE7D: push 0 */ 39499 PUSH32(esp, eax); /* 0x2B04FE7F: push eax */ 39500 PUSH32(esp, edi); /* 0x2B04FE80: push edi */ 39501 MEM32(ebp + 0x18) = eax; /* 0x2B04FE81: mov dword ptr [ebp + 0x18], eax */ 39502 RECOMP_ICALL(0x2B054B40u); /* 0x2B04FE84: call 0x2b054b40 */ /* not lifted */ 39503 RECOMP_FLAGS_IN(); 39504 edi = MEM32(ebp + 0x18); /* 0x2B04FE89: mov edi, dword ptr [ebp + 0x18] */ 39505 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 39506 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39507 esp = esp + 0x18u; /* 0x2B04FE8C: add esp, 0x18 */ 39508 _flag_k = FK_ADD; 39509 /* cmp edi, esi */ /* 0x2B04FE8F: cmp edi, esi */ 39510 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 39511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39512 _flag_k = FK_CMP; 39513 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FEB1; /* 0x2B04FE91: je 0x2b04feb1 */ 39514 L_2B04FE93: 39515 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 39516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39517 esp = esp - 0x30u; /* 0x2B04FE93: sub esp, 0x30 */ 39518 _flag_k = FK_CMP; 39519 ecx = esp; /* 0x2B04FE96: mov ecx, esp */ 39520 MEM32(ebp + 0x18) = esp; /* 0x2B04FE98: mov dword ptr [ebp + 0x18], esp */ 39521 PUSH32(esp, edi); /* 0x2B04FE9B: push edi */ 39522 RECOMP_ICALL(0x2B0537D0u); /* 0x2B04FE9C: call 0x2b0537d0 */ /* not lifted */ 39523 RECOMP_FLAGS_IN(); 39524 PUSH32(esp, edi); /* 0x2B04FEA1: push edi */ 39525 RECOMP_ICALL(0x2B054240u); /* 0x2B04FEA2: call 0x2b054240 */ /* not lifted */ 39526 RECOMP_FLAGS_IN(); 39527 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 39528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39529 edi = edi + 0x30u; /* 0x2B04FEA7: add edi, 0x30 */ 39530 _flag_k = FK_ADD; 39531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 39532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39533 esp = esp + 0x34u; /* 0x2B04FEAA: add esp, 0x34 */ 39534 _flag_k = FK_ADD; 39535 /* cmp edi, esi */ /* 0x2B04FEAD: cmp edi, esi */ 39536 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 39537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39538 _flag_k = FK_CMP; 39539 RECOMP_BACKEDGE(); 39540 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FE93; /* 0x2B04FEAF: jne 0x2b04fe93 */ 39541 L_2B04FEB1: 39542 edx = MEM32(ebp + 0x14); /* 0x2B04FEB1: mov edx, dword ptr [ebp + 0x14] */ 39543 /* test edx, edx */ /* 0x2B04FEB4: test edx, edx */ 39544 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 39545 _cf = 0; 39546 _flag_k = FK_TEST; 39547 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04FEDA; /* 0x2B04FEB6: je 0x2b04feda */ 39548 L_2B04FEB8: 39549 ecx = MEM32(ebx + 0x100); /* 0x2B04FEB8: mov ecx, dword ptr [ebx + 0x100] */ 39550 eax = MEM32(ecx + 0x4); /* 0x2B04FEBE: mov eax, dword ptr [ecx + 4] */ 39551 ecx = MEM32(ecx + 0x8); /* 0x2B04FEC1: mov ecx, dword ptr [ecx + 8] */ 39552 /* cmp eax, ecx */ /* 0x2B04FEC4: cmp eax, ecx */ 39553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 39554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39555 _flag_k = FK_CMP; 39556 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FEDA; /* 0x2B04FEC6: je 0x2b04feda */ 39557 L_2B04FEC8: 39558 /* cmp MEM32(eax + 0x4), edx */ /* 0x2B04FEC8: cmp dword ptr [eax + 4], edx */ 39559 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx); 39560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39561 _flag_k = FK_CMP; 39562 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FED6; /* 0x2B04FECB: je 0x2b04fed6 */ 39563 L_2B04FECD: 39564 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 39565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39566 eax = eax + 0x30u; /* 0x2B04FECD: add eax, 0x30 */ 39567 _flag_k = FK_ADD; 39568 /* cmp eax, ecx */ /* 0x2B04FED0: cmp eax, ecx */ 39569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 39570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39571 _flag_k = FK_CMP; 39572 RECOMP_BACKEDGE(); 39573 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FEC8; /* 0x2B04FED2: jne 0x2b04fec8 */ 39574 L_2B04FED4: 39575 goto L_2B04FEDA; /* 0x2B04FED4: jmp 0x2b04feda */ 39576 L_2B04FED6: 39577 MEM8(eax + 0x24) = (uint8_t)(1); /* 0x2B04FED6: mov byte ptr [eax + 0x24], 1 */ 39578 L_2B04FEDA: 39579 ecx = ebx; /* 0x2B04FEDA: mov ecx, ebx */ 39580 RECOMP_ICALL(0x2B0510B0u); /* 0x2B04FEDC: call 0x2b0510b0 */ /* not lifted */ 39581 RECOMP_FLAGS_IN(); 39582 ecx = ebx; /* 0x2B04FEE1: mov ecx, ebx */ 39583 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B04FEE3: call 0x2b03a2b0 */ /* not lifted */ 39584 RECOMP_FLAGS_IN(); 39585 ecx = MEM32(ebp + (-0x38)); /* 0x2B04FEE8: mov ecx, dword ptr [ebp - 0x38] */ 39586 /* test ecx, ecx */ /* 0x2B04FEEB: test ecx, ecx */ 39587 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 39588 _cf = 0; 39589 _flag_k = FK_TEST; 39590 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04FF1C; /* 0x2B04FEED: je 0x2b04ff1c */ 39591 L_2B04FEEF: 39592 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B04FEEF: mov al, byte ptr [ecx - 1] */ 39593 /* test LO8(eax), LO8(eax) */ /* 0x2B04FEF2: test al, al */ 39594 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 39595 _cf = 0; 39596 _flag_k = FK_NARROW(FK_TEST, 24); 39597 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04FF12; /* 0x2B04FEF4: je 0x2b04ff12 */ 39598 L_2B04FEF6: 39599 /* cmp LO8(eax), 0xFFu */ /* 0x2B04FEF6: cmp al, 0xff */ 39600 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 39601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39602 _flag_k = FK_NARROW(FK_CMP, 24); 39603 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FF12; /* 0x2B04FEF8: je 0x2b04ff12 */ 39604 L_2B04FEFA: 39605 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 39606 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04FEFA: dec al */ 39607 _flag_k = FK_NARROW(FK_DEC, 24); 39608 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B04FEFC: mov byte ptr [ecx - 1], al */ 39609 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FEFF: mov ecx, dword ptr [ebp - 0xc] */ 39610 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FF02: mov dword ptr fs:[0], ecx */ 39611 edi = POP32_VAL(esp); /* 0x2B04FF09: pop edi */ 39612 esi = POP32_VAL(esp); /* 0x2B04FF0A: pop esi */ 39613 ebx = POP32_VAL(esp); /* 0x2B04FF0B: pop ebx */ 39614 esp = ebp; /* 0x2B04FF0C: mov esp, ebp */ 39615 ebp = POP32_VAL(esp); /* 0x2B04FF0E: pop ebp */ 39616 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B04FF0F: ret 0x14 */ 39617 L_2B04FF12: 39618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 39619 ecx = ecx - 1; /* 0x2B04FF12: dec ecx */ 39620 _flag_k = FK_DEC; 39621 PUSH32(esp, ecx); /* 0x2B04FF13: push ecx */ 39622 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04FF14: call 0x2b0ab1ba */ /* not lifted */ 39623 RECOMP_FLAGS_IN(); 39624 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 39625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39626 esp = esp + 4; /* 0x2B04FF19: add esp, 4 */ 39627 _flag_k = FK_ADD; 39628 L_2B04FF1C: 39629 ecx = MEM32(ebp + (-0xC)); /* 0x2B04FF1C: mov ecx, dword ptr [ebp - 0xc] */ 39630 edi = POP32_VAL(esp); /* 0x2B04FF1F: pop edi */ 39631 esi = POP32_VAL(esp); /* 0x2B04FF20: pop esi */ 39632 MEM32(FS_BASE + (0)) = ecx; /* 0x2B04FF21: mov dword ptr fs:[0], ecx */ 39633 ebx = POP32_VAL(esp); /* 0x2B04FF28: pop ebx */ 39634 esp = ebp; /* 0x2B04FF29: mov esp, ebp */ 39635 ebp = POP32_VAL(esp); /* 0x2B04FF2B: pop ebp */ 39636 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B04FF2C: ret 0x14 */ 39637 RECOMP_REGS_OUT(); 39638 } 39639 39640 void sub_2B04FF30(void) { 39641 int _fpu_cmp = 0; 39642 uint32_t _cf = 0; 39643 int _df = 1; 39644 uint32_t _flag_k = FK_NONE; 39645 uint32_t _flag_a = 0, _flag_b = 0; 39646 uint32_t _itail_tgt = 0; 39647 RECOMP_REGS_LOCALS 39648 RECOMP_ENTER(0x2B04FF30u); 39649 39650 L_2B04FF30: 39651 PUSH32(esp, esi); /* 0x2B04FF30: push esi */ 39652 esi = ecx; /* 0x2B04FF31: mov esi, ecx */ 39653 eax = MEM32(esi + 0x4); /* 0x2B04FF33: mov eax, dword ptr [esi + 4] */ 39654 /* test eax, eax */ /* 0x2B04FF36: test eax, eax */ 39655 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 39656 _cf = 0; 39657 _flag_k = FK_TEST; 39658 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04FF56; /* 0x2B04FF38: je 0x2b04ff56 */ 39659 L_2B04FF3A: 39660 ecx = eax + (-0x1); /* 0x2B04FF3A: lea ecx, [eax - 1] */ 39661 SET_LO8(eax, MEM8(ecx)); /* 0x2B04FF3D: mov al, byte ptr [ecx] */ 39662 /* test LO8(eax), LO8(eax) */ /* 0x2B04FF3F: test al, al */ 39663 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 39664 _cf = 0; 39665 _flag_k = FK_NARROW(FK_TEST, 24); 39666 if (TEST_Z(_flag_a, _flag_b)) goto L_2B04FF4D; /* 0x2B04FF41: je 0x2b04ff4d */ 39667 L_2B04FF43: 39668 /* cmp LO8(eax), 0xFFu */ /* 0x2B04FF43: cmp al, 0xff */ 39669 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 39670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39671 _flag_k = FK_NARROW(FK_CMP, 24); 39672 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FF4D; /* 0x2B04FF45: je 0x2b04ff4d */ 39673 L_2B04FF47: 39674 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 39675 SET_LO8(eax, LO8(eax) - 1); /* 0x2B04FF47: dec al */ 39676 _flag_k = FK_NARROW(FK_DEC, 24); 39677 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B04FF49: mov byte ptr [ecx], al */ 39678 goto L_2B04FF56; /* 0x2B04FF4B: jmp 0x2b04ff56 */ 39679 L_2B04FF4D: 39680 PUSH32(esp, ecx); /* 0x2B04FF4D: push ecx */ 39681 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B04FF4E: call 0x2b0ab1ba */ /* not lifted */ 39682 RECOMP_FLAGS_IN(); 39683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 39684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39685 esp = esp + 4; /* 0x2B04FF53: add esp, 4 */ 39686 _flag_k = FK_ADD; 39687 L_2B04FF56: 39688 MEM32(esi + 0x4) = 0; /* 0x2B04FF56: mov dword ptr [esi + 4], 0 */ 39689 MEM32(esi + 0x8) = 0; /* 0x2B04FF5D: mov dword ptr [esi + 8], 0 */ 39690 MEM32(esi + 0xC) = 0; /* 0x2B04FF64: mov dword ptr [esi + 0xc], 0 */ 39691 esi = POP32_VAL(esp); /* 0x2B04FF6B: pop esi */ 39692 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04FF6C: ret */ 39693 RECOMP_REGS_OUT(); 39694 } 39695 39696 void sub_2B04FF56(void) { 39697 int _fpu_cmp = 0; 39698 uint32_t _cf = 0; 39699 int _df = 1; 39700 uint32_t _flag_k = FK_NONE; 39701 uint32_t _flag_a = 0, _flag_b = 0; 39702 uint32_t _itail_tgt = 0; 39703 RECOMP_REGS_LOCALS 39704 RECOMP_ENTER(0x2B04FF56u); 39705 39706 L_2B04FF56: 39707 MEM32(esi + 0x4) = 0; /* 0x2B04FF56: mov dword ptr [esi + 4], 0 */ 39708 MEM32(esi + 0x8) = 0; /* 0x2B04FF5D: mov dword ptr [esi + 8], 0 */ 39709 MEM32(esi + 0xC) = 0; /* 0x2B04FF64: mov dword ptr [esi + 0xc], 0 */ 39710 esi = POP32_VAL(esp); /* 0x2B04FF6B: pop esi */ 39711 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B04FF6C: ret */ 39712 RECOMP_REGS_OUT(); 39713 } 39714 39715 void sub_2B04FF70(void) { 39716 int _fpu_cmp = 0; 39717 uint32_t _cf = 0; 39718 int _df = 1; 39719 uint32_t _flag_k = FK_NONE; 39720 uint32_t _flag_a = 0, _flag_b = 0; 39721 uint32_t _itail_tgt = 0; 39722 RECOMP_REGS_LOCALS 39723 RECOMP_ENTER(0x2B04FF70u); 39724 39725 L_2B04FF70: 39726 PUSH32(esp, ebp); /* 0x2B04FF70: push ebp */ 39727 ebp = esp; /* 0x2B04FF71: mov ebp, esp */ 39728 PUSH32(esp, ecx); /* 0x2B04FF73: push ecx */ 39729 eax = MEM32(ecx + 0x104); /* 0x2B04FF74: mov eax, dword ptr [ecx + 0x104] */ 39730 edx = MEM32(ebp + 0xC); /* 0x2B04FF7A: mov edx, dword ptr [ebp + 0xc] */ 39731 PUSH32(esp, ebx); /* 0x2B04FF7D: push ebx */ 39732 ebx = MEM32(eax + 0x4); /* 0x2B04FF7E: mov ebx, dword ptr [eax + 4] */ 39733 eax = MEM32(eax + 0x8); /* 0x2B04FF81: mov eax, dword ptr [eax + 8] */ 39734 /* cmp ebx, eax */ /* 0x2B04FF84: cmp ebx, eax */ 39735 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 39736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39737 _flag_k = FK_CMP; 39738 PUSH32(esp, esi); /* 0x2B04FF86: push esi */ 39739 esi = MEM32(ebp + 0x10); /* 0x2B04FF87: mov esi, dword ptr [ebp + 0x10] */ 39740 PUSH32(esp, edi); /* 0x2B04FF8A: push edi */ 39741 MEM32(ebp + (-0x4)) = ecx; /* 0x2B04FF8B: mov dword ptr [ebp - 4], ecx */ 39742 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FFA5; /* 0x2B04FF8E: je 0x2b04ffa5 */ 39743 L_2B04FF90: 39744 edi = MEM32(ebx + 0x10); /* 0x2B04FF90: mov edi, dword ptr [ebx + 0x10] */ 39745 /* cmp edi, edx */ /* 0x2B04FF93: cmp edi, edx */ 39746 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 39747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39748 _flag_k = FK_CMP; 39749 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FF9E; /* 0x2B04FF95: jne 0x2b04ff9e */ 39750 L_2B04FF97: 39751 edi = MEM32(ebx + 0x14); /* 0x2B04FF97: mov edi, dword ptr [ebx + 0x14] */ 39752 /* cmp edi, esi */ /* 0x2B04FF9A: cmp edi, esi */ 39753 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 39754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39755 _flag_k = FK_CMP; 39756 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B04FFBF; /* 0x2B04FF9C: je 0x2b04ffbf */ 39757 L_2B04FF9E: 39758 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 39759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39760 ebx = ebx + 0x30u; /* 0x2B04FF9E: add ebx, 0x30 */ 39761 _flag_k = FK_ADD; 39762 /* cmp ebx, eax */ /* 0x2B04FFA1: cmp ebx, eax */ 39763 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 39764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39765 _flag_k = FK_CMP; 39766 RECOMP_BACKEDGE(); 39767 if (CMP_NE(_flag_a, _flag_b)) goto L_2B04FF90; /* 0x2B04FFA3: jne 0x2b04ff90 */ 39768 L_2B04FFA5: 39769 eax = MEM32(ebp + 0x14); /* 0x2B04FFA5: mov eax, dword ptr [ebp + 0x14] */ 39770 PUSH32(esp, eax); /* 0x2B04FFA8: push eax */ 39771 PUSH32(esp, 0); /* 0x2B04FFA9: push 0 */ 39772 PUSH32(esp, esi); /* 0x2B04FFAB: push esi */ 39773 PUSH32(esp, edx); /* 0x2B04FFAC: push edx */ 39774 edx = MEM32(ebp + 0x8); /* 0x2B04FFAD: mov edx, dword ptr [ebp + 8] */ 39775 PUSH32(esp, edx); /* 0x2B04FFB0: push edx */ 39776 RECOMP_ICALL(0x2B04FCE0u); /* 0x2B04FFB1: call 0x2b04fce0 */ /* not lifted */ 39777 RECOMP_FLAGS_IN(); 39778 edi = POP32_VAL(esp); /* 0x2B04FFB6: pop edi */ 39779 esi = POP32_VAL(esp); /* 0x2B04FFB7: pop esi */ 39780 ebx = POP32_VAL(esp); /* 0x2B04FFB8: pop ebx */ 39781 esp = ebp; /* 0x2B04FFB9: mov esp, ebp */ 39782 ebp = POP32_VAL(esp); /* 0x2B04FFBB: pop ebp */ 39783 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B04FFBC: ret 0x10 */ 39784 L_2B04FFBF: 39785 eax = MEM32(ebp + 0x14); /* 0x2B04FFBF: mov eax, dword ptr [ebp + 0x14] */ 39786 esi = MEM32(ebp + 0x8); /* 0x2B04FFC2: mov esi, dword ptr [ebp + 8] */ 39787 MEM32(ebx + 0x1C) = eax; /* 0x2B04FFC5: mov dword ptr [ebx + 0x1c], eax */ 39788 ecx = MEM32(0x2B0B515C); /* 0x2B04FFC8: mov ecx, dword ptr [0x2b0b515c] */ 39789 eax = MEM32(ecx); /* 0x2B04FFCE: mov eax, dword ptr [ecx] */ 39790 ecx = MEM32(esi + 0x8); /* 0x2B04FFD0: mov ecx, dword ptr [esi + 8] */ 39791 edi = ecx; /* 0x2B04FFD3: mov edi, ecx */ 39792 /* cmp eax, edi */ /* 0x2B04FFD5: cmp eax, edi */ 39793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 39794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39795 _flag_k = FK_CMP; 39796 MEM32(ebp + 0x14) = edi; /* 0x2B04FFD7: mov dword ptr [ebp + 0x14], edi */ 39797 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04FFE1; /* 0x2B04FFDA: jae 0x2b04ffe1 */ 39798 L_2B04FFDC: 39799 MEM32(ebp + 0x14) = eax; /* 0x2B04FFDC: mov dword ptr [ebp + 0x14], eax */ 39800 edi = eax; /* 0x2B04FFDF: mov edi, eax */ 39801 L_2B04FFE1: 39802 /* cmp ebx, esi */ /* 0x2B04FFE1: cmp ebx, esi */ 39803 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 39804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39805 _flag_k = FK_CMP; 39806 if (CMP_NE(_flag_a, _flag_b)) goto L_2B05004F; /* 0x2B04FFE3: jne 0x2b05004f */ 39807 L_2B04FFE5: 39808 esi = eax; /* 0x2B04FFE5: mov esi, eax */ 39809 /* cmp MEM32(ebx + 0x8), edi */ /* 0x2B04FFE7: cmp dword ptr [ebx + 8], edi */ 39810 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(edi); 39811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39812 _flag_k = FK_CMP; 39813 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04FFF2; /* 0x2B04FFEA: jae 0x2b04fff2 */ 39814 L_2B04FFEC: 39815 RECOMP_ICALL(MEM32(0x2B0B519C)); /* 0x2B04FFEC: call dword ptr [0x2b0b519c] */ 39816 RECOMP_FLAGS_IN(); 39817 L_2B04FFF2: 39818 eax = MEM32(ebx + 0x8); /* 0x2B04FFF2: mov eax, dword ptr [ebx + 8] */ 39819 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 39820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39821 eax = eax - edi; /* 0x2B04FFF5: sub eax, edi */ 39822 _flag_k = FK_CMP; 39823 /* cmp eax, esi */ /* 0x2B04FFF7: cmp eax, esi */ 39824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 39825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39826 _flag_k = FK_CMP; 39827 if (CMP_AE(_flag_a, _flag_b)) goto L_2B04FFFD; /* 0x2B04FFF9: jae 0x2b04fffd */ 39828 L_2B04FFFB: 39829 esi = eax; /* 0x2B04FFFB: mov esi, eax */ 39830 L_2B04FFFD: 39831 /* test esi, esi */ /* 0x2B04FFFD: test esi, esi */ 39832 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 39833 _cf = 0; 39834 _flag_k = FK_TEST; 39835 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0500F5; /* 0x2B04FFFF: jbe 0x2b0500f5 */ 39836 L_2B050005: 39837 ecx = ebx; /* 0x2B050005: mov ecx, ebx */ 39838 RECOMP_ICALL(MEM32(0x2B0B516C)); /* 0x2B050007: call dword ptr [0x2b0b516c] */ 39839 RECOMP_FLAGS_IN(); 39840 ecx = MEM32(ebx + 0x8); /* 0x2B05000D: mov ecx, dword ptr [ebx + 8] */ 39841 edx = MEM32(ebx + 0x4); /* 0x2B050010: mov edx, dword ptr [ebx + 4] */ 39842 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 39843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39844 ecx = ecx - esi; /* 0x2B050013: sub ecx, esi */ 39845 _flag_k = FK_CMP; 39846 eax = edx + edi; /* 0x2B050015: lea eax, [edx + edi] */ 39847 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 39848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39849 ecx = ecx - edi; /* 0x2B050018: sub ecx, edi */ 39850 _flag_k = FK_CMP; 39851 PUSH32(esp, ecx); /* 0x2B05001A: push ecx */ 39852 edx = eax + esi; /* 0x2B05001B: lea edx, [eax + esi] */ 39853 PUSH32(esp, edx); /* 0x2B05001E: push edx */ 39854 PUSH32(esp, eax); /* 0x2B05001F: push eax */ 39855 RECOMP_ICALL(MEM32(0x2B0B51D4)); /* 0x2B050020: call dword ptr [0x2b0b51d4] */ 39856 RECOMP_FLAGS_IN(); 39857 edi = MEM32(ebx + 0x8); /* 0x2B050026: mov edi, dword ptr [ebx + 8] */ 39858 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 39859 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39860 esp = esp + 0xCu; /* 0x2B050029: add esp, 0xc */ 39861 _flag_k = FK_ADD; 39862 PUSH32(esp, 0); /* 0x2B05002C: push 0 */ 39863 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 39864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39865 edi = edi - esi; /* 0x2B05002E: sub edi, esi */ 39866 _flag_k = FK_CMP; 39867 PUSH32(esp, edi); /* 0x2B050030: push edi */ 39868 ecx = ebx; /* 0x2B050031: mov ecx, ebx */ 39869 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050033: call dword ptr [0x2b0b5154] */ 39870 RECOMP_FLAGS_IN(); 39871 /* test LO8(eax), LO8(eax) */ /* 0x2B050039: test al, al */ 39872 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 39873 _cf = 0; 39874 _flag_k = FK_NARROW(FK_TEST, 24); 39875 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0500F5; /* 0x2B05003B: je 0x2b0500f5 */ 39876 L_2B050041: 39877 PUSH32(esp, edi); /* 0x2B050041: push edi */ 39878 ecx = ebx; /* 0x2B050042: mov ecx, ebx */ 39879 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050044: call dword ptr [0x2b0b5150] */ 39880 RECOMP_FLAGS_IN(); 39881 goto L_2B0500F5; /* 0x2B05004A: jmp 0x2b0500f5 */ 39882 L_2B05004F: 39883 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 39884 edx = 0; /* 0x2B05004F: xor edx, edx */ 39885 _cf = 0; 39886 _flag_k = FK_TEST; 39887 /* cmp edi, edx */ /* 0x2B050051: cmp edi, edx */ 39888 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 39889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39890 _flag_k = FK_CMP; 39891 if (CMP_BE(_flag_a, _flag_b)) goto L_2B0500B9; /* 0x2B050053: jbe 0x2b0500b9 */ 39892 L_2B050055: 39893 /* cmp edi, ecx */ /* 0x2B050055: cmp edi, ecx */ 39894 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 39895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39896 _flag_k = FK_CMP; 39897 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0500B9; /* 0x2B050057: jne 0x2b0500b9 */ 39898 L_2B050059: 39899 eax = MEM32(esi + 0x4); /* 0x2B050059: mov eax, dword ptr [esi + 4] */ 39900 /* cmp eax, edx */ /* 0x2B05005C: cmp eax, edx */ 39901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 39902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39903 _flag_k = FK_CMP; 39904 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050065; /* 0x2B05005E: jne 0x2b050065 */ 39905 L_2B050060: 39906 eax = MEM32(0x2B0B513C); /* 0x2B050060: mov eax, dword ptr [0x2b0b513c] */ 39907 L_2B050065: 39908 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2B050065: cmp byte ptr [eax - 1], 0xfe */ 39909 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 39910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39911 _flag_k = FK_NARROW(FK_CMP, 24); 39912 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0500B9; /* 0x2B050069: jae 0x2b0500b9 */ 39913 L_2B05006B: 39914 eax = MEM32(ebx + 0x4); /* 0x2B05006B: mov eax, dword ptr [ebx + 4] */ 39915 /* cmp eax, edx */ /* 0x2B05006E: cmp eax, edx */ 39916 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 39917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39918 _flag_k = FK_CMP; 39919 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050090; /* 0x2B050070: je 0x2b050090 */ 39920 L_2B050072: 39921 ecx = eax + (-0x1); /* 0x2B050072: lea ecx, [eax - 1] */ 39922 SET_LO8(eax, MEM8(ecx)); /* 0x2B050075: mov al, byte ptr [ecx] */ 39923 /* test LO8(eax), LO8(eax) */ /* 0x2B050077: test al, al */ 39924 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 39925 _cf = 0; 39926 _flag_k = FK_NARROW(FK_TEST, 24); 39927 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050085; /* 0x2B050079: je 0x2b050085 */ 39928 L_2B05007B: 39929 /* cmp LO8(eax), 0xFFu */ /* 0x2B05007B: cmp al, 0xff */ 39930 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 39931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39932 _flag_k = FK_NARROW(FK_CMP, 24); 39933 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050085; /* 0x2B05007D: je 0x2b050085 */ 39934 L_2B05007F: 39935 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 39936 SET_LO8(eax, LO8(eax) - 1); /* 0x2B05007F: dec al */ 39937 _flag_k = FK_NARROW(FK_DEC, 24); 39938 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B050081: mov byte ptr [ecx], al */ 39939 goto L_2B050090; /* 0x2B050083: jmp 0x2b050090 */ 39940 L_2B050085: 39941 PUSH32(esp, ecx); /* 0x2B050085: push ecx */ 39942 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050086: call 0x2b0ab1ba */ /* not lifted */ 39943 RECOMP_FLAGS_IN(); 39944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 39945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 39946 esp = esp + 4; /* 0x2B05008B: add esp, 4 */ 39947 _flag_k = FK_ADD; 39948 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 39949 edx = 0; /* 0x2B05008E: xor edx, edx */ 39950 _cf = 0; 39951 _flag_k = FK_TEST; 39952 L_2B050090: 39953 MEM32(ebx + 0x4) = edx; /* 0x2B050090: mov dword ptr [ebx + 4], edx */ 39954 MEM32(ebx + 0x8) = edx; /* 0x2B050093: mov dword ptr [ebx + 8], edx */ 39955 MEM32(ebx + 0xC) = edx; /* 0x2B050096: mov dword ptr [ebx + 0xc], edx */ 39956 eax = MEM32(esi + 0x4); /* 0x2B050099: mov eax, dword ptr [esi + 4] */ 39957 /* cmp eax, edx */ /* 0x2B05009C: cmp eax, edx */ 39958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 39959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 39960 _flag_k = FK_CMP; 39961 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0500A5; /* 0x2B05009E: jne 0x2b0500a5 */ 39962 L_2B0500A0: 39963 eax = MEM32(0x2B0B513C); /* 0x2B0500A0: mov eax, dword ptr [0x2b0b513c] */ 39964 L_2B0500A5: 39965 MEM32(ebx + 0x4) = eax; /* 0x2B0500A5: mov dword ptr [ebx + 4], eax */ 39966 ecx = MEM32(esi + 0x8); /* 0x2B0500A8: mov ecx, dword ptr [esi + 8] */ 39967 MEM32(ebx + 0x8) = ecx; /* 0x2B0500AB: mov dword ptr [ebx + 8], ecx */ 39968 edx = MEM32(esi + 0xC); /* 0x2B0500AE: mov edx, dword ptr [esi + 0xc] */ 39969 MEM32(ebx + 0xC) = edx; /* 0x2B0500B1: mov dword ptr [ebx + 0xc], edx */ 39970 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 39971 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2B0500B4: inc byte ptr [eax - 1] */ 39972 _flag_k = FK_NARROW(FK_INC, 24); 39973 goto L_2B0500F5; /* 0x2B0500B7: jmp 0x2b0500f5 */ 39974 L_2B0500B9: 39975 PUSH32(esp, 1); /* 0x2B0500B9: push 1 */ 39976 PUSH32(esp, edi); /* 0x2B0500BB: push edi */ 39977 ecx = ebx; /* 0x2B0500BC: mov ecx, ebx */ 39978 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B0500BE: call dword ptr [0x2b0b5154] */ 39979 RECOMP_FLAGS_IN(); 39980 /* test LO8(eax), LO8(eax) */ /* 0x2B0500C4: test al, al */ 39981 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 39982 _cf = 0; 39983 _flag_k = FK_NARROW(FK_TEST, 24); 39984 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0500F5; /* 0x2B0500C6: je 0x2b0500f5 */ 39985 L_2B0500C8: 39986 esi = MEM32(esi + 0x4); /* 0x2B0500C8: mov esi, dword ptr [esi + 4] */ 39987 /* test esi, esi */ /* 0x2B0500CB: test esi, esi */ 39988 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 39989 _cf = 0; 39990 _flag_k = FK_TEST; 39991 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0500D5; /* 0x2B0500CD: jne 0x2b0500d5 */ 39992 L_2B0500CF: 39993 esi = MEM32(0x2B0B513C); /* 0x2B0500CF: mov esi, dword ptr [0x2b0b513c] */ 39994 L_2B0500D5: 39995 ecx = edi; /* 0x2B0500D5: mov ecx, edi */ 39996 edi = MEM32(ebx + 0x4); /* 0x2B0500D7: mov edi, dword ptr [ebx + 4] */ 39997 eax = ecx; /* 0x2B0500DA: mov eax, ecx */ 39998 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B0500DC: shr ecx, 2 */ 39999 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 40000 ecx = ecx >> 2u; /* 0x2B0500DC: shr ecx, 2 */ 40001 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0500DF: 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; } 40002 ecx = eax; /* 0x2B0500E1: mov ecx, eax */ 40003 eax = MEM32(ebp + 0x14); /* 0x2B0500E3: mov eax, dword ptr [ebp + 0x14] */ 40004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 40005 ecx = ecx & 3; /* 0x2B0500E6: and ecx, 3 */ 40006 _cf = 0; 40007 _flag_k = FK_TEST; 40008 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B0500E9: 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; } 40009 ecx = MEM32(ebx + 0x4); /* 0x2B0500EB: mov ecx, dword ptr [ebx + 4] */ 40010 MEM32(ebx + 0x8) = eax; /* 0x2B0500EE: mov dword ptr [ebx + 8], eax */ 40011 MEM8(eax + ecx) = (uint8_t)(0); /* 0x2B0500F1: mov byte ptr [eax + ecx], 0 */ 40012 L_2B0500F5: 40013 ecx = ebx; /* 0x2B0500F5: mov ecx, ebx */ 40014 RECOMP_ICALL(0x2B0515E0u); /* 0x2B0500F7: call 0x2b0515e0 */ /* not lifted */ 40015 RECOMP_FLAGS_IN(); 40016 esi = MEM32(ebp + (-0x4)); /* 0x2B0500FC: mov esi, dword ptr [ebp - 4] */ 40017 ecx = esi; /* 0x2B0500FF: mov ecx, esi */ 40018 RECOMP_ICALL(0x2B0510B0u); /* 0x2B050101: call 0x2b0510b0 */ /* not lifted */ 40019 RECOMP_FLAGS_IN(); 40020 ecx = esi; /* 0x2B050106: mov ecx, esi */ 40021 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050108: call 0x2b03a2b0 */ /* not lifted */ 40022 RECOMP_FLAGS_IN(); 40023 edi = POP32_VAL(esp); /* 0x2B05010D: pop edi */ 40024 esi = POP32_VAL(esp); /* 0x2B05010E: pop esi */ 40025 ebx = POP32_VAL(esp); /* 0x2B05010F: pop ebx */ 40026 esp = ebp; /* 0x2B050110: mov esp, ebp */ 40027 ebp = POP32_VAL(esp); /* 0x2B050112: pop ebp */ 40028 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B050113: ret 0x10 */ 40029 RECOMP_REGS_OUT(); 40030 } 40031 40032 void sub_2B0500F5(void) { 40033 int _fpu_cmp = 0; 40034 uint32_t _cf = 0; 40035 int _df = 1; 40036 uint32_t _flag_k = FK_NONE; 40037 uint32_t _flag_a = 0, _flag_b = 0; 40038 uint32_t _itail_tgt = 0; 40039 RECOMP_REGS_LOCALS 40040 RECOMP_ENTER(0x2B0500F5u); 40041 40042 L_2B0500F5: 40043 ecx = ebx; /* 0x2B0500F5: mov ecx, ebx */ 40044 RECOMP_ICALL(0x2B0515E0u); /* 0x2B0500F7: call 0x2b0515e0 */ /* not lifted */ 40045 RECOMP_FLAGS_IN(); 40046 esi = MEM32(ebp + (-0x4)); /* 0x2B0500FC: mov esi, dword ptr [ebp - 4] */ 40047 ecx = esi; /* 0x2B0500FF: mov ecx, esi */ 40048 RECOMP_ICALL(0x2B0510B0u); /* 0x2B050101: call 0x2b0510b0 */ /* not lifted */ 40049 RECOMP_FLAGS_IN(); 40050 ecx = esi; /* 0x2B050106: mov ecx, esi */ 40051 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050108: call 0x2b03a2b0 */ /* not lifted */ 40052 RECOMP_FLAGS_IN(); 40053 edi = POP32_VAL(esp); /* 0x2B05010D: pop edi */ 40054 esi = POP32_VAL(esp); /* 0x2B05010E: pop esi */ 40055 ebx = POP32_VAL(esp); /* 0x2B05010F: pop ebx */ 40056 esp = ebp; /* 0x2B050110: mov esp, ebp */ 40057 ebp = POP32_VAL(esp); /* 0x2B050112: pop ebp */ 40058 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2B050113: ret 0x10 */ 40059 RECOMP_REGS_OUT(); 40060 } 40061 40062 void sub_2B050120(void) { 40063 int _fpu_cmp = 0; 40064 uint32_t _cf = 0; 40065 int _df = 1; 40066 uint32_t _flag_k = FK_NONE; 40067 uint32_t _flag_a = 0, _flag_b = 0; 40068 uint32_t _itail_tgt = 0; 40069 RECOMP_REGS_LOCALS 40070 RECOMP_ENTER(0x2B050120u); 40071 40072 L_2B050120: 40073 PUSH32(esp, ebp); /* 0x2B050120: push ebp */ 40074 ebp = esp; /* 0x2B050121: mov ebp, esp */ 40075 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B050123: push -1 */ 40076 PUSH32(esp, 0x2B0AF8E9u); /* 0x2B050125: push 0x2b0af8e9 */ 40077 eax = MEM32(FS_BASE + (0)); /* 0x2B05012A: mov eax, dword ptr fs:[0] */ 40078 PUSH32(esp, eax); /* 0x2B050130: push eax */ 40079 MEM32(FS_BASE + (0)) = esp; /* 0x2B050131: mov dword ptr fs:[0], esp */ 40080 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 40081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40082 esp = esp - 0x20u; /* 0x2B050138: sub esp, 0x20 */ 40083 _flag_k = FK_CMP; 40084 PUSH32(esp, ebx); /* 0x2B05013B: push ebx */ 40085 ebx = ecx; /* 0x2B05013C: mov ebx, ecx */ 40086 eax = MEM32(ebx + 0x104); /* 0x2B05013E: mov eax, dword ptr [ebx + 0x104] */ 40087 PUSH32(esp, esi); /* 0x2B050144: push esi */ 40088 PUSH32(esp, edi); /* 0x2B050145: push edi */ 40089 edi = MEM32(eax + 0x4); /* 0x2B050146: mov edi, dword ptr [eax + 4] */ 40090 eax = MEM32(eax + 0x8); /* 0x2B050149: mov eax, dword ptr [eax + 8] */ 40091 /* cmp edi, eax */ /* 0x2B05014C: cmp edi, eax */ 40092 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 40093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40094 _flag_k = FK_CMP; 40095 MEM32(ebp + (-0x14)) = ebx; /* 0x2B05014E: mov dword ptr [ebp - 0x14], ebx */ 40096 MEM8(ebp + (-0xE)) = (uint8_t)(0); /* 0x2B050151: mov byte ptr [ebp - 0xe], 0 */ 40097 MEM8(ebp + (-0xD)) = (uint8_t)(0); /* 0x2B050155: mov byte ptr [ebp - 0xd], 0 */ 40098 MEM32(ebp + (-0x1C)) = edi; /* 0x2B050159: mov dword ptr [ebp - 0x1c], edi */ 40099 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0502E2; /* 0x2B05015C: je 0x2b0502e2 */ 40100 L_2B050162: 40101 eax = MEM32(ebp + 0xC); /* 0x2B050162: mov eax, dword ptr [ebp + 0xc] */ 40102 _flag_a = (uint32_t)((eax | MEM32(ebp + 0x10))); _flag_b = (uint32_t)((eax | MEM32(ebp + 0x10))); 40103 eax = eax | MEM32(ebp + 0x10); /* 0x2B050165: or eax, dword ptr [ebp + 0x10] */ 40104 _cf = 0; 40105 _flag_k = FK_TEST; 40106 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050172; /* 0x2B050168: jne 0x2b050172 */ 40107 L_2B05016A: 40108 ecx = MEM32(edi + 0x10); /* 0x2B05016A: mov ecx, dword ptr [edi + 0x10] */ 40109 _flag_a = (uint32_t)((ecx | MEM32(edi + 0x14))); _flag_b = (uint32_t)((ecx | MEM32(edi + 0x14))); 40110 ecx = ecx | MEM32(edi + 0x14); /* 0x2B05016D: or ecx, dword ptr [edi + 0x14] */ 40111 _cf = 0; 40112 _flag_k = FK_TEST; 40113 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0501A0; /* 0x2B050170: jne 0x2b0501a0 */ 40114 L_2B050172: 40115 edx = MEM32(ebp + 0x8); /* 0x2B050172: mov edx, dword ptr [ebp + 8] */ 40116 eax = MEM32(edx + 0x4); /* 0x2B050175: mov eax, dword ptr [edx + 4] */ 40117 /* test eax, eax */ /* 0x2B050178: test eax, eax */ 40118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40119 _cf = 0; 40120 _flag_k = FK_TEST; 40121 edx = MEM32(0x2B0B513C); /* 0x2B05017A: mov edx, dword ptr [0x2b0b513c] */ 40122 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050184; /* 0x2B050180: jne 0x2b050184 */ 40123 L_2B050182: 40124 eax = edx; /* 0x2B050182: mov eax, edx */ 40125 L_2B050184: 40126 ecx = MEM32(edi + 0x4); /* 0x2B050184: mov ecx, dword ptr [edi + 4] */ 40127 /* test ecx, ecx */ /* 0x2B050187: test ecx, ecx */ 40128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 40129 _cf = 0; 40130 _flag_k = FK_TEST; 40131 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05018D; /* 0x2B050189: jne 0x2b05018d */ 40132 L_2B05018B: 40133 ecx = edx; /* 0x2B05018B: mov ecx, edx */ 40134 L_2B05018D: 40135 PUSH32(esp, eax); /* 0x2B05018D: push eax */ 40136 PUSH32(esp, ecx); /* 0x2B05018E: push ecx */ 40137 RECOMP_ICALL(MEM32(0x2B0B521C)); /* 0x2B05018F: call dword ptr [0x2b0b521c] */ 40138 RECOMP_FLAGS_IN(); 40139 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 40140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40141 esp = esp + 8; /* 0x2B050195: add esp, 8 */ 40142 _flag_k = FK_ADD; 40143 /* test eax, eax */ /* 0x2B050198: test eax, eax */ 40144 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40145 _cf = 0; 40146 _flag_k = FK_TEST; 40147 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050230; /* 0x2B05019A: jne 0x2b050230 */ 40148 L_2B0501A0: 40149 eax = MEM32(edi + 0x28); /* 0x2B0501A0: mov eax, dword ptr [edi + 0x28] */ 40150 /* test eax, eax */ /* 0x2B0501A3: test eax, eax */ 40151 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40152 _cf = 0; 40153 _flag_k = FK_TEST; 40154 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0501B1; /* 0x2B0501A5: je 0x2b0501b1 */ 40155 L_2B0501A7: 40156 PUSH32(esp, eax); /* 0x2B0501A7: push eax */ 40157 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B0501A8: call dword ptr [0x2b0b51cc] */ 40158 RECOMP_FLAGS_IN(); 40159 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 40160 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40161 esp = esp + 4; /* 0x2B0501AE: add esp, 4 */ 40162 _flag_k = FK_ADD; 40163 L_2B0501B1: 40164 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B0501B1: mov al, byte ptr [edi + 0x2c] */ 40165 /* test LO8(eax), LO8(eax) */ /* 0x2B0501B4: test al, al */ 40166 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 40167 _cf = 0; 40168 _flag_k = FK_NARROW(FK_TEST, 24); 40169 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0501BC; /* 0x2B0501B6: je 0x2b0501bc */ 40170 L_2B0501B8: 40171 MEM8(ebp + (-0xE)) = (uint8_t)(1); /* 0x2B0501B8: mov byte ptr [ebp - 0xe], 1 */ 40172 L_2B0501BC: 40173 /* test MEM32(edi + 0x1C), 0x01000000u */ /* 0x2B0501BC: test dword ptr [edi + 0x1c], 0x1000000 */ 40174 _flag_a = (uint32_t)(MEM32(edi + 0x1C)); _flag_b = (uint32_t)(0x01000000u); 40175 _cf = 0; 40176 _flag_k = FK_TEST; 40177 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0501CB; /* 0x2B0501C3: jne 0x2b0501cb */ 40178 L_2B0501C5: 40179 _flag_a = (uint32_t)(MEM32(ebx + 0x184)); _flag_b = (uint32_t)(1); 40180 MEM32(ebx + 0x184) = MEM32(ebx + 0x184) - 1; /* 0x2B0501C5: dec dword ptr [ebx + 0x184] */ 40181 _flag_k = FK_DEC; 40182 L_2B0501CB: 40183 eax = MEM32(ebx + 0x104); /* 0x2B0501CB: mov eax, dword ptr [ebx + 0x104] */ 40184 ebx = MEM32(eax + 0x8); /* 0x2B0501D1: mov ebx, dword ptr [eax + 8] */ 40185 esi = edi + 0x30; /* 0x2B0501D4: lea esi, [edi + 0x30] */ 40186 /* cmp esi, ebx */ /* 0x2B0501D7: cmp esi, ebx */ 40187 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 40188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40189 _flag_k = FK_CMP; 40190 MEM32(ebp + (-0x18)) = eax; /* 0x2B0501D9: mov dword ptr [ebp - 0x18], eax */ 40191 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0501F3; /* 0x2B0501DC: je 0x2b0501f3 */ 40192 L_2B0501DE: 40193 PUSH32(esp, esi); /* 0x2B0501DE: push esi */ 40194 ecx = edi; /* 0x2B0501DF: mov ecx, edi */ 40195 RECOMP_ICALL(0x2B0534C0u); /* 0x2B0501E1: call 0x2b0534c0 */ /* not lifted */ 40196 RECOMP_FLAGS_IN(); 40197 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 40198 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40199 esi = esi + 0x30u; /* 0x2B0501E6: add esi, 0x30 */ 40200 _flag_k = FK_ADD; 40201 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 40202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40203 edi = edi + 0x30u; /* 0x2B0501E9: add edi, 0x30 */ 40204 _flag_k = FK_ADD; 40205 /* cmp esi, ebx */ /* 0x2B0501EC: cmp esi, ebx */ 40206 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 40207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40208 _flag_k = FK_CMP; 40209 RECOMP_BACKEDGE(); 40210 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0501DE; /* 0x2B0501EE: jne 0x2b0501de */ 40211 L_2B0501F0: 40212 eax = MEM32(ebp + (-0x18)); /* 0x2B0501F0: mov eax, dword ptr [ebp - 0x18] */ 40213 L_2B0501F3: 40214 edi = MEM32(eax + 0x8); /* 0x2B0501F3: mov edi, dword ptr [eax + 8] */ 40215 esi = edi + (-0x30); /* 0x2B0501F6: lea esi, [edi - 0x30] */ 40216 /* cmp esi, edi */ /* 0x2B0501F9: cmp esi, edi */ 40217 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 40218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40219 _flag_k = FK_CMP; 40220 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050211; /* 0x2B0501FB: je 0x2b050211 */ 40221 L_2B0501FD: 40222 PUSH32(esp, 1); /* 0x2B0501FD: push 1 */ 40223 ecx = esi; /* 0x2B0501FF: mov ecx, esi */ 40224 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050201: call dword ptr [0x2b0b514c] */ 40225 RECOMP_FLAGS_IN(); 40226 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 40227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40228 esi = esi + 0x30u; /* 0x2B050207: add esi, 0x30 */ 40229 _flag_k = FK_ADD; 40230 /* cmp esi, edi */ /* 0x2B05020A: cmp esi, edi */ 40231 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 40232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40233 _flag_k = FK_CMP; 40234 RECOMP_BACKEDGE(); 40235 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0501FD; /* 0x2B05020C: jne 0x2b0501fd */ 40236 L_2B05020E: 40237 eax = MEM32(ebp + (-0x18)); /* 0x2B05020E: mov eax, dword ptr [ebp - 0x18] */ 40238 L_2B050211: 40239 edx = MEM32(eax + 0x8); /* 0x2B050211: mov edx, dword ptr [eax + 8] */ 40240 ecx = MEM32(ebp + 0x10); /* 0x2B050214: mov ecx, dword ptr [ebp + 0x10] */ 40241 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFD0u); 40242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40243 edx = edx + 0xFFFFFFD0u; /* 0x2B050217: add edx, -0x30 */ 40244 _flag_k = FK_ADD; 40245 MEM32(eax + 0x8) = edx; /* 0x2B05021A: mov dword ptr [eax + 8], edx */ 40246 eax = MEM32(ebp + 0xC); /* 0x2B05021D: mov eax, dword ptr [ebp + 0xc] */ 40247 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 40248 eax = eax | ecx; /* 0x2B050220: or eax, ecx */ 40249 _cf = 0; 40250 _flag_k = FK_TEST; 40251 MEM8(ebp + (-0xD)) = (uint8_t)(1); /* 0x2B050222: mov byte ptr [ebp - 0xd], 1 */ 40252 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05024E; /* 0x2B050226: jne 0x2b05024e */ 40253 L_2B050228: 40254 edi = MEM32(ebp + (-0x1C)); /* 0x2B050228: mov edi, dword ptr [ebp - 0x1c] */ 40255 ebx = MEM32(ebp + (-0x14)); /* 0x2B05022B: mov ebx, dword ptr [ebp - 0x14] */ 40256 goto L_2B050236; /* 0x2B05022E: jmp 0x2b050236 */ 40257 L_2B050230: 40258 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 40259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40260 edi = edi + 0x30u; /* 0x2B050230: add edi, 0x30 */ 40261 _flag_k = FK_ADD; 40262 MEM32(ebp + (-0x1C)) = edi; /* 0x2B050233: mov dword ptr [ebp - 0x1c], edi */ 40263 L_2B050236: 40264 ecx = MEM32(ebx + 0x104); /* 0x2B050236: mov ecx, dword ptr [ebx + 0x104] */ 40265 /* cmp edi, MEM32(ecx + 0x8) */ /* 0x2B05023C: cmp edi, dword ptr [ecx + 8] */ 40266 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 40267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40268 _flag_k = FK_CMP; 40269 RECOMP_BACKEDGE(); 40270 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050162; /* 0x2B05023F: jne 0x2b050162 */ 40271 L_2B050245: 40272 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B050245: mov al, byte ptr [ebp - 0xd] */ 40273 /* test LO8(eax), LO8(eax) */ /* 0x2B050248: test al, al */ 40274 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 40275 _cf = 0; 40276 _flag_k = FK_NARROW(FK_TEST, 24); 40277 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05025F; /* 0x2B05024A: je 0x2b05025f */ 40278 L_2B05024C: 40279 goto L_2B050251; /* 0x2B05024C: jmp 0x2b050251 */ 40280 L_2B05024E: 40281 ebx = MEM32(ebp + (-0x14)); /* 0x2B05024E: mov ebx, dword ptr [ebp - 0x14] */ 40282 L_2B050251: 40283 ecx = ebx; /* 0x2B050251: mov ecx, ebx */ 40284 RECOMP_ICALL(0x2B0510B0u); /* 0x2B050253: call 0x2b0510b0 */ /* not lifted */ 40285 RECOMP_FLAGS_IN(); 40286 ecx = ebx; /* 0x2B050258: mov ecx, ebx */ 40287 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B05025A: call 0x2b03a2b0 */ /* not lifted */ 40288 RECOMP_FLAGS_IN(); 40289 L_2B05025F: 40290 SET_LO8(eax, MEM8(ebp + (-0xE))); /* 0x2B05025F: mov al, byte ptr [ebp - 0xe] */ 40291 /* test LO8(eax), LO8(eax) */ /* 0x2B050262: test al, al */ 40292 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 40293 _cf = 0; 40294 _flag_k = FK_NARROW(FK_TEST, 24); 40295 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0502E2; /* 0x2B050264: je 0x2b0502e2 */ 40296 L_2B050266: 40297 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B050266: mov dl, byte ptr [ebp + 0xb] */ 40298 PUSH32(esp, 0); /* 0x2B050269: push 0 */ 40299 ecx = ebp + (-0x2C); /* 0x2B05026B: lea ecx, [ebp - 0x2c] */ 40300 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(edx)); /* 0x2B05026E: mov byte ptr [ebp - 0x2c], dl */ 40301 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050271: call dword ptr [0x2b0b514c] */ 40302 RECOMP_FLAGS_IN(); 40303 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 40304 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050277: or ecx, 0xffffffff */ 40305 _cf = 0; 40306 _flag_k = FK_TEST; 40307 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 40308 eax = 0; /* 0x2B05027A: xor eax, eax */ 40309 _cf = 0; 40310 _flag_k = FK_TEST; 40311 edi = 0x2B0E1C78u; /* 0x2B05027C: mov edi, 0x2b0e1c78 */ 40312 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; } /* 0x2B050281: repne scasb al, byte ptr es:[edi] */ 40313 ecx = ~ecx; /* 0x2B050283: not ecx */ 40314 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 40315 ecx = ecx - 1; /* 0x2B050285: dec ecx */ 40316 _flag_k = FK_DEC; 40317 ebx = ecx; /* 0x2B050286: mov ebx, ecx */ 40318 PUSH32(esp, 1); /* 0x2B050288: push 1 */ 40319 PUSH32(esp, ebx); /* 0x2B05028A: push ebx */ 40320 ecx = ebp + (-0x2C); /* 0x2B05028B: lea ecx, [ebp - 0x2c] */ 40321 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B05028E: call dword ptr [0x2b0b5154] */ 40322 RECOMP_FLAGS_IN(); 40323 /* test LO8(eax), LO8(eax) */ /* 0x2B050294: test al, al */ 40324 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 40325 _cf = 0; 40326 _flag_k = FK_NARROW(FK_TEST, 24); 40327 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0502BA; /* 0x2B050296: je 0x2b0502ba */ 40328 L_2B050298: 40329 edi = MEM32(ebp + (-0x28)); /* 0x2B050298: mov edi, dword ptr [ebp - 0x28] */ 40330 ecx = ebx; /* 0x2B05029B: mov ecx, ebx */ 40331 eax = ecx; /* 0x2B05029D: mov eax, ecx */ 40332 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B05029F: shr ecx, 2 */ 40333 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 40334 ecx = ecx >> 2u; /* 0x2B05029F: shr ecx, 2 */ 40335 esi = 0x2B0E1C78u; /* 0x2B0502A2: mov esi, 0x2b0e1c78 */ 40336 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0502A7: 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; } 40337 ecx = eax; /* 0x2B0502A9: mov ecx, eax */ 40338 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 40339 ecx = ecx & 3; /* 0x2B0502AB: and ecx, 3 */ 40340 _cf = 0; 40341 _flag_k = FK_TEST; 40342 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B0502AE: 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; } 40343 ecx = MEM32(ebp + (-0x28)); /* 0x2B0502B0: mov ecx, dword ptr [ebp - 0x28] */ 40344 MEM32(ebp + (-0x24)) = ebx; /* 0x2B0502B3: mov dword ptr [ebp - 0x24], ebx */ 40345 MEM8(ecx + ebx) = (uint8_t)(0); /* 0x2B0502B6: mov byte ptr [ecx + ebx], 0 */ 40346 L_2B0502BA: 40347 ecx = MEM32(ebp + (-0x14)); /* 0x2B0502BA: mov ecx, dword ptr [ebp - 0x14] */ 40348 edx = ebp + (-0x2C); /* 0x2B0502BD: lea edx, [ebp - 0x2c] */ 40349 PUSH32(esp, edx); /* 0x2B0502C0: push edx */ 40350 MEM32(ebp + (-0x4)) = 0; /* 0x2B0502C1: mov dword ptr [ebp - 4], 0 */ 40351 RECOMP_ICALL(0x2B050350u); /* 0x2B0502C8: call 0x2b050350 */ /* not lifted */ 40352 RECOMP_FLAGS_IN(); 40353 PUSH32(esp, 1); /* 0x2B0502CD: push 1 */ 40354 ecx = ebp + (-0x2C); /* 0x2B0502CF: lea ecx, [ebp - 0x2c] */ 40355 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0502D2: mov dword ptr [ebp - 4], 0xffffffff */ 40356 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0502D9: call dword ptr [0x2b0b514c] */ 40357 RECOMP_FLAGS_IN(); 40358 ebx = MEM32(ebp + (-0x14)); /* 0x2B0502DF: mov ebx, dword ptr [ebp - 0x14] */ 40359 L_2B0502E2: 40360 ecx = MEM32(ebx + 0x100); /* 0x2B0502E2: mov ecx, dword ptr [ebx + 0x100] */ 40361 eax = MEM32(ecx + 0x4); /* 0x2B0502E8: mov eax, dword ptr [ecx + 4] */ 40362 esi = MEM32(ecx + 0x8); /* 0x2B0502EB: mov esi, dword ptr [ecx + 8] */ 40363 /* cmp eax, esi */ /* 0x2B0502EE: cmp eax, esi */ 40364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 40365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40366 _flag_k = FK_CMP; 40367 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050338; /* 0x2B0502F0: je 0x2b050338 */ 40368 L_2B0502F2: 40369 edi = MEM32(ebp + 0xC); /* 0x2B0502F2: mov edi, dword ptr [ebp + 0xc] */ 40370 edx = MEM32(ebp + 0x10); /* 0x2B0502F5: mov edx, dword ptr [ebp + 0x10] */ 40371 ecx = edi; /* 0x2B0502F8: mov ecx, edi */ 40372 _flag_a = (uint32_t)((ecx | edx)); _flag_b = (uint32_t)((ecx | edx)); 40373 ecx = ecx | edx; /* 0x2B0502FA: or ecx, edx */ 40374 _cf = 0; 40375 _flag_k = FK_TEST; 40376 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050326; /* 0x2B0502FC: je 0x2b050326 */ 40377 L_2B0502FE: 40378 ecx = MEM32(eax + 0x4); /* 0x2B0502FE: mov ecx, dword ptr [eax + 4] */ 40379 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 40380 edx = 0; /* 0x2B050301: xor edx, edx */ 40381 _cf = 0; 40382 _flag_k = FK_TEST; 40383 /* cmp ecx, edi */ /* 0x2B050303: cmp ecx, edi */ 40384 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 40385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40386 _flag_k = FK_CMP; 40387 if (CMP_NE(_flag_a, _flag_b)) goto L_2B05030C; /* 0x2B050305: jne 0x2b05030c */ 40388 L_2B050307: 40389 /* cmp edx, MEM32(ebp + 0x10) */ /* 0x2B050307: cmp edx, dword ptr [ebp + 0x10] */ 40390 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + 0x10)); 40391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40392 _flag_k = FK_CMP; 40393 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050326; /* 0x2B05030A: je 0x2b050326 */ 40394 L_2B05030C: 40395 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 40396 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40397 eax = eax + 0x30u; /* 0x2B05030C: add eax, 0x30 */ 40398 _flag_k = FK_ADD; 40399 /* cmp eax, esi */ /* 0x2B05030F: cmp eax, esi */ 40400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 40401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40402 _flag_k = FK_CMP; 40403 RECOMP_BACKEDGE(); 40404 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0502F2; /* 0x2B050311: jne 0x2b0502f2 */ 40405 L_2B050313: 40406 edi = POP32_VAL(esp); /* 0x2B050313: pop edi */ 40407 esi = POP32_VAL(esp); /* 0x2B050314: pop esi */ 40408 ebx = POP32_VAL(esp); /* 0x2B050315: pop ebx */ 40409 ecx = MEM32(ebp + (-0xC)); /* 0x2B050316: mov ecx, dword ptr [ebp - 0xc] */ 40410 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050319: mov dword ptr fs:[0], ecx */ 40411 esp = ebp; /* 0x2B050320: mov esp, ebp */ 40412 ebp = POP32_VAL(esp); /* 0x2B050322: pop ebp */ 40413 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B050323: ret 0xc */ 40414 L_2B050326: 40415 SET_LO8(ecx, MEM8(eax + 0x24)); /* 0x2B050326: mov cl, byte ptr [eax + 0x24] */ 40416 /* test LO8(ecx), LO8(ecx) */ /* 0x2B050329: test cl, cl */ 40417 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 40418 _cf = 0; 40419 _flag_k = FK_NARROW(FK_TEST, 24); 40420 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050338; /* 0x2B05032B: je 0x2b050338 */ 40421 L_2B05032D: 40422 ecx = ebx; /* 0x2B05032D: mov ecx, ebx */ 40423 MEM8(eax + 0x24) = (uint8_t)(0); /* 0x2B05032F: mov byte ptr [eax + 0x24], 0 */ 40424 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050333: call 0x2b03a2b0 */ /* not lifted */ 40425 RECOMP_FLAGS_IN(); 40426 L_2B050338: 40427 ecx = MEM32(ebp + (-0xC)); /* 0x2B050338: mov ecx, dword ptr [ebp - 0xc] */ 40428 edi = POP32_VAL(esp); /* 0x2B05033B: pop edi */ 40429 esi = POP32_VAL(esp); /* 0x2B05033C: pop esi */ 40430 ebx = POP32_VAL(esp); /* 0x2B05033D: pop ebx */ 40431 MEM32(FS_BASE + (0)) = ecx; /* 0x2B05033E: mov dword ptr fs:[0], ecx */ 40432 esp = ebp; /* 0x2B050345: mov esp, ebp */ 40433 ebp = POP32_VAL(esp); /* 0x2B050347: pop ebp */ 40434 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B050348: ret 0xc */ 40435 RECOMP_REGS_OUT(); 40436 } 40437 40438 void sub_2B050350(void) { 40439 int _fpu_cmp = 0; 40440 uint32_t _cf = 0; 40441 int _df = 1; 40442 uint32_t _flag_k = FK_NONE; 40443 uint32_t _flag_a = 0, _flag_b = 0; 40444 uint32_t _itail_tgt = 0; 40445 RECOMP_REGS_LOCALS 40446 RECOMP_ENTER(0x2B050350u); 40447 40448 L_2B050350: 40449 PUSH32(esp, ebp); /* 0x2B050350: push ebp */ 40450 ebp = esp; /* 0x2B050351: mov ebp, esp */ 40451 PUSH32(esp, ecx); /* 0x2B050353: push ecx */ 40452 PUSH32(esp, ebx); /* 0x2B050354: push ebx */ 40453 ebx = MEM32(ebp + 0x8); /* 0x2B050355: mov ebx, dword ptr [ebp + 8] */ 40454 eax = MEM32(ebx + 0x8); /* 0x2B050358: mov eax, dword ptr [ebx + 8] */ 40455 PUSH32(esp, esi); /* 0x2B05035B: push esi */ 40456 PUSH32(esp, edi); /* 0x2B05035C: push edi */ 40457 edi = ecx; /* 0x2B05035D: mov edi, ecx */ 40458 MEM32(ebp + (-0x4)) = eax; /* 0x2B05035F: mov dword ptr [ebp - 4], eax */ 40459 eax = MEM32(edi + 0x104); /* 0x2B050362: mov eax, dword ptr [edi + 0x104] */ 40460 esi = MEM32(eax + 0x4); /* 0x2B050368: mov esi, dword ptr [eax + 4] */ 40461 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B05036B: cmp esi, dword ptr [eax + 8] */ 40462 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 40463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40464 _flag_k = FK_CMP; 40465 MEM32(ebp + 0x8) = 0; /* 0x2B05036E: mov dword ptr [ebp + 8], 0 */ 40466 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05040D; /* 0x2B050375: je 0x2b05040d */ 40467 L_2B05037B: 40468 eax = MEM32(esi + 0x4); /* 0x2B05037B: mov eax, dword ptr [esi + 4] */ 40469 /* test eax, eax */ /* 0x2B05037E: test eax, eax */ 40470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40471 _cf = 0; 40472 _flag_k = FK_TEST; 40473 edx = MEM32(0x2B0B513C); /* 0x2B050380: mov edx, dword ptr [0x2b0b513c] */ 40474 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05038A; /* 0x2B050386: jne 0x2b05038a */ 40475 L_2B050388: 40476 eax = edx; /* 0x2B050388: mov eax, edx */ 40477 L_2B05038A: 40478 ecx = MEM32(ebx + 0x4); /* 0x2B05038A: mov ecx, dword ptr [ebx + 4] */ 40479 /* test ecx, ecx */ /* 0x2B05038D: test ecx, ecx */ 40480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 40481 _cf = 0; 40482 _flag_k = FK_TEST; 40483 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050393; /* 0x2B05038F: jne 0x2b050393 */ 40484 L_2B050391: 40485 ecx = edx; /* 0x2B050391: mov ecx, edx */ 40486 L_2B050393: 40487 PUSH32(esp, eax); /* 0x2B050393: push eax */ 40488 PUSH32(esp, ecx); /* 0x2B050394: push ecx */ 40489 RECOMP_ICALL(MEM32(0x2B0B521C)); /* 0x2B050395: call dword ptr [0x2b0b521c] */ 40490 RECOMP_FLAGS_IN(); 40491 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 40492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40493 esp = esp + 8; /* 0x2B05039B: add esp, 8 */ 40494 _flag_k = FK_ADD; 40495 /* test eax, eax */ /* 0x2B05039E: test eax, eax */ 40496 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40497 _cf = 0; 40498 _flag_k = FK_TEST; 40499 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050460; /* 0x2B0503A0: je 0x2b050460 */ 40500 L_2B0503A6: 40501 eax = MEM32(esi + 0x4); /* 0x2B0503A6: mov eax, dword ptr [esi + 4] */ 40502 /* test eax, eax */ /* 0x2B0503A9: test eax, eax */ 40503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40504 _cf = 0; 40505 _flag_k = FK_TEST; 40506 edx = MEM32(0x2B0B513C); /* 0x2B0503AB: mov edx, dword ptr [0x2b0b513c] */ 40507 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0503B5; /* 0x2B0503B1: jne 0x2b0503b5 */ 40508 L_2B0503B3: 40509 eax = edx; /* 0x2B0503B3: mov eax, edx */ 40510 L_2B0503B5: 40511 ecx = MEM32(ebx + 0x4); /* 0x2B0503B5: mov ecx, dword ptr [ebx + 4] */ 40512 /* test ecx, ecx */ /* 0x2B0503B8: test ecx, ecx */ 40513 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 40514 _cf = 0; 40515 _flag_k = FK_TEST; 40516 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0503BE; /* 0x2B0503BA: jne 0x2b0503be */ 40517 L_2B0503BC: 40518 ecx = edx; /* 0x2B0503BC: mov ecx, edx */ 40519 L_2B0503BE: 40520 edx = MEM32(ebp + (-0x4)); /* 0x2B0503BE: mov edx, dword ptr [ebp - 4] */ 40521 PUSH32(esp, edx); /* 0x2B0503C1: push edx */ 40522 PUSH32(esp, eax); /* 0x2B0503C2: push eax */ 40523 PUSH32(esp, ecx); /* 0x2B0503C3: push ecx */ 40524 RECOMP_ICALL(MEM32(0x2B0B5210)); /* 0x2B0503C4: call dword ptr [0x2b0b5210] */ 40525 RECOMP_FLAGS_IN(); 40526 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 40527 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40528 esp = esp + 0xCu; /* 0x2B0503CA: add esp, 0xc */ 40529 _flag_k = FK_ADD; 40530 /* test eax, eax */ /* 0x2B0503CD: test eax, eax */ 40531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40532 _cf = 0; 40533 _flag_k = FK_TEST; 40534 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0503F0; /* 0x2B0503CF: jne 0x2b0503f0 */ 40535 L_2B0503D1: 40536 SET_LO8(eax, MEM8(esi + 0x2C)); /* 0x2B0503D1: mov al, byte ptr [esi + 0x2c] */ 40537 /* test LO8(eax), LO8(eax) */ /* 0x2B0503D4: test al, al */ 40538 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 40539 _cf = 0; 40540 _flag_k = FK_NARROW(FK_TEST, 24); 40541 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0503F0; /* 0x2B0503D6: jne 0x2b0503f0 */ 40542 L_2B0503D8: 40543 eax = MEM32(esi + 0x1C); /* 0x2B0503D8: mov eax, dword ptr [esi + 0x1c] */ 40544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 40545 eax = eax & 2; /* 0x2B0503DB: and eax, 2 */ 40546 _cf = 0; 40547 _flag_k = FK_TEST; 40548 /* test LO8(eax), LO8(eax) */ /* 0x2B0503DE: test al, al */ 40549 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 40550 _cf = 0; 40551 _flag_k = FK_NARROW(FK_TEST, 24); 40552 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0503F0; /* 0x2B0503E0: jne 0x2b0503f0 */ 40553 L_2B0503E2: 40554 eax = MEM32(ebp + 0x8); /* 0x2B0503E2: mov eax, dword ptr [ebp + 8] */ 40555 /* test eax, eax */ /* 0x2B0503E5: test eax, eax */ 40556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40557 _cf = 0; 40558 _flag_k = FK_TEST; 40559 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050478; /* 0x2B0503E7: jne 0x2b050478 */ 40560 L_2B0503ED: 40561 MEM32(ebp + 0x8) = esi; /* 0x2B0503ED: mov dword ptr [ebp + 8], esi */ 40562 L_2B0503F0: 40563 ecx = MEM32(edi + 0x104); /* 0x2B0503F0: mov ecx, dword ptr [edi + 0x104] */ 40564 eax = MEM32(ecx + 0x8); /* 0x2B0503F6: mov eax, dword ptr [ecx + 8] */ 40565 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 40566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40567 esi = esi + 0x30u; /* 0x2B0503F9: add esi, 0x30 */ 40568 _flag_k = FK_ADD; 40569 /* cmp esi, eax */ /* 0x2B0503FC: cmp esi, eax */ 40570 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 40571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40572 _flag_k = FK_CMP; 40573 RECOMP_BACKEDGE(); 40574 if (CMP_NE(_flag_a, _flag_b)) goto L_2B05037B; /* 0x2B0503FE: jne 0x2b05037b */ 40575 L_2B050404: 40576 eax = MEM32(ebp + 0x8); /* 0x2B050404: mov eax, dword ptr [ebp + 8] */ 40577 /* test eax, eax */ /* 0x2B050407: test eax, eax */ 40578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40579 _cf = 0; 40580 _flag_k = FK_TEST; 40581 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05040D; /* 0x2B050409: je 0x2b05040d */ 40582 L_2B05040B: 40583 esi = eax; /* 0x2B05040B: mov esi, eax */ 40584 L_2B05040D: 40585 ecx = MEM32(edi + 0x104); /* 0x2B05040D: mov ecx, dword ptr [edi + 0x104] */ 40586 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x2B050413: cmp esi, dword ptr [ecx + 8] */ 40587 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 40588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40589 _flag_k = FK_CMP; 40590 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050457; /* 0x2B050416: je 0x2b050457 */ 40591 L_2B050418: 40592 ecx = edi; /* 0x2B050418: mov ecx, edi */ 40593 RECOMP_ICALL(0x2B04F5B0u); /* 0x2B05041A: call 0x2b04f5b0 */ /* not lifted */ 40594 RECOMP_FLAGS_IN(); 40595 ecx = edi; /* 0x2B05041F: mov ecx, edi */ 40596 RECOMP_ICALL(0x2B04F5E0u); /* 0x2B050421: call 0x2b04f5e0 */ /* not lifted */ 40597 RECOMP_FLAGS_IN(); 40598 /* test MEM32(esi + 0x1C), 0x01000000u */ /* 0x2B050426: test dword ptr [esi + 0x1c], 0x1000000 */ 40599 _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(0x01000000u); 40600 _cf = 0; 40601 _flag_k = FK_TEST; 40602 MEM8(esi + 0x2C) = (uint8_t)(1); /* 0x2B05042D: mov byte ptr [esi + 0x2c], 1 */ 40603 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050450; /* 0x2B050431: je 0x2b050450 */ 40604 L_2B050433: 40605 PUSH32(esp, 1); /* 0x2B050433: push 1 */ 40606 ecx = esi; /* 0x2B050435: mov ecx, esi */ 40607 RECOMP_ICALL(0x2B051500u); /* 0x2B050437: call 0x2b051500 */ /* not lifted */ 40608 RECOMP_FLAGS_IN(); 40609 eax = MEM32(edi + 0x184); /* 0x2B05043C: mov eax, dword ptr [edi + 0x184] */ 40610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 40611 eax = eax + 1; /* 0x2B050442: inc eax */ 40612 _flag_k = FK_INC; 40613 ecx = edi; /* 0x2B050443: mov ecx, edi */ 40614 MEM32(edi + 0x184) = eax; /* 0x2B050445: mov dword ptr [edi + 0x184], eax */ 40615 RECOMP_ICALL(0x2B0510B0u); /* 0x2B05044B: call 0x2b0510b0 */ /* not lifted */ 40616 RECOMP_FLAGS_IN(); 40617 L_2B050450: 40618 ecx = edi; /* 0x2B050450: mov ecx, edi */ 40619 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050452: call 0x2b03a2b0 */ /* not lifted */ 40620 RECOMP_FLAGS_IN(); 40621 L_2B050457: 40622 edi = POP32_VAL(esp); /* 0x2B050457: pop edi */ 40623 esi = POP32_VAL(esp); /* 0x2B050458: pop esi */ 40624 ebx = POP32_VAL(esp); /* 0x2B050459: pop ebx */ 40625 esp = ebp; /* 0x2B05045A: mov esp, ebp */ 40626 ebp = POP32_VAL(esp); /* 0x2B05045C: pop ebp */ 40627 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B05045D: ret 4 */ 40628 L_2B050460: 40629 SET_LO8(eax, MEM8(esi + 0x2C)); /* 0x2B050460: mov al, byte ptr [esi + 0x2c] */ 40630 /* test LO8(eax), LO8(eax) */ /* 0x2B050463: test al, al */ 40631 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 40632 _cf = 0; 40633 _flag_k = FK_NARROW(FK_TEST, 24); 40634 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05046D; /* 0x2B050465: jne 0x2b05046d */ 40635 L_2B050467: 40636 /* test MEM8(esi + 0x1C), 2 */ /* 0x2B050467: test byte ptr [esi + 0x1c], 2 */ 40637 _flag_a = (uint32_t)(MEM8(esi + 0x1C)) << 24; _flag_b = (uint32_t)(2) << 24; 40638 _cf = 0; 40639 _flag_k = FK_NARROW(FK_TEST, 24); 40640 RECOMP_BACKEDGE(); 40641 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050404; /* 0x2B05046B: je 0x2b050404 */ 40642 L_2B05046D: 40643 edx = MEM32(edi + 0x104); /* 0x2B05046D: mov edx, dword ptr [edi + 0x104] */ 40644 esi = MEM32(edx + 0x8); /* 0x2B050473: mov esi, dword ptr [edx + 8] */ 40645 RECOMP_BACKEDGE(); 40646 goto L_2B050404; /* 0x2B050476: jmp 0x2b050404 */ 40647 L_2B050478: 40648 eax = MEM32(edi + 0x104); /* 0x2B050478: mov eax, dword ptr [edi + 0x104] */ 40649 esi = MEM32(eax + 0x8); /* 0x2B05047E: mov esi, dword ptr [eax + 8] */ 40650 RECOMP_BACKEDGE(); 40651 goto L_2B05040D; /* 0x2B050481: jmp 0x2b05040d */ 40652 { RECOMP_REGS_OUT(); return; } /* end of function */ 40653 RECOMP_REGS_OUT(); 40654 } 40655 40656 void sub_2B050490(void) { 40657 int _fpu_cmp = 0; 40658 uint32_t _cf = 0; 40659 int _df = 1; 40660 uint32_t _flag_k = FK_NONE; 40661 uint32_t _flag_a = 0, _flag_b = 0; 40662 uint32_t _itail_tgt = 0; 40663 RECOMP_REGS_LOCALS 40664 RECOMP_ENTER(0x2B050490u); 40665 40666 L_2B050490: 40667 PUSH32(esp, ebp); /* 0x2B050490: push ebp */ 40668 ebp = esp; /* 0x2B050491: mov ebp, esp */ 40669 ecx = MEM32(ecx + 0x104); /* 0x2B050493: mov ecx, dword ptr [ecx + 0x104] */ 40670 eax = MEM32(ecx + 0x4); /* 0x2B050499: mov eax, dword ptr [ecx + 4] */ 40671 ecx = MEM32(ecx + 0x8); /* 0x2B05049C: mov ecx, dword ptr [ecx + 8] */ 40672 /* cmp eax, ecx */ /* 0x2B05049F: cmp eax, ecx */ 40673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 40674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40675 _flag_k = FK_CMP; 40676 PUSH32(esp, esi); /* 0x2B0504A1: push esi */ 40677 PUSH32(esp, edi); /* 0x2B0504A2: push edi */ 40678 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0504C0; /* 0x2B0504A3: je 0x2b0504c0 */ 40679 L_2B0504A5: 40680 esi = MEM32(ebp + 0xC); /* 0x2B0504A5: mov esi, dword ptr [ebp + 0xc] */ 40681 edx = MEM32(ebp + 0x8); /* 0x2B0504A8: mov edx, dword ptr [ebp + 8] */ 40682 L_2B0504AB: 40683 edi = MEM32(eax + 0x10); /* 0x2B0504AB: mov edi, dword ptr [eax + 0x10] */ 40684 /* cmp edi, edx */ /* 0x2B0504AE: cmp edi, edx */ 40685 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 40686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40687 _flag_k = FK_CMP; 40688 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0504B9; /* 0x2B0504B0: jne 0x2b0504b9 */ 40689 L_2B0504B2: 40690 edi = MEM32(eax + 0x14); /* 0x2B0504B2: mov edi, dword ptr [eax + 0x14] */ 40691 /* cmp edi, esi */ /* 0x2B0504B5: cmp edi, esi */ 40692 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 40693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40694 _flag_k = FK_CMP; 40695 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0504C2; /* 0x2B0504B7: je 0x2b0504c2 */ 40696 L_2B0504B9: 40697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 40698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40699 eax = eax + 0x30u; /* 0x2B0504B9: add eax, 0x30 */ 40700 _flag_k = FK_ADD; 40701 /* cmp eax, ecx */ /* 0x2B0504BC: cmp eax, ecx */ 40702 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 40703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40704 _flag_k = FK_CMP; 40705 RECOMP_BACKEDGE(); 40706 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0504AB; /* 0x2B0504BE: jne 0x2b0504ab */ 40707 L_2B0504C0: 40708 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 40709 eax = 0; /* 0x2B0504C0: xor eax, eax */ 40710 _cf = 0; 40711 _flag_k = FK_TEST; 40712 L_2B0504C2: 40713 edi = POP32_VAL(esp); /* 0x2B0504C2: pop edi */ 40714 esi = POP32_VAL(esp); /* 0x2B0504C3: pop esi */ 40715 ebp = POP32_VAL(esp); /* 0x2B0504C4: pop ebp */ 40716 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0504C5: ret 8 */ 40717 RECOMP_REGS_OUT(); 40718 } 40719 40720 void sub_2B0504D0(void) { 40721 int _fpu_cmp = 0; 40722 uint32_t _cf = 0; 40723 int _df = 1; 40724 uint32_t _flag_k = FK_NONE; 40725 uint32_t _flag_a = 0, _flag_b = 0; 40726 uint32_t _itail_tgt = 0; 40727 RECOMP_REGS_LOCALS 40728 RECOMP_ENTER(0x2B0504D0u); 40729 40730 L_2B0504D0: 40731 PUSH32(esp, ebp); /* 0x2B0504D0: push ebp */ 40732 ebp = esp; /* 0x2B0504D1: mov ebp, esp */ 40733 PUSH32(esp, ebx); /* 0x2B0504D3: push ebx */ 40734 PUSH32(esp, esi); /* 0x2B0504D4: push esi */ 40735 PUSH32(esp, edi); /* 0x2B0504D5: push edi */ 40736 edi = ecx; /* 0x2B0504D6: mov edi, ecx */ 40737 eax = MEM32(edi + 0x104); /* 0x2B0504D8: mov eax, dword ptr [edi + 0x104] */ 40738 esi = MEM32(eax + 0x4); /* 0x2B0504DE: mov esi, dword ptr [eax + 4] */ 40739 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2B0504E1: cmp esi, dword ptr [eax + 8] */ 40740 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 40741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40742 _flag_k = FK_CMP; 40743 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050520; /* 0x2B0504E4: je 0x2b050520 */ 40744 L_2B0504E6: 40745 ebx = MEM32(ebp + 0x8); /* 0x2B0504E6: mov ebx, dword ptr [ebp + 8] */ 40746 L_2B0504E9: 40747 eax = MEM32(ebx + 0x4); /* 0x2B0504E9: mov eax, dword ptr [ebx + 4] */ 40748 /* test eax, eax */ /* 0x2B0504EC: test eax, eax */ 40749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40750 _cf = 0; 40751 _flag_k = FK_TEST; 40752 edx = MEM32(0x2B0B513C); /* 0x2B0504EE: mov edx, dword ptr [0x2b0b513c] */ 40753 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0504F8; /* 0x2B0504F4: jne 0x2b0504f8 */ 40754 L_2B0504F6: 40755 eax = edx; /* 0x2B0504F6: mov eax, edx */ 40756 L_2B0504F8: 40757 ecx = MEM32(esi + 0x4); /* 0x2B0504F8: mov ecx, dword ptr [esi + 4] */ 40758 /* test ecx, ecx */ /* 0x2B0504FB: test ecx, ecx */ 40759 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 40760 _cf = 0; 40761 _flag_k = FK_TEST; 40762 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050501; /* 0x2B0504FD: jne 0x2b050501 */ 40763 L_2B0504FF: 40764 ecx = edx; /* 0x2B0504FF: mov ecx, edx */ 40765 L_2B050501: 40766 PUSH32(esp, eax); /* 0x2B050501: push eax */ 40767 PUSH32(esp, ecx); /* 0x2B050502: push ecx */ 40768 RECOMP_ICALL(MEM32(0x2B0B521C)); /* 0x2B050503: call dword ptr [0x2b0b521c] */ 40769 RECOMP_FLAGS_IN(); 40770 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 40771 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40772 esp = esp + 8; /* 0x2B050509: add esp, 8 */ 40773 _flag_k = FK_ADD; 40774 /* test eax, eax */ /* 0x2B05050C: test eax, eax */ 40775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40776 _cf = 0; 40777 _flag_k = FK_TEST; 40778 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050529; /* 0x2B05050E: je 0x2b050529 */ 40779 L_2B050510: 40780 eax = MEM32(edi + 0x104); /* 0x2B050510: mov eax, dword ptr [edi + 0x104] */ 40781 ecx = MEM32(eax + 0x8); /* 0x2B050516: mov ecx, dword ptr [eax + 8] */ 40782 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 40783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40784 esi = esi + 0x30u; /* 0x2B050519: add esi, 0x30 */ 40785 _flag_k = FK_ADD; 40786 /* cmp esi, ecx */ /* 0x2B05051C: cmp esi, ecx */ 40787 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 40788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40789 _flag_k = FK_CMP; 40790 RECOMP_BACKEDGE(); 40791 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0504E9; /* 0x2B05051E: jne 0x2b0504e9 */ 40792 L_2B050520: 40793 edi = POP32_VAL(esp); /* 0x2B050520: pop edi */ 40794 esi = POP32_VAL(esp); /* 0x2B050521: pop esi */ 40795 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 40796 eax = 0; /* 0x2B050522: xor eax, eax */ 40797 _cf = 0; 40798 _flag_k = FK_TEST; 40799 ebx = POP32_VAL(esp); /* 0x2B050524: pop ebx */ 40800 ebp = POP32_VAL(esp); /* 0x2B050525: pop ebp */ 40801 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B050526: ret 4 */ 40802 L_2B050529: 40803 edi = POP32_VAL(esp); /* 0x2B050529: pop edi */ 40804 eax = esi; /* 0x2B05052A: mov eax, esi */ 40805 esi = POP32_VAL(esp); /* 0x2B05052C: pop esi */ 40806 ebx = POP32_VAL(esp); /* 0x2B05052D: pop ebx */ 40807 ebp = POP32_VAL(esp); /* 0x2B05052E: pop ebp */ 40808 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B05052F: ret 4 */ 40809 RECOMP_REGS_OUT(); 40810 } 40811 40812 void sub_2B050540(void) { 40813 int _fpu_cmp = 0; 40814 uint32_t _cf = 0; 40815 int _df = 1; 40816 uint32_t _flag_k = FK_NONE; 40817 uint32_t _flag_a = 0, _flag_b = 0; 40818 uint32_t _itail_tgt = 0; 40819 RECOMP_REGS_LOCALS 40820 RECOMP_ENTER(0x2B050540u); 40821 40822 L_2B050540: 40823 eax = MEM32(ecx + 0x104); /* 0x2B050540: mov eax, dword ptr [ecx + 0x104] */ 40824 PUSH32(esp, esi); /* 0x2B050546: push esi */ 40825 esi = MEM32(eax + 0x4); /* 0x2B050547: mov esi, dword ptr [eax + 4] */ 40826 PUSH32(esp, edi); /* 0x2B05054A: push edi */ 40827 edi = MEM32(eax + 0x8); /* 0x2B05054B: mov edi, dword ptr [eax + 8] */ 40828 /* cmp esi, edi */ /* 0x2B05054E: cmp esi, edi */ 40829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 40830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40831 _flag_k = FK_CMP; 40832 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050580; /* 0x2B050550: je 0x2b050580 */ 40833 L_2B050552: 40834 eax = MEM32(esi + 0x10); /* 0x2B050552: mov eax, dword ptr [esi + 0x10] */ 40835 edx = MEM32(esi + 0x14); /* 0x2B050555: mov edx, dword ptr [esi + 0x14] */ 40836 ecx = 0x20u; /* 0x2B050558: mov ecx, 0x20 */ 40837 RECOMP_ICALL(0x2B0AB230u); /* 0x2B05055D: call 0x2b0ab230 */ /* not lifted */ 40838 RECOMP_FLAGS_IN(); 40839 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 40840 eax = eax & 0xFFu; /* 0x2B050562: and eax, 0xff */ 40841 _cf = 0; 40842 _flag_k = FK_TEST; 40843 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 40844 ecx = 0; /* 0x2B050567: xor ecx, ecx */ 40845 _cf = 0; 40846 _flag_k = FK_TEST; 40847 /* cmp eax, 3 */ /* 0x2B050569: cmp eax, 3 */ 40848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 40849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40850 _flag_k = FK_CMP; 40851 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050572; /* 0x2B05056C: jne 0x2b050572 */ 40852 L_2B05056E: 40853 /* test ecx, ecx */ /* 0x2B05056E: test ecx, ecx */ 40854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 40855 _cf = 0; 40856 _flag_k = FK_TEST; 40857 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05057B; /* 0x2B050570: je 0x2b05057b */ 40858 L_2B050572: 40859 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 40860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40861 esi = esi + 0x30u; /* 0x2B050572: add esi, 0x30 */ 40862 _flag_k = FK_ADD; 40863 /* cmp esi, edi */ /* 0x2B050575: cmp esi, edi */ 40864 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 40865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40866 _flag_k = FK_CMP; 40867 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050580; /* 0x2B050577: je 0x2b050580 */ 40868 L_2B050579: 40869 RECOMP_BACKEDGE(); 40870 goto L_2B050552; /* 0x2B050579: jmp 0x2b050552 */ 40871 L_2B05057B: 40872 edi = POP32_VAL(esp); /* 0x2B05057B: pop edi */ 40873 eax = esi; /* 0x2B05057C: mov eax, esi */ 40874 esi = POP32_VAL(esp); /* 0x2B05057E: pop esi */ 40875 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05057F: ret */ 40876 L_2B050580: 40877 edi = POP32_VAL(esp); /* 0x2B050580: pop edi */ 40878 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 40879 eax = 0; /* 0x2B050581: xor eax, eax */ 40880 _cf = 0; 40881 _flag_k = FK_TEST; 40882 esi = POP32_VAL(esp); /* 0x2B050583: pop esi */ 40883 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050584: ret */ 40884 RECOMP_REGS_OUT(); 40885 } 40886 40887 void sub_2B050552(void) { 40888 int _fpu_cmp = 0; 40889 uint32_t _cf = 0; 40890 int _df = 1; 40891 uint32_t _flag_k = FK_NONE; 40892 uint32_t _flag_a = 0, _flag_b = 0; 40893 uint32_t _itail_tgt = 0; 40894 RECOMP_REGS_LOCALS 40895 RECOMP_ENTER(0x2B050552u); 40896 40897 L_2B050552: 40898 eax = MEM32(esi + 0x10); /* 0x2B050552: mov eax, dword ptr [esi + 0x10] */ 40899 edx = MEM32(esi + 0x14); /* 0x2B050555: mov edx, dword ptr [esi + 0x14] */ 40900 ecx = 0x20u; /* 0x2B050558: mov ecx, 0x20 */ 40901 RECOMP_ICALL(0x2B0AB230u); /* 0x2B05055D: call 0x2b0ab230 */ /* not lifted */ 40902 RECOMP_FLAGS_IN(); 40903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 40904 eax = eax & 0xFFu; /* 0x2B050562: and eax, 0xff */ 40905 _cf = 0; 40906 _flag_k = FK_TEST; 40907 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 40908 ecx = 0; /* 0x2B050567: xor ecx, ecx */ 40909 _cf = 0; 40910 _flag_k = FK_TEST; 40911 /* cmp eax, 3 */ /* 0x2B050569: cmp eax, 3 */ 40912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 40913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40914 _flag_k = FK_CMP; 40915 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050572; /* 0x2B05056C: jne 0x2b050572 */ 40916 L_2B05056E: 40917 /* test ecx, ecx */ /* 0x2B05056E: test ecx, ecx */ 40918 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 40919 _cf = 0; 40920 _flag_k = FK_TEST; 40921 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05057B; /* 0x2B050570: je 0x2b05057b */ 40922 L_2B050572: 40923 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 40924 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 40925 esi = esi + 0x30u; /* 0x2B050572: add esi, 0x30 */ 40926 _flag_k = FK_ADD; 40927 /* cmp esi, edi */ /* 0x2B050575: cmp esi, edi */ 40928 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 40929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40930 _flag_k = FK_CMP; 40931 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050580; /* 0x2B050577: je 0x2b050580 */ 40932 L_2B050579: 40933 RECOMP_BACKEDGE(); 40934 goto L_2B050552; /* 0x2B050579: jmp 0x2b050552 */ 40935 L_2B05057B: 40936 edi = POP32_VAL(esp); /* 0x2B05057B: pop edi */ 40937 eax = esi; /* 0x2B05057C: mov eax, esi */ 40938 esi = POP32_VAL(esp); /* 0x2B05057E: pop esi */ 40939 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05057F: ret */ 40940 L_2B050580: 40941 edi = POP32_VAL(esp); /* 0x2B050580: pop edi */ 40942 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 40943 eax = 0; /* 0x2B050581: xor eax, eax */ 40944 _cf = 0; 40945 _flag_k = FK_TEST; 40946 esi = POP32_VAL(esp); /* 0x2B050583: pop esi */ 40947 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050584: ret */ 40948 RECOMP_REGS_OUT(); 40949 } 40950 40951 void sub_2B050590(void) { 40952 int _fpu_cmp = 0; 40953 uint32_t _cf = 0; 40954 int _df = 1; 40955 uint32_t _flag_k = FK_NONE; 40956 uint32_t _flag_a = 0, _flag_b = 0; 40957 uint32_t _itail_tgt = 0; 40958 RECOMP_REGS_LOCALS 40959 RECOMP_ENTER(0x2B050590u); 40960 40961 L_2B050590: 40962 PUSH32(esp, ebp); /* 0x2B050590: push ebp */ 40963 ebp = esp; /* 0x2B050591: mov ebp, esp */ 40964 PUSH32(esp, ebx); /* 0x2B050593: push ebx */ 40965 ebx = ecx; /* 0x2B050594: mov ebx, ecx */ 40966 eax = MEM32(ebx + 0x100); /* 0x2B050596: mov eax, dword ptr [ebx + 0x100] */ 40967 ecx = MEM32(eax + 0x8); /* 0x2B05059C: mov ecx, dword ptr [eax + 8] */ 40968 PUSH32(esp, esi); /* 0x2B05059F: push esi */ 40969 esi = MEM32(eax + 0x4); /* 0x2B0505A0: mov esi, dword ptr [eax + 4] */ 40970 /* cmp esi, ecx */ /* 0x2B0505A3: cmp esi, ecx */ 40971 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 40972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 40973 _flag_k = FK_CMP; 40974 PUSH32(esp, edi); /* 0x2B0505A5: push edi */ 40975 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05060E; /* 0x2B0505A6: je 0x2b05060e */ 40976 L_2B0505A8: 40977 edi = esi + 0xC; /* 0x2B0505A8: lea edi, [esi + 0xc] */ 40978 L_2B0505AB: 40979 eax = MEM32(edi); /* 0x2B0505AB: mov eax, dword ptr [edi] */ 40980 /* test eax, eax */ /* 0x2B0505AD: test eax, eax */ 40981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40982 _cf = 0; 40983 _flag_k = FK_TEST; 40984 edx = MEM32(0x2B0B513C); /* 0x2B0505AF: mov edx, dword ptr [0x2b0b513c] */ 40985 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0505B9; /* 0x2B0505B5: jne 0x2b0505b9 */ 40986 L_2B0505B7: 40987 eax = edx; /* 0x2B0505B7: mov eax, edx */ 40988 L_2B0505B9: 40989 ecx = MEM32(ebp + 0x8); /* 0x2B0505B9: mov ecx, dword ptr [ebp + 8] */ 40990 ecx = MEM32(ecx + 0x4); /* 0x2B0505BC: mov ecx, dword ptr [ecx + 4] */ 40991 /* test ecx, ecx */ /* 0x2B0505BF: test ecx, ecx */ 40992 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 40993 _cf = 0; 40994 _flag_k = FK_TEST; 40995 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0505C5; /* 0x2B0505C1: jne 0x2b0505c5 */ 40996 L_2B0505C3: 40997 ecx = edx; /* 0x2B0505C3: mov ecx, edx */ 40998 L_2B0505C5: 40999 PUSH32(esp, eax); /* 0x2B0505C5: push eax */ 41000 PUSH32(esp, ecx); /* 0x2B0505C6: push ecx */ 41001 RECOMP_ICALL(MEM32(0x2B0B521C)); /* 0x2B0505C7: call dword ptr [0x2b0b521c] */ 41002 RECOMP_FLAGS_IN(); 41003 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 41004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41005 esp = esp + 8; /* 0x2B0505CD: add esp, 8 */ 41006 _flag_k = FK_ADD; 41007 /* test eax, eax */ /* 0x2B0505D0: test eax, eax */ 41008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 41009 _cf = 0; 41010 _flag_k = FK_TEST; 41011 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0505EE; /* 0x2B0505D2: je 0x2b0505ee */ 41012 L_2B0505D4: 41013 edx = MEM32(ebx + 0x100); /* 0x2B0505D4: mov edx, dword ptr [ebx + 0x100] */ 41014 eax = MEM32(edx + 0x8); /* 0x2B0505DA: mov eax, dword ptr [edx + 8] */ 41015 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 41016 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41017 esi = esi + 0x30u; /* 0x2B0505DD: add esi, 0x30 */ 41018 _flag_k = FK_ADD; 41019 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 41020 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41021 edi = edi + 0x30u; /* 0x2B0505E0: add edi, 0x30 */ 41022 _flag_k = FK_ADD; 41023 /* cmp esi, eax */ /* 0x2B0505E3: cmp esi, eax */ 41024 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 41025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41026 _flag_k = FK_CMP; 41027 RECOMP_BACKEDGE(); 41028 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0505AB; /* 0x2B0505E5: jne 0x2b0505ab */ 41029 L_2B0505E7: 41030 edi = POP32_VAL(esp); /* 0x2B0505E7: pop edi */ 41031 esi = POP32_VAL(esp); /* 0x2B0505E8: pop esi */ 41032 ebx = POP32_VAL(esp); /* 0x2B0505E9: pop ebx */ 41033 ebp = POP32_VAL(esp); /* 0x2B0505EA: pop ebp */ 41034 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0505EB: ret 4 */ 41035 L_2B0505EE: 41036 SET_LO8(eax, MEM8(esi + 0x2C)); /* 0x2B0505EE: mov al, byte ptr [esi + 0x2c] */ 41037 /* test LO8(eax), LO8(eax) */ /* 0x2B0505F1: test al, al */ 41038 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 41039 _cf = 0; 41040 _flag_k = FK_NARROW(FK_TEST, 24); 41041 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05060E; /* 0x2B0505F3: jne 0x2b05060e */ 41042 L_2B0505F5: 41043 ecx = ebx; /* 0x2B0505F5: mov ecx, ebx */ 41044 RECOMP_ICALL(0x2B04F5B0u); /* 0x2B0505F7: call 0x2b04f5b0 */ /* not lifted */ 41045 RECOMP_FLAGS_IN(); 41046 ecx = ebx; /* 0x2B0505FC: mov ecx, ebx */ 41047 RECOMP_ICALL(0x2B04F5E0u); /* 0x2B0505FE: call 0x2b04f5e0 */ /* not lifted */ 41048 RECOMP_FLAGS_IN(); 41049 ecx = ebx; /* 0x2B050603: mov ecx, ebx */ 41050 MEM8(esi + 0x2C) = (uint8_t)(1); /* 0x2B050605: mov byte ptr [esi + 0x2c], 1 */ 41051 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050609: call 0x2b03a2b0 */ /* not lifted */ 41052 RECOMP_FLAGS_IN(); 41053 L_2B05060E: 41054 edi = POP32_VAL(esp); /* 0x2B05060E: pop edi */ 41055 esi = POP32_VAL(esp); /* 0x2B05060F: pop esi */ 41056 ebx = POP32_VAL(esp); /* 0x2B050610: pop ebx */ 41057 ebp = POP32_VAL(esp); /* 0x2B050611: pop ebp */ 41058 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B050612: ret 4 */ 41059 RECOMP_REGS_OUT(); 41060 } 41061 41062 void sub_2B050620(void) { 41063 int _fpu_cmp = 0; 41064 uint32_t _cf = 0; 41065 int _df = 1; 41066 uint32_t _flag_k = FK_NONE; 41067 uint32_t _flag_a = 0, _flag_b = 0; 41068 uint32_t _itail_tgt = 0; 41069 RECOMP_REGS_LOCALS 41070 RECOMP_ENTER(0x2B050620u); 41071 41072 L_2B050620: 41073 PUSH32(esp, ebp); /* 0x2B050620: push ebp */ 41074 ebp = esp; /* 0x2B050621: mov ebp, esp */ 41075 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 41076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41077 esp = esp - 8; /* 0x2B050623: sub esp, 8 */ 41078 _flag_k = FK_CMP; 41079 PUSH32(esp, esi); /* 0x2B050626: push esi */ 41080 PUSH32(esp, edi); /* 0x2B050627: push edi */ 41081 esi = ecx; /* 0x2B050628: mov esi, ecx */ 41082 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B05062A: call dword ptr [0x2b0b5b64] */ 41083 RECOMP_FLAGS_IN(); 41084 ecx = MEM32(eax + 0x108); /* 0x2B050630: mov ecx, dword ptr [eax + 0x108] */ 41085 eax = MEM32(eax + 0x10C); /* 0x2B050636: mov eax, dword ptr [eax + 0x10c] */ 41086 MEM32(ebp + (-0x8)) = ecx; /* 0x2B05063C: mov dword ptr [ebp - 8], ecx */ 41087 ecx = MEM32(esi + 0x8); /* 0x2B05063F: mov ecx, dword ptr [esi + 8] */ 41088 edx = ecx + 0x25; /* 0x2B050642: lea edx, [ecx + 0x25] */ 41089 /* cmp eax, edx */ /* 0x2B050645: cmp eax, edx */ 41090 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 41091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41092 _flag_k = FK_CMP; 41093 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0506C1; /* 0x2B050647: jle 0x2b0506c1 */ 41094 L_2B050649: 41095 edx = ecx + 0xA9; /* 0x2B050649: lea edx, [ecx + 0xa9] */ 41096 /* cmp eax, edx */ /* 0x2B05064F: cmp eax, edx */ 41097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 41098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41099 _flag_k = FK_CMP; 41100 if (CMP_GE(_flag_a, _flag_b)) goto L_2B0506C1; /* 0x2B050651: jge 0x2b0506c1 */ 41101 L_2B050653: 41102 edi = MEM32(esi + 0x48); /* 0x2B050653: mov edi, dword ptr [esi + 0x48] */ 41103 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 41104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41105 eax = eax - ecx; /* 0x2B050656: sub eax, ecx */ 41106 _flag_k = FK_CMP; 41107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x25u); 41108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41109 eax = eax - 0x25u; /* 0x2B050658: sub eax, 0x25 */ 41110 _flag_k = FK_CMP; 41111 ecx = eax; /* 0x2B05065B: mov ecx, eax */ 41112 eax = 0x2AAAAAABu; /* 0x2B05065D: mov eax, 0x2aaaaaab */ 41113 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B050662: imul ecx */ 41114 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 41115 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 41116 ecx = MEM32(esi + 0x100); /* 0x2B050664: mov ecx, dword ptr [esi + 0x100] */ 41117 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B05066A: sar edx, 1 */ 41118 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41119 edx = (uint32_t)((int32_t)edx >> 1u); 41120 eax = edx; /* 0x2B05066C: mov eax, edx */ 41121 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B05066E: shr eax, 0x1f */ 41122 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41123 eax = eax >> 31u; /* 0x2B05066E: shr eax, 0x1f */ 41124 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 41125 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41126 edx = edx + eax; /* 0x2B050671: add edx, eax */ 41127 _flag_k = FK_ADD; 41128 eax = MEM32(ecx + 0x4); /* 0x2B050673: mov eax, dword ptr [ecx + 4] */ 41129 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 41130 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41131 edx = edx + edi; /* 0x2B050676: add edx, edi */ 41132 _flag_k = FK_ADD; 41133 /* test eax, eax */ /* 0x2B050678: test eax, eax */ 41134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 41135 _cf = 0; 41136 _flag_k = FK_TEST; 41137 edi = edx; /* 0x2B05067A: mov edi, edx */ 41138 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0506C1; /* 0x2B05067C: je 0x2b0506c1 */ 41139 L_2B05067E: 41140 edx = MEM32(ecx + 0x8); /* 0x2B05067E: mov edx, dword ptr [ecx + 8] */ 41141 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 41142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41143 edx = edx - eax; /* 0x2B050681: sub edx, eax */ 41144 _flag_k = FK_CMP; 41145 eax = 0x2AAAAAABu; /* 0x2B050683: mov eax, 0x2aaaaaab */ 41146 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B050688: imul edx */ 41147 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 41148 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 41149 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B05068A: sar edx, 3 */ 41150 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41151 edx = (uint32_t)((int32_t)edx >> 3u); 41152 eax = edx; /* 0x2B05068D: mov eax, edx */ 41153 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B05068F: shr eax, 0x1f */ 41154 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41155 eax = eax >> 31u; /* 0x2B05068F: shr eax, 0x1f */ 41156 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 41157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41158 edx = edx + eax; /* 0x2B050692: add edx, eax */ 41159 _flag_k = FK_ADD; 41160 /* cmp edi, edx */ /* 0x2B050694: cmp edi, edx */ 41161 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 41162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41163 _flag_k = FK_CMP; 41164 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0506C1; /* 0x2B050696: jae 0x2b0506c1 */ 41165 L_2B050698: 41166 /* test edi, edi */ /* 0x2B050698: test edi, edi */ 41167 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 41168 _cf = 0; 41169 _flag_k = FK_TEST; 41170 ecx = MEM32(ecx + 0x4); /* 0x2B05069A: mov ecx, dword ptr [ecx + 4] */ 41171 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0506A7; /* 0x2B05069D: jbe 0x2b0506a7 */ 41172 L_2B05069F: 41173 edx = edi + edi * 2; /* 0x2B05069F: lea edx, [edi + edi*2] */ 41174 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x2B0506A2: shl edx, 4 */ 41175 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41176 edx = edx << 4u; /* 0x2B0506A2: shl edx, 4 */ 41177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 41178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41179 ecx = ecx + edx; /* 0x2B0506A5: add ecx, edx */ 41180 _flag_k = FK_ADD; 41181 L_2B0506A7: 41182 eax = MEM32(ecx + 0x18); /* 0x2B0506A7: mov eax, dword ptr [ecx + 0x18] */ 41183 /* test eax, eax */ /* 0x2B0506AA: test eax, eax */ 41184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 41185 _cf = 0; 41186 _flag_k = FK_TEST; 41187 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0506C1; /* 0x2B0506AC: jne 0x2b0506c1 */ 41188 L_2B0506AE: 41189 PUSH32(esp, ecx); /* 0x2B0506AE: push ecx */ 41190 PUSH32(esp, 0x24u); /* 0x2B0506AF: push 0x24 */ 41191 PUSH32(esp, 8); /* 0x2B0506B1: push 8 */ 41192 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B0506B3: call dword ptr [0x2b0b53cc] */ 41193 RECOMP_FLAGS_IN(); 41194 ecx = eax; /* 0x2B0506B9: mov ecx, eax */ 41195 RECOMP_ICALL(MEM32(0x2B0B5380)); /* 0x2B0506BB: call dword ptr [0x2b0b5380] */ 41196 RECOMP_FLAGS_IN(); 41197 L_2B0506C1: 41198 edi = POP32_VAL(esp); /* 0x2B0506C1: pop edi */ 41199 esi = POP32_VAL(esp); /* 0x2B0506C2: pop esi */ 41200 esp = ebp; /* 0x2B0506C3: mov esp, ebp */ 41201 ebp = POP32_VAL(esp); /* 0x2B0506C5: pop ebp */ 41202 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0506C6: ret */ 41203 RECOMP_REGS_OUT(); 41204 } 41205 41206 void sub_2B0506D0(void) { 41207 int _fpu_cmp = 0; 41208 uint32_t _cf = 0; 41209 int _df = 1; 41210 uint32_t _flag_k = FK_NONE; 41211 uint32_t _flag_a = 0, _flag_b = 0; 41212 uint32_t _itail_tgt = 0; 41213 RECOMP_REGS_LOCALS 41214 RECOMP_ENTER(0x2B0506D0u); 41215 41216 L_2B0506D0: 41217 PUSH32(esp, ebp); /* 0x2B0506D0: push ebp */ 41218 ebp = esp; /* 0x2B0506D1: mov ebp, esp */ 41219 eax = MEM32(0x2B0B610C); /* 0x2B0506D3: mov eax, dword ptr [0x2b0b610c] */ 41220 ecx = MEM32(eax); /* 0x2B0506D8: mov ecx, dword ptr [eax] */ 41221 PUSH32(esp, esi); /* 0x2B0506DA: push esi */ 41222 esi = MEM32(ebp + 0x8); /* 0x2B0506DB: mov esi, dword ptr [ebp + 8] */ 41223 PUSH32(esp, esi); /* 0x2B0506DE: push esi */ 41224 RECOMP_ICALL(MEM32(0x2B0B6110)); /* 0x2B0506DF: call dword ptr [0x2b0b6110] */ 41225 RECOMP_FLAGS_IN(); 41226 /* test LO8(eax), LO8(eax) */ /* 0x2B0506E5: test al, al */ 41227 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 41228 _cf = 0; 41229 _flag_k = FK_NARROW(FK_TEST, 24); 41230 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0506F8; /* 0x2B0506E7: jne 0x2b0506f8 */ 41231 L_2B0506E9: 41232 ecx = MEM32(0x2B0B610C); /* 0x2B0506E9: mov ecx, dword ptr [0x2b0b610c] */ 41233 ecx = MEM32(ecx); /* 0x2B0506EF: mov ecx, dword ptr [ecx] */ 41234 PUSH32(esp, esi); /* 0x2B0506F1: push esi */ 41235 RECOMP_ICALL(MEM32(0x2B0B6114)); /* 0x2B0506F2: call dword ptr [0x2b0b6114] */ 41236 RECOMP_FLAGS_IN(); 41237 L_2B0506F8: 41238 esi = POP32_VAL(esp); /* 0x2B0506F8: pop esi */ 41239 ebp = POP32_VAL(esp); /* 0x2B0506F9: pop ebp */ 41240 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0506FA: ret 4 */ 41241 RECOMP_REGS_OUT(); 41242 } 41243 41244 void sub_2B050700(void) { 41245 int _fpu_cmp = 0; 41246 uint32_t _cf = 0; 41247 int _df = 1; 41248 uint32_t _flag_k = FK_NONE; 41249 uint32_t _flag_a = 0, _flag_b = 0; 41250 uint32_t _itail_tgt = 0; 41251 RECOMP_REGS_LOCALS 41252 RECOMP_ENTER(0x2B050700u); 41253 41254 L_2B050700: 41255 PUSH32(esp, ebp); /* 0x2B050700: push ebp */ 41256 ebp = esp; /* 0x2B050701: mov ebp, esp */ 41257 PUSH32(esp, ebx); /* 0x2B050703: push ebx */ 41258 PUSH32(esp, esi); /* 0x2B050704: push esi */ 41259 esi = MEM32(ecx + 0x100); /* 0x2B050705: mov esi, dword ptr [ecx + 0x100] */ 41260 eax = MEM32(esi + 0x4); /* 0x2B05070B: mov eax, dword ptr [esi + 4] */ 41261 /* test eax, eax */ /* 0x2B05070E: test eax, eax */ 41262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 41263 _cf = 0; 41264 _flag_k = FK_TEST; 41265 PUSH32(esp, edi); /* 0x2B050710: push edi */ 41266 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050717; /* 0x2B050711: jne 0x2b050717 */ 41267 L_2B050713: 41268 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 41269 edx = 0; /* 0x2B050713: xor edx, edx */ 41270 _cf = 0; 41271 _flag_k = FK_TEST; 41272 goto L_2B05072D; /* 0x2B050715: jmp 0x2b05072d */ 41273 L_2B050717: 41274 ecx = MEM32(esi + 0x8); /* 0x2B050717: mov ecx, dword ptr [esi + 8] */ 41275 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 41276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41277 ecx = ecx - eax; /* 0x2B05071A: sub ecx, eax */ 41278 _flag_k = FK_CMP; 41279 eax = 0x2AAAAAABu; /* 0x2B05071C: mov eax, 0x2aaaaaab */ 41280 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B050721: imul ecx */ 41281 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 41282 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 41283 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B050723: sar edx, 3 */ 41284 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41285 edx = (uint32_t)((int32_t)edx >> 3u); 41286 eax = edx; /* 0x2B050726: mov eax, edx */ 41287 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B050728: shr eax, 0x1f */ 41288 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41289 eax = eax >> 31u; /* 0x2B050728: shr eax, 0x1f */ 41290 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 41291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41292 edx = edx + eax; /* 0x2B05072B: add edx, eax */ 41293 _flag_k = FK_ADD; 41294 L_2B05072D: 41295 eax = MEM32(esi + 0x4); /* 0x2B05072D: mov eax, dword ptr [esi + 4] */ 41296 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 41297 ecx = 0; /* 0x2B050730: xor ecx, ecx */ 41298 _cf = 0; 41299 _flag_k = FK_TEST; 41300 /* test edx, edx */ /* 0x2B050732: test edx, edx */ 41301 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 41302 _cf = 0; 41303 _flag_k = FK_TEST; 41304 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05074F; /* 0x2B050734: je 0x2b05074f */ 41305 L_2B050736: 41306 esi = MEM32(ebp + 0x8); /* 0x2B050736: mov esi, dword ptr [ebp + 8] */ 41307 edi = MEM32(esi + 0x4); /* 0x2B050739: mov edi, dword ptr [esi + 4] */ 41308 L_2B05073C: 41309 /* cmp edi, MEM32(eax + 0x4) */ /* 0x2B05073C: cmp edi, dword ptr [eax + 4] */ 41310 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 41311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41312 _flag_k = FK_CMP; 41313 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050747; /* 0x2B05073F: jne 0x2b050747 */ 41314 L_2B050741: 41315 ebx = MEM32(esi); /* 0x2B050741: mov ebx, dword ptr [esi] */ 41316 /* cmp ebx, MEM32(eax) */ /* 0x2B050743: cmp ebx, dword ptr [eax] */ 41317 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 41318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41319 _flag_k = FK_CMP; 41320 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050751; /* 0x2B050745: je 0x2b050751 */ 41321 L_2B050747: 41322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 41323 ecx = ecx + 1; /* 0x2B050747: inc ecx */ 41324 _flag_k = FK_INC; 41325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 41326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41327 eax = eax + 0x30u; /* 0x2B050748: add eax, 0x30 */ 41328 _flag_k = FK_ADD; 41329 /* cmp edx, ecx */ /* 0x2B05074B: cmp edx, ecx */ 41330 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 41331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41332 _flag_k = FK_CMP; 41333 RECOMP_BACKEDGE(); 41334 if (CMP_NE(_flag_a, _flag_b)) goto L_2B05073C; /* 0x2B05074D: jne 0x2b05073c */ 41335 L_2B05074F: 41336 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 41337 eax = 0; /* 0x2B05074F: xor eax, eax */ 41338 _cf = 0; 41339 _flag_k = FK_TEST; 41340 L_2B050751: 41341 edi = POP32_VAL(esp); /* 0x2B050751: pop edi */ 41342 esi = POP32_VAL(esp); /* 0x2B050752: pop esi */ 41343 ebx = POP32_VAL(esp); /* 0x2B050753: pop ebx */ 41344 ebp = POP32_VAL(esp); /* 0x2B050754: pop ebp */ 41345 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B050755: ret 4 */ 41346 RECOMP_REGS_OUT(); 41347 } 41348 41349 void sub_2B050760(void) { 41350 int _fpu_cmp = 0; 41351 uint32_t _cf = 0; 41352 int _df = 1; 41353 uint32_t _flag_k = FK_NONE; 41354 uint32_t _flag_a = 0, _flag_b = 0; 41355 uint32_t _itail_tgt = 0; 41356 RECOMP_REGS_LOCALS 41357 RECOMP_ENTER(0x2B050760u); 41358 41359 L_2B050760: 41360 PUSH32(esp, ebp); /* 0x2B050760: push ebp */ 41361 ebp = esp; /* 0x2B050761: mov ebp, esp */ 41362 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 41363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41364 esp = esp - 0x14u; /* 0x2B050763: sub esp, 0x14 */ 41365 _flag_k = FK_CMP; 41366 PUSH32(esp, ebx); /* 0x2B050766: push ebx */ 41367 PUSH32(esp, esi); /* 0x2B050767: push esi */ 41368 PUSH32(esp, edi); /* 0x2B050768: push edi */ 41369 esi = ecx; /* 0x2B050769: mov esi, ecx */ 41370 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B05076B: call dword ptr [0x2b0b5b64] */ 41371 RECOMP_FLAGS_IN(); 41372 ecx = MEM32(eax + 0x108); /* 0x2B050771: mov ecx, dword ptr [eax + 0x108] */ 41373 ebx = MEM32(eax + 0x10C); /* 0x2B050777: mov ebx, dword ptr [eax + 0x10c] */ 41374 edi = MEM32(esi + 0x8); /* 0x2B05077D: mov edi, dword ptr [esi + 8] */ 41375 MEM32(ebp + (-0x14)) = ecx; /* 0x2B050780: mov dword ptr [ebp - 0x14], ecx */ 41376 ecx = ebx; /* 0x2B050783: mov ecx, ebx */ 41377 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 41378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41379 ecx = ecx - edi; /* 0x2B050785: sub ecx, edi */ 41380 _flag_k = FK_CMP; 41381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x25u); 41382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41383 ecx = ecx - 0x25u; /* 0x2B050787: sub ecx, 0x25 */ 41384 _flag_k = FK_CMP; 41385 eax = 0x2AAAAAABu; /* 0x2B05078A: mov eax, 0x2aaaaaab */ 41386 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B05078F: imul ecx */ 41387 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 41388 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 41389 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B050791: sar edx, 1 */ 41390 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41391 edx = (uint32_t)((int32_t)edx >> 1u); 41392 eax = edx; /* 0x2B050793: mov eax, edx */ 41393 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B050795: shr eax, 0x1f */ 41394 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41395 eax = eax >> 31u; /* 0x2B050795: shr eax, 0x1f */ 41396 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 41397 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41398 edx = edx + eax; /* 0x2B050798: add edx, eax */ 41399 _flag_k = FK_ADD; 41400 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_S)) goto L_2B050804; /* 0x2B05079A: js 0x2b050804 */ 41401 L_2B05079C: 41402 /* cmp edx, 0xBu */ /* 0x2B05079C: cmp edx, 0xb */ 41403 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 41404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41405 _flag_k = FK_CMP; 41406 if (CMP_GE(_flag_a, _flag_b)) goto L_2B050804; /* 0x2B05079F: jge 0x2b050804 */ 41407 L_2B0507A1: 41408 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x48)); 41409 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41410 edx = edx + MEM32(esi + 0x48); /* 0x2B0507A1: add edx, dword ptr [esi + 0x48] */ 41411 _flag_k = FK_ADD; 41412 eax = MEM32(esi + 0x100); /* 0x2B0507A4: mov eax, dword ptr [esi + 0x100] */ 41413 edi = MEM32(eax + 0x4); /* 0x2B0507AA: mov edi, dword ptr [eax + 4] */ 41414 eax = MEM32(eax + 0x8); /* 0x2B0507AD: mov eax, dword ptr [eax + 8] */ 41415 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 41416 ecx = 0; /* 0x2B0507B0: xor ecx, ecx */ 41417 _cf = 0; 41418 _flag_k = FK_TEST; 41419 /* cmp edi, eax */ /* 0x2B0507B2: cmp edi, eax */ 41420 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 41421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41422 _flag_k = FK_CMP; 41423 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B0507B4: je 0x2b0508a1 */ 41424 L_2B0507BA: 41425 /* cmp ecx, edx */ /* 0x2B0507BA: cmp ecx, edx */ 41426 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 41427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41428 _flag_k = FK_CMP; 41429 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0507C6; /* 0x2B0507BC: je 0x2b0507c6 */ 41430 L_2B0507BE: 41431 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 41432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41433 edi = edi + 0x30u; /* 0x2B0507BE: add edi, 0x30 */ 41434 _flag_k = FK_ADD; 41435 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 41436 ecx = ecx + 1; /* 0x2B0507C1: inc ecx */ 41437 _flag_k = FK_INC; 41438 /* cmp edi, eax */ /* 0x2B0507C2: cmp edi, eax */ 41439 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 41440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41441 _flag_k = FK_CMP; 41442 RECOMP_BACKEDGE(); 41443 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0507BA; /* 0x2B0507C4: jne 0x2b0507ba */ 41444 L_2B0507C6: 41445 /* cmp edi, eax */ /* 0x2B0507C6: cmp edi, eax */ 41446 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 41447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41448 _flag_k = FK_CMP; 41449 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B0507C8: je 0x2b0508a1 */ 41450 L_2B0507CE: 41451 eax = MEM32(edi + 0x18); /* 0x2B0507CE: mov eax, dword ptr [edi + 0x18] */ 41452 /* test eax, eax */ /* 0x2B0507D1: test eax, eax */ 41453 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 41454 _cf = 0; 41455 _flag_k = FK_TEST; 41456 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B0507D3: jne 0x2b0508a1 */ 41457 L_2B0507D9: 41458 SET_LO8(eax, MEM8(edi + 0x2C)); /* 0x2B0507D9: mov al, byte ptr [edi + 0x2c] */ 41459 /* test LO8(eax), LO8(eax) */ /* 0x2B0507DC: test al, al */ 41460 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 41461 _cf = 0; 41462 _flag_k = FK_NARROW(FK_TEST, 24); 41463 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B0507DE: jne 0x2b0508a1 */ 41464 L_2B0507E4: 41465 ecx = esi; /* 0x2B0507E4: mov ecx, esi */ 41466 RECOMP_ICALL(0x2B04F5B0u); /* 0x2B0507E6: call 0x2b04f5b0 */ /* not lifted */ 41467 RECOMP_FLAGS_IN(); 41468 ecx = esi; /* 0x2B0507EB: mov ecx, esi */ 41469 RECOMP_ICALL(0x2B04F5E0u); /* 0x2B0507ED: call 0x2b04f5e0 */ /* not lifted */ 41470 RECOMP_FLAGS_IN(); 41471 ecx = esi; /* 0x2B0507F2: mov ecx, esi */ 41472 MEM8(edi + 0x2C) = (uint8_t)(1); /* 0x2B0507F4: mov byte ptr [edi + 0x2c], 1 */ 41473 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0507F8: call 0x2b03a2b0 */ /* not lifted */ 41474 RECOMP_FLAGS_IN(); 41475 edi = POP32_VAL(esp); /* 0x2B0507FD: pop edi */ 41476 esi = POP32_VAL(esp); /* 0x2B0507FE: pop esi */ 41477 ebx = POP32_VAL(esp); /* 0x2B0507FF: pop ebx */ 41478 esp = ebp; /* 0x2B050800: mov esp, ebp */ 41479 ebp = POP32_VAL(esp); /* 0x2B050802: pop ebp */ 41480 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050803: ret */ 41481 L_2B050804: 41482 ecx = ebp + (-0x10); /* 0x2B050804: lea ecx, [ebp - 0x10] */ 41483 PUSH32(esp, ecx); /* 0x2B050807: push ecx */ 41484 ecx = esi; /* 0x2B050808: mov ecx, esi */ 41485 RECOMP_ICALL(0x2B0511D0u); /* 0x2B05080A: call 0x2b0511d0 */ /* not lifted */ 41486 RECOMP_FLAGS_IN(); 41487 edi = MEM32(esi + 0x8); /* 0x2B05080F: mov edi, dword ptr [esi + 8] */ 41488 edx = MEM32(esi + 0x104); /* 0x2B050812: mov edx, dword ptr [esi + 0x104] */ 41489 MEM32(ebp + (-0x8)) = eax; /* 0x2B050818: mov dword ptr [ebp - 8], eax */ 41490 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xC3u); 41491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41492 edi = edi + 0xC3u; /* 0x2B05081B: add edi, 0xc3 */ 41493 _flag_k = FK_ADD; 41494 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 41495 ecx = 0; /* 0x2B050821: xor ecx, ecx */ 41496 _cf = 0; 41497 _flag_k = FK_TEST; 41498 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B050823: cmp eax, dword ptr [edx + 8] */ 41499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 41500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41501 _flag_k = FK_CMP; 41502 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B050826: je 0x2b0508a1 */ 41503 L_2B050828: 41504 edx = edi + 0xC; /* 0x2B050828: lea edx, [edi + 0xc] */ 41505 MEM32(ebp + (-0x4)) = edx; /* 0x2B05082B: mov dword ptr [ebp - 4], edx */ 41506 goto L_2B050833; /* 0x2B05082E: jmp 0x2b050833 */ 41507 L_2B050830: 41508 ecx = MEM32(ebp + (-0xC)); /* 0x2B050830: mov ecx, dword ptr [ebp - 0xc] */ 41509 L_2B050833: 41510 /* cmp ecx, MEM32(esi + 0x180) */ /* 0x2B050833: cmp ecx, dword ptr [esi + 0x180] */ 41511 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x180)); 41512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41513 _flag_k = FK_CMP; 41514 if (CMP_L(_flag_a, _flag_b)) goto L_2B050850; /* 0x2B050839: jl 0x2b050850 */ 41515 L_2B05083B: 41516 /* cmp ebx, edi */ /* 0x2B05083B: cmp ebx, edi */ 41517 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 41518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41519 _flag_k = FK_CMP; 41520 if (CMP_LE(_flag_a, _flag_b)) goto L_2B050844; /* 0x2B05083D: jle 0x2b050844 */ 41521 L_2B05083F: 41522 /* cmp ebx, MEM32(ebp + (-0x4)) */ /* 0x2B05083F: cmp ebx, dword ptr [ebp - 4] */ 41523 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 41524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41525 _flag_k = FK_CMP; 41526 if (CMP_L(_flag_a, _flag_b)) goto L_2B05087F; /* 0x2B050842: jl 0x2b05087f */ 41527 L_2B050844: 41528 eax = MEM32(ebp + (-0x4)); /* 0x2B050844: mov eax, dword ptr [ebp - 4] */ 41529 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 41530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41531 edi = edi + 0xCu; /* 0x2B050847: add edi, 0xc */ 41532 _flag_k = FK_ADD; 41533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 41534 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41535 eax = eax + 0xCu; /* 0x2B05084A: add eax, 0xc */ 41536 _flag_k = FK_ADD; 41537 MEM32(ebp + (-0x4)) = eax; /* 0x2B05084D: mov dword ptr [ebp - 4], eax */ 41538 L_2B050850: 41539 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 41540 ecx = ecx + 1; /* 0x2B050850: inc ecx */ 41541 _flag_k = FK_INC; 41542 MEM32(ebp + (-0xC)) = ecx; /* 0x2B050851: mov dword ptr [ebp - 0xc], ecx */ 41543 eax = ebp + (-0x10); /* 0x2B050854: lea eax, [ebp - 0x10] */ 41544 PUSH32(esp, eax); /* 0x2B050857: push eax */ 41545 ecx = ebp + (-0x8); /* 0x2B050858: lea ecx, [ebp - 8] */ 41546 PUSH32(esp, ecx); /* 0x2B05085B: push ecx */ 41547 ecx = esi; /* 0x2B05085C: mov ecx, esi */ 41548 RECOMP_ICALL(0x2B051220u); /* 0x2B05085E: call 0x2b051220 */ /* not lifted */ 41549 RECOMP_FLAGS_IN(); 41550 edx = MEM32(esi + 0x104); /* 0x2B050863: mov edx, dword ptr [esi + 0x104] */ 41551 eax = MEM32(ebp + (-0x8)); /* 0x2B050869: mov eax, dword ptr [ebp - 8] */ 41552 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B05086C: cmp eax, dword ptr [edx + 8] */ 41553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 41554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41555 _flag_k = FK_CMP; 41556 RECOMP_BACKEDGE(); 41557 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050830; /* 0x2B05086F: jne 0x2b050830 */ 41558 L_2B050871: 41559 ecx = esi; /* 0x2B050871: mov ecx, esi */ 41560 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050873: call 0x2b03a2b0 */ /* not lifted */ 41561 RECOMP_FLAGS_IN(); 41562 edi = POP32_VAL(esp); /* 0x2B050878: pop edi */ 41563 esi = POP32_VAL(esp); /* 0x2B050879: pop esi */ 41564 ebx = POP32_VAL(esp); /* 0x2B05087A: pop ebx */ 41565 esp = ebp; /* 0x2B05087B: mov esp, ebp */ 41566 ebp = POP32_VAL(esp); /* 0x2B05087D: pop ebp */ 41567 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05087E: ret */ 41568 L_2B05087F: 41569 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B05087F: mov cl, byte ptr [eax + 0x2c] */ 41570 /* test LO8(ecx), LO8(ecx) */ /* 0x2B050882: test cl, cl */ 41571 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 41572 _cf = 0; 41573 _flag_k = FK_NARROW(FK_TEST, 24); 41574 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B050884: jne 0x2b0508a1 */ 41575 L_2B050886: 41576 /* test MEM8(eax + 0x1C), 2 */ /* 0x2B050886: test byte ptr [eax + 0x1c], 2 */ 41577 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(2) << 24; 41578 _cf = 0; 41579 _flag_k = FK_NARROW(FK_TEST, 24); 41580 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B05088A: jne 0x2b0508a1 */ 41581 L_2B05088C: 41582 ecx = esi; /* 0x2B05088C: mov ecx, esi */ 41583 RECOMP_ICALL(0x2B04F5B0u); /* 0x2B05088E: call 0x2b04f5b0 */ /* not lifted */ 41584 RECOMP_FLAGS_IN(); 41585 ecx = esi; /* 0x2B050893: mov ecx, esi */ 41586 RECOMP_ICALL(0x2B04F5E0u); /* 0x2B050895: call 0x2b04f5e0 */ /* not lifted */ 41587 RECOMP_FLAGS_IN(); 41588 eax = MEM32(ebp + (-0x8)); /* 0x2B05089A: mov eax, dword ptr [ebp - 8] */ 41589 MEM8(eax + 0x2C) = (uint8_t)(1); /* 0x2B05089D: mov byte ptr [eax + 0x2c], 1 */ 41590 L_2B0508A1: 41591 ecx = esi; /* 0x2B0508A1: mov ecx, esi */ 41592 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0508A3: call 0x2b03a2b0 */ /* not lifted */ 41593 RECOMP_FLAGS_IN(); 41594 edi = POP32_VAL(esp); /* 0x2B0508A8: pop edi */ 41595 esi = POP32_VAL(esp); /* 0x2B0508A9: pop esi */ 41596 ebx = POP32_VAL(esp); /* 0x2B0508AA: pop ebx */ 41597 esp = ebp; /* 0x2B0508AB: mov esp, ebp */ 41598 ebp = POP32_VAL(esp); /* 0x2B0508AD: pop ebp */ 41599 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0508AE: ret */ 41600 RECOMP_REGS_OUT(); 41601 } 41602 41603 void sub_2B050830(void) { 41604 int _fpu_cmp = 0; 41605 uint32_t _cf = 0; 41606 int _df = 1; 41607 uint32_t _flag_k = FK_NONE; 41608 uint32_t _flag_a = 0, _flag_b = 0; 41609 uint32_t _itail_tgt = 0; 41610 RECOMP_REGS_LOCALS 41611 RECOMP_ENTER(0x2B050830u); 41612 41613 L_2B050830: 41614 ecx = MEM32(ebp + (-0xC)); /* 0x2B050830: mov ecx, dword ptr [ebp - 0xc] */ 41615 /* cmp ecx, MEM32(esi + 0x180) */ /* 0x2B050833: cmp ecx, dword ptr [esi + 0x180] */ 41616 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x180)); 41617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41618 _flag_k = FK_CMP; 41619 if (CMP_L(_flag_a, _flag_b)) goto L_2B050850; /* 0x2B050839: jl 0x2b050850 */ 41620 L_2B05083B: 41621 /* cmp ebx, edi */ /* 0x2B05083B: cmp ebx, edi */ 41622 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 41623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41624 _flag_k = FK_CMP; 41625 if (CMP_LE(_flag_a, _flag_b)) goto L_2B050844; /* 0x2B05083D: jle 0x2b050844 */ 41626 L_2B05083F: 41627 /* cmp ebx, MEM32(ebp + (-0x4)) */ /* 0x2B05083F: cmp ebx, dword ptr [ebp - 4] */ 41628 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 41629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41630 _flag_k = FK_CMP; 41631 if (CMP_L(_flag_a, _flag_b)) goto L_2B05087F; /* 0x2B050842: jl 0x2b05087f */ 41632 L_2B050844: 41633 eax = MEM32(ebp + (-0x4)); /* 0x2B050844: mov eax, dword ptr [ebp - 4] */ 41634 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 41635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41636 edi = edi + 0xCu; /* 0x2B050847: add edi, 0xc */ 41637 _flag_k = FK_ADD; 41638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 41639 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41640 eax = eax + 0xCu; /* 0x2B05084A: add eax, 0xc */ 41641 _flag_k = FK_ADD; 41642 MEM32(ebp + (-0x4)) = eax; /* 0x2B05084D: mov dword ptr [ebp - 4], eax */ 41643 L_2B050850: 41644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 41645 ecx = ecx + 1; /* 0x2B050850: inc ecx */ 41646 _flag_k = FK_INC; 41647 MEM32(ebp + (-0xC)) = ecx; /* 0x2B050851: mov dword ptr [ebp - 0xc], ecx */ 41648 eax = ebp + (-0x10); /* 0x2B050854: lea eax, [ebp - 0x10] */ 41649 PUSH32(esp, eax); /* 0x2B050857: push eax */ 41650 ecx = ebp + (-0x8); /* 0x2B050858: lea ecx, [ebp - 8] */ 41651 PUSH32(esp, ecx); /* 0x2B05085B: push ecx */ 41652 ecx = esi; /* 0x2B05085C: mov ecx, esi */ 41653 RECOMP_ICALL(0x2B051220u); /* 0x2B05085E: call 0x2b051220 */ /* not lifted */ 41654 RECOMP_FLAGS_IN(); 41655 edx = MEM32(esi + 0x104); /* 0x2B050863: mov edx, dword ptr [esi + 0x104] */ 41656 eax = MEM32(ebp + (-0x8)); /* 0x2B050869: mov eax, dword ptr [ebp - 8] */ 41657 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B05086C: cmp eax, dword ptr [edx + 8] */ 41658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 41659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41660 _flag_k = FK_CMP; 41661 RECOMP_BACKEDGE(); 41662 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050830; /* 0x2B05086F: jne 0x2b050830 */ 41663 L_2B050871: 41664 ecx = esi; /* 0x2B050871: mov ecx, esi */ 41665 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050873: call 0x2b03a2b0 */ /* not lifted */ 41666 RECOMP_FLAGS_IN(); 41667 edi = POP32_VAL(esp); /* 0x2B050878: pop edi */ 41668 esi = POP32_VAL(esp); /* 0x2B050879: pop esi */ 41669 ebx = POP32_VAL(esp); /* 0x2B05087A: pop ebx */ 41670 esp = ebp; /* 0x2B05087B: mov esp, ebp */ 41671 ebp = POP32_VAL(esp); /* 0x2B05087D: pop ebp */ 41672 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05087E: ret */ 41673 L_2B05087F: 41674 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B05087F: mov cl, byte ptr [eax + 0x2c] */ 41675 /* test LO8(ecx), LO8(ecx) */ /* 0x2B050882: test cl, cl */ 41676 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 41677 _cf = 0; 41678 _flag_k = FK_NARROW(FK_TEST, 24); 41679 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B050884: jne 0x2b0508a1 */ 41680 L_2B050886: 41681 /* test MEM8(eax + 0x1C), 2 */ /* 0x2B050886: test byte ptr [eax + 0x1c], 2 */ 41682 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(2) << 24; 41683 _cf = 0; 41684 _flag_k = FK_NARROW(FK_TEST, 24); 41685 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B05088A: jne 0x2b0508a1 */ 41686 L_2B05088C: 41687 ecx = esi; /* 0x2B05088C: mov ecx, esi */ 41688 RECOMP_ICALL(0x2B04F5B0u); /* 0x2B05088E: call 0x2b04f5b0 */ /* not lifted */ 41689 RECOMP_FLAGS_IN(); 41690 ecx = esi; /* 0x2B050893: mov ecx, esi */ 41691 RECOMP_ICALL(0x2B04F5E0u); /* 0x2B050895: call 0x2b04f5e0 */ /* not lifted */ 41692 RECOMP_FLAGS_IN(); 41693 eax = MEM32(ebp + (-0x8)); /* 0x2B05089A: mov eax, dword ptr [ebp - 8] */ 41694 MEM8(eax + 0x2C) = (uint8_t)(1); /* 0x2B05089D: mov byte ptr [eax + 0x2c], 1 */ 41695 L_2B0508A1: 41696 ecx = esi; /* 0x2B0508A1: mov ecx, esi */ 41697 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0508A3: call 0x2b03a2b0 */ /* not lifted */ 41698 RECOMP_FLAGS_IN(); 41699 edi = POP32_VAL(esp); /* 0x2B0508A8: pop edi */ 41700 esi = POP32_VAL(esp); /* 0x2B0508A9: pop esi */ 41701 ebx = POP32_VAL(esp); /* 0x2B0508AA: pop ebx */ 41702 esp = ebp; /* 0x2B0508AB: mov esp, ebp */ 41703 ebp = POP32_VAL(esp); /* 0x2B0508AD: pop ebp */ 41704 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0508AE: ret */ 41705 RECOMP_REGS_OUT(); 41706 } 41707 41708 void sub_2B050833(void) { 41709 int _fpu_cmp = 0; 41710 uint32_t _cf = 0; 41711 int _df = 1; 41712 uint32_t _flag_k = FK_NONE; 41713 uint32_t _flag_a = 0, _flag_b = 0; 41714 uint32_t _itail_tgt = 0; 41715 RECOMP_REGS_LOCALS 41716 RECOMP_ENTER(0x2B050833u); 41717 41718 goto L_2B050833; 41719 L_2B050830: 41720 ecx = MEM32(ebp + (-0xC)); /* 0x2B050830: mov ecx, dword ptr [ebp - 0xc] */ 41721 L_2B050833: 41722 /* cmp ecx, MEM32(esi + 0x180) */ /* 0x2B050833: cmp ecx, dword ptr [esi + 0x180] */ 41723 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x180)); 41724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41725 _flag_k = FK_CMP; 41726 if (CMP_L(_flag_a, _flag_b)) goto L_2B050850; /* 0x2B050839: jl 0x2b050850 */ 41727 L_2B05083B: 41728 /* cmp ebx, edi */ /* 0x2B05083B: cmp ebx, edi */ 41729 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 41730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41731 _flag_k = FK_CMP; 41732 if (CMP_LE(_flag_a, _flag_b)) goto L_2B050844; /* 0x2B05083D: jle 0x2b050844 */ 41733 L_2B05083F: 41734 /* cmp ebx, MEM32(ebp + (-0x4)) */ /* 0x2B05083F: cmp ebx, dword ptr [ebp - 4] */ 41735 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 41736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41737 _flag_k = FK_CMP; 41738 if (CMP_L(_flag_a, _flag_b)) goto L_2B05087F; /* 0x2B050842: jl 0x2b05087f */ 41739 L_2B050844: 41740 eax = MEM32(ebp + (-0x4)); /* 0x2B050844: mov eax, dword ptr [ebp - 4] */ 41741 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 41742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41743 edi = edi + 0xCu; /* 0x2B050847: add edi, 0xc */ 41744 _flag_k = FK_ADD; 41745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 41746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41747 eax = eax + 0xCu; /* 0x2B05084A: add eax, 0xc */ 41748 _flag_k = FK_ADD; 41749 MEM32(ebp + (-0x4)) = eax; /* 0x2B05084D: mov dword ptr [ebp - 4], eax */ 41750 L_2B050850: 41751 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 41752 ecx = ecx + 1; /* 0x2B050850: inc ecx */ 41753 _flag_k = FK_INC; 41754 MEM32(ebp + (-0xC)) = ecx; /* 0x2B050851: mov dword ptr [ebp - 0xc], ecx */ 41755 eax = ebp + (-0x10); /* 0x2B050854: lea eax, [ebp - 0x10] */ 41756 PUSH32(esp, eax); /* 0x2B050857: push eax */ 41757 ecx = ebp + (-0x8); /* 0x2B050858: lea ecx, [ebp - 8] */ 41758 PUSH32(esp, ecx); /* 0x2B05085B: push ecx */ 41759 ecx = esi; /* 0x2B05085C: mov ecx, esi */ 41760 RECOMP_ICALL(0x2B051220u); /* 0x2B05085E: call 0x2b051220 */ /* not lifted */ 41761 RECOMP_FLAGS_IN(); 41762 edx = MEM32(esi + 0x104); /* 0x2B050863: mov edx, dword ptr [esi + 0x104] */ 41763 eax = MEM32(ebp + (-0x8)); /* 0x2B050869: mov eax, dword ptr [ebp - 8] */ 41764 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2B05086C: cmp eax, dword ptr [edx + 8] */ 41765 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 41766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41767 _flag_k = FK_CMP; 41768 RECOMP_BACKEDGE(); 41769 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050830; /* 0x2B05086F: jne 0x2b050830 */ 41770 L_2B050871: 41771 ecx = esi; /* 0x2B050871: mov ecx, esi */ 41772 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050873: call 0x2b03a2b0 */ /* not lifted */ 41773 RECOMP_FLAGS_IN(); 41774 edi = POP32_VAL(esp); /* 0x2B050878: pop edi */ 41775 esi = POP32_VAL(esp); /* 0x2B050879: pop esi */ 41776 ebx = POP32_VAL(esp); /* 0x2B05087A: pop ebx */ 41777 esp = ebp; /* 0x2B05087B: mov esp, ebp */ 41778 ebp = POP32_VAL(esp); /* 0x2B05087D: pop ebp */ 41779 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05087E: ret */ 41780 L_2B05087F: 41781 SET_LO8(ecx, MEM8(eax + 0x2C)); /* 0x2B05087F: mov cl, byte ptr [eax + 0x2c] */ 41782 /* test LO8(ecx), LO8(ecx) */ /* 0x2B050882: test cl, cl */ 41783 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 41784 _cf = 0; 41785 _flag_k = FK_NARROW(FK_TEST, 24); 41786 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B050884: jne 0x2b0508a1 */ 41787 L_2B050886: 41788 /* test MEM8(eax + 0x1C), 2 */ /* 0x2B050886: test byte ptr [eax + 0x1c], 2 */ 41789 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(2) << 24; 41790 _cf = 0; 41791 _flag_k = FK_NARROW(FK_TEST, 24); 41792 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0508A1; /* 0x2B05088A: jne 0x2b0508a1 */ 41793 L_2B05088C: 41794 ecx = esi; /* 0x2B05088C: mov ecx, esi */ 41795 RECOMP_ICALL(0x2B04F5B0u); /* 0x2B05088E: call 0x2b04f5b0 */ /* not lifted */ 41796 RECOMP_FLAGS_IN(); 41797 ecx = esi; /* 0x2B050893: mov ecx, esi */ 41798 RECOMP_ICALL(0x2B04F5E0u); /* 0x2B050895: call 0x2b04f5e0 */ /* not lifted */ 41799 RECOMP_FLAGS_IN(); 41800 eax = MEM32(ebp + (-0x8)); /* 0x2B05089A: mov eax, dword ptr [ebp - 8] */ 41801 MEM8(eax + 0x2C) = (uint8_t)(1); /* 0x2B05089D: mov byte ptr [eax + 0x2c], 1 */ 41802 L_2B0508A1: 41803 ecx = esi; /* 0x2B0508A1: mov ecx, esi */ 41804 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0508A3: call 0x2b03a2b0 */ /* not lifted */ 41805 RECOMP_FLAGS_IN(); 41806 edi = POP32_VAL(esp); /* 0x2B0508A8: pop edi */ 41807 esi = POP32_VAL(esp); /* 0x2B0508A9: pop esi */ 41808 ebx = POP32_VAL(esp); /* 0x2B0508AA: pop ebx */ 41809 esp = ebp; /* 0x2B0508AB: mov esp, ebp */ 41810 ebp = POP32_VAL(esp); /* 0x2B0508AD: pop ebp */ 41811 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0508AE: ret */ 41812 RECOMP_REGS_OUT(); 41813 } 41814 41815 void sub_2B0508B0(void) { 41816 int _fpu_cmp = 0; 41817 uint32_t _cf = 0; 41818 int _df = 1; 41819 uint32_t _flag_k = FK_NONE; 41820 uint32_t _flag_a = 0, _flag_b = 0; 41821 uint32_t _itail_tgt = 0; 41822 RECOMP_REGS_LOCALS 41823 RECOMP_ENTER(0x2B0508B0u); 41824 41825 L_2B0508B0: 41826 PUSH32(esp, ebp); /* 0x2B0508B0: push ebp */ 41827 ebp = esp; /* 0x2B0508B1: mov ebp, esp */ 41828 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0508B3: push -1 */ 41829 PUSH32(esp, 0x2B0AF91Bu); /* 0x2B0508B5: push 0x2b0af91b */ 41830 eax = MEM32(FS_BASE + (0)); /* 0x2B0508BA: mov eax, dword ptr fs:[0] */ 41831 PUSH32(esp, eax); /* 0x2B0508C0: push eax */ 41832 MEM32(FS_BASE + (0)) = esp; /* 0x2B0508C1: mov dword ptr fs:[0], esp */ 41833 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x238u); 41834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41835 esp = esp - 0x238u; /* 0x2B0508C8: sub esp, 0x238 */ 41836 _flag_k = FK_CMP; 41837 PUSH32(esp, ebx); /* 0x2B0508CE: push ebx */ 41838 PUSH32(esp, esi); /* 0x2B0508CF: push esi */ 41839 PUSH32(esp, edi); /* 0x2B0508D0: push edi */ 41840 edi = ecx; /* 0x2B0508D1: mov edi, ecx */ 41841 MEM32(ebp + (-0x24)) = edi; /* 0x2B0508D3: mov dword ptr [ebp - 0x24], edi */ 41842 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B0508D6: call dword ptr [0x2b0b5b64] */ 41843 RECOMP_FLAGS_IN(); 41844 ecx = MEM32(eax + 0x108); /* 0x2B0508DC: mov ecx, dword ptr [eax + 0x108] */ 41845 eax = MEM32(eax + 0x10C); /* 0x2B0508E2: mov eax, dword ptr [eax + 0x10c] */ 41846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 41847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41848 eax = eax - MEM32(edi + 0x8); /* 0x2B0508E8: sub eax, dword ptr [edi + 8] */ 41849 _flag_k = FK_CMP; 41850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x25u); 41851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41852 eax = eax - 0x25u; /* 0x2B0508EB: sub eax, 0x25 */ 41853 _flag_k = FK_CMP; 41854 MEM32(ebp + (-0x30)) = ecx; /* 0x2B0508EE: mov dword ptr [ebp - 0x30], ecx */ 41855 ecx = eax; /* 0x2B0508F1: mov ecx, eax */ 41856 eax = 0x2AAAAAABu; /* 0x2B0508F3: mov eax, 0x2aaaaaab */ 41857 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B0508F8: imul ecx */ 41858 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 41859 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 41860 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x2B0508FA: sar edx, 1 */ 41861 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41862 edx = (uint32_t)((int32_t)edx >> 1u); 41863 eax = edx; /* 0x2B0508FC: mov eax, edx */ 41864 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B0508FE: shr eax, 0x1f */ 41865 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41866 eax = eax >> 31u; /* 0x2B0508FE: shr eax, 0x1f */ 41867 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 41868 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41869 edx = edx + eax; /* 0x2B050901: add edx, eax */ 41870 _flag_k = FK_ADD; 41871 ecx = edx; /* 0x2B050903: mov ecx, edx */ 41872 /* cmp ecx, 0xBu */ /* 0x2B050905: cmp ecx, 0xb */ 41873 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xBu); 41874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41875 _flag_k = FK_CMP; 41876 if (CMP_AE(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B050908: jae 0x2b050c26 */ 41877 L_2B05090E: 41878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x48)); 41879 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41880 ecx = ecx + MEM32(edi + 0x48); /* 0x2B05090E: add ecx, dword ptr [edi + 0x48] */ 41881 _flag_k = FK_ADD; 41882 esi = MEM32(edi + 0x100); /* 0x2B050911: mov esi, dword ptr [edi + 0x100] */ 41883 eax = MEM32(esi + 0x4); /* 0x2B050917: mov eax, dword ptr [esi + 4] */ 41884 /* test eax, eax */ /* 0x2B05091A: test eax, eax */ 41885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 41886 _cf = 0; 41887 _flag_k = FK_TEST; 41888 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050922; /* 0x2B05091C: jne 0x2b050922 */ 41889 L_2B05091E: 41890 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 41891 edx = 0; /* 0x2B05091E: xor edx, edx */ 41892 _cf = 0; 41893 _flag_k = FK_TEST; 41894 goto L_2B050938; /* 0x2B050920: jmp 0x2b050938 */ 41895 L_2B050922: 41896 edx = MEM32(esi + 0x8); /* 0x2B050922: mov edx, dword ptr [esi + 8] */ 41897 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 41898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41899 edx = edx - eax; /* 0x2B050925: sub edx, eax */ 41900 _flag_k = FK_CMP; 41901 eax = 0x2AAAAAABu; /* 0x2B050927: mov eax, 0x2aaaaaab */ 41902 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B05092C: imul edx */ 41903 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 41904 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 41905 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B05092E: sar edx, 3 */ 41906 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41907 edx = (uint32_t)((int32_t)edx >> 3u); 41908 eax = edx; /* 0x2B050931: mov eax, edx */ 41909 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B050933: shr eax, 0x1f */ 41910 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 41911 eax = eax >> 31u; /* 0x2B050933: shr eax, 0x1f */ 41912 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 41913 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41914 edx = edx + eax; /* 0x2B050936: add edx, eax */ 41915 _flag_k = FK_ADD; 41916 L_2B050938: 41917 /* cmp ecx, edx */ /* 0x2B050938: cmp ecx, edx */ 41918 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 41919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41920 _flag_k = FK_CMP; 41921 if (CMP_A(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B05093A: ja 0x2b050c26 */ 41922 L_2B050940: 41923 ebx = MEM32(esi + 0x4); /* 0x2B050940: mov ebx, dword ptr [esi + 4] */ 41924 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 41925 eax = 0; /* 0x2B050943: xor eax, eax */ 41926 _cf = 0; 41927 _flag_k = FK_TEST; 41928 /* test ecx, ecx */ /* 0x2B050945: test ecx, ecx */ 41929 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 41930 _cf = 0; 41931 _flag_k = FK_TEST; 41932 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050958; /* 0x2B050947: jbe 0x2b050958 */ 41933 L_2B050949: 41934 edx = MEM32(esi + 0x8); /* 0x2B050949: mov edx, dword ptr [esi + 8] */ 41935 L_2B05094C: 41936 /* cmp ebx, edx */ /* 0x2B05094C: cmp ebx, edx */ 41937 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 41938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41939 _flag_k = FK_CMP; 41940 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050958; /* 0x2B05094E: je 0x2b050958 */ 41941 L_2B050950: 41942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 41943 eax = eax + 1; /* 0x2B050950: inc eax */ 41944 _flag_k = FK_INC; 41945 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 41946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 41947 ebx = ebx + 0x30u; /* 0x2B050951: add ebx, 0x30 */ 41948 _flag_k = FK_ADD; 41949 /* cmp eax, ecx */ /* 0x2B050954: cmp eax, ecx */ 41950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 41951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41952 _flag_k = FK_CMP; 41953 RECOMP_BACKEDGE(); 41954 if (CMP_B(_flag_a, _flag_b)) goto L_2B05094C; /* 0x2B050956: jb 0x2b05094c */ 41955 L_2B050958: 41956 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x2B050958: cmp ebx, dword ptr [esi + 8] */ 41957 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 41958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41959 _flag_k = FK_CMP; 41960 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B05095B: je 0x2b050c26 */ 41961 L_2B050961: 41962 SET_LO8(eax, MEM8(ebx + 0x24)); /* 0x2B050961: mov al, byte ptr [ebx + 0x24] */ 41963 /* test LO8(eax), LO8(eax) */ /* 0x2B050964: test al, al */ 41964 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 41965 _cf = 0; 41966 _flag_k = FK_NARROW(FK_TEST, 24); 41967 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0509A1; /* 0x2B050966: je 0x2b0509a1 */ 41968 L_2B050968: 41969 eax = MEM32(ebx + 0x4); /* 0x2B050968: mov eax, dword ptr [ebx + 4] */ 41970 PUSH32(esp, eax); /* 0x2B05096B: push eax */ 41971 RECOMP_ICALL(0x2B016630u); /* 0x2B05096C: call 0x2b016630 */ /* not lifted */ 41972 RECOMP_FLAGS_IN(); 41973 ecx = eax; /* 0x2B050971: mov ecx, eax */ 41974 RECOMP_ICALL(0x2B016DF0u); /* 0x2B050973: call 0x2b016df0 */ /* not lifted */ 41975 RECOMP_FLAGS_IN(); 41976 eax = MEM32(ebx + 0x4); /* 0x2B050978: mov eax, dword ptr [ebx + 4] */ 41977 PUSH32(esp, 0); /* 0x2B05097B: push 0 */ 41978 PUSH32(esp, eax); /* 0x2B05097D: push eax */ 41979 PUSH32(esp, 0); /* 0x2B05097E: push 0 */ 41980 PUSH32(esp, eax); /* 0x2B050980: push eax */ 41981 ecx = ebx + 0x8; /* 0x2B050981: lea ecx, [ebx + 8] */ 41982 PUSH32(esp, ecx); /* 0x2B050984: push ecx */ 41983 ecx = edi; /* 0x2B050985: mov ecx, edi */ 41984 RECOMP_ICALL(0x2B04FCE0u); /* 0x2B050987: call 0x2b04fce0 */ /* not lifted */ 41985 RECOMP_FLAGS_IN(); 41986 edi = POP32_VAL(esp); /* 0x2B05098C: pop edi */ 41987 esi = POP32_VAL(esp); /* 0x2B05098D: pop esi */ 41988 MEM8(ebx + 0x24) = (uint8_t)(0); /* 0x2B05098E: mov byte ptr [ebx + 0x24], 0 */ 41989 ebx = POP32_VAL(esp); /* 0x2B050992: pop ebx */ 41990 ecx = MEM32(ebp + (-0xC)); /* 0x2B050993: mov ecx, dword ptr [ebp - 0xc] */ 41991 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050996: mov dword ptr fs:[0], ecx */ 41992 esp = ebp; /* 0x2B05099D: mov esp, ebp */ 41993 ebp = POP32_VAL(esp); /* 0x2B05099F: pop ebp */ 41994 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0509A0: ret */ 41995 L_2B0509A1: 41996 eax = MEM32(ebx + 0x18); /* 0x2B0509A1: mov eax, dword ptr [ebx + 0x18] */ 41997 /* test eax, eax */ /* 0x2B0509A4: test eax, eax */ 41998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 41999 _cf = 0; 42000 _flag_k = FK_TEST; 42001 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B0509A6: jne 0x2b050c26 */ 42002 L_2B0509AC: 42003 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B0509AC: call dword ptr [0x2b0b5b64] */ 42004 RECOMP_FLAGS_IN(); 42005 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xD4u); 42006 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42007 eax = eax + 0xD4u; /* 0x2B0509B2: add eax, 0xd4 */ 42008 _flag_k = FK_ADD; 42009 edx = ebp + (-0x28); /* 0x2B0509B7: lea edx, [ebp - 0x28] */ 42010 /* cmp edx, eax */ /* 0x2B0509BA: cmp edx, eax */ 42011 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 42012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42013 _flag_k = FK_CMP; 42014 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0509C5; /* 0x2B0509BC: je 0x2b0509c5 */ 42015 L_2B0509BE: 42016 ecx = MEM32(eax); /* 0x2B0509BE: mov ecx, dword ptr [eax] */ 42017 eax = MEM32(eax + 0x4); /* 0x2B0509C0: mov eax, dword ptr [eax + 4] */ 42018 goto L_2B0509CB; /* 0x2B0509C3: jmp 0x2b0509cb */ 42019 L_2B0509C5: 42020 eax = MEM32(ebp + (-0x24)); /* 0x2B0509C5: mov eax, dword ptr [ebp - 0x24] */ 42021 ecx = MEM32(ebp + (-0x28)); /* 0x2B0509C8: mov ecx, dword ptr [ebp - 0x28] */ 42022 L_2B0509CB: 42023 MEM32(ebp + (-0x2C)) = eax; /* 0x2B0509CB: mov dword ptr [ebp - 0x2c], eax */ 42024 eax = ebp + (-0x30); /* 0x2B0509CE: lea eax, [ebp - 0x30] */ 42025 PUSH32(esp, eax); /* 0x2B0509D1: push eax */ 42026 MEM32(ebp + (-0x30)) = ecx; /* 0x2B0509D2: mov dword ptr [ebp - 0x30], ecx */ 42027 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0509D5: call dword ptr [0x2b0b5d6c] */ 42028 RECOMP_FLAGS_IN(); 42029 ecx = eax; /* 0x2B0509DB: mov ecx, eax */ 42030 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B0509DD: call dword ptr [0x2b0b5d50] */ 42031 RECOMP_FLAGS_IN(); 42032 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B0509E3: mov cl, byte ptr [ebp - 0xd] */ 42033 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(ecx)); /* 0x2B0509E6: mov byte ptr [ebp - 0x44], cl */ 42034 PUSH32(esp, 0); /* 0x2B0509E9: push 0 */ 42035 ecx = ebp + (-0x44); /* 0x2B0509EB: lea ecx, [ebp - 0x44] */ 42036 esi = eax; /* 0x2B0509EE: mov esi, eax */ 42037 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0509F0: call dword ptr [0x2b0b514c] */ 42038 RECOMP_FLAGS_IN(); 42039 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42040 ecx = ecx | 0xFFFFFFFFu; /* 0x2B0509F6: or ecx, 0xffffffff */ 42041 _cf = 0; 42042 _flag_k = FK_TEST; 42043 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42044 eax = 0; /* 0x2B0509F9: xor eax, eax */ 42045 _cf = 0; 42046 _flag_k = FK_TEST; 42047 edi = esi; /* 0x2B0509FB: mov edi, esi */ 42048 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B0509FD: repne scasb al, byte ptr es:[edi] */ 42049 ecx = ~ecx; /* 0x2B0509FF: not ecx */ 42050 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42051 ecx = ecx - 1; /* 0x2B050A01: dec ecx */ 42052 _flag_k = FK_DEC; 42053 edi = ecx; /* 0x2B050A02: mov edi, ecx */ 42054 PUSH32(esp, 1); /* 0x2B050A04: push 1 */ 42055 PUSH32(esp, edi); /* 0x2B050A06: push edi */ 42056 ecx = ebp + (-0x44); /* 0x2B050A07: lea ecx, [ebp - 0x44] */ 42057 MEM32(ebp + (-0x34)) = edi; /* 0x2B050A0A: mov dword ptr [ebp - 0x34], edi */ 42058 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050A0D: call dword ptr [0x2b0b5154] */ 42059 RECOMP_FLAGS_IN(); 42060 /* test LO8(eax), LO8(eax) */ /* 0x2B050A13: test al, al */ 42061 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42062 _cf = 0; 42063 _flag_k = FK_NARROW(FK_TEST, 24); 42064 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050A36; /* 0x2B050A15: je 0x2b050a36 */ 42065 L_2B050A17: 42066 ecx = edi; /* 0x2B050A17: mov ecx, edi */ 42067 edi = MEM32(ebp + (-0x40)); /* 0x2B050A19: mov edi, dword ptr [ebp - 0x40] */ 42068 edx = ecx; /* 0x2B050A1C: mov edx, ecx */ 42069 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050A1E: shr ecx, 2 */ 42070 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 42071 ecx = ecx >> 2u; /* 0x2B050A1E: shr ecx, 2 */ 42072 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050A21: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42073 ecx = edx; /* 0x2B050A23: mov ecx, edx */ 42074 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 42075 ecx = ecx & 3; /* 0x2B050A25: and ecx, 3 */ 42076 _cf = 0; 42077 _flag_k = FK_TEST; 42078 eax = edx; /* 0x2B050A28: mov eax, edx */ 42079 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050A2A: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42080 PUSH32(esp, eax); /* 0x2B050A2C: push eax */ 42081 ecx = ebp + (-0x44); /* 0x2B050A2D: lea ecx, [ebp - 0x44] */ 42082 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050A30: call dword ptr [0x2b0b5150] */ 42083 RECOMP_FLAGS_IN(); 42084 L_2B050A36: 42085 ecx = ebp + (-0x44); /* 0x2B050A36: lea ecx, [ebp - 0x44] */ 42086 PUSH32(esp, 0x2B0E84C4u); /* 0x2B050A39: push 0x2b0e84c4 */ 42087 PUSH32(esp, ecx); /* 0x2B050A3E: push ecx */ 42088 MEM32(ebp + (-0x4)) = 0; /* 0x2B050A3F: mov dword ptr [ebp - 4], 0 */ 42089 RECOMP_ICALL(MEM32(0x2B0B517C)); /* 0x2B050A46: call dword ptr [0x2b0b517c] */ 42090 RECOMP_FLAGS_IN(); 42091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 42092 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42093 esp = esp + 8; /* 0x2B050A4C: add esp, 8 */ 42094 _flag_k = FK_ADD; 42095 /* test LO8(eax), LO8(eax) */ /* 0x2B050A4F: test al, al */ 42096 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42097 _cf = 0; 42098 _flag_k = FK_NARROW(FK_TEST, 24); 42099 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050AE6; /* 0x2B050A51: je 0x2b050ae6 */ 42100 L_2B050A57: 42101 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2B050A57: mov dl, byte ptr [ebp - 0xd] */ 42102 PUSH32(esp, 0); /* 0x2B050A5A: push 0 */ 42103 ecx = ebp + (-0x20); /* 0x2B050A5C: lea ecx, [ebp - 0x20] */ 42104 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(edx)); /* 0x2B050A5F: mov byte ptr [ebp - 0x20], dl */ 42105 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050A62: call dword ptr [0x2b0b514c] */ 42106 RECOMP_FLAGS_IN(); 42107 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42108 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050A68: or ecx, 0xffffffff */ 42109 _cf = 0; 42110 _flag_k = FK_TEST; 42111 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42112 eax = 0; /* 0x2B050A6B: xor eax, eax */ 42113 _cf = 0; 42114 _flag_k = FK_TEST; 42115 edi = 0x2B0E8478u; /* 0x2B050A6D: mov edi, 0x2b0e8478 */ 42116 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B050A72: repne scasb al, byte ptr es:[edi] */ 42117 ecx = ~ecx; /* 0x2B050A74: not ecx */ 42118 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42119 ecx = ecx - 1; /* 0x2B050A76: dec ecx */ 42120 _flag_k = FK_DEC; 42121 ebx = ecx; /* 0x2B050A77: mov ebx, ecx */ 42122 PUSH32(esp, 1); /* 0x2B050A79: push 1 */ 42123 PUSH32(esp, ebx); /* 0x2B050A7B: push ebx */ 42124 ecx = ebp + (-0x20); /* 0x2B050A7C: lea ecx, [ebp - 0x20] */ 42125 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050A7F: call dword ptr [0x2b0b5154] */ 42126 RECOMP_FLAGS_IN(); 42127 /* test LO8(eax), LO8(eax) */ /* 0x2B050A85: test al, al */ 42128 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42129 _cf = 0; 42130 _flag_k = FK_NARROW(FK_TEST, 24); 42131 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050AAB; /* 0x2B050A87: je 0x2b050aab */ 42132 L_2B050A89: 42133 edi = MEM32(ebp + (-0x1C)); /* 0x2B050A89: mov edi, dword ptr [ebp - 0x1c] */ 42134 ecx = ebx; /* 0x2B050A8C: mov ecx, ebx */ 42135 eax = ecx; /* 0x2B050A8E: mov eax, ecx */ 42136 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050A90: shr ecx, 2 */ 42137 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 42138 ecx = ecx >> 2u; /* 0x2B050A90: shr ecx, 2 */ 42139 esi = 0x2B0E8478u; /* 0x2B050A93: mov esi, 0x2b0e8478 */ 42140 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050A98: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42141 ecx = eax; /* 0x2B050A9A: mov ecx, eax */ 42142 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 42143 ecx = ecx & 3; /* 0x2B050A9C: and ecx, 3 */ 42144 _cf = 0; 42145 _flag_k = FK_TEST; 42146 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050A9F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42147 PUSH32(esp, ebx); /* 0x2B050AA1: push ebx */ 42148 ecx = ebp + (-0x20); /* 0x2B050AA2: lea ecx, [ebp - 0x20] */ 42149 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050AA5: call dword ptr [0x2b0b5150] */ 42150 RECOMP_FLAGS_IN(); 42151 L_2B050AAB: 42152 eax = MEM32(ebp + (-0x1C)); /* 0x2B050AAB: mov eax, dword ptr [ebp - 0x1c] */ 42153 /* test eax, eax */ /* 0x2B050AAE: test eax, eax */ 42154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 42155 _cf = 0; 42156 _flag_k = FK_TEST; 42157 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B050AB0: mov byte ptr [ebp - 4], 1 */ 42158 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050ABB; /* 0x2B050AB4: jne 0x2b050abb */ 42159 L_2B050AB6: 42160 eax = MEM32(0x2B0B513C); /* 0x2B050AB6: mov eax, dword ptr [0x2b0b513c] */ 42161 L_2B050ABB: 42162 ecx = MEM32(ebp + (-0x18)); /* 0x2B050ABB: mov ecx, dword ptr [ebp - 0x18] */ 42163 PUSH32(esp, ecx); /* 0x2B050ABE: push ecx */ 42164 PUSH32(esp, eax); /* 0x2B050ABF: push eax */ 42165 PUSH32(esp, 0x3Fu); /* 0x2B050AC0: push 0x3f */ 42166 PUSH32(esp, 3); /* 0x2B050AC2: push 3 */ 42167 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050AC4: call dword ptr [0x2b0b53cc] */ 42168 RECOMP_FLAGS_IN(); 42169 ecx = eax; /* 0x2B050ACA: mov ecx, eax */ 42170 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050ACC: call dword ptr [0x2b0b53c4] */ 42171 RECOMP_FLAGS_IN(); 42172 PUSH32(esp, 1); /* 0x2B050AD2: push 1 */ 42173 ecx = ebp + (-0x20); /* 0x2B050AD4: lea ecx, [ebp - 0x20] */ 42174 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B050AD7: mov byte ptr [ebp - 4], 0 */ 42175 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050ADB: call dword ptr [0x2b0b514c] */ 42176 RECOMP_FLAGS_IN(); 42177 goto L_2B050BF4; /* 0x2B050AE1: jmp 0x2b050bf4 */ 42178 L_2B050AE6: 42179 eax = MEM32(ebx + 0x1C); /* 0x2B050AE6: mov eax, dword ptr [ebx + 0x1c] */ 42180 /* test eax, eax */ /* 0x2B050AE9: test eax, eax */ 42181 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 42182 _cf = 0; 42183 _flag_k = FK_TEST; 42184 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050B56; /* 0x2B050AEB: je 0x2b050b56 */ 42185 L_2B050AED: 42186 eax = MEM32(ebx + 0xC); /* 0x2B050AED: mov eax, dword ptr [ebx + 0xc] */ 42187 /* test eax, eax */ /* 0x2B050AF0: test eax, eax */ 42188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 42189 _cf = 0; 42190 _flag_k = FK_TEST; 42191 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050AF9; /* 0x2B050AF2: jne 0x2b050af9 */ 42192 L_2B050AF4: 42193 eax = MEM32(0x2B0B513C); /* 0x2B050AF4: mov eax, dword ptr [0x2b0b513c] */ 42194 L_2B050AF9: 42195 PUSH32(esp, eax); /* 0x2B050AF9: push eax */ 42196 edx = ebp + (-0x244); /* 0x2B050AFA: lea edx, [ebp - 0x244] */ 42197 PUSH32(esp, 0x2B0E8454u); /* 0x2B050B00: push 0x2b0e8454 */ 42198 PUSH32(esp, edx); /* 0x2B050B05: push edx */ 42199 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B050B06: call dword ptr [0x2b0b51f0] */ 42200 RECOMP_FLAGS_IN(); 42201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 42202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42203 esp = esp + 0xCu; /* 0x2B050B0C: add esp, 0xc */ 42204 _flag_k = FK_ADD; 42205 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42206 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050B0F: or ecx, 0xffffffff */ 42207 _cf = 0; 42208 _flag_k = FK_TEST; 42209 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42210 eax = 0; /* 0x2B050B12: xor eax, eax */ 42211 _cf = 0; 42212 _flag_k = FK_TEST; 42213 edi = ebp + (-0x244); /* 0x2B050B14: lea edi, [ebp - 0x244] */ 42214 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B050B1A: repne scasb al, byte ptr es:[edi] */ 42215 ecx = ~ecx; /* 0x2B050B1C: not ecx */ 42216 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42217 ecx = ecx - 1; /* 0x2B050B1E: dec ecx */ 42218 _flag_k = FK_DEC; 42219 PUSH32(esp, ecx); /* 0x2B050B1F: push ecx */ 42220 eax = ebp + (-0x244); /* 0x2B050B20: lea eax, [ebp - 0x244] */ 42221 PUSH32(esp, eax); /* 0x2B050B26: push eax */ 42222 PUSH32(esp, 0x3Fu); /* 0x2B050B27: push 0x3f */ 42223 PUSH32(esp, 3); /* 0x2B050B29: push 3 */ 42224 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050B2B: call dword ptr [0x2b0b53cc] */ 42225 RECOMP_FLAGS_IN(); 42226 ecx = eax; /* 0x2B050B31: mov ecx, eax */ 42227 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050B33: call dword ptr [0x2b0b53c4] */ 42228 RECOMP_FLAGS_IN(); 42229 ebx = MEM32(ebx + 0x4); /* 0x2B050B39: mov ebx, dword ptr [ebx + 4] */ 42230 PUSH32(esp, ebx); /* 0x2B050B3C: push ebx */ 42231 RECOMP_ICALL(0x2B016630u); /* 0x2B050B3D: call 0x2b016630 */ /* not lifted */ 42232 RECOMP_FLAGS_IN(); 42233 ecx = eax; /* 0x2B050B42: mov ecx, eax */ 42234 RECOMP_ICALL(0x2B016DD0u); /* 0x2B050B44: call 0x2b016dd0 */ /* not lifted */ 42235 RECOMP_FLAGS_IN(); 42236 ecx = MEM32(ebp + (-0x24)); /* 0x2B050B49: mov ecx, dword ptr [ebp - 0x24] */ 42237 RECOMP_ICALL(0x2B050C40u); /* 0x2B050B4C: call 0x2b050c40 */ /* not lifted */ 42238 RECOMP_FLAGS_IN(); 42239 goto L_2B050BF4; /* 0x2B050B51: jmp 0x2b050bf4 */ 42240 L_2B050B56: 42241 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B050B56: mov cl, byte ptr [ebp - 0xd] */ 42242 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ecx)); /* 0x2B050B59: mov byte ptr [ebp - 0x20], cl */ 42243 PUSH32(esp, 0); /* 0x2B050B5C: push 0 */ 42244 ecx = ebp + (-0x20); /* 0x2B050B5E: lea ecx, [ebp - 0x20] */ 42245 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050B61: call dword ptr [0x2b0b514c] */ 42246 RECOMP_FLAGS_IN(); 42247 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42248 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050B67: or ecx, 0xffffffff */ 42249 _cf = 0; 42250 _flag_k = FK_TEST; 42251 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42252 eax = 0; /* 0x2B050B6A: xor eax, eax */ 42253 _cf = 0; 42254 _flag_k = FK_TEST; 42255 edi = 0x2B0E841Cu; /* 0x2B050B6C: mov edi, 0x2b0e841c */ 42256 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B050B71: repne scasb al, byte ptr es:[edi] */ 42257 ecx = ~ecx; /* 0x2B050B73: not ecx */ 42258 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42259 ecx = ecx - 1; /* 0x2B050B75: dec ecx */ 42260 _flag_k = FK_DEC; 42261 ebx = ecx; /* 0x2B050B76: mov ebx, ecx */ 42262 PUSH32(esp, 1); /* 0x2B050B78: push 1 */ 42263 PUSH32(esp, ebx); /* 0x2B050B7A: push ebx */ 42264 ecx = ebp + (-0x20); /* 0x2B050B7B: lea ecx, [ebp - 0x20] */ 42265 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050B7E: call dword ptr [0x2b0b5154] */ 42266 RECOMP_FLAGS_IN(); 42267 /* test LO8(eax), LO8(eax) */ /* 0x2B050B84: test al, al */ 42268 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42269 _cf = 0; 42270 _flag_k = FK_NARROW(FK_TEST, 24); 42271 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BAA; /* 0x2B050B86: je 0x2b050baa */ 42272 L_2B050B88: 42273 edi = MEM32(ebp + (-0x1C)); /* 0x2B050B88: mov edi, dword ptr [ebp - 0x1c] */ 42274 ecx = ebx; /* 0x2B050B8B: mov ecx, ebx */ 42275 edx = ecx; /* 0x2B050B8D: mov edx, ecx */ 42276 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050B8F: shr ecx, 2 */ 42277 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 42278 ecx = ecx >> 2u; /* 0x2B050B8F: shr ecx, 2 */ 42279 esi = 0x2B0E841Cu; /* 0x2B050B92: mov esi, 0x2b0e841c */ 42280 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050B97: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42281 ecx = edx; /* 0x2B050B99: mov ecx, edx */ 42282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 42283 ecx = ecx & 3; /* 0x2B050B9B: and ecx, 3 */ 42284 _cf = 0; 42285 _flag_k = FK_TEST; 42286 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050B9E: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42287 eax = MEM32(ebp + (-0x1C)); /* 0x2B050BA0: mov eax, dword ptr [ebp - 0x1c] */ 42288 MEM32(ebp + (-0x18)) = ebx; /* 0x2B050BA3: mov dword ptr [ebp - 0x18], ebx */ 42289 MEM8(eax + ebx) = (uint8_t)(0); /* 0x2B050BA6: mov byte ptr [eax + ebx], 0 */ 42290 L_2B050BAA: 42291 eax = MEM32(ebp + (-0x1C)); /* 0x2B050BAA: mov eax, dword ptr [ebp - 0x1c] */ 42292 /* test eax, eax */ /* 0x2B050BAD: test eax, eax */ 42293 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 42294 _cf = 0; 42295 _flag_k = FK_TEST; 42296 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B050BAF: mov byte ptr [ebp - 4], 2 */ 42297 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050BBA; /* 0x2B050BB3: jne 0x2b050bba */ 42298 L_2B050BB5: 42299 eax = MEM32(0x2B0B513C); /* 0x2B050BB5: mov eax, dword ptr [0x2b0b513c] */ 42300 L_2B050BBA: 42301 ecx = MEM32(ebp + (-0x18)); /* 0x2B050BBA: mov ecx, dword ptr [ebp - 0x18] */ 42302 PUSH32(esp, ecx); /* 0x2B050BBD: push ecx */ 42303 PUSH32(esp, eax); /* 0x2B050BBE: push eax */ 42304 PUSH32(esp, 0x3Fu); /* 0x2B050BBF: push 0x3f */ 42305 PUSH32(esp, 3); /* 0x2B050BC1: push 3 */ 42306 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050BC3: call dword ptr [0x2b0b53cc] */ 42307 RECOMP_FLAGS_IN(); 42308 ecx = eax; /* 0x2B050BC9: mov ecx, eax */ 42309 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050BCB: call dword ptr [0x2b0b53c4] */ 42310 RECOMP_FLAGS_IN(); 42311 ecx = MEM32(ebp + (-0x1C)); /* 0x2B050BD1: mov ecx, dword ptr [ebp - 0x1c] */ 42312 /* test ecx, ecx */ /* 0x2B050BD4: test ecx, ecx */ 42313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 42314 _cf = 0; 42315 _flag_k = FK_TEST; 42316 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BF4; /* 0x2B050BD6: je 0x2b050bf4 */ 42317 L_2B050BD8: 42318 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B050BD8: mov al, byte ptr [ecx - 1] */ 42319 /* test LO8(eax), LO8(eax) */ /* 0x2B050BDB: test al, al */ 42320 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42321 _cf = 0; 42322 _flag_k = FK_NARROW(FK_TEST, 24); 42323 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BEA; /* 0x2B050BDD: je 0x2b050bea */ 42324 L_2B050BDF: 42325 /* cmp LO8(eax), 0xFFu */ /* 0x2B050BDF: cmp al, 0xff */ 42326 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 42327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42328 _flag_k = FK_NARROW(FK_CMP, 24); 42329 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050BEA; /* 0x2B050BE1: je 0x2b050bea */ 42330 L_2B050BE3: 42331 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 42332 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050BE3: dec al */ 42333 _flag_k = FK_NARROW(FK_DEC, 24); 42334 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B050BE5: mov byte ptr [ecx - 1], al */ 42335 goto L_2B050BF4; /* 0x2B050BE8: jmp 0x2b050bf4 */ 42336 L_2B050BEA: 42337 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42338 ecx = ecx - 1; /* 0x2B050BEA: dec ecx */ 42339 _flag_k = FK_DEC; 42340 PUSH32(esp, ecx); /* 0x2B050BEB: push ecx */ 42341 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050BEC: call 0x2b0ab1ba */ /* not lifted */ 42342 RECOMP_FLAGS_IN(); 42343 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 42344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42345 esp = esp + 4; /* 0x2B050BF1: add esp, 4 */ 42346 _flag_k = FK_ADD; 42347 L_2B050BF4: 42348 ecx = MEM32(ebp + (-0x40)); /* 0x2B050BF4: mov ecx, dword ptr [ebp - 0x40] */ 42349 /* test ecx, ecx */ /* 0x2B050BF7: test ecx, ecx */ 42350 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 42351 _cf = 0; 42352 _flag_k = FK_TEST; 42353 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B050BF9: je 0x2b050c26 */ 42354 L_2B050BFB: 42355 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B050BFB: mov al, byte ptr [ecx - 1] */ 42356 /* test LO8(eax), LO8(eax) */ /* 0x2B050BFE: test al, al */ 42357 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42358 _cf = 0; 42359 _flag_k = FK_NARROW(FK_TEST, 24); 42360 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C00: je 0x2b050c1c */ 42361 L_2B050C02: 42362 /* cmp LO8(eax), 0xFFu */ /* 0x2B050C02: cmp al, 0xff */ 42363 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 42364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42365 _flag_k = FK_NARROW(FK_CMP, 24); 42366 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C04: je 0x2b050c1c */ 42367 L_2B050C06: 42368 edi = POP32_VAL(esp); /* 0x2B050C06: pop edi */ 42369 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 42370 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050C07: dec al */ 42371 _flag_k = FK_NARROW(FK_DEC, 24); 42372 esi = POP32_VAL(esp); /* 0x2B050C09: pop esi */ 42373 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B050C0A: mov byte ptr [ecx - 1], al */ 42374 ebx = POP32_VAL(esp); /* 0x2B050C0D: pop ebx */ 42375 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C0E: mov ecx, dword ptr [ebp - 0xc] */ 42376 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C11: mov dword ptr fs:[0], ecx */ 42377 esp = ebp; /* 0x2B050C18: mov esp, ebp */ 42378 ebp = POP32_VAL(esp); /* 0x2B050C1A: pop ebp */ 42379 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C1B: ret */ 42380 L_2B050C1C: 42381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42382 ecx = ecx - 1; /* 0x2B050C1C: dec ecx */ 42383 _flag_k = FK_DEC; 42384 PUSH32(esp, ecx); /* 0x2B050C1D: push ecx */ 42385 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050C1E: call 0x2b0ab1ba */ /* not lifted */ 42386 RECOMP_FLAGS_IN(); 42387 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 42388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42389 esp = esp + 4; /* 0x2B050C23: add esp, 4 */ 42390 _flag_k = FK_ADD; 42391 L_2B050C26: 42392 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C26: mov ecx, dword ptr [ebp - 0xc] */ 42393 edi = POP32_VAL(esp); /* 0x2B050C29: pop edi */ 42394 esi = POP32_VAL(esp); /* 0x2B050C2A: pop esi */ 42395 ebx = POP32_VAL(esp); /* 0x2B050C2B: pop ebx */ 42396 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C2C: mov dword ptr fs:[0], ecx */ 42397 esp = ebp; /* 0x2B050C33: mov esp, ebp */ 42398 ebp = POP32_VAL(esp); /* 0x2B050C35: pop ebp */ 42399 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C36: ret */ 42400 RECOMP_REGS_OUT(); 42401 } 42402 42403 void sub_2B050938(void) { 42404 int _fpu_cmp = 0; 42405 uint32_t _cf = 0; 42406 int _df = 1; 42407 uint32_t _flag_k = FK_NONE; 42408 uint32_t _flag_a = 0, _flag_b = 0; 42409 uint32_t _itail_tgt = 0; 42410 RECOMP_REGS_LOCALS 42411 RECOMP_ENTER(0x2B050938u); 42412 42413 L_2B050938: 42414 /* cmp ecx, edx */ /* 0x2B050938: cmp ecx, edx */ 42415 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 42416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42417 _flag_k = FK_CMP; 42418 if (CMP_A(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B05093A: ja 0x2b050c26 */ 42419 L_2B050940: 42420 ebx = MEM32(esi + 0x4); /* 0x2B050940: mov ebx, dword ptr [esi + 4] */ 42421 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42422 eax = 0; /* 0x2B050943: xor eax, eax */ 42423 _cf = 0; 42424 _flag_k = FK_TEST; 42425 /* test ecx, ecx */ /* 0x2B050945: test ecx, ecx */ 42426 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 42427 _cf = 0; 42428 _flag_k = FK_TEST; 42429 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050958; /* 0x2B050947: jbe 0x2b050958 */ 42430 L_2B050949: 42431 edx = MEM32(esi + 0x8); /* 0x2B050949: mov edx, dword ptr [esi + 8] */ 42432 L_2B05094C: 42433 /* cmp ebx, edx */ /* 0x2B05094C: cmp ebx, edx */ 42434 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 42435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42436 _flag_k = FK_CMP; 42437 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050958; /* 0x2B05094E: je 0x2b050958 */ 42438 L_2B050950: 42439 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 42440 eax = eax + 1; /* 0x2B050950: inc eax */ 42441 _flag_k = FK_INC; 42442 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 42443 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42444 ebx = ebx + 0x30u; /* 0x2B050951: add ebx, 0x30 */ 42445 _flag_k = FK_ADD; 42446 /* cmp eax, ecx */ /* 0x2B050954: cmp eax, ecx */ 42447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 42448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42449 _flag_k = FK_CMP; 42450 RECOMP_BACKEDGE(); 42451 if (CMP_B(_flag_a, _flag_b)) goto L_2B05094C; /* 0x2B050956: jb 0x2b05094c */ 42452 L_2B050958: 42453 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x2B050958: cmp ebx, dword ptr [esi + 8] */ 42454 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 42455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42456 _flag_k = FK_CMP; 42457 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B05095B: je 0x2b050c26 */ 42458 L_2B050961: 42459 SET_LO8(eax, MEM8(ebx + 0x24)); /* 0x2B050961: mov al, byte ptr [ebx + 0x24] */ 42460 /* test LO8(eax), LO8(eax) */ /* 0x2B050964: test al, al */ 42461 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42462 _cf = 0; 42463 _flag_k = FK_NARROW(FK_TEST, 24); 42464 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0509A1; /* 0x2B050966: je 0x2b0509a1 */ 42465 L_2B050968: 42466 eax = MEM32(ebx + 0x4); /* 0x2B050968: mov eax, dword ptr [ebx + 4] */ 42467 PUSH32(esp, eax); /* 0x2B05096B: push eax */ 42468 RECOMP_ICALL(0x2B016630u); /* 0x2B05096C: call 0x2b016630 */ /* not lifted */ 42469 RECOMP_FLAGS_IN(); 42470 ecx = eax; /* 0x2B050971: mov ecx, eax */ 42471 RECOMP_ICALL(0x2B016DF0u); /* 0x2B050973: call 0x2b016df0 */ /* not lifted */ 42472 RECOMP_FLAGS_IN(); 42473 eax = MEM32(ebx + 0x4); /* 0x2B050978: mov eax, dword ptr [ebx + 4] */ 42474 PUSH32(esp, 0); /* 0x2B05097B: push 0 */ 42475 PUSH32(esp, eax); /* 0x2B05097D: push eax */ 42476 PUSH32(esp, 0); /* 0x2B05097E: push 0 */ 42477 PUSH32(esp, eax); /* 0x2B050980: push eax */ 42478 ecx = ebx + 0x8; /* 0x2B050981: lea ecx, [ebx + 8] */ 42479 PUSH32(esp, ecx); /* 0x2B050984: push ecx */ 42480 ecx = edi; /* 0x2B050985: mov ecx, edi */ 42481 RECOMP_ICALL(0x2B04FCE0u); /* 0x2B050987: call 0x2b04fce0 */ /* not lifted */ 42482 RECOMP_FLAGS_IN(); 42483 edi = POP32_VAL(esp); /* 0x2B05098C: pop edi */ 42484 esi = POP32_VAL(esp); /* 0x2B05098D: pop esi */ 42485 MEM8(ebx + 0x24) = (uint8_t)(0); /* 0x2B05098E: mov byte ptr [ebx + 0x24], 0 */ 42486 ebx = POP32_VAL(esp); /* 0x2B050992: pop ebx */ 42487 ecx = MEM32(ebp + (-0xC)); /* 0x2B050993: mov ecx, dword ptr [ebp - 0xc] */ 42488 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050996: mov dword ptr fs:[0], ecx */ 42489 esp = ebp; /* 0x2B05099D: mov esp, ebp */ 42490 ebp = POP32_VAL(esp); /* 0x2B05099F: pop ebp */ 42491 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0509A0: ret */ 42492 L_2B0509A1: 42493 eax = MEM32(ebx + 0x18); /* 0x2B0509A1: mov eax, dword ptr [ebx + 0x18] */ 42494 /* test eax, eax */ /* 0x2B0509A4: test eax, eax */ 42495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 42496 _cf = 0; 42497 _flag_k = FK_TEST; 42498 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B0509A6: jne 0x2b050c26 */ 42499 L_2B0509AC: 42500 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B0509AC: call dword ptr [0x2b0b5b64] */ 42501 RECOMP_FLAGS_IN(); 42502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xD4u); 42503 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42504 eax = eax + 0xD4u; /* 0x2B0509B2: add eax, 0xd4 */ 42505 _flag_k = FK_ADD; 42506 edx = ebp + (-0x28); /* 0x2B0509B7: lea edx, [ebp - 0x28] */ 42507 /* cmp edx, eax */ /* 0x2B0509BA: cmp edx, eax */ 42508 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 42509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42510 _flag_k = FK_CMP; 42511 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0509C5; /* 0x2B0509BC: je 0x2b0509c5 */ 42512 L_2B0509BE: 42513 ecx = MEM32(eax); /* 0x2B0509BE: mov ecx, dword ptr [eax] */ 42514 eax = MEM32(eax + 0x4); /* 0x2B0509C0: mov eax, dword ptr [eax + 4] */ 42515 goto L_2B0509CB; /* 0x2B0509C3: jmp 0x2b0509cb */ 42516 L_2B0509C5: 42517 eax = MEM32(ebp + (-0x24)); /* 0x2B0509C5: mov eax, dword ptr [ebp - 0x24] */ 42518 ecx = MEM32(ebp + (-0x28)); /* 0x2B0509C8: mov ecx, dword ptr [ebp - 0x28] */ 42519 L_2B0509CB: 42520 MEM32(ebp + (-0x2C)) = eax; /* 0x2B0509CB: mov dword ptr [ebp - 0x2c], eax */ 42521 eax = ebp + (-0x30); /* 0x2B0509CE: lea eax, [ebp - 0x30] */ 42522 PUSH32(esp, eax); /* 0x2B0509D1: push eax */ 42523 MEM32(ebp + (-0x30)) = ecx; /* 0x2B0509D2: mov dword ptr [ebp - 0x30], ecx */ 42524 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0509D5: call dword ptr [0x2b0b5d6c] */ 42525 RECOMP_FLAGS_IN(); 42526 ecx = eax; /* 0x2B0509DB: mov ecx, eax */ 42527 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B0509DD: call dword ptr [0x2b0b5d50] */ 42528 RECOMP_FLAGS_IN(); 42529 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B0509E3: mov cl, byte ptr [ebp - 0xd] */ 42530 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(ecx)); /* 0x2B0509E6: mov byte ptr [ebp - 0x44], cl */ 42531 PUSH32(esp, 0); /* 0x2B0509E9: push 0 */ 42532 ecx = ebp + (-0x44); /* 0x2B0509EB: lea ecx, [ebp - 0x44] */ 42533 esi = eax; /* 0x2B0509EE: mov esi, eax */ 42534 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0509F0: call dword ptr [0x2b0b514c] */ 42535 RECOMP_FLAGS_IN(); 42536 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42537 ecx = ecx | 0xFFFFFFFFu; /* 0x2B0509F6: or ecx, 0xffffffff */ 42538 _cf = 0; 42539 _flag_k = FK_TEST; 42540 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42541 eax = 0; /* 0x2B0509F9: xor eax, eax */ 42542 _cf = 0; 42543 _flag_k = FK_TEST; 42544 edi = esi; /* 0x2B0509FB: mov edi, esi */ 42545 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B0509FD: repne scasb al, byte ptr es:[edi] */ 42546 ecx = ~ecx; /* 0x2B0509FF: not ecx */ 42547 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42548 ecx = ecx - 1; /* 0x2B050A01: dec ecx */ 42549 _flag_k = FK_DEC; 42550 edi = ecx; /* 0x2B050A02: mov edi, ecx */ 42551 PUSH32(esp, 1); /* 0x2B050A04: push 1 */ 42552 PUSH32(esp, edi); /* 0x2B050A06: push edi */ 42553 ecx = ebp + (-0x44); /* 0x2B050A07: lea ecx, [ebp - 0x44] */ 42554 MEM32(ebp + (-0x34)) = edi; /* 0x2B050A0A: mov dword ptr [ebp - 0x34], edi */ 42555 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050A0D: call dword ptr [0x2b0b5154] */ 42556 RECOMP_FLAGS_IN(); 42557 /* test LO8(eax), LO8(eax) */ /* 0x2B050A13: test al, al */ 42558 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42559 _cf = 0; 42560 _flag_k = FK_NARROW(FK_TEST, 24); 42561 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050A36; /* 0x2B050A15: je 0x2b050a36 */ 42562 L_2B050A17: 42563 ecx = edi; /* 0x2B050A17: mov ecx, edi */ 42564 edi = MEM32(ebp + (-0x40)); /* 0x2B050A19: mov edi, dword ptr [ebp - 0x40] */ 42565 edx = ecx; /* 0x2B050A1C: mov edx, ecx */ 42566 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050A1E: shr ecx, 2 */ 42567 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 42568 ecx = ecx >> 2u; /* 0x2B050A1E: shr ecx, 2 */ 42569 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050A21: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42570 ecx = edx; /* 0x2B050A23: mov ecx, edx */ 42571 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 42572 ecx = ecx & 3; /* 0x2B050A25: and ecx, 3 */ 42573 _cf = 0; 42574 _flag_k = FK_TEST; 42575 eax = edx; /* 0x2B050A28: mov eax, edx */ 42576 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050A2A: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42577 PUSH32(esp, eax); /* 0x2B050A2C: push eax */ 42578 ecx = ebp + (-0x44); /* 0x2B050A2D: lea ecx, [ebp - 0x44] */ 42579 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050A30: call dword ptr [0x2b0b5150] */ 42580 RECOMP_FLAGS_IN(); 42581 L_2B050A36: 42582 ecx = ebp + (-0x44); /* 0x2B050A36: lea ecx, [ebp - 0x44] */ 42583 PUSH32(esp, 0x2B0E84C4u); /* 0x2B050A39: push 0x2b0e84c4 */ 42584 PUSH32(esp, ecx); /* 0x2B050A3E: push ecx */ 42585 MEM32(ebp + (-0x4)) = 0; /* 0x2B050A3F: mov dword ptr [ebp - 4], 0 */ 42586 RECOMP_ICALL(MEM32(0x2B0B517C)); /* 0x2B050A46: call dword ptr [0x2b0b517c] */ 42587 RECOMP_FLAGS_IN(); 42588 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 42589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42590 esp = esp + 8; /* 0x2B050A4C: add esp, 8 */ 42591 _flag_k = FK_ADD; 42592 /* test LO8(eax), LO8(eax) */ /* 0x2B050A4F: test al, al */ 42593 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42594 _cf = 0; 42595 _flag_k = FK_NARROW(FK_TEST, 24); 42596 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050AE6; /* 0x2B050A51: je 0x2b050ae6 */ 42597 L_2B050A57: 42598 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2B050A57: mov dl, byte ptr [ebp - 0xd] */ 42599 PUSH32(esp, 0); /* 0x2B050A5A: push 0 */ 42600 ecx = ebp + (-0x20); /* 0x2B050A5C: lea ecx, [ebp - 0x20] */ 42601 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(edx)); /* 0x2B050A5F: mov byte ptr [ebp - 0x20], dl */ 42602 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050A62: call dword ptr [0x2b0b514c] */ 42603 RECOMP_FLAGS_IN(); 42604 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42605 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050A68: or ecx, 0xffffffff */ 42606 _cf = 0; 42607 _flag_k = FK_TEST; 42608 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42609 eax = 0; /* 0x2B050A6B: xor eax, eax */ 42610 _cf = 0; 42611 _flag_k = FK_TEST; 42612 edi = 0x2B0E8478u; /* 0x2B050A6D: mov edi, 0x2b0e8478 */ 42613 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B050A72: repne scasb al, byte ptr es:[edi] */ 42614 ecx = ~ecx; /* 0x2B050A74: not ecx */ 42615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42616 ecx = ecx - 1; /* 0x2B050A76: dec ecx */ 42617 _flag_k = FK_DEC; 42618 ebx = ecx; /* 0x2B050A77: mov ebx, ecx */ 42619 PUSH32(esp, 1); /* 0x2B050A79: push 1 */ 42620 PUSH32(esp, ebx); /* 0x2B050A7B: push ebx */ 42621 ecx = ebp + (-0x20); /* 0x2B050A7C: lea ecx, [ebp - 0x20] */ 42622 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050A7F: call dword ptr [0x2b0b5154] */ 42623 RECOMP_FLAGS_IN(); 42624 /* test LO8(eax), LO8(eax) */ /* 0x2B050A85: test al, al */ 42625 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42626 _cf = 0; 42627 _flag_k = FK_NARROW(FK_TEST, 24); 42628 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050AAB; /* 0x2B050A87: je 0x2b050aab */ 42629 L_2B050A89: 42630 edi = MEM32(ebp + (-0x1C)); /* 0x2B050A89: mov edi, dword ptr [ebp - 0x1c] */ 42631 ecx = ebx; /* 0x2B050A8C: mov ecx, ebx */ 42632 eax = ecx; /* 0x2B050A8E: mov eax, ecx */ 42633 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050A90: shr ecx, 2 */ 42634 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 42635 ecx = ecx >> 2u; /* 0x2B050A90: shr ecx, 2 */ 42636 esi = 0x2B0E8478u; /* 0x2B050A93: mov esi, 0x2b0e8478 */ 42637 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050A98: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42638 ecx = eax; /* 0x2B050A9A: mov ecx, eax */ 42639 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 42640 ecx = ecx & 3; /* 0x2B050A9C: and ecx, 3 */ 42641 _cf = 0; 42642 _flag_k = FK_TEST; 42643 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050A9F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42644 PUSH32(esp, ebx); /* 0x2B050AA1: push ebx */ 42645 ecx = ebp + (-0x20); /* 0x2B050AA2: lea ecx, [ebp - 0x20] */ 42646 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050AA5: call dword ptr [0x2b0b5150] */ 42647 RECOMP_FLAGS_IN(); 42648 L_2B050AAB: 42649 eax = MEM32(ebp + (-0x1C)); /* 0x2B050AAB: mov eax, dword ptr [ebp - 0x1c] */ 42650 /* test eax, eax */ /* 0x2B050AAE: test eax, eax */ 42651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 42652 _cf = 0; 42653 _flag_k = FK_TEST; 42654 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B050AB0: mov byte ptr [ebp - 4], 1 */ 42655 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050ABB; /* 0x2B050AB4: jne 0x2b050abb */ 42656 L_2B050AB6: 42657 eax = MEM32(0x2B0B513C); /* 0x2B050AB6: mov eax, dword ptr [0x2b0b513c] */ 42658 L_2B050ABB: 42659 ecx = MEM32(ebp + (-0x18)); /* 0x2B050ABB: mov ecx, dword ptr [ebp - 0x18] */ 42660 PUSH32(esp, ecx); /* 0x2B050ABE: push ecx */ 42661 PUSH32(esp, eax); /* 0x2B050ABF: push eax */ 42662 PUSH32(esp, 0x3Fu); /* 0x2B050AC0: push 0x3f */ 42663 PUSH32(esp, 3); /* 0x2B050AC2: push 3 */ 42664 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050AC4: call dword ptr [0x2b0b53cc] */ 42665 RECOMP_FLAGS_IN(); 42666 ecx = eax; /* 0x2B050ACA: mov ecx, eax */ 42667 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050ACC: call dword ptr [0x2b0b53c4] */ 42668 RECOMP_FLAGS_IN(); 42669 PUSH32(esp, 1); /* 0x2B050AD2: push 1 */ 42670 ecx = ebp + (-0x20); /* 0x2B050AD4: lea ecx, [ebp - 0x20] */ 42671 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B050AD7: mov byte ptr [ebp - 4], 0 */ 42672 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050ADB: call dword ptr [0x2b0b514c] */ 42673 RECOMP_FLAGS_IN(); 42674 goto L_2B050BF4; /* 0x2B050AE1: jmp 0x2b050bf4 */ 42675 L_2B050AE6: 42676 eax = MEM32(ebx + 0x1C); /* 0x2B050AE6: mov eax, dword ptr [ebx + 0x1c] */ 42677 /* test eax, eax */ /* 0x2B050AE9: test eax, eax */ 42678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 42679 _cf = 0; 42680 _flag_k = FK_TEST; 42681 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050B56; /* 0x2B050AEB: je 0x2b050b56 */ 42682 L_2B050AED: 42683 eax = MEM32(ebx + 0xC); /* 0x2B050AED: mov eax, dword ptr [ebx + 0xc] */ 42684 /* test eax, eax */ /* 0x2B050AF0: test eax, eax */ 42685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 42686 _cf = 0; 42687 _flag_k = FK_TEST; 42688 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050AF9; /* 0x2B050AF2: jne 0x2b050af9 */ 42689 L_2B050AF4: 42690 eax = MEM32(0x2B0B513C); /* 0x2B050AF4: mov eax, dword ptr [0x2b0b513c] */ 42691 L_2B050AF9: 42692 PUSH32(esp, eax); /* 0x2B050AF9: push eax */ 42693 edx = ebp + (-0x244); /* 0x2B050AFA: lea edx, [ebp - 0x244] */ 42694 PUSH32(esp, 0x2B0E8454u); /* 0x2B050B00: push 0x2b0e8454 */ 42695 PUSH32(esp, edx); /* 0x2B050B05: push edx */ 42696 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B050B06: call dword ptr [0x2b0b51f0] */ 42697 RECOMP_FLAGS_IN(); 42698 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 42699 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42700 esp = esp + 0xCu; /* 0x2B050B0C: add esp, 0xc */ 42701 _flag_k = FK_ADD; 42702 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42703 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050B0F: or ecx, 0xffffffff */ 42704 _cf = 0; 42705 _flag_k = FK_TEST; 42706 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42707 eax = 0; /* 0x2B050B12: xor eax, eax */ 42708 _cf = 0; 42709 _flag_k = FK_TEST; 42710 edi = ebp + (-0x244); /* 0x2B050B14: lea edi, [ebp - 0x244] */ 42711 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B050B1A: repne scasb al, byte ptr es:[edi] */ 42712 ecx = ~ecx; /* 0x2B050B1C: not ecx */ 42713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42714 ecx = ecx - 1; /* 0x2B050B1E: dec ecx */ 42715 _flag_k = FK_DEC; 42716 PUSH32(esp, ecx); /* 0x2B050B1F: push ecx */ 42717 eax = ebp + (-0x244); /* 0x2B050B20: lea eax, [ebp - 0x244] */ 42718 PUSH32(esp, eax); /* 0x2B050B26: push eax */ 42719 PUSH32(esp, 0x3Fu); /* 0x2B050B27: push 0x3f */ 42720 PUSH32(esp, 3); /* 0x2B050B29: push 3 */ 42721 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050B2B: call dword ptr [0x2b0b53cc] */ 42722 RECOMP_FLAGS_IN(); 42723 ecx = eax; /* 0x2B050B31: mov ecx, eax */ 42724 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050B33: call dword ptr [0x2b0b53c4] */ 42725 RECOMP_FLAGS_IN(); 42726 ebx = MEM32(ebx + 0x4); /* 0x2B050B39: mov ebx, dword ptr [ebx + 4] */ 42727 PUSH32(esp, ebx); /* 0x2B050B3C: push ebx */ 42728 RECOMP_ICALL(0x2B016630u); /* 0x2B050B3D: call 0x2b016630 */ /* not lifted */ 42729 RECOMP_FLAGS_IN(); 42730 ecx = eax; /* 0x2B050B42: mov ecx, eax */ 42731 RECOMP_ICALL(0x2B016DD0u); /* 0x2B050B44: call 0x2b016dd0 */ /* not lifted */ 42732 RECOMP_FLAGS_IN(); 42733 ecx = MEM32(ebp + (-0x24)); /* 0x2B050B49: mov ecx, dword ptr [ebp - 0x24] */ 42734 RECOMP_ICALL(0x2B050C40u); /* 0x2B050B4C: call 0x2b050c40 */ /* not lifted */ 42735 RECOMP_FLAGS_IN(); 42736 goto L_2B050BF4; /* 0x2B050B51: jmp 0x2b050bf4 */ 42737 L_2B050B56: 42738 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B050B56: mov cl, byte ptr [ebp - 0xd] */ 42739 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ecx)); /* 0x2B050B59: mov byte ptr [ebp - 0x20], cl */ 42740 PUSH32(esp, 0); /* 0x2B050B5C: push 0 */ 42741 ecx = ebp + (-0x20); /* 0x2B050B5E: lea ecx, [ebp - 0x20] */ 42742 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050B61: call dword ptr [0x2b0b514c] */ 42743 RECOMP_FLAGS_IN(); 42744 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42745 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050B67: or ecx, 0xffffffff */ 42746 _cf = 0; 42747 _flag_k = FK_TEST; 42748 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42749 eax = 0; /* 0x2B050B6A: xor eax, eax */ 42750 _cf = 0; 42751 _flag_k = FK_TEST; 42752 edi = 0x2B0E841Cu; /* 0x2B050B6C: mov edi, 0x2b0e841c */ 42753 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B050B71: repne scasb al, byte ptr es:[edi] */ 42754 ecx = ~ecx; /* 0x2B050B73: not ecx */ 42755 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42756 ecx = ecx - 1; /* 0x2B050B75: dec ecx */ 42757 _flag_k = FK_DEC; 42758 ebx = ecx; /* 0x2B050B76: mov ebx, ecx */ 42759 PUSH32(esp, 1); /* 0x2B050B78: push 1 */ 42760 PUSH32(esp, ebx); /* 0x2B050B7A: push ebx */ 42761 ecx = ebp + (-0x20); /* 0x2B050B7B: lea ecx, [ebp - 0x20] */ 42762 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050B7E: call dword ptr [0x2b0b5154] */ 42763 RECOMP_FLAGS_IN(); 42764 /* test LO8(eax), LO8(eax) */ /* 0x2B050B84: test al, al */ 42765 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42766 _cf = 0; 42767 _flag_k = FK_NARROW(FK_TEST, 24); 42768 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BAA; /* 0x2B050B86: je 0x2b050baa */ 42769 L_2B050B88: 42770 edi = MEM32(ebp + (-0x1C)); /* 0x2B050B88: mov edi, dword ptr [ebp - 0x1c] */ 42771 ecx = ebx; /* 0x2B050B8B: mov ecx, ebx */ 42772 edx = ecx; /* 0x2B050B8D: mov edx, ecx */ 42773 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050B8F: shr ecx, 2 */ 42774 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 42775 ecx = ecx >> 2u; /* 0x2B050B8F: shr ecx, 2 */ 42776 esi = 0x2B0E841Cu; /* 0x2B050B92: mov esi, 0x2b0e841c */ 42777 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050B97: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42778 ecx = edx; /* 0x2B050B99: mov ecx, edx */ 42779 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 42780 ecx = ecx & 3; /* 0x2B050B9B: and ecx, 3 */ 42781 _cf = 0; 42782 _flag_k = FK_TEST; 42783 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050B9E: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42784 eax = MEM32(ebp + (-0x1C)); /* 0x2B050BA0: mov eax, dword ptr [ebp - 0x1c] */ 42785 MEM32(ebp + (-0x18)) = ebx; /* 0x2B050BA3: mov dword ptr [ebp - 0x18], ebx */ 42786 MEM8(eax + ebx) = (uint8_t)(0); /* 0x2B050BA6: mov byte ptr [eax + ebx], 0 */ 42787 L_2B050BAA: 42788 eax = MEM32(ebp + (-0x1C)); /* 0x2B050BAA: mov eax, dword ptr [ebp - 0x1c] */ 42789 /* test eax, eax */ /* 0x2B050BAD: test eax, eax */ 42790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 42791 _cf = 0; 42792 _flag_k = FK_TEST; 42793 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B050BAF: mov byte ptr [ebp - 4], 2 */ 42794 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050BBA; /* 0x2B050BB3: jne 0x2b050bba */ 42795 L_2B050BB5: 42796 eax = MEM32(0x2B0B513C); /* 0x2B050BB5: mov eax, dword ptr [0x2b0b513c] */ 42797 L_2B050BBA: 42798 ecx = MEM32(ebp + (-0x18)); /* 0x2B050BBA: mov ecx, dword ptr [ebp - 0x18] */ 42799 PUSH32(esp, ecx); /* 0x2B050BBD: push ecx */ 42800 PUSH32(esp, eax); /* 0x2B050BBE: push eax */ 42801 PUSH32(esp, 0x3Fu); /* 0x2B050BBF: push 0x3f */ 42802 PUSH32(esp, 3); /* 0x2B050BC1: push 3 */ 42803 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050BC3: call dword ptr [0x2b0b53cc] */ 42804 RECOMP_FLAGS_IN(); 42805 ecx = eax; /* 0x2B050BC9: mov ecx, eax */ 42806 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050BCB: call dword ptr [0x2b0b53c4] */ 42807 RECOMP_FLAGS_IN(); 42808 ecx = MEM32(ebp + (-0x1C)); /* 0x2B050BD1: mov ecx, dword ptr [ebp - 0x1c] */ 42809 /* test ecx, ecx */ /* 0x2B050BD4: test ecx, ecx */ 42810 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 42811 _cf = 0; 42812 _flag_k = FK_TEST; 42813 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BF4; /* 0x2B050BD6: je 0x2b050bf4 */ 42814 L_2B050BD8: 42815 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B050BD8: mov al, byte ptr [ecx - 1] */ 42816 /* test LO8(eax), LO8(eax) */ /* 0x2B050BDB: test al, al */ 42817 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42818 _cf = 0; 42819 _flag_k = FK_NARROW(FK_TEST, 24); 42820 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BEA; /* 0x2B050BDD: je 0x2b050bea */ 42821 L_2B050BDF: 42822 /* cmp LO8(eax), 0xFFu */ /* 0x2B050BDF: cmp al, 0xff */ 42823 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 42824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42825 _flag_k = FK_NARROW(FK_CMP, 24); 42826 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050BEA; /* 0x2B050BE1: je 0x2b050bea */ 42827 L_2B050BE3: 42828 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 42829 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050BE3: dec al */ 42830 _flag_k = FK_NARROW(FK_DEC, 24); 42831 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B050BE5: mov byte ptr [ecx - 1], al */ 42832 goto L_2B050BF4; /* 0x2B050BE8: jmp 0x2b050bf4 */ 42833 L_2B050BEA: 42834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42835 ecx = ecx - 1; /* 0x2B050BEA: dec ecx */ 42836 _flag_k = FK_DEC; 42837 PUSH32(esp, ecx); /* 0x2B050BEB: push ecx */ 42838 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050BEC: call 0x2b0ab1ba */ /* not lifted */ 42839 RECOMP_FLAGS_IN(); 42840 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 42841 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42842 esp = esp + 4; /* 0x2B050BF1: add esp, 4 */ 42843 _flag_k = FK_ADD; 42844 L_2B050BF4: 42845 ecx = MEM32(ebp + (-0x40)); /* 0x2B050BF4: mov ecx, dword ptr [ebp - 0x40] */ 42846 /* test ecx, ecx */ /* 0x2B050BF7: test ecx, ecx */ 42847 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 42848 _cf = 0; 42849 _flag_k = FK_TEST; 42850 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B050BF9: je 0x2b050c26 */ 42851 L_2B050BFB: 42852 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B050BFB: mov al, byte ptr [ecx - 1] */ 42853 /* test LO8(eax), LO8(eax) */ /* 0x2B050BFE: test al, al */ 42854 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42855 _cf = 0; 42856 _flag_k = FK_NARROW(FK_TEST, 24); 42857 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C00: je 0x2b050c1c */ 42858 L_2B050C02: 42859 /* cmp LO8(eax), 0xFFu */ /* 0x2B050C02: cmp al, 0xff */ 42860 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 42861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 42862 _flag_k = FK_NARROW(FK_CMP, 24); 42863 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C04: je 0x2b050c1c */ 42864 L_2B050C06: 42865 edi = POP32_VAL(esp); /* 0x2B050C06: pop edi */ 42866 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 42867 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050C07: dec al */ 42868 _flag_k = FK_NARROW(FK_DEC, 24); 42869 esi = POP32_VAL(esp); /* 0x2B050C09: pop esi */ 42870 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B050C0A: mov byte ptr [ecx - 1], al */ 42871 ebx = POP32_VAL(esp); /* 0x2B050C0D: pop ebx */ 42872 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C0E: mov ecx, dword ptr [ebp - 0xc] */ 42873 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C11: mov dword ptr fs:[0], ecx */ 42874 esp = ebp; /* 0x2B050C18: mov esp, ebp */ 42875 ebp = POP32_VAL(esp); /* 0x2B050C1A: pop ebp */ 42876 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C1B: ret */ 42877 L_2B050C1C: 42878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42879 ecx = ecx - 1; /* 0x2B050C1C: dec ecx */ 42880 _flag_k = FK_DEC; 42881 PUSH32(esp, ecx); /* 0x2B050C1D: push ecx */ 42882 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050C1E: call 0x2b0ab1ba */ /* not lifted */ 42883 RECOMP_FLAGS_IN(); 42884 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 42885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42886 esp = esp + 4; /* 0x2B050C23: add esp, 4 */ 42887 _flag_k = FK_ADD; 42888 L_2B050C26: 42889 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C26: mov ecx, dword ptr [ebp - 0xc] */ 42890 edi = POP32_VAL(esp); /* 0x2B050C29: pop edi */ 42891 esi = POP32_VAL(esp); /* 0x2B050C2A: pop esi */ 42892 ebx = POP32_VAL(esp); /* 0x2B050C2B: pop ebx */ 42893 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C2C: mov dword ptr fs:[0], ecx */ 42894 esp = ebp; /* 0x2B050C33: mov esp, ebp */ 42895 ebp = POP32_VAL(esp); /* 0x2B050C35: pop ebp */ 42896 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C36: ret */ 42897 RECOMP_REGS_OUT(); 42898 } 42899 42900 void sub_2B0509CB(void) { 42901 int _fpu_cmp = 0; 42902 uint32_t _cf = 0; 42903 int _df = 1; 42904 uint32_t _flag_k = FK_NONE; 42905 uint32_t _flag_a = 0, _flag_b = 0; 42906 uint32_t _itail_tgt = 0; 42907 RECOMP_REGS_LOCALS 42908 RECOMP_ENTER(0x2B0509CBu); 42909 42910 L_2B0509CB: 42911 MEM32(ebp + (-0x2C)) = eax; /* 0x2B0509CB: mov dword ptr [ebp - 0x2c], eax */ 42912 eax = ebp + (-0x30); /* 0x2B0509CE: lea eax, [ebp - 0x30] */ 42913 PUSH32(esp, eax); /* 0x2B0509D1: push eax */ 42914 MEM32(ebp + (-0x30)) = ecx; /* 0x2B0509D2: mov dword ptr [ebp - 0x30], ecx */ 42915 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0509D5: call dword ptr [0x2b0b5d6c] */ 42916 RECOMP_FLAGS_IN(); 42917 ecx = eax; /* 0x2B0509DB: mov ecx, eax */ 42918 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B0509DD: call dword ptr [0x2b0b5d50] */ 42919 RECOMP_FLAGS_IN(); 42920 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B0509E3: mov cl, byte ptr [ebp - 0xd] */ 42921 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(ecx)); /* 0x2B0509E6: mov byte ptr [ebp - 0x44], cl */ 42922 PUSH32(esp, 0); /* 0x2B0509E9: push 0 */ 42923 ecx = ebp + (-0x44); /* 0x2B0509EB: lea ecx, [ebp - 0x44] */ 42924 esi = eax; /* 0x2B0509EE: mov esi, eax */ 42925 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B0509F0: call dword ptr [0x2b0b514c] */ 42926 RECOMP_FLAGS_IN(); 42927 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42928 ecx = ecx | 0xFFFFFFFFu; /* 0x2B0509F6: or ecx, 0xffffffff */ 42929 _cf = 0; 42930 _flag_k = FK_TEST; 42931 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 42932 eax = 0; /* 0x2B0509F9: xor eax, eax */ 42933 _cf = 0; 42934 _flag_k = FK_TEST; 42935 edi = esi; /* 0x2B0509FB: mov edi, esi */ 42936 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B0509FD: repne scasb al, byte ptr es:[edi] */ 42937 ecx = ~ecx; /* 0x2B0509FF: not ecx */ 42938 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 42939 ecx = ecx - 1; /* 0x2B050A01: dec ecx */ 42940 _flag_k = FK_DEC; 42941 edi = ecx; /* 0x2B050A02: mov edi, ecx */ 42942 PUSH32(esp, 1); /* 0x2B050A04: push 1 */ 42943 PUSH32(esp, edi); /* 0x2B050A06: push edi */ 42944 ecx = ebp + (-0x44); /* 0x2B050A07: lea ecx, [ebp - 0x44] */ 42945 MEM32(ebp + (-0x34)) = edi; /* 0x2B050A0A: mov dword ptr [ebp - 0x34], edi */ 42946 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050A0D: call dword ptr [0x2b0b5154] */ 42947 RECOMP_FLAGS_IN(); 42948 /* test LO8(eax), LO8(eax) */ /* 0x2B050A13: test al, al */ 42949 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42950 _cf = 0; 42951 _flag_k = FK_NARROW(FK_TEST, 24); 42952 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050A36; /* 0x2B050A15: je 0x2b050a36 */ 42953 L_2B050A17: 42954 ecx = edi; /* 0x2B050A17: mov ecx, edi */ 42955 edi = MEM32(ebp + (-0x40)); /* 0x2B050A19: mov edi, dword ptr [ebp - 0x40] */ 42956 edx = ecx; /* 0x2B050A1C: mov edx, ecx */ 42957 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050A1E: shr ecx, 2 */ 42958 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 42959 ecx = ecx >> 2u; /* 0x2B050A1E: shr ecx, 2 */ 42960 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050A21: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42961 ecx = edx; /* 0x2B050A23: mov ecx, edx */ 42962 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 42963 ecx = ecx & 3; /* 0x2B050A25: and ecx, 3 */ 42964 _cf = 0; 42965 _flag_k = FK_TEST; 42966 eax = edx; /* 0x2B050A28: mov eax, edx */ 42967 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050A2A: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 42968 PUSH32(esp, eax); /* 0x2B050A2C: push eax */ 42969 ecx = ebp + (-0x44); /* 0x2B050A2D: lea ecx, [ebp - 0x44] */ 42970 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050A30: call dword ptr [0x2b0b5150] */ 42971 RECOMP_FLAGS_IN(); 42972 L_2B050A36: 42973 ecx = ebp + (-0x44); /* 0x2B050A36: lea ecx, [ebp - 0x44] */ 42974 PUSH32(esp, 0x2B0E84C4u); /* 0x2B050A39: push 0x2b0e84c4 */ 42975 PUSH32(esp, ecx); /* 0x2B050A3E: push ecx */ 42976 MEM32(ebp + (-0x4)) = 0; /* 0x2B050A3F: mov dword ptr [ebp - 4], 0 */ 42977 RECOMP_ICALL(MEM32(0x2B0B517C)); /* 0x2B050A46: call dword ptr [0x2b0b517c] */ 42978 RECOMP_FLAGS_IN(); 42979 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 42980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42981 esp = esp + 8; /* 0x2B050A4C: add esp, 8 */ 42982 _flag_k = FK_ADD; 42983 /* test LO8(eax), LO8(eax) */ /* 0x2B050A4F: test al, al */ 42984 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42985 _cf = 0; 42986 _flag_k = FK_NARROW(FK_TEST, 24); 42987 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050AE6; /* 0x2B050A51: je 0x2b050ae6 */ 42988 L_2B050A57: 42989 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x2B050A57: mov dl, byte ptr [ebp - 0xd] */ 42990 PUSH32(esp, 0); /* 0x2B050A5A: push 0 */ 42991 ecx = ebp + (-0x20); /* 0x2B050A5C: lea ecx, [ebp - 0x20] */ 42992 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(edx)); /* 0x2B050A5F: mov byte ptr [ebp - 0x20], dl */ 42993 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050A62: call dword ptr [0x2b0b514c] */ 42994 RECOMP_FLAGS_IN(); 42995 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 42996 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050A68: or ecx, 0xffffffff */ 42997 _cf = 0; 42998 _flag_k = FK_TEST; 42999 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 43000 eax = 0; /* 0x2B050A6B: xor eax, eax */ 43001 _cf = 0; 43002 _flag_k = FK_TEST; 43003 edi = 0x2B0E8478u; /* 0x2B050A6D: mov edi, 0x2b0e8478 */ 43004 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B050A72: repne scasb al, byte ptr es:[edi] */ 43005 ecx = ~ecx; /* 0x2B050A74: not ecx */ 43006 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 43007 ecx = ecx - 1; /* 0x2B050A76: dec ecx */ 43008 _flag_k = FK_DEC; 43009 ebx = ecx; /* 0x2B050A77: mov ebx, ecx */ 43010 PUSH32(esp, 1); /* 0x2B050A79: push 1 */ 43011 PUSH32(esp, ebx); /* 0x2B050A7B: push ebx */ 43012 ecx = ebp + (-0x20); /* 0x2B050A7C: lea ecx, [ebp - 0x20] */ 43013 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050A7F: call dword ptr [0x2b0b5154] */ 43014 RECOMP_FLAGS_IN(); 43015 /* test LO8(eax), LO8(eax) */ /* 0x2B050A85: test al, al */ 43016 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 43017 _cf = 0; 43018 _flag_k = FK_NARROW(FK_TEST, 24); 43019 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050AAB; /* 0x2B050A87: je 0x2b050aab */ 43020 L_2B050A89: 43021 edi = MEM32(ebp + (-0x1C)); /* 0x2B050A89: mov edi, dword ptr [ebp - 0x1c] */ 43022 ecx = ebx; /* 0x2B050A8C: mov ecx, ebx */ 43023 eax = ecx; /* 0x2B050A8E: mov eax, ecx */ 43024 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050A90: shr ecx, 2 */ 43025 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 43026 ecx = ecx >> 2u; /* 0x2B050A90: shr ecx, 2 */ 43027 esi = 0x2B0E8478u; /* 0x2B050A93: mov esi, 0x2b0e8478 */ 43028 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050A98: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 43029 ecx = eax; /* 0x2B050A9A: mov ecx, eax */ 43030 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 43031 ecx = ecx & 3; /* 0x2B050A9C: and ecx, 3 */ 43032 _cf = 0; 43033 _flag_k = FK_TEST; 43034 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050A9F: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 43035 PUSH32(esp, ebx); /* 0x2B050AA1: push ebx */ 43036 ecx = ebp + (-0x20); /* 0x2B050AA2: lea ecx, [ebp - 0x20] */ 43037 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050AA5: call dword ptr [0x2b0b5150] */ 43038 RECOMP_FLAGS_IN(); 43039 L_2B050AAB: 43040 eax = MEM32(ebp + (-0x1C)); /* 0x2B050AAB: mov eax, dword ptr [ebp - 0x1c] */ 43041 /* test eax, eax */ /* 0x2B050AAE: test eax, eax */ 43042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 43043 _cf = 0; 43044 _flag_k = FK_TEST; 43045 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B050AB0: mov byte ptr [ebp - 4], 1 */ 43046 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050ABB; /* 0x2B050AB4: jne 0x2b050abb */ 43047 L_2B050AB6: 43048 eax = MEM32(0x2B0B513C); /* 0x2B050AB6: mov eax, dword ptr [0x2b0b513c] */ 43049 L_2B050ABB: 43050 ecx = MEM32(ebp + (-0x18)); /* 0x2B050ABB: mov ecx, dword ptr [ebp - 0x18] */ 43051 PUSH32(esp, ecx); /* 0x2B050ABE: push ecx */ 43052 PUSH32(esp, eax); /* 0x2B050ABF: push eax */ 43053 PUSH32(esp, 0x3Fu); /* 0x2B050AC0: push 0x3f */ 43054 PUSH32(esp, 3); /* 0x2B050AC2: push 3 */ 43055 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050AC4: call dword ptr [0x2b0b53cc] */ 43056 RECOMP_FLAGS_IN(); 43057 ecx = eax; /* 0x2B050ACA: mov ecx, eax */ 43058 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050ACC: call dword ptr [0x2b0b53c4] */ 43059 RECOMP_FLAGS_IN(); 43060 PUSH32(esp, 1); /* 0x2B050AD2: push 1 */ 43061 ecx = ebp + (-0x20); /* 0x2B050AD4: lea ecx, [ebp - 0x20] */ 43062 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B050AD7: mov byte ptr [ebp - 4], 0 */ 43063 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050ADB: call dword ptr [0x2b0b514c] */ 43064 RECOMP_FLAGS_IN(); 43065 goto L_2B050BF4; /* 0x2B050AE1: jmp 0x2b050bf4 */ 43066 L_2B050AE6: 43067 eax = MEM32(ebx + 0x1C); /* 0x2B050AE6: mov eax, dword ptr [ebx + 0x1c] */ 43068 /* test eax, eax */ /* 0x2B050AE9: test eax, eax */ 43069 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 43070 _cf = 0; 43071 _flag_k = FK_TEST; 43072 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050B56; /* 0x2B050AEB: je 0x2b050b56 */ 43073 L_2B050AED: 43074 eax = MEM32(ebx + 0xC); /* 0x2B050AED: mov eax, dword ptr [ebx + 0xc] */ 43075 /* test eax, eax */ /* 0x2B050AF0: test eax, eax */ 43076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 43077 _cf = 0; 43078 _flag_k = FK_TEST; 43079 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050AF9; /* 0x2B050AF2: jne 0x2b050af9 */ 43080 L_2B050AF4: 43081 eax = MEM32(0x2B0B513C); /* 0x2B050AF4: mov eax, dword ptr [0x2b0b513c] */ 43082 L_2B050AF9: 43083 PUSH32(esp, eax); /* 0x2B050AF9: push eax */ 43084 edx = ebp + (-0x244); /* 0x2B050AFA: lea edx, [ebp - 0x244] */ 43085 PUSH32(esp, 0x2B0E8454u); /* 0x2B050B00: push 0x2b0e8454 */ 43086 PUSH32(esp, edx); /* 0x2B050B05: push edx */ 43087 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B050B06: call dword ptr [0x2b0b51f0] */ 43088 RECOMP_FLAGS_IN(); 43089 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 43090 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43091 esp = esp + 0xCu; /* 0x2B050B0C: add esp, 0xc */ 43092 _flag_k = FK_ADD; 43093 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 43094 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050B0F: or ecx, 0xffffffff */ 43095 _cf = 0; 43096 _flag_k = FK_TEST; 43097 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 43098 eax = 0; /* 0x2B050B12: xor eax, eax */ 43099 _cf = 0; 43100 _flag_k = FK_TEST; 43101 edi = ebp + (-0x244); /* 0x2B050B14: lea edi, [ebp - 0x244] */ 43102 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B050B1A: repne scasb al, byte ptr es:[edi] */ 43103 ecx = ~ecx; /* 0x2B050B1C: not ecx */ 43104 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 43105 ecx = ecx - 1; /* 0x2B050B1E: dec ecx */ 43106 _flag_k = FK_DEC; 43107 PUSH32(esp, ecx); /* 0x2B050B1F: push ecx */ 43108 eax = ebp + (-0x244); /* 0x2B050B20: lea eax, [ebp - 0x244] */ 43109 PUSH32(esp, eax); /* 0x2B050B26: push eax */ 43110 PUSH32(esp, 0x3Fu); /* 0x2B050B27: push 0x3f */ 43111 PUSH32(esp, 3); /* 0x2B050B29: push 3 */ 43112 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050B2B: call dword ptr [0x2b0b53cc] */ 43113 RECOMP_FLAGS_IN(); 43114 ecx = eax; /* 0x2B050B31: mov ecx, eax */ 43115 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050B33: call dword ptr [0x2b0b53c4] */ 43116 RECOMP_FLAGS_IN(); 43117 ebx = MEM32(ebx + 0x4); /* 0x2B050B39: mov ebx, dword ptr [ebx + 4] */ 43118 PUSH32(esp, ebx); /* 0x2B050B3C: push ebx */ 43119 RECOMP_ICALL(0x2B016630u); /* 0x2B050B3D: call 0x2b016630 */ /* not lifted */ 43120 RECOMP_FLAGS_IN(); 43121 ecx = eax; /* 0x2B050B42: mov ecx, eax */ 43122 RECOMP_ICALL(0x2B016DD0u); /* 0x2B050B44: call 0x2b016dd0 */ /* not lifted */ 43123 RECOMP_FLAGS_IN(); 43124 ecx = MEM32(ebp + (-0x24)); /* 0x2B050B49: mov ecx, dword ptr [ebp - 0x24] */ 43125 RECOMP_ICALL(0x2B050C40u); /* 0x2B050B4C: call 0x2b050c40 */ /* not lifted */ 43126 RECOMP_FLAGS_IN(); 43127 goto L_2B050BF4; /* 0x2B050B51: jmp 0x2b050bf4 */ 43128 L_2B050B56: 43129 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2B050B56: mov cl, byte ptr [ebp - 0xd] */ 43130 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ecx)); /* 0x2B050B59: mov byte ptr [ebp - 0x20], cl */ 43131 PUSH32(esp, 0); /* 0x2B050B5C: push 0 */ 43132 ecx = ebp + (-0x20); /* 0x2B050B5E: lea ecx, [ebp - 0x20] */ 43133 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050B61: call dword ptr [0x2b0b514c] */ 43134 RECOMP_FLAGS_IN(); 43135 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 43136 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050B67: or ecx, 0xffffffff */ 43137 _cf = 0; 43138 _flag_k = FK_TEST; 43139 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 43140 eax = 0; /* 0x2B050B6A: xor eax, eax */ 43141 _cf = 0; 43142 _flag_k = FK_TEST; 43143 edi = 0x2B0E841Cu; /* 0x2B050B6C: mov edi, 0x2b0e841c */ 43144 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2B050B71: repne scasb al, byte ptr es:[edi] */ 43145 ecx = ~ecx; /* 0x2B050B73: not ecx */ 43146 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 43147 ecx = ecx - 1; /* 0x2B050B75: dec ecx */ 43148 _flag_k = FK_DEC; 43149 ebx = ecx; /* 0x2B050B76: mov ebx, ecx */ 43150 PUSH32(esp, 1); /* 0x2B050B78: push 1 */ 43151 PUSH32(esp, ebx); /* 0x2B050B7A: push ebx */ 43152 ecx = ebp + (-0x20); /* 0x2B050B7B: lea ecx, [ebp - 0x20] */ 43153 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050B7E: call dword ptr [0x2b0b5154] */ 43154 RECOMP_FLAGS_IN(); 43155 /* test LO8(eax), LO8(eax) */ /* 0x2B050B84: test al, al */ 43156 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 43157 _cf = 0; 43158 _flag_k = FK_NARROW(FK_TEST, 24); 43159 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BAA; /* 0x2B050B86: je 0x2b050baa */ 43160 L_2B050B88: 43161 edi = MEM32(ebp + (-0x1C)); /* 0x2B050B88: mov edi, dword ptr [ebp - 0x1c] */ 43162 ecx = ebx; /* 0x2B050B8B: mov ecx, ebx */ 43163 edx = ecx; /* 0x2B050B8D: mov edx, ecx */ 43164 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050B8F: shr ecx, 2 */ 43165 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 43166 ecx = ecx >> 2u; /* 0x2B050B8F: shr ecx, 2 */ 43167 esi = 0x2B0E841Cu; /* 0x2B050B92: mov esi, 0x2b0e841c */ 43168 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050B97: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 43169 ecx = edx; /* 0x2B050B99: mov ecx, edx */ 43170 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 43171 ecx = ecx & 3; /* 0x2B050B9B: and ecx, 3 */ 43172 _cf = 0; 43173 _flag_k = FK_TEST; 43174 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050B9E: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 43175 eax = MEM32(ebp + (-0x1C)); /* 0x2B050BA0: mov eax, dword ptr [ebp - 0x1c] */ 43176 MEM32(ebp + (-0x18)) = ebx; /* 0x2B050BA3: mov dword ptr [ebp - 0x18], ebx */ 43177 MEM8(eax + ebx) = (uint8_t)(0); /* 0x2B050BA6: mov byte ptr [eax + ebx], 0 */ 43178 L_2B050BAA: 43179 eax = MEM32(ebp + (-0x1C)); /* 0x2B050BAA: mov eax, dword ptr [ebp - 0x1c] */ 43180 /* test eax, eax */ /* 0x2B050BAD: test eax, eax */ 43181 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 43182 _cf = 0; 43183 _flag_k = FK_TEST; 43184 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B050BAF: mov byte ptr [ebp - 4], 2 */ 43185 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050BBA; /* 0x2B050BB3: jne 0x2b050bba */ 43186 L_2B050BB5: 43187 eax = MEM32(0x2B0B513C); /* 0x2B050BB5: mov eax, dword ptr [0x2b0b513c] */ 43188 L_2B050BBA: 43189 ecx = MEM32(ebp + (-0x18)); /* 0x2B050BBA: mov ecx, dword ptr [ebp - 0x18] */ 43190 PUSH32(esp, ecx); /* 0x2B050BBD: push ecx */ 43191 PUSH32(esp, eax); /* 0x2B050BBE: push eax */ 43192 PUSH32(esp, 0x3Fu); /* 0x2B050BBF: push 0x3f */ 43193 PUSH32(esp, 3); /* 0x2B050BC1: push 3 */ 43194 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B050BC3: call dword ptr [0x2b0b53cc] */ 43195 RECOMP_FLAGS_IN(); 43196 ecx = eax; /* 0x2B050BC9: mov ecx, eax */ 43197 RECOMP_ICALL(MEM32(0x2B0B53C4)); /* 0x2B050BCB: call dword ptr [0x2b0b53c4] */ 43198 RECOMP_FLAGS_IN(); 43199 ecx = MEM32(ebp + (-0x1C)); /* 0x2B050BD1: mov ecx, dword ptr [ebp - 0x1c] */ 43200 /* test ecx, ecx */ /* 0x2B050BD4: test ecx, ecx */ 43201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 43202 _cf = 0; 43203 _flag_k = FK_TEST; 43204 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BF4; /* 0x2B050BD6: je 0x2b050bf4 */ 43205 L_2B050BD8: 43206 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B050BD8: mov al, byte ptr [ecx - 1] */ 43207 /* test LO8(eax), LO8(eax) */ /* 0x2B050BDB: test al, al */ 43208 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 43209 _cf = 0; 43210 _flag_k = FK_NARROW(FK_TEST, 24); 43211 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050BEA; /* 0x2B050BDD: je 0x2b050bea */ 43212 L_2B050BDF: 43213 /* cmp LO8(eax), 0xFFu */ /* 0x2B050BDF: cmp al, 0xff */ 43214 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 43215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43216 _flag_k = FK_NARROW(FK_CMP, 24); 43217 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050BEA; /* 0x2B050BE1: je 0x2b050bea */ 43218 L_2B050BE3: 43219 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 43220 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050BE3: dec al */ 43221 _flag_k = FK_NARROW(FK_DEC, 24); 43222 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B050BE5: mov byte ptr [ecx - 1], al */ 43223 goto L_2B050BF4; /* 0x2B050BE8: jmp 0x2b050bf4 */ 43224 L_2B050BEA: 43225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 43226 ecx = ecx - 1; /* 0x2B050BEA: dec ecx */ 43227 _flag_k = FK_DEC; 43228 PUSH32(esp, ecx); /* 0x2B050BEB: push ecx */ 43229 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050BEC: call 0x2b0ab1ba */ /* not lifted */ 43230 RECOMP_FLAGS_IN(); 43231 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 43232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43233 esp = esp + 4; /* 0x2B050BF1: add esp, 4 */ 43234 _flag_k = FK_ADD; 43235 L_2B050BF4: 43236 ecx = MEM32(ebp + (-0x40)); /* 0x2B050BF4: mov ecx, dword ptr [ebp - 0x40] */ 43237 /* test ecx, ecx */ /* 0x2B050BF7: test ecx, ecx */ 43238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 43239 _cf = 0; 43240 _flag_k = FK_TEST; 43241 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B050BF9: je 0x2b050c26 */ 43242 L_2B050BFB: 43243 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B050BFB: mov al, byte ptr [ecx - 1] */ 43244 /* test LO8(eax), LO8(eax) */ /* 0x2B050BFE: test al, al */ 43245 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 43246 _cf = 0; 43247 _flag_k = FK_NARROW(FK_TEST, 24); 43248 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C00: je 0x2b050c1c */ 43249 L_2B050C02: 43250 /* cmp LO8(eax), 0xFFu */ /* 0x2B050C02: cmp al, 0xff */ 43251 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 43252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43253 _flag_k = FK_NARROW(FK_CMP, 24); 43254 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C04: je 0x2b050c1c */ 43255 L_2B050C06: 43256 edi = POP32_VAL(esp); /* 0x2B050C06: pop edi */ 43257 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 43258 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050C07: dec al */ 43259 _flag_k = FK_NARROW(FK_DEC, 24); 43260 esi = POP32_VAL(esp); /* 0x2B050C09: pop esi */ 43261 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B050C0A: mov byte ptr [ecx - 1], al */ 43262 ebx = POP32_VAL(esp); /* 0x2B050C0D: pop ebx */ 43263 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C0E: mov ecx, dword ptr [ebp - 0xc] */ 43264 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C11: mov dword ptr fs:[0], ecx */ 43265 esp = ebp; /* 0x2B050C18: mov esp, ebp */ 43266 ebp = POP32_VAL(esp); /* 0x2B050C1A: pop ebp */ 43267 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C1B: ret */ 43268 L_2B050C1C: 43269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 43270 ecx = ecx - 1; /* 0x2B050C1C: dec ecx */ 43271 _flag_k = FK_DEC; 43272 PUSH32(esp, ecx); /* 0x2B050C1D: push ecx */ 43273 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050C1E: call 0x2b0ab1ba */ /* not lifted */ 43274 RECOMP_FLAGS_IN(); 43275 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 43276 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43277 esp = esp + 4; /* 0x2B050C23: add esp, 4 */ 43278 _flag_k = FK_ADD; 43279 L_2B050C26: 43280 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C26: mov ecx, dword ptr [ebp - 0xc] */ 43281 edi = POP32_VAL(esp); /* 0x2B050C29: pop edi */ 43282 esi = POP32_VAL(esp); /* 0x2B050C2A: pop esi */ 43283 ebx = POP32_VAL(esp); /* 0x2B050C2B: pop ebx */ 43284 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C2C: mov dword ptr fs:[0], ecx */ 43285 esp = ebp; /* 0x2B050C33: mov esp, ebp */ 43286 ebp = POP32_VAL(esp); /* 0x2B050C35: pop ebp */ 43287 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C36: ret */ 43288 RECOMP_REGS_OUT(); 43289 } 43290 43291 void sub_2B050BF4(void) { 43292 int _fpu_cmp = 0; 43293 uint32_t _cf = 0; 43294 int _df = 1; 43295 uint32_t _flag_k = FK_NONE; 43296 uint32_t _flag_a = 0, _flag_b = 0; 43297 uint32_t _itail_tgt = 0; 43298 RECOMP_REGS_LOCALS 43299 RECOMP_ENTER(0x2B050BF4u); 43300 43301 L_2B050BF4: 43302 ecx = MEM32(ebp + (-0x40)); /* 0x2B050BF4: mov ecx, dword ptr [ebp - 0x40] */ 43303 /* test ecx, ecx */ /* 0x2B050BF7: test ecx, ecx */ 43304 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 43305 _cf = 0; 43306 _flag_k = FK_TEST; 43307 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C26; /* 0x2B050BF9: je 0x2b050c26 */ 43308 L_2B050BFB: 43309 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B050BFB: mov al, byte ptr [ecx - 1] */ 43310 /* test LO8(eax), LO8(eax) */ /* 0x2B050BFE: test al, al */ 43311 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 43312 _cf = 0; 43313 _flag_k = FK_NARROW(FK_TEST, 24); 43314 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C00: je 0x2b050c1c */ 43315 L_2B050C02: 43316 /* cmp LO8(eax), 0xFFu */ /* 0x2B050C02: cmp al, 0xff */ 43317 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 43318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43319 _flag_k = FK_NARROW(FK_CMP, 24); 43320 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C1C; /* 0x2B050C04: je 0x2b050c1c */ 43321 L_2B050C06: 43322 edi = POP32_VAL(esp); /* 0x2B050C06: pop edi */ 43323 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 43324 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050C07: dec al */ 43325 _flag_k = FK_NARROW(FK_DEC, 24); 43326 esi = POP32_VAL(esp); /* 0x2B050C09: pop esi */ 43327 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B050C0A: mov byte ptr [ecx - 1], al */ 43328 ebx = POP32_VAL(esp); /* 0x2B050C0D: pop ebx */ 43329 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C0E: mov ecx, dword ptr [ebp - 0xc] */ 43330 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C11: mov dword ptr fs:[0], ecx */ 43331 esp = ebp; /* 0x2B050C18: mov esp, ebp */ 43332 ebp = POP32_VAL(esp); /* 0x2B050C1A: pop ebp */ 43333 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C1B: ret */ 43334 L_2B050C1C: 43335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 43336 ecx = ecx - 1; /* 0x2B050C1C: dec ecx */ 43337 _flag_k = FK_DEC; 43338 PUSH32(esp, ecx); /* 0x2B050C1D: push ecx */ 43339 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050C1E: call 0x2b0ab1ba */ /* not lifted */ 43340 RECOMP_FLAGS_IN(); 43341 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 43342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43343 esp = esp + 4; /* 0x2B050C23: add esp, 4 */ 43344 _flag_k = FK_ADD; 43345 L_2B050C26: 43346 ecx = MEM32(ebp + (-0xC)); /* 0x2B050C26: mov ecx, dword ptr [ebp - 0xc] */ 43347 edi = POP32_VAL(esp); /* 0x2B050C29: pop edi */ 43348 esi = POP32_VAL(esp); /* 0x2B050C2A: pop esi */ 43349 ebx = POP32_VAL(esp); /* 0x2B050C2B: pop ebx */ 43350 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050C2C: mov dword ptr fs:[0], ecx */ 43351 esp = ebp; /* 0x2B050C33: mov esp, ebp */ 43352 ebp = POP32_VAL(esp); /* 0x2B050C35: pop ebp */ 43353 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C36: ret */ 43354 RECOMP_REGS_OUT(); 43355 } 43356 43357 void sub_2B050C40(void) { 43358 int _fpu_cmp = 0; 43359 uint32_t _cf = 0; 43360 int _df = 1; 43361 uint32_t _flag_k = FK_NONE; 43362 uint32_t _flag_a = 0, _flag_b = 0; 43363 uint32_t _itail_tgt = 0; 43364 RECOMP_REGS_LOCALS 43365 RECOMP_ENTER(0x2B050C40u); 43366 43367 L_2B050C40: 43368 PUSH32(esp, esi); /* 0x2B050C40: push esi */ 43369 esi = ecx; /* 0x2B050C41: mov esi, ecx */ 43370 ecx = MEM32(esi + 0x44); /* 0x2B050C43: mov ecx, dword ptr [esi + 0x44] */ 43371 eax = MEM32(ecx + 0x54); /* 0x2B050C46: mov eax, dword ptr [ecx + 0x54] */ 43372 /* cmp eax, 1 */ /* 0x2B050C49: cmp eax, 1 */ 43373 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 43374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43375 _flag_k = FK_CMP; 43376 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C5D; /* 0x2B050C4C: je 0x2b050c5d */ 43377 L_2B050C4E: 43378 /* cmp eax, 3 */ /* 0x2B050C4E: cmp eax, 3 */ 43379 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 43380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43381 _flag_k = FK_CMP; 43382 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C5D; /* 0x2B050C51: je 0x2b050c5d */ 43383 L_2B050C53: 43384 /* cmp eax, 2 */ /* 0x2B050C53: cmp eax, 2 */ 43385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 43386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43387 _flag_k = FK_CMP; 43388 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C6E; /* 0x2B050C56: je 0x2b050c6e */ 43389 L_2B050C58: 43390 /* cmp eax, 4 */ /* 0x2B050C58: cmp eax, 4 */ 43391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 43392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43393 _flag_k = FK_CMP; 43394 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050C6E; /* 0x2B050C5B: je 0x2b050c6e */ 43395 L_2B050C5D: 43396 PUSH32(esp, 2); /* 0x2B050C5D: push 2 */ 43397 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B050C5F: call dword ptr [0x2b0b5ab4] */ 43398 RECOMP_FLAGS_IN(); 43399 PUSH32(esp, esi); /* 0x2B050C65: push esi */ 43400 RECOMP_ICALL(0x2B050E70u); /* 0x2B050C66: call 0x2b050e70 */ /* not lifted */ 43401 RECOMP_FLAGS_IN(); 43402 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 43403 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43404 esp = esp + 4; /* 0x2B050C6B: add esp, 4 */ 43405 _flag_k = FK_ADD; 43406 L_2B050C6E: 43407 esi = POP32_VAL(esp); /* 0x2B050C6E: pop esi */ 43408 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C6F: ret */ 43409 RECOMP_REGS_OUT(); 43410 } 43411 43412 void sub_2B050C70(void) { 43413 int _fpu_cmp = 0; 43414 uint32_t _cf = 0; 43415 int _df = 1; 43416 uint32_t _flag_k = FK_NONE; 43417 uint32_t _flag_a = 0, _flag_b = 0; 43418 uint32_t _itail_tgt = 0; 43419 RECOMP_REGS_LOCALS 43420 RECOMP_ENTER(0x2B050C70u); 43421 43422 L_2B050C70: 43423 PUSH32(esp, ebp); /* 0x2B050C70: push ebp */ 43424 ebp = esp; /* 0x2B050C71: mov ebp, esp */ 43425 PUSH32(esp, esi); /* 0x2B050C73: push esi */ 43426 esi = MEM32(ebp + 0xC); /* 0x2B050C74: mov esi, dword ptr [ebp + 0xc] */ 43427 eax = MEM32(esi + 0x194); /* 0x2B050C77: mov eax, dword ptr [esi + 0x194] */ 43428 ecx = MEM32(eax); /* 0x2B050C7D: mov ecx, dword ptr [eax] */ 43429 RECOMP_ICALL(MEM32(0x2B0B5840)); /* 0x2B050C7F: call dword ptr [0x2b0b5840] */ 43430 RECOMP_FLAGS_IN(); 43431 ecx = esi; /* 0x2B050C85: mov ecx, esi */ 43432 MEM32(esi + 0x48) = eax; /* 0x2B050C87: mov dword ptr [esi + 0x48], eax */ 43433 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050C8A: call 0x2b03a2b0 */ /* not lifted */ 43434 RECOMP_FLAGS_IN(); 43435 esi = POP32_VAL(esp); /* 0x2B050C8F: pop esi */ 43436 ebp = POP32_VAL(esp); /* 0x2B050C90: pop ebp */ 43437 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050C91: ret */ 43438 RECOMP_REGS_OUT(); 43439 } 43440 43441 void sub_2B050CA0(void) { 43442 int _fpu_cmp = 0; 43443 uint32_t _cf = 0; 43444 int _df = 1; 43445 uint32_t _flag_k = FK_NONE; 43446 uint32_t _flag_a = 0, _flag_b = 0; 43447 uint32_t _itail_tgt = 0; 43448 RECOMP_REGS_LOCALS 43449 RECOMP_ENTER(0x2B050CA0u); 43450 43451 L_2B050CA0: 43452 PUSH32(esp, ebp); /* 0x2B050CA0: push ebp */ 43453 ebp = esp; /* 0x2B050CA1: mov ebp, esp */ 43454 PUSH32(esp, esi); /* 0x2B050CA3: push esi */ 43455 esi = MEM32(ebp + 0xC); /* 0x2B050CA4: mov esi, dword ptr [ebp + 0xc] */ 43456 eax = MEM32(esi + 0x198); /* 0x2B050CA7: mov eax, dword ptr [esi + 0x198] */ 43457 ecx = MEM32(eax); /* 0x2B050CAD: mov ecx, dword ptr [eax] */ 43458 RECOMP_ICALL(MEM32(0x2B0B5840)); /* 0x2B050CAF: call dword ptr [0x2b0b5840] */ 43459 RECOMP_FLAGS_IN(); 43460 ecx = esi; /* 0x2B050CB5: mov ecx, esi */ 43461 MEM32(esi + 0x180) = eax; /* 0x2B050CB7: mov dword ptr [esi + 0x180], eax */ 43462 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050CBD: call 0x2b03a2b0 */ /* not lifted */ 43463 RECOMP_FLAGS_IN(); 43464 esi = POP32_VAL(esp); /* 0x2B050CC2: pop esi */ 43465 ebp = POP32_VAL(esp); /* 0x2B050CC3: pop ebp */ 43466 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050CC4: ret */ 43467 RECOMP_REGS_OUT(); 43468 } 43469 43470 void sub_2B050CD0(void) { 43471 int _fpu_cmp = 0; 43472 uint32_t _cf = 0; 43473 int _df = 1; 43474 uint32_t _flag_k = FK_NONE; 43475 uint32_t _flag_a = 0, _flag_b = 0; 43476 uint32_t _itail_tgt = 0; 43477 RECOMP_REGS_LOCALS 43478 RECOMP_ENTER(0x2B050CD0u); 43479 43480 L_2B050CD0: 43481 PUSH32(esp, ebp); /* 0x2B050CD0: push ebp */ 43482 ebp = esp; /* 0x2B050CD1: mov ebp, esp */ 43483 PUSH32(esp, ecx); /* 0x2B050CD3: push ecx */ 43484 eax = MEM32(ebp + 0x8); /* 0x2B050CD4: mov eax, dword ptr [ebp + 8] */ 43485 PUSH32(esp, ebx); /* 0x2B050CD7: push ebx */ 43486 ebx = MEM32(eax + 0x4); /* 0x2B050CD8: mov ebx, dword ptr [eax + 4] */ 43487 PUSH32(esp, esi); /* 0x2B050CDB: push esi */ 43488 PUSH32(esp, edi); /* 0x2B050CDC: push edi */ 43489 edi = MEM32(eax); /* 0x2B050CDD: mov edi, dword ptr [eax] */ 43490 esi = MEM32(edi + 0x180); /* 0x2B050CDF: mov esi, dword ptr [edi + 0x180] */ 43491 PUSH32(esp, 0); /* 0x2B050CE5: push 0 */ 43492 ecx = edi; /* 0x2B050CE7: mov ecx, edi */ 43493 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 43494 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43495 esi = esi + ebx; /* 0x2B050CE9: add esi, ebx */ 43496 _flag_k = FK_ADD; 43497 RECOMP_ICALL(0x2B0511D0u); /* 0x2B050CEB: call 0x2b0511d0 */ /* not lifted */ 43498 RECOMP_FLAGS_IN(); 43499 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 43500 ebx = 0; /* 0x2B050CF0: xor ebx, ebx */ 43501 _cf = 0; 43502 _flag_k = FK_TEST; 43503 /* test esi, esi */ /* 0x2B050CF2: test esi, esi */ 43504 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 43505 _cf = 0; 43506 _flag_k = FK_TEST; 43507 MEM32(ebp + (-0x4)) = eax; /* 0x2B050CF4: mov dword ptr [ebp - 4], eax */ 43508 if (TEST_LE(_flag_a, _flag_b)) goto L_2B050D19; /* 0x2B050CF7: jle 0x2b050d19 */ 43509 L_2B050CF9: 43510 ecx = MEM32(edi + 0x104); /* 0x2B050CF9: mov ecx, dword ptr [edi + 0x104] */ 43511 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2B050CFF: cmp eax, dword ptr [ecx + 8] */ 43512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 43513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43514 _flag_k = FK_CMP; 43515 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050D19; /* 0x2B050D02: je 0x2b050d19 */ 43516 L_2B050D04: 43517 PUSH32(esp, 0); /* 0x2B050D04: push 0 */ 43518 edx = ebp + (-0x4); /* 0x2B050D06: lea edx, [ebp - 4] */ 43519 PUSH32(esp, edx); /* 0x2B050D09: push edx */ 43520 ecx = edi; /* 0x2B050D0A: mov ecx, edi */ 43521 RECOMP_ICALL(0x2B051220u); /* 0x2B050D0C: call 0x2b051220 */ /* not lifted */ 43522 RECOMP_FLAGS_IN(); 43523 eax = MEM32(ebp + (-0x4)); /* 0x2B050D11: mov eax, dword ptr [ebp - 4] */ 43524 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 43525 ebx = ebx + 1; /* 0x2B050D14: inc ebx */ 43526 _flag_k = FK_INC; 43527 /* cmp ebx, esi */ /* 0x2B050D15: cmp ebx, esi */ 43528 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 43529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43530 _flag_k = FK_CMP; 43531 RECOMP_BACKEDGE(); 43532 if (CMP_L(_flag_a, _flag_b)) goto L_2B050CF9; /* 0x2B050D17: jl 0x2b050cf9 */ 43533 L_2B050D19: 43534 ecx = MEM32(edi + 0x104); /* 0x2B050D19: mov ecx, dword ptr [edi + 0x104] */ 43535 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2B050D1F: cmp eax, dword ptr [ecx + 8] */ 43536 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 43537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43538 _flag_k = FK_CMP; 43539 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050DC9; /* 0x2B050D22: je 0x2b050dc9 */ 43540 L_2B050D28: 43541 ecx = MEM32(eax + 0x1C); /* 0x2B050D28: mov ecx, dword ptr [eax + 0x1c] */ 43542 esi = 0x01000000u; /* 0x2B050D2B: mov esi, 0x1000000 */ 43543 /* test esi, ecx */ /* 0x2B050D30: test esi, ecx */ 43544 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 43545 _cf = 0; 43546 _flag_k = FK_TEST; 43547 ecx = MEM32(ebp + 0x8); /* 0x2B050D32: mov ecx, dword ptr [ebp + 8] */ 43548 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B050D5A; /* 0x2B050D35: jne 0x2b050d5a */ 43549 L_2B050D37: 43550 edx = MEM32(ecx + 0xC); /* 0x2B050D37: mov edx, dword ptr [ecx + 0xc] */ 43551 edx = MEM32(edx + 0x54); /* 0x2B050D3A: mov edx, dword ptr [edx + 0x54] */ 43552 /* cmp edx, 1 */ /* 0x2B050D3D: cmp edx, 1 */ 43553 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 43554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43555 _flag_k = FK_CMP; 43556 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050D51; /* 0x2B050D40: je 0x2b050d51 */ 43557 L_2B050D42: 43558 /* cmp edx, 3 */ /* 0x2B050D42: cmp edx, 3 */ 43559 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3); 43560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43561 _flag_k = FK_CMP; 43562 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050D51; /* 0x2B050D45: je 0x2b050d51 */ 43563 L_2B050D47: 43564 /* cmp edx, 2 */ /* 0x2B050D47: cmp edx, 2 */ 43565 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 43566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43567 _flag_k = FK_CMP; 43568 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050D5A; /* 0x2B050D4A: je 0x2b050d5a */ 43569 L_2B050D4C: 43570 /* cmp edx, 4 */ /* 0x2B050D4C: cmp edx, 4 */ 43571 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 43572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43573 _flag_k = FK_CMP; 43574 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050D5A; /* 0x2B050D4F: je 0x2b050d5a */ 43575 L_2B050D51: 43576 _flag_a = (uint32_t)(MEM32(edi + 0x184)); _flag_b = (uint32_t)(1); 43577 MEM32(edi + 0x184) = MEM32(edi + 0x184) - 1; /* 0x2B050D51: dec dword ptr [edi + 0x184] */ 43578 _flag_k = FK_DEC; 43579 eax = MEM32(ebp + (-0x4)); /* 0x2B050D57: mov eax, dword ptr [ebp - 4] */ 43580 L_2B050D5A: 43581 /* test MEM32(eax + 0x1C), esi */ /* 0x2B050D5A: test dword ptr [eax + 0x1c], esi */ 43582 _flag_a = (uint32_t)(MEM32(eax + 0x1C)); _flag_b = (uint32_t)(esi); 43583 _cf = 0; 43584 _flag_k = FK_TEST; 43585 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050D82; /* 0x2B050D5D: je 0x2b050d82 */ 43586 L_2B050D5F: 43587 edx = MEM32(ecx + 0xC); /* 0x2B050D5F: mov edx, dword ptr [ecx + 0xc] */ 43588 edx = MEM32(edx + 0x54); /* 0x2B050D62: mov edx, dword ptr [edx + 0x54] */ 43589 /* cmp edx, 1 */ /* 0x2B050D65: cmp edx, 1 */ 43590 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 43591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43592 _flag_k = FK_CMP; 43593 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050D82; /* 0x2B050D68: je 0x2b050d82 */ 43594 L_2B050D6A: 43595 /* cmp edx, 3 */ /* 0x2B050D6A: cmp edx, 3 */ 43596 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3); 43597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43598 _flag_k = FK_CMP; 43599 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050D82; /* 0x2B050D6D: je 0x2b050d82 */ 43600 L_2B050D6F: 43601 /* cmp edx, 2 */ /* 0x2B050D6F: cmp edx, 2 */ 43602 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 43603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43604 _flag_k = FK_CMP; 43605 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050D79; /* 0x2B050D72: je 0x2b050d79 */ 43606 L_2B050D74: 43607 /* cmp edx, 4 */ /* 0x2B050D74: cmp edx, 4 */ 43608 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 43609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43610 _flag_k = FK_CMP; 43611 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050D82; /* 0x2B050D77: jne 0x2b050d82 */ 43612 L_2B050D79: 43613 _flag_a = (uint32_t)(MEM32(edi + 0x184)); _flag_b = (uint32_t)(1); 43614 MEM32(edi + 0x184) = MEM32(edi + 0x184) + 1; /* 0x2B050D79: inc dword ptr [edi + 0x184] */ 43615 _flag_k = FK_INC; 43616 eax = MEM32(ebp + (-0x4)); /* 0x2B050D7F: mov eax, dword ptr [ebp - 4] */ 43617 L_2B050D82: 43618 edx = MEM32(ecx + 0xC); /* 0x2B050D82: mov edx, dword ptr [ecx + 0xc] */ 43619 edx = MEM32(edx + 0x54); /* 0x2B050D85: mov edx, dword ptr [edx + 0x54] */ 43620 /* cmp edx, 1 */ /* 0x2B050D88: cmp edx, 1 */ 43621 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 43622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43623 _flag_k = FK_CMP; 43624 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050DA2; /* 0x2B050D8B: je 0x2b050da2 */ 43625 L_2B050D8D: 43626 /* cmp edx, 3 */ /* 0x2B050D8D: cmp edx, 3 */ 43627 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3); 43628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43629 _flag_k = FK_CMP; 43630 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050DA2; /* 0x2B050D90: je 0x2b050da2 */ 43631 L_2B050D92: 43632 /* cmp edx, 2 */ /* 0x2B050D92: cmp edx, 2 */ 43633 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 43634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43635 _flag_k = FK_CMP; 43636 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050D9C; /* 0x2B050D95: je 0x2b050d9c */ 43637 L_2B050D97: 43638 /* cmp edx, 4 */ /* 0x2B050D97: cmp edx, 4 */ 43639 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 43640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43641 _flag_k = FK_CMP; 43642 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050DA2; /* 0x2B050D9A: jne 0x2b050da2 */ 43643 L_2B050D9C: 43644 MEM8(ebp + 0x8) = (uint8_t)(1); /* 0x2B050D9C: mov byte ptr [ebp + 8], 1 */ 43645 goto L_2B050DA6; /* 0x2B050DA0: jmp 0x2b050da6 */ 43646 L_2B050DA2: 43647 MEM8(ebp + 0x8) = (uint8_t)(0); /* 0x2B050DA2: mov byte ptr [ebp + 8], 0 */ 43648 L_2B050DA6: 43649 edx = MEM32(ebp + 0x8); /* 0x2B050DA6: mov edx, dword ptr [ebp + 8] */ 43650 PUSH32(esp, edx); /* 0x2B050DA9: push edx */ 43651 ecx = eax; /* 0x2B050DAA: mov ecx, eax */ 43652 RECOMP_ICALL(0x2B051500u); /* 0x2B050DAC: call 0x2b051500 */ /* not lifted */ 43653 RECOMP_FLAGS_IN(); 43654 SET_LO8(eax, MEM8(edi + 0x188)); /* 0x2B050DB1: mov al, byte ptr [edi + 0x188] */ 43655 /* test LO8(eax), LO8(eax) */ /* 0x2B050DB7: test al, al */ 43656 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 43657 _cf = 0; 43658 _flag_k = FK_NARROW(FK_TEST, 24); 43659 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050DC9; /* 0x2B050DB9: je 0x2b050dc9 */ 43660 L_2B050DBB: 43661 ecx = edi; /* 0x2B050DBB: mov ecx, edi */ 43662 RECOMP_ICALL(0x2B0510B0u); /* 0x2B050DBD: call 0x2b0510b0 */ /* not lifted */ 43663 RECOMP_FLAGS_IN(); 43664 ecx = edi; /* 0x2B050DC2: mov ecx, edi */ 43665 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B050DC4: call 0x2b03a2b0 */ /* not lifted */ 43666 RECOMP_FLAGS_IN(); 43667 L_2B050DC9: 43668 edi = POP32_VAL(esp); /* 0x2B050DC9: pop edi */ 43669 esi = POP32_VAL(esp); /* 0x2B050DCA: pop esi */ 43670 ebx = POP32_VAL(esp); /* 0x2B050DCB: pop ebx */ 43671 esp = ebp; /* 0x2B050DCC: mov esp, ebp */ 43672 ebp = POP32_VAL(esp); /* 0x2B050DCE: pop ebp */ 43673 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050DCF: ret */ 43674 RECOMP_REGS_OUT(); 43675 } 43676 43677 void sub_2B050DD0(void) { 43678 int _fpu_cmp = 0; 43679 uint32_t _cf = 0; 43680 int _df = 1; 43681 uint32_t _flag_k = FK_NONE; 43682 uint32_t _flag_a = 0, _flag_b = 0; 43683 uint32_t _itail_tgt = 0; 43684 RECOMP_REGS_LOCALS 43685 RECOMP_ENTER(0x2B050DD0u); 43686 43687 L_2B050DD0: 43688 PUSH32(esp, ebp); /* 0x2B050DD0: push ebp */ 43689 ebp = esp; /* 0x2B050DD1: mov ebp, esp */ 43690 PUSH32(esp, ecx); /* 0x2B050DD3: push ecx */ 43691 eax = MEM32(ebp + 0x8); /* 0x2B050DD4: mov eax, dword ptr [ebp + 8] */ 43692 PUSH32(esp, ebx); /* 0x2B050DD7: push ebx */ 43693 ebx = MEM32(eax + 0x4); /* 0x2B050DD8: mov ebx, dword ptr [eax + 4] */ 43694 PUSH32(esp, esi); /* 0x2B050DDB: push esi */ 43695 esi = MEM32(eax); /* 0x2B050DDC: mov esi, dword ptr [eax] */ 43696 PUSH32(esp, edi); /* 0x2B050DDE: push edi */ 43697 edi = MEM32(esi + 0x180); /* 0x2B050DDF: mov edi, dword ptr [esi + 0x180] */ 43698 PUSH32(esp, 0); /* 0x2B050DE5: push 0 */ 43699 ecx = esi; /* 0x2B050DE7: mov ecx, esi */ 43700 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 43701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43702 edi = edi + ebx; /* 0x2B050DE9: add edi, ebx */ 43703 _flag_k = FK_ADD; 43704 RECOMP_ICALL(0x2B0511D0u); /* 0x2B050DEB: call 0x2b0511d0 */ /* not lifted */ 43705 RECOMP_FLAGS_IN(); 43706 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 43707 ebx = 0; /* 0x2B050DF0: xor ebx, ebx */ 43708 _cf = 0; 43709 _flag_k = FK_TEST; 43710 /* test edi, edi */ /* 0x2B050DF2: test edi, edi */ 43711 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 43712 _cf = 0; 43713 _flag_k = FK_TEST; 43714 MEM32(ebp + (-0x4)) = eax; /* 0x2B050DF4: mov dword ptr [ebp - 4], eax */ 43715 if (TEST_LE(_flag_a, _flag_b)) goto L_2B050E19; /* 0x2B050DF7: jle 0x2b050e19 */ 43716 L_2B050DF9: 43717 ecx = MEM32(esi + 0x104); /* 0x2B050DF9: mov ecx, dword ptr [esi + 0x104] */ 43718 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2B050DFF: cmp eax, dword ptr [ecx + 8] */ 43719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 43720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43721 _flag_k = FK_CMP; 43722 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050E19; /* 0x2B050E02: je 0x2b050e19 */ 43723 L_2B050E04: 43724 PUSH32(esp, 0); /* 0x2B050E04: push 0 */ 43725 edx = ebp + (-0x4); /* 0x2B050E06: lea edx, [ebp - 4] */ 43726 PUSH32(esp, edx); /* 0x2B050E09: push edx */ 43727 ecx = esi; /* 0x2B050E0A: mov ecx, esi */ 43728 RECOMP_ICALL(0x2B051220u); /* 0x2B050E0C: call 0x2b051220 */ /* not lifted */ 43729 RECOMP_FLAGS_IN(); 43730 eax = MEM32(ebp + (-0x4)); /* 0x2B050E11: mov eax, dword ptr [ebp - 4] */ 43731 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 43732 ebx = ebx + 1; /* 0x2B050E14: inc ebx */ 43733 _flag_k = FK_INC; 43734 /* cmp ebx, edi */ /* 0x2B050E15: cmp ebx, edi */ 43735 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 43736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43737 _flag_k = FK_CMP; 43738 RECOMP_BACKEDGE(); 43739 if (CMP_L(_flag_a, _flag_b)) goto L_2B050DF9; /* 0x2B050E17: jl 0x2b050df9 */ 43740 L_2B050E19: 43741 ecx = MEM32(esi + 0x104); /* 0x2B050E19: mov ecx, dword ptr [esi + 0x104] */ 43742 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2B050E1F: cmp eax, dword ptr [ecx + 8] */ 43743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 43744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43745 _flag_k = FK_CMP; 43746 edi = POP32_VAL(esp); /* 0x2B050E22: pop edi */ 43747 esi = POP32_VAL(esp); /* 0x2B050E23: pop esi */ 43748 ebx = POP32_VAL(esp); /* 0x2B050E24: pop ebx */ 43749 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050E66; /* 0x2B050E25: je 0x2b050e66 */ 43750 L_2B050E27: 43751 edx = MEM32(ebp + 0x8); /* 0x2B050E27: mov edx, dword ptr [ebp + 8] */ 43752 edx = MEM32(edx + 0x10); /* 0x2B050E2A: mov edx, dword ptr [edx + 0x10] */ 43753 edx = MEM32(edx + 0x54); /* 0x2B050E2D: mov edx, dword ptr [edx + 0x54] */ 43754 /* cmp edx, 1 */ /* 0x2B050E30: cmp edx, 1 */ 43755 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 43756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43757 _flag_k = FK_CMP; 43758 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050E57; /* 0x2B050E33: je 0x2b050e57 */ 43759 L_2B050E35: 43760 /* cmp edx, 3 */ /* 0x2B050E35: cmp edx, 3 */ 43761 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(3); 43762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43763 _flag_k = FK_CMP; 43764 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050E57; /* 0x2B050E38: je 0x2b050e57 */ 43765 L_2B050E3A: 43766 /* cmp edx, 2 */ /* 0x2B050E3A: cmp edx, 2 */ 43767 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 43768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43769 _flag_k = FK_CMP; 43770 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050E44; /* 0x2B050E3D: je 0x2b050e44 */ 43771 L_2B050E3F: 43772 /* cmp edx, 4 */ /* 0x2B050E3F: cmp edx, 4 */ 43773 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 43774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43775 _flag_k = FK_CMP; 43776 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050E57; /* 0x2B050E42: jne 0x2b050e57 */ 43777 L_2B050E44: 43778 MEM8(ebp + 0x8) = (uint8_t)(1); /* 0x2B050E44: mov byte ptr [ebp + 8], 1 */ 43779 ecx = MEM32(ebp + 0x8); /* 0x2B050E48: mov ecx, dword ptr [ebp + 8] */ 43780 PUSH32(esp, ecx); /* 0x2B050E4B: push ecx */ 43781 ecx = eax; /* 0x2B050E4C: mov ecx, eax */ 43782 RECOMP_ICALL(0x2B051570u); /* 0x2B050E4E: call 0x2b051570 */ /* not lifted */ 43783 RECOMP_FLAGS_IN(); 43784 esp = ebp; /* 0x2B050E53: mov esp, ebp */ 43785 ebp = POP32_VAL(esp); /* 0x2B050E55: pop ebp */ 43786 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050E56: ret */ 43787 L_2B050E57: 43788 MEM8(ebp + 0x8) = (uint8_t)(0); /* 0x2B050E57: mov byte ptr [ebp + 8], 0 */ 43789 ecx = MEM32(ebp + 0x8); /* 0x2B050E5B: mov ecx, dword ptr [ebp + 8] */ 43790 PUSH32(esp, ecx); /* 0x2B050E5E: push ecx */ 43791 ecx = eax; /* 0x2B050E5F: mov ecx, eax */ 43792 RECOMP_ICALL(0x2B051570u); /* 0x2B050E61: call 0x2b051570 */ /* not lifted */ 43793 RECOMP_FLAGS_IN(); 43794 L_2B050E66: 43795 esp = ebp; /* 0x2B050E66: mov esp, ebp */ 43796 ebp = POP32_VAL(esp); /* 0x2B050E68: pop ebp */ 43797 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050E69: ret */ 43798 RECOMP_REGS_OUT(); 43799 } 43800 43801 void sub_2B050E70(void) { 43802 int _fpu_cmp = 0; 43803 uint32_t _cf = 0; 43804 int _df = 1; 43805 uint32_t _flag_k = FK_NONE; 43806 uint32_t _flag_a = 0, _flag_b = 0; 43807 uint32_t _itail_tgt = 0; 43808 RECOMP_REGS_LOCALS 43809 RECOMP_ENTER(0x2B050E70u); 43810 43811 L_2B050E70: 43812 PUSH32(esp, ebp); /* 0x2B050E70: push ebp */ 43813 ebp = esp; /* 0x2B050E71: mov ebp, esp */ 43814 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B050E73: push -1 */ 43815 PUSH32(esp, 0x2B0AF942u); /* 0x2B050E75: push 0x2b0af942 */ 43816 eax = MEM32(FS_BASE + (0)); /* 0x2B050E7A: mov eax, dword ptr fs:[0] */ 43817 PUSH32(esp, eax); /* 0x2B050E80: push eax */ 43818 MEM32(FS_BASE + (0)) = esp; /* 0x2B050E81: mov dword ptr fs:[0], esp */ 43819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 43820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43821 esp = esp - 0x28u; /* 0x2B050E88: sub esp, 0x28 */ 43822 _flag_k = FK_CMP; 43823 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B050E8B: call dword ptr [0x2b0b5b64] */ 43824 RECOMP_FLAGS_IN(); 43825 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xD4u); 43826 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43827 eax = eax + 0xD4u; /* 0x2B050E91: add eax, 0xd4 */ 43828 _flag_k = FK_ADD; 43829 ecx = ebp + (-0x14); /* 0x2B050E96: lea ecx, [ebp - 0x14] */ 43830 /* cmp ecx, eax */ /* 0x2B050E99: cmp ecx, eax */ 43831 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 43832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43833 _flag_k = FK_CMP; 43834 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050EA4; /* 0x2B050E9B: je 0x2b050ea4 */ 43835 L_2B050E9D: 43836 ecx = MEM32(eax); /* 0x2B050E9D: mov ecx, dword ptr [eax] */ 43837 eax = MEM32(eax + 0x4); /* 0x2B050E9F: mov eax, dword ptr [eax + 4] */ 43838 goto L_2B050EAA; /* 0x2B050EA2: jmp 0x2b050eaa */ 43839 L_2B050EA4: 43840 eax = MEM32(ebp + (-0x10)); /* 0x2B050EA4: mov eax, dword ptr [ebp - 0x10] */ 43841 ecx = MEM32(ebp + (-0x14)); /* 0x2B050EA7: mov ecx, dword ptr [ebp - 0x14] */ 43842 L_2B050EAA: 43843 PUSH32(esp, ebx); /* 0x2B050EAA: push ebx */ 43844 PUSH32(esp, esi); /* 0x2B050EAB: push esi */ 43845 edx = ebp + (-0x14); /* 0x2B050EAC: lea edx, [ebp - 0x14] */ 43846 PUSH32(esp, edi); /* 0x2B050EAF: push edi */ 43847 PUSH32(esp, edx); /* 0x2B050EB0: push edx */ 43848 MEM32(ebp + (-0x14)) = ecx; /* 0x2B050EB1: mov dword ptr [ebp - 0x14], ecx */ 43849 MEM32(ebp + (-0x10)) = eax; /* 0x2B050EB4: mov dword ptr [ebp - 0x10], eax */ 43850 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B050EB7: call dword ptr [0x2b0b5d6c] */ 43851 RECOMP_FLAGS_IN(); 43852 ecx = eax; /* 0x2B050EBD: mov ecx, eax */ 43853 RECOMP_ICALL(MEM32(0x2B0B5D50)); /* 0x2B050EBF: call dword ptr [0x2b0b5d50] */ 43854 RECOMP_FLAGS_IN(); 43855 ebx = MEM32(ebp + 0x8); /* 0x2B050EC5: mov ebx, dword ptr [ebp + 8] */ 43856 esi = eax; /* 0x2B050EC8: mov esi, eax */ 43857 eax = MEM32(ebx + 0x44); /* 0x2B050ECA: mov eax, dword ptr [ebx + 0x44] */ 43858 eax = MEM32(eax + 0x54); /* 0x2B050ECD: mov eax, dword ptr [eax + 0x54] */ 43859 /* cmp eax, 1 */ /* 0x2B050ED0: cmp eax, 1 */ 43860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 43861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43862 _flag_k = FK_CMP; 43863 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050F9F; /* 0x2B050ED3: je 0x2b050f9f */ 43864 L_2B050ED9: 43865 /* cmp eax, 3 */ /* 0x2B050ED9: cmp eax, 3 */ 43866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 43867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43868 _flag_k = FK_CMP; 43869 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050F9F; /* 0x2B050EDC: je 0x2b050f9f */ 43870 L_2B050EE2: 43871 /* cmp eax, 2 */ /* 0x2B050EE2: cmp eax, 2 */ 43872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 43873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43874 _flag_k = FK_CMP; 43875 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050EF0; /* 0x2B050EE5: je 0x2b050ef0 */ 43876 L_2B050EE7: 43877 /* cmp eax, 4 */ /* 0x2B050EE7: cmp eax, 4 */ 43878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 43879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43880 _flag_k = FK_CMP; 43881 if (CMP_NE(_flag_a, _flag_b)) goto L_2B050F9F; /* 0x2B050EEA: jne 0x2b050f9f */ 43882 L_2B050EF0: 43883 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2B050EF0: mov al, byte ptr [ebp + 0xb] */ 43884 PUSH32(esp, 0); /* 0x2B050EF3: push 0 */ 43885 ecx = ebp + (-0x34); /* 0x2B050EF5: lea ecx, [ebp - 0x34] */ 43886 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x2B050EF8: mov byte ptr [ebp - 0x34], al */ 43887 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B050EFB: call dword ptr [0x2b0b514c] */ 43888 RECOMP_FLAGS_IN(); 43889 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 43890 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050F01: or ecx, 0xffffffff */ 43891 _cf = 0; 43892 _flag_k = FK_TEST; 43893 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 43894 eax = 0; /* 0x2B050F04: xor eax, eax */ 43895 _cf = 0; 43896 _flag_k = FK_TEST; 43897 edi = esi; /* 0x2B050F06: mov edi, esi */ 43898 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; } /* 0x2B050F08: repne scasb al, byte ptr es:[edi] */ 43899 ecx = ~ecx; /* 0x2B050F0A: not ecx */ 43900 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 43901 ecx = ecx - 1; /* 0x2B050F0C: dec ecx */ 43902 _flag_k = FK_DEC; 43903 ebx = ecx; /* 0x2B050F0D: mov ebx, ecx */ 43904 PUSH32(esp, 1); /* 0x2B050F0F: push 1 */ 43905 PUSH32(esp, ebx); /* 0x2B050F11: push ebx */ 43906 ecx = ebp + (-0x34); /* 0x2B050F12: lea ecx, [ebp - 0x34] */ 43907 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B050F15: call dword ptr [0x2b0b5154] */ 43908 RECOMP_FLAGS_IN(); 43909 /* test LO8(eax), LO8(eax) */ /* 0x2B050F1B: test al, al */ 43910 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 43911 _cf = 0; 43912 _flag_k = FK_NARROW(FK_TEST, 24); 43913 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050F3C; /* 0x2B050F1D: je 0x2b050f3c */ 43914 L_2B050F1F: 43915 edi = MEM32(ebp + (-0x30)); /* 0x2B050F1F: mov edi, dword ptr [ebp - 0x30] */ 43916 ecx = ebx; /* 0x2B050F22: mov ecx, ebx */ 43917 edx = ecx; /* 0x2B050F24: mov edx, ecx */ 43918 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B050F26: shr ecx, 2 */ 43919 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 43920 ecx = ecx >> 2u; /* 0x2B050F26: shr ecx, 2 */ 43921 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B050F29: 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; } 43922 ecx = edx; /* 0x2B050F2B: mov ecx, edx */ 43923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 43924 ecx = ecx & 3; /* 0x2B050F2D: and ecx, 3 */ 43925 _cf = 0; 43926 _flag_k = FK_TEST; 43927 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B050F30: 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; } 43928 PUSH32(esp, ebx); /* 0x2B050F32: push ebx */ 43929 ecx = ebp + (-0x34); /* 0x2B050F33: lea ecx, [ebp - 0x34] */ 43930 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B050F36: call dword ptr [0x2b0b5150] */ 43931 RECOMP_FLAGS_IN(); 43932 L_2B050F3C: 43933 eax = MEM32(ebp + (-0x10)); /* 0x2B050F3C: mov eax, dword ptr [ebp - 0x10] */ 43934 ecx = MEM32(ebp + 0x8); /* 0x2B050F3F: mov ecx, dword ptr [ebp + 8] */ 43935 PUSH32(esp, 0); /* 0x2B050F42: push 0 */ 43936 PUSH32(esp, eax); /* 0x2B050F44: push eax */ 43937 PUSH32(esp, 0); /* 0x2B050F45: push 0 */ 43938 PUSH32(esp, eax); /* 0x2B050F47: push eax */ 43939 eax = ebp + (-0x34); /* 0x2B050F48: lea eax, [ebp - 0x34] */ 43940 PUSH32(esp, eax); /* 0x2B050F4B: push eax */ 43941 MEM32(ebp + (-0x4)) = 0; /* 0x2B050F4C: mov dword ptr [ebp - 4], 0 */ 43942 RECOMP_ICALL(0x2B04FCE0u); /* 0x2B050F53: call 0x2b04fce0 */ /* not lifted */ 43943 RECOMP_FLAGS_IN(); 43944 eax = MEM32(ebp + (-0x30)); /* 0x2B050F58: mov eax, dword ptr [ebp - 0x30] */ 43945 /* test eax, eax */ /* 0x2B050F5B: test eax, eax */ 43946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 43947 _cf = 0; 43948 _flag_k = FK_TEST; 43949 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05101D; /* 0x2B050F5D: je 0x2b05101d */ 43950 L_2B050F63: 43951 ecx = eax + (-0x1); /* 0x2B050F63: lea ecx, [eax - 1] */ 43952 SET_LO8(eax, MEM8(ecx)); /* 0x2B050F66: mov al, byte ptr [ecx] */ 43953 /* test LO8(eax), LO8(eax) */ /* 0x2B050F68: test al, al */ 43954 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 43955 _cf = 0; 43956 _flag_k = FK_NARROW(FK_TEST, 24); 43957 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050F85; /* 0x2B050F6A: je 0x2b050f85 */ 43958 L_2B050F6C: 43959 /* cmp LO8(eax), 0xFFu */ /* 0x2B050F6C: cmp al, 0xff */ 43960 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 43961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43962 _flag_k = FK_NARROW(FK_CMP, 24); 43963 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050F85; /* 0x2B050F6E: je 0x2b050f85 */ 43964 L_2B050F70: 43965 edi = POP32_VAL(esp); /* 0x2B050F70: pop edi */ 43966 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 43967 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050F71: dec al */ 43968 _flag_k = FK_NARROW(FK_DEC, 24); 43969 esi = POP32_VAL(esp); /* 0x2B050F73: pop esi */ 43970 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B050F74: mov byte ptr [ecx], al */ 43971 ebx = POP32_VAL(esp); /* 0x2B050F76: pop ebx */ 43972 ecx = MEM32(ebp + (-0xC)); /* 0x2B050F77: mov ecx, dword ptr [ebp - 0xc] */ 43973 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050F7A: mov dword ptr fs:[0], ecx */ 43974 esp = ebp; /* 0x2B050F81: mov esp, ebp */ 43975 ebp = POP32_VAL(esp); /* 0x2B050F83: pop ebp */ 43976 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050F84: ret */ 43977 L_2B050F85: 43978 PUSH32(esp, ecx); /* 0x2B050F85: push ecx */ 43979 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B050F86: call 0x2b0ab1ba */ /* not lifted */ 43980 RECOMP_FLAGS_IN(); 43981 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 43982 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43983 esp = esp + 4; /* 0x2B050F8B: add esp, 4 */ 43984 _flag_k = FK_ADD; 43985 edi = POP32_VAL(esp); /* 0x2B050F8E: pop edi */ 43986 esi = POP32_VAL(esp); /* 0x2B050F8F: pop esi */ 43987 ebx = POP32_VAL(esp); /* 0x2B050F90: pop ebx */ 43988 ecx = MEM32(ebp + (-0xC)); /* 0x2B050F91: mov ecx, dword ptr [ebp - 0xc] */ 43989 MEM32(FS_BASE + (0)) = ecx; /* 0x2B050F94: mov dword ptr fs:[0], ecx */ 43990 esp = ebp; /* 0x2B050F9B: mov esp, ebp */ 43991 ebp = POP32_VAL(esp); /* 0x2B050F9D: pop ebp */ 43992 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B050F9E: ret */ 43993 L_2B050F9F: 43994 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B050F9F: mov cl, byte ptr [ebp + 0xb] */ 43995 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(ecx)); /* 0x2B050FA2: mov byte ptr [ebp - 0x24], cl */ 43996 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 43997 eax = 0; /* 0x2B050FA5: xor eax, eax */ 43998 _cf = 0; 43999 _flag_k = FK_TEST; 44000 edi = esi; /* 0x2B050FA7: mov edi, esi */ 44001 MEM32(ebp + (-0x20)) = eax; /* 0x2B050FA9: mov dword ptr [ebp - 0x20], eax */ 44002 MEM32(ebp + (-0x1C)) = eax; /* 0x2B050FAC: mov dword ptr [ebp - 0x1c], eax */ 44003 MEM32(ebp + (-0x18)) = eax; /* 0x2B050FAF: mov dword ptr [ebp - 0x18], eax */ 44004 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 44005 ecx = ecx | 0xFFFFFFFFu; /* 0x2B050FB2: or ecx, 0xffffffff */ 44006 _cf = 0; 44007 _flag_k = FK_TEST; 44008 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; } /* 0x2B050FB5: repne scasb al, byte ptr es:[edi] */ 44009 ecx = ~ecx; /* 0x2B050FB7: not ecx */ 44010 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 44011 ecx = ecx - 1; /* 0x2B050FB9: dec ecx */ 44012 _flag_k = FK_DEC; 44013 PUSH32(esp, ecx); /* 0x2B050FBA: push ecx */ 44014 PUSH32(esp, esi); /* 0x2B050FBB: push esi */ 44015 ecx = ebp + (-0x24); /* 0x2B050FBC: lea ecx, [ebp - 0x24] */ 44016 RECOMP_ICALL(MEM32(0x2B0B5148)); /* 0x2B050FBF: call dword ptr [0x2b0b5148] */ 44017 RECOMP_FLAGS_IN(); 44018 edx = MEM32(ebp + (-0x10)); /* 0x2B050FC5: mov edx, dword ptr [ebp - 0x10] */ 44019 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 44020 esi = 0; /* 0x2B050FC8: xor esi, esi */ 44021 _cf = 0; 44022 _flag_k = FK_TEST; 44023 PUSH32(esp, esi); /* 0x2B050FCA: push esi */ 44024 PUSH32(esp, edx); /* 0x2B050FCB: push edx */ 44025 eax = ebp + (-0x24); /* 0x2B050FCC: lea eax, [ebp - 0x24] */ 44026 PUSH32(esp, eax); /* 0x2B050FCF: push eax */ 44027 ecx = ebx; /* 0x2B050FD0: mov ecx, ebx */ 44028 MEM32(ebp + (-0x4)) = 1; /* 0x2B050FD2: mov dword ptr [ebp - 4], 1 */ 44029 RECOMP_ICALL(0x2B050120u); /* 0x2B050FD9: call 0x2b050120 */ /* not lifted */ 44030 RECOMP_FLAGS_IN(); 44031 eax = MEM32(ebp + (-0x20)); /* 0x2B050FDE: mov eax, dword ptr [ebp - 0x20] */ 44032 /* cmp eax, esi */ /* 0x2B050FE1: cmp eax, esi */ 44033 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 44034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44035 _flag_k = FK_CMP; 44036 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B050FE3: mov dword ptr [ebp - 4], 0xffffffff */ 44037 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B051008; /* 0x2B050FEA: je 0x2b051008 */ 44038 L_2B050FEC: 44039 ecx = eax + (-0x1); /* 0x2B050FEC: lea ecx, [eax - 1] */ 44040 SET_LO8(eax, MEM8(ecx)); /* 0x2B050FEF: mov al, byte ptr [ecx] */ 44041 /* test LO8(eax), LO8(eax) */ /* 0x2B050FF1: test al, al */ 44042 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 44043 _cf = 0; 44044 _flag_k = FK_NARROW(FK_TEST, 24); 44045 if (TEST_Z(_flag_a, _flag_b)) goto L_2B050FFF; /* 0x2B050FF3: je 0x2b050fff */ 44046 L_2B050FF5: 44047 /* cmp LO8(eax), 0xFFu */ /* 0x2B050FF5: cmp al, 0xff */ 44048 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 44049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44050 _flag_k = FK_NARROW(FK_CMP, 24); 44051 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B050FFF; /* 0x2B050FF7: je 0x2b050fff */ 44052 L_2B050FF9: 44053 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 44054 SET_LO8(eax, LO8(eax) - 1); /* 0x2B050FF9: dec al */ 44055 _flag_k = FK_NARROW(FK_DEC, 24); 44056 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2B050FFB: mov byte ptr [ecx], al */ 44057 goto L_2B051008; /* 0x2B050FFD: jmp 0x2b051008 */ 44058 L_2B050FFF: 44059 PUSH32(esp, ecx); /* 0x2B050FFF: push ecx */ 44060 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B051000: call 0x2b0ab1ba */ /* not lifted */ 44061 RECOMP_FLAGS_IN(); 44062 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 44063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44064 esp = esp + 4; /* 0x2B051005: add esp, 4 */ 44065 _flag_k = FK_ADD; 44066 L_2B051008: 44067 MEM32(ebp + (-0x20)) = esi; /* 0x2B051008: mov dword ptr [ebp - 0x20], esi */ 44068 MEM32(ebp + (-0x1C)) = esi; /* 0x2B05100B: mov dword ptr [ebp - 0x1c], esi */ 44069 MEM32(ebp + (-0x18)) = esi; /* 0x2B05100E: mov dword ptr [ebp - 0x18], esi */ 44070 RECOMP_ICALL(0x2B016630u); /* 0x2B051011: call 0x2b016630 */ /* not lifted */ 44071 RECOMP_FLAGS_IN(); 44072 ecx = eax; /* 0x2B051016: mov ecx, eax */ 44073 RECOMP_ICALL(0x2B016E10u); /* 0x2B051018: call 0x2b016e10 */ /* not lifted */ 44074 RECOMP_FLAGS_IN(); 44075 L_2B05101D: 44076 ecx = MEM32(ebp + (-0xC)); /* 0x2B05101D: mov ecx, dword ptr [ebp - 0xc] */ 44077 edi = POP32_VAL(esp); /* 0x2B051020: pop edi */ 44078 esi = POP32_VAL(esp); /* 0x2B051021: pop esi */ 44079 ebx = POP32_VAL(esp); /* 0x2B051022: pop ebx */ 44080 MEM32(FS_BASE + (0)) = ecx; /* 0x2B051023: mov dword ptr fs:[0], ecx */ 44081 esp = ebp; /* 0x2B05102A: mov esp, ebp */ 44082 ebp = POP32_VAL(esp); /* 0x2B05102C: pop ebp */ 44083 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05102D: ret */ 44084 RECOMP_REGS_OUT(); 44085 } 44086 44087 void sub_2B051030(void) { 44088 int _fpu_cmp = 0; 44089 uint32_t _cf = 0; 44090 int _df = 1; 44091 uint32_t _flag_k = FK_NONE; 44092 uint32_t _flag_a = 0, _flag_b = 0; 44093 uint32_t _itail_tgt = 0; 44094 RECOMP_REGS_LOCALS 44095 RECOMP_ENTER(0x2B051030u); 44096 44097 L_2B051030: 44098 PUSH32(esp, ebp); /* 0x2B051030: push ebp */ 44099 ebp = esp; /* 0x2B051031: mov ebp, esp */ 44100 PUSH32(esp, esi); /* 0x2B051033: push esi */ 44101 esi = MEM32(ebp + 0x8); /* 0x2B051034: mov esi, dword ptr [ebp + 8] */ 44102 eax = MEM32(esi + 0x40); /* 0x2B051037: mov eax, dword ptr [esi + 0x40] */ 44103 eax = MEM32(eax + 0x54); /* 0x2B05103A: mov eax, dword ptr [eax + 0x54] */ 44104 /* cmp eax, 1 */ /* 0x2B05103D: cmp eax, 1 */ 44105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 44106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44107 _flag_k = FK_CMP; 44108 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B051055; /* 0x2B051040: je 0x2b051055 */ 44109 L_2B051042: 44110 /* cmp eax, 3 */ /* 0x2B051042: cmp eax, 3 */ 44111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 44112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44113 _flag_k = FK_CMP; 44114 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B051055; /* 0x2B051045: je 0x2b051055 */ 44115 L_2B051047: 44116 /* cmp eax, 2 */ /* 0x2B051047: cmp eax, 2 */ 44117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 44118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44119 _flag_k = FK_CMP; 44120 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B051051; /* 0x2B05104A: je 0x2b051051 */ 44121 L_2B05104C: 44122 /* cmp eax, 4 */ /* 0x2B05104C: cmp eax, 4 */ 44123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 44124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44125 _flag_k = FK_CMP; 44126 if (CMP_NE(_flag_a, _flag_b)) goto L_2B051055; /* 0x2B05104F: jne 0x2b051055 */ 44127 L_2B051051: 44128 SET_LO8(eax, 1); /* 0x2B051051: mov al, 1 */ 44129 goto L_2B051057; /* 0x2B051053: jmp 0x2b051057 */ 44130 L_2B051055: 44131 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 44132 SET_LO8(eax, 0); /* 0x2B051055: xor al, al */ 44133 _cf = 0; 44134 _flag_k = FK_NARROW(FK_TEST, 24); 44135 L_2B051057: 44136 /* test LO8(eax), LO8(eax) */ /* 0x2B051057: test al, al */ 44137 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 44138 _cf = 0; 44139 _flag_k = FK_NARROW(FK_TEST, 24); 44140 MEM8(esi + 0x188) = (uint8_t)(LO8(eax)); /* 0x2B051059: mov byte ptr [esi + 0x188], al */ 44141 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05109D; /* 0x2B05105F: je 0x2b05109d */ 44142 L_2B051061: 44143 ecx = MEM32(esi + 0x104); /* 0x2B051061: mov ecx, dword ptr [esi + 0x104] */ 44144 eax = MEM32(ecx + 0x4); /* 0x2B051067: mov eax, dword ptr [ecx + 4] */ 44145 ecx = MEM32(ecx + 0x8); /* 0x2B05106A: mov ecx, dword ptr [ecx + 8] */ 44146 /* cmp eax, ecx */ /* 0x2B05106D: cmp eax, ecx */ 44147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 44148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44149 _flag_k = FK_CMP; 44150 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05109D; /* 0x2B05106F: je 0x2b05109d */ 44151 L_2B051071: 44152 SET_LO8(edx, MEM8(eax + 0x2C)); /* 0x2B051071: mov dl, byte ptr [eax + 0x2c] */ 44153 /* test LO8(edx), LO8(edx) */ /* 0x2B051074: test dl, dl */ 44154 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 44155 _cf = 0; 44156 _flag_k = FK_NARROW(FK_TEST, 24); 44157 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B051090; /* 0x2B051076: jne 0x2b051090 */ 44158 L_2B051078: 44159 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 44160 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44161 eax = eax + 0x30u; /* 0x2B051078: add eax, 0x30 */ 44162 _flag_k = FK_ADD; 44163 /* cmp eax, ecx */ /* 0x2B05107B: cmp eax, ecx */ 44164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 44165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44166 _flag_k = FK_CMP; 44167 RECOMP_BACKEDGE(); 44168 if (CMP_NE(_flag_a, _flag_b)) goto L_2B051071; /* 0x2B05107D: jne 0x2b051071 */ 44169 L_2B05107F: 44170 ecx = esi; /* 0x2B05107F: mov ecx, esi */ 44171 RECOMP_ICALL(0x2B0510B0u); /* 0x2B051081: call 0x2b0510b0 */ /* not lifted */ 44172 RECOMP_FLAGS_IN(); 44173 ecx = esi; /* 0x2B051086: mov ecx, esi */ 44174 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B051088: call 0x2b03a2b0 */ /* not lifted */ 44175 RECOMP_FLAGS_IN(); 44176 esi = POP32_VAL(esp); /* 0x2B05108D: pop esi */ 44177 ebp = POP32_VAL(esp); /* 0x2B05108E: pop ebp */ 44178 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B05108F: ret */ 44179 L_2B051090: 44180 /* test MEM32(eax + 0x1C), 0x01000000u */ /* 0x2B051090: test dword ptr [eax + 0x1c], 0x1000000 */ 44181 _flag_a = (uint32_t)(MEM32(eax + 0x1C)); _flag_b = (uint32_t)(0x01000000u); 44182 _cf = 0; 44183 _flag_k = FK_TEST; 44184 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05109D; /* 0x2B051097: je 0x2b05109d */ 44185 L_2B051099: 44186 MEM8(eax + 0x2C) = (uint8_t)(0); /* 0x2B051099: mov byte ptr [eax + 0x2c], 0 */ 44187 L_2B05109D: 44188 ecx = esi; /* 0x2B05109D: mov ecx, esi */ 44189 RECOMP_ICALL(0x2B0510B0u); /* 0x2B05109F: call 0x2b0510b0 */ /* not lifted */ 44190 RECOMP_FLAGS_IN(); 44191 ecx = esi; /* 0x2B0510A4: mov ecx, esi */ 44192 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0510A6: call 0x2b03a2b0 */ /* not lifted */ 44193 RECOMP_FLAGS_IN(); 44194 esi = POP32_VAL(esp); /* 0x2B0510AB: pop esi */ 44195 ebp = POP32_VAL(esp); /* 0x2B0510AC: pop ebp */ 44196 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0510AD: ret */ 44197 RECOMP_REGS_OUT(); 44198 } 44199 44200 void sub_2B0510B0(void) { 44201 int _fpu_cmp = 0; 44202 uint32_t _cf = 0; 44203 int _df = 1; 44204 uint32_t _flag_k = FK_NONE; 44205 uint32_t _flag_a = 0, _flag_b = 0; 44206 uint32_t _itail_tgt = 0; 44207 RECOMP_REGS_LOCALS 44208 RECOMP_ENTER(0x2B0510B0u); 44209 44210 L_2B0510B0: 44211 PUSH32(esp, ebx); /* 0x2B0510B0: push ebx */ 44212 PUSH32(esp, esi); /* 0x2B0510B1: push esi */ 44213 esi = ecx; /* 0x2B0510B2: mov esi, ecx */ 44214 ecx = MEM32(esi + 0x100); /* 0x2B0510B4: mov ecx, dword ptr [esi + 0x100] */ 44215 eax = MEM32(ecx + 0x4); /* 0x2B0510BA: mov eax, dword ptr [ecx + 4] */ 44216 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 44217 ebx = 0; /* 0x2B0510BD: xor ebx, ebx */ 44218 _cf = 0; 44219 _flag_k = FK_TEST; 44220 /* cmp eax, ebx */ /* 0x2B0510BF: cmp eax, ebx */ 44221 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 44222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44223 _flag_k = FK_CMP; 44224 PUSH32(esp, edi); /* 0x2B0510C1: push edi */ 44225 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B051124; /* 0x2B0510C2: je 0x2b051124 */ 44226 L_2B0510C4: 44227 edx = MEM32(ecx + 0x8); /* 0x2B0510C4: mov edx, dword ptr [ecx + 8] */ 44228 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 44229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44230 edx = edx - eax; /* 0x2B0510C7: sub edx, eax */ 44231 _flag_k = FK_CMP; 44232 eax = 0x2AAAAAABu; /* 0x2B0510C9: mov eax, 0x2aaaaaab */ 44233 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2B0510CE: imul edx */ 44234 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 44235 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 44236 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B0510D0: sar edx, 3 */ 44237 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 44238 edx = (uint32_t)((int32_t)edx >> 3u); 44239 eax = edx; /* 0x2B0510D3: mov eax, edx */ 44240 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B0510D5: shr eax, 0x1f */ 44241 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 44242 eax = eax >> 31u; /* 0x2B0510D5: shr eax, 0x1f */ 44243 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 44244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44245 edx = edx + eax; /* 0x2B0510D8: add edx, eax */ 44246 _flag_k = FK_ADD; 44247 /* cmp edx, 0xBu */ /* 0x2B0510DA: cmp edx, 0xb */ 44248 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xBu); 44249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44250 _flag_k = FK_CMP; 44251 if (CMP_BE(_flag_a, _flag_b)) goto L_2B051124; /* 0x2B0510DD: jbe 0x2b051124 */ 44252 L_2B0510DF: 44253 MEM8(esi + 0x19C) = (uint8_t)(1); /* 0x2B0510DF: mov byte ptr [esi + 0x19c], 1 */ 44254 eax = MEM32(ecx + 0x4); /* 0x2B0510E6: mov eax, dword ptr [ecx + 4] */ 44255 /* cmp eax, ebx */ /* 0x2B0510E9: cmp eax, ebx */ 44256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 44257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44258 _flag_k = FK_CMP; 44259 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0510F1; /* 0x2B0510EB: jne 0x2b0510f1 */ 44260 L_2B0510ED: 44261 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 44262 edx = 0; /* 0x2B0510ED: xor edx, edx */ 44263 _cf = 0; 44264 _flag_k = FK_TEST; 44265 goto L_2B051107; /* 0x2B0510EF: jmp 0x2b051107 */ 44266 L_2B0510F1: 44267 ecx = MEM32(ecx + 0x8); /* 0x2B0510F1: mov ecx, dword ptr [ecx + 8] */ 44268 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 44269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44270 ecx = ecx - eax; /* 0x2B0510F4: sub ecx, eax */ 44271 _flag_k = FK_CMP; 44272 eax = 0x2AAAAAABu; /* 0x2B0510F6: mov eax, 0x2aaaaaab */ 44273 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B0510FB: imul ecx */ 44274 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 44275 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 44276 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B0510FD: sar edx, 3 */ 44277 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 44278 edx = (uint32_t)((int32_t)edx >> 3u); 44279 ecx = edx; /* 0x2B051100: mov ecx, edx */ 44280 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x2B051102: shr ecx, 0x1f */ 44281 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 44282 ecx = ecx >> 31u; /* 0x2B051102: shr ecx, 0x1f */ 44283 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 44284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44285 edx = edx + ecx; /* 0x2B051105: add edx, ecx */ 44286 _flag_k = FK_ADD; 44287 L_2B051107: 44288 edi = MEM32(esi + 0x194); /* 0x2B051107: mov edi, dword ptr [esi + 0x194] */ 44289 ecx = MEM32(edi); /* 0x2B05110D: mov ecx, dword ptr [edi] */ 44290 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFF6u); 44291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44292 edx = edx + 0xFFFFFFF6u; /* 0x2B05110F: add edx, -0xa */ 44293 _flag_k = FK_ADD; 44294 PUSH32(esp, edx); /* 0x2B051112: push edx */ 44295 RECOMP_ICALL(MEM32(0x2B0B5B9C)); /* 0x2B051113: call dword ptr [0x2b0b5b9c] */ 44296 RECOMP_FLAGS_IN(); 44297 ecx = MEM32(edi); /* 0x2B051119: mov ecx, dword ptr [edi] */ 44298 PUSH32(esp, ebx); /* 0x2B05111B: push ebx */ 44299 RECOMP_ICALL(MEM32(0x2B0B5BA0)); /* 0x2B05111C: call dword ptr [0x2b0b5ba0] */ 44300 RECOMP_FLAGS_IN(); 44301 goto L_2B05113A; /* 0x2B051122: jmp 0x2b05113a */ 44302 L_2B051124: 44303 ecx = MEM32(esi + 0x194); /* 0x2B051124: mov ecx, dword ptr [esi + 0x194] */ 44304 MEM8(esi + 0x19C) = (uint8_t)(0); /* 0x2B05112A: mov byte ptr [esi + 0x19c], 0 */ 44305 MEM32(esi + 0x48) = ebx; /* 0x2B051131: mov dword ptr [esi + 0x48], ebx */ 44306 RECOMP_ICALL(MEM32(0x2B0B5BA8)); /* 0x2B051134: call dword ptr [0x2b0b5ba8] */ 44307 RECOMP_FLAGS_IN(); 44308 L_2B05113A: 44309 SET_LO8(eax, MEM8(esi + 0x188)); /* 0x2B05113A: mov al, byte ptr [esi + 0x188] */ 44310 /* test LO8(eax), LO8(eax) */ /* 0x2B051140: test al, al */ 44311 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 44312 _cf = 0; 44313 _flag_k = FK_NARROW(FK_TEST, 24); 44314 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05114C; /* 0x2B051142: je 0x2b05114c */ 44315 L_2B051144: 44316 edi = MEM32(esi + 0x184); /* 0x2B051144: mov edi, dword ptr [esi + 0x184] */ 44317 goto L_2B051171; /* 0x2B05114A: jmp 0x2b051171 */ 44318 L_2B05114C: 44319 eax = MEM32(esi + 0x104); /* 0x2B05114C: mov eax, dword ptr [esi + 0x104] */ 44320 edx = MEM32(eax + 0x4); /* 0x2B051152: mov edx, dword ptr [eax + 4] */ 44321 /* cmp edx, ebx */ /* 0x2B051155: cmp edx, ebx */ 44322 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 44323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44324 _flag_k = FK_CMP; 44325 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0511B0; /* 0x2B051157: je 0x2b0511b0 */ 44326 L_2B051159: 44327 ecx = MEM32(eax + 0x8); /* 0x2B051159: mov ecx, dword ptr [eax + 8] */ 44328 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 44329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44330 ecx = ecx - edx; /* 0x2B05115C: sub ecx, edx */ 44331 _flag_k = FK_CMP; 44332 eax = 0x2AAAAAABu; /* 0x2B05115E: mov eax, 0x2aaaaaab */ 44333 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B051163: imul ecx */ 44334 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 44335 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 44336 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B051165: sar edx, 3 */ 44337 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 44338 edx = (uint32_t)((int32_t)edx >> 3u); 44339 eax = edx; /* 0x2B051168: mov eax, edx */ 44340 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B05116A: shr eax, 0x1f */ 44341 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 44342 eax = eax >> 31u; /* 0x2B05116A: shr eax, 0x1f */ 44343 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 44344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44345 edx = edx + eax; /* 0x2B05116D: add edx, eax */ 44346 _flag_k = FK_ADD; 44347 edi = edx; /* 0x2B05116F: mov edi, edx */ 44348 L_2B051171: 44349 /* cmp edi, 6 */ /* 0x2B051171: cmp edi, 6 */ 44350 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(6); 44351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44352 _flag_k = FK_CMP; 44353 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0511B0; /* 0x2B051174: jle 0x2b0511b0 */ 44354 L_2B051176: 44355 ebx = MEM32(esi + 0x198); /* 0x2B051176: mov ebx, dword ptr [esi + 0x198] */ 44356 ecx = edi + (-0x5); /* 0x2B05117C: lea ecx, [edi - 5] */ 44357 MEM8(esi + 0x19D) = (uint8_t)(1); /* 0x2B05117F: mov byte ptr [esi + 0x19d], 1 */ 44358 PUSH32(esp, ecx); /* 0x2B051186: push ecx */ 44359 ecx = MEM32(ebx); /* 0x2B051187: mov ecx, dword ptr [ebx] */ 44360 RECOMP_ICALL(MEM32(0x2B0B5B9C)); /* 0x2B051189: call dword ptr [0x2b0b5b9c] */ 44361 RECOMP_FLAGS_IN(); 44362 ecx = MEM32(ebx); /* 0x2B05118F: mov ecx, dword ptr [ebx] */ 44363 PUSH32(esp, 0); /* 0x2B051191: push 0 */ 44364 RECOMP_ICALL(MEM32(0x2B0B5BA0)); /* 0x2B051193: call dword ptr [0x2b0b5ba0] */ 44365 RECOMP_FLAGS_IN(); 44366 ecx = MEM32(esi + 0x180); /* 0x2B051199: mov ecx, dword ptr [esi + 0x180] */ 44367 eax = edi + (-0x6); /* 0x2B05119F: lea eax, [edi - 6] */ 44368 /* cmp ecx, eax */ /* 0x2B0511A2: cmp ecx, eax */ 44369 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 44370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44371 _flag_k = FK_CMP; 44372 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0511C9; /* 0x2B0511A4: jle 0x2b0511c9 */ 44373 L_2B0511A6: 44374 edi = POP32_VAL(esp); /* 0x2B0511A6: pop edi */ 44375 MEM32(esi + 0x180) = eax; /* 0x2B0511A7: mov dword ptr [esi + 0x180], eax */ 44376 esi = POP32_VAL(esp); /* 0x2B0511AD: pop esi */ 44377 ebx = POP32_VAL(esp); /* 0x2B0511AE: pop ebx */ 44378 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0511AF: ret */ 44379 L_2B0511B0: 44380 ecx = MEM32(esi + 0x198); /* 0x2B0511B0: mov ecx, dword ptr [esi + 0x198] */ 44381 MEM8(esi + 0x19D) = (uint8_t)(0); /* 0x2B0511B6: mov byte ptr [esi + 0x19d], 0 */ 44382 MEM32(esi + 0x180) = ebx; /* 0x2B0511BD: mov dword ptr [esi + 0x180], ebx */ 44383 RECOMP_ICALL(MEM32(0x2B0B5BA8)); /* 0x2B0511C3: call dword ptr [0x2b0b5ba8] */ 44384 RECOMP_FLAGS_IN(); 44385 L_2B0511C9: 44386 edi = POP32_VAL(esp); /* 0x2B0511C9: pop edi */ 44387 esi = POP32_VAL(esp); /* 0x2B0511CA: pop esi */ 44388 ebx = POP32_VAL(esp); /* 0x2B0511CB: pop ebx */ 44389 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0511CC: ret */ 44390 RECOMP_REGS_OUT(); 44391 } 44392 44393 void sub_2B0511D0(void) { 44394 int _fpu_cmp = 0; 44395 uint32_t _cf = 0; 44396 int _df = 1; 44397 uint32_t _flag_k = FK_NONE; 44398 uint32_t _flag_a = 0, _flag_b = 0; 44399 uint32_t _itail_tgt = 0; 44400 RECOMP_REGS_LOCALS 44401 RECOMP_ENTER(0x2B0511D0u); 44402 44403 L_2B0511D0: 44404 PUSH32(esp, ebp); /* 0x2B0511D0: push ebp */ 44405 ebp = esp; /* 0x2B0511D1: mov ebp, esp */ 44406 edx = MEM32(ecx + 0x104); /* 0x2B0511D3: mov edx, dword ptr [ecx + 0x104] */ 44407 eax = MEM32(edx + 0x4); /* 0x2B0511D9: mov eax, dword ptr [edx + 4] */ 44408 PUSH32(esp, ebx); /* 0x2B0511DC: push ebx */ 44409 SET_LO8(ebx, MEM8(ecx + 0x188)); /* 0x2B0511DD: mov bl, byte ptr [ecx + 0x188] */ 44410 PUSH32(esp, esi); /* 0x2B0511E3: push esi */ 44411 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 44412 esi = 0; /* 0x2B0511E4: xor esi, esi */ 44413 _cf = 0; 44414 _flag_k = FK_TEST; 44415 /* test LO8(ebx), LO8(ebx) */ /* 0x2B0511E6: test bl, bl */ 44416 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 44417 _cf = 0; 44418 _flag_k = FK_NARROW(FK_TEST, 24); 44419 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051203; /* 0x2B0511E8: je 0x2b051203 */ 44420 L_2B0511EA: 44421 edx = MEM32(edx + 0x8); /* 0x2B0511EA: mov edx, dword ptr [edx + 8] */ 44422 /* cmp eax, edx */ /* 0x2B0511ED: cmp eax, edx */ 44423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 44424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44425 _flag_k = FK_CMP; 44426 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B051203; /* 0x2B0511EF: je 0x2b051203 */ 44427 L_2B0511F1: 44428 ecx = 0x01000000u; /* 0x2B0511F1: mov ecx, 0x1000000 */ 44429 L_2B0511F6: 44430 /* test MEM32(eax + 0x1C), ecx */ /* 0x2B0511F6: test dword ptr [eax + 0x1c], ecx */ 44431 _flag_a = (uint32_t)(MEM32(eax + 0x1C)); _flag_b = (uint32_t)(ecx); 44432 _cf = 0; 44433 _flag_k = FK_TEST; 44434 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051203; /* 0x2B0511F9: je 0x2b051203 */ 44435 L_2B0511FB: 44436 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 44437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44438 eax = eax + 0x30u; /* 0x2B0511FB: add eax, 0x30 */ 44439 _flag_k = FK_ADD; 44440 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 44441 esi = esi + 1; /* 0x2B0511FE: inc esi */ 44442 _flag_k = FK_INC; 44443 /* cmp eax, edx */ /* 0x2B0511FF: cmp eax, edx */ 44444 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 44445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44446 _flag_k = FK_CMP; 44447 RECOMP_BACKEDGE(); 44448 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0511F6; /* 0x2B051201: jne 0x2b0511f6 */ 44449 L_2B051203: 44450 ecx = MEM32(ebp + 0x8); /* 0x2B051203: mov ecx, dword ptr [ebp + 8] */ 44451 /* test ecx, ecx */ /* 0x2B051206: test ecx, ecx */ 44452 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 44453 _cf = 0; 44454 _flag_k = FK_TEST; 44455 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05120C; /* 0x2B051208: je 0x2b05120c */ 44456 L_2B05120A: 44457 MEM32(ecx) = esi; /* 0x2B05120A: mov dword ptr [ecx], esi */ 44458 L_2B05120C: 44459 esi = POP32_VAL(esp); /* 0x2B05120C: pop esi */ 44460 ebx = POP32_VAL(esp); /* 0x2B05120D: pop ebx */ 44461 ebp = POP32_VAL(esp); /* 0x2B05120E: pop ebp */ 44462 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B05120F: ret 4 */ 44463 RECOMP_REGS_OUT(); 44464 } 44465 44466 void sub_2B051220(void) { 44467 int _fpu_cmp = 0; 44468 uint32_t _cf = 0; 44469 int _df = 1; 44470 uint32_t _flag_k = FK_NONE; 44471 uint32_t _flag_a = 0, _flag_b = 0; 44472 uint32_t _itail_tgt = 0; 44473 RECOMP_REGS_LOCALS 44474 RECOMP_ENTER(0x2B051220u); 44475 44476 L_2B051220: 44477 PUSH32(esp, ebp); /* 0x2B051220: push ebp */ 44478 ebp = esp; /* 0x2B051221: mov ebp, esp */ 44479 edx = MEM32(ebp + 0x8); /* 0x2B051223: mov edx, dword ptr [ebp + 8] */ 44480 eax = MEM32(edx); /* 0x2B051226: mov eax, dword ptr [edx] */ 44481 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 44482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44483 eax = eax + 0x30u; /* 0x2B051228: add eax, 0x30 */ 44484 _flag_k = FK_ADD; 44485 PUSH32(esp, ebx); /* 0x2B05122B: push ebx */ 44486 MEM32(edx) = eax; /* 0x2B05122C: mov dword ptr [edx], eax */ 44487 SET_LO8(ebx, MEM8(ecx + 0x188)); /* 0x2B05122E: mov bl, byte ptr [ecx + 0x188] */ 44488 /* test LO8(ebx), LO8(ebx) */ /* 0x2B051234: test bl, bl */ 44489 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 44490 _cf = 0; 44491 _flag_k = FK_NARROW(FK_TEST, 24); 44492 PUSH32(esp, esi); /* 0x2B051236: push esi */ 44493 PUSH32(esp, edi); /* 0x2B051237: push edi */ 44494 esi = 1; /* 0x2B051238: mov esi, 1 */ 44495 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051265; /* 0x2B05123D: je 0x2b051265 */ 44496 L_2B05123F: 44497 edi = MEM32(ecx + 0x104); /* 0x2B05123F: mov edi, dword ptr [ecx + 0x104] */ 44498 /* cmp eax, MEM32(edi + 0x8) */ /* 0x2B051245: cmp eax, dword ptr [edi + 8] */ 44499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 44500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44501 _flag_k = FK_CMP; 44502 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B051265; /* 0x2B051248: je 0x2b051265 */ 44503 L_2B05124A: 44504 edi = 0x01000000u; /* 0x2B05124A: mov edi, 0x1000000 */ 44505 L_2B05124F: 44506 /* test MEM32(eax + 0x1C), edi */ /* 0x2B05124F: test dword ptr [eax + 0x1c], edi */ 44507 _flag_a = (uint32_t)(MEM32(eax + 0x1C)); _flag_b = (uint32_t)(edi); 44508 _cf = 0; 44509 _flag_k = FK_TEST; 44510 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051265; /* 0x2B051252: je 0x2b051265 */ 44511 L_2B051254: 44512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 44513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44514 eax = eax + 0x30u; /* 0x2B051254: add eax, 0x30 */ 44515 _flag_k = FK_ADD; 44516 MEM32(edx) = eax; /* 0x2B051257: mov dword ptr [edx], eax */ 44517 ebx = MEM32(ecx + 0x104); /* 0x2B051259: mov ebx, dword ptr [ecx + 0x104] */ 44518 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 44519 esi = esi + 1; /* 0x2B05125F: inc esi */ 44520 _flag_k = FK_INC; 44521 /* cmp eax, MEM32(ebx + 0x8) */ /* 0x2B051260: cmp eax, dword ptr [ebx + 8] */ 44522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 44523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44524 _flag_k = FK_CMP; 44525 RECOMP_BACKEDGE(); 44526 if (CMP_NE(_flag_a, _flag_b)) goto L_2B05124F; /* 0x2B051263: jne 0x2b05124f */ 44527 L_2B051265: 44528 eax = MEM32(ebp + 0xC); /* 0x2B051265: mov eax, dword ptr [ebp + 0xc] */ 44529 /* test eax, eax */ /* 0x2B051268: test eax, eax */ 44530 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 44531 _cf = 0; 44532 _flag_k = FK_TEST; 44533 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05126E; /* 0x2B05126A: je 0x2b05126e */ 44534 L_2B05126C: 44535 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(esi); 44536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44537 MEM32(eax) = MEM32(eax) + esi; /* 0x2B05126C: add dword ptr [eax], esi */ 44538 _flag_k = FK_ADD; 44539 L_2B05126E: 44540 edi = POP32_VAL(esp); /* 0x2B05126E: pop edi */ 44541 esi = POP32_VAL(esp); /* 0x2B05126F: pop esi */ 44542 ebx = POP32_VAL(esp); /* 0x2B051270: pop ebx */ 44543 ebp = POP32_VAL(esp); /* 0x2B051271: pop ebp */ 44544 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B051272: ret 8 */ 44545 RECOMP_REGS_OUT(); 44546 } 44547 44548 void sub_2B051280(void) { 44549 int _fpu_cmp = 0; 44550 uint32_t _cf = 0; 44551 int _df = 1; 44552 uint32_t _flag_k = FK_NONE; 44553 uint32_t _flag_a = 0, _flag_b = 0; 44554 uint32_t _itail_tgt = 0; 44555 RECOMP_REGS_LOCALS 44556 RECOMP_ENTER(0x2B051280u); 44557 44558 L_2B051280: 44559 PUSH32(esp, ebp); /* 0x2B051280: push ebp */ 44560 ebp = esp; /* 0x2B051281: mov ebp, esp */ 44561 PUSH32(esp, esi); /* 0x2B051283: push esi */ 44562 esi = ecx; /* 0x2B051284: mov esi, ecx */ 44563 ecx = MEM32(esi + 0x100); /* 0x2B051286: mov ecx, dword ptr [esi + 0x100] */ 44564 eax = MEM32(ecx + 0x4); /* 0x2B05128C: mov eax, dword ptr [ecx + 4] */ 44565 ecx = MEM32(ecx + 0x8); /* 0x2B05128F: mov ecx, dword ptr [ecx + 8] */ 44566 /* cmp eax, ecx */ /* 0x2B051292: cmp eax, ecx */ 44567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 44568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44569 _flag_k = FK_CMP; 44570 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0512DF; /* 0x2B051294: je 0x2b0512df */ 44571 L_2B051296: 44572 edx = MEM32(ebp + 0x8); /* 0x2B051296: mov edx, dword ptr [ebp + 8] */ 44573 L_2B051299: 44574 /* cmp MEM32(eax + 0x4), edx */ /* 0x2B051299: cmp dword ptr [eax + 4], edx */ 44575 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx); 44576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44577 _flag_k = FK_CMP; 44578 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0512AA; /* 0x2B05129C: je 0x2b0512aa */ 44579 L_2B05129E: 44580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 44581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44582 eax = eax + 0x30u; /* 0x2B05129E: add eax, 0x30 */ 44583 _flag_k = FK_ADD; 44584 /* cmp eax, ecx */ /* 0x2B0512A1: cmp eax, ecx */ 44585 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 44586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44587 _flag_k = FK_CMP; 44588 RECOMP_BACKEDGE(); 44589 if (CMP_NE(_flag_a, _flag_b)) goto L_2B051299; /* 0x2B0512A3: jne 0x2b051299 */ 44590 L_2B0512A5: 44591 esi = POP32_VAL(esp); /* 0x2B0512A5: pop esi */ 44592 ebp = POP32_VAL(esp); /* 0x2B0512A6: pop ebp */ 44593 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0512A7: ret 4 */ 44594 L_2B0512AA: 44595 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Du); 44596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44597 eax = eax + 0x2Du; /* 0x2B0512AA: add eax, 0x2d */ 44598 _flag_k = FK_ADD; 44599 PUSH32(esp, 1); /* 0x2B0512AD: push 1 */ 44600 PUSH32(esp, eax); /* 0x2B0512AF: push eax */ 44601 PUSH32(esp, edx); /* 0x2B0512B0: push edx */ 44602 MEM8(eax) = (uint8_t)(1); /* 0x2B0512B1: mov byte ptr [eax], 1 */ 44603 RECOMP_ICALL(0x2B016630u); /* 0x2B0512B4: call 0x2b016630 */ /* not lifted */ 44604 RECOMP_FLAGS_IN(); 44605 ecx = eax; /* 0x2B0512B9: mov ecx, eax */ 44606 RECOMP_ICALL(0x2B016D90u); /* 0x2B0512BB: call 0x2b016d90 */ /* not lifted */ 44607 RECOMP_FLAGS_IN(); 44608 eax = MEM32(esi + 0x100); /* 0x2B0512C0: mov eax, dword ptr [esi + 0x100] */ 44609 ecx = MEM32(eax + 0x8); /* 0x2B0512C6: mov ecx, dword ptr [eax + 8] */ 44610 edx = MEM32(eax + 0x4); /* 0x2B0512C9: mov edx, dword ptr [eax + 4] */ 44611 PUSH32(esp, 0); /* 0x2B0512CC: push 0 */ 44612 PUSH32(esp, ecx); /* 0x2B0512CE: push ecx */ 44613 PUSH32(esp, edx); /* 0x2B0512CF: push edx */ 44614 RECOMP_ICALL(0x2B053AE0u); /* 0x2B0512D0: call 0x2b053ae0 */ /* not lifted */ 44615 RECOMP_FLAGS_IN(); 44616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 44617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44618 esp = esp + 0xCu; /* 0x2B0512D5: add esp, 0xc */ 44619 _flag_k = FK_ADD; 44620 ecx = esi; /* 0x2B0512D8: mov ecx, esi */ 44621 RECOMP_ICALL(0x2B03A2B0u); /* 0x2B0512DA: call 0x2b03a2b0 */ /* not lifted */ 44622 RECOMP_FLAGS_IN(); 44623 L_2B0512DF: 44624 esi = POP32_VAL(esp); /* 0x2B0512DF: pop esi */ 44625 ebp = POP32_VAL(esp); /* 0x2B0512E0: pop ebp */ 44626 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0512E1: ret 4 */ 44627 RECOMP_REGS_OUT(); 44628 } 44629 44630 void sub_2B0512F0(void) { 44631 int _fpu_cmp = 0; 44632 uint32_t _cf = 0; 44633 int _df = 1; 44634 uint32_t _flag_k = FK_NONE; 44635 uint32_t _flag_a = 0, _flag_b = 0; 44636 uint32_t _itail_tgt = 0; 44637 RECOMP_REGS_LOCALS 44638 RECOMP_ENTER(0x2B0512F0u); 44639 44640 L_2B0512F0: 44641 PUSH32(esp, ebp); /* 0x2B0512F0: push ebp */ 44642 ebp = esp; /* 0x2B0512F1: mov ebp, esp */ 44643 PUSH32(esp, ecx); /* 0x2B0512F3: push ecx */ 44644 eax = MEM32(ecx + 0x100); /* 0x2B0512F4: mov eax, dword ptr [ecx + 0x100] */ 44645 PUSH32(esp, esi); /* 0x2B0512FA: push esi */ 44646 esi = MEM32(eax + 0x4); /* 0x2B0512FB: mov esi, dword ptr [eax + 4] */ 44647 eax = MEM32(eax + 0x8); /* 0x2B0512FE: mov eax, dword ptr [eax + 8] */ 44648 /* cmp esi, eax */ /* 0x2B051301: cmp esi, eax */ 44649 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 44650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44651 _flag_k = FK_CMP; 44652 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B051313; /* 0x2B051303: je 0x2b051313 */ 44653 L_2B051305: 44654 SET_LO8(edx, MEM8(esi + 0x2C)); /* 0x2B051305: mov dl, byte ptr [esi + 0x2c] */ 44655 /* test LO8(edx), LO8(edx) */ /* 0x2B051308: test dl, dl */ 44656 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 44657 _cf = 0; 44658 _flag_k = FK_NARROW(FK_TEST, 24); 44659 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B051344; /* 0x2B05130A: jne 0x2b051344 */ 44660 L_2B05130C: 44661 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 44662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44663 esi = esi + 0x30u; /* 0x2B05130C: add esi, 0x30 */ 44664 _flag_k = FK_ADD; 44665 /* cmp esi, eax */ /* 0x2B05130F: cmp esi, eax */ 44666 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 44667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44668 _flag_k = FK_CMP; 44669 RECOMP_BACKEDGE(); 44670 if (CMP_NE(_flag_a, _flag_b)) goto L_2B051305; /* 0x2B051311: jne 0x2b051305 */ 44671 L_2B051313: 44672 ecx = MEM32(ecx + 0x104); /* 0x2B051313: mov ecx, dword ptr [ecx + 0x104] */ 44673 eax = MEM32(ecx + 0x4); /* 0x2B051319: mov eax, dword ptr [ecx + 4] */ 44674 ecx = MEM32(ecx + 0x8); /* 0x2B05131C: mov ecx, dword ptr [ecx + 8] */ 44675 /* cmp eax, ecx */ /* 0x2B05131F: cmp eax, ecx */ 44676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 44677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44678 _flag_k = FK_CMP; 44679 MEM32(ebp + (-0x4)) = eax; /* 0x2B051321: mov dword ptr [ebp - 4], eax */ 44680 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0514EE; /* 0x2B051324: je 0x2b0514ee */ 44681 L_2B05132A: 44682 SET_LO8(edx, MEM8(eax + 0x2C)); /* 0x2B05132A: mov dl, byte ptr [eax + 0x2c] */ 44683 /* test LO8(edx), LO8(edx) */ /* 0x2B05132D: test dl, dl */ 44684 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 44685 _cf = 0; 44686 _flag_k = FK_NARROW(FK_TEST, 24); 44687 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05137E; /* 0x2B05132F: jne 0x2b05137e */ 44688 L_2B051331: 44689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 44690 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44691 eax = eax + 0x30u; /* 0x2B051331: add eax, 0x30 */ 44692 _flag_k = FK_ADD; 44693 /* cmp eax, ecx */ /* 0x2B051334: cmp eax, ecx */ 44694 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 44695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44696 _flag_k = FK_CMP; 44697 RECOMP_BACKEDGE(); 44698 if (CMP_NE(_flag_a, _flag_b)) goto L_2B05132A; /* 0x2B051336: jne 0x2b05132a */ 44699 L_2B051338: 44700 MEM32(ebp + (-0x4)) = eax; /* 0x2B051338: mov dword ptr [ebp - 4], eax */ 44701 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 44702 eax = 0; /* 0x2B05133B: xor eax, eax */ 44703 _cf = 0; 44704 _flag_k = FK_TEST; 44705 esi = POP32_VAL(esp); /* 0x2B05133D: pop esi */ 44706 esp = ebp; /* 0x2B05133E: mov esp, ebp */ 44707 ebp = POP32_VAL(esp); /* 0x2B051340: pop ebp */ 44708 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B051341: ret 8 */ 44709 L_2B051344: 44710 ecx = MEM32(ebp + 0x8); /* 0x2B051344: mov ecx, dword ptr [ebp + 8] */ 44711 /* test ecx, ecx */ /* 0x2B051347: test ecx, ecx */ 44712 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 44713 _cf = 0; 44714 _flag_k = FK_TEST; 44715 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05135F; /* 0x2B051349: je 0x2b05135f */ 44716 L_2B05134B: 44717 eax = MEM32(0x2B0B515C); /* 0x2B05134B: mov eax, dword ptr [0x2b0b515c] */ 44718 edx = MEM32(eax); /* 0x2B051350: mov edx, dword ptr [eax] */ 44719 PUSH32(esp, edx); /* 0x2B051352: push edx */ 44720 PUSH32(esp, 0); /* 0x2B051353: push 0 */ 44721 eax = esi + 0x8; /* 0x2B051355: lea eax, [esi + 8] */ 44722 PUSH32(esp, eax); /* 0x2B051358: push eax */ 44723 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B051359: call dword ptr [0x2b0b5158] */ 44724 RECOMP_FLAGS_IN(); 44725 L_2B05135F: 44726 eax = MEM32(ebp + 0xC); /* 0x2B05135F: mov eax, dword ptr [ebp + 0xc] */ 44727 /* test eax, eax */ /* 0x2B051362: test eax, eax */ 44728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 44729 _cf = 0; 44730 _flag_k = FK_TEST; 44731 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051372; /* 0x2B051364: je 0x2b051372 */ 44732 L_2B051366: 44733 ecx = MEM32(esi + 0x4); /* 0x2B051366: mov ecx, dword ptr [esi + 4] */ 44734 MEM32(eax) = ecx; /* 0x2B051369: mov dword ptr [eax], ecx */ 44735 MEM32(eax + 0x4) = 0; /* 0x2B05136B: mov dword ptr [eax + 4], 0 */ 44736 L_2B051372: 44737 eax = 3; /* 0x2B051372: mov eax, 3 */ 44738 esi = POP32_VAL(esp); /* 0x2B051377: pop esi */ 44739 esp = ebp; /* 0x2B051378: mov esp, ebp */ 44740 ebp = POP32_VAL(esp); /* 0x2B05137A: pop ebp */ 44741 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B05137B: ret 8 */ 44742 L_2B05137E: 44743 PUSH32(esp, ebx); /* 0x2B05137E: push ebx */ 44744 ebx = MEM32(ebp + 0x8); /* 0x2B05137F: mov ebx, dword ptr [ebp + 8] */ 44745 /* test ebx, ebx */ /* 0x2B051382: test ebx, ebx */ 44746 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 44747 _cf = 0; 44748 _flag_k = FK_TEST; 44749 PUSH32(esp, edi); /* 0x2B051384: push edi */ 44750 MEM32(ebp + (-0x4)) = eax; /* 0x2B051385: mov dword ptr [ebp - 4], eax */ 44751 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0514C6; /* 0x2B051388: je 0x2b0514c6 */ 44752 L_2B05138E: 44753 edx = MEM32(0x2B0B515C); /* 0x2B05138E: mov edx, dword ptr [0x2b0b515c] */ 44754 ecx = MEM32(eax + 0x8); /* 0x2B051394: mov ecx, dword ptr [eax + 8] */ 44755 esi = MEM32(edx); /* 0x2B051397: mov esi, dword ptr [edx] */ 44756 edi = ecx; /* 0x2B051399: mov edi, ecx */ 44757 /* cmp esi, edi */ /* 0x2B05139B: cmp esi, edi */ 44758 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 44759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44760 _flag_k = FK_CMP; 44761 MEM32(ebp + 0x8) = edi; /* 0x2B05139D: mov dword ptr [ebp + 8], edi */ 44762 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0513A7; /* 0x2B0513A0: jae 0x2b0513a7 */ 44763 L_2B0513A2: 44764 MEM32(ebp + 0x8) = esi; /* 0x2B0513A2: mov dword ptr [ebp + 8], esi */ 44765 edi = esi; /* 0x2B0513A5: mov edi, esi */ 44766 L_2B0513A7: 44767 /* cmp ebx, eax */ /* 0x2B0513A7: cmp ebx, eax */ 44768 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 44769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44770 _flag_k = FK_CMP; 44771 if (CMP_NE(_flag_a, _flag_b)) goto L_2B051415; /* 0x2B0513A9: jne 0x2b051415 */ 44772 L_2B0513AB: 44773 /* cmp MEM32(ebx + 0x8), edi */ /* 0x2B0513AB: cmp dword ptr [ebx + 8], edi */ 44774 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(edi); 44775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44776 _flag_k = FK_CMP; 44777 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0513B9; /* 0x2B0513AE: jae 0x2b0513b9 */ 44778 L_2B0513B0: 44779 RECOMP_ICALL(MEM32(0x2B0B519C)); /* 0x2B0513B0: call dword ptr [0x2b0b519c] */ 44780 RECOMP_FLAGS_IN(); 44781 eax = MEM32(ebp + (-0x4)); /* 0x2B0513B6: mov eax, dword ptr [ebp - 4] */ 44782 L_2B0513B9: 44783 ecx = MEM32(ebx + 0x8); /* 0x2B0513B9: mov ecx, dword ptr [ebx + 8] */ 44784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 44785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44786 ecx = ecx - edi; /* 0x2B0513BC: sub ecx, edi */ 44787 _flag_k = FK_CMP; 44788 /* cmp ecx, esi */ /* 0x2B0513BE: cmp ecx, esi */ 44789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 44790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44791 _flag_k = FK_CMP; 44792 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0513C4; /* 0x2B0513C0: jae 0x2b0513c4 */ 44793 L_2B0513C2: 44794 esi = ecx; /* 0x2B0513C2: mov esi, ecx */ 44795 L_2B0513C4: 44796 /* test esi, esi */ /* 0x2B0513C4: test esi, esi */ 44797 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 44798 _cf = 0; 44799 _flag_k = FK_TEST; 44800 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0514C6; /* 0x2B0513C6: jbe 0x2b0514c6 */ 44801 L_2B0513CC: 44802 ecx = ebx; /* 0x2B0513CC: mov ecx, ebx */ 44803 RECOMP_ICALL(MEM32(0x2B0B516C)); /* 0x2B0513CE: call dword ptr [0x2b0b516c] */ 44804 RECOMP_FLAGS_IN(); 44805 ecx = MEM32(ebx + 0x8); /* 0x2B0513D4: mov ecx, dword ptr [ebx + 8] */ 44806 eax = MEM32(ebx + 0x4); /* 0x2B0513D7: mov eax, dword ptr [ebx + 4] */ 44807 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 44808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44809 ecx = ecx - esi; /* 0x2B0513DA: sub ecx, esi */ 44810 _flag_k = FK_CMP; 44811 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 44812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44813 eax = eax + edi; /* 0x2B0513DC: add eax, edi */ 44814 _flag_k = FK_ADD; 44815 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 44816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44817 ecx = ecx - edi; /* 0x2B0513DE: sub ecx, edi */ 44818 _flag_k = FK_CMP; 44819 PUSH32(esp, ecx); /* 0x2B0513E0: push ecx */ 44820 edx = eax + esi; /* 0x2B0513E1: lea edx, [eax + esi] */ 44821 PUSH32(esp, edx); /* 0x2B0513E4: push edx */ 44822 PUSH32(esp, eax); /* 0x2B0513E5: push eax */ 44823 RECOMP_ICALL(MEM32(0x2B0B51D4)); /* 0x2B0513E6: call dword ptr [0x2b0b51d4] */ 44824 RECOMP_FLAGS_IN(); 44825 edi = MEM32(ebx + 0x8); /* 0x2B0513EC: mov edi, dword ptr [ebx + 8] */ 44826 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 44827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44828 esp = esp + 0xCu; /* 0x2B0513EF: add esp, 0xc */ 44829 _flag_k = FK_ADD; 44830 PUSH32(esp, 0); /* 0x2B0513F2: push 0 */ 44831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 44832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44833 edi = edi - esi; /* 0x2B0513F4: sub edi, esi */ 44834 _flag_k = FK_CMP; 44835 PUSH32(esp, edi); /* 0x2B0513F6: push edi */ 44836 ecx = ebx; /* 0x2B0513F7: mov ecx, ebx */ 44837 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B0513F9: call dword ptr [0x2b0b5154] */ 44838 RECOMP_FLAGS_IN(); 44839 /* test LO8(eax), LO8(eax) */ /* 0x2B0513FF: test al, al */ 44840 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 44841 _cf = 0; 44842 _flag_k = FK_NARROW(FK_TEST, 24); 44843 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0514C3; /* 0x2B051401: je 0x2b0514c3 */ 44844 L_2B051407: 44845 PUSH32(esp, edi); /* 0x2B051407: push edi */ 44846 ecx = ebx; /* 0x2B051408: mov ecx, ebx */ 44847 RECOMP_ICALL(MEM32(0x2B0B5150)); /* 0x2B05140A: call dword ptr [0x2b0b5150] */ 44848 RECOMP_FLAGS_IN(); 44849 goto L_2B0514C3; /* 0x2B051410: jmp 0x2b0514c3 */ 44850 L_2B051415: 44851 /* test edi, edi */ /* 0x2B051415: test edi, edi */ 44852 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 44853 _cf = 0; 44854 _flag_k = FK_TEST; 44855 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051483; /* 0x2B051417: jbe 0x2b051483 */ 44856 L_2B051419: 44857 /* cmp edi, ecx */ /* 0x2B051419: cmp edi, ecx */ 44858 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 44859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44860 _flag_k = FK_CMP; 44861 if (CMP_NE(_flag_a, _flag_b)) goto L_2B051483; /* 0x2B05141B: jne 0x2b051483 */ 44862 L_2B05141D: 44863 ecx = MEM32(eax + 0x4); /* 0x2B05141D: mov ecx, dword ptr [eax + 4] */ 44864 /* test ecx, ecx */ /* 0x2B051420: test ecx, ecx */ 44865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 44866 _cf = 0; 44867 _flag_k = FK_TEST; 44868 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05142A; /* 0x2B051422: jne 0x2b05142a */ 44869 L_2B051424: 44870 ecx = MEM32(0x2B0B513C); /* 0x2B051424: mov ecx, dword ptr [0x2b0b513c] */ 44871 L_2B05142A: 44872 /* cmp MEM8(ecx + (-0x1)), 0xFEu */ /* 0x2B05142A: cmp byte ptr [ecx - 1], 0xfe */ 44873 _flag_a = (uint32_t)(MEM8(ecx + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 44874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44875 _flag_k = FK_NARROW(FK_CMP, 24); 44876 if (CMP_AE(_flag_a, _flag_b)) goto L_2B051483; /* 0x2B05142E: jae 0x2b051483 */ 44877 L_2B051430: 44878 ecx = MEM32(ebx + 0x4); /* 0x2B051430: mov ecx, dword ptr [ebx + 4] */ 44879 /* test ecx, ecx */ /* 0x2B051433: test ecx, ecx */ 44880 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 44881 _cf = 0; 44882 _flag_k = FK_TEST; 44883 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051457; /* 0x2B051435: je 0x2b051457 */ 44884 L_2B051437: 44885 edx = ecx + (-0x1); /* 0x2B051437: lea edx, [ecx - 1] */ 44886 SET_LO8(ecx, MEM8(edx)); /* 0x2B05143A: mov cl, byte ptr [edx] */ 44887 /* test LO8(ecx), LO8(ecx) */ /* 0x2B05143C: test cl, cl */ 44888 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 44889 _cf = 0; 44890 _flag_k = FK_NARROW(FK_TEST, 24); 44891 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05144B; /* 0x2B05143E: je 0x2b05144b */ 44892 L_2B051440: 44893 /* cmp LO8(ecx), 0xFFu */ /* 0x2B051440: cmp cl, 0xff */ 44894 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 44895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44896 _flag_k = FK_NARROW(FK_CMP, 24); 44897 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B05144B; /* 0x2B051443: je 0x2b05144b */ 44898 L_2B051445: 44899 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 44900 SET_LO8(ecx, LO8(ecx) - 1); /* 0x2B051445: dec cl */ 44901 _flag_k = FK_NARROW(FK_DEC, 24); 44902 MEM8(edx) = (uint8_t)(LO8(ecx)); /* 0x2B051447: mov byte ptr [edx], cl */ 44903 goto L_2B051457; /* 0x2B051449: jmp 0x2b051457 */ 44904 L_2B05144B: 44905 PUSH32(esp, edx); /* 0x2B05144B: push edx */ 44906 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B05144C: call 0x2b0ab1ba */ /* not lifted */ 44907 RECOMP_FLAGS_IN(); 44908 eax = MEM32(ebp + (-0x4)); /* 0x2B051451: mov eax, dword ptr [ebp - 4] */ 44909 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 44910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44911 esp = esp + 4; /* 0x2B051454: add esp, 4 */ 44912 _flag_k = FK_ADD; 44913 L_2B051457: 44914 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 44915 edx = 0; /* 0x2B051457: xor edx, edx */ 44916 _cf = 0; 44917 _flag_k = FK_TEST; 44918 MEM32(ebx + 0x4) = edx; /* 0x2B051459: mov dword ptr [ebx + 4], edx */ 44919 MEM32(ebx + 0x8) = edx; /* 0x2B05145C: mov dword ptr [ebx + 8], edx */ 44920 MEM32(ebx + 0xC) = edx; /* 0x2B05145F: mov dword ptr [ebx + 0xc], edx */ 44921 ecx = MEM32(eax + 0x4); /* 0x2B051462: mov ecx, dword ptr [eax + 4] */ 44922 /* cmp ecx, edx */ /* 0x2B051465: cmp ecx, edx */ 44923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 44924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 44925 _flag_k = FK_CMP; 44926 if (CMP_NE(_flag_a, _flag_b)) goto L_2B05146F; /* 0x2B051467: jne 0x2b05146f */ 44927 L_2B051469: 44928 ecx = MEM32(0x2B0B513C); /* 0x2B051469: mov ecx, dword ptr [0x2b0b513c] */ 44929 L_2B05146F: 44930 MEM32(ebx + 0x4) = ecx; /* 0x2B05146F: mov dword ptr [ebx + 4], ecx */ 44931 edx = MEM32(eax + 0x8); /* 0x2B051472: mov edx, dword ptr [eax + 8] */ 44932 MEM32(ebx + 0x8) = edx; /* 0x2B051475: mov dword ptr [ebx + 8], edx */ 44933 edx = MEM32(eax + 0xC); /* 0x2B051478: mov edx, dword ptr [eax + 0xc] */ 44934 MEM32(ebx + 0xC) = edx; /* 0x2B05147B: mov dword ptr [ebx + 0xc], edx */ 44935 _flag_a = (uint32_t)(MEM8(ecx + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 44936 MEM8(ecx + (-0x1)) = (uint8_t)(MEM8(ecx + (-0x1)) + 1); /* 0x2B05147E: inc byte ptr [ecx - 1] */ 44937 _flag_k = FK_NARROW(FK_INC, 24); 44938 goto L_2B0514C6; /* 0x2B051481: jmp 0x2b0514c6 */ 44939 L_2B051483: 44940 PUSH32(esp, 1); /* 0x2B051483: push 1 */ 44941 PUSH32(esp, edi); /* 0x2B051485: push edi */ 44942 ecx = ebx; /* 0x2B051486: mov ecx, ebx */ 44943 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B051488: call dword ptr [0x2b0b5154] */ 44944 RECOMP_FLAGS_IN(); 44945 /* test LO8(eax), LO8(eax) */ /* 0x2B05148E: test al, al */ 44946 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 44947 _cf = 0; 44948 _flag_k = FK_NARROW(FK_TEST, 24); 44949 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0514C3; /* 0x2B051490: je 0x2b0514c3 */ 44950 L_2B051492: 44951 eax = MEM32(ebp + (-0x4)); /* 0x2B051492: mov eax, dword ptr [ebp - 4] */ 44952 eax = MEM32(eax + 0x4); /* 0x2B051495: mov eax, dword ptr [eax + 4] */ 44953 /* test eax, eax */ /* 0x2B051498: test eax, eax */ 44954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 44955 _cf = 0; 44956 _flag_k = FK_TEST; 44957 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0514A1; /* 0x2B05149A: jne 0x2b0514a1 */ 44958 L_2B05149C: 44959 eax = MEM32(0x2B0B513C); /* 0x2B05149C: mov eax, dword ptr [0x2b0b513c] */ 44960 L_2B0514A1: 44961 ecx = edi; /* 0x2B0514A1: mov ecx, edi */ 44962 edi = MEM32(ebx + 0x4); /* 0x2B0514A3: mov edi, dword ptr [ebx + 4] */ 44963 edx = ecx; /* 0x2B0514A6: mov edx, ecx */ 44964 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B0514A8: shr ecx, 2 */ 44965 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 44966 ecx = ecx >> 2u; /* 0x2B0514A8: shr ecx, 2 */ 44967 esi = eax; /* 0x2B0514AB: mov esi, eax */ 44968 eax = MEM32(ebp + 0x8); /* 0x2B0514AD: mov eax, dword ptr [ebp + 8] */ 44969 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0514B0: 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; } 44970 ecx = edx; /* 0x2B0514B2: mov ecx, edx */ 44971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 44972 ecx = ecx & 3; /* 0x2B0514B4: and ecx, 3 */ 44973 _cf = 0; 44974 _flag_k = FK_TEST; 44975 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B0514B7: 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; } 44976 ecx = MEM32(ebx + 0x4); /* 0x2B0514B9: mov ecx, dword ptr [ebx + 4] */ 44977 MEM32(ebx + 0x8) = eax; /* 0x2B0514BC: mov dword ptr [ebx + 8], eax */ 44978 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B0514BF: mov byte ptr [ecx + eax], 0 */ 44979 L_2B0514C3: 44980 eax = MEM32(ebp + (-0x4)); /* 0x2B0514C3: mov eax, dword ptr [ebp - 4] */ 44981 L_2B0514C6: 44982 ecx = MEM32(ebp + 0xC); /* 0x2B0514C6: mov ecx, dword ptr [ebp + 0xc] */ 44983 /* test ecx, ecx */ /* 0x2B0514C9: test ecx, ecx */ 44984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 44985 _cf = 0; 44986 _flag_k = FK_TEST; 44987 edi = POP32_VAL(esp); /* 0x2B0514CB: pop edi */ 44988 ebx = POP32_VAL(esp); /* 0x2B0514CC: pop ebx */ 44989 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0514DA; /* 0x2B0514CD: je 0x2b0514da */ 44990 L_2B0514CF: 44991 edx = MEM32(eax + 0x10); /* 0x2B0514CF: mov edx, dword ptr [eax + 0x10] */ 44992 MEM32(ecx) = edx; /* 0x2B0514D2: mov dword ptr [ecx], edx */ 44993 edx = MEM32(eax + 0x14); /* 0x2B0514D4: mov edx, dword ptr [eax + 0x14] */ 44994 MEM32(ecx + 0x4) = edx; /* 0x2B0514D7: mov dword ptr [ecx + 4], edx */ 44995 L_2B0514DA: 44996 edx = MEM32(eax + 0x18); /* 0x2B0514DA: mov edx, dword ptr [eax + 0x18] */ 44997 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 44998 ecx = 0; /* 0x2B0514DD: xor ecx, ecx */ 44999 _cf = 0; 45000 _flag_k = FK_TEST; 45001 /* test edx, edx */ /* 0x2B0514DF: test edx, edx */ 45002 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 45003 _cf = 0; 45004 _flag_k = FK_TEST; 45005 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B0514E1: setne cl */ 45006 esi = POP32_VAL(esp); /* 0x2B0514E4: pop esi */ 45007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 45008 ecx = ecx + 1; /* 0x2B0514E5: inc ecx */ 45009 _flag_k = FK_INC; 45010 eax = ecx; /* 0x2B0514E6: mov eax, ecx */ 45011 esp = ebp; /* 0x2B0514E8: mov esp, ebp */ 45012 ebp = POP32_VAL(esp); /* 0x2B0514EA: pop ebp */ 45013 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0514EB: ret 8 */ 45014 L_2B0514EE: 45015 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 45016 eax = 0; /* 0x2B0514EE: xor eax, eax */ 45017 _cf = 0; 45018 _flag_k = FK_TEST; 45019 esi = POP32_VAL(esp); /* 0x2B0514F0: pop esi */ 45020 esp = ebp; /* 0x2B0514F1: mov esp, ebp */ 45021 ebp = POP32_VAL(esp); /* 0x2B0514F3: pop ebp */ 45022 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0514F4: ret 8 */ 45023 RECOMP_REGS_OUT(); 45024 } 45025 45026 void sub_2B0514C3(void) { 45027 int _fpu_cmp = 0; 45028 uint32_t _cf = 0; 45029 int _df = 1; 45030 uint32_t _flag_k = FK_NONE; 45031 uint32_t _flag_a = 0, _flag_b = 0; 45032 uint32_t _itail_tgt = 0; 45033 RECOMP_REGS_LOCALS 45034 RECOMP_ENTER(0x2B0514C3u); 45035 45036 L_2B0514C3: 45037 eax = MEM32(ebp + (-0x4)); /* 0x2B0514C3: mov eax, dword ptr [ebp - 4] */ 45038 ecx = MEM32(ebp + 0xC); /* 0x2B0514C6: mov ecx, dword ptr [ebp + 0xc] */ 45039 /* test ecx, ecx */ /* 0x2B0514C9: test ecx, ecx */ 45040 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 45041 _cf = 0; 45042 _flag_k = FK_TEST; 45043 edi = POP32_VAL(esp); /* 0x2B0514CB: pop edi */ 45044 ebx = POP32_VAL(esp); /* 0x2B0514CC: pop ebx */ 45045 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0514DA; /* 0x2B0514CD: je 0x2b0514da */ 45046 L_2B0514CF: 45047 edx = MEM32(eax + 0x10); /* 0x2B0514CF: mov edx, dword ptr [eax + 0x10] */ 45048 MEM32(ecx) = edx; /* 0x2B0514D2: mov dword ptr [ecx], edx */ 45049 edx = MEM32(eax + 0x14); /* 0x2B0514D4: mov edx, dword ptr [eax + 0x14] */ 45050 MEM32(ecx + 0x4) = edx; /* 0x2B0514D7: mov dword ptr [ecx + 4], edx */ 45051 L_2B0514DA: 45052 edx = MEM32(eax + 0x18); /* 0x2B0514DA: mov edx, dword ptr [eax + 0x18] */ 45053 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 45054 ecx = 0; /* 0x2B0514DD: xor ecx, ecx */ 45055 _cf = 0; 45056 _flag_k = FK_TEST; 45057 /* test edx, edx */ /* 0x2B0514DF: test edx, edx */ 45058 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 45059 _cf = 0; 45060 _flag_k = FK_TEST; 45061 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B0514E1: setne cl */ 45062 esi = POP32_VAL(esp); /* 0x2B0514E4: pop esi */ 45063 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 45064 ecx = ecx + 1; /* 0x2B0514E5: inc ecx */ 45065 _flag_k = FK_INC; 45066 eax = ecx; /* 0x2B0514E6: mov eax, ecx */ 45067 esp = ebp; /* 0x2B0514E8: mov esp, ebp */ 45068 ebp = POP32_VAL(esp); /* 0x2B0514EA: pop ebp */ 45069 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B0514EB: ret 8 */ 45070 RECOMP_REGS_OUT(); 45071 } 45072 45073 void sub_2B051500(void) { 45074 int _fpu_cmp = 0; 45075 uint32_t _cf = 0; 45076 int _df = 1; 45077 uint32_t _flag_k = FK_NONE; 45078 uint32_t _flag_a = 0, _flag_b = 0; 45079 uint32_t _itail_tgt = 0; 45080 RECOMP_REGS_LOCALS 45081 RECOMP_ENTER(0x2B051500u); 45082 45083 L_2B051500: 45084 PUSH32(esp, ebp); /* 0x2B051500: push ebp */ 45085 ebp = esp; /* 0x2B051501: mov ebp, esp */ 45086 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x2B051503: mov al, byte ptr [ebp + 8] */ 45087 /* test LO8(eax), LO8(eax) */ /* 0x2B051506: test al, al */ 45088 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 45089 _cf = 0; 45090 _flag_k = FK_NARROW(FK_TEST, 24); 45091 eax = MEM32(ecx + 0x1C); /* 0x2B051508: mov eax, dword ptr [ecx + 0x1c] */ 45092 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051514; /* 0x2B05150B: je 0x2b051514 */ 45093 L_2B05150D: 45094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFEFFFFFFu); 45095 eax = eax & 0xFEFFFFFFu; /* 0x2B05150D: and eax, 0xfeffffff */ 45096 _cf = 0; 45097 _flag_k = FK_TEST; 45098 goto L_2B051519; /* 0x2B051512: jmp 0x2b051519 */ 45099 L_2B051514: 45100 _flag_a = (uint32_t)((eax | 0x01000000u)); _flag_b = (uint32_t)((eax | 0x01000000u)); 45101 eax = eax | 0x01000000u; /* 0x2B051514: or eax, 0x1000000 */ 45102 _cf = 0; 45103 _flag_k = FK_TEST; 45104 L_2B051519: 45105 /* test eax, 0x02000000u */ /* 0x2B051519: test eax, 0x2000000 */ 45106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 45107 _cf = 0; 45108 _flag_k = FK_TEST; 45109 MEM32(ecx + 0x1C) = eax; /* 0x2B05151E: mov dword ptr [ecx + 0x1c], eax */ 45110 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B051531; /* 0x2B051521: jne 0x2b051531 */ 45111 L_2B051523: 45112 /* test eax, 0x01000000u */ /* 0x2B051523: test eax, 0x1000000 */ 45113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 45114 _cf = 0; 45115 _flag_k = FK_TEST; 45116 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051531; /* 0x2B051528: je 0x2b051531 */ 45117 L_2B05152A: 45118 _flag_a = (uint32_t)((eax | 0x00010000u)); _flag_b = (uint32_t)((eax | 0x00010000u)); 45119 eax = eax | 0x00010000u; /* 0x2B05152A: or eax, 0x10000 */ 45120 _cf = 0; 45121 _flag_k = FK_TEST; 45122 goto L_2B051536; /* 0x2B05152F: jmp 0x2b051536 */ 45123 L_2B051531: 45124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFEFFFFu); 45125 eax = eax & 0xFFFEFFFFu; /* 0x2B051531: and eax, 0xfffeffff */ 45126 _cf = 0; 45127 _flag_k = FK_TEST; 45128 L_2B051536: 45129 edx = MEM32(ecx + 0x14); /* 0x2B051536: mov edx, dword ptr [ecx + 0x14] */ 45130 MEM32(ecx + 0x1C) = eax; /* 0x2B051539: mov dword ptr [ecx + 0x1c], eax */ 45131 eax = MEM32(ecx + 0x10); /* 0x2B05153C: mov eax, dword ptr [ecx + 0x10] */ 45132 PUSH32(esp, esi); /* 0x2B05153F: push esi */ 45133 esi = eax; /* 0x2B051540: mov esi, eax */ 45134 _flag_a = (uint32_t)((esi | edx)); _flag_b = (uint32_t)((esi | edx)); 45135 esi = esi | edx; /* 0x2B051542: or esi, edx */ 45136 _cf = 0; 45137 _flag_k = FK_TEST; 45138 if (TEST_Z(_flag_a, _flag_b)) goto L_2B05155F; /* 0x2B051544: je 0x2b05155f */ 45139 L_2B051546: 45140 esi = MEM32(ecx + 0x18); /* 0x2B051546: mov esi, dword ptr [ecx + 0x18] */ 45141 /* test esi, esi */ /* 0x2B051549: test esi, esi */ 45142 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 45143 _cf = 0; 45144 _flag_k = FK_TEST; 45145 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05155F; /* 0x2B05154B: jne 0x2b05155f */ 45146 L_2B05154D: 45147 ecx = MEM32(ecx + 0x1C); /* 0x2B05154D: mov ecx, dword ptr [ecx + 0x1c] */ 45148 PUSH32(esp, ecx); /* 0x2B051550: push ecx */ 45149 PUSH32(esp, edx); /* 0x2B051551: push edx */ 45150 PUSH32(esp, eax); /* 0x2B051552: push eax */ 45151 RECOMP_ICALL(0x2B016630u); /* 0x2B051553: call 0x2b016630 */ /* not lifted */ 45152 RECOMP_FLAGS_IN(); 45153 ecx = eax; /* 0x2B051558: mov ecx, eax */ 45154 RECOMP_ICALL(0x2B016E20u); /* 0x2B05155A: call 0x2b016e20 */ /* not lifted */ 45155 RECOMP_FLAGS_IN(); 45156 L_2B05155F: 45157 esi = POP32_VAL(esp); /* 0x2B05155F: pop esi */ 45158 ebp = POP32_VAL(esp); /* 0x2B051560: pop ebp */ 45159 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B051561: ret 4 */ 45160 RECOMP_REGS_OUT(); 45161 } 45162 45163 void sub_2B051570(void) { 45164 int _fpu_cmp = 0; 45165 uint32_t _cf = 0; 45166 int _df = 1; 45167 uint32_t _flag_k = FK_NONE; 45168 uint32_t _flag_a = 0, _flag_b = 0; 45169 uint32_t _itail_tgt = 0; 45170 RECOMP_REGS_LOCALS 45171 RECOMP_ENTER(0x2B051570u); 45172 45173 L_2B051570: 45174 PUSH32(esp, ebp); /* 0x2B051570: push ebp */ 45175 ebp = esp; /* 0x2B051571: mov ebp, esp */ 45176 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x2B051573: mov al, byte ptr [ebp + 8] */ 45177 PUSH32(esp, esi); /* 0x2B051576: push esi */ 45178 esi = ecx; /* 0x2B051577: mov esi, ecx */ 45179 /* test LO8(eax), LO8(eax) */ /* 0x2B051579: test al, al */ 45180 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 45181 _cf = 0; 45182 _flag_k = FK_NARROW(FK_TEST, 24); 45183 eax = MEM32(esi + 0x1C); /* 0x2B05157B: mov eax, dword ptr [esi + 0x1c] */ 45184 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051587; /* 0x2B05157E: je 0x2b051587 */ 45185 L_2B051580: 45186 _flag_a = (uint32_t)((eax | 0x02000000u)); _flag_b = (uint32_t)((eax | 0x02000000u)); 45187 eax = eax | 0x02000000u; /* 0x2B051580: or eax, 0x2000000 */ 45188 _cf = 0; 45189 _flag_k = FK_TEST; 45190 goto L_2B05158C; /* 0x2B051585: jmp 0x2b05158c */ 45191 L_2B051587: 45192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFDFFFFFFu); 45193 eax = eax & 0xFDFFFFFFu; /* 0x2B051587: and eax, 0xfdffffff */ 45194 _cf = 0; 45195 _flag_k = FK_TEST; 45196 L_2B05158C: 45197 /* test eax, 0x02000000u */ /* 0x2B05158C: test eax, 0x2000000 */ 45198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x02000000u); 45199 _cf = 0; 45200 _flag_k = FK_TEST; 45201 MEM32(esi + 0x1C) = eax; /* 0x2B051591: mov dword ptr [esi + 0x1c], eax */ 45202 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0515A4; /* 0x2B051594: jne 0x2b0515a4 */ 45203 L_2B051596: 45204 /* test eax, 0x01000000u */ /* 0x2B051596: test eax, 0x1000000 */ 45205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u); 45206 _cf = 0; 45207 _flag_k = FK_TEST; 45208 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0515A4; /* 0x2B05159B: je 0x2b0515a4 */ 45209 L_2B05159D: 45210 _flag_a = (uint32_t)((eax | 0x00010000u)); _flag_b = (uint32_t)((eax | 0x00010000u)); 45211 eax = eax | 0x00010000u; /* 0x2B05159D: or eax, 0x10000 */ 45212 _cf = 0; 45213 _flag_k = FK_TEST; 45214 goto L_2B0515A9; /* 0x2B0515A2: jmp 0x2b0515a9 */ 45215 L_2B0515A4: 45216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFEFFFFu); 45217 eax = eax & 0xFFFEFFFFu; /* 0x2B0515A4: and eax, 0xfffeffff */ 45218 _cf = 0; 45219 _flag_k = FK_TEST; 45220 L_2B0515A9: 45221 ecx = esi; /* 0x2B0515A9: mov ecx, esi */ 45222 MEM32(esi + 0x1C) = eax; /* 0x2B0515AB: mov dword ptr [esi + 0x1c], eax */ 45223 RECOMP_ICALL(0x2B0515E0u); /* 0x2B0515AE: call 0x2b0515e0 */ /* not lifted */ 45224 RECOMP_FLAGS_IN(); 45225 eax = MEM32(esi + 0x10); /* 0x2B0515B3: mov eax, dword ptr [esi + 0x10] */ 45226 ecx = MEM32(esi + 0x14); /* 0x2B0515B6: mov ecx, dword ptr [esi + 0x14] */ 45227 edx = eax; /* 0x2B0515B9: mov edx, eax */ 45228 _flag_a = (uint32_t)((edx | ecx)); _flag_b = (uint32_t)((edx | ecx)); 45229 edx = edx | ecx; /* 0x2B0515BB: or edx, ecx */ 45230 _cf = 0; 45231 _flag_k = FK_TEST; 45232 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0515D8; /* 0x2B0515BD: je 0x2b0515d8 */ 45233 L_2B0515BF: 45234 edx = MEM32(esi + 0x18); /* 0x2B0515BF: mov edx, dword ptr [esi + 0x18] */ 45235 /* test edx, edx */ /* 0x2B0515C2: test edx, edx */ 45236 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 45237 _cf = 0; 45238 _flag_k = FK_TEST; 45239 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0515D8; /* 0x2B0515C4: jne 0x2b0515d8 */ 45240 L_2B0515C6: 45241 edx = MEM32(esi + 0x1C); /* 0x2B0515C6: mov edx, dword ptr [esi + 0x1c] */ 45242 PUSH32(esp, edx); /* 0x2B0515C9: push edx */ 45243 PUSH32(esp, ecx); /* 0x2B0515CA: push ecx */ 45244 PUSH32(esp, eax); /* 0x2B0515CB: push eax */ 45245 RECOMP_ICALL(0x2B016630u); /* 0x2B0515CC: call 0x2b016630 */ /* not lifted */ 45246 RECOMP_FLAGS_IN(); 45247 ecx = eax; /* 0x2B0515D1: mov ecx, eax */ 45248 RECOMP_ICALL(0x2B016E20u); /* 0x2B0515D3: call 0x2b016e20 */ /* not lifted */ 45249 RECOMP_FLAGS_IN(); 45250 L_2B0515D8: 45251 esi = POP32_VAL(esp); /* 0x2B0515D8: pop esi */ 45252 ebp = POP32_VAL(esp); /* 0x2B0515D9: pop ebp */ 45253 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0515DA: ret 4 */ 45254 RECOMP_REGS_OUT(); 45255 } 45256 45257 void sub_2B0515E0(void) { 45258 int _fpu_cmp = 0; 45259 uint32_t _cf = 0; 45260 int _df = 1; 45261 uint32_t _flag_k = FK_NONE; 45262 uint32_t _flag_a = 0, _flag_b = 0; 45263 uint32_t _itail_tgt = 0; 45264 RECOMP_REGS_LOCALS 45265 RECOMP_ENTER(0x2B0515E0u); 45266 45267 L_2B0515E0: 45268 PUSH32(esp, ebp); /* 0x2B0515E0: push ebp */ 45269 ebp = esp; /* 0x2B0515E1: mov ebp, esp */ 45270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1ACu); 45271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 45272 esp = esp - 0x1ACu; /* 0x2B0515E3: sub esp, 0x1ac */ 45273 _flag_k = FK_CMP; 45274 PUSH32(esp, esi); /* 0x2B0515E9: push esi */ 45275 esi = ecx; /* 0x2B0515EA: mov esi, ecx */ 45276 /* test MEM32(esi + 0x1C), 0x02000000u */ /* 0x2B0515EC: test dword ptr [esi + 0x1c], 0x2000000 */ 45277 _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(0x02000000u); 45278 _cf = 0; 45279 _flag_k = FK_TEST; 45280 eax = MEM32(esi + 0x28); /* 0x2B0515F3: mov eax, dword ptr [esi + 0x28] */ 45281 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0516FB; /* 0x2B0515F6: je 0x2b0516fb */ 45282 L_2B0515FC: 45283 /* test eax, eax */ /* 0x2B0515FC: test eax, eax */ 45284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 45285 _cf = 0; 45286 _flag_k = FK_TEST; 45287 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B051710; /* 0x2B0515FE: jne 0x2b051710 */ 45288 L_2B051604: 45289 eax = MEM32(0x2B0B6118); /* 0x2B051604: mov eax, dword ptr [0x2b0b6118] */ 45290 ecx = MEM32(eax); /* 0x2B051609: mov ecx, dword ptr [eax] */ 45291 PUSH32(esp, ebx); /* 0x2B05160B: push ebx */ 45292 PUSH32(esp, edi); /* 0x2B05160C: push edi */ 45293 edi = MEM32(0x2B0B6124); /* 0x2B05160D: mov edi, dword ptr [0x2b0b6124] */ 45294 RECOMP_ICALL(edi); /* 0x2B051613: call edi */ 45295 RECOMP_FLAGS_IN(); 45296 ebx = MEM32(0x2B0B51F0); /* 0x2B051615: mov ebx, dword ptr [0x2b0b51f0] */ 45297 PUSH32(esp, eax); /* 0x2B05161B: push eax */ 45298 ecx = ebp + (-0x12C); /* 0x2B05161C: lea ecx, [ebp - 0x12c] */ 45299 PUSH32(esp, 0x2B0E8508u); /* 0x2B051622: push 0x2b0e8508 */ 45300 PUSH32(esp, ecx); /* 0x2B051627: push ecx */ 45301 RECOMP_ICALL(ebx); /* 0x2B051628: call ebx */ 45302 RECOMP_FLAGS_IN(); 45303 edx = ebp + (-0x28); /* 0x2B05162A: lea edx, [ebp - 0x28] */ 45304 PUSH32(esp, edx); /* 0x2B05162D: push edx */ 45305 eax = ebp + (-0x12C); /* 0x2B05162E: lea eax, [ebp - 0x12c] */ 45306 PUSH32(esp, eax); /* 0x2B051634: push eax */ 45307 RECOMP_ICALL(MEM32(0x2B0B5254)); /* 0x2B051635: call dword ptr [0x2b0b5254] */ 45308 RECOMP_FLAGS_IN(); 45309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 45310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 45311 esp = esp + 0x14u; /* 0x2B05163B: add esp, 0x14 */ 45312 _flag_k = FK_ADD; 45313 /* test eax, eax */ /* 0x2B05163E: test eax, eax */ 45314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 45315 _cf = 0; 45316 _flag_k = FK_TEST; 45317 if (TEST_NS(_flag_a, _flag_b)) goto L_2B051652; /* 0x2B051640: jge 0x2b051652 */ 45318 L_2B051642: 45319 ecx = ebp + (-0x12C); /* 0x2B051642: lea ecx, [ebp - 0x12c] */ 45320 PUSH32(esp, ecx); /* 0x2B051648: push ecx */ 45321 RECOMP_ICALL(MEM32(0x2B0B5250)); /* 0x2B051649: call dword ptr [0x2b0b5250] */ 45322 RECOMP_FLAGS_IN(); 45323 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 45324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 45325 esp = esp + 4; /* 0x2B05164F: add esp, 4 */ 45326 _flag_k = FK_ADD; 45327 L_2B051652: 45328 eax = MEM32(esi + 0x4); /* 0x2B051652: mov eax, dword ptr [esi + 4] */ 45329 /* test eax, eax */ /* 0x2B051655: test eax, eax */ 45330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 45331 _cf = 0; 45332 _flag_k = FK_TEST; 45333 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B05165E; /* 0x2B051657: jne 0x2b05165e */ 45334 L_2B051659: 45335 eax = MEM32(0x2B0B513C); /* 0x2B051659: mov eax, dword ptr [0x2b0b513c] */ 45336 L_2B05165E: 45337 edx = MEM32(0x2B0B6118); /* 0x2B05165E: mov edx, dword ptr [0x2b0b6118] */ 45338 ecx = MEM32(edx); /* 0x2B051664: mov ecx, dword ptr [edx] */ 45339 PUSH32(esp, eax); /* 0x2B051666: push eax */ 45340 RECOMP_ICALL(edi); /* 0x2B051667: call edi */ 45341 RECOMP_FLAGS_IN(); 45342 PUSH32(esp, eax); /* 0x2B051669: push eax */ 45343 eax = ebp + (-0x12C); /* 0x2B05166A: lea eax, [ebp - 0x12c] */ 45344 PUSH32(esp, 0x2B0E84F8u); /* 0x2B051670: push 0x2b0e84f8 */ 45345 PUSH32(esp, eax); /* 0x2B051675: push eax */ 45346 RECOMP_ICALL(ebx); /* 0x2B051676: call ebx */ 45347 RECOMP_FLAGS_IN(); 45348 ecx = ebp + (-0x12C); /* 0x2B051678: lea ecx, [ebp - 0x12c] */ 45349 PUSH32(esp, 0x2B0E84F4u); /* 0x2B05167E: push 0x2b0e84f4 */ 45350 PUSH32(esp, ecx); /* 0x2B051683: push ecx */ 45351 RECOMP_ICALL(MEM32(0x2B0B51C8)); /* 0x2B051684: call dword ptr [0x2b0b51c8] */ 45352 RECOMP_FLAGS_IN(); 45353 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 45354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 45355 esp = esp + 0x18u; /* 0x2B05168A: add esp, 0x18 */ 45356 _flag_k = FK_ADD; 45357 /* test eax, eax */ /* 0x2B05168D: test eax, eax */ 45358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 45359 _cf = 0; 45360 _flag_k = FK_TEST; 45361 edi = POP32_VAL(esp); /* 0x2B05168F: pop edi */ 45362 MEM32(esi + 0x28) = eax; /* 0x2B051690: mov dword ptr [esi + 0x28], eax */ 45363 ebx = POP32_VAL(esp); /* 0x2B051693: pop ebx */ 45364 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051710; /* 0x2B051694: je 0x2b051710 */ 45365 L_2B051696: 45366 PUSH32(esp, 0); /* 0x2B051696: push 0 */ 45367 RECOMP_ICALL(MEM32(0x2B0B51DC)); /* 0x2B051698: call dword ptr [0x2b0b51dc] */ 45368 RECOMP_FLAGS_IN(); 45369 edx = ebp + (-0x4); /* 0x2B05169E: lea edx, [ebp - 4] */ 45370 PUSH32(esp, edx); /* 0x2B0516A1: push edx */ 45371 MEM32(ebp + (-0x4)) = eax; /* 0x2B0516A2: mov dword ptr [ebp - 4], eax */ 45372 RECOMP_ICALL(MEM32(0x2B0B520C)); /* 0x2B0516A5: call dword ptr [0x2b0b520c] */ 45373 RECOMP_FLAGS_IN(); 45374 PUSH32(esp, eax); /* 0x2B0516AB: push eax */ 45375 PUSH32(esp, 0x2B0E84F0u); /* 0x2B0516AC: push 0x2b0e84f0 */ 45376 eax = ebp + (-0x1AC); /* 0x2B0516B1: lea eax, [ebp - 0x1ac] */ 45377 PUSH32(esp, 0x80u); /* 0x2B0516B7: push 0x80 */ 45378 PUSH32(esp, eax); /* 0x2B0516BC: push eax */ 45379 RECOMP_ICALL(MEM32(0x2B0B5208)); /* 0x2B0516BD: call dword ptr [0x2b0b5208] */ 45380 RECOMP_FLAGS_IN(); 45381 eax = MEM32(esi + 0x4); /* 0x2B0516C3: mov eax, dword ptr [esi + 4] */ 45382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 45383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 45384 esp = esp + 0x18u; /* 0x2B0516C6: add esp, 0x18 */ 45385 _flag_k = FK_ADD; 45386 /* test eax, eax */ /* 0x2B0516C9: test eax, eax */ 45387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 45388 _cf = 0; 45389 _flag_k = FK_TEST; 45390 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0516D2; /* 0x2B0516CB: jne 0x2b0516d2 */ 45391 L_2B0516CD: 45392 eax = MEM32(0x2B0B513C); /* 0x2B0516CD: mov eax, dword ptr [0x2b0b513c] */ 45393 L_2B0516D2: 45394 edx = MEM32(esi + 0x28); /* 0x2B0516D2: mov edx, dword ptr [esi + 0x28] */ 45395 ecx = ebp + (-0x1AC); /* 0x2B0516D5: lea ecx, [ebp - 0x1ac] */ 45396 PUSH32(esp, ecx); /* 0x2B0516DB: push ecx */ 45397 PUSH32(esp, eax); /* 0x2B0516DC: push eax */ 45398 PUSH32(esp, 0x2B0E84D0u); /* 0x2B0516DD: push 0x2b0e84d0 */ 45399 PUSH32(esp, edx); /* 0x2B0516E2: push edx */ 45400 RECOMP_ICALL(MEM32(0x2B0B5200)); /* 0x2B0516E3: call dword ptr [0x2b0b5200] */ 45401 RECOMP_FLAGS_IN(); 45402 eax = MEM32(esi + 0x28); /* 0x2B0516E9: mov eax, dword ptr [esi + 0x28] */ 45403 PUSH32(esp, eax); /* 0x2B0516EC: push eax */ 45404 RECOMP_ICALL(MEM32(0x2B0B5204)); /* 0x2B0516ED: call dword ptr [0x2b0b5204] */ 45405 RECOMP_FLAGS_IN(); 45406 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 45407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 45408 esp = esp + 0x14u; /* 0x2B0516F3: add esp, 0x14 */ 45409 _flag_k = FK_ADD; 45410 esi = POP32_VAL(esp); /* 0x2B0516F6: pop esi */ 45411 esp = ebp; /* 0x2B0516F7: mov esp, ebp */ 45412 ebp = POP32_VAL(esp); /* 0x2B0516F9: pop ebp */ 45413 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0516FA: ret */ 45414 L_2B0516FB: 45415 /* test eax, eax */ /* 0x2B0516FB: test eax, eax */ 45416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 45417 _cf = 0; 45418 _flag_k = FK_TEST; 45419 if (TEST_Z(_flag_a, _flag_b)) goto L_2B051710; /* 0x2B0516FD: je 0x2b051710 */ 45420 L_2B0516FF: 45421 PUSH32(esp, eax); /* 0x2B0516FF: push eax */ 45422 RECOMP_ICALL(MEM32(0x2B0B51CC)); /* 0x2B051700: call dword ptr [0x2b0b51cc] */ 45423 RECOMP_FLAGS_IN(); 45424 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 45425 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 45426 esp = esp + 4; /* 0x2B051706: add esp, 4 */ 45427 _flag_k = FK_ADD; 45428 MEM32(esi + 0x28) = 0; /* 0x2B051709: mov dword ptr [esi + 0x28], 0 */ 45429 L_2B051710: 45430 esi = POP32_VAL(esp); /* 0x2B051710: pop esi */ 45431 esp = ebp; /* 0x2B051711: mov esp, ebp */ 45432 ebp = POP32_VAL(esp); /* 0x2B051713: pop ebp */ 45433 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B051714: ret */ 45434 RECOMP_REGS_OUT(); 45435 } 45436 45437 void sub_2B051720(void) { 45438 int _fpu_cmp = 0; 45439 uint32_t _cf = 0; 45440 int _df = 1; 45441 uint32_t _flag_k = FK_NONE; 45442 uint32_t _flag_a = 0, _flag_b = 0; 45443 uint32_t _itail_tgt = 0; 45444 RECOMP_REGS_LOCALS 45445 RECOMP_ENTER(0x2B051720u); 45446 45447 L_2B051720: 45448 PUSH32(esp, ebp); /* 0x2B051720: push ebp */ 45449 L_2B051721: 45450 ebp = esp; /* 0x2B051721: mov ebp, esp */ 45451 L_2B051723: 45452 PUSH32(esp, esi); /* 0x2B051723: push esi */ 45453 L_2B051724: 45454 esi = ecx; /* 0x2B051724: mov esi, ecx */ 45455 L_2B051726: 45456 ecx = MEM32(esi + 0x10); /* 0x2B051726: mov ecx, dword ptr [esi + 0x10] */ 45457 L_2B051729: 45458 eax = MEM32(esi + 0x14); /* 0x2B051729: mov eax, dword ptr [esi + 0x14] */ 45459 L_2B05172C: 45460 _flag_a = (uint32_t)((ecx | eax)); _flag_b = (uint32_t)((ecx | eax)); 45461 ecx = ecx | eax; /* 0x2B05172C: or ecx, eax */ 45462 _cf = 0; 45463 _flag_k = FK_TEST; 45464 L_2B05172E: 45465 ecx = MEM32(esi + 0x18); /* 0x2B05172E: mov ecx, dword ptr [esi + 0x18] */ 45466 L_2B051731: 45467 PUSH32(esp, edi); /* 0x2B051731: push edi */ 45468 L_2B051732: 45469 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2B051763; /* 0x2B051732: jne 0x2b051763 */ 45470 L_2B051734: 45471 /* test ecx, ecx */ /* 0x2B051734: test ecx, ecx */ 45472 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 45473 _cf = 0; 45474 _flag_k = FK_TEST; 45475 L_2B051736: 45476 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2B051767; /* 0x2B051736: jne 0x2b051767 */ 45477 L_2B051738: 45478 edi = MEM32(ebp + 0x8); /* 0x2B051738: mov edi, dword ptr [ebp + 8] */ 45479 L_2B05173B: 45480 PUSH32(esp, 0); /* 0x2B05173B: push 0 */ 45481 L_2B05173D: 45482 PUSH32(esp, 0x2B0E1C50u); /* 0x2B05173D: push 0x2b0e1c50 */ 45483 L_2B051742: 45484 ecx = edi; /* 0x2B051742: mov ecx, edi */ 45485 L_2B051744: 45486 RECOMP_ICALL(0x2B04E800u); /* 0x2B051744: call 0x2b04e800 */ /* not lifted */ 45487 RECOMP_FLAGS_IN(); 45488 L_2B051749: 45489 PUSH32(esp, 1); /* 0x2B051749: push 1 */ 45490 L_2B05174B: 45491 PUSH32(esp, 0x2B0E1C50u); /* 0x2B05174B: push 0x2b0e1c50 */ 45492 L_2B051750: 45493 ecx = edi; /* 0x2B051750: mov ecx, edi */ 45494 L_2B051752: 45495 MEM32(esi + 0x20) = eax; /* 0x2B051752: mov dword ptr [esi + 0x20], eax */ 45496 L_2B051755: 45497 RECOMP_ICALL(0x2B04E800u); /* 0x2B051755: call 0x2b04e800 */ /* not lifted */ 45498 RECOMP_FLAGS_IN(); 45499 L_2B05175A: 45500 edi = POP32_VAL(esp); /* 0x2B05175A: pop edi */ 45501 L_2B05175B: 45502 MEM32(esi + 0x24) = eax; /* 0x2B05175B: mov dword ptr [esi + 0x24], eax */ 45503 L_2B05175E: 45504 esi = POP32_VAL(esp); /* 0x2B05175E: pop esi */ 45505 L_2B05175F: 45506 ebp = POP32_VAL(esp); /* 0x2B05175F: pop ebp */ 45507 L_2B051760: 45508 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B051760: ret 4 */ 45509 L_2B051763: 45510 /* test ecx, ecx */ /* 0x2B051763: test ecx, ecx */ 45511 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 45512 _cf = 0; 45513 _flag_k = FK_TEST; 45514 L_2B051765: 45515 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B051792; /* 0x2B051765: je 0x2b051792 */ 45516 L_2B051767: 45517 edi = MEM32(ebp + 0x8); /* 0x2B051767: mov edi, dword ptr [ebp + 8] */ 45518 L_2B05176A: 45519 PUSH32(esp, 0); /* 0x2B05176A: push 0 */ 45520 L_2B05176C: 45521 PUSH32(esp, 0x2B0E83E4u); /* 0x2B05176C: push 0x2b0e83e4 */ 45522 L_2B051771: 45523 ecx = edi; /* 0x2B051771: mov ecx, edi */ 45524 L_2B051773: 45525 RECOMP_ICALL(0x2B04E800u); /* 0x2B051773: call 0x2b04e800 */ /* not lifted */ 45526 RECOMP_FLAGS_IN(); 45527 L_2B051778: 45528 PUSH32(esp, 1); /* 0x2B051778: push 1 */ 45529 L_2B05177A: 45530 PUSH32(esp, 0x2B0E83E4u); /* 0x2B05177A: push 0x2b0e83e4 */ 45531 L_2B05177F: 45532 ecx = edi; /* 0x2B05177F: mov ecx, edi */ 45533 L_2B051781: 45534 MEM32(esi + 0x20) = eax; /* 0x2B051781: mov dword ptr [esi + 0x20], eax */ 45535 L_2B051784: 45536 RECOMP_ICALL(0x2B04E800u); /* 0x2B051784: call 0x2b04e800 */ /* not lifted */ 45537 RECOMP_FLAGS_IN(); 45538 L_2B051789: 45539 edi = POP32_VAL(esp); /* 0x2B051789: pop edi */ 45540 L_2B05178A: 45541 MEM32(esi + 0x24) = eax; /* 0x2B05178A: mov dword ptr [esi + 0x24], eax */ 45542 L_2B05178D: 45543 esi = POP32_VAL(esp); /* 0x2B05178D: pop esi */ 45544 L_2B05178E: 45545 ebp = POP32_VAL(esp); /* 0x2B05178E: pop ebp */ 45546 L_2B05178F: 45547 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B05178F: ret 4 */ 45548 L_2B051792: 45549 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 45550 ecx = 0; /* 0x2B051792: xor ecx, ecx */ 45551 _cf = 0; 45552 _flag_k = FK_TEST; 45553 L_2B051794: 45554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 45555 eax = eax & 0xFFu; /* 0x2B051794: and eax, 0xff */ 45556 _cf = 0; 45557 _flag_k = FK_TEST; 45558 L_2B051799: 45559 /* test ecx, ecx */ /* 0x2B051799: test ecx, ecx */ 45560 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 45561 _cf = 0; 45562 _flag_k = FK_TEST; 45563 L_2B05179B: 45564 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_2B051940; /* 0x2B05179B: ja 0x2b051940 */ 45565 L_2B0517A1: 45566 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_B, _cf)) goto L_2B0517AC; /* 0x2B0517A1: jb 0x2b0517ac */ 45567 L_2B0517A3: 45568 /* cmp eax, 0xAu */ /* 0x2B0517A3: cmp eax, 0xa */ 45569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 45570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 45571 _flag_k = FK_CMP; 45572 L_2B0517A6: 45573 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_2B051940; /* 0x2B0517A6: ja 0x2b051940 */ 45574 L_2B0517AC: 45575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 45576 eax = eax - 1; /* 0x2B0517AC: dec eax */ 45577 _flag_k = FK_DEC; 45578 L_2B0517AD: 45579 /* cmp eax, 9 */ /* 0x2B0517AD: cmp eax, 9 */ 45580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(9); 45581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 45582 _flag_k = FK_CMP; 45583 L_2B0517B0: 45584 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_2B051940; /* 0x2B0517B0: ja 0x2b051940 */ 45585 L_2B0517B6: 45586 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x2B05196C)); goto _ljump; } 45587 L_2B0517BD: 45588 edi = MEM32(ebp + 0x8); /* 0x2B0517BD: mov edi, dword ptr [ebp + 8] */ 45589 L_2B0517C0: 45590 PUSH32(esp, 0); /* 0x2B0517C0: push 0 */ 45591 L_2B0517C2: 45592 PUSH32(esp, 0x2B0E8414u); /* 0x2B0517C2: push 0x2b0e8414 */ 45593 L_2B0517C7: 45594 ecx = edi; /* 0x2B0517C7: mov ecx, edi */ 45595 L_2B0517C9: 45596 RECOMP_ICALL(0x2B04E800u); /* 0x2B0517C9: call 0x2b04e800 */ /* not lifted */ 45597 RECOMP_FLAGS_IN(); 45598 L_2B0517CE: 45599 PUSH32(esp, 1); /* 0x2B0517CE: push 1 */ 45600 L_2B0517D0: 45601 PUSH32(esp, 0x2B0E8414u); /* 0x2B0517D0: push 0x2b0e8414 */ 45602 L_2B0517D5: 45603 ecx = edi; /* 0x2B0517D5: mov ecx, edi */ 45604 L_2B0517D7: 45605 MEM32(esi + 0x20) = eax; /* 0x2B0517D7: mov dword ptr [esi + 0x20], eax */ 45606 L_2B0517DA: 45607 RECOMP_ICALL(0x2B04E800u); /* 0x2B0517DA: call 0x2b04e800 */ /* not lifted */ 45608 RECOMP_FLAGS_IN(); 45609 L_2B0517DF: 45610 edi = POP32_VAL(esp); /* 0x2B0517DF: pop edi */ 45611 L_2B0517E0: 45612 MEM32(esi + 0x24) = eax; /* 0x2B0517E0: mov dword ptr [esi + 0x24], eax */ 45613 L_2B0517E3: 45614 esi = POP32_VAL(esp); /* 0x2B0517E3: pop esi */ 45615 L_2B0517E4: 45616 ebp = POP32_VAL(esp); /* 0x2B0517E4: pop ebp */ 45617 L_2B0517E5: 45618 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0517E5: ret 4 */ 45619 L_2B0517E8: 45620 edi = MEM32(ebp + 0x8); /* 0x2B0517E8: mov edi, dword ptr [ebp + 8] */ 45621 L_2B0517EB: 45622 PUSH32(esp, 0); /* 0x2B0517EB: push 0 */ 45623 L_2B0517ED: 45624 PUSH32(esp, 0x2B0E1FC4u); /* 0x2B0517ED: push 0x2b0e1fc4 */ 45625 L_2B0517F2: 45626 ecx = edi; /* 0x2B0517F2: mov ecx, edi */ 45627 L_2B0517F4: 45628 RECOMP_ICALL(0x2B04E800u); /* 0x2B0517F4: call 0x2b04e800 */ /* not lifted */ 45629 RECOMP_FLAGS_IN(); 45630 L_2B0517F9: 45631 PUSH32(esp, 1); /* 0x2B0517F9: push 1 */ 45632 L_2B0517FB: 45633 PUSH32(esp, 0x2B0E1FC4u); /* 0x2B0517FB: push 0x2b0e1fc4 */ 45634 L_2B051800: 45635 ecx = edi; /* 0x2B051800: mov ecx, edi */ 45636 L_2B051802: 45637 MEM32(esi + 0x20) = eax; /* 0x2B051802: mov dword ptr [esi + 0x20], eax */ 45638 L_2B051805: 45639 RECOMP_ICALL(0x2B04E800u); /* 0x2B051805: call 0x2b04e800 */ /* not lifted */ 45640 RECOMP_FLAGS_IN(); 45641 L_2B05180A: 45642 edi = POP32_VAL(esp); /* 0x2B05180A: pop edi */ 45643 L_2B05180B: 45644 MEM32(esi + 0x24) = eax; /* 0x2B05180B: mov dword ptr [esi + 0x24], eax */ 45645 L_2B05180E: 45646 esi = POP32_VAL(esp); /* 0x2B05180E: pop esi */ 45647 L_2B05180F: 45648 ebp = POP32_VAL(esp); /* 0x2B05180F: pop ebp */ 45649 L_2B051810: 45650 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B051810: ret 4 */ 45651 L_2B051813: 45652 edi = MEM32(ebp + 0x8); /* 0x2B051813: mov edi, dword ptr [ebp + 8] */ 45653 L_2B051816: 45654 PUSH32(esp, 0); /* 0x2B051816: push 0 */ 45655 L_2B051818: 45656 PUSH32(esp, 0x2B0E840Cu); /* 0x2B051818: push 0x2b0e840c */ 45657 L_2B05181D: 45658 ecx = edi; /* 0x2B05181D: mov ecx, edi */ 45659 L_2B05181F: 45660 RECOMP_ICALL(0x2B04E800u); /* 0x2B05181F: call 0x2b04e800 */ /* not lifted */ 45661 RECOMP_FLAGS_IN(); 45662 L_2B051824: 45663 PUSH32(esp, 1); /* 0x2B051824: push 1 */ 45664 L_2B051826: 45665 PUSH32(esp, 0x2B0E840Cu); /* 0x2B051826: push 0x2b0e840c */ 45666 L_2B05182B: 45667 ecx = edi; /* 0x2B05182B: mov ecx, edi */ 45668 L_2B05182D: 45669 MEM32(esi + 0x20) = eax; /* 0x2B05182D: mov dword ptr [esi + 0x20], eax */ 45670 L_2B051830: 45671 RECOMP_ICALL(0x2B04E800u); /* 0x2B051830: call 0x2b04e800 */ /* not lifted */ 45672 RECOMP_FLAGS_IN(); 45673 L_2B051835: 45674 edi = POP32_VAL(esp); /* 0x2B051835: pop edi */ 45675 L_2B051836: 45676 MEM32(esi + 0x24) = eax; /* 0x2B051836: mov dword ptr [esi + 0x24], eax */ 45677 L_2B051839: 45678 esi = POP32_VAL(esp); /* 0x2B051839: pop esi */ 45679 L_2B05183A: 45680 ebp = POP32_VAL(esp); /* 0x2B05183A: pop ebp */ 45681 L_2B05183B: 45682 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B05183B: ret 4 */ 45683 L_2B05183E: 45684 edi = MEM32(ebp + 0x8); /* 0x2B05183E: mov edi, dword ptr [ebp + 8] */ 45685 L_2B051841: 45686 PUSH32(esp, 0); /* 0x2B051841: push 0 */ 45687 L_2B051843: 45688 PUSH32(esp, 0x2B0E29D4u); /* 0x2B051843: push 0x2b0e29d4 */ 45689 L_2B051848: 45690 ecx = edi; /* 0x2B051848: mov ecx, edi */ 45691 L_2B05184A: 45692 RECOMP_ICALL(0x2B04E800u); /* 0x2B05184A: call 0x2b04e800 */ /* not lifted */ 45693 RECOMP_FLAGS_IN(); 45694 L_2B05184F: 45695 PUSH32(esp, 1); /* 0x2B05184F: push 1 */ 45696 L_2B051851: 45697 PUSH32(esp, 0x2B0E29D4u); /* 0x2B051851: push 0x2b0e29d4 */ 45698 L_2B051856: 45699 ecx = edi; /* 0x2B051856: mov ecx, edi */ 45700 L_2B051858: 45701 MEM32(esi + 0x20) = eax; /* 0x2B051858: mov dword ptr [esi + 0x20], eax */ 45702 L_2B05185B: 45703 RECOMP_ICALL(0x2B04E800u); /* 0x2B05185B: call 0x2b04e800 */ /* not lifted */ 45704 RECOMP_FLAGS_IN(); 45705 L_2B051860: 45706 edi = POP32_VAL(esp); /* 0x2B051860: pop edi */ 45707 L_2B051861: 45708 MEM32(esi + 0x24) = eax; /* 0x2B051861: mov dword ptr [esi + 0x24], eax */ 45709 L_2B051864: 45710 esi = POP32_VAL(esp); /* 0x2B051864: pop esi */ 45711 L_2B051865: 45712 ebp = POP32_VAL(esp); /* 0x2B051865: pop ebp */ 45713 L_2B051866: 45714 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B051866: ret 4 */ 45715 L_2B051869: 45716 edi = MEM32(ebp + 0x8); /* 0x2B051869: mov edi, dword ptr [ebp + 8] */ 45717 L_2B05186C: 45718 PUSH32(esp, 0); /* 0x2B05186C: push 0 */ 45719 L_2B05186E: 45720 PUSH32(esp, 0x2B0E8408u); /* 0x2B05186E: push 0x2b0e8408 */ 45721 L_2B051873: 45722 ecx = edi; /* 0x2B051873: mov ecx, edi */ 45723 L_2B051875: 45724 RECOMP_ICALL(0x2B04E800u); /* 0x2B051875: call 0x2b04e800 */ /* not lifted */ 45725 RECOMP_FLAGS_IN(); 45726 L_2B05187A: 45727 PUSH32(esp, 1); /* 0x2B05187A: push 1 */ 45728 L_2B05187C: 45729 PUSH32(esp, 0x2B0E8408u); /* 0x2B05187C: push 0x2b0e8408 */ 45730 L_2B051881: 45731 ecx = edi; /* 0x2B051881: mov ecx, edi */ 45732 L_2B051883: 45733 MEM32(esi + 0x20) = eax; /* 0x2B051883: mov dword ptr [esi + 0x20], eax */ 45734 L_2B051886: 45735 RECOMP_ICALL(0x2B04E800u); /* 0x2B051886: call 0x2b04e800 */ /* not lifted */ 45736 RECOMP_FLAGS_IN(); 45737 L_2B05188B: 45738 edi = POP32_VAL(esp); /* 0x2B05188B: pop edi */ 45739 L_2B05188C: 45740 MEM32(esi + 0x24) = eax; /* 0x2B05188C: mov dword ptr [esi + 0x24], eax */ 45741 L_2B05188F: 45742 esi = POP32_VAL(esp); /* 0x2B05188F: pop esi */ 45743 L_2B051890: 45744 ebp = POP32_VAL(esp); /* 0x2B051890: pop ebp */ 45745 L_2B051891: 45746 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B051891: ret 4 */ 45747 L_2B051894: 45748 edi = MEM32(ebp + 0x8); /* 0x2B051894: mov edi, dword ptr [ebp + 8] */ 45749 L_2B051897: 45750 PUSH32(esp, 0); /* 0x2B051897: push 0 */ 45751 L_2B051899: 45752 PUSH32(esp, 0x2B0E83FCu); /* 0x2B051899: push 0x2b0e83fc */ 45753 L_2B05189E: 45754 ecx = edi; /* 0x2B05189E: mov ecx, edi */ 45755 L_2B0518A0: 45756 RECOMP_ICALL(0x2B04E800u); /* 0x2B0518A0: call 0x2b04e800 */ /* not lifted */ 45757 RECOMP_FLAGS_IN(); 45758 L_2B0518A5: 45759 PUSH32(esp, 1); /* 0x2B0518A5: push 1 */ 45760 L_2B0518A7: 45761 PUSH32(esp, 0x2B0E83FCu); /* 0x2B0518A7: push 0x2b0e83fc */ 45762 L_2B0518AC: 45763 ecx = edi; /* 0x2B0518AC: mov ecx, edi */ 45764 L_2B0518AE: 45765 MEM32(esi + 0x20) = eax; /* 0x2B0518AE: mov dword ptr [esi + 0x20], eax */ 45766 L_2B0518B1: 45767 RECOMP_ICALL(0x2B04E800u); /* 0x2B0518B1: call 0x2b04e800 */ /* not lifted */ 45768 RECOMP_FLAGS_IN(); 45769 L_2B0518B6: 45770 edi = POP32_VAL(esp); /* 0x2B0518B6: pop edi */ 45771 L_2B0518B7: 45772 MEM32(esi + 0x24) = eax; /* 0x2B0518B7: mov dword ptr [esi + 0x24], eax */ 45773 L_2B0518BA: 45774 esi = POP32_VAL(esp); /* 0x2B0518BA: pop esi */ 45775 L_2B0518BB: 45776 ebp = POP32_VAL(esp); /* 0x2B0518BB: pop ebp */ 45777 L_2B0518BC: 45778 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0518BC: ret 4 */ 45779 L_2B0518BF: 45780 edi = MEM32(ebp + 0x8); /* 0x2B0518BF: mov edi, dword ptr [ebp + 8] */ 45781 L_2B0518C2: 45782 PUSH32(esp, 0); /* 0x2B0518C2: push 0 */ 45783 L_2B0518C4: 45784 PUSH32(esp, 0x2B0E83F4u); /* 0x2B0518C4: push 0x2b0e83f4 */ 45785 L_2B0518C9: 45786 ecx = edi; /* 0x2B0518C9: mov ecx, edi */ 45787 L_2B0518CB: 45788 RECOMP_ICALL(0x2B04E800u); /* 0x2B0518CB: call 0x2b04e800 */ /* not lifted */ 45789 RECOMP_FLAGS_IN(); 45790 L_2B0518D0: 45791 PUSH32(esp, 1); /* 0x2B0518D0: push 1 */ 45792 L_2B0518D2: 45793 PUSH32(esp, 0x2B0E83F4u); /* 0x2B0518D2: push 0x2b0e83f4 */ 45794 L_2B0518D7: 45795 ecx = edi; /* 0x2B0518D7: mov ecx, edi */ 45796 L_2B0518D9: 45797 MEM32(esi + 0x20) = eax; /* 0x2B0518D9: mov dword ptr [esi + 0x20], eax */ 45798 L_2B0518DC: 45799 RECOMP_ICALL(0x2B04E800u); /* 0x2B0518DC: call 0x2b04e800 */ /* not lifted */ 45800 RECOMP_FLAGS_IN(); 45801 L_2B0518E1: 45802 edi = POP32_VAL(esp); /* 0x2B0518E1: pop edi */ 45803 L_2B0518E2: 45804 MEM32(esi + 0x24) = eax; /* 0x2B0518E2: mov dword ptr [esi + 0x24], eax */ 45805 L_2B0518E5: 45806 esi = POP32_VAL(esp); /* 0x2B0518E5: pop esi */ 45807 L_2B0518E6: 45808 ebp = POP32_VAL(esp); /* 0x2B0518E6: pop ebp */ 45809 L_2B0518E7: 45810 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0518E7: ret 4 */ 45811 L_2B0518EA: 45812 edi = MEM32(ebp + 0x8); /* 0x2B0518EA: mov edi, dword ptr [ebp + 8] */ 45813 L_2B0518ED: 45814 PUSH32(esp, 0); /* 0x2B0518ED: push 0 */ 45815 L_2B0518EF: 45816 PUSH32(esp, 0x2B0E83ECu); /* 0x2B0518EF: push 0x2b0e83ec */ 45817 L_2B0518F4: 45818 ecx = edi; /* 0x2B0518F4: mov ecx, edi */ 45819 L_2B0518F6: 45820 RECOMP_ICALL(0x2B04E800u); /* 0x2B0518F6: call 0x2b04e800 */ /* not lifted */ 45821 RECOMP_FLAGS_IN(); 45822 L_2B0518FB: 45823 PUSH32(esp, 1); /* 0x2B0518FB: push 1 */ 45824 L_2B0518FD: 45825 PUSH32(esp, 0x2B0E83ECu); /* 0x2B0518FD: push 0x2b0e83ec */ 45826 L_2B051902: 45827 ecx = edi; /* 0x2B051902: mov ecx, edi */ 45828 L_2B051904: 45829 MEM32(esi + 0x20) = eax; /* 0x2B051904: mov dword ptr [esi + 0x20], eax */ 45830 L_2B051907: 45831 RECOMP_ICALL(0x2B04E800u); /* 0x2B051907: call 0x2b04e800 */ /* not lifted */ 45832 RECOMP_FLAGS_IN(); 45833 L_2B05190C: 45834 edi = POP32_VAL(esp); /* 0x2B05190C: pop edi */ 45835 L_2B05190D: 45836 MEM32(esi + 0x24) = eax; /* 0x2B05190D: mov dword ptr [esi + 0x24], eax */ 45837 L_2B051910: 45838 esi = POP32_VAL(esp); /* 0x2B051910: pop esi */ 45839 L_2B051911: 45840 ebp = POP32_VAL(esp); /* 0x2B051911: pop ebp */ 45841 L_2B051912: 45842 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B051912: ret 4 */ 45843 L_2B051915: 45844 edi = MEM32(ebp + 0x8); /* 0x2B051915: mov edi, dword ptr [ebp + 8] */ 45845 L_2B051918: 45846 PUSH32(esp, 0); /* 0x2B051918: push 0 */ 45847 L_2B05191A: 45848 PUSH32(esp, 0x2B0E83DCu); /* 0x2B05191A: push 0x2b0e83dc */ 45849 L_2B05191F: 45850 ecx = edi; /* 0x2B05191F: mov ecx, edi */ 45851 L_2B051921: 45852 RECOMP_ICALL(0x2B04E800u); /* 0x2B051921: call 0x2b04e800 */ /* not lifted */ 45853 RECOMP_FLAGS_IN(); 45854 L_2B051926: 45855 PUSH32(esp, 1); /* 0x2B051926: push 1 */ 45856 L_2B051928: 45857 PUSH32(esp, 0x2B0E83DCu); /* 0x2B051928: push 0x2b0e83dc */ 45858 L_2B05192D: 45859 ecx = edi; /* 0x2B05192D: mov ecx, edi */ 45860 L_2B05192F: 45861 MEM32(esi + 0x20) = eax; /* 0x2B05192F: mov dword ptr [esi + 0x20], eax */ 45862 L_2B051932: 45863 RECOMP_ICALL(0x2B04E800u); /* 0x2B051932: call 0x2b04e800 */ /* not lifted */ 45864 RECOMP_FLAGS_IN(); 45865 L_2B051937: 45866 edi = POP32_VAL(esp); /* 0x2B051937: pop edi */ 45867 L_2B051938: 45868 MEM32(esi + 0x24) = eax; /* 0x2B051938: mov dword ptr [esi + 0x24], eax */ 45869 L_2B05193B: 45870 esi = POP32_VAL(esp); /* 0x2B05193B: pop esi */ 45871 L_2B05193C: 45872 ebp = POP32_VAL(esp); /* 0x2B05193C: pop ebp */ 45873 L_2B05193D: 45874 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B05193D: ret 4 */ 45875 L_2B051940: 45876 PUSH32(esp, 0xFu); /* 0x2B051940: push 0xf */ 45877 L_2B051942: 45878 RECOMP_ICALL(MEM32(0x2B0B5880)); /* 0x2B051942: call dword ptr [0x2b0b5880] */ 45879 RECOMP_FLAGS_IN(); 45880 L_2B051948: 45881 edi = MEM32(0x2B0B5B94); /* 0x2B051948: mov edi, dword ptr [0x2b0b5b94] */ 45882 L_2B05194E: 45883 ecx = eax; /* 0x2B05194E: mov ecx, eax */ 45884 L_2B051950: 45885 RECOMP_ICALL(edi); /* 0x2B051950: call edi */ 45886 RECOMP_FLAGS_IN(); 45887 L_2B051952: 45888 PUSH32(esp, 0xFu); /* 0x2B051952: push 0xf */ 45889 L_2B051954: 45890 MEM32(esi + 0x20) = eax; /* 0x2B051954: mov dword ptr [esi + 0x20], eax */ 45891 L_2B051957: 45892 RECOMP_ICALL(MEM32(0x2B0B5880)); /* 0x2B051957: call dword ptr [0x2b0b5880] */ 45893 RECOMP_FLAGS_IN(); 45894 L_2B05195D: 45895 ecx = eax; /* 0x2B05195D: mov ecx, eax */ 45896 L_2B05195F: 45897 RECOMP_ICALL(edi); /* 0x2B05195F: call edi */ 45898 RECOMP_FLAGS_IN(); 45899 L_2B051961: 45900 edi = POP32_VAL(esp); /* 0x2B051961: pop edi */ 45901 L_2B051962: 45902 MEM32(esi + 0x24) = eax; /* 0x2B051962: mov dword ptr [esi + 0x24], eax */ 45903 L_2B051965: 45904 esi = POP32_VAL(esp); /* 0x2B051965: pop esi */ 45905 L_2B051966: 45906 ebp = POP32_VAL(esp); /* 0x2B051966: pop ebp */ 45907 L_2B051967: 45908 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B051967: ret 4 */ 45909 _ljump: 45910 switch (_itail_tgt) { 45911 case 0x2B051720u: goto L_2B051720; 45912 case 0x2B051721u: goto L_2B051721; 45913 case 0x2B051723u: goto L_2B051723; 45914 case 0x2B051724u: goto L_2B051724; 45915 case 0x2B051726u: goto L_2B051726; 45916 case 0x2B051729u: goto L_2B051729; 45917 case 0x2B05172Cu: goto L_2B05172C; 45918 case 0x2B05172Eu: goto L_2B05172E; 45919 case 0x2B051731u: goto L_2B051731; 45920 case 0x2B051732u: goto L_2B051732; 45921 case 0x2B051734u: goto L_2B051734; 45922 case 0x2B051736u: goto L_2B051736; 45923 case 0x2B051738u: goto L_2B051738; 45924 case 0x2B05173Bu: goto L_2B05173B; 45925 case 0x2B05173Du: goto L_2B05173D; 45926 case 0x2B051742u: goto L_2B051742; 45927 case 0x2B051744u: goto L_2B051744; 45928 case 0x2B051749u: goto L_2B051749; 45929 case 0x2B05174Bu: goto L_2B05174B; 45930 case 0x2B051750u: goto L_2B051750; 45931 case 0x2B051752u: goto L_2B051752; 45932 case 0x2B051755u: goto L_2B051755; 45933 case 0x2B05175Au: goto L_2B05175A; 45934 case 0x2B05175Bu: goto L_2B05175B; 45935 case 0x2B05175Eu: goto L_2B05175E; 45936 case 0x2B05175Fu: goto L_2B05175F; 45937 case 0x2B051760u: goto L_2B051760; 45938 case 0x2B051763u: goto L_2B051763; 45939 case 0x2B051765u: goto L_2B051765; 45940 case 0x2B051767u: goto L_2B051767; 45941 case 0x2B05176Au: goto L_2B05176A; 45942 case 0x2B05176Cu: goto L_2B05176C; 45943 case 0x2B051771u: goto L_2B051771; 45944 case 0x2B051773u: goto L_2B051773; 45945 case 0x2B051778u: goto L_2B051778; 45946 case 0x2B05177Au: goto L_2B05177A; 45947 case 0x2B05177Fu: goto L_2B05177F; 45948 case 0x2B051781u: goto L_2B051781; 45949 case 0x2B051784u: goto L_2B051784; 45950 case 0x2B051789u: goto L_2B051789; 45951 case 0x2B05178Au: goto L_2B05178A; 45952 case 0x2B05178Du: goto L_2B05178D; 45953 case 0x2B05178Eu: goto L_2B05178E; 45954 case 0x2B05178Fu: goto L_2B05178F; 45955 case 0x2B051792u: goto L_2B051792; 45956 case 0x2B051794u: goto L_2B051794; 45957 case 0x2B051799u: goto L_2B051799; 45958 case 0x2B05179Bu: goto L_2B05179B; 45959 case 0x2B0517A1u: goto L_2B0517A1; 45960 case 0x2B0517A3u: goto L_2B0517A3; 45961 case 0x2B0517A6u: goto L_2B0517A6; 45962 case 0x2B0517ACu: goto L_2B0517AC; 45963 case 0x2B0517ADu: goto L_2B0517AD; 45964 case 0x2B0517B0u: goto L_2B0517B0; 45965 case 0x2B0517B6u: goto L_2B0517B6; 45966 case 0x2B0517BDu: goto L_2B0517BD; 45967 case 0x2B0517C0u: goto L_2B0517C0; 45968 case 0x2B0517C2u: goto L_2B0517C2; 45969 case 0x2B0517C7u: goto L_2B0517C7; 45970 case 0x2B0517C9u: goto L_2B0517C9; 45971 case 0x2B0517CEu: goto L_2B0517CE; 45972 case 0x2B0517D0u: goto L_2B0517D0; 45973 case 0x2B0517D5u: goto L_2B0517D5; 45974 case 0x2B0517D7u: goto L_2B0517D7; 45975 case 0x2B0517DAu: goto L_2B0517DA; 45976 case 0x2B0517DFu: goto L_2B0517DF; 45977 case 0x2B0517E0u: goto L_2B0517E0; 45978 case 0x2B0517E3u: goto L_2B0517E3; 45979 case 0x2B0517E4u: goto L_2B0517E4; 45980 case 0x2B0517E5u: goto L_2B0517E5; 45981 case 0x2B0517E8u: goto L_2B0517E8; 45982 case 0x2B0517EBu: goto L_2B0517EB; 45983 case 0x2B0517EDu: goto L_2B0517ED; 45984 case 0x2B0517F2u: goto L_2B0517F2; 45985 case 0x2B0517F4u: goto L_2B0517F4; 45986 case 0x2B0517F9u: goto L_2B0517F9; 45987 case 0x2B0517FBu: goto L_2B0517FB; 45988 case 0x2B051800u: goto L_2B051800; 45989 case 0x2B051802u: goto L_2B051802; 45990 case 0x2B051805u: goto L_2B051805; 45991 case 0x2B05180Au: goto L_2B05180A; 45992 case 0x2B05180Bu: goto L_2B05180B; 45993 case 0x2B05180Eu: goto L_2B05180E; 45994 case 0x2B05180Fu: goto L_2B05180F; 45995 case 0x2B051810u: goto L_2B051810; 45996 case 0x2B051813u: goto L_2B051813; 45997 case 0x2B051816u: goto L_2B051816; 45998 case 0x2B051818u: goto L_2B051818; 45999 case 0x2B05181Du: goto L_2B05181D; 46000 case 0x2B05181Fu: goto L_2B05181F; 46001 case 0x2B051824u: goto L_2B051824; 46002 case 0x2B051826u: goto L_2B051826; 46003 case 0x2B05182Bu: goto L_2B05182B; 46004 case 0x2B05182Du: goto L_2B05182D; 46005 case 0x2B051830u: goto L_2B051830; 46006 case 0x2B051835u: goto L_2B051835; 46007 case 0x2B051836u: goto L_2B051836; 46008 case 0x2B051839u: goto L_2B051839; 46009 case 0x2B05183Au: goto L_2B05183A; 46010 case 0x2B05183Bu: goto L_2B05183B; 46011 case 0x2B05183Eu: goto L_2B05183E; 46012 case 0x2B051841u: goto L_2B051841; 46013 case 0x2B051843u: goto L_2B051843; 46014 case 0x2B051848u: goto L_2B051848; 46015 case 0x2B05184Au: goto L_2B05184A; 46016 case 0x2B05184Fu: goto L_2B05184F; 46017 case 0x2B051851u: goto L_2B051851; 46018 case 0x2B051856u: goto L_2B051856; 46019 case 0x2B051858u: goto L_2B051858; 46020 case 0x2B05185Bu: goto L_2B05185B; 46021 case 0x2B051860u: goto L_2B051860; 46022 case 0x2B051861u: goto L_2B051861; 46023 case 0x2B051864u: goto L_2B051864; 46024 case 0x2B051865u: goto L_2B051865; 46025 case 0x2B051866u: goto L_2B051866; 46026 case 0x2B051869u: goto L_2B051869; 46027 case 0x2B05186Cu: goto L_2B05186C; 46028 case 0x2B05186Eu: goto L_2B05186E; 46029 case 0x2B051873u: goto L_2B051873; 46030 case 0x2B051875u: goto L_2B051875; 46031 case 0x2B05187Au: goto L_2B05187A; 46032 case 0x2B05187Cu: goto L_2B05187C; 46033 case 0x2B051881u: goto L_2B051881; 46034 case 0x2B051883u: goto L_2B051883; 46035 case 0x2B051886u: goto L_2B051886; 46036 case 0x2B05188Bu: goto L_2B05188B; 46037 case 0x2B05188Cu: goto L_2B05188C; 46038 case 0x2B05188Fu: goto L_2B05188F; 46039 case 0x2B051890u: goto L_2B051890; 46040 case 0x2B051891u: goto L_2B051891; 46041 case 0x2B051894u: goto L_2B051894; 46042 case 0x2B051897u: goto L_2B051897; 46043 case 0x2B051899u: goto L_2B051899; 46044 case 0x2B05189Eu: goto L_2B05189E; 46045 case 0x2B0518A0u: goto L_2B0518A0; 46046 case 0x2B0518A5u: goto L_2B0518A5; 46047 case 0x2B0518A7u: goto L_2B0518A7; 46048 case 0x2B0518ACu: goto L_2B0518AC; 46049 case 0x2B0518AEu: goto L_2B0518AE; 46050 case 0x2B0518B1u: goto L_2B0518B1; 46051 case 0x2B0518B6u: goto L_2B0518B6; 46052 case 0x2B0518B7u: goto L_2B0518B7; 46053 case 0x2B0518BAu: goto L_2B0518BA; 46054 case 0x2B0518BBu: goto L_2B0518BB; 46055 case 0x2B0518BCu: goto L_2B0518BC; 46056 case 0x2B0518BFu: goto L_2B0518BF; 46057 case 0x2B0518C2u: goto L_2B0518C2; 46058 case 0x2B0518C4u: goto L_2B0518C4; 46059 case 0x2B0518C9u: goto L_2B0518C9; 46060 case 0x2B0518CBu: goto L_2B0518CB; 46061 case 0x2B0518D0u: goto L_2B0518D0; 46062 case 0x2B0518D2u: goto L_2B0518D2; 46063 case 0x2B0518D7u: goto L_2B0518D7; 46064 case 0x2B0518D9u: goto L_2B0518D9; 46065 case 0x2B0518DCu: goto L_2B0518DC; 46066 case 0x2B0518E1u: goto L_2B0518E1; 46067 case 0x2B0518E2u: goto L_2B0518E2; 46068 case 0x2B0518E5u: goto L_2B0518E5; 46069 case 0x2B0518E6u: goto L_2B0518E6; 46070 case 0x2B0518E7u: goto L_2B0518E7; 46071 case 0x2B0518EAu: goto L_2B0518EA; 46072 case 0x2B0518EDu: goto L_2B0518ED; 46073 case 0x2B0518EFu: goto L_2B0518EF; 46074 case 0x2B0518F4u: goto L_2B0518F4; 46075 case 0x2B0518F6u: goto L_2B0518F6; 46076 case 0x2B0518FBu: goto L_2B0518FB; 46077 case 0x2B0518FDu: goto L_2B0518FD; 46078 case 0x2B051902u: goto L_2B051902; 46079 case 0x2B051904u: goto L_2B051904; 46080 case 0x2B051907u: goto L_2B051907; 46081 case 0x2B05190Cu: goto L_2B05190C; 46082 case 0x2B05190Du: goto L_2B05190D; 46083 case 0x2B051910u: goto L_2B051910; 46084 case 0x2B051911u: goto L_2B051911; 46085 case 0x2B051912u: goto L_2B051912; 46086 case 0x2B051915u: goto L_2B051915; 46087 case 0x2B051918u: goto L_2B051918; 46088 case 0x2B05191Au: goto L_2B05191A; 46089 case 0x2B05191Fu: goto L_2B05191F; 46090 case 0x2B051921u: goto L_2B051921; 46091 case 0x2B051926u: goto L_2B051926; 46092 case 0x2B051928u: goto L_2B051928; 46093 case 0x2B05192Du: goto L_2B05192D; 46094 case 0x2B05192Fu: goto L_2B05192F; 46095 case 0x2B051932u: goto L_2B051932; 46096 case 0x2B051937u: goto L_2B051937; 46097 case 0x2B051938u: goto L_2B051938; 46098 case 0x2B05193Bu: goto L_2B05193B; 46099 case 0x2B05193Cu: goto L_2B05193C; 46100 case 0x2B05193Du: goto L_2B05193D; 46101 case 0x2B051940u: goto L_2B051940; 46102 case 0x2B051942u: goto L_2B051942; 46103 case 0x2B051948u: goto L_2B051948; 46104 case 0x2B05194Eu: goto L_2B05194E; 46105 case 0x2B051950u: goto L_2B051950; 46106 case 0x2B051952u: goto L_2B051952; 46107 case 0x2B051954u: goto L_2B051954; 46108 case 0x2B051957u: goto L_2B051957; 46109 case 0x2B05195Du: goto L_2B05195D; 46110 case 0x2B05195Fu: goto L_2B05195F; 46111 case 0x2B051961u: goto L_2B051961; 46112 case 0x2B051962u: goto L_2B051962; 46113 case 0x2B051965u: goto L_2B051965; 46114 case 0x2B051966u: goto L_2B051966; 46115 case 0x2B051967u: goto L_2B051967; 46116 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 46117 } 46118 RECOMP_REGS_OUT(); 46119 } 46120 46121 void sub_2B0519A0(void) { 46122 int _fpu_cmp = 0; 46123 uint32_t _cf = 0; 46124 int _df = 1; 46125 uint32_t _flag_k = FK_NONE; 46126 uint32_t _flag_a = 0, _flag_b = 0; 46127 uint32_t _itail_tgt = 0; 46128 RECOMP_REGS_LOCALS 46129 RECOMP_ENTER(0x2B0519A0u); 46130 46131 L_2B0519A0: 46132 eax = MEM32(ecx + 0x4); /* 0x2B0519A0: mov eax, dword ptr [ecx + 4] */ 46133 /* test eax, eax */ /* 0x2B0519A3: test eax, eax */ 46134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 46135 _cf = 0; 46136 _flag_k = FK_TEST; 46137 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0519A8; /* 0x2B0519A5: jne 0x2b0519a8 */ 46138 L_2B0519A7: 46139 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0519A7: ret */ 46140 L_2B0519A8: 46141 ecx = MEM32(ecx + 0x8); /* 0x2B0519A8: mov ecx, dword ptr [ecx + 8] */ 46142 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 46143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 46144 ecx = ecx - eax; /* 0x2B0519AB: sub ecx, eax */ 46145 _flag_k = FK_CMP; 46146 eax = 0x2AAAAAABu; /* 0x2B0519AD: mov eax, 0x2aaaaaab */ 46147 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B0519B2: imul ecx */ 46148 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 46149 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 46150 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2B0519B4: sar edx, 3 */ 46151 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 46152 edx = (uint32_t)((int32_t)edx >> 3u); 46153 eax = edx; /* 0x2B0519B7: mov eax, edx */ 46154 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B0519B9: shr eax, 0x1f */ 46155 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 46156 eax = eax >> 31u; /* 0x2B0519B9: shr eax, 0x1f */ 46157 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 46158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 46159 edx = edx + eax; /* 0x2B0519BC: add edx, eax */ 46160 _flag_k = FK_ADD; 46161 eax = edx; /* 0x2B0519BE: mov eax, edx */ 46162 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0519C0: ret */ 46163 RECOMP_REGS_OUT(); 46164 }