client/game/ddr.dll/lifted-0034.c (694114B)
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_2B0828C0(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(0x2B0828C0u); 17 18 L_2B0828C0: 19 eax = MEM32(0x2B0B6048); /* 0x2B0828C0: mov eax, dword ptr [0x2b0b6048] */ 20 PUSH32(esp, esi); /* 0x2B0828C5: push esi */ 21 PUSH32(esp, edi); /* 0x2B0828C6: push edi */ 22 edi = MEM32(0x2B0B6054); /* 0x2B0828C7: mov edi, dword ptr [0x2b0b6054] */ 23 PUSH32(esp, 1); /* 0x2B0828CD: push 1 */ 24 esi = ecx; /* 0x2B0828CF: mov esi, ecx */ 25 ecx = MEM32(eax); /* 0x2B0828D1: mov ecx, dword ptr [eax] */ 26 PUSH32(esp, esi); /* 0x2B0828D3: push esi */ 27 PUSH32(esp, 0x2B082C70u); /* 0x2B0828D4: push 0x2b082c70 */ 28 PUSH32(esp, 0x2B0ECA50u); /* 0x2B0828D9: push 0x2b0eca50 */ 29 RECOMP_ICALL(edi); /* 0x2B0828DE: call edi */ 30 RECOMP_FLAGS_IN(); 31 ecx = MEM32(0x2B0B6048); /* 0x2B0828E0: mov ecx, dword ptr [0x2b0b6048] */ 32 ecx = MEM32(ecx); /* 0x2B0828E6: mov ecx, dword ptr [ecx] */ 33 PUSH32(esp, 1); /* 0x2B0828E8: push 1 */ 34 PUSH32(esp, esi); /* 0x2B0828EA: push esi */ 35 PUSH32(esp, 0x2B082C10u); /* 0x2B0828EB: push 0x2b082c10 */ 36 PUSH32(esp, 0x2B0E6CC4u); /* 0x2B0828F0: push 0x2b0e6cc4 */ 37 RECOMP_ICALL(edi); /* 0x2B0828F5: call edi */ 38 RECOMP_FLAGS_IN(); 39 ecx = MEM32(esi + 0x24); /* 0x2B0828F7: mov ecx, dword ptr [esi + 0x24] */ 40 /* test ecx, ecx */ /* 0x2B0828FA: test ecx, ecx */ 41 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 42 _cf = 0; 43 _flag_k = FK_TEST; 44 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082904; /* 0x2B0828FC: je 0x2b082904 */ 45 L_2B0828FE: 46 edx = MEM32(ecx); /* 0x2B0828FE: mov edx, dword ptr [ecx] */ 47 PUSH32(esp, 1); /* 0x2B082900: push 1 */ 48 RECOMP_ICALL(MEM32(edx)); /* 0x2B082902: call dword ptr [edx] */ 49 RECOMP_FLAGS_IN(); 50 L_2B082904: 51 ecx = MEM32(esi + 0x28); /* 0x2B082904: mov ecx, dword ptr [esi + 0x28] */ 52 /* test ecx, ecx */ /* 0x2B082907: test ecx, ecx */ 53 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 54 _cf = 0; 55 _flag_k = FK_TEST; 56 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082911; /* 0x2B082909: je 0x2b082911 */ 57 L_2B08290B: 58 eax = MEM32(ecx); /* 0x2B08290B: mov eax, dword ptr [ecx] */ 59 PUSH32(esp, 1); /* 0x2B08290D: push 1 */ 60 RECOMP_ICALL(MEM32(eax)); /* 0x2B08290F: call dword ptr [eax] */ 61 RECOMP_FLAGS_IN(); 62 L_2B082911: 63 ecx = MEM32(esi + 0x30); /* 0x2B082911: mov ecx, dword ptr [esi + 0x30] */ 64 /* test ecx, ecx */ /* 0x2B082914: test ecx, ecx */ 65 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 66 _cf = 0; 67 _flag_k = FK_TEST; 68 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08291E; /* 0x2B082916: je 0x2b08291e */ 69 L_2B082918: 70 edx = MEM32(ecx); /* 0x2B082918: mov edx, dword ptr [ecx] */ 71 PUSH32(esp, 1); /* 0x2B08291A: push 1 */ 72 RECOMP_ICALL(MEM32(edx)); /* 0x2B08291C: call dword ptr [edx] */ 73 RECOMP_FLAGS_IN(); 74 L_2B08291E: 75 ecx = MEM32(esi + 0x34); /* 0x2B08291E: mov ecx, dword ptr [esi + 0x34] */ 76 /* test ecx, ecx */ /* 0x2B082921: test ecx, ecx */ 77 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 78 _cf = 0; 79 _flag_k = FK_TEST; 80 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08292B; /* 0x2B082923: je 0x2b08292b */ 81 L_2B082925: 82 eax = MEM32(ecx); /* 0x2B082925: mov eax, dword ptr [ecx] */ 83 PUSH32(esp, 1); /* 0x2B082927: push 1 */ 84 RECOMP_ICALL(MEM32(eax)); /* 0x2B082929: call dword ptr [eax] */ 85 RECOMP_FLAGS_IN(); 86 L_2B08292B: 87 ecx = MEM32(esi + 0x38); /* 0x2B08292B: mov ecx, dword ptr [esi + 0x38] */ 88 /* test ecx, ecx */ /* 0x2B08292E: test ecx, ecx */ 89 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 90 _cf = 0; 91 _flag_k = FK_TEST; 92 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082938; /* 0x2B082930: je 0x2b082938 */ 93 L_2B082932: 94 edx = MEM32(ecx); /* 0x2B082932: mov edx, dword ptr [ecx] */ 95 PUSH32(esp, 1); /* 0x2B082934: push 1 */ 96 RECOMP_ICALL(MEM32(edx)); /* 0x2B082936: call dword ptr [edx] */ 97 RECOMP_FLAGS_IN(); 98 L_2B082938: 99 ecx = MEM32(esi + 0x8); /* 0x2B082938: mov ecx, dword ptr [esi + 8] */ 100 /* test ecx, ecx */ /* 0x2B08293B: test ecx, ecx */ 101 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 102 _cf = 0; 103 _flag_k = FK_TEST; 104 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082945; /* 0x2B08293D: je 0x2b082945 */ 105 L_2B08293F: 106 eax = MEM32(ecx); /* 0x2B08293F: mov eax, dword ptr [ecx] */ 107 PUSH32(esp, 1); /* 0x2B082941: push 1 */ 108 RECOMP_ICALL(MEM32(eax)); /* 0x2B082943: call dword ptr [eax] */ 109 RECOMP_FLAGS_IN(); 110 L_2B082945: 111 ecx = MEM32(esi + 0x4); /* 0x2B082945: mov ecx, dword ptr [esi + 4] */ 112 /* test ecx, ecx */ /* 0x2B082948: test ecx, ecx */ 113 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 114 _cf = 0; 115 _flag_k = FK_TEST; 116 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082952; /* 0x2B08294A: je 0x2b082952 */ 117 L_2B08294C: 118 edx = MEM32(ecx); /* 0x2B08294C: mov edx, dword ptr [ecx] */ 119 PUSH32(esp, 1); /* 0x2B08294E: push 1 */ 120 RECOMP_ICALL(MEM32(edx)); /* 0x2B082950: call dword ptr [edx] */ 121 RECOMP_FLAGS_IN(); 122 L_2B082952: 123 edi = MEM32(esi + 0x3C); /* 0x2B082952: mov edi, dword ptr [esi + 0x3c] */ 124 /* test edi, edi */ /* 0x2B082955: test edi, edi */ 125 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 126 _cf = 0; 127 _flag_k = FK_TEST; 128 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082969; /* 0x2B082957: je 0x2b082969 */ 129 L_2B082959: 130 ecx = edi; /* 0x2B082959: mov ecx, edi */ 131 RECOMP_ICALL(0x2B075FE0u); /* 0x2B08295B: call 0x2b075fe0 */ /* not lifted */ 132 RECOMP_FLAGS_IN(); 133 PUSH32(esp, edi); /* 0x2B082960: push edi */ 134 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B082961: call 0x2b0ab1ba */ /* not lifted */ 135 RECOMP_FLAGS_IN(); 136 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 138 esp = esp + 4; /* 0x2B082966: add esp, 4 */ 139 _flag_k = FK_ADD; 140 L_2B082969: 141 ecx = MEM32(esi + 0x40); /* 0x2B082969: mov ecx, dword ptr [esi + 0x40] */ 142 /* test ecx, ecx */ /* 0x2B08296C: test ecx, ecx */ 143 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 144 _cf = 0; 145 _flag_k = FK_TEST; 146 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082976; /* 0x2B08296E: je 0x2b082976 */ 147 L_2B082970: 148 eax = MEM32(ecx); /* 0x2B082970: mov eax, dword ptr [ecx] */ 149 PUSH32(esp, 1); /* 0x2B082972: push 1 */ 150 RECOMP_ICALL(MEM32(eax)); /* 0x2B082974: call dword ptr [eax] */ 151 RECOMP_FLAGS_IN(); 152 L_2B082976: 153 ecx = MEM32(esi + 0x44); /* 0x2B082976: mov ecx, dword ptr [esi + 0x44] */ 154 /* test ecx, ecx */ /* 0x2B082979: test ecx, ecx */ 155 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 156 _cf = 0; 157 _flag_k = FK_TEST; 158 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082983; /* 0x2B08297B: je 0x2b082983 */ 159 L_2B08297D: 160 edx = MEM32(ecx); /* 0x2B08297D: mov edx, dword ptr [ecx] */ 161 PUSH32(esp, 1); /* 0x2B08297F: push 1 */ 162 RECOMP_ICALL(MEM32(edx)); /* 0x2B082981: call dword ptr [edx] */ 163 RECOMP_FLAGS_IN(); 164 L_2B082983: 165 ecx = MEM32(esi + 0x18); /* 0x2B082983: mov ecx, dword ptr [esi + 0x18] */ 166 /* test ecx, ecx */ /* 0x2B082986: test ecx, ecx */ 167 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 168 _cf = 0; 169 _flag_k = FK_TEST; 170 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082990; /* 0x2B082988: je 0x2b082990 */ 171 L_2B08298A: 172 eax = MEM32(ecx); /* 0x2B08298A: mov eax, dword ptr [ecx] */ 173 PUSH32(esp, 1); /* 0x2B08298C: push 1 */ 174 RECOMP_ICALL(MEM32(eax)); /* 0x2B08298E: call dword ptr [eax] */ 175 RECOMP_FLAGS_IN(); 176 L_2B082990: 177 ecx = MEM32(esi + 0x1C); /* 0x2B082990: mov ecx, dword ptr [esi + 0x1c] */ 178 /* test ecx, ecx */ /* 0x2B082993: test ecx, ecx */ 179 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 180 _cf = 0; 181 _flag_k = FK_TEST; 182 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08299D; /* 0x2B082995: je 0x2b08299d */ 183 L_2B082997: 184 edx = MEM32(ecx); /* 0x2B082997: mov edx, dword ptr [ecx] */ 185 PUSH32(esp, 1); /* 0x2B082999: push 1 */ 186 RECOMP_ICALL(MEM32(edx)); /* 0x2B08299B: call dword ptr [edx] */ 187 RECOMP_FLAGS_IN(); 188 L_2B08299D: 189 ecx = MEM32(esi + 0xC); /* 0x2B08299D: mov ecx, dword ptr [esi + 0xc] */ 190 /* test ecx, ecx */ /* 0x2B0829A0: test ecx, ecx */ 191 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 192 _cf = 0; 193 _flag_k = FK_TEST; 194 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0829AA; /* 0x2B0829A2: je 0x2b0829aa */ 195 L_2B0829A4: 196 eax = MEM32(ecx); /* 0x2B0829A4: mov eax, dword ptr [ecx] */ 197 PUSH32(esp, 1); /* 0x2B0829A6: push 1 */ 198 RECOMP_ICALL(MEM32(eax)); /* 0x2B0829A8: call dword ptr [eax] */ 199 RECOMP_FLAGS_IN(); 200 L_2B0829AA: 201 ecx = MEM32(esi + 0x10); /* 0x2B0829AA: mov ecx, dword ptr [esi + 0x10] */ 202 /* test ecx, ecx */ /* 0x2B0829AD: test ecx, ecx */ 203 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 204 _cf = 0; 205 _flag_k = FK_TEST; 206 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0829B7; /* 0x2B0829AF: je 0x2b0829b7 */ 207 L_2B0829B1: 208 edx = MEM32(ecx); /* 0x2B0829B1: mov edx, dword ptr [ecx] */ 209 PUSH32(esp, 1); /* 0x2B0829B3: push 1 */ 210 RECOMP_ICALL(MEM32(edx)); /* 0x2B0829B5: call dword ptr [edx] */ 211 RECOMP_FLAGS_IN(); 212 L_2B0829B7: 213 ecx = MEM32(esi + 0x14); /* 0x2B0829B7: mov ecx, dword ptr [esi + 0x14] */ 214 /* test ecx, ecx */ /* 0x2B0829BA: test ecx, ecx */ 215 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 216 _cf = 0; 217 _flag_k = FK_TEST; 218 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0829C4; /* 0x2B0829BC: je 0x2b0829c4 */ 219 L_2B0829BE: 220 eax = MEM32(ecx); /* 0x2B0829BE: mov eax, dword ptr [ecx] */ 221 PUSH32(esp, 1); /* 0x2B0829C0: push 1 */ 222 RECOMP_ICALL(MEM32(eax)); /* 0x2B0829C2: call dword ptr [eax] */ 223 RECOMP_FLAGS_IN(); 224 L_2B0829C4: 225 ecx = MEM32(esi); /* 0x2B0829C4: mov ecx, dword ptr [esi] */ 226 /* test ecx, ecx */ /* 0x2B0829C6: test ecx, ecx */ 227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 228 _cf = 0; 229 _flag_k = FK_TEST; 230 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0829D0; /* 0x2B0829C8: je 0x2b0829d0 */ 231 L_2B0829CA: 232 edx = MEM32(ecx); /* 0x2B0829CA: mov edx, dword ptr [ecx] */ 233 PUSH32(esp, 1); /* 0x2B0829CC: push 1 */ 234 RECOMP_ICALL(MEM32(edx)); /* 0x2B0829CE: call dword ptr [edx] */ 235 RECOMP_FLAGS_IN(); 236 L_2B0829D0: 237 eax = MEM32(esi + 0x4C); /* 0x2B0829D0: mov eax, dword ptr [esi + 0x4c] */ 238 eax = MEM32(eax + 0x28); /* 0x2B0829D3: mov eax, dword ptr [eax + 0x28] */ 239 PUSH32(esp, eax); /* 0x2B0829D6: push eax */ 240 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B0829D7: call dword ptr [0x2b0b5f80] */ 241 RECOMP_FLAGS_IN(); 242 ecx = eax; /* 0x2B0829DD: mov ecx, eax */ 243 RECOMP_ICALL(MEM32(0x2B0B5FB8)); /* 0x2B0829DF: call dword ptr [0x2b0b5fb8] */ 244 RECOMP_FLAGS_IN(); 245 ecx = MEM32(esi + 0x4C); /* 0x2B0829E5: mov ecx, dword ptr [esi + 0x4c] */ 246 /* test ecx, ecx */ /* 0x2B0829E8: test ecx, ecx */ 247 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 248 _cf = 0; 249 _flag_k = FK_TEST; 250 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0829F2; /* 0x2B0829EA: je 0x2b0829f2 */ 251 L_2B0829EC: 252 edx = MEM32(ecx); /* 0x2B0829EC: mov edx, dword ptr [ecx] */ 253 PUSH32(esp, 1); /* 0x2B0829EE: push 1 */ 254 RECOMP_ICALL(MEM32(edx)); /* 0x2B0829F0: call dword ptr [edx] */ 255 RECOMP_FLAGS_IN(); 256 L_2B0829F2: 257 ecx = MEM32(esi + 0x48); /* 0x2B0829F2: mov ecx, dword ptr [esi + 0x48] */ 258 /* test ecx, ecx */ /* 0x2B0829F5: test ecx, ecx */ 259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 260 _cf = 0; 261 _flag_k = FK_TEST; 262 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0829FF; /* 0x2B0829F7: je 0x2b0829ff */ 263 L_2B0829F9: 264 eax = MEM32(ecx); /* 0x2B0829F9: mov eax, dword ptr [ecx] */ 265 PUSH32(esp, 1); /* 0x2B0829FB: push 1 */ 266 RECOMP_ICALL(MEM32(eax)); /* 0x2B0829FD: call dword ptr [eax] */ 267 RECOMP_FLAGS_IN(); 268 L_2B0829FF: 269 PUSH32(esp, ebx); /* 0x2B0829FF: push ebx */ 270 edi = esi + 0x5C; /* 0x2B082A00: lea edi, [esi + 0x5c] */ 271 ebx = 4; /* 0x2B082A03: mov ebx, 4 */ 272 L_2B082A08: 273 ecx = MEM32(edi); /* 0x2B082A08: mov ecx, dword ptr [edi] */ 274 /* test ecx, ecx */ /* 0x2B082A0A: test ecx, ecx */ 275 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 276 _cf = 0; 277 _flag_k = FK_TEST; 278 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082A14; /* 0x2B082A0C: je 0x2b082a14 */ 279 L_2B082A0E: 280 edx = MEM32(ecx); /* 0x2B082A0E: mov edx, dword ptr [ecx] */ 281 PUSH32(esp, 1); /* 0x2B082A10: push 1 */ 282 RECOMP_ICALL(MEM32(edx)); /* 0x2B082A12: call dword ptr [edx] */ 283 RECOMP_FLAGS_IN(); 284 L_2B082A14: 285 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 286 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 287 edi = edi + 4; /* 0x2B082A14: add edi, 4 */ 288 _flag_k = FK_ADD; 289 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 290 ebx = ebx - 1; /* 0x2B082A17: dec ebx */ 291 _flag_k = FK_DEC; 292 RECOMP_BACKEDGE(); 293 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B082A08; /* 0x2B082A18: jne 0x2b082a08 */ 294 L_2B082A1A: 295 ecx = MEM32(esi + 0x6C); /* 0x2B082A1A: mov ecx, dword ptr [esi + 0x6c] */ 296 /* test ecx, ecx */ /* 0x2B082A1D: test ecx, ecx */ 297 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 298 _cf = 0; 299 _flag_k = FK_TEST; 300 ebx = POP32_VAL(esp); /* 0x2B082A1F: pop ebx */ 301 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082A28; /* 0x2B082A20: je 0x2b082a28 */ 302 L_2B082A22: 303 eax = MEM32(ecx); /* 0x2B082A22: mov eax, dword ptr [ecx] */ 304 PUSH32(esp, 1); /* 0x2B082A24: push 1 */ 305 RECOMP_ICALL(MEM32(eax)); /* 0x2B082A26: call dword ptr [eax] */ 306 RECOMP_FLAGS_IN(); 307 L_2B082A28: 308 ecx = MEM32(esi + 0x78); /* 0x2B082A28: mov ecx, dword ptr [esi + 0x78] */ 309 eax = MEM32(ecx + 0x28); /* 0x2B082A2B: mov eax, dword ptr [ecx + 0x28] */ 310 PUSH32(esp, eax); /* 0x2B082A2E: push eax */ 311 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B082A2F: call dword ptr [0x2b0b5f80] */ 312 RECOMP_FLAGS_IN(); 313 ecx = eax; /* 0x2B082A35: mov ecx, eax */ 314 RECOMP_ICALL(MEM32(0x2B0B5FB8)); /* 0x2B082A37: call dword ptr [0x2b0b5fb8] */ 315 RECOMP_FLAGS_IN(); 316 ecx = MEM32(esi + 0x78); /* 0x2B082A3D: mov ecx, dword ptr [esi + 0x78] */ 317 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 318 edi = 0; /* 0x2B082A40: xor edi, edi */ 319 _cf = 0; 320 _flag_k = FK_TEST; 321 /* cmp ecx, edi */ /* 0x2B082A42: cmp ecx, edi */ 322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 324 _flag_k = FK_CMP; 325 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082A4C; /* 0x2B082A44: je 0x2b082a4c */ 326 L_2B082A46: 327 edx = MEM32(ecx); /* 0x2B082A46: mov edx, dword ptr [ecx] */ 328 PUSH32(esp, 1); /* 0x2B082A48: push 1 */ 329 RECOMP_ICALL(MEM32(edx)); /* 0x2B082A4A: call dword ptr [edx] */ 330 RECOMP_FLAGS_IN(); 331 L_2B082A4C: 332 ecx = MEM32(esi + 0x74); /* 0x2B082A4C: mov ecx, dword ptr [esi + 0x74] */ 333 /* cmp ecx, edi */ /* 0x2B082A4F: cmp ecx, edi */ 334 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 336 _flag_k = FK_CMP; 337 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082A59; /* 0x2B082A51: je 0x2b082a59 */ 338 L_2B082A53: 339 eax = MEM32(ecx); /* 0x2B082A53: mov eax, dword ptr [ecx] */ 340 PUSH32(esp, 1); /* 0x2B082A55: push 1 */ 341 RECOMP_ICALL(MEM32(eax)); /* 0x2B082A57: call dword ptr [eax] */ 342 RECOMP_FLAGS_IN(); 343 L_2B082A59: 344 ecx = MEM32(esi + 0x7C); /* 0x2B082A59: mov ecx, dword ptr [esi + 0x7c] */ 345 /* cmp ecx, edi */ /* 0x2B082A5C: cmp ecx, edi */ 346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 348 _flag_k = FK_CMP; 349 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082A66; /* 0x2B082A5E: je 0x2b082a66 */ 350 L_2B082A60: 351 edx = MEM32(ecx); /* 0x2B082A60: mov edx, dword ptr [ecx] */ 352 PUSH32(esp, 1); /* 0x2B082A62: push 1 */ 353 RECOMP_ICALL(MEM32(edx)); /* 0x2B082A64: call dword ptr [edx] */ 354 RECOMP_FLAGS_IN(); 355 L_2B082A66: 356 esi = MEM32(esi + 0x84); /* 0x2B082A66: mov esi, dword ptr [esi + 0x84] */ 357 /* cmp esi, edi */ /* 0x2B082A6C: cmp esi, edi */ 358 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 360 _flag_k = FK_CMP; 361 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082A81; /* 0x2B082A6E: je 0x2b082a81 */ 362 L_2B082A70: 363 ecx = esi; /* 0x2B082A70: mov ecx, esi */ 364 RECOMP_ICALL(MEM32(0x2B0B5984)); /* 0x2B082A72: call dword ptr [0x2b0b5984] */ 365 RECOMP_FLAGS_IN(); 366 PUSH32(esp, esi); /* 0x2B082A78: push esi */ 367 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B082A79: call 0x2b0ab1ba */ /* not lifted */ 368 RECOMP_FLAGS_IN(); 369 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 371 esp = esp + 4; /* 0x2B082A7E: add esp, 4 */ 372 _flag_k = FK_ADD; 373 L_2B082A81: 374 MEM32(0x2B0EF09C) = edi; /* 0x2B082A81: mov dword ptr [0x2b0ef09c], edi */ 375 edi = POP32_VAL(esp); /* 0x2B082A87: pop edi */ 376 esi = POP32_VAL(esp); /* 0x2B082A88: pop esi */ 377 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082A89: ret */ 378 RECOMP_REGS_OUT(); 379 } 380 381 void sub_2B082A90(void) { 382 int _fpu_cmp = 0; 383 uint32_t _cf = 0; 384 int _df = 1; 385 uint32_t _flag_k = FK_NONE; 386 uint32_t _flag_a = 0, _flag_b = 0; 387 uint32_t _itail_tgt = 0; 388 RECOMP_REGS_LOCALS 389 RECOMP_ENTER(0x2B082A90u); 390 391 L_2B082A90: 392 PUSH32(esp, esi); /* 0x2B082A90: push esi */ 393 esi = ecx; /* 0x2B082A91: mov esi, ecx */ 394 ecx = MEM32(esi + 0x3C); /* 0x2B082A93: mov ecx, dword ptr [esi + 0x3c] */ 395 /* test ecx, ecx */ /* 0x2B082A96: test ecx, ecx */ 396 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 397 _cf = 0; 398 _flag_k = FK_TEST; 399 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082A9F; /* 0x2B082A98: je 0x2b082a9f */ 400 L_2B082A9A: 401 RECOMP_ICALL(0x2B076050u); /* 0x2B082A9A: call 0x2b076050 */ /* not lifted */ 402 RECOMP_FLAGS_IN(); 403 L_2B082A9F: 404 ecx = esi; /* 0x2B082A9F: mov ecx, esi */ 405 RECOMP_ICALL(0x2B082AC0u); /* 0x2B082AA1: call 0x2b082ac0 */ /* not lifted */ 406 RECOMP_FLAGS_IN(); 407 ecx = esi; /* 0x2B082AA6: mov ecx, esi */ 408 RECOMP_ICALL(0x2B082BC0u); /* 0x2B082AA8: call 0x2b082bc0 */ /* not lifted */ 409 RECOMP_FLAGS_IN(); 410 ecx = esi; /* 0x2B082AAD: mov ecx, esi */ 411 RECOMP_ICALL(0x2B082F90u); /* 0x2B082AAF: call 0x2b082f90 */ /* not lifted */ 412 RECOMP_FLAGS_IN(); 413 esi = POP32_VAL(esp); /* 0x2B082AB4: pop esi */ 414 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082AB5: ret */ 415 RECOMP_REGS_OUT(); 416 } 417 418 void sub_2B082AC0(void) { 419 int _fpu_cmp = 0; 420 uint32_t _cf = 0; 421 int _df = 1; 422 uint32_t _flag_k = FK_NONE; 423 uint32_t _flag_a = 0, _flag_b = 0; 424 uint32_t _itail_tgt = 0; 425 RECOMP_REGS_LOCALS 426 RECOMP_ENTER(0x2B082AC0u); 427 428 L_2B082AC0: 429 PUSH32(esp, ebp); /* 0x2B082AC0: push ebp */ 430 ebp = esp; /* 0x2B082AC1: mov ebp, esp */ 431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 433 esp = esp - 8; /* 0x2B082AC3: sub esp, 8 */ 434 _flag_k = FK_CMP; 435 PUSH32(esp, esi); /* 0x2B082AC6: push esi */ 436 esi = ecx; /* 0x2B082AC7: mov esi, ecx */ 437 SET_LO8(eax, MEM8(esi + 0x50)); /* 0x2B082AC9: mov al, byte ptr [esi + 0x50] */ 438 /* test LO8(eax), LO8(eax) */ /* 0x2B082ACC: test al, al */ 439 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 440 _cf = 0; 441 _flag_k = FK_NARROW(FK_TEST, 24); 442 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082BAD; /* 0x2B082ACE: je 0x2b082bad */ 443 L_2B082AD4: 444 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B082AD4: call dword ptr [0x2b0b53bc] */ 445 RECOMP_FLAGS_IN(); 446 eax = MEM32(eax + 0x24); /* 0x2B082ADA: mov eax, dword ptr [eax + 0x24] */ 447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x54)); 448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 449 eax = eax - MEM32(esi + 0x54); /* 0x2B082ADD: sub eax, dword ptr [esi + 0x54] */ 450 _flag_k = FK_CMP; 451 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 452 edx = 0; /* 0x2B082AE0: xor edx, edx */ 453 _cf = 0; 454 _flag_k = FK_TEST; 455 ecx = 0x465u; /* 0x2B082AE2: mov ecx, 0x465 */ 456 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x2B082AE7: div ecx */ 457 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 458 else { eax = 0; edx = 0; } } 459 /* cmp MEM8(esi + 0x51), 1 */ /* 0x2B082AE9: cmp byte ptr [esi + 0x51], 1 */ 460 _flag_a = (uint32_t)(MEM8(esi + 0x51)) << 24; _flag_b = (uint32_t)(1) << 24; 461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 462 _flag_k = FK_NARROW(FK_CMP, 24); 463 MEM32(ebp + (-0x4)) = 0; /* 0x2B082AED: mov dword ptr [ebp - 4], 0 */ 464 MEM32(ebp + (-0x8)) = edx; /* 0x2B082AF4: mov dword ptr [ebp - 8], edx */ 465 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x2B082AF7: fild qword ptr [ebp - 8] */ 466 if (CMP_NE(_flag_a, _flag_b)) goto L_2B082B12; /* 0x2B082AFA: jne 0x2b082b12 */ 467 L_2B082AFC: 468 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x58)); /* 0x2B082AFC: fcom dword ptr [esi + 0x58] */ 469 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B082AFF: fnstsw ax */ 470 /* test HI8(eax), 1 */ /* 0x2B082B01: test ah, 1 */ 471 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 472 _cf = 0; 473 _flag_k = FK_NARROW(FK_TEST, 24); 474 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082B12; /* 0x2B082B04: je 0x2b082b12 */ 475 L_2B082B06: 476 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B082B06: fstp st(0) */ 477 MEM8(esi + 0x50) = (uint8_t)(0); /* 0x2B082B08: mov byte ptr [esi + 0x50], 0 */ 478 fp_push(*(float*)&MEM32(0x2B0B61B8)); /* 0x2B082B0C: fld dword ptr [0x2b0b61b8] */ 479 L_2B082B12: 480 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B718C)); /* 0x2B082B12: fcom dword ptr [0x2b0b718c] */ 481 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x58) = _v; } /* 0x2B082B18: fst dword ptr [esi + 0x58] */ 482 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B082B1B: fnstsw ax */ 483 /* test HI8(eax), 0x41u */ /* 0x2B082B1D: test ah, 0x41 */ 484 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 485 _cf = 0; 486 _flag_k = FK_NARROW(FK_TEST, 24); 487 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B082B36; /* 0x2B082B20: jne 0x2b082b36 */ 488 L_2B082B22: 489 _st[0] -= (double)*(float*)ADDR(0x2B0B718C); /* 0x2B082B22: fsub dword ptr [0x2b0b718c] */ 490 _st[0] *= (double)*(float*)ADDR(0x2B0B7188); /* 0x2B082B28: fmul dword ptr [0x2b0b7188] */ 491 _st[0] = (double)*(float*)ADDR(0x2B0B63D0) - _st[0]; /* 0x2B082B2E: fsubr dword ptr [0x2b0b63d0] */ 492 goto L_2B082B3C; /* 0x2B082B34: jmp 0x2b082b3c */ 493 L_2B082B36: 494 _st[0] *= (double)*(float*)ADDR(0x2B0B7184); /* 0x2B082B36: fmul dword ptr [0x2b0b7184] */ 495 L_2B082B3C: 496 esi = MEM32(esi + 0x4C); /* 0x2B082B3C: mov esi, dword ptr [esi + 0x4c] */ 497 /* test esi, esi */ /* 0x2B082B3F: test esi, esi */ 498 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 499 _cf = 0; 500 _flag_k = FK_TEST; 501 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082BAB; /* 0x2B082B41: je 0x2b082bab */ 502 L_2B082B43: 503 fp_push(_st[0]); /* 0x2B082B43: fld st(0) */ 504 PUSH32(esp, edi); /* 0x2B082B45: push edi */ 505 _st[0] *= (double)*(float*)ADDR(0x2B0B7180); /* 0x2B082B46: fmul dword ptr [0x2b0b7180] */ 506 RECOMP_ICALL(0x2B0AB220u); /* 0x2B082B4C: call 0x2b0ab220 */ /* not lifted */ 507 RECOMP_FLAGS_IN(); 508 fp_push(_st[0]); /* 0x2B082B51: fld st(0) */ 509 _st[0] *= (double)*(float*)ADDR(0x2B0B717C); /* 0x2B082B53: fmul dword ptr [0x2b0b717c] */ 510 edx = 0x1Bu; /* 0x2B082B59: mov edx, 0x1b */ 511 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 513 edx = edx - eax; /* 0x2B082B5E: sub edx, eax */ 514 _flag_k = FK_CMP; 515 if (16u) _cf = (((edx) >> 16) & 1u); /* 0x2B082B60: shl edx, 0x10 */ 516 if (16u) { _flag_a = recomp_flags_pack((edx << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 517 edx = edx << 16u; /* 0x2B082B60: shl edx, 0x10 */ 518 edi = edx; /* 0x2B082B63: mov edi, edx */ 519 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x00FF0000u); 520 edi = edi & 0x00FF0000u; /* 0x2B082B65: and edi, 0xff0000 */ 521 _cf = 0; 522 _flag_k = FK_TEST; 523 RECOMP_ICALL(0x2B0AB220u); /* 0x2B082B6B: call 0x2b0ab220 */ /* not lifted */ 524 RECOMP_FLAGS_IN(); 525 _st[0] *= (double)*(float*)ADDR(0x2B0B7178); /* 0x2B082B70: fmul dword ptr [0x2b0b7178] */ 526 ecx = 0x25u; /* 0x2B082B76: mov ecx, 0x25 */ 527 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 529 ecx = ecx - eax; /* 0x2B082B7B: sub ecx, eax */ 530 _flag_k = FK_CMP; 531 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B082B7D: shl ecx, 8 */ 532 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 533 ecx = ecx << 8u; /* 0x2B082B7D: shl ecx, 8 */ 534 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFF00u); 535 ecx = ecx & 0xFF00u; /* 0x2B082B80: and ecx, 0xff00 */ 536 _cf = 0; 537 _flag_k = FK_TEST; 538 _flag_a = (uint32_t)((edi | ecx)); _flag_b = (uint32_t)((edi | ecx)); 539 edi = edi | ecx; /* 0x2B082B86: or edi, ecx */ 540 _cf = 0; 541 _flag_k = FK_TEST; 542 RECOMP_ICALL(0x2B0AB220u); /* 0x2B082B88: call 0x2b0ab220 */ /* not lifted */ 543 RECOMP_FLAGS_IN(); 544 edx = 0x2Du; /* 0x2B082B8D: mov edx, 0x2d */ 545 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 547 edx = edx - eax; /* 0x2B082B92: sub edx, eax */ 548 _flag_k = FK_CMP; 549 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 550 edx = edx & 0xFFu; /* 0x2B082B94: and edx, 0xff */ 551 _cf = 0; 552 _flag_k = FK_TEST; 553 _flag_a = (uint32_t)((edi | edx)); _flag_b = (uint32_t)((edi | edx)); 554 edi = edi | edx; /* 0x2B082B9A: or edi, edx */ 555 _cf = 0; 556 _flag_k = FK_TEST; 557 PUSH32(esp, edi); /* 0x2B082B9C: push edi */ 558 ecx = esi; /* 0x2B082B9D: mov ecx, esi */ 559 RECOMP_ICALL(MEM32(0x2B0B54EC)); /* 0x2B082B9F: call dword ptr [0x2b0b54ec] */ 560 RECOMP_FLAGS_IN(); 561 edi = POP32_VAL(esp); /* 0x2B082BA5: pop edi */ 562 esi = POP32_VAL(esp); /* 0x2B082BA6: pop esi */ 563 esp = ebp; /* 0x2B082BA7: mov esp, ebp */ 564 ebp = POP32_VAL(esp); /* 0x2B082BA9: pop ebp */ 565 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082BAA: ret */ 566 L_2B082BAB: 567 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B082BAB: fstp st(0) */ 568 L_2B082BAD: 569 esi = POP32_VAL(esp); /* 0x2B082BAD: pop esi */ 570 esp = ebp; /* 0x2B082BAE: mov esp, ebp */ 571 ebp = POP32_VAL(esp); /* 0x2B082BB0: pop ebp */ 572 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082BB1: ret */ 573 RECOMP_REGS_OUT(); 574 } 575 576 void sub_2B082BC0(void) { 577 int _fpu_cmp = 0; 578 uint32_t _cf = 0; 579 int _df = 1; 580 uint32_t _flag_k = FK_NONE; 581 uint32_t _flag_a = 0, _flag_b = 0; 582 uint32_t _itail_tgt = 0; 583 RECOMP_REGS_LOCALS 584 RECOMP_ENTER(0x2B082BC0u); 585 586 L_2B082BC0: 587 PUSH32(esp, esi); /* 0x2B082BC0: push esi */ 588 PUSH32(esp, 0); /* 0x2B082BC1: push 0 */ 589 esi = ecx; /* 0x2B082BC3: mov esi, ecx */ 590 RECOMP_ICALL(MEM32(0x2B0B5F38)); /* 0x2B082BC5: call dword ptr [0x2b0b5f38] */ 591 RECOMP_FLAGS_IN(); 592 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 594 esp = esp + 4; /* 0x2B082BCB: add esp, 4 */ 595 _flag_k = FK_ADD; 596 PUSH32(esp, eax); /* 0x2B082BCE: push eax */ 597 ecx = esi; /* 0x2B082BCF: mov ecx, esi */ 598 RECOMP_ICALL(0x2B082EB0u); /* 0x2B082BD1: call 0x2b082eb0 */ /* not lifted */ 599 RECOMP_FLAGS_IN(); 600 esi = POP32_VAL(esp); /* 0x2B082BD6: pop esi */ 601 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082BD7: ret */ 602 RECOMP_REGS_OUT(); 603 } 604 605 void sub_2B082BE0(void) { 606 int _fpu_cmp = 0; 607 uint32_t _cf = 0; 608 int _df = 1; 609 uint32_t _flag_k = FK_NONE; 610 uint32_t _flag_a = 0, _flag_b = 0; 611 uint32_t _itail_tgt = 0; 612 RECOMP_REGS_LOCALS 613 RECOMP_ENTER(0x2B082BE0u); 614 615 L_2B082BE0: 616 PUSH32(esp, ebp); /* 0x2B082BE0: push ebp */ 617 ebp = esp; /* 0x2B082BE1: mov ebp, esp */ 618 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x2B082BE3: mov al, byte ptr [ebp + 8] */ 619 /* test LO8(eax), LO8(eax) */ /* 0x2B082BE6: test al, al */ 620 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 621 _cf = 0; 622 _flag_k = FK_NARROW(FK_TEST, 24); 623 PUSH32(esp, esi); /* 0x2B082BE8: push esi */ 624 esi = ecx; /* 0x2B082BE9: mov esi, ecx */ 625 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082C06; /* 0x2B082BEB: je 0x2b082c06 */ 626 L_2B082BED: 627 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B082BED: call dword ptr [0x2b0b53bc] */ 628 RECOMP_FLAGS_IN(); 629 eax = MEM32(eax + 0x24); /* 0x2B082BF3: mov eax, dword ptr [eax + 0x24] */ 630 MEM32(esi + 0x54) = eax; /* 0x2B082BF6: mov dword ptr [esi + 0x54], eax */ 631 MEM8(esi + 0x50) = (uint8_t)(1); /* 0x2B082BF9: mov byte ptr [esi + 0x50], 1 */ 632 MEM8(esi + 0x51) = (uint8_t)(0); /* 0x2B082BFD: mov byte ptr [esi + 0x51], 0 */ 633 esi = POP32_VAL(esp); /* 0x2B082C01: pop esi */ 634 ebp = POP32_VAL(esp); /* 0x2B082C02: pop ebp */ 635 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B082C03: ret 4 */ 636 L_2B082C06: 637 MEM8(esi + 0x51) = (uint8_t)(1); /* 0x2B082C06: mov byte ptr [esi + 0x51], 1 */ 638 esi = POP32_VAL(esp); /* 0x2B082C0A: pop esi */ 639 ebp = POP32_VAL(esp); /* 0x2B082C0B: pop ebp */ 640 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B082C0C: ret 4 */ 641 RECOMP_REGS_OUT(); 642 } 643 644 void sub_2B082C10(void) { 645 int _fpu_cmp = 0; 646 uint32_t _cf = 0; 647 int _df = 1; 648 uint32_t _flag_k = FK_NONE; 649 uint32_t _flag_a = 0, _flag_b = 0; 650 uint32_t _itail_tgt = 0; 651 RECOMP_REGS_LOCALS 652 RECOMP_ENTER(0x2B082C10u); 653 654 L_2B082C10: 655 PUSH32(esp, ebp); /* 0x2B082C10: push ebp */ 656 ebp = esp; /* 0x2B082C11: mov ebp, esp */ 657 PUSH32(esp, esi); /* 0x2B082C13: push esi */ 658 esi = MEM32(ebp + 0x8); /* 0x2B082C14: mov esi, dword ptr [ebp + 8] */ 659 /* test esi, esi */ /* 0x2B082C17: test esi, esi */ 660 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 661 _cf = 0; 662 _flag_k = FK_TEST; 663 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082C6B; /* 0x2B082C19: je 0x2b082c6b */ 664 L_2B082C1B: 665 /* cmp MEM32(ebp + 0xC), 1 */ /* 0x2B082C1B: cmp dword ptr [ebp + 0xc], 1 */ 666 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(1); 667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 668 _flag_k = FK_CMP; 669 if (CMP_NE(_flag_a, _flag_b)) goto L_2B082C62; /* 0x2B082C1F: jne 0x2b082c62 */ 670 L_2B082C21: 671 eax = MEM32(0x2B0B6048); /* 0x2B082C21: mov eax, dword ptr [0x2b0b6048] */ 672 ecx = MEM32(eax); /* 0x2B082C26: mov ecx, dword ptr [eax] */ 673 PUSH32(esp, 1); /* 0x2B082C28: push 1 */ 674 PUSH32(esp, 0x2B0ECA50u); /* 0x2B082C2A: push 0x2b0eca50 */ 675 RECOMP_ICALL(MEM32(0x2B0B602C)); /* 0x2B082C2F: call dword ptr [0x2b0b602c] */ 676 RECOMP_FLAGS_IN(); 677 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 678 eax = eax - 1; /* 0x2B082C35: dec eax */ 679 _flag_k = FK_DEC; 680 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B082C56; /* 0x2B082C36: je 0x2b082c56 */ 681 L_2B082C38: 682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 683 eax = eax - 1; /* 0x2B082C38: dec eax */ 684 _flag_k = FK_DEC; 685 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B082C4A; /* 0x2B082C39: je 0x2b082c4a */ 686 L_2B082C3B: 687 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 688 eax = eax - 1; /* 0x2B082C3B: dec eax */ 689 _flag_k = FK_DEC; 690 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B082C6B; /* 0x2B082C3C: jne 0x2b082c6b */ 691 L_2B082C3E: 692 PUSH32(esp, 3); /* 0x2B082C3E: push 3 */ 693 ecx = esi; /* 0x2B082C40: mov ecx, esi */ 694 RECOMP_ICALL(0x2B082E80u); /* 0x2B082C42: call 0x2b082e80 */ /* not lifted */ 695 RECOMP_FLAGS_IN(); 696 esi = POP32_VAL(esp); /* 0x2B082C47: pop esi */ 697 ebp = POP32_VAL(esp); /* 0x2B082C48: pop ebp */ 698 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082C49: ret */ 699 L_2B082C4A: 700 PUSH32(esp, 2); /* 0x2B082C4A: push 2 */ 701 ecx = esi; /* 0x2B082C4C: mov ecx, esi */ 702 RECOMP_ICALL(0x2B082E80u); /* 0x2B082C4E: call 0x2b082e80 */ /* not lifted */ 703 RECOMP_FLAGS_IN(); 704 esi = POP32_VAL(esp); /* 0x2B082C53: pop esi */ 705 ebp = POP32_VAL(esp); /* 0x2B082C54: pop ebp */ 706 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082C55: ret */ 707 L_2B082C56: 708 PUSH32(esp, 1); /* 0x2B082C56: push 1 */ 709 ecx = esi; /* 0x2B082C58: mov ecx, esi */ 710 RECOMP_ICALL(0x2B082E80u); /* 0x2B082C5A: call 0x2b082e80 */ /* not lifted */ 711 RECOMP_FLAGS_IN(); 712 esi = POP32_VAL(esp); /* 0x2B082C5F: pop esi */ 713 ebp = POP32_VAL(esp); /* 0x2B082C60: pop ebp */ 714 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082C61: ret */ 715 L_2B082C62: 716 PUSH32(esp, 0); /* 0x2B082C62: push 0 */ 717 ecx = esi; /* 0x2B082C64: mov ecx, esi */ 718 RECOMP_ICALL(0x2B082E80u); /* 0x2B082C66: call 0x2b082e80 */ /* not lifted */ 719 RECOMP_FLAGS_IN(); 720 L_2B082C6B: 721 esi = POP32_VAL(esp); /* 0x2B082C6B: pop esi */ 722 ebp = POP32_VAL(esp); /* 0x2B082C6C: pop ebp */ 723 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082C6D: ret */ 724 RECOMP_REGS_OUT(); 725 } 726 727 void sub_2B082C70(void) { 728 int _fpu_cmp = 0; 729 uint32_t _cf = 0; 730 int _df = 1; 731 uint32_t _flag_k = FK_NONE; 732 uint32_t _flag_a = 0, _flag_b = 0; 733 uint32_t _itail_tgt = 0; 734 RECOMP_REGS_LOCALS 735 RECOMP_ENTER(0x2B082C70u); 736 737 L_2B082C70: 738 PUSH32(esp, ebp); /* 0x2B082C70: push ebp */ 739 ebp = esp; /* 0x2B082C71: mov ebp, esp */ 740 PUSH32(esp, esi); /* 0x2B082C73: push esi */ 741 esi = MEM32(ebp + 0x8); /* 0x2B082C74: mov esi, dword ptr [ebp + 8] */ 742 /* test esi, esi */ /* 0x2B082C77: test esi, esi */ 743 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 744 _cf = 0; 745 _flag_k = FK_TEST; 746 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082CC1; /* 0x2B082C79: je 0x2b082cc1 */ 747 L_2B082C7B: 748 eax = MEM32(0x2B0B6048); /* 0x2B082C7B: mov eax, dword ptr [0x2b0b6048] */ 749 ecx = MEM32(eax); /* 0x2B082C80: mov ecx, dword ptr [eax] */ 750 PUSH32(esp, 1); /* 0x2B082C82: push 1 */ 751 PUSH32(esp, 0x2B0E6CC4u); /* 0x2B082C84: push 0x2b0e6cc4 */ 752 RECOMP_ICALL(MEM32(0x2B0B602C)); /* 0x2B082C89: call dword ptr [0x2b0b602c] */ 753 RECOMP_FLAGS_IN(); 754 /* cmp eax, 1 */ /* 0x2B082C8F: cmp eax, 1 */ 755 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 757 _flag_k = FK_CMP; 758 if (CMP_NE(_flag_a, _flag_b)) goto L_2B082CC1; /* 0x2B082C92: jne 0x2b082cc1 */ 759 L_2B082C94: 760 eax = MEM32(ebp + 0xC); /* 0x2B082C94: mov eax, dword ptr [ebp + 0xc] */ 761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 762 eax = eax - 1; /* 0x2B082C97: dec eax */ 763 _flag_k = FK_DEC; 764 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B082CB8; /* 0x2B082C98: je 0x2b082cb8 */ 765 L_2B082C9A: 766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 767 eax = eax - 1; /* 0x2B082C9A: dec eax */ 768 _flag_k = FK_DEC; 769 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_2B082CAC; /* 0x2B082C9B: je 0x2b082cac */ 770 L_2B082C9D: 771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 772 eax = eax - 1; /* 0x2B082C9D: dec eax */ 773 _flag_k = FK_DEC; 774 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B082CC1; /* 0x2B082C9E: jne 0x2b082cc1 */ 775 L_2B082CA0: 776 PUSH32(esp, 3); /* 0x2B082CA0: push 3 */ 777 ecx = esi; /* 0x2B082CA2: mov ecx, esi */ 778 RECOMP_ICALL(0x2B082E80u); /* 0x2B082CA4: call 0x2b082e80 */ /* not lifted */ 779 RECOMP_FLAGS_IN(); 780 esi = POP32_VAL(esp); /* 0x2B082CA9: pop esi */ 781 ebp = POP32_VAL(esp); /* 0x2B082CAA: pop ebp */ 782 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082CAB: ret */ 783 L_2B082CAC: 784 PUSH32(esp, 2); /* 0x2B082CAC: push 2 */ 785 ecx = esi; /* 0x2B082CAE: mov ecx, esi */ 786 RECOMP_ICALL(0x2B082E80u); /* 0x2B082CB0: call 0x2b082e80 */ /* not lifted */ 787 RECOMP_FLAGS_IN(); 788 esi = POP32_VAL(esp); /* 0x2B082CB5: pop esi */ 789 ebp = POP32_VAL(esp); /* 0x2B082CB6: pop ebp */ 790 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082CB7: ret */ 791 L_2B082CB8: 792 PUSH32(esp, 1); /* 0x2B082CB8: push 1 */ 793 ecx = esi; /* 0x2B082CBA: mov ecx, esi */ 794 RECOMP_ICALL(0x2B082E80u); /* 0x2B082CBC: call 0x2b082e80 */ /* not lifted */ 795 RECOMP_FLAGS_IN(); 796 L_2B082CC1: 797 esi = POP32_VAL(esp); /* 0x2B082CC1: pop esi */ 798 ebp = POP32_VAL(esp); /* 0x2B082CC2: pop ebp */ 799 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082CC3: ret */ 800 RECOMP_REGS_OUT(); 801 } 802 803 void sub_2B082CD0(void) { 804 int _fpu_cmp = 0; 805 uint32_t _cf = 0; 806 int _df = 1; 807 uint32_t _flag_k = FK_NONE; 808 uint32_t _flag_a = 0, _flag_b = 0; 809 uint32_t _itail_tgt = 0; 810 RECOMP_REGS_LOCALS 811 RECOMP_ENTER(0x2B082CD0u); 812 813 L_2B082CD0: 814 PUSH32(esp, ebp); /* 0x2B082CD0: push ebp */ 815 ebp = esp; /* 0x2B082CD1: mov ebp, esp */ 816 PUSH32(esp, ecx); /* 0x2B082CD3: push ecx */ 817 eax = MEM32(ebp + 0x8); /* 0x2B082CD4: mov eax, dword ptr [ebp + 8] */ 818 PUSH32(esp, ebx); /* 0x2B082CD7: push ebx */ 819 PUSH32(esp, esi); /* 0x2B082CD8: push esi */ 820 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 821 esi = 0; /* 0x2B082CD9: xor esi, esi */ 822 _cf = 0; 823 _flag_k = FK_TEST; 824 /* cmp eax, esi */ /* 0x2B082CDB: cmp eax, esi */ 825 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 827 _flag_k = FK_CMP; 828 PUSH32(esp, edi); /* 0x2B082CDD: push edi */ 829 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082D93; /* 0x2B082CDE: je 0x2b082d93 */ 830 L_2B082CE4: 831 eax = MEM32(eax + 0x70); /* 0x2B082CE4: mov eax, dword ptr [eax + 0x70] */ 832 edi = MEM32(eax * 4 + 0x2B0EC9D4); /* 0x2B082CE7: mov edi, dword ptr [eax*4 + 0x2b0ec9d4] */ 833 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 834 ecx = ecx | 0xFFFFFFFFu; /* 0x2B082CEE: or ecx, 0xffffffff */ 835 _cf = 0; 836 _flag_k = FK_TEST; 837 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 838 eax = 0; /* 0x2B082CF1: xor eax, eax */ 839 _cf = 0; 840 _flag_k = FK_TEST; 841 MEM32(ebp + 0x8) = edi; /* 0x2B082CF3: mov dword ptr [ebp + 8], edi */ 842 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; } /* 0x2B082CF6: repne scasb al, byte ptr es:[edi] */ 843 ecx = ~ecx; /* 0x2B082CF8: not ecx */ 844 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 845 ecx = ecx - 1; /* 0x2B082CFA: dec ecx */ 846 _flag_k = FK_DEC; 847 edi = ecx; /* 0x2B082CFB: mov edi, ecx */ 848 /* cmp edi, 0xFFFFFFFDu */ /* 0x2B082CFD: cmp edi, -3 */ 849 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu); 850 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 851 _flag_k = FK_CMP; 852 MEM32(ebp + (-0x4)) = edi; /* 0x2B082D00: mov dword ptr [ebp - 4], edi */ 853 if (CMP_BE(_flag_a, _flag_b)) goto L_2B082D0B; /* 0x2B082D03: jbe 0x2b082d0b */ 854 L_2B082D05: 855 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B082D05: call dword ptr [0x2b0b51a8] */ 856 RECOMP_FLAGS_IN(); 857 L_2B082D0B: 858 ebx = MEM32(ebp + 0xC); /* 0x2B082D0B: mov ebx, dword ptr [ebp + 0xc] */ 859 ecx = MEM32(ebx + 0x4); /* 0x2B082D0E: mov ecx, dword ptr [ebx + 4] */ 860 /* cmp ecx, esi */ /* 0x2B082D11: cmp ecx, esi */ 861 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 863 _flag_k = FK_CMP; 864 MEM32(ebx + 0x8) = esi; /* 0x2B082D13: mov dword ptr [ebx + 8], esi */ 865 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082D3C; /* 0x2B082D16: je 0x2b082d3c */ 866 L_2B082D18: 867 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B082D18: mov al, byte ptr [ecx - 1] */ 868 /* test LO8(eax), LO8(eax) */ /* 0x2B082D1B: test al, al */ 869 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 870 _cf = 0; 871 _flag_k = FK_NARROW(FK_TEST, 24); 872 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082D3C; /* 0x2B082D1D: je 0x2b082d3c */ 873 L_2B082D1F: 874 /* cmp LO8(eax), 0xFFu */ /* 0x2B082D1F: cmp al, 0xff */ 875 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 877 _flag_k = FK_NARROW(FK_CMP, 24); 878 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082D3C; /* 0x2B082D21: je 0x2b082d3c */ 879 L_2B082D23: 880 /* cmp edi, esi */ /* 0x2B082D23: cmp edi, esi */ 881 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 883 _flag_k = FK_CMP; 884 if (CMP_NE(_flag_a, _flag_b)) goto L_2B082D67; /* 0x2B082D25: jne 0x2b082d67 */ 885 L_2B082D27: 886 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 887 SET_LO8(eax, LO8(eax) - 1); /* 0x2B082D27: dec al */ 888 _flag_k = FK_NARROW(FK_DEC, 24); 889 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B082D29: mov byte ptr [ecx - 1], al */ 890 edi = POP32_VAL(esp); /* 0x2B082D2C: pop edi */ 891 MEM32(ebx + 0x4) = esi; /* 0x2B082D2D: mov dword ptr [ebx + 4], esi */ 892 MEM32(ebx + 0x8) = esi; /* 0x2B082D30: mov dword ptr [ebx + 8], esi */ 893 MEM32(ebx + 0xC) = esi; /* 0x2B082D33: mov dword ptr [ebx + 0xc], esi */ 894 esi = POP32_VAL(esp); /* 0x2B082D36: pop esi */ 895 ebx = POP32_VAL(esp); /* 0x2B082D37: pop ebx */ 896 esp = ebp; /* 0x2B082D38: mov esp, ebp */ 897 ebp = POP32_VAL(esp); /* 0x2B082D3A: pop ebp */ 898 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082D3B: ret */ 899 L_2B082D3C: 900 /* cmp edi, esi */ /* 0x2B082D3C: cmp edi, esi */ 901 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 903 _flag_k = FK_CMP; 904 if (CMP_NE(_flag_a, _flag_b)) goto L_2B082D51; /* 0x2B082D3E: jne 0x2b082d51 */ 905 L_2B082D40: 906 PUSH32(esp, 1); /* 0x2B082D40: push 1 */ 907 ecx = ebx; /* 0x2B082D42: mov ecx, ebx */ 908 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B082D44: call dword ptr [0x2b0b514c] */ 909 RECOMP_FLAGS_IN(); 910 edi = POP32_VAL(esp); /* 0x2B082D4A: pop edi */ 911 esi = POP32_VAL(esp); /* 0x2B082D4B: pop esi */ 912 ebx = POP32_VAL(esp); /* 0x2B082D4C: pop ebx */ 913 esp = ebp; /* 0x2B082D4D: mov esp, ebp */ 914 ebp = POP32_VAL(esp); /* 0x2B082D4F: pop ebp */ 915 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082D50: ret */ 916 L_2B082D51: 917 eax = MEM32(ebx + 0xC); /* 0x2B082D51: mov eax, dword ptr [ebx + 0xc] */ 918 /* cmp eax, 0x1Fu */ /* 0x2B082D54: cmp eax, 0x1f */ 919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 921 _flag_k = FK_CMP; 922 if (CMP_A(_flag_a, _flag_b)) goto L_2B082D5D; /* 0x2B082D57: ja 0x2b082d5d */ 923 L_2B082D59: 924 /* cmp eax, edi */ /* 0x2B082D59: cmp eax, edi */ 925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 927 _flag_k = FK_CMP; 928 if (CMP_AE(_flag_a, _flag_b)) goto L_2B082D70; /* 0x2B082D5B: jae 0x2b082d70 */ 929 L_2B082D5D: 930 PUSH32(esp, 1); /* 0x2B082D5D: push 1 */ 931 ecx = ebx; /* 0x2B082D5F: mov ecx, ebx */ 932 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B082D61: call dword ptr [0x2b0b514c] */ 933 RECOMP_FLAGS_IN(); 934 L_2B082D67: 935 PUSH32(esp, edi); /* 0x2B082D67: push edi */ 936 ecx = ebx; /* 0x2B082D68: mov ecx, ebx */ 937 RECOMP_ICALL(MEM32(0x2B0B5110)); /* 0x2B082D6A: call dword ptr [0x2b0b5110] */ 938 RECOMP_FLAGS_IN(); 939 L_2B082D70: 940 esi = MEM32(ebp + 0x8); /* 0x2B082D70: mov esi, dword ptr [ebp + 8] */ 941 eax = MEM32(ebp + (-0x4)); /* 0x2B082D73: mov eax, dword ptr [ebp - 4] */ 942 ecx = edi; /* 0x2B082D76: mov ecx, edi */ 943 edi = MEM32(ebx + 0x4); /* 0x2B082D78: mov edi, dword ptr [ebx + 4] */ 944 edx = ecx; /* 0x2B082D7B: mov edx, ecx */ 945 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B082D7D: shr ecx, 2 */ 946 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 947 ecx = ecx >> 2u; /* 0x2B082D7D: shr ecx, 2 */ 948 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B082D80: 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; } 949 ecx = edx; /* 0x2B082D82: mov ecx, edx */ 950 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 951 ecx = ecx & 3; /* 0x2B082D84: and ecx, 3 */ 952 _cf = 0; 953 _flag_k = FK_TEST; 954 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B082D87: 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; } 955 ecx = MEM32(ebx + 0x4); /* 0x2B082D89: mov ecx, dword ptr [ebx + 4] */ 956 MEM32(ebx + 0x8) = eax; /* 0x2B082D8C: mov dword ptr [ebx + 8], eax */ 957 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B082D8F: mov byte ptr [ecx + eax], 0 */ 958 L_2B082D93: 959 edi = POP32_VAL(esp); /* 0x2B082D93: pop edi */ 960 esi = POP32_VAL(esp); /* 0x2B082D94: pop esi */ 961 ebx = POP32_VAL(esp); /* 0x2B082D95: pop ebx */ 962 esp = ebp; /* 0x2B082D96: mov esp, ebp */ 963 ebp = POP32_VAL(esp); /* 0x2B082D98: pop ebp */ 964 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082D99: ret */ 965 RECOMP_REGS_OUT(); 966 } 967 968 void sub_2B082DA0(void) { 969 int _fpu_cmp = 0; 970 uint32_t _cf = 0; 971 int _df = 1; 972 uint32_t _flag_k = FK_NONE; 973 uint32_t _flag_a = 0, _flag_b = 0; 974 uint32_t _itail_tgt = 0; 975 RECOMP_REGS_LOCALS 976 RECOMP_ENTER(0x2B082DA0u); 977 978 L_2B082DA0: 979 PUSH32(esp, ebp); /* 0x2B082DA0: push ebp */ 980 ebp = esp; /* 0x2B082DA1: mov ebp, esp */ 981 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 983 esp = esp - 0x10u; /* 0x2B082DA3: sub esp, 0x10 */ 984 _flag_k = FK_CMP; 985 eax = MEM32(ebp + 0x8); /* 0x2B082DA6: mov eax, dword ptr [ebp + 8] */ 986 PUSH32(esp, ebx); /* 0x2B082DA9: push ebx */ 987 PUSH32(esp, esi); /* 0x2B082DAA: push esi */ 988 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 989 esi = 0; /* 0x2B082DAB: xor esi, esi */ 990 _cf = 0; 991 _flag_k = FK_TEST; 992 /* cmp eax, esi */ /* 0x2B082DAD: cmp eax, esi */ 993 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 995 _flag_k = FK_CMP; 996 PUSH32(esp, edi); /* 0x2B082DAF: push edi */ 997 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082E75; /* 0x2B082DB0: je 0x2b082e75 */ 998 L_2B082DB6: 999 eax = MEM32(eax + 0x80); /* 0x2B082DB6: mov eax, dword ptr [eax + 0x80] */ 1000 PUSH32(esp, eax); /* 0x2B082DBC: push eax */ 1001 PUSH32(esp, 0x2B0ECB50u); /* 0x2B082DBD: push 0x2b0ecb50 */ 1002 ecx = ebp + (-0x10); /* 0x2B082DC2: lea ecx, [ebp - 0x10] */ 1003 PUSH32(esp, 0xFu); /* 0x2B082DC5: push 0xf */ 1004 PUSH32(esp, ecx); /* 0x2B082DC7: push ecx */ 1005 RECOMP_ICALL(0x2B012180u); /* 0x2B082DC8: call 0x2b012180 */ /* not lifted */ 1006 RECOMP_FLAGS_IN(); 1007 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1008 ecx = ecx | 0xFFFFFFFFu; /* 0x2B082DCD: or ecx, 0xffffffff */ 1009 _cf = 0; 1010 _flag_k = FK_TEST; 1011 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1012 eax = 0; /* 0x2B082DD0: xor eax, eax */ 1013 _cf = 0; 1014 _flag_k = FK_TEST; 1015 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1016 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1017 esp = esp + 0x10u; /* 0x2B082DD2: add esp, 0x10 */ 1018 _flag_k = FK_ADD; 1019 edi = ebp + (-0x10); /* 0x2B082DD5: lea edi, [ebp - 0x10] */ 1020 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; } /* 0x2B082DD8: repne scasb al, byte ptr es:[edi] */ 1021 ecx = ~ecx; /* 0x2B082DDA: not ecx */ 1022 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1023 ecx = ecx - 1; /* 0x2B082DDC: dec ecx */ 1024 _flag_k = FK_DEC; 1025 edi = ecx; /* 0x2B082DDD: mov edi, ecx */ 1026 /* cmp edi, 0xFFFFFFFDu */ /* 0x2B082DDF: cmp edi, -3 */ 1027 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu); 1028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1029 _flag_k = FK_CMP; 1030 MEM32(ebp + 0x8) = edi; /* 0x2B082DE2: mov dword ptr [ebp + 8], edi */ 1031 if (CMP_BE(_flag_a, _flag_b)) goto L_2B082DED; /* 0x2B082DE5: jbe 0x2b082ded */ 1032 L_2B082DE7: 1033 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B082DE7: call dword ptr [0x2b0b51a8] */ 1034 RECOMP_FLAGS_IN(); 1035 L_2B082DED: 1036 ebx = MEM32(ebp + 0xC); /* 0x2B082DED: mov ebx, dword ptr [ebp + 0xc] */ 1037 ecx = MEM32(ebx + 0x4); /* 0x2B082DF0: mov ecx, dword ptr [ebx + 4] */ 1038 /* cmp ecx, esi */ /* 0x2B082DF3: cmp ecx, esi */ 1039 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1041 _flag_k = FK_CMP; 1042 MEM32(ebx + 0x8) = esi; /* 0x2B082DF5: mov dword ptr [ebx + 8], esi */ 1043 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082E1E; /* 0x2B082DF8: je 0x2b082e1e */ 1044 L_2B082DFA: 1045 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2B082DFA: mov al, byte ptr [ecx - 1] */ 1046 /* test LO8(eax), LO8(eax) */ /* 0x2B082DFD: test al, al */ 1047 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1048 _cf = 0; 1049 _flag_k = FK_NARROW(FK_TEST, 24); 1050 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082E1E; /* 0x2B082DFF: je 0x2b082e1e */ 1051 L_2B082E01: 1052 /* cmp LO8(eax), 0xFFu */ /* 0x2B082E01: cmp al, 0xff */ 1053 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1055 _flag_k = FK_NARROW(FK_CMP, 24); 1056 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B082E1E; /* 0x2B082E03: je 0x2b082e1e */ 1057 L_2B082E05: 1058 /* cmp edi, esi */ /* 0x2B082E05: cmp edi, esi */ 1059 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1061 _flag_k = FK_CMP; 1062 if (CMP_NE(_flag_a, _flag_b)) goto L_2B082E49; /* 0x2B082E07: jne 0x2b082e49 */ 1063 L_2B082E09: 1064 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1065 SET_LO8(eax, LO8(eax) - 1); /* 0x2B082E09: dec al */ 1066 _flag_k = FK_NARROW(FK_DEC, 24); 1067 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x2B082E0B: mov byte ptr [ecx - 1], al */ 1068 edi = POP32_VAL(esp); /* 0x2B082E0E: pop edi */ 1069 MEM32(ebx + 0x4) = esi; /* 0x2B082E0F: mov dword ptr [ebx + 4], esi */ 1070 MEM32(ebx + 0x8) = esi; /* 0x2B082E12: mov dword ptr [ebx + 8], esi */ 1071 MEM32(ebx + 0xC) = esi; /* 0x2B082E15: mov dword ptr [ebx + 0xc], esi */ 1072 esi = POP32_VAL(esp); /* 0x2B082E18: pop esi */ 1073 ebx = POP32_VAL(esp); /* 0x2B082E19: pop ebx */ 1074 esp = ebp; /* 0x2B082E1A: mov esp, ebp */ 1075 ebp = POP32_VAL(esp); /* 0x2B082E1C: pop ebp */ 1076 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082E1D: ret */ 1077 L_2B082E1E: 1078 /* cmp edi, esi */ /* 0x2B082E1E: cmp edi, esi */ 1079 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1081 _flag_k = FK_CMP; 1082 if (CMP_NE(_flag_a, _flag_b)) goto L_2B082E33; /* 0x2B082E20: jne 0x2b082e33 */ 1083 L_2B082E22: 1084 PUSH32(esp, 1); /* 0x2B082E22: push 1 */ 1085 ecx = ebx; /* 0x2B082E24: mov ecx, ebx */ 1086 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B082E26: call dword ptr [0x2b0b514c] */ 1087 RECOMP_FLAGS_IN(); 1088 edi = POP32_VAL(esp); /* 0x2B082E2C: pop edi */ 1089 esi = POP32_VAL(esp); /* 0x2B082E2D: pop esi */ 1090 ebx = POP32_VAL(esp); /* 0x2B082E2E: pop ebx */ 1091 esp = ebp; /* 0x2B082E2F: mov esp, ebp */ 1092 ebp = POP32_VAL(esp); /* 0x2B082E31: pop ebp */ 1093 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082E32: ret */ 1094 L_2B082E33: 1095 eax = MEM32(ebx + 0xC); /* 0x2B082E33: mov eax, dword ptr [ebx + 0xc] */ 1096 /* cmp eax, 0x1Fu */ /* 0x2B082E36: cmp eax, 0x1f */ 1097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 1098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1099 _flag_k = FK_CMP; 1100 if (CMP_A(_flag_a, _flag_b)) goto L_2B082E3F; /* 0x2B082E39: ja 0x2b082e3f */ 1101 L_2B082E3B: 1102 /* cmp eax, edi */ /* 0x2B082E3B: cmp eax, edi */ 1103 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1105 _flag_k = FK_CMP; 1106 if (CMP_AE(_flag_a, _flag_b)) goto L_2B082E52; /* 0x2B082E3D: jae 0x2b082e52 */ 1107 L_2B082E3F: 1108 PUSH32(esp, 1); /* 0x2B082E3F: push 1 */ 1109 ecx = ebx; /* 0x2B082E41: mov ecx, ebx */ 1110 RECOMP_ICALL(MEM32(0x2B0B514C)); /* 0x2B082E43: call dword ptr [0x2b0b514c] */ 1111 RECOMP_FLAGS_IN(); 1112 L_2B082E49: 1113 PUSH32(esp, edi); /* 0x2B082E49: push edi */ 1114 ecx = ebx; /* 0x2B082E4A: mov ecx, ebx */ 1115 RECOMP_ICALL(MEM32(0x2B0B5110)); /* 0x2B082E4C: call dword ptr [0x2b0b5110] */ 1116 RECOMP_FLAGS_IN(); 1117 L_2B082E52: 1118 eax = MEM32(ebp + 0x8); /* 0x2B082E52: mov eax, dword ptr [ebp + 8] */ 1119 ecx = edi; /* 0x2B082E55: mov ecx, edi */ 1120 edi = MEM32(ebx + 0x4); /* 0x2B082E57: mov edi, dword ptr [ebx + 4] */ 1121 edx = ecx; /* 0x2B082E5A: mov edx, ecx */ 1122 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B082E5C: shr ecx, 2 */ 1123 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1124 ecx = ecx >> 2u; /* 0x2B082E5C: shr ecx, 2 */ 1125 esi = ebp + (-0x10); /* 0x2B082E5F: lea esi, [ebp - 0x10] */ 1126 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B082E62: 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; } 1127 ecx = edx; /* 0x2B082E64: mov ecx, edx */ 1128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1129 ecx = ecx & 3; /* 0x2B082E66: and ecx, 3 */ 1130 _cf = 0; 1131 _flag_k = FK_TEST; 1132 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B082E69: 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; } 1133 ecx = MEM32(ebx + 0x4); /* 0x2B082E6B: mov ecx, dword ptr [ebx + 4] */ 1134 MEM32(ebx + 0x8) = eax; /* 0x2B082E6E: mov dword ptr [ebx + 8], eax */ 1135 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B082E71: mov byte ptr [ecx + eax], 0 */ 1136 L_2B082E75: 1137 edi = POP32_VAL(esp); /* 0x2B082E75: pop edi */ 1138 esi = POP32_VAL(esp); /* 0x2B082E76: pop esi */ 1139 ebx = POP32_VAL(esp); /* 0x2B082E77: pop ebx */ 1140 esp = ebp; /* 0x2B082E78: mov esp, ebp */ 1141 ebp = POP32_VAL(esp); /* 0x2B082E7A: pop ebp */ 1142 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082E7B: ret */ 1143 RECOMP_REGS_OUT(); 1144 } 1145 1146 void sub_2B082E80(void) { 1147 int _fpu_cmp = 0; 1148 uint32_t _cf = 0; 1149 int _df = 1; 1150 uint32_t _flag_k = FK_NONE; 1151 uint32_t _flag_a = 0, _flag_b = 0; 1152 uint32_t _itail_tgt = 0; 1153 RECOMP_REGS_LOCALS 1154 RECOMP_ENTER(0x2B082E80u); 1155 1156 L_2B082E80: 1157 PUSH32(esp, ebp); /* 0x2B082E80: push ebp */ 1158 ebp = esp; /* 0x2B082E81: mov ebp, esp */ 1159 eax = MEM32(ecx + 0x70); /* 0x2B082E83: mov eax, dword ptr [ecx + 0x70] */ 1160 edx = MEM32(ecx + eax * 4 + 0x5C); /* 0x2B082E86: mov edx, dword ptr [ecx + eax*4 + 0x5c] */ 1161 eax = MEM32(ebp + 0x8); /* 0x2B082E8A: mov eax, dword ptr [ebp + 8] */ 1162 MEM8(edx + 0x8) = (uint8_t)(0); /* 0x2B082E8D: mov byte ptr [edx + 8], 0 */ 1163 PUSH32(esp, esi); /* 0x2B082E91: push esi */ 1164 esi = MEM32(ecx + eax * 4 + 0x5C); /* 0x2B082E92: mov esi, dword ptr [ecx + eax*4 + 0x5c] */ 1165 SET_LO8(edx, 1); /* 0x2B082E96: mov dl, 1 */ 1166 MEM8(esi + 0x8) = (uint8_t)(LO8(edx)); /* 0x2B082E98: mov byte ptr [esi + 8], dl */ 1167 esi = MEM32(ecx + eax * 4 + 0x5C); /* 0x2B082E9B: mov esi, dword ptr [ecx + eax*4 + 0x5c] */ 1168 MEM8(esi + 0x9) = (uint8_t)(LO8(edx)); /* 0x2B082E9F: mov byte ptr [esi + 9], dl */ 1169 MEM32(ecx + 0x70) = eax; /* 0x2B082EA2: mov dword ptr [ecx + 0x70], eax */ 1170 esi = POP32_VAL(esp); /* 0x2B082EA5: pop esi */ 1171 ebp = POP32_VAL(esp); /* 0x2B082EA6: pop ebp */ 1172 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B082EA7: ret 4 */ 1173 RECOMP_REGS_OUT(); 1174 } 1175 1176 void sub_2B082EB0(void) { 1177 int _fpu_cmp = 0; 1178 uint32_t _cf = 0; 1179 int _df = 1; 1180 uint32_t _flag_k = FK_NONE; 1181 uint32_t _flag_a = 0, _flag_b = 0; 1182 uint32_t _itail_tgt = 0; 1183 RECOMP_REGS_LOCALS 1184 RECOMP_ENTER(0x2B082EB0u); 1185 1186 L_2B082EB0: 1187 PUSH32(esp, ebp); /* 0x2B082EB0: push ebp */ 1188 ebp = esp; /* 0x2B082EB1: mov ebp, esp */ 1189 PUSH32(esp, ebx); /* 0x2B082EB3: push ebx */ 1190 ebx = ecx; /* 0x2B082EB4: mov ebx, ecx */ 1191 eax = MEM32(ebx + 0x78); /* 0x2B082EB6: mov eax, dword ptr [ebx + 0x78] */ 1192 /* test eax, eax */ /* 0x2B082EB9: test eax, eax */ 1193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1194 _cf = 0; 1195 _flag_k = FK_TEST; 1196 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082F84; /* 0x2B082EBB: je 0x2b082f84 */ 1197 L_2B082EC1: 1198 PUSH32(esp, esi); /* 0x2B082EC1: push esi */ 1199 PUSH32(esp, edi); /* 0x2B082EC2: push edi */ 1200 edi = MEM32(ebp + 0x8); /* 0x2B082EC3: mov edi, dword ptr [ebp + 8] */ 1201 /* cmp edi, 0x96u */ /* 0x2B082EC6: cmp edi, 0x96 */ 1202 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x96u); 1203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1204 _flag_k = FK_CMP; 1205 eax = 0x00FF0000u; /* 0x2B082ECC: mov eax, 0xff0000 */ 1206 if (CMP_GE(_flag_a, _flag_b)) goto L_2B082EDD; /* 0x2B082ED1: jge 0x2b082edd */ 1207 L_2B082ED3: 1208 eax = 0xFF00u; /* 0x2B082ED3: mov eax, 0xff00 */ 1209 goto L_2B082F72; /* 0x2B082ED8: jmp 0x2b082f72 */ 1210 L_2B082EDD: 1211 /* cmp edi, 0x1F4u */ /* 0x2B082EDD: cmp edi, 0x1f4 */ 1212 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1F4u); 1213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1214 _flag_k = FK_CMP; 1215 if (CMP_GE(_flag_a, _flag_b)) goto L_2B082F21; /* 0x2B082EE3: jge 0x2b082f21 */ 1216 L_2B082EE5: 1217 eax = edi + (-0x96); /* 0x2B082EE5: lea eax, [edi - 0x96] */ 1218 MEM32(ebp + 0x8) = eax; /* 0x2B082EEB: mov dword ptr [ebp + 8], eax */ 1219 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B082EEE: fild dword ptr [ebp + 8] */ 1220 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1221 esi = 0; /* 0x2B082EF1: xor esi, esi */ 1222 _cf = 0; 1223 _flag_k = FK_TEST; 1224 _st[0] *= (double)*(float*)ADDR(0x2B0B7194); /* 0x2B082EF3: fmul dword ptr [0x2b0b7194] */ 1225 _st[0] *= (double)*(float*)ADDR(0x2B0B6888); /* 0x2B082EF9: fmul dword ptr [0x2b0b6888] */ 1226 RECOMP_ICALL(0x2B0AB220u); /* 0x2B082EFF: call 0x2b0ab220 */ /* not lifted */ 1227 RECOMP_FLAGS_IN(); 1228 ecx = esi; /* 0x2B082F04: mov ecx, esi */ 1229 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B082F06: shl ecx, 8 */ 1230 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1231 ecx = ecx << 8u; /* 0x2B082F06: shl ecx, 8 */ 1232 if (16u) _cf = (((eax) >> 16) & 1u); /* 0x2B082F09: shl eax, 0x10 */ 1233 if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1234 eax = eax << 16u; /* 0x2B082F09: shl eax, 0x10 */ 1235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x100u); 1236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1237 ecx = ecx - 0x100u; /* 0x2B082F0C: sub ecx, 0x100 */ 1238 _flag_k = FK_CMP; 1239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00FF0000u); 1240 eax = eax & 0x00FF0000u; /* 0x2B082F12: and eax, 0xff0000 */ 1241 _cf = 0; 1242 _flag_k = FK_TEST; 1243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFF00u); 1244 ecx = ecx & 0xFF00u; /* 0x2B082F17: and ecx, 0xff00 */ 1245 _cf = 0; 1246 _flag_k = FK_TEST; 1247 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 1248 eax = eax | ecx; /* 0x2B082F1D: or eax, ecx */ 1249 _cf = 0; 1250 _flag_k = FK_TEST; 1251 goto L_2B082F6A; /* 0x2B082F1F: jmp 0x2b082f6a */ 1252 L_2B082F21: 1253 /* cmp edi, 0x3E8u */ /* 0x2B082F21: cmp edi, 0x3e8 */ 1254 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3E8u); 1255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1256 _flag_k = FK_CMP; 1257 if (CMP_GE(_flag_a, _flag_b)) goto L_2B082F72; /* 0x2B082F27: jge 0x2b082f72 */ 1258 L_2B082F29: 1259 edx = edi + (-0x1F4); /* 0x2B082F29: lea edx, [edi - 0x1f4] */ 1260 MEM32(ebp + 0x8) = edx; /* 0x2B082F2F: mov dword ptr [ebp + 8], edx */ 1261 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2B082F32: fild dword ptr [ebp + 8] */ 1262 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1263 esi = 0; /* 0x2B082F35: xor esi, esi */ 1264 _cf = 0; 1265 _flag_k = FK_TEST; 1266 _st[0] *= (double)*(float*)ADDR(0x2B0B7190); /* 0x2B082F37: fmul dword ptr [0x2b0b7190] */ 1267 _st[0] *= (double)*(float*)ADDR(0x2B0B6888); /* 0x2B082F3D: fmul dword ptr [0x2b0b6888] */ 1268 RECOMP_ICALL(0x2B0AB220u); /* 0x2B082F43: call 0x2b0ab220 */ /* not lifted */ 1269 RECOMP_FLAGS_IN(); 1270 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1271 ecx = ecx | 0xFFFFFFFFu; /* 0x2B082F48: or ecx, 0xffffffff */ 1272 _cf = 0; 1273 _flag_k = FK_TEST; 1274 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1276 ecx = ecx - eax; /* 0x2B082F4B: sub ecx, eax */ 1277 _flag_k = FK_CMP; 1278 edx = esi; /* 0x2B082F4D: mov edx, esi */ 1279 if (16u) _cf = (((edx) >> 16) & 1u); /* 0x2B082F4F: shl edx, 0x10 */ 1280 if (16u) { _flag_a = recomp_flags_pack((edx << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1281 edx = edx << 16u; /* 0x2B082F4F: shl edx, 0x10 */ 1282 if (8u) _cf = (((ecx) >> 24) & 1u); /* 0x2B082F52: shl ecx, 8 */ 1283 if (8u) { _flag_a = recomp_flags_pack((ecx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1284 ecx = ecx << 8u; /* 0x2B082F52: shl ecx, 8 */ 1285 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x00010000u); 1286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1287 edx = edx - 0x00010000u; /* 0x2B082F55: sub edx, 0x10000 */ 1288 _flag_k = FK_CMP; 1289 eax = ecx; /* 0x2B082F5B: mov eax, ecx */ 1290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFF00u); 1291 eax = eax & 0xFF00u; /* 0x2B082F5D: and eax, 0xff00 */ 1292 _cf = 0; 1293 _flag_k = FK_TEST; 1294 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x00FF0000u); 1295 edx = edx & 0x00FF0000u; /* 0x2B082F62: and edx, 0xff0000 */ 1296 _cf = 0; 1297 _flag_k = FK_TEST; 1298 _flag_a = (uint32_t)((eax | edx)); _flag_b = (uint32_t)((eax | edx)); 1299 eax = eax | edx; /* 0x2B082F68: or eax, edx */ 1300 _cf = 0; 1301 _flag_k = FK_TEST; 1302 L_2B082F6A: 1303 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 1304 esi = esi & 0xFFu; /* 0x2B082F6A: and esi, 0xff */ 1305 _cf = 0; 1306 _flag_k = FK_TEST; 1307 _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi)); 1308 eax = eax | esi; /* 0x2B082F70: or eax, esi */ 1309 _cf = 0; 1310 _flag_k = FK_TEST; 1311 L_2B082F72: 1312 ecx = MEM32(ebx + 0x78); /* 0x2B082F72: mov ecx, dword ptr [ebx + 0x78] */ 1313 PUSH32(esp, eax); /* 0x2B082F75: push eax */ 1314 RECOMP_ICALL(MEM32(0x2B0B54EC)); /* 0x2B082F76: call dword ptr [0x2b0b54ec] */ 1315 RECOMP_FLAGS_IN(); 1316 MEM32(ebx + 0x80) = edi; /* 0x2B082F7C: mov dword ptr [ebx + 0x80], edi */ 1317 edi = POP32_VAL(esp); /* 0x2B082F82: pop edi */ 1318 esi = POP32_VAL(esp); /* 0x2B082F83: pop esi */ 1319 L_2B082F84: 1320 ebx = POP32_VAL(esp); /* 0x2B082F84: pop ebx */ 1321 ebp = POP32_VAL(esp); /* 0x2B082F85: pop ebp */ 1322 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B082F86: ret 4 */ 1323 RECOMP_REGS_OUT(); 1324 } 1325 1326 void sub_2B082F72(void) { 1327 int _fpu_cmp = 0; 1328 uint32_t _cf = 0; 1329 int _df = 1; 1330 uint32_t _flag_k = FK_NONE; 1331 uint32_t _flag_a = 0, _flag_b = 0; 1332 uint32_t _itail_tgt = 0; 1333 RECOMP_REGS_LOCALS 1334 RECOMP_ENTER(0x2B082F72u); 1335 1336 L_2B082F72: 1337 ecx = MEM32(ebx + 0x78); /* 0x2B082F72: mov ecx, dword ptr [ebx + 0x78] */ 1338 PUSH32(esp, eax); /* 0x2B082F75: push eax */ 1339 RECOMP_ICALL(MEM32(0x2B0B54EC)); /* 0x2B082F76: call dword ptr [0x2b0b54ec] */ 1340 RECOMP_FLAGS_IN(); 1341 MEM32(ebx + 0x80) = edi; /* 0x2B082F7C: mov dword ptr [ebx + 0x80], edi */ 1342 edi = POP32_VAL(esp); /* 0x2B082F82: pop edi */ 1343 esi = POP32_VAL(esp); /* 0x2B082F83: pop esi */ 1344 ebx = POP32_VAL(esp); /* 0x2B082F84: pop ebx */ 1345 ebp = POP32_VAL(esp); /* 0x2B082F85: pop ebp */ 1346 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B082F86: ret 4 */ 1347 RECOMP_REGS_OUT(); 1348 } 1349 1350 void sub_2B082F90(void) { 1351 int _fpu_cmp = 0; 1352 uint32_t _cf = 0; 1353 int _df = 1; 1354 uint32_t _flag_k = FK_NONE; 1355 uint32_t _flag_a = 0, _flag_b = 0; 1356 uint32_t _itail_tgt = 0; 1357 RECOMP_REGS_LOCALS 1358 RECOMP_ENTER(0x2B082F90u); 1359 1360 L_2B082F90: 1361 PUSH32(esp, ebp); /* 0x2B082F90: push ebp */ 1362 ebp = esp; /* 0x2B082F91: mov ebp, esp */ 1363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 1364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1365 esp = esp - 0x20u; /* 0x2B082F93: sub esp, 0x20 */ 1366 _flag_k = FK_CMP; 1367 PUSH32(esp, esi); /* 0x2B082F96: push esi */ 1368 esi = ecx; /* 0x2B082F97: mov esi, ecx */ 1369 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B082F99: call dword ptr [0x2b0b53bc] */ 1370 RECOMP_FLAGS_IN(); 1371 eax = MEM32(eax + 0x14); /* 0x2B082F9F: mov eax, dword ptr [eax + 0x14] */ 1372 fp_push(*(float*)&MEM32(eax)); /* 0x2B082FA2: fld dword ptr [eax] */ 1373 _st[0] += (double)*(float*)ADDR(esi + 0x2C); /* 0x2B082FA4: fadd dword ptr [esi + 0x2c] */ 1374 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x2C) = _v; } /* 0x2B082FA7: fst dword ptr [esi + 0x2c] */ 1375 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6768)); /* 0x2B082FAA: fcomp dword ptr [0x2b0b6768] */ 1376 fp_pop(); 1377 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B082FB0: fnstsw ax */ 1378 /* test HI8(eax), 1 */ /* 0x2B082FB2: test ah, 1 */ 1379 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1380 _cf = 0; 1381 _flag_k = FK_NARROW(FK_TEST, 24); 1382 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08300D; /* 0x2B082FB5: jne 0x2b08300d */ 1383 L_2B082FB7: 1384 PUSH32(esp, ebx); /* 0x2B082FB7: push ebx */ 1385 PUSH32(esp, edi); /* 0x2B082FB8: push edi */ 1386 edi = MEM32(0x2B0B5D6C); /* 0x2B082FB9: mov edi, dword ptr [0x2b0b5d6c] */ 1387 RECOMP_ICALL(edi); /* 0x2B082FBF: call edi */ 1388 RECOMP_FLAGS_IN(); 1389 ecx = eax; /* 0x2B082FC1: mov ecx, eax */ 1390 RECOMP_ICALL(MEM32(0x2B0B5D34)); /* 0x2B082FC3: call dword ptr [0x2b0b5d34] */ 1391 RECOMP_FLAGS_IN(); 1392 ebx = eax; /* 0x2B082FC9: mov ebx, eax */ 1393 RECOMP_ICALL(edi); /* 0x2B082FCB: call edi */ 1394 RECOMP_FLAGS_IN(); 1395 ecx = eax; /* 0x2B082FCD: mov ecx, eax */ 1396 RECOMP_ICALL(MEM32(0x2B0B5D38)); /* 0x2B082FCF: call dword ptr [0x2b0b5d38] */ 1397 RECOMP_FLAGS_IN(); 1398 PUSH32(esp, eax); /* 0x2B082FD5: push eax */ 1399 PUSH32(esp, ebx); /* 0x2B082FD6: push ebx */ 1400 ecx = ebp + (-0x20); /* 0x2B082FD7: lea ecx, [ebp - 0x20] */ 1401 PUSH32(esp, 0x2B0ECB5Cu); /* 0x2B082FDA: push 0x2b0ecb5c */ 1402 PUSH32(esp, ecx); /* 0x2B082FDF: push ecx */ 1403 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B082FE0: call dword ptr [0x2b0b51f0] */ 1404 RECOMP_FLAGS_IN(); 1405 ecx = MEM32(esi + 0x28); /* 0x2B082FE6: mov ecx, dword ptr [esi + 0x28] */ 1406 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1408 esp = esp + 0x10u; /* 0x2B082FE9: add esp, 0x10 */ 1409 _flag_k = FK_ADD; 1410 edx = ebp + (-0x20); /* 0x2B082FEC: lea edx, [ebp - 0x20] */ 1411 PUSH32(esp, edx); /* 0x2B082FEF: push edx */ 1412 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B082FF0: call dword ptr [0x2b0b5850] */ 1413 RECOMP_FLAGS_IN(); 1414 ecx = MEM32(esi + 0x28); /* 0x2B082FF6: mov ecx, dword ptr [esi + 0x28] */ 1415 SET_LO8(eax, 1); /* 0x2B082FF9: mov al, 1 */ 1416 MEM8(ecx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B082FFB: mov byte ptr [ecx + 9], al */ 1417 edx = MEM32(esi + 0x24); /* 0x2B082FFE: mov edx, dword ptr [esi + 0x24] */ 1418 edi = POP32_VAL(esp); /* 0x2B083001: pop edi */ 1419 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2B083002: mov byte ptr [edx + 9], al */ 1420 MEM32(esi + 0x2C) = 0; /* 0x2B083005: mov dword ptr [esi + 0x2c], 0 */ 1421 ebx = POP32_VAL(esp); /* 0x2B08300C: pop ebx */ 1422 L_2B08300D: 1423 esi = POP32_VAL(esp); /* 0x2B08300D: pop esi */ 1424 esp = ebp; /* 0x2B08300E: mov esp, ebp */ 1425 ebp = POP32_VAL(esp); /* 0x2B083010: pop ebp */ 1426 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083011: ret */ 1427 RECOMP_REGS_OUT(); 1428 } 1429 1430 void sub_2B083020(void) { 1431 int _fpu_cmp = 0; 1432 uint32_t _cf = 0; 1433 int _df = 1; 1434 uint32_t _flag_k = FK_NONE; 1435 uint32_t _flag_a = 0, _flag_b = 0; 1436 uint32_t _itail_tgt = 0; 1437 RECOMP_REGS_LOCALS 1438 RECOMP_ENTER(0x2B083020u); 1439 1440 L_2B083020: 1441 PUSH32(esp, ebp); /* 0x2B083020: push ebp */ 1442 ebp = esp; /* 0x2B083021: mov ebp, esp */ 1443 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u); 1444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1445 esp = esp - 0x54u; /* 0x2B083023: sub esp, 0x54 */ 1446 _flag_k = FK_CMP; 1447 PUSH32(esp, ebx); /* 0x2B083026: push ebx */ 1448 PUSH32(esp, esi); /* 0x2B083027: push esi */ 1449 PUSH32(esp, edi); /* 0x2B083028: push edi */ 1450 ebx = ecx; /* 0x2B083029: mov ebx, ecx */ 1451 PUSH32(esp, 2); /* 0x2B08302B: push 2 */ 1452 PUSH32(esp, 0x3Du); /* 0x2B08302D: push 0x3d */ 1453 MEM32(ebp + (-0x4)) = ebx; /* 0x2B08302F: mov dword ptr [ebp - 4], ebx */ 1454 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B083032: call dword ptr [0x2b0b5d6c] */ 1455 RECOMP_FLAGS_IN(); 1456 ecx = eax; /* 0x2B083038: mov ecx, eax */ 1457 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B08303A: call dword ptr [0x2b0b5d70] */ 1458 RECOMP_FLAGS_IN(); 1459 PUSH32(esp, eax); /* 0x2B083040: push eax */ 1460 eax = ebp + (-0x54); /* 0x2B083041: lea eax, [ebp - 0x54] */ 1461 PUSH32(esp, 0x2B0EBF30u); /* 0x2B083044: push 0x2b0ebf30 */ 1462 PUSH32(esp, eax); /* 0x2B083049: push eax */ 1463 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B08304A: call dword ptr [0x2b0b51f0] */ 1464 RECOMP_FLAGS_IN(); 1465 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1466 eax = 0; /* 0x2B083050: xor eax, eax */ 1467 _cf = 0; 1468 _flag_k = FK_TEST; 1469 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1470 ecx = ecx | 0xFFFFFFFFu; /* 0x2B083052: or ecx, 0xffffffff */ 1471 _cf = 0; 1472 _flag_k = FK_TEST; 1473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1475 esp = esp + 0xCu; /* 0x2B083055: add esp, 0xc */ 1476 _flag_k = FK_ADD; 1477 edi = ebp + (-0x54); /* 0x2B083058: lea edi, [ebp - 0x54] */ 1478 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; } /* 0x2B08305B: repne scasb al, byte ptr es:[edi] */ 1479 ecx = ~ecx; /* 0x2B08305D: not ecx */ 1480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1481 ecx = ecx - 1; /* 0x2B08305F: dec ecx */ 1482 _flag_k = FK_DEC; 1483 eax = 0x55555556u; /* 0x2B083060: mov eax, 0x55555556 */ 1484 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B083065: imul ecx */ 1485 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1486 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1487 eax = edx; /* 0x2B083067: mov eax, edx */ 1488 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B083069: shr eax, 0x1f */ 1489 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1490 eax = eax >> 31u; /* 0x2B083069: shr eax, 0x1f */ 1491 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1493 edx = edx + eax; /* 0x2B08306C: add edx, eax */ 1494 _flag_k = FK_ADD; 1495 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1497 edx = edx + ecx; /* 0x2B08306E: add edx, ecx */ 1498 _flag_k = FK_ADD; 1499 esi = edx; /* 0x2B083070: mov esi, edx */ 1500 eax = ecx; /* 0x2B083072: mov eax, ecx */ 1501 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B083074: cdq */ 1502 edi = 3; /* 0x2B083075: mov edi, 3 */ 1503 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x2B08307A: idiv edi */ 1504 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 1505 else { eax = 0; edx = 0; } } 1506 /* test edx, edx */ /* 0x2B08307C: test edx, edx */ 1507 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1508 _cf = 0; 1509 _flag_k = FK_TEST; 1510 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083081; /* 0x2B08307E: jne 0x2b083081 */ 1511 L_2B083080: 1512 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1513 esi = esi - 1; /* 0x2B083080: dec esi */ 1514 _flag_k = FK_DEC; 1515 L_2B083081: 1516 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1517 esi = esi - 1; /* 0x2B083081: dec esi */ 1518 _flag_k = FK_DEC; 1519 MEM8(ebp + esi + (-0x2B)) = (uint8_t)(0); /* 0x2B083082: mov byte ptr [ebp + esi - 0x2b], 0 */ 1520 edi = 1; /* 0x2B083087: mov edi, 1 */ 1521 if (/* dec result */ CMP_S(_flag_a, _flag_b)) goto L_2B0830B8; /* 0x2B08308C: js 0x2b0830b8 */ 1522 L_2B08308E: 1523 SET_LO8(edx, MEM8(ebp + ecx + (-0x55))); /* 0x2B08308E: mov dl, byte ptr [ebp + ecx - 0x55] */ 1524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1525 ecx = ecx - 1; /* 0x2B083092: dec ecx */ 1526 _flag_k = FK_DEC; 1527 MEM8(ebp + esi + (-0x2C)) = (uint8_t)(LO8(edx)); /* 0x2B083093: mov byte ptr [ebp + esi - 0x2c], dl */ 1528 eax = edi; /* 0x2B083097: mov eax, edi */ 1529 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B083099: cdq */ 1530 ebx = 3; /* 0x2B08309A: mov ebx, 3 */ 1531 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x2B08309F: idiv ebx */ 1532 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 1533 else { eax = 0; edx = 0; } } 1534 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1535 esi = esi - 1; /* 0x2B0830A1: dec esi */ 1536 _flag_k = FK_DEC; 1537 /* test edx, edx */ /* 0x2B0830A2: test edx, edx */ 1538 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1539 _cf = 0; 1540 _flag_k = FK_TEST; 1541 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0830B0; /* 0x2B0830A4: jne 0x2b0830b0 */ 1542 L_2B0830A6: 1543 /* test ecx, ecx */ /* 0x2B0830A6: test ecx, ecx */ 1544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1545 _cf = 0; 1546 _flag_k = FK_TEST; 1547 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0830B0; /* 0x2B0830A8: je 0x2b0830b0 */ 1548 L_2B0830AA: 1549 MEM8(ebp + esi + (-0x2C)) = (uint8_t)(0x2Cu); /* 0x2B0830AA: mov byte ptr [ebp + esi - 0x2c], 0x2c */ 1550 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1551 esi = esi - 1; /* 0x2B0830AF: dec esi */ 1552 _flag_k = FK_DEC; 1553 L_2B0830B0: 1554 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1555 edi = edi + 1; /* 0x2B0830B0: inc edi */ 1556 _flag_k = FK_INC; 1557 /* test esi, esi */ /* 0x2B0830B1: test esi, esi */ 1558 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1559 _cf = 0; 1560 _flag_k = FK_TEST; 1561 RECOMP_BACKEDGE(); 1562 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08308E; /* 0x2B0830B3: jge 0x2b08308e */ 1563 L_2B0830B5: 1564 ebx = MEM32(ebp + (-0x4)); /* 0x2B0830B5: mov ebx, dword ptr [ebp - 4] */ 1565 L_2B0830B8: 1566 ecx = MEM32(ebx + 0x34); /* 0x2B0830B8: mov ecx, dword ptr [ebx + 0x34] */ 1567 eax = ebp + (-0x2C); /* 0x2B0830BB: lea eax, [ebp - 0x2c] */ 1568 PUSH32(esp, eax); /* 0x2B0830BE: push eax */ 1569 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B0830BF: call dword ptr [0x2b0b5850] */ 1570 RECOMP_FLAGS_IN(); 1571 ecx = MEM32(ebx + 0x34); /* 0x2B0830C5: mov ecx, dword ptr [ebx + 0x34] */ 1572 edi = POP32_VAL(esp); /* 0x2B0830C8: pop edi */ 1573 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B0830C9: mov byte ptr [ecx + 9], 1 */ 1574 edx = MEM32(ebx + 0x30); /* 0x2B0830CD: mov edx, dword ptr [ebx + 0x30] */ 1575 esi = POP32_VAL(esp); /* 0x2B0830D0: pop esi */ 1576 MEM8(edx + 0x9) = (uint8_t)(1); /* 0x2B0830D1: mov byte ptr [edx + 9], 1 */ 1577 ebx = POP32_VAL(esp); /* 0x2B0830D5: pop ebx */ 1578 esp = ebp; /* 0x2B0830D6: mov esp, ebp */ 1579 ebp = POP32_VAL(esp); /* 0x2B0830D8: pop ebp */ 1580 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0830D9: ret */ 1581 RECOMP_REGS_OUT(); 1582 } 1583 1584 void sub_2B0830E0(void) { 1585 int _fpu_cmp = 0; 1586 uint32_t _cf = 0; 1587 int _df = 1; 1588 uint32_t _flag_k = FK_NONE; 1589 uint32_t _flag_a = 0, _flag_b = 0; 1590 uint32_t _itail_tgt = 0; 1591 RECOMP_REGS_LOCALS 1592 RECOMP_ENTER(0x2B0830E0u); 1593 1594 L_2B0830E0: 1595 PUSH32(esp, ebx); /* 0x2B0830E0: push ebx */ 1596 PUSH32(esp, esi); /* 0x2B0830E1: push esi */ 1597 esi = MEM32(0x2B0B53CC); /* 0x2B0830E2: mov esi, dword ptr [0x2b0b53cc] */ 1598 PUSH32(esp, edi); /* 0x2B0830E8: push edi */ 1599 ebx = ecx; /* 0x2B0830E9: mov ebx, ecx */ 1600 RECOMP_ICALL(esi); /* 0x2B0830EB: call esi */ 1601 RECOMP_FLAGS_IN(); 1602 ecx = eax; /* 0x2B0830ED: mov ecx, eax */ 1603 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B0830EF: call dword ptr [0x2b0b5374] */ 1604 RECOMP_FLAGS_IN(); 1605 PUSH32(esp, 0x7D0u); /* 0x2B0830F5: push 0x7d0 */ 1606 PUSH32(esp, 0x1Fu); /* 0x2B0830FA: push 0x1f */ 1607 PUSH32(esp, 1); /* 0x2B0830FC: push 1 */ 1608 RECOMP_ICALL(esi); /* 0x2B0830FE: call esi */ 1609 RECOMP_FLAGS_IN(); 1610 ecx = eax; /* 0x2B083100: mov ecx, eax */ 1611 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B083102: call dword ptr [0x2b0b5378] */ 1612 RECOMP_FLAGS_IN(); 1613 PUSH32(esp, 0x2B0831C0u); /* 0x2B083108: push 0x2b0831c0 */ 1614 RECOMP_ICALL(esi); /* 0x2B08310D: call esi */ 1615 RECOMP_FLAGS_IN(); 1616 ecx = eax; /* 0x2B08310F: mov ecx, eax */ 1617 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B083111: call dword ptr [0x2b0b537c] */ 1618 RECOMP_FLAGS_IN(); 1619 PUSH32(esp, 0x2B083260u); /* 0x2B083117: push 0x2b083260 */ 1620 PUSH32(esp, 5); /* 0x2B08311C: push 5 */ 1621 RECOMP_ICALL(esi); /* 0x2B08311E: call esi */ 1622 RECOMP_FLAGS_IN(); 1623 edi = MEM32(0x2B0B5324); /* 0x2B083120: mov edi, dword ptr [0x2b0b5324] */ 1624 ecx = eax; /* 0x2B083126: mov ecx, eax */ 1625 RECOMP_ICALL(edi); /* 0x2B083128: call edi */ 1626 RECOMP_FLAGS_IN(); 1627 PUSH32(esp, 0x2B0832D0u); /* 0x2B08312A: push 0x2b0832d0 */ 1628 PUSH32(esp, 6); /* 0x2B08312F: push 6 */ 1629 RECOMP_ICALL(esi); /* 0x2B083131: call esi */ 1630 RECOMP_FLAGS_IN(); 1631 ecx = eax; /* 0x2B083133: mov ecx, eax */ 1632 RECOMP_ICALL(edi); /* 0x2B083135: call edi */ 1633 RECOMP_FLAGS_IN(); 1634 PUSH32(esp, 0x2B083300u); /* 0x2B083137: push 0x2b083300 */ 1635 PUSH32(esp, 0xACu); /* 0x2B08313C: push 0xac */ 1636 RECOMP_ICALL(esi); /* 0x2B083141: call esi */ 1637 RECOMP_FLAGS_IN(); 1638 ecx = eax; /* 0x2B083143: mov ecx, eax */ 1639 RECOMP_ICALL(edi); /* 0x2B083145: call edi */ 1640 RECOMP_FLAGS_IN(); 1641 PUSH32(esp, 0x2B083310u); /* 0x2B083147: push 0x2b083310 */ 1642 PUSH32(esp, 0xADu); /* 0x2B08314C: push 0xad */ 1643 RECOMP_ICALL(esi); /* 0x2B083151: call esi */ 1644 RECOMP_FLAGS_IN(); 1645 ecx = eax; /* 0x2B083153: mov ecx, eax */ 1646 RECOMP_ICALL(edi); /* 0x2B083155: call edi */ 1647 RECOMP_FLAGS_IN(); 1648 PUSH32(esp, 0x2B083360u); /* 0x2B083157: push 0x2b083360 */ 1649 PUSH32(esp, 8); /* 0x2B08315C: push 8 */ 1650 RECOMP_ICALL(esi); /* 0x2B08315E: call esi */ 1651 RECOMP_FLAGS_IN(); 1652 ecx = eax; /* 0x2B083160: mov ecx, eax */ 1653 RECOMP_ICALL(edi); /* 0x2B083162: call edi */ 1654 RECOMP_FLAGS_IN(); 1655 PUSH32(esp, 0x2B083370u); /* 0x2B083164: push 0x2b083370 */ 1656 PUSH32(esp, 0xAEu); /* 0x2B083169: push 0xae */ 1657 RECOMP_ICALL(esi); /* 0x2B08316E: call esi */ 1658 RECOMP_FLAGS_IN(); 1659 ecx = eax; /* 0x2B083170: mov ecx, eax */ 1660 RECOMP_ICALL(edi); /* 0x2B083172: call edi */ 1661 RECOMP_FLAGS_IN(); 1662 PUSH32(esp, 0x2B083400u); /* 0x2B083174: push 0x2b083400 */ 1663 PUSH32(esp, 0xAFu); /* 0x2B083179: push 0xaf */ 1664 RECOMP_ICALL(esi); /* 0x2B08317E: call esi */ 1665 RECOMP_FLAGS_IN(); 1666 ecx = eax; /* 0x2B083180: mov ecx, eax */ 1667 RECOMP_ICALL(edi); /* 0x2B083182: call edi */ 1668 RECOMP_FLAGS_IN(); 1669 PUSH32(esp, 0x2B083440u); /* 0x2B083184: push 0x2b083440 */ 1670 PUSH32(esp, 0xB0u); /* 0x2B083189: push 0xb0 */ 1671 RECOMP_ICALL(esi); /* 0x2B08318E: call esi */ 1672 RECOMP_FLAGS_IN(); 1673 ecx = eax; /* 0x2B083190: mov ecx, eax */ 1674 RECOMP_ICALL(edi); /* 0x2B083192: call edi */ 1675 RECOMP_FLAGS_IN(); 1676 PUSH32(esp, 0x2B083480u); /* 0x2B083194: push 0x2b083480 */ 1677 PUSH32(esp, 0x9Eu); /* 0x2B083199: push 0x9e */ 1678 RECOMP_ICALL(esi); /* 0x2B08319E: call esi */ 1679 RECOMP_FLAGS_IN(); 1680 ecx = eax; /* 0x2B0831A0: mov ecx, eax */ 1681 RECOMP_ICALL(edi); /* 0x2B0831A2: call edi */ 1682 RECOMP_FLAGS_IN(); 1683 edi = POP32_VAL(esp); /* 0x2B0831A4: pop edi */ 1684 esi = POP32_VAL(esp); /* 0x2B0831A5: pop esi */ 1685 eax = ebx; /* 0x2B0831A6: mov eax, ebx */ 1686 MEM32(0x2B0EF0A4) = 0; /* 0x2B0831A8: mov dword ptr [0x2b0ef0a4], 0 */ 1687 ebx = POP32_VAL(esp); /* 0x2B0831B2: pop ebx */ 1688 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0831B3: ret */ 1689 RECOMP_REGS_OUT(); 1690 } 1691 1692 void sub_2B0831C0(void) { 1693 int _fpu_cmp = 0; 1694 uint32_t _cf = 0; 1695 int _df = 1; 1696 uint32_t _flag_k = FK_NONE; 1697 uint32_t _flag_a = 0, _flag_b = 0; 1698 uint32_t _itail_tgt = 0; 1699 RECOMP_REGS_LOCALS 1700 RECOMP_ENTER(0x2B0831C0u); 1701 1702 goto L_2B0831C0; 1703 L_2B082A90: 1704 PUSH32(esp, esi); /* 0x2B082A90: push esi */ 1705 esi = ecx; /* 0x2B082A91: mov esi, ecx */ 1706 ecx = MEM32(esi + 0x3C); /* 0x2B082A93: mov ecx, dword ptr [esi + 0x3c] */ 1707 /* test ecx, ecx */ /* 0x2B082A96: test ecx, ecx */ 1708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1709 _cf = 0; 1710 _flag_k = FK_TEST; 1711 if (TEST_Z(_flag_a, _flag_b)) goto L_2B082A9F; /* 0x2B082A98: je 0x2b082a9f */ 1712 L_2B082A9A: 1713 RECOMP_ICALL(0x2B076050u); /* 0x2B082A9A: call 0x2b076050 */ /* not lifted */ 1714 RECOMP_FLAGS_IN(); 1715 L_2B082A9F: 1716 ecx = esi; /* 0x2B082A9F: mov ecx, esi */ 1717 RECOMP_ICALL(0x2B082AC0u); /* 0x2B082AA1: call 0x2b082ac0 */ /* not lifted */ 1718 RECOMP_FLAGS_IN(); 1719 ecx = esi; /* 0x2B082AA6: mov ecx, esi */ 1720 RECOMP_ICALL(0x2B082BC0u); /* 0x2B082AA8: call 0x2b082bc0 */ /* not lifted */ 1721 RECOMP_FLAGS_IN(); 1722 ecx = esi; /* 0x2B082AAD: mov ecx, esi */ 1723 RECOMP_ICALL(0x2B082F90u); /* 0x2B082AAF: call 0x2b082f90 */ /* not lifted */ 1724 RECOMP_FLAGS_IN(); 1725 esi = POP32_VAL(esp); /* 0x2B082AB4: pop esi */ 1726 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B082AB5: ret */ 1727 L_2B0831C0: 1728 ecx = MEM32(0x2B0EF0A4); /* 0x2B0831C0: mov ecx, dword ptr [0x2b0ef0a4] */ 1729 /* test ecx, ecx */ /* 0x2B0831C6: test ecx, ecx */ 1730 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1731 _cf = 0; 1732 _flag_k = FK_TEST; 1733 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0831CF; /* 0x2B0831C8: je 0x2b0831cf */ 1734 L_2B0831CA: 1735 RECOMP_BACKEDGE(); 1736 goto L_2B082A90; /* 0x2B0831CA: jmp 0x2b082a90 */ 1737 L_2B0831CF: 1738 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0831CF: ret */ 1739 RECOMP_REGS_OUT(); 1740 } 1741 1742 void sub_2B0831D0(void) { 1743 int _fpu_cmp = 0; 1744 uint32_t _cf = 0; 1745 int _df = 1; 1746 uint32_t _flag_k = FK_NONE; 1747 uint32_t _flag_a = 0, _flag_b = 0; 1748 uint32_t _itail_tgt = 0; 1749 RECOMP_REGS_LOCALS 1750 RECOMP_ENTER(0x2B0831D0u); 1751 1752 L_2B0831D0: 1753 goto L_2B0832D0; /* 0x2B0831D0: jmp 0x2b0832d0 */ 1754 L_2B0832D0: 1755 PUSH32(esp, esi); /* 0x2B0832D0: push esi */ 1756 esi = MEM32(0x2B0EF0A4); /* 0x2B0832D1: mov esi, dword ptr [0x2b0ef0a4] */ 1757 /* test esi, esi */ /* 0x2B0832D7: test esi, esi */ 1758 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1759 _cf = 0; 1760 _flag_k = FK_TEST; 1761 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0832EB; /* 0x2B0832D9: je 0x2b0832eb */ 1762 L_2B0832DB: 1763 ecx = esi; /* 0x2B0832DB: mov ecx, esi */ 1764 RECOMP_ICALL(0x2B0828C0u); /* 0x2B0832DD: call 0x2b0828c0 */ /* not lifted */ 1765 RECOMP_FLAGS_IN(); 1766 PUSH32(esp, esi); /* 0x2B0832E2: push esi */ 1767 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0832E3: call 0x2b0ab1ba */ /* not lifted */ 1768 RECOMP_FLAGS_IN(); 1769 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1771 esp = esp + 4; /* 0x2B0832E8: add esp, 4 */ 1772 _flag_k = FK_ADD; 1773 L_2B0832EB: 1774 MEM32(0x2B0EF0A4) = 0; /* 0x2B0832EB: mov dword ptr [0x2b0ef0a4], 0 */ 1775 esi = POP32_VAL(esp); /* 0x2B0832F5: pop esi */ 1776 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0832F6: ret */ 1777 RECOMP_REGS_OUT(); 1778 } 1779 1780 void sub_2B0831E0(void) { 1781 int _fpu_cmp = 0; 1782 uint32_t _cf = 0; 1783 int _df = 1; 1784 uint32_t _flag_k = FK_NONE; 1785 uint32_t _flag_a = 0, _flag_b = 0; 1786 uint32_t _itail_tgt = 0; 1787 RECOMP_REGS_LOCALS 1788 RECOMP_ENTER(0x2B0831E0u); 1789 1790 L_2B0831E0: 1791 PUSH32(esp, ebp); /* 0x2B0831E0: push ebp */ 1792 ebp = esp; /* 0x2B0831E1: mov ebp, esp */ 1793 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0831E3: push -1 */ 1794 PUSH32(esp, 0x2B0B1F9Bu); /* 0x2B0831E5: push 0x2b0b1f9b */ 1795 eax = MEM32(FS_BASE + (0)); /* 0x2B0831EA: mov eax, dword ptr fs:[0] */ 1796 PUSH32(esp, eax); /* 0x2B0831F0: push eax */ 1797 MEM32(FS_BASE + (0)) = esp; /* 0x2B0831F1: mov dword ptr fs:[0], esp */ 1798 PUSH32(esp, ecx); /* 0x2B0831F8: push ecx */ 1799 eax = MEM32(0x2B0EF0A0); /* 0x2B0831F9: mov eax, dword ptr [0x2b0ef0a0] */ 1800 /* test eax, eax */ /* 0x2B0831FE: test eax, eax */ 1801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1802 _cf = 0; 1803 _flag_k = FK_TEST; 1804 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08323B; /* 0x2B083200: jne 0x2b08323b */ 1805 L_2B083202: 1806 PUSH32(esp, 1); /* 0x2B083202: push 1 */ 1807 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083204: call 0x2b0ab212 */ /* not lifted */ 1808 RECOMP_FLAGS_IN(); 1809 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1811 esp = esp + 4; /* 0x2B083209: add esp, 4 */ 1812 _flag_k = FK_ADD; 1813 MEM32(ebp + (-0x10)) = eax; /* 0x2B08320C: mov dword ptr [ebp - 0x10], eax */ 1814 /* test eax, eax */ /* 0x2B08320F: test eax, eax */ 1815 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1816 _cf = 0; 1817 _flag_k = FK_TEST; 1818 MEM32(ebp + (-0x4)) = 0; /* 0x2B083211: mov dword ptr [ebp - 4], 0 */ 1819 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083234; /* 0x2B083218: je 0x2b083234 */ 1820 L_2B08321A: 1821 ecx = eax; /* 0x2B08321A: mov ecx, eax */ 1822 RECOMP_ICALL(0x2B0830E0u); /* 0x2B08321C: call 0x2b0830e0 */ /* not lifted */ 1823 RECOMP_FLAGS_IN(); 1824 MEM32(0x2B0EF0A0) = eax; /* 0x2B083221: mov dword ptr [0x2b0ef0a0], eax */ 1825 ecx = MEM32(ebp + (-0xC)); /* 0x2B083226: mov ecx, dword ptr [ebp - 0xc] */ 1826 MEM32(FS_BASE + (0)) = ecx; /* 0x2B083229: mov dword ptr fs:[0], ecx */ 1827 esp = ebp; /* 0x2B083230: mov esp, ebp */ 1828 ebp = POP32_VAL(esp); /* 0x2B083232: pop ebp */ 1829 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083233: ret */ 1830 L_2B083234: 1831 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1832 eax = 0; /* 0x2B083234: xor eax, eax */ 1833 _cf = 0; 1834 _flag_k = FK_TEST; 1835 MEM32(0x2B0EF0A0) = eax; /* 0x2B083236: mov dword ptr [0x2b0ef0a0], eax */ 1836 L_2B08323B: 1837 ecx = MEM32(ebp + (-0xC)); /* 0x2B08323B: mov ecx, dword ptr [ebp - 0xc] */ 1838 MEM32(FS_BASE + (0)) = ecx; /* 0x2B08323E: mov dword ptr fs:[0], ecx */ 1839 esp = ebp; /* 0x2B083245: mov esp, ebp */ 1840 ebp = POP32_VAL(esp); /* 0x2B083247: pop ebp */ 1841 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083248: ret */ 1842 RECOMP_REGS_OUT(); 1843 } 1844 1845 void sub_2B083250(void) { 1846 int _fpu_cmp = 0; 1847 uint32_t _cf = 0; 1848 int _df = 1; 1849 uint32_t _flag_k = FK_NONE; 1850 uint32_t _flag_a = 0, _flag_b = 0; 1851 uint32_t _itail_tgt = 0; 1852 RECOMP_REGS_LOCALS 1853 RECOMP_ENTER(0x2B083250u); 1854 1855 L_2B083250: 1856 eax = MEM32(0x2B0EF0A0); /* 0x2B083250: mov eax, dword ptr [0x2b0ef0a0] */ 1857 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083255: ret */ 1858 RECOMP_REGS_OUT(); 1859 } 1860 1861 void sub_2B083260(void) { 1862 int _fpu_cmp = 0; 1863 uint32_t _cf = 0; 1864 int _df = 1; 1865 uint32_t _flag_k = FK_NONE; 1866 uint32_t _flag_a = 0, _flag_b = 0; 1867 uint32_t _itail_tgt = 0; 1868 RECOMP_REGS_LOCALS 1869 RECOMP_ENTER(0x2B083260u); 1870 1871 L_2B083260: 1872 PUSH32(esp, ebp); /* 0x2B083260: push ebp */ 1873 ebp = esp; /* 0x2B083261: mov ebp, esp */ 1874 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B083263: push -1 */ 1875 PUSH32(esp, 0x2B0B1FBBu); /* 0x2B083265: push 0x2b0b1fbb */ 1876 eax = MEM32(FS_BASE + (0)); /* 0x2B08326A: mov eax, dword ptr fs:[0] */ 1877 PUSH32(esp, eax); /* 0x2B083270: push eax */ 1878 MEM32(FS_BASE + (0)) = esp; /* 0x2B083271: mov dword ptr fs:[0], esp */ 1879 PUSH32(esp, ecx); /* 0x2B083278: push ecx */ 1880 eax = MEM32(0x2B0EF0A4); /* 0x2B083279: mov eax, dword ptr [0x2b0ef0a4] */ 1881 /* test eax, eax */ /* 0x2B08327E: test eax, eax */ 1882 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1883 _cf = 0; 1884 _flag_k = FK_TEST; 1885 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0832BE; /* 0x2B083280: jne 0x2b0832be */ 1886 L_2B083282: 1887 PUSH32(esp, 0x88u); /* 0x2B083282: push 0x88 */ 1888 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083287: call 0x2b0ab212 */ /* not lifted */ 1889 RECOMP_FLAGS_IN(); 1890 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1892 esp = esp + 4; /* 0x2B08328C: add esp, 4 */ 1893 _flag_k = FK_ADD; 1894 MEM32(ebp + (-0x10)) = eax; /* 0x2B08328F: mov dword ptr [ebp - 0x10], eax */ 1895 /* test eax, eax */ /* 0x2B083292: test eax, eax */ 1896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1897 _cf = 0; 1898 _flag_k = FK_TEST; 1899 MEM32(ebp + (-0x4)) = 0; /* 0x2B083294: mov dword ptr [ebp - 4], 0 */ 1900 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0832B7; /* 0x2B08329B: je 0x2b0832b7 */ 1901 L_2B08329D: 1902 ecx = eax; /* 0x2B08329D: mov ecx, eax */ 1903 RECOMP_ICALL(0x2B081C40u); /* 0x2B08329F: call 0x2b081c40 */ /* not lifted */ 1904 RECOMP_FLAGS_IN(); 1905 MEM32(0x2B0EF0A4) = eax; /* 0x2B0832A4: mov dword ptr [0x2b0ef0a4], eax */ 1906 ecx = MEM32(ebp + (-0xC)); /* 0x2B0832A9: mov ecx, dword ptr [ebp - 0xc] */ 1907 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0832AC: mov dword ptr fs:[0], ecx */ 1908 esp = ebp; /* 0x2B0832B3: mov esp, ebp */ 1909 ebp = POP32_VAL(esp); /* 0x2B0832B5: pop ebp */ 1910 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0832B6: ret */ 1911 L_2B0832B7: 1912 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1913 eax = 0; /* 0x2B0832B7: xor eax, eax */ 1914 _cf = 0; 1915 _flag_k = FK_TEST; 1916 MEM32(0x2B0EF0A4) = eax; /* 0x2B0832B9: mov dword ptr [0x2b0ef0a4], eax */ 1917 L_2B0832BE: 1918 ecx = MEM32(ebp + (-0xC)); /* 0x2B0832BE: mov ecx, dword ptr [ebp - 0xc] */ 1919 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0832C1: mov dword ptr fs:[0], ecx */ 1920 esp = ebp; /* 0x2B0832C8: mov esp, ebp */ 1921 ebp = POP32_VAL(esp); /* 0x2B0832CA: pop ebp */ 1922 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0832CB: ret */ 1923 RECOMP_REGS_OUT(); 1924 } 1925 1926 void sub_2B0832D0(void) { 1927 int _fpu_cmp = 0; 1928 uint32_t _cf = 0; 1929 int _df = 1; 1930 uint32_t _flag_k = FK_NONE; 1931 uint32_t _flag_a = 0, _flag_b = 0; 1932 uint32_t _itail_tgt = 0; 1933 RECOMP_REGS_LOCALS 1934 RECOMP_ENTER(0x2B0832D0u); 1935 1936 L_2B0832D0: 1937 PUSH32(esp, esi); /* 0x2B0832D0: push esi */ 1938 esi = MEM32(0x2B0EF0A4); /* 0x2B0832D1: mov esi, dword ptr [0x2b0ef0a4] */ 1939 /* test esi, esi */ /* 0x2B0832D7: test esi, esi */ 1940 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1941 _cf = 0; 1942 _flag_k = FK_TEST; 1943 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0832EB; /* 0x2B0832D9: je 0x2b0832eb */ 1944 L_2B0832DB: 1945 ecx = esi; /* 0x2B0832DB: mov ecx, esi */ 1946 RECOMP_ICALL(0x2B0828C0u); /* 0x2B0832DD: call 0x2b0828c0 */ /* not lifted */ 1947 RECOMP_FLAGS_IN(); 1948 PUSH32(esp, esi); /* 0x2B0832E2: push esi */ 1949 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0832E3: call 0x2b0ab1ba */ /* not lifted */ 1950 RECOMP_FLAGS_IN(); 1951 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1952 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1953 esp = esp + 4; /* 0x2B0832E8: add esp, 4 */ 1954 _flag_k = FK_ADD; 1955 L_2B0832EB: 1956 MEM32(0x2B0EF0A4) = 0; /* 0x2B0832EB: mov dword ptr [0x2b0ef0a4], 0 */ 1957 esi = POP32_VAL(esp); /* 0x2B0832F5: pop esi */ 1958 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0832F6: ret */ 1959 RECOMP_REGS_OUT(); 1960 } 1961 1962 void sub_2B083300(void) { 1963 int _fpu_cmp = 0; 1964 uint32_t _cf = 0; 1965 int _df = 1; 1966 uint32_t _flag_k = FK_NONE; 1967 uint32_t _flag_a = 0, _flag_b = 0; 1968 uint32_t _itail_tgt = 0; 1969 RECOMP_REGS_LOCALS 1970 RECOMP_ENTER(0x2B083300u); 1971 1972 goto L_2B083300; 1973 L_2B083020: 1974 PUSH32(esp, ebp); /* 0x2B083020: push ebp */ 1975 ebp = esp; /* 0x2B083021: mov ebp, esp */ 1976 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u); 1977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1978 esp = esp - 0x54u; /* 0x2B083023: sub esp, 0x54 */ 1979 _flag_k = FK_CMP; 1980 PUSH32(esp, ebx); /* 0x2B083026: push ebx */ 1981 PUSH32(esp, esi); /* 0x2B083027: push esi */ 1982 PUSH32(esp, edi); /* 0x2B083028: push edi */ 1983 ebx = ecx; /* 0x2B083029: mov ebx, ecx */ 1984 PUSH32(esp, 2); /* 0x2B08302B: push 2 */ 1985 PUSH32(esp, 0x3Du); /* 0x2B08302D: push 0x3d */ 1986 MEM32(ebp + (-0x4)) = ebx; /* 0x2B08302F: mov dword ptr [ebp - 4], ebx */ 1987 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B083032: call dword ptr [0x2b0b5d6c] */ 1988 RECOMP_FLAGS_IN(); 1989 ecx = eax; /* 0x2B083038: mov ecx, eax */ 1990 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B08303A: call dword ptr [0x2b0b5d70] */ 1991 RECOMP_FLAGS_IN(); 1992 PUSH32(esp, eax); /* 0x2B083040: push eax */ 1993 eax = ebp + (-0x54); /* 0x2B083041: lea eax, [ebp - 0x54] */ 1994 PUSH32(esp, 0x2B0EBF30u); /* 0x2B083044: push 0x2b0ebf30 */ 1995 PUSH32(esp, eax); /* 0x2B083049: push eax */ 1996 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B08304A: call dword ptr [0x2b0b51f0] */ 1997 RECOMP_FLAGS_IN(); 1998 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1999 eax = 0; /* 0x2B083050: xor eax, eax */ 2000 _cf = 0; 2001 _flag_k = FK_TEST; 2002 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2003 ecx = ecx | 0xFFFFFFFFu; /* 0x2B083052: or ecx, 0xffffffff */ 2004 _cf = 0; 2005 _flag_k = FK_TEST; 2006 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2008 esp = esp + 0xCu; /* 0x2B083055: add esp, 0xc */ 2009 _flag_k = FK_ADD; 2010 edi = ebp + (-0x54); /* 0x2B083058: lea edi, [ebp - 0x54] */ 2011 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; } /* 0x2B08305B: repne scasb al, byte ptr es:[edi] */ 2012 ecx = ~ecx; /* 0x2B08305D: not ecx */ 2013 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2014 ecx = ecx - 1; /* 0x2B08305F: dec ecx */ 2015 _flag_k = FK_DEC; 2016 eax = 0x55555556u; /* 0x2B083060: mov eax, 0x55555556 */ 2017 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B083065: imul ecx */ 2018 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2019 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2020 eax = edx; /* 0x2B083067: mov eax, edx */ 2021 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B083069: shr eax, 0x1f */ 2022 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2023 eax = eax >> 31u; /* 0x2B083069: shr eax, 0x1f */ 2024 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2025 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2026 edx = edx + eax; /* 0x2B08306C: add edx, eax */ 2027 _flag_k = FK_ADD; 2028 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2029 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2030 edx = edx + ecx; /* 0x2B08306E: add edx, ecx */ 2031 _flag_k = FK_ADD; 2032 esi = edx; /* 0x2B083070: mov esi, edx */ 2033 eax = ecx; /* 0x2B083072: mov eax, ecx */ 2034 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B083074: cdq */ 2035 edi = 3; /* 0x2B083075: mov edi, 3 */ 2036 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x2B08307A: idiv edi */ 2037 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 2038 else { eax = 0; edx = 0; } } 2039 /* test edx, edx */ /* 0x2B08307C: test edx, edx */ 2040 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2041 _cf = 0; 2042 _flag_k = FK_TEST; 2043 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083081; /* 0x2B08307E: jne 0x2b083081 */ 2044 L_2B083080: 2045 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2046 esi = esi - 1; /* 0x2B083080: dec esi */ 2047 _flag_k = FK_DEC; 2048 L_2B083081: 2049 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2050 esi = esi - 1; /* 0x2B083081: dec esi */ 2051 _flag_k = FK_DEC; 2052 MEM8(ebp + esi + (-0x2B)) = (uint8_t)(0); /* 0x2B083082: mov byte ptr [ebp + esi - 0x2b], 0 */ 2053 edi = 1; /* 0x2B083087: mov edi, 1 */ 2054 if (/* dec result */ CMP_S(_flag_a, _flag_b)) goto L_2B0830B8; /* 0x2B08308C: js 0x2b0830b8 */ 2055 L_2B08308E: 2056 SET_LO8(edx, MEM8(ebp + ecx + (-0x55))); /* 0x2B08308E: mov dl, byte ptr [ebp + ecx - 0x55] */ 2057 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2058 ecx = ecx - 1; /* 0x2B083092: dec ecx */ 2059 _flag_k = FK_DEC; 2060 MEM8(ebp + esi + (-0x2C)) = (uint8_t)(LO8(edx)); /* 0x2B083093: mov byte ptr [ebp + esi - 0x2c], dl */ 2061 eax = edi; /* 0x2B083097: mov eax, edi */ 2062 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B083099: cdq */ 2063 ebx = 3; /* 0x2B08309A: mov ebx, 3 */ 2064 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x2B08309F: idiv ebx */ 2065 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 2066 else { eax = 0; edx = 0; } } 2067 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2068 esi = esi - 1; /* 0x2B0830A1: dec esi */ 2069 _flag_k = FK_DEC; 2070 /* test edx, edx */ /* 0x2B0830A2: test edx, edx */ 2071 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2072 _cf = 0; 2073 _flag_k = FK_TEST; 2074 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0830B0; /* 0x2B0830A4: jne 0x2b0830b0 */ 2075 L_2B0830A6: 2076 /* test ecx, ecx */ /* 0x2B0830A6: test ecx, ecx */ 2077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2078 _cf = 0; 2079 _flag_k = FK_TEST; 2080 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0830B0; /* 0x2B0830A8: je 0x2b0830b0 */ 2081 L_2B0830AA: 2082 MEM8(ebp + esi + (-0x2C)) = (uint8_t)(0x2Cu); /* 0x2B0830AA: mov byte ptr [ebp + esi - 0x2c], 0x2c */ 2083 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2084 esi = esi - 1; /* 0x2B0830AF: dec esi */ 2085 _flag_k = FK_DEC; 2086 L_2B0830B0: 2087 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2088 edi = edi + 1; /* 0x2B0830B0: inc edi */ 2089 _flag_k = FK_INC; 2090 /* test esi, esi */ /* 0x2B0830B1: test esi, esi */ 2091 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2092 _cf = 0; 2093 _flag_k = FK_TEST; 2094 RECOMP_BACKEDGE(); 2095 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08308E; /* 0x2B0830B3: jge 0x2b08308e */ 2096 L_2B0830B5: 2097 ebx = MEM32(ebp + (-0x4)); /* 0x2B0830B5: mov ebx, dword ptr [ebp - 4] */ 2098 L_2B0830B8: 2099 ecx = MEM32(ebx + 0x34); /* 0x2B0830B8: mov ecx, dword ptr [ebx + 0x34] */ 2100 eax = ebp + (-0x2C); /* 0x2B0830BB: lea eax, [ebp - 0x2c] */ 2101 PUSH32(esp, eax); /* 0x2B0830BE: push eax */ 2102 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B0830BF: call dword ptr [0x2b0b5850] */ 2103 RECOMP_FLAGS_IN(); 2104 ecx = MEM32(ebx + 0x34); /* 0x2B0830C5: mov ecx, dword ptr [ebx + 0x34] */ 2105 edi = POP32_VAL(esp); /* 0x2B0830C8: pop edi */ 2106 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B0830C9: mov byte ptr [ecx + 9], 1 */ 2107 edx = MEM32(ebx + 0x30); /* 0x2B0830CD: mov edx, dword ptr [ebx + 0x30] */ 2108 esi = POP32_VAL(esp); /* 0x2B0830D0: pop esi */ 2109 MEM8(edx + 0x9) = (uint8_t)(1); /* 0x2B0830D1: mov byte ptr [edx + 9], 1 */ 2110 ebx = POP32_VAL(esp); /* 0x2B0830D5: pop ebx */ 2111 esp = ebp; /* 0x2B0830D6: mov esp, ebp */ 2112 ebp = POP32_VAL(esp); /* 0x2B0830D8: pop ebp */ 2113 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0830D9: ret */ 2114 L_2B083300: 2115 ecx = MEM32(0x2B0EF0A4); /* 0x2B083300: mov ecx, dword ptr [0x2b0ef0a4] */ 2116 /* test ecx, ecx */ /* 0x2B083306: test ecx, ecx */ 2117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2118 _cf = 0; 2119 _flag_k = FK_TEST; 2120 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08330F; /* 0x2B083308: je 0x2b08330f */ 2121 L_2B08330A: 2122 RECOMP_BACKEDGE(); 2123 goto L_2B083020; /* 0x2B08330A: jmp 0x2b083020 */ 2124 L_2B08330F: 2125 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B08330F: ret */ 2126 RECOMP_REGS_OUT(); 2127 } 2128 2129 void sub_2B083310(void) { 2130 int _fpu_cmp = 0; 2131 uint32_t _cf = 0; 2132 int _df = 1; 2133 uint32_t _flag_k = FK_NONE; 2134 uint32_t _flag_a = 0, _flag_b = 0; 2135 uint32_t _itail_tgt = 0; 2136 RECOMP_REGS_LOCALS 2137 RECOMP_ENTER(0x2B083310u); 2138 2139 L_2B083310: 2140 eax = MEM32(0x2B0EF0A4); /* 0x2B083310: mov eax, dword ptr [0x2b0ef0a4] */ 2141 /* test eax, eax */ /* 0x2B083315: test eax, eax */ 2142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2143 _cf = 0; 2144 _flag_k = FK_TEST; 2145 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083354; /* 0x2B083317: je 0x2b083354 */ 2146 L_2B083319: 2147 ecx = MEM32(eax + 0xC); /* 0x2B083319: mov ecx, dword ptr [eax + 0xc] */ 2148 eax = MEM32(ecx + 0x54); /* 0x2B08331C: mov eax, dword ptr [ecx + 0x54] */ 2149 /* cmp eax, 1 */ /* 0x2B08331F: cmp eax, 1 */ 2150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2152 _flag_k = FK_CMP; 2153 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083337; /* 0x2B083322: je 0x2b083337 */ 2154 L_2B083324: 2155 /* cmp eax, 3 */ /* 0x2B083324: cmp eax, 3 */ 2156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 2157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2158 _flag_k = FK_CMP; 2159 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083337; /* 0x2B083327: je 0x2b083337 */ 2160 L_2B083329: 2161 /* cmp eax, 2 */ /* 0x2B083329: cmp eax, 2 */ 2162 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2164 _flag_k = FK_CMP; 2165 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083333; /* 0x2B08332C: je 0x2b083333 */ 2166 L_2B08332E: 2167 /* cmp eax, 4 */ /* 0x2B08332E: cmp eax, 4 */ 2168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2170 _flag_k = FK_CMP; 2171 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083337; /* 0x2B083331: jne 0x2b083337 */ 2172 L_2B083333: 2173 PUSH32(esp, 1); /* 0x2B083333: push 1 */ 2174 goto L_2B083339; /* 0x2B083335: jmp 0x2b083339 */ 2175 L_2B083337: 2176 PUSH32(esp, 2); /* 0x2B083337: push 2 */ 2177 L_2B083339: 2178 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B083339: call dword ptr [0x2b0b5ab4] */ 2179 RECOMP_FLAGS_IN(); 2180 PUSH32(esp, 0xABu); /* 0x2B08333F: push 0xab */ 2181 PUSH32(esp, 0xDu); /* 0x2B083344: push 0xd */ 2182 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B083346: call dword ptr [0x2b0b53cc] */ 2183 RECOMP_FLAGS_IN(); 2184 ecx = eax; /* 0x2B08334C: mov ecx, eax */ 2185 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B08334E: call dword ptr [0x2b0b53c8] */ 2186 RECOMP_FLAGS_IN(); 2187 L_2B083354: 2188 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083354: ret */ 2189 RECOMP_REGS_OUT(); 2190 } 2191 2192 void sub_2B083360(void) { 2193 int _fpu_cmp = 0; 2194 uint32_t _cf = 0; 2195 int _df = 1; 2196 uint32_t _flag_k = FK_NONE; 2197 uint32_t _flag_a = 0, _flag_b = 0; 2198 uint32_t _itail_tgt = 0; 2199 RECOMP_REGS_LOCALS 2200 RECOMP_ENTER(0x2B083360u); 2201 2202 goto L_2B083360; 2203 L_2B083020: 2204 PUSH32(esp, ebp); /* 0x2B083020: push ebp */ 2205 ebp = esp; /* 0x2B083021: mov ebp, esp */ 2206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u); 2207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2208 esp = esp - 0x54u; /* 0x2B083023: sub esp, 0x54 */ 2209 _flag_k = FK_CMP; 2210 PUSH32(esp, ebx); /* 0x2B083026: push ebx */ 2211 PUSH32(esp, esi); /* 0x2B083027: push esi */ 2212 PUSH32(esp, edi); /* 0x2B083028: push edi */ 2213 ebx = ecx; /* 0x2B083029: mov ebx, ecx */ 2214 PUSH32(esp, 2); /* 0x2B08302B: push 2 */ 2215 PUSH32(esp, 0x3Du); /* 0x2B08302D: push 0x3d */ 2216 MEM32(ebp + (-0x4)) = ebx; /* 0x2B08302F: mov dword ptr [ebp - 4], ebx */ 2217 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B083032: call dword ptr [0x2b0b5d6c] */ 2218 RECOMP_FLAGS_IN(); 2219 ecx = eax; /* 0x2B083038: mov ecx, eax */ 2220 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B08303A: call dword ptr [0x2b0b5d70] */ 2221 RECOMP_FLAGS_IN(); 2222 PUSH32(esp, eax); /* 0x2B083040: push eax */ 2223 eax = ebp + (-0x54); /* 0x2B083041: lea eax, [ebp - 0x54] */ 2224 PUSH32(esp, 0x2B0EBF30u); /* 0x2B083044: push 0x2b0ebf30 */ 2225 PUSH32(esp, eax); /* 0x2B083049: push eax */ 2226 RECOMP_ICALL(MEM32(0x2B0B51F0)); /* 0x2B08304A: call dword ptr [0x2b0b51f0] */ 2227 RECOMP_FLAGS_IN(); 2228 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2229 eax = 0; /* 0x2B083050: xor eax, eax */ 2230 _cf = 0; 2231 _flag_k = FK_TEST; 2232 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2233 ecx = ecx | 0xFFFFFFFFu; /* 0x2B083052: or ecx, 0xffffffff */ 2234 _cf = 0; 2235 _flag_k = FK_TEST; 2236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2238 esp = esp + 0xCu; /* 0x2B083055: add esp, 0xc */ 2239 _flag_k = FK_ADD; 2240 edi = ebp + (-0x54); /* 0x2B083058: lea edi, [ebp - 0x54] */ 2241 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; } /* 0x2B08305B: repne scasb al, byte ptr es:[edi] */ 2242 ecx = ~ecx; /* 0x2B08305D: not ecx */ 2243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2244 ecx = ecx - 1; /* 0x2B08305F: dec ecx */ 2245 _flag_k = FK_DEC; 2246 eax = 0x55555556u; /* 0x2B083060: mov eax, 0x55555556 */ 2247 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2B083065: imul ecx */ 2248 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2249 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2250 eax = edx; /* 0x2B083067: mov eax, edx */ 2251 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2B083069: shr eax, 0x1f */ 2252 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2253 eax = eax >> 31u; /* 0x2B083069: shr eax, 0x1f */ 2254 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2256 edx = edx + eax; /* 0x2B08306C: add edx, eax */ 2257 _flag_k = FK_ADD; 2258 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2260 edx = edx + ecx; /* 0x2B08306E: add edx, ecx */ 2261 _flag_k = FK_ADD; 2262 esi = edx; /* 0x2B083070: mov esi, edx */ 2263 eax = ecx; /* 0x2B083072: mov eax, ecx */ 2264 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B083074: cdq */ 2265 edi = 3; /* 0x2B083075: mov edi, 3 */ 2266 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x2B08307A: idiv edi */ 2267 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 2268 else { eax = 0; edx = 0; } } 2269 /* test edx, edx */ /* 0x2B08307C: test edx, edx */ 2270 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2271 _cf = 0; 2272 _flag_k = FK_TEST; 2273 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083081; /* 0x2B08307E: jne 0x2b083081 */ 2274 L_2B083080: 2275 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2276 esi = esi - 1; /* 0x2B083080: dec esi */ 2277 _flag_k = FK_DEC; 2278 L_2B083081: 2279 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2280 esi = esi - 1; /* 0x2B083081: dec esi */ 2281 _flag_k = FK_DEC; 2282 MEM8(ebp + esi + (-0x2B)) = (uint8_t)(0); /* 0x2B083082: mov byte ptr [ebp + esi - 0x2b], 0 */ 2283 edi = 1; /* 0x2B083087: mov edi, 1 */ 2284 if (/* dec result */ CMP_S(_flag_a, _flag_b)) goto L_2B0830B8; /* 0x2B08308C: js 0x2b0830b8 */ 2285 L_2B08308E: 2286 SET_LO8(edx, MEM8(ebp + ecx + (-0x55))); /* 0x2B08308E: mov dl, byte ptr [ebp + ecx - 0x55] */ 2287 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2288 ecx = ecx - 1; /* 0x2B083092: dec ecx */ 2289 _flag_k = FK_DEC; 2290 MEM8(ebp + esi + (-0x2C)) = (uint8_t)(LO8(edx)); /* 0x2B083093: mov byte ptr [ebp + esi - 0x2c], dl */ 2291 eax = edi; /* 0x2B083097: mov eax, edi */ 2292 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B083099: cdq */ 2293 ebx = 3; /* 0x2B08309A: mov ebx, 3 */ 2294 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x2B08309F: idiv ebx */ 2295 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 2296 else { eax = 0; edx = 0; } } 2297 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2298 esi = esi - 1; /* 0x2B0830A1: dec esi */ 2299 _flag_k = FK_DEC; 2300 /* test edx, edx */ /* 0x2B0830A2: test edx, edx */ 2301 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2302 _cf = 0; 2303 _flag_k = FK_TEST; 2304 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0830B0; /* 0x2B0830A4: jne 0x2b0830b0 */ 2305 L_2B0830A6: 2306 /* test ecx, ecx */ /* 0x2B0830A6: test ecx, ecx */ 2307 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2308 _cf = 0; 2309 _flag_k = FK_TEST; 2310 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0830B0; /* 0x2B0830A8: je 0x2b0830b0 */ 2311 L_2B0830AA: 2312 MEM8(ebp + esi + (-0x2C)) = (uint8_t)(0x2Cu); /* 0x2B0830AA: mov byte ptr [ebp + esi - 0x2c], 0x2c */ 2313 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2314 esi = esi - 1; /* 0x2B0830AF: dec esi */ 2315 _flag_k = FK_DEC; 2316 L_2B0830B0: 2317 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2318 edi = edi + 1; /* 0x2B0830B0: inc edi */ 2319 _flag_k = FK_INC; 2320 /* test esi, esi */ /* 0x2B0830B1: test esi, esi */ 2321 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2322 _cf = 0; 2323 _flag_k = FK_TEST; 2324 RECOMP_BACKEDGE(); 2325 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08308E; /* 0x2B0830B3: jge 0x2b08308e */ 2326 L_2B0830B5: 2327 ebx = MEM32(ebp + (-0x4)); /* 0x2B0830B5: mov ebx, dword ptr [ebp - 4] */ 2328 L_2B0830B8: 2329 ecx = MEM32(ebx + 0x34); /* 0x2B0830B8: mov ecx, dword ptr [ebx + 0x34] */ 2330 eax = ebp + (-0x2C); /* 0x2B0830BB: lea eax, [ebp - 0x2c] */ 2331 PUSH32(esp, eax); /* 0x2B0830BE: push eax */ 2332 RECOMP_ICALL(MEM32(0x2B0B5850)); /* 0x2B0830BF: call dword ptr [0x2b0b5850] */ 2333 RECOMP_FLAGS_IN(); 2334 ecx = MEM32(ebx + 0x34); /* 0x2B0830C5: mov ecx, dword ptr [ebx + 0x34] */ 2335 edi = POP32_VAL(esp); /* 0x2B0830C8: pop edi */ 2336 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x2B0830C9: mov byte ptr [ecx + 9], 1 */ 2337 edx = MEM32(ebx + 0x30); /* 0x2B0830CD: mov edx, dword ptr [ebx + 0x30] */ 2338 esi = POP32_VAL(esp); /* 0x2B0830D0: pop esi */ 2339 MEM8(edx + 0x9) = (uint8_t)(1); /* 0x2B0830D1: mov byte ptr [edx + 9], 1 */ 2340 ebx = POP32_VAL(esp); /* 0x2B0830D5: pop ebx */ 2341 esp = ebp; /* 0x2B0830D6: mov esp, ebp */ 2342 ebp = POP32_VAL(esp); /* 0x2B0830D8: pop ebp */ 2343 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0830D9: ret */ 2344 L_2B083300: 2345 ecx = MEM32(0x2B0EF0A4); /* 0x2B083300: mov ecx, dword ptr [0x2b0ef0a4] */ 2346 /* test ecx, ecx */ /* 0x2B083306: test ecx, ecx */ 2347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2348 _cf = 0; 2349 _flag_k = FK_TEST; 2350 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08330F; /* 0x2B083308: je 0x2b08330f */ 2351 L_2B08330A: 2352 RECOMP_BACKEDGE(); 2353 goto L_2B083020; /* 0x2B08330A: jmp 0x2b083020 */ 2354 L_2B08330F: 2355 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B08330F: ret */ 2356 L_2B083360: 2357 RECOMP_BACKEDGE(); 2358 goto L_2B083300; /* 0x2B083360: jmp 0x2b083300 */ 2359 { RECOMP_REGS_OUT(); return; } /* end of function */ 2360 RECOMP_REGS_OUT(); 2361 } 2362 2363 void sub_2B083370(void) { 2364 int _fpu_cmp = 0; 2365 uint32_t _cf = 0; 2366 int _df = 1; 2367 uint32_t _flag_k = FK_NONE; 2368 uint32_t _flag_a = 0, _flag_b = 0; 2369 uint32_t _itail_tgt = 0; 2370 RECOMP_REGS_LOCALS 2371 RECOMP_ENTER(0x2B083370u); 2372 2373 L_2B083370: 2374 PUSH32(esp, ebp); /* 0x2B083370: push ebp */ 2375 ebp = esp; /* 0x2B083371: mov ebp, esp */ 2376 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 2377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2378 esp = esp - 0x28u; /* 0x2B083373: sub esp, 0x28 */ 2379 _flag_k = FK_CMP; 2380 eax = MEM32(0x2B0EF0A4); /* 0x2B083376: mov eax, dword ptr [0x2b0ef0a4] */ 2381 PUSH32(esp, esi); /* 0x2B08337B: push esi */ 2382 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2383 esi = 0; /* 0x2B08337C: xor esi, esi */ 2384 _cf = 0; 2385 _flag_k = FK_TEST; 2386 /* cmp eax, esi */ /* 0x2B08337E: cmp eax, esi */ 2387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2389 _flag_k = FK_CMP; 2390 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0833EE; /* 0x2B083380: je 0x2b0833ee */ 2391 L_2B083382: 2392 eax = ebp + (-0x8); /* 0x2B083382: lea eax, [ebp - 8] */ 2393 PUSH32(esp, eax); /* 0x2B083385: push eax */ 2394 MEM32(ebp + (-0x8)) = esi; /* 0x2B083386: mov dword ptr [ebp - 8], esi */ 2395 MEM32(ebp + (-0x4)) = esi; /* 0x2B083389: mov dword ptr [ebp - 4], esi */ 2396 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B08338C: call dword ptr [0x2b0b53cc] */ 2397 RECOMP_FLAGS_IN(); 2398 ecx = eax; /* 0x2B083392: mov ecx, eax */ 2399 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B083394: call dword ptr [0x2b0b53ac] */ 2400 RECOMP_FLAGS_IN(); 2401 ecx = ebp + (-0x1C); /* 0x2B08339A: lea ecx, [ebp - 0x1c] */ 2402 PUSH32(esp, ecx); /* 0x2B08339D: push ecx */ 2403 edx = ebp + (-0x28); /* 0x2B08339E: lea edx, [ebp - 0x28] */ 2404 PUSH32(esp, edx); /* 0x2B0833A1: push edx */ 2405 eax = ebp + (-0x10); /* 0x2B0833A2: lea eax, [ebp - 0x10] */ 2406 PUSH32(esp, eax); /* 0x2B0833A5: push eax */ 2407 ecx = ebp + (-0x8); /* 0x2B0833A6: lea ecx, [ebp - 8] */ 2408 PUSH32(esp, ecx); /* 0x2B0833A9: push ecx */ 2409 MEM32(ebp + (-0x10)) = esi; /* 0x2B0833AA: mov dword ptr [ebp - 0x10], esi */ 2410 MEM32(ebp + (-0xC)) = esi; /* 0x2B0833AD: mov dword ptr [ebp - 0xc], esi */ 2411 MEM32(ebp + (-0x28)) = esi; /* 0x2B0833B0: mov dword ptr [ebp - 0x28], esi */ 2412 MEM32(ebp + (-0x24)) = esi; /* 0x2B0833B3: mov dword ptr [ebp - 0x24], esi */ 2413 MEM32(ebp + (-0x20)) = esi; /* 0x2B0833B6: mov dword ptr [ebp - 0x20], esi */ 2414 MEM32(ebp + (-0x1C)) = esi; /* 0x2B0833B9: mov dword ptr [ebp - 0x1c], esi */ 2415 MEM32(ebp + (-0x18)) = esi; /* 0x2B0833BC: mov dword ptr [ebp - 0x18], esi */ 2416 MEM32(ebp + (-0x14)) = esi; /* 0x2B0833BF: mov dword ptr [ebp - 0x14], esi */ 2417 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B0833C2: call dword ptr [0x2b0b5d6c] */ 2418 RECOMP_FLAGS_IN(); 2419 ecx = eax; /* 0x2B0833C8: mov ecx, eax */ 2420 RECOMP_ICALL(MEM32(0x2B0B5E24)); /* 0x2B0833CA: call dword ptr [0x2b0b5e24] */ 2421 RECOMP_FLAGS_IN(); 2422 /* test LO8(eax), LO8(eax) */ /* 0x2B0833D0: test al, al */ 2423 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2424 _cf = 0; 2425 _flag_k = FK_NARROW(FK_TEST, 24); 2426 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0833EE; /* 0x2B0833D2: je 0x2b0833ee */ 2427 L_2B0833D4: 2428 edx = MEM32(ebp + (-0xC)); /* 0x2B0833D4: mov edx, dword ptr [ebp - 0xc] */ 2429 PUSH32(esp, edx); /* 0x2B0833D7: push edx */ 2430 edx = MEM32(0x2B0EF0A4); /* 0x2B0833D8: mov edx, dword ptr [0x2b0ef0a4] */ 2431 eax = ebp + (-0x1C); /* 0x2B0833DE: lea eax, [ebp - 0x1c] */ 2432 PUSH32(esp, eax); /* 0x2B0833E1: push eax */ 2433 ecx = ebp + (-0x8); /* 0x2B0833E2: lea ecx, [ebp - 8] */ 2434 PUSH32(esp, ecx); /* 0x2B0833E5: push ecx */ 2435 ecx = MEM32(edx + 0x3C); /* 0x2B0833E6: mov ecx, dword ptr [edx + 0x3c] */ 2436 RECOMP_ICALL(0x2B076250u); /* 0x2B0833E9: call 0x2b076250 */ /* not lifted */ 2437 RECOMP_FLAGS_IN(); 2438 L_2B0833EE: 2439 esi = POP32_VAL(esp); /* 0x2B0833EE: pop esi */ 2440 esp = ebp; /* 0x2B0833EF: mov esp, ebp */ 2441 ebp = POP32_VAL(esp); /* 0x2B0833F1: pop ebp */ 2442 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0833F2: ret */ 2443 RECOMP_REGS_OUT(); 2444 } 2445 2446 void sub_2B083400(void) { 2447 int _fpu_cmp = 0; 2448 uint32_t _cf = 0; 2449 int _df = 1; 2450 uint32_t _flag_k = FK_NONE; 2451 uint32_t _flag_a = 0, _flag_b = 0; 2452 uint32_t _itail_tgt = 0; 2453 RECOMP_REGS_LOCALS 2454 RECOMP_ENTER(0x2B083400u); 2455 2456 L_2B083400: 2457 PUSH32(esp, ebp); /* 0x2B083400: push ebp */ 2458 ebp = esp; /* 0x2B083401: mov ebp, esp */ 2459 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2461 esp = esp - 8; /* 0x2B083403: sub esp, 8 */ 2462 _flag_k = FK_CMP; 2463 ecx = MEM32(0x2B0EF0A4); /* 0x2B083406: mov ecx, dword ptr [0x2b0ef0a4] */ 2464 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2465 eax = 0; /* 0x2B08340C: xor eax, eax */ 2466 _cf = 0; 2467 _flag_k = FK_TEST; 2468 /* cmp ecx, eax */ /* 0x2B08340E: cmp ecx, eax */ 2469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2471 _flag_k = FK_CMP; 2472 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08343C; /* 0x2B083410: je 0x2b08343c */ 2473 L_2B083412: 2474 MEM32(ebp + (-0x8)) = eax; /* 0x2B083412: mov dword ptr [ebp - 8], eax */ 2475 MEM32(ebp + (-0x4)) = eax; /* 0x2B083415: mov dword ptr [ebp - 4], eax */ 2476 eax = ebp + (-0x8); /* 0x2B083418: lea eax, [ebp - 8] */ 2477 PUSH32(esp, eax); /* 0x2B08341B: push eax */ 2478 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B08341C: call dword ptr [0x2b0b53cc] */ 2479 RECOMP_FLAGS_IN(); 2480 ecx = eax; /* 0x2B083422: mov ecx, eax */ 2481 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B083424: call dword ptr [0x2b0b53ac] */ 2482 RECOMP_FLAGS_IN(); 2483 edx = MEM32(0x2B0EF0A4); /* 0x2B08342A: mov edx, dword ptr [0x2b0ef0a4] */ 2484 /* Keep a different mission's marker; zero identity explicitly clears all. */ 2485 if ((MEM32(ebp - 8) || MEM32(ebp - 4)) && 2486 (MEM32(ebp - 8) != MEM32(MEM32(edx + 0x3C) + 0x14) || 2487 MEM32(ebp - 4) != MEM32(MEM32(edx + 0x3C) + 0x18))) goto L_2B08343C; 2488 ecx = ebp + (-0x8); /* 0x2B083430: lea ecx, [ebp - 8] */ 2489 PUSH32(esp, ecx); /* 0x2B083433: push ecx */ 2490 ecx = MEM32(edx + 0x3C); /* 0x2B083434: mov ecx, dword ptr [edx + 0x3c] */ 2491 RECOMP_ICALL(0x2B076490u); /* 0x2B083437: call 0x2b076490 */ /* not lifted */ 2492 RECOMP_FLAGS_IN(); 2493 L_2B08343C: 2494 esp = ebp; /* 0x2B08343C: mov esp, ebp */ 2495 ebp = POP32_VAL(esp); /* 0x2B08343E: pop ebp */ 2496 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B08343F: ret */ 2497 RECOMP_REGS_OUT(); 2498 } 2499 2500 void sub_2B083440(void) { 2501 int _fpu_cmp = 0; 2502 uint32_t _cf = 0; 2503 int _df = 1; 2504 uint32_t _flag_k = FK_NONE; 2505 uint32_t _flag_a = 0, _flag_b = 0; 2506 uint32_t _itail_tgt = 0; 2507 RECOMP_REGS_LOCALS 2508 RECOMP_ENTER(0x2B083440u); 2509 2510 L_2B083440: 2511 PUSH32(esp, ebp); /* 0x2B083440: push ebp */ 2512 ebp = esp; /* 0x2B083441: mov ebp, esp */ 2513 PUSH32(esp, ecx); /* 0x2B083443: push ecx */ 2514 eax = MEM32(0x2B0EF0A4); /* 0x2B083444: mov eax, dword ptr [0x2b0ef0a4] */ 2515 /* test eax, eax */ /* 0x2B083449: test eax, eax */ 2516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2517 _cf = 0; 2518 _flag_k = FK_TEST; 2519 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083471; /* 0x2B08344B: je 0x2b083471 */ 2520 L_2B08344D: 2521 eax = ebp + (-0x4); /* 0x2B08344D: lea eax, [ebp - 4] */ 2522 PUSH32(esp, eax); /* 0x2B083450: push eax */ 2523 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B083451: call dword ptr [0x2b0b53cc] */ 2524 RECOMP_FLAGS_IN(); 2525 ecx = eax; /* 0x2B083457: mov ecx, eax */ 2526 RECOMP_ICALL(MEM32(0x2B0B53A8)); /* 0x2B083459: call dword ptr [0x2b0b53a8] */ 2527 RECOMP_FLAGS_IN(); 2528 ecx = MEM32(ebp + (-0x4)); /* 0x2B08345F: mov ecx, dword ptr [ebp - 4] */ 2529 edx = MEM32(0x2B0EF0A4); /* 0x2B083462: mov edx, dword ptr [0x2b0ef0a4] */ 2530 PUSH32(esp, ecx); /* 0x2B083468: push ecx */ 2531 ecx = MEM32(edx + 0x3C); /* 0x2B083469: mov ecx, dword ptr [edx + 0x3c] */ 2532 RECOMP_ICALL(0x2B0764D0u); /* 0x2B08346C: call 0x2b0764d0 */ /* not lifted */ 2533 RECOMP_FLAGS_IN(); 2534 L_2B083471: 2535 esp = ebp; /* 0x2B083471: mov esp, ebp */ 2536 ebp = POP32_VAL(esp); /* 0x2B083473: pop ebp */ 2537 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083474: ret */ 2538 RECOMP_REGS_OUT(); 2539 } 2540 2541 void sub_2B083480(void) { 2542 int _fpu_cmp = 0; 2543 uint32_t _cf = 0; 2544 int _df = 1; 2545 uint32_t _flag_k = FK_NONE; 2546 uint32_t _flag_a = 0, _flag_b = 0; 2547 uint32_t _itail_tgt = 0; 2548 RECOMP_REGS_LOCALS 2549 RECOMP_ENTER(0x2B083480u); 2550 2551 L_2B083480: 2552 PUSH32(esp, ebp); /* 0x2B083480: push ebp */ 2553 ebp = esp; /* 0x2B083481: mov ebp, esp */ 2554 PUSH32(esp, ecx); /* 0x2B083483: push ecx */ 2555 eax = ebp + (-0x4); /* 0x2B083484: lea eax, [ebp - 4] */ 2556 PUSH32(esp, eax); /* 0x2B083487: push eax */ 2557 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B083488: call dword ptr [0x2b0b53cc] */ 2558 RECOMP_FLAGS_IN(); 2559 ecx = eax; /* 0x2B08348E: mov ecx, eax */ 2560 RECOMP_ICALL(MEM32(0x2B0B53A8)); /* 0x2B083490: call dword ptr [0x2b0b53a8] */ 2561 RECOMP_FLAGS_IN(); 2562 ecx = MEM32(0x2B0EF0A4); /* 0x2B083496: mov ecx, dword ptr [0x2b0ef0a4] */ 2563 /* test ecx, ecx */ /* 0x2B08349C: test ecx, ecx */ 2564 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2565 _cf = 0; 2566 _flag_k = FK_TEST; 2567 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0834AD; /* 0x2B08349E: je 0x2b0834ad */ 2568 L_2B0834A0: 2569 /* cmp MEM32(ebp + (-0x4)), 1 */ /* 0x2B0834A0: cmp dword ptr [ebp - 4], 1 */ 2570 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1); 2571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2572 _flag_k = FK_CMP; 2573 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B0834A4: sete dl */ 2574 PUSH32(esp, edx); /* 0x2B0834A7: push edx */ 2575 RECOMP_ICALL(0x2B082BE0u); /* 0x2B0834A8: call 0x2b082be0 */ /* not lifted */ 2576 RECOMP_FLAGS_IN(); 2577 L_2B0834AD: 2578 /* cmp MEM32(ebp + (-0x4)), 1 */ /* 0x2B0834AD: cmp dword ptr [ebp - 4], 1 */ 2579 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1); 2580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2581 _flag_k = FK_CMP; 2582 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0834C9; /* 0x2B0834B1: jne 0x2b0834c9 */ 2583 L_2B0834B3: 2584 ecx = MEM32(0x2B0EF104); /* 0x2B0834B3: mov ecx, dword ptr [0x2b0ef104] */ 2585 /* test ecx, ecx */ /* 0x2B0834B9: test ecx, ecx */ 2586 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2587 _cf = 0; 2588 _flag_k = FK_TEST; 2589 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0834C9; /* 0x2B0834BB: je 0x2b0834c9 */ 2590 L_2B0834BD: 2591 PUSH32(esp, 0); /* 0x2B0834BD: push 0 */ 2592 PUSH32(esp, 0x2B0ECB68u); /* 0x2B0834BF: push 0x2b0ecb68 */ 2593 RECOMP_ICALL(0x2B08D480u); /* 0x2B0834C4: call 0x2b08d480 */ /* not lifted */ 2594 RECOMP_FLAGS_IN(); 2595 L_2B0834C9: 2596 esp = ebp; /* 0x2B0834C9: mov esp, ebp */ 2597 ebp = POP32_VAL(esp); /* 0x2B0834CB: pop ebp */ 2598 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0834CC: ret */ 2599 RECOMP_REGS_OUT(); 2600 } 2601 2602 void sub_2B0834D0(void) { 2603 int _fpu_cmp = 0; 2604 uint32_t _cf = 0; 2605 int _df = 1; 2606 uint32_t _flag_k = FK_NONE; 2607 uint32_t _flag_a = 0, _flag_b = 0; 2608 uint32_t _itail_tgt = 0; 2609 RECOMP_REGS_LOCALS 2610 RECOMP_ENTER(0x2B0834D0u); 2611 2612 L_2B0834D0: 2613 PUSH32(esp, ebp); /* 0x2B0834D0: push ebp */ 2614 ebp = esp; /* 0x2B0834D1: mov ebp, esp */ 2615 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0834D3: push -1 */ 2616 PUSH32(esp, 0x2B0B1FF1u); /* 0x2B0834D5: push 0x2b0b1ff1 */ 2617 eax = MEM32(FS_BASE + (0)); /* 0x2B0834DA: mov eax, dword ptr fs:[0] */ 2618 PUSH32(esp, eax); /* 0x2B0834E0: push eax */ 2619 MEM32(FS_BASE + (0)) = esp; /* 0x2B0834E1: mov dword ptr fs:[0], esp */ 2620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2622 esp = esp - 0x10u; /* 0x2B0834E8: sub esp, 0x10 */ 2623 _flag_k = FK_CMP; 2624 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x2B0834EB: mov al, byte ptr [ebp + 0x14] */ 2625 PUSH32(esp, ebx); /* 0x2B0834EE: push ebx */ 2626 PUSH32(esp, esi); /* 0x2B0834EF: push esi */ 2627 esi = ecx; /* 0x2B0834F0: mov esi, ecx */ 2628 ecx = MEM32(ebp + 0xC); /* 0x2B0834F2: mov ecx, dword ptr [ebp + 0xc] */ 2629 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2630 ebx = 0; /* 0x2B0834F5: xor ebx, ebx */ 2631 _cf = 0; 2632 _flag_k = FK_TEST; 2633 MEM8(esi + 0x15) = (uint8_t)(LO8(eax)); /* 0x2B0834F7: mov byte ptr [esi + 0x15], al */ 2634 eax = esi + 0x1C; /* 0x2B0834FA: lea eax, [esi + 0x1c] */ 2635 /* cmp eax, ecx */ /* 0x2B0834FD: cmp eax, ecx */ 2636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2638 _flag_k = FK_CMP; 2639 PUSH32(esp, edi); /* 0x2B0834FF: push edi */ 2640 MEM32(esi + 0x8) = ebx; /* 0x2B083500: mov dword ptr [esi + 8], ebx */ 2641 MEM8(esi + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2B083503: mov byte ptr [esi + 0x14], bl */ 2642 MEM8(esi + 0x16) = (uint8_t)(LO8(ebx)); /* 0x2B083506: mov byte ptr [esi + 0x16], bl */ 2643 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083515; /* 0x2B083509: je 0x2b083515 */ 2644 L_2B08350B: 2645 edx = MEM32(ecx); /* 0x2B08350B: mov edx, dword ptr [ecx] */ 2646 MEM32(eax) = edx; /* 0x2B08350D: mov dword ptr [eax], edx */ 2647 ecx = MEM32(ecx + 0x4); /* 0x2B08350F: mov ecx, dword ptr [ecx + 4] */ 2648 MEM32(eax + 0x4) = ecx; /* 0x2B083512: mov dword ptr [eax + 4], ecx */ 2649 L_2B083515: 2650 ecx = esi; /* 0x2B083515: mov ecx, esi */ 2651 RECOMP_ICALL(0x2B0836D0u); /* 0x2B083517: call 0x2b0836d0 */ /* not lifted */ 2652 RECOMP_FLAGS_IN(); 2653 edx = eax + eax * 4 + 0xA; /* 0x2B08351C: lea edx, [eax + eax*4 + 0xa] */ 2654 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x2B083520: shl edx, 2 */ 2655 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2656 edx = edx << 2u; /* 0x2B083520: shl edx, 2 */ 2657 PUSH32(esp, 0x50u); /* 0x2B083523: push 0x50 */ 2658 MEM32(esi + 0x24) = eax; /* 0x2B083525: mov dword ptr [esi + 0x24], eax */ 2659 MEM32(ebp + (-0x1C)) = 0x28u; /* 0x2B083528: mov dword ptr [ebp - 0x1c], 0x28 */ 2660 MEM32(ebp + (-0x18)) = edx; /* 0x2B08352F: mov dword ptr [ebp - 0x18], edx */ 2661 MEM32(ebp + (-0x14)) = 0x80u; /* 0x2B083532: mov dword ptr [ebp - 0x14], 0x80 */ 2662 MEM32(ebp + (-0x10)) = 0x10u; /* 0x2B083539: mov dword ptr [ebp - 0x10], 0x10 */ 2663 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083540: call 0x2b0ab212 */ /* not lifted */ 2664 RECOMP_FLAGS_IN(); 2665 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2667 esp = esp + 4; /* 0x2B083545: add esp, 4 */ 2668 _flag_k = FK_ADD; 2669 MEM32(ebp + 0x14) = eax; /* 0x2B083548: mov dword ptr [ebp + 0x14], eax */ 2670 /* cmp eax, ebx */ /* 0x2B08354B: cmp eax, ebx */ 2671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2673 _flag_k = FK_CMP; 2674 MEM32(ebp + (-0x4)) = ebx; /* 0x2B08354D: mov dword ptr [ebp - 4], ebx */ 2675 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083577; /* 0x2B083550: je 0x2b083577 */ 2676 L_2B083552: 2677 ecx = MEM32(ebp + 0x8); /* 0x2B083552: mov ecx, dword ptr [ebp + 8] */ 2678 PUSH32(esp, ebx); /* 0x2B083555: push ebx */ 2679 PUSH32(esp, 0x3F800000u); /* 0x2B083556: push 0x3f800000 */ 2680 PUSH32(esp, 0x3F800000u); /* 0x2B08355B: push 0x3f800000 */ 2681 PUSH32(esp, ecx); /* 0x2B083560: push ecx */ 2682 edx = ebp + (-0x1C); /* 0x2B083561: lea edx, [ebp - 0x1c] */ 2683 PUSH32(esp, edx); /* 0x2B083564: push edx */ 2684 ecx = ebp + (-0x14); /* 0x2B083565: lea ecx, [ebp - 0x14] */ 2685 PUSH32(esp, ecx); /* 0x2B083568: push ecx */ 2686 PUSH32(esp, 4); /* 0x2B083569: push 4 */ 2687 PUSH32(esp, 7); /* 0x2B08356B: push 7 */ 2688 ecx = eax; /* 0x2B08356D: mov ecx, eax */ 2689 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B08356F: call dword ptr [0x2b0b5bd8] */ 2690 RECOMP_FLAGS_IN(); 2691 goto L_2B083579; /* 0x2B083575: jmp 0x2b083579 */ 2692 L_2B083577: 2693 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2694 eax = 0; /* 0x2B083577: xor eax, eax */ 2695 _cf = 0; 2696 _flag_k = FK_TEST; 2697 L_2B083579: 2698 edx = MEM32(ebp + 0x18); /* 0x2B083579: mov edx, dword ptr [ebp + 0x18] */ 2699 PUSH32(esp, edx); /* 0x2B08357C: push edx */ 2700 ecx = eax; /* 0x2B08357D: mov ecx, eax */ 2701 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B08357F: mov dword ptr [ebp - 4], 0xffffffff */ 2702 MEM32(esi) = eax; /* 0x2B083586: mov dword ptr [esi], eax */ 2703 RECOMP_ICALL(MEM32(0x2B0B5B48)); /* 0x2B083588: call dword ptr [0x2b0b5b48] */ 2704 RECOMP_FLAGS_IN(); 2705 PUSH32(esp, 0x74u); /* 0x2B08358E: push 0x74 */ 2706 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083590: call 0x2b0ab212 */ /* not lifted */ 2707 RECOMP_FLAGS_IN(); 2708 edi = eax; /* 0x2B083595: mov edi, eax */ 2709 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2711 esp = esp + 4; /* 0x2B083597: add esp, 4 */ 2712 _flag_k = FK_ADD; 2713 MEM32(ebp + 0x14) = edi; /* 0x2B08359A: mov dword ptr [ebp + 0x14], edi */ 2714 /* cmp edi, ebx */ /* 0x2B08359D: cmp edi, ebx */ 2715 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2717 _flag_k = FK_CMP; 2718 MEM32(ebp + (-0x4)) = 1; /* 0x2B08359F: mov dword ptr [ebp - 4], 1 */ 2719 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0835D4; /* 0x2B0835A6: je 0x2b0835d4 */ 2720 L_2B0835A8: 2721 eax = MEM32(esi); /* 0x2B0835A8: mov eax, dword ptr [esi] */ 2722 ecx = MEM32(ebp + 0x8); /* 0x2B0835AA: mov ecx, dword ptr [ebp + 8] */ 2723 PUSH32(esp, eax); /* 0x2B0835AD: push eax */ 2724 PUSH32(esp, ebx); /* 0x2B0835AE: push ebx */ 2725 PUSH32(esp, ebx); /* 0x2B0835AF: push ebx */ 2726 PUSH32(esp, 0x3F800000u); /* 0x2B0835B0: push 0x3f800000 */ 2727 PUSH32(esp, ecx); /* 0x2B0835B5: push ecx */ 2728 PUSH32(esp, 0xDCu); /* 0x2B0835B6: push 0xdc */ 2729 PUSH32(esp, 0xDBu); /* 0x2B0835BB: push 0xdb */ 2730 PUSH32(esp, 1); /* 0x2B0835C0: push 1 */ 2731 PUSH32(esp, ebx); /* 0x2B0835C2: push ebx */ 2732 PUSH32(esp, ebx); /* 0x2B0835C3: push ebx */ 2733 ecx = edi; /* 0x2B0835C4: mov ecx, edi */ 2734 RECOMP_ICALL(MEM32(0x2B0B5A30)); /* 0x2B0835C6: call dword ptr [0x2b0b5a30] */ 2735 RECOMP_FLAGS_IN(); 2736 MEM32(edi) = 0x2B0B6A88u; /* 0x2B0835CC: mov dword ptr [edi], 0x2b0b6a88 */ 2737 goto L_2B0835D6; /* 0x2B0835D2: jmp 0x2b0835d6 */ 2738 L_2B0835D4: 2739 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2740 edi = 0; /* 0x2B0835D4: xor edi, edi */ 2741 _cf = 0; 2742 _flag_k = FK_TEST; 2743 L_2B0835D6: 2744 MEM32(esi + 0x4) = edi; /* 0x2B0835D6: mov dword ptr [esi + 4], edi */ 2745 edx = MEM32(edi + 0x6C); /* 0x2B0835D9: mov edx, dword ptr [edi + 0x6c] */ 2746 ecx = ebp + (-0x14); /* 0x2B0835DC: lea ecx, [ebp - 0x14] */ 2747 MEM32(ebp + (-0x14)) = edx; /* 0x2B0835DF: mov dword ptr [ebp - 0x14], edx */ 2748 eax = MEM32(edi + 0x70); /* 0x2B0835E2: mov eax, dword ptr [edi + 0x70] */ 2749 PUSH32(esp, ecx); /* 0x2B0835E5: push ecx */ 2750 ecx = MEM32(esi); /* 0x2B0835E6: mov ecx, dword ptr [esi] */ 2751 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0835E8: mov dword ptr [ebp - 4], 0xffffffff */ 2752 MEM32(ebp + (-0x10)) = eax; /* 0x2B0835EF: mov dword ptr [ebp - 0x10], eax */ 2753 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B0835F2: call dword ptr [0x2b0b5978] */ 2754 RECOMP_FLAGS_IN(); 2755 /* cmp MEM32(ebp + 0x10), ebx */ /* 0x2B0835F8: cmp dword ptr [ebp + 0x10], ebx */ 2756 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(ebx); 2757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2758 _flag_k = FK_CMP; 2759 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08366E; /* 0x2B0835FB: je 0x2b08366e */ 2760 L_2B0835FD: 2761 PUSH32(esp, 0x50u); /* 0x2B0835FD: push 0x50 */ 2762 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0835FF: call 0x2b0ab212 */ /* not lifted */ 2763 RECOMP_FLAGS_IN(); 2764 edi = eax; /* 0x2B083604: mov edi, eax */ 2765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2767 esp = esp + 4; /* 0x2B083606: add esp, 4 */ 2768 _flag_k = FK_ADD; 2769 MEM32(ebp + 0x14) = edi; /* 0x2B083609: mov dword ptr [ebp + 0x14], edi */ 2770 /* test edi, edi */ /* 0x2B08360C: test edi, edi */ 2771 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2772 _cf = 0; 2773 _flag_k = FK_TEST; 2774 MEM32(ebp + (-0x4)) = 2; /* 0x2B08360E: mov dword ptr [ebp - 4], 2 */ 2775 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083640; /* 0x2B083615: je 0x2b083640 */ 2776 L_2B083617: 2777 edx = MEM32(esi); /* 0x2B083617: mov edx, dword ptr [esi] */ 2778 ecx = MEM32(ebp + 0x10); /* 0x2B083619: mov ecx, dword ptr [ebp + 0x10] */ 2779 PUSH32(esp, edx); /* 0x2B08361C: push edx */ 2780 PUSH32(esp, 0x800u); /* 0x2B08361D: push 0x800 */ 2781 eax = 1; /* 0x2B083622: mov eax, 1 */ 2782 PUSH32(esp, eax); /* 0x2B083627: push eax */ 2783 eax = MEM32(ebp + 0x8); /* 0x2B083628: mov eax, dword ptr [ebp + 8] */ 2784 PUSH32(esp, ebx); /* 0x2B08362B: push ebx */ 2785 PUSH32(esp, eax); /* 0x2B08362C: push eax */ 2786 PUSH32(esp, ecx); /* 0x2B08362D: push ecx */ 2787 PUSH32(esp, 1); /* 0x2B08362E: push 1 */ 2788 ecx = edi; /* 0x2B083630: mov ecx, edi */ 2789 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B083632: call dword ptr [0x2b0b5950] */ 2790 RECOMP_FLAGS_IN(); 2791 MEM32(edi) = 0x2B0B6878u; /* 0x2B083638: mov dword ptr [edi], 0x2b0b6878 */ 2792 goto L_2B083642; /* 0x2B08363E: jmp 0x2b083642 */ 2793 L_2B083640: 2794 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2795 edi = 0; /* 0x2B083640: xor edi, edi */ 2796 _cf = 0; 2797 _flag_k = FK_TEST; 2798 L_2B083642: 2799 edx = MEM32(ebp + (-0x14)); /* 0x2B083642: mov edx, dword ptr [ebp - 0x14] */ 2800 ebx = MEM32(ebp + (-0x10)); /* 0x2B083645: mov ebx, dword ptr [ebp - 0x10] */ 2801 MEM32(esi + 0x8) = edi; /* 0x2B083648: mov dword ptr [esi + 8], edi */ 2802 edi = MEM32(edi + 0x34); /* 0x2B08364B: mov edi, dword ptr [edi + 0x34] */ 2803 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2804 eax = 0; /* 0x2B08364E: xor eax, eax */ 2805 _cf = 0; 2806 _flag_k = FK_TEST; 2807 MEM32(edi) = eax; /* 0x2B083650: mov dword ptr [edi], eax */ 2808 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2809 ecx = 0; /* 0x2B083652: xor ecx, ecx */ 2810 _cf = 0; 2811 _flag_k = FK_TEST; 2812 MEM32(edi + 0x4) = ecx; /* 0x2B083654: mov dword ptr [edi + 4], ecx */ 2813 MEM32(edi + 0x8) = edx; /* 0x2B083657: mov dword ptr [edi + 8], edx */ 2814 MEM32(edi + 0xC) = ebx; /* 0x2B08365A: mov dword ptr [edi + 0xc], ebx */ 2815 PUSH32(esp, ecx); /* 0x2B08365D: push ecx */ 2816 ecx = MEM32(esi + 0x8); /* 0x2B08365E: mov ecx, dword ptr [esi + 8] */ 2817 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B083661: mov dword ptr [ebp - 4], 0xffffffff */ 2818 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B083668: call dword ptr [0x2b0b5858] */ 2819 RECOMP_FLAGS_IN(); 2820 L_2B08366E: 2821 eax = MEM32(0x2B0EF0B4); /* 0x2B08366E: mov eax, dword ptr [0x2b0ef0b4] */ 2822 edi = MEM32(eax + 0x4); /* 0x2B083673: mov edi, dword ptr [eax + 4] */ 2823 ebx = MEM32(edi + 0x4); /* 0x2B083676: mov ebx, dword ptr [edi + 4] */ 2824 PUSH32(esp, 0xCu); /* 0x2B083679: push 0xc */ 2825 MEM32(ebp + 0x14) = eax; /* 0x2B08367B: mov dword ptr [ebp + 0x14], eax */ 2826 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08367E: call 0x2b0ab212 */ /* not lifted */ 2827 RECOMP_FLAGS_IN(); 2828 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2830 esp = esp + 4; /* 0x2B083683: add esp, 4 */ 2831 _flag_k = FK_ADD; 2832 /* test edi, edi */ /* 0x2B083686: test edi, edi */ 2833 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2834 _cf = 0; 2835 _flag_k = FK_TEST; 2836 ecx = edi; /* 0x2B083688: mov ecx, edi */ 2837 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08368E; /* 0x2B08368A: jne 0x2b08368e */ 2838 L_2B08368C: 2839 ecx = eax; /* 0x2B08368C: mov ecx, eax */ 2840 L_2B08368E: 2841 /* test ebx, ebx */ /* 0x2B08368E: test ebx, ebx */ 2842 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2843 _cf = 0; 2844 _flag_k = FK_TEST; 2845 MEM32(eax) = ecx; /* 0x2B083690: mov dword ptr [eax], ecx */ 2846 ecx = ebx; /* 0x2B083692: mov ecx, ebx */ 2847 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083698; /* 0x2B083694: jne 0x2b083698 */ 2848 L_2B083696: 2849 ecx = eax; /* 0x2B083696: mov ecx, eax */ 2850 L_2B083698: 2851 MEM32(eax + 0x4) = ecx; /* 0x2B083698: mov dword ptr [eax + 4], ecx */ 2852 MEM32(edi + 0x4) = eax; /* 0x2B08369B: mov dword ptr [edi + 4], eax */ 2853 edx = MEM32(eax + 0x4); /* 0x2B08369E: mov edx, dword ptr [eax + 4] */ 2854 MEM32(edx) = eax; /* 0x2B0836A1: mov dword ptr [edx], eax */ 2855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2857 eax = eax + 8; /* 0x2B0836A3: add eax, 8 */ 2858 _flag_k = FK_ADD; 2859 /* test eax, eax */ /* 0x2B0836A6: test eax, eax */ 2860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2861 _cf = 0; 2862 _flag_k = FK_TEST; 2863 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0836AC; /* 0x2B0836A8: je 0x2b0836ac */ 2864 L_2B0836AA: 2865 MEM32(eax) = esi; /* 0x2B0836AA: mov dword ptr [eax], esi */ 2866 L_2B0836AC: 2867 eax = MEM32(ebp + 0x14); /* 0x2B0836AC: mov eax, dword ptr [ebp + 0x14] */ 2868 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(1); 2869 MEM32(eax + 0x8) = MEM32(eax + 0x8) + 1; /* 0x2B0836AF: inc dword ptr [eax + 8] */ 2870 _flag_k = FK_INC; 2871 ecx = MEM32(ebp + (-0xC)); /* 0x2B0836B2: mov ecx, dword ptr [ebp - 0xc] */ 2872 edi = POP32_VAL(esp); /* 0x2B0836B5: pop edi */ 2873 eax = esi; /* 0x2B0836B6: mov eax, esi */ 2874 esi = POP32_VAL(esp); /* 0x2B0836B8: pop esi */ 2875 ebx = POP32_VAL(esp); /* 0x2B0836B9: pop ebx */ 2876 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0836BA: mov dword ptr fs:[0], ecx */ 2877 esp = ebp; /* 0x2B0836C1: mov esp, ebp */ 2878 ebp = POP32_VAL(esp); /* 0x2B0836C3: pop ebp */ 2879 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2B0836C4: ret 0x14 */ 2880 RECOMP_REGS_OUT(); 2881 } 2882 2883 void sub_2B0836D0(void) { 2884 int _fpu_cmp = 0; 2885 uint32_t _cf = 0; 2886 int _df = 1; 2887 uint32_t _flag_k = FK_NONE; 2888 uint32_t _flag_a = 0, _flag_b = 0; 2889 uint32_t _itail_tgt = 0; 2890 RECOMP_REGS_LOCALS 2891 RECOMP_ENTER(0x2B0836D0u); 2892 2893 L_2B0836D0: 2894 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2895 eax = 0; /* 0x2B0836D0: xor eax, eax */ 2896 _cf = 0; 2897 _flag_k = FK_TEST; 2898 L_2B0836D2: 2899 SET_LO8(ecx, MEM8(eax + 0x2B0EF0A8)); /* 0x2B0836D2: mov cl, byte ptr [eax + 0x2b0ef0a8] */ 2900 /* test LO8(ecx), LO8(ecx) */ /* 0x2B0836D8: test cl, cl */ 2901 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2902 _cf = 0; 2903 _flag_k = FK_NARROW(FK_TEST, 24); 2904 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0836E5; /* 0x2B0836DA: jne 0x2b0836e5 */ 2905 L_2B0836DC: 2906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2907 eax = eax + 1; /* 0x2B0836DC: inc eax */ 2908 _flag_k = FK_INC; 2909 /* cmp eax, 0xAu */ /* 0x2B0836DD: cmp eax, 0xa */ 2910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 2911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2912 _flag_k = FK_CMP; 2913 RECOMP_BACKEDGE(); 2914 if (CMP_L(_flag_a, _flag_b)) goto L_2B0836D2; /* 0x2B0836E0: jl 0x2b0836d2 */ 2915 L_2B0836E2: 2916 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2917 eax = 0; /* 0x2B0836E2: xor eax, eax */ 2918 _cf = 0; 2919 _flag_k = FK_TEST; 2920 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0836E4: ret */ 2921 L_2B0836E5: 2922 MEM8(eax + 0x2B0EF0A8) = (uint8_t)(0); /* 0x2B0836E5: mov byte ptr [eax + 0x2b0ef0a8], 0 */ 2923 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0836EC: ret */ 2924 RECOMP_REGS_OUT(); 2925 } 2926 2927 void sub_2B0836F0(void) { 2928 int _fpu_cmp = 0; 2929 uint32_t _cf = 0; 2930 int _df = 1; 2931 uint32_t _flag_k = FK_NONE; 2932 uint32_t _flag_a = 0, _flag_b = 0; 2933 uint32_t _itail_tgt = 0; 2934 RECOMP_REGS_LOCALS 2935 RECOMP_ENTER(0x2B0836F0u); 2936 2937 L_2B0836F0: 2938 PUSH32(esp, ebp); /* 0x2B0836F0: push ebp */ 2939 ebp = esp; /* 0x2B0836F1: mov ebp, esp */ 2940 eax = MEM32(ebp + 0x8); /* 0x2B0836F3: mov eax, dword ptr [ebp + 8] */ 2941 /* test eax, eax */ /* 0x2B0836F6: test eax, eax */ 2942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2943 _cf = 0; 2944 _flag_k = FK_TEST; 2945 if (TEST_S(_flag_a, _flag_b)) goto L_2B083706; /* 0x2B0836F8: jl 0x2b083706 */ 2946 L_2B0836FA: 2947 /* cmp eax, 0xAu */ /* 0x2B0836FA: cmp eax, 0xa */ 2948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 2949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2950 _flag_k = FK_CMP; 2951 if (CMP_GE(_flag_a, _flag_b)) goto L_2B083706; /* 0x2B0836FD: jge 0x2b083706 */ 2952 L_2B0836FF: 2953 MEM8(eax + 0x2B0EF0A8) = (uint8_t)(1); /* 0x2B0836FF: mov byte ptr [eax + 0x2b0ef0a8], 1 */ 2954 L_2B083706: 2955 ebp = POP32_VAL(esp); /* 0x2B083706: pop ebp */ 2956 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B083707: ret 4 */ 2957 RECOMP_REGS_OUT(); 2958 } 2959 2960 void sub_2B083710(void) { 2961 int _fpu_cmp = 0; 2962 uint32_t _cf = 0; 2963 int _df = 1; 2964 uint32_t _flag_k = FK_NONE; 2965 uint32_t _flag_a = 0, _flag_b = 0; 2966 uint32_t _itail_tgt = 0; 2967 RECOMP_REGS_LOCALS 2968 RECOMP_ENTER(0x2B083710u); 2969 2970 L_2B083710: 2971 PUSH32(esp, ebp); /* 0x2B083710: push ebp */ 2972 ebp = esp; /* 0x2B083711: mov ebp, esp */ 2973 PUSH32(esp, ecx); /* 0x2B083713: push ecx */ 2974 PUSH32(esp, ebx); /* 0x2B083714: push ebx */ 2975 PUSH32(esp, esi); /* 0x2B083715: push esi */ 2976 PUSH32(esp, edi); /* 0x2B083716: push edi */ 2977 edi = ecx; /* 0x2B083717: mov edi, ecx */ 2978 eax = MEM32(edi + 0x24); /* 0x2B083719: mov eax, dword ptr [edi + 0x24] */ 2979 PUSH32(esp, eax); /* 0x2B08371C: push eax */ 2980 RECOMP_ICALL(0x2B0836F0u); /* 0x2B08371D: call 0x2b0836f0 */ /* not lifted */ 2981 RECOMP_FLAGS_IN(); 2982 ecx = MEM32(edi + 0x4); /* 0x2B083722: mov ecx, dword ptr [edi + 4] */ 2983 /* test ecx, ecx */ /* 0x2B083725: test ecx, ecx */ 2984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2985 _cf = 0; 2986 _flag_k = FK_TEST; 2987 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08372F; /* 0x2B083727: je 0x2b08372f */ 2988 L_2B083729: 2989 edx = MEM32(ecx); /* 0x2B083729: mov edx, dword ptr [ecx] */ 2990 PUSH32(esp, 1); /* 0x2B08372B: push 1 */ 2991 RECOMP_ICALL(MEM32(edx)); /* 0x2B08372D: call dword ptr [edx] */ 2992 RECOMP_FLAGS_IN(); 2993 L_2B08372F: 2994 ecx = MEM32(edi + 0x8); /* 0x2B08372F: mov ecx, dword ptr [edi + 8] */ 2995 /* test ecx, ecx */ /* 0x2B083732: test ecx, ecx */ 2996 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2997 _cf = 0; 2998 _flag_k = FK_TEST; 2999 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08373C; /* 0x2B083734: je 0x2b08373c */ 3000 L_2B083736: 3001 eax = MEM32(ecx); /* 0x2B083736: mov eax, dword ptr [ecx] */ 3002 PUSH32(esp, 1); /* 0x2B083738: push 1 */ 3003 RECOMP_ICALL(MEM32(eax)); /* 0x2B08373A: call dword ptr [eax] */ 3004 RECOMP_FLAGS_IN(); 3005 L_2B08373C: 3006 esi = MEM32(edi); /* 0x2B08373C: mov esi, dword ptr [edi] */ 3007 /* test esi, esi */ /* 0x2B08373E: test esi, esi */ 3008 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3009 _cf = 0; 3010 _flag_k = FK_TEST; 3011 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083753; /* 0x2B083740: je 0x2b083753 */ 3012 L_2B083742: 3013 ecx = esi; /* 0x2B083742: mov ecx, esi */ 3014 RECOMP_ICALL(MEM32(0x2B0B5BC4)); /* 0x2B083744: call dword ptr [0x2b0b5bc4] */ 3015 RECOMP_FLAGS_IN(); 3016 PUSH32(esp, esi); /* 0x2B08374A: push esi */ 3017 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B08374B: call 0x2b0ab1ba */ /* not lifted */ 3018 RECOMP_FLAGS_IN(); 3019 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3020 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3021 esp = esp + 4; /* 0x2B083750: add esp, 4 */ 3022 _flag_k = FK_ADD; 3023 L_2B083753: 3024 ebx = MEM32(0x2B0EF0B4); /* 0x2B083753: mov ebx, dword ptr [0x2b0ef0b4] */ 3025 eax = MEM32(ebx + 0x4); /* 0x2B083759: mov eax, dword ptr [ebx + 4] */ 3026 esi = MEM32(eax); /* 0x2B08375C: mov esi, dword ptr [eax] */ 3027 /* cmp esi, eax */ /* 0x2B08375E: cmp esi, eax */ 3028 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3030 _flag_k = FK_CMP; 3031 MEM32(ebp + (-0x4)) = eax; /* 0x2B083760: mov dword ptr [ebp - 4], eax */ 3032 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083798; /* 0x2B083763: je 0x2b083798 */ 3033 L_2B083765: 3034 /* cmp MEM32(esi + 0x8), edi */ /* 0x2B083765: cmp dword ptr [esi + 8], edi */ 3035 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(edi); 3036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3037 _flag_k = FK_CMP; 3038 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083792; /* 0x2B083768: jne 0x2b083792 */ 3039 L_2B08376A: 3040 eax = esi; /* 0x2B08376A: mov eax, esi */ 3041 ecx = MEM32(eax + 0x4); /* 0x2B08376C: mov ecx, dword ptr [eax + 4] */ 3042 edx = MEM32(eax); /* 0x2B08376F: mov edx, dword ptr [eax] */ 3043 esi = MEM32(esi); /* 0x2B083771: mov esi, dword ptr [esi] */ 3044 MEM32(ecx) = edx; /* 0x2B083773: mov dword ptr [ecx], edx */ 3045 ecx = MEM32(eax); /* 0x2B083775: mov ecx, dword ptr [eax] */ 3046 edx = MEM32(eax + 0x4); /* 0x2B083777: mov edx, dword ptr [eax + 4] */ 3047 PUSH32(esp, eax); /* 0x2B08377A: push eax */ 3048 MEM32(ecx + 0x4) = edx; /* 0x2B08377B: mov dword ptr [ecx + 4], edx */ 3049 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B08377E: call 0x2b0ab1ba */ /* not lifted */ 3050 RECOMP_FLAGS_IN(); 3051 eax = MEM32(ebx + 0x8); /* 0x2B083783: mov eax, dword ptr [ebx + 8] */ 3052 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3054 esp = esp + 4; /* 0x2B083786: add esp, 4 */ 3055 _flag_k = FK_ADD; 3056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3057 eax = eax - 1; /* 0x2B083789: dec eax */ 3058 _flag_k = FK_DEC; 3059 MEM32(ebx + 0x8) = eax; /* 0x2B08378A: mov dword ptr [ebx + 8], eax */ 3060 eax = MEM32(ebp + (-0x4)); /* 0x2B08378D: mov eax, dword ptr [ebp - 4] */ 3061 goto L_2B083794; /* 0x2B083790: jmp 0x2b083794 */ 3062 L_2B083792: 3063 esi = MEM32(esi); /* 0x2B083792: mov esi, dword ptr [esi] */ 3064 L_2B083794: 3065 /* cmp esi, eax */ /* 0x2B083794: cmp esi, eax */ 3066 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3068 _flag_k = FK_CMP; 3069 RECOMP_BACKEDGE(); 3070 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083765; /* 0x2B083796: jne 0x2b083765 */ 3071 L_2B083798: 3072 edi = POP32_VAL(esp); /* 0x2B083798: pop edi */ 3073 esi = POP32_VAL(esp); /* 0x2B083799: pop esi */ 3074 ebx = POP32_VAL(esp); /* 0x2B08379A: pop ebx */ 3075 esp = ebp; /* 0x2B08379B: mov esp, ebp */ 3076 ebp = POP32_VAL(esp); /* 0x2B08379D: pop ebp */ 3077 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B08379E: ret */ 3078 RECOMP_REGS_OUT(); 3079 } 3080 3081 void sub_2B0837A0(void) { 3082 int _fpu_cmp = 0; 3083 uint32_t _cf = 0; 3084 int _df = 1; 3085 uint32_t _flag_k = FK_NONE; 3086 uint32_t _flag_a = 0, _flag_b = 0; 3087 uint32_t _itail_tgt = 0; 3088 RECOMP_REGS_LOCALS 3089 RECOMP_ENTER(0x2B0837A0u); 3090 3091 L_2B0837A0: 3092 PUSH32(esp, ebp); /* 0x2B0837A0: push ebp */ 3093 ebp = esp; /* 0x2B0837A1: mov ebp, esp */ 3094 PUSH32(esp, ecx); /* 0x2B0837A3: push ecx */ 3095 PUSH32(esp, esi); /* 0x2B0837A4: push esi */ 3096 esi = ecx; /* 0x2B0837A5: mov esi, ecx */ 3097 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x2B0837A7: mov al, byte ptr [esi + 0x14] */ 3098 /* test LO8(eax), LO8(eax) */ /* 0x2B0837AA: test al, al */ 3099 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3100 _cf = 0; 3101 _flag_k = FK_NARROW(FK_TEST, 24); 3102 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083837; /* 0x2B0837AC: je 0x2b083837 */ 3103 L_2B0837B2: 3104 SET_LO8(eax, MEM8(esi + 0x16)); /* 0x2B0837B2: mov al, byte ptr [esi + 0x16] */ 3105 /* test LO8(eax), LO8(eax) */ /* 0x2B0837B5: test al, al */ 3106 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3107 _cf = 0; 3108 _flag_k = FK_NARROW(FK_TEST, 24); 3109 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083837; /* 0x2B0837B7: jne 0x2b083837 */ 3110 L_2B0837B9: 3111 fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x2B0837B9: fld dword ptr [esi + 0x10] */ 3112 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x2B0837BC: fsub dword ptr [ebp + 8] */ 3113 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2B0837BF: fstp dword ptr [ebp - 4] */ 3114 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x2B0837C2: fld dword ptr [ebp - 4] */ 3115 eax = MEM32(ebp + (-0x4)); /* 0x2B0837C5: mov eax, dword ptr [ebp - 4] */ 3116 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B0837C8: fcomp dword ptr [0x2b0b61b8] */ 3117 fp_pop(); 3118 MEM32(esi + 0x10) = eax; /* 0x2B0837CE: mov dword ptr [esi + 0x10], eax */ 3119 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0837D1: fnstsw ax */ 3120 /* test HI8(eax), 0x41u */ /* 0x2B0837D3: test ah, 0x41 */ 3121 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3122 _cf = 0; 3123 _flag_k = FK_NARROW(FK_TEST, 24); 3124 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0837EC; /* 0x2B0837D6: je 0x2b0837ec */ 3125 L_2B0837D8: 3126 SET_LO8(eax, MEM8(esi + 0x15)); /* 0x2B0837D8: mov al, byte ptr [esi + 0x15] */ 3127 /* test LO8(eax), LO8(eax) */ /* 0x2B0837DB: test al, al */ 3128 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3129 _cf = 0; 3130 _flag_k = FK_NARROW(FK_TEST, 24); 3131 MEM8(esi + 0x14) = (uint8_t)(0); /* 0x2B0837DD: mov byte ptr [esi + 0x14], 0 */ 3132 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0837EC; /* 0x2B0837E1: je 0x2b0837ec */ 3133 L_2B0837E3: 3134 SET_LO8(eax, 1); /* 0x2B0837E3: mov al, 1 */ 3135 esi = POP32_VAL(esp); /* 0x2B0837E5: pop esi */ 3136 esp = ebp; /* 0x2B0837E6: mov esp, ebp */ 3137 ebp = POP32_VAL(esp); /* 0x2B0837E8: pop ebp */ 3138 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0837E9: ret 4 */ 3139 L_2B0837EC: 3140 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x2B0837EC: fld dword ptr [esi + 0xc] */ 3141 MEM32(ebp + 0x8) = 0; /* 0x2B0837EF: mov dword ptr [ebp + 8], 0 */ 3142 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B0837F6: fcomp dword ptr [0x2b0b61b8] */ 3143 fp_pop(); 3144 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B0837FC: fnstsw ax */ 3145 /* test HI8(eax), 0x40u */ /* 0x2B0837FE: test ah, 0x40 */ 3146 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 3147 _cf = 0; 3148 _flag_k = FK_NARROW(FK_TEST, 24); 3149 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08380C; /* 0x2B083801: jne 0x2b08380c */ 3150 L_2B083803: 3151 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x2B083803: fld dword ptr [ebp - 4] */ 3152 _st[0] /= (double)*(float*)ADDR(esi + 0xC); /* 0x2B083806: fdiv dword ptr [esi + 0xc] */ 3153 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2B083809: fstp dword ptr [ebp + 8] */ 3154 L_2B08380C: 3155 eax = MEM32(esi + 0x18); /* 0x2B08380C: mov eax, dword ptr [esi + 0x18] */ 3156 /* test eax, eax */ /* 0x2B08380F: test eax, eax */ 3157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3158 _cf = 0; 3159 _flag_k = FK_TEST; 3160 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08381F; /* 0x2B083811: jne 0x2b08381f */ 3161 L_2B083813: 3162 fp_push(*(float*)&MEM32(0x2B0B63D0)); /* 0x2B083813: fld dword ptr [0x2b0b63d0] */ 3163 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x2B083819: fsub dword ptr [ebp + 8] */ 3164 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2B08381C: fstp dword ptr [ebp + 8] */ 3165 L_2B08381F: 3166 ecx = MEM32(ebp + 0x8); /* 0x2B08381F: mov ecx, dword ptr [ebp + 8] */ 3167 PUSH32(esp, ecx); /* 0x2B083822: push ecx */ 3168 ecx = MEM32(esi + 0x4); /* 0x2B083823: mov ecx, dword ptr [esi + 4] */ 3169 RECOMP_ICALL(MEM32(0x2B0B5A3C)); /* 0x2B083826: call dword ptr [0x2b0b5a3c] */ 3170 RECOMP_FLAGS_IN(); 3171 esi = MEM32(esi + 0x8); /* 0x2B08382C: mov esi, dword ptr [esi + 8] */ 3172 /* test esi, esi */ /* 0x2B08382F: test esi, esi */ 3173 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3174 _cf = 0; 3175 _flag_k = FK_TEST; 3176 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083837; /* 0x2B083831: je 0x2b083837 */ 3177 L_2B083833: 3178 MEM8(esi + 0x9) = (uint8_t)(1); /* 0x2B083833: mov byte ptr [esi + 9], 1 */ 3179 L_2B083837: 3180 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 3181 SET_LO8(eax, 0); /* 0x2B083837: xor al, al */ 3182 _cf = 0; 3183 _flag_k = FK_NARROW(FK_TEST, 24); 3184 esi = POP32_VAL(esp); /* 0x2B083839: pop esi */ 3185 esp = ebp; /* 0x2B08383A: mov esp, ebp */ 3186 ebp = POP32_VAL(esp); /* 0x2B08383C: pop ebp */ 3187 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B08383D: ret 4 */ 3188 RECOMP_REGS_OUT(); 3189 } 3190 3191 void sub_2B083840(void) { 3192 int _fpu_cmp = 0; 3193 uint32_t _cf = 0; 3194 int _df = 1; 3195 uint32_t _flag_k = FK_NONE; 3196 uint32_t _flag_a = 0, _flag_b = 0; 3197 uint32_t _itail_tgt = 0; 3198 RECOMP_REGS_LOCALS 3199 RECOMP_ENTER(0x2B083840u); 3200 3201 L_2B083840: 3202 PUSH32(esp, ebp); /* 0x2B083840: push ebp */ 3203 ebp = esp; /* 0x2B083841: mov ebp, esp */ 3204 eax = MEM32(ecx + 0x4); /* 0x2B083843: mov eax, dword ptr [ecx + 4] */ 3205 edx = MEM32(eax + 0x6C); /* 0x2B083846: mov edx, dword ptr [eax + 0x6c] */ 3206 ecx = MEM32(ebp + 0x8); /* 0x2B083849: mov ecx, dword ptr [ebp + 8] */ 3207 MEM32(ecx) = edx; /* 0x2B08384C: mov dword ptr [ecx], edx */ 3208 eax = MEM32(eax + 0x70); /* 0x2B08384E: mov eax, dword ptr [eax + 0x70] */ 3209 MEM32(ecx + 0x4) = eax; /* 0x2B083851: mov dword ptr [ecx + 4], eax */ 3210 ebp = POP32_VAL(esp); /* 0x2B083854: pop ebp */ 3211 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B083855: ret 4 */ 3212 RECOMP_REGS_OUT(); 3213 } 3214 3215 void sub_2B083860(void) { 3216 int _fpu_cmp = 0; 3217 uint32_t _cf = 0; 3218 int _df = 1; 3219 uint32_t _flag_k = FK_NONE; 3220 uint32_t _flag_a = 0, _flag_b = 0; 3221 uint32_t _itail_tgt = 0; 3222 RECOMP_REGS_LOCALS 3223 RECOMP_ENTER(0x2B083860u); 3224 3225 L_2B083860: 3226 PUSH32(esp, ebp); /* 0x2B083860: push ebp */ 3227 ebp = esp; /* 0x2B083861: mov ebp, esp */ 3228 eax = MEM32(0x2B0EF0B4); /* 0x2B083863: mov eax, dword ptr [0x2b0ef0b4] */ 3229 /* test eax, eax */ /* 0x2B083868: test eax, eax */ 3230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3231 _cf = 0; 3232 _flag_k = FK_TEST; 3233 PUSH32(esp, ebx); /* 0x2B08386A: push ebx */ 3234 PUSH32(esp, esi); /* 0x2B08386B: push esi */ 3235 PUSH32(esp, edi); /* 0x2B08386C: push edi */ 3236 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0838BF; /* 0x2B08386D: je 0x2b0838bf */ 3237 L_2B08386F: 3238 edi = MEM32(ebp + 0x8); /* 0x2B08386F: mov edi, dword ptr [ebp + 8] */ 3239 esi = MEM32(edi + 0x4); /* 0x2B083872: mov esi, dword ptr [edi + 4] */ 3240 /* cmp esi, 0xFFFFFFFFu */ /* 0x2B083875: cmp esi, -1 */ 3241 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 3242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3243 _flag_k = FK_CMP; 3244 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0838A6; /* 0x2B083878: je 0x2b0838a6 */ 3245 L_2B08387A: 3246 edx = MEM32(eax + 0x4); /* 0x2B08387A: mov edx, dword ptr [eax + 4] */ 3247 ecx = MEM32(edx); /* 0x2B08387D: mov ecx, dword ptr [edx] */ 3248 /* cmp ecx, edx */ /* 0x2B08387F: cmp ecx, edx */ 3249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3251 _flag_k = FK_CMP; 3252 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0838BF; /* 0x2B083881: je 0x2b0838bf */ 3253 L_2B083883: 3254 eax = MEM32(ecx + 0x8); /* 0x2B083883: mov eax, dword ptr [ecx + 8] */ 3255 ebx = MEM32(eax + 0x20); /* 0x2B083886: mov ebx, dword ptr [eax + 0x20] */ 3256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Cu); 3257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3258 eax = eax + 0x1Cu; /* 0x2B083889: add eax, 0x1c */ 3259 _flag_k = FK_ADD; 3260 /* cmp ebx, esi */ /* 0x2B08388C: cmp ebx, esi */ 3261 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 3262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3263 _flag_k = FK_CMP; 3264 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083896; /* 0x2B08388E: jne 0x2b083896 */ 3265 L_2B083890: 3266 eax = MEM32(eax); /* 0x2B083890: mov eax, dword ptr [eax] */ 3267 /* cmp eax, MEM32(edi) */ /* 0x2B083892: cmp eax, dword ptr [edi] */ 3268 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi)); 3269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3270 _flag_k = FK_CMP; 3271 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08389E; /* 0x2B083894: je 0x2b08389e */ 3272 L_2B083896: 3273 ecx = MEM32(ecx); /* 0x2B083896: mov ecx, dword ptr [ecx] */ 3274 /* cmp ecx, edx */ /* 0x2B083898: cmp ecx, edx */ 3275 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3277 _flag_k = FK_CMP; 3278 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0838BF; /* 0x2B08389A: je 0x2b0838bf */ 3279 L_2B08389C: 3280 RECOMP_BACKEDGE(); 3281 goto L_2B083883; /* 0x2B08389C: jmp 0x2b083883 */ 3282 L_2B08389E: 3283 eax = MEM32(ecx + 0x8); /* 0x2B08389E: mov eax, dword ptr [ecx + 8] */ 3284 edi = POP32_VAL(esp); /* 0x2B0838A1: pop edi */ 3285 esi = POP32_VAL(esp); /* 0x2B0838A2: pop esi */ 3286 ebx = POP32_VAL(esp); /* 0x2B0838A3: pop ebx */ 3287 ebp = POP32_VAL(esp); /* 0x2B0838A4: pop ebp */ 3288 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0838A5: ret */ 3289 L_2B0838A6: 3290 ecx = MEM32(eax + 0x4); /* 0x2B0838A6: mov ecx, dword ptr [eax + 4] */ 3291 eax = MEM32(ecx); /* 0x2B0838A9: mov eax, dword ptr [ecx] */ 3292 /* cmp eax, ecx */ /* 0x2B0838AB: cmp eax, ecx */ 3293 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3295 _flag_k = FK_CMP; 3296 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0838BF; /* 0x2B0838AD: je 0x2b0838bf */ 3297 L_2B0838AF: 3298 edx = MEM32(edi); /* 0x2B0838AF: mov edx, dword ptr [edi] */ 3299 L_2B0838B1: 3300 esi = MEM32(eax + 0x8); /* 0x2B0838B1: mov esi, dword ptr [eax + 8] */ 3301 /* cmp MEM32(esi + 0x1C), edx */ /* 0x2B0838B4: cmp dword ptr [esi + 0x1c], edx */ 3302 _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(edx); 3303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3304 _flag_k = FK_CMP; 3305 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0838C6; /* 0x2B0838B7: je 0x2b0838c6 */ 3306 L_2B0838B9: 3307 eax = MEM32(eax); /* 0x2B0838B9: mov eax, dword ptr [eax] */ 3308 /* cmp eax, ecx */ /* 0x2B0838BB: cmp eax, ecx */ 3309 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3311 _flag_k = FK_CMP; 3312 RECOMP_BACKEDGE(); 3313 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0838B1; /* 0x2B0838BD: jne 0x2b0838b1 */ 3314 L_2B0838BF: 3315 edi = POP32_VAL(esp); /* 0x2B0838BF: pop edi */ 3316 esi = POP32_VAL(esp); /* 0x2B0838C0: pop esi */ 3317 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3318 eax = 0; /* 0x2B0838C1: xor eax, eax */ 3319 _cf = 0; 3320 _flag_k = FK_TEST; 3321 ebx = POP32_VAL(esp); /* 0x2B0838C3: pop ebx */ 3322 ebp = POP32_VAL(esp); /* 0x2B0838C4: pop ebp */ 3323 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0838C5: ret */ 3324 L_2B0838C6: 3325 eax = MEM32(eax + 0x8); /* 0x2B0838C6: mov eax, dword ptr [eax + 8] */ 3326 edi = POP32_VAL(esp); /* 0x2B0838C9: pop edi */ 3327 esi = POP32_VAL(esp); /* 0x2B0838CA: pop esi */ 3328 ebx = POP32_VAL(esp); /* 0x2B0838CB: pop ebx */ 3329 ebp = POP32_VAL(esp); /* 0x2B0838CC: pop ebp */ 3330 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0838CD: ret */ 3331 RECOMP_REGS_OUT(); 3332 } 3333 3334 void sub_2B0838D0(void) { 3335 int _fpu_cmp = 0; 3336 uint32_t _cf = 0; 3337 int _df = 1; 3338 uint32_t _flag_k = FK_NONE; 3339 uint32_t _flag_a = 0, _flag_b = 0; 3340 uint32_t _itail_tgt = 0; 3341 RECOMP_REGS_LOCALS 3342 RECOMP_ENTER(0x2B0838D0u); 3343 3344 L_2B0838D0: 3345 PUSH32(esp, ebx); /* 0x2B0838D0: push ebx */ 3346 PUSH32(esp, esi); /* 0x2B0838D1: push esi */ 3347 esi = MEM32(0x2B0B53CC); /* 0x2B0838D2: mov esi, dword ptr [0x2b0b53cc] */ 3348 PUSH32(esp, edi); /* 0x2B0838D8: push edi */ 3349 ebx = ecx; /* 0x2B0838D9: mov ebx, ecx */ 3350 RECOMP_ICALL(esi); /* 0x2B0838DB: call esi */ 3351 RECOMP_FLAGS_IN(); 3352 ecx = eax; /* 0x2B0838DD: mov ecx, eax */ 3353 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B0838DF: call dword ptr [0x2b0b5374] */ 3354 RECOMP_FLAGS_IN(); 3355 PUSH32(esp, 0xBB8u); /* 0x2B0838E5: push 0xbb8 */ 3356 PUSH32(esp, 0x28u); /* 0x2B0838EA: push 0x28 */ 3357 PUSH32(esp, 1); /* 0x2B0838EC: push 1 */ 3358 RECOMP_ICALL(esi); /* 0x2B0838EE: call esi */ 3359 RECOMP_FLAGS_IN(); 3360 ecx = eax; /* 0x2B0838F0: mov ecx, eax */ 3361 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B0838F2: call dword ptr [0x2b0b5378] */ 3362 RECOMP_FLAGS_IN(); 3363 PUSH32(esp, 0x2B083B50u); /* 0x2B0838F8: push 0x2b083b50 */ 3364 RECOMP_ICALL(esi); /* 0x2B0838FD: call esi */ 3365 RECOMP_FLAGS_IN(); 3366 ecx = eax; /* 0x2B0838FF: mov ecx, eax */ 3367 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B083901: call dword ptr [0x2b0b537c] */ 3368 RECOMP_FLAGS_IN(); 3369 PUSH32(esp, 0x2B083A10u); /* 0x2B083907: push 0x2b083a10 */ 3370 PUSH32(esp, 5); /* 0x2B08390C: push 5 */ 3371 RECOMP_ICALL(esi); /* 0x2B08390E: call esi */ 3372 RECOMP_FLAGS_IN(); 3373 edi = MEM32(0x2B0B5324); /* 0x2B083910: mov edi, dword ptr [0x2b0b5324] */ 3374 ecx = eax; /* 0x2B083916: mov ecx, eax */ 3375 RECOMP_ICALL(edi); /* 0x2B083918: call edi */ 3376 RECOMP_FLAGS_IN(); 3377 PUSH32(esp, 0x2B083AA0u); /* 0x2B08391A: push 0x2b083aa0 */ 3378 PUSH32(esp, 6); /* 0x2B08391F: push 6 */ 3379 RECOMP_ICALL(esi); /* 0x2B083921: call esi */ 3380 RECOMP_FLAGS_IN(); 3381 ecx = eax; /* 0x2B083923: mov ecx, eax */ 3382 RECOMP_ICALL(edi); /* 0x2B083925: call edi */ 3383 RECOMP_FLAGS_IN(); 3384 PUSH32(esp, 0x2B083BB0u); /* 0x2B083927: push 0x2b083bb0 */ 3385 PUSH32(esp, 0xEEu); /* 0x2B08392C: push 0xee */ 3386 RECOMP_ICALL(esi); /* 0x2B083931: call esi */ 3387 RECOMP_FLAGS_IN(); 3388 ecx = eax; /* 0x2B083933: mov ecx, eax */ 3389 RECOMP_ICALL(edi); /* 0x2B083935: call edi */ 3390 RECOMP_FLAGS_IN(); 3391 PUSH32(esp, 0x2B083DB0u); /* 0x2B083937: push 0x2b083db0 */ 3392 PUSH32(esp, 0xEFu); /* 0x2B08393C: push 0xef */ 3393 RECOMP_ICALL(esi); /* 0x2B083941: call esi */ 3394 RECOMP_FLAGS_IN(); 3395 ecx = eax; /* 0x2B083943: mov ecx, eax */ 3396 RECOMP_ICALL(edi); /* 0x2B083945: call edi */ 3397 RECOMP_FLAGS_IN(); 3398 PUSH32(esp, 0x2B083E10u); /* 0x2B083947: push 0x2b083e10 */ 3399 PUSH32(esp, 0xF0u); /* 0x2B08394C: push 0xf0 */ 3400 RECOMP_ICALL(esi); /* 0x2B083951: call esi */ 3401 RECOMP_FLAGS_IN(); 3402 ecx = eax; /* 0x2B083953: mov ecx, eax */ 3403 RECOMP_ICALL(edi); /* 0x2B083955: call edi */ 3404 RECOMP_FLAGS_IN(); 3405 PUSH32(esp, 0x2B083E50u); /* 0x2B083957: push 0x2b083e50 */ 3406 PUSH32(esp, 0xF1u); /* 0x2B08395C: push 0xf1 */ 3407 RECOMP_ICALL(esi); /* 0x2B083961: call esi */ 3408 RECOMP_FLAGS_IN(); 3409 ecx = eax; /* 0x2B083963: mov ecx, eax */ 3410 RECOMP_ICALL(edi); /* 0x2B083965: call edi */ 3411 RECOMP_FLAGS_IN(); 3412 edi = POP32_VAL(esp); /* 0x2B083967: pop edi */ 3413 esi = POP32_VAL(esp); /* 0x2B083968: pop esi */ 3414 eax = ebx; /* 0x2B083969: mov eax, ebx */ 3415 MEM32(0x2B0EF0BC) = 0; /* 0x2B08396B: mov dword ptr [0x2b0ef0bc], 0 */ 3416 ebx = POP32_VAL(esp); /* 0x2B083975: pop ebx */ 3417 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083976: ret */ 3418 RECOMP_REGS_OUT(); 3419 } 3420 3421 void sub_2B083980(void) { 3422 int _fpu_cmp = 0; 3423 uint32_t _cf = 0; 3424 int _df = 1; 3425 uint32_t _flag_k = FK_NONE; 3426 uint32_t _flag_a = 0, _flag_b = 0; 3427 uint32_t _itail_tgt = 0; 3428 RECOMP_REGS_LOCALS 3429 RECOMP_ENTER(0x2B083980u); 3430 3431 L_2B083980: 3432 RECOMP_ICALL(0x2B083AA0u); /* 0x2B083980: call 0x2b083aa0 */ /* not lifted */ 3433 RECOMP_FLAGS_IN(); 3434 MEM32(0x2B0EF0BC) = 0; /* 0x2B083985: mov dword ptr [0x2b0ef0bc], 0 */ 3435 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B08398F: ret */ 3436 RECOMP_REGS_OUT(); 3437 } 3438 3439 void sub_2B083990(void) { 3440 int _fpu_cmp = 0; 3441 uint32_t _cf = 0; 3442 int _df = 1; 3443 uint32_t _flag_k = FK_NONE; 3444 uint32_t _flag_a = 0, _flag_b = 0; 3445 uint32_t _itail_tgt = 0; 3446 RECOMP_REGS_LOCALS 3447 RECOMP_ENTER(0x2B083990u); 3448 3449 L_2B083990: 3450 PUSH32(esp, ebp); /* 0x2B083990: push ebp */ 3451 ebp = esp; /* 0x2B083991: mov ebp, esp */ 3452 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B083993: push -1 */ 3453 PUSH32(esp, 0x2B0B200Bu); /* 0x2B083995: push 0x2b0b200b */ 3454 eax = MEM32(FS_BASE + (0)); /* 0x2B08399A: mov eax, dword ptr fs:[0] */ 3455 PUSH32(esp, eax); /* 0x2B0839A0: push eax */ 3456 MEM32(FS_BASE + (0)) = esp; /* 0x2B0839A1: mov dword ptr fs:[0], esp */ 3457 PUSH32(esp, ecx); /* 0x2B0839A8: push ecx */ 3458 eax = MEM32(0x2B0EF0B8); /* 0x2B0839A9: mov eax, dword ptr [0x2b0ef0b8] */ 3459 /* test eax, eax */ /* 0x2B0839AE: test eax, eax */ 3460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3461 _cf = 0; 3462 _flag_k = FK_TEST; 3463 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0839EB; /* 0x2B0839B0: jne 0x2b0839eb */ 3464 L_2B0839B2: 3465 PUSH32(esp, 1); /* 0x2B0839B2: push 1 */ 3466 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0839B4: call 0x2b0ab212 */ /* not lifted */ 3467 RECOMP_FLAGS_IN(); 3468 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3469 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3470 esp = esp + 4; /* 0x2B0839B9: add esp, 4 */ 3471 _flag_k = FK_ADD; 3472 MEM32(ebp + (-0x10)) = eax; /* 0x2B0839BC: mov dword ptr [ebp - 0x10], eax */ 3473 /* test eax, eax */ /* 0x2B0839BF: test eax, eax */ 3474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3475 _cf = 0; 3476 _flag_k = FK_TEST; 3477 MEM32(ebp + (-0x4)) = 0; /* 0x2B0839C1: mov dword ptr [ebp - 4], 0 */ 3478 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0839E4; /* 0x2B0839C8: je 0x2b0839e4 */ 3479 L_2B0839CA: 3480 ecx = eax; /* 0x2B0839CA: mov ecx, eax */ 3481 RECOMP_ICALL(0x2B0838D0u); /* 0x2B0839CC: call 0x2b0838d0 */ /* not lifted */ 3482 RECOMP_FLAGS_IN(); 3483 MEM32(0x2B0EF0B8) = eax; /* 0x2B0839D1: mov dword ptr [0x2b0ef0b8], eax */ 3484 ecx = MEM32(ebp + (-0xC)); /* 0x2B0839D6: mov ecx, dword ptr [ebp - 0xc] */ 3485 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0839D9: mov dword ptr fs:[0], ecx */ 3486 esp = ebp; /* 0x2B0839E0: mov esp, ebp */ 3487 ebp = POP32_VAL(esp); /* 0x2B0839E2: pop ebp */ 3488 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0839E3: ret */ 3489 L_2B0839E4: 3490 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3491 eax = 0; /* 0x2B0839E4: xor eax, eax */ 3492 _cf = 0; 3493 _flag_k = FK_TEST; 3494 MEM32(0x2B0EF0B8) = eax; /* 0x2B0839E6: mov dword ptr [0x2b0ef0b8], eax */ 3495 L_2B0839EB: 3496 ecx = MEM32(ebp + (-0xC)); /* 0x2B0839EB: mov ecx, dword ptr [ebp - 0xc] */ 3497 MEM32(FS_BASE + (0)) = ecx; /* 0x2B0839EE: mov dword ptr fs:[0], ecx */ 3498 esp = ebp; /* 0x2B0839F5: mov esp, ebp */ 3499 ebp = POP32_VAL(esp); /* 0x2B0839F7: pop ebp */ 3500 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0839F8: ret */ 3501 RECOMP_REGS_OUT(); 3502 } 3503 3504 void sub_2B083A00(void) { 3505 int _fpu_cmp = 0; 3506 uint32_t _cf = 0; 3507 int _df = 1; 3508 uint32_t _flag_k = FK_NONE; 3509 uint32_t _flag_a = 0, _flag_b = 0; 3510 uint32_t _itail_tgt = 0; 3511 RECOMP_REGS_LOCALS 3512 RECOMP_ENTER(0x2B083A00u); 3513 3514 L_2B083A00: 3515 eax = MEM32(0x2B0EF0B8); /* 0x2B083A00: mov eax, dword ptr [0x2b0ef0b8] */ 3516 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083A05: ret */ 3517 RECOMP_REGS_OUT(); 3518 } 3519 3520 void sub_2B083A10(void) { 3521 int _fpu_cmp = 0; 3522 uint32_t _cf = 0; 3523 int _df = 1; 3524 uint32_t _flag_k = FK_NONE; 3525 uint32_t _flag_a = 0, _flag_b = 0; 3526 uint32_t _itail_tgt = 0; 3527 RECOMP_REGS_LOCALS 3528 RECOMP_ENTER(0x2B083A10u); 3529 3530 L_2B083A10: 3531 PUSH32(esp, ebp); /* 0x2B083A10: push ebp */ 3532 ebp = esp; /* 0x2B083A11: mov ebp, esp */ 3533 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B083A13: push -1 */ 3534 PUSH32(esp, 0x2B0B202Bu); /* 0x2B083A15: push 0x2b0b202b */ 3535 eax = MEM32(FS_BASE + (0)); /* 0x2B083A1A: mov eax, dword ptr fs:[0] */ 3536 PUSH32(esp, eax); /* 0x2B083A20: push eax */ 3537 MEM32(FS_BASE + (0)) = esp; /* 0x2B083A21: mov dword ptr fs:[0], esp */ 3538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3540 esp = esp - 8; /* 0x2B083A28: sub esp, 8 */ 3541 _flag_k = FK_CMP; 3542 PUSH32(esp, esi); /* 0x2B083A2B: push esi */ 3543 PUSH32(esp, 0xCu); /* 0x2B083A2C: push 0xc */ 3544 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083A2E: call 0x2b0ab212 */ /* not lifted */ 3545 RECOMP_FLAGS_IN(); 3546 esi = eax; /* 0x2B083A33: mov esi, eax */ 3547 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3549 esp = esp + 4; /* 0x2B083A35: add esp, 4 */ 3550 _flag_k = FK_ADD; 3551 MEM32(ebp + (-0x14)) = esi; /* 0x2B083A38: mov dword ptr [ebp - 0x14], esi */ 3552 /* test esi, esi */ /* 0x2B083A3B: test esi, esi */ 3553 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3554 _cf = 0; 3555 _flag_k = FK_TEST; 3556 MEM32(ebp + (-0x4)) = 0; /* 0x2B083A3D: mov dword ptr [ebp - 4], 0 */ 3557 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083A66; /* 0x2B083A44: je 0x2b083a66 */ 3558 L_2B083A46: 3559 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2B083A46: mov al, byte ptr [ebp - 0xd] */ 3560 PUSH32(esp, 0xCu); /* 0x2B083A49: push 0xc */ 3561 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x2B083A4B: mov byte ptr [esi], al */ 3562 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083A4D: call 0x2b0ab212 */ /* not lifted */ 3563 RECOMP_FLAGS_IN(); 3564 MEM32(eax) = eax; /* 0x2B083A52: mov dword ptr [eax], eax */ 3565 MEM32(eax + 0x4) = eax; /* 0x2B083A54: mov dword ptr [eax + 4], eax */ 3566 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3567 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3568 esp = esp + 4; /* 0x2B083A57: add esp, 4 */ 3569 _flag_k = FK_ADD; 3570 MEM32(esi + 0x4) = eax; /* 0x2B083A5A: mov dword ptr [esi + 4], eax */ 3571 MEM32(esi + 0x8) = 0; /* 0x2B083A5D: mov dword ptr [esi + 8], 0 */ 3572 goto L_2B083A68; /* 0x2B083A64: jmp 0x2b083a68 */ 3573 L_2B083A66: 3574 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3575 esi = 0; /* 0x2B083A66: xor esi, esi */ 3576 _cf = 0; 3577 _flag_k = FK_TEST; 3578 L_2B083A68: 3579 ecx = 0x01010101u; /* 0x2B083A68: mov ecx, 0x1010101 */ 3580 MEM32(0x2B0EF0A8) = ecx; /* 0x2B083A6D: mov dword ptr [0x2b0ef0a8], ecx */ 3581 MEM32(0x2B0EF0AC) = ecx; /* 0x2B083A73: mov dword ptr [0x2b0ef0ac], ecx */ 3582 MEM16(0x2B0EF0B0) = (uint16_t)(LO16(ecx)); /* 0x2B083A79: mov word ptr [0x2b0ef0b0], cx */ 3583 ecx = MEM32(ebp + (-0xC)); /* 0x2B083A80: mov ecx, dword ptr [ebp - 0xc] */ 3584 MEM32(0x2B0EF0B4) = esi; /* 0x2B083A83: mov dword ptr [0x2b0ef0b4], esi */ 3585 esi = POP32_VAL(esp); /* 0x2B083A89: pop esi */ 3586 MEM32(FS_BASE + (0)) = ecx; /* 0x2B083A8A: mov dword ptr fs:[0], ecx */ 3587 esp = ebp; /* 0x2B083A91: mov esp, ebp */ 3588 ebp = POP32_VAL(esp); /* 0x2B083A93: pop ebp */ 3589 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083A94: ret */ 3590 RECOMP_REGS_OUT(); 3591 } 3592 3593 void sub_2B083AA0(void) { 3594 int _fpu_cmp = 0; 3595 uint32_t _cf = 0; 3596 int _df = 1; 3597 uint32_t _flag_k = FK_NONE; 3598 uint32_t _flag_a = 0, _flag_b = 0; 3599 uint32_t _itail_tgt = 0; 3600 RECOMP_REGS_LOCALS 3601 RECOMP_ENTER(0x2B083AA0u); 3602 3603 L_2B083AA0: 3604 PUSH32(esp, esi); /* 0x2B083AA0: push esi */ 3605 PUSH32(esp, edi); /* 0x2B083AA1: push edi */ 3606 edi = MEM32(0x2B0EF0B4); /* 0x2B083AA2: mov edi, dword ptr [0x2b0ef0b4] */ 3607 /* test edi, edi */ /* 0x2B083AA8: test edi, edi */ 3608 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3609 _cf = 0; 3610 _flag_k = FK_TEST; 3611 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083B39; /* 0x2B083AAA: je 0x2b083b39 */ 3612 L_2B083AB0: 3613 eax = MEM32(edi + 0x8); /* 0x2B083AB0: mov eax, dword ptr [edi + 8] */ 3614 /* test eax, eax */ /* 0x2B083AB3: test eax, eax */ 3615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3616 _cf = 0; 3617 _flag_k = FK_TEST; 3618 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083AE0; /* 0x2B083AB5: je 0x2b083ae0 */ 3619 L_2B083AB7: 3620 eax = MEM32(edi + 0x4); /* 0x2B083AB7: mov eax, dword ptr [edi + 4] */ 3621 eax = MEM32(eax); /* 0x2B083ABA: mov eax, dword ptr [eax] */ 3622 esi = MEM32(eax + 0x8); /* 0x2B083ABC: mov esi, dword ptr [eax + 8] */ 3623 /* test esi, esi */ /* 0x2B083ABF: test esi, esi */ 3624 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3625 _cf = 0; 3626 _flag_k = FK_TEST; 3627 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083AD9; /* 0x2B083AC1: je 0x2b083ad9 */ 3628 L_2B083AC3: 3629 ecx = esi; /* 0x2B083AC3: mov ecx, esi */ 3630 RECOMP_ICALL(0x2B083710u); /* 0x2B083AC5: call 0x2b083710 */ /* not lifted */ 3631 RECOMP_FLAGS_IN(); 3632 PUSH32(esp, esi); /* 0x2B083ACA: push esi */ 3633 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B083ACB: call 0x2b0ab1ba */ /* not lifted */ 3634 RECOMP_FLAGS_IN(); 3635 edi = MEM32(0x2B0EF0B4); /* 0x2B083AD0: mov edi, dword ptr [0x2b0ef0b4] */ 3636 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3638 esp = esp + 4; /* 0x2B083AD6: add esp, 4 */ 3639 _flag_k = FK_ADD; 3640 L_2B083AD9: 3641 eax = MEM32(edi + 0x8); /* 0x2B083AD9: mov eax, dword ptr [edi + 8] */ 3642 /* test eax, eax */ /* 0x2B083ADC: test eax, eax */ 3643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3644 _cf = 0; 3645 _flag_k = FK_TEST; 3646 RECOMP_BACKEDGE(); 3647 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083AB7; /* 0x2B083ADE: jne 0x2b083ab7 */ 3648 L_2B083AE0: 3649 /* test edi, edi */ /* 0x2B083AE0: test edi, edi */ 3650 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3651 _cf = 0; 3652 _flag_k = FK_TEST; 3653 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083B39; /* 0x2B083AE2: je 0x2b083b39 */ 3654 L_2B083AE4: 3655 PUSH32(esp, ebx); /* 0x2B083AE4: push ebx */ 3656 ebx = MEM32(edi + 0x4); /* 0x2B083AE5: mov ebx, dword ptr [edi + 4] */ 3657 esi = MEM32(ebx); /* 0x2B083AE8: mov esi, dword ptr [ebx] */ 3658 /* cmp esi, ebx */ /* 0x2B083AEA: cmp esi, ebx */ 3659 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3661 _flag_k = FK_CMP; 3662 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083B15; /* 0x2B083AEC: je 0x2b083b15 */ 3663 L_2B083AEE: 3664 eax = esi; /* 0x2B083AEE: mov eax, esi */ 3665 ecx = MEM32(eax + 0x4); /* 0x2B083AF0: mov ecx, dword ptr [eax + 4] */ 3666 edx = MEM32(eax); /* 0x2B083AF3: mov edx, dword ptr [eax] */ 3667 esi = MEM32(esi); /* 0x2B083AF5: mov esi, dword ptr [esi] */ 3668 MEM32(ecx) = edx; /* 0x2B083AF7: mov dword ptr [ecx], edx */ 3669 ecx = MEM32(eax); /* 0x2B083AF9: mov ecx, dword ptr [eax] */ 3670 edx = MEM32(eax + 0x4); /* 0x2B083AFB: mov edx, dword ptr [eax + 4] */ 3671 PUSH32(esp, eax); /* 0x2B083AFE: push eax */ 3672 MEM32(ecx + 0x4) = edx; /* 0x2B083AFF: mov dword ptr [ecx + 4], edx */ 3673 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B083B02: call 0x2b0ab1ba */ /* not lifted */ 3674 RECOMP_FLAGS_IN(); 3675 ecx = MEM32(edi + 0x8); /* 0x2B083B07: mov ecx, dword ptr [edi + 8] */ 3676 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3678 esp = esp + 4; /* 0x2B083B0A: add esp, 4 */ 3679 _flag_k = FK_ADD; 3680 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3681 ecx = ecx - 1; /* 0x2B083B0D: dec ecx */ 3682 _flag_k = FK_DEC; 3683 /* cmp esi, ebx */ /* 0x2B083B0E: cmp esi, ebx */ 3684 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3686 _flag_k = FK_CMP; 3687 MEM32(edi + 0x8) = ecx; /* 0x2B083B10: mov dword ptr [edi + 8], ecx */ 3688 RECOMP_BACKEDGE(); 3689 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083AEE; /* 0x2B083B13: jne 0x2b083aee */ 3690 L_2B083B15: 3691 eax = MEM32(edi + 0x4); /* 0x2B083B15: mov eax, dword ptr [edi + 4] */ 3692 PUSH32(esp, eax); /* 0x2B083B18: push eax */ 3693 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B083B19: call 0x2b0ab1ba */ /* not lifted */ 3694 RECOMP_FLAGS_IN(); 3695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3696 esi = 0; /* 0x2B083B1E: xor esi, esi */ 3697 _cf = 0; 3698 _flag_k = FK_TEST; 3699 PUSH32(esp, edi); /* 0x2B083B20: push edi */ 3700 MEM32(edi + 0x4) = esi; /* 0x2B083B21: mov dword ptr [edi + 4], esi */ 3701 MEM32(edi + 0x8) = esi; /* 0x2B083B24: mov dword ptr [edi + 8], esi */ 3702 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B083B27: call 0x2b0ab1ba */ /* not lifted */ 3703 RECOMP_FLAGS_IN(); 3704 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3706 esp = esp + 8; /* 0x2B083B2C: add esp, 8 */ 3707 _flag_k = FK_ADD; 3708 ebx = POP32_VAL(esp); /* 0x2B083B2F: pop ebx */ 3709 edi = POP32_VAL(esp); /* 0x2B083B30: pop edi */ 3710 MEM32(0x2B0EF0B4) = esi; /* 0x2B083B31: mov dword ptr [0x2b0ef0b4], esi */ 3711 esi = POP32_VAL(esp); /* 0x2B083B37: pop esi */ 3712 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083B38: ret */ 3713 L_2B083B39: 3714 edi = POP32_VAL(esp); /* 0x2B083B39: pop edi */ 3715 MEM32(0x2B0EF0B4) = 0; /* 0x2B083B3A: mov dword ptr [0x2b0ef0b4], 0 */ 3716 esi = POP32_VAL(esp); /* 0x2B083B44: pop esi */ 3717 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083B45: ret */ 3718 RECOMP_REGS_OUT(); 3719 } 3720 3721 void sub_2B083B50(void) { 3722 int _fpu_cmp = 0; 3723 uint32_t _cf = 0; 3724 int _df = 1; 3725 uint32_t _flag_k = FK_NONE; 3726 uint32_t _flag_a = 0, _flag_b = 0; 3727 uint32_t _itail_tgt = 0; 3728 RECOMP_REGS_LOCALS 3729 RECOMP_ENTER(0x2B083B50u); 3730 3731 L_2B083B50: 3732 PUSH32(esp, ebp); /* 0x2B083B50: push ebp */ 3733 ebp = esp; /* 0x2B083B51: mov ebp, esp */ 3734 PUSH32(esp, ecx); /* 0x2B083B53: push ecx */ 3735 PUSH32(esp, esi); /* 0x2B083B54: push esi */ 3736 RECOMP_ICALL(MEM32(0x2B0B53BC)); /* 0x2B083B55: call dword ptr [0x2b0b53bc] */ 3737 RECOMP_FLAGS_IN(); 3738 eax = MEM32(eax + 0x14); /* 0x2B083B5B: mov eax, dword ptr [eax + 0x14] */ 3739 ecx = MEM32(eax); /* 0x2B083B5E: mov ecx, dword ptr [eax] */ 3740 edx = MEM32(0x2B0EF0B4); /* 0x2B083B60: mov edx, dword ptr [0x2b0ef0b4] */ 3741 eax = MEM32(edx + 0x4); /* 0x2B083B66: mov eax, dword ptr [edx + 4] */ 3742 esi = MEM32(eax); /* 0x2B083B69: mov esi, dword ptr [eax] */ 3743 /* cmp esi, eax */ /* 0x2B083B6B: cmp esi, eax */ 3744 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3746 _flag_k = FK_CMP; 3747 MEM32(ebp + (-0x4)) = ecx; /* 0x2B083B6D: mov dword ptr [ebp - 4], ecx */ 3748 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083BA7; /* 0x2B083B70: je 0x2b083ba7 */ 3749 L_2B083B72: 3750 PUSH32(esp, ebx); /* 0x2B083B72: push ebx */ 3751 PUSH32(esp, edi); /* 0x2B083B73: push edi */ 3752 ebx = ecx; /* 0x2B083B74: mov ebx, ecx */ 3753 L_2B083B76: 3754 edi = MEM32(esi + 0x8); /* 0x2B083B76: mov edi, dword ptr [esi + 8] */ 3755 esi = MEM32(esi); /* 0x2B083B79: mov esi, dword ptr [esi] */ 3756 PUSH32(esp, ebx); /* 0x2B083B7B: push ebx */ 3757 ecx = edi; /* 0x2B083B7C: mov ecx, edi */ 3758 RECOMP_ICALL(0x2B0837A0u); /* 0x2B083B7E: call 0x2b0837a0 */ /* not lifted */ 3759 RECOMP_FLAGS_IN(); 3760 /* test LO8(eax), LO8(eax) */ /* 0x2B083B83: test al, al */ 3761 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3762 _cf = 0; 3763 _flag_k = FK_NARROW(FK_TEST, 24); 3764 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083B9B; /* 0x2B083B85: je 0x2b083b9b */ 3765 L_2B083B87: 3766 /* test edi, edi */ /* 0x2B083B87: test edi, edi */ 3767 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3768 _cf = 0; 3769 _flag_k = FK_TEST; 3770 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083B9B; /* 0x2B083B89: je 0x2b083b9b */ 3771 L_2B083B8B: 3772 ecx = edi; /* 0x2B083B8B: mov ecx, edi */ 3773 RECOMP_ICALL(0x2B083710u); /* 0x2B083B8D: call 0x2b083710 */ /* not lifted */ 3774 RECOMP_FLAGS_IN(); 3775 PUSH32(esp, edi); /* 0x2B083B92: push edi */ 3776 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B083B93: call 0x2b0ab1ba */ /* not lifted */ 3777 RECOMP_FLAGS_IN(); 3778 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3779 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3780 esp = esp + 4; /* 0x2B083B98: add esp, 4 */ 3781 _flag_k = FK_ADD; 3782 L_2B083B9B: 3783 eax = MEM32(0x2B0EF0B4); /* 0x2B083B9B: mov eax, dword ptr [0x2b0ef0b4] */ 3784 /* cmp esi, MEM32(eax + 0x4) */ /* 0x2B083BA0: cmp esi, dword ptr [eax + 4] */ 3785 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 3786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3787 _flag_k = FK_CMP; 3788 RECOMP_BACKEDGE(); 3789 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083B76; /* 0x2B083BA3: jne 0x2b083b76 */ 3790 L_2B083BA5: 3791 edi = POP32_VAL(esp); /* 0x2B083BA5: pop edi */ 3792 ebx = POP32_VAL(esp); /* 0x2B083BA6: pop ebx */ 3793 L_2B083BA7: 3794 esi = POP32_VAL(esp); /* 0x2B083BA7: pop esi */ 3795 esp = ebp; /* 0x2B083BA8: mov esp, ebp */ 3796 ebp = POP32_VAL(esp); /* 0x2B083BAA: pop ebp */ 3797 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083BAB: ret */ 3798 RECOMP_REGS_OUT(); 3799 } 3800 3801 void sub_2B083BB0(void) { 3802 int _fpu_cmp = 0; 3803 uint32_t _cf = 0; 3804 int _df = 1; 3805 uint32_t _flag_k = FK_NONE; 3806 uint32_t _flag_a = 0, _flag_b = 0; 3807 uint32_t _itail_tgt = 0; 3808 RECOMP_REGS_LOCALS 3809 RECOMP_ENTER(0x2B083BB0u); 3810 3811 L_2B083BB0: 3812 PUSH32(esp, ebp); /* 0x2B083BB0: push ebp */ 3813 ebp = esp; /* 0x2B083BB1: mov ebp, esp */ 3814 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B083BB3: push -1 */ 3815 PUSH32(esp, 0x2B0B2077u); /* 0x2B083BB5: push 0x2b0b2077 */ 3816 eax = MEM32(FS_BASE + (0)); /* 0x2B083BBA: mov eax, dword ptr fs:[0] */ 3817 PUSH32(esp, eax); /* 0x2B083BC0: push eax */ 3818 MEM32(FS_BASE + (0)) = esp; /* 0x2B083BC1: mov dword ptr fs:[0], esp */ 3819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3821 esp = esp - 0x14u; /* 0x2B083BC8: sub esp, 0x14 */ 3822 _flag_k = FK_CMP; 3823 PUSH32(esp, esi); /* 0x2B083BCB: push esi */ 3824 esi = MEM32(0x2B0B53CC); /* 0x2B083BCC: mov esi, dword ptr [0x2b0b53cc] */ 3825 eax = ebp + (-0x20); /* 0x2B083BD2: lea eax, [ebp - 0x20] */ 3826 PUSH32(esp, eax); /* 0x2B083BD5: push eax */ 3827 MEM32(ebp + (-0x20)) = 0; /* 0x2B083BD6: mov dword ptr [ebp - 0x20], 0 */ 3828 MEM32(ebp + (-0x1C)) = 0; /* 0x2B083BDD: mov dword ptr [ebp - 0x1c], 0 */ 3829 RECOMP_ICALL(esi); /* 0x2B083BE4: call esi */ 3830 RECOMP_FLAGS_IN(); 3831 ecx = eax; /* 0x2B083BE6: mov ecx, eax */ 3832 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B083BE8: call dword ptr [0x2b0b53ac] */ 3833 RECOMP_FLAGS_IN(); 3834 ecx = ebp + (-0x14); /* 0x2B083BEE: lea ecx, [ebp - 0x14] */ 3835 PUSH32(esp, ecx); /* 0x2B083BF1: push ecx */ 3836 RECOMP_ICALL(esi); /* 0x2B083BF2: call esi */ 3837 RECOMP_FLAGS_IN(); 3838 ecx = eax; /* 0x2B083BF4: mov ecx, eax */ 3839 RECOMP_ICALL(MEM32(0x2B0B5370)); /* 0x2B083BF6: call dword ptr [0x2b0b5370] */ 3840 RECOMP_FLAGS_IN(); 3841 edx = ebp + (-0x10); /* 0x2B083BFC: lea edx, [ebp - 0x10] */ 3842 PUSH32(esp, edx); /* 0x2B083BFF: push edx */ 3843 RECOMP_ICALL(esi); /* 0x2B083C00: call esi */ 3844 RECOMP_FLAGS_IN(); 3845 ecx = eax; /* 0x2B083C02: mov ecx, eax */ 3846 RECOMP_ICALL(MEM32(0x2B0B53A8)); /* 0x2B083C04: call dword ptr [0x2b0b53a8] */ 3847 RECOMP_FLAGS_IN(); 3848 eax = ebp + (-0x20); /* 0x2B083C0A: lea eax, [ebp - 0x20] */ 3849 PUSH32(esp, eax); /* 0x2B083C0D: push eax */ 3850 RECOMP_ICALL(0x2B083860u); /* 0x2B083C0E: call 0x2b083860 */ /* not lifted */ 3851 RECOMP_FLAGS_IN(); 3852 ecx = eax; /* 0x2B083C13: mov ecx, eax */ 3853 eax = MEM32(ebp + (-0x20)); /* 0x2B083C15: mov eax, dword ptr [ebp - 0x20] */ 3854 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3855 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3856 esp = esp + 4; /* 0x2B083C18: add esp, 4 */ 3857 _flag_k = FK_ADD; 3858 /* cmp eax, 1 */ /* 0x2B083C1B: cmp eax, 1 */ 3859 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3861 _flag_k = FK_CMP; 3862 esi = POP32_VAL(esp); /* 0x2B083C1E: pop esi */ 3863 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083C7F; /* 0x2B083C1F: jne 0x2b083c7f */ 3864 L_2B083C21: 3865 /* test ecx, ecx */ /* 0x2B083C21: test ecx, ecx */ 3866 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3867 _cf = 0; 3868 _flag_k = FK_TEST; 3869 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083C6F; /* 0x2B083C23: jne 0x2b083c6f */ 3870 L_2B083C25: 3871 PUSH32(esp, 0x28u); /* 0x2B083C25: push 0x28 */ 3872 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083C27: call 0x2b0ab212 */ /* not lifted */ 3873 RECOMP_FLAGS_IN(); 3874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3876 esp = esp + 4; /* 0x2B083C2C: add esp, 4 */ 3877 _flag_k = FK_ADD; 3878 MEM32(ebp + (-0x18)) = eax; /* 0x2B083C2F: mov dword ptr [ebp - 0x18], eax */ 3879 /* test eax, eax */ /* 0x2B083C32: test eax, eax */ 3880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3881 _cf = 0; 3882 _flag_k = FK_TEST; 3883 MEM32(ebp + (-0x4)) = 0; /* 0x2B083C34: mov dword ptr [ebp - 4], 0 */ 3884 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083C6B; /* 0x2B083C3B: je 0x2b083c6b */ 3885 L_2B083C3D: 3886 PUSH32(esp, 0x00AAFFAAu); /* 0x2B083C3D: push 0xaaffaa */ 3887 PUSH32(esp, 0); /* 0x2B083C42: push 0 */ 3888 PUSH32(esp, 0x2B0ECB98u); /* 0x2B083C44: push 0x2b0ecb98 */ 3889 L_2B083C49: 3890 ecx = ebp + (-0x20); /* 0x2B083C49: lea ecx, [ebp - 0x20] */ 3891 PUSH32(esp, ecx); /* 0x2B083C4C: push ecx */ 3892 PUSH32(esp, 0x1B58u); /* 0x2B083C4D: push 0x1b58 */ 3893 ecx = eax; /* 0x2B083C52: mov ecx, eax */ 3894 RECOMP_ICALL(0x2B0834D0u); /* 0x2B083C54: call 0x2b0834d0 */ /* not lifted */ 3895 RECOMP_FLAGS_IN(); 3896 ecx = eax; /* 0x2B083C59: mov ecx, eax */ 3897 eax = MEM32(ebp + (-0x10)); /* 0x2B083C5B: mov eax, dword ptr [ebp - 0x10] */ 3898 /* test eax, eax */ /* 0x2B083C5E: test eax, eax */ 3899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3900 _cf = 0; 3901 _flag_k = FK_TEST; 3902 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B083C60: sete dl */ 3903 MEM8(ecx + 0x15) = (uint8_t)(LO8(edx)); /* 0x2B083C63: mov byte ptr [ecx + 0x15], dl */ 3904 goto L_2B083D69; /* 0x2B083C66: jmp 0x2b083d69 */ 3905 L_2B083C6B: 3906 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3907 eax = 0; /* 0x2B083C6B: xor eax, eax */ 3908 _cf = 0; 3909 _flag_k = FK_TEST; 3910 ecx = eax; /* 0x2B083C6D: mov ecx, eax */ 3911 L_2B083C6F: 3912 eax = MEM32(ebp + (-0x10)); /* 0x2B083C6F: mov eax, dword ptr [ebp - 0x10] */ 3913 /* test eax, eax */ /* 0x2B083C72: test eax, eax */ 3914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3915 _cf = 0; 3916 _flag_k = FK_TEST; 3917 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B083C74: sete dl */ 3918 MEM8(ecx + 0x15) = (uint8_t)(LO8(edx)); /* 0x2B083C77: mov byte ptr [ecx + 0x15], dl */ 3919 goto L_2B083D69; /* 0x2B083C7A: jmp 0x2b083d69 */ 3920 L_2B083C7F: 3921 /* cmp eax, 2 */ /* 0x2B083C7F: cmp eax, 2 */ 3922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3924 _flag_k = FK_CMP; 3925 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083CAE; /* 0x2B083C82: jne 0x2b083cae */ 3926 L_2B083C84: 3927 /* test ecx, ecx */ /* 0x2B083C84: test ecx, ecx */ 3928 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3929 _cf = 0; 3930 _flag_k = FK_TEST; 3931 RECOMP_BACKEDGE(); 3932 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083C6F; /* 0x2B083C86: jne 0x2b083c6f */ 3933 L_2B083C88: 3934 PUSH32(esp, 0x28u); /* 0x2B083C88: push 0x28 */ 3935 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083C8A: call 0x2b0ab212 */ /* not lifted */ 3936 RECOMP_FLAGS_IN(); 3937 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3939 esp = esp + 4; /* 0x2B083C8F: add esp, 4 */ 3940 _flag_k = FK_ADD; 3941 MEM32(ebp + (-0x18)) = eax; /* 0x2B083C92: mov dword ptr [ebp - 0x18], eax */ 3942 /* test eax, eax */ /* 0x2B083C95: test eax, eax */ 3943 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3944 _cf = 0; 3945 _flag_k = FK_TEST; 3946 MEM32(ebp + (-0x4)) = 1; /* 0x2B083C97: mov dword ptr [ebp - 4], 1 */ 3947 RECOMP_BACKEDGE(); 3948 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083C6B; /* 0x2B083C9E: je 0x2b083c6b */ 3949 L_2B083CA0: 3950 PUSH32(esp, 0x00AAFFFFu); /* 0x2B083CA0: push 0xaaffff */ 3951 PUSH32(esp, 0); /* 0x2B083CA5: push 0 */ 3952 PUSH32(esp, 0x2B0ECB90u); /* 0x2B083CA7: push 0x2b0ecb90 */ 3953 RECOMP_BACKEDGE(); 3954 goto L_2B083C49; /* 0x2B083CAC: jmp 0x2b083c49 */ 3955 L_2B083CAE: 3956 /* cmp eax, 3 */ /* 0x2B083CAE: cmp eax, 3 */ 3957 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 3958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3959 _flag_k = FK_CMP; 3960 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083CE0; /* 0x2B083CB1: jne 0x2b083ce0 */ 3961 L_2B083CB3: 3962 /* test ecx, ecx */ /* 0x2B083CB3: test ecx, ecx */ 3963 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3964 _cf = 0; 3965 _flag_k = FK_TEST; 3966 RECOMP_BACKEDGE(); 3967 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083C6F; /* 0x2B083CB5: jne 0x2b083c6f */ 3968 L_2B083CB7: 3969 PUSH32(esp, 0x28u); /* 0x2B083CB7: push 0x28 */ 3970 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083CB9: call 0x2b0ab212 */ /* not lifted */ 3971 RECOMP_FLAGS_IN(); 3972 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3974 esp = esp + 4; /* 0x2B083CBE: add esp, 4 */ 3975 _flag_k = FK_ADD; 3976 MEM32(ebp + (-0x18)) = eax; /* 0x2B083CC1: mov dword ptr [ebp - 0x18], eax */ 3977 /* test eax, eax */ /* 0x2B083CC4: test eax, eax */ 3978 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3979 _cf = 0; 3980 _flag_k = FK_TEST; 3981 MEM32(ebp + (-0x4)) = 2; /* 0x2B083CC6: mov dword ptr [ebp - 4], 2 */ 3982 RECOMP_BACKEDGE(); 3983 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083C6B; /* 0x2B083CCD: je 0x2b083c6b */ 3984 L_2B083CCF: 3985 PUSH32(esp, 0x00FFAAAAu); /* 0x2B083CCF: push 0xffaaaa */ 3986 PUSH32(esp, 0); /* 0x2B083CD4: push 0 */ 3987 PUSH32(esp, 0x2B0ECB84u); /* 0x2B083CD6: push 0x2b0ecb84 */ 3988 RECOMP_BACKEDGE(); 3989 goto L_2B083C49; /* 0x2B083CDB: jmp 0x2b083c49 */ 3990 L_2B083CE0: 3991 /* cmp eax, 4 */ /* 0x2B083CE0: cmp eax, 4 */ 3992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3994 _flag_k = FK_CMP; 3995 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083D2E; /* 0x2B083CE3: jne 0x2b083d2e */ 3996 L_2B083CE5: 3997 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2B083CE5: fld dword ptr [ebp - 0x14] */ 3998 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B6548)); /* 0x2B083CE8: fcomp dword ptr [0x2b0b6548] */ 3999 fp_pop(); 4000 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B083CEE: fnstsw ax */ 4001 /* test HI8(eax), 1 */ /* 0x2B083CF0: test ah, 1 */ 4002 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4003 _cf = 0; 4004 _flag_k = FK_NARROW(FK_TEST, 24); 4005 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083D9B; /* 0x2B083CF3: jne 0x2b083d9b */ 4006 L_2B083CF9: 4007 /* test ecx, ecx */ /* 0x2B083CF9: test ecx, ecx */ 4008 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4009 _cf = 0; 4010 _flag_k = FK_TEST; 4011 RECOMP_BACKEDGE(); 4012 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083C6F; /* 0x2B083CFB: jne 0x2b083c6f */ 4013 L_2B083D01: 4014 PUSH32(esp, 0x28u); /* 0x2B083D01: push 0x28 */ 4015 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083D03: call 0x2b0ab212 */ /* not lifted */ 4016 RECOMP_FLAGS_IN(); 4017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4019 esp = esp + 4; /* 0x2B083D08: add esp, 4 */ 4020 _flag_k = FK_ADD; 4021 MEM32(ebp + (-0x18)) = eax; /* 0x2B083D0B: mov dword ptr [ebp - 0x18], eax */ 4022 /* test eax, eax */ /* 0x2B083D0E: test eax, eax */ 4023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4024 _cf = 0; 4025 _flag_k = FK_TEST; 4026 MEM32(ebp + (-0x4)) = 3; /* 0x2B083D10: mov dword ptr [ebp - 4], 3 */ 4027 RECOMP_BACKEDGE(); 4028 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083C6B; /* 0x2B083D17: je 0x2b083c6b */ 4029 L_2B083D1D: 4030 PUSH32(esp, 0x00AAAAFFu); /* 0x2B083D1D: push 0xaaaaff */ 4031 PUSH32(esp, 0); /* 0x2B083D22: push 0 */ 4032 PUSH32(esp, 0x2B0ECB7Cu); /* 0x2B083D24: push 0x2b0ecb7c */ 4033 RECOMP_BACKEDGE(); 4034 goto L_2B083C49; /* 0x2B083D29: jmp 0x2b083c49 */ 4035 L_2B083D2E: 4036 /* test ecx, ecx */ /* 0x2B083D2E: test ecx, ecx */ 4037 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4038 _cf = 0; 4039 _flag_k = FK_TEST; 4040 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083D69; /* 0x2B083D30: jne 0x2b083d69 */ 4041 L_2B083D32: 4042 PUSH32(esp, 0x28u); /* 0x2B083D32: push 0x28 */ 4043 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083D34: call 0x2b0ab212 */ /* not lifted */ 4044 RECOMP_FLAGS_IN(); 4045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4046 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4047 esp = esp + 4; /* 0x2B083D39: add esp, 4 */ 4048 _flag_k = FK_ADD; 4049 MEM32(ebp + (-0x18)) = eax; /* 0x2B083D3C: mov dword ptr [ebp - 0x18], eax */ 4050 /* test eax, eax */ /* 0x2B083D3F: test eax, eax */ 4051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4052 _cf = 0; 4053 _flag_k = FK_TEST; 4054 MEM32(ebp + (-0x4)) = 4; /* 0x2B083D41: mov dword ptr [ebp - 4], 4 */ 4055 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083D65; /* 0x2B083D48: je 0x2b083d65 */ 4056 L_2B083D4A: 4057 PUSH32(esp, 0x00FFFFFFu); /* 0x2B083D4A: push 0xffffff */ 4058 PUSH32(esp, 1); /* 0x2B083D4F: push 1 */ 4059 PUSH32(esp, 0); /* 0x2B083D51: push 0 */ 4060 ecx = ebp + (-0x20); /* 0x2B083D53: lea ecx, [ebp - 0x20] */ 4061 PUSH32(esp, ecx); /* 0x2B083D56: push ecx */ 4062 PUSH32(esp, 0x1B58u); /* 0x2B083D57: push 0x1b58 */ 4063 ecx = eax; /* 0x2B083D5C: mov ecx, eax */ 4064 RECOMP_ICALL(0x2B0834D0u); /* 0x2B083D5E: call 0x2b0834d0 */ /* not lifted */ 4065 RECOMP_FLAGS_IN(); 4066 goto L_2B083D67; /* 0x2B083D63: jmp 0x2b083d67 */ 4067 L_2B083D65: 4068 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4069 eax = 0; /* 0x2B083D65: xor eax, eax */ 4070 _cf = 0; 4071 _flag_k = FK_TEST; 4072 L_2B083D67: 4073 ecx = eax; /* 0x2B083D67: mov ecx, eax */ 4074 L_2B083D69: 4075 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2B083D69: fld dword ptr [ebp - 0x14] */ 4076 eax = MEM32(ebp + (-0x10)); /* 0x2B083D6C: mov eax, dword ptr [ebp - 0x10] */ 4077 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2B083D6F: fld dword ptr [ebp - 0x14] */ 4078 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4079 edx = 0; /* 0x2B083D72: xor edx, edx */ 4080 _cf = 0; 4081 _flag_k = FK_TEST; 4082 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B083D74: fcomp dword ptr [0x2b0b61b8] */ 4083 fp_pop(); 4084 /* test eax, eax */ /* 0x2B083D7A: test eax, eax */ 4085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4086 _cf = 0; 4087 _flag_k = FK_TEST; 4088 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B083D7C: sete dl */ 4089 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B083D7F: fnstsw ax */ 4090 /* test HI8(eax), 1 */ /* 0x2B083D81: test ah, 1 */ 4091 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4092 _cf = 0; 4093 _flag_k = FK_NARROW(FK_TEST, 24); 4094 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083D8E; /* 0x2B083D84: je 0x2b083d8e */ 4095 L_2B083D86: 4096 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B083D86: fstp st(0) */ 4097 fp_push(*(float*)&MEM32(0x2B0B61B8)); /* 0x2B083D88: fld dword ptr [0x2b0b61b8] */ 4098 L_2B083D8E: 4099 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0xC) = _v; } /* 0x2B083D8E: fst dword ptr [ecx + 0xc] */ 4100 MEM32(ecx + 0x18) = edx; /* 0x2B083D91: mov dword ptr [ecx + 0x18], edx */ 4101 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x10) = _v; } /* 0x2B083D94: fstp dword ptr [ecx + 0x10] */ 4102 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x2B083D97: mov byte ptr [ecx + 0x14], 1 */ 4103 L_2B083D9B: 4104 ecx = MEM32(ebp + (-0xC)); /* 0x2B083D9B: mov ecx, dword ptr [ebp - 0xc] */ 4105 MEM32(FS_BASE + (0)) = ecx; /* 0x2B083D9E: mov dword ptr fs:[0], ecx */ 4106 esp = ebp; /* 0x2B083DA5: mov esp, ebp */ 4107 ebp = POP32_VAL(esp); /* 0x2B083DA7: pop ebp */ 4108 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083DA8: ret */ 4109 RECOMP_REGS_OUT(); 4110 } 4111 4112 void sub_2B083C49(void) { 4113 int _fpu_cmp = 0; 4114 uint32_t _cf = 0; 4115 int _df = 1; 4116 uint32_t _flag_k = FK_NONE; 4117 uint32_t _flag_a = 0, _flag_b = 0; 4118 uint32_t _itail_tgt = 0; 4119 RECOMP_REGS_LOCALS 4120 RECOMP_ENTER(0x2B083C49u); 4121 4122 L_2B083C49: 4123 ecx = ebp + (-0x20); /* 0x2B083C49: lea ecx, [ebp - 0x20] */ 4124 PUSH32(esp, ecx); /* 0x2B083C4C: push ecx */ 4125 PUSH32(esp, 0x1B58u); /* 0x2B083C4D: push 0x1b58 */ 4126 ecx = eax; /* 0x2B083C52: mov ecx, eax */ 4127 RECOMP_ICALL(0x2B0834D0u); /* 0x2B083C54: call 0x2b0834d0 */ /* not lifted */ 4128 RECOMP_FLAGS_IN(); 4129 ecx = eax; /* 0x2B083C59: mov ecx, eax */ 4130 eax = MEM32(ebp + (-0x10)); /* 0x2B083C5B: mov eax, dword ptr [ebp - 0x10] */ 4131 /* test eax, eax */ /* 0x2B083C5E: test eax, eax */ 4132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4133 _cf = 0; 4134 _flag_k = FK_TEST; 4135 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B083C60: sete dl */ 4136 MEM8(ecx + 0x15) = (uint8_t)(LO8(edx)); /* 0x2B083C63: mov byte ptr [ecx + 0x15], dl */ 4137 goto L_2B083D69; /* 0x2B083C66: jmp 0x2b083d69 */ 4138 L_2B083D69: 4139 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2B083D69: fld dword ptr [ebp - 0x14] */ 4140 eax = MEM32(ebp + (-0x10)); /* 0x2B083D6C: mov eax, dword ptr [ebp - 0x10] */ 4141 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2B083D6F: fld dword ptr [ebp - 0x14] */ 4142 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4143 edx = 0; /* 0x2B083D72: xor edx, edx */ 4144 _cf = 0; 4145 _flag_k = FK_TEST; 4146 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B083D74: fcomp dword ptr [0x2b0b61b8] */ 4147 fp_pop(); 4148 /* test eax, eax */ /* 0x2B083D7A: test eax, eax */ 4149 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4150 _cf = 0; 4151 _flag_k = FK_TEST; 4152 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B083D7C: sete dl */ 4153 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B083D7F: fnstsw ax */ 4154 /* test HI8(eax), 1 */ /* 0x2B083D81: test ah, 1 */ 4155 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4156 _cf = 0; 4157 _flag_k = FK_NARROW(FK_TEST, 24); 4158 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083D8E; /* 0x2B083D84: je 0x2b083d8e */ 4159 L_2B083D86: 4160 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B083D86: fstp st(0) */ 4161 fp_push(*(float*)&MEM32(0x2B0B61B8)); /* 0x2B083D88: fld dword ptr [0x2b0b61b8] */ 4162 L_2B083D8E: 4163 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0xC) = _v; } /* 0x2B083D8E: fst dword ptr [ecx + 0xc] */ 4164 MEM32(ecx + 0x18) = edx; /* 0x2B083D91: mov dword ptr [ecx + 0x18], edx */ 4165 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x10) = _v; } /* 0x2B083D94: fstp dword ptr [ecx + 0x10] */ 4166 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x2B083D97: mov byte ptr [ecx + 0x14], 1 */ 4167 ecx = MEM32(ebp + (-0xC)); /* 0x2B083D9B: mov ecx, dword ptr [ebp - 0xc] */ 4168 MEM32(FS_BASE + (0)) = ecx; /* 0x2B083D9E: mov dword ptr fs:[0], ecx */ 4169 esp = ebp; /* 0x2B083DA5: mov esp, ebp */ 4170 ebp = POP32_VAL(esp); /* 0x2B083DA7: pop ebp */ 4171 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083DA8: ret */ 4172 RECOMP_REGS_OUT(); 4173 } 4174 4175 void sub_2B083D69(void) { 4176 int _fpu_cmp = 0; 4177 uint32_t _cf = 0; 4178 int _df = 1; 4179 uint32_t _flag_k = FK_NONE; 4180 uint32_t _flag_a = 0, _flag_b = 0; 4181 uint32_t _itail_tgt = 0; 4182 RECOMP_REGS_LOCALS 4183 RECOMP_ENTER(0x2B083D69u); 4184 4185 L_2B083D69: 4186 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2B083D69: fld dword ptr [ebp - 0x14] */ 4187 eax = MEM32(ebp + (-0x10)); /* 0x2B083D6C: mov eax, dword ptr [ebp - 0x10] */ 4188 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2B083D6F: fld dword ptr [ebp - 0x14] */ 4189 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4190 edx = 0; /* 0x2B083D72: xor edx, edx */ 4191 _cf = 0; 4192 _flag_k = FK_TEST; 4193 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2B0B61B8)); /* 0x2B083D74: fcomp dword ptr [0x2b0b61b8] */ 4194 fp_pop(); 4195 /* test eax, eax */ /* 0x2B083D7A: test eax, eax */ 4196 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4197 _cf = 0; 4198 _flag_k = FK_TEST; 4199 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2B083D7C: sete dl */ 4200 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2B083D7F: fnstsw ax */ 4201 /* test HI8(eax), 1 */ /* 0x2B083D81: test ah, 1 */ 4202 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4203 _cf = 0; 4204 _flag_k = FK_NARROW(FK_TEST, 24); 4205 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083D8E; /* 0x2B083D84: je 0x2b083d8e */ 4206 L_2B083D86: 4207 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B083D86: fstp st(0) */ 4208 fp_push(*(float*)&MEM32(0x2B0B61B8)); /* 0x2B083D88: fld dword ptr [0x2b0b61b8] */ 4209 L_2B083D8E: 4210 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0xC) = _v; } /* 0x2B083D8E: fst dword ptr [ecx + 0xc] */ 4211 MEM32(ecx + 0x18) = edx; /* 0x2B083D91: mov dword ptr [ecx + 0x18], edx */ 4212 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x10) = _v; } /* 0x2B083D94: fstp dword ptr [ecx + 0x10] */ 4213 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x2B083D97: mov byte ptr [ecx + 0x14], 1 */ 4214 ecx = MEM32(ebp + (-0xC)); /* 0x2B083D9B: mov ecx, dword ptr [ebp - 0xc] */ 4215 MEM32(FS_BASE + (0)) = ecx; /* 0x2B083D9E: mov dword ptr fs:[0], ecx */ 4216 esp = ebp; /* 0x2B083DA5: mov esp, ebp */ 4217 ebp = POP32_VAL(esp); /* 0x2B083DA7: pop ebp */ 4218 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083DA8: ret */ 4219 RECOMP_REGS_OUT(); 4220 } 4221 4222 void sub_2B083DB0(void) { 4223 int _fpu_cmp = 0; 4224 uint32_t _cf = 0; 4225 int _df = 1; 4226 uint32_t _flag_k = FK_NONE; 4227 uint32_t _flag_a = 0, _flag_b = 0; 4228 uint32_t _itail_tgt = 0; 4229 RECOMP_REGS_LOCALS 4230 RECOMP_ENTER(0x2B083DB0u); 4231 4232 L_2B083DB0: 4233 PUSH32(esp, ebp); /* 0x2B083DB0: push ebp */ 4234 ebp = esp; /* 0x2B083DB1: mov ebp, esp */ 4235 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4237 esp = esp - 8; /* 0x2B083DB3: sub esp, 8 */ 4238 _flag_k = FK_CMP; 4239 eax = ebp + (-0x8); /* 0x2B083DB6: lea eax, [ebp - 8] */ 4240 PUSH32(esp, esi); /* 0x2B083DB9: push esi */ 4241 PUSH32(esp, eax); /* 0x2B083DBA: push eax */ 4242 MEM32(ebp + (-0x8)) = 0; /* 0x2B083DBB: mov dword ptr [ebp - 8], 0 */ 4243 MEM32(ebp + (-0x4)) = 0; /* 0x2B083DC2: mov dword ptr [ebp - 4], 0 */ 4244 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B083DC9: call dword ptr [0x2b0b53cc] */ 4245 RECOMP_FLAGS_IN(); 4246 ecx = eax; /* 0x2B083DCF: mov ecx, eax */ 4247 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B083DD1: call dword ptr [0x2b0b53ac] */ 4248 RECOMP_FLAGS_IN(); 4249 L_2B083DD7: 4250 ecx = ebp + (-0x8); /* 0x2B083DD7: lea ecx, [ebp - 8] */ 4251 PUSH32(esp, ecx); /* 0x2B083DDA: push ecx */ 4252 RECOMP_ICALL(0x2B083860u); /* 0x2B083DDB: call 0x2b083860 */ /* not lifted */ 4253 RECOMP_FLAGS_IN(); 4254 esi = eax; /* 0x2B083DE0: mov esi, eax */ 4255 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4256 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4257 esp = esp + 4; /* 0x2B083DE2: add esp, 4 */ 4258 _flag_k = FK_ADD; 4259 /* test esi, esi */ /* 0x2B083DE5: test esi, esi */ 4260 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4261 _cf = 0; 4262 _flag_k = FK_TEST; 4263 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083DF9; /* 0x2B083DE7: je 0x2b083df9 */ 4264 L_2B083DE9: 4265 ecx = esi; /* 0x2B083DE9: mov ecx, esi */ 4266 RECOMP_ICALL(0x2B083710u); /* 0x2B083DEB: call 0x2b083710 */ /* not lifted */ 4267 RECOMP_FLAGS_IN(); 4268 PUSH32(esp, esi); /* 0x2B083DF0: push esi */ 4269 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B083DF1: call 0x2b0ab1ba */ /* not lifted */ 4270 RECOMP_FLAGS_IN(); 4271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4272 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4273 esp = esp + 4; /* 0x2B083DF6: add esp, 4 */ 4274 _flag_k = FK_ADD; 4275 L_2B083DF9: 4276 /* cmp MEM32(ebp + (-0x4)), 0xFFFFFFFFu */ /* 0x2B083DF9: cmp dword ptr [ebp - 4], -1 */ 4277 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0xFFFFFFFFu); 4278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4279 _flag_k = FK_CMP; 4280 if (CMP_NE(_flag_a, _flag_b)) goto L_2B083E03; /* 0x2B083DFD: jne 0x2b083e03 */ 4281 L_2B083DFF: 4282 /* test esi, esi */ /* 0x2B083DFF: test esi, esi */ 4283 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4284 _cf = 0; 4285 _flag_k = FK_TEST; 4286 RECOMP_BACKEDGE(); 4287 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B083DD7; /* 0x2B083E01: jne 0x2b083dd7 */ 4288 L_2B083E03: 4289 esi = POP32_VAL(esp); /* 0x2B083E03: pop esi */ 4290 esp = ebp; /* 0x2B083E04: mov esp, ebp */ 4291 ebp = POP32_VAL(esp); /* 0x2B083E06: pop ebp */ 4292 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083E07: ret */ 4293 RECOMP_REGS_OUT(); 4294 } 4295 4296 void sub_2B083E10(void) { 4297 int _fpu_cmp = 0; 4298 uint32_t _cf = 0; 4299 int _df = 1; 4300 uint32_t _flag_k = FK_NONE; 4301 uint32_t _flag_a = 0, _flag_b = 0; 4302 uint32_t _itail_tgt = 0; 4303 RECOMP_REGS_LOCALS 4304 RECOMP_ENTER(0x2B083E10u); 4305 4306 L_2B083E10: 4307 PUSH32(esp, ebp); /* 0x2B083E10: push ebp */ 4308 ebp = esp; /* 0x2B083E11: mov ebp, esp */ 4309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4311 esp = esp - 8; /* 0x2B083E13: sub esp, 8 */ 4312 _flag_k = FK_CMP; 4313 eax = ebp + (-0x8); /* 0x2B083E16: lea eax, [ebp - 8] */ 4314 PUSH32(esp, eax); /* 0x2B083E19: push eax */ 4315 MEM32(ebp + (-0x8)) = 0; /* 0x2B083E1A: mov dword ptr [ebp - 8], 0 */ 4316 MEM32(ebp + (-0x4)) = 0; /* 0x2B083E21: mov dword ptr [ebp - 4], 0 */ 4317 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B083E28: call dword ptr [0x2b0b53cc] */ 4318 RECOMP_FLAGS_IN(); 4319 ecx = eax; /* 0x2B083E2E: mov ecx, eax */ 4320 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B083E30: call dword ptr [0x2b0b53ac] */ 4321 RECOMP_FLAGS_IN(); 4322 ecx = ebp + (-0x8); /* 0x2B083E36: lea ecx, [ebp - 8] */ 4323 PUSH32(esp, ecx); /* 0x2B083E39: push ecx */ 4324 RECOMP_ICALL(0x2B083860u); /* 0x2B083E3A: call 0x2b083860 */ /* not lifted */ 4325 RECOMP_FLAGS_IN(); 4326 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4328 esp = esp + 4; /* 0x2B083E3F: add esp, 4 */ 4329 _flag_k = FK_ADD; 4330 /* test eax, eax */ /* 0x2B083E42: test eax, eax */ 4331 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4332 _cf = 0; 4333 _flag_k = FK_TEST; 4334 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083E4A; /* 0x2B083E44: je 0x2b083e4a */ 4335 L_2B083E46: 4336 MEM8(eax + 0x16) = (uint8_t)(1); /* 0x2B083E46: mov byte ptr [eax + 0x16], 1 */ 4337 L_2B083E4A: 4338 esp = ebp; /* 0x2B083E4A: mov esp, ebp */ 4339 ebp = POP32_VAL(esp); /* 0x2B083E4C: pop ebp */ 4340 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083E4D: ret */ 4341 RECOMP_REGS_OUT(); 4342 } 4343 4344 void sub_2B083E50(void) { 4345 int _fpu_cmp = 0; 4346 uint32_t _cf = 0; 4347 int _df = 1; 4348 uint32_t _flag_k = FK_NONE; 4349 uint32_t _flag_a = 0, _flag_b = 0; 4350 uint32_t _itail_tgt = 0; 4351 RECOMP_REGS_LOCALS 4352 RECOMP_ENTER(0x2B083E50u); 4353 4354 L_2B083E50: 4355 PUSH32(esp, ebp); /* 0x2B083E50: push ebp */ 4356 ebp = esp; /* 0x2B083E51: mov ebp, esp */ 4357 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4359 esp = esp - 8; /* 0x2B083E53: sub esp, 8 */ 4360 _flag_k = FK_CMP; 4361 eax = ebp + (-0x8); /* 0x2B083E56: lea eax, [ebp - 8] */ 4362 PUSH32(esp, eax); /* 0x2B083E59: push eax */ 4363 MEM32(ebp + (-0x8)) = 0; /* 0x2B083E5A: mov dword ptr [ebp - 8], 0 */ 4364 MEM32(ebp + (-0x4)) = 0; /* 0x2B083E61: mov dword ptr [ebp - 4], 0 */ 4365 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B083E68: call dword ptr [0x2b0b53cc] */ 4366 RECOMP_FLAGS_IN(); 4367 ecx = eax; /* 0x2B083E6E: mov ecx, eax */ 4368 RECOMP_ICALL(MEM32(0x2B0B53AC)); /* 0x2B083E70: call dword ptr [0x2b0b53ac] */ 4369 RECOMP_FLAGS_IN(); 4370 ecx = ebp + (-0x8); /* 0x2B083E76: lea ecx, [ebp - 8] */ 4371 PUSH32(esp, ecx); /* 0x2B083E79: push ecx */ 4372 RECOMP_ICALL(0x2B083860u); /* 0x2B083E7A: call 0x2b083860 */ /* not lifted */ 4373 RECOMP_FLAGS_IN(); 4374 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4376 esp = esp + 4; /* 0x2B083E7F: add esp, 4 */ 4377 _flag_k = FK_ADD; 4378 /* test eax, eax */ /* 0x2B083E82: test eax, eax */ 4379 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4380 _cf = 0; 4381 _flag_k = FK_TEST; 4382 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083E8A; /* 0x2B083E84: je 0x2b083e8a */ 4383 L_2B083E86: 4384 MEM8(eax + 0x16) = (uint8_t)(0); /* 0x2B083E86: mov byte ptr [eax + 0x16], 0 */ 4385 L_2B083E8A: 4386 esp = ebp; /* 0x2B083E8A: mov esp, ebp */ 4387 ebp = POP32_VAL(esp); /* 0x2B083E8C: pop ebp */ 4388 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B083E8D: ret */ 4389 RECOMP_REGS_OUT(); 4390 } 4391 4392 void sub_2B083E90(void) { 4393 int _fpu_cmp = 0; 4394 uint32_t _cf = 0; 4395 int _df = 1; 4396 uint32_t _flag_k = FK_NONE; 4397 uint32_t _flag_a = 0, _flag_b = 0; 4398 uint32_t _itail_tgt = 0; 4399 RECOMP_REGS_LOCALS 4400 RECOMP_ENTER(0x2B083E90u); 4401 4402 L_2B083E90: 4403 PUSH32(esp, ebp); /* 0x2B083E90: push ebp */ 4404 ebp = esp; /* 0x2B083E91: mov ebp, esp */ 4405 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B083E93: push -1 */ 4406 PUSH32(esp, 0x2B0B2140u); /* 0x2B083E95: push 0x2b0b2140 */ 4407 eax = MEM32(FS_BASE + (0)); /* 0x2B083E9A: mov eax, dword ptr fs:[0] */ 4408 PUSH32(esp, eax); /* 0x2B083EA0: push eax */ 4409 MEM32(FS_BASE + (0)) = esp; /* 0x2B083EA1: mov dword ptr fs:[0], esp */ 4410 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x88u); 4411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4412 esp = esp - 0x88u; /* 0x2B083EA8: sub esp, 0x88 */ 4413 _flag_k = FK_CMP; 4414 eax = MEM32(ebp + 0xC); /* 0x2B083EAE: mov eax, dword ptr [ebp + 0xc] */ 4415 edx = MEM32(ebp + 0x8); /* 0x2B083EB1: mov edx, dword ptr [ebp + 8] */ 4416 PUSH32(esp, ebx); /* 0x2B083EB4: push ebx */ 4417 ebx = ecx; /* 0x2B083EB5: mov ebx, ecx */ 4418 ecx = MEM32(ebp + 0x10); /* 0x2B083EB7: mov ecx, dword ptr [ebp + 0x10] */ 4419 MEM32(ebx + 0x8) = ecx; /* 0x2B083EBA: mov dword ptr [ebx + 8], ecx */ 4420 PUSH32(esp, esi); /* 0x2B083EBD: push esi */ 4421 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4422 esi = 0; /* 0x2B083EBE: xor esi, esi */ 4423 _cf = 0; 4424 _flag_k = FK_TEST; 4425 MEM32(ebx + 0x4) = eax; /* 0x2B083EC0: mov dword ptr [ebx + 4], eax */ 4426 MEM8(ebx) = (uint8_t)(0); /* 0x2B083EC3: mov byte ptr [ebx], 0 */ 4427 MEM32(ebx + 0x10) = esi; /* 0x2B083EC6: mov dword ptr [ebx + 0x10], esi */ 4428 MEM32(ebx + 0x1C) = esi; /* 0x2B083EC9: mov dword ptr [ebx + 0x1c], esi */ 4429 MEM32(ebx + 0x20) = esi; /* 0x2B083ECC: mov dword ptr [ebx + 0x20], esi */ 4430 MEM32(ebx + 0x24) = esi; /* 0x2B083ECF: mov dword ptr [ebx + 0x24], esi */ 4431 MEM32(ebx + 0x28) = esi; /* 0x2B083ED2: mov dword ptr [ebx + 0x28], esi */ 4432 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4433 eax = 0; /* 0x2B083ED5: xor eax, eax */ 4434 _cf = 0; 4435 _flag_k = FK_TEST; 4436 PUSH32(esp, edi); /* 0x2B083ED7: push edi */ 4437 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4438 ecx = ecx | 0xFFFFFFFFu; /* 0x2B083ED8: or ecx, 0xffffffff */ 4439 _cf = 0; 4440 _flag_k = FK_TEST; 4441 MEM32(ebx + 0x14) = eax; /* 0x2B083EDB: mov dword ptr [ebx + 0x14], eax */ 4442 edi = edx; /* 0x2B083EDE: mov edi, edx */ 4443 MEM32(ebx + 0x18) = esi; /* 0x2B083EE0: mov dword ptr [ebx + 0x18], esi */ 4444 MEM32(ebx + 0x1C) = esi; /* 0x2B083EE3: mov dword ptr [ebx + 0x1c], esi */ 4445 MEM32(ebx + 0x20) = esi; /* 0x2B083EE6: mov dword ptr [ebx + 0x20], esi */ 4446 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; } /* 0x2B083EE9: repne scasb al, byte ptr es:[edi] */ 4447 ecx = ~ecx; /* 0x2B083EEB: not ecx */ 4448 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4449 ecx = ecx - 1; /* 0x2B083EED: dec ecx */ 4450 _flag_k = FK_DEC; 4451 PUSH32(esp, 0x3Bu); /* 0x2B083EEE: push 0x3b */ 4452 PUSH32(esp, edx); /* 0x2B083EF0: push edx */ 4453 MEM32(ebp + (-0x14)) = eax; /* 0x2B083EF1: mov dword ptr [ebp - 0x14], eax */ 4454 MEM32(ebp + (-0x10)) = esi; /* 0x2B083EF4: mov dword ptr [ebp - 0x10], esi */ 4455 MEM32(ebp + 0xC) = ecx; /* 0x2B083EF7: mov dword ptr [ebp + 0xc], ecx */ 4456 RECOMP_ICALL(MEM32(0x2B0B51E0)); /* 0x2B083EFA: call dword ptr [0x2b0b51e0] */ 4457 RECOMP_FLAGS_IN(); 4458 edi = eax; /* 0x2B083F00: mov edi, eax */ 4459 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4461 esp = esp + 8; /* 0x2B083F02: add esp, 8 */ 4462 _flag_k = FK_ADD; 4463 /* cmp edi, esi */ /* 0x2B083F05: cmp edi, esi */ 4464 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4466 _flag_k = FK_CMP; 4467 MEM32(ebp + (-0x2C)) = edi; /* 0x2B083F07: mov dword ptr [ebp - 0x2c], edi */ 4468 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083F90; /* 0x2B083F0A: je 0x2b083f90 */ 4469 L_2B083F10: 4470 PUSH32(esp, 0x14u); /* 0x2B083F10: push 0x14 */ 4471 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083F12: call 0x2b0ab212 */ /* not lifted */ 4472 RECOMP_FLAGS_IN(); 4473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4475 esp = esp + 4; /* 0x2B083F17: add esp, 4 */ 4476 _flag_k = FK_ADD; 4477 /* cmp eax, esi */ /* 0x2B083F1A: cmp eax, esi */ 4478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4480 _flag_k = FK_CMP; 4481 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083F34; /* 0x2B083F1C: je 0x2b083f34 */ 4482 L_2B083F1E: 4483 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2B083F1E: mov dl, byte ptr [ebp + 0xb] */ 4484 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x2B083F21: mov byte ptr [eax], dl */ 4485 MEM32(eax + 0x4) = esi; /* 0x2B083F23: mov dword ptr [eax + 4], esi */ 4486 MEM32(eax + 0x8) = esi; /* 0x2B083F26: mov dword ptr [eax + 8], esi */ 4487 MEM32(eax + 0xC) = esi; /* 0x2B083F29: mov dword ptr [eax + 0xc], esi */ 4488 MEM32(eax + 0x10) = esi; /* 0x2B083F2C: mov dword ptr [eax + 0x10], esi */ 4489 MEM32(ebp + 0x10) = eax; /* 0x2B083F2F: mov dword ptr [ebp + 0x10], eax */ 4490 goto L_2B083F39; /* 0x2B083F32: jmp 0x2b083f39 */ 4491 L_2B083F34: 4492 MEM32(ebp + 0x10) = esi; /* 0x2B083F34: mov dword ptr [ebp + 0x10], esi */ 4493 eax = esi; /* 0x2B083F37: mov eax, esi */ 4494 L_2B083F39: 4495 edx = MEM32(ebp + 0xC); /* 0x2B083F39: mov edx, dword ptr [ebp + 0xc] */ 4496 ecx = MEM32(ebp + 0x8); /* 0x2B083F3C: mov ecx, dword ptr [ebp + 8] */ 4497 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4499 edx = edx - edi; /* 0x2B083F3F: sub edx, edi */ 4500 _flag_k = FK_CMP; 4501 ecx = edx + ecx + (-0x1); /* 0x2B083F41: lea ecx, [edx + ecx - 1] */ 4502 PUSH32(esp, 1); /* 0x2B083F45: push 1 */ 4503 MEM32(ebp + 0xC) = ecx; /* 0x2B083F47: mov dword ptr [ebp + 0xc], ecx */ 4504 PUSH32(esp, ecx); /* 0x2B083F4A: push ecx */ 4505 ecx = eax; /* 0x2B083F4B: mov ecx, eax */ 4506 MEM32(ebx + 0x10) = eax; /* 0x2B083F4D: mov dword ptr [ebx + 0x10], eax */ 4507 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B083F50: call dword ptr [0x2b0b5154] */ 4508 RECOMP_FLAGS_IN(); 4509 /* test LO8(eax), LO8(eax) */ /* 0x2B083F56: test al, al */ 4510 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4511 _cf = 0; 4512 _flag_k = FK_NARROW(FK_TEST, 24); 4513 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083F8A; /* 0x2B083F58: je 0x2b083f8a */ 4514 L_2B083F5A: 4515 edx = MEM32(ebp + 0x10); /* 0x2B083F5A: mov edx, dword ptr [ebp + 0x10] */ 4516 eax = MEM32(edx + 0x4); /* 0x2B083F5D: mov eax, dword ptr [edx + 4] */ 4517 ecx = MEM32(ebp + 0xC); /* 0x2B083F60: mov ecx, dword ptr [ebp + 0xc] */ 4518 esi = edi + 0x1; /* 0x2B083F63: lea esi, [edi + 1] */ 4519 edi = eax; /* 0x2B083F66: mov edi, eax */ 4520 eax = ecx; /* 0x2B083F68: mov eax, ecx */ 4521 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B083F6A: shr ecx, 2 */ 4522 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4523 ecx = ecx >> 2u; /* 0x2B083F6A: shr ecx, 2 */ 4524 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B083F6D: 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; } 4525 ecx = eax; /* 0x2B083F6F: mov ecx, eax */ 4526 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4527 ecx = ecx & 3; /* 0x2B083F71: and ecx, 3 */ 4528 _cf = 0; 4529 _flag_k = FK_TEST; 4530 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B083F74: 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; } 4531 edi = MEM32(ebp + (-0x2C)); /* 0x2B083F76: mov edi, dword ptr [ebp - 0x2c] */ 4532 ecx = eax; /* 0x2B083F79: mov ecx, eax */ 4533 eax = edx; /* 0x2B083F7B: mov eax, edx */ 4534 MEM32(eax + 0x8) = ecx; /* 0x2B083F7D: mov dword ptr [eax + 8], ecx */ 4535 eax = MEM32(eax + 0x4); /* 0x2B083F80: mov eax, dword ptr [eax + 4] */ 4536 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4538 eax = eax + ecx; /* 0x2B083F83: add eax, ecx */ 4539 _flag_k = FK_ADD; 4540 MEM8(eax) = (uint8_t)(0); /* 0x2B083F85: mov byte ptr [eax], 0 */ 4541 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4542 esi = 0; /* 0x2B083F88: xor esi, esi */ 4543 _cf = 0; 4544 _flag_k = FK_TEST; 4545 L_2B083F8A: 4546 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 4547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4548 edi = edi - MEM32(ebp + 0x8); /* 0x2B083F8A: sub edi, dword ptr [ebp + 8] */ 4549 _flag_k = FK_CMP; 4550 MEM32(ebp + 0xC) = edi; /* 0x2B083F8D: mov dword ptr [ebp + 0xc], edi */ 4551 L_2B083F90: 4552 PUSH32(esp, 0x14u); /* 0x2B083F90: push 0x14 */ 4553 RECOMP_ICALL(0x2B0AB212u); /* 0x2B083F92: call 0x2b0ab212 */ /* not lifted */ 4554 RECOMP_FLAGS_IN(); 4555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4557 esp = esp + 4; /* 0x2B083F97: add esp, 4 */ 4558 _flag_k = FK_ADD; 4559 /* cmp eax, esi */ /* 0x2B083F9A: cmp eax, esi */ 4560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4562 _flag_k = FK_CMP; 4563 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B083FB6; /* 0x2B083F9C: je 0x2b083fb6 */ 4564 L_2B083F9E: 4565 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2B083F9E: mov cl, byte ptr [ebp + 0xb] */ 4566 edi = eax; /* 0x2B083FA1: mov edi, eax */ 4567 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2B083FA3: mov byte ptr [eax], cl */ 4568 MEM32(eax + 0x4) = esi; /* 0x2B083FA5: mov dword ptr [eax + 4], esi */ 4569 MEM32(eax + 0x8) = esi; /* 0x2B083FA8: mov dword ptr [eax + 8], esi */ 4570 MEM32(eax + 0xC) = esi; /* 0x2B083FAB: mov dword ptr [eax + 0xc], esi */ 4571 MEM32(eax + 0x10) = esi; /* 0x2B083FAE: mov dword ptr [eax + 0x10], esi */ 4572 MEM32(ebp + 0x10) = edi; /* 0x2B083FB1: mov dword ptr [ebp + 0x10], edi */ 4573 goto L_2B083FBB; /* 0x2B083FB4: jmp 0x2b083fbb */ 4574 L_2B083FB6: 4575 MEM32(ebp + 0x10) = esi; /* 0x2B083FB6: mov dword ptr [ebp + 0x10], esi */ 4576 edi = esi; /* 0x2B083FB9: mov edi, esi */ 4577 L_2B083FBB: 4578 edx = MEM32(ebp + 0xC); /* 0x2B083FBB: mov edx, dword ptr [ebp + 0xc] */ 4579 PUSH32(esp, 1); /* 0x2B083FBE: push 1 */ 4580 PUSH32(esp, edx); /* 0x2B083FC0: push edx */ 4581 ecx = edi; /* 0x2B083FC1: mov ecx, edi */ 4582 MEM32(ebx + 0xC) = edi; /* 0x2B083FC3: mov dword ptr [ebx + 0xc], edi */ 4583 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B083FC6: call dword ptr [0x2b0b5154] */ 4584 RECOMP_FLAGS_IN(); 4585 /* test LO8(eax), LO8(eax) */ /* 0x2B083FCC: test al, al */ 4586 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4587 _cf = 0; 4588 _flag_k = FK_NARROW(FK_TEST, 24); 4589 if (TEST_Z(_flag_a, _flag_b)) goto L_2B083FF9; /* 0x2B083FCE: je 0x2b083ff9 */ 4590 L_2B083FD0: 4591 ecx = MEM32(ebp + 0xC); /* 0x2B083FD0: mov ecx, dword ptr [ebp + 0xc] */ 4592 edi = MEM32(edi + 0x4); /* 0x2B083FD3: mov edi, dword ptr [edi + 4] */ 4593 esi = MEM32(ebp + 0x8); /* 0x2B083FD6: mov esi, dword ptr [ebp + 8] */ 4594 eax = ecx; /* 0x2B083FD9: mov eax, ecx */ 4595 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B083FDB: shr ecx, 2 */ 4596 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4597 ecx = ecx >> 2u; /* 0x2B083FDB: shr ecx, 2 */ 4598 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B083FDE: 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; } 4599 ecx = eax; /* 0x2B083FE0: mov ecx, eax */ 4600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4601 ecx = ecx & 3; /* 0x2B083FE2: and ecx, 3 */ 4602 _cf = 0; 4603 _flag_k = FK_TEST; 4604 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B083FE5: 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; } 4605 ecx = eax; /* 0x2B083FE7: mov ecx, eax */ 4606 eax = MEM32(ebp + 0x10); /* 0x2B083FE9: mov eax, dword ptr [ebp + 0x10] */ 4607 MEM32(eax + 0x8) = ecx; /* 0x2B083FEC: mov dword ptr [eax + 8], ecx */ 4608 eax = MEM32(eax + 0x4); /* 0x2B083FEF: mov eax, dword ptr [eax + 4] */ 4609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4610 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4611 eax = eax + ecx; /* 0x2B083FF2: add eax, ecx */ 4612 _flag_k = FK_ADD; 4613 MEM8(eax) = (uint8_t)(0); /* 0x2B083FF4: mov byte ptr [eax], 0 */ 4614 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4615 esi = 0; /* 0x2B083FF7: xor esi, esi */ 4616 _cf = 0; 4617 _flag_k = FK_TEST; 4618 L_2B083FF9: 4619 ecx = ebp + (-0x28); /* 0x2B083FF9: lea ecx, [ebp - 0x28] */ 4620 PUSH32(esp, ecx); /* 0x2B083FFC: push ecx */ 4621 edx = ebp + (-0x1C); /* 0x2B083FFD: lea edx, [ebp - 0x1c] */ 4622 PUSH32(esp, edx); /* 0x2B084000: push edx */ 4623 RECOMP_ICALL(MEM32(0x2B0B5690)); /* 0x2B084001: call dword ptr [0x2b0b5690] */ 4624 RECOMP_FLAGS_IN(); 4625 ecx = eax; /* 0x2B084007: mov ecx, eax */ 4626 RECOMP_ICALL(MEM32(0x2B0B5638)); /* 0x2B084009: call dword ptr [0x2b0b5638] */ 4627 RECOMP_FLAGS_IN(); 4628 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x2B08400F: fld dword ptr [ebp - 0x1c] */ 4629 _st[0] -= (double)*(float*)ADDR(0x2B0B63D0); /* 0x2B084012: fsub dword ptr [0x2b0b63d0] */ 4630 _st[0] *= *(double*)ADDR(0x2B0B6848); /* 0x2B084018: fmul qword ptr [0x2b0b6848] */ 4631 _st[0] += *(double*)ADDR(0x2B0B63C0); /* 0x2B08401E: fadd qword ptr [0x2b0b63c0] */ 4632 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2B084024: fstp dword ptr [ebp - 0x1c] */ 4633 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x2B084027: fld dword ptr [ebp - 0x28] */ 4634 _st[0] -= (double)*(float*)ADDR(0x2B0B63D0); /* 0x2B08402A: fsub dword ptr [0x2b0b63d0] */ 4635 _st[0] *= *(double*)ADDR(0x2B0B6848); /* 0x2B084030: fmul qword ptr [0x2b0b6848] */ 4636 _st[0] += *(double*)ADDR(0x2B0B63C0); /* 0x2B084036: fadd qword ptr [0x2b0b63c0] */ 4637 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x2B08403C: fstp dword ptr [ebp - 0x28] */ 4638 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x2B08403F: fld dword ptr [ebp - 0x1c] */ 4639 _st[0] *= (double)*(float*)ADDR(0x2B0B719C); /* 0x2B084042: fmul dword ptr [0x2b0b719c] */ 4640 RECOMP_ICALL(0x2B0AB220u); /* 0x2B084048: call 0x2b0ab220 */ /* not lifted */ 4641 RECOMP_FLAGS_IN(); 4642 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x2B08404D: fld dword ptr [ebp - 0x28] */ 4643 _st[0] *= (double)*(float*)ADDR(0x2B0B7198); /* 0x2B084050: fmul dword ptr [0x2b0b7198] */ 4644 MEM32(ebx + 0x24) = eax; /* 0x2B084056: mov dword ptr [ebx + 0x24], eax */ 4645 RECOMP_ICALL(0x2B0AB220u); /* 0x2B084059: call 0x2b0ab220 */ /* not lifted */ 4646 RECOMP_FLAGS_IN(); 4647 PUSH32(esp, 0x34u); /* 0x2B08405E: push 0x34 */ 4648 MEM32(ebx + 0x28) = eax; /* 0x2B084060: mov dword ptr [ebx + 0x28], eax */ 4649 RECOMP_ICALL(0x2B0AB212u); /* 0x2B084063: call 0x2b0ab212 */ /* not lifted */ 4650 RECOMP_FLAGS_IN(); 4651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4653 esp = esp + 4; /* 0x2B084068: add esp, 4 */ 4654 _flag_k = FK_ADD; 4655 MEM32(ebp + 0x8) = eax; /* 0x2B08406B: mov dword ptr [ebp + 8], eax */ 4656 /* cmp eax, esi */ /* 0x2B08406E: cmp eax, esi */ 4657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4659 _flag_k = FK_CMP; 4660 MEM32(ebp + (-0x4)) = esi; /* 0x2B084070: mov dword ptr [ebp - 4], esi */ 4661 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B084085; /* 0x2B084073: je 0x2b084085 */ 4662 L_2B084075: 4663 PUSH32(esp, 2); /* 0x2B084075: push 2 */ 4664 PUSH32(esp, 0x10u); /* 0x2B084077: push 0x10 */ 4665 PUSH32(esp, 0x10u); /* 0x2B084079: push 0x10 */ 4666 ecx = eax; /* 0x2B08407B: mov ecx, eax */ 4667 RECOMP_ICALL(MEM32(0x2B0B5650)); /* 0x2B08407D: call dword ptr [0x2b0b5650] */ 4668 RECOMP_FLAGS_IN(); 4669 goto L_2B084087; /* 0x2B084083: jmp 0x2b084087 */ 4670 L_2B084085: 4671 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4672 eax = 0; /* 0x2B084085: xor eax, eax */ 4673 _cf = 0; 4674 _flag_k = FK_TEST; 4675 L_2B084087: 4676 PUSH32(esp, esi); /* 0x2B084087: push esi */ 4677 PUSH32(esp, esi); /* 0x2B084088: push esi */ 4678 PUSH32(esp, esi); /* 0x2B084089: push esi */ 4679 ecx = eax; /* 0x2B08408A: mov ecx, eax */ 4680 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B08408C: mov dword ptr [ebp - 4], 0xffffffff */ 4681 MEM32(ebx + 0x38) = eax; /* 0x2B084093: mov dword ptr [ebx + 0x38], eax */ 4682 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B084096: call dword ptr [0x2b0b564c] */ 4683 RECOMP_FLAGS_IN(); 4684 PUSH32(esp, 0xD8u); /* 0x2B08409C: push 0xd8 */ 4685 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0840A1: call 0x2b0ab212 */ /* not lifted */ 4686 RECOMP_FLAGS_IN(); 4687 edi = eax; /* 0x2B0840A6: mov edi, eax */ 4688 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4690 esp = esp + 4; /* 0x2B0840A8: add esp, 4 */ 4691 _flag_k = FK_ADD; 4692 MEM32(ebp + 0x10) = edi; /* 0x2B0840AB: mov dword ptr [ebp + 0x10], edi */ 4693 /* cmp edi, esi */ /* 0x2B0840AE: cmp edi, esi */ 4694 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4696 _flag_k = FK_CMP; 4697 MEM32(ebp + (-0x4)) = 1; /* 0x2B0840B0: mov dword ptr [ebp - 4], 1 */ 4698 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0840EF; /* 0x2B0840B7: je 0x2b0840ef */ 4699 L_2B0840B9: 4700 edx = MEM32(ebx + 0x38); /* 0x2B0840B9: mov edx, dword ptr [ebx + 0x38] */ 4701 eax = ebp + 0x8; /* 0x2B0840BC: lea eax, [ebp + 8] */ 4702 PUSH32(esp, eax); /* 0x2B0840BF: push eax */ 4703 ecx = ebp + 0xC; /* 0x2B0840C0: lea ecx, [ebp + 0xc] */ 4704 PUSH32(esp, ecx); /* 0x2B0840C3: push ecx */ 4705 PUSH32(esp, esi); /* 0x2B0840C4: push esi */ 4706 PUSH32(esp, 0x6978u); /* 0x2B0840C5: push 0x6978 */ 4707 PUSH32(esp, edx); /* 0x2B0840CA: push edx */ 4708 eax = ebp + (-0x14); /* 0x2B0840CB: lea eax, [ebp - 0x14] */ 4709 PUSH32(esp, eax); /* 0x2B0840CE: push eax */ 4710 ecx = edi; /* 0x2B0840CF: mov ecx, edi */ 4711 MEM32(ebp + 0x8) = 0x3F800000u; /* 0x2B0840D1: mov dword ptr [ebp + 8], 0x3f800000 */ 4712 MEM32(ebp + 0xC) = 0x3F800000u; /* 0x2B0840D8: mov dword ptr [ebp + 0xc], 0x3f800000 */ 4713 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B0840DF: call dword ptr [0x2b0b5654] */ 4714 RECOMP_FLAGS_IN(); 4715 MEM32(edi) = 0x2B0B618Cu; /* 0x2B0840E5: mov dword ptr [edi], 0x2b0b618c */ 4716 eax = edi; /* 0x2B0840EB: mov eax, edi */ 4717 goto L_2B0840F1; /* 0x2B0840ED: jmp 0x2b0840f1 */ 4718 L_2B0840EF: 4719 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4720 eax = 0; /* 0x2B0840EF: xor eax, eax */ 4721 _cf = 0; 4722 _flag_k = FK_TEST; 4723 L_2B0840F1: 4724 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 4725 edi = edi | 0xFFFFFFFFu; /* 0x2B0840F1: or edi, 0xffffffff */ 4726 _cf = 0; 4727 _flag_k = FK_TEST; 4728 PUSH32(esp, 0x50u); /* 0x2B0840F4: push 0x50 */ 4729 MEM32(ebp + (-0x4)) = edi; /* 0x2B0840F6: mov dword ptr [ebp - 4], edi */ 4730 MEM32(ebx + 0x3C) = eax; /* 0x2B0840F9: mov dword ptr [ebx + 0x3c], eax */ 4731 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0840FC: call 0x2b0ab212 */ /* not lifted */ 4732 RECOMP_FLAGS_IN(); 4733 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4735 esp = esp + 4; /* 0x2B084101: add esp, 4 */ 4736 _flag_k = FK_ADD; 4737 MEM32(ebp + 0x8) = eax; /* 0x2B084104: mov dword ptr [ebp + 8], eax */ 4738 /* cmp eax, esi */ /* 0x2B084107: cmp eax, esi */ 4739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4741 _flag_k = FK_CMP; 4742 MEM32(ebp + (-0x4)) = 2; /* 0x2B084109: mov dword ptr [ebp - 4], 2 */ 4743 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B084138; /* 0x2B084110: je 0x2b084138 */ 4744 L_2B084112: 4745 PUSH32(esp, esi); /* 0x2B084112: push esi */ 4746 PUSH32(esp, 0x3F800000u); /* 0x2B084113: push 0x3f800000 */ 4747 PUSH32(esp, 0x3F800000u); /* 0x2B084118: push 0x3f800000 */ 4748 PUSH32(esp, 0x6979u); /* 0x2B08411D: push 0x6979 */ 4749 ecx = ebp + (-0x14); /* 0x2B084122: lea ecx, [ebp - 0x14] */ 4750 PUSH32(esp, ecx); /* 0x2B084125: push ecx */ 4751 ecx = ebx + 0x24; /* 0x2B084126: lea ecx, [ebx + 0x24] */ 4752 PUSH32(esp, ecx); /* 0x2B084129: push ecx */ 4753 PUSH32(esp, 6); /* 0x2B08412A: push 6 */ 4754 PUSH32(esp, 6); /* 0x2B08412C: push 6 */ 4755 ecx = eax; /* 0x2B08412E: mov ecx, eax */ 4756 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B084130: call dword ptr [0x2b0b5bd8] */ 4757 RECOMP_FLAGS_IN(); 4758 goto L_2B08413A; /* 0x2B084136: jmp 0x2b08413a */ 4759 L_2B084138: 4760 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4761 eax = 0; /* 0x2B084138: xor eax, eax */ 4762 _cf = 0; 4763 _flag_k = FK_TEST; 4764 L_2B08413A: 4765 PUSH32(esp, 1); /* 0x2B08413A: push 1 */ 4766 MEM32(ebx + 0x40) = eax; /* 0x2B08413C: mov dword ptr [ebx + 0x40], eax */ 4767 eax = MEM32(eax + 0x28); /* 0x2B08413F: mov eax, dword ptr [eax + 0x28] */ 4768 PUSH32(esp, esi); /* 0x2B084142: push esi */ 4769 PUSH32(esp, esi); /* 0x2B084143: push esi */ 4770 ecx = eax; /* 0x2B084144: mov ecx, eax */ 4771 MEM32(ebp + (-0x4)) = edi; /* 0x2B084146: mov dword ptr [ebp - 4], edi */ 4772 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B084149: call dword ptr [0x2b0b564c] */ 4773 RECOMP_FLAGS_IN(); 4774 PUSH32(esp, 0x50u); /* 0x2B08414F: push 0x50 */ 4775 RECOMP_ICALL(0x2B0AB212u); /* 0x2B084151: call 0x2b0ab212 */ /* not lifted */ 4776 RECOMP_FLAGS_IN(); 4777 edi = eax; /* 0x2B084156: mov edi, eax */ 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; /* 0x2B084158: add esp, 4 */ 4781 _flag_k = FK_ADD; 4782 MEM32(ebp + 0x8) = edi; /* 0x2B08415B: mov dword ptr [ebp + 8], edi */ 4783 /* cmp edi, esi */ /* 0x2B08415E: cmp edi, esi */ 4784 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4786 _flag_k = FK_CMP; 4787 MEM32(ebp + (-0x4)) = 3; /* 0x2B084160: mov dword ptr [ebp - 4], 3 */ 4788 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B084198; /* 0x2B084167: je 0x2b084198 */ 4789 L_2B084169: 4790 edx = MEM32(ebx + 0x40); /* 0x2B084169: mov edx, dword ptr [ebx + 0x40] */ 4791 eax = MEM32(ebp + (-0x10)); /* 0x2B08416C: mov eax, dword ptr [ebp - 0x10] */ 4792 ecx = MEM32(ebp + (-0x14)); /* 0x2B08416F: mov ecx, dword ptr [ebp - 0x14] */ 4793 PUSH32(esp, edx); /* 0x2B084172: push edx */ 4794 PUSH32(esp, 0x2000u); /* 0x2B084173: push 0x2000 */ 4795 PUSH32(esp, eax); /* 0x2B084178: push eax */ 4796 PUSH32(esp, ecx); /* 0x2B084179: push ecx */ 4797 PUSH32(esp, 0x6979u); /* 0x2B08417A: push 0x6979 */ 4798 PUSH32(esp, 0x2B0EE648u); /* 0x2B08417F: push 0x2b0ee648 */ 4799 PUSH32(esp, 5); /* 0x2B084184: push 5 */ 4800 ecx = edi; /* 0x2B084186: mov ecx, edi */ 4801 RECOMP_ICALL(MEM32(0x2B0B5950)); /* 0x2B084188: call dword ptr [0x2b0b5950] */ 4802 RECOMP_FLAGS_IN(); 4803 MEM32(edi) = 0x2B0B6878u; /* 0x2B08418E: mov dword ptr [edi], 0x2b0b6878 */ 4804 ecx = edi; /* 0x2B084194: mov ecx, edi */ 4805 goto L_2B08419A; /* 0x2B084196: jmp 0x2b08419a */ 4806 L_2B084198: 4807 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4808 ecx = 0; /* 0x2B084198: xor ecx, ecx */ 4809 _cf = 0; 4810 _flag_k = FK_TEST; 4811 L_2B08419A: 4812 PUSH32(esp, 0x00FFFFFFu); /* 0x2B08419A: push 0xffffff */ 4813 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B08419F: mov dword ptr [ebp - 4], 0xffffffff */ 4814 MEM32(ebx + 0x44) = ecx; /* 0x2B0841A6: mov dword ptr [ebx + 0x44], ecx */ 4815 RECOMP_ICALL(MEM32(0x2B0B5858)); /* 0x2B0841A9: call dword ptr [0x2b0b5858] */ 4816 RECOMP_FLAGS_IN(); 4817 PUSH32(esp, 0x9Cu); /* 0x2B0841AF: push 0x9c */ 4818 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0841B4: call 0x2b0ab212 */ /* not lifted */ 4819 RECOMP_FLAGS_IN(); 4820 edi = eax; /* 0x2B0841B9: mov edi, eax */ 4821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4823 esp = esp + 4; /* 0x2B0841BB: add esp, 4 */ 4824 _flag_k = FK_ADD; 4825 MEM32(ebp + 0x8) = edi; /* 0x2B0841BE: mov dword ptr [ebp + 8], edi */ 4826 /* cmp edi, esi */ /* 0x2B0841C1: cmp edi, esi */ 4827 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4829 _flag_k = FK_CMP; 4830 MEM32(ebp + (-0x4)) = 4; /* 0x2B0841C3: mov dword ptr [ebp - 4], 4 */ 4831 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0841F8; /* 0x2B0841CA: je 0x2b0841f8 */ 4832 L_2B0841CC: 4833 edx = MEM32(ebx + 0x20); /* 0x2B0841CC: mov edx, dword ptr [ebx + 0x20] */ 4834 eax = MEM32(ebx + 0x1C); /* 0x2B0841CF: mov eax, dword ptr [ebx + 0x1c] */ 4835 ecx = MEM32(ebp + (-0x10)); /* 0x2B0841D2: mov ecx, dword ptr [ebp - 0x10] */ 4836 PUSH32(esp, esi); /* 0x2B0841D5: push esi */ 4837 PUSH32(esp, 4); /* 0x2B0841D6: push 4 */ 4838 PUSH32(esp, esi); /* 0x2B0841D8: push esi */ 4839 PUSH32(esp, 0x6978u); /* 0x2B0841D9: push 0x6978 */ 4840 PUSH32(esp, esi); /* 0x2B0841DE: push esi */ 4841 PUSH32(esp, esi); /* 0x2B0841DF: push esi */ 4842 PUSH32(esp, esi); /* 0x2B0841E0: push esi */ 4843 PUSH32(esp, edx); /* 0x2B0841E1: push edx */ 4844 edx = MEM32(ebp + (-0x14)); /* 0x2B0841E2: mov edx, dword ptr [ebp - 0x14] */ 4845 PUSH32(esp, eax); /* 0x2B0841E5: push eax */ 4846 PUSH32(esp, ecx); /* 0x2B0841E6: push ecx */ 4847 PUSH32(esp, edx); /* 0x2B0841E7: push edx */ 4848 ecx = edi; /* 0x2B0841E8: mov ecx, edi */ 4849 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B0841EA: call dword ptr [0x2b0b5af0] */ 4850 RECOMP_FLAGS_IN(); 4851 MEM32(edi) = 0x2B0B642Cu; /* 0x2B0841F0: mov dword ptr [edi], 0x2b0b642c */ 4852 goto L_2B0841FA; /* 0x2B0841F6: jmp 0x2b0841fa */ 4853 L_2B0841F8: 4854 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4855 edi = 0; /* 0x2B0841F8: xor edi, edi */ 4856 _cf = 0; 4857 _flag_k = FK_TEST; 4858 L_2B0841FA: 4859 eax = 0x10u; /* 0x2B0841FA: mov eax, 0x10 */ 4860 PUSH32(esp, 2); /* 0x2B0841FF: push 2 */ 4861 PUSH32(esp, 9); /* 0x2B084201: push 9 */ 4862 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B084203: mov dword ptr [ebp - 4], 0xffffffff */ 4863 MEM32(ebx + 0x34) = edi; /* 0x2B08420A: mov dword ptr [ebx + 0x34], edi */ 4864 MEM32(ebx + 0x2C) = eax; /* 0x2B08420D: mov dword ptr [ebx + 0x2c], eax */ 4865 MEM32(ebx + 0x30) = 4; /* 0x2B084210: mov dword ptr [ebx + 0x30], 4 */ 4866 MEM32(ebp + (-0x24)) = eax; /* 0x2B084217: mov dword ptr [ebp - 0x24], eax */ 4867 MEM32(ebp + (-0x20)) = eax; /* 0x2B08421A: mov dword ptr [ebp - 0x20], eax */ 4868 MEM32(ebp + (-0x3C)) = esi; /* 0x2B08421D: mov dword ptr [ebp - 0x3c], esi */ 4869 MEM32(ebp + (-0x38)) = esi; /* 0x2B084220: mov dword ptr [ebp - 0x38], esi */ 4870 MEM32(ebp + (-0x34)) = eax; /* 0x2B084223: mov dword ptr [ebp - 0x34], eax */ 4871 MEM32(ebp + (-0x30)) = eax; /* 0x2B084226: mov dword ptr [ebp - 0x30], eax */ 4872 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B084229: call dword ptr [0x2b0b5f80] */ 4873 RECOMP_FLAGS_IN(); 4874 ecx = eax; /* 0x2B08422F: mov ecx, eax */ 4875 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B084231: call dword ptr [0x2b0b5fbc] */ 4876 RECOMP_FLAGS_IN(); 4877 PUSH32(esp, 0x50u); /* 0x2B084237: push 0x50 */ 4878 edi = eax; /* 0x2B084239: mov edi, eax */ 4879 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08423B: call 0x2b0ab212 */ /* not lifted */ 4880 RECOMP_FLAGS_IN(); 4881 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4883 esp = esp + 4; /* 0x2B084240: add esp, 4 */ 4884 _flag_k = FK_ADD; 4885 MEM32(ebp + 0x8) = eax; /* 0x2B084243: mov dword ptr [ebp + 8], eax */ 4886 /* cmp eax, esi */ /* 0x2B084246: cmp eax, esi */ 4887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4889 _flag_k = FK_CMP; 4890 MEM32(ebp + (-0x4)) = 5; /* 0x2B084248: mov dword ptr [ebp - 4], 5 */ 4891 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B084277; /* 0x2B08424F: je 0x2b084277 */ 4892 L_2B084251: 4893 PUSH32(esp, esi); /* 0x2B084251: push esi */ 4894 PUSH32(esp, 0x3F800000u); /* 0x2B084252: push 0x3f800000 */ 4895 PUSH32(esp, 0x3F800000u); /* 0x2B084257: push 0x3f800000 */ 4896 PUSH32(esp, 0x6978u); /* 0x2B08425C: push 0x6978 */ 4897 ecx = ebp + (-0x14); /* 0x2B084261: lea ecx, [ebp - 0x14] */ 4898 PUSH32(esp, ecx); /* 0x2B084264: push ecx */ 4899 edx = ebp + (-0x24); /* 0x2B084265: lea edx, [ebp - 0x24] */ 4900 PUSH32(esp, edx); /* 0x2B084268: push edx */ 4901 PUSH32(esp, 4); /* 0x2B084269: push 4 */ 4902 PUSH32(esp, 4); /* 0x2B08426B: push 4 */ 4903 ecx = eax; /* 0x2B08426D: mov ecx, eax */ 4904 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B08426F: call dword ptr [0x2b0b5bd8] */ 4905 RECOMP_FLAGS_IN(); 4906 goto L_2B084279; /* 0x2B084275: jmp 0x2b084279 */ 4907 L_2B084277: 4908 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4909 eax = 0; /* 0x2B084277: xor eax, eax */ 4910 _cf = 0; 4911 _flag_k = FK_TEST; 4912 L_2B084279: 4913 PUSH32(esp, 1); /* 0x2B084279: push 1 */ 4914 MEM32(ebx + 0x4C) = eax; /* 0x2B08427B: mov dword ptr [ebx + 0x4c], eax */ 4915 eax = MEM32(eax + 0x28); /* 0x2B08427E: mov eax, dword ptr [eax + 0x28] */ 4916 PUSH32(esp, esi); /* 0x2B084281: push esi */ 4917 PUSH32(esp, esi); /* 0x2B084282: push esi */ 4918 ecx = eax; /* 0x2B084283: mov ecx, eax */ 4919 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B084285: mov dword ptr [ebp - 4], 0xffffffff */ 4920 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B08428C: call dword ptr [0x2b0b564c] */ 4921 RECOMP_FLAGS_IN(); 4922 eax = MEM32(ebx + 0x4C); /* 0x2B084292: mov eax, dword ptr [ebx + 0x4c] */ 4923 ecx = MEM32(eax + 0x28); /* 0x2B084295: mov ecx, dword ptr [eax + 0x28] */ 4924 PUSH32(esp, 0xFF00u); /* 0x2B084298: push 0xff00 */ 4925 PUSH32(esp, edi); /* 0x2B08429D: push edi */ 4926 edx = ebp + (-0x14); /* 0x2B08429E: lea edx, [ebp - 0x14] */ 4927 PUSH32(esp, edx); /* 0x2B0842A1: push edx */ 4928 eax = ebp + (-0x3C); /* 0x2B0842A2: lea eax, [ebp - 0x3c] */ 4929 PUSH32(esp, eax); /* 0x2B0842A5: push eax */ 4930 RECOMP_ICALL(MEM32(0x2B0B5554)); /* 0x2B0842A6: call dword ptr [0x2b0b5554] */ 4931 RECOMP_FLAGS_IN(); 4932 ecx = MEM32(ebx + 0x4C); /* 0x2B0842AC: mov ecx, dword ptr [ebx + 0x4c] */ 4933 RECOMP_ICALL(MEM32(0x2B0B5BDC)); /* 0x2B0842AF: call dword ptr [0x2b0b5bdc] */ 4934 RECOMP_FLAGS_IN(); 4935 PUSH32(esp, edi); /* 0x2B0842B5: push edi */ 4936 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B0842B6: call dword ptr [0x2b0b5f80] */ 4937 RECOMP_FLAGS_IN(); 4938 ecx = eax; /* 0x2B0842BC: mov ecx, eax */ 4939 RECOMP_ICALL(MEM32(0x2B0B5FB8)); /* 0x2B0842BE: call dword ptr [0x2b0b5fb8] */ 4940 RECOMP_FLAGS_IN(); 4941 PUSH32(esp, 0x9Cu); /* 0x2B0842C4: push 0x9c */ 4942 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0842C9: call 0x2b0ab212 */ /* not lifted */ 4943 RECOMP_FLAGS_IN(); 4944 edi = eax; /* 0x2B0842CE: mov edi, eax */ 4945 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4947 esp = esp + 4; /* 0x2B0842D0: add esp, 4 */ 4948 _flag_k = FK_ADD; 4949 MEM32(ebp + 0x8) = edi; /* 0x2B0842D3: mov dword ptr [ebp + 8], edi */ 4950 /* cmp edi, esi */ /* 0x2B0842D6: cmp edi, esi */ 4951 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4953 _flag_k = FK_CMP; 4954 MEM32(ebp + (-0x4)) = 6; /* 0x2B0842D8: mov dword ptr [ebp - 4], 6 */ 4955 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B084312; /* 0x2B0842DF: je 0x2b084312 */ 4956 L_2B0842E1: 4957 ecx = MEM32(ebx + 0x4C); /* 0x2B0842E1: mov ecx, dword ptr [ebx + 0x4c] */ 4958 edx = MEM32(ebp + (-0x20)); /* 0x2B0842E4: mov edx, dword ptr [ebp - 0x20] */ 4959 eax = MEM32(ebp + (-0x24)); /* 0x2B0842E7: mov eax, dword ptr [ebp - 0x24] */ 4960 PUSH32(esp, ecx); /* 0x2B0842EA: push ecx */ 4961 ecx = MEM32(ebp + (-0x10)); /* 0x2B0842EB: mov ecx, dword ptr [ebp - 0x10] */ 4962 PUSH32(esp, 4); /* 0x2B0842EE: push 4 */ 4963 PUSH32(esp, esi); /* 0x2B0842F0: push esi */ 4964 PUSH32(esp, 0x6979u); /* 0x2B0842F1: push 0x6979 */ 4965 PUSH32(esp, esi); /* 0x2B0842F6: push esi */ 4966 PUSH32(esp, esi); /* 0x2B0842F7: push esi */ 4967 PUSH32(esp, esi); /* 0x2B0842F8: push esi */ 4968 PUSH32(esp, edx); /* 0x2B0842F9: push edx */ 4969 edx = MEM32(ebp + (-0x14)); /* 0x2B0842FA: mov edx, dword ptr [ebp - 0x14] */ 4970 PUSH32(esp, eax); /* 0x2B0842FD: push eax */ 4971 PUSH32(esp, ecx); /* 0x2B0842FE: push ecx */ 4972 PUSH32(esp, edx); /* 0x2B0842FF: push edx */ 4973 ecx = edi; /* 0x2B084300: mov ecx, edi */ 4974 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B084302: call dword ptr [0x2b0b5af0] */ 4975 RECOMP_FLAGS_IN(); 4976 MEM32(edi) = 0x2B0B642Cu; /* 0x2B084308: mov dword ptr [edi], 0x2b0b642c */ 4977 eax = edi; /* 0x2B08430E: mov eax, edi */ 4978 goto L_2B084314; /* 0x2B084310: jmp 0x2b084314 */ 4979 L_2B084312: 4980 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4981 eax = 0; /* 0x2B084312: xor eax, eax */ 4982 _cf = 0; 4983 _flag_k = FK_TEST; 4984 L_2B084314: 4985 MEM32(ebx + 0x70) = eax; /* 0x2B084314: mov dword ptr [ebx + 0x70], eax */ 4986 MEM32(eax + 0x7C) = 0x2B084ED0u; /* 0x2B084317: mov dword ptr [eax + 0x7c], 0x2b084ed0 */ 4987 MEM32(eax + 0x80) = ebx; /* 0x2B08431E: mov dword ptr [eax + 0x80], ebx */ 4988 MEM8(eax + 0x24) = (uint8_t)(1); /* 0x2B084324: mov byte ptr [eax + 0x24], 1 */ 4989 MEM8(eax + 0x25) = (uint8_t)(1); /* 0x2B084328: mov byte ptr [eax + 0x25], 1 */ 4990 ecx = MEM32(ebp + (-0x24)); /* 0x2B08432C: mov ecx, dword ptr [ebp - 0x24] */ 4991 eax = MEM32(ebx + 0x2C); /* 0x2B08432F: mov eax, dword ptr [ebx + 0x2c] */ 4992 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4994 ecx = ecx + eax; /* 0x2B084332: add ecx, eax */ 4995 _flag_k = FK_ADD; 4996 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 4997 edi = edi | 0xFFFFFFFFu; /* 0x2B084334: or edi, 0xffffffff */ 4998 _cf = 0; 4999 _flag_k = FK_TEST; 5000 PUSH32(esp, 0x50u); /* 0x2B084337: push 0x50 */ 5001 MEM32(ebp + (-0x4)) = edi; /* 0x2B084339: mov dword ptr [ebp - 4], edi */ 5002 MEM32(ebp + (-0x24)) = ecx; /* 0x2B08433C: mov dword ptr [ebp - 0x24], ecx */ 5003 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08433F: call 0x2b0ab212 */ /* not lifted */ 5004 RECOMP_FLAGS_IN(); 5005 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5006 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5007 esp = esp + 4; /* 0x2B084344: add esp, 4 */ 5008 _flag_k = FK_ADD; 5009 MEM32(ebp + 0x8) = eax; /* 0x2B084347: mov dword ptr [ebp + 8], eax */ 5010 /* cmp eax, esi */ /* 0x2B08434A: cmp eax, esi */ 5011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5013 _flag_k = FK_CMP; 5014 MEM32(ebp + (-0x4)) = 7; /* 0x2B08434C: mov dword ptr [ebp - 4], 7 */ 5015 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08437B; /* 0x2B084353: je 0x2b08437b */ 5016 L_2B084355: 5017 PUSH32(esp, esi); /* 0x2B084355: push esi */ 5018 PUSH32(esp, 0x3F800000u); /* 0x2B084356: push 0x3f800000 */ 5019 PUSH32(esp, 0x3F800000u); /* 0x2B08435B: push 0x3f800000 */ 5020 PUSH32(esp, 0x6978u); /* 0x2B084360: push 0x6978 */ 5021 ecx = ebp + (-0x14); /* 0x2B084365: lea ecx, [ebp - 0x14] */ 5022 PUSH32(esp, ecx); /* 0x2B084368: push ecx */ 5023 edx = ebp + (-0x24); /* 0x2B084369: lea edx, [ebp - 0x24] */ 5024 PUSH32(esp, edx); /* 0x2B08436C: push edx */ 5025 PUSH32(esp, 5); /* 0x2B08436D: push 5 */ 5026 PUSH32(esp, 4); /* 0x2B08436F: push 4 */ 5027 ecx = eax; /* 0x2B084371: mov ecx, eax */ 5028 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B084373: call dword ptr [0x2b0b5bd8] */ 5029 RECOMP_FLAGS_IN(); 5030 goto L_2B08437D; /* 0x2B084379: jmp 0x2b08437d */ 5031 L_2B08437B: 5032 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5033 eax = 0; /* 0x2B08437B: xor eax, eax */ 5034 _cf = 0; 5035 _flag_k = FK_TEST; 5036 L_2B08437D: 5037 PUSH32(esp, 1); /* 0x2B08437D: push 1 */ 5038 MEM32(ebx + 0x50) = eax; /* 0x2B08437F: mov dword ptr [ebx + 0x50], eax */ 5039 eax = MEM32(eax + 0x28); /* 0x2B084382: mov eax, dword ptr [eax + 0x28] */ 5040 PUSH32(esp, esi); /* 0x2B084385: push esi */ 5041 PUSH32(esp, esi); /* 0x2B084386: push esi */ 5042 ecx = eax; /* 0x2B084387: mov ecx, eax */ 5043 MEM32(ebp + (-0x4)) = edi; /* 0x2B084389: mov dword ptr [ebp - 4], edi */ 5044 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B08438C: call dword ptr [0x2b0b564c] */ 5045 RECOMP_FLAGS_IN(); 5046 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5047 eax = 0; /* 0x2B084392: xor eax, eax */ 5048 _cf = 0; 5049 _flag_k = FK_TEST; 5050 ecx = 0xCu; /* 0x2B084394: mov ecx, 0xc */ 5051 edi = ebp + (-0x94); /* 0x2B084399: lea edi, [ebp - 0x94] */ 5052 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08439F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 5053 eax = MEM32(ebx + 0x2C); /* 0x2B0843A1: mov eax, dword ptr [ebx + 0x2c] */ 5054 PUSH32(esp, 0xBCu); /* 0x2B0843A4: push 0xbc */ 5055 MEM32(ebp + (-0x84)) = eax; /* 0x2B0843A9: mov dword ptr [ebp - 0x84], eax */ 5056 MEM32(ebp + (-0x88)) = 0x2B0E6EE8u; /* 0x2B0843AF: mov dword ptr [ebp - 0x88], 0x2b0e6ee8 */ 5057 MEM32(ebp + (-0x7C)) = 0x6979u; /* 0x2B0843B9: mov dword ptr [ebp - 0x7c], 0x6979 */ 5058 MEM32(ebp + (-0x78)) = 0xAu; /* 0x2B0843C0: mov dword ptr [ebp - 0x78], 0xa */ 5059 MEM32(ebp + (-0x74)) = 0x69u; /* 0x2B0843C7: mov dword ptr [ebp - 0x74], 0x69 */ 5060 MEM32(ebp + (-0x70)) = 0x6Au; /* 0x2B0843CE: mov dword ptr [ebp - 0x70], 0x6a */ 5061 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0843D5: call 0x2b0ab212 */ /* not lifted */ 5062 RECOMP_FLAGS_IN(); 5063 edi = eax; /* 0x2B0843DA: mov edi, eax */ 5064 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5066 esp = esp + 4; /* 0x2B0843DC: add esp, 4 */ 5067 _flag_k = FK_ADD; 5068 MEM32(ebp + 0x8) = edi; /* 0x2B0843DF: mov dword ptr [ebp + 8], edi */ 5069 /* cmp edi, esi */ /* 0x2B0843E2: cmp edi, esi */ 5070 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 5071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5072 _flag_k = FK_CMP; 5073 MEM32(ebp + (-0x4)) = 8; /* 0x2B0843E4: mov dword ptr [ebp - 4], 8 */ 5074 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08440A; /* 0x2B0843EB: je 0x2b08440a */ 5075 L_2B0843ED: 5076 ecx = MEM32(ebx + 0x50); /* 0x2B0843ED: mov ecx, dword ptr [ebx + 0x50] */ 5077 PUSH32(esp, ecx); /* 0x2B0843F0: push ecx */ 5078 edx = ebp + (-0x94); /* 0x2B0843F1: lea edx, [ebp - 0x94] */ 5079 PUSH32(esp, edx); /* 0x2B0843F7: push edx */ 5080 ecx = edi; /* 0x2B0843F8: mov ecx, edi */ 5081 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B0843FA: call dword ptr [0x2b0b5afc] */ 5082 RECOMP_FLAGS_IN(); 5083 MEM32(edi) = 0x2B0B645Cu; /* 0x2B084400: mov dword ptr [edi], 0x2b0b645c */ 5084 ecx = edi; /* 0x2B084406: mov ecx, edi */ 5085 goto L_2B08440C; /* 0x2B084408: jmp 0x2b08440c */ 5086 L_2B08440A: 5087 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5088 ecx = 0; /* 0x2B08440A: xor ecx, ecx */ 5089 _cf = 0; 5090 _flag_k = FK_TEST; 5091 L_2B08440C: 5092 PUSH32(esp, ebx); /* 0x2B08440C: push ebx */ 5093 PUSH32(esp, 0x2B084F00u); /* 0x2B08440D: push 0x2b084f00 */ 5094 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B084412: mov dword ptr [ebp - 4], 0xffffffff */ 5095 MEM32(ebx + 0x6C) = ecx; /* 0x2B084419: mov dword ptr [ebx + 0x6c], ecx */ 5096 RECOMP_ICALL(MEM32(0x2B0B5AF8)); /* 0x2B08441C: call dword ptr [0x2b0b5af8] */ 5097 RECOMP_FLAGS_IN(); 5098 PUSH32(esp, 2); /* 0x2B084422: push 2 */ 5099 PUSH32(esp, 8); /* 0x2B084424: push 8 */ 5100 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B084426: call dword ptr [0x2b0b5f80] */ 5101 RECOMP_FLAGS_IN(); 5102 ecx = eax; /* 0x2B08442C: mov ecx, eax */ 5103 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B08442E: call dword ptr [0x2b0b5fbc] */ 5104 RECOMP_FLAGS_IN(); 5105 PUSH32(esp, 0xD8u); /* 0x2B084434: push 0xd8 */ 5106 MEM32(ebp + 0x8) = eax; /* 0x2B084439: mov dword ptr [ebp + 8], eax */ 5107 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08443C: call 0x2b0ab212 */ /* not lifted */ 5108 RECOMP_FLAGS_IN(); 5109 edi = eax; /* 0x2B084441: mov edi, eax */ 5110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5112 esp = esp + 4; /* 0x2B084443: add esp, 4 */ 5113 _flag_k = FK_ADD; 5114 MEM32(ebp + (-0x18)) = edi; /* 0x2B084446: mov dword ptr [ebp - 0x18], edi */ 5115 /* cmp edi, esi */ /* 0x2B084449: cmp edi, esi */ 5116 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 5117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5118 _flag_k = FK_CMP; 5119 MEM32(ebp + (-0x4)) = 9; /* 0x2B08444B: mov dword ptr [ebp - 4], 9 */ 5120 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B084488; /* 0x2B084452: je 0x2b084488 */ 5121 L_2B084454: 5122 edx = MEM32(ebp + 0x8); /* 0x2B084454: mov edx, dword ptr [ebp + 8] */ 5123 eax = ebp + 0xC; /* 0x2B084457: lea eax, [ebp + 0xc] */ 5124 PUSH32(esp, eax); /* 0x2B08445A: push eax */ 5125 ecx = ebp + 0x10; /* 0x2B08445B: lea ecx, [ebp + 0x10] */ 5126 PUSH32(esp, ecx); /* 0x2B08445E: push ecx */ 5127 PUSH32(esp, esi); /* 0x2B08445F: push esi */ 5128 PUSH32(esp, 0x6978u); /* 0x2B084460: push 0x6978 */ 5129 PUSH32(esp, edx); /* 0x2B084465: push edx */ 5130 eax = ebp + (-0x14); /* 0x2B084466: lea eax, [ebp - 0x14] */ 5131 PUSH32(esp, eax); /* 0x2B084469: push eax */ 5132 ecx = edi; /* 0x2B08446A: mov ecx, edi */ 5133 MEM32(ebp + 0xC) = 0x3F800000u; /* 0x2B08446C: mov dword ptr [ebp + 0xc], 0x3f800000 */ 5134 MEM32(ebp + 0x10) = 0x3F800000u; /* 0x2B084473: mov dword ptr [ebp + 0x10], 0x3f800000 */ 5135 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B08447A: call dword ptr [0x2b0b5654] */ 5136 RECOMP_FLAGS_IN(); 5137 MEM32(edi) = 0x2B0B618Cu; /* 0x2B084480: mov dword ptr [edi], 0x2b0b618c */ 5138 goto L_2B08448A; /* 0x2B084486: jmp 0x2b08448a */ 5139 L_2B084488: 5140 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5141 edi = 0; /* 0x2B084488: xor edi, edi */ 5142 _cf = 0; 5143 _flag_k = FK_TEST; 5144 L_2B08448A: 5145 PUSH32(esp, 2); /* 0x2B08448A: push 2 */ 5146 PUSH32(esp, 7); /* 0x2B08448C: push 7 */ 5147 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B08448E: mov dword ptr [ebp - 4], 0xffffffff */ 5148 MEM32(ebx + 0x54) = edi; /* 0x2B084495: mov dword ptr [ebx + 0x54], edi */ 5149 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B084498: call dword ptr [0x2b0b5f80] */ 5150 RECOMP_FLAGS_IN(); 5151 ecx = eax; /* 0x2B08449E: mov ecx, eax */ 5152 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B0844A0: call dword ptr [0x2b0b5fbc] */ 5153 RECOMP_FLAGS_IN(); 5154 PUSH32(esp, 0xD8u); /* 0x2B0844A6: push 0xd8 */ 5155 MEM32(ebp + 0x8) = eax; /* 0x2B0844AB: mov dword ptr [ebp + 8], eax */ 5156 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0844AE: call 0x2b0ab212 */ /* not lifted */ 5157 RECOMP_FLAGS_IN(); 5158 edi = eax; /* 0x2B0844B3: mov edi, eax */ 5159 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5160 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5161 esp = esp + 4; /* 0x2B0844B5: add esp, 4 */ 5162 _flag_k = FK_ADD; 5163 MEM32(ebp + (-0x18)) = edi; /* 0x2B0844B8: mov dword ptr [ebp - 0x18], edi */ 5164 /* cmp edi, esi */ /* 0x2B0844BB: cmp edi, esi */ 5165 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 5166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5167 _flag_k = FK_CMP; 5168 MEM32(ebp + (-0x4)) = 0xAu; /* 0x2B0844BD: mov dword ptr [ebp - 4], 0xa */ 5169 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0844FA; /* 0x2B0844C4: je 0x2b0844fa */ 5170 L_2B0844C6: 5171 eax = MEM32(ebp + 0x8); /* 0x2B0844C6: mov eax, dword ptr [ebp + 8] */ 5172 ecx = ebp + 0xC; /* 0x2B0844C9: lea ecx, [ebp + 0xc] */ 5173 PUSH32(esp, ecx); /* 0x2B0844CC: push ecx */ 5174 edx = ebp + 0x10; /* 0x2B0844CD: lea edx, [ebp + 0x10] */ 5175 PUSH32(esp, edx); /* 0x2B0844D0: push edx */ 5176 PUSH32(esp, esi); /* 0x2B0844D1: push esi */ 5177 PUSH32(esp, 0x6978u); /* 0x2B0844D2: push 0x6978 */ 5178 PUSH32(esp, eax); /* 0x2B0844D7: push eax */ 5179 ecx = ebp + (-0x14); /* 0x2B0844D8: lea ecx, [ebp - 0x14] */ 5180 PUSH32(esp, ecx); /* 0x2B0844DB: push ecx */ 5181 ecx = edi; /* 0x2B0844DC: mov ecx, edi */ 5182 MEM32(ebp + 0xC) = 0x3F800000u; /* 0x2B0844DE: mov dword ptr [ebp + 0xc], 0x3f800000 */ 5183 MEM32(ebp + 0x10) = 0x3F800000u; /* 0x2B0844E5: mov dword ptr [ebp + 0x10], 0x3f800000 */ 5184 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B0844EC: call dword ptr [0x2b0b5654] */ 5185 RECOMP_FLAGS_IN(); 5186 MEM32(edi) = 0x2B0B618Cu; /* 0x2B0844F2: mov dword ptr [edi], 0x2b0b618c */ 5187 goto L_2B0844FC; /* 0x2B0844F8: jmp 0x2b0844fc */ 5188 L_2B0844FA: 5189 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5190 edi = 0; /* 0x2B0844FA: xor edi, edi */ 5191 _cf = 0; 5192 _flag_k = FK_TEST; 5193 L_2B0844FC: 5194 PUSH32(esp, 2); /* 0x2B0844FC: push 2 */ 5195 PUSH32(esp, 6); /* 0x2B0844FE: push 6 */ 5196 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B084500: mov dword ptr [ebp - 4], 0xffffffff */ 5197 MEM32(ebx + 0x58) = edi; /* 0x2B084507: mov dword ptr [ebx + 0x58], edi */ 5198 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B08450A: call dword ptr [0x2b0b5f80] */ 5199 RECOMP_FLAGS_IN(); 5200 ecx = eax; /* 0x2B084510: mov ecx, eax */ 5201 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B084512: call dword ptr [0x2b0b5fbc] */ 5202 RECOMP_FLAGS_IN(); 5203 PUSH32(esp, 0xD8u); /* 0x2B084518: push 0xd8 */ 5204 MEM32(ebp + 0x8) = eax; /* 0x2B08451D: mov dword ptr [ebp + 8], eax */ 5205 RECOMP_ICALL(0x2B0AB212u); /* 0x2B084520: call 0x2b0ab212 */ /* not lifted */ 5206 RECOMP_FLAGS_IN(); 5207 edi = eax; /* 0x2B084525: mov edi, eax */ 5208 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5210 esp = esp + 4; /* 0x2B084527: add esp, 4 */ 5211 _flag_k = FK_ADD; 5212 MEM32(ebp + (-0x18)) = edi; /* 0x2B08452A: mov dword ptr [ebp - 0x18], edi */ 5213 /* cmp edi, esi */ /* 0x2B08452D: cmp edi, esi */ 5214 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 5215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5216 _flag_k = FK_CMP; 5217 MEM32(ebp + (-0x4)) = 0xBu; /* 0x2B08452F: mov dword ptr [ebp - 4], 0xb */ 5218 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08456C; /* 0x2B084536: je 0x2b08456c */ 5219 L_2B084538: 5220 ecx = MEM32(ebp + 0x8); /* 0x2B084538: mov ecx, dword ptr [ebp + 8] */ 5221 edx = ebp + 0xC; /* 0x2B08453B: lea edx, [ebp + 0xc] */ 5222 PUSH32(esp, edx); /* 0x2B08453E: push edx */ 5223 eax = ebp + 0x10; /* 0x2B08453F: lea eax, [ebp + 0x10] */ 5224 PUSH32(esp, eax); /* 0x2B084542: push eax */ 5225 PUSH32(esp, esi); /* 0x2B084543: push esi */ 5226 PUSH32(esp, 0x6978u); /* 0x2B084544: push 0x6978 */ 5227 PUSH32(esp, ecx); /* 0x2B084549: push ecx */ 5228 edx = ebp + (-0x14); /* 0x2B08454A: lea edx, [ebp - 0x14] */ 5229 PUSH32(esp, edx); /* 0x2B08454D: push edx */ 5230 ecx = edi; /* 0x2B08454E: mov ecx, edi */ 5231 MEM32(ebp + 0xC) = 0x3F800000u; /* 0x2B084550: mov dword ptr [ebp + 0xc], 0x3f800000 */ 5232 MEM32(ebp + 0x10) = 0x3F800000u; /* 0x2B084557: mov dword ptr [ebp + 0x10], 0x3f800000 */ 5233 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B08455E: call dword ptr [0x2b0b5654] */ 5234 RECOMP_FLAGS_IN(); 5235 MEM32(edi) = 0x2B0B618Cu; /* 0x2B084564: mov dword ptr [edi], 0x2b0b618c */ 5236 goto L_2B08456E; /* 0x2B08456A: jmp 0x2b08456e */ 5237 L_2B08456C: 5238 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5239 edi = 0; /* 0x2B08456C: xor edi, edi */ 5240 _cf = 0; 5241 _flag_k = FK_TEST; 5242 L_2B08456E: 5243 PUSH32(esp, 2); /* 0x2B08456E: push 2 */ 5244 PUSH32(esp, 5); /* 0x2B084570: push 5 */ 5245 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B084572: mov dword ptr [ebp - 4], 0xffffffff */ 5246 MEM32(ebx + 0x5C) = edi; /* 0x2B084579: mov dword ptr [ebx + 0x5c], edi */ 5247 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B08457C: call dword ptr [0x2b0b5f80] */ 5248 RECOMP_FLAGS_IN(); 5249 ecx = eax; /* 0x2B084582: mov ecx, eax */ 5250 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B084584: call dword ptr [0x2b0b5fbc] */ 5251 RECOMP_FLAGS_IN(); 5252 PUSH32(esp, 0xD8u); /* 0x2B08458A: push 0xd8 */ 5253 MEM32(ebp + 0x8) = eax; /* 0x2B08458F: mov dword ptr [ebp + 8], eax */ 5254 RECOMP_ICALL(0x2B0AB212u); /* 0x2B084592: call 0x2b0ab212 */ /* not lifted */ 5255 RECOMP_FLAGS_IN(); 5256 edi = eax; /* 0x2B084597: mov edi, eax */ 5257 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5259 esp = esp + 4; /* 0x2B084599: add esp, 4 */ 5260 _flag_k = FK_ADD; 5261 MEM32(ebp + (-0x18)) = edi; /* 0x2B08459C: mov dword ptr [ebp - 0x18], edi */ 5262 /* cmp edi, esi */ /* 0x2B08459F: cmp edi, esi */ 5263 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 5264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5265 _flag_k = FK_CMP; 5266 MEM32(ebp + (-0x4)) = 0xCu; /* 0x2B0845A1: mov dword ptr [ebp - 4], 0xc */ 5267 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0845DE; /* 0x2B0845A8: je 0x2b0845de */ 5268 L_2B0845AA: 5269 edx = MEM32(ebp + 0x8); /* 0x2B0845AA: mov edx, dword ptr [ebp + 8] */ 5270 eax = ebp + 0xC; /* 0x2B0845AD: lea eax, [ebp + 0xc] */ 5271 PUSH32(esp, eax); /* 0x2B0845B0: push eax */ 5272 ecx = ebp + 0x10; /* 0x2B0845B1: lea ecx, [ebp + 0x10] */ 5273 PUSH32(esp, ecx); /* 0x2B0845B4: push ecx */ 5274 PUSH32(esp, esi); /* 0x2B0845B5: push esi */ 5275 PUSH32(esp, 0x6978u); /* 0x2B0845B6: push 0x6978 */ 5276 PUSH32(esp, edx); /* 0x2B0845BB: push edx */ 5277 eax = ebp + (-0x14); /* 0x2B0845BC: lea eax, [ebp - 0x14] */ 5278 PUSH32(esp, eax); /* 0x2B0845BF: push eax */ 5279 ecx = edi; /* 0x2B0845C0: mov ecx, edi */ 5280 MEM32(ebp + 0xC) = 0x3F800000u; /* 0x2B0845C2: mov dword ptr [ebp + 0xc], 0x3f800000 */ 5281 MEM32(ebp + 0x10) = 0x3F800000u; /* 0x2B0845C9: mov dword ptr [ebp + 0x10], 0x3f800000 */ 5282 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B0845D0: call dword ptr [0x2b0b5654] */ 5283 RECOMP_FLAGS_IN(); 5284 MEM32(edi) = 0x2B0B618Cu; /* 0x2B0845D6: mov dword ptr [edi], 0x2b0b618c */ 5285 goto L_2B0845E0; /* 0x2B0845DC: jmp 0x2b0845e0 */ 5286 L_2B0845DE: 5287 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5288 edi = 0; /* 0x2B0845DE: xor edi, edi */ 5289 _cf = 0; 5290 _flag_k = FK_TEST; 5291 L_2B0845E0: 5292 PUSH32(esp, 2); /* 0x2B0845E0: push 2 */ 5293 PUSH32(esp, 3); /* 0x2B0845E2: push 3 */ 5294 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B0845E4: mov dword ptr [ebp - 4], 0xffffffff */ 5295 MEM32(ebx + 0x60) = edi; /* 0x2B0845EB: mov dword ptr [ebx + 0x60], edi */ 5296 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B0845EE: call dword ptr [0x2b0b5f80] */ 5297 RECOMP_FLAGS_IN(); 5298 ecx = eax; /* 0x2B0845F4: mov ecx, eax */ 5299 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B0845F6: call dword ptr [0x2b0b5fbc] */ 5300 RECOMP_FLAGS_IN(); 5301 PUSH32(esp, 0xD8u); /* 0x2B0845FC: push 0xd8 */ 5302 MEM32(ebp + 0x8) = eax; /* 0x2B084601: mov dword ptr [ebp + 8], eax */ 5303 RECOMP_ICALL(0x2B0AB212u); /* 0x2B084604: call 0x2b0ab212 */ /* not lifted */ 5304 RECOMP_FLAGS_IN(); 5305 edi = eax; /* 0x2B084609: mov edi, eax */ 5306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5308 esp = esp + 4; /* 0x2B08460B: add esp, 4 */ 5309 _flag_k = FK_ADD; 5310 MEM32(ebp + (-0x18)) = edi; /* 0x2B08460E: mov dword ptr [ebp - 0x18], edi */ 5311 /* cmp edi, esi */ /* 0x2B084611: cmp edi, esi */ 5312 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 5313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5314 _flag_k = FK_CMP; 5315 MEM32(ebp + (-0x4)) = 0xDu; /* 0x2B084613: mov dword ptr [ebp - 4], 0xd */ 5316 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B084650; /* 0x2B08461A: je 0x2b084650 */ 5317 L_2B08461C: 5318 eax = MEM32(ebp + 0x8); /* 0x2B08461C: mov eax, dword ptr [ebp + 8] */ 5319 ecx = ebp + 0xC; /* 0x2B08461F: lea ecx, [ebp + 0xc] */ 5320 PUSH32(esp, ecx); /* 0x2B084622: push ecx */ 5321 edx = ebp + 0x10; /* 0x2B084623: lea edx, [ebp + 0x10] */ 5322 PUSH32(esp, edx); /* 0x2B084626: push edx */ 5323 PUSH32(esp, esi); /* 0x2B084627: push esi */ 5324 PUSH32(esp, 0x6978u); /* 0x2B084628: push 0x6978 */ 5325 PUSH32(esp, eax); /* 0x2B08462D: push eax */ 5326 ecx = ebp + (-0x14); /* 0x2B08462E: lea ecx, [ebp - 0x14] */ 5327 PUSH32(esp, ecx); /* 0x2B084631: push ecx */ 5328 ecx = edi; /* 0x2B084632: mov ecx, edi */ 5329 MEM32(ebp + 0xC) = 0x3F800000u; /* 0x2B084634: mov dword ptr [ebp + 0xc], 0x3f800000 */ 5330 MEM32(ebp + 0x10) = 0x3F800000u; /* 0x2B08463B: mov dword ptr [ebp + 0x10], 0x3f800000 */ 5331 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B084642: call dword ptr [0x2b0b5654] */ 5332 RECOMP_FLAGS_IN(); 5333 MEM32(edi) = 0x2B0B618Cu; /* 0x2B084648: mov dword ptr [edi], 0x2b0b618c */ 5334 goto L_2B084652; /* 0x2B08464E: jmp 0x2b084652 */ 5335 L_2B084650: 5336 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5337 edi = 0; /* 0x2B084650: xor edi, edi */ 5338 _cf = 0; 5339 _flag_k = FK_TEST; 5340 L_2B084652: 5341 PUSH32(esp, 2); /* 0x2B084652: push 2 */ 5342 PUSH32(esp, 4); /* 0x2B084654: push 4 */ 5343 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B084656: mov dword ptr [ebp - 4], 0xffffffff */ 5344 MEM32(ebx + 0x64) = edi; /* 0x2B08465D: mov dword ptr [ebx + 0x64], edi */ 5345 RECOMP_ICALL(MEM32(0x2B0B5F80)); /* 0x2B084660: call dword ptr [0x2b0b5f80] */ 5346 RECOMP_FLAGS_IN(); 5347 ecx = eax; /* 0x2B084666: mov ecx, eax */ 5348 RECOMP_ICALL(MEM32(0x2B0B5FBC)); /* 0x2B084668: call dword ptr [0x2b0b5fbc] */ 5349 RECOMP_FLAGS_IN(); 5350 PUSH32(esp, 0xD8u); /* 0x2B08466E: push 0xd8 */ 5351 MEM32(ebp + 0x8) = eax; /* 0x2B084673: mov dword ptr [ebp + 8], eax */ 5352 RECOMP_ICALL(0x2B0AB212u); /* 0x2B084676: call 0x2b0ab212 */ /* not lifted */ 5353 RECOMP_FLAGS_IN(); 5354 edi = eax; /* 0x2B08467B: mov edi, eax */ 5355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5357 esp = esp + 4; /* 0x2B08467D: add esp, 4 */ 5358 _flag_k = FK_ADD; 5359 MEM32(ebp + 0xC) = edi; /* 0x2B084680: mov dword ptr [ebp + 0xc], edi */ 5360 /* cmp edi, esi */ /* 0x2B084683: cmp edi, esi */ 5361 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 5362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5363 _flag_k = FK_CMP; 5364 MEM32(ebp + (-0x4)) = 0xEu; /* 0x2B084685: mov dword ptr [ebp - 4], 0xe */ 5365 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0846C4; /* 0x2B08468C: je 0x2b0846c4 */ 5366 L_2B08468E: 5367 ecx = MEM32(ebp + 0x8); /* 0x2B08468E: mov ecx, dword ptr [ebp + 8] */ 5368 edx = ebp + (-0x2C); /* 0x2B084691: lea edx, [ebp - 0x2c] */ 5369 PUSH32(esp, edx); /* 0x2B084694: push edx */ 5370 eax = ebp + (-0x18); /* 0x2B084695: lea eax, [ebp - 0x18] */ 5371 PUSH32(esp, eax); /* 0x2B084698: push eax */ 5372 PUSH32(esp, esi); /* 0x2B084699: push esi */ 5373 PUSH32(esp, 0x6978u); /* 0x2B08469A: push 0x6978 */ 5374 PUSH32(esp, ecx); /* 0x2B08469F: push ecx */ 5375 edx = ebp + (-0x14); /* 0x2B0846A0: lea edx, [ebp - 0x14] */ 5376 PUSH32(esp, edx); /* 0x2B0846A3: push edx */ 5377 ecx = edi; /* 0x2B0846A4: mov ecx, edi */ 5378 MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x2B0846A6: mov dword ptr [ebp - 0x2c], 0x3f800000 */ 5379 MEM32(ebp + (-0x18)) = 0x3F800000u; /* 0x2B0846AD: mov dword ptr [ebp - 0x18], 0x3f800000 */ 5380 RECOMP_ICALL(MEM32(0x2B0B5654)); /* 0x2B0846B4: call dword ptr [0x2b0b5654] */ 5381 RECOMP_FLAGS_IN(); 5382 MEM32(edi) = 0x2B0B618Cu; /* 0x2B0846BA: mov dword ptr [edi], 0x2b0b618c */ 5383 eax = edi; /* 0x2B0846C0: mov eax, edi */ 5384 goto L_2B0846C6; /* 0x2B0846C2: jmp 0x2b0846c6 */ 5385 L_2B0846C4: 5386 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5387 eax = 0; /* 0x2B0846C4: xor eax, eax */ 5388 _cf = 0; 5389 _flag_k = FK_TEST; 5390 L_2B0846C6: 5391 edx = MEM32(ebx + 0x24); /* 0x2B0846C6: mov edx, dword ptr [ebx + 0x24] */ 5392 MEM32(ebx + 0x68) = eax; /* 0x2B0846C9: mov dword ptr [ebx + 0x68], eax */ 5393 eax = MEM32(ebx + 0x30); /* 0x2B0846CC: mov eax, dword ptr [ebx + 0x30] */ 5394 ecx = eax + eax + 0xC; /* 0x2B0846CF: lea ecx, [eax + eax + 0xc] */ 5395 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5397 edx = edx - ecx; /* 0x2B0846D3: sub edx, ecx */ 5398 _flag_k = FK_CMP; 5399 ecx = MEM32(ebx + 0x8); /* 0x2B0846D5: mov ecx, dword ptr [ebx + 8] */ 5400 eax = 1; /* 0x2B0846D8: mov eax, 1 */ 5401 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 5402 edi = edi | 0xFFFFFFFFu; /* 0x2B0846DD: or edi, 0xffffffff */ 5403 _cf = 0; 5404 _flag_k = FK_TEST; 5405 /* cmp ecx, eax */ /* 0x2B0846E0: cmp ecx, eax */ 5406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5408 _flag_k = FK_CMP; 5409 MEM32(ebp + (-0x4)) = edi; /* 0x2B0846E2: mov dword ptr [ebp - 4], edi */ 5410 MEM32(ebp + (-0x64)) = esi; /* 0x2B0846E5: mov dword ptr [ebp - 0x64], esi */ 5411 MEM32(ebp + (-0x60)) = esi; /* 0x2B0846E8: mov dword ptr [ebp - 0x60], esi */ 5412 MEM32(ebp + (-0x5C)) = edx; /* 0x2B0846EB: mov dword ptr [ebp - 0x5c], edx */ 5413 MEM32(ebp + (-0x58)) = eax; /* 0x2B0846EE: mov dword ptr [ebp - 0x58], eax */ 5414 MEM32(ebp + (-0x54)) = 0xCu; /* 0x2B0846F1: mov dword ptr [ebp - 0x54], 0xc */ 5415 MEM32(ebp + (-0x50)) = eax; /* 0x2B0846F8: mov dword ptr [ebp - 0x50], eax */ 5416 MEM32(ebp + (-0x4C)) = eax; /* 0x2B0846FB: mov dword ptr [ebp - 0x4c], eax */ 5417 MEM32(ebp + (-0x48)) = 5; /* 0x2B0846FE: mov dword ptr [ebp - 0x48], 5 */ 5418 MEM32(ebp + (-0x44)) = 0x697Au; /* 0x2B084705: mov dword ptr [ebp - 0x44], 0x697a */ 5419 MEM32(ebp + (-0x40)) = esi; /* 0x2B08470C: mov dword ptr [ebp - 0x40], esi */ 5420 if (CMP_NE(_flag_a, _flag_b)) goto L_2B084718; /* 0x2B08470F: jne 0x2b084718 */ 5421 L_2B084711: 5422 MEM32(ebp + (-0x40)) = 0x200u; /* 0x2B084711: mov dword ptr [ebp - 0x40], 0x200 */ 5423 L_2B084718: 5424 PUSH32(esp, 0x10u); /* 0x2B084718: push 0x10 */ 5425 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08471A: call 0x2b0ab212 */ /* not lifted */ 5426 RECOMP_FLAGS_IN(); 5427 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5428 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5429 esp = esp + 4; /* 0x2B08471F: add esp, 4 */ 5430 _flag_k = FK_ADD; 5431 MEM32(ebp + 0x8) = eax; /* 0x2B084722: mov dword ptr [ebp + 8], eax */ 5432 /* cmp eax, esi */ /* 0x2B084725: cmp eax, esi */ 5433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5435 _flag_k = FK_CMP; 5436 MEM32(ebp + (-0x4)) = 0xFu; /* 0x2B084727: mov dword ptr [ebp - 4], 0xf */ 5437 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08473F; /* 0x2B08472E: je 0x2b08473f */ 5438 L_2B084730: 5439 PUSH32(esp, esi); /* 0x2B084730: push esi */ 5440 ecx = ebp + (-0x64); /* 0x2B084731: lea ecx, [ebp - 0x64] */ 5441 PUSH32(esp, ecx); /* 0x2B084734: push ecx */ 5442 ecx = eax; /* 0x2B084735: mov ecx, eax */ 5443 RECOMP_ICALL(MEM32(0x2B0B5B54)); /* 0x2B084737: call dword ptr [0x2b0b5b54] */ 5444 RECOMP_FLAGS_IN(); 5445 goto L_2B084741; /* 0x2B08473D: jmp 0x2b084741 */ 5446 L_2B08473F: 5447 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5448 eax = 0; /* 0x2B08473F: xor eax, eax */ 5449 _cf = 0; 5450 _flag_k = FK_TEST; 5451 L_2B084741: 5452 MEM32(ebx + 0x48) = eax; /* 0x2B084741: mov dword ptr [ebx + 0x48], eax */ 5453 ecx = MEM32(eax + 0x8); /* 0x2B084744: mov ecx, dword ptr [eax + 8] */ 5454 PUSH32(esp, 0x00444466u); /* 0x2B084747: push 0x444466 */ 5455 MEM32(ebp + (-0x4)) = edi; /* 0x2B08474C: mov dword ptr [ebp - 4], edi */ 5456 RECOMP_ICALL(MEM32(0x2B0B5B5C)); /* 0x2B08474F: call dword ptr [0x2b0b5b5c] */ 5457 RECOMP_FLAGS_IN(); 5458 edx = MEM32(ebx + 0x48); /* 0x2B084755: mov edx, dword ptr [ebx + 0x48] */ 5459 eax = MEM32(edx + 0x8); /* 0x2B084758: mov eax, dword ptr [edx + 8] */ 5460 ecx = ebx; /* 0x2B08475B: mov ecx, ebx */ 5461 MEM32(eax + 0x8) = 0x2B084F20u; /* 0x2B08475D: mov dword ptr [eax + 8], 0x2b084f20 */ 5462 MEM32(eax + 0xC) = ebx; /* 0x2B084764: mov dword ptr [eax + 0xc], ebx */ 5463 RECOMP_ICALL(0x2B084B50u); /* 0x2B084767: call 0x2b084b50 */ /* not lifted */ 5464 RECOMP_FLAGS_IN(); 5465 ecx = MEM32(ebp + (-0xC)); /* 0x2B08476C: mov ecx, dword ptr [ebp - 0xc] */ 5466 edi = POP32_VAL(esp); /* 0x2B08476F: pop edi */ 5467 esi = POP32_VAL(esp); /* 0x2B084770: pop esi */ 5468 eax = ebx; /* 0x2B084771: mov eax, ebx */ 5469 ebx = POP32_VAL(esp); /* 0x2B084773: pop ebx */ 5470 MEM32(FS_BASE + (0)) = ecx; /* 0x2B084774: mov dword ptr fs:[0], ecx */ 5471 esp = ebp; /* 0x2B08477B: mov esp, ebp */ 5472 ebp = POP32_VAL(esp); /* 0x2B08477D: pop ebp */ 5473 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B08477E: ret 0xc */ 5474 RECOMP_REGS_OUT(); 5475 } 5476 5477 void sub_2B084790(void) { 5478 int _fpu_cmp = 0; 5479 uint32_t _cf = 0; 5480 int _df = 1; 5481 uint32_t _flag_k = FK_NONE; 5482 uint32_t _flag_a = 0, _flag_b = 0; 5483 uint32_t _itail_tgt = 0; 5484 RECOMP_REGS_LOCALS 5485 RECOMP_ENTER(0x2B084790u); 5486 5487 L_2B084790: 5488 PUSH32(esp, ebx); /* 0x2B084790: push ebx */ 5489 PUSH32(esp, esi); /* 0x2B084791: push esi */ 5490 PUSH32(esp, edi); /* 0x2B084792: push edi */ 5491 PUSH32(esp, 0x97u); /* 0x2B084793: push 0x97 */ 5492 PUSH32(esp, 3); /* 0x2B084798: push 3 */ 5493 esi = ecx; /* 0x2B08479A: mov esi, ecx */ 5494 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B08479C: call dword ptr [0x2b0b53cc] */ 5495 RECOMP_FLAGS_IN(); 5496 ecx = eax; /* 0x2B0847A2: mov ecx, eax */ 5497 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B0847A4: call dword ptr [0x2b0b53c8] */ 5498 RECOMP_FLAGS_IN(); 5499 edi = MEM32(esi + 0x48); /* 0x2B0847AA: mov edi, dword ptr [esi + 0x48] */ 5500 /* test edi, edi */ /* 0x2B0847AD: test edi, edi */ 5501 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5502 _cf = 0; 5503 _flag_k = FK_TEST; 5504 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0847C2; /* 0x2B0847AF: je 0x2b0847c2 */ 5505 L_2B0847B1: 5506 ecx = edi; /* 0x2B0847B1: mov ecx, edi */ 5507 RECOMP_ICALL(MEM32(0x2B0B5B50)); /* 0x2B0847B3: call dword ptr [0x2b0b5b50] */ 5508 RECOMP_FLAGS_IN(); 5509 PUSH32(esp, edi); /* 0x2B0847B9: push edi */ 5510 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0847BA: call 0x2b0ab1ba */ /* not lifted */ 5511 RECOMP_FLAGS_IN(); 5512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5514 esp = esp + 4; /* 0x2B0847BF: add esp, 4 */ 5515 _flag_k = FK_ADD; 5516 L_2B0847C2: 5517 ecx = MEM32(esi + 0x34); /* 0x2B0847C2: mov ecx, dword ptr [esi + 0x34] */ 5518 /* test ecx, ecx */ /* 0x2B0847C5: test ecx, ecx */ 5519 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5520 _cf = 0; 5521 _flag_k = FK_TEST; 5522 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0847CF; /* 0x2B0847C7: je 0x2b0847cf */ 5523 L_2B0847C9: 5524 eax = MEM32(ecx); /* 0x2B0847C9: mov eax, dword ptr [ecx] */ 5525 PUSH32(esp, 1); /* 0x2B0847CB: push 1 */ 5526 RECOMP_ICALL(MEM32(eax)); /* 0x2B0847CD: call dword ptr [eax] */ 5527 RECOMP_FLAGS_IN(); 5528 L_2B0847CF: 5529 edi = MEM32(esi + 0xC); /* 0x2B0847CF: mov edi, dword ptr [esi + 0xc] */ 5530 /* test edi, edi */ /* 0x2B0847D2: test edi, edi */ 5531 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5532 _cf = 0; 5533 _flag_k = FK_TEST; 5534 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0847E7; /* 0x2B0847D4: je 0x2b0847e7 */ 5535 L_2B0847D6: 5536 ecx = edi; /* 0x2B0847D6: mov ecx, edi */ 5537 RECOMP_ICALL(MEM32(0x2B0B5B8C)); /* 0x2B0847D8: call dword ptr [0x2b0b5b8c] */ 5538 RECOMP_FLAGS_IN(); 5539 PUSH32(esp, edi); /* 0x2B0847DE: push edi */ 5540 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0847DF: call 0x2b0ab1ba */ /* not lifted */ 5541 RECOMP_FLAGS_IN(); 5542 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5544 esp = esp + 4; /* 0x2B0847E4: add esp, 4 */ 5545 _flag_k = FK_ADD; 5546 L_2B0847E7: 5547 edi = MEM32(esi + 0x10); /* 0x2B0847E7: mov edi, dword ptr [esi + 0x10] */ 5548 /* test edi, edi */ /* 0x2B0847EA: test edi, edi */ 5549 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5550 _cf = 0; 5551 _flag_k = FK_TEST; 5552 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0847FF; /* 0x2B0847EC: je 0x2b0847ff */ 5553 L_2B0847EE: 5554 ecx = edi; /* 0x2B0847EE: mov ecx, edi */ 5555 RECOMP_ICALL(MEM32(0x2B0B5B8C)); /* 0x2B0847F0: call dword ptr [0x2b0b5b8c] */ 5556 RECOMP_FLAGS_IN(); 5557 PUSH32(esp, edi); /* 0x2B0847F6: push edi */ 5558 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0847F7: call 0x2b0ab1ba */ /* not lifted */ 5559 RECOMP_FLAGS_IN(); 5560 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5561 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5562 esp = esp + 4; /* 0x2B0847FC: add esp, 4 */ 5563 _flag_k = FK_ADD; 5564 L_2B0847FF: 5565 ecx = MEM32(esi + 0x44); /* 0x2B0847FF: mov ecx, dword ptr [esi + 0x44] */ 5566 /* test ecx, ecx */ /* 0x2B084802: test ecx, ecx */ 5567 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5568 _cf = 0; 5569 _flag_k = FK_TEST; 5570 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08480C; /* 0x2B084804: je 0x2b08480c */ 5571 L_2B084806: 5572 edx = MEM32(ecx); /* 0x2B084806: mov edx, dword ptr [ecx] */ 5573 PUSH32(esp, 1); /* 0x2B084808: push 1 */ 5574 RECOMP_ICALL(MEM32(edx)); /* 0x2B08480A: call dword ptr [edx] */ 5575 RECOMP_FLAGS_IN(); 5576 L_2B08480C: 5577 edi = MEM32(esi + 0x40); /* 0x2B08480C: mov edi, dword ptr [esi + 0x40] */ 5578 /* test edi, edi */ /* 0x2B08480F: test edi, edi */ 5579 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5580 _cf = 0; 5581 _flag_k = FK_TEST; 5582 ebx = MEM32(0x2B0B5BC4); /* 0x2B084811: mov ebx, dword ptr [0x2b0b5bc4] */ 5583 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084826; /* 0x2B084817: je 0x2b084826 */ 5584 L_2B084819: 5585 ecx = edi; /* 0x2B084819: mov ecx, edi */ 5586 RECOMP_ICALL(ebx); /* 0x2B08481B: call ebx */ 5587 RECOMP_FLAGS_IN(); 5588 PUSH32(esp, edi); /* 0x2B08481D: push edi */ 5589 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B08481E: call 0x2b0ab1ba */ /* not lifted */ 5590 RECOMP_FLAGS_IN(); 5591 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5592 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5593 esp = esp + 4; /* 0x2B084823: add esp, 4 */ 5594 _flag_k = FK_ADD; 5595 L_2B084826: 5596 ecx = MEM32(esi + 0x3C); /* 0x2B084826: mov ecx, dword ptr [esi + 0x3c] */ 5597 /* test ecx, ecx */ /* 0x2B084829: test ecx, ecx */ 5598 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5599 _cf = 0; 5600 _flag_k = FK_TEST; 5601 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084833; /* 0x2B08482B: je 0x2b084833 */ 5602 L_2B08482D: 5603 eax = MEM32(ecx); /* 0x2B08482D: mov eax, dword ptr [ecx] */ 5604 PUSH32(esp, 1); /* 0x2B08482F: push 1 */ 5605 RECOMP_ICALL(MEM32(eax)); /* 0x2B084831: call dword ptr [eax] */ 5606 RECOMP_FLAGS_IN(); 5607 L_2B084833: 5608 edi = MEM32(esi + 0x38); /* 0x2B084833: mov edi, dword ptr [esi + 0x38] */ 5609 /* test edi, edi */ /* 0x2B084836: test edi, edi */ 5610 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5611 _cf = 0; 5612 _flag_k = FK_TEST; 5613 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08484B; /* 0x2B084838: je 0x2b08484b */ 5614 L_2B08483A: 5615 ecx = edi; /* 0x2B08483A: mov ecx, edi */ 5616 RECOMP_ICALL(MEM32(0x2B0B5644)); /* 0x2B08483C: call dword ptr [0x2b0b5644] */ 5617 RECOMP_FLAGS_IN(); 5618 PUSH32(esp, edi); /* 0x2B084842: push edi */ 5619 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B084843: call 0x2b0ab1ba */ /* not lifted */ 5620 RECOMP_FLAGS_IN(); 5621 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5623 esp = esp + 4; /* 0x2B084848: add esp, 4 */ 5624 _flag_k = FK_ADD; 5625 L_2B08484B: 5626 ecx = MEM32(esi + 0x6C); /* 0x2B08484B: mov ecx, dword ptr [esi + 0x6c] */ 5627 /* test ecx, ecx */ /* 0x2B08484E: test ecx, ecx */ 5628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5629 _cf = 0; 5630 _flag_k = FK_TEST; 5631 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084858; /* 0x2B084850: je 0x2b084858 */ 5632 L_2B084852: 5633 edx = MEM32(ecx); /* 0x2B084852: mov edx, dword ptr [ecx] */ 5634 PUSH32(esp, 1); /* 0x2B084854: push 1 */ 5635 RECOMP_ICALL(MEM32(edx)); /* 0x2B084856: call dword ptr [edx] */ 5636 RECOMP_FLAGS_IN(); 5637 L_2B084858: 5638 ecx = MEM32(esi + 0x70); /* 0x2B084858: mov ecx, dword ptr [esi + 0x70] */ 5639 /* test ecx, ecx */ /* 0x2B08485B: test ecx, ecx */ 5640 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5641 _cf = 0; 5642 _flag_k = FK_TEST; 5643 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084865; /* 0x2B08485D: je 0x2b084865 */ 5644 L_2B08485F: 5645 eax = MEM32(ecx); /* 0x2B08485F: mov eax, dword ptr [ecx] */ 5646 PUSH32(esp, 1); /* 0x2B084861: push 1 */ 5647 RECOMP_ICALL(MEM32(eax)); /* 0x2B084863: call dword ptr [eax] */ 5648 RECOMP_FLAGS_IN(); 5649 L_2B084865: 5650 edi = MEM32(esi + 0x4C); /* 0x2B084865: mov edi, dword ptr [esi + 0x4c] */ 5651 /* test edi, edi */ /* 0x2B084868: test edi, edi */ 5652 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5653 _cf = 0; 5654 _flag_k = FK_TEST; 5655 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084879; /* 0x2B08486A: je 0x2b084879 */ 5656 L_2B08486C: 5657 ecx = edi; /* 0x2B08486C: mov ecx, edi */ 5658 RECOMP_ICALL(ebx); /* 0x2B08486E: call ebx */ 5659 RECOMP_FLAGS_IN(); 5660 PUSH32(esp, edi); /* 0x2B084870: push edi */ 5661 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B084871: call 0x2b0ab1ba */ /* not lifted */ 5662 RECOMP_FLAGS_IN(); 5663 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5665 esp = esp + 4; /* 0x2B084876: add esp, 4 */ 5666 _flag_k = FK_ADD; 5667 L_2B084879: 5668 edi = MEM32(esi + 0x50); /* 0x2B084879: mov edi, dword ptr [esi + 0x50] */ 5669 /* test edi, edi */ /* 0x2B08487C: test edi, edi */ 5670 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5671 _cf = 0; 5672 _flag_k = FK_TEST; 5673 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08488D; /* 0x2B08487E: je 0x2b08488d */ 5674 L_2B084880: 5675 ecx = edi; /* 0x2B084880: mov ecx, edi */ 5676 RECOMP_ICALL(ebx); /* 0x2B084882: call ebx */ 5677 RECOMP_FLAGS_IN(); 5678 PUSH32(esp, edi); /* 0x2B084884: push edi */ 5679 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B084885: call 0x2b0ab1ba */ /* not lifted */ 5680 RECOMP_FLAGS_IN(); 5681 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5683 esp = esp + 4; /* 0x2B08488A: add esp, 4 */ 5684 _flag_k = FK_ADD; 5685 L_2B08488D: 5686 ecx = MEM32(esi + 0x54); /* 0x2B08488D: mov ecx, dword ptr [esi + 0x54] */ 5687 eax = MEM32(ecx + 0x28); /* 0x2B084890: mov eax, dword ptr [ecx + 0x28] */ 5688 edi = MEM32(0x2B0B5F80); /* 0x2B084893: mov edi, dword ptr [0x2b0b5f80] */ 5689 PUSH32(esp, eax); /* 0x2B084899: push eax */ 5690 RECOMP_ICALL(edi); /* 0x2B08489A: call edi */ 5691 RECOMP_FLAGS_IN(); 5692 ebx = MEM32(0x2B0B5FB8); /* 0x2B08489C: mov ebx, dword ptr [0x2b0b5fb8] */ 5693 ecx = eax; /* 0x2B0848A2: mov ecx, eax */ 5694 RECOMP_ICALL(ebx); /* 0x2B0848A4: call ebx */ 5695 RECOMP_FLAGS_IN(); 5696 ecx = MEM32(esi + 0x54); /* 0x2B0848A6: mov ecx, dword ptr [esi + 0x54] */ 5697 /* test ecx, ecx */ /* 0x2B0848A9: test ecx, ecx */ 5698 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5699 _cf = 0; 5700 _flag_k = FK_TEST; 5701 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0848B3; /* 0x2B0848AB: je 0x2b0848b3 */ 5702 L_2B0848AD: 5703 edx = MEM32(ecx); /* 0x2B0848AD: mov edx, dword ptr [ecx] */ 5704 PUSH32(esp, 1); /* 0x2B0848AF: push 1 */ 5705 RECOMP_ICALL(MEM32(edx)); /* 0x2B0848B1: call dword ptr [edx] */ 5706 RECOMP_FLAGS_IN(); 5707 L_2B0848B3: 5708 eax = MEM32(esi + 0x58); /* 0x2B0848B3: mov eax, dword ptr [esi + 0x58] */ 5709 eax = MEM32(eax + 0x28); /* 0x2B0848B6: mov eax, dword ptr [eax + 0x28] */ 5710 PUSH32(esp, eax); /* 0x2B0848B9: push eax */ 5711 RECOMP_ICALL(edi); /* 0x2B0848BA: call edi */ 5712 RECOMP_FLAGS_IN(); 5713 ecx = eax; /* 0x2B0848BC: mov ecx, eax */ 5714 RECOMP_ICALL(ebx); /* 0x2B0848BE: call ebx */ 5715 RECOMP_FLAGS_IN(); 5716 ecx = MEM32(esi + 0x58); /* 0x2B0848C0: mov ecx, dword ptr [esi + 0x58] */ 5717 /* test ecx, ecx */ /* 0x2B0848C3: test ecx, ecx */ 5718 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5719 _cf = 0; 5720 _flag_k = FK_TEST; 5721 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0848CD; /* 0x2B0848C5: je 0x2b0848cd */ 5722 L_2B0848C7: 5723 edx = MEM32(ecx); /* 0x2B0848C7: mov edx, dword ptr [ecx] */ 5724 PUSH32(esp, 1); /* 0x2B0848C9: push 1 */ 5725 RECOMP_ICALL(MEM32(edx)); /* 0x2B0848CB: call dword ptr [edx] */ 5726 RECOMP_FLAGS_IN(); 5727 L_2B0848CD: 5728 eax = MEM32(esi + 0x5C); /* 0x2B0848CD: mov eax, dword ptr [esi + 0x5c] */ 5729 eax = MEM32(eax + 0x28); /* 0x2B0848D0: mov eax, dword ptr [eax + 0x28] */ 5730 PUSH32(esp, eax); /* 0x2B0848D3: push eax */ 5731 RECOMP_ICALL(edi); /* 0x2B0848D4: call edi */ 5732 RECOMP_FLAGS_IN(); 5733 ecx = eax; /* 0x2B0848D6: mov ecx, eax */ 5734 RECOMP_ICALL(ebx); /* 0x2B0848D8: call ebx */ 5735 RECOMP_FLAGS_IN(); 5736 ecx = MEM32(esi + 0x5C); /* 0x2B0848DA: mov ecx, dword ptr [esi + 0x5c] */ 5737 /* test ecx, ecx */ /* 0x2B0848DD: test ecx, ecx */ 5738 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5739 _cf = 0; 5740 _flag_k = FK_TEST; 5741 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0848E7; /* 0x2B0848DF: je 0x2b0848e7 */ 5742 L_2B0848E1: 5743 edx = MEM32(ecx); /* 0x2B0848E1: mov edx, dword ptr [ecx] */ 5744 PUSH32(esp, 1); /* 0x2B0848E3: push 1 */ 5745 RECOMP_ICALL(MEM32(edx)); /* 0x2B0848E5: call dword ptr [edx] */ 5746 RECOMP_FLAGS_IN(); 5747 L_2B0848E7: 5748 eax = MEM32(esi + 0x60); /* 0x2B0848E7: mov eax, dword ptr [esi + 0x60] */ 5749 eax = MEM32(eax + 0x28); /* 0x2B0848EA: mov eax, dword ptr [eax + 0x28] */ 5750 PUSH32(esp, eax); /* 0x2B0848ED: push eax */ 5751 RECOMP_ICALL(edi); /* 0x2B0848EE: call edi */ 5752 RECOMP_FLAGS_IN(); 5753 ecx = eax; /* 0x2B0848F0: mov ecx, eax */ 5754 RECOMP_ICALL(ebx); /* 0x2B0848F2: call ebx */ 5755 RECOMP_FLAGS_IN(); 5756 ecx = MEM32(esi + 0x60); /* 0x2B0848F4: mov ecx, dword ptr [esi + 0x60] */ 5757 /* test ecx, ecx */ /* 0x2B0848F7: test ecx, ecx */ 5758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5759 _cf = 0; 5760 _flag_k = FK_TEST; 5761 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084901; /* 0x2B0848F9: je 0x2b084901 */ 5762 L_2B0848FB: 5763 edx = MEM32(ecx); /* 0x2B0848FB: mov edx, dword ptr [ecx] */ 5764 PUSH32(esp, 1); /* 0x2B0848FD: push 1 */ 5765 RECOMP_ICALL(MEM32(edx)); /* 0x2B0848FF: call dword ptr [edx] */ 5766 RECOMP_FLAGS_IN(); 5767 L_2B084901: 5768 eax = MEM32(esi + 0x64); /* 0x2B084901: mov eax, dword ptr [esi + 0x64] */ 5769 eax = MEM32(eax + 0x28); /* 0x2B084904: mov eax, dword ptr [eax + 0x28] */ 5770 PUSH32(esp, eax); /* 0x2B084907: push eax */ 5771 RECOMP_ICALL(edi); /* 0x2B084908: call edi */ 5772 RECOMP_FLAGS_IN(); 5773 ecx = eax; /* 0x2B08490A: mov ecx, eax */ 5774 RECOMP_ICALL(ebx); /* 0x2B08490C: call ebx */ 5775 RECOMP_FLAGS_IN(); 5776 ecx = MEM32(esi + 0x64); /* 0x2B08490E: mov ecx, dword ptr [esi + 0x64] */ 5777 /* test ecx, ecx */ /* 0x2B084911: test ecx, ecx */ 5778 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5779 _cf = 0; 5780 _flag_k = FK_TEST; 5781 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08491B; /* 0x2B084913: je 0x2b08491b */ 5782 L_2B084915: 5783 edx = MEM32(ecx); /* 0x2B084915: mov edx, dword ptr [ecx] */ 5784 PUSH32(esp, 1); /* 0x2B084917: push 1 */ 5785 RECOMP_ICALL(MEM32(edx)); /* 0x2B084919: call dword ptr [edx] */ 5786 RECOMP_FLAGS_IN(); 5787 L_2B08491B: 5788 eax = MEM32(esi + 0x68); /* 0x2B08491B: mov eax, dword ptr [esi + 0x68] */ 5789 eax = MEM32(eax + 0x28); /* 0x2B08491E: mov eax, dword ptr [eax + 0x28] */ 5790 PUSH32(esp, eax); /* 0x2B084921: push eax */ 5791 RECOMP_ICALL(edi); /* 0x2B084922: call edi */ 5792 RECOMP_FLAGS_IN(); 5793 ecx = eax; /* 0x2B084924: mov ecx, eax */ 5794 RECOMP_ICALL(ebx); /* 0x2B084926: call ebx */ 5795 RECOMP_FLAGS_IN(); 5796 ecx = MEM32(esi + 0x68); /* 0x2B084928: mov ecx, dword ptr [esi + 0x68] */ 5797 /* test ecx, ecx */ /* 0x2B08492B: test ecx, ecx */ 5798 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5799 _cf = 0; 5800 _flag_k = FK_TEST; 5801 edi = POP32_VAL(esp); /* 0x2B08492D: pop edi */ 5802 esi = POP32_VAL(esp); /* 0x2B08492E: pop esi */ 5803 ebx = POP32_VAL(esp); /* 0x2B08492F: pop ebx */ 5804 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084938; /* 0x2B084930: je 0x2b084938 */ 5805 L_2B084932: 5806 edx = MEM32(ecx); /* 0x2B084932: mov edx, dword ptr [ecx] */ 5807 PUSH32(esp, 1); /* 0x2B084934: push 1 */ 5808 RECOMP_ICALL(MEM32(edx)); /* 0x2B084936: call dword ptr [edx] */ 5809 RECOMP_FLAGS_IN(); 5810 L_2B084938: 5811 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B084938: ret */ 5812 RECOMP_REGS_OUT(); 5813 } 5814 5815 void sub_2B084940(void) { 5816 int _fpu_cmp = 0; 5817 uint32_t _cf = 0; 5818 int _df = 1; 5819 uint32_t _flag_k = FK_NONE; 5820 uint32_t _flag_a = 0, _flag_b = 0; 5821 uint32_t _itail_tgt = 0; 5822 RECOMP_REGS_LOCALS 5823 RECOMP_ENTER(0x2B084940u); 5824 5825 L_2B084940: 5826 PUSH32(esp, ebp); /* 0x2B084940: push ebp */ 5827 ebp = esp; /* 0x2B084941: mov ebp, esp */ 5828 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu); 5829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5830 esp = esp - 0x3Cu; /* 0x2B084943: sub esp, 0x3c */ 5831 _flag_k = FK_CMP; 5832 PUSH32(esp, ebx); /* 0x2B084946: push ebx */ 5833 PUSH32(esp, esi); /* 0x2B084947: push esi */ 5834 esi = ecx; /* 0x2B084948: mov esi, ecx */ 5835 eax = MEM32(esi + 0x24); /* 0x2B08494A: mov eax, dword ptr [esi + 0x24] */ 5836 ecx = MEM32(esi + 0x28); /* 0x2B08494D: mov ecx, dword ptr [esi + 0x28] */ 5837 MEM32(esi + 0x1C) = eax; /* 0x2B084950: mov dword ptr [esi + 0x1c], eax */ 5838 MEM32(esi + 0x20) = ecx; /* 0x2B084953: mov dword ptr [esi + 0x20], ecx */ 5839 fp_push((double)(int32_t)MEM32(esi + 0x20)); /* 0x2B084956: fild dword ptr [esi + 0x20] */ 5840 ecx = MEM32(esi + 0x3C); /* 0x2B084959: mov ecx, dword ptr [esi + 0x3c] */ 5841 PUSH32(esp, edi); /* 0x2B08495C: push edi */ 5842 _st[0] *= (double)*(float*)ADDR(0x2B0B6184); /* 0x2B08495D: fmul dword ptr [0x2b0b6184] */ 5843 edi = MEM32(0x2B0B5658); /* 0x2B084963: mov edi, dword ptr [0x2b0b5658] */ 5844 edx = ebp + (-0x8); /* 0x2B084969: lea edx, [ebp - 8] */ 5845 PUSH32(esp, edx); /* 0x2B08496C: push edx */ 5846 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2B08496D: fstp dword ptr [ebp - 8] */ 5847 eax = ebp + (-0xC); /* 0x2B084970: lea eax, [ebp - 0xc] */ 5848 fp_push((double)(int32_t)MEM32(esi + 0x1C)); /* 0x2B084973: fild dword ptr [esi + 0x1c] */ 5849 PUSH32(esp, eax); /* 0x2B084976: push eax */ 5850 _st[0] *= (double)*(float*)ADDR(0x2B0B6184); /* 0x2B084977: fmul dword ptr [0x2b0b6184] */ 5851 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2B08497D: fstp dword ptr [ebp - 0xc] */ 5852 RECOMP_ICALL(edi); /* 0x2B084980: call edi */ 5853 RECOMP_FLAGS_IN(); 5854 eax = MEM32(esi + 0x30); /* 0x2B084982: mov eax, dword ptr [esi + 0x30] */ 5855 ecx = MEM32(esi + 0x1C); /* 0x2B084985: mov ecx, dword ptr [esi + 0x1c] */ 5856 edx = ecx + eax * 2; /* 0x2B084988: lea edx, [ecx + eax*2] */ 5857 ecx = MEM32(esi + 0x2C); /* 0x2B08498B: mov ecx, dword ptr [esi + 0x2c] */ 5858 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5859 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5860 ecx = ecx + eax; /* 0x2B08498E: add ecx, eax */ 5861 _flag_k = FK_ADD; 5862 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x20)); 5863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5864 ecx = ecx + MEM32(esi + 0x20); /* 0x2B084990: add ecx, dword ptr [esi + 0x20] */ 5865 _flag_k = FK_ADD; 5866 MEM32(ebp + (-0x20)) = ecx; /* 0x2B084993: mov dword ptr [ebp - 0x20], ecx */ 5867 ecx = MEM32(esi + 0x34); /* 0x2B084996: mov ecx, dword ptr [esi + 0x34] */ 5868 eax = ebp + (-0x24); /* 0x2B084999: lea eax, [ebp - 0x24] */ 5869 MEM32(ebp + (-0x24)) = edx; /* 0x2B08499C: mov dword ptr [ebp - 0x24], edx */ 5870 edx = MEM32(ecx); /* 0x2B08499F: mov edx, dword ptr [ecx] */ 5871 PUSH32(esp, eax); /* 0x2B0849A1: push eax */ 5872 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B0849A2: call dword ptr [edx + 0x18] */ 5873 RECOMP_FLAGS_IN(); 5874 ecx = MEM32(esi + 0x2C); /* 0x2B0849A5: mov ecx, dword ptr [esi + 0x2c] */ 5875 eax = MEM32(esi + 0x1C); /* 0x2B0849A8: mov eax, dword ptr [esi + 0x1c] */ 5876 MEM32(ebp + (-0xC)) = ecx; /* 0x2B0849AB: mov dword ptr [ebp - 0xc], ecx */ 5877 fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x2B0849AE: fild dword ptr [ebp - 0xc] */ 5878 MEM32(ebp + (-0x8)) = eax; /* 0x2B0849B1: mov dword ptr [ebp - 8], eax */ 5879 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x2B0849B4: fild dword ptr [ebp - 8] */ 5880 edx = MEM32(esi + 0x30); /* 0x2B0849B7: mov edx, dword ptr [esi + 0x30] */ 5881 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x2B0849BA: shl edx, 1 */ 5882 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5883 edx = edx << 1u; /* 0x2B0849BA: shl edx, 1 */ 5884 _st[0] /= _st[1]; /* 0x2B0849BC: fdiv st(1) */ 5885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5887 eax = eax - edx; /* 0x2B0849BE: sub eax, edx */ 5888 _flag_k = FK_CMP; 5889 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5891 eax = eax - ecx; /* 0x2B0849C0: sub eax, ecx */ 5892 _flag_k = FK_CMP; 5893 MEM32(ebp + (-0xC)) = eax; /* 0x2B0849C2: mov dword ptr [ebp - 0xc], eax */ 5894 eax = ebp + (-0xC); /* 0x2B0849C5: lea eax, [ebp - 0xc] */ 5895 PUSH32(esp, eax); /* 0x2B0849C8: push eax */ 5896 ecx = ebp + (-0x10); /* 0x2B0849C9: lea ecx, [ebp - 0x10] */ 5897 PUSH32(esp, ecx); /* 0x2B0849CC: push ecx */ 5898 ecx = MEM32(esi + 0x5C); /* 0x2B0849CD: mov ecx, dword ptr [esi + 0x5c] */ 5899 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2B0849D0: fstp dword ptr [ebp - 0x14] */ 5900 fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x2B0849D3: fild dword ptr [ebp - 0xc] */ 5901 MEM32(ebp + (-0xC)) = 0x3F800000u; /* 0x2B0849D6: mov dword ptr [ebp - 0xc], 0x3f800000 */ 5902 _st[0] /= _st[1]; /* 0x2B0849DD: fdiv st(1) */ 5903 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2B0849DF: fstp dword ptr [ebp - 0x10] */ 5904 fp_push((double)(int32_t)MEM32(esi + 0x20)); /* 0x2B0849E2: fild dword ptr [esi + 0x20] */ 5905 _st[0] /= _st[1]; /* 0x2B0849E5: fdiv st(1) */ 5906 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2B0849E7: fstp dword ptr [ebp - 4] */ 5907 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2B0849EA: fstp st(0) */ 5908 RECOMP_ICALL(edi); /* 0x2B0849EC: call edi */ 5909 RECOMP_FLAGS_IN(); 5910 ecx = MEM32(esi + 0x60); /* 0x2B0849EE: mov ecx, dword ptr [esi + 0x60] */ 5911 edx = ebp + (-0x4); /* 0x2B0849F1: lea edx, [ebp - 4] */ 5912 PUSH32(esp, edx); /* 0x2B0849F4: push edx */ 5913 eax = ebp + (-0xC); /* 0x2B0849F5: lea eax, [ebp - 0xc] */ 5914 PUSH32(esp, eax); /* 0x2B0849F8: push eax */ 5915 MEM32(ebp + (-0xC)) = 0x3F800000u; /* 0x2B0849F9: mov dword ptr [ebp - 0xc], 0x3f800000 */ 5916 RECOMP_ICALL(edi); /* 0x2B084A00: call edi */ 5917 RECOMP_FLAGS_IN(); 5918 ecx = ebp + (-0xC); /* 0x2B084A02: lea ecx, [ebp - 0xc] */ 5919 PUSH32(esp, ecx); /* 0x2B084A05: push ecx */ 5920 ecx = MEM32(esi + 0x64); /* 0x2B084A06: mov ecx, dword ptr [esi + 0x64] */ 5921 edx = ebp + (-0x14); /* 0x2B084A09: lea edx, [ebp - 0x14] */ 5922 PUSH32(esp, edx); /* 0x2B084A0C: push edx */ 5923 MEM32(ebp + (-0xC)) = 0x3F800000u; /* 0x2B084A0D: mov dword ptr [ebp - 0xc], 0x3f800000 */ 5924 RECOMP_ICALL(edi); /* 0x2B084A14: call edi */ 5925 RECOMP_FLAGS_IN(); 5926 eax = ebp + (-0x4); /* 0x2B084A16: lea eax, [ebp - 4] */ 5927 PUSH32(esp, eax); /* 0x2B084A19: push eax */ 5928 ecx = ebp + (-0xC); /* 0x2B084A1A: lea ecx, [ebp - 0xc] */ 5929 MEM32(ebp + (-0xC)) = 0x3F800000u; /* 0x2B084A1D: mov dword ptr [ebp - 0xc], 0x3f800000 */ 5930 PUSH32(esp, ecx); /* 0x2B084A24: push ecx */ 5931 ecx = MEM32(esi + 0x68); /* 0x2B084A25: mov ecx, dword ptr [esi + 0x68] */ 5932 RECOMP_ICALL(edi); /* 0x2B084A28: call edi */ 5933 RECOMP_FLAGS_IN(); 5934 eax = MEM32(esi + 0x2C); /* 0x2B084A2A: mov eax, dword ptr [esi + 0x2c] */ 5935 edx = MEM32(ebp + (-0x24)); /* 0x2B084A2D: mov edx, dword ptr [ebp - 0x24] */ 5936 ecx = MEM32(esi + 0x70); /* 0x2B084A30: mov ecx, dword ptr [esi + 0x70] */ 5937 MEM32(ebp + (-0x28)) = eax; /* 0x2B084A33: mov dword ptr [ebp - 0x28], eax */ 5938 eax = ebp + (-0x2C); /* 0x2B084A36: lea eax, [ebp - 0x2c] */ 5939 MEM32(ebp + (-0x2C)) = edx; /* 0x2B084A39: mov dword ptr [ebp - 0x2c], edx */ 5940 edx = MEM32(ecx); /* 0x2B084A3C: mov edx, dword ptr [ecx] */ 5941 PUSH32(esp, eax); /* 0x2B084A3E: push eax */ 5942 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2B084A3F: call dword ptr [edx + 0x18] */ 5943 RECOMP_FLAGS_IN(); 5944 ecx = MEM32(esi + 0xC); /* 0x2B084A42: mov ecx, dword ptr [esi + 0xc] */ 5945 PUSH32(esp, 0x12u); /* 0x2B084A45: push 0x12 */ 5946 PUSH32(esp, 0); /* 0x2B084A47: push 0 */ 5947 RECOMP_ICALL(MEM32(0x2B0B5A74)); /* 0x2B084A49: call dword ptr [0x2b0b5a74] */ 5948 RECOMP_FLAGS_IN(); 5949 ecx = MEM32(0x2B0B515C); /* 0x2B084A4F: mov ecx, dword ptr [0x2b0b515c] */ 5950 edx = MEM32(ecx); /* 0x2B084A55: mov edx, dword ptr [ecx] */ 5951 eax = MEM32(esi + 0xC); /* 0x2B084A57: mov eax, dword ptr [esi + 0xc] */ 5952 ecx = MEM32(esi + 0x44); /* 0x2B084A5A: mov ecx, dword ptr [esi + 0x44] */ 5953 PUSH32(esp, edx); /* 0x2B084A5D: push edx */ 5954 PUSH32(esp, 0); /* 0x2B084A5E: push 0 */ 5955 PUSH32(esp, eax); /* 0x2B084A60: push eax */ 5956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 5957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5958 ecx = ecx + 0x14u; /* 0x2B084A61: add ecx, 0x14 */ 5959 _flag_k = FK_ADD; 5960 RECOMP_ICALL(MEM32(0x2B0B5158)); /* 0x2B084A64: call dword ptr [0x2b0b5158] */ 5961 RECOMP_FLAGS_IN(); 5962 ecx = MEM32(esi + 0x1C); /* 0x2B084A6A: mov ecx, dword ptr [esi + 0x1c] */ 5963 PUSH32(esp, 4); /* 0x2B084A6D: push 4 */ 5964 MEM32(ebp + (-0x34)) = ecx; /* 0x2B084A6F: mov dword ptr [ebp - 0x34], ecx */ 5965 ecx = MEM32(esi + 0x44); /* 0x2B084A72: mov ecx, dword ptr [esi + 0x44] */ 5966 PUSH32(esp, 4); /* 0x2B084A75: push 4 */ 5967 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5968 edi = 0; /* 0x2B084A77: xor edi, edi */ 5969 _cf = 0; 5970 _flag_k = FK_TEST; 5971 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5972 ebx = 0; /* 0x2B084A79: xor ebx, ebx */ 5973 _cf = 0; 5974 _flag_k = FK_TEST; 5975 RECOMP_ICALL(MEM32(0x2B0B5924)); /* 0x2B084A7B: call dword ptr [0x2b0b5924] */ 5976 RECOMP_FLAGS_IN(); 5977 edx = MEM32(esi + 0x44); /* 0x2B084A81: mov edx, dword ptr [esi + 0x44] */ 5978 ecx = MEM32(edx + 0x34); /* 0x2B084A84: mov ecx, dword ptr [edx + 0x34] */ 5979 edx = MEM32(ebp + (-0x34)); /* 0x2B084A87: mov edx, dword ptr [ebp - 0x34] */ 5980 MEM32(ecx) = edi; /* 0x2B084A8A: mov dword ptr [ecx], edi */ 5981 MEM32(ecx + 0x4) = ebx; /* 0x2B084A8C: mov dword ptr [ecx + 4], ebx */ 5982 PUSH32(esp, ebx); /* 0x2B084A8F: push ebx */ 5983 MEM32(ecx + 0x8) = edx; /* 0x2B084A90: mov dword ptr [ecx + 8], edx */ 5984 PUSH32(esp, ebx); /* 0x2B084A93: push ebx */ 5985 eax = 0x384u; /* 0x2B084A94: mov eax, 0x384 */ 5986 MEM32(ecx + 0xC) = eax; /* 0x2B084A99: mov dword ptr [ecx + 0xc], eax */ 5987 eax = MEM32(esi + 0xC); /* 0x2B084A9C: mov eax, dword ptr [esi + 0xc] */ 5988 ecx = MEM32(esi + 0x44); /* 0x2B084A9F: mov ecx, dword ptr [esi + 0x44] */ 5989 ecx = MEM32(ecx + 0x34); /* 0x2B084AA2: mov ecx, dword ptr [ecx + 0x34] */ 5990 PUSH32(esp, ebx); /* 0x2B084AA5: push ebx */ 5991 PUSH32(esp, 1); /* 0x2B084AA6: push 1 */ 5992 PUSH32(esp, eax); /* 0x2B084AA8: push eax */ 5993 RECOMP_ICALL(MEM32(0x2B0B5878)); /* 0x2B084AA9: call dword ptr [0x2b0b5878] */ 5994 RECOMP_FLAGS_IN(); 5995 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B084AAF: call dword ptr [0x2b0b5b64] */ 5996 RECOMP_FLAGS_IN(); 5997 ecx = MEM32(eax + 0x108); /* 0x2B084AB5: mov ecx, dword ptr [eax + 0x108] */ 5998 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B084ABB: mov dword ptr [ebp - 0x1c], ecx */ 5999 edi = MEM32(eax + 0x10C); /* 0x2B084ABE: mov edi, dword ptr [eax + 0x10c] */ 6000 eax = MEM32(ebp + (-0x24)); /* 0x2B084AC4: mov eax, dword ptr [ebp - 0x24] */ 6001 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2B084AC7: cdq */ 6002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6004 eax = eax - edx; /* 0x2B084AC8: sub eax, edx */ 6005 _flag_k = FK_CMP; 6006 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2B084ACA: sar eax, 1 */ 6007 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6008 eax = (uint32_t)((int32_t)eax >> 1u); 6009 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 6010 _cf = (eax) != 0; 6011 eax = (uint32_t)(-(int32_t)eax); /* 0x2B084ACC: neg eax */ 6012 _flag_k = FK_CMP; 6013 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 6014 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6015 edi = edi + 0x14u; /* 0x2B084ACE: add edi, 0x14 */ 6016 _flag_k = FK_ADD; 6017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6019 ecx = ecx + eax; /* 0x2B084AD1: add ecx, eax */ 6020 _flag_k = FK_ADD; 6021 MEM32(ebp + (-0x18)) = edi; /* 0x2B084AD3: mov dword ptr [ebp - 0x18], edi */ 6022 edi = MEM32(0x2B0B5690); /* 0x2B084AD6: mov edi, dword ptr [0x2b0b5690] */ 6023 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B084ADC: mov dword ptr [ebp - 0x1c], ecx */ 6024 RECOMP_ICALL(edi); /* 0x2B084ADF: call edi */ 6025 RECOMP_FLAGS_IN(); 6026 ecx = eax; /* 0x2B084AE1: mov ecx, eax */ 6027 RECOMP_ICALL(MEM32(0x2B0B5688)); /* 0x2B084AE3: call dword ptr [0x2b0b5688] */ 6028 RECOMP_FLAGS_IN(); 6029 ebx = eax; /* 0x2B084AE9: mov ebx, eax */ 6030 RECOMP_ICALL(edi); /* 0x2B084AEB: call edi */ 6031 RECOMP_FLAGS_IN(); 6032 ecx = eax; /* 0x2B084AED: mov ecx, eax */ 6033 RECOMP_ICALL(MEM32(0x2B0B568C)); /* 0x2B084AEF: call dword ptr [0x2b0b568c] */ 6034 RECOMP_FLAGS_IN(); 6035 edi = MEM32(ebp + (-0x24)); /* 0x2B084AF5: mov edi, dword ptr [ebp - 0x24] */ 6036 edx = MEM32(ebp + (-0x1C)); /* 0x2B084AF8: mov edx, dword ptr [ebp - 0x1c] */ 6037 ecx = ebx; /* 0x2B084AFB: mov ecx, ebx */ 6038 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6040 ecx = ecx - edi; /* 0x2B084AFD: sub ecx, edi */ 6041 _flag_k = FK_CMP; 6042 /* cmp edx, ecx */ /* 0x2B084AFF: cmp edx, ecx */ 6043 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6045 _flag_k = FK_CMP; 6046 if (CMP_LE(_flag_a, _flag_b)) goto L_2B084B06; /* 0x2B084B01: jle 0x2b084b06 */ 6047 L_2B084B03: 6048 MEM32(ebp + (-0x1C)) = ecx; /* 0x2B084B03: mov dword ptr [ebp - 0x1c], ecx */ 6049 L_2B084B06: 6050 edx = MEM32(ebp + (-0x20)); /* 0x2B084B06: mov edx, dword ptr [ebp - 0x20] */ 6051 ecx = MEM32(ebp + (-0x18)); /* 0x2B084B09: mov ecx, dword ptr [ebp - 0x18] */ 6052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6054 eax = eax - edx; /* 0x2B084B0C: sub eax, edx */ 6055 _flag_k = FK_CMP; 6056 /* cmp ecx, eax */ /* 0x2B084B0E: cmp ecx, eax */ 6057 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6059 _flag_k = FK_CMP; 6060 if (CMP_LE(_flag_a, _flag_b)) goto L_2B084B15; /* 0x2B084B10: jle 0x2b084b15 */ 6061 L_2B084B12: 6062 MEM32(ebp + (-0x18)) = eax; /* 0x2B084B12: mov dword ptr [ebp - 0x18], eax */ 6063 L_2B084B15: 6064 edx = ebp + (-0x1C); /* 0x2B084B15: lea edx, [ebp - 0x1c] */ 6065 PUSH32(esp, edx); /* 0x2B084B18: push edx */ 6066 ecx = esi; /* 0x2B084B19: mov ecx, esi */ 6067 RECOMP_ICALL(0x2B084B60u); /* 0x2B084B1B: call 0x2b084b60 */ /* not lifted */ 6068 RECOMP_FLAGS_IN(); 6069 ecx = esi; /* 0x2B084B20: mov ecx, esi */ 6070 RECOMP_ICALL(0x2B084D40u); /* 0x2B084B22: call 0x2b084d40 */ /* not lifted */ 6071 RECOMP_FLAGS_IN(); 6072 PUSH32(esp, 3); /* 0x2B084B27: push 3 */ 6073 RECOMP_ICALL(MEM32(0x2B0B5B64)); /* 0x2B084B29: call dword ptr [0x2b0b5b64] */ 6074 RECOMP_FLAGS_IN(); 6075 ecx = eax; /* 0x2B084B2F: mov ecx, eax */ 6076 RECOMP_ICALL(MEM32(0x2B0B5AA0)); /* 0x2B084B31: call dword ptr [0x2b0b5aa0] */ 6077 RECOMP_FLAGS_IN(); 6078 PUSH32(esp, 0x3F800000u); /* 0x2B084B37: push 0x3f800000 */ 6079 ecx = esi; /* 0x2B084B3C: mov ecx, esi */ 6080 RECOMP_ICALL(0x2B084E50u); /* 0x2B084B3E: call 0x2b084e50 */ /* not lifted */ 6081 RECOMP_FLAGS_IN(); 6082 edi = POP32_VAL(esp); /* 0x2B084B43: pop edi */ 6083 MEM8(esi) = (uint8_t)(1); /* 0x2B084B44: mov byte ptr [esi], 1 */ 6084 esi = POP32_VAL(esp); /* 0x2B084B47: pop esi */ 6085 ebx = POP32_VAL(esp); /* 0x2B084B48: pop ebx */ 6086 esp = ebp; /* 0x2B084B49: mov esp, ebp */ 6087 ebp = POP32_VAL(esp); /* 0x2B084B4B: pop ebp */ 6088 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B084B4C: ret */ 6089 RECOMP_REGS_OUT(); 6090 } 6091 6092 void sub_2B084B50(void) { 6093 int _fpu_cmp = 0; 6094 uint32_t _cf = 0; 6095 int _df = 1; 6096 uint32_t _flag_k = FK_NONE; 6097 uint32_t _flag_a = 0, _flag_b = 0; 6098 uint32_t _itail_tgt = 0; 6099 RECOMP_REGS_LOCALS 6100 RECOMP_ENTER(0x2B084B50u); 6101 6102 L_2B084B50: 6103 MEM8(ecx) = (uint8_t)(0); /* 0x2B084B50: mov byte ptr [ecx], 0 */ 6104 goto L_2B084DD0; /* 0x2B084B53: jmp 0x2b084dd0 */ 6105 L_2B084DD0: 6106 PUSH32(esp, esi); /* 0x2B084DD0: push esi */ 6107 esi = ecx; /* 0x2B084DD1: mov esi, ecx */ 6108 eax = MEM32(esi + 0x34); /* 0x2B084DD3: mov eax, dword ptr [esi + 0x34] */ 6109 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B084DD6: mov byte ptr [eax + 8], 0 */ 6110 ecx = MEM32(esi + 0x44); /* 0x2B084DDA: mov ecx, dword ptr [esi + 0x44] */ 6111 PUSH32(esp, edi); /* 0x2B084DDD: push edi */ 6112 edi = MEM32(0x2B0B5BAC); /* 0x2B084DDE: mov edi, dword ptr [0x2b0b5bac] */ 6113 MEM8(ecx + 0x8) = (uint8_t)(0); /* 0x2B084DE4: mov byte ptr [ecx + 8], 0 */ 6114 ecx = MEM32(esi + 0x40); /* 0x2B084DE8: mov ecx, dword ptr [esi + 0x40] */ 6115 RECOMP_ICALL(edi); /* 0x2B084DEB: call edi */ 6116 RECOMP_FLAGS_IN(); 6117 ecx = MEM32(esi + 0x3C); /* 0x2B084DED: mov ecx, dword ptr [esi + 0x3c] */ 6118 edx = MEM32(ecx); /* 0x2B084DF0: mov edx, dword ptr [ecx] */ 6119 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B084DF2: call dword ptr [edx + 0xc] */ 6120 RECOMP_FLAGS_IN(); 6121 ecx = MEM32(esi + 0x48); /* 0x2B084DF5: mov ecx, dword ptr [esi + 0x48] */ 6122 RECOMP_ICALL(MEM32(0x2B0B5B60)); /* 0x2B084DF8: call dword ptr [0x2b0b5b60] */ 6123 RECOMP_FLAGS_IN(); 6124 ecx = MEM32(esi + 0x4C); /* 0x2B084DFE: mov ecx, dword ptr [esi + 0x4c] */ 6125 RECOMP_ICALL(edi); /* 0x2B084E01: call edi */ 6126 RECOMP_FLAGS_IN(); 6127 ecx = MEM32(esi + 0x50); /* 0x2B084E03: mov ecx, dword ptr [esi + 0x50] */ 6128 RECOMP_ICALL(edi); /* 0x2B084E06: call edi */ 6129 RECOMP_FLAGS_IN(); 6130 ecx = MEM32(esi + 0x54); /* 0x2B084E08: mov ecx, dword ptr [esi + 0x54] */ 6131 eax = MEM32(ecx); /* 0x2B084E0B: mov eax, dword ptr [ecx] */ 6132 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B084E0D: call dword ptr [eax + 0xc] */ 6133 RECOMP_FLAGS_IN(); 6134 ecx = MEM32(esi + 0x58); /* 0x2B084E10: mov ecx, dword ptr [esi + 0x58] */ 6135 edx = MEM32(ecx); /* 0x2B084E13: mov edx, dword ptr [ecx] */ 6136 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B084E15: call dword ptr [edx + 0xc] */ 6137 RECOMP_FLAGS_IN(); 6138 ecx = MEM32(esi + 0x5C); /* 0x2B084E18: mov ecx, dword ptr [esi + 0x5c] */ 6139 eax = MEM32(ecx); /* 0x2B084E1B: mov eax, dword ptr [ecx] */ 6140 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B084E1D: call dword ptr [eax + 0xc] */ 6141 RECOMP_FLAGS_IN(); 6142 ecx = MEM32(esi + 0x60); /* 0x2B084E20: mov ecx, dword ptr [esi + 0x60] */ 6143 edx = MEM32(ecx); /* 0x2B084E23: mov edx, dword ptr [ecx] */ 6144 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B084E25: call dword ptr [edx + 0xc] */ 6145 RECOMP_FLAGS_IN(); 6146 ecx = MEM32(esi + 0x64); /* 0x2B084E28: mov ecx, dword ptr [esi + 0x64] */ 6147 eax = MEM32(ecx); /* 0x2B084E2B: mov eax, dword ptr [ecx] */ 6148 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B084E2D: call dword ptr [eax + 0xc] */ 6149 RECOMP_FLAGS_IN(); 6150 ecx = MEM32(esi + 0x68); /* 0x2B084E30: mov ecx, dword ptr [esi + 0x68] */ 6151 edx = MEM32(ecx); /* 0x2B084E33: mov edx, dword ptr [ecx] */ 6152 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B084E35: call dword ptr [edx + 0xc] */ 6153 RECOMP_FLAGS_IN(); 6154 ecx = MEM32(esi + 0x6C); /* 0x2B084E38: mov ecx, dword ptr [esi + 0x6c] */ 6155 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B084E3B: call dword ptr [0x2b0b5b34] */ 6156 RECOMP_FLAGS_IN(); 6157 eax = MEM32(esi + 0x70); /* 0x2B084E41: mov eax, dword ptr [esi + 0x70] */ 6158 edi = POP32_VAL(esp); /* 0x2B084E44: pop edi */ 6159 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B084E45: mov byte ptr [eax + 8], 0 */ 6160 esi = POP32_VAL(esp); /* 0x2B084E49: pop esi */ 6161 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B084E4A: ret */ 6162 RECOMP_REGS_OUT(); 6163 } 6164 6165 void sub_2B084B60(void) { 6166 int _fpu_cmp = 0; 6167 uint32_t _cf = 0; 6168 int _df = 1; 6169 uint32_t _flag_k = FK_NONE; 6170 uint32_t _flag_a = 0, _flag_b = 0; 6171 uint32_t _itail_tgt = 0; 6172 RECOMP_REGS_LOCALS 6173 RECOMP_ENTER(0x2B084B60u); 6174 6175 L_2B084B60: 6176 PUSH32(esp, ebp); /* 0x2B084B60: push ebp */ 6177 ebp = esp; /* 0x2B084B61: mov ebp, esp */ 6178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6180 esp = esp - 8; /* 0x2B084B63: sub esp, 8 */ 6181 _flag_k = FK_CMP; 6182 eax = MEM32(ebp + 0x8); /* 0x2B084B66: mov eax, dword ptr [ebp + 8] */ 6183 PUSH32(esp, ebx); /* 0x2B084B69: push ebx */ 6184 PUSH32(esp, esi); /* 0x2B084B6A: push esi */ 6185 esi = ecx; /* 0x2B084B6B: mov esi, ecx */ 6186 ecx = MEM32(eax); /* 0x2B084B6D: mov ecx, dword ptr [eax] */ 6187 MEM32(esi + 0x14) = ecx; /* 0x2B084B6F: mov dword ptr [esi + 0x14], ecx */ 6188 edx = MEM32(eax + 0x4); /* 0x2B084B72: mov edx, dword ptr [eax + 4] */ 6189 MEM32(esi + 0x18) = edx; /* 0x2B084B75: mov dword ptr [esi + 0x18], edx */ 6190 SET_LO8(ecx, MEM8(0x2B0EF0C8)); /* 0x2B084B78: mov cl, byte ptr [0x2b0ef0c8] */ 6191 SET_LO8(eax, 1); /* 0x2B084B7E: mov al, 1 */ 6192 /* test LO8(eax), LO8(ecx) */ /* 0x2B084B80: test al, cl */ 6193 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6194 _cf = 0; 6195 _flag_k = FK_NARROW(FK_TEST, 24); 6196 PUSH32(esp, edi); /* 0x2B084B82: push edi */ 6197 edi = MEM32(0x2B0B5690); /* 0x2B084B83: mov edi, dword ptr [0x2b0b5690] */ 6198 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B084BA2; /* 0x2B084B89: jne 0x2b084ba2 */ 6199 L_2B084B8B: 6200 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 6201 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B084B8B: or cl, al */ 6202 _cf = 0; 6203 _flag_k = FK_NARROW(FK_TEST, 24); 6204 MEM8(0x2B0EF0C8) = (uint8_t)(LO8(ecx)); /* 0x2B084B8D: mov byte ptr [0x2b0ef0c8], cl */ 6205 RECOMP_ICALL(edi); /* 0x2B084B93: call edi */ 6206 RECOMP_FLAGS_IN(); 6207 ecx = eax; /* 0x2B084B95: mov ecx, eax */ 6208 RECOMP_ICALL(MEM32(0x2B0B5688)); /* 0x2B084B97: call dword ptr [0x2b0b5688] */ 6209 RECOMP_FLAGS_IN(); 6210 MEM32(0x2B0EF0C4) = eax; /* 0x2B084B9D: mov dword ptr [0x2b0ef0c4], eax */ 6211 L_2B084BA2: 6212 SET_LO8(ecx, MEM8(0x2B0EF0C8)); /* 0x2B084BA2: mov cl, byte ptr [0x2b0ef0c8] */ 6213 SET_LO8(eax, 2); /* 0x2B084BA8: mov al, 2 */ 6214 /* test LO8(eax), LO8(ecx) */ /* 0x2B084BAA: test al, cl */ 6215 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6216 _cf = 0; 6217 _flag_k = FK_NARROW(FK_TEST, 24); 6218 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B084BC5; /* 0x2B084BAC: jne 0x2b084bc5 */ 6219 L_2B084BAE: 6220 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 6221 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2B084BAE: or cl, al */ 6222 _cf = 0; 6223 _flag_k = FK_NARROW(FK_TEST, 24); 6224 MEM8(0x2B0EF0C8) = (uint8_t)(LO8(ecx)); /* 0x2B084BB0: mov byte ptr [0x2b0ef0c8], cl */ 6225 RECOMP_ICALL(edi); /* 0x2B084BB6: call edi */ 6226 RECOMP_FLAGS_IN(); 6227 ecx = eax; /* 0x2B084BB8: mov ecx, eax */ 6228 RECOMP_ICALL(MEM32(0x2B0B568C)); /* 0x2B084BBA: call dword ptr [0x2b0b568c] */ 6229 RECOMP_FLAGS_IN(); 6230 MEM32(0x2B0EF0C0) = eax; /* 0x2B084BC0: mov dword ptr [0x2b0ef0c0], eax */ 6231 L_2B084BC5: 6232 ecx = MEM32(esi + 0x14); /* 0x2B084BC5: mov ecx, dword ptr [esi + 0x14] */ 6233 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6234 eax = 0; /* 0x2B084BC8: xor eax, eax */ 6235 _cf = 0; 6236 _flag_k = FK_TEST; 6237 /* cmp ecx, eax */ /* 0x2B084BCA: cmp ecx, eax */ 6238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6240 _flag_k = FK_CMP; 6241 if (CMP_GE(_flag_a, _flag_b)) goto L_2B084BD1; /* 0x2B084BCC: jge 0x2b084bd1 */ 6242 L_2B084BCE: 6243 MEM32(esi + 0x14) = eax; /* 0x2B084BCE: mov dword ptr [esi + 0x14], eax */ 6244 L_2B084BD1: 6245 /* cmp MEM32(esi + 0x18), eax */ /* 0x2B084BD1: cmp dword ptr [esi + 0x18], eax */ 6246 _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(eax); 6247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6248 _flag_k = FK_CMP; 6249 if (CMP_GE(_flag_a, _flag_b)) goto L_2B084BD9; /* 0x2B084BD4: jge 0x2b084bd9 */ 6250 L_2B084BD6: 6251 MEM32(esi + 0x18) = eax; /* 0x2B084BD6: mov dword ptr [esi + 0x18], eax */ 6252 L_2B084BD9: 6253 ecx = MEM32(esi + 0x2C); /* 0x2B084BD9: mov ecx, dword ptr [esi + 0x2c] */ 6254 eax = MEM32(0x2B0EF0C4); /* 0x2B084BDC: mov eax, dword ptr [0x2b0ef0c4] */ 6255 edx = MEM32(esi + 0x14); /* 0x2B084BE1: mov edx, dword ptr [esi + 0x14] */ 6256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6258 eax = eax - ecx; /* 0x2B084BE4: sub eax, ecx */ 6259 _flag_k = FK_CMP; 6260 /* cmp edx, eax */ /* 0x2B084BE6: cmp edx, eax */ 6261 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6263 _flag_k = FK_CMP; 6264 if (CMP_LE(_flag_a, _flag_b)) goto L_2B084BED; /* 0x2B084BE8: jle 0x2b084bed */ 6265 L_2B084BEA: 6266 MEM32(esi + 0x14) = eax; /* 0x2B084BEA: mov dword ptr [esi + 0x14], eax */ 6267 L_2B084BED: 6268 eax = MEM32(0x2B0EF0C0); /* 0x2B084BED: mov eax, dword ptr [0x2b0ef0c0] */ 6269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6271 eax = eax - ecx; /* 0x2B084BF2: sub eax, ecx */ 6272 _flag_k = FK_CMP; 6273 /* cmp MEM32(esi + 0x18), eax */ /* 0x2B084BF4: cmp dword ptr [esi + 0x18], eax */ 6274 _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(eax); 6275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6276 _flag_k = FK_CMP; 6277 if (CMP_LE(_flag_a, _flag_b)) goto L_2B084BFC; /* 0x2B084BF7: jle 0x2b084bfc */ 6278 L_2B084BF9: 6279 MEM32(esi + 0x18) = eax; /* 0x2B084BF9: mov dword ptr [esi + 0x18], eax */ 6280 L_2B084BFC: 6281 eax = MEM32(esi + 0x14); /* 0x2B084BFC: mov eax, dword ptr [esi + 0x14] */ 6282 ecx = MEM32(esi + 0x18); /* 0x2B084BFF: mov ecx, dword ptr [esi + 0x18] */ 6283 MEM32(ebp + (-0x8)) = eax; /* 0x2B084C02: mov dword ptr [ebp - 8], eax */ 6284 MEM32(ebp + (-0x4)) = ecx; /* 0x2B084C05: mov dword ptr [ebp - 4], ecx */ 6285 ecx = MEM32(esi + 0x34); /* 0x2B084C08: mov ecx, dword ptr [esi + 0x34] */ 6286 edx = MEM32(ecx); /* 0x2B084C0B: mov edx, dword ptr [ecx] */ 6287 eax = ebp + (-0x8); /* 0x2B084C0D: lea eax, [ebp - 8] */ 6288 PUSH32(esp, eax); /* 0x2B084C10: push eax */ 6289 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2B084C11: call dword ptr [edx + 0x14] */ 6290 RECOMP_FLAGS_IN(); 6291 ebx = MEM32(0x2B0B5BB8); /* 0x2B084C14: mov ebx, dword ptr [0x2b0b5bb8] */ 6292 ecx = ebp + (-0x8); /* 0x2B084C1A: lea ecx, [ebp - 8] */ 6293 PUSH32(esp, ecx); /* 0x2B084C1D: push ecx */ 6294 ecx = MEM32(esi + 0x4C); /* 0x2B084C1E: mov ecx, dword ptr [esi + 0x4c] */ 6295 RECOMP_ICALL(ebx); /* 0x2B084C21: call ebx */ 6296 RECOMP_FLAGS_IN(); 6297 edi = MEM32(ebp + (-0x8)); /* 0x2B084C23: mov edi, dword ptr [ebp - 8] */ 6298 edx = MEM32(esi + 0x2C); /* 0x2B084C26: mov edx, dword ptr [esi + 0x2c] */ 6299 ecx = MEM32(esi + 0x5C); /* 0x2B084C29: mov ecx, dword ptr [esi + 0x5c] */ 6300 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 6301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6302 edi = edi + edx; /* 0x2B084C2C: add edi, edx */ 6303 _flag_k = FK_ADD; 6304 eax = ebp + (-0x8); /* 0x2B084C2E: lea eax, [ebp - 8] */ 6305 MEM32(ebp + (-0x8)) = edi; /* 0x2B084C31: mov dword ptr [ebp - 8], edi */ 6306 edi = MEM32(0x2B0B5640); /* 0x2B084C34: mov edi, dword ptr [0x2b0b5640] */ 6307 PUSH32(esp, eax); /* 0x2B084C3A: push eax */ 6308 RECOMP_ICALL(edi); /* 0x2B084C3B: call edi */ 6309 RECOMP_FLAGS_IN(); 6310 eax = MEM32(esi + 0x30); /* 0x2B084C3D: mov eax, dword ptr [esi + 0x30] */ 6311 ecx = MEM32(esi + 0x2C); /* 0x2B084C40: mov ecx, dword ptr [esi + 0x2c] */ 6312 edx = MEM32(esi + 0x1C); /* 0x2B084C43: mov edx, dword ptr [esi + 0x1c] */ 6313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6315 ecx = ecx + eax; /* 0x2B084C46: add ecx, eax */ 6316 _flag_k = FK_ADD; 6317 eax = MEM32(ebp + (-0x8)); /* 0x2B084C48: mov eax, dword ptr [ebp - 8] */ 6318 if (1u) _cf = (((ecx) >> 31) & 1u); /* 0x2B084C4B: shl ecx, 1 */ 6319 if (1u) { _flag_a = recomp_flags_pack((ecx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6320 ecx = ecx << 1u; /* 0x2B084C4B: shl ecx, 1 */ 6321 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6323 edx = edx - ecx; /* 0x2B084C4D: sub edx, ecx */ 6324 _flag_k = FK_CMP; 6325 ecx = MEM32(esi + 0x50); /* 0x2B084C4F: mov ecx, dword ptr [esi + 0x50] */ 6326 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6328 eax = eax + edx; /* 0x2B084C52: add eax, edx */ 6329 _flag_k = FK_ADD; 6330 MEM32(ebp + (-0x8)) = eax; /* 0x2B084C54: mov dword ptr [ebp - 8], eax */ 6331 eax = ebp + (-0x8); /* 0x2B084C57: lea eax, [ebp - 8] */ 6332 PUSH32(esp, eax); /* 0x2B084C5A: push eax */ 6333 RECOMP_ICALL(ebx); /* 0x2B084C5B: call ebx */ 6334 RECOMP_FLAGS_IN(); 6335 eax = MEM32(esi + 0x18); /* 0x2B084C5D: mov eax, dword ptr [esi + 0x18] */ 6336 edx = MEM32(esi + 0x2C); /* 0x2B084C60: mov edx, dword ptr [esi + 0x2c] */ 6337 ecx = MEM32(esi + 0x14); /* 0x2B084C63: mov ecx, dword ptr [esi + 0x14] */ 6338 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6340 edx = edx + eax; /* 0x2B084C66: add edx, eax */ 6341 _flag_k = FK_ADD; 6342 eax = ebp + (-0x8); /* 0x2B084C68: lea eax, [ebp - 8] */ 6343 MEM32(ebp + (-0x8)) = ecx; /* 0x2B084C6B: mov dword ptr [ebp - 8], ecx */ 6344 ecx = MEM32(esi + 0x68); /* 0x2B084C6E: mov ecx, dword ptr [esi + 0x68] */ 6345 PUSH32(esp, eax); /* 0x2B084C71: push eax */ 6346 MEM32(ebp + (-0x4)) = edx; /* 0x2B084C72: mov dword ptr [ebp - 4], edx */ 6347 RECOMP_ICALL(edi); /* 0x2B084C75: call edi */ 6348 RECOMP_FLAGS_IN(); 6349 ecx = MEM32(esi + 0x1C); /* 0x2B084C77: mov ecx, dword ptr [esi + 0x1c] */ 6350 eax = MEM32(esi + 0x30); /* 0x2B084C7A: mov eax, dword ptr [esi + 0x30] */ 6351 edx = MEM32(ebp + (-0x8)); /* 0x2B084C7D: mov edx, dword ptr [ebp - 8] */ 6352 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6353 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6354 ecx = ecx + eax; /* 0x2B084C80: add ecx, eax */ 6355 _flag_k = FK_ADD; 6356 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6358 edx = edx + ecx; /* 0x2B084C82: add edx, ecx */ 6359 _flag_k = FK_ADD; 6360 ecx = MEM32(esi + 0x60); /* 0x2B084C84: mov ecx, dword ptr [esi + 0x60] */ 6361 MEM32(ebp + (-0x8)) = edx; /* 0x2B084C87: mov dword ptr [ebp - 8], edx */ 6362 edx = ebp + (-0x8); /* 0x2B084C8A: lea edx, [ebp - 8] */ 6363 PUSH32(esp, edx); /* 0x2B084C8D: push edx */ 6364 RECOMP_ICALL(edi); /* 0x2B084C8E: call edi */ 6365 RECOMP_FLAGS_IN(); 6366 eax = MEM32(esi + 0x14); /* 0x2B084C90: mov eax, dword ptr [esi + 0x14] */ 6367 ecx = MEM32(esi + 0x20); /* 0x2B084C93: mov ecx, dword ptr [esi + 0x20] */ 6368 edx = MEM32(esi + 0x18); /* 0x2B084C96: mov edx, dword ptr [esi + 0x18] */ 6369 MEM32(ebp + (-0x8)) = eax; /* 0x2B084C99: mov dword ptr [ebp - 8], eax */ 6370 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x2C)); 6371 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6372 ecx = ecx + MEM32(esi + 0x2C); /* 0x2B084C9C: add ecx, dword ptr [esi + 0x2c] */ 6373 _flag_k = FK_ADD; 6374 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6376 ecx = ecx + edx; /* 0x2B084C9F: add ecx, edx */ 6377 _flag_k = FK_ADD; 6378 edx = ebp + (-0x8); /* 0x2B084CA1: lea edx, [ebp - 8] */ 6379 MEM32(ebp + (-0x4)) = ecx; /* 0x2B084CA4: mov dword ptr [ebp - 4], ecx */ 6380 ecx = MEM32(esi + 0x58); /* 0x2B084CA7: mov ecx, dword ptr [esi + 0x58] */ 6381 PUSH32(esp, edx); /* 0x2B084CAA: push edx */ 6382 RECOMP_ICALL(edi); /* 0x2B084CAB: call edi */ 6383 RECOMP_FLAGS_IN(); 6384 ecx = MEM32(ebp + (-0x8)); /* 0x2B084CAD: mov ecx, dword ptr [ebp - 8] */ 6385 eax = MEM32(esi + 0x30); /* 0x2B084CB0: mov eax, dword ptr [esi + 0x30] */ 6386 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6388 ecx = ecx + eax; /* 0x2B084CB3: add ecx, eax */ 6389 _flag_k = FK_ADD; 6390 MEM32(ebp + (-0x8)) = ecx; /* 0x2B084CB5: mov dword ptr [ebp - 8], ecx */ 6391 ecx = ebp + (-0x8); /* 0x2B084CB8: lea ecx, [ebp - 8] */ 6392 PUSH32(esp, ecx); /* 0x2B084CBB: push ecx */ 6393 ecx = MEM32(esi + 0x64); /* 0x2B084CBC: mov ecx, dword ptr [esi + 0x64] */ 6394 RECOMP_ICALL(edi); /* 0x2B084CBF: call edi */ 6395 RECOMP_FLAGS_IN(); 6396 eax = MEM32(ebp + (-0x8)); /* 0x2B084CC1: mov eax, dword ptr [ebp - 8] */ 6397 edx = MEM32(esi + 0x1C); /* 0x2B084CC4: mov edx, dword ptr [esi + 0x1c] */ 6398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6400 eax = eax + edx; /* 0x2B084CC7: add eax, edx */ 6401 _flag_k = FK_ADD; 6402 MEM32(ebp + (-0x8)) = eax; /* 0x2B084CC9: mov dword ptr [ebp - 8], eax */ 6403 eax = ebp + (-0x8); /* 0x2B084CCC: lea eax, [ebp - 8] */ 6404 ecx = MEM32(esi + 0x54); /* 0x2B084CCF: mov ecx, dword ptr [esi + 0x54] */ 6405 PUSH32(esp, eax); /* 0x2B084CD2: push eax */ 6406 RECOMP_ICALL(edi); /* 0x2B084CD3: call edi */ 6407 RECOMP_FLAGS_IN(); 6408 edx = MEM32(esi + 0x30); /* 0x2B084CD5: mov edx, dword ptr [esi + 0x30] */ 6409 ecx = MEM32(esi + 0x14); /* 0x2B084CD8: mov ecx, dword ptr [esi + 0x14] */ 6410 eax = MEM32(esi + 0x18); /* 0x2B084CDB: mov eax, dword ptr [esi + 0x18] */ 6411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6413 ecx = ecx + edx; /* 0x2B084CDE: add ecx, edx */ 6414 _flag_k = FK_ADD; 6415 edx = MEM32(esi + 0x2C); /* 0x2B084CE0: mov edx, dword ptr [esi + 0x2c] */ 6416 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6418 edx = edx + eax; /* 0x2B084CE3: add edx, eax */ 6419 _flag_k = FK_ADD; 6420 eax = ebp + (-0x8); /* 0x2B084CE5: lea eax, [ebp - 8] */ 6421 MEM32(ebp + (-0x8)) = ecx; /* 0x2B084CE8: mov dword ptr [ebp - 8], ecx */ 6422 ecx = MEM32(esi + 0x3C); /* 0x2B084CEB: mov ecx, dword ptr [esi + 0x3c] */ 6423 PUSH32(esp, eax); /* 0x2B084CEE: push eax */ 6424 MEM32(ebp + (-0x4)) = edx; /* 0x2B084CEF: mov dword ptr [ebp - 4], edx */ 6425 RECOMP_ICALL(edi); /* 0x2B084CF2: call edi */ 6426 RECOMP_FLAGS_IN(); 6427 ecx = ebp + (-0x8); /* 0x2B084CF4: lea ecx, [ebp - 8] */ 6428 PUSH32(esp, ecx); /* 0x2B084CF7: push ecx */ 6429 ecx = MEM32(esi + 0x40); /* 0x2B084CF8: mov ecx, dword ptr [esi + 0x40] */ 6430 RECOMP_ICALL(ebx); /* 0x2B084CFB: call ebx */ 6431 RECOMP_FLAGS_IN(); 6432 eax = MEM32(ebp + (-0x8)); /* 0x2B084CFD: mov eax, dword ptr [ebp - 8] */ 6433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 6434 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6435 eax = eax + 6; /* 0x2B084D00: add eax, 6 */ 6436 _flag_k = FK_ADD; 6437 PUSH32(esp, 5); /* 0x2B084D03: push 5 */ 6438 MEM32(ebp + (-0x8)) = eax; /* 0x2B084D05: mov dword ptr [ebp - 8], eax */ 6439 RECOMP_ICALL(MEM32(0x2B0B5880)); /* 0x2B084D08: call dword ptr [0x2b0b5880] */ 6440 RECOMP_FLAGS_IN(); 6441 ecx = eax; /* 0x2B084D0E: mov ecx, eax */ 6442 RECOMP_ICALL(MEM32(0x2B0B5BD4)); /* 0x2B084D10: call dword ptr [0x2b0b5bd4] */ 6443 RECOMP_FLAGS_IN(); 6444 edx = MEM32(esi + 0x20); /* 0x2B084D16: mov edx, dword ptr [esi + 0x20] */ 6445 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x30)); 6446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6447 edx = edx - MEM32(esi + 0x30); /* 0x2B084D19: sub edx, dword ptr [esi + 0x30] */ 6448 _flag_k = FK_CMP; 6449 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6451 edx = edx - eax; /* 0x2B084D1C: sub edx, eax */ 6452 _flag_k = FK_CMP; 6453 eax = MEM32(ebp + (-0x4)); /* 0x2B084D1E: mov eax, dword ptr [ebp - 4] */ 6454 ecx = eax + edx + (-0x6); /* 0x2B084D21: lea ecx, [eax + edx - 6] */ 6455 edx = ebp + (-0x8); /* 0x2B084D25: lea edx, [ebp - 8] */ 6456 MEM32(ebp + (-0x4)) = ecx; /* 0x2B084D28: mov dword ptr [ebp - 4], ecx */ 6457 ecx = MEM32(esi + 0x48); /* 0x2B084D2B: mov ecx, dword ptr [esi + 0x48] */ 6458 PUSH32(esp, edx); /* 0x2B084D2E: push edx */ 6459 RECOMP_ICALL(MEM32(0x2B0B5AE8)); /* 0x2B084D2F: call dword ptr [0x2b0b5ae8] */ 6460 RECOMP_FLAGS_IN(); 6461 edi = POP32_VAL(esp); /* 0x2B084D35: pop edi */ 6462 esi = POP32_VAL(esp); /* 0x2B084D36: pop esi */ 6463 ebx = POP32_VAL(esp); /* 0x2B084D37: pop ebx */ 6464 esp = ebp; /* 0x2B084D38: mov esp, ebp */ 6465 ebp = POP32_VAL(esp); /* 0x2B084D3A: pop ebp */ 6466 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B084D3B: ret 4 */ 6467 RECOMP_REGS_OUT(); 6468 } 6469 6470 void sub_2B084D40(void) { 6471 int _fpu_cmp = 0; 6472 uint32_t _cf = 0; 6473 int _df = 1; 6474 uint32_t _flag_k = FK_NONE; 6475 uint32_t _flag_a = 0, _flag_b = 0; 6476 uint32_t _itail_tgt = 0; 6477 RECOMP_REGS_LOCALS 6478 RECOMP_ENTER(0x2B084D40u); 6479 6480 L_2B084D40: 6481 PUSH32(esp, esi); /* 0x2B084D40: push esi */ 6482 esi = ecx; /* 0x2B084D41: mov esi, ecx */ 6483 eax = MEM32(esi + 0x34); /* 0x2B084D43: mov eax, dword ptr [esi + 0x34] */ 6484 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B084D46: mov byte ptr [eax + 8], 1 */ 6485 ecx = MEM32(esi + 0x44); /* 0x2B084D4A: mov ecx, dword ptr [esi + 0x44] */ 6486 PUSH32(esp, edi); /* 0x2B084D4D: push edi */ 6487 edi = MEM32(0x2B0B5BB4); /* 0x2B084D4E: mov edi, dword ptr [0x2b0b5bb4] */ 6488 MEM8(ecx + 0x8) = (uint8_t)(1); /* 0x2B084D54: mov byte ptr [ecx + 8], 1 */ 6489 ecx = MEM32(esi + 0x40); /* 0x2B084D58: mov ecx, dword ptr [esi + 0x40] */ 6490 RECOMP_ICALL(edi); /* 0x2B084D5B: call edi */ 6491 RECOMP_FLAGS_IN(); 6492 ecx = MEM32(esi + 0x3C); /* 0x2B084D5D: mov ecx, dword ptr [esi + 0x3c] */ 6493 edx = MEM32(ecx); /* 0x2B084D60: mov edx, dword ptr [ecx] */ 6494 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B084D62: call dword ptr [edx + 8] */ 6495 RECOMP_FLAGS_IN(); 6496 ecx = MEM32(esi + 0x48); /* 0x2B084D65: mov ecx, dword ptr [esi + 0x48] */ 6497 RECOMP_ICALL(MEM32(0x2B0B5A9C)); /* 0x2B084D68: call dword ptr [0x2b0b5a9c] */ 6498 RECOMP_FLAGS_IN(); 6499 eax = MEM32(esi + 0x48); /* 0x2B084D6E: mov eax, dword ptr [esi + 0x48] */ 6500 ecx = MEM32(eax + 0x8); /* 0x2B084D71: mov ecx, dword ptr [eax + 8] */ 6501 RECOMP_ICALL(MEM32(0x2B0B5A94)); /* 0x2B084D74: call dword ptr [0x2b0b5a94] */ 6502 RECOMP_FLAGS_IN(); 6503 ecx = MEM32(esi + 0x4C); /* 0x2B084D7A: mov ecx, dword ptr [esi + 0x4c] */ 6504 RECOMP_ICALL(edi); /* 0x2B084D7D: call edi */ 6505 RECOMP_FLAGS_IN(); 6506 ecx = MEM32(esi + 0x50); /* 0x2B084D7F: mov ecx, dword ptr [esi + 0x50] */ 6507 RECOMP_ICALL(edi); /* 0x2B084D82: call edi */ 6508 RECOMP_FLAGS_IN(); 6509 ecx = MEM32(esi + 0x54); /* 0x2B084D84: mov ecx, dword ptr [esi + 0x54] */ 6510 edx = MEM32(ecx); /* 0x2B084D87: mov edx, dword ptr [ecx] */ 6511 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B084D89: call dword ptr [edx + 8] */ 6512 RECOMP_FLAGS_IN(); 6513 ecx = MEM32(esi + 0x58); /* 0x2B084D8C: mov ecx, dword ptr [esi + 0x58] */ 6514 eax = MEM32(ecx); /* 0x2B084D8F: mov eax, dword ptr [ecx] */ 6515 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2B084D91: call dword ptr [eax + 8] */ 6516 RECOMP_FLAGS_IN(); 6517 ecx = MEM32(esi + 0x5C); /* 0x2B084D94: mov ecx, dword ptr [esi + 0x5c] */ 6518 edx = MEM32(ecx); /* 0x2B084D97: mov edx, dword ptr [ecx] */ 6519 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B084D99: call dword ptr [edx + 8] */ 6520 RECOMP_FLAGS_IN(); 6521 ecx = MEM32(esi + 0x60); /* 0x2B084D9C: mov ecx, dword ptr [esi + 0x60] */ 6522 eax = MEM32(ecx); /* 0x2B084D9F: mov eax, dword ptr [ecx] */ 6523 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2B084DA1: call dword ptr [eax + 8] */ 6524 RECOMP_FLAGS_IN(); 6525 ecx = MEM32(esi + 0x64); /* 0x2B084DA4: mov ecx, dword ptr [esi + 0x64] */ 6526 edx = MEM32(ecx); /* 0x2B084DA7: mov edx, dword ptr [ecx] */ 6527 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2B084DA9: call dword ptr [edx + 8] */ 6528 RECOMP_FLAGS_IN(); 6529 ecx = MEM32(esi + 0x68); /* 0x2B084DAC: mov ecx, dword ptr [esi + 0x68] */ 6530 eax = MEM32(ecx); /* 0x2B084DAF: mov eax, dword ptr [ecx] */ 6531 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2B084DB1: call dword ptr [eax + 8] */ 6532 RECOMP_FLAGS_IN(); 6533 ecx = MEM32(esi + 0x6C); /* 0x2B084DB4: mov ecx, dword ptr [esi + 0x6c] */ 6534 RECOMP_ICALL(MEM32(0x2B0B5B3C)); /* 0x2B084DB7: call dword ptr [0x2b0b5b3c] */ 6535 RECOMP_FLAGS_IN(); 6536 ecx = MEM32(esi + 0x70); /* 0x2B084DBD: mov ecx, dword ptr [esi + 0x70] */ 6537 edi = POP32_VAL(esp); /* 0x2B084DC0: pop edi */ 6538 MEM8(ecx + 0x8) = (uint8_t)(1); /* 0x2B084DC1: mov byte ptr [ecx + 8], 1 */ 6539 esi = POP32_VAL(esp); /* 0x2B084DC5: pop esi */ 6540 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B084DC6: ret */ 6541 RECOMP_REGS_OUT(); 6542 } 6543 6544 void sub_2B084DD0(void) { 6545 int _fpu_cmp = 0; 6546 uint32_t _cf = 0; 6547 int _df = 1; 6548 uint32_t _flag_k = FK_NONE; 6549 uint32_t _flag_a = 0, _flag_b = 0; 6550 uint32_t _itail_tgt = 0; 6551 RECOMP_REGS_LOCALS 6552 RECOMP_ENTER(0x2B084DD0u); 6553 6554 L_2B084DD0: 6555 PUSH32(esp, esi); /* 0x2B084DD0: push esi */ 6556 esi = ecx; /* 0x2B084DD1: mov esi, ecx */ 6557 eax = MEM32(esi + 0x34); /* 0x2B084DD3: mov eax, dword ptr [esi + 0x34] */ 6558 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B084DD6: mov byte ptr [eax + 8], 0 */ 6559 ecx = MEM32(esi + 0x44); /* 0x2B084DDA: mov ecx, dword ptr [esi + 0x44] */ 6560 PUSH32(esp, edi); /* 0x2B084DDD: push edi */ 6561 edi = MEM32(0x2B0B5BAC); /* 0x2B084DDE: mov edi, dword ptr [0x2b0b5bac] */ 6562 MEM8(ecx + 0x8) = (uint8_t)(0); /* 0x2B084DE4: mov byte ptr [ecx + 8], 0 */ 6563 ecx = MEM32(esi + 0x40); /* 0x2B084DE8: mov ecx, dword ptr [esi + 0x40] */ 6564 RECOMP_ICALL(edi); /* 0x2B084DEB: call edi */ 6565 RECOMP_FLAGS_IN(); 6566 ecx = MEM32(esi + 0x3C); /* 0x2B084DED: mov ecx, dword ptr [esi + 0x3c] */ 6567 edx = MEM32(ecx); /* 0x2B084DF0: mov edx, dword ptr [ecx] */ 6568 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B084DF2: call dword ptr [edx + 0xc] */ 6569 RECOMP_FLAGS_IN(); 6570 ecx = MEM32(esi + 0x48); /* 0x2B084DF5: mov ecx, dword ptr [esi + 0x48] */ 6571 RECOMP_ICALL(MEM32(0x2B0B5B60)); /* 0x2B084DF8: call dword ptr [0x2b0b5b60] */ 6572 RECOMP_FLAGS_IN(); 6573 ecx = MEM32(esi + 0x4C); /* 0x2B084DFE: mov ecx, dword ptr [esi + 0x4c] */ 6574 RECOMP_ICALL(edi); /* 0x2B084E01: call edi */ 6575 RECOMP_FLAGS_IN(); 6576 ecx = MEM32(esi + 0x50); /* 0x2B084E03: mov ecx, dword ptr [esi + 0x50] */ 6577 RECOMP_ICALL(edi); /* 0x2B084E06: call edi */ 6578 RECOMP_FLAGS_IN(); 6579 ecx = MEM32(esi + 0x54); /* 0x2B084E08: mov ecx, dword ptr [esi + 0x54] */ 6580 eax = MEM32(ecx); /* 0x2B084E0B: mov eax, dword ptr [ecx] */ 6581 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B084E0D: call dword ptr [eax + 0xc] */ 6582 RECOMP_FLAGS_IN(); 6583 ecx = MEM32(esi + 0x58); /* 0x2B084E10: mov ecx, dword ptr [esi + 0x58] */ 6584 edx = MEM32(ecx); /* 0x2B084E13: mov edx, dword ptr [ecx] */ 6585 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B084E15: call dword ptr [edx + 0xc] */ 6586 RECOMP_FLAGS_IN(); 6587 ecx = MEM32(esi + 0x5C); /* 0x2B084E18: mov ecx, dword ptr [esi + 0x5c] */ 6588 eax = MEM32(ecx); /* 0x2B084E1B: mov eax, dword ptr [ecx] */ 6589 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B084E1D: call dword ptr [eax + 0xc] */ 6590 RECOMP_FLAGS_IN(); 6591 ecx = MEM32(esi + 0x60); /* 0x2B084E20: mov ecx, dword ptr [esi + 0x60] */ 6592 edx = MEM32(ecx); /* 0x2B084E23: mov edx, dword ptr [ecx] */ 6593 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B084E25: call dword ptr [edx + 0xc] */ 6594 RECOMP_FLAGS_IN(); 6595 ecx = MEM32(esi + 0x64); /* 0x2B084E28: mov ecx, dword ptr [esi + 0x64] */ 6596 eax = MEM32(ecx); /* 0x2B084E2B: mov eax, dword ptr [ecx] */ 6597 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2B084E2D: call dword ptr [eax + 0xc] */ 6598 RECOMP_FLAGS_IN(); 6599 ecx = MEM32(esi + 0x68); /* 0x2B084E30: mov ecx, dword ptr [esi + 0x68] */ 6600 edx = MEM32(ecx); /* 0x2B084E33: mov edx, dword ptr [ecx] */ 6601 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2B084E35: call dword ptr [edx + 0xc] */ 6602 RECOMP_FLAGS_IN(); 6603 ecx = MEM32(esi + 0x6C); /* 0x2B084E38: mov ecx, dword ptr [esi + 0x6c] */ 6604 RECOMP_ICALL(MEM32(0x2B0B5B34)); /* 0x2B084E3B: call dword ptr [0x2b0b5b34] */ 6605 RECOMP_FLAGS_IN(); 6606 eax = MEM32(esi + 0x70); /* 0x2B084E41: mov eax, dword ptr [esi + 0x70] */ 6607 edi = POP32_VAL(esp); /* 0x2B084E44: pop edi */ 6608 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B084E45: mov byte ptr [eax + 8], 0 */ 6609 esi = POP32_VAL(esp); /* 0x2B084E49: pop esi */ 6610 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B084E4A: ret */ 6611 RECOMP_REGS_OUT(); 6612 } 6613 6614 void sub_2B084E50(void) { 6615 int _fpu_cmp = 0; 6616 uint32_t _cf = 0; 6617 int _df = 1; 6618 uint32_t _flag_k = FK_NONE; 6619 uint32_t _flag_a = 0, _flag_b = 0; 6620 uint32_t _itail_tgt = 0; 6621 RECOMP_REGS_LOCALS 6622 RECOMP_ENTER(0x2B084E50u); 6623 6624 L_2B084E50: 6625 PUSH32(esp, ebp); /* 0x2B084E50: push ebp */ 6626 ebp = esp; /* 0x2B084E51: mov ebp, esp */ 6627 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B084E53: fld dword ptr [ebp + 8] */ 6628 PUSH32(esp, ebx); /* 0x2B084E56: push ebx */ 6629 _st[0] *= (double)*(float*)ADDR(0x2B0B6888); /* 0x2B084E57: fmul dword ptr [0x2b0b6888] */ 6630 PUSH32(esp, esi); /* 0x2B084E5D: push esi */ 6631 PUSH32(esp, edi); /* 0x2B084E5E: push edi */ 6632 esi = ecx; /* 0x2B084E5F: mov esi, ecx */ 6633 RECOMP_ICALL(0x2B0AB220u); /* 0x2B084E61: call 0x2b0ab220 */ /* not lifted */ 6634 RECOMP_FLAGS_IN(); 6635 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2B084E66: fld dword ptr [ebp + 8] */ 6636 _st[0] *= *(double*)ADDR(0x2B0B7158); /* 0x2B084E69: fmul qword ptr [0x2b0b7158] */ 6637 edi = eax; /* 0x2B084E6F: mov edi, eax */ 6638 RECOMP_ICALL(0x2B0AB220u); /* 0x2B084E71: call 0x2b0ab220 */ /* not lifted */ 6639 RECOMP_FLAGS_IN(); 6640 ecx = MEM32(esi + 0x3C); /* 0x2B084E76: mov ecx, dword ptr [esi + 0x3c] */ 6641 ebx = MEM32(0x2B0B565C); /* 0x2B084E79: mov ebx, dword ptr [0x2b0b565c] */ 6642 PUSH32(esp, eax); /* 0x2B084E7F: push eax */ 6643 RECOMP_ICALL(ebx); /* 0x2B084E80: call ebx */ 6644 RECOMP_FLAGS_IN(); 6645 ecx = MEM32(esi + 0x40); /* 0x2B084E82: mov ecx, dword ptr [esi + 0x40] */ 6646 PUSH32(esp, edi); /* 0x2B084E85: push edi */ 6647 RECOMP_ICALL(MEM32(0x2B0B5BE0)); /* 0x2B084E86: call dword ptr [0x2b0b5be0] */ 6648 RECOMP_FLAGS_IN(); 6649 ecx = MEM32(esi + 0x4C); /* 0x2B084E8C: mov ecx, dword ptr [esi + 0x4c] */ 6650 PUSH32(esp, edi); /* 0x2B084E8F: push edi */ 6651 RECOMP_ICALL(MEM32(0x2B0B5BE0)); /* 0x2B084E90: call dword ptr [0x2b0b5be0] */ 6652 RECOMP_FLAGS_IN(); 6653 ecx = MEM32(esi + 0x50); /* 0x2B084E96: mov ecx, dword ptr [esi + 0x50] */ 6654 PUSH32(esp, edi); /* 0x2B084E99: push edi */ 6655 RECOMP_ICALL(MEM32(0x2B0B5BE0)); /* 0x2B084E9A: call dword ptr [0x2b0b5be0] */ 6656 RECOMP_FLAGS_IN(); 6657 ecx = MEM32(esi + 0x54); /* 0x2B084EA0: mov ecx, dword ptr [esi + 0x54] */ 6658 PUSH32(esp, edi); /* 0x2B084EA3: push edi */ 6659 RECOMP_ICALL(ebx); /* 0x2B084EA4: call ebx */ 6660 RECOMP_FLAGS_IN(); 6661 ecx = MEM32(esi + 0x58); /* 0x2B084EA6: mov ecx, dword ptr [esi + 0x58] */ 6662 PUSH32(esp, edi); /* 0x2B084EA9: push edi */ 6663 RECOMP_ICALL(ebx); /* 0x2B084EAA: call ebx */ 6664 RECOMP_FLAGS_IN(); 6665 ecx = MEM32(esi + 0x5C); /* 0x2B084EAC: mov ecx, dword ptr [esi + 0x5c] */ 6666 PUSH32(esp, edi); /* 0x2B084EAF: push edi */ 6667 RECOMP_ICALL(ebx); /* 0x2B084EB0: call ebx */ 6668 RECOMP_FLAGS_IN(); 6669 ecx = MEM32(esi + 0x60); /* 0x2B084EB2: mov ecx, dword ptr [esi + 0x60] */ 6670 PUSH32(esp, edi); /* 0x2B084EB5: push edi */ 6671 RECOMP_ICALL(ebx); /* 0x2B084EB6: call ebx */ 6672 RECOMP_FLAGS_IN(); 6673 ecx = MEM32(esi + 0x64); /* 0x2B084EB8: mov ecx, dword ptr [esi + 0x64] */ 6674 PUSH32(esp, edi); /* 0x2B084EBB: push edi */ 6675 RECOMP_ICALL(ebx); /* 0x2B084EBC: call ebx */ 6676 RECOMP_FLAGS_IN(); 6677 ecx = MEM32(esi + 0x68); /* 0x2B084EBE: mov ecx, dword ptr [esi + 0x68] */ 6678 PUSH32(esp, edi); /* 0x2B084EC1: push edi */ 6679 RECOMP_ICALL(ebx); /* 0x2B084EC2: call ebx */ 6680 RECOMP_FLAGS_IN(); 6681 edi = POP32_VAL(esp); /* 0x2B084EC4: pop edi */ 6682 esi = POP32_VAL(esp); /* 0x2B084EC5: pop esi */ 6683 ebx = POP32_VAL(esp); /* 0x2B084EC6: pop ebx */ 6684 ebp = POP32_VAL(esp); /* 0x2B084EC7: pop ebp */ 6685 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B084EC8: ret 4 */ 6686 RECOMP_REGS_OUT(); 6687 } 6688 6689 void sub_2B084ED0(void) { 6690 int _fpu_cmp = 0; 6691 uint32_t _cf = 0; 6692 int _df = 1; 6693 uint32_t _flag_k = FK_NONE; 6694 uint32_t _flag_a = 0, _flag_b = 0; 6695 uint32_t _itail_tgt = 0; 6696 RECOMP_REGS_LOCALS 6697 RECOMP_ENTER(0x2B084ED0u); 6698 6699 L_2B084ED0: 6700 PUSH32(esp, ebp); /* 0x2B084ED0: push ebp */ 6701 ebp = esp; /* 0x2B084ED1: mov ebp, esp */ 6702 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6704 esp = esp - 8; /* 0x2B084ED3: sub esp, 8 */ 6705 _flag_k = FK_CMP; 6706 ecx = MEM32(ebp + 0x8); /* 0x2B084ED6: mov ecx, dword ptr [ebp + 8] */ 6707 /* test ecx, ecx */ /* 0x2B084ED9: test ecx, ecx */ 6708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6709 _cf = 0; 6710 _flag_k = FK_TEST; 6711 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084EFC; /* 0x2B084EDB: je 0x2b084efc */ 6712 L_2B084EDD: 6713 eax = MEM32(ecx + 0x14); /* 0x2B084EDD: mov eax, dword ptr [ecx + 0x14] */ 6714 edx = MEM32(ecx + 0x18); /* 0x2B084EE0: mov edx, dword ptr [ecx + 0x18] */ 6715 PUSH32(esp, esi); /* 0x2B084EE3: push esi */ 6716 esi = MEM32(ebp + 0xC); /* 0x2B084EE4: mov esi, dword ptr [ebp + 0xc] */ 6717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi)); 6718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6719 eax = eax + MEM32(esi); /* 0x2B084EE7: add eax, dword ptr [esi] */ 6720 _flag_k = FK_ADD; 6721 MEM32(ebp + (-0x8)) = eax; /* 0x2B084EE9: mov dword ptr [ebp - 8], eax */ 6722 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6723 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6724 edx = edx + MEM32(esi + 0x4); /* 0x2B084EEC: add edx, dword ptr [esi + 4] */ 6725 _flag_k = FK_ADD; 6726 eax = ebp + (-0x8); /* 0x2B084EEF: lea eax, [ebp - 8] */ 6727 PUSH32(esp, eax); /* 0x2B084EF2: push eax */ 6728 MEM32(ebp + (-0x4)) = edx; /* 0x2B084EF3: mov dword ptr [ebp - 4], edx */ 6729 RECOMP_ICALL(0x2B084B60u); /* 0x2B084EF6: call 0x2b084b60 */ /* not lifted */ 6730 RECOMP_FLAGS_IN(); 6731 esi = POP32_VAL(esp); /* 0x2B084EFB: pop esi */ 6732 L_2B084EFC: 6733 esp = ebp; /* 0x2B084EFC: mov esp, ebp */ 6734 ebp = POP32_VAL(esp); /* 0x2B084EFE: pop ebp */ 6735 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B084EFF: ret */ 6736 RECOMP_REGS_OUT(); 6737 } 6738 6739 void sub_2B084F00(void) { 6740 int _fpu_cmp = 0; 6741 uint32_t _cf = 0; 6742 int _df = 1; 6743 uint32_t _flag_k = FK_NONE; 6744 uint32_t _flag_a = 0, _flag_b = 0; 6745 uint32_t _itail_tgt = 0; 6746 RECOMP_REGS_LOCALS 6747 RECOMP_ENTER(0x2B084F00u); 6748 6749 L_2B084F00: 6750 PUSH32(esp, ebp); /* 0x2B084F00: push ebp */ 6751 ebp = esp; /* 0x2B084F01: mov ebp, esp */ 6752 eax = MEM32(ebp + 0x8); /* 0x2B084F03: mov eax, dword ptr [ebp + 8] */ 6753 /* test eax, eax */ /* 0x2B084F06: test eax, eax */ 6754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6755 _cf = 0; 6756 _flag_k = FK_TEST; 6757 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084F1C; /* 0x2B084F08: je 0x2b084f1c */ 6758 L_2B084F0A: 6759 PUSH32(esp, 6); /* 0x2B084F0A: push 6 */ 6760 PUSH32(esp, 0x21u); /* 0x2B084F0C: push 0x21 */ 6761 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B084F0E: call dword ptr [0x2b0b53cc] */ 6762 RECOMP_FLAGS_IN(); 6763 ecx = eax; /* 0x2B084F14: mov ecx, eax */ 6764 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B084F16: call dword ptr [0x2b0b53c8] */ 6765 RECOMP_FLAGS_IN(); 6766 L_2B084F1C: 6767 ebp = POP32_VAL(esp); /* 0x2B084F1C: pop ebp */ 6768 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B084F1D: ret */ 6769 RECOMP_REGS_OUT(); 6770 } 6771 6772 void sub_2B084F20(void) { 6773 int _fpu_cmp = 0; 6774 uint32_t _cf = 0; 6775 int _df = 1; 6776 uint32_t _flag_k = FK_NONE; 6777 uint32_t _flag_a = 0, _flag_b = 0; 6778 uint32_t _itail_tgt = 0; 6779 RECOMP_REGS_LOCALS 6780 RECOMP_ENTER(0x2B084F20u); 6781 6782 L_2B084F20: 6783 PUSH32(esp, ebp); /* 0x2B084F20: push ebp */ 6784 ebp = esp; /* 0x2B084F21: mov ebp, esp */ 6785 ecx = MEM32(ebp + 0x8); /* 0x2B084F23: mov ecx, dword ptr [ebp + 8] */ 6786 /* test ecx, ecx */ /* 0x2B084F26: test ecx, ecx */ 6787 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6788 _cf = 0; 6789 _flag_k = FK_TEST; 6790 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084F33; /* 0x2B084F28: je 0x2b084f33 */ 6791 L_2B084F2A: 6792 eax = MEM32(ebp + 0xC); /* 0x2B084F2A: mov eax, dword ptr [ebp + 0xc] */ 6793 PUSH32(esp, eax); /* 0x2B084F2D: push eax */ 6794 RECOMP_ICALL(0x2B084F40u); /* 0x2B084F2E: call 0x2b084f40 */ /* not lifted */ 6795 RECOMP_FLAGS_IN(); 6796 L_2B084F33: 6797 ebp = POP32_VAL(esp); /* 0x2B084F33: pop ebp */ 6798 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B084F34: ret */ 6799 RECOMP_REGS_OUT(); 6800 } 6801 6802 void sub_2B084F40(void) { 6803 int _fpu_cmp = 0; 6804 uint32_t _cf = 0; 6805 int _df = 1; 6806 uint32_t _flag_k = FK_NONE; 6807 uint32_t _flag_a = 0, _flag_b = 0; 6808 uint32_t _itail_tgt = 0; 6809 RECOMP_REGS_LOCALS 6810 RECOMP_ENTER(0x2B084F40u); 6811 6812 L_2B084F40: 6813 PUSH32(esp, ebp); /* 0x2B084F40: push ebp */ 6814 ebp = esp; /* 0x2B084F41: mov ebp, esp */ 6815 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6817 esp = esp - 8; /* 0x2B084F43: sub esp, 8 */ 6818 _flag_k = FK_CMP; 6819 PUSH32(esp, ebx); /* 0x2B084F46: push ebx */ 6820 PUSH32(esp, esi); /* 0x2B084F47: push esi */ 6821 esi = ecx; /* 0x2B084F48: mov esi, ecx */ 6822 ebx = MEM32(esi + 0x10); /* 0x2B084F4A: mov ebx, dword ptr [esi + 0x10] */ 6823 /* test ebx, ebx */ /* 0x2B084F4D: test ebx, ebx */ 6824 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6825 _cf = 0; 6826 _flag_k = FK_TEST; 6827 MEM32(ebp + (-0x4)) = esi; /* 0x2B084F4F: mov dword ptr [ebp - 4], esi */ 6828 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08508D; /* 0x2B084F52: je 0x2b08508d */ 6829 L_2B084F58: 6830 edx = MEM32(ebx + 0x8); /* 0x2B084F58: mov edx, dword ptr [ebx + 8] */ 6831 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6832 ecx = ecx | 0xFFFFFFFFu; /* 0x2B084F5B: or ecx, 0xffffffff */ 6833 _cf = 0; 6834 _flag_k = FK_TEST; 6835 PUSH32(esp, edi); /* 0x2B084F5E: push edi */ 6836 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6837 eax = 0; /* 0x2B084F5F: xor eax, eax */ 6838 _cf = 0; 6839 _flag_k = FK_TEST; 6840 edi = 0x2B0E19F8u; /* 0x2B084F61: mov edi, 0x2b0e19f8 */ 6841 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; } /* 0x2B084F66: repne scasb al, byte ptr es:[edi] */ 6842 eax = MEM32(0x2B0B515C); /* 0x2B084F68: mov eax, dword ptr [0x2b0b515c] */ 6843 ecx = ~ecx; /* 0x2B084F6D: not ecx */ 6844 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6845 ecx = ecx - 1; /* 0x2B084F6F: dec ecx */ 6846 _flag_k = FK_DEC; 6847 edi = ecx; /* 0x2B084F70: mov edi, ecx */ 6848 ecx = MEM32(eax); /* 0x2B084F72: mov ecx, dword ptr [eax] */ 6849 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6850 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6851 ecx = ecx - edx; /* 0x2B084F74: sub ecx, edx */ 6852 _flag_k = FK_CMP; 6853 /* cmp ecx, edi */ /* 0x2B084F76: cmp ecx, edi */ 6854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6856 _flag_k = FK_CMP; 6857 if (CMP_A(_flag_a, _flag_b)) goto L_2B084F80; /* 0x2B084F78: ja 0x2b084f80 */ 6858 L_2B084F7A: 6859 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B084F7A: call dword ptr [0x2b0b51a8] */ 6860 RECOMP_FLAGS_IN(); 6861 L_2B084F80: 6862 /* test edi, edi */ /* 0x2B084F80: test edi, edi */ 6863 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6864 _cf = 0; 6865 _flag_k = FK_TEST; 6866 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084FCA; /* 0x2B084F82: jbe 0x2b084fca */ 6867 L_2B084F84: 6868 edx = MEM32(ebx + 0x8); /* 0x2B084F84: mov edx, dword ptr [ebx + 8] */ 6869 eax = edi; /* 0x2B084F87: mov eax, edi */ 6870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6872 eax = eax + edx; /* 0x2B084F89: add eax, edx */ 6873 _flag_k = FK_ADD; 6874 PUSH32(esp, 0); /* 0x2B084F8B: push 0 */ 6875 PUSH32(esp, eax); /* 0x2B084F8D: push eax */ 6876 ecx = ebx; /* 0x2B084F8E: mov ecx, ebx */ 6877 MEM32(ebp + (-0x8)) = eax; /* 0x2B084F90: mov dword ptr [ebp - 8], eax */ 6878 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B084F93: call dword ptr [0x2b0b5154] */ 6879 RECOMP_FLAGS_IN(); 6880 /* test LO8(eax), LO8(eax) */ /* 0x2B084F99: test al, al */ 6881 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6882 _cf = 0; 6883 _flag_k = FK_NARROW(FK_TEST, 24); 6884 if (TEST_Z(_flag_a, _flag_b)) goto L_2B084FCA; /* 0x2B084F9B: je 0x2b084fca */ 6885 L_2B084F9D: 6886 edx = MEM32(ebx + 0x8); /* 0x2B084F9D: mov edx, dword ptr [ebx + 8] */ 6887 eax = MEM32(ebp + (-0x8)); /* 0x2B084FA0: mov eax, dword ptr [ebp - 8] */ 6888 ecx = edi; /* 0x2B084FA3: mov ecx, edi */ 6889 edi = MEM32(ebx + 0x4); /* 0x2B084FA5: mov edi, dword ptr [ebx + 4] */ 6890 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 6891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6892 edi = edi + edx; /* 0x2B084FA8: add edi, edx */ 6893 _flag_k = FK_ADD; 6894 edx = ecx; /* 0x2B084FAA: mov edx, ecx */ 6895 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B084FAC: shr ecx, 2 */ 6896 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6897 ecx = ecx >> 2u; /* 0x2B084FAC: shr ecx, 2 */ 6898 esi = 0x2B0E19F8u; /* 0x2B084FAF: mov esi, 0x2b0e19f8 */ 6899 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B084FB4: 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; } 6900 ecx = edx; /* 0x2B084FB6: mov ecx, edx */ 6901 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6902 ecx = ecx & 3; /* 0x2B084FB8: and ecx, 3 */ 6903 _cf = 0; 6904 _flag_k = FK_TEST; 6905 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B084FBB: 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; } 6906 ecx = MEM32(ebx + 0x4); /* 0x2B084FBD: mov ecx, dword ptr [ebx + 4] */ 6907 esi = MEM32(ebp + (-0x4)); /* 0x2B084FC0: mov esi, dword ptr [ebp - 4] */ 6908 MEM32(ebx + 0x8) = eax; /* 0x2B084FC3: mov dword ptr [ebx + 8], eax */ 6909 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B084FC6: mov byte ptr [ecx + eax], 0 */ 6910 L_2B084FCA: 6911 eax = MEM32(esi + 0x4); /* 0x2B084FCA: mov eax, dword ptr [esi + 4] */ 6912 esi = MEM32(ebp + 0x8); /* 0x2B084FCD: mov esi, dword ptr [ebp + 8] */ 6913 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6914 edi = 0; /* 0x2B084FD0: xor edi, edi */ 6915 _cf = 0; 6916 _flag_k = FK_TEST; 6917 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6918 ebx = 0; /* 0x2B084FD2: xor ebx, ebx */ 6919 _cf = 0; 6920 _flag_k = FK_TEST; 6921 /* test eax, eax */ /* 0x2B084FD4: test eax, eax */ 6922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6923 _cf = 0; 6924 _flag_k = FK_TEST; 6925 if (TEST_LE(_flag_a, _flag_b)) goto L_2B084FFB; /* 0x2B084FD6: jle 0x2b084ffb */ 6926 L_2B084FD8: 6927 edx = edi + esi; /* 0x2B084FD8: lea edx, [edi + esi] */ 6928 PUSH32(esp, 0x2B0E19F8u); /* 0x2B084FDB: push 0x2b0e19f8 */ 6929 PUSH32(esp, edx); /* 0x2B084FE0: push edx */ 6930 RECOMP_ICALL(MEM32(0x2B0B5264)); /* 0x2B084FE1: call dword ptr [0x2b0b5264] */ 6931 RECOMP_FLAGS_IN(); 6932 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6933 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6934 edi = edi + eax; /* 0x2B084FE7: add edi, eax */ 6935 _flag_k = FK_ADD; 6936 eax = MEM32(ebp + (-0x4)); /* 0x2B084FE9: mov eax, dword ptr [ebp - 4] */ 6937 ecx = MEM32(eax + 0x4); /* 0x2B084FEC: mov ecx, dword ptr [eax + 4] */ 6938 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6939 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6940 esp = esp + 8; /* 0x2B084FEF: add esp, 8 */ 6941 _flag_k = FK_ADD; 6942 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6943 ebx = ebx + 1; /* 0x2B084FF2: inc ebx */ 6944 _flag_k = FK_INC; 6945 /* cmp ebx, ecx */ /* 0x2B084FF3: cmp ebx, ecx */ 6946 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 6947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6948 _flag_k = FK_CMP; 6949 RECOMP_BACKEDGE(); 6950 if (CMP_L(_flag_a, _flag_b)) goto L_2B084FD8; /* 0x2B084FF5: jl 0x2b084fd8 */ 6951 L_2B084FF7: 6952 /* test edi, edi */ /* 0x2B084FF7: test edi, edi */ 6953 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6954 _cf = 0; 6955 _flag_k = FK_TEST; 6956 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B085009; /* 0x2B084FF9: jne 0x2b085009 */ 6957 L_2B084FFB: 6958 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6959 ecx = ecx | 0xFFFFFFFFu; /* 0x2B084FFB: or ecx, 0xffffffff */ 6960 _cf = 0; 6961 _flag_k = FK_TEST; 6962 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6963 eax = 0; /* 0x2B084FFE: xor eax, eax */ 6964 _cf = 0; 6965 _flag_k = FK_TEST; 6966 edi = esi; /* 0x2B085000: mov edi, esi */ 6967 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; } /* 0x2B085002: repne scasb al, byte ptr es:[edi] */ 6968 ecx = ~ecx; /* 0x2B085004: not ecx */ 6969 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6970 ecx = ecx - 1; /* 0x2B085006: dec ecx */ 6971 _flag_k = FK_DEC; 6972 edi = ecx; /* 0x2B085007: mov edi, ecx */ 6973 L_2B085009: 6974 ecx = MEM32(ebp + (-0x4)); /* 0x2B085009: mov ecx, dword ptr [ebp - 4] */ 6975 edx = MEM32(0x2B0B515C); /* 0x2B08500C: mov edx, dword ptr [0x2b0b515c] */ 6976 ebx = MEM32(ecx + 0x10); /* 0x2B085012: mov ebx, dword ptr [ecx + 0x10] */ 6977 eax = MEM32(edx); /* 0x2B085015: mov eax, dword ptr [edx] */ 6978 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x8)); 6979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6980 eax = eax - MEM32(ebx + 0x8); /* 0x2B085017: sub eax, dword ptr [ebx + 8] */ 6981 _flag_k = FK_CMP; 6982 /* cmp eax, edi */ /* 0x2B08501A: cmp eax, edi */ 6983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6985 _flag_k = FK_CMP; 6986 if (CMP_A(_flag_a, _flag_b)) goto L_2B085024; /* 0x2B08501C: ja 0x2b085024 */ 6987 L_2B08501E: 6988 RECOMP_ICALL(MEM32(0x2B0B51A8)); /* 0x2B08501E: call dword ptr [0x2b0b51a8] */ 6989 RECOMP_FLAGS_IN(); 6990 L_2B085024: 6991 /* test edi, edi */ /* 0x2B085024: test edi, edi */ 6992 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6993 _cf = 0; 6994 _flag_k = FK_TEST; 6995 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085064; /* 0x2B085026: jbe 0x2b085064 */ 6996 L_2B085028: 6997 eax = MEM32(ebx + 0x8); /* 0x2B085028: mov eax, dword ptr [ebx + 8] */ 6998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7000 eax = eax + edi; /* 0x2B08502B: add eax, edi */ 7001 _flag_k = FK_ADD; 7002 PUSH32(esp, 0); /* 0x2B08502D: push 0 */ 7003 PUSH32(esp, eax); /* 0x2B08502F: push eax */ 7004 ecx = ebx; /* 0x2B085030: mov ecx, ebx */ 7005 MEM32(ebp + 0x8) = eax; /* 0x2B085032: mov dword ptr [ebp + 8], eax */ 7006 RECOMP_ICALL(MEM32(0x2B0B5154)); /* 0x2B085035: call dword ptr [0x2b0b5154] */ 7007 RECOMP_FLAGS_IN(); 7008 /* test LO8(eax), LO8(eax) */ /* 0x2B08503B: test al, al */ 7009 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7010 _cf = 0; 7011 _flag_k = FK_NARROW(FK_TEST, 24); 7012 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085064; /* 0x2B08503D: je 0x2b085064 */ 7013 L_2B08503F: 7014 edx = MEM32(ebx + 0x4); /* 0x2B08503F: mov edx, dword ptr [ebx + 4] */ 7015 eax = MEM32(ebp + 0x8); /* 0x2B085042: mov eax, dword ptr [ebp + 8] */ 7016 ecx = edi; /* 0x2B085045: mov ecx, edi */ 7017 edi = MEM32(ebx + 0x8); /* 0x2B085047: mov edi, dword ptr [ebx + 8] */ 7018 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 7019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7020 edi = edi + edx; /* 0x2B08504A: add edi, edx */ 7021 _flag_k = FK_ADD; 7022 edx = ecx; /* 0x2B08504C: mov edx, ecx */ 7023 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2B08504E: shr ecx, 2 */ 7024 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7025 ecx = ecx >> 2u; /* 0x2B08504E: shr ecx, 2 */ 7026 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085051: 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; } 7027 ecx = edx; /* 0x2B085053: mov ecx, edx */ 7028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7029 ecx = ecx & 3; /* 0x2B085055: and ecx, 3 */ 7030 _cf = 0; 7031 _flag_k = FK_TEST; 7032 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2B085058: 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; } 7033 ecx = MEM32(ebx + 0x4); /* 0x2B08505A: mov ecx, dword ptr [ebx + 4] */ 7034 MEM32(ebx + 0x8) = eax; /* 0x2B08505D: mov dword ptr [ebx + 8], eax */ 7035 MEM8(ecx + eax) = (uint8_t)(0); /* 0x2B085060: mov byte ptr [ecx + eax], 0 */ 7036 L_2B085064: 7037 ecx = MEM32(0x2B0EE690); /* 0x2B085064: mov ecx, dword ptr [0x2b0ee690] */ 7038 /* test ecx, ecx */ /* 0x2B08506A: test ecx, ecx */ 7039 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7040 _cf = 0; 7041 _flag_k = FK_TEST; 7042 edi = POP32_VAL(esp); /* 0x2B08506C: pop edi */ 7043 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08507B; /* 0x2B08506D: je 0x2b08507b */ 7044 L_2B08506F: 7045 edx = MEM32(ebp + (-0x4)); /* 0x2B08506F: mov edx, dword ptr [ebp - 4] */ 7046 eax = MEM32(edx + 0x10); /* 0x2B085072: mov eax, dword ptr [edx + 0x10] */ 7047 PUSH32(esp, eax); /* 0x2B085075: push eax */ 7048 RECOMP_ICALL(0x2B00B810u); /* 0x2B085076: call 0x2b00b810 */ /* not lifted */ 7049 RECOMP_FLAGS_IN(); 7050 L_2B08507B: 7051 PUSH32(esp, 6); /* 0x2B08507B: push 6 */ 7052 PUSH32(esp, 0x21u); /* 0x2B08507D: push 0x21 */ 7053 RECOMP_ICALL(MEM32(0x2B0B53CC)); /* 0x2B08507F: call dword ptr [0x2b0b53cc] */ 7054 RECOMP_FLAGS_IN(); 7055 ecx = eax; /* 0x2B085085: mov ecx, eax */ 7056 RECOMP_ICALL(MEM32(0x2B0B53C8)); /* 0x2B085087: call dword ptr [0x2b0b53c8] */ 7057 RECOMP_FLAGS_IN(); 7058 L_2B08508D: 7059 esi = POP32_VAL(esp); /* 0x2B08508D: pop esi */ 7060 ebx = POP32_VAL(esp); /* 0x2B08508E: pop ebx */ 7061 esp = ebp; /* 0x2B08508F: mov esp, ebp */ 7062 ebp = POP32_VAL(esp); /* 0x2B085091: pop ebp */ 7063 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B085092: ret 4 */ 7064 RECOMP_REGS_OUT(); 7065 } 7066 7067 void sub_2B0850A0(void) { 7068 int _fpu_cmp = 0; 7069 uint32_t _cf = 0; 7070 int _df = 1; 7071 uint32_t _flag_k = FK_NONE; 7072 uint32_t _flag_a = 0, _flag_b = 0; 7073 uint32_t _itail_tgt = 0; 7074 RECOMP_REGS_LOCALS 7075 RECOMP_ENTER(0x2B0850A0u); 7076 7077 L_2B0850A0: 7078 PUSH32(esp, ebx); /* 0x2B0850A0: push ebx */ 7079 PUSH32(esp, esi); /* 0x2B0850A1: push esi */ 7080 esi = MEM32(0x2B0B53CC); /* 0x2B0850A2: mov esi, dword ptr [0x2b0b53cc] */ 7081 PUSH32(esp, edi); /* 0x2B0850A8: push edi */ 7082 ebx = ecx; /* 0x2B0850A9: mov ebx, ecx */ 7083 RECOMP_ICALL(esi); /* 0x2B0850AB: call esi */ 7084 RECOMP_FLAGS_IN(); 7085 ecx = eax; /* 0x2B0850AD: mov ecx, eax */ 7086 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B0850AF: call dword ptr [0x2b0b5374] */ 7087 RECOMP_FLAGS_IN(); 7088 PUSH32(esp, 0x7D0u); /* 0x2B0850B5: push 0x7d0 */ 7089 PUSH32(esp, 0x21u); /* 0x2B0850BA: push 0x21 */ 7090 PUSH32(esp, 2); /* 0x2B0850BC: push 2 */ 7091 RECOMP_ICALL(esi); /* 0x2B0850BE: call esi */ 7092 RECOMP_FLAGS_IN(); 7093 ecx = eax; /* 0x2B0850C0: mov ecx, eax */ 7094 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B0850C2: call dword ptr [0x2b0b5378] */ 7095 RECOMP_FLAGS_IN(); 7096 PUSH32(esp, 0x2B001520u); /* 0x2B0850C8: push 0x2b001520 */ 7097 PUSH32(esp, 5); /* 0x2B0850CD: push 5 */ 7098 RECOMP_ICALL(esi); /* 0x2B0850CF: call esi */ 7099 RECOMP_FLAGS_IN(); 7100 edi = MEM32(0x2B0B5324); /* 0x2B0850D1: mov edi, dword ptr [0x2b0b5324] */ 7101 ecx = eax; /* 0x2B0850D7: mov ecx, eax */ 7102 RECOMP_ICALL(edi); /* 0x2B0850D9: call edi */ 7103 RECOMP_FLAGS_IN(); 7104 PUSH32(esp, 0x2B0851A0u); /* 0x2B0850DB: push 0x2b0851a0 */ 7105 PUSH32(esp, 6); /* 0x2B0850E0: push 6 */ 7106 RECOMP_ICALL(esi); /* 0x2B0850E2: call esi */ 7107 RECOMP_FLAGS_IN(); 7108 ecx = eax; /* 0x2B0850E4: mov ecx, eax */ 7109 RECOMP_ICALL(edi); /* 0x2B0850E6: call edi */ 7110 RECOMP_FLAGS_IN(); 7111 PUSH32(esp, 0x2B0851D0u); /* 0x2B0850E8: push 0x2b0851d0 */ 7112 PUSH32(esp, 0xC1u); /* 0x2B0850ED: push 0xc1 */ 7113 RECOMP_ICALL(esi); /* 0x2B0850F2: call esi */ 7114 RECOMP_FLAGS_IN(); 7115 ecx = eax; /* 0x2B0850F4: mov ecx, eax */ 7116 RECOMP_ICALL(edi); /* 0x2B0850F6: call edi */ 7117 RECOMP_FLAGS_IN(); 7118 edi = POP32_VAL(esp); /* 0x2B0850F8: pop edi */ 7119 esi = POP32_VAL(esp); /* 0x2B0850F9: pop esi */ 7120 eax = ebx; /* 0x2B0850FA: mov eax, ebx */ 7121 MEM32(0x2B0EF0D0) = 0; /* 0x2B0850FC: mov dword ptr [0x2b0ef0d0], 0 */ 7122 ebx = POP32_VAL(esp); /* 0x2B085106: pop ebx */ 7123 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B085107: ret */ 7124 RECOMP_REGS_OUT(); 7125 } 7126 7127 void sub_2B085110(void) { 7128 int _fpu_cmp = 0; 7129 uint32_t _cf = 0; 7130 int _df = 1; 7131 uint32_t _flag_k = FK_NONE; 7132 uint32_t _flag_a = 0, _flag_b = 0; 7133 uint32_t _itail_tgt = 0; 7134 RECOMP_REGS_LOCALS 7135 RECOMP_ENTER(0x2B085110u); 7136 7137 L_2B085110: 7138 MEM32(0x2B0EF0D0) = 0; /* 0x2B085110: mov dword ptr [0x2b0ef0d0], 0 */ 7139 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B08511A: ret */ 7140 RECOMP_REGS_OUT(); 7141 } 7142 7143 void sub_2B085120(void) { 7144 int _fpu_cmp = 0; 7145 uint32_t _cf = 0; 7146 int _df = 1; 7147 uint32_t _flag_k = FK_NONE; 7148 uint32_t _flag_a = 0, _flag_b = 0; 7149 uint32_t _itail_tgt = 0; 7150 RECOMP_REGS_LOCALS 7151 RECOMP_ENTER(0x2B085120u); 7152 7153 L_2B085120: 7154 PUSH32(esp, ebp); /* 0x2B085120: push ebp */ 7155 ebp = esp; /* 0x2B085121: mov ebp, esp */ 7156 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B085123: push -1 */ 7157 PUSH32(esp, 0x2B0B215Bu); /* 0x2B085125: push 0x2b0b215b */ 7158 eax = MEM32(FS_BASE + (0)); /* 0x2B08512A: mov eax, dword ptr fs:[0] */ 7159 PUSH32(esp, eax); /* 0x2B085130: push eax */ 7160 MEM32(FS_BASE + (0)) = esp; /* 0x2B085131: mov dword ptr fs:[0], esp */ 7161 PUSH32(esp, ecx); /* 0x2B085138: push ecx */ 7162 eax = MEM32(0x2B0EF0CC); /* 0x2B085139: mov eax, dword ptr [0x2b0ef0cc] */ 7163 /* test eax, eax */ /* 0x2B08513E: test eax, eax */ 7164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7165 _cf = 0; 7166 _flag_k = FK_TEST; 7167 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08517B; /* 0x2B085140: jne 0x2b08517b */ 7168 L_2B085142: 7169 PUSH32(esp, 1); /* 0x2B085142: push 1 */ 7170 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085144: call 0x2b0ab212 */ /* not lifted */ 7171 RECOMP_FLAGS_IN(); 7172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7174 esp = esp + 4; /* 0x2B085149: add esp, 4 */ 7175 _flag_k = FK_ADD; 7176 MEM32(ebp + (-0x10)) = eax; /* 0x2B08514C: mov dword ptr [ebp - 0x10], eax */ 7177 /* test eax, eax */ /* 0x2B08514F: test eax, eax */ 7178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7179 _cf = 0; 7180 _flag_k = FK_TEST; 7181 MEM32(ebp + (-0x4)) = 0; /* 0x2B085151: mov dword ptr [ebp - 4], 0 */ 7182 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085174; /* 0x2B085158: je 0x2b085174 */ 7183 L_2B08515A: 7184 ecx = eax; /* 0x2B08515A: mov ecx, eax */ 7185 RECOMP_ICALL(0x2B0850A0u); /* 0x2B08515C: call 0x2b0850a0 */ /* not lifted */ 7186 RECOMP_FLAGS_IN(); 7187 MEM32(0x2B0EF0CC) = eax; /* 0x2B085161: mov dword ptr [0x2b0ef0cc], eax */ 7188 ecx = MEM32(ebp + (-0xC)); /* 0x2B085166: mov ecx, dword ptr [ebp - 0xc] */ 7189 MEM32(FS_BASE + (0)) = ecx; /* 0x2B085169: mov dword ptr fs:[0], ecx */ 7190 esp = ebp; /* 0x2B085170: mov esp, ebp */ 7191 ebp = POP32_VAL(esp); /* 0x2B085172: pop ebp */ 7192 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B085173: ret */ 7193 L_2B085174: 7194 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7195 eax = 0; /* 0x2B085174: xor eax, eax */ 7196 _cf = 0; 7197 _flag_k = FK_TEST; 7198 MEM32(0x2B0EF0CC) = eax; /* 0x2B085176: mov dword ptr [0x2b0ef0cc], eax */ 7199 L_2B08517B: 7200 ecx = MEM32(ebp + (-0xC)); /* 0x2B08517B: mov ecx, dword ptr [ebp - 0xc] */ 7201 MEM32(FS_BASE + (0)) = ecx; /* 0x2B08517E: mov dword ptr fs:[0], ecx */ 7202 esp = ebp; /* 0x2B085185: mov esp, ebp */ 7203 ebp = POP32_VAL(esp); /* 0x2B085187: pop ebp */ 7204 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B085188: ret */ 7205 RECOMP_REGS_OUT(); 7206 } 7207 7208 void sub_2B085190(void) { 7209 int _fpu_cmp = 0; 7210 uint32_t _cf = 0; 7211 int _df = 1; 7212 uint32_t _flag_k = FK_NONE; 7213 uint32_t _flag_a = 0, _flag_b = 0; 7214 uint32_t _itail_tgt = 0; 7215 RECOMP_REGS_LOCALS 7216 RECOMP_ENTER(0x2B085190u); 7217 7218 L_2B085190: 7219 eax = MEM32(0x2B0EF0CC); /* 0x2B085190: mov eax, dword ptr [0x2b0ef0cc] */ 7220 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B085195: ret */ 7221 RECOMP_REGS_OUT(); 7222 } 7223 7224 void sub_2B0851A0(void) { 7225 int _fpu_cmp = 0; 7226 uint32_t _cf = 0; 7227 int _df = 1; 7228 uint32_t _flag_k = FK_NONE; 7229 uint32_t _flag_a = 0, _flag_b = 0; 7230 uint32_t _itail_tgt = 0; 7231 RECOMP_REGS_LOCALS 7232 RECOMP_ENTER(0x2B0851A0u); 7233 7234 L_2B0851A0: 7235 PUSH32(esp, esi); /* 0x2B0851A0: push esi */ 7236 esi = MEM32(0x2B0EF0D0); /* 0x2B0851A1: mov esi, dword ptr [0x2b0ef0d0] */ 7237 /* test esi, esi */ /* 0x2B0851A7: test esi, esi */ 7238 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7239 _cf = 0; 7240 _flag_k = FK_TEST; 7241 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0851BB; /* 0x2B0851A9: je 0x2b0851bb */ 7242 L_2B0851AB: 7243 ecx = esi; /* 0x2B0851AB: mov ecx, esi */ 7244 RECOMP_ICALL(0x2B084790u); /* 0x2B0851AD: call 0x2b084790 */ /* not lifted */ 7245 RECOMP_FLAGS_IN(); 7246 PUSH32(esp, esi); /* 0x2B0851B2: push esi */ 7247 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0851B3: call 0x2b0ab1ba */ /* not lifted */ 7248 RECOMP_FLAGS_IN(); 7249 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7251 esp = esp + 4; /* 0x2B0851B8: add esp, 4 */ 7252 _flag_k = FK_ADD; 7253 L_2B0851BB: 7254 MEM32(0x2B0EF0D0) = 0; /* 0x2B0851BB: mov dword ptr [0x2b0ef0d0], 0 */ 7255 esi = POP32_VAL(esp); /* 0x2B0851C5: pop esi */ 7256 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0851C6: ret */ 7257 RECOMP_REGS_OUT(); 7258 } 7259 7260 void sub_2B0851D0(void) { 7261 int _fpu_cmp = 0; 7262 uint32_t _cf = 0; 7263 int _df = 1; 7264 uint32_t _flag_k = FK_NONE; 7265 uint32_t _flag_a = 0, _flag_b = 0; 7266 uint32_t _itail_tgt = 0; 7267 RECOMP_REGS_LOCALS 7268 RECOMP_ENTER(0x2B0851D0u); 7269 7270 L_2B0851D0: 7271 PUSH32(esp, ebp); /* 0x2B0851D0: push ebp */ 7272 ebp = esp; /* 0x2B0851D1: mov ebp, esp */ 7273 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0851D3: push -1 */ 7274 PUSH32(esp, 0x2B0B217Bu); /* 0x2B0851D5: push 0x2b0b217b */ 7275 eax = MEM32(FS_BASE + (0)); /* 0x2B0851DA: mov eax, dword ptr fs:[0] */ 7276 PUSH32(esp, eax); /* 0x2B0851E0: push eax */ 7277 MEM32(FS_BASE + (0)) = esp; /* 0x2B0851E1: mov dword ptr fs:[0], esp */ 7278 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7280 esp = esp - 0xCu; /* 0x2B0851E8: sub esp, 0xc */ 7281 _flag_k = FK_CMP; 7282 eax = MEM32(0x2B0EF0D0); /* 0x2B0851EB: mov eax, dword ptr [0x2b0ef0d0] */ 7283 /* test eax, eax */ /* 0x2B0851F0: test eax, eax */ 7284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7285 _cf = 0; 7286 _flag_k = FK_TEST; 7287 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08525B; /* 0x2B0851F2: jne 0x2b08525b */ 7288 L_2B0851F4: 7289 PUSH32(esp, esi); /* 0x2B0851F4: push esi */ 7290 esi = MEM32(0x2B0B53CC); /* 0x2B0851F5: mov esi, dword ptr [0x2b0b53cc] */ 7291 PUSH32(esp, edi); /* 0x2B0851FB: push edi */ 7292 RECOMP_ICALL(esi); /* 0x2B0851FC: call esi */ 7293 RECOMP_FLAGS_IN(); 7294 ecx = eax; /* 0x2B0851FE: mov ecx, eax */ 7295 RECOMP_ICALL(MEM32(0x2B0B53A4)); /* 0x2B085200: call dword ptr [0x2b0b53a4] */ 7296 RECOMP_FLAGS_IN(); 7297 edi = eax; /* 0x2B085206: mov edi, eax */ 7298 eax = ebp + (-0x10); /* 0x2B085208: lea eax, [ebp - 0x10] */ 7299 PUSH32(esp, eax); /* 0x2B08520B: push eax */ 7300 ecx = ebp + (-0x14); /* 0x2B08520C: lea ecx, [ebp - 0x14] */ 7301 PUSH32(esp, ecx); /* 0x2B08520F: push ecx */ 7302 RECOMP_ICALL(esi); /* 0x2B085210: call esi */ 7303 RECOMP_FLAGS_IN(); 7304 ecx = eax; /* 0x2B085212: mov ecx, eax */ 7305 RECOMP_ICALL(MEM32(0x2B0B5360)); /* 0x2B085214: call dword ptr [0x2b0b5360] */ 7306 RECOMP_FLAGS_IN(); 7307 PUSH32(esp, 0x74u); /* 0x2B08521A: push 0x74 */ 7308 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08521C: call 0x2b0ab212 */ /* not lifted */ 7309 RECOMP_FLAGS_IN(); 7310 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7311 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7312 esp = esp + 4; /* 0x2B085221: add esp, 4 */ 7313 _flag_k = FK_ADD; 7314 MEM32(ebp + (-0x18)) = eax; /* 0x2B085224: mov dword ptr [ebp - 0x18], eax */ 7315 /* test eax, eax */ /* 0x2B085227: test eax, eax */ 7316 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7317 _cf = 0; 7318 _flag_k = FK_TEST; 7319 MEM32(ebp + (-0x4)) = 0; /* 0x2B085229: mov dword ptr [ebp - 4], 0 */ 7320 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085244; /* 0x2B085230: je 0x2b085244 */ 7321 L_2B085232: 7322 edx = MEM32(ebp + (-0x10)); /* 0x2B085232: mov edx, dword ptr [ebp - 0x10] */ 7323 ecx = MEM32(ebp + (-0x14)); /* 0x2B085235: mov ecx, dword ptr [ebp - 0x14] */ 7324 PUSH32(esp, edx); /* 0x2B085238: push edx */ 7325 PUSH32(esp, ecx); /* 0x2B085239: push ecx */ 7326 PUSH32(esp, edi); /* 0x2B08523A: push edi */ 7327 ecx = eax; /* 0x2B08523B: mov ecx, eax */ 7328 RECOMP_ICALL(0x2B083E90u); /* 0x2B08523D: call 0x2b083e90 */ /* not lifted */ 7329 RECOMP_FLAGS_IN(); 7330 goto L_2B085246; /* 0x2B085242: jmp 0x2b085246 */ 7331 L_2B085244: 7332 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7333 eax = 0; /* 0x2B085244: xor eax, eax */ 7334 _cf = 0; 7335 _flag_k = FK_TEST; 7336 L_2B085246: 7337 ecx = eax; /* 0x2B085246: mov ecx, eax */ 7338 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2B085248: mov dword ptr [ebp - 4], 0xffffffff */ 7339 MEM32(0x2B0EF0D0) = eax; /* 0x2B08524F: mov dword ptr [0x2b0ef0d0], eax */ 7340 RECOMP_ICALL(0x2B084940u); /* 0x2B085254: call 0x2b084940 */ /* not lifted */ 7341 RECOMP_FLAGS_IN(); 7342 edi = POP32_VAL(esp); /* 0x2B085259: pop edi */ 7343 esi = POP32_VAL(esp); /* 0x2B08525A: pop esi */ 7344 L_2B08525B: 7345 ecx = MEM32(ebp + (-0xC)); /* 0x2B08525B: mov ecx, dword ptr [ebp - 0xc] */ 7346 MEM32(FS_BASE + (0)) = ecx; /* 0x2B08525E: mov dword ptr fs:[0], ecx */ 7347 esp = ebp; /* 0x2B085265: mov esp, ebp */ 7348 ebp = POP32_VAL(esp); /* 0x2B085267: pop ebp */ 7349 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B085268: ret */ 7350 RECOMP_REGS_OUT(); 7351 } 7352 7353 void sub_2B085270(void) { 7354 int _fpu_cmp = 0; 7355 uint32_t _cf = 0; 7356 int _df = 1; 7357 uint32_t _flag_k = FK_NONE; 7358 uint32_t _flag_a = 0, _flag_b = 0; 7359 uint32_t _itail_tgt = 0; 7360 RECOMP_REGS_LOCALS 7361 RECOMP_ENTER(0x2B085270u); 7362 7363 L_2B085270: 7364 PUSH32(esp, ebp); /* 0x2B085270: push ebp */ 7365 ebp = esp; /* 0x2B085271: mov ebp, esp */ 7366 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B085273: push -1 */ 7367 PUSH32(esp, 0x2B0B226Fu); /* 0x2B085275: push 0x2b0b226f */ 7368 eax = MEM32(FS_BASE + (0)); /* 0x2B08527A: mov eax, dword ptr fs:[0] */ 7369 PUSH32(esp, eax); /* 0x2B085280: push eax */ 7370 MEM32(FS_BASE + (0)) = esp; /* 0x2B085281: mov dword ptr fs:[0], esp */ 7371 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xB4u); 7372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7373 esp = esp - 0xB4u; /* 0x2B085288: sub esp, 0xb4 */ 7374 _flag_k = FK_CMP; 7375 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x2B08528E: mov al, byte ptr [ebp + 0x13] */ 7376 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7377 edx = 0; /* 0x2B085291: xor edx, edx */ 7378 _cf = 0; 7379 _flag_k = FK_TEST; 7380 PUSH32(esp, ebx); /* 0x2B085293: push ebx */ 7381 ebx = ecx; /* 0x2B085294: mov ebx, ecx */ 7382 MEM32(ebx + 0x20) = edx; /* 0x2B085296: mov dword ptr [ebx + 0x20], edx */ 7383 MEM32(ebx + 0x24) = edx; /* 0x2B085299: mov dword ptr [ebx + 0x24], edx */ 7384 MEM32(ebx + 0x48) = edx; /* 0x2B08529C: mov dword ptr [ebx + 0x48], edx */ 7385 MEM32(ebx + 0x4C) = edx; /* 0x2B08529F: mov dword ptr [ebx + 0x4c], edx */ 7386 PUSH32(esp, esi); /* 0x2B0852A2: push esi */ 7387 PUSH32(esp, edi); /* 0x2B0852A3: push edi */ 7388 MEM32(ebp + (-0xC0)) = ebx; /* 0x2B0852A4: mov dword ptr [ebp - 0xc0], ebx */ 7389 MEM8(ebx + 0x50) = (uint8_t)(LO8(eax)); /* 0x2B0852AA: mov byte ptr [ebx + 0x50], al */ 7390 MEM32(ebx + 0x54) = edx; /* 0x2B0852AD: mov dword ptr [ebx + 0x54], edx */ 7391 MEM32(ebx + 0x58) = edx; /* 0x2B0852B0: mov dword ptr [ebx + 0x58], edx */ 7392 MEM32(ebx + 0x5C) = edx; /* 0x2B0852B3: mov dword ptr [ebx + 0x5c], edx */ 7393 ecx = MEM32(ebp + 0x8); /* 0x2B0852B6: mov ecx, dword ptr [ebp + 8] */ 7394 eax = MEM32(ebp + 0xC); /* 0x2B0852B9: mov eax, dword ptr [ebp + 0xc] */ 7395 MEM32(ebx + 0x68) = edx; /* 0x2B0852BC: mov dword ptr [ebx + 0x68], edx */ 7396 MEM32(ebx + 0x6C) = edx; /* 0x2B0852BF: mov dword ptr [ebx + 0x6c], edx */ 7397 MEM32(ebx + 0x7C) = edx; /* 0x2B0852C2: mov dword ptr [ebx + 0x7c], edx */ 7398 MEM32(ebx + 0x80) = edx; /* 0x2B0852C5: mov dword ptr [ebx + 0x80], edx */ 7399 MEM32(ebx + 0xBC) = edx; /* 0x2B0852CB: mov dword ptr [ebx + 0xbc], edx */ 7400 MEM32(ebx + 0xC0) = edx; /* 0x2B0852D1: mov dword ptr [ebx + 0xc0], edx */ 7401 MEM32(ebx + 0x120) = edx; /* 0x2B0852D7: mov dword ptr [ebx + 0x120], edx */ 7402 MEM32(ebx + 0x124) = edx; /* 0x2B0852DD: mov dword ptr [ebx + 0x124], edx */ 7403 MEM8(ebx + 0x13D) = (uint8_t)(LO8(edx)); /* 0x2B0852E3: mov byte ptr [ebx + 0x13d], dl */ 7404 MEM32(0x2B0EF0D4) = ebx; /* 0x2B0852E9: mov dword ptr [0x2b0ef0d4], ebx */ 7405 MEM32(ebx + 0x20) = ecx; /* 0x2B0852EF: mov dword ptr [ebx + 0x20], ecx */ 7406 ecx = MEM32(ebp + 0x10); /* 0x2B0852F2: mov ecx, dword ptr [ebp + 0x10] */ 7407 MEM32(ebx + 0x24) = eax; /* 0x2B0852F5: mov dword ptr [ebx + 0x24], eax */ 7408 MEM32(ebx + 0x1C) = ecx; /* 0x2B0852F8: mov dword ptr [ebx + 0x1c], ecx */ 7409 MEM32(ebx) = 0x32u; /* 0x2B0852FB: mov dword ptr [ebx], 0x32 */ 7410 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7411 eax = 0; /* 0x2B085301: xor eax, eax */ 7412 _cf = 0; 7413 _flag_k = FK_TEST; 7414 edi = ebx + 0x4; /* 0x2B085303: lea edi, [ebx + 4] */ 7415 ecx = 6; /* 0x2B085306: mov ecx, 6 */ 7416 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08530B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 7417 eax = 0x1E0u; /* 0x2B08530D: mov eax, 0x1e0 */ 7418 ecx = 0xAu; /* 0x2B085312: mov ecx, 0xa */ 7419 esi = ebx; /* 0x2B085317: mov esi, ebx */ 7420 edi = ebx + 0x28; /* 0x2B085319: lea edi, [ebx + 0x28] */ 7421 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08531C: 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; } 7422 ecx = eax; /* 0x2B08531E: mov ecx, eax */ 7423 MEM32(ebx + 0x7C) = eax; /* 0x2B085320: mov dword ptr [ebx + 0x7c], eax */ 7424 PUSH32(esp, 0x50u); /* 0x2B085323: push 0x50 */ 7425 MEM32(ebp + (-0x4)) = edx; /* 0x2B085325: mov dword ptr [ebp - 4], edx */ 7426 MEM32(ebp + (-0x14)) = edx; /* 0x2B085328: mov dword ptr [ebp - 0x14], edx */ 7427 MEM32(ebp + (-0x10)) = edx; /* 0x2B08532B: mov dword ptr [ebp - 0x10], edx */ 7428 MEM32(ebx + 0x80) = ecx; /* 0x2B08532E: mov dword ptr [ebx + 0x80], ecx */ 7429 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085334: call 0x2b0ab212 */ /* not lifted */ 7430 RECOMP_FLAGS_IN(); 7431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7433 esp = esp + 4; /* 0x2B085339: add esp, 4 */ 7434 _flag_k = FK_ADD; 7435 MEM32(ebp + 0x10) = eax; /* 0x2B08533C: mov dword ptr [ebp + 0x10], eax */ 7436 /* test eax, eax */ /* 0x2B08533F: test eax, eax */ 7437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7438 _cf = 0; 7439 _flag_k = FK_TEST; 7440 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2B085341: mov byte ptr [ebp - 4], 1 */ 7441 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08536E; /* 0x2B085345: je 0x2b08536e */ 7442 L_2B085347: 7443 PUSH32(esp, 0); /* 0x2B085347: push 0 */ 7444 PUSH32(esp, 0x3F800000u); /* 0x2B085349: push 0x3f800000 */ 7445 PUSH32(esp, 0x3F800000u); /* 0x2B08534E: push 0x3f800000 */ 7446 PUSH32(esp, 0x6590u); /* 0x2B085353: push 0x6590 */ 7447 edx = ebp + (-0x14); /* 0x2B085358: lea edx, [ebp - 0x14] */ 7448 PUSH32(esp, edx); /* 0x2B08535B: push edx */ 7449 ecx = ebx + 0x7C; /* 0x2B08535C: lea ecx, [ebx + 0x7c] */ 7450 PUSH32(esp, ecx); /* 0x2B08535F: push ecx */ 7451 PUSH32(esp, 8); /* 0x2B085360: push 8 */ 7452 PUSH32(esp, 8); /* 0x2B085362: push 8 */ 7453 ecx = eax; /* 0x2B085364: mov ecx, eax */ 7454 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B085366: call dword ptr [0x2b0b5bd8] */ 7455 RECOMP_FLAGS_IN(); 7456 goto L_2B085370; /* 0x2B08536C: jmp 0x2b085370 */ 7457 L_2B08536E: 7458 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7459 eax = 0; /* 0x2B08536E: xor eax, eax */ 7460 _cf = 0; 7461 _flag_k = FK_TEST; 7462 L_2B085370: 7463 PUSH32(esp, 1); /* 0x2B085370: push 1 */ 7464 MEM32(ebx + 0x84) = eax; /* 0x2B085372: mov dword ptr [ebx + 0x84], eax */ 7465 eax = MEM32(eax + 0x28); /* 0x2B085378: mov eax, dword ptr [eax + 0x28] */ 7466 PUSH32(esp, 0); /* 0x2B08537B: push 0 */ 7467 PUSH32(esp, 0); /* 0x2B08537D: push 0 */ 7468 ecx = eax; /* 0x2B08537F: mov ecx, eax */ 7469 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085381: mov byte ptr [ebp - 4], 0 */ 7470 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B085385: call dword ptr [0x2b0b564c] */ 7471 RECOMP_FLAGS_IN(); 7472 PUSH32(esp, 0x38u); /* 0x2B08538B: push 0x38 */ 7473 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08538D: call 0x2b0ab212 */ /* not lifted */ 7474 RECOMP_FLAGS_IN(); 7475 esi = eax; /* 0x2B085392: mov esi, eax */ 7476 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7478 esp = esp + 4; /* 0x2B085394: add esp, 4 */ 7479 _flag_k = FK_ADD; 7480 MEM32(ebp + 0x10) = esi; /* 0x2B085397: mov dword ptr [ebp + 0x10], esi */ 7481 /* test esi, esi */ /* 0x2B08539A: test esi, esi */ 7482 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7483 _cf = 0; 7484 _flag_k = FK_TEST; 7485 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2B08539C: mov byte ptr [ebp - 4], 2 */ 7486 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0853C9; /* 0x2B0853A0: je 0x2b0853c9 */ 7487 L_2B0853A2: 7488 eax = MEM32(ebx + 0x84); /* 0x2B0853A2: mov eax, dword ptr [ebx + 0x84] */ 7489 PUSH32(esp, eax); /* 0x2B0853A8: push eax */ 7490 PUSH32(esp, 0x6590u); /* 0x2B0853A9: push 0x6590 */ 7491 PUSH32(esp, 0x89u); /* 0x2B0853AE: push 0x89 */ 7492 ecx = ebp + (-0x14); /* 0x2B0853B3: lea ecx, [ebp - 0x14] */ 7493 PUSH32(esp, ecx); /* 0x2B0853B6: push ecx */ 7494 ecx = esi; /* 0x2B0853B7: mov ecx, esi */ 7495 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B0853B9: call dword ptr [0x2b0b5948] */ 7496 RECOMP_FLAGS_IN(); 7497 MEM32(esi) = 0x2B0B68F4u; /* 0x2B0853BF: mov dword ptr [esi], 0x2b0b68f4 */ 7498 eax = esi; /* 0x2B0853C5: mov eax, esi */ 7499 goto L_2B0853CB; /* 0x2B0853C7: jmp 0x2b0853cb */ 7500 L_2B0853C9: 7501 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7502 eax = 0; /* 0x2B0853C9: xor eax, eax */ 7503 _cf = 0; 7504 _flag_k = FK_TEST; 7505 L_2B0853CB: 7506 MEM32(ebx + 0x88) = eax; /* 0x2B0853CB: mov dword ptr [ebx + 0x88], eax */ 7507 ecx = MEM32(eax + 0x14); /* 0x2B0853D1: mov ecx, dword ptr [eax + 0x14] */ 7508 edx = MEM32(ecx + 0xC); /* 0x2B0853D4: mov edx, dword ptr [ecx + 0xc] */ 7509 ecx = MEM32(ebx + 0x84); /* 0x2B0853D7: mov ecx, dword ptr [ebx + 0x84] */ 7510 esi = ebx + 0x7C; /* 0x2B0853DD: lea esi, [ebx + 0x7c] */ 7511 MEM32(esi) = edx; /* 0x2B0853E0: mov dword ptr [esi], edx */ 7512 eax = MEM32(eax + 0x14); /* 0x2B0853E2: mov eax, dword ptr [eax + 0x14] */ 7513 eax = MEM32(eax + 0x8); /* 0x2B0853E5: mov eax, dword ptr [eax + 8] */ 7514 PUSH32(esp, esi); /* 0x2B0853E8: push esi */ 7515 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B0853E9: mov byte ptr [ebp - 4], 0 */ 7516 MEM32(ebx + 0x80) = eax; /* 0x2B0853ED: mov dword ptr [ebx + 0x80], eax */ 7517 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B0853F3: call dword ptr [0x2b0b5978] */ 7518 RECOMP_FLAGS_IN(); 7519 ecx = MEM32(esi); /* 0x2B0853F9: mov ecx, dword ptr [esi] */ 7520 PUSH32(esp, 0x9Cu); /* 0x2B0853FB: push 0x9c */ 7521 MEM32(ebp + 0x10) = ecx; /* 0x2B085400: mov dword ptr [ebp + 0x10], ecx */ 7522 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085403: call 0x2b0ab212 */ /* not lifted */ 7523 RECOMP_FLAGS_IN(); 7524 edi = eax; /* 0x2B085408: mov edi, eax */ 7525 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7527 esp = esp + 4; /* 0x2B08540A: add esp, 4 */ 7528 _flag_k = FK_ADD; 7529 MEM32(ebp + 0xC) = edi; /* 0x2B08540D: mov dword ptr [ebp + 0xc], edi */ 7530 /* test edi, edi */ /* 0x2B085410: test edi, edi */ 7531 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7532 _cf = 0; 7533 _flag_k = FK_TEST; 7534 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2B085412: mov byte ptr [ebp - 4], 3 */ 7535 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085452; /* 0x2B085416: je 0x2b085452 */ 7536 L_2B085418: 7537 edx = MEM32(ebx + 0x84); /* 0x2B085418: mov edx, dword ptr [ebx + 0x84] */ 7538 ecx = MEM32(ebp + (-0x10)); /* 0x2B08541E: mov ecx, dword ptr [ebp - 0x10] */ 7539 PUSH32(esp, edx); /* 0x2B085421: push edx */ 7540 edx = MEM32(ebp + (-0x14)); /* 0x2B085422: mov edx, dword ptr [ebp - 0x14] */ 7541 PUSH32(esp, 4); /* 0x2B085425: push 4 */ 7542 PUSH32(esp, 0); /* 0x2B085427: push 0 */ 7543 PUSH32(esp, 0x6598u); /* 0x2B085429: push 0x6598 */ 7544 PUSH32(esp, 0); /* 0x2B08542E: push 0 */ 7545 PUSH32(esp, 0); /* 0x2B085430: push 0 */ 7546 PUSH32(esp, 0); /* 0x2B085432: push 0 */ 7547 eax = 0x11u; /* 0x2B085434: mov eax, 0x11 */ 7548 PUSH32(esp, eax); /* 0x2B085439: push eax */ 7549 eax = MEM32(ebp + 0x10); /* 0x2B08543A: mov eax, dword ptr [ebp + 0x10] */ 7550 PUSH32(esp, eax); /* 0x2B08543D: push eax */ 7551 PUSH32(esp, ecx); /* 0x2B08543E: push ecx */ 7552 PUSH32(esp, edx); /* 0x2B08543F: push edx */ 7553 ecx = edi; /* 0x2B085440: mov ecx, edi */ 7554 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B085442: call dword ptr [0x2b0b5af0] */ 7555 RECOMP_FLAGS_IN(); 7556 MEM32(edi) = 0x2B0B642Cu; /* 0x2B085448: mov dword ptr [edi], 0x2b0b642c */ 7557 eax = edi; /* 0x2B08544E: mov eax, edi */ 7558 goto L_2B085454; /* 0x2B085450: jmp 0x2b085454 */ 7559 L_2B085452: 7560 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7561 eax = 0; /* 0x2B085452: xor eax, eax */ 7562 _cf = 0; 7563 _flag_k = FK_TEST; 7564 L_2B085454: 7565 MEM32(ebx + 0x8C) = eax; /* 0x2B085454: mov dword ptr [ebx + 0x8c], eax */ 7566 MEM32(eax + 0x7C) = 0x2B086410u; /* 0x2B08545A: mov dword ptr [eax + 0x7c], 0x2b086410 */ 7567 MEM32(eax + 0x80) = ebx; /* 0x2B085461: mov dword ptr [eax + 0x80], ebx */ 7568 MEM8(eax + 0x24) = (uint8_t)(1); /* 0x2B085467: mov byte ptr [eax + 0x24], 1 */ 7569 MEM8(eax + 0x25) = (uint8_t)(1); /* 0x2B08546B: mov byte ptr [eax + 0x25], 1 */ 7570 eax = MEM32(ebx + 0x80); /* 0x2B08546F: mov eax, dword ptr [ebx + 0x80] */ 7571 ecx = MEM32(esi); /* 0x2B085475: mov ecx, dword ptr [esi] */ 7572 PUSH32(esp, 0x70u); /* 0x2B085477: push 0x70 */ 7573 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085479: mov byte ptr [ebp - 4], 0 */ 7574 MEM32(ebp + 0xC) = eax; /* 0x2B08547D: mov dword ptr [ebp + 0xc], eax */ 7575 MEM32(ebp + 0x10) = ecx; /* 0x2B085480: mov dword ptr [ebp + 0x10], ecx */ 7576 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085483: call 0x2b0ab212 */ /* not lifted */ 7577 RECOMP_FLAGS_IN(); 7578 edi = eax; /* 0x2B085488: mov edi, eax */ 7579 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7580 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7581 esp = esp + 4; /* 0x2B08548A: add esp, 4 */ 7582 _flag_k = FK_ADD; 7583 MEM32(ebp + (-0x48)) = edi; /* 0x2B08548D: mov dword ptr [ebp - 0x48], edi */ 7584 /* test edi, edi */ /* 0x2B085490: test edi, edi */ 7585 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7586 _cf = 0; 7587 _flag_k = FK_TEST; 7588 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2B085492: mov byte ptr [ebp - 4], 4 */ 7589 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0854D8; /* 0x2B085496: je 0x2b0854d8 */ 7590 L_2B085498: 7591 edx = MEM32(ebx + 0x84); /* 0x2B085498: mov edx, dword ptr [ebx + 0x84] */ 7592 PUSH32(esp, edx); /* 0x2B08549E: push edx */ 7593 edx = MEM32(ebp + 0x10); /* 0x2B08549F: mov edx, dword ptr [ebp + 0x10] */ 7594 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0854A2: push -1 */ 7595 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B0854A4: push -1 */ 7596 PUSH32(esp, 0x16u); /* 0x2B0854A6: push 0x16 */ 7597 PUSH32(esp, 0); /* 0x2B0854A8: push 0 */ 7598 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7600 esp = esp - 0x10u; /* 0x2B0854AA: sub esp, 0x10 */ 7601 _flag_k = FK_CMP; 7602 ecx = esp; /* 0x2B0854AD: mov ecx, esp */ 7603 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7604 eax = 0; /* 0x2B0854AF: xor eax, eax */ 7605 _cf = 0; 7606 _flag_k = FK_TEST; 7607 MEM32(ecx) = eax; /* 0x2B0854B1: mov dword ptr [ecx], eax */ 7608 MEM32(ecx + 0x4) = eax; /* 0x2B0854B3: mov dword ptr [ecx + 4], eax */ 7609 eax = MEM32(ebp + 0xC); /* 0x2B0854B6: mov eax, dword ptr [ebp + 0xc] */ 7610 PUSH32(esp, 0x6594u); /* 0x2B0854B9: push 0x6594 */ 7611 MEM32(ecx + 0x8) = edx; /* 0x2B0854BE: mov dword ptr [ecx + 8], edx */ 7612 PUSH32(esp, 0); /* 0x2B0854C1: push 0 */ 7613 MEM32(ecx + 0xC) = eax; /* 0x2B0854C3: mov dword ptr [ecx + 0xc], eax */ 7614 PUSH32(esp, 0); /* 0x2B0854C6: push 0 */ 7615 ecx = edi; /* 0x2B0854C8: mov ecx, edi */ 7616 RECOMP_ICALL(MEM32(0x2B0B5C00)); /* 0x2B0854CA: call dword ptr [0x2b0b5c00] */ 7617 RECOMP_FLAGS_IN(); 7618 MEM32(edi) = 0x2B0B6164u; /* 0x2B0854D0: mov dword ptr [edi], 0x2b0b6164 */ 7619 goto L_2B0854DA; /* 0x2B0854D6: jmp 0x2b0854da */ 7620 L_2B0854D8: 7621 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7622 edi = 0; /* 0x2B0854D8: xor edi, edi */ 7623 _cf = 0; 7624 _flag_k = FK_TEST; 7625 L_2B0854DA: 7626 PUSH32(esp, 0x9Cu); /* 0x2B0854DA: push 0x9c */ 7627 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B0854DF: mov byte ptr [ebp - 4], 0 */ 7628 MEM32(ebx + 0x94) = edi; /* 0x2B0854E3: mov dword ptr [ebx + 0x94], edi */ 7629 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0854E9: call 0x2b0ab212 */ /* not lifted */ 7630 RECOMP_FLAGS_IN(); 7631 edi = eax; /* 0x2B0854EE: mov edi, eax */ 7632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7634 esp = esp + 4; /* 0x2B0854F0: add esp, 4 */ 7635 _flag_k = FK_ADD; 7636 MEM32(ebp + 0x10) = edi; /* 0x2B0854F3: mov dword ptr [ebp + 0x10], edi */ 7637 /* test edi, edi */ /* 0x2B0854F6: test edi, edi */ 7638 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7639 _cf = 0; 7640 _flag_k = FK_TEST; 7641 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2B0854F8: mov byte ptr [ebp - 4], 5 */ 7642 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085533; /* 0x2B0854FC: je 0x2b085533 */ 7643 L_2B0854FE: 7644 ecx = MEM32(ebx + 0x84); /* 0x2B0854FE: mov ecx, dword ptr [ebx + 0x84] */ 7645 edx = MEM32(esi + 0x4); /* 0x2B085504: mov edx, dword ptr [esi + 4] */ 7646 eax = MEM32(esi); /* 0x2B085507: mov eax, dword ptr [esi] */ 7647 PUSH32(esp, ecx); /* 0x2B085509: push ecx */ 7648 ecx = MEM32(ebp + (-0x10)); /* 0x2B08550A: mov ecx, dword ptr [ebp - 0x10] */ 7649 PUSH32(esp, 4); /* 0x2B08550D: push 4 */ 7650 PUSH32(esp, 0); /* 0x2B08550F: push 0 */ 7651 PUSH32(esp, 0x6590u); /* 0x2B085511: push 0x6590 */ 7652 PUSH32(esp, 0); /* 0x2B085516: push 0 */ 7653 PUSH32(esp, 0); /* 0x2B085518: push 0 */ 7654 PUSH32(esp, 0); /* 0x2B08551A: push 0 */ 7655 PUSH32(esp, edx); /* 0x2B08551C: push edx */ 7656 edx = MEM32(ebp + (-0x14)); /* 0x2B08551D: mov edx, dword ptr [ebp - 0x14] */ 7657 PUSH32(esp, eax); /* 0x2B085520: push eax */ 7658 PUSH32(esp, ecx); /* 0x2B085521: push ecx */ 7659 PUSH32(esp, edx); /* 0x2B085522: push edx */ 7660 ecx = edi; /* 0x2B085523: mov ecx, edi */ 7661 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B085525: call dword ptr [0x2b0b5af0] */ 7662 RECOMP_FLAGS_IN(); 7663 MEM32(edi) = 0x2B0B642Cu; /* 0x2B08552B: mov dword ptr [edi], 0x2b0b642c */ 7664 goto L_2B085535; /* 0x2B085531: jmp 0x2b085535 */ 7665 L_2B085533: 7666 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7667 edi = 0; /* 0x2B085533: xor edi, edi */ 7668 _cf = 0; 7669 _flag_k = FK_TEST; 7670 L_2B085535: 7671 MEM32(ebx + 0x90) = edi; /* 0x2B085535: mov dword ptr [ebx + 0x90], edi */ 7672 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7673 eax = 0; /* 0x2B08553B: xor eax, eax */ 7674 _cf = 0; 7675 _flag_k = FK_TEST; 7676 ecx = 0xCu; /* 0x2B08553D: mov ecx, 0xc */ 7677 edi = ebp + (-0x44); /* 0x2B085542: lea edi, [ebp - 0x44] */ 7678 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085545: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 7679 eax = MEM32(esi); /* 0x2B085547: mov eax, dword ptr [esi] */ 7680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu); 7681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7682 eax = eax - 0xFu; /* 0x2B085549: sub eax, 0xf */ 7683 _flag_k = FK_CMP; 7684 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7685 esi = 0; /* 0x2B08554C: xor esi, esi */ 7686 _cf = 0; 7687 _flag_k = FK_TEST; 7688 PUSH32(esp, 0xBCu); /* 0x2B08554E: push 0xbc */ 7689 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085553: mov byte ptr [ebp - 4], 0 */ 7690 MEM32(ebp + (-0x34)) = eax; /* 0x2B085557: mov dword ptr [ebp - 0x34], eax */ 7691 MEM32(ebp + (-0x30)) = 1; /* 0x2B08555A: mov dword ptr [ebp - 0x30], 1 */ 7692 MEM32(ebp + (-0x38)) = 0x2B0E6EE8u; /* 0x2B085561: mov dword ptr [ebp - 0x38], 0x2b0e6ee8 */ 7693 MEM32(ebp + (-0x2C)) = 0x659Au; /* 0x2B085568: mov dword ptr [ebp - 0x2c], 0x659a */ 7694 MEM32(ebp + (-0x40)) = esi; /* 0x2B08556F: mov dword ptr [ebp - 0x40], esi */ 7695 MEM32(ebp + (-0x24)) = 0x47u; /* 0x2B085572: mov dword ptr [ebp - 0x24], 0x47 */ 7696 MEM32(ebp + (-0x20)) = 0x48u; /* 0x2B085579: mov dword ptr [ebp - 0x20], 0x48 */ 7697 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085580: call 0x2b0ab212 */ /* not lifted */ 7698 RECOMP_FLAGS_IN(); 7699 edi = eax; /* 0x2B085585: mov edi, eax */ 7700 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7702 esp = esp + 4; /* 0x2B085587: add esp, 4 */ 7703 _flag_k = FK_ADD; 7704 MEM32(ebp + 0x10) = edi; /* 0x2B08558A: mov dword ptr [ebp + 0x10], edi */ 7705 /* cmp edi, esi */ /* 0x2B08558D: cmp edi, esi */ 7706 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7708 _flag_k = FK_CMP; 7709 MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2B08558F: mov byte ptr [ebp - 4], 6 */ 7710 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0855B0; /* 0x2B085593: je 0x2b0855b0 */ 7711 L_2B085595: 7712 ecx = MEM32(ebx + 0x84); /* 0x2B085595: mov ecx, dword ptr [ebx + 0x84] */ 7713 PUSH32(esp, ecx); /* 0x2B08559B: push ecx */ 7714 edx = ebp + (-0x44); /* 0x2B08559C: lea edx, [ebp - 0x44] */ 7715 PUSH32(esp, edx); /* 0x2B08559F: push edx */ 7716 ecx = edi; /* 0x2B0855A0: mov ecx, edi */ 7717 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B0855A2: call dword ptr [0x2b0b5afc] */ 7718 RECOMP_FLAGS_IN(); 7719 MEM32(edi) = 0x2B0B645Cu; /* 0x2B0855A8: mov dword ptr [edi], 0x2b0b645c */ 7720 goto L_2B0855B2; /* 0x2B0855AE: jmp 0x2b0855b2 */ 7721 L_2B0855B0: 7722 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7723 edi = 0; /* 0x2B0855B0: xor edi, edi */ 7724 _cf = 0; 7725 _flag_k = FK_TEST; 7726 L_2B0855B2: 7727 PUSH32(esp, ebx); /* 0x2B0855B2: push ebx */ 7728 PUSH32(esp, 0x2B086940u); /* 0x2B0855B3: push 0x2b086940 */ 7729 ecx = edi; /* 0x2B0855B8: mov ecx, edi */ 7730 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B0855BA: mov byte ptr [ebp - 4], 0 */ 7731 MEM32(ebx + 0x9C) = edi; /* 0x2B0855BE: mov dword ptr [ebx + 0x9c], edi */ 7732 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B0855C4: call dword ptr [0x2b0b5820] */ 7733 RECOMP_FLAGS_IN(); 7734 PUSH32(esp, 0x64u); /* 0x2B0855CA: push 0x64 */ 7735 MEM32(ebp + (-0x54)) = 0x18u; /* 0x2B0855CC: mov dword ptr [ebp - 0x54], 0x18 */ 7736 MEM32(ebp + (-0x50)) = 0x16u; /* 0x2B0855D3: mov dword ptr [ebp - 0x50], 0x16 */ 7737 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0855DA: call 0x2b0ab212 */ /* not lifted */ 7738 RECOMP_FLAGS_IN(); 7739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7741 esp = esp + 4; /* 0x2B0855DF: add esp, 4 */ 7742 _flag_k = FK_ADD; 7743 MEM32(ebp + 0x10) = eax; /* 0x2B0855E2: mov dword ptr [ebp + 0x10], eax */ 7744 /* cmp eax, esi */ /* 0x2B0855E5: cmp eax, esi */ 7745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 7746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7747 _flag_k = FK_CMP; 7748 MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2B0855E7: mov byte ptr [ebp - 4], 7 */ 7749 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B085620; /* 0x2B0855EB: je 0x2b085620 */ 7750 L_2B0855ED: 7751 ecx = MEM32(ebx + 0x84); /* 0x2B0855ED: mov ecx, dword ptr [ebx + 0x84] */ 7752 PUSH32(esp, ecx); /* 0x2B0855F3: push ecx */ 7753 PUSH32(esp, esi); /* 0x2B0855F4: push esi */ 7754 PUSH32(esp, 0x30u); /* 0x2B0855F5: push 0x30 */ 7755 PUSH32(esp, 3); /* 0x2B0855F7: push 3 */ 7756 PUSH32(esp, 0x6592u); /* 0x2B0855F9: push 0x6592 */ 7757 PUSH32(esp, 0x88u); /* 0x2B0855FE: push 0x88 */ 7758 PUSH32(esp, 0x16u); /* 0x2B085603: push 0x16 */ 7759 PUSH32(esp, 0xCDu); /* 0x2B085605: push 0xcd */ 7760 PUSH32(esp, 0x39u); /* 0x2B08560A: push 0x39 */ 7761 PUSH32(esp, 0x3Cu); /* 0x2B08560C: push 0x3c */ 7762 PUSH32(esp, 2); /* 0x2B08560E: push 2 */ 7763 PUSH32(esp, 3); /* 0x2B085610: push 3 */ 7764 edx = ebp + (-0x54); /* 0x2B085612: lea edx, [ebp - 0x54] */ 7765 PUSH32(esp, edx); /* 0x2B085615: push edx */ 7766 ecx = eax; /* 0x2B085616: mov ecx, eax */ 7767 RECOMP_ICALL(MEM32(0x2B0B58F8)); /* 0x2B085618: call dword ptr [0x2b0b58f8] */ 7768 RECOMP_FLAGS_IN(); 7769 goto L_2B085622; /* 0x2B08561E: jmp 0x2b085622 */ 7770 L_2B085620: 7771 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7772 eax = 0; /* 0x2B085620: xor eax, eax */ 7773 _cf = 0; 7774 _flag_k = FK_TEST; 7775 L_2B085622: 7776 MEM32(ebx + 0x98) = eax; /* 0x2B085622: mov dword ptr [ebx + 0x98], eax */ 7777 MEM32(eax + 0x5C) = 0x2B0865D0u; /* 0x2B085628: mov dword ptr [eax + 0x5c], 0x2b0865d0 */ 7778 MEM32(eax + 0x60) = ebx; /* 0x2B08562F: mov dword ptr [eax + 0x60], ebx */ 7779 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7780 eax = 0; /* 0x2B085632: xor eax, eax */ 7781 _cf = 0; 7782 _flag_k = FK_TEST; 7783 ecx = 0xEu; /* 0x2B085634: mov ecx, 0xe */ 7784 edi = ebp + (-0x8C); /* 0x2B085639: lea edi, [ebp - 0x8c] */ 7785 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08563F: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 7786 eax = 0x88u; /* 0x2B085641: mov eax, 0x88 */ 7787 PUSH32(esp, 0xC0u); /* 0x2B085646: push 0xc0 */ 7788 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B08564B: mov byte ptr [ebp - 4], 0 */ 7789 MEM32(ebp + (-0x8C)) = 0x8Au; /* 0x2B08564F: mov dword ptr [ebp - 0x8c], 0x8a */ 7790 MEM32(ebp + (-0x88)) = 0x36u; /* 0x2B085659: mov dword ptr [ebp - 0x88], 0x36 */ 7791 MEM32(ebp + (-0x84)) = eax; /* 0x2B085663: mov dword ptr [ebp - 0x84], eax */ 7792 MEM32(ebp + (-0x80)) = 0x6594u; /* 0x2B085669: mov dword ptr [ebp - 0x80], 0x6594 */ 7793 MEM32(ebp + (-0x7C)) = 0x8Bu; /* 0x2B085670: mov dword ptr [ebp - 0x7c], 0x8b */ 7794 MEM32(ebp + (-0x78)) = 0x35u; /* 0x2B085677: mov dword ptr [ebp - 0x78], 0x35 */ 7795 MEM32(ebp + (-0x74)) = eax; /* 0x2B08567E: mov dword ptr [ebp - 0x74], eax */ 7796 MEM32(ebp + (-0x70)) = 0x39u; /* 0x2B085681: mov dword ptr [ebp - 0x70], 0x39 */ 7797 MEM32(ebp + (-0x6C)) = 0xA5u; /* 0x2B085688: mov dword ptr [ebp - 0x6c], 0xa5 */ 7798 MEM32(ebp + (-0x68)) = 5; /* 0x2B08568F: mov dword ptr [ebp - 0x68], 5 */ 7799 MEM32(ebp + (-0x64)) = esi; /* 0x2B085696: mov dword ptr [ebp - 0x64], esi */ 7800 MEM32(ebp + (-0x60)) = esi; /* 0x2B085699: mov dword ptr [ebp - 0x60], esi */ 7801 MEM32(ebp + (-0x5C)) = 1; /* 0x2B08569C: mov dword ptr [ebp - 0x5c], 1 */ 7802 MEM32(ebp + (-0x58)) = esi; /* 0x2B0856A3: mov dword ptr [ebp - 0x58], esi */ 7803 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0856A6: call 0x2b0ab212 */ /* not lifted */ 7804 RECOMP_FLAGS_IN(); 7805 edi = eax; /* 0x2B0856AB: mov edi, eax */ 7806 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7808 esp = esp + 4; /* 0x2B0856AD: add esp, 4 */ 7809 _flag_k = FK_ADD; 7810 MEM32(ebp + 0x10) = edi; /* 0x2B0856B0: mov dword ptr [ebp + 0x10], edi */ 7811 /* cmp edi, esi */ /* 0x2B0856B3: cmp edi, esi */ 7812 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7814 _flag_k = FK_CMP; 7815 MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x2B0856B5: mov byte ptr [ebp - 4], 8 */ 7816 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0856DB; /* 0x2B0856B9: je 0x2b0856db */ 7817 L_2B0856BB: 7818 eax = MEM32(ebx + 0x84); /* 0x2B0856BB: mov eax, dword ptr [ebx + 0x84] */ 7819 PUSH32(esp, eax); /* 0x2B0856C1: push eax */ 7820 ecx = ebp + (-0x8C); /* 0x2B0856C2: lea ecx, [ebp - 0x8c] */ 7821 PUSH32(esp, ecx); /* 0x2B0856C8: push ecx */ 7822 ecx = edi; /* 0x2B0856C9: mov ecx, edi */ 7823 RECOMP_ICALL(MEM32(0x2B0B586C)); /* 0x2B0856CB: call dword ptr [0x2b0b586c] */ 7824 RECOMP_FLAGS_IN(); 7825 MEM32(edi) = 0x2B0B697Cu; /* 0x2B0856D1: mov dword ptr [edi], 0x2b0b697c */ 7826 ecx = edi; /* 0x2B0856D7: mov ecx, edi */ 7827 goto L_2B0856DD; /* 0x2B0856D9: jmp 0x2b0856dd */ 7828 L_2B0856DB: 7829 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7830 ecx = 0; /* 0x2B0856DB: xor ecx, ecx */ 7831 _cf = 0; 7832 _flag_k = FK_TEST; 7833 L_2B0856DD: 7834 PUSH32(esp, esi); /* 0x2B0856DD: push esi */ 7835 edx = ebp + 0x8; /* 0x2B0856DE: lea edx, [ebp + 8] */ 7836 edi = ebx + 0xAC; /* 0x2B0856E1: lea edi, [ebx + 0xac] */ 7837 PUSH32(esp, edx); /* 0x2B0856E7: push edx */ 7838 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B0856E8: mov byte ptr [ebp - 4], 0 */ 7839 MEM32(ebx + 0xA8) = ecx; /* 0x2B0856EC: mov dword ptr [ebx + 0xa8], ecx */ 7840 MEM32(edi) = esi; /* 0x2B0856F2: mov dword ptr [edi], esi */ 7841 MEM32(ebx + 0xB0) = ebx; /* 0x2B0856F4: mov dword ptr [ebx + 0xb0], ebx */ 7842 MEM32(ebp + 0x8) = 0; /* 0x2B0856FA: mov dword ptr [ebp + 8], 0 */ 7843 MEM32(ebp + 0xC) = 0x3FE00000u; /* 0x2B085701: mov dword ptr [ebp + 0xc], 0x3fe00000 */ 7844 RECOMP_ICALL(MEM32(0x2B0B5BA4)); /* 0x2B085708: call dword ptr [0x2b0b5ba4] */ 7845 RECOMP_FLAGS_IN(); 7846 ecx = MEM32(ebx + 0xA8); /* 0x2B08570E: mov ecx, dword ptr [ebx + 0xa8] */ 7847 PUSH32(esp, edi); /* 0x2B085714: push edi */ 7848 PUSH32(esp, 0x2B0866D0u); /* 0x2B085715: push 0x2b0866d0 */ 7849 RECOMP_ICALL(MEM32(0x2B0B5BEC)); /* 0x2B08571A: call dword ptr [0x2b0b5bec] */ 7850 RECOMP_FLAGS_IN(); 7851 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7852 eax = 0; /* 0x2B085720: xor eax, eax */ 7853 _cf = 0; 7854 _flag_k = FK_TEST; 7855 ecx = 0xCu; /* 0x2B085722: mov ecx, 0xc */ 7856 edi = ebp + (-0x44); /* 0x2B085727: lea edi, [ebp - 0x44] */ 7857 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B08572A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 7858 PUSH32(esp, 0xBCu); /* 0x2B08572C: push 0xbc */ 7859 MEM32(ebp + (-0x34)) = 0xDu; /* 0x2B085731: mov dword ptr [ebp - 0x34], 0xd */ 7860 MEM32(ebp + (-0x30)) = 0x99u; /* 0x2B085738: mov dword ptr [ebp - 0x30], 0x99 */ 7861 MEM32(ebp + (-0x38)) = 0x2B0ECBF0u; /* 0x2B08573F: mov dword ptr [ebp - 0x38], 0x2b0ecbf0 */ 7862 MEM32(ebp + (-0x2C)) = 0x6592u; /* 0x2B085746: mov dword ptr [ebp - 0x2c], 0x6592 */ 7863 MEM32(ebp + (-0x40)) = esi; /* 0x2B08574D: mov dword ptr [ebp - 0x40], esi */ 7864 MEM32(ebp + (-0x24)) = 0x8Cu; /* 0x2B085750: mov dword ptr [ebp - 0x24], 0x8c */ 7865 MEM32(ebp + (-0x20)) = 0x8Du; /* 0x2B085757: mov dword ptr [ebp - 0x20], 0x8d */ 7866 MEM32(ebp + (-0x28)) = 0x8Eu; /* 0x2B08575E: mov dword ptr [ebp - 0x28], 0x8e */ 7867 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085765: call 0x2b0ab212 */ /* not lifted */ 7868 RECOMP_FLAGS_IN(); 7869 edi = eax; /* 0x2B08576A: mov edi, eax */ 7870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7872 esp = esp + 4; /* 0x2B08576C: add esp, 4 */ 7873 _flag_k = FK_ADD; 7874 MEM32(ebp + 0x10) = edi; /* 0x2B08576F: mov dword ptr [ebp + 0x10], edi */ 7875 /* cmp edi, esi */ /* 0x2B085772: cmp edi, esi */ 7876 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7878 _flag_k = FK_CMP; 7879 MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x2B085774: mov byte ptr [ebp - 4], 9 */ 7880 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B085795; /* 0x2B085778: je 0x2b085795 */ 7881 L_2B08577A: 7882 eax = MEM32(ebx + 0x84); /* 0x2B08577A: mov eax, dword ptr [ebx + 0x84] */ 7883 PUSH32(esp, eax); /* 0x2B085780: push eax */ 7884 ecx = ebp + (-0x44); /* 0x2B085781: lea ecx, [ebp - 0x44] */ 7885 PUSH32(esp, ecx); /* 0x2B085784: push ecx */ 7886 ecx = edi; /* 0x2B085785: mov ecx, edi */ 7887 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B085787: call dword ptr [0x2b0b5afc] */ 7888 RECOMP_FLAGS_IN(); 7889 MEM32(edi) = 0x2B0B645Cu; /* 0x2B08578D: mov dword ptr [edi], 0x2b0b645c */ 7890 goto L_2B085797; /* 0x2B085793: jmp 0x2b085797 */ 7891 L_2B085795: 7892 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7893 edi = 0; /* 0x2B085795: xor edi, edi */ 7894 _cf = 0; 7895 _flag_k = FK_TEST; 7896 L_2B085797: 7897 PUSH32(esp, ebx); /* 0x2B085797: push ebx */ 7898 PUSH32(esp, 0x2B086440u); /* 0x2B085798: push 0x2b086440 */ 7899 ecx = edi; /* 0x2B08579D: mov ecx, edi */ 7900 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B08579F: mov byte ptr [ebp - 4], 0 */ 7901 MEM32(ebx + 0xA0) = edi; /* 0x2B0857A3: mov dword ptr [ebx + 0xa0], edi */ 7902 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B0857A9: call dword ptr [0x2b0b5820] */ 7903 RECOMP_FLAGS_IN(); 7904 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7905 eax = 0; /* 0x2B0857AF: xor eax, eax */ 7906 _cf = 0; 7907 _flag_k = FK_TEST; 7908 ecx = 0xCu; /* 0x2B0857B1: mov ecx, 0xc */ 7909 edi = ebp + (-0x44); /* 0x2B0857B6: lea edi, [ebp - 0x44] */ 7910 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0857B9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 7911 eax = 0x90u; /* 0x2B0857BB: mov eax, 0x90 */ 7912 PUSH32(esp, 0xBCu); /* 0x2B0857C0: push 0xbc */ 7913 MEM32(ebp + (-0x44)) = 1; /* 0x2B0857C5: mov dword ptr [ebp - 0x44], 1 */ 7914 MEM32(ebp + (-0x34)) = 0xBFu; /* 0x2B0857CC: mov dword ptr [ebp - 0x34], 0xbf */ 7915 MEM32(ebp + (-0x30)) = 0x99u; /* 0x2B0857D3: mov dword ptr [ebp - 0x30], 0x99 */ 7916 MEM32(ebp + (-0x38)) = 0x2B0ECBE0u; /* 0x2B0857DA: mov dword ptr [ebp - 0x38], 0x2b0ecbe0 */ 7917 MEM32(ebp + (-0x2C)) = 0x6592u; /* 0x2B0857E1: mov dword ptr [ebp - 0x2c], 0x6592 */ 7918 MEM32(ebp + (-0x40)) = esi; /* 0x2B0857E8: mov dword ptr [ebp - 0x40], esi */ 7919 MEM32(ebp + (-0x24)) = 0x8Fu; /* 0x2B0857EB: mov dword ptr [ebp - 0x24], 0x8f */ 7920 MEM32(ebp + (-0x20)) = eax; /* 0x2B0857F2: mov dword ptr [ebp - 0x20], eax */ 7921 MEM32(ebp + (-0x1C)) = eax; /* 0x2B0857F5: mov dword ptr [ebp - 0x1c], eax */ 7922 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0857F8: call 0x2b0ab212 */ /* not lifted */ 7923 RECOMP_FLAGS_IN(); 7924 edi = eax; /* 0x2B0857FD: mov edi, eax */ 7925 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7926 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7927 esp = esp + 4; /* 0x2B0857FF: add esp, 4 */ 7928 _flag_k = FK_ADD; 7929 MEM32(ebp + 0x10) = edi; /* 0x2B085802: mov dword ptr [ebp + 0x10], edi */ 7930 /* cmp edi, esi */ /* 0x2B085805: cmp edi, esi */ 7931 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7933 _flag_k = FK_CMP; 7934 MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x2B085807: mov byte ptr [ebp - 4], 0xa */ 7935 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B085828; /* 0x2B08580B: je 0x2b085828 */ 7936 L_2B08580D: 7937 edx = MEM32(ebx + 0x84); /* 0x2B08580D: mov edx, dword ptr [ebx + 0x84] */ 7938 PUSH32(esp, edx); /* 0x2B085813: push edx */ 7939 eax = ebp + (-0x44); /* 0x2B085814: lea eax, [ebp - 0x44] */ 7940 PUSH32(esp, eax); /* 0x2B085817: push eax */ 7941 ecx = edi; /* 0x2B085818: mov ecx, edi */ 7942 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B08581A: call dword ptr [0x2b0b5afc] */ 7943 RECOMP_FLAGS_IN(); 7944 MEM32(edi) = 0x2B0B645Cu; /* 0x2B085820: mov dword ptr [edi], 0x2b0b645c */ 7945 goto L_2B08582A; /* 0x2B085826: jmp 0x2b08582a */ 7946 L_2B085828: 7947 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7948 edi = 0; /* 0x2B085828: xor edi, edi */ 7949 _cf = 0; 7950 _flag_k = FK_TEST; 7951 L_2B08582A: 7952 PUSH32(esp, ebx); /* 0x2B08582A: push ebx */ 7953 PUSH32(esp, 0x2B0865F0u); /* 0x2B08582B: push 0x2b0865f0 */ 7954 ecx = edi; /* 0x2B085830: mov ecx, edi */ 7955 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085832: mov byte ptr [ebp - 4], 0 */ 7956 MEM32(ebx + 0xA4) = edi; /* 0x2B085836: mov dword ptr [ebx + 0xa4], edi */ 7957 RECOMP_ICALL(MEM32(0x2B0B5820)); /* 0x2B08583C: call dword ptr [0x2b0b5820] */ 7958 RECOMP_FLAGS_IN(); 7959 edi = ebx + 0xBC; /* 0x2B085842: lea edi, [ebx + 0xbc] */ 7960 PUSH32(esp, 0x50u); /* 0x2B085848: push 0x50 */ 7961 MEM32(edi) = 0x1E0u; /* 0x2B08584A: mov dword ptr [edi], 0x1e0 */ 7962 MEM32(ebx + 0xC0) = 0x1E0u; /* 0x2B085850: mov dword ptr [ebx + 0xc0], 0x1e0 */ 7963 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08585A: call 0x2b0ab212 */ /* not lifted */ 7964 RECOMP_FLAGS_IN(); 7965 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7966 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7967 esp = esp + 4; /* 0x2B08585F: add esp, 4 */ 7968 _flag_k = FK_ADD; 7969 MEM32(ebp + 0x10) = eax; /* 0x2B085862: mov dword ptr [ebp + 0x10], eax */ 7970 /* cmp eax, esi */ /* 0x2B085865: cmp eax, esi */ 7971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 7972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7973 _flag_k = FK_CMP; 7974 MEM8(ebp + (-0x4)) = (uint8_t)(0xBu); /* 0x2B085867: mov byte ptr [ebp - 4], 0xb */ 7975 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B085890; /* 0x2B08586B: je 0x2b085890 */ 7976 L_2B08586D: 7977 PUSH32(esp, esi); /* 0x2B08586D: push esi */ 7978 PUSH32(esp, 0x3F800000u); /* 0x2B08586E: push 0x3f800000 */ 7979 PUSH32(esp, 0x3F800000u); /* 0x2B085873: push 0x3f800000 */ 7980 PUSH32(esp, 0x6590u); /* 0x2B085878: push 0x6590 */ 7981 ecx = ebp + (-0x14); /* 0x2B08587D: lea ecx, [ebp - 0x14] */ 7982 PUSH32(esp, ecx); /* 0x2B085880: push ecx */ 7983 PUSH32(esp, edi); /* 0x2B085881: push edi */ 7984 PUSH32(esp, 8); /* 0x2B085882: push 8 */ 7985 PUSH32(esp, 8); /* 0x2B085884: push 8 */ 7986 ecx = eax; /* 0x2B085886: mov ecx, eax */ 7987 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B085888: call dword ptr [0x2b0b5bd8] */ 7988 RECOMP_FLAGS_IN(); 7989 goto L_2B085892; /* 0x2B08588E: jmp 0x2b085892 */ 7990 L_2B085890: 7991 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7992 eax = 0; /* 0x2B085890: xor eax, eax */ 7993 _cf = 0; 7994 _flag_k = FK_TEST; 7995 L_2B085892: 7996 PUSH32(esp, 1); /* 0x2B085892: push 1 */ 7997 MEM32(ebx + 0xC4) = eax; /* 0x2B085894: mov dword ptr [ebx + 0xc4], eax */ 7998 eax = MEM32(eax + 0x28); /* 0x2B08589A: mov eax, dword ptr [eax + 0x28] */ 7999 PUSH32(esp, esi); /* 0x2B08589D: push esi */ 8000 PUSH32(esp, esi); /* 0x2B08589E: push esi */ 8001 ecx = eax; /* 0x2B08589F: mov ecx, eax */ 8002 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B0858A1: mov byte ptr [ebp - 4], 0 */ 8003 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B0858A5: call dword ptr [0x2b0b564c] */ 8004 RECOMP_FLAGS_IN(); 8005 PUSH32(esp, 0x38u); /* 0x2B0858AB: push 0x38 */ 8006 RECOMP_ICALL(0x2B0AB212u); /* 0x2B0858AD: call 0x2b0ab212 */ /* not lifted */ 8007 RECOMP_FLAGS_IN(); 8008 esi = eax; /* 0x2B0858B2: mov esi, eax */ 8009 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8011 esp = esp + 4; /* 0x2B0858B4: add esp, 4 */ 8012 _flag_k = FK_ADD; 8013 MEM32(ebp + 0x10) = esi; /* 0x2B0858B7: mov dword ptr [ebp + 0x10], esi */ 8014 /* test esi, esi */ /* 0x2B0858BA: test esi, esi */ 8015 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8016 _cf = 0; 8017 _flag_k = FK_TEST; 8018 MEM8(ebp + (-0x4)) = (uint8_t)(0xCu); /* 0x2B0858BC: mov byte ptr [ebp - 4], 0xc */ 8019 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0858E9; /* 0x2B0858C0: je 0x2b0858e9 */ 8020 L_2B0858C2: 8021 edx = MEM32(ebx + 0xC4); /* 0x2B0858C2: mov edx, dword ptr [ebx + 0xc4] */ 8022 PUSH32(esp, edx); /* 0x2B0858C8: push edx */ 8023 PUSH32(esp, 0x6590u); /* 0x2B0858C9: push 0x6590 */ 8024 PUSH32(esp, 0x91u); /* 0x2B0858CE: push 0x91 */ 8025 eax = ebp + (-0x14); /* 0x2B0858D3: lea eax, [ebp - 0x14] */ 8026 PUSH32(esp, eax); /* 0x2B0858D6: push eax */ 8027 ecx = esi; /* 0x2B0858D7: mov ecx, esi */ 8028 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B0858D9: call dword ptr [0x2b0b5948] */ 8029 RECOMP_FLAGS_IN(); 8030 MEM32(esi) = 0x2B0B68F4u; /* 0x2B0858DF: mov dword ptr [esi], 0x2b0b68f4 */ 8031 eax = esi; /* 0x2B0858E5: mov eax, esi */ 8032 goto L_2B0858EB; /* 0x2B0858E7: jmp 0x2b0858eb */ 8033 L_2B0858E9: 8034 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8035 eax = 0; /* 0x2B0858E9: xor eax, eax */ 8036 _cf = 0; 8037 _flag_k = FK_TEST; 8038 L_2B0858EB: 8039 MEM32(ebx + 0xC8) = eax; /* 0x2B0858EB: mov dword ptr [ebx + 0xc8], eax */ 8040 ecx = MEM32(eax + 0x14); /* 0x2B0858F1: mov ecx, dword ptr [eax + 0x14] */ 8041 ecx = MEM32(ecx + 0xC); /* 0x2B0858F4: mov ecx, dword ptr [ecx + 0xc] */ 8042 MEM32(edi) = ecx; /* 0x2B0858F7: mov dword ptr [edi], ecx */ 8043 eax = MEM32(eax + 0x14); /* 0x2B0858F9: mov eax, dword ptr [eax + 0x14] */ 8044 edx = MEM32(eax + 0x8); /* 0x2B0858FC: mov edx, dword ptr [eax + 8] */ 8045 ecx = MEM32(ebx + 0xC4); /* 0x2B0858FF: mov ecx, dword ptr [ebx + 0xc4] */ 8046 PUSH32(esp, edi); /* 0x2B085905: push edi */ 8047 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085906: mov byte ptr [ebp - 4], 0 */ 8048 MEM32(ebx + 0xC0) = edx; /* 0x2B08590A: mov dword ptr [ebx + 0xc0], edx */ 8049 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B085910: call dword ptr [0x2b0b5978] */ 8050 RECOMP_FLAGS_IN(); 8051 ecx = MEM32(ebx + 0xC4); /* 0x2B085916: mov ecx, dword ptr [ebx + 0xc4] */ 8052 RECOMP_ICALL(MEM32(0x2B0B5BAC)); /* 0x2B08591C: call dword ptr [0x2b0b5bac] */ 8053 RECOMP_FLAGS_IN(); 8054 PUSH32(esp, 0x9Cu); /* 0x2B085922: push 0x9c */ 8055 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085927: call 0x2b0ab212 */ /* not lifted */ 8056 RECOMP_FLAGS_IN(); 8057 esi = eax; /* 0x2B08592C: mov esi, eax */ 8058 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8060 esp = esp + 4; /* 0x2B08592E: add esp, 4 */ 8061 _flag_k = FK_ADD; 8062 MEM32(ebp + 0x10) = esi; /* 0x2B085931: mov dword ptr [ebp + 0x10], esi */ 8063 /* test esi, esi */ /* 0x2B085934: test esi, esi */ 8064 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8065 _cf = 0; 8066 _flag_k = FK_TEST; 8067 MEM8(ebp + (-0x4)) = (uint8_t)(0xDu); /* 0x2B085936: mov byte ptr [ebp - 4], 0xd */ 8068 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085971; /* 0x2B08593A: je 0x2b085971 */ 8069 L_2B08593C: 8070 eax = MEM32(ebx + 0xC4); /* 0x2B08593C: mov eax, dword ptr [ebx + 0xc4] */ 8071 ecx = MEM32(edi + 0x4); /* 0x2B085942: mov ecx, dword ptr [edi + 4] */ 8072 edx = MEM32(edi); /* 0x2B085945: mov edx, dword ptr [edi] */ 8073 PUSH32(esp, eax); /* 0x2B085947: push eax */ 8074 eax = MEM32(ebp + (-0x10)); /* 0x2B085948: mov eax, dword ptr [ebp - 0x10] */ 8075 PUSH32(esp, 4); /* 0x2B08594B: push 4 */ 8076 PUSH32(esp, 0); /* 0x2B08594D: push 0 */ 8077 PUSH32(esp, 0x6590u); /* 0x2B08594F: push 0x6590 */ 8078 PUSH32(esp, 0); /* 0x2B085954: push 0 */ 8079 PUSH32(esp, 0); /* 0x2B085956: push 0 */ 8080 PUSH32(esp, 0); /* 0x2B085958: push 0 */ 8081 PUSH32(esp, ecx); /* 0x2B08595A: push ecx */ 8082 ecx = MEM32(ebp + (-0x14)); /* 0x2B08595B: mov ecx, dword ptr [ebp - 0x14] */ 8083 PUSH32(esp, edx); /* 0x2B08595E: push edx */ 8084 PUSH32(esp, eax); /* 0x2B08595F: push eax */ 8085 PUSH32(esp, ecx); /* 0x2B085960: push ecx */ 8086 ecx = esi; /* 0x2B085961: mov ecx, esi */ 8087 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B085963: call dword ptr [0x2b0b5af0] */ 8088 RECOMP_FLAGS_IN(); 8089 MEM32(esi) = 0x2B0B642Cu; /* 0x2B085969: mov dword ptr [esi], 0x2b0b642c */ 8090 goto L_2B085973; /* 0x2B08596F: jmp 0x2b085973 */ 8091 L_2B085971: 8092 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8093 esi = 0; /* 0x2B085971: xor esi, esi */ 8094 _cf = 0; 8095 _flag_k = FK_TEST; 8096 L_2B085973: 8097 MEM32(ebx + 0xCC) = esi; /* 0x2B085973: mov dword ptr [ebx + 0xcc], esi */ 8098 eax = 5; /* 0x2B085979: mov eax, 5 */ 8099 MEM8(esi + 0x8) = (uint8_t)(0); /* 0x2B08597E: mov byte ptr [esi + 8], 0 */ 8100 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085982: mov byte ptr [ebp - 4], 0 */ 8101 MEM32(ebp + (-0xBC)) = eax; /* 0x2B085986: mov dword ptr [ebp - 0xbc], eax */ 8102 MEM32(ebp + (-0xB8)) = 0x14u; /* 0x2B08598C: mov dword ptr [ebp - 0xb8], 0x14 */ 8103 MEM32(ebp + (-0xB4)) = 0x23u; /* 0x2B085996: mov dword ptr [ebp - 0xb4], 0x23 */ 8104 MEM32(ebp + (-0xB0)) = 0x32u; /* 0x2B0859A0: mov dword ptr [ebp - 0xb0], 0x32 */ 8105 MEM32(ebp + (-0xAC)) = 0x41u; /* 0x2B0859AA: mov dword ptr [ebp - 0xac], 0x41 */ 8106 MEM32(ebp + (-0xA8)) = 0x50u; /* 0x2B0859B4: mov dword ptr [ebp - 0xa8], 0x50 */ 8107 MEM32(ebp + (-0xA4)) = 1; /* 0x2B0859BE: mov dword ptr [ebp - 0xa4], 1 */ 8108 MEM32(ebp + (-0xA0)) = 2; /* 0x2B0859C8: mov dword ptr [ebp - 0xa0], 2 */ 8109 MEM32(ebp + (-0x9C)) = 3; /* 0x2B0859D2: mov dword ptr [ebp - 0x9c], 3 */ 8110 MEM32(ebp + (-0x98)) = 4; /* 0x2B0859DC: mov dword ptr [ebp - 0x98], 4 */ 8111 MEM32(ebp + (-0x94)) = eax; /* 0x2B0859E6: mov dword ptr [ebp - 0x94], eax */ 8112 MEM32(ebp + (-0x90)) = 6; /* 0x2B0859EC: mov dword ptr [ebp - 0x90], 6 */ 8113 edi = ebx + 0xD0; /* 0x2B0859F6: lea edi, [ebx + 0xd0] */ 8114 esi = ebx + 0xE8; /* 0x2B0859FC: lea esi, [ebx + 0xe8] */ 8115 MEM32(ebp + 0x10) = 0; /* 0x2B085A02: mov dword ptr [ebp + 0x10], 0 */ 8116 L_2B085A09: 8117 edx = MEM32(ebp + 0x10); /* 0x2B085A09: mov edx, dword ptr [ebp + 0x10] */ 8118 eax = MEM32(ebp + edx + (-0xBC)); /* 0x2B085A0C: mov eax, dword ptr [ebp + edx - 0xbc] */ 8119 PUSH32(esp, 0xC0u); /* 0x2B085A13: push 0xc0 */ 8120 MEM32(ebp + (-0x84)) = eax; /* 0x2B085A18: mov dword ptr [ebp - 0x84], eax */ 8121 MEM32(ebp + (-0x74)) = eax; /* 0x2B085A1E: mov dword ptr [ebp - 0x74], eax */ 8122 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085A21: call 0x2b0ab212 */ /* not lifted */ 8123 RECOMP_FLAGS_IN(); 8124 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8125 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8126 esp = esp + 4; /* 0x2B085A26: add esp, 4 */ 8127 _flag_k = FK_ADD; 8128 MEM32(ebp + 0xC) = eax; /* 0x2B085A29: mov dword ptr [ebp + 0xc], eax */ 8129 /* test eax, eax */ /* 0x2B085A2C: test eax, eax */ 8130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8131 _cf = 0; 8132 _flag_k = FK_TEST; 8133 MEM8(ebp + (-0x4)) = (uint8_t)(0xEu); /* 0x2B085A2E: mov byte ptr [ebp - 4], 0xe */ 8134 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085A55; /* 0x2B085A32: je 0x2b085a55 */ 8135 L_2B085A34: 8136 ecx = MEM32(ebx + 0xC4); /* 0x2B085A34: mov ecx, dword ptr [ebx + 0xc4] */ 8137 PUSH32(esp, ecx); /* 0x2B085A3A: push ecx */ 8138 edx = ebp + (-0x8C); /* 0x2B085A3B: lea edx, [ebp - 0x8c] */ 8139 PUSH32(esp, edx); /* 0x2B085A41: push edx */ 8140 ecx = eax; /* 0x2B085A42: mov ecx, eax */ 8141 RECOMP_ICALL(MEM32(0x2B0B586C)); /* 0x2B085A44: call dword ptr [0x2b0b586c] */ 8142 RECOMP_FLAGS_IN(); 8143 ecx = MEM32(ebp + 0xC); /* 0x2B085A4A: mov ecx, dword ptr [ebp + 0xc] */ 8144 MEM32(ecx) = 0x2B0B697Cu; /* 0x2B085A4D: mov dword ptr [ecx], 0x2b0b697c */ 8145 goto L_2B085A57; /* 0x2B085A53: jmp 0x2b085a57 */ 8146 L_2B085A55: 8147 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8148 ecx = 0; /* 0x2B085A55: xor ecx, ecx */ 8149 _cf = 0; 8150 _flag_k = FK_TEST; 8151 L_2B085A57: 8152 PUSH32(esp, 0); /* 0x2B085A57: push 0 */ 8153 eax = ebp + (-0x4C); /* 0x2B085A59: lea eax, [ebp - 0x4c] */ 8154 PUSH32(esp, eax); /* 0x2B085A5C: push eax */ 8155 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085A5D: mov byte ptr [ebp - 4], 0 */ 8156 MEM32(edi) = ecx; /* 0x2B085A61: mov dword ptr [edi], ecx */ 8157 MEM32(ebp + (-0x4C)) = 0; /* 0x2B085A63: mov dword ptr [ebp - 0x4c], 0 */ 8158 MEM32(ebp + (-0x48)) = 0x3FE00000u; /* 0x2B085A6A: mov dword ptr [ebp - 0x48], 0x3fe00000 */ 8159 RECOMP_ICALL(MEM32(0x2B0B5BA4)); /* 0x2B085A71: call dword ptr [0x2b0b5ba4] */ 8160 RECOMP_FLAGS_IN(); 8161 ecx = MEM32(edi); /* 0x2B085A77: mov ecx, dword ptr [edi] */ 8162 RECOMP_ICALL(MEM32(0x2B0B5870)); /* 0x2B085A79: call dword ptr [0x2b0b5870] */ 8163 RECOMP_FLAGS_IN(); 8164 ecx = MEM32(ebp + 0x10); /* 0x2B085A7F: mov ecx, dword ptr [ebp + 0x10] */ 8165 edx = MEM32(ebp + ecx + (-0xA4)); /* 0x2B085A82: mov edx, dword ptr [ebp + ecx - 0xa4] */ 8166 MEM32(esi) = edx; /* 0x2B085A89: mov dword ptr [esi], edx */ 8167 PUSH32(esp, esi); /* 0x2B085A8B: push esi */ 8168 MEM32(esi + 0x4) = ebx; /* 0x2B085A8C: mov dword ptr [esi + 4], ebx */ 8169 ecx = MEM32(edi); /* 0x2B085A8F: mov ecx, dword ptr [edi] */ 8170 PUSH32(esp, 0x2B0866D0u); /* 0x2B085A91: push 0x2b0866d0 */ 8171 RECOMP_ICALL(MEM32(0x2B0B5BEC)); /* 0x2B085A96: call dword ptr [0x2b0b5bec] */ 8172 RECOMP_FLAGS_IN(); 8173 eax = MEM32(ebp + 0x10); /* 0x2B085A9C: mov eax, dword ptr [ebp + 0x10] */ 8174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 8175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8176 eax = eax + 4; /* 0x2B085A9F: add eax, 4 */ 8177 _flag_k = FK_ADD; 8178 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 8179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8180 edi = edi + 4; /* 0x2B085AA2: add edi, 4 */ 8181 _flag_k = FK_ADD; 8182 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 8183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8184 esi = esi + 8; /* 0x2B085AA5: add esi, 8 */ 8185 _flag_k = FK_ADD; 8186 /* cmp eax, 0x18u */ /* 0x2B085AA8: cmp eax, 0x18 */ 8187 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 8188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8189 _flag_k = FK_CMP; 8190 MEM32(ebp + 0x10) = eax; /* 0x2B085AAB: mov dword ptr [ebp + 0x10], eax */ 8191 RECOMP_BACKEDGE(); 8192 if (CMP_L(_flag_a, _flag_b)) goto L_2B085A09; /* 0x2B085AAE: jl 0x2b085a09 */ 8193 L_2B085AB4: 8194 esi = ebx + 0x120; /* 0x2B085AB4: lea esi, [ebx + 0x120] */ 8195 PUSH32(esp, 0x50u); /* 0x2B085ABA: push 0x50 */ 8196 MEM32(esi) = 0x1E0u; /* 0x2B085ABC: mov dword ptr [esi], 0x1e0 */ 8197 MEM32(ebx + 0x124) = 0x1E0u; /* 0x2B085AC2: mov dword ptr [ebx + 0x124], 0x1e0 */ 8198 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085ACC: call 0x2b0ab212 */ /* not lifted */ 8199 RECOMP_FLAGS_IN(); 8200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8202 esp = esp + 4; /* 0x2B085AD1: add esp, 4 */ 8203 _flag_k = FK_ADD; 8204 MEM32(ebp + 0x10) = eax; /* 0x2B085AD4: mov dword ptr [ebp + 0x10], eax */ 8205 /* test eax, eax */ /* 0x2B085AD7: test eax, eax */ 8206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8207 _cf = 0; 8208 _flag_k = FK_TEST; 8209 MEM8(ebp + (-0x4)) = (uint8_t)(0xFu); /* 0x2B085AD9: mov byte ptr [ebp - 4], 0xf */ 8210 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085B03; /* 0x2B085ADD: je 0x2b085b03 */ 8211 L_2B085ADF: 8212 PUSH32(esp, 0); /* 0x2B085ADF: push 0 */ 8213 PUSH32(esp, 0x3F800000u); /* 0x2B085AE1: push 0x3f800000 */ 8214 PUSH32(esp, 0x3F800000u); /* 0x2B085AE6: push 0x3f800000 */ 8215 PUSH32(esp, 0x6590u); /* 0x2B085AEB: push 0x6590 */ 8216 ecx = ebp + (-0x14); /* 0x2B085AF0: lea ecx, [ebp - 0x14] */ 8217 PUSH32(esp, ecx); /* 0x2B085AF3: push ecx */ 8218 PUSH32(esp, esi); /* 0x2B085AF4: push esi */ 8219 PUSH32(esp, 8); /* 0x2B085AF5: push 8 */ 8220 PUSH32(esp, 8); /* 0x2B085AF7: push 8 */ 8221 ecx = eax; /* 0x2B085AF9: mov ecx, eax */ 8222 RECOMP_ICALL(MEM32(0x2B0B5BD8)); /* 0x2B085AFB: call dword ptr [0x2b0b5bd8] */ 8223 RECOMP_FLAGS_IN(); 8224 goto L_2B085B05; /* 0x2B085B01: jmp 0x2b085b05 */ 8225 L_2B085B03: 8226 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8227 eax = 0; /* 0x2B085B03: xor eax, eax */ 8228 _cf = 0; 8229 _flag_k = FK_TEST; 8230 L_2B085B05: 8231 PUSH32(esp, 1); /* 0x2B085B05: push 1 */ 8232 MEM32(ebx + 0x128) = eax; /* 0x2B085B07: mov dword ptr [ebx + 0x128], eax */ 8233 eax = MEM32(eax + 0x28); /* 0x2B085B0D: mov eax, dword ptr [eax + 0x28] */ 8234 PUSH32(esp, 0); /* 0x2B085B10: push 0 */ 8235 PUSH32(esp, 0); /* 0x2B085B12: push 0 */ 8236 ecx = eax; /* 0x2B085B14: mov ecx, eax */ 8237 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085B16: mov byte ptr [ebp - 4], 0 */ 8238 RECOMP_ICALL(MEM32(0x2B0B564C)); /* 0x2B085B1A: call dword ptr [0x2b0b564c] */ 8239 RECOMP_FLAGS_IN(); 8240 PUSH32(esp, 0x38u); /* 0x2B085B20: push 0x38 */ 8241 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085B22: call 0x2b0ab212 */ /* not lifted */ 8242 RECOMP_FLAGS_IN(); 8243 edi = eax; /* 0x2B085B27: mov edi, eax */ 8244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8245 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8246 esp = esp + 4; /* 0x2B085B29: add esp, 4 */ 8247 _flag_k = FK_ADD; 8248 MEM32(ebp + 0x10) = edi; /* 0x2B085B2C: mov dword ptr [ebp + 0x10], edi */ 8249 /* test edi, edi */ /* 0x2B085B2F: test edi, edi */ 8250 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8251 _cf = 0; 8252 _flag_k = FK_TEST; 8253 MEM8(ebp + (-0x4)) = (uint8_t)(0x10u); /* 0x2B085B31: mov byte ptr [ebp - 4], 0x10 */ 8254 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085B5E; /* 0x2B085B35: je 0x2b085b5e */ 8255 L_2B085B37: 8256 edx = MEM32(ebx + 0x128); /* 0x2B085B37: mov edx, dword ptr [ebx + 0x128] */ 8257 PUSH32(esp, edx); /* 0x2B085B3D: push edx */ 8258 PUSH32(esp, 0x6590u); /* 0x2B085B3E: push 0x6590 */ 8259 PUSH32(esp, 0x92u); /* 0x2B085B43: push 0x92 */ 8260 eax = ebp + (-0x14); /* 0x2B085B48: lea eax, [ebp - 0x14] */ 8261 PUSH32(esp, eax); /* 0x2B085B4B: push eax */ 8262 ecx = edi; /* 0x2B085B4C: mov ecx, edi */ 8263 RECOMP_ICALL(MEM32(0x2B0B5948)); /* 0x2B085B4E: call dword ptr [0x2b0b5948] */ 8264 RECOMP_FLAGS_IN(); 8265 MEM32(edi) = 0x2B0B68F4u; /* 0x2B085B54: mov dword ptr [edi], 0x2b0b68f4 */ 8266 eax = edi; /* 0x2B085B5A: mov eax, edi */ 8267 goto L_2B085B60; /* 0x2B085B5C: jmp 0x2b085b60 */ 8268 L_2B085B5E: 8269 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8270 eax = 0; /* 0x2B085B5E: xor eax, eax */ 8271 _cf = 0; 8272 _flag_k = FK_TEST; 8273 L_2B085B60: 8274 MEM32(ebx + 0x12C) = eax; /* 0x2B085B60: mov dword ptr [ebx + 0x12c], eax */ 8275 ecx = MEM32(eax + 0x14); /* 0x2B085B66: mov ecx, dword ptr [eax + 0x14] */ 8276 ecx = MEM32(ecx + 0xC); /* 0x2B085B69: mov ecx, dword ptr [ecx + 0xc] */ 8277 MEM32(esi) = ecx; /* 0x2B085B6C: mov dword ptr [esi], ecx */ 8278 eax = MEM32(eax + 0x14); /* 0x2B085B6E: mov eax, dword ptr [eax + 0x14] */ 8279 edx = MEM32(eax + 0x8); /* 0x2B085B71: mov edx, dword ptr [eax + 8] */ 8280 ecx = MEM32(ebx + 0x128); /* 0x2B085B74: mov ecx, dword ptr [ebx + 0x128] */ 8281 PUSH32(esp, esi); /* 0x2B085B7A: push esi */ 8282 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085B7B: mov byte ptr [ebp - 4], 0 */ 8283 MEM32(ebx + 0x124) = edx; /* 0x2B085B7F: mov dword ptr [ebx + 0x124], edx */ 8284 RECOMP_ICALL(MEM32(0x2B0B5978)); /* 0x2B085B85: call dword ptr [0x2b0b5978] */ 8285 RECOMP_FLAGS_IN(); 8286 PUSH32(esp, 0x9Cu); /* 0x2B085B8B: push 0x9c */ 8287 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085B90: call 0x2b0ab212 */ /* not lifted */ 8288 RECOMP_FLAGS_IN(); 8289 edi = eax; /* 0x2B085B95: mov edi, eax */ 8290 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8292 esp = esp + 4; /* 0x2B085B97: add esp, 4 */ 8293 _flag_k = FK_ADD; 8294 MEM32(ebp + 0x10) = edi; /* 0x2B085B9A: mov dword ptr [ebp + 0x10], edi */ 8295 /* test edi, edi */ /* 0x2B085B9D: test edi, edi */ 8296 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8297 _cf = 0; 8298 _flag_k = FK_TEST; 8299 MEM8(ebp + (-0x4)) = (uint8_t)(0x11u); /* 0x2B085B9F: mov byte ptr [ebp - 4], 0x11 */ 8300 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085BDA; /* 0x2B085BA3: je 0x2b085bda */ 8301 L_2B085BA5: 8302 eax = MEM32(ebx + 0x128); /* 0x2B085BA5: mov eax, dword ptr [ebx + 0x128] */ 8303 ecx = MEM32(esi + 0x4); /* 0x2B085BAB: mov ecx, dword ptr [esi + 4] */ 8304 edx = MEM32(esi); /* 0x2B085BAE: mov edx, dword ptr [esi] */ 8305 PUSH32(esp, eax); /* 0x2B085BB0: push eax */ 8306 eax = MEM32(ebp + (-0x10)); /* 0x2B085BB1: mov eax, dword ptr [ebp - 0x10] */ 8307 PUSH32(esp, 4); /* 0x2B085BB4: push 4 */ 8308 PUSH32(esp, 0); /* 0x2B085BB6: push 0 */ 8309 PUSH32(esp, 0x6590u); /* 0x2B085BB8: push 0x6590 */ 8310 PUSH32(esp, 0); /* 0x2B085BBD: push 0 */ 8311 PUSH32(esp, 0); /* 0x2B085BBF: push 0 */ 8312 PUSH32(esp, 0); /* 0x2B085BC1: push 0 */ 8313 PUSH32(esp, ecx); /* 0x2B085BC3: push ecx */ 8314 ecx = MEM32(ebp + (-0x14)); /* 0x2B085BC4: mov ecx, dword ptr [ebp - 0x14] */ 8315 PUSH32(esp, edx); /* 0x2B085BC7: push edx */ 8316 PUSH32(esp, eax); /* 0x2B085BC8: push eax */ 8317 PUSH32(esp, ecx); /* 0x2B085BC9: push ecx */ 8318 ecx = edi; /* 0x2B085BCA: mov ecx, edi */ 8319 RECOMP_ICALL(MEM32(0x2B0B5AF0)); /* 0x2B085BCC: call dword ptr [0x2b0b5af0] */ 8320 RECOMP_FLAGS_IN(); 8321 MEM32(edi) = 0x2B0B642Cu; /* 0x2B085BD2: mov dword ptr [edi], 0x2b0b642c */ 8322 goto L_2B085BDC; /* 0x2B085BD8: jmp 0x2b085bdc */ 8323 L_2B085BDA: 8324 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8325 edi = 0; /* 0x2B085BDA: xor edi, edi */ 8326 _cf = 0; 8327 _flag_k = FK_TEST; 8328 L_2B085BDC: 8329 MEM32(ebx + 0x130) = edi; /* 0x2B085BDC: mov dword ptr [ebx + 0x130], edi */ 8330 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8331 eax = 0; /* 0x2B085BE2: xor eax, eax */ 8332 _cf = 0; 8333 _flag_k = FK_TEST; 8334 ecx = 0xCu; /* 0x2B085BE4: mov ecx, 0xc */ 8335 edi = ebp + (-0x44); /* 0x2B085BE9: lea edi, [ebp - 0x44] */ 8336 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085BEC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 8337 eax = 4; /* 0x2B085BEE: mov eax, 4 */ 8338 PUSH32(esp, 0xBCu); /* 0x2B085BF3: push 0xbc */ 8339 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085BF8: mov byte ptr [ebp - 4], 0 */ 8340 MEM32(ebp + (-0x34)) = eax; /* 0x2B085BFC: mov dword ptr [ebp - 0x34], eax */ 8341 MEM32(ebp + (-0x30)) = eax; /* 0x2B085BFF: mov dword ptr [ebp - 0x30], eax */ 8342 MEM32(ebp + (-0x38)) = 0x2B0ECBD0u; /* 0x2B085C02: mov dword ptr [ebp - 0x38], 0x2b0ecbd0 */ 8343 MEM32(ebp + (-0x2C)) = 0x6592u; /* 0x2B085C09: mov dword ptr [ebp - 0x2c], 0x6592 */ 8344 MEM32(ebp + (-0x40)) = 0; /* 0x2B085C10: mov dword ptr [ebp - 0x40], 0 */ 8345 MEM32(ebp + (-0x28)) = 0x93u; /* 0x2B085C17: mov dword ptr [ebp - 0x28], 0x93 */ 8346 MEM32(ebp + (-0x24)) = 0x94u; /* 0x2B085C1E: mov dword ptr [ebp - 0x24], 0x94 */ 8347 MEM32(ebp + (-0x20)) = 0x95u; /* 0x2B085C25: mov dword ptr [ebp - 0x20], 0x95 */ 8348 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085C2C: call 0x2b0ab212 */ /* not lifted */ 8349 RECOMP_FLAGS_IN(); 8350 edi = eax; /* 0x2B085C31: mov edi, eax */ 8351 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8352 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8353 esp = esp + 4; /* 0x2B085C33: add esp, 4 */ 8354 _flag_k = FK_ADD; 8355 MEM32(ebp + 0x10) = edi; /* 0x2B085C36: mov dword ptr [ebp + 0x10], edi */ 8356 /* test edi, edi */ /* 0x2B085C39: test edi, edi */ 8357 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8358 _cf = 0; 8359 _flag_k = FK_TEST; 8360 MEM8(ebp + (-0x4)) = (uint8_t)(0x12u); /* 0x2B085C3B: mov byte ptr [ebp - 4], 0x12 */ 8361 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085C5E; /* 0x2B085C3F: je 0x2b085c5e */ 8362 L_2B085C41: 8363 edx = MEM32(ebx + 0x128); /* 0x2B085C41: mov edx, dword ptr [ebx + 0x128] */ 8364 PUSH32(esp, edx); /* 0x2B085C47: push edx */ 8365 eax = ebp + (-0x44); /* 0x2B085C48: lea eax, [ebp - 0x44] */ 8366 PUSH32(esp, eax); /* 0x2B085C4B: push eax */ 8367 ecx = edi; /* 0x2B085C4C: mov ecx, edi */ 8368 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B085C4E: call dword ptr [0x2b0b5afc] */ 8369 RECOMP_FLAGS_IN(); 8370 MEM32(edi) = 0x2B0B645Cu; /* 0x2B085C54: mov dword ptr [edi], 0x2b0b645c */ 8371 ecx = edi; /* 0x2B085C5A: mov ecx, edi */ 8372 goto L_2B085C60; /* 0x2B085C5C: jmp 0x2b085c60 */ 8373 L_2B085C5E: 8374 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8375 ecx = 0; /* 0x2B085C5E: xor ecx, ecx */ 8376 _cf = 0; 8377 _flag_k = FK_TEST; 8378 L_2B085C60: 8379 esi = MEM32(0x2B0B5820); /* 0x2B085C60: mov esi, dword ptr [0x2b0b5820] */ 8380 PUSH32(esp, ebx); /* 0x2B085C66: push ebx */ 8381 PUSH32(esp, 0x2B086880u); /* 0x2B085C67: push 0x2b086880 */ 8382 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085C6C: mov byte ptr [ebp - 4], 0 */ 8383 MEM32(ebx + 0x134) = ecx; /* 0x2B085C70: mov dword ptr [ebx + 0x134], ecx */ 8384 RECOMP_ICALL(esi); /* 0x2B085C76: call esi */ 8385 RECOMP_FLAGS_IN(); 8386 ecx = MEM32(ebx + 0x134); /* 0x2B085C78: mov ecx, dword ptr [ebx + 0x134] */ 8387 PUSH32(esp, 0); /* 0x2B085C7E: push 0 */ 8388 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B085C80: call dword ptr [0x2b0b5ab4] */ 8389 RECOMP_FLAGS_IN(); 8390 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8391 eax = 0; /* 0x2B085C86: xor eax, eax */ 8392 _cf = 0; 8393 _flag_k = FK_TEST; 8394 ecx = 0xCu; /* 0x2B085C88: mov ecx, 0xc */ 8395 edi = ebp + (-0x44); /* 0x2B085C8D: lea edi, [ebp - 0x44] */ 8396 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085C90: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 8397 PUSH32(esp, 0xBCu); /* 0x2B085C92: push 0xbc */ 8398 MEM32(ebp + (-0x34)) = 0x96u; /* 0x2B085C97: mov dword ptr [ebp - 0x34], 0x96 */ 8399 MEM32(ebp + (-0x30)) = 4; /* 0x2B085C9E: mov dword ptr [ebp - 0x30], 4 */ 8400 MEM32(ebp + (-0x38)) = 0x2B0ECBC8u; /* 0x2B085CA5: mov dword ptr [ebp - 0x38], 0x2b0ecbc8 */ 8401 MEM32(ebp + (-0x2C)) = 0x6592u; /* 0x2B085CAC: mov dword ptr [ebp - 0x2c], 0x6592 */ 8402 MEM32(ebp + (-0x40)) = eax; /* 0x2B085CB3: mov dword ptr [ebp - 0x40], eax */ 8403 MEM32(ebp + (-0x24)) = 0x79u; /* 0x2B085CB6: mov dword ptr [ebp - 0x24], 0x79 */ 8404 MEM32(ebp + (-0x20)) = 0x7Au; /* 0x2B085CBD: mov dword ptr [ebp - 0x20], 0x7a */ 8405 RECOMP_ICALL(0x2B0AB212u); /* 0x2B085CC4: call 0x2b0ab212 */ /* not lifted */ 8406 RECOMP_FLAGS_IN(); 8407 edi = eax; /* 0x2B085CC9: mov edi, eax */ 8408 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8409 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8410 esp = esp + 4; /* 0x2B085CCB: add esp, 4 */ 8411 _flag_k = FK_ADD; 8412 MEM32(ebp + 0x10) = edi; /* 0x2B085CCE: mov dword ptr [ebp + 0x10], edi */ 8413 /* test edi, edi */ /* 0x2B085CD1: test edi, edi */ 8414 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8415 _cf = 0; 8416 _flag_k = FK_TEST; 8417 MEM8(ebp + (-0x4)) = (uint8_t)(0x13u); /* 0x2B085CD3: mov byte ptr [ebp - 4], 0x13 */ 8418 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085CF6; /* 0x2B085CD7: je 0x2b085cf6 */ 8419 L_2B085CD9: 8420 ecx = MEM32(ebx + 0x128); /* 0x2B085CD9: mov ecx, dword ptr [ebx + 0x128] */ 8421 PUSH32(esp, ecx); /* 0x2B085CDF: push ecx */ 8422 edx = ebp + (-0x44); /* 0x2B085CE0: lea edx, [ebp - 0x44] */ 8423 PUSH32(esp, edx); /* 0x2B085CE3: push edx */ 8424 ecx = edi; /* 0x2B085CE4: mov ecx, edi */ 8425 RECOMP_ICALL(MEM32(0x2B0B5AFC)); /* 0x2B085CE6: call dword ptr [0x2b0b5afc] */ 8426 RECOMP_FLAGS_IN(); 8427 MEM32(edi) = 0x2B0B645Cu; /* 0x2B085CEC: mov dword ptr [edi], 0x2b0b645c */ 8428 ecx = edi; /* 0x2B085CF2: mov ecx, edi */ 8429 goto L_2B085CF8; /* 0x2B085CF4: jmp 0x2b085cf8 */ 8430 L_2B085CF6: 8431 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8432 ecx = 0; /* 0x2B085CF6: xor ecx, ecx */ 8433 _cf = 0; 8434 _flag_k = FK_TEST; 8435 L_2B085CF8: 8436 PUSH32(esp, ebx); /* 0x2B085CF8: push ebx */ 8437 PUSH32(esp, 0x2B086940u); /* 0x2B085CF9: push 0x2b086940 */ 8438 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2B085CFE: mov byte ptr [ebp - 4], 0 */ 8439 MEM32(ebx + 0x138) = ecx; /* 0x2B085D02: mov dword ptr [ebx + 0x138], ecx */ 8440 RECOMP_ICALL(esi); /* 0x2B085D08: call esi */ 8441 RECOMP_FLAGS_IN(); 8442 eax = MEM32(0x2B0B6048); /* 0x2B085D0A: mov eax, dword ptr [0x2b0b6048] */ 8443 ecx = MEM32(eax); /* 0x2B085D0F: mov ecx, dword ptr [eax] */ 8444 edi = MEM32(0x2B0B602C); /* 0x2B085D11: mov edi, dword ptr [0x2b0b602c] */ 8445 PUSH32(esp, 1); /* 0x2B085D17: push 1 */ 8446 PUSH32(esp, 0x2B0ECBB4u); /* 0x2B085D19: push 0x2b0ecbb4 */ 8447 RECOMP_ICALL(edi); /* 0x2B085D1E: call edi */ 8448 RECOMP_FLAGS_IN(); 8449 ecx = MEM32(0x2B0B6048); /* 0x2B085D20: mov ecx, dword ptr [0x2b0b6048] */ 8450 PUSH32(esp, 1); /* 0x2B085D26: push 1 */ 8451 MEM32(ebp + (-0x14)) = eax; /* 0x2B085D28: mov dword ptr [ebp - 0x14], eax */ 8452 ecx = MEM32(ecx); /* 0x2B085D2B: mov ecx, dword ptr [ecx] */ 8453 PUSH32(esp, 0x2B0ECBA0u); /* 0x2B085D2D: push 0x2b0ecba0 */ 8454 RECOMP_ICALL(edi); /* 0x2B085D32: call edi */ 8455 RECOMP_FLAGS_IN(); 8456 edx = MEM32(ebp + (-0x14)); /* 0x2B085D34: mov edx, dword ptr [ebp - 0x14] */ 8457 PUSH32(esp, eax); /* 0x2B085D37: push eax */ 8458 PUSH32(esp, edx); /* 0x2B085D38: push edx */ 8459 ecx = ebx; /* 0x2B085D39: mov ecx, ebx */ 8460 MEM32(ebp + (-0x10)) = eax; /* 0x2B085D3B: mov dword ptr [ebp - 0x10], eax */ 8461 RECOMP_ICALL(0x2B086280u); /* 0x2B085D3E: call 0x2b086280 */ /* not lifted */ 8462 RECOMP_FLAGS_IN(); 8463 ecx = MEM32(ebp + (-0xC)); /* 0x2B085D43: mov ecx, dword ptr [ebp - 0xc] */ 8464 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8465 eax = 0; /* 0x2B085D46: xor eax, eax */ 8466 _cf = 0; 8467 _flag_k = FK_TEST; 8468 edi = POP32_VAL(esp); /* 0x2B085D48: pop edi */ 8469 MEM32(ebx + 0x60) = eax; /* 0x2B085D49: mov dword ptr [ebx + 0x60], eax */ 8470 MEM32(ebx + 0x70) = eax; /* 0x2B085D4C: mov dword ptr [ebx + 0x70], eax */ 8471 MEM8(ebx + 0x13C) = (uint8_t)(LO8(eax)); /* 0x2B085D4F: mov byte ptr [ebx + 0x13c], al */ 8472 esi = POP32_VAL(esp); /* 0x2B085D55: pop esi */ 8473 eax = ebx; /* 0x2B085D56: mov eax, ebx */ 8474 MEM32(FS_BASE + (0)) = ecx; /* 0x2B085D58: mov dword ptr fs:[0], ecx */ 8475 ebx = POP32_VAL(esp); /* 0x2B085D5F: pop ebx */ 8476 esp = ebp; /* 0x2B085D60: mov esp, ebp */ 8477 ebp = POP32_VAL(esp); /* 0x2B085D62: pop ebp */ 8478 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B085D63: ret 0xc */ 8479 RECOMP_REGS_OUT(); 8480 } 8481 8482 void sub_2B085D70(void) { 8483 int _fpu_cmp = 0; 8484 uint32_t _cf = 0; 8485 int _df = 1; 8486 uint32_t _flag_k = FK_NONE; 8487 uint32_t _flag_a = 0, _flag_b = 0; 8488 uint32_t _itail_tgt = 0; 8489 RECOMP_REGS_LOCALS 8490 RECOMP_ENTER(0x2B085D70u); 8491 8492 L_2B085D70: 8493 PUSH32(esp, ebp); /* 0x2B085D70: push ebp */ 8494 ebp = esp; /* 0x2B085D71: mov ebp, esp */ 8495 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B085D73: push -1 */ 8496 PUSH32(esp, 0x2B0B228Bu); /* 0x2B085D75: push 0x2b0b228b */ 8497 eax = MEM32(FS_BASE + (0)); /* 0x2B085D7A: mov eax, dword ptr fs:[0] */ 8498 PUSH32(esp, eax); /* 0x2B085D80: push eax */ 8499 MEM32(FS_BASE + (0)) = esp; /* 0x2B085D81: mov dword ptr fs:[0], esp */ 8500 PUSH32(esp, ecx); /* 0x2B085D88: push ecx */ 8501 PUSH32(esp, esi); /* 0x2B085D89: push esi */ 8502 esi = ecx; /* 0x2B085D8A: mov esi, ecx */ 8503 PUSH32(esp, edi); /* 0x2B085D8C: push edi */ 8504 MEM32(ebp + (-0x10)) = esi; /* 0x2B085D8D: mov dword ptr [ebp - 0x10], esi */ 8505 ecx = MEM32(esi + 0x138); /* 0x2B085D90: mov ecx, dword ptr [esi + 0x138] */ 8506 /* test ecx, ecx */ /* 0x2B085D96: test ecx, ecx */ 8507 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8508 _cf = 0; 8509 _flag_k = FK_TEST; 8510 MEM32(ebp + (-0x4)) = 0; /* 0x2B085D98: mov dword ptr [ebp - 4], 0 */ 8511 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085DA7; /* 0x2B085D9F: je 0x2b085da7 */ 8512 L_2B085DA1: 8513 eax = MEM32(ecx); /* 0x2B085DA1: mov eax, dword ptr [ecx] */ 8514 PUSH32(esp, 1); /* 0x2B085DA3: push 1 */ 8515 RECOMP_ICALL(MEM32(eax)); /* 0x2B085DA5: call dword ptr [eax] */ 8516 RECOMP_FLAGS_IN(); 8517 L_2B085DA7: 8518 ecx = MEM32(esi + 0x134); /* 0x2B085DA7: mov ecx, dword ptr [esi + 0x134] */ 8519 /* test ecx, ecx */ /* 0x2B085DAD: test ecx, ecx */ 8520 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8521 _cf = 0; 8522 _flag_k = FK_TEST; 8523 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085DB7; /* 0x2B085DAF: je 0x2b085db7 */ 8524 L_2B085DB1: 8525 edx = MEM32(ecx); /* 0x2B085DB1: mov edx, dword ptr [ecx] */ 8526 PUSH32(esp, 1); /* 0x2B085DB3: push 1 */ 8527 RECOMP_ICALL(MEM32(edx)); /* 0x2B085DB5: call dword ptr [edx] */ 8528 RECOMP_FLAGS_IN(); 8529 L_2B085DB7: 8530 ecx = MEM32(esi + 0x130); /* 0x2B085DB7: mov ecx, dword ptr [esi + 0x130] */ 8531 /* test ecx, ecx */ /* 0x2B085DBD: test ecx, ecx */ 8532 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8533 _cf = 0; 8534 _flag_k = FK_TEST; 8535 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085DC7; /* 0x2B085DBF: je 0x2b085dc7 */ 8536 L_2B085DC1: 8537 eax = MEM32(ecx); /* 0x2B085DC1: mov eax, dword ptr [ecx] */ 8538 PUSH32(esp, 1); /* 0x2B085DC3: push 1 */ 8539 RECOMP_ICALL(MEM32(eax)); /* 0x2B085DC5: call dword ptr [eax] */ 8540 RECOMP_FLAGS_IN(); 8541 L_2B085DC7: 8542 ecx = MEM32(esi + 0x12C); /* 0x2B085DC7: mov ecx, dword ptr [esi + 0x12c] */ 8543 /* test ecx, ecx */ /* 0x2B085DCD: test ecx, ecx */ 8544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8545 _cf = 0; 8546 _flag_k = FK_TEST; 8547 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085DD7; /* 0x2B085DCF: je 0x2b085dd7 */ 8548 L_2B085DD1: 8549 edx = MEM32(ecx); /* 0x2B085DD1: mov edx, dword ptr [ecx] */ 8550 PUSH32(esp, 1); /* 0x2B085DD3: push 1 */ 8551 RECOMP_ICALL(MEM32(edx)); /* 0x2B085DD5: call dword ptr [edx] */ 8552 RECOMP_FLAGS_IN(); 8553 L_2B085DD7: 8554 edi = MEM32(esi + 0x128); /* 0x2B085DD7: mov edi, dword ptr [esi + 0x128] */ 8555 /* test edi, edi */ /* 0x2B085DDD: test edi, edi */ 8556 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8557 _cf = 0; 8558 _flag_k = FK_TEST; 8559 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085DF2; /* 0x2B085DDF: je 0x2b085df2 */ 8560 L_2B085DE1: 8561 ecx = edi; /* 0x2B085DE1: mov ecx, edi */ 8562 RECOMP_ICALL(MEM32(0x2B0B5BC4)); /* 0x2B085DE3: call dword ptr [0x2b0b5bc4] */ 8563 RECOMP_FLAGS_IN(); 8564 PUSH32(esp, edi); /* 0x2B085DE9: push edi */ 8565 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B085DEA: call 0x2b0ab1ba */ /* not lifted */ 8566 RECOMP_FLAGS_IN(); 8567 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8568 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8569 esp = esp + 4; /* 0x2B085DEF: add esp, 4 */ 8570 _flag_k = FK_ADD; 8571 L_2B085DF2: 8572 PUSH32(esp, ebx); /* 0x2B085DF2: push ebx */ 8573 edi = esi + 0xD0; /* 0x2B085DF3: lea edi, [esi + 0xd0] */ 8574 ebx = 6; /* 0x2B085DF9: mov ebx, 6 */ 8575 L_2B085DFE: 8576 ecx = MEM32(edi); /* 0x2B085DFE: mov ecx, dword ptr [edi] */ 8577 /* test ecx, ecx */ /* 0x2B085E00: test ecx, ecx */ 8578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8579 _cf = 0; 8580 _flag_k = FK_TEST; 8581 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085E0A; /* 0x2B085E02: je 0x2b085e0a */ 8582 L_2B085E04: 8583 eax = MEM32(ecx); /* 0x2B085E04: mov eax, dword ptr [ecx] */ 8584 PUSH32(esp, 1); /* 0x2B085E06: push 1 */ 8585 RECOMP_ICALL(MEM32(eax)); /* 0x2B085E08: call dword ptr [eax] */ 8586 RECOMP_FLAGS_IN(); 8587 L_2B085E0A: 8588 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 8589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8590 edi = edi + 4; /* 0x2B085E0A: add edi, 4 */ 8591 _flag_k = FK_ADD; 8592 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 8593 ebx = ebx - 1; /* 0x2B085E0D: dec ebx */ 8594 _flag_k = FK_DEC; 8595 RECOMP_BACKEDGE(); 8596 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B085DFE; /* 0x2B085E0E: jne 0x2b085dfe */ 8597 L_2B085E10: 8598 ecx = MEM32(esi + 0xCC); /* 0x2B085E10: mov ecx, dword ptr [esi + 0xcc] */ 8599 /* test ecx, ecx */ /* 0x2B085E16: test ecx, ecx */ 8600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8601 _cf = 0; 8602 _flag_k = FK_TEST; 8603 ebx = POP32_VAL(esp); /* 0x2B085E18: pop ebx */ 8604 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085E21; /* 0x2B085E19: je 0x2b085e21 */ 8605 L_2B085E1B: 8606 edx = MEM32(ecx); /* 0x2B085E1B: mov edx, dword ptr [ecx] */ 8607 PUSH32(esp, 1); /* 0x2B085E1D: push 1 */ 8608 RECOMP_ICALL(MEM32(edx)); /* 0x2B085E1F: call dword ptr [edx] */ 8609 RECOMP_FLAGS_IN(); 8610 L_2B085E21: 8611 ecx = MEM32(esi + 0xC8); /* 0x2B085E21: mov ecx, dword ptr [esi + 0xc8] */ 8612 /* test ecx, ecx */ /* 0x2B085E27: test ecx, ecx */ 8613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8614 _cf = 0; 8615 _flag_k = FK_TEST; 8616 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085E31; /* 0x2B085E29: je 0x2b085e31 */ 8617 L_2B085E2B: 8618 eax = MEM32(ecx); /* 0x2B085E2B: mov eax, dword ptr [ecx] */ 8619 PUSH32(esp, 1); /* 0x2B085E2D: push 1 */ 8620 RECOMP_ICALL(MEM32(eax)); /* 0x2B085E2F: call dword ptr [eax] */ 8621 RECOMP_FLAGS_IN(); 8622 L_2B085E31: 8623 edi = MEM32(esi + 0xC4); /* 0x2B085E31: mov edi, dword ptr [esi + 0xc4] */ 8624 /* test edi, edi */ /* 0x2B085E37: test edi, edi */ 8625 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8626 _cf = 0; 8627 _flag_k = FK_TEST; 8628 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085E4C; /* 0x2B085E39: je 0x2b085e4c */ 8629 L_2B085E3B: 8630 ecx = edi; /* 0x2B085E3B: mov ecx, edi */ 8631 RECOMP_ICALL(MEM32(0x2B0B5BC4)); /* 0x2B085E3D: call dword ptr [0x2b0b5bc4] */ 8632 RECOMP_FLAGS_IN(); 8633 PUSH32(esp, edi); /* 0x2B085E43: push edi */ 8634 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B085E44: call 0x2b0ab1ba */ /* not lifted */ 8635 RECOMP_FLAGS_IN(); 8636 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8638 esp = esp + 4; /* 0x2B085E49: add esp, 4 */ 8639 _flag_k = FK_ADD; 8640 L_2B085E4C: 8641 ecx = MEM32(esi + 0xA4); /* 0x2B085E4C: mov ecx, dword ptr [esi + 0xa4] */ 8642 /* test ecx, ecx */ /* 0x2B085E52: test ecx, ecx */ 8643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8644 _cf = 0; 8645 _flag_k = FK_TEST; 8646 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085E5C; /* 0x2B085E54: je 0x2b085e5c */ 8647 L_2B085E56: 8648 edx = MEM32(ecx); /* 0x2B085E56: mov edx, dword ptr [ecx] */ 8649 PUSH32(esp, 1); /* 0x2B085E58: push 1 */ 8650 RECOMP_ICALL(MEM32(edx)); /* 0x2B085E5A: call dword ptr [edx] */ 8651 RECOMP_FLAGS_IN(); 8652 L_2B085E5C: 8653 ecx = MEM32(esi + 0xA0); /* 0x2B085E5C: mov ecx, dword ptr [esi + 0xa0] */ 8654 /* test ecx, ecx */ /* 0x2B085E62: test ecx, ecx */ 8655 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8656 _cf = 0; 8657 _flag_k = FK_TEST; 8658 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085E6C; /* 0x2B085E64: je 0x2b085e6c */ 8659 L_2B085E66: 8660 eax = MEM32(ecx); /* 0x2B085E66: mov eax, dword ptr [ecx] */ 8661 PUSH32(esp, 1); /* 0x2B085E68: push 1 */ 8662 RECOMP_ICALL(MEM32(eax)); /* 0x2B085E6A: call dword ptr [eax] */ 8663 RECOMP_FLAGS_IN(); 8664 L_2B085E6C: 8665 ecx = MEM32(esi + 0xA8); /* 0x2B085E6C: mov ecx, dword ptr [esi + 0xa8] */ 8666 /* test ecx, ecx */ /* 0x2B085E72: test ecx, ecx */ 8667 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8668 _cf = 0; 8669 _flag_k = FK_TEST; 8670 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085E7C; /* 0x2B085E74: je 0x2b085e7c */ 8671 L_2B085E76: 8672 edx = MEM32(ecx); /* 0x2B085E76: mov edx, dword ptr [ecx] */ 8673 PUSH32(esp, 1); /* 0x2B085E78: push 1 */ 8674 RECOMP_ICALL(MEM32(edx)); /* 0x2B085E7A: call dword ptr [edx] */ 8675 RECOMP_FLAGS_IN(); 8676 L_2B085E7C: 8677 edi = MEM32(esi + 0x98); /* 0x2B085E7C: mov edi, dword ptr [esi + 0x98] */ 8678 /* test edi, edi */ /* 0x2B085E82: test edi, edi */ 8679 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8680 _cf = 0; 8681 _flag_k = FK_TEST; 8682 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085E97; /* 0x2B085E84: je 0x2b085e97 */ 8683 L_2B085E86: 8684 ecx = edi; /* 0x2B085E86: mov ecx, edi */ 8685 RECOMP_ICALL(MEM32(0x2B0B58E8)); /* 0x2B085E88: call dword ptr [0x2b0b58e8] */ 8686 RECOMP_FLAGS_IN(); 8687 PUSH32(esp, edi); /* 0x2B085E8E: push edi */ 8688 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B085E8F: call 0x2b0ab1ba */ /* not lifted */ 8689 RECOMP_FLAGS_IN(); 8690 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8692 esp = esp + 4; /* 0x2B085E94: add esp, 4 */ 8693 _flag_k = FK_ADD; 8694 L_2B085E97: 8695 ecx = MEM32(esi + 0x9C); /* 0x2B085E97: mov ecx, dword ptr [esi + 0x9c] */ 8696 /* test ecx, ecx */ /* 0x2B085E9D: test ecx, ecx */ 8697 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8698 _cf = 0; 8699 _flag_k = FK_TEST; 8700 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085EA7; /* 0x2B085E9F: je 0x2b085ea7 */ 8701 L_2B085EA1: 8702 eax = MEM32(ecx); /* 0x2B085EA1: mov eax, dword ptr [ecx] */ 8703 PUSH32(esp, 1); /* 0x2B085EA3: push 1 */ 8704 RECOMP_ICALL(MEM32(eax)); /* 0x2B085EA5: call dword ptr [eax] */ 8705 RECOMP_FLAGS_IN(); 8706 L_2B085EA7: 8707 ecx = MEM32(esi + 0x90); /* 0x2B085EA7: mov ecx, dword ptr [esi + 0x90] */ 8708 /* test ecx, ecx */ /* 0x2B085EAD: test ecx, ecx */ 8709 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8710 _cf = 0; 8711 _flag_k = FK_TEST; 8712 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085EB7; /* 0x2B085EAF: je 0x2b085eb7 */ 8713 L_2B085EB1: 8714 edx = MEM32(ecx); /* 0x2B085EB1: mov edx, dword ptr [ecx] */ 8715 PUSH32(esp, 1); /* 0x2B085EB3: push 1 */ 8716 RECOMP_ICALL(MEM32(edx)); /* 0x2B085EB5: call dword ptr [edx] */ 8717 RECOMP_FLAGS_IN(); 8718 L_2B085EB7: 8719 ecx = MEM32(esi + 0x94); /* 0x2B085EB7: mov ecx, dword ptr [esi + 0x94] */ 8720 /* test ecx, ecx */ /* 0x2B085EBD: test ecx, ecx */ 8721 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8722 _cf = 0; 8723 _flag_k = FK_TEST; 8724 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085EC7; /* 0x2B085EBF: je 0x2b085ec7 */ 8725 L_2B085EC1: 8726 eax = MEM32(ecx); /* 0x2B085EC1: mov eax, dword ptr [ecx] */ 8727 PUSH32(esp, 1); /* 0x2B085EC3: push 1 */ 8728 RECOMP_ICALL(MEM32(eax)); /* 0x2B085EC5: call dword ptr [eax] */ 8729 RECOMP_FLAGS_IN(); 8730 L_2B085EC7: 8731 ecx = MEM32(esi + 0x8C); /* 0x2B085EC7: mov ecx, dword ptr [esi + 0x8c] */ 8732 /* test ecx, ecx */ /* 0x2B085ECD: test ecx, ecx */ 8733 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8734 _cf = 0; 8735 _flag_k = FK_TEST; 8736 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085ED7; /* 0x2B085ECF: je 0x2b085ed7 */ 8737 L_2B085ED1: 8738 edx = MEM32(ecx); /* 0x2B085ED1: mov edx, dword ptr [ecx] */ 8739 PUSH32(esp, 1); /* 0x2B085ED3: push 1 */ 8740 RECOMP_ICALL(MEM32(edx)); /* 0x2B085ED5: call dword ptr [edx] */ 8741 RECOMP_FLAGS_IN(); 8742 L_2B085ED7: 8743 ecx = MEM32(esi + 0x88); /* 0x2B085ED7: mov ecx, dword ptr [esi + 0x88] */ 8744 /* test ecx, ecx */ /* 0x2B085EDD: test ecx, ecx */ 8745 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8746 _cf = 0; 8747 _flag_k = FK_TEST; 8748 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085EE7; /* 0x2B085EDF: je 0x2b085ee7 */ 8749 L_2B085EE1: 8750 eax = MEM32(ecx); /* 0x2B085EE1: mov eax, dword ptr [ecx] */ 8751 PUSH32(esp, 1); /* 0x2B085EE3: push 1 */ 8752 RECOMP_ICALL(MEM32(eax)); /* 0x2B085EE5: call dword ptr [eax] */ 8753 RECOMP_FLAGS_IN(); 8754 L_2B085EE7: 8755 edi = MEM32(esi + 0x84); /* 0x2B085EE7: mov edi, dword ptr [esi + 0x84] */ 8756 /* test edi, edi */ /* 0x2B085EED: test edi, edi */ 8757 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8758 _cf = 0; 8759 _flag_k = FK_TEST; 8760 if (TEST_Z(_flag_a, _flag_b)) goto L_2B085F02; /* 0x2B085EEF: je 0x2b085f02 */ 8761 L_2B085EF1: 8762 ecx = edi; /* 0x2B085EF1: mov ecx, edi */ 8763 RECOMP_ICALL(MEM32(0x2B0B5BC4)); /* 0x2B085EF3: call dword ptr [0x2b0b5bc4] */ 8764 RECOMP_FLAGS_IN(); 8765 PUSH32(esp, edi); /* 0x2B085EF9: push edi */ 8766 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B085EFA: call 0x2b0ab1ba */ /* not lifted */ 8767 RECOMP_FLAGS_IN(); 8768 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8770 esp = esp + 4; /* 0x2B085EFF: add esp, 4 */ 8771 _flag_k = FK_ADD; 8772 L_2B085F02: 8773 MEM32(0x2B0EF0D4) = 0; /* 0x2B085F02: mov dword ptr [0x2b0ef0d4], 0 */ 8774 eax = MEM32(esi + 0x54); /* 0x2B085F0C: mov eax, dword ptr [esi + 0x54] */ 8775 PUSH32(esp, eax); /* 0x2B085F0F: push eax */ 8776 MEM32(ebp + (-0x10)) = eax; /* 0x2B085F10: mov dword ptr [ebp - 0x10], eax */ 8777 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B085F13: call 0x2b0ab1ba */ /* not lifted */ 8778 RECOMP_FLAGS_IN(); 8779 ecx = MEM32(ebp + (-0xC)); /* 0x2B085F18: mov ecx, dword ptr [ebp - 0xc] */ 8780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8782 esp = esp + 4; /* 0x2B085F1B: add esp, 4 */ 8783 _flag_k = FK_ADD; 8784 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8785 eax = 0; /* 0x2B085F1E: xor eax, eax */ 8786 _cf = 0; 8787 _flag_k = FK_TEST; 8788 MEM32(esi + 0x54) = eax; /* 0x2B085F20: mov dword ptr [esi + 0x54], eax */ 8789 MEM32(esi + 0x58) = eax; /* 0x2B085F23: mov dword ptr [esi + 0x58], eax */ 8790 MEM32(esi + 0x5C) = eax; /* 0x2B085F26: mov dword ptr [esi + 0x5c], eax */ 8791 edi = POP32_VAL(esp); /* 0x2B085F29: pop edi */ 8792 esi = POP32_VAL(esp); /* 0x2B085F2A: pop esi */ 8793 MEM32(FS_BASE + (0)) = ecx; /* 0x2B085F2B: mov dword ptr fs:[0], ecx */ 8794 esp = ebp; /* 0x2B085F32: mov esp, ebp */ 8795 ebp = POP32_VAL(esp); /* 0x2B085F34: pop ebp */ 8796 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B085F35: ret */ 8797 RECOMP_REGS_OUT(); 8798 } 8799 8800 void sub_2B085F40(void) { 8801 int _fpu_cmp = 0; 8802 uint32_t _cf = 0; 8803 int _df = 1; 8804 uint32_t _flag_k = FK_NONE; 8805 uint32_t _flag_a = 0, _flag_b = 0; 8806 uint32_t _itail_tgt = 0; 8807 RECOMP_REGS_LOCALS 8808 RECOMP_ENTER(0x2B085F40u); 8809 8810 L_2B085F40: 8811 PUSH32(esp, ebp); /* 0x2B085F40: push ebp */ 8812 ebp = esp; /* 0x2B085F41: mov ebp, esp */ 8813 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x74u); 8814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8815 esp = esp - 0x74u; /* 0x2B085F43: sub esp, 0x74 */ 8816 _flag_k = FK_CMP; 8817 PUSH32(esp, ebx); /* 0x2B085F46: push ebx */ 8818 PUSH32(esp, esi); /* 0x2B085F47: push esi */ 8819 ebx = ecx; /* 0x2B085F48: mov ebx, ecx */ 8820 ecx = MEM32(ebx + 0xA0); /* 0x2B085F4A: mov ecx, dword ptr [ebx + 0xa0] */ 8821 PUSH32(esp, edi); /* 0x2B085F50: push edi */ 8822 PUSH32(esp, 1); /* 0x2B085F51: push 1 */ 8823 MEM32(ebp + (-0x8)) = ebx; /* 0x2B085F53: mov dword ptr [ebp - 8], ebx */ 8824 MEM8(ebx + 0x13D) = (uint8_t)(0); /* 0x2B085F56: mov byte ptr [ebx + 0x13d], 0 */ 8825 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B085F5D: call dword ptr [0x2b0b5ab4] */ 8826 RECOMP_FLAGS_IN(); 8827 ecx = MEM32(ebx + 0x98); /* 0x2B085F63: mov ecx, dword ptr [ebx + 0x98] */ 8828 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B085F69: call dword ptr [0x2b0b58cc] */ 8829 RECOMP_FLAGS_IN(); 8830 eax = MEM32(ebx + 0x58); /* 0x2B085F6F: mov eax, dword ptr [ebx + 0x58] */ 8831 /* cmp eax, eax */ /* 0x2B085F72: cmp eax, eax */ 8832 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8834 _flag_k = FK_CMP; 8835 edi = MEM32(ebx + 0x54); /* 0x2B085F74: mov edi, dword ptr [ebx + 0x54] */ 8836 esi = ebx + 0x50; /* 0x2B085F77: lea esi, [ebx + 0x50] */ 8837 MEM32(ebp + (-0x4)) = eax; /* 0x2B085F7A: mov dword ptr [ebp - 4], eax */ 8838 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B085FA9; /* 0x2B085F7D: je 0x2b085fa9 */ 8839 L_2B085F7F: 8840 ecx = eax; /* 0x2B085F7F: mov ecx, eax */ 8841 ebx = MEM32(ecx); /* 0x2B085F81: mov ebx, dword ptr [ecx] */ 8842 edx = edi; /* 0x2B085F83: mov edx, edi */ 8843 MEM32(edx) = ebx; /* 0x2B085F85: mov dword ptr [edx], ebx */ 8844 ebx = MEM32(ecx + 0x4); /* 0x2B085F87: mov ebx, dword ptr [ecx + 4] */ 8845 MEM32(edx + 0x4) = ebx; /* 0x2B085F8A: mov dword ptr [edx + 4], ebx */ 8846 ebx = MEM32(ecx + 0x8); /* 0x2B085F8D: mov ebx, dword ptr [ecx + 8] */ 8847 MEM32(edx + 0x8) = ebx; /* 0x2B085F90: mov dword ptr [edx + 8], ebx */ 8848 ecx = MEM32(ecx + 0xC); /* 0x2B085F93: mov ecx, dword ptr [ecx + 0xc] */ 8849 MEM32(edx + 0xC) = ecx; /* 0x2B085F96: mov dword ptr [edx + 0xc], ecx */ 8850 ecx = MEM32(ebp + (-0x4)); /* 0x2B085F99: mov ecx, dword ptr [ebp - 4] */ 8851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 8852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8853 eax = eax + 0x10u; /* 0x2B085F9C: add eax, 0x10 */ 8854 _flag_k = FK_ADD; 8855 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 8856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8857 edi = edi + 0x10u; /* 0x2B085F9F: add edi, 0x10 */ 8858 _flag_k = FK_ADD; 8859 /* cmp eax, ecx */ /* 0x2B085FA2: cmp eax, ecx */ 8860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8862 _flag_k = FK_CMP; 8863 RECOMP_BACKEDGE(); 8864 if (CMP_NE(_flag_a, _flag_b)) goto L_2B085F7F; /* 0x2B085FA4: jne 0x2b085f7f */ 8865 L_2B085FA6: 8866 ebx = MEM32(ebp + (-0x8)); /* 0x2B085FA6: mov ebx, dword ptr [ebp - 8] */ 8867 L_2B085FA9: 8868 edx = MEM32(esi + 0x8); /* 0x2B085FA9: mov edx, dword ptr [esi + 8] */ 8869 PUSH32(esp, edx); /* 0x2B085FAC: push edx */ 8870 PUSH32(esp, edi); /* 0x2B085FAD: push edi */ 8871 ecx = esi; /* 0x2B085FAE: mov ecx, esi */ 8872 RECOMP_ICALL(0x2B0292C0u); /* 0x2B085FB0: call 0x2b0292c0 */ /* not lifted */ 8873 RECOMP_FLAGS_IN(); 8874 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8875 edx = 0; /* 0x2B085FB5: xor edx, edx */ 8876 _cf = 0; 8877 _flag_k = FK_TEST; 8878 MEM32(esi + 0x8) = edi; /* 0x2B085FB7: mov dword ptr [esi + 8], edi */ 8879 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8880 eax = 0; /* 0x2B085FBA: xor eax, eax */ 8881 _cf = 0; 8882 _flag_k = FK_TEST; 8883 MEM32(ebp + (-0x44)) = edx; /* 0x2B085FBC: mov dword ptr [ebp - 0x44], edx */ 8884 MEM32(ebp + (-0x40)) = edx; /* 0x2B085FBF: mov dword ptr [ebp - 0x40], edx */ 8885 ecx = 0xAu; /* 0x2B085FC2: mov ecx, 0xa */ 8886 edi = ebp + (-0x44); /* 0x2B085FC7: lea edi, [ebp - 0x44] */ 8887 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B085FCA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 8888 MEM32(ebp + (-0x3C)) = 3; /* 0x2B085FCC: mov dword ptr [ebp - 0x3c], 3 */ 8889 MEM32(ebp + (-0x38)) = 0x6592u; /* 0x2B085FD3: mov dword ptr [ebp - 0x38], 0x6592 */ 8890 MEM32(ebp + (-0x2C)) = edx; /* 0x2B085FDA: mov dword ptr [ebp - 0x2c], edx */ 8891 MEM32(ebp + (-0x28)) = 0x30u; /* 0x2B085FDD: mov dword ptr [ebp - 0x28], 0x30 */ 8892 MEM32(ebp + (-0x24)) = 0xFFFFFFFFu; /* 0x2B085FE4: mov dword ptr [ebp - 0x24], 0xffffffff */ 8893 MEM32(ebp + (-0x34)) = edx; /* 0x2B085FEB: mov dword ptr [ebp - 0x34], edx */ 8894 MEM32(ebp + (-0x30)) = edx; /* 0x2B085FEE: mov dword ptr [ebp - 0x30], edx */ 8895 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B085FF1: call dword ptr [0x2b0b5d6c] */ 8896 RECOMP_FLAGS_IN(); 8897 ecx = eax; /* 0x2B085FF7: mov ecx, eax */ 8898 RECOMP_ICALL(MEM32(0x2B0B5C8C)); /* 0x2B085FF9: call dword ptr [0x2b0b5c8c] */ 8899 RECOMP_FLAGS_IN(); 8900 /* test eax, eax */ /* 0x2B085FFF: test eax, eax */ 8901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8902 _cf = 0; 8903 _flag_k = FK_TEST; 8904 MEM32(ebp + (-0x14)) = eax; /* 0x2B086001: mov dword ptr [ebp - 0x14], eax */ 8905 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08624A; /* 0x2B086004: je 0x2b08624a */ 8906 L_2B08600A: 8907 ecx = MEM32(eax + 0x4); /* 0x2B08600A: mov ecx, dword ptr [eax + 4] */ 8908 /* test ecx, ecx */ /* 0x2B08600D: test ecx, ecx */ 8909 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8910 _cf = 0; 8911 _flag_k = FK_TEST; 8912 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08624A; /* 0x2B08600F: je 0x2b08624a */ 8913 L_2B086015: 8914 eax = MEM32(eax + 0x8); /* 0x2B086015: mov eax, dword ptr [eax + 8] */ 8915 edx = eax; /* 0x2B086018: mov edx, eax */ 8916 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8918 edx = edx - ecx; /* 0x2B08601A: sub edx, ecx */ 8919 _flag_k = FK_CMP; 8920 /* test edx, 0xFFFFFFF0u */ /* 0x2B08601C: test edx, 0xfffffff0 */ 8921 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFF0u); 8922 _cf = 0; 8923 _flag_k = FK_TEST; 8924 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08624A; /* 0x2B086022: je 0x2b08624a */ 8925 L_2B086028: 8926 ebx = ecx; /* 0x2B086028: mov ebx, ecx */ 8927 /* cmp ebx, eax */ /* 0x2B08602A: cmp ebx, eax */ 8928 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 8929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8930 _flag_k = FK_CMP; 8931 MEM32(ebp + (-0x4)) = ebx; /* 0x2B08602C: mov dword ptr [ebp - 4], ebx */ 8932 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08620F; /* 0x2B08602F: je 0x2b08620f */ 8933 L_2B086035: 8934 eax = MEM32(esi + 0x8); /* 0x2B086035: mov eax, dword ptr [esi + 8] */ 8935 ecx = MEM32(esi + 0xC); /* 0x2B086038: mov ecx, dword ptr [esi + 0xc] */ 8936 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8938 ecx = ecx - eax; /* 0x2B08603B: sub ecx, eax */ 8939 _flag_k = FK_CMP; 8940 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B08603D: sar ecx, 4 */ 8941 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8942 ecx = (uint32_t)((int32_t)ecx >> 4u); 8943 /* cmp ecx, 1 */ /* 0x2B086040: cmp ecx, 1 */ 8944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8946 _flag_k = FK_CMP; 8947 edi = eax; /* 0x2B086043: mov edi, eax */ 8948 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0860FC; /* 0x2B086045: jae 0x2b0860fc */ 8949 L_2B08604B: 8950 edx = MEM32(esi + 0x4); /* 0x2B08604B: mov edx, dword ptr [esi + 4] */ 8951 /* test edx, edx */ /* 0x2B08604E: test edx, edx */ 8952 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8953 _cf = 0; 8954 _flag_k = FK_TEST; 8955 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08605E; /* 0x2B086050: je 0x2b08605e */ 8956 L_2B086052: 8957 ecx = eax; /* 0x2B086052: mov ecx, eax */ 8958 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8960 ecx = ecx - edx; /* 0x2B086054: sub ecx, edx */ 8961 _flag_k = FK_CMP; 8962 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086056: sar ecx, 4 */ 8963 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8964 ecx = (uint32_t)((int32_t)ecx >> 4u); 8965 /* cmp ecx, 1 */ /* 0x2B086059: cmp ecx, 1 */ 8966 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8968 _flag_k = FK_CMP; 8969 if (CMP_A(_flag_a, _flag_b)) goto L_2B086063; /* 0x2B08605C: ja 0x2b086063 */ 8970 L_2B08605E: 8971 ecx = 1; /* 0x2B08605E: mov ecx, 1 */ 8972 L_2B086063: 8973 /* test edx, edx */ /* 0x2B086063: test edx, edx */ 8974 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8975 _cf = 0; 8976 _flag_k = FK_TEST; 8977 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08606B; /* 0x2B086065: jne 0x2b08606b */ 8978 L_2B086067: 8979 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8980 eax = 0; /* 0x2B086067: xor eax, eax */ 8981 _cf = 0; 8982 _flag_k = FK_TEST; 8983 goto L_2B086070; /* 0x2B086069: jmp 0x2b086070 */ 8984 L_2B08606B: 8985 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8987 eax = eax - edx; /* 0x2B08606B: sub eax, edx */ 8988 _flag_k = FK_CMP; 8989 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B08606D: sar eax, 4 */ 8990 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8991 eax = (uint32_t)((int32_t)eax >> 4u); 8992 L_2B086070: 8993 ebx = eax + ecx; /* 0x2B086070: lea ebx, [eax + ecx] */ 8994 /* test ebx, ebx */ /* 0x2B086073: test ebx, ebx */ 8995 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8996 _cf = 0; 8997 _flag_k = FK_TEST; 8998 eax = ebx; /* 0x2B086075: mov eax, ebx */ 8999 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08607B; /* 0x2B086077: jge 0x2b08607b */ 9000 L_2B086079: 9001 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9002 eax = 0; /* 0x2B086079: xor eax, eax */ 9003 _cf = 0; 9004 _flag_k = FK_TEST; 9005 L_2B08607B: 9006 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B08607B: shl eax, 4 */ 9007 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9008 eax = eax << 4u; /* 0x2B08607B: shl eax, 4 */ 9009 PUSH32(esp, eax); /* 0x2B08607E: push eax */ 9010 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08607F: call 0x2b0ab212 */ /* not lifted */ 9011 RECOMP_FLAGS_IN(); 9012 edx = MEM32(esi + 0x4); /* 0x2B086084: mov edx, dword ptr [esi + 4] */ 9013 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9014 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9015 esp = esp + 4; /* 0x2B086087: add esp, 4 */ 9016 _flag_k = FK_ADD; 9017 PUSH32(esp, eax); /* 0x2B08608A: push eax */ 9018 PUSH32(esp, edi); /* 0x2B08608B: push edi */ 9019 PUSH32(esp, edx); /* 0x2B08608C: push edx */ 9020 ecx = esi; /* 0x2B08608D: mov ecx, esi */ 9021 MEM32(ebp + (-0x10)) = eax; /* 0x2B08608F: mov dword ptr [ebp - 0x10], eax */ 9022 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086092: call 0x2b0869b0 */ /* not lifted */ 9023 RECOMP_FLAGS_IN(); 9024 ecx = MEM32(ebp + (-0x4)); /* 0x2B086097: mov ecx, dword ptr [ebp - 4] */ 9025 PUSH32(esp, ecx); /* 0x2B08609A: push ecx */ 9026 PUSH32(esp, 1); /* 0x2B08609B: push 1 */ 9027 PUSH32(esp, eax); /* 0x2B08609D: push eax */ 9028 ecx = esi; /* 0x2B08609E: mov ecx, esi */ 9029 MEM32(ebp + (-0xC)) = eax; /* 0x2B0860A0: mov dword ptr [ebp - 0xc], eax */ 9030 RECOMP_ICALL(0x2B0869F0u); /* 0x2B0860A3: call 0x2b0869f0 */ /* not lifted */ 9031 RECOMP_FLAGS_IN(); 9032 edx = MEM32(ebp + (-0xC)); /* 0x2B0860A8: mov edx, dword ptr [ebp - 0xc] */ 9033 eax = MEM32(esi + 0x8); /* 0x2B0860AB: mov eax, dword ptr [esi + 8] */ 9034 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 9035 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9036 edx = edx + 0x10u; /* 0x2B0860AE: add edx, 0x10 */ 9037 _flag_k = FK_ADD; 9038 PUSH32(esp, edx); /* 0x2B0860B1: push edx */ 9039 PUSH32(esp, eax); /* 0x2B0860B2: push eax */ 9040 PUSH32(esp, edi); /* 0x2B0860B3: push edi */ 9041 ecx = esi; /* 0x2B0860B4: mov ecx, esi */ 9042 RECOMP_ICALL(0x2B0869B0u); /* 0x2B0860B6: call 0x2b0869b0 */ /* not lifted */ 9043 RECOMP_FLAGS_IN(); 9044 ecx = MEM32(esi + 0x8); /* 0x2B0860BB: mov ecx, dword ptr [esi + 8] */ 9045 edx = MEM32(esi + 0x4); /* 0x2B0860BE: mov edx, dword ptr [esi + 4] */ 9046 PUSH32(esp, ecx); /* 0x2B0860C1: push ecx */ 9047 PUSH32(esp, edx); /* 0x2B0860C2: push edx */ 9048 ecx = esi; /* 0x2B0860C3: mov ecx, esi */ 9049 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0860C5: call 0x2b0292c0 */ /* not lifted */ 9050 RECOMP_FLAGS_IN(); 9051 eax = MEM32(esi + 0x4); /* 0x2B0860CA: mov eax, dword ptr [esi + 4] */ 9052 PUSH32(esp, eax); /* 0x2B0860CD: push eax */ 9053 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0860CE: call 0x2b0ab1ba */ /* not lifted */ 9054 RECOMP_FLAGS_IN(); 9055 edi = MEM32(ebp + (-0x10)); /* 0x2B0860D3: mov edi, dword ptr [ebp - 0x10] */ 9056 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x2B0860D6: shl ebx, 4 */ 9057 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9058 ebx = ebx << 4u; /* 0x2B0860D6: shl ebx, 4 */ 9059 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 9060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9061 ebx = ebx + edi; /* 0x2B0860D9: add ebx, edi */ 9062 _flag_k = FK_ADD; 9063 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9064 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9065 esp = esp + 4; /* 0x2B0860DB: add esp, 4 */ 9066 _flag_k = FK_ADD; 9067 ecx = esi; /* 0x2B0860DE: mov ecx, esi */ 9068 MEM32(esi + 0xC) = ebx; /* 0x2B0860E0: mov dword ptr [esi + 0xc], ebx */ 9069 RECOMP_ICALL(0x2B002FC0u); /* 0x2B0860E3: call 0x2b002fc0 */ /* not lifted */ 9070 RECOMP_FLAGS_IN(); 9071 ebx = MEM32(ebp + (-0x4)); /* 0x2B0860E8: mov ebx, dword ptr [ebp - 4] */ 9072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9073 eax = eax + 1; /* 0x2B0860EB: inc eax */ 9074 _flag_k = FK_INC; 9075 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0860EC: shl eax, 4 */ 9076 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9077 eax = eax << 4u; /* 0x2B0860EC: shl eax, 4 */ 9078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9080 eax = eax + edi; /* 0x2B0860EF: add eax, edi */ 9081 _flag_k = FK_ADD; 9082 MEM32(esi + 0x8) = eax; /* 0x2B0860F1: mov dword ptr [esi + 8], eax */ 9083 MEM32(esi + 0x4) = edi; /* 0x2B0860F4: mov dword ptr [esi + 4], edi */ 9084 goto L_2B0861DD; /* 0x2B0860F7: jmp 0x2b0861dd */ 9085 L_2B0860FC: 9086 ecx = eax; /* 0x2B0860FC: mov ecx, eax */ 9087 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9089 ecx = ecx - edi; /* 0x2B0860FE: sub ecx, edi */ 9090 _flag_k = FK_CMP; 9091 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086100: sar ecx, 4 */ 9092 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9093 ecx = (uint32_t)((int32_t)ecx >> 4u); 9094 /* cmp ecx, 1 */ /* 0x2B086103: cmp ecx, 1 */ 9095 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9097 _flag_k = FK_CMP; 9098 if (CMP_AE(_flag_a, _flag_b)) goto L_2B086164; /* 0x2B086106: jae 0x2b086164 */ 9099 L_2B086108: 9100 ecx = edi + 0x10; /* 0x2B086108: lea ecx, [edi + 0x10] */ 9101 PUSH32(esp, ecx); /* 0x2B08610B: push ecx */ 9102 PUSH32(esp, eax); /* 0x2B08610C: push eax */ 9103 PUSH32(esp, edi); /* 0x2B08610D: push edi */ 9104 ecx = esi; /* 0x2B08610E: mov ecx, esi */ 9105 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086110: call 0x2b0869b0 */ /* not lifted */ 9106 RECOMP_FLAGS_IN(); 9107 eax = MEM32(esi + 0x8); /* 0x2B086115: mov eax, dword ptr [esi + 8] */ 9108 edx = eax; /* 0x2B086118: mov edx, eax */ 9109 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9111 edx = edx - edi; /* 0x2B08611A: sub edx, edi */ 9112 _flag_k = FK_CMP; 9113 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B08611C: sar edx, 4 */ 9114 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9115 edx = (uint32_t)((int32_t)edx >> 4u); 9116 PUSH32(esp, ebx); /* 0x2B08611F: push ebx */ 9117 ecx = 1; /* 0x2B086120: mov ecx, 1 */ 9118 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9120 ecx = ecx - edx; /* 0x2B086125: sub ecx, edx */ 9121 _flag_k = FK_CMP; 9122 PUSH32(esp, ecx); /* 0x2B086127: push ecx */ 9123 PUSH32(esp, eax); /* 0x2B086128: push eax */ 9124 ecx = esi; /* 0x2B086129: mov ecx, esi */ 9125 RECOMP_ICALL(0x2B0869F0u); /* 0x2B08612B: call 0x2b0869f0 */ /* not lifted */ 9126 RECOMP_FLAGS_IN(); 9127 eax = MEM32(esi + 0x8); /* 0x2B086130: mov eax, dword ptr [esi + 8] */ 9128 /* cmp edi, eax */ /* 0x2B086133: cmp edi, eax */ 9129 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9131 _flag_k = FK_CMP; 9132 MEM32(ebp + (-0x10)) = eax; /* 0x2B086135: mov dword ptr [ebp - 0x10], eax */ 9133 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B086138: je 0x2b0861d9 */ 9134 L_2B08613E: 9135 edx = ebx; /* 0x2B08613E: mov edx, ebx */ 9136 ecx = MEM32(edx); /* 0x2B086140: mov ecx, dword ptr [edx] */ 9137 eax = edi; /* 0x2B086142: mov eax, edi */ 9138 MEM32(eax) = ecx; /* 0x2B086144: mov dword ptr [eax], ecx */ 9139 ecx = MEM32(edx + 0x4); /* 0x2B086146: mov ecx, dword ptr [edx + 4] */ 9140 MEM32(eax + 0x4) = ecx; /* 0x2B086149: mov dword ptr [eax + 4], ecx */ 9141 ecx = MEM32(edx + 0x8); /* 0x2B08614C: mov ecx, dword ptr [edx + 8] */ 9142 MEM32(eax + 0x8) = ecx; /* 0x2B08614F: mov dword ptr [eax + 8], ecx */ 9143 edx = MEM32(edx + 0xC); /* 0x2B086152: mov edx, dword ptr [edx + 0xc] */ 9144 MEM32(eax + 0xC) = edx; /* 0x2B086155: mov dword ptr [eax + 0xc], edx */ 9145 eax = MEM32(ebp + (-0x10)); /* 0x2B086158: mov eax, dword ptr [ebp - 0x10] */ 9146 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 9147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9148 edi = edi + 0x10u; /* 0x2B08615B: add edi, 0x10 */ 9149 _flag_k = FK_ADD; 9150 /* cmp edi, eax */ /* 0x2B08615E: cmp edi, eax */ 9151 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9153 _flag_k = FK_CMP; 9154 RECOMP_BACKEDGE(); 9155 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08613E; /* 0x2B086160: jne 0x2b08613e */ 9156 L_2B086162: 9157 goto L_2B0861D9; /* 0x2B086162: jmp 0x2b0861d9 */ 9158 L_2B086164: 9159 PUSH32(esp, eax); /* 0x2B086164: push eax */ 9160 ecx = eax + (-0x10); /* 0x2B086165: lea ecx, [eax - 0x10] */ 9161 PUSH32(esp, eax); /* 0x2B086168: push eax */ 9162 MEM32(ebp + (-0x10)) = ecx; /* 0x2B086169: mov dword ptr [ebp - 0x10], ecx */ 9163 PUSH32(esp, ecx); /* 0x2B08616C: push ecx */ 9164 ecx = esi; /* 0x2B08616D: mov ecx, esi */ 9165 RECOMP_ICALL(0x2B0869B0u); /* 0x2B08616F: call 0x2b0869b0 */ /* not lifted */ 9166 RECOMP_FLAGS_IN(); 9167 ecx = MEM32(esi + 0x8); /* 0x2B086174: mov ecx, dword ptr [esi + 8] */ 9168 eax = ecx + (-0x10); /* 0x2B086177: lea eax, [ecx - 0x10] */ 9169 /* cmp edi, eax */ /* 0x2B08617A: cmp edi, eax */ 9170 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9172 _flag_k = FK_CMP; 9173 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861AB; /* 0x2B08617C: je 0x2b0861ab */ 9174 L_2B08617E: 9175 goto L_2B086183; /* 0x2B08617E: jmp 0x2b086183 */ 9176 L_2B086180: 9177 ecx = MEM32(ebp + (-0x10)); /* 0x2B086180: mov ecx, dword ptr [ebp - 0x10] */ 9178 L_2B086183: 9179 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 9180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9181 eax = eax - 0x10u; /* 0x2B086183: sub eax, 0x10 */ 9182 _flag_k = FK_CMP; 9183 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 9184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9185 ecx = ecx - 0x10u; /* 0x2B086186: sub ecx, 0x10 */ 9186 _flag_k = FK_CMP; 9187 /* cmp eax, edi */ /* 0x2B086189: cmp eax, edi */ 9188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9190 _flag_k = FK_CMP; 9191 edx = eax; /* 0x2B08618B: mov edx, eax */ 9192 ebx = MEM32(edx); /* 0x2B08618D: mov ebx, dword ptr [edx] */ 9193 MEM32(ebp + (-0x10)) = ecx; /* 0x2B08618F: mov dword ptr [ebp - 0x10], ecx */ 9194 MEM32(ecx) = ebx; /* 0x2B086192: mov dword ptr [ecx], ebx */ 9195 ebx = MEM32(edx + 0x4); /* 0x2B086194: mov ebx, dword ptr [edx + 4] */ 9196 MEM32(ecx + 0x4) = ebx; /* 0x2B086197: mov dword ptr [ecx + 4], ebx */ 9197 ebx = MEM32(edx + 0x8); /* 0x2B08619A: mov ebx, dword ptr [edx + 8] */ 9198 MEM32(ecx + 0x8) = ebx; /* 0x2B08619D: mov dword ptr [ecx + 8], ebx */ 9199 edx = MEM32(edx + 0xC); /* 0x2B0861A0: mov edx, dword ptr [edx + 0xc] */ 9200 MEM32(ecx + 0xC) = edx; /* 0x2B0861A3: mov dword ptr [ecx + 0xc], edx */ 9201 RECOMP_BACKEDGE(); 9202 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086180; /* 0x2B0861A6: jne 0x2b086180 */ 9203 L_2B0861A8: 9204 ebx = MEM32(ebp + (-0x4)); /* 0x2B0861A8: mov ebx, dword ptr [ebp - 4] */ 9205 L_2B0861AB: 9206 eax = edi + 0x10; /* 0x2B0861AB: lea eax, [edi + 0x10] */ 9207 /* cmp edi, eax */ /* 0x2B0861AE: cmp edi, eax */ 9208 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9210 _flag_k = FK_CMP; 9211 MEM32(ebp + (-0x10)) = eax; /* 0x2B0861B0: mov dword ptr [ebp - 0x10], eax */ 9212 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B0861B3: je 0x2b0861d9 */ 9213 L_2B0861B5: 9214 eax = ebx; /* 0x2B0861B5: mov eax, ebx */ 9215 edx = MEM32(eax); /* 0x2B0861B7: mov edx, dword ptr [eax] */ 9216 ecx = edi; /* 0x2B0861B9: mov ecx, edi */ 9217 MEM32(ecx) = edx; /* 0x2B0861BB: mov dword ptr [ecx], edx */ 9218 edx = MEM32(eax + 0x4); /* 0x2B0861BD: mov edx, dword ptr [eax + 4] */ 9219 MEM32(ecx + 0x4) = edx; /* 0x2B0861C0: mov dword ptr [ecx + 4], edx */ 9220 edx = MEM32(eax + 0x8); /* 0x2B0861C3: mov edx, dword ptr [eax + 8] */ 9221 MEM32(ecx + 0x8) = edx; /* 0x2B0861C6: mov dword ptr [ecx + 8], edx */ 9222 eax = MEM32(eax + 0xC); /* 0x2B0861C9: mov eax, dword ptr [eax + 0xc] */ 9223 MEM32(ecx + 0xC) = eax; /* 0x2B0861CC: mov dword ptr [ecx + 0xc], eax */ 9224 eax = MEM32(ebp + (-0x10)); /* 0x2B0861CF: mov eax, dword ptr [ebp - 0x10] */ 9225 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 9226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9227 edi = edi + 0x10u; /* 0x2B0861D2: add edi, 0x10 */ 9228 _flag_k = FK_ADD; 9229 /* cmp edi, eax */ /* 0x2B0861D5: cmp edi, eax */ 9230 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9232 _flag_k = FK_CMP; 9233 RECOMP_BACKEDGE(); 9234 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0861B5; /* 0x2B0861D7: jne 0x2b0861b5 */ 9235 L_2B0861D9: 9236 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 9237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9238 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x2B0861D9: add dword ptr [esi + 8], 0x10 */ 9239 _flag_k = FK_ADD; 9240 L_2B0861DD: 9241 ecx = MEM32(ebx); /* 0x2B0861DD: mov ecx, dword ptr [ebx] */ 9242 MEM32(ebp + (-0x44)) = ecx; /* 0x2B0861DF: mov dword ptr [ebp - 0x44], ecx */ 9243 edx = MEM32(ebx + 0x4); /* 0x2B0861E2: mov edx, dword ptr [ebx + 4] */ 9244 ecx = MEM32(ebp + (-0x8)); /* 0x2B0861E5: mov ecx, dword ptr [ebp - 8] */ 9245 ecx = MEM32(ecx + 0x98); /* 0x2B0861E8: mov ecx, dword ptr [ecx + 0x98] */ 9246 eax = ebp + (-0x44); /* 0x2B0861EE: lea eax, [ebp - 0x44] */ 9247 PUSH32(esp, eax); /* 0x2B0861F1: push eax */ 9248 MEM32(ebp + (-0x40)) = edx; /* 0x2B0861F2: mov dword ptr [ebp - 0x40], edx */ 9249 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0861F5: call dword ptr [0x2b0b58d0] */ 9250 RECOMP_FLAGS_IN(); 9251 edx = MEM32(ebp + (-0x14)); /* 0x2B0861FB: mov edx, dword ptr [ebp - 0x14] */ 9252 eax = MEM32(edx + 0x8); /* 0x2B0861FE: mov eax, dword ptr [edx + 8] */ 9253 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 9254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9255 ebx = ebx + 0x10u; /* 0x2B086201: add ebx, 0x10 */ 9256 _flag_k = FK_ADD; 9257 /* cmp ebx, eax */ /* 0x2B086204: cmp ebx, eax */ 9258 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 9259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9260 _flag_k = FK_CMP; 9261 MEM32(ebp + (-0x4)) = ebx; /* 0x2B086206: mov dword ptr [ebp - 4], ebx */ 9262 RECOMP_BACKEDGE(); 9263 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086035; /* 0x2B086209: jne 0x2b086035 */ 9264 L_2B08620F: 9265 ebx = MEM32(ebp + (-0x8)); /* 0x2B08620F: mov ebx, dword ptr [ebp - 8] */ 9266 L_2B086212: 9267 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 9268 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 9269 RECOMP_FLAGS_IN(); 9270 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 9271 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 9272 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 9273 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 9274 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 9275 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 9276 RECOMP_FLAGS_IN(); 9277 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 9278 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 9279 RECOMP_FLAGS_IN(); 9280 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 9281 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 9282 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 9283 esp = ebp; /* 0x2B086246: mov esp, ebp */ 9284 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 9285 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 9286 L_2B08624A: 9287 ecx = 0xBu; /* 0x2B08624A: mov ecx, 0xb */ 9288 esi = 0x2B0ECC04u; /* 0x2B08624F: mov esi, 0x2b0ecc04 */ 9289 edi = ebp + (-0x74); /* 0x2B086254: lea edi, [ebp - 0x74] */ 9290 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B086257: 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; } 9291 PUSH32(esp, 0); /* 0x2B086259: push 0 */ 9292 PUSH32(esp, 0); /* 0x2B08625B: push 0 */ 9293 MEM16(edi) = MEM16(esi); esi += _df * 2; edi += _df * 2; /* 0x2B08625D: movsw word ptr es:[edi], word ptr [esi] */ 9294 PUSH32(esp, 0); /* 0x2B08625F: push 0 */ 9295 eax = ebp + (-0x74); /* 0x2B086261: lea eax, [ebp - 0x74] */ 9296 PUSH32(esp, eax); /* 0x2B086264: push eax */ 9297 PUSH32(esp, 0x2B0EE648u); /* 0x2B086265: push 0x2b0ee648 */ 9298 MEM8(edi) = MEM8(esi); esi += _df; edi += _df; /* 0x2B08626A: movsb byte ptr es:[edi], byte ptr [esi] */ 9299 RECOMP_ICALL(0x2B089BF0u); /* 0x2B08626B: call 0x2b089bf0 */ /* not lifted */ 9300 RECOMP_FLAGS_IN(); 9301 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9302 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9303 esp = esp + 0x14u; /* 0x2B086270: add esp, 0x14 */ 9304 _flag_k = FK_ADD; 9305 RECOMP_BACKEDGE(); 9306 goto L_2B086212; /* 0x2B086273: jmp 0x2b086212 */ 9307 { RECOMP_REGS_OUT(); return; } /* end of function */ 9308 RECOMP_REGS_OUT(); 9309 } 9310 9311 void sub_2B086035(void) { 9312 int _fpu_cmp = 0; 9313 uint32_t _cf = 0; 9314 int _df = 1; 9315 uint32_t _flag_k = FK_NONE; 9316 uint32_t _flag_a = 0, _flag_b = 0; 9317 uint32_t _itail_tgt = 0; 9318 RECOMP_REGS_LOCALS 9319 RECOMP_ENTER(0x2B086035u); 9320 9321 L_2B086035: 9322 eax = MEM32(esi + 0x8); /* 0x2B086035: mov eax, dword ptr [esi + 8] */ 9323 ecx = MEM32(esi + 0xC); /* 0x2B086038: mov ecx, dword ptr [esi + 0xc] */ 9324 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9326 ecx = ecx - eax; /* 0x2B08603B: sub ecx, eax */ 9327 _flag_k = FK_CMP; 9328 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B08603D: sar ecx, 4 */ 9329 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9330 ecx = (uint32_t)((int32_t)ecx >> 4u); 9331 /* cmp ecx, 1 */ /* 0x2B086040: cmp ecx, 1 */ 9332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9334 _flag_k = FK_CMP; 9335 edi = eax; /* 0x2B086043: mov edi, eax */ 9336 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0860FC; /* 0x2B086045: jae 0x2b0860fc */ 9337 L_2B08604B: 9338 edx = MEM32(esi + 0x4); /* 0x2B08604B: mov edx, dword ptr [esi + 4] */ 9339 /* test edx, edx */ /* 0x2B08604E: test edx, edx */ 9340 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9341 _cf = 0; 9342 _flag_k = FK_TEST; 9343 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08605E; /* 0x2B086050: je 0x2b08605e */ 9344 L_2B086052: 9345 ecx = eax; /* 0x2B086052: mov ecx, eax */ 9346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9348 ecx = ecx - edx; /* 0x2B086054: sub ecx, edx */ 9349 _flag_k = FK_CMP; 9350 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086056: sar ecx, 4 */ 9351 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9352 ecx = (uint32_t)((int32_t)ecx >> 4u); 9353 /* cmp ecx, 1 */ /* 0x2B086059: cmp ecx, 1 */ 9354 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9356 _flag_k = FK_CMP; 9357 if (CMP_A(_flag_a, _flag_b)) goto L_2B086063; /* 0x2B08605C: ja 0x2b086063 */ 9358 L_2B08605E: 9359 ecx = 1; /* 0x2B08605E: mov ecx, 1 */ 9360 L_2B086063: 9361 /* test edx, edx */ /* 0x2B086063: test edx, edx */ 9362 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9363 _cf = 0; 9364 _flag_k = FK_TEST; 9365 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08606B; /* 0x2B086065: jne 0x2b08606b */ 9366 L_2B086067: 9367 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9368 eax = 0; /* 0x2B086067: xor eax, eax */ 9369 _cf = 0; 9370 _flag_k = FK_TEST; 9371 goto L_2B086070; /* 0x2B086069: jmp 0x2b086070 */ 9372 L_2B08606B: 9373 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9375 eax = eax - edx; /* 0x2B08606B: sub eax, edx */ 9376 _flag_k = FK_CMP; 9377 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B08606D: sar eax, 4 */ 9378 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9379 eax = (uint32_t)((int32_t)eax >> 4u); 9380 L_2B086070: 9381 ebx = eax + ecx; /* 0x2B086070: lea ebx, [eax + ecx] */ 9382 /* test ebx, ebx */ /* 0x2B086073: test ebx, ebx */ 9383 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9384 _cf = 0; 9385 _flag_k = FK_TEST; 9386 eax = ebx; /* 0x2B086075: mov eax, ebx */ 9387 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08607B; /* 0x2B086077: jge 0x2b08607b */ 9388 L_2B086079: 9389 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9390 eax = 0; /* 0x2B086079: xor eax, eax */ 9391 _cf = 0; 9392 _flag_k = FK_TEST; 9393 L_2B08607B: 9394 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B08607B: shl eax, 4 */ 9395 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9396 eax = eax << 4u; /* 0x2B08607B: shl eax, 4 */ 9397 PUSH32(esp, eax); /* 0x2B08607E: push eax */ 9398 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08607F: call 0x2b0ab212 */ /* not lifted */ 9399 RECOMP_FLAGS_IN(); 9400 edx = MEM32(esi + 0x4); /* 0x2B086084: mov edx, dword ptr [esi + 4] */ 9401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9403 esp = esp + 4; /* 0x2B086087: add esp, 4 */ 9404 _flag_k = FK_ADD; 9405 PUSH32(esp, eax); /* 0x2B08608A: push eax */ 9406 PUSH32(esp, edi); /* 0x2B08608B: push edi */ 9407 PUSH32(esp, edx); /* 0x2B08608C: push edx */ 9408 ecx = esi; /* 0x2B08608D: mov ecx, esi */ 9409 MEM32(ebp + (-0x10)) = eax; /* 0x2B08608F: mov dword ptr [ebp - 0x10], eax */ 9410 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086092: call 0x2b0869b0 */ /* not lifted */ 9411 RECOMP_FLAGS_IN(); 9412 ecx = MEM32(ebp + (-0x4)); /* 0x2B086097: mov ecx, dword ptr [ebp - 4] */ 9413 PUSH32(esp, ecx); /* 0x2B08609A: push ecx */ 9414 PUSH32(esp, 1); /* 0x2B08609B: push 1 */ 9415 PUSH32(esp, eax); /* 0x2B08609D: push eax */ 9416 ecx = esi; /* 0x2B08609E: mov ecx, esi */ 9417 MEM32(ebp + (-0xC)) = eax; /* 0x2B0860A0: mov dword ptr [ebp - 0xc], eax */ 9418 RECOMP_ICALL(0x2B0869F0u); /* 0x2B0860A3: call 0x2b0869f0 */ /* not lifted */ 9419 RECOMP_FLAGS_IN(); 9420 edx = MEM32(ebp + (-0xC)); /* 0x2B0860A8: mov edx, dword ptr [ebp - 0xc] */ 9421 eax = MEM32(esi + 0x8); /* 0x2B0860AB: mov eax, dword ptr [esi + 8] */ 9422 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 9423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9424 edx = edx + 0x10u; /* 0x2B0860AE: add edx, 0x10 */ 9425 _flag_k = FK_ADD; 9426 PUSH32(esp, edx); /* 0x2B0860B1: push edx */ 9427 PUSH32(esp, eax); /* 0x2B0860B2: push eax */ 9428 PUSH32(esp, edi); /* 0x2B0860B3: push edi */ 9429 ecx = esi; /* 0x2B0860B4: mov ecx, esi */ 9430 RECOMP_ICALL(0x2B0869B0u); /* 0x2B0860B6: call 0x2b0869b0 */ /* not lifted */ 9431 RECOMP_FLAGS_IN(); 9432 ecx = MEM32(esi + 0x8); /* 0x2B0860BB: mov ecx, dword ptr [esi + 8] */ 9433 edx = MEM32(esi + 0x4); /* 0x2B0860BE: mov edx, dword ptr [esi + 4] */ 9434 PUSH32(esp, ecx); /* 0x2B0860C1: push ecx */ 9435 PUSH32(esp, edx); /* 0x2B0860C2: push edx */ 9436 ecx = esi; /* 0x2B0860C3: mov ecx, esi */ 9437 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0860C5: call 0x2b0292c0 */ /* not lifted */ 9438 RECOMP_FLAGS_IN(); 9439 eax = MEM32(esi + 0x4); /* 0x2B0860CA: mov eax, dword ptr [esi + 4] */ 9440 PUSH32(esp, eax); /* 0x2B0860CD: push eax */ 9441 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0860CE: call 0x2b0ab1ba */ /* not lifted */ 9442 RECOMP_FLAGS_IN(); 9443 edi = MEM32(ebp + (-0x10)); /* 0x2B0860D3: mov edi, dword ptr [ebp - 0x10] */ 9444 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x2B0860D6: shl ebx, 4 */ 9445 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9446 ebx = ebx << 4u; /* 0x2B0860D6: shl ebx, 4 */ 9447 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 9448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9449 ebx = ebx + edi; /* 0x2B0860D9: add ebx, edi */ 9450 _flag_k = FK_ADD; 9451 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9452 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9453 esp = esp + 4; /* 0x2B0860DB: add esp, 4 */ 9454 _flag_k = FK_ADD; 9455 ecx = esi; /* 0x2B0860DE: mov ecx, esi */ 9456 MEM32(esi + 0xC) = ebx; /* 0x2B0860E0: mov dword ptr [esi + 0xc], ebx */ 9457 RECOMP_ICALL(0x2B002FC0u); /* 0x2B0860E3: call 0x2b002fc0 */ /* not lifted */ 9458 RECOMP_FLAGS_IN(); 9459 ebx = MEM32(ebp + (-0x4)); /* 0x2B0860E8: mov ebx, dword ptr [ebp - 4] */ 9460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9461 eax = eax + 1; /* 0x2B0860EB: inc eax */ 9462 _flag_k = FK_INC; 9463 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0860EC: shl eax, 4 */ 9464 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9465 eax = eax << 4u; /* 0x2B0860EC: shl eax, 4 */ 9466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9467 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9468 eax = eax + edi; /* 0x2B0860EF: add eax, edi */ 9469 _flag_k = FK_ADD; 9470 MEM32(esi + 0x8) = eax; /* 0x2B0860F1: mov dword ptr [esi + 8], eax */ 9471 MEM32(esi + 0x4) = edi; /* 0x2B0860F4: mov dword ptr [esi + 4], edi */ 9472 goto L_2B0861DD; /* 0x2B0860F7: jmp 0x2b0861dd */ 9473 L_2B0860FC: 9474 ecx = eax; /* 0x2B0860FC: mov ecx, eax */ 9475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9477 ecx = ecx - edi; /* 0x2B0860FE: sub ecx, edi */ 9478 _flag_k = FK_CMP; 9479 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086100: sar ecx, 4 */ 9480 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9481 ecx = (uint32_t)((int32_t)ecx >> 4u); 9482 /* cmp ecx, 1 */ /* 0x2B086103: cmp ecx, 1 */ 9483 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9485 _flag_k = FK_CMP; 9486 if (CMP_AE(_flag_a, _flag_b)) goto L_2B086164; /* 0x2B086106: jae 0x2b086164 */ 9487 L_2B086108: 9488 ecx = edi + 0x10; /* 0x2B086108: lea ecx, [edi + 0x10] */ 9489 PUSH32(esp, ecx); /* 0x2B08610B: push ecx */ 9490 PUSH32(esp, eax); /* 0x2B08610C: push eax */ 9491 PUSH32(esp, edi); /* 0x2B08610D: push edi */ 9492 ecx = esi; /* 0x2B08610E: mov ecx, esi */ 9493 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086110: call 0x2b0869b0 */ /* not lifted */ 9494 RECOMP_FLAGS_IN(); 9495 eax = MEM32(esi + 0x8); /* 0x2B086115: mov eax, dword ptr [esi + 8] */ 9496 edx = eax; /* 0x2B086118: mov edx, eax */ 9497 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9499 edx = edx - edi; /* 0x2B08611A: sub edx, edi */ 9500 _flag_k = FK_CMP; 9501 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B08611C: sar edx, 4 */ 9502 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9503 edx = (uint32_t)((int32_t)edx >> 4u); 9504 PUSH32(esp, ebx); /* 0x2B08611F: push ebx */ 9505 ecx = 1; /* 0x2B086120: mov ecx, 1 */ 9506 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9508 ecx = ecx - edx; /* 0x2B086125: sub ecx, edx */ 9509 _flag_k = FK_CMP; 9510 PUSH32(esp, ecx); /* 0x2B086127: push ecx */ 9511 PUSH32(esp, eax); /* 0x2B086128: push eax */ 9512 ecx = esi; /* 0x2B086129: mov ecx, esi */ 9513 RECOMP_ICALL(0x2B0869F0u); /* 0x2B08612B: call 0x2b0869f0 */ /* not lifted */ 9514 RECOMP_FLAGS_IN(); 9515 eax = MEM32(esi + 0x8); /* 0x2B086130: mov eax, dword ptr [esi + 8] */ 9516 /* cmp edi, eax */ /* 0x2B086133: cmp edi, eax */ 9517 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9519 _flag_k = FK_CMP; 9520 MEM32(ebp + (-0x10)) = eax; /* 0x2B086135: mov dword ptr [ebp - 0x10], eax */ 9521 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B086138: je 0x2b0861d9 */ 9522 L_2B08613E: 9523 edx = ebx; /* 0x2B08613E: mov edx, ebx */ 9524 ecx = MEM32(edx); /* 0x2B086140: mov ecx, dword ptr [edx] */ 9525 eax = edi; /* 0x2B086142: mov eax, edi */ 9526 MEM32(eax) = ecx; /* 0x2B086144: mov dword ptr [eax], ecx */ 9527 ecx = MEM32(edx + 0x4); /* 0x2B086146: mov ecx, dword ptr [edx + 4] */ 9528 MEM32(eax + 0x4) = ecx; /* 0x2B086149: mov dword ptr [eax + 4], ecx */ 9529 ecx = MEM32(edx + 0x8); /* 0x2B08614C: mov ecx, dword ptr [edx + 8] */ 9530 MEM32(eax + 0x8) = ecx; /* 0x2B08614F: mov dword ptr [eax + 8], ecx */ 9531 edx = MEM32(edx + 0xC); /* 0x2B086152: mov edx, dword ptr [edx + 0xc] */ 9532 MEM32(eax + 0xC) = edx; /* 0x2B086155: mov dword ptr [eax + 0xc], edx */ 9533 eax = MEM32(ebp + (-0x10)); /* 0x2B086158: mov eax, dword ptr [ebp - 0x10] */ 9534 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 9535 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9536 edi = edi + 0x10u; /* 0x2B08615B: add edi, 0x10 */ 9537 _flag_k = FK_ADD; 9538 /* cmp edi, eax */ /* 0x2B08615E: cmp edi, eax */ 9539 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9541 _flag_k = FK_CMP; 9542 RECOMP_BACKEDGE(); 9543 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08613E; /* 0x2B086160: jne 0x2b08613e */ 9544 L_2B086162: 9545 goto L_2B0861D9; /* 0x2B086162: jmp 0x2b0861d9 */ 9546 L_2B086164: 9547 PUSH32(esp, eax); /* 0x2B086164: push eax */ 9548 ecx = eax + (-0x10); /* 0x2B086165: lea ecx, [eax - 0x10] */ 9549 PUSH32(esp, eax); /* 0x2B086168: push eax */ 9550 MEM32(ebp + (-0x10)) = ecx; /* 0x2B086169: mov dword ptr [ebp - 0x10], ecx */ 9551 PUSH32(esp, ecx); /* 0x2B08616C: push ecx */ 9552 ecx = esi; /* 0x2B08616D: mov ecx, esi */ 9553 RECOMP_ICALL(0x2B0869B0u); /* 0x2B08616F: call 0x2b0869b0 */ /* not lifted */ 9554 RECOMP_FLAGS_IN(); 9555 ecx = MEM32(esi + 0x8); /* 0x2B086174: mov ecx, dword ptr [esi + 8] */ 9556 eax = ecx + (-0x10); /* 0x2B086177: lea eax, [ecx - 0x10] */ 9557 /* cmp edi, eax */ /* 0x2B08617A: cmp edi, eax */ 9558 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9560 _flag_k = FK_CMP; 9561 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861AB; /* 0x2B08617C: je 0x2b0861ab */ 9562 L_2B08617E: 9563 goto L_2B086183; /* 0x2B08617E: jmp 0x2b086183 */ 9564 L_2B086180: 9565 ecx = MEM32(ebp + (-0x10)); /* 0x2B086180: mov ecx, dword ptr [ebp - 0x10] */ 9566 L_2B086183: 9567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 9568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9569 eax = eax - 0x10u; /* 0x2B086183: sub eax, 0x10 */ 9570 _flag_k = FK_CMP; 9571 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 9572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9573 ecx = ecx - 0x10u; /* 0x2B086186: sub ecx, 0x10 */ 9574 _flag_k = FK_CMP; 9575 /* cmp eax, edi */ /* 0x2B086189: cmp eax, edi */ 9576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9578 _flag_k = FK_CMP; 9579 edx = eax; /* 0x2B08618B: mov edx, eax */ 9580 ebx = MEM32(edx); /* 0x2B08618D: mov ebx, dword ptr [edx] */ 9581 MEM32(ebp + (-0x10)) = ecx; /* 0x2B08618F: mov dword ptr [ebp - 0x10], ecx */ 9582 MEM32(ecx) = ebx; /* 0x2B086192: mov dword ptr [ecx], ebx */ 9583 ebx = MEM32(edx + 0x4); /* 0x2B086194: mov ebx, dword ptr [edx + 4] */ 9584 MEM32(ecx + 0x4) = ebx; /* 0x2B086197: mov dword ptr [ecx + 4], ebx */ 9585 ebx = MEM32(edx + 0x8); /* 0x2B08619A: mov ebx, dword ptr [edx + 8] */ 9586 MEM32(ecx + 0x8) = ebx; /* 0x2B08619D: mov dword ptr [ecx + 8], ebx */ 9587 edx = MEM32(edx + 0xC); /* 0x2B0861A0: mov edx, dword ptr [edx + 0xc] */ 9588 MEM32(ecx + 0xC) = edx; /* 0x2B0861A3: mov dword ptr [ecx + 0xc], edx */ 9589 RECOMP_BACKEDGE(); 9590 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086180; /* 0x2B0861A6: jne 0x2b086180 */ 9591 L_2B0861A8: 9592 ebx = MEM32(ebp + (-0x4)); /* 0x2B0861A8: mov ebx, dword ptr [ebp - 4] */ 9593 L_2B0861AB: 9594 eax = edi + 0x10; /* 0x2B0861AB: lea eax, [edi + 0x10] */ 9595 /* cmp edi, eax */ /* 0x2B0861AE: cmp edi, eax */ 9596 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9598 _flag_k = FK_CMP; 9599 MEM32(ebp + (-0x10)) = eax; /* 0x2B0861B0: mov dword ptr [ebp - 0x10], eax */ 9600 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B0861B3: je 0x2b0861d9 */ 9601 L_2B0861B5: 9602 eax = ebx; /* 0x2B0861B5: mov eax, ebx */ 9603 edx = MEM32(eax); /* 0x2B0861B7: mov edx, dword ptr [eax] */ 9604 ecx = edi; /* 0x2B0861B9: mov ecx, edi */ 9605 MEM32(ecx) = edx; /* 0x2B0861BB: mov dword ptr [ecx], edx */ 9606 edx = MEM32(eax + 0x4); /* 0x2B0861BD: mov edx, dword ptr [eax + 4] */ 9607 MEM32(ecx + 0x4) = edx; /* 0x2B0861C0: mov dword ptr [ecx + 4], edx */ 9608 edx = MEM32(eax + 0x8); /* 0x2B0861C3: mov edx, dword ptr [eax + 8] */ 9609 MEM32(ecx + 0x8) = edx; /* 0x2B0861C6: mov dword ptr [ecx + 8], edx */ 9610 eax = MEM32(eax + 0xC); /* 0x2B0861C9: mov eax, dword ptr [eax + 0xc] */ 9611 MEM32(ecx + 0xC) = eax; /* 0x2B0861CC: mov dword ptr [ecx + 0xc], eax */ 9612 eax = MEM32(ebp + (-0x10)); /* 0x2B0861CF: mov eax, dword ptr [ebp - 0x10] */ 9613 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 9614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9615 edi = edi + 0x10u; /* 0x2B0861D2: add edi, 0x10 */ 9616 _flag_k = FK_ADD; 9617 /* cmp edi, eax */ /* 0x2B0861D5: cmp edi, eax */ 9618 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9620 _flag_k = FK_CMP; 9621 RECOMP_BACKEDGE(); 9622 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0861B5; /* 0x2B0861D7: jne 0x2b0861b5 */ 9623 L_2B0861D9: 9624 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 9625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9626 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x2B0861D9: add dword ptr [esi + 8], 0x10 */ 9627 _flag_k = FK_ADD; 9628 L_2B0861DD: 9629 ecx = MEM32(ebx); /* 0x2B0861DD: mov ecx, dword ptr [ebx] */ 9630 MEM32(ebp + (-0x44)) = ecx; /* 0x2B0861DF: mov dword ptr [ebp - 0x44], ecx */ 9631 edx = MEM32(ebx + 0x4); /* 0x2B0861E2: mov edx, dword ptr [ebx + 4] */ 9632 ecx = MEM32(ebp + (-0x8)); /* 0x2B0861E5: mov ecx, dword ptr [ebp - 8] */ 9633 ecx = MEM32(ecx + 0x98); /* 0x2B0861E8: mov ecx, dword ptr [ecx + 0x98] */ 9634 eax = ebp + (-0x44); /* 0x2B0861EE: lea eax, [ebp - 0x44] */ 9635 PUSH32(esp, eax); /* 0x2B0861F1: push eax */ 9636 MEM32(ebp + (-0x40)) = edx; /* 0x2B0861F2: mov dword ptr [ebp - 0x40], edx */ 9637 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0861F5: call dword ptr [0x2b0b58d0] */ 9638 RECOMP_FLAGS_IN(); 9639 edx = MEM32(ebp + (-0x14)); /* 0x2B0861FB: mov edx, dword ptr [ebp - 0x14] */ 9640 eax = MEM32(edx + 0x8); /* 0x2B0861FE: mov eax, dword ptr [edx + 8] */ 9641 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 9642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9643 ebx = ebx + 0x10u; /* 0x2B086201: add ebx, 0x10 */ 9644 _flag_k = FK_ADD; 9645 /* cmp ebx, eax */ /* 0x2B086204: cmp ebx, eax */ 9646 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 9647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9648 _flag_k = FK_CMP; 9649 MEM32(ebp + (-0x4)) = ebx; /* 0x2B086206: mov dword ptr [ebp - 4], ebx */ 9650 RECOMP_BACKEDGE(); 9651 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086035; /* 0x2B086209: jne 0x2b086035 */ 9652 L_2B08620F: 9653 ebx = MEM32(ebp + (-0x8)); /* 0x2B08620F: mov ebx, dword ptr [ebp - 8] */ 9654 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 9655 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 9656 RECOMP_FLAGS_IN(); 9657 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 9658 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 9659 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 9660 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 9661 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 9662 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 9663 RECOMP_FLAGS_IN(); 9664 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 9665 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 9666 RECOMP_FLAGS_IN(); 9667 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 9668 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 9669 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 9670 esp = ebp; /* 0x2B086246: mov esp, ebp */ 9671 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 9672 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 9673 RECOMP_REGS_OUT(); 9674 } 9675 9676 void sub_2B086070(void) { 9677 int _fpu_cmp = 0; 9678 uint32_t _cf = 0; 9679 int _df = 1; 9680 uint32_t _flag_k = FK_NONE; 9681 uint32_t _flag_a = 0, _flag_b = 0; 9682 uint32_t _itail_tgt = 0; 9683 RECOMP_REGS_LOCALS 9684 RECOMP_ENTER(0x2B086070u); 9685 9686 goto L_2B086070; 9687 L_2B086035: 9688 eax = MEM32(esi + 0x8); /* 0x2B086035: mov eax, dword ptr [esi + 8] */ 9689 ecx = MEM32(esi + 0xC); /* 0x2B086038: mov ecx, dword ptr [esi + 0xc] */ 9690 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9692 ecx = ecx - eax; /* 0x2B08603B: sub ecx, eax */ 9693 _flag_k = FK_CMP; 9694 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B08603D: sar ecx, 4 */ 9695 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9696 ecx = (uint32_t)((int32_t)ecx >> 4u); 9697 /* cmp ecx, 1 */ /* 0x2B086040: cmp ecx, 1 */ 9698 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9700 _flag_k = FK_CMP; 9701 edi = eax; /* 0x2B086043: mov edi, eax */ 9702 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0860FC; /* 0x2B086045: jae 0x2b0860fc */ 9703 L_2B08604B: 9704 edx = MEM32(esi + 0x4); /* 0x2B08604B: mov edx, dword ptr [esi + 4] */ 9705 /* test edx, edx */ /* 0x2B08604E: test edx, edx */ 9706 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9707 _cf = 0; 9708 _flag_k = FK_TEST; 9709 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08605E; /* 0x2B086050: je 0x2b08605e */ 9710 L_2B086052: 9711 ecx = eax; /* 0x2B086052: mov ecx, eax */ 9712 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9714 ecx = ecx - edx; /* 0x2B086054: sub ecx, edx */ 9715 _flag_k = FK_CMP; 9716 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086056: sar ecx, 4 */ 9717 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9718 ecx = (uint32_t)((int32_t)ecx >> 4u); 9719 /* cmp ecx, 1 */ /* 0x2B086059: cmp ecx, 1 */ 9720 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9722 _flag_k = FK_CMP; 9723 if (CMP_A(_flag_a, _flag_b)) goto L_2B086063; /* 0x2B08605C: ja 0x2b086063 */ 9724 L_2B08605E: 9725 ecx = 1; /* 0x2B08605E: mov ecx, 1 */ 9726 L_2B086063: 9727 /* test edx, edx */ /* 0x2B086063: test edx, edx */ 9728 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9729 _cf = 0; 9730 _flag_k = FK_TEST; 9731 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08606B; /* 0x2B086065: jne 0x2b08606b */ 9732 L_2B086067: 9733 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9734 eax = 0; /* 0x2B086067: xor eax, eax */ 9735 _cf = 0; 9736 _flag_k = FK_TEST; 9737 goto L_2B086070; /* 0x2B086069: jmp 0x2b086070 */ 9738 L_2B08606B: 9739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9741 eax = eax - edx; /* 0x2B08606B: sub eax, edx */ 9742 _flag_k = FK_CMP; 9743 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B08606D: sar eax, 4 */ 9744 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9745 eax = (uint32_t)((int32_t)eax >> 4u); 9746 L_2B086070: 9747 ebx = eax + ecx; /* 0x2B086070: lea ebx, [eax + ecx] */ 9748 /* test ebx, ebx */ /* 0x2B086073: test ebx, ebx */ 9749 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9750 _cf = 0; 9751 _flag_k = FK_TEST; 9752 eax = ebx; /* 0x2B086075: mov eax, ebx */ 9753 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08607B; /* 0x2B086077: jge 0x2b08607b */ 9754 L_2B086079: 9755 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9756 eax = 0; /* 0x2B086079: xor eax, eax */ 9757 _cf = 0; 9758 _flag_k = FK_TEST; 9759 L_2B08607B: 9760 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B08607B: shl eax, 4 */ 9761 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9762 eax = eax << 4u; /* 0x2B08607B: shl eax, 4 */ 9763 PUSH32(esp, eax); /* 0x2B08607E: push eax */ 9764 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08607F: call 0x2b0ab212 */ /* not lifted */ 9765 RECOMP_FLAGS_IN(); 9766 edx = MEM32(esi + 0x4); /* 0x2B086084: mov edx, dword ptr [esi + 4] */ 9767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9769 esp = esp + 4; /* 0x2B086087: add esp, 4 */ 9770 _flag_k = FK_ADD; 9771 PUSH32(esp, eax); /* 0x2B08608A: push eax */ 9772 PUSH32(esp, edi); /* 0x2B08608B: push edi */ 9773 PUSH32(esp, edx); /* 0x2B08608C: push edx */ 9774 ecx = esi; /* 0x2B08608D: mov ecx, esi */ 9775 MEM32(ebp + (-0x10)) = eax; /* 0x2B08608F: mov dword ptr [ebp - 0x10], eax */ 9776 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086092: call 0x2b0869b0 */ /* not lifted */ 9777 RECOMP_FLAGS_IN(); 9778 ecx = MEM32(ebp + (-0x4)); /* 0x2B086097: mov ecx, dword ptr [ebp - 4] */ 9779 PUSH32(esp, ecx); /* 0x2B08609A: push ecx */ 9780 PUSH32(esp, 1); /* 0x2B08609B: push 1 */ 9781 PUSH32(esp, eax); /* 0x2B08609D: push eax */ 9782 ecx = esi; /* 0x2B08609E: mov ecx, esi */ 9783 MEM32(ebp + (-0xC)) = eax; /* 0x2B0860A0: mov dword ptr [ebp - 0xc], eax */ 9784 RECOMP_ICALL(0x2B0869F0u); /* 0x2B0860A3: call 0x2b0869f0 */ /* not lifted */ 9785 RECOMP_FLAGS_IN(); 9786 edx = MEM32(ebp + (-0xC)); /* 0x2B0860A8: mov edx, dword ptr [ebp - 0xc] */ 9787 eax = MEM32(esi + 0x8); /* 0x2B0860AB: mov eax, dword ptr [esi + 8] */ 9788 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 9789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9790 edx = edx + 0x10u; /* 0x2B0860AE: add edx, 0x10 */ 9791 _flag_k = FK_ADD; 9792 PUSH32(esp, edx); /* 0x2B0860B1: push edx */ 9793 PUSH32(esp, eax); /* 0x2B0860B2: push eax */ 9794 PUSH32(esp, edi); /* 0x2B0860B3: push edi */ 9795 ecx = esi; /* 0x2B0860B4: mov ecx, esi */ 9796 RECOMP_ICALL(0x2B0869B0u); /* 0x2B0860B6: call 0x2b0869b0 */ /* not lifted */ 9797 RECOMP_FLAGS_IN(); 9798 ecx = MEM32(esi + 0x8); /* 0x2B0860BB: mov ecx, dword ptr [esi + 8] */ 9799 edx = MEM32(esi + 0x4); /* 0x2B0860BE: mov edx, dword ptr [esi + 4] */ 9800 PUSH32(esp, ecx); /* 0x2B0860C1: push ecx */ 9801 PUSH32(esp, edx); /* 0x2B0860C2: push edx */ 9802 ecx = esi; /* 0x2B0860C3: mov ecx, esi */ 9803 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0860C5: call 0x2b0292c0 */ /* not lifted */ 9804 RECOMP_FLAGS_IN(); 9805 eax = MEM32(esi + 0x4); /* 0x2B0860CA: mov eax, dword ptr [esi + 4] */ 9806 PUSH32(esp, eax); /* 0x2B0860CD: push eax */ 9807 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0860CE: call 0x2b0ab1ba */ /* not lifted */ 9808 RECOMP_FLAGS_IN(); 9809 edi = MEM32(ebp + (-0x10)); /* 0x2B0860D3: mov edi, dword ptr [ebp - 0x10] */ 9810 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x2B0860D6: shl ebx, 4 */ 9811 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9812 ebx = ebx << 4u; /* 0x2B0860D6: shl ebx, 4 */ 9813 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 9814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9815 ebx = ebx + edi; /* 0x2B0860D9: add ebx, edi */ 9816 _flag_k = FK_ADD; 9817 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9819 esp = esp + 4; /* 0x2B0860DB: add esp, 4 */ 9820 _flag_k = FK_ADD; 9821 ecx = esi; /* 0x2B0860DE: mov ecx, esi */ 9822 MEM32(esi + 0xC) = ebx; /* 0x2B0860E0: mov dword ptr [esi + 0xc], ebx */ 9823 RECOMP_ICALL(0x2B002FC0u); /* 0x2B0860E3: call 0x2b002fc0 */ /* not lifted */ 9824 RECOMP_FLAGS_IN(); 9825 ebx = MEM32(ebp + (-0x4)); /* 0x2B0860E8: mov ebx, dword ptr [ebp - 4] */ 9826 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9827 eax = eax + 1; /* 0x2B0860EB: inc eax */ 9828 _flag_k = FK_INC; 9829 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0860EC: shl eax, 4 */ 9830 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9831 eax = eax << 4u; /* 0x2B0860EC: shl eax, 4 */ 9832 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9833 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9834 eax = eax + edi; /* 0x2B0860EF: add eax, edi */ 9835 _flag_k = FK_ADD; 9836 MEM32(esi + 0x8) = eax; /* 0x2B0860F1: mov dword ptr [esi + 8], eax */ 9837 MEM32(esi + 0x4) = edi; /* 0x2B0860F4: mov dword ptr [esi + 4], edi */ 9838 goto L_2B0861DD; /* 0x2B0860F7: jmp 0x2b0861dd */ 9839 L_2B0860FC: 9840 ecx = eax; /* 0x2B0860FC: mov ecx, eax */ 9841 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9843 ecx = ecx - edi; /* 0x2B0860FE: sub ecx, edi */ 9844 _flag_k = FK_CMP; 9845 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086100: sar ecx, 4 */ 9846 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9847 ecx = (uint32_t)((int32_t)ecx >> 4u); 9848 /* cmp ecx, 1 */ /* 0x2B086103: cmp ecx, 1 */ 9849 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9850 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9851 _flag_k = FK_CMP; 9852 if (CMP_AE(_flag_a, _flag_b)) goto L_2B086164; /* 0x2B086106: jae 0x2b086164 */ 9853 L_2B086108: 9854 ecx = edi + 0x10; /* 0x2B086108: lea ecx, [edi + 0x10] */ 9855 PUSH32(esp, ecx); /* 0x2B08610B: push ecx */ 9856 PUSH32(esp, eax); /* 0x2B08610C: push eax */ 9857 PUSH32(esp, edi); /* 0x2B08610D: push edi */ 9858 ecx = esi; /* 0x2B08610E: mov ecx, esi */ 9859 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086110: call 0x2b0869b0 */ /* not lifted */ 9860 RECOMP_FLAGS_IN(); 9861 eax = MEM32(esi + 0x8); /* 0x2B086115: mov eax, dword ptr [esi + 8] */ 9862 edx = eax; /* 0x2B086118: mov edx, eax */ 9863 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9865 edx = edx - edi; /* 0x2B08611A: sub edx, edi */ 9866 _flag_k = FK_CMP; 9867 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B08611C: sar edx, 4 */ 9868 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9869 edx = (uint32_t)((int32_t)edx >> 4u); 9870 PUSH32(esp, ebx); /* 0x2B08611F: push ebx */ 9871 ecx = 1; /* 0x2B086120: mov ecx, 1 */ 9872 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9874 ecx = ecx - edx; /* 0x2B086125: sub ecx, edx */ 9875 _flag_k = FK_CMP; 9876 PUSH32(esp, ecx); /* 0x2B086127: push ecx */ 9877 PUSH32(esp, eax); /* 0x2B086128: push eax */ 9878 ecx = esi; /* 0x2B086129: mov ecx, esi */ 9879 RECOMP_ICALL(0x2B0869F0u); /* 0x2B08612B: call 0x2b0869f0 */ /* not lifted */ 9880 RECOMP_FLAGS_IN(); 9881 eax = MEM32(esi + 0x8); /* 0x2B086130: mov eax, dword ptr [esi + 8] */ 9882 /* cmp edi, eax */ /* 0x2B086133: cmp edi, eax */ 9883 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9885 _flag_k = FK_CMP; 9886 MEM32(ebp + (-0x10)) = eax; /* 0x2B086135: mov dword ptr [ebp - 0x10], eax */ 9887 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B086138: je 0x2b0861d9 */ 9888 L_2B08613E: 9889 edx = ebx; /* 0x2B08613E: mov edx, ebx */ 9890 ecx = MEM32(edx); /* 0x2B086140: mov ecx, dword ptr [edx] */ 9891 eax = edi; /* 0x2B086142: mov eax, edi */ 9892 MEM32(eax) = ecx; /* 0x2B086144: mov dword ptr [eax], ecx */ 9893 ecx = MEM32(edx + 0x4); /* 0x2B086146: mov ecx, dword ptr [edx + 4] */ 9894 MEM32(eax + 0x4) = ecx; /* 0x2B086149: mov dword ptr [eax + 4], ecx */ 9895 ecx = MEM32(edx + 0x8); /* 0x2B08614C: mov ecx, dword ptr [edx + 8] */ 9896 MEM32(eax + 0x8) = ecx; /* 0x2B08614F: mov dword ptr [eax + 8], ecx */ 9897 edx = MEM32(edx + 0xC); /* 0x2B086152: mov edx, dword ptr [edx + 0xc] */ 9898 MEM32(eax + 0xC) = edx; /* 0x2B086155: mov dword ptr [eax + 0xc], edx */ 9899 eax = MEM32(ebp + (-0x10)); /* 0x2B086158: mov eax, dword ptr [ebp - 0x10] */ 9900 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 9901 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9902 edi = edi + 0x10u; /* 0x2B08615B: add edi, 0x10 */ 9903 _flag_k = FK_ADD; 9904 /* cmp edi, eax */ /* 0x2B08615E: cmp edi, eax */ 9905 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9907 _flag_k = FK_CMP; 9908 RECOMP_BACKEDGE(); 9909 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08613E; /* 0x2B086160: jne 0x2b08613e */ 9910 L_2B086162: 9911 goto L_2B0861D9; /* 0x2B086162: jmp 0x2b0861d9 */ 9912 L_2B086164: 9913 PUSH32(esp, eax); /* 0x2B086164: push eax */ 9914 ecx = eax + (-0x10); /* 0x2B086165: lea ecx, [eax - 0x10] */ 9915 PUSH32(esp, eax); /* 0x2B086168: push eax */ 9916 MEM32(ebp + (-0x10)) = ecx; /* 0x2B086169: mov dword ptr [ebp - 0x10], ecx */ 9917 PUSH32(esp, ecx); /* 0x2B08616C: push ecx */ 9918 ecx = esi; /* 0x2B08616D: mov ecx, esi */ 9919 RECOMP_ICALL(0x2B0869B0u); /* 0x2B08616F: call 0x2b0869b0 */ /* not lifted */ 9920 RECOMP_FLAGS_IN(); 9921 ecx = MEM32(esi + 0x8); /* 0x2B086174: mov ecx, dword ptr [esi + 8] */ 9922 eax = ecx + (-0x10); /* 0x2B086177: lea eax, [ecx - 0x10] */ 9923 /* cmp edi, eax */ /* 0x2B08617A: cmp edi, eax */ 9924 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9926 _flag_k = FK_CMP; 9927 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861AB; /* 0x2B08617C: je 0x2b0861ab */ 9928 L_2B08617E: 9929 goto L_2B086183; /* 0x2B08617E: jmp 0x2b086183 */ 9930 L_2B086180: 9931 ecx = MEM32(ebp + (-0x10)); /* 0x2B086180: mov ecx, dword ptr [ebp - 0x10] */ 9932 L_2B086183: 9933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 9934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9935 eax = eax - 0x10u; /* 0x2B086183: sub eax, 0x10 */ 9936 _flag_k = FK_CMP; 9937 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 9938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9939 ecx = ecx - 0x10u; /* 0x2B086186: sub ecx, 0x10 */ 9940 _flag_k = FK_CMP; 9941 /* cmp eax, edi */ /* 0x2B086189: cmp eax, edi */ 9942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9944 _flag_k = FK_CMP; 9945 edx = eax; /* 0x2B08618B: mov edx, eax */ 9946 ebx = MEM32(edx); /* 0x2B08618D: mov ebx, dword ptr [edx] */ 9947 MEM32(ebp + (-0x10)) = ecx; /* 0x2B08618F: mov dword ptr [ebp - 0x10], ecx */ 9948 MEM32(ecx) = ebx; /* 0x2B086192: mov dword ptr [ecx], ebx */ 9949 ebx = MEM32(edx + 0x4); /* 0x2B086194: mov ebx, dword ptr [edx + 4] */ 9950 MEM32(ecx + 0x4) = ebx; /* 0x2B086197: mov dword ptr [ecx + 4], ebx */ 9951 ebx = MEM32(edx + 0x8); /* 0x2B08619A: mov ebx, dword ptr [edx + 8] */ 9952 MEM32(ecx + 0x8) = ebx; /* 0x2B08619D: mov dword ptr [ecx + 8], ebx */ 9953 edx = MEM32(edx + 0xC); /* 0x2B0861A0: mov edx, dword ptr [edx + 0xc] */ 9954 MEM32(ecx + 0xC) = edx; /* 0x2B0861A3: mov dword ptr [ecx + 0xc], edx */ 9955 RECOMP_BACKEDGE(); 9956 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086180; /* 0x2B0861A6: jne 0x2b086180 */ 9957 L_2B0861A8: 9958 ebx = MEM32(ebp + (-0x4)); /* 0x2B0861A8: mov ebx, dword ptr [ebp - 4] */ 9959 L_2B0861AB: 9960 eax = edi + 0x10; /* 0x2B0861AB: lea eax, [edi + 0x10] */ 9961 /* cmp edi, eax */ /* 0x2B0861AE: cmp edi, eax */ 9962 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9964 _flag_k = FK_CMP; 9965 MEM32(ebp + (-0x10)) = eax; /* 0x2B0861B0: mov dword ptr [ebp - 0x10], eax */ 9966 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B0861B3: je 0x2b0861d9 */ 9967 L_2B0861B5: 9968 eax = ebx; /* 0x2B0861B5: mov eax, ebx */ 9969 edx = MEM32(eax); /* 0x2B0861B7: mov edx, dword ptr [eax] */ 9970 ecx = edi; /* 0x2B0861B9: mov ecx, edi */ 9971 MEM32(ecx) = edx; /* 0x2B0861BB: mov dword ptr [ecx], edx */ 9972 edx = MEM32(eax + 0x4); /* 0x2B0861BD: mov edx, dword ptr [eax + 4] */ 9973 MEM32(ecx + 0x4) = edx; /* 0x2B0861C0: mov dword ptr [ecx + 4], edx */ 9974 edx = MEM32(eax + 0x8); /* 0x2B0861C3: mov edx, dword ptr [eax + 8] */ 9975 MEM32(ecx + 0x8) = edx; /* 0x2B0861C6: mov dword ptr [ecx + 8], edx */ 9976 eax = MEM32(eax + 0xC); /* 0x2B0861C9: mov eax, dword ptr [eax + 0xc] */ 9977 MEM32(ecx + 0xC) = eax; /* 0x2B0861CC: mov dword ptr [ecx + 0xc], eax */ 9978 eax = MEM32(ebp + (-0x10)); /* 0x2B0861CF: mov eax, dword ptr [ebp - 0x10] */ 9979 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 9980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9981 edi = edi + 0x10u; /* 0x2B0861D2: add edi, 0x10 */ 9982 _flag_k = FK_ADD; 9983 /* cmp edi, eax */ /* 0x2B0861D5: cmp edi, eax */ 9984 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9986 _flag_k = FK_CMP; 9987 RECOMP_BACKEDGE(); 9988 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0861B5; /* 0x2B0861D7: jne 0x2b0861b5 */ 9989 L_2B0861D9: 9990 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 9991 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9992 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x2B0861D9: add dword ptr [esi + 8], 0x10 */ 9993 _flag_k = FK_ADD; 9994 L_2B0861DD: 9995 ecx = MEM32(ebx); /* 0x2B0861DD: mov ecx, dword ptr [ebx] */ 9996 MEM32(ebp + (-0x44)) = ecx; /* 0x2B0861DF: mov dword ptr [ebp - 0x44], ecx */ 9997 edx = MEM32(ebx + 0x4); /* 0x2B0861E2: mov edx, dword ptr [ebx + 4] */ 9998 ecx = MEM32(ebp + (-0x8)); /* 0x2B0861E5: mov ecx, dword ptr [ebp - 8] */ 9999 ecx = MEM32(ecx + 0x98); /* 0x2B0861E8: mov ecx, dword ptr [ecx + 0x98] */ 10000 eax = ebp + (-0x44); /* 0x2B0861EE: lea eax, [ebp - 0x44] */ 10001 PUSH32(esp, eax); /* 0x2B0861F1: push eax */ 10002 MEM32(ebp + (-0x40)) = edx; /* 0x2B0861F2: mov dword ptr [ebp - 0x40], edx */ 10003 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0861F5: call dword ptr [0x2b0b58d0] */ 10004 RECOMP_FLAGS_IN(); 10005 edx = MEM32(ebp + (-0x14)); /* 0x2B0861FB: mov edx, dword ptr [ebp - 0x14] */ 10006 eax = MEM32(edx + 0x8); /* 0x2B0861FE: mov eax, dword ptr [edx + 8] */ 10007 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 10008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10009 ebx = ebx + 0x10u; /* 0x2B086201: add ebx, 0x10 */ 10010 _flag_k = FK_ADD; 10011 /* cmp ebx, eax */ /* 0x2B086204: cmp ebx, eax */ 10012 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 10013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10014 _flag_k = FK_CMP; 10015 MEM32(ebp + (-0x4)) = ebx; /* 0x2B086206: mov dword ptr [ebp - 4], ebx */ 10016 RECOMP_BACKEDGE(); 10017 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086035; /* 0x2B086209: jne 0x2b086035 */ 10018 L_2B08620F: 10019 ebx = MEM32(ebp + (-0x8)); /* 0x2B08620F: mov ebx, dword ptr [ebp - 8] */ 10020 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 10021 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 10022 RECOMP_FLAGS_IN(); 10023 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 10024 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 10025 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 10026 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 10027 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 10028 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 10029 RECOMP_FLAGS_IN(); 10030 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 10031 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 10032 RECOMP_FLAGS_IN(); 10033 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 10034 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 10035 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 10036 esp = ebp; /* 0x2B086246: mov esp, ebp */ 10037 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 10038 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 10039 RECOMP_REGS_OUT(); 10040 } 10041 10042 void sub_2B0860FC(void) { 10043 int _fpu_cmp = 0; 10044 uint32_t _cf = 0; 10045 int _df = 1; 10046 uint32_t _flag_k = FK_NONE; 10047 uint32_t _flag_a = 0, _flag_b = 0; 10048 uint32_t _itail_tgt = 0; 10049 RECOMP_REGS_LOCALS 10050 RECOMP_ENTER(0x2B0860FCu); 10051 10052 goto L_2B0860FC; 10053 L_2B086035: 10054 eax = MEM32(esi + 0x8); /* 0x2B086035: mov eax, dword ptr [esi + 8] */ 10055 ecx = MEM32(esi + 0xC); /* 0x2B086038: mov ecx, dword ptr [esi + 0xc] */ 10056 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 10057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10058 ecx = ecx - eax; /* 0x2B08603B: sub ecx, eax */ 10059 _flag_k = FK_CMP; 10060 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B08603D: sar ecx, 4 */ 10061 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10062 ecx = (uint32_t)((int32_t)ecx >> 4u); 10063 /* cmp ecx, 1 */ /* 0x2B086040: cmp ecx, 1 */ 10064 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10066 _flag_k = FK_CMP; 10067 edi = eax; /* 0x2B086043: mov edi, eax */ 10068 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0860FC; /* 0x2B086045: jae 0x2b0860fc */ 10069 L_2B08604B: 10070 edx = MEM32(esi + 0x4); /* 0x2B08604B: mov edx, dword ptr [esi + 4] */ 10071 /* test edx, edx */ /* 0x2B08604E: test edx, edx */ 10072 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10073 _cf = 0; 10074 _flag_k = FK_TEST; 10075 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08605E; /* 0x2B086050: je 0x2b08605e */ 10076 L_2B086052: 10077 ecx = eax; /* 0x2B086052: mov ecx, eax */ 10078 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10080 ecx = ecx - edx; /* 0x2B086054: sub ecx, edx */ 10081 _flag_k = FK_CMP; 10082 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086056: sar ecx, 4 */ 10083 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10084 ecx = (uint32_t)((int32_t)ecx >> 4u); 10085 /* cmp ecx, 1 */ /* 0x2B086059: cmp ecx, 1 */ 10086 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10088 _flag_k = FK_CMP; 10089 if (CMP_A(_flag_a, _flag_b)) goto L_2B086063; /* 0x2B08605C: ja 0x2b086063 */ 10090 L_2B08605E: 10091 ecx = 1; /* 0x2B08605E: mov ecx, 1 */ 10092 L_2B086063: 10093 /* test edx, edx */ /* 0x2B086063: test edx, edx */ 10094 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10095 _cf = 0; 10096 _flag_k = FK_TEST; 10097 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08606B; /* 0x2B086065: jne 0x2b08606b */ 10098 L_2B086067: 10099 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10100 eax = 0; /* 0x2B086067: xor eax, eax */ 10101 _cf = 0; 10102 _flag_k = FK_TEST; 10103 goto L_2B086070; /* 0x2B086069: jmp 0x2b086070 */ 10104 L_2B08606B: 10105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10107 eax = eax - edx; /* 0x2B08606B: sub eax, edx */ 10108 _flag_k = FK_CMP; 10109 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B08606D: sar eax, 4 */ 10110 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10111 eax = (uint32_t)((int32_t)eax >> 4u); 10112 L_2B086070: 10113 ebx = eax + ecx; /* 0x2B086070: lea ebx, [eax + ecx] */ 10114 /* test ebx, ebx */ /* 0x2B086073: test ebx, ebx */ 10115 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10116 _cf = 0; 10117 _flag_k = FK_TEST; 10118 eax = ebx; /* 0x2B086075: mov eax, ebx */ 10119 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08607B; /* 0x2B086077: jge 0x2b08607b */ 10120 L_2B086079: 10121 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10122 eax = 0; /* 0x2B086079: xor eax, eax */ 10123 _cf = 0; 10124 _flag_k = FK_TEST; 10125 L_2B08607B: 10126 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B08607B: shl eax, 4 */ 10127 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10128 eax = eax << 4u; /* 0x2B08607B: shl eax, 4 */ 10129 PUSH32(esp, eax); /* 0x2B08607E: push eax */ 10130 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08607F: call 0x2b0ab212 */ /* not lifted */ 10131 RECOMP_FLAGS_IN(); 10132 edx = MEM32(esi + 0x4); /* 0x2B086084: mov edx, dword ptr [esi + 4] */ 10133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10135 esp = esp + 4; /* 0x2B086087: add esp, 4 */ 10136 _flag_k = FK_ADD; 10137 PUSH32(esp, eax); /* 0x2B08608A: push eax */ 10138 PUSH32(esp, edi); /* 0x2B08608B: push edi */ 10139 PUSH32(esp, edx); /* 0x2B08608C: push edx */ 10140 ecx = esi; /* 0x2B08608D: mov ecx, esi */ 10141 MEM32(ebp + (-0x10)) = eax; /* 0x2B08608F: mov dword ptr [ebp - 0x10], eax */ 10142 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086092: call 0x2b0869b0 */ /* not lifted */ 10143 RECOMP_FLAGS_IN(); 10144 ecx = MEM32(ebp + (-0x4)); /* 0x2B086097: mov ecx, dword ptr [ebp - 4] */ 10145 PUSH32(esp, ecx); /* 0x2B08609A: push ecx */ 10146 PUSH32(esp, 1); /* 0x2B08609B: push 1 */ 10147 PUSH32(esp, eax); /* 0x2B08609D: push eax */ 10148 ecx = esi; /* 0x2B08609E: mov ecx, esi */ 10149 MEM32(ebp + (-0xC)) = eax; /* 0x2B0860A0: mov dword ptr [ebp - 0xc], eax */ 10150 RECOMP_ICALL(0x2B0869F0u); /* 0x2B0860A3: call 0x2b0869f0 */ /* not lifted */ 10151 RECOMP_FLAGS_IN(); 10152 edx = MEM32(ebp + (-0xC)); /* 0x2B0860A8: mov edx, dword ptr [ebp - 0xc] */ 10153 eax = MEM32(esi + 0x8); /* 0x2B0860AB: mov eax, dword ptr [esi + 8] */ 10154 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 10155 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10156 edx = edx + 0x10u; /* 0x2B0860AE: add edx, 0x10 */ 10157 _flag_k = FK_ADD; 10158 PUSH32(esp, edx); /* 0x2B0860B1: push edx */ 10159 PUSH32(esp, eax); /* 0x2B0860B2: push eax */ 10160 PUSH32(esp, edi); /* 0x2B0860B3: push edi */ 10161 ecx = esi; /* 0x2B0860B4: mov ecx, esi */ 10162 RECOMP_ICALL(0x2B0869B0u); /* 0x2B0860B6: call 0x2b0869b0 */ /* not lifted */ 10163 RECOMP_FLAGS_IN(); 10164 ecx = MEM32(esi + 0x8); /* 0x2B0860BB: mov ecx, dword ptr [esi + 8] */ 10165 edx = MEM32(esi + 0x4); /* 0x2B0860BE: mov edx, dword ptr [esi + 4] */ 10166 PUSH32(esp, ecx); /* 0x2B0860C1: push ecx */ 10167 PUSH32(esp, edx); /* 0x2B0860C2: push edx */ 10168 ecx = esi; /* 0x2B0860C3: mov ecx, esi */ 10169 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0860C5: call 0x2b0292c0 */ /* not lifted */ 10170 RECOMP_FLAGS_IN(); 10171 eax = MEM32(esi + 0x4); /* 0x2B0860CA: mov eax, dword ptr [esi + 4] */ 10172 PUSH32(esp, eax); /* 0x2B0860CD: push eax */ 10173 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0860CE: call 0x2b0ab1ba */ /* not lifted */ 10174 RECOMP_FLAGS_IN(); 10175 edi = MEM32(ebp + (-0x10)); /* 0x2B0860D3: mov edi, dword ptr [ebp - 0x10] */ 10176 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x2B0860D6: shl ebx, 4 */ 10177 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10178 ebx = ebx << 4u; /* 0x2B0860D6: shl ebx, 4 */ 10179 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 10180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10181 ebx = ebx + edi; /* 0x2B0860D9: add ebx, edi */ 10182 _flag_k = FK_ADD; 10183 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10184 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10185 esp = esp + 4; /* 0x2B0860DB: add esp, 4 */ 10186 _flag_k = FK_ADD; 10187 ecx = esi; /* 0x2B0860DE: mov ecx, esi */ 10188 MEM32(esi + 0xC) = ebx; /* 0x2B0860E0: mov dword ptr [esi + 0xc], ebx */ 10189 RECOMP_ICALL(0x2B002FC0u); /* 0x2B0860E3: call 0x2b002fc0 */ /* not lifted */ 10190 RECOMP_FLAGS_IN(); 10191 ebx = MEM32(ebp + (-0x4)); /* 0x2B0860E8: mov ebx, dword ptr [ebp - 4] */ 10192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10193 eax = eax + 1; /* 0x2B0860EB: inc eax */ 10194 _flag_k = FK_INC; 10195 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0860EC: shl eax, 4 */ 10196 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10197 eax = eax << 4u; /* 0x2B0860EC: shl eax, 4 */ 10198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10200 eax = eax + edi; /* 0x2B0860EF: add eax, edi */ 10201 _flag_k = FK_ADD; 10202 MEM32(esi + 0x8) = eax; /* 0x2B0860F1: mov dword ptr [esi + 8], eax */ 10203 MEM32(esi + 0x4) = edi; /* 0x2B0860F4: mov dword ptr [esi + 4], edi */ 10204 goto L_2B0861DD; /* 0x2B0860F7: jmp 0x2b0861dd */ 10205 L_2B0860FC: 10206 ecx = eax; /* 0x2B0860FC: mov ecx, eax */ 10207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10209 ecx = ecx - edi; /* 0x2B0860FE: sub ecx, edi */ 10210 _flag_k = FK_CMP; 10211 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086100: sar ecx, 4 */ 10212 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10213 ecx = (uint32_t)((int32_t)ecx >> 4u); 10214 /* cmp ecx, 1 */ /* 0x2B086103: cmp ecx, 1 */ 10215 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10217 _flag_k = FK_CMP; 10218 if (CMP_AE(_flag_a, _flag_b)) goto L_2B086164; /* 0x2B086106: jae 0x2b086164 */ 10219 L_2B086108: 10220 ecx = edi + 0x10; /* 0x2B086108: lea ecx, [edi + 0x10] */ 10221 PUSH32(esp, ecx); /* 0x2B08610B: push ecx */ 10222 PUSH32(esp, eax); /* 0x2B08610C: push eax */ 10223 PUSH32(esp, edi); /* 0x2B08610D: push edi */ 10224 ecx = esi; /* 0x2B08610E: mov ecx, esi */ 10225 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086110: call 0x2b0869b0 */ /* not lifted */ 10226 RECOMP_FLAGS_IN(); 10227 eax = MEM32(esi + 0x8); /* 0x2B086115: mov eax, dword ptr [esi + 8] */ 10228 edx = eax; /* 0x2B086118: mov edx, eax */ 10229 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10231 edx = edx - edi; /* 0x2B08611A: sub edx, edi */ 10232 _flag_k = FK_CMP; 10233 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B08611C: sar edx, 4 */ 10234 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10235 edx = (uint32_t)((int32_t)edx >> 4u); 10236 PUSH32(esp, ebx); /* 0x2B08611F: push ebx */ 10237 ecx = 1; /* 0x2B086120: mov ecx, 1 */ 10238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10240 ecx = ecx - edx; /* 0x2B086125: sub ecx, edx */ 10241 _flag_k = FK_CMP; 10242 PUSH32(esp, ecx); /* 0x2B086127: push ecx */ 10243 PUSH32(esp, eax); /* 0x2B086128: push eax */ 10244 ecx = esi; /* 0x2B086129: mov ecx, esi */ 10245 RECOMP_ICALL(0x2B0869F0u); /* 0x2B08612B: call 0x2b0869f0 */ /* not lifted */ 10246 RECOMP_FLAGS_IN(); 10247 eax = MEM32(esi + 0x8); /* 0x2B086130: mov eax, dword ptr [esi + 8] */ 10248 /* cmp edi, eax */ /* 0x2B086133: cmp edi, eax */ 10249 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10251 _flag_k = FK_CMP; 10252 MEM32(ebp + (-0x10)) = eax; /* 0x2B086135: mov dword ptr [ebp - 0x10], eax */ 10253 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B086138: je 0x2b0861d9 */ 10254 L_2B08613E: 10255 edx = ebx; /* 0x2B08613E: mov edx, ebx */ 10256 ecx = MEM32(edx); /* 0x2B086140: mov ecx, dword ptr [edx] */ 10257 eax = edi; /* 0x2B086142: mov eax, edi */ 10258 MEM32(eax) = ecx; /* 0x2B086144: mov dword ptr [eax], ecx */ 10259 ecx = MEM32(edx + 0x4); /* 0x2B086146: mov ecx, dword ptr [edx + 4] */ 10260 MEM32(eax + 0x4) = ecx; /* 0x2B086149: mov dword ptr [eax + 4], ecx */ 10261 ecx = MEM32(edx + 0x8); /* 0x2B08614C: mov ecx, dword ptr [edx + 8] */ 10262 MEM32(eax + 0x8) = ecx; /* 0x2B08614F: mov dword ptr [eax + 8], ecx */ 10263 edx = MEM32(edx + 0xC); /* 0x2B086152: mov edx, dword ptr [edx + 0xc] */ 10264 MEM32(eax + 0xC) = edx; /* 0x2B086155: mov dword ptr [eax + 0xc], edx */ 10265 eax = MEM32(ebp + (-0x10)); /* 0x2B086158: mov eax, dword ptr [ebp - 0x10] */ 10266 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 10267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10268 edi = edi + 0x10u; /* 0x2B08615B: add edi, 0x10 */ 10269 _flag_k = FK_ADD; 10270 /* cmp edi, eax */ /* 0x2B08615E: cmp edi, eax */ 10271 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10273 _flag_k = FK_CMP; 10274 RECOMP_BACKEDGE(); 10275 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08613E; /* 0x2B086160: jne 0x2b08613e */ 10276 L_2B086162: 10277 goto L_2B0861D9; /* 0x2B086162: jmp 0x2b0861d9 */ 10278 L_2B086164: 10279 PUSH32(esp, eax); /* 0x2B086164: push eax */ 10280 ecx = eax + (-0x10); /* 0x2B086165: lea ecx, [eax - 0x10] */ 10281 PUSH32(esp, eax); /* 0x2B086168: push eax */ 10282 MEM32(ebp + (-0x10)) = ecx; /* 0x2B086169: mov dword ptr [ebp - 0x10], ecx */ 10283 PUSH32(esp, ecx); /* 0x2B08616C: push ecx */ 10284 ecx = esi; /* 0x2B08616D: mov ecx, esi */ 10285 RECOMP_ICALL(0x2B0869B0u); /* 0x2B08616F: call 0x2b0869b0 */ /* not lifted */ 10286 RECOMP_FLAGS_IN(); 10287 ecx = MEM32(esi + 0x8); /* 0x2B086174: mov ecx, dword ptr [esi + 8] */ 10288 eax = ecx + (-0x10); /* 0x2B086177: lea eax, [ecx - 0x10] */ 10289 /* cmp edi, eax */ /* 0x2B08617A: cmp edi, eax */ 10290 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10292 _flag_k = FK_CMP; 10293 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861AB; /* 0x2B08617C: je 0x2b0861ab */ 10294 L_2B08617E: 10295 goto L_2B086183; /* 0x2B08617E: jmp 0x2b086183 */ 10296 L_2B086180: 10297 ecx = MEM32(ebp + (-0x10)); /* 0x2B086180: mov ecx, dword ptr [ebp - 0x10] */ 10298 L_2B086183: 10299 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 10300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10301 eax = eax - 0x10u; /* 0x2B086183: sub eax, 0x10 */ 10302 _flag_k = FK_CMP; 10303 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 10304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10305 ecx = ecx - 0x10u; /* 0x2B086186: sub ecx, 0x10 */ 10306 _flag_k = FK_CMP; 10307 /* cmp eax, edi */ /* 0x2B086189: cmp eax, edi */ 10308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10310 _flag_k = FK_CMP; 10311 edx = eax; /* 0x2B08618B: mov edx, eax */ 10312 ebx = MEM32(edx); /* 0x2B08618D: mov ebx, dword ptr [edx] */ 10313 MEM32(ebp + (-0x10)) = ecx; /* 0x2B08618F: mov dword ptr [ebp - 0x10], ecx */ 10314 MEM32(ecx) = ebx; /* 0x2B086192: mov dword ptr [ecx], ebx */ 10315 ebx = MEM32(edx + 0x4); /* 0x2B086194: mov ebx, dword ptr [edx + 4] */ 10316 MEM32(ecx + 0x4) = ebx; /* 0x2B086197: mov dword ptr [ecx + 4], ebx */ 10317 ebx = MEM32(edx + 0x8); /* 0x2B08619A: mov ebx, dword ptr [edx + 8] */ 10318 MEM32(ecx + 0x8) = ebx; /* 0x2B08619D: mov dword ptr [ecx + 8], ebx */ 10319 edx = MEM32(edx + 0xC); /* 0x2B0861A0: mov edx, dword ptr [edx + 0xc] */ 10320 MEM32(ecx + 0xC) = edx; /* 0x2B0861A3: mov dword ptr [ecx + 0xc], edx */ 10321 RECOMP_BACKEDGE(); 10322 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086180; /* 0x2B0861A6: jne 0x2b086180 */ 10323 L_2B0861A8: 10324 ebx = MEM32(ebp + (-0x4)); /* 0x2B0861A8: mov ebx, dword ptr [ebp - 4] */ 10325 L_2B0861AB: 10326 eax = edi + 0x10; /* 0x2B0861AB: lea eax, [edi + 0x10] */ 10327 /* cmp edi, eax */ /* 0x2B0861AE: cmp edi, eax */ 10328 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10330 _flag_k = FK_CMP; 10331 MEM32(ebp + (-0x10)) = eax; /* 0x2B0861B0: mov dword ptr [ebp - 0x10], eax */ 10332 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B0861B3: je 0x2b0861d9 */ 10333 L_2B0861B5: 10334 eax = ebx; /* 0x2B0861B5: mov eax, ebx */ 10335 edx = MEM32(eax); /* 0x2B0861B7: mov edx, dword ptr [eax] */ 10336 ecx = edi; /* 0x2B0861B9: mov ecx, edi */ 10337 MEM32(ecx) = edx; /* 0x2B0861BB: mov dword ptr [ecx], edx */ 10338 edx = MEM32(eax + 0x4); /* 0x2B0861BD: mov edx, dword ptr [eax + 4] */ 10339 MEM32(ecx + 0x4) = edx; /* 0x2B0861C0: mov dword ptr [ecx + 4], edx */ 10340 edx = MEM32(eax + 0x8); /* 0x2B0861C3: mov edx, dword ptr [eax + 8] */ 10341 MEM32(ecx + 0x8) = edx; /* 0x2B0861C6: mov dword ptr [ecx + 8], edx */ 10342 eax = MEM32(eax + 0xC); /* 0x2B0861C9: mov eax, dword ptr [eax + 0xc] */ 10343 MEM32(ecx + 0xC) = eax; /* 0x2B0861CC: mov dword ptr [ecx + 0xc], eax */ 10344 eax = MEM32(ebp + (-0x10)); /* 0x2B0861CF: mov eax, dword ptr [ebp - 0x10] */ 10345 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 10346 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10347 edi = edi + 0x10u; /* 0x2B0861D2: add edi, 0x10 */ 10348 _flag_k = FK_ADD; 10349 /* cmp edi, eax */ /* 0x2B0861D5: cmp edi, eax */ 10350 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10352 _flag_k = FK_CMP; 10353 RECOMP_BACKEDGE(); 10354 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0861B5; /* 0x2B0861D7: jne 0x2b0861b5 */ 10355 L_2B0861D9: 10356 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 10357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10358 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x2B0861D9: add dword ptr [esi + 8], 0x10 */ 10359 _flag_k = FK_ADD; 10360 L_2B0861DD: 10361 ecx = MEM32(ebx); /* 0x2B0861DD: mov ecx, dword ptr [ebx] */ 10362 MEM32(ebp + (-0x44)) = ecx; /* 0x2B0861DF: mov dword ptr [ebp - 0x44], ecx */ 10363 edx = MEM32(ebx + 0x4); /* 0x2B0861E2: mov edx, dword ptr [ebx + 4] */ 10364 ecx = MEM32(ebp + (-0x8)); /* 0x2B0861E5: mov ecx, dword ptr [ebp - 8] */ 10365 ecx = MEM32(ecx + 0x98); /* 0x2B0861E8: mov ecx, dword ptr [ecx + 0x98] */ 10366 eax = ebp + (-0x44); /* 0x2B0861EE: lea eax, [ebp - 0x44] */ 10367 PUSH32(esp, eax); /* 0x2B0861F1: push eax */ 10368 MEM32(ebp + (-0x40)) = edx; /* 0x2B0861F2: mov dword ptr [ebp - 0x40], edx */ 10369 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0861F5: call dword ptr [0x2b0b58d0] */ 10370 RECOMP_FLAGS_IN(); 10371 edx = MEM32(ebp + (-0x14)); /* 0x2B0861FB: mov edx, dword ptr [ebp - 0x14] */ 10372 eax = MEM32(edx + 0x8); /* 0x2B0861FE: mov eax, dword ptr [edx + 8] */ 10373 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 10374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10375 ebx = ebx + 0x10u; /* 0x2B086201: add ebx, 0x10 */ 10376 _flag_k = FK_ADD; 10377 /* cmp ebx, eax */ /* 0x2B086204: cmp ebx, eax */ 10378 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 10379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10380 _flag_k = FK_CMP; 10381 MEM32(ebp + (-0x4)) = ebx; /* 0x2B086206: mov dword ptr [ebp - 4], ebx */ 10382 RECOMP_BACKEDGE(); 10383 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086035; /* 0x2B086209: jne 0x2b086035 */ 10384 L_2B08620F: 10385 ebx = MEM32(ebp + (-0x8)); /* 0x2B08620F: mov ebx, dword ptr [ebp - 8] */ 10386 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 10387 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 10388 RECOMP_FLAGS_IN(); 10389 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 10390 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 10391 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 10392 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 10393 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 10394 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 10395 RECOMP_FLAGS_IN(); 10396 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 10397 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 10398 RECOMP_FLAGS_IN(); 10399 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 10400 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 10401 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 10402 esp = ebp; /* 0x2B086246: mov esp, ebp */ 10403 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 10404 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 10405 RECOMP_REGS_OUT(); 10406 } 10407 10408 void sub_2B086180(void) { 10409 int _fpu_cmp = 0; 10410 uint32_t _cf = 0; 10411 int _df = 1; 10412 uint32_t _flag_k = FK_NONE; 10413 uint32_t _flag_a = 0, _flag_b = 0; 10414 uint32_t _itail_tgt = 0; 10415 RECOMP_REGS_LOCALS 10416 RECOMP_ENTER(0x2B086180u); 10417 10418 goto L_2B086180; 10419 L_2B086035: 10420 eax = MEM32(esi + 0x8); /* 0x2B086035: mov eax, dword ptr [esi + 8] */ 10421 ecx = MEM32(esi + 0xC); /* 0x2B086038: mov ecx, dword ptr [esi + 0xc] */ 10422 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 10423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10424 ecx = ecx - eax; /* 0x2B08603B: sub ecx, eax */ 10425 _flag_k = FK_CMP; 10426 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B08603D: sar ecx, 4 */ 10427 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10428 ecx = (uint32_t)((int32_t)ecx >> 4u); 10429 /* cmp ecx, 1 */ /* 0x2B086040: cmp ecx, 1 */ 10430 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10432 _flag_k = FK_CMP; 10433 edi = eax; /* 0x2B086043: mov edi, eax */ 10434 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0860FC; /* 0x2B086045: jae 0x2b0860fc */ 10435 L_2B08604B: 10436 edx = MEM32(esi + 0x4); /* 0x2B08604B: mov edx, dword ptr [esi + 4] */ 10437 /* test edx, edx */ /* 0x2B08604E: test edx, edx */ 10438 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10439 _cf = 0; 10440 _flag_k = FK_TEST; 10441 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08605E; /* 0x2B086050: je 0x2b08605e */ 10442 L_2B086052: 10443 ecx = eax; /* 0x2B086052: mov ecx, eax */ 10444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10446 ecx = ecx - edx; /* 0x2B086054: sub ecx, edx */ 10447 _flag_k = FK_CMP; 10448 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086056: sar ecx, 4 */ 10449 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10450 ecx = (uint32_t)((int32_t)ecx >> 4u); 10451 /* cmp ecx, 1 */ /* 0x2B086059: cmp ecx, 1 */ 10452 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10454 _flag_k = FK_CMP; 10455 if (CMP_A(_flag_a, _flag_b)) goto L_2B086063; /* 0x2B08605C: ja 0x2b086063 */ 10456 L_2B08605E: 10457 ecx = 1; /* 0x2B08605E: mov ecx, 1 */ 10458 L_2B086063: 10459 /* test edx, edx */ /* 0x2B086063: test edx, edx */ 10460 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10461 _cf = 0; 10462 _flag_k = FK_TEST; 10463 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08606B; /* 0x2B086065: jne 0x2b08606b */ 10464 L_2B086067: 10465 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10466 eax = 0; /* 0x2B086067: xor eax, eax */ 10467 _cf = 0; 10468 _flag_k = FK_TEST; 10469 goto L_2B086070; /* 0x2B086069: jmp 0x2b086070 */ 10470 L_2B08606B: 10471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10473 eax = eax - edx; /* 0x2B08606B: sub eax, edx */ 10474 _flag_k = FK_CMP; 10475 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B08606D: sar eax, 4 */ 10476 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10477 eax = (uint32_t)((int32_t)eax >> 4u); 10478 L_2B086070: 10479 ebx = eax + ecx; /* 0x2B086070: lea ebx, [eax + ecx] */ 10480 /* test ebx, ebx */ /* 0x2B086073: test ebx, ebx */ 10481 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10482 _cf = 0; 10483 _flag_k = FK_TEST; 10484 eax = ebx; /* 0x2B086075: mov eax, ebx */ 10485 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08607B; /* 0x2B086077: jge 0x2b08607b */ 10486 L_2B086079: 10487 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10488 eax = 0; /* 0x2B086079: xor eax, eax */ 10489 _cf = 0; 10490 _flag_k = FK_TEST; 10491 L_2B08607B: 10492 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B08607B: shl eax, 4 */ 10493 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10494 eax = eax << 4u; /* 0x2B08607B: shl eax, 4 */ 10495 PUSH32(esp, eax); /* 0x2B08607E: push eax */ 10496 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08607F: call 0x2b0ab212 */ /* not lifted */ 10497 RECOMP_FLAGS_IN(); 10498 edx = MEM32(esi + 0x4); /* 0x2B086084: mov edx, dword ptr [esi + 4] */ 10499 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10501 esp = esp + 4; /* 0x2B086087: add esp, 4 */ 10502 _flag_k = FK_ADD; 10503 PUSH32(esp, eax); /* 0x2B08608A: push eax */ 10504 PUSH32(esp, edi); /* 0x2B08608B: push edi */ 10505 PUSH32(esp, edx); /* 0x2B08608C: push edx */ 10506 ecx = esi; /* 0x2B08608D: mov ecx, esi */ 10507 MEM32(ebp + (-0x10)) = eax; /* 0x2B08608F: mov dword ptr [ebp - 0x10], eax */ 10508 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086092: call 0x2b0869b0 */ /* not lifted */ 10509 RECOMP_FLAGS_IN(); 10510 ecx = MEM32(ebp + (-0x4)); /* 0x2B086097: mov ecx, dword ptr [ebp - 4] */ 10511 PUSH32(esp, ecx); /* 0x2B08609A: push ecx */ 10512 PUSH32(esp, 1); /* 0x2B08609B: push 1 */ 10513 PUSH32(esp, eax); /* 0x2B08609D: push eax */ 10514 ecx = esi; /* 0x2B08609E: mov ecx, esi */ 10515 MEM32(ebp + (-0xC)) = eax; /* 0x2B0860A0: mov dword ptr [ebp - 0xc], eax */ 10516 RECOMP_ICALL(0x2B0869F0u); /* 0x2B0860A3: call 0x2b0869f0 */ /* not lifted */ 10517 RECOMP_FLAGS_IN(); 10518 edx = MEM32(ebp + (-0xC)); /* 0x2B0860A8: mov edx, dword ptr [ebp - 0xc] */ 10519 eax = MEM32(esi + 0x8); /* 0x2B0860AB: mov eax, dword ptr [esi + 8] */ 10520 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 10521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10522 edx = edx + 0x10u; /* 0x2B0860AE: add edx, 0x10 */ 10523 _flag_k = FK_ADD; 10524 PUSH32(esp, edx); /* 0x2B0860B1: push edx */ 10525 PUSH32(esp, eax); /* 0x2B0860B2: push eax */ 10526 PUSH32(esp, edi); /* 0x2B0860B3: push edi */ 10527 ecx = esi; /* 0x2B0860B4: mov ecx, esi */ 10528 RECOMP_ICALL(0x2B0869B0u); /* 0x2B0860B6: call 0x2b0869b0 */ /* not lifted */ 10529 RECOMP_FLAGS_IN(); 10530 ecx = MEM32(esi + 0x8); /* 0x2B0860BB: mov ecx, dword ptr [esi + 8] */ 10531 edx = MEM32(esi + 0x4); /* 0x2B0860BE: mov edx, dword ptr [esi + 4] */ 10532 PUSH32(esp, ecx); /* 0x2B0860C1: push ecx */ 10533 PUSH32(esp, edx); /* 0x2B0860C2: push edx */ 10534 ecx = esi; /* 0x2B0860C3: mov ecx, esi */ 10535 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0860C5: call 0x2b0292c0 */ /* not lifted */ 10536 RECOMP_FLAGS_IN(); 10537 eax = MEM32(esi + 0x4); /* 0x2B0860CA: mov eax, dword ptr [esi + 4] */ 10538 PUSH32(esp, eax); /* 0x2B0860CD: push eax */ 10539 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0860CE: call 0x2b0ab1ba */ /* not lifted */ 10540 RECOMP_FLAGS_IN(); 10541 edi = MEM32(ebp + (-0x10)); /* 0x2B0860D3: mov edi, dword ptr [ebp - 0x10] */ 10542 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x2B0860D6: shl ebx, 4 */ 10543 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10544 ebx = ebx << 4u; /* 0x2B0860D6: shl ebx, 4 */ 10545 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 10546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10547 ebx = ebx + edi; /* 0x2B0860D9: add ebx, edi */ 10548 _flag_k = FK_ADD; 10549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10551 esp = esp + 4; /* 0x2B0860DB: add esp, 4 */ 10552 _flag_k = FK_ADD; 10553 ecx = esi; /* 0x2B0860DE: mov ecx, esi */ 10554 MEM32(esi + 0xC) = ebx; /* 0x2B0860E0: mov dword ptr [esi + 0xc], ebx */ 10555 RECOMP_ICALL(0x2B002FC0u); /* 0x2B0860E3: call 0x2b002fc0 */ /* not lifted */ 10556 RECOMP_FLAGS_IN(); 10557 ebx = MEM32(ebp + (-0x4)); /* 0x2B0860E8: mov ebx, dword ptr [ebp - 4] */ 10558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10559 eax = eax + 1; /* 0x2B0860EB: inc eax */ 10560 _flag_k = FK_INC; 10561 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0860EC: shl eax, 4 */ 10562 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10563 eax = eax << 4u; /* 0x2B0860EC: shl eax, 4 */ 10564 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10566 eax = eax + edi; /* 0x2B0860EF: add eax, edi */ 10567 _flag_k = FK_ADD; 10568 MEM32(esi + 0x8) = eax; /* 0x2B0860F1: mov dword ptr [esi + 8], eax */ 10569 MEM32(esi + 0x4) = edi; /* 0x2B0860F4: mov dword ptr [esi + 4], edi */ 10570 goto L_2B0861DD; /* 0x2B0860F7: jmp 0x2b0861dd */ 10571 L_2B0860FC: 10572 ecx = eax; /* 0x2B0860FC: mov ecx, eax */ 10573 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10575 ecx = ecx - edi; /* 0x2B0860FE: sub ecx, edi */ 10576 _flag_k = FK_CMP; 10577 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086100: sar ecx, 4 */ 10578 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10579 ecx = (uint32_t)((int32_t)ecx >> 4u); 10580 /* cmp ecx, 1 */ /* 0x2B086103: cmp ecx, 1 */ 10581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10583 _flag_k = FK_CMP; 10584 if (CMP_AE(_flag_a, _flag_b)) goto L_2B086164; /* 0x2B086106: jae 0x2b086164 */ 10585 L_2B086108: 10586 ecx = edi + 0x10; /* 0x2B086108: lea ecx, [edi + 0x10] */ 10587 PUSH32(esp, ecx); /* 0x2B08610B: push ecx */ 10588 PUSH32(esp, eax); /* 0x2B08610C: push eax */ 10589 PUSH32(esp, edi); /* 0x2B08610D: push edi */ 10590 ecx = esi; /* 0x2B08610E: mov ecx, esi */ 10591 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086110: call 0x2b0869b0 */ /* not lifted */ 10592 RECOMP_FLAGS_IN(); 10593 eax = MEM32(esi + 0x8); /* 0x2B086115: mov eax, dword ptr [esi + 8] */ 10594 edx = eax; /* 0x2B086118: mov edx, eax */ 10595 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10597 edx = edx - edi; /* 0x2B08611A: sub edx, edi */ 10598 _flag_k = FK_CMP; 10599 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B08611C: sar edx, 4 */ 10600 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10601 edx = (uint32_t)((int32_t)edx >> 4u); 10602 PUSH32(esp, ebx); /* 0x2B08611F: push ebx */ 10603 ecx = 1; /* 0x2B086120: mov ecx, 1 */ 10604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10606 ecx = ecx - edx; /* 0x2B086125: sub ecx, edx */ 10607 _flag_k = FK_CMP; 10608 PUSH32(esp, ecx); /* 0x2B086127: push ecx */ 10609 PUSH32(esp, eax); /* 0x2B086128: push eax */ 10610 ecx = esi; /* 0x2B086129: mov ecx, esi */ 10611 RECOMP_ICALL(0x2B0869F0u); /* 0x2B08612B: call 0x2b0869f0 */ /* not lifted */ 10612 RECOMP_FLAGS_IN(); 10613 eax = MEM32(esi + 0x8); /* 0x2B086130: mov eax, dword ptr [esi + 8] */ 10614 /* cmp edi, eax */ /* 0x2B086133: cmp edi, eax */ 10615 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10617 _flag_k = FK_CMP; 10618 MEM32(ebp + (-0x10)) = eax; /* 0x2B086135: mov dword ptr [ebp - 0x10], eax */ 10619 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B086138: je 0x2b0861d9 */ 10620 L_2B08613E: 10621 edx = ebx; /* 0x2B08613E: mov edx, ebx */ 10622 ecx = MEM32(edx); /* 0x2B086140: mov ecx, dword ptr [edx] */ 10623 eax = edi; /* 0x2B086142: mov eax, edi */ 10624 MEM32(eax) = ecx; /* 0x2B086144: mov dword ptr [eax], ecx */ 10625 ecx = MEM32(edx + 0x4); /* 0x2B086146: mov ecx, dword ptr [edx + 4] */ 10626 MEM32(eax + 0x4) = ecx; /* 0x2B086149: mov dword ptr [eax + 4], ecx */ 10627 ecx = MEM32(edx + 0x8); /* 0x2B08614C: mov ecx, dword ptr [edx + 8] */ 10628 MEM32(eax + 0x8) = ecx; /* 0x2B08614F: mov dword ptr [eax + 8], ecx */ 10629 edx = MEM32(edx + 0xC); /* 0x2B086152: mov edx, dword ptr [edx + 0xc] */ 10630 MEM32(eax + 0xC) = edx; /* 0x2B086155: mov dword ptr [eax + 0xc], edx */ 10631 eax = MEM32(ebp + (-0x10)); /* 0x2B086158: mov eax, dword ptr [ebp - 0x10] */ 10632 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 10633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10634 edi = edi + 0x10u; /* 0x2B08615B: add edi, 0x10 */ 10635 _flag_k = FK_ADD; 10636 /* cmp edi, eax */ /* 0x2B08615E: cmp edi, eax */ 10637 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10639 _flag_k = FK_CMP; 10640 RECOMP_BACKEDGE(); 10641 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08613E; /* 0x2B086160: jne 0x2b08613e */ 10642 L_2B086162: 10643 goto L_2B0861D9; /* 0x2B086162: jmp 0x2b0861d9 */ 10644 L_2B086164: 10645 PUSH32(esp, eax); /* 0x2B086164: push eax */ 10646 ecx = eax + (-0x10); /* 0x2B086165: lea ecx, [eax - 0x10] */ 10647 PUSH32(esp, eax); /* 0x2B086168: push eax */ 10648 MEM32(ebp + (-0x10)) = ecx; /* 0x2B086169: mov dword ptr [ebp - 0x10], ecx */ 10649 PUSH32(esp, ecx); /* 0x2B08616C: push ecx */ 10650 ecx = esi; /* 0x2B08616D: mov ecx, esi */ 10651 RECOMP_ICALL(0x2B0869B0u); /* 0x2B08616F: call 0x2b0869b0 */ /* not lifted */ 10652 RECOMP_FLAGS_IN(); 10653 ecx = MEM32(esi + 0x8); /* 0x2B086174: mov ecx, dword ptr [esi + 8] */ 10654 eax = ecx + (-0x10); /* 0x2B086177: lea eax, [ecx - 0x10] */ 10655 /* cmp edi, eax */ /* 0x2B08617A: cmp edi, eax */ 10656 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10658 _flag_k = FK_CMP; 10659 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861AB; /* 0x2B08617C: je 0x2b0861ab */ 10660 L_2B08617E: 10661 goto L_2B086183; /* 0x2B08617E: jmp 0x2b086183 */ 10662 L_2B086180: 10663 ecx = MEM32(ebp + (-0x10)); /* 0x2B086180: mov ecx, dword ptr [ebp - 0x10] */ 10664 L_2B086183: 10665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 10666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10667 eax = eax - 0x10u; /* 0x2B086183: sub eax, 0x10 */ 10668 _flag_k = FK_CMP; 10669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 10670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10671 ecx = ecx - 0x10u; /* 0x2B086186: sub ecx, 0x10 */ 10672 _flag_k = FK_CMP; 10673 /* cmp eax, edi */ /* 0x2B086189: cmp eax, edi */ 10674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10676 _flag_k = FK_CMP; 10677 edx = eax; /* 0x2B08618B: mov edx, eax */ 10678 ebx = MEM32(edx); /* 0x2B08618D: mov ebx, dword ptr [edx] */ 10679 MEM32(ebp + (-0x10)) = ecx; /* 0x2B08618F: mov dword ptr [ebp - 0x10], ecx */ 10680 MEM32(ecx) = ebx; /* 0x2B086192: mov dword ptr [ecx], ebx */ 10681 ebx = MEM32(edx + 0x4); /* 0x2B086194: mov ebx, dword ptr [edx + 4] */ 10682 MEM32(ecx + 0x4) = ebx; /* 0x2B086197: mov dword ptr [ecx + 4], ebx */ 10683 ebx = MEM32(edx + 0x8); /* 0x2B08619A: mov ebx, dword ptr [edx + 8] */ 10684 MEM32(ecx + 0x8) = ebx; /* 0x2B08619D: mov dword ptr [ecx + 8], ebx */ 10685 edx = MEM32(edx + 0xC); /* 0x2B0861A0: mov edx, dword ptr [edx + 0xc] */ 10686 MEM32(ecx + 0xC) = edx; /* 0x2B0861A3: mov dword ptr [ecx + 0xc], edx */ 10687 RECOMP_BACKEDGE(); 10688 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086180; /* 0x2B0861A6: jne 0x2b086180 */ 10689 L_2B0861A8: 10690 ebx = MEM32(ebp + (-0x4)); /* 0x2B0861A8: mov ebx, dword ptr [ebp - 4] */ 10691 L_2B0861AB: 10692 eax = edi + 0x10; /* 0x2B0861AB: lea eax, [edi + 0x10] */ 10693 /* cmp edi, eax */ /* 0x2B0861AE: cmp edi, eax */ 10694 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10696 _flag_k = FK_CMP; 10697 MEM32(ebp + (-0x10)) = eax; /* 0x2B0861B0: mov dword ptr [ebp - 0x10], eax */ 10698 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B0861B3: je 0x2b0861d9 */ 10699 L_2B0861B5: 10700 eax = ebx; /* 0x2B0861B5: mov eax, ebx */ 10701 edx = MEM32(eax); /* 0x2B0861B7: mov edx, dword ptr [eax] */ 10702 ecx = edi; /* 0x2B0861B9: mov ecx, edi */ 10703 MEM32(ecx) = edx; /* 0x2B0861BB: mov dword ptr [ecx], edx */ 10704 edx = MEM32(eax + 0x4); /* 0x2B0861BD: mov edx, dword ptr [eax + 4] */ 10705 MEM32(ecx + 0x4) = edx; /* 0x2B0861C0: mov dword ptr [ecx + 4], edx */ 10706 edx = MEM32(eax + 0x8); /* 0x2B0861C3: mov edx, dword ptr [eax + 8] */ 10707 MEM32(ecx + 0x8) = edx; /* 0x2B0861C6: mov dword ptr [ecx + 8], edx */ 10708 eax = MEM32(eax + 0xC); /* 0x2B0861C9: mov eax, dword ptr [eax + 0xc] */ 10709 MEM32(ecx + 0xC) = eax; /* 0x2B0861CC: mov dword ptr [ecx + 0xc], eax */ 10710 eax = MEM32(ebp + (-0x10)); /* 0x2B0861CF: mov eax, dword ptr [ebp - 0x10] */ 10711 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 10712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10713 edi = edi + 0x10u; /* 0x2B0861D2: add edi, 0x10 */ 10714 _flag_k = FK_ADD; 10715 /* cmp edi, eax */ /* 0x2B0861D5: cmp edi, eax */ 10716 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10718 _flag_k = FK_CMP; 10719 RECOMP_BACKEDGE(); 10720 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0861B5; /* 0x2B0861D7: jne 0x2b0861b5 */ 10721 L_2B0861D9: 10722 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 10723 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10724 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x2B0861D9: add dword ptr [esi + 8], 0x10 */ 10725 _flag_k = FK_ADD; 10726 L_2B0861DD: 10727 ecx = MEM32(ebx); /* 0x2B0861DD: mov ecx, dword ptr [ebx] */ 10728 MEM32(ebp + (-0x44)) = ecx; /* 0x2B0861DF: mov dword ptr [ebp - 0x44], ecx */ 10729 edx = MEM32(ebx + 0x4); /* 0x2B0861E2: mov edx, dword ptr [ebx + 4] */ 10730 ecx = MEM32(ebp + (-0x8)); /* 0x2B0861E5: mov ecx, dword ptr [ebp - 8] */ 10731 ecx = MEM32(ecx + 0x98); /* 0x2B0861E8: mov ecx, dword ptr [ecx + 0x98] */ 10732 eax = ebp + (-0x44); /* 0x2B0861EE: lea eax, [ebp - 0x44] */ 10733 PUSH32(esp, eax); /* 0x2B0861F1: push eax */ 10734 MEM32(ebp + (-0x40)) = edx; /* 0x2B0861F2: mov dword ptr [ebp - 0x40], edx */ 10735 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0861F5: call dword ptr [0x2b0b58d0] */ 10736 RECOMP_FLAGS_IN(); 10737 edx = MEM32(ebp + (-0x14)); /* 0x2B0861FB: mov edx, dword ptr [ebp - 0x14] */ 10738 eax = MEM32(edx + 0x8); /* 0x2B0861FE: mov eax, dword ptr [edx + 8] */ 10739 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 10740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10741 ebx = ebx + 0x10u; /* 0x2B086201: add ebx, 0x10 */ 10742 _flag_k = FK_ADD; 10743 /* cmp ebx, eax */ /* 0x2B086204: cmp ebx, eax */ 10744 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 10745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10746 _flag_k = FK_CMP; 10747 MEM32(ebp + (-0x4)) = ebx; /* 0x2B086206: mov dword ptr [ebp - 4], ebx */ 10748 RECOMP_BACKEDGE(); 10749 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086035; /* 0x2B086209: jne 0x2b086035 */ 10750 L_2B08620F: 10751 ebx = MEM32(ebp + (-0x8)); /* 0x2B08620F: mov ebx, dword ptr [ebp - 8] */ 10752 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 10753 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 10754 RECOMP_FLAGS_IN(); 10755 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 10756 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 10757 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 10758 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 10759 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 10760 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 10761 RECOMP_FLAGS_IN(); 10762 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 10763 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 10764 RECOMP_FLAGS_IN(); 10765 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 10766 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 10767 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 10768 esp = ebp; /* 0x2B086246: mov esp, ebp */ 10769 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 10770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 10771 RECOMP_REGS_OUT(); 10772 } 10773 10774 void sub_2B086183(void) { 10775 int _fpu_cmp = 0; 10776 uint32_t _cf = 0; 10777 int _df = 1; 10778 uint32_t _flag_k = FK_NONE; 10779 uint32_t _flag_a = 0, _flag_b = 0; 10780 uint32_t _itail_tgt = 0; 10781 RECOMP_REGS_LOCALS 10782 RECOMP_ENTER(0x2B086183u); 10783 10784 goto L_2B086183; 10785 L_2B086035: 10786 eax = MEM32(esi + 0x8); /* 0x2B086035: mov eax, dword ptr [esi + 8] */ 10787 ecx = MEM32(esi + 0xC); /* 0x2B086038: mov ecx, dword ptr [esi + 0xc] */ 10788 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 10789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10790 ecx = ecx - eax; /* 0x2B08603B: sub ecx, eax */ 10791 _flag_k = FK_CMP; 10792 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B08603D: sar ecx, 4 */ 10793 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10794 ecx = (uint32_t)((int32_t)ecx >> 4u); 10795 /* cmp ecx, 1 */ /* 0x2B086040: cmp ecx, 1 */ 10796 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10798 _flag_k = FK_CMP; 10799 edi = eax; /* 0x2B086043: mov edi, eax */ 10800 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0860FC; /* 0x2B086045: jae 0x2b0860fc */ 10801 L_2B08604B: 10802 edx = MEM32(esi + 0x4); /* 0x2B08604B: mov edx, dword ptr [esi + 4] */ 10803 /* test edx, edx */ /* 0x2B08604E: test edx, edx */ 10804 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10805 _cf = 0; 10806 _flag_k = FK_TEST; 10807 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08605E; /* 0x2B086050: je 0x2b08605e */ 10808 L_2B086052: 10809 ecx = eax; /* 0x2B086052: mov ecx, eax */ 10810 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10812 ecx = ecx - edx; /* 0x2B086054: sub ecx, edx */ 10813 _flag_k = FK_CMP; 10814 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086056: sar ecx, 4 */ 10815 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10816 ecx = (uint32_t)((int32_t)ecx >> 4u); 10817 /* cmp ecx, 1 */ /* 0x2B086059: cmp ecx, 1 */ 10818 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10820 _flag_k = FK_CMP; 10821 if (CMP_A(_flag_a, _flag_b)) goto L_2B086063; /* 0x2B08605C: ja 0x2b086063 */ 10822 L_2B08605E: 10823 ecx = 1; /* 0x2B08605E: mov ecx, 1 */ 10824 L_2B086063: 10825 /* test edx, edx */ /* 0x2B086063: test edx, edx */ 10826 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10827 _cf = 0; 10828 _flag_k = FK_TEST; 10829 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08606B; /* 0x2B086065: jne 0x2b08606b */ 10830 L_2B086067: 10831 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10832 eax = 0; /* 0x2B086067: xor eax, eax */ 10833 _cf = 0; 10834 _flag_k = FK_TEST; 10835 goto L_2B086070; /* 0x2B086069: jmp 0x2b086070 */ 10836 L_2B08606B: 10837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10839 eax = eax - edx; /* 0x2B08606B: sub eax, edx */ 10840 _flag_k = FK_CMP; 10841 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B08606D: sar eax, 4 */ 10842 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10843 eax = (uint32_t)((int32_t)eax >> 4u); 10844 L_2B086070: 10845 ebx = eax + ecx; /* 0x2B086070: lea ebx, [eax + ecx] */ 10846 /* test ebx, ebx */ /* 0x2B086073: test ebx, ebx */ 10847 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10848 _cf = 0; 10849 _flag_k = FK_TEST; 10850 eax = ebx; /* 0x2B086075: mov eax, ebx */ 10851 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08607B; /* 0x2B086077: jge 0x2b08607b */ 10852 L_2B086079: 10853 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10854 eax = 0; /* 0x2B086079: xor eax, eax */ 10855 _cf = 0; 10856 _flag_k = FK_TEST; 10857 L_2B08607B: 10858 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B08607B: shl eax, 4 */ 10859 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10860 eax = eax << 4u; /* 0x2B08607B: shl eax, 4 */ 10861 PUSH32(esp, eax); /* 0x2B08607E: push eax */ 10862 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08607F: call 0x2b0ab212 */ /* not lifted */ 10863 RECOMP_FLAGS_IN(); 10864 edx = MEM32(esi + 0x4); /* 0x2B086084: mov edx, dword ptr [esi + 4] */ 10865 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10867 esp = esp + 4; /* 0x2B086087: add esp, 4 */ 10868 _flag_k = FK_ADD; 10869 PUSH32(esp, eax); /* 0x2B08608A: push eax */ 10870 PUSH32(esp, edi); /* 0x2B08608B: push edi */ 10871 PUSH32(esp, edx); /* 0x2B08608C: push edx */ 10872 ecx = esi; /* 0x2B08608D: mov ecx, esi */ 10873 MEM32(ebp + (-0x10)) = eax; /* 0x2B08608F: mov dword ptr [ebp - 0x10], eax */ 10874 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086092: call 0x2b0869b0 */ /* not lifted */ 10875 RECOMP_FLAGS_IN(); 10876 ecx = MEM32(ebp + (-0x4)); /* 0x2B086097: mov ecx, dword ptr [ebp - 4] */ 10877 PUSH32(esp, ecx); /* 0x2B08609A: push ecx */ 10878 PUSH32(esp, 1); /* 0x2B08609B: push 1 */ 10879 PUSH32(esp, eax); /* 0x2B08609D: push eax */ 10880 ecx = esi; /* 0x2B08609E: mov ecx, esi */ 10881 MEM32(ebp + (-0xC)) = eax; /* 0x2B0860A0: mov dword ptr [ebp - 0xc], eax */ 10882 RECOMP_ICALL(0x2B0869F0u); /* 0x2B0860A3: call 0x2b0869f0 */ /* not lifted */ 10883 RECOMP_FLAGS_IN(); 10884 edx = MEM32(ebp + (-0xC)); /* 0x2B0860A8: mov edx, dword ptr [ebp - 0xc] */ 10885 eax = MEM32(esi + 0x8); /* 0x2B0860AB: mov eax, dword ptr [esi + 8] */ 10886 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 10887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10888 edx = edx + 0x10u; /* 0x2B0860AE: add edx, 0x10 */ 10889 _flag_k = FK_ADD; 10890 PUSH32(esp, edx); /* 0x2B0860B1: push edx */ 10891 PUSH32(esp, eax); /* 0x2B0860B2: push eax */ 10892 PUSH32(esp, edi); /* 0x2B0860B3: push edi */ 10893 ecx = esi; /* 0x2B0860B4: mov ecx, esi */ 10894 RECOMP_ICALL(0x2B0869B0u); /* 0x2B0860B6: call 0x2b0869b0 */ /* not lifted */ 10895 RECOMP_FLAGS_IN(); 10896 ecx = MEM32(esi + 0x8); /* 0x2B0860BB: mov ecx, dword ptr [esi + 8] */ 10897 edx = MEM32(esi + 0x4); /* 0x2B0860BE: mov edx, dword ptr [esi + 4] */ 10898 PUSH32(esp, ecx); /* 0x2B0860C1: push ecx */ 10899 PUSH32(esp, edx); /* 0x2B0860C2: push edx */ 10900 ecx = esi; /* 0x2B0860C3: mov ecx, esi */ 10901 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0860C5: call 0x2b0292c0 */ /* not lifted */ 10902 RECOMP_FLAGS_IN(); 10903 eax = MEM32(esi + 0x4); /* 0x2B0860CA: mov eax, dword ptr [esi + 4] */ 10904 PUSH32(esp, eax); /* 0x2B0860CD: push eax */ 10905 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0860CE: call 0x2b0ab1ba */ /* not lifted */ 10906 RECOMP_FLAGS_IN(); 10907 edi = MEM32(ebp + (-0x10)); /* 0x2B0860D3: mov edi, dword ptr [ebp - 0x10] */ 10908 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x2B0860D6: shl ebx, 4 */ 10909 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10910 ebx = ebx << 4u; /* 0x2B0860D6: shl ebx, 4 */ 10911 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 10912 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10913 ebx = ebx + edi; /* 0x2B0860D9: add ebx, edi */ 10914 _flag_k = FK_ADD; 10915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10917 esp = esp + 4; /* 0x2B0860DB: add esp, 4 */ 10918 _flag_k = FK_ADD; 10919 ecx = esi; /* 0x2B0860DE: mov ecx, esi */ 10920 MEM32(esi + 0xC) = ebx; /* 0x2B0860E0: mov dword ptr [esi + 0xc], ebx */ 10921 RECOMP_ICALL(0x2B002FC0u); /* 0x2B0860E3: call 0x2b002fc0 */ /* not lifted */ 10922 RECOMP_FLAGS_IN(); 10923 ebx = MEM32(ebp + (-0x4)); /* 0x2B0860E8: mov ebx, dword ptr [ebp - 4] */ 10924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10925 eax = eax + 1; /* 0x2B0860EB: inc eax */ 10926 _flag_k = FK_INC; 10927 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0860EC: shl eax, 4 */ 10928 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10929 eax = eax << 4u; /* 0x2B0860EC: shl eax, 4 */ 10930 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10932 eax = eax + edi; /* 0x2B0860EF: add eax, edi */ 10933 _flag_k = FK_ADD; 10934 MEM32(esi + 0x8) = eax; /* 0x2B0860F1: mov dword ptr [esi + 8], eax */ 10935 MEM32(esi + 0x4) = edi; /* 0x2B0860F4: mov dword ptr [esi + 4], edi */ 10936 goto L_2B0861DD; /* 0x2B0860F7: jmp 0x2b0861dd */ 10937 L_2B0860FC: 10938 ecx = eax; /* 0x2B0860FC: mov ecx, eax */ 10939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10941 ecx = ecx - edi; /* 0x2B0860FE: sub ecx, edi */ 10942 _flag_k = FK_CMP; 10943 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086100: sar ecx, 4 */ 10944 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10945 ecx = (uint32_t)((int32_t)ecx >> 4u); 10946 /* cmp ecx, 1 */ /* 0x2B086103: cmp ecx, 1 */ 10947 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10949 _flag_k = FK_CMP; 10950 if (CMP_AE(_flag_a, _flag_b)) goto L_2B086164; /* 0x2B086106: jae 0x2b086164 */ 10951 L_2B086108: 10952 ecx = edi + 0x10; /* 0x2B086108: lea ecx, [edi + 0x10] */ 10953 PUSH32(esp, ecx); /* 0x2B08610B: push ecx */ 10954 PUSH32(esp, eax); /* 0x2B08610C: push eax */ 10955 PUSH32(esp, edi); /* 0x2B08610D: push edi */ 10956 ecx = esi; /* 0x2B08610E: mov ecx, esi */ 10957 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086110: call 0x2b0869b0 */ /* not lifted */ 10958 RECOMP_FLAGS_IN(); 10959 eax = MEM32(esi + 0x8); /* 0x2B086115: mov eax, dword ptr [esi + 8] */ 10960 edx = eax; /* 0x2B086118: mov edx, eax */ 10961 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10963 edx = edx - edi; /* 0x2B08611A: sub edx, edi */ 10964 _flag_k = FK_CMP; 10965 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B08611C: sar edx, 4 */ 10966 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10967 edx = (uint32_t)((int32_t)edx >> 4u); 10968 PUSH32(esp, ebx); /* 0x2B08611F: push ebx */ 10969 ecx = 1; /* 0x2B086120: mov ecx, 1 */ 10970 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10972 ecx = ecx - edx; /* 0x2B086125: sub ecx, edx */ 10973 _flag_k = FK_CMP; 10974 PUSH32(esp, ecx); /* 0x2B086127: push ecx */ 10975 PUSH32(esp, eax); /* 0x2B086128: push eax */ 10976 ecx = esi; /* 0x2B086129: mov ecx, esi */ 10977 RECOMP_ICALL(0x2B0869F0u); /* 0x2B08612B: call 0x2b0869f0 */ /* not lifted */ 10978 RECOMP_FLAGS_IN(); 10979 eax = MEM32(esi + 0x8); /* 0x2B086130: mov eax, dword ptr [esi + 8] */ 10980 /* cmp edi, eax */ /* 0x2B086133: cmp edi, eax */ 10981 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10983 _flag_k = FK_CMP; 10984 MEM32(ebp + (-0x10)) = eax; /* 0x2B086135: mov dword ptr [ebp - 0x10], eax */ 10985 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B086138: je 0x2b0861d9 */ 10986 L_2B08613E: 10987 edx = ebx; /* 0x2B08613E: mov edx, ebx */ 10988 ecx = MEM32(edx); /* 0x2B086140: mov ecx, dword ptr [edx] */ 10989 eax = edi; /* 0x2B086142: mov eax, edi */ 10990 MEM32(eax) = ecx; /* 0x2B086144: mov dword ptr [eax], ecx */ 10991 ecx = MEM32(edx + 0x4); /* 0x2B086146: mov ecx, dword ptr [edx + 4] */ 10992 MEM32(eax + 0x4) = ecx; /* 0x2B086149: mov dword ptr [eax + 4], ecx */ 10993 ecx = MEM32(edx + 0x8); /* 0x2B08614C: mov ecx, dword ptr [edx + 8] */ 10994 MEM32(eax + 0x8) = ecx; /* 0x2B08614F: mov dword ptr [eax + 8], ecx */ 10995 edx = MEM32(edx + 0xC); /* 0x2B086152: mov edx, dword ptr [edx + 0xc] */ 10996 MEM32(eax + 0xC) = edx; /* 0x2B086155: mov dword ptr [eax + 0xc], edx */ 10997 eax = MEM32(ebp + (-0x10)); /* 0x2B086158: mov eax, dword ptr [ebp - 0x10] */ 10998 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 10999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11000 edi = edi + 0x10u; /* 0x2B08615B: add edi, 0x10 */ 11001 _flag_k = FK_ADD; 11002 /* cmp edi, eax */ /* 0x2B08615E: cmp edi, eax */ 11003 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11005 _flag_k = FK_CMP; 11006 RECOMP_BACKEDGE(); 11007 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08613E; /* 0x2B086160: jne 0x2b08613e */ 11008 L_2B086162: 11009 goto L_2B0861D9; /* 0x2B086162: jmp 0x2b0861d9 */ 11010 L_2B086164: 11011 PUSH32(esp, eax); /* 0x2B086164: push eax */ 11012 ecx = eax + (-0x10); /* 0x2B086165: lea ecx, [eax - 0x10] */ 11013 PUSH32(esp, eax); /* 0x2B086168: push eax */ 11014 MEM32(ebp + (-0x10)) = ecx; /* 0x2B086169: mov dword ptr [ebp - 0x10], ecx */ 11015 PUSH32(esp, ecx); /* 0x2B08616C: push ecx */ 11016 ecx = esi; /* 0x2B08616D: mov ecx, esi */ 11017 RECOMP_ICALL(0x2B0869B0u); /* 0x2B08616F: call 0x2b0869b0 */ /* not lifted */ 11018 RECOMP_FLAGS_IN(); 11019 ecx = MEM32(esi + 0x8); /* 0x2B086174: mov ecx, dword ptr [esi + 8] */ 11020 eax = ecx + (-0x10); /* 0x2B086177: lea eax, [ecx - 0x10] */ 11021 /* cmp edi, eax */ /* 0x2B08617A: cmp edi, eax */ 11022 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11024 _flag_k = FK_CMP; 11025 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861AB; /* 0x2B08617C: je 0x2b0861ab */ 11026 L_2B08617E: 11027 goto L_2B086183; /* 0x2B08617E: jmp 0x2b086183 */ 11028 L_2B086180: 11029 ecx = MEM32(ebp + (-0x10)); /* 0x2B086180: mov ecx, dword ptr [ebp - 0x10] */ 11030 L_2B086183: 11031 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 11032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11033 eax = eax - 0x10u; /* 0x2B086183: sub eax, 0x10 */ 11034 _flag_k = FK_CMP; 11035 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 11036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11037 ecx = ecx - 0x10u; /* 0x2B086186: sub ecx, 0x10 */ 11038 _flag_k = FK_CMP; 11039 /* cmp eax, edi */ /* 0x2B086189: cmp eax, edi */ 11040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11042 _flag_k = FK_CMP; 11043 edx = eax; /* 0x2B08618B: mov edx, eax */ 11044 ebx = MEM32(edx); /* 0x2B08618D: mov ebx, dword ptr [edx] */ 11045 MEM32(ebp + (-0x10)) = ecx; /* 0x2B08618F: mov dword ptr [ebp - 0x10], ecx */ 11046 MEM32(ecx) = ebx; /* 0x2B086192: mov dword ptr [ecx], ebx */ 11047 ebx = MEM32(edx + 0x4); /* 0x2B086194: mov ebx, dword ptr [edx + 4] */ 11048 MEM32(ecx + 0x4) = ebx; /* 0x2B086197: mov dword ptr [ecx + 4], ebx */ 11049 ebx = MEM32(edx + 0x8); /* 0x2B08619A: mov ebx, dword ptr [edx + 8] */ 11050 MEM32(ecx + 0x8) = ebx; /* 0x2B08619D: mov dword ptr [ecx + 8], ebx */ 11051 edx = MEM32(edx + 0xC); /* 0x2B0861A0: mov edx, dword ptr [edx + 0xc] */ 11052 MEM32(ecx + 0xC) = edx; /* 0x2B0861A3: mov dword ptr [ecx + 0xc], edx */ 11053 RECOMP_BACKEDGE(); 11054 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086180; /* 0x2B0861A6: jne 0x2b086180 */ 11055 L_2B0861A8: 11056 ebx = MEM32(ebp + (-0x4)); /* 0x2B0861A8: mov ebx, dword ptr [ebp - 4] */ 11057 L_2B0861AB: 11058 eax = edi + 0x10; /* 0x2B0861AB: lea eax, [edi + 0x10] */ 11059 /* cmp edi, eax */ /* 0x2B0861AE: cmp edi, eax */ 11060 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11062 _flag_k = FK_CMP; 11063 MEM32(ebp + (-0x10)) = eax; /* 0x2B0861B0: mov dword ptr [ebp - 0x10], eax */ 11064 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B0861B3: je 0x2b0861d9 */ 11065 L_2B0861B5: 11066 eax = ebx; /* 0x2B0861B5: mov eax, ebx */ 11067 edx = MEM32(eax); /* 0x2B0861B7: mov edx, dword ptr [eax] */ 11068 ecx = edi; /* 0x2B0861B9: mov ecx, edi */ 11069 MEM32(ecx) = edx; /* 0x2B0861BB: mov dword ptr [ecx], edx */ 11070 edx = MEM32(eax + 0x4); /* 0x2B0861BD: mov edx, dword ptr [eax + 4] */ 11071 MEM32(ecx + 0x4) = edx; /* 0x2B0861C0: mov dword ptr [ecx + 4], edx */ 11072 edx = MEM32(eax + 0x8); /* 0x2B0861C3: mov edx, dword ptr [eax + 8] */ 11073 MEM32(ecx + 0x8) = edx; /* 0x2B0861C6: mov dword ptr [ecx + 8], edx */ 11074 eax = MEM32(eax + 0xC); /* 0x2B0861C9: mov eax, dword ptr [eax + 0xc] */ 11075 MEM32(ecx + 0xC) = eax; /* 0x2B0861CC: mov dword ptr [ecx + 0xc], eax */ 11076 eax = MEM32(ebp + (-0x10)); /* 0x2B0861CF: mov eax, dword ptr [ebp - 0x10] */ 11077 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 11078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11079 edi = edi + 0x10u; /* 0x2B0861D2: add edi, 0x10 */ 11080 _flag_k = FK_ADD; 11081 /* cmp edi, eax */ /* 0x2B0861D5: cmp edi, eax */ 11082 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11084 _flag_k = FK_CMP; 11085 RECOMP_BACKEDGE(); 11086 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0861B5; /* 0x2B0861D7: jne 0x2b0861b5 */ 11087 L_2B0861D9: 11088 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 11089 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11090 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x2B0861D9: add dword ptr [esi + 8], 0x10 */ 11091 _flag_k = FK_ADD; 11092 L_2B0861DD: 11093 ecx = MEM32(ebx); /* 0x2B0861DD: mov ecx, dword ptr [ebx] */ 11094 MEM32(ebp + (-0x44)) = ecx; /* 0x2B0861DF: mov dword ptr [ebp - 0x44], ecx */ 11095 edx = MEM32(ebx + 0x4); /* 0x2B0861E2: mov edx, dword ptr [ebx + 4] */ 11096 ecx = MEM32(ebp + (-0x8)); /* 0x2B0861E5: mov ecx, dword ptr [ebp - 8] */ 11097 ecx = MEM32(ecx + 0x98); /* 0x2B0861E8: mov ecx, dword ptr [ecx + 0x98] */ 11098 eax = ebp + (-0x44); /* 0x2B0861EE: lea eax, [ebp - 0x44] */ 11099 PUSH32(esp, eax); /* 0x2B0861F1: push eax */ 11100 MEM32(ebp + (-0x40)) = edx; /* 0x2B0861F2: mov dword ptr [ebp - 0x40], edx */ 11101 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0861F5: call dword ptr [0x2b0b58d0] */ 11102 RECOMP_FLAGS_IN(); 11103 edx = MEM32(ebp + (-0x14)); /* 0x2B0861FB: mov edx, dword ptr [ebp - 0x14] */ 11104 eax = MEM32(edx + 0x8); /* 0x2B0861FE: mov eax, dword ptr [edx + 8] */ 11105 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 11106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11107 ebx = ebx + 0x10u; /* 0x2B086201: add ebx, 0x10 */ 11108 _flag_k = FK_ADD; 11109 /* cmp ebx, eax */ /* 0x2B086204: cmp ebx, eax */ 11110 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 11111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11112 _flag_k = FK_CMP; 11113 MEM32(ebp + (-0x4)) = ebx; /* 0x2B086206: mov dword ptr [ebp - 4], ebx */ 11114 RECOMP_BACKEDGE(); 11115 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086035; /* 0x2B086209: jne 0x2b086035 */ 11116 L_2B08620F: 11117 ebx = MEM32(ebp + (-0x8)); /* 0x2B08620F: mov ebx, dword ptr [ebp - 8] */ 11118 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 11119 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 11120 RECOMP_FLAGS_IN(); 11121 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 11122 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 11123 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 11124 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 11125 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 11126 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 11127 RECOMP_FLAGS_IN(); 11128 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 11129 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 11130 RECOMP_FLAGS_IN(); 11131 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 11132 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 11133 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 11134 esp = ebp; /* 0x2B086246: mov esp, ebp */ 11135 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 11136 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 11137 RECOMP_REGS_OUT(); 11138 } 11139 11140 void sub_2B0861AB(void) { 11141 int _fpu_cmp = 0; 11142 uint32_t _cf = 0; 11143 int _df = 1; 11144 uint32_t _flag_k = FK_NONE; 11145 uint32_t _flag_a = 0, _flag_b = 0; 11146 uint32_t _itail_tgt = 0; 11147 RECOMP_REGS_LOCALS 11148 RECOMP_ENTER(0x2B0861ABu); 11149 11150 goto L_2B0861AB; 11151 L_2B086035: 11152 eax = MEM32(esi + 0x8); /* 0x2B086035: mov eax, dword ptr [esi + 8] */ 11153 ecx = MEM32(esi + 0xC); /* 0x2B086038: mov ecx, dword ptr [esi + 0xc] */ 11154 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11156 ecx = ecx - eax; /* 0x2B08603B: sub ecx, eax */ 11157 _flag_k = FK_CMP; 11158 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B08603D: sar ecx, 4 */ 11159 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11160 ecx = (uint32_t)((int32_t)ecx >> 4u); 11161 /* cmp ecx, 1 */ /* 0x2B086040: cmp ecx, 1 */ 11162 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11164 _flag_k = FK_CMP; 11165 edi = eax; /* 0x2B086043: mov edi, eax */ 11166 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0860FC; /* 0x2B086045: jae 0x2b0860fc */ 11167 L_2B08604B: 11168 edx = MEM32(esi + 0x4); /* 0x2B08604B: mov edx, dword ptr [esi + 4] */ 11169 /* test edx, edx */ /* 0x2B08604E: test edx, edx */ 11170 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11171 _cf = 0; 11172 _flag_k = FK_TEST; 11173 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08605E; /* 0x2B086050: je 0x2b08605e */ 11174 L_2B086052: 11175 ecx = eax; /* 0x2B086052: mov ecx, eax */ 11176 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11178 ecx = ecx - edx; /* 0x2B086054: sub ecx, edx */ 11179 _flag_k = FK_CMP; 11180 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086056: sar ecx, 4 */ 11181 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11182 ecx = (uint32_t)((int32_t)ecx >> 4u); 11183 /* cmp ecx, 1 */ /* 0x2B086059: cmp ecx, 1 */ 11184 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11186 _flag_k = FK_CMP; 11187 if (CMP_A(_flag_a, _flag_b)) goto L_2B086063; /* 0x2B08605C: ja 0x2b086063 */ 11188 L_2B08605E: 11189 ecx = 1; /* 0x2B08605E: mov ecx, 1 */ 11190 L_2B086063: 11191 /* test edx, edx */ /* 0x2B086063: test edx, edx */ 11192 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11193 _cf = 0; 11194 _flag_k = FK_TEST; 11195 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08606B; /* 0x2B086065: jne 0x2b08606b */ 11196 L_2B086067: 11197 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11198 eax = 0; /* 0x2B086067: xor eax, eax */ 11199 _cf = 0; 11200 _flag_k = FK_TEST; 11201 goto L_2B086070; /* 0x2B086069: jmp 0x2b086070 */ 11202 L_2B08606B: 11203 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11205 eax = eax - edx; /* 0x2B08606B: sub eax, edx */ 11206 _flag_k = FK_CMP; 11207 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B08606D: sar eax, 4 */ 11208 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11209 eax = (uint32_t)((int32_t)eax >> 4u); 11210 L_2B086070: 11211 ebx = eax + ecx; /* 0x2B086070: lea ebx, [eax + ecx] */ 11212 /* test ebx, ebx */ /* 0x2B086073: test ebx, ebx */ 11213 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 11214 _cf = 0; 11215 _flag_k = FK_TEST; 11216 eax = ebx; /* 0x2B086075: mov eax, ebx */ 11217 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08607B; /* 0x2B086077: jge 0x2b08607b */ 11218 L_2B086079: 11219 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11220 eax = 0; /* 0x2B086079: xor eax, eax */ 11221 _cf = 0; 11222 _flag_k = FK_TEST; 11223 L_2B08607B: 11224 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B08607B: shl eax, 4 */ 11225 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11226 eax = eax << 4u; /* 0x2B08607B: shl eax, 4 */ 11227 PUSH32(esp, eax); /* 0x2B08607E: push eax */ 11228 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08607F: call 0x2b0ab212 */ /* not lifted */ 11229 RECOMP_FLAGS_IN(); 11230 edx = MEM32(esi + 0x4); /* 0x2B086084: mov edx, dword ptr [esi + 4] */ 11231 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11233 esp = esp + 4; /* 0x2B086087: add esp, 4 */ 11234 _flag_k = FK_ADD; 11235 PUSH32(esp, eax); /* 0x2B08608A: push eax */ 11236 PUSH32(esp, edi); /* 0x2B08608B: push edi */ 11237 PUSH32(esp, edx); /* 0x2B08608C: push edx */ 11238 ecx = esi; /* 0x2B08608D: mov ecx, esi */ 11239 MEM32(ebp + (-0x10)) = eax; /* 0x2B08608F: mov dword ptr [ebp - 0x10], eax */ 11240 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086092: call 0x2b0869b0 */ /* not lifted */ 11241 RECOMP_FLAGS_IN(); 11242 ecx = MEM32(ebp + (-0x4)); /* 0x2B086097: mov ecx, dword ptr [ebp - 4] */ 11243 PUSH32(esp, ecx); /* 0x2B08609A: push ecx */ 11244 PUSH32(esp, 1); /* 0x2B08609B: push 1 */ 11245 PUSH32(esp, eax); /* 0x2B08609D: push eax */ 11246 ecx = esi; /* 0x2B08609E: mov ecx, esi */ 11247 MEM32(ebp + (-0xC)) = eax; /* 0x2B0860A0: mov dword ptr [ebp - 0xc], eax */ 11248 RECOMP_ICALL(0x2B0869F0u); /* 0x2B0860A3: call 0x2b0869f0 */ /* not lifted */ 11249 RECOMP_FLAGS_IN(); 11250 edx = MEM32(ebp + (-0xC)); /* 0x2B0860A8: mov edx, dword ptr [ebp - 0xc] */ 11251 eax = MEM32(esi + 0x8); /* 0x2B0860AB: mov eax, dword ptr [esi + 8] */ 11252 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 11253 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11254 edx = edx + 0x10u; /* 0x2B0860AE: add edx, 0x10 */ 11255 _flag_k = FK_ADD; 11256 PUSH32(esp, edx); /* 0x2B0860B1: push edx */ 11257 PUSH32(esp, eax); /* 0x2B0860B2: push eax */ 11258 PUSH32(esp, edi); /* 0x2B0860B3: push edi */ 11259 ecx = esi; /* 0x2B0860B4: mov ecx, esi */ 11260 RECOMP_ICALL(0x2B0869B0u); /* 0x2B0860B6: call 0x2b0869b0 */ /* not lifted */ 11261 RECOMP_FLAGS_IN(); 11262 ecx = MEM32(esi + 0x8); /* 0x2B0860BB: mov ecx, dword ptr [esi + 8] */ 11263 edx = MEM32(esi + 0x4); /* 0x2B0860BE: mov edx, dword ptr [esi + 4] */ 11264 PUSH32(esp, ecx); /* 0x2B0860C1: push ecx */ 11265 PUSH32(esp, edx); /* 0x2B0860C2: push edx */ 11266 ecx = esi; /* 0x2B0860C3: mov ecx, esi */ 11267 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0860C5: call 0x2b0292c0 */ /* not lifted */ 11268 RECOMP_FLAGS_IN(); 11269 eax = MEM32(esi + 0x4); /* 0x2B0860CA: mov eax, dword ptr [esi + 4] */ 11270 PUSH32(esp, eax); /* 0x2B0860CD: push eax */ 11271 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0860CE: call 0x2b0ab1ba */ /* not lifted */ 11272 RECOMP_FLAGS_IN(); 11273 edi = MEM32(ebp + (-0x10)); /* 0x2B0860D3: mov edi, dword ptr [ebp - 0x10] */ 11274 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x2B0860D6: shl ebx, 4 */ 11275 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11276 ebx = ebx << 4u; /* 0x2B0860D6: shl ebx, 4 */ 11277 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 11278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11279 ebx = ebx + edi; /* 0x2B0860D9: add ebx, edi */ 11280 _flag_k = FK_ADD; 11281 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11283 esp = esp + 4; /* 0x2B0860DB: add esp, 4 */ 11284 _flag_k = FK_ADD; 11285 ecx = esi; /* 0x2B0860DE: mov ecx, esi */ 11286 MEM32(esi + 0xC) = ebx; /* 0x2B0860E0: mov dword ptr [esi + 0xc], ebx */ 11287 RECOMP_ICALL(0x2B002FC0u); /* 0x2B0860E3: call 0x2b002fc0 */ /* not lifted */ 11288 RECOMP_FLAGS_IN(); 11289 ebx = MEM32(ebp + (-0x4)); /* 0x2B0860E8: mov ebx, dword ptr [ebp - 4] */ 11290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11291 eax = eax + 1; /* 0x2B0860EB: inc eax */ 11292 _flag_k = FK_INC; 11293 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0860EC: shl eax, 4 */ 11294 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11295 eax = eax << 4u; /* 0x2B0860EC: shl eax, 4 */ 11296 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11298 eax = eax + edi; /* 0x2B0860EF: add eax, edi */ 11299 _flag_k = FK_ADD; 11300 MEM32(esi + 0x8) = eax; /* 0x2B0860F1: mov dword ptr [esi + 8], eax */ 11301 MEM32(esi + 0x4) = edi; /* 0x2B0860F4: mov dword ptr [esi + 4], edi */ 11302 goto L_2B0861DD; /* 0x2B0860F7: jmp 0x2b0861dd */ 11303 L_2B0860FC: 11304 ecx = eax; /* 0x2B0860FC: mov ecx, eax */ 11305 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11307 ecx = ecx - edi; /* 0x2B0860FE: sub ecx, edi */ 11308 _flag_k = FK_CMP; 11309 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086100: sar ecx, 4 */ 11310 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11311 ecx = (uint32_t)((int32_t)ecx >> 4u); 11312 /* cmp ecx, 1 */ /* 0x2B086103: cmp ecx, 1 */ 11313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11315 _flag_k = FK_CMP; 11316 if (CMP_AE(_flag_a, _flag_b)) goto L_2B086164; /* 0x2B086106: jae 0x2b086164 */ 11317 L_2B086108: 11318 ecx = edi + 0x10; /* 0x2B086108: lea ecx, [edi + 0x10] */ 11319 PUSH32(esp, ecx); /* 0x2B08610B: push ecx */ 11320 PUSH32(esp, eax); /* 0x2B08610C: push eax */ 11321 PUSH32(esp, edi); /* 0x2B08610D: push edi */ 11322 ecx = esi; /* 0x2B08610E: mov ecx, esi */ 11323 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086110: call 0x2b0869b0 */ /* not lifted */ 11324 RECOMP_FLAGS_IN(); 11325 eax = MEM32(esi + 0x8); /* 0x2B086115: mov eax, dword ptr [esi + 8] */ 11326 edx = eax; /* 0x2B086118: mov edx, eax */ 11327 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 11328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11329 edx = edx - edi; /* 0x2B08611A: sub edx, edi */ 11330 _flag_k = FK_CMP; 11331 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B08611C: sar edx, 4 */ 11332 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11333 edx = (uint32_t)((int32_t)edx >> 4u); 11334 PUSH32(esp, ebx); /* 0x2B08611F: push ebx */ 11335 ecx = 1; /* 0x2B086120: mov ecx, 1 */ 11336 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11338 ecx = ecx - edx; /* 0x2B086125: sub ecx, edx */ 11339 _flag_k = FK_CMP; 11340 PUSH32(esp, ecx); /* 0x2B086127: push ecx */ 11341 PUSH32(esp, eax); /* 0x2B086128: push eax */ 11342 ecx = esi; /* 0x2B086129: mov ecx, esi */ 11343 RECOMP_ICALL(0x2B0869F0u); /* 0x2B08612B: call 0x2b0869f0 */ /* not lifted */ 11344 RECOMP_FLAGS_IN(); 11345 eax = MEM32(esi + 0x8); /* 0x2B086130: mov eax, dword ptr [esi + 8] */ 11346 /* cmp edi, eax */ /* 0x2B086133: cmp edi, eax */ 11347 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11349 _flag_k = FK_CMP; 11350 MEM32(ebp + (-0x10)) = eax; /* 0x2B086135: mov dword ptr [ebp - 0x10], eax */ 11351 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B086138: je 0x2b0861d9 */ 11352 L_2B08613E: 11353 edx = ebx; /* 0x2B08613E: mov edx, ebx */ 11354 ecx = MEM32(edx); /* 0x2B086140: mov ecx, dword ptr [edx] */ 11355 eax = edi; /* 0x2B086142: mov eax, edi */ 11356 MEM32(eax) = ecx; /* 0x2B086144: mov dword ptr [eax], ecx */ 11357 ecx = MEM32(edx + 0x4); /* 0x2B086146: mov ecx, dword ptr [edx + 4] */ 11358 MEM32(eax + 0x4) = ecx; /* 0x2B086149: mov dword ptr [eax + 4], ecx */ 11359 ecx = MEM32(edx + 0x8); /* 0x2B08614C: mov ecx, dword ptr [edx + 8] */ 11360 MEM32(eax + 0x8) = ecx; /* 0x2B08614F: mov dword ptr [eax + 8], ecx */ 11361 edx = MEM32(edx + 0xC); /* 0x2B086152: mov edx, dword ptr [edx + 0xc] */ 11362 MEM32(eax + 0xC) = edx; /* 0x2B086155: mov dword ptr [eax + 0xc], edx */ 11363 eax = MEM32(ebp + (-0x10)); /* 0x2B086158: mov eax, dword ptr [ebp - 0x10] */ 11364 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 11365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11366 edi = edi + 0x10u; /* 0x2B08615B: add edi, 0x10 */ 11367 _flag_k = FK_ADD; 11368 /* cmp edi, eax */ /* 0x2B08615E: cmp edi, eax */ 11369 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11371 _flag_k = FK_CMP; 11372 RECOMP_BACKEDGE(); 11373 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08613E; /* 0x2B086160: jne 0x2b08613e */ 11374 L_2B086162: 11375 goto L_2B0861D9; /* 0x2B086162: jmp 0x2b0861d9 */ 11376 L_2B086164: 11377 PUSH32(esp, eax); /* 0x2B086164: push eax */ 11378 ecx = eax + (-0x10); /* 0x2B086165: lea ecx, [eax - 0x10] */ 11379 PUSH32(esp, eax); /* 0x2B086168: push eax */ 11380 MEM32(ebp + (-0x10)) = ecx; /* 0x2B086169: mov dword ptr [ebp - 0x10], ecx */ 11381 PUSH32(esp, ecx); /* 0x2B08616C: push ecx */ 11382 ecx = esi; /* 0x2B08616D: mov ecx, esi */ 11383 RECOMP_ICALL(0x2B0869B0u); /* 0x2B08616F: call 0x2b0869b0 */ /* not lifted */ 11384 RECOMP_FLAGS_IN(); 11385 ecx = MEM32(esi + 0x8); /* 0x2B086174: mov ecx, dword ptr [esi + 8] */ 11386 eax = ecx + (-0x10); /* 0x2B086177: lea eax, [ecx - 0x10] */ 11387 /* cmp edi, eax */ /* 0x2B08617A: cmp edi, eax */ 11388 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11390 _flag_k = FK_CMP; 11391 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861AB; /* 0x2B08617C: je 0x2b0861ab */ 11392 L_2B08617E: 11393 goto L_2B086183; /* 0x2B08617E: jmp 0x2b086183 */ 11394 L_2B086180: 11395 ecx = MEM32(ebp + (-0x10)); /* 0x2B086180: mov ecx, dword ptr [ebp - 0x10] */ 11396 L_2B086183: 11397 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 11398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11399 eax = eax - 0x10u; /* 0x2B086183: sub eax, 0x10 */ 11400 _flag_k = FK_CMP; 11401 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 11402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11403 ecx = ecx - 0x10u; /* 0x2B086186: sub ecx, 0x10 */ 11404 _flag_k = FK_CMP; 11405 /* cmp eax, edi */ /* 0x2B086189: cmp eax, edi */ 11406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11408 _flag_k = FK_CMP; 11409 edx = eax; /* 0x2B08618B: mov edx, eax */ 11410 ebx = MEM32(edx); /* 0x2B08618D: mov ebx, dword ptr [edx] */ 11411 MEM32(ebp + (-0x10)) = ecx; /* 0x2B08618F: mov dword ptr [ebp - 0x10], ecx */ 11412 MEM32(ecx) = ebx; /* 0x2B086192: mov dword ptr [ecx], ebx */ 11413 ebx = MEM32(edx + 0x4); /* 0x2B086194: mov ebx, dword ptr [edx + 4] */ 11414 MEM32(ecx + 0x4) = ebx; /* 0x2B086197: mov dword ptr [ecx + 4], ebx */ 11415 ebx = MEM32(edx + 0x8); /* 0x2B08619A: mov ebx, dword ptr [edx + 8] */ 11416 MEM32(ecx + 0x8) = ebx; /* 0x2B08619D: mov dword ptr [ecx + 8], ebx */ 11417 edx = MEM32(edx + 0xC); /* 0x2B0861A0: mov edx, dword ptr [edx + 0xc] */ 11418 MEM32(ecx + 0xC) = edx; /* 0x2B0861A3: mov dword ptr [ecx + 0xc], edx */ 11419 RECOMP_BACKEDGE(); 11420 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086180; /* 0x2B0861A6: jne 0x2b086180 */ 11421 L_2B0861A8: 11422 ebx = MEM32(ebp + (-0x4)); /* 0x2B0861A8: mov ebx, dword ptr [ebp - 4] */ 11423 L_2B0861AB: 11424 eax = edi + 0x10; /* 0x2B0861AB: lea eax, [edi + 0x10] */ 11425 /* cmp edi, eax */ /* 0x2B0861AE: cmp edi, eax */ 11426 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11428 _flag_k = FK_CMP; 11429 MEM32(ebp + (-0x10)) = eax; /* 0x2B0861B0: mov dword ptr [ebp - 0x10], eax */ 11430 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B0861B3: je 0x2b0861d9 */ 11431 L_2B0861B5: 11432 eax = ebx; /* 0x2B0861B5: mov eax, ebx */ 11433 edx = MEM32(eax); /* 0x2B0861B7: mov edx, dword ptr [eax] */ 11434 ecx = edi; /* 0x2B0861B9: mov ecx, edi */ 11435 MEM32(ecx) = edx; /* 0x2B0861BB: mov dword ptr [ecx], edx */ 11436 edx = MEM32(eax + 0x4); /* 0x2B0861BD: mov edx, dword ptr [eax + 4] */ 11437 MEM32(ecx + 0x4) = edx; /* 0x2B0861C0: mov dword ptr [ecx + 4], edx */ 11438 edx = MEM32(eax + 0x8); /* 0x2B0861C3: mov edx, dword ptr [eax + 8] */ 11439 MEM32(ecx + 0x8) = edx; /* 0x2B0861C6: mov dword ptr [ecx + 8], edx */ 11440 eax = MEM32(eax + 0xC); /* 0x2B0861C9: mov eax, dword ptr [eax + 0xc] */ 11441 MEM32(ecx + 0xC) = eax; /* 0x2B0861CC: mov dword ptr [ecx + 0xc], eax */ 11442 eax = MEM32(ebp + (-0x10)); /* 0x2B0861CF: mov eax, dword ptr [ebp - 0x10] */ 11443 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 11444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11445 edi = edi + 0x10u; /* 0x2B0861D2: add edi, 0x10 */ 11446 _flag_k = FK_ADD; 11447 /* cmp edi, eax */ /* 0x2B0861D5: cmp edi, eax */ 11448 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11450 _flag_k = FK_CMP; 11451 RECOMP_BACKEDGE(); 11452 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0861B5; /* 0x2B0861D7: jne 0x2b0861b5 */ 11453 L_2B0861D9: 11454 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 11455 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11456 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x2B0861D9: add dword ptr [esi + 8], 0x10 */ 11457 _flag_k = FK_ADD; 11458 L_2B0861DD: 11459 ecx = MEM32(ebx); /* 0x2B0861DD: mov ecx, dword ptr [ebx] */ 11460 MEM32(ebp + (-0x44)) = ecx; /* 0x2B0861DF: mov dword ptr [ebp - 0x44], ecx */ 11461 edx = MEM32(ebx + 0x4); /* 0x2B0861E2: mov edx, dword ptr [ebx + 4] */ 11462 ecx = MEM32(ebp + (-0x8)); /* 0x2B0861E5: mov ecx, dword ptr [ebp - 8] */ 11463 ecx = MEM32(ecx + 0x98); /* 0x2B0861E8: mov ecx, dword ptr [ecx + 0x98] */ 11464 eax = ebp + (-0x44); /* 0x2B0861EE: lea eax, [ebp - 0x44] */ 11465 PUSH32(esp, eax); /* 0x2B0861F1: push eax */ 11466 MEM32(ebp + (-0x40)) = edx; /* 0x2B0861F2: mov dword ptr [ebp - 0x40], edx */ 11467 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0861F5: call dword ptr [0x2b0b58d0] */ 11468 RECOMP_FLAGS_IN(); 11469 edx = MEM32(ebp + (-0x14)); /* 0x2B0861FB: mov edx, dword ptr [ebp - 0x14] */ 11470 eax = MEM32(edx + 0x8); /* 0x2B0861FE: mov eax, dword ptr [edx + 8] */ 11471 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 11472 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11473 ebx = ebx + 0x10u; /* 0x2B086201: add ebx, 0x10 */ 11474 _flag_k = FK_ADD; 11475 /* cmp ebx, eax */ /* 0x2B086204: cmp ebx, eax */ 11476 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 11477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11478 _flag_k = FK_CMP; 11479 MEM32(ebp + (-0x4)) = ebx; /* 0x2B086206: mov dword ptr [ebp - 4], ebx */ 11480 RECOMP_BACKEDGE(); 11481 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086035; /* 0x2B086209: jne 0x2b086035 */ 11482 L_2B08620F: 11483 ebx = MEM32(ebp + (-0x8)); /* 0x2B08620F: mov ebx, dword ptr [ebp - 8] */ 11484 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 11485 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 11486 RECOMP_FLAGS_IN(); 11487 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 11488 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 11489 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 11490 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 11491 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 11492 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 11493 RECOMP_FLAGS_IN(); 11494 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 11495 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 11496 RECOMP_FLAGS_IN(); 11497 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 11498 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 11499 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 11500 esp = ebp; /* 0x2B086246: mov esp, ebp */ 11501 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 11502 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 11503 RECOMP_REGS_OUT(); 11504 } 11505 11506 void sub_2B0861D9(void) { 11507 int _fpu_cmp = 0; 11508 uint32_t _cf = 0; 11509 int _df = 1; 11510 uint32_t _flag_k = FK_NONE; 11511 uint32_t _flag_a = 0, _flag_b = 0; 11512 uint32_t _itail_tgt = 0; 11513 RECOMP_REGS_LOCALS 11514 RECOMP_ENTER(0x2B0861D9u); 11515 11516 goto L_2B0861D9; 11517 L_2B086035: 11518 eax = MEM32(esi + 0x8); /* 0x2B086035: mov eax, dword ptr [esi + 8] */ 11519 ecx = MEM32(esi + 0xC); /* 0x2B086038: mov ecx, dword ptr [esi + 0xc] */ 11520 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11522 ecx = ecx - eax; /* 0x2B08603B: sub ecx, eax */ 11523 _flag_k = FK_CMP; 11524 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B08603D: sar ecx, 4 */ 11525 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11526 ecx = (uint32_t)((int32_t)ecx >> 4u); 11527 /* cmp ecx, 1 */ /* 0x2B086040: cmp ecx, 1 */ 11528 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11530 _flag_k = FK_CMP; 11531 edi = eax; /* 0x2B086043: mov edi, eax */ 11532 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0860FC; /* 0x2B086045: jae 0x2b0860fc */ 11533 L_2B08604B: 11534 edx = MEM32(esi + 0x4); /* 0x2B08604B: mov edx, dword ptr [esi + 4] */ 11535 /* test edx, edx */ /* 0x2B08604E: test edx, edx */ 11536 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11537 _cf = 0; 11538 _flag_k = FK_TEST; 11539 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08605E; /* 0x2B086050: je 0x2b08605e */ 11540 L_2B086052: 11541 ecx = eax; /* 0x2B086052: mov ecx, eax */ 11542 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11544 ecx = ecx - edx; /* 0x2B086054: sub ecx, edx */ 11545 _flag_k = FK_CMP; 11546 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086056: sar ecx, 4 */ 11547 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11548 ecx = (uint32_t)((int32_t)ecx >> 4u); 11549 /* cmp ecx, 1 */ /* 0x2B086059: cmp ecx, 1 */ 11550 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11552 _flag_k = FK_CMP; 11553 if (CMP_A(_flag_a, _flag_b)) goto L_2B086063; /* 0x2B08605C: ja 0x2b086063 */ 11554 L_2B08605E: 11555 ecx = 1; /* 0x2B08605E: mov ecx, 1 */ 11556 L_2B086063: 11557 /* test edx, edx */ /* 0x2B086063: test edx, edx */ 11558 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11559 _cf = 0; 11560 _flag_k = FK_TEST; 11561 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08606B; /* 0x2B086065: jne 0x2b08606b */ 11562 L_2B086067: 11563 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11564 eax = 0; /* 0x2B086067: xor eax, eax */ 11565 _cf = 0; 11566 _flag_k = FK_TEST; 11567 goto L_2B086070; /* 0x2B086069: jmp 0x2b086070 */ 11568 L_2B08606B: 11569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11571 eax = eax - edx; /* 0x2B08606B: sub eax, edx */ 11572 _flag_k = FK_CMP; 11573 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B08606D: sar eax, 4 */ 11574 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11575 eax = (uint32_t)((int32_t)eax >> 4u); 11576 L_2B086070: 11577 ebx = eax + ecx; /* 0x2B086070: lea ebx, [eax + ecx] */ 11578 /* test ebx, ebx */ /* 0x2B086073: test ebx, ebx */ 11579 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 11580 _cf = 0; 11581 _flag_k = FK_TEST; 11582 eax = ebx; /* 0x2B086075: mov eax, ebx */ 11583 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08607B; /* 0x2B086077: jge 0x2b08607b */ 11584 L_2B086079: 11585 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11586 eax = 0; /* 0x2B086079: xor eax, eax */ 11587 _cf = 0; 11588 _flag_k = FK_TEST; 11589 L_2B08607B: 11590 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B08607B: shl eax, 4 */ 11591 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11592 eax = eax << 4u; /* 0x2B08607B: shl eax, 4 */ 11593 PUSH32(esp, eax); /* 0x2B08607E: push eax */ 11594 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08607F: call 0x2b0ab212 */ /* not lifted */ 11595 RECOMP_FLAGS_IN(); 11596 edx = MEM32(esi + 0x4); /* 0x2B086084: mov edx, dword ptr [esi + 4] */ 11597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11598 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11599 esp = esp + 4; /* 0x2B086087: add esp, 4 */ 11600 _flag_k = FK_ADD; 11601 PUSH32(esp, eax); /* 0x2B08608A: push eax */ 11602 PUSH32(esp, edi); /* 0x2B08608B: push edi */ 11603 PUSH32(esp, edx); /* 0x2B08608C: push edx */ 11604 ecx = esi; /* 0x2B08608D: mov ecx, esi */ 11605 MEM32(ebp + (-0x10)) = eax; /* 0x2B08608F: mov dword ptr [ebp - 0x10], eax */ 11606 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086092: call 0x2b0869b0 */ /* not lifted */ 11607 RECOMP_FLAGS_IN(); 11608 ecx = MEM32(ebp + (-0x4)); /* 0x2B086097: mov ecx, dword ptr [ebp - 4] */ 11609 PUSH32(esp, ecx); /* 0x2B08609A: push ecx */ 11610 PUSH32(esp, 1); /* 0x2B08609B: push 1 */ 11611 PUSH32(esp, eax); /* 0x2B08609D: push eax */ 11612 ecx = esi; /* 0x2B08609E: mov ecx, esi */ 11613 MEM32(ebp + (-0xC)) = eax; /* 0x2B0860A0: mov dword ptr [ebp - 0xc], eax */ 11614 RECOMP_ICALL(0x2B0869F0u); /* 0x2B0860A3: call 0x2b0869f0 */ /* not lifted */ 11615 RECOMP_FLAGS_IN(); 11616 edx = MEM32(ebp + (-0xC)); /* 0x2B0860A8: mov edx, dword ptr [ebp - 0xc] */ 11617 eax = MEM32(esi + 0x8); /* 0x2B0860AB: mov eax, dword ptr [esi + 8] */ 11618 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 11619 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11620 edx = edx + 0x10u; /* 0x2B0860AE: add edx, 0x10 */ 11621 _flag_k = FK_ADD; 11622 PUSH32(esp, edx); /* 0x2B0860B1: push edx */ 11623 PUSH32(esp, eax); /* 0x2B0860B2: push eax */ 11624 PUSH32(esp, edi); /* 0x2B0860B3: push edi */ 11625 ecx = esi; /* 0x2B0860B4: mov ecx, esi */ 11626 RECOMP_ICALL(0x2B0869B0u); /* 0x2B0860B6: call 0x2b0869b0 */ /* not lifted */ 11627 RECOMP_FLAGS_IN(); 11628 ecx = MEM32(esi + 0x8); /* 0x2B0860BB: mov ecx, dword ptr [esi + 8] */ 11629 edx = MEM32(esi + 0x4); /* 0x2B0860BE: mov edx, dword ptr [esi + 4] */ 11630 PUSH32(esp, ecx); /* 0x2B0860C1: push ecx */ 11631 PUSH32(esp, edx); /* 0x2B0860C2: push edx */ 11632 ecx = esi; /* 0x2B0860C3: mov ecx, esi */ 11633 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0860C5: call 0x2b0292c0 */ /* not lifted */ 11634 RECOMP_FLAGS_IN(); 11635 eax = MEM32(esi + 0x4); /* 0x2B0860CA: mov eax, dword ptr [esi + 4] */ 11636 PUSH32(esp, eax); /* 0x2B0860CD: push eax */ 11637 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0860CE: call 0x2b0ab1ba */ /* not lifted */ 11638 RECOMP_FLAGS_IN(); 11639 edi = MEM32(ebp + (-0x10)); /* 0x2B0860D3: mov edi, dword ptr [ebp - 0x10] */ 11640 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x2B0860D6: shl ebx, 4 */ 11641 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11642 ebx = ebx << 4u; /* 0x2B0860D6: shl ebx, 4 */ 11643 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 11644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11645 ebx = ebx + edi; /* 0x2B0860D9: add ebx, edi */ 11646 _flag_k = FK_ADD; 11647 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11648 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11649 esp = esp + 4; /* 0x2B0860DB: add esp, 4 */ 11650 _flag_k = FK_ADD; 11651 ecx = esi; /* 0x2B0860DE: mov ecx, esi */ 11652 MEM32(esi + 0xC) = ebx; /* 0x2B0860E0: mov dword ptr [esi + 0xc], ebx */ 11653 RECOMP_ICALL(0x2B002FC0u); /* 0x2B0860E3: call 0x2b002fc0 */ /* not lifted */ 11654 RECOMP_FLAGS_IN(); 11655 ebx = MEM32(ebp + (-0x4)); /* 0x2B0860E8: mov ebx, dword ptr [ebp - 4] */ 11656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11657 eax = eax + 1; /* 0x2B0860EB: inc eax */ 11658 _flag_k = FK_INC; 11659 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0860EC: shl eax, 4 */ 11660 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11661 eax = eax << 4u; /* 0x2B0860EC: shl eax, 4 */ 11662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11663 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11664 eax = eax + edi; /* 0x2B0860EF: add eax, edi */ 11665 _flag_k = FK_ADD; 11666 MEM32(esi + 0x8) = eax; /* 0x2B0860F1: mov dword ptr [esi + 8], eax */ 11667 MEM32(esi + 0x4) = edi; /* 0x2B0860F4: mov dword ptr [esi + 4], edi */ 11668 goto L_2B0861DD; /* 0x2B0860F7: jmp 0x2b0861dd */ 11669 L_2B0860FC: 11670 ecx = eax; /* 0x2B0860FC: mov ecx, eax */ 11671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11673 ecx = ecx - edi; /* 0x2B0860FE: sub ecx, edi */ 11674 _flag_k = FK_CMP; 11675 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086100: sar ecx, 4 */ 11676 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11677 ecx = (uint32_t)((int32_t)ecx >> 4u); 11678 /* cmp ecx, 1 */ /* 0x2B086103: cmp ecx, 1 */ 11679 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11681 _flag_k = FK_CMP; 11682 if (CMP_AE(_flag_a, _flag_b)) goto L_2B086164; /* 0x2B086106: jae 0x2b086164 */ 11683 L_2B086108: 11684 ecx = edi + 0x10; /* 0x2B086108: lea ecx, [edi + 0x10] */ 11685 PUSH32(esp, ecx); /* 0x2B08610B: push ecx */ 11686 PUSH32(esp, eax); /* 0x2B08610C: push eax */ 11687 PUSH32(esp, edi); /* 0x2B08610D: push edi */ 11688 ecx = esi; /* 0x2B08610E: mov ecx, esi */ 11689 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086110: call 0x2b0869b0 */ /* not lifted */ 11690 RECOMP_FLAGS_IN(); 11691 eax = MEM32(esi + 0x8); /* 0x2B086115: mov eax, dword ptr [esi + 8] */ 11692 edx = eax; /* 0x2B086118: mov edx, eax */ 11693 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 11694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11695 edx = edx - edi; /* 0x2B08611A: sub edx, edi */ 11696 _flag_k = FK_CMP; 11697 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B08611C: sar edx, 4 */ 11698 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11699 edx = (uint32_t)((int32_t)edx >> 4u); 11700 PUSH32(esp, ebx); /* 0x2B08611F: push ebx */ 11701 ecx = 1; /* 0x2B086120: mov ecx, 1 */ 11702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11704 ecx = ecx - edx; /* 0x2B086125: sub ecx, edx */ 11705 _flag_k = FK_CMP; 11706 PUSH32(esp, ecx); /* 0x2B086127: push ecx */ 11707 PUSH32(esp, eax); /* 0x2B086128: push eax */ 11708 ecx = esi; /* 0x2B086129: mov ecx, esi */ 11709 RECOMP_ICALL(0x2B0869F0u); /* 0x2B08612B: call 0x2b0869f0 */ /* not lifted */ 11710 RECOMP_FLAGS_IN(); 11711 eax = MEM32(esi + 0x8); /* 0x2B086130: mov eax, dword ptr [esi + 8] */ 11712 /* cmp edi, eax */ /* 0x2B086133: cmp edi, eax */ 11713 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11715 _flag_k = FK_CMP; 11716 MEM32(ebp + (-0x10)) = eax; /* 0x2B086135: mov dword ptr [ebp - 0x10], eax */ 11717 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B086138: je 0x2b0861d9 */ 11718 L_2B08613E: 11719 edx = ebx; /* 0x2B08613E: mov edx, ebx */ 11720 ecx = MEM32(edx); /* 0x2B086140: mov ecx, dword ptr [edx] */ 11721 eax = edi; /* 0x2B086142: mov eax, edi */ 11722 MEM32(eax) = ecx; /* 0x2B086144: mov dword ptr [eax], ecx */ 11723 ecx = MEM32(edx + 0x4); /* 0x2B086146: mov ecx, dword ptr [edx + 4] */ 11724 MEM32(eax + 0x4) = ecx; /* 0x2B086149: mov dword ptr [eax + 4], ecx */ 11725 ecx = MEM32(edx + 0x8); /* 0x2B08614C: mov ecx, dword ptr [edx + 8] */ 11726 MEM32(eax + 0x8) = ecx; /* 0x2B08614F: mov dword ptr [eax + 8], ecx */ 11727 edx = MEM32(edx + 0xC); /* 0x2B086152: mov edx, dword ptr [edx + 0xc] */ 11728 MEM32(eax + 0xC) = edx; /* 0x2B086155: mov dword ptr [eax + 0xc], edx */ 11729 eax = MEM32(ebp + (-0x10)); /* 0x2B086158: mov eax, dword ptr [ebp - 0x10] */ 11730 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 11731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11732 edi = edi + 0x10u; /* 0x2B08615B: add edi, 0x10 */ 11733 _flag_k = FK_ADD; 11734 /* cmp edi, eax */ /* 0x2B08615E: cmp edi, eax */ 11735 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11737 _flag_k = FK_CMP; 11738 RECOMP_BACKEDGE(); 11739 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08613E; /* 0x2B086160: jne 0x2b08613e */ 11740 L_2B086162: 11741 goto L_2B0861D9; /* 0x2B086162: jmp 0x2b0861d9 */ 11742 L_2B086164: 11743 PUSH32(esp, eax); /* 0x2B086164: push eax */ 11744 ecx = eax + (-0x10); /* 0x2B086165: lea ecx, [eax - 0x10] */ 11745 PUSH32(esp, eax); /* 0x2B086168: push eax */ 11746 MEM32(ebp + (-0x10)) = ecx; /* 0x2B086169: mov dword ptr [ebp - 0x10], ecx */ 11747 PUSH32(esp, ecx); /* 0x2B08616C: push ecx */ 11748 ecx = esi; /* 0x2B08616D: mov ecx, esi */ 11749 RECOMP_ICALL(0x2B0869B0u); /* 0x2B08616F: call 0x2b0869b0 */ /* not lifted */ 11750 RECOMP_FLAGS_IN(); 11751 ecx = MEM32(esi + 0x8); /* 0x2B086174: mov ecx, dword ptr [esi + 8] */ 11752 eax = ecx + (-0x10); /* 0x2B086177: lea eax, [ecx - 0x10] */ 11753 /* cmp edi, eax */ /* 0x2B08617A: cmp edi, eax */ 11754 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11756 _flag_k = FK_CMP; 11757 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861AB; /* 0x2B08617C: je 0x2b0861ab */ 11758 L_2B08617E: 11759 goto L_2B086183; /* 0x2B08617E: jmp 0x2b086183 */ 11760 L_2B086180: 11761 ecx = MEM32(ebp + (-0x10)); /* 0x2B086180: mov ecx, dword ptr [ebp - 0x10] */ 11762 L_2B086183: 11763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 11764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11765 eax = eax - 0x10u; /* 0x2B086183: sub eax, 0x10 */ 11766 _flag_k = FK_CMP; 11767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 11768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11769 ecx = ecx - 0x10u; /* 0x2B086186: sub ecx, 0x10 */ 11770 _flag_k = FK_CMP; 11771 /* cmp eax, edi */ /* 0x2B086189: cmp eax, edi */ 11772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11774 _flag_k = FK_CMP; 11775 edx = eax; /* 0x2B08618B: mov edx, eax */ 11776 ebx = MEM32(edx); /* 0x2B08618D: mov ebx, dword ptr [edx] */ 11777 MEM32(ebp + (-0x10)) = ecx; /* 0x2B08618F: mov dword ptr [ebp - 0x10], ecx */ 11778 MEM32(ecx) = ebx; /* 0x2B086192: mov dword ptr [ecx], ebx */ 11779 ebx = MEM32(edx + 0x4); /* 0x2B086194: mov ebx, dword ptr [edx + 4] */ 11780 MEM32(ecx + 0x4) = ebx; /* 0x2B086197: mov dword ptr [ecx + 4], ebx */ 11781 ebx = MEM32(edx + 0x8); /* 0x2B08619A: mov ebx, dword ptr [edx + 8] */ 11782 MEM32(ecx + 0x8) = ebx; /* 0x2B08619D: mov dword ptr [ecx + 8], ebx */ 11783 edx = MEM32(edx + 0xC); /* 0x2B0861A0: mov edx, dword ptr [edx + 0xc] */ 11784 MEM32(ecx + 0xC) = edx; /* 0x2B0861A3: mov dword ptr [ecx + 0xc], edx */ 11785 RECOMP_BACKEDGE(); 11786 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086180; /* 0x2B0861A6: jne 0x2b086180 */ 11787 L_2B0861A8: 11788 ebx = MEM32(ebp + (-0x4)); /* 0x2B0861A8: mov ebx, dword ptr [ebp - 4] */ 11789 L_2B0861AB: 11790 eax = edi + 0x10; /* 0x2B0861AB: lea eax, [edi + 0x10] */ 11791 /* cmp edi, eax */ /* 0x2B0861AE: cmp edi, eax */ 11792 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11794 _flag_k = FK_CMP; 11795 MEM32(ebp + (-0x10)) = eax; /* 0x2B0861B0: mov dword ptr [ebp - 0x10], eax */ 11796 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B0861B3: je 0x2b0861d9 */ 11797 L_2B0861B5: 11798 eax = ebx; /* 0x2B0861B5: mov eax, ebx */ 11799 edx = MEM32(eax); /* 0x2B0861B7: mov edx, dword ptr [eax] */ 11800 ecx = edi; /* 0x2B0861B9: mov ecx, edi */ 11801 MEM32(ecx) = edx; /* 0x2B0861BB: mov dword ptr [ecx], edx */ 11802 edx = MEM32(eax + 0x4); /* 0x2B0861BD: mov edx, dword ptr [eax + 4] */ 11803 MEM32(ecx + 0x4) = edx; /* 0x2B0861C0: mov dword ptr [ecx + 4], edx */ 11804 edx = MEM32(eax + 0x8); /* 0x2B0861C3: mov edx, dword ptr [eax + 8] */ 11805 MEM32(ecx + 0x8) = edx; /* 0x2B0861C6: mov dword ptr [ecx + 8], edx */ 11806 eax = MEM32(eax + 0xC); /* 0x2B0861C9: mov eax, dword ptr [eax + 0xc] */ 11807 MEM32(ecx + 0xC) = eax; /* 0x2B0861CC: mov dword ptr [ecx + 0xc], eax */ 11808 eax = MEM32(ebp + (-0x10)); /* 0x2B0861CF: mov eax, dword ptr [ebp - 0x10] */ 11809 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 11810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11811 edi = edi + 0x10u; /* 0x2B0861D2: add edi, 0x10 */ 11812 _flag_k = FK_ADD; 11813 /* cmp edi, eax */ /* 0x2B0861D5: cmp edi, eax */ 11814 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11816 _flag_k = FK_CMP; 11817 RECOMP_BACKEDGE(); 11818 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0861B5; /* 0x2B0861D7: jne 0x2b0861b5 */ 11819 L_2B0861D9: 11820 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 11821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11822 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x2B0861D9: add dword ptr [esi + 8], 0x10 */ 11823 _flag_k = FK_ADD; 11824 L_2B0861DD: 11825 ecx = MEM32(ebx); /* 0x2B0861DD: mov ecx, dword ptr [ebx] */ 11826 MEM32(ebp + (-0x44)) = ecx; /* 0x2B0861DF: mov dword ptr [ebp - 0x44], ecx */ 11827 edx = MEM32(ebx + 0x4); /* 0x2B0861E2: mov edx, dword ptr [ebx + 4] */ 11828 ecx = MEM32(ebp + (-0x8)); /* 0x2B0861E5: mov ecx, dword ptr [ebp - 8] */ 11829 ecx = MEM32(ecx + 0x98); /* 0x2B0861E8: mov ecx, dword ptr [ecx + 0x98] */ 11830 eax = ebp + (-0x44); /* 0x2B0861EE: lea eax, [ebp - 0x44] */ 11831 PUSH32(esp, eax); /* 0x2B0861F1: push eax */ 11832 MEM32(ebp + (-0x40)) = edx; /* 0x2B0861F2: mov dword ptr [ebp - 0x40], edx */ 11833 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0861F5: call dword ptr [0x2b0b58d0] */ 11834 RECOMP_FLAGS_IN(); 11835 edx = MEM32(ebp + (-0x14)); /* 0x2B0861FB: mov edx, dword ptr [ebp - 0x14] */ 11836 eax = MEM32(edx + 0x8); /* 0x2B0861FE: mov eax, dword ptr [edx + 8] */ 11837 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 11838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11839 ebx = ebx + 0x10u; /* 0x2B086201: add ebx, 0x10 */ 11840 _flag_k = FK_ADD; 11841 /* cmp ebx, eax */ /* 0x2B086204: cmp ebx, eax */ 11842 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 11843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11844 _flag_k = FK_CMP; 11845 MEM32(ebp + (-0x4)) = ebx; /* 0x2B086206: mov dword ptr [ebp - 4], ebx */ 11846 RECOMP_BACKEDGE(); 11847 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086035; /* 0x2B086209: jne 0x2b086035 */ 11848 L_2B08620F: 11849 ebx = MEM32(ebp + (-0x8)); /* 0x2B08620F: mov ebx, dword ptr [ebp - 8] */ 11850 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 11851 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 11852 RECOMP_FLAGS_IN(); 11853 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 11854 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 11855 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 11856 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 11857 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 11858 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 11859 RECOMP_FLAGS_IN(); 11860 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 11861 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 11862 RECOMP_FLAGS_IN(); 11863 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 11864 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 11865 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 11866 esp = ebp; /* 0x2B086246: mov esp, ebp */ 11867 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 11868 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 11869 RECOMP_REGS_OUT(); 11870 } 11871 11872 void sub_2B0861DD(void) { 11873 int _fpu_cmp = 0; 11874 uint32_t _cf = 0; 11875 int _df = 1; 11876 uint32_t _flag_k = FK_NONE; 11877 uint32_t _flag_a = 0, _flag_b = 0; 11878 uint32_t _itail_tgt = 0; 11879 RECOMP_REGS_LOCALS 11880 RECOMP_ENTER(0x2B0861DDu); 11881 11882 goto L_2B0861DD; 11883 L_2B086035: 11884 eax = MEM32(esi + 0x8); /* 0x2B086035: mov eax, dword ptr [esi + 8] */ 11885 ecx = MEM32(esi + 0xC); /* 0x2B086038: mov ecx, dword ptr [esi + 0xc] */ 11886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11888 ecx = ecx - eax; /* 0x2B08603B: sub ecx, eax */ 11889 _flag_k = FK_CMP; 11890 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B08603D: sar ecx, 4 */ 11891 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11892 ecx = (uint32_t)((int32_t)ecx >> 4u); 11893 /* cmp ecx, 1 */ /* 0x2B086040: cmp ecx, 1 */ 11894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11896 _flag_k = FK_CMP; 11897 edi = eax; /* 0x2B086043: mov edi, eax */ 11898 if (CMP_AE(_flag_a, _flag_b)) goto L_2B0860FC; /* 0x2B086045: jae 0x2b0860fc */ 11899 L_2B08604B: 11900 edx = MEM32(esi + 0x4); /* 0x2B08604B: mov edx, dword ptr [esi + 4] */ 11901 /* test edx, edx */ /* 0x2B08604E: test edx, edx */ 11902 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11903 _cf = 0; 11904 _flag_k = FK_TEST; 11905 if (TEST_Z(_flag_a, _flag_b)) goto L_2B08605E; /* 0x2B086050: je 0x2b08605e */ 11906 L_2B086052: 11907 ecx = eax; /* 0x2B086052: mov ecx, eax */ 11908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11910 ecx = ecx - edx; /* 0x2B086054: sub ecx, edx */ 11911 _flag_k = FK_CMP; 11912 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086056: sar ecx, 4 */ 11913 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11914 ecx = (uint32_t)((int32_t)ecx >> 4u); 11915 /* cmp ecx, 1 */ /* 0x2B086059: cmp ecx, 1 */ 11916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11918 _flag_k = FK_CMP; 11919 if (CMP_A(_flag_a, _flag_b)) goto L_2B086063; /* 0x2B08605C: ja 0x2b086063 */ 11920 L_2B08605E: 11921 ecx = 1; /* 0x2B08605E: mov ecx, 1 */ 11922 L_2B086063: 11923 /* test edx, edx */ /* 0x2B086063: test edx, edx */ 11924 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11925 _cf = 0; 11926 _flag_k = FK_TEST; 11927 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B08606B; /* 0x2B086065: jne 0x2b08606b */ 11928 L_2B086067: 11929 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11930 eax = 0; /* 0x2B086067: xor eax, eax */ 11931 _cf = 0; 11932 _flag_k = FK_TEST; 11933 goto L_2B086070; /* 0x2B086069: jmp 0x2b086070 */ 11934 L_2B08606B: 11935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11937 eax = eax - edx; /* 0x2B08606B: sub eax, edx */ 11938 _flag_k = FK_CMP; 11939 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x2B08606D: sar eax, 4 */ 11940 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11941 eax = (uint32_t)((int32_t)eax >> 4u); 11942 L_2B086070: 11943 ebx = eax + ecx; /* 0x2B086070: lea ebx, [eax + ecx] */ 11944 /* test ebx, ebx */ /* 0x2B086073: test ebx, ebx */ 11945 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 11946 _cf = 0; 11947 _flag_k = FK_TEST; 11948 eax = ebx; /* 0x2B086075: mov eax, ebx */ 11949 if (TEST_NS(_flag_a, _flag_b)) goto L_2B08607B; /* 0x2B086077: jge 0x2b08607b */ 11950 L_2B086079: 11951 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11952 eax = 0; /* 0x2B086079: xor eax, eax */ 11953 _cf = 0; 11954 _flag_k = FK_TEST; 11955 L_2B08607B: 11956 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B08607B: shl eax, 4 */ 11957 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11958 eax = eax << 4u; /* 0x2B08607B: shl eax, 4 */ 11959 PUSH32(esp, eax); /* 0x2B08607E: push eax */ 11960 RECOMP_ICALL(0x2B0AB212u); /* 0x2B08607F: call 0x2b0ab212 */ /* not lifted */ 11961 RECOMP_FLAGS_IN(); 11962 edx = MEM32(esi + 0x4); /* 0x2B086084: mov edx, dword ptr [esi + 4] */ 11963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11965 esp = esp + 4; /* 0x2B086087: add esp, 4 */ 11966 _flag_k = FK_ADD; 11967 PUSH32(esp, eax); /* 0x2B08608A: push eax */ 11968 PUSH32(esp, edi); /* 0x2B08608B: push edi */ 11969 PUSH32(esp, edx); /* 0x2B08608C: push edx */ 11970 ecx = esi; /* 0x2B08608D: mov ecx, esi */ 11971 MEM32(ebp + (-0x10)) = eax; /* 0x2B08608F: mov dword ptr [ebp - 0x10], eax */ 11972 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086092: call 0x2b0869b0 */ /* not lifted */ 11973 RECOMP_FLAGS_IN(); 11974 ecx = MEM32(ebp + (-0x4)); /* 0x2B086097: mov ecx, dword ptr [ebp - 4] */ 11975 PUSH32(esp, ecx); /* 0x2B08609A: push ecx */ 11976 PUSH32(esp, 1); /* 0x2B08609B: push 1 */ 11977 PUSH32(esp, eax); /* 0x2B08609D: push eax */ 11978 ecx = esi; /* 0x2B08609E: mov ecx, esi */ 11979 MEM32(ebp + (-0xC)) = eax; /* 0x2B0860A0: mov dword ptr [ebp - 0xc], eax */ 11980 RECOMP_ICALL(0x2B0869F0u); /* 0x2B0860A3: call 0x2b0869f0 */ /* not lifted */ 11981 RECOMP_FLAGS_IN(); 11982 edx = MEM32(ebp + (-0xC)); /* 0x2B0860A8: mov edx, dword ptr [ebp - 0xc] */ 11983 eax = MEM32(esi + 0x8); /* 0x2B0860AB: mov eax, dword ptr [esi + 8] */ 11984 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 11985 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11986 edx = edx + 0x10u; /* 0x2B0860AE: add edx, 0x10 */ 11987 _flag_k = FK_ADD; 11988 PUSH32(esp, edx); /* 0x2B0860B1: push edx */ 11989 PUSH32(esp, eax); /* 0x2B0860B2: push eax */ 11990 PUSH32(esp, edi); /* 0x2B0860B3: push edi */ 11991 ecx = esi; /* 0x2B0860B4: mov ecx, esi */ 11992 RECOMP_ICALL(0x2B0869B0u); /* 0x2B0860B6: call 0x2b0869b0 */ /* not lifted */ 11993 RECOMP_FLAGS_IN(); 11994 ecx = MEM32(esi + 0x8); /* 0x2B0860BB: mov ecx, dword ptr [esi + 8] */ 11995 edx = MEM32(esi + 0x4); /* 0x2B0860BE: mov edx, dword ptr [esi + 4] */ 11996 PUSH32(esp, ecx); /* 0x2B0860C1: push ecx */ 11997 PUSH32(esp, edx); /* 0x2B0860C2: push edx */ 11998 ecx = esi; /* 0x2B0860C3: mov ecx, esi */ 11999 RECOMP_ICALL(0x2B0292C0u); /* 0x2B0860C5: call 0x2b0292c0 */ /* not lifted */ 12000 RECOMP_FLAGS_IN(); 12001 eax = MEM32(esi + 0x4); /* 0x2B0860CA: mov eax, dword ptr [esi + 4] */ 12002 PUSH32(esp, eax); /* 0x2B0860CD: push eax */ 12003 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B0860CE: call 0x2b0ab1ba */ /* not lifted */ 12004 RECOMP_FLAGS_IN(); 12005 edi = MEM32(ebp + (-0x10)); /* 0x2B0860D3: mov edi, dword ptr [ebp - 0x10] */ 12006 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x2B0860D6: shl ebx, 4 */ 12007 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12008 ebx = ebx << 4u; /* 0x2B0860D6: shl ebx, 4 */ 12009 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 12010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12011 ebx = ebx + edi; /* 0x2B0860D9: add ebx, edi */ 12012 _flag_k = FK_ADD; 12013 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12014 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12015 esp = esp + 4; /* 0x2B0860DB: add esp, 4 */ 12016 _flag_k = FK_ADD; 12017 ecx = esi; /* 0x2B0860DE: mov ecx, esi */ 12018 MEM32(esi + 0xC) = ebx; /* 0x2B0860E0: mov dword ptr [esi + 0xc], ebx */ 12019 RECOMP_ICALL(0x2B002FC0u); /* 0x2B0860E3: call 0x2b002fc0 */ /* not lifted */ 12020 RECOMP_FLAGS_IN(); 12021 ebx = MEM32(ebp + (-0x4)); /* 0x2B0860E8: mov ebx, dword ptr [ebp - 4] */ 12022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12023 eax = eax + 1; /* 0x2B0860EB: inc eax */ 12024 _flag_k = FK_INC; 12025 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x2B0860EC: shl eax, 4 */ 12026 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12027 eax = eax << 4u; /* 0x2B0860EC: shl eax, 4 */ 12028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12029 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12030 eax = eax + edi; /* 0x2B0860EF: add eax, edi */ 12031 _flag_k = FK_ADD; 12032 MEM32(esi + 0x8) = eax; /* 0x2B0860F1: mov dword ptr [esi + 8], eax */ 12033 MEM32(esi + 0x4) = edi; /* 0x2B0860F4: mov dword ptr [esi + 4], edi */ 12034 goto L_2B0861DD; /* 0x2B0860F7: jmp 0x2b0861dd */ 12035 L_2B0860FC: 12036 ecx = eax; /* 0x2B0860FC: mov ecx, eax */ 12037 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 12038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12039 ecx = ecx - edi; /* 0x2B0860FE: sub ecx, edi */ 12040 _flag_k = FK_CMP; 12041 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x2B086100: sar ecx, 4 */ 12042 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12043 ecx = (uint32_t)((int32_t)ecx >> 4u); 12044 /* cmp ecx, 1 */ /* 0x2B086103: cmp ecx, 1 */ 12045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12047 _flag_k = FK_CMP; 12048 if (CMP_AE(_flag_a, _flag_b)) goto L_2B086164; /* 0x2B086106: jae 0x2b086164 */ 12049 L_2B086108: 12050 ecx = edi + 0x10; /* 0x2B086108: lea ecx, [edi + 0x10] */ 12051 PUSH32(esp, ecx); /* 0x2B08610B: push ecx */ 12052 PUSH32(esp, eax); /* 0x2B08610C: push eax */ 12053 PUSH32(esp, edi); /* 0x2B08610D: push edi */ 12054 ecx = esi; /* 0x2B08610E: mov ecx, esi */ 12055 RECOMP_ICALL(0x2B0869B0u); /* 0x2B086110: call 0x2b0869b0 */ /* not lifted */ 12056 RECOMP_FLAGS_IN(); 12057 eax = MEM32(esi + 0x8); /* 0x2B086115: mov eax, dword ptr [esi + 8] */ 12058 edx = eax; /* 0x2B086118: mov edx, eax */ 12059 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 12060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12061 edx = edx - edi; /* 0x2B08611A: sub edx, edi */ 12062 _flag_k = FK_CMP; 12063 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x2B08611C: sar edx, 4 */ 12064 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12065 edx = (uint32_t)((int32_t)edx >> 4u); 12066 PUSH32(esp, ebx); /* 0x2B08611F: push ebx */ 12067 ecx = 1; /* 0x2B086120: mov ecx, 1 */ 12068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12070 ecx = ecx - edx; /* 0x2B086125: sub ecx, edx */ 12071 _flag_k = FK_CMP; 12072 PUSH32(esp, ecx); /* 0x2B086127: push ecx */ 12073 PUSH32(esp, eax); /* 0x2B086128: push eax */ 12074 ecx = esi; /* 0x2B086129: mov ecx, esi */ 12075 RECOMP_ICALL(0x2B0869F0u); /* 0x2B08612B: call 0x2b0869f0 */ /* not lifted */ 12076 RECOMP_FLAGS_IN(); 12077 eax = MEM32(esi + 0x8); /* 0x2B086130: mov eax, dword ptr [esi + 8] */ 12078 /* cmp edi, eax */ /* 0x2B086133: cmp edi, eax */ 12079 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12081 _flag_k = FK_CMP; 12082 MEM32(ebp + (-0x10)) = eax; /* 0x2B086135: mov dword ptr [ebp - 0x10], eax */ 12083 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B086138: je 0x2b0861d9 */ 12084 L_2B08613E: 12085 edx = ebx; /* 0x2B08613E: mov edx, ebx */ 12086 ecx = MEM32(edx); /* 0x2B086140: mov ecx, dword ptr [edx] */ 12087 eax = edi; /* 0x2B086142: mov eax, edi */ 12088 MEM32(eax) = ecx; /* 0x2B086144: mov dword ptr [eax], ecx */ 12089 ecx = MEM32(edx + 0x4); /* 0x2B086146: mov ecx, dword ptr [edx + 4] */ 12090 MEM32(eax + 0x4) = ecx; /* 0x2B086149: mov dword ptr [eax + 4], ecx */ 12091 ecx = MEM32(edx + 0x8); /* 0x2B08614C: mov ecx, dword ptr [edx + 8] */ 12092 MEM32(eax + 0x8) = ecx; /* 0x2B08614F: mov dword ptr [eax + 8], ecx */ 12093 edx = MEM32(edx + 0xC); /* 0x2B086152: mov edx, dword ptr [edx + 0xc] */ 12094 MEM32(eax + 0xC) = edx; /* 0x2B086155: mov dword ptr [eax + 0xc], edx */ 12095 eax = MEM32(ebp + (-0x10)); /* 0x2B086158: mov eax, dword ptr [ebp - 0x10] */ 12096 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 12097 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12098 edi = edi + 0x10u; /* 0x2B08615B: add edi, 0x10 */ 12099 _flag_k = FK_ADD; 12100 /* cmp edi, eax */ /* 0x2B08615E: cmp edi, eax */ 12101 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12103 _flag_k = FK_CMP; 12104 RECOMP_BACKEDGE(); 12105 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08613E; /* 0x2B086160: jne 0x2b08613e */ 12106 L_2B086162: 12107 goto L_2B0861D9; /* 0x2B086162: jmp 0x2b0861d9 */ 12108 L_2B086164: 12109 PUSH32(esp, eax); /* 0x2B086164: push eax */ 12110 ecx = eax + (-0x10); /* 0x2B086165: lea ecx, [eax - 0x10] */ 12111 PUSH32(esp, eax); /* 0x2B086168: push eax */ 12112 MEM32(ebp + (-0x10)) = ecx; /* 0x2B086169: mov dword ptr [ebp - 0x10], ecx */ 12113 PUSH32(esp, ecx); /* 0x2B08616C: push ecx */ 12114 ecx = esi; /* 0x2B08616D: mov ecx, esi */ 12115 RECOMP_ICALL(0x2B0869B0u); /* 0x2B08616F: call 0x2b0869b0 */ /* not lifted */ 12116 RECOMP_FLAGS_IN(); 12117 ecx = MEM32(esi + 0x8); /* 0x2B086174: mov ecx, dword ptr [esi + 8] */ 12118 eax = ecx + (-0x10); /* 0x2B086177: lea eax, [ecx - 0x10] */ 12119 /* cmp edi, eax */ /* 0x2B08617A: cmp edi, eax */ 12120 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12122 _flag_k = FK_CMP; 12123 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861AB; /* 0x2B08617C: je 0x2b0861ab */ 12124 L_2B08617E: 12125 goto L_2B086183; /* 0x2B08617E: jmp 0x2b086183 */ 12126 L_2B086180: 12127 ecx = MEM32(ebp + (-0x10)); /* 0x2B086180: mov ecx, dword ptr [ebp - 0x10] */ 12128 L_2B086183: 12129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 12130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12131 eax = eax - 0x10u; /* 0x2B086183: sub eax, 0x10 */ 12132 _flag_k = FK_CMP; 12133 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 12134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12135 ecx = ecx - 0x10u; /* 0x2B086186: sub ecx, 0x10 */ 12136 _flag_k = FK_CMP; 12137 /* cmp eax, edi */ /* 0x2B086189: cmp eax, edi */ 12138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12140 _flag_k = FK_CMP; 12141 edx = eax; /* 0x2B08618B: mov edx, eax */ 12142 ebx = MEM32(edx); /* 0x2B08618D: mov ebx, dword ptr [edx] */ 12143 MEM32(ebp + (-0x10)) = ecx; /* 0x2B08618F: mov dword ptr [ebp - 0x10], ecx */ 12144 MEM32(ecx) = ebx; /* 0x2B086192: mov dword ptr [ecx], ebx */ 12145 ebx = MEM32(edx + 0x4); /* 0x2B086194: mov ebx, dword ptr [edx + 4] */ 12146 MEM32(ecx + 0x4) = ebx; /* 0x2B086197: mov dword ptr [ecx + 4], ebx */ 12147 ebx = MEM32(edx + 0x8); /* 0x2B08619A: mov ebx, dword ptr [edx + 8] */ 12148 MEM32(ecx + 0x8) = ebx; /* 0x2B08619D: mov dword ptr [ecx + 8], ebx */ 12149 edx = MEM32(edx + 0xC); /* 0x2B0861A0: mov edx, dword ptr [edx + 0xc] */ 12150 MEM32(ecx + 0xC) = edx; /* 0x2B0861A3: mov dword ptr [ecx + 0xc], edx */ 12151 RECOMP_BACKEDGE(); 12152 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086180; /* 0x2B0861A6: jne 0x2b086180 */ 12153 L_2B0861A8: 12154 ebx = MEM32(ebp + (-0x4)); /* 0x2B0861A8: mov ebx, dword ptr [ebp - 4] */ 12155 L_2B0861AB: 12156 eax = edi + 0x10; /* 0x2B0861AB: lea eax, [edi + 0x10] */ 12157 /* cmp edi, eax */ /* 0x2B0861AE: cmp edi, eax */ 12158 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12160 _flag_k = FK_CMP; 12161 MEM32(ebp + (-0x10)) = eax; /* 0x2B0861B0: mov dword ptr [ebp - 0x10], eax */ 12162 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0861D9; /* 0x2B0861B3: je 0x2b0861d9 */ 12163 L_2B0861B5: 12164 eax = ebx; /* 0x2B0861B5: mov eax, ebx */ 12165 edx = MEM32(eax); /* 0x2B0861B7: mov edx, dword ptr [eax] */ 12166 ecx = edi; /* 0x2B0861B9: mov ecx, edi */ 12167 MEM32(ecx) = edx; /* 0x2B0861BB: mov dword ptr [ecx], edx */ 12168 edx = MEM32(eax + 0x4); /* 0x2B0861BD: mov edx, dword ptr [eax + 4] */ 12169 MEM32(ecx + 0x4) = edx; /* 0x2B0861C0: mov dword ptr [ecx + 4], edx */ 12170 edx = MEM32(eax + 0x8); /* 0x2B0861C3: mov edx, dword ptr [eax + 8] */ 12171 MEM32(ecx + 0x8) = edx; /* 0x2B0861C6: mov dword ptr [ecx + 8], edx */ 12172 eax = MEM32(eax + 0xC); /* 0x2B0861C9: mov eax, dword ptr [eax + 0xc] */ 12173 MEM32(ecx + 0xC) = eax; /* 0x2B0861CC: mov dword ptr [ecx + 0xc], eax */ 12174 eax = MEM32(ebp + (-0x10)); /* 0x2B0861CF: mov eax, dword ptr [ebp - 0x10] */ 12175 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 12176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12177 edi = edi + 0x10u; /* 0x2B0861D2: add edi, 0x10 */ 12178 _flag_k = FK_ADD; 12179 /* cmp edi, eax */ /* 0x2B0861D5: cmp edi, eax */ 12180 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12182 _flag_k = FK_CMP; 12183 RECOMP_BACKEDGE(); 12184 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0861B5; /* 0x2B0861D7: jne 0x2b0861b5 */ 12185 L_2B0861D9: 12186 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 12187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12188 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x2B0861D9: add dword ptr [esi + 8], 0x10 */ 12189 _flag_k = FK_ADD; 12190 L_2B0861DD: 12191 ecx = MEM32(ebx); /* 0x2B0861DD: mov ecx, dword ptr [ebx] */ 12192 MEM32(ebp + (-0x44)) = ecx; /* 0x2B0861DF: mov dword ptr [ebp - 0x44], ecx */ 12193 edx = MEM32(ebx + 0x4); /* 0x2B0861E2: mov edx, dword ptr [ebx + 4] */ 12194 ecx = MEM32(ebp + (-0x8)); /* 0x2B0861E5: mov ecx, dword ptr [ebp - 8] */ 12195 ecx = MEM32(ecx + 0x98); /* 0x2B0861E8: mov ecx, dword ptr [ecx + 0x98] */ 12196 eax = ebp + (-0x44); /* 0x2B0861EE: lea eax, [ebp - 0x44] */ 12197 PUSH32(esp, eax); /* 0x2B0861F1: push eax */ 12198 MEM32(ebp + (-0x40)) = edx; /* 0x2B0861F2: mov dword ptr [ebp - 0x40], edx */ 12199 RECOMP_ICALL(MEM32(0x2B0B58D0)); /* 0x2B0861F5: call dword ptr [0x2b0b58d0] */ 12200 RECOMP_FLAGS_IN(); 12201 edx = MEM32(ebp + (-0x14)); /* 0x2B0861FB: mov edx, dword ptr [ebp - 0x14] */ 12202 eax = MEM32(edx + 0x8); /* 0x2B0861FE: mov eax, dword ptr [edx + 8] */ 12203 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 12204 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12205 ebx = ebx + 0x10u; /* 0x2B086201: add ebx, 0x10 */ 12206 _flag_k = FK_ADD; 12207 /* cmp ebx, eax */ /* 0x2B086204: cmp ebx, eax */ 12208 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 12209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12210 _flag_k = FK_CMP; 12211 MEM32(ebp + (-0x4)) = ebx; /* 0x2B086206: mov dword ptr [ebp - 4], ebx */ 12212 RECOMP_BACKEDGE(); 12213 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086035; /* 0x2B086209: jne 0x2b086035 */ 12214 L_2B08620F: 12215 ebx = MEM32(ebp + (-0x8)); /* 0x2B08620F: mov ebx, dword ptr [ebp - 8] */ 12216 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 12217 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 12218 RECOMP_FLAGS_IN(); 12219 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 12220 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 12221 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 12222 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 12223 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 12224 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 12225 RECOMP_FLAGS_IN(); 12226 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 12227 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 12228 RECOMP_FLAGS_IN(); 12229 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 12230 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 12231 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 12232 esp = ebp; /* 0x2B086246: mov esp, ebp */ 12233 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 12234 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 12235 RECOMP_REGS_OUT(); 12236 } 12237 12238 void sub_2B086212(void) { 12239 int _fpu_cmp = 0; 12240 uint32_t _cf = 0; 12241 int _df = 1; 12242 uint32_t _flag_k = FK_NONE; 12243 uint32_t _flag_a = 0, _flag_b = 0; 12244 uint32_t _itail_tgt = 0; 12245 RECOMP_REGS_LOCALS 12246 RECOMP_ENTER(0x2B086212u); 12247 12248 L_2B086212: 12249 ecx = MEM32(ebx + 0x98); /* 0x2B086212: mov ecx, dword ptr [ebx + 0x98] */ 12250 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086218: call dword ptr [0x2b0b58d4] */ 12251 RECOMP_FLAGS_IN(); 12252 ecx = ebp + (-0x1C); /* 0x2B08621E: lea ecx, [ebp - 0x1c] */ 12253 PUSH32(esp, ecx); /* 0x2B086221: push ecx */ 12254 ecx = MEM32(ebx + 0x98); /* 0x2B086222: mov ecx, dword ptr [ebx + 0x98] */ 12255 MEM32(ebp + (-0x1C)) = 0x18u; /* 0x2B086228: mov dword ptr [ebp - 0x1c], 0x18 */ 12256 MEM32(ebp + (-0x18)) = 0x16u; /* 0x2B08622F: mov dword ptr [ebp - 0x18], 0x16 */ 12257 RECOMP_ICALL(MEM32(0x2B0B58E0)); /* 0x2B086236: call dword ptr [0x2b0b58e0] */ 12258 RECOMP_FLAGS_IN(); 12259 ecx = ebx; /* 0x2B08623C: mov ecx, ebx */ 12260 RECOMP_ICALL(0x2B086390u); /* 0x2B08623E: call 0x2b086390 */ /* not lifted */ 12261 RECOMP_FLAGS_IN(); 12262 edi = POP32_VAL(esp); /* 0x2B086243: pop edi */ 12263 esi = POP32_VAL(esp); /* 0x2B086244: pop esi */ 12264 ebx = POP32_VAL(esp); /* 0x2B086245: pop ebx */ 12265 esp = ebp; /* 0x2B086246: mov esp, ebp */ 12266 ebp = POP32_VAL(esp); /* 0x2B086248: pop ebp */ 12267 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086249: ret */ 12268 RECOMP_REGS_OUT(); 12269 } 12270 12271 void sub_2B086280(void) { 12272 int _fpu_cmp = 0; 12273 uint32_t _cf = 0; 12274 int _df = 1; 12275 uint32_t _flag_k = FK_NONE; 12276 uint32_t _flag_a = 0, _flag_b = 0; 12277 uint32_t _itail_tgt = 0; 12278 RECOMP_REGS_LOCALS 12279 RECOMP_ENTER(0x2B086280u); 12280 12281 L_2B086280: 12282 PUSH32(esp, ebp); /* 0x2B086280: push ebp */ 12283 ebp = esp; /* 0x2B086281: mov ebp, esp */ 12284 PUSH32(esp, ebx); /* 0x2B086283: push ebx */ 12285 ebx = MEM32(0x2B0B5690); /* 0x2B086284: mov ebx, dword ptr [0x2b0b5690] */ 12286 PUSH32(esp, esi); /* 0x2B08628A: push esi */ 12287 PUSH32(esp, edi); /* 0x2B08628B: push edi */ 12288 esi = ecx; /* 0x2B08628C: mov esi, ecx */ 12289 RECOMP_ICALL(ebx); /* 0x2B08628E: call ebx */ 12290 RECOMP_FLAGS_IN(); 12291 ecx = eax; /* 0x2B086290: mov ecx, eax */ 12292 RECOMP_ICALL(MEM32(0x2B0B5688)); /* 0x2B086292: call dword ptr [0x2b0b5688] */ 12293 RECOMP_FLAGS_IN(); 12294 edi = eax; /* 0x2B086298: mov edi, eax */ 12295 RECOMP_ICALL(ebx); /* 0x2B08629A: call ebx */ 12296 RECOMP_FLAGS_IN(); 12297 ecx = eax; /* 0x2B08629C: mov ecx, eax */ 12298 RECOMP_ICALL(MEM32(0x2B0B568C)); /* 0x2B08629E: call dword ptr [0x2b0b568c] */ 12299 RECOMP_FLAGS_IN(); 12300 ebx = MEM32(ebp + 0x8); /* 0x2B0862A4: mov ebx, dword ptr [ebp + 8] */ 12301 /* test ebx, ebx */ /* 0x2B0862A7: test ebx, ebx */ 12302 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 12303 _cf = 0; 12304 _flag_k = FK_TEST; 12305 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0862AD; /* 0x2B0862A9: jge 0x2b0862ad */ 12306 L_2B0862AB: 12307 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12308 ebx = 0; /* 0x2B0862AB: xor ebx, ebx */ 12309 _cf = 0; 12310 _flag_k = FK_TEST; 12311 L_2B0862AD: 12312 ecx = edi + (-0x32); /* 0x2B0862AD: lea ecx, [edi - 0x32] */ 12313 /* cmp ebx, ecx */ /* 0x2B0862B0: cmp ebx, ecx */ 12314 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 12315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12316 _flag_k = FK_CMP; 12317 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0862B6; /* 0x2B0862B2: jle 0x2b0862b6 */ 12318 L_2B0862B4: 12319 ebx = ecx; /* 0x2B0862B4: mov ebx, ecx */ 12320 L_2B0862B6: 12321 edi = MEM32(ebp + 0xC); /* 0x2B0862B6: mov edi, dword ptr [ebp + 0xc] */ 12322 /* test edi, edi */ /* 0x2B0862B9: test edi, edi */ 12323 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 12324 _cf = 0; 12325 _flag_k = FK_TEST; 12326 if (TEST_NS(_flag_a, _flag_b)) goto L_2B0862BF; /* 0x2B0862BB: jge 0x2b0862bf */ 12327 L_2B0862BD: 12328 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12329 edi = 0; /* 0x2B0862BD: xor edi, edi */ 12330 _cf = 0; 12331 _flag_k = FK_TEST; 12332 L_2B0862BF: 12333 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFCEu); 12334 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12335 eax = eax + 0xFFFFFFCEu; /* 0x2B0862BF: add eax, -0x32 */ 12336 _flag_k = FK_ADD; 12337 /* cmp edi, eax */ /* 0x2B0862C2: cmp edi, eax */ 12338 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12340 _flag_k = FK_CMP; 12341 if (CMP_LE(_flag_a, _flag_b)) goto L_2B0862C8; /* 0x2B0862C4: jle 0x2b0862c8 */ 12342 L_2B0862C6: 12343 edi = eax; /* 0x2B0862C6: mov edi, eax */ 12344 L_2B0862C8: 12345 eax = MEM32(0x2B0B6048); /* 0x2B0862C8: mov eax, dword ptr [0x2b0b6048] */ 12346 ecx = MEM32(eax); /* 0x2B0862CD: mov ecx, dword ptr [eax] */ 12347 PUSH32(esp, 1); /* 0x2B0862CF: push 1 */ 12348 PUSH32(esp, 1); /* 0x2B0862D1: push 1 */ 12349 PUSH32(esp, ebx); /* 0x2B0862D3: push ebx */ 12350 PUSH32(esp, 0x2B0ECBB4u); /* 0x2B0862D4: push 0x2b0ecbb4 */ 12351 RECOMP_ICALL(MEM32(0x2B0B604C)); /* 0x2B0862D9: call dword ptr [0x2b0b604c] */ 12352 RECOMP_FLAGS_IN(); 12353 ecx = MEM32(0x2B0B6048); /* 0x2B0862DF: mov ecx, dword ptr [0x2b0b6048] */ 12354 ecx = MEM32(ecx); /* 0x2B0862E5: mov ecx, dword ptr [ecx] */ 12355 PUSH32(esp, 1); /* 0x2B0862E7: push 1 */ 12356 PUSH32(esp, 1); /* 0x2B0862E9: push 1 */ 12357 PUSH32(esp, edi); /* 0x2B0862EB: push edi */ 12358 PUSH32(esp, 0x2B0ECBA0u); /* 0x2B0862EC: push 0x2b0ecba0 */ 12359 RECOMP_ICALL(MEM32(0x2B0B604C)); /* 0x2B0862F1: call dword ptr [0x2b0b604c] */ 12360 RECOMP_FLAGS_IN(); 12361 edx = MEM32(esi + 0x80); /* 0x2B0862F7: mov edx, dword ptr [esi + 0x80] */ 12362 eax = esi + 0x74; /* 0x2B0862FD: lea eax, [esi + 0x74] */ 12363 MEM32(eax) = ebx; /* 0x2B086300: mov dword ptr [eax], ebx */ 12364 MEM32(eax + 0x4) = edi; /* 0x2B086302: mov dword ptr [eax + 4], edi */ 12365 ebx = MEM32(esi + 0x78); /* 0x2B086305: mov ebx, dword ptr [esi + 0x78] */ 12366 ecx = MEM32(eax); /* 0x2B086308: mov ecx, dword ptr [eax] */ 12367 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 12368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12369 edx = edx + ebx; /* 0x2B08630A: add edx, ebx */ 12370 _flag_k = FK_ADD; 12371 edi = esi + 0xB4; /* 0x2B08630C: lea edi, [esi + 0xb4] */ 12372 ebx = esi + 0x118; /* 0x2B086312: lea ebx, [esi + 0x118] */ 12373 MEM32(edi) = ecx; /* 0x2B086318: mov dword ptr [edi], ecx */ 12374 MEM32(ebx) = ecx; /* 0x2B08631A: mov dword ptr [ebx], ecx */ 12375 ecx = MEM32(esi + 0xA4); /* 0x2B08631C: mov ecx, dword ptr [esi + 0xa4] */ 12376 MEM32(esi + 0xB8) = edx; /* 0x2B086322: mov dword ptr [esi + 0xb8], edx */ 12377 ecx = MEM32(ecx + 0x54); /* 0x2B086328: mov ecx, dword ptr [ecx + 0x54] */ 12378 /* cmp ecx, 1 */ /* 0x2B08632B: cmp ecx, 1 */ 12379 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12381 _flag_k = FK_CMP; 12382 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08634F; /* 0x2B08632E: je 0x2b08634f */ 12383 L_2B086330: 12384 /* cmp ecx, 3 */ /* 0x2B086330: cmp ecx, 3 */ 12385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 12386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12387 _flag_k = FK_CMP; 12388 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08634F; /* 0x2B086333: je 0x2b08634f */ 12389 L_2B086335: 12390 /* cmp ecx, 2 */ /* 0x2B086335: cmp ecx, 2 */ 12391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 12392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12393 _flag_k = FK_CMP; 12394 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08633F; /* 0x2B086338: je 0x2b08633f */ 12395 L_2B08633A: 12396 /* cmp ecx, 4 */ /* 0x2B08633A: cmp ecx, 4 */ 12397 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 12398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12399 _flag_k = FK_CMP; 12400 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08634F; /* 0x2B08633D: jne 0x2b08634f */ 12401 L_2B08633F: 12402 ecx = MEM32(esi + 0xC0); /* 0x2B08633F: mov ecx, dword ptr [esi + 0xc0] */ 12403 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12405 ecx = ecx + edx; /* 0x2B086345: add ecx, edx */ 12406 _flag_k = FK_ADD; 12407 MEM32(esi + 0x11C) = ecx; /* 0x2B086347: mov dword ptr [esi + 0x11c], ecx */ 12408 goto L_2B086355; /* 0x2B08634D: jmp 0x2b086355 */ 12409 L_2B08634F: 12410 MEM32(esi + 0x11C) = edx; /* 0x2B08634F: mov dword ptr [esi + 0x11c], edx */ 12411 L_2B086355: 12412 ecx = MEM32(esi + 0x84); /* 0x2B086355: mov ecx, dword ptr [esi + 0x84] */ 12413 PUSH32(esp, eax); /* 0x2B08635B: push eax */ 12414 RECOMP_ICALL(MEM32(0x2B0B5BB8)); /* 0x2B08635C: call dword ptr [0x2b0b5bb8] */ 12415 RECOMP_FLAGS_IN(); 12416 ecx = MEM32(esi + 0xC4); /* 0x2B086362: mov ecx, dword ptr [esi + 0xc4] */ 12417 PUSH32(esp, edi); /* 0x2B086368: push edi */ 12418 edi = MEM32(0x2B0B5BB8); /* 0x2B086369: mov edi, dword ptr [0x2b0b5bb8] */ 12419 RECOMP_ICALL(edi); /* 0x2B08636F: call edi */ 12420 RECOMP_FLAGS_IN(); 12421 ecx = MEM32(esi + 0x128); /* 0x2B086371: mov ecx, dword ptr [esi + 0x128] */ 12422 PUSH32(esp, ebx); /* 0x2B086377: push ebx */ 12423 RECOMP_ICALL(edi); /* 0x2B086378: call edi */ 12424 RECOMP_FLAGS_IN(); 12425 edi = POP32_VAL(esp); /* 0x2B08637A: pop edi */ 12426 esi = POP32_VAL(esp); /* 0x2B08637B: pop esi */ 12427 ebx = POP32_VAL(esp); /* 0x2B08637C: pop ebx */ 12428 ebp = POP32_VAL(esp); /* 0x2B08637D: pop ebp */ 12429 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2B08637E: ret 8 */ 12430 RECOMP_REGS_OUT(); 12431 } 12432 12433 void sub_2B086390(void) { 12434 int _fpu_cmp = 0; 12435 uint32_t _cf = 0; 12436 int _df = 1; 12437 uint32_t _flag_k = FK_NONE; 12438 uint32_t _flag_a = 0, _flag_b = 0; 12439 uint32_t _itail_tgt = 0; 12440 RECOMP_REGS_LOCALS 12441 RECOMP_ENTER(0x2B086390u); 12442 12443 L_2B086390: 12444 PUSH32(esp, esi); /* 0x2B086390: push esi */ 12445 esi = ecx; /* 0x2B086391: mov esi, ecx */ 12446 ecx = MEM32(esi + 0x84); /* 0x2B086393: mov ecx, dword ptr [esi + 0x84] */ 12447 /* test ecx, ecx */ /* 0x2B086399: test ecx, ecx */ 12448 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12449 _cf = 0; 12450 _flag_k = FK_TEST; 12451 PUSH32(esp, edi); /* 0x2B08639B: push edi */ 12452 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0863A4; /* 0x2B08639C: je 0x2b0863a4 */ 12453 L_2B08639E: 12454 RECOMP_ICALL(MEM32(0x2B0B5BDC)); /* 0x2B08639E: call dword ptr [0x2b0b5bdc] */ 12455 RECOMP_FLAGS_IN(); 12456 L_2B0863A4: 12457 eax = MEM32(esi + 0x88); /* 0x2B0863A4: mov eax, dword ptr [esi + 0x88] */ 12458 /* test eax, eax */ /* 0x2B0863AA: test eax, eax */ 12459 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12460 _cf = 0; 12461 _flag_k = FK_TEST; 12462 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0863B2; /* 0x2B0863AC: je 0x2b0863b2 */ 12463 L_2B0863AE: 12464 MEM8(eax + 0x9) = (uint8_t)(1); /* 0x2B0863AE: mov byte ptr [eax + 9], 1 */ 12465 L_2B0863B2: 12466 ecx = MEM32(esi + 0x9C); /* 0x2B0863B2: mov ecx, dword ptr [esi + 0x9c] */ 12467 /* test ecx, ecx */ /* 0x2B0863B8: test ecx, ecx */ 12468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12469 _cf = 0; 12470 _flag_k = FK_TEST; 12471 edi = MEM32(0x2B0B5960); /* 0x2B0863BA: mov edi, dword ptr [0x2b0b5960] */ 12472 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0863C4; /* 0x2B0863C0: je 0x2b0863c4 */ 12473 L_2B0863C2: 12474 RECOMP_ICALL(edi); /* 0x2B0863C2: call edi */ 12475 RECOMP_FLAGS_IN(); 12476 L_2B0863C4: 12477 ecx = MEM32(esi + 0x98); /* 0x2B0863C4: mov ecx, dword ptr [esi + 0x98] */ 12478 /* test ecx, ecx */ /* 0x2B0863CA: test ecx, ecx */ 12479 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12480 _cf = 0; 12481 _flag_k = FK_TEST; 12482 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0863D6; /* 0x2B0863CC: je 0x2b0863d6 */ 12483 L_2B0863CE: 12484 PUSH32(esp, 0); /* 0x2B0863CE: push 0 */ 12485 RECOMP_ICALL(MEM32(0x2B0B58E4)); /* 0x2B0863D0: call dword ptr [0x2b0b58e4] */ 12486 RECOMP_FLAGS_IN(); 12487 L_2B0863D6: 12488 ecx = MEM32(esi + 0xA8); /* 0x2B0863D6: mov ecx, dword ptr [esi + 0xa8] */ 12489 /* test ecx, ecx */ /* 0x2B0863DC: test ecx, ecx */ 12490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12491 _cf = 0; 12492 _flag_k = FK_TEST; 12493 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0863E6; /* 0x2B0863DE: je 0x2b0863e6 */ 12494 L_2B0863E0: 12495 RECOMP_ICALL(MEM32(0x2B0B5860)); /* 0x2B0863E0: call dword ptr [0x2b0b5860] */ 12496 RECOMP_FLAGS_IN(); 12497 L_2B0863E6: 12498 ecx = MEM32(esi + 0xA0); /* 0x2B0863E6: mov ecx, dword ptr [esi + 0xa0] */ 12499 /* test ecx, ecx */ /* 0x2B0863EC: test ecx, ecx */ 12500 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12501 _cf = 0; 12502 _flag_k = FK_TEST; 12503 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0863F2; /* 0x2B0863EE: je 0x2b0863f2 */ 12504 L_2B0863F0: 12505 RECOMP_ICALL(edi); /* 0x2B0863F0: call edi */ 12506 RECOMP_FLAGS_IN(); 12507 L_2B0863F2: 12508 ecx = MEM32(esi + 0xA4); /* 0x2B0863F2: mov ecx, dword ptr [esi + 0xa4] */ 12509 /* test ecx, ecx */ /* 0x2B0863F8: test ecx, ecx */ 12510 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12511 _cf = 0; 12512 _flag_k = FK_TEST; 12513 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0863FE; /* 0x2B0863FA: je 0x2b0863fe */ 12514 L_2B0863FC: 12515 RECOMP_ICALL(edi); /* 0x2B0863FC: call edi */ 12516 RECOMP_FLAGS_IN(); 12517 L_2B0863FE: 12518 edi = POP32_VAL(esp); /* 0x2B0863FE: pop edi */ 12519 esi = POP32_VAL(esp); /* 0x2B0863FF: pop esi */ 12520 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086400: ret */ 12521 RECOMP_REGS_OUT(); 12522 } 12523 12524 void sub_2B086410(void) { 12525 int _fpu_cmp = 0; 12526 uint32_t _cf = 0; 12527 int _df = 1; 12528 uint32_t _flag_k = FK_NONE; 12529 uint32_t _flag_a = 0, _flag_b = 0; 12530 uint32_t _itail_tgt = 0; 12531 RECOMP_REGS_LOCALS 12532 RECOMP_ENTER(0x2B086410u); 12533 12534 L_2B086410: 12535 PUSH32(esp, ebp); /* 0x2B086410: push ebp */ 12536 ebp = esp; /* 0x2B086411: mov ebp, esp */ 12537 ecx = MEM32(ebp + 0x8); /* 0x2B086413: mov ecx, dword ptr [ebp + 8] */ 12538 /* test ecx, ecx */ /* 0x2B086416: test ecx, ecx */ 12539 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12540 _cf = 0; 12541 _flag_k = FK_TEST; 12542 if (TEST_Z(_flag_a, _flag_b)) goto L_2B086437; /* 0x2B086418: je 0x2b086437 */ 12543 L_2B08641A: 12544 eax = MEM32(ecx + 0x74); /* 0x2B08641A: mov eax, dword ptr [ecx + 0x74] */ 12545 PUSH32(esp, esi); /* 0x2B08641D: push esi */ 12546 esi = MEM32(ebp + 0xC); /* 0x2B08641E: mov esi, dword ptr [ebp + 0xc] */ 12547 edx = MEM32(esi); /* 0x2B086421: mov edx, dword ptr [esi] */ 12548 PUSH32(esp, edi); /* 0x2B086423: push edi */ 12549 edi = MEM32(esi + 0x4); /* 0x2B086424: mov edi, dword ptr [esi + 4] */ 12550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12551 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12552 eax = eax + edx; /* 0x2B086427: add eax, edx */ 12553 _flag_k = FK_ADD; 12554 edx = MEM32(ecx + 0x78); /* 0x2B086429: mov edx, dword ptr [ecx + 0x78] */ 12555 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 12556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12557 edx = edx + edi; /* 0x2B08642C: add edx, edi */ 12558 _flag_k = FK_ADD; 12559 PUSH32(esp, edx); /* 0x2B08642E: push edx */ 12560 PUSH32(esp, eax); /* 0x2B08642F: push eax */ 12561 RECOMP_ICALL(0x2B086280u); /* 0x2B086430: call 0x2b086280 */ /* not lifted */ 12562 RECOMP_FLAGS_IN(); 12563 edi = POP32_VAL(esp); /* 0x2B086435: pop edi */ 12564 esi = POP32_VAL(esp); /* 0x2B086436: pop esi */ 12565 L_2B086437: 12566 ebp = POP32_VAL(esp); /* 0x2B086437: pop ebp */ 12567 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086438: ret */ 12568 RECOMP_REGS_OUT(); 12569 } 12570 12571 void sub_2B086440(void) { 12572 int _fpu_cmp = 0; 12573 uint32_t _cf = 0; 12574 int _df = 1; 12575 uint32_t _flag_k = FK_NONE; 12576 uint32_t _flag_a = 0, _flag_b = 0; 12577 uint32_t _itail_tgt = 0; 12578 RECOMP_REGS_LOCALS 12579 RECOMP_ENTER(0x2B086440u); 12580 12581 L_2B086440: 12582 PUSH32(esp, ebp); /* 0x2B086440: push ebp */ 12583 ebp = esp; /* 0x2B086441: mov ebp, esp */ 12584 ecx = MEM32(ebp + 0x8); /* 0x2B086443: mov ecx, dword ptr [ebp + 8] */ 12585 RECOMP_ICALL(0x2B086450u); /* 0x2B086446: call 0x2b086450 */ /* not lifted */ 12586 RECOMP_FLAGS_IN(); 12587 ebp = POP32_VAL(esp); /* 0x2B08644B: pop ebp */ 12588 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B08644C: ret */ 12589 RECOMP_REGS_OUT(); 12590 } 12591 12592 void sub_2B086450(void) { 12593 int _fpu_cmp = 0; 12594 uint32_t _cf = 0; 12595 int _df = 1; 12596 uint32_t _flag_k = FK_NONE; 12597 uint32_t _flag_a = 0, _flag_b = 0; 12598 uint32_t _itail_tgt = 0; 12599 RECOMP_REGS_LOCALS 12600 RECOMP_ENTER(0x2B086450u); 12601 12602 L_2B086450: 12603 PUSH32(esp, ebp); /* 0x2B086450: push ebp */ 12604 ebp = esp; /* 0x2B086451: mov ebp, esp */ 12605 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x84u); 12606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12607 esp = esp - 0x84u; /* 0x2B086453: sub esp, 0x84 */ 12608 _flag_k = FK_CMP; 12609 PUSH32(esp, ebx); /* 0x2B086459: push ebx */ 12610 PUSH32(esp, esi); /* 0x2B08645A: push esi */ 12611 PUSH32(esp, edi); /* 0x2B08645B: push edi */ 12612 edi = MEM32(0x2B0B5D6C); /* 0x2B08645C: mov edi, dword ptr [0x2b0b5d6c] */ 12613 PUSH32(esp, 2); /* 0x2B086462: push 2 */ 12614 PUSH32(esp, 0x36u); /* 0x2B086464: push 0x36 */ 12615 esi = ecx; /* 0x2B086466: mov esi, ecx */ 12616 RECOMP_ICALL(edi); /* 0x2B086468: call edi */ 12617 RECOMP_FLAGS_IN(); 12618 ecx = eax; /* 0x2B08646A: mov ecx, eax */ 12619 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B08646C: call dword ptr [0x2b0b5d70] */ 12620 RECOMP_FLAGS_IN(); 12621 PUSH32(esp, 2); /* 0x2B086472: push 2 */ 12622 PUSH32(esp, 0x3Du); /* 0x2B086474: push 0x3d */ 12623 ebx = eax; /* 0x2B086476: mov ebx, eax */ 12624 RECOMP_ICALL(edi); /* 0x2B086478: call edi */ 12625 RECOMP_FLAGS_IN(); 12626 ecx = eax; /* 0x2B08647A: mov ecx, eax */ 12627 RECOMP_ICALL(MEM32(0x2B0B5D70)); /* 0x2B08647C: call dword ptr [0x2b0b5d70] */ 12628 RECOMP_FLAGS_IN(); 12629 /* cmp eax, ebx */ /* 0x2B086482: cmp eax, ebx */ 12630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12632 _flag_k = FK_CMP; 12633 if (CMP_L(_flag_a, _flag_b)) goto L_2B086597; /* 0x2B086484: jl 0x2b086597 */ 12634 L_2B08648A: 12635 RECOMP_ICALL(edi); /* 0x2B08648A: call edi */ 12636 RECOMP_FLAGS_IN(); 12637 ecx = eax; /* 0x2B08648C: mov ecx, eax */ 12638 RECOMP_ICALL(MEM32(0x2B0B5C94)); /* 0x2B08648E: call dword ptr [0x2b0b5c94] */ 12639 RECOMP_FLAGS_IN(); 12640 /* cmp eax, 2 */ /* 0x2B086494: cmp eax, 2 */ 12641 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 12642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12643 _flag_k = FK_CMP; 12644 if (CMP_GE(_flag_a, _flag_b)) goto L_2B0864C9; /* 0x2B086497: jge 0x2b0864c9 */ 12645 L_2B086499: 12646 PUSH32(esp, 0xCBu); /* 0x2B086499: push 0xcb */ 12647 PUSH32(esp, 0x24u); /* 0x2B08649E: push 0x24 */ 12648 PUSH32(esp, 0); /* 0x2B0864A0: push 0 */ 12649 eax = ebp + (-0x54); /* 0x2B0864A2: lea eax, [ebp - 0x54] */ 12650 PUSH32(esp, eax); /* 0x2B0864A5: push eax */ 12651 ecx = 0x14u; /* 0x2B0864A6: mov ecx, 0x14 */ 12652 esi = 0x2B0ECC84u; /* 0x2B0864AB: mov esi, 0x2b0ecc84 */ 12653 edi = ebp + (-0x54); /* 0x2B0864B0: lea edi, [ebp - 0x54] */ 12654 PUSH32(esp, 0x2B0EE648u); /* 0x2B0864B3: push 0x2b0ee648 */ 12655 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0864B8: 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; } 12656 RECOMP_ICALL(0x2B089BF0u); /* 0x2B0864BA: call 0x2b089bf0 */ /* not lifted */ 12657 RECOMP_FLAGS_IN(); 12658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 12659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12660 esp = esp + 0x14u; /* 0x2B0864BF: add esp, 0x14 */ 12661 _flag_k = FK_ADD; 12662 edi = POP32_VAL(esp); /* 0x2B0864C2: pop edi */ 12663 esi = POP32_VAL(esp); /* 0x2B0864C3: pop esi */ 12664 ebx = POP32_VAL(esp); /* 0x2B0864C4: pop ebx */ 12665 esp = ebp; /* 0x2B0864C5: mov esp, ebp */ 12666 ebp = POP32_VAL(esp); /* 0x2B0864C7: pop ebp */ 12667 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0864C8: ret */ 12668 L_2B0864C9: 12669 ecx = MEM32(esi + 0x70); /* 0x2B0864C9: mov ecx, dword ptr [esi + 0x70] */ 12670 /* test ecx, ecx */ /* 0x2B0864CC: test ecx, ecx */ 12671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12672 _cf = 0; 12673 _flag_k = FK_TEST; 12674 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0864DF; /* 0x2B0864CE: je 0x2b0864df */ 12675 L_2B0864D0: 12676 PUSH32(esp, 0); /* 0x2B0864D0: push 0 */ 12677 RECOMP_ICALL(MEM32(0x2B0B57CC)); /* 0x2B0864D2: call dword ptr [0x2b0b57cc] */ 12678 RECOMP_FLAGS_IN(); 12679 MEM32(esi + 0x70) = 0; /* 0x2B0864D8: mov dword ptr [esi + 0x70], 0 */ 12680 L_2B0864DF: 12681 ecx = MEM32(esi + 0x134); /* 0x2B0864DF: mov ecx, dword ptr [esi + 0x134] */ 12682 edi = MEM32(0x2B0B5AB4); /* 0x2B0864E5: mov edi, dword ptr [0x2b0b5ab4] */ 12683 PUSH32(esp, 0); /* 0x2B0864EB: push 0 */ 12684 RECOMP_ICALL(edi); /* 0x2B0864ED: call edi */ 12685 RECOMP_FLAGS_IN(); 12686 ecx = MEM32(esi + 0x134); /* 0x2B0864EF: mov ecx, dword ptr [esi + 0x134] */ 12687 ebx = MEM32(0x2B0B5960); /* 0x2B0864F5: mov ebx, dword ptr [0x2b0b5960] */ 12688 RECOMP_ICALL(ebx); /* 0x2B0864FB: call ebx */ 12689 RECOMP_FLAGS_IN(); 12690 ecx = MEM32(esi + 0xA0); /* 0x2B0864FD: mov ecx, dword ptr [esi + 0xa0] */ 12691 PUSH32(esp, 0); /* 0x2B086503: push 0 */ 12692 RECOMP_ICALL(edi); /* 0x2B086505: call edi */ 12693 RECOMP_FLAGS_IN(); 12694 ecx = MEM32(esi + 0xA0); /* 0x2B086507: mov ecx, dword ptr [esi + 0xa0] */ 12695 RECOMP_ICALL(ebx); /* 0x2B08650D: call ebx */ 12696 RECOMP_FLAGS_IN(); 12697 ecx = MEM32(esi + 0x98); /* 0x2B08650F: mov ecx, dword ptr [esi + 0x98] */ 12698 MEM8(esi + 0x13D) = (uint8_t)(1); /* 0x2B086515: mov byte ptr [esi + 0x13d], 1 */ 12699 RECOMP_ICALL(MEM32(0x2B0B58CC)); /* 0x2B08651C: call dword ptr [0x2b0b58cc] */ 12700 RECOMP_FLAGS_IN(); 12701 ecx = MEM32(esi + 0x98); /* 0x2B086522: mov ecx, dword ptr [esi + 0x98] */ 12702 RECOMP_ICALL(MEM32(0x2B0B58D4)); /* 0x2B086528: call dword ptr [0x2b0b58d4] */ 12703 RECOMP_FLAGS_IN(); 12704 ecx = MEM32(esi + 0x58); /* 0x2B08652E: mov ecx, dword ptr [esi + 0x58] */ 12705 edx = MEM32(esi + 0x54); /* 0x2B086531: mov edx, dword ptr [esi + 0x54] */ 12706 eax = ecx; /* 0x2B086534: mov eax, ecx */ 12707 /* cmp eax, ecx */ /* 0x2B086536: cmp eax, ecx */ 12708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12710 _flag_k = FK_CMP; 12711 MEM32(ebp + (-0x4)) = edx; /* 0x2B086538: mov dword ptr [ebp - 4], edx */ 12712 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B086565; /* 0x2B08653B: je 0x2b086565 */ 12713 L_2B08653D: 12714 edi = eax; /* 0x2B08653D: mov edi, eax */ 12715 ebx = MEM32(edi); /* 0x2B08653F: mov ebx, dword ptr [edi] */ 12716 MEM32(edx) = ebx; /* 0x2B086541: mov dword ptr [edx], ebx */ 12717 ebx = MEM32(edi + 0x4); /* 0x2B086543: mov ebx, dword ptr [edi + 4] */ 12718 MEM32(edx + 0x4) = ebx; /* 0x2B086546: mov dword ptr [edx + 4], ebx */ 12719 ebx = MEM32(edi + 0x8); /* 0x2B086549: mov ebx, dword ptr [edi + 8] */ 12720 MEM32(edx + 0x8) = ebx; /* 0x2B08654C: mov dword ptr [edx + 8], ebx */ 12721 edi = MEM32(edi + 0xC); /* 0x2B08654F: mov edi, dword ptr [edi + 0xc] */ 12722 MEM32(edx + 0xC) = edi; /* 0x2B086552: mov dword ptr [edx + 0xc], edi */ 12723 edx = MEM32(ebp + (-0x4)); /* 0x2B086555: mov edx, dword ptr [ebp - 4] */ 12724 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 12725 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12726 edx = edx + 0x10u; /* 0x2B086558: add edx, 0x10 */ 12727 _flag_k = FK_ADD; 12728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 12729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12730 eax = eax + 0x10u; /* 0x2B08655B: add eax, 0x10 */ 12731 _flag_k = FK_ADD; 12732 /* cmp eax, ecx */ /* 0x2B08655E: cmp eax, ecx */ 12733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12735 _flag_k = FK_CMP; 12736 MEM32(ebp + (-0x4)) = edx; /* 0x2B086560: mov dword ptr [ebp - 4], edx */ 12737 RECOMP_BACKEDGE(); 12738 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08653D; /* 0x2B086563: jne 0x2b08653d */ 12739 L_2B086565: 12740 ecx = MEM32(esi + 0x58); /* 0x2B086565: mov ecx, dword ptr [esi + 0x58] */ 12741 eax = esi + 0x28; /* 0x2B086568: lea eax, [esi + 0x28] */ 12742 MEM32(ebp + (-0x4)) = ecx; /* 0x2B08656B: mov dword ptr [ebp - 4], ecx */ 12743 MEM32(esi + 0x58) = edx; /* 0x2B08656E: mov dword ptr [esi + 0x58], edx */ 12744 edi = eax; /* 0x2B086571: mov edi, eax */ 12745 MEM32(esi + 0x60) = 0; /* 0x2B086573: mov dword ptr [esi + 0x60], 0 */ 12746 ecx = 0xAu; /* 0x2B08657A: mov ecx, 0xa */ 12747 PUSH32(esp, eax); /* 0x2B08657F: push eax */ 12748 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B086580: 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; } 12749 RECOMP_ICALL(MEM32(0x2B0B5D6C)); /* 0x2B086582: call dword ptr [0x2b0b5d6c] */ 12750 RECOMP_FLAGS_IN(); 12751 ecx = eax; /* 0x2B086588: mov ecx, eax */ 12752 RECOMP_ICALL(MEM32(0x2B0B5C90)); /* 0x2B08658A: call dword ptr [0x2b0b5c90] */ 12753 RECOMP_FLAGS_IN(); 12754 edi = POP32_VAL(esp); /* 0x2B086590: pop edi */ 12755 esi = POP32_VAL(esp); /* 0x2B086591: pop esi */ 12756 ebx = POP32_VAL(esp); /* 0x2B086592: pop ebx */ 12757 esp = ebp; /* 0x2B086593: mov esp, ebp */ 12758 ebp = POP32_VAL(esp); /* 0x2B086595: pop ebp */ 12759 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086596: ret */ 12760 L_2B086597: 12761 PUSH32(esp, ebx); /* 0x2B086597: push ebx */ 12762 PUSH32(esp, 0x2B0ECC34u); /* 0x2B086598: push 0x2b0ecc34 */ 12763 edx = ebp + (-0x84); /* 0x2B08659D: lea edx, [ebp - 0x84] */ 12764 PUSH32(esp, 0x7Eu); /* 0x2B0865A3: push 0x7e */ 12765 PUSH32(esp, edx); /* 0x2B0865A5: push edx */ 12766 RECOMP_ICALL(0x2B012180u); /* 0x2B0865A6: call 0x2b012180 */ /* not lifted */ 12767 RECOMP_FLAGS_IN(); 12768 PUSH32(esp, 0xCBu); /* 0x2B0865AB: push 0xcb */ 12769 PUSH32(esp, 0x24u); /* 0x2B0865B0: push 0x24 */ 12770 PUSH32(esp, 0); /* 0x2B0865B2: push 0 */ 12771 eax = ebp + (-0x84); /* 0x2B0865B4: lea eax, [ebp - 0x84] */ 12772 PUSH32(esp, eax); /* 0x2B0865BA: push eax */ 12773 PUSH32(esp, 0x2B0EE648u); /* 0x2B0865BB: push 0x2b0ee648 */ 12774 RECOMP_ICALL(0x2B089BF0u); /* 0x2B0865C0: call 0x2b089bf0 */ /* not lifted */ 12775 RECOMP_FLAGS_IN(); 12776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 12777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12778 esp = esp + 0x24u; /* 0x2B0865C5: add esp, 0x24 */ 12779 _flag_k = FK_ADD; 12780 edi = POP32_VAL(esp); /* 0x2B0865C8: pop edi */ 12781 esi = POP32_VAL(esp); /* 0x2B0865C9: pop esi */ 12782 ebx = POP32_VAL(esp); /* 0x2B0865CA: pop ebx */ 12783 esp = ebp; /* 0x2B0865CB: mov esp, ebp */ 12784 ebp = POP32_VAL(esp); /* 0x2B0865CD: pop ebp */ 12785 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0865CE: ret */ 12786 RECOMP_REGS_OUT(); 12787 } 12788 12789 void sub_2B0865D0(void) { 12790 int _fpu_cmp = 0; 12791 uint32_t _cf = 0; 12792 int _df = 1; 12793 uint32_t _flag_k = FK_NONE; 12794 uint32_t _flag_a = 0, _flag_b = 0; 12795 uint32_t _itail_tgt = 0; 12796 RECOMP_REGS_LOCALS 12797 RECOMP_ENTER(0x2B0865D0u); 12798 12799 L_2B0865D0: 12800 PUSH32(esp, ebp); /* 0x2B0865D0: push ebp */ 12801 ebp = esp; /* 0x2B0865D1: mov ebp, esp */ 12802 ecx = MEM32(ebp + 0x8); /* 0x2B0865D3: mov ecx, dword ptr [ebp + 8] */ 12803 /* test ecx, ecx */ /* 0x2B0865D6: test ecx, ecx */ 12804 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12805 _cf = 0; 12806 _flag_k = FK_TEST; 12807 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0865DF; /* 0x2B0865D8: je 0x2b0865df */ 12808 L_2B0865DA: 12809 RECOMP_ICALL(0x2B086390u); /* 0x2B0865DA: call 0x2b086390 */ /* not lifted */ 12810 RECOMP_FLAGS_IN(); 12811 L_2B0865DF: 12812 ebp = POP32_VAL(esp); /* 0x2B0865DF: pop ebp */ 12813 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0865E0: ret */ 12814 RECOMP_REGS_OUT(); 12815 } 12816 12817 void sub_2B0865F0(void) { 12818 int _fpu_cmp = 0; 12819 uint32_t _cf = 0; 12820 int _df = 1; 12821 uint32_t _flag_k = FK_NONE; 12822 uint32_t _flag_a = 0, _flag_b = 0; 12823 uint32_t _itail_tgt = 0; 12824 RECOMP_REGS_LOCALS 12825 RECOMP_ENTER(0x2B0865F0u); 12826 12827 L_2B0865F0: 12828 PUSH32(esp, ebp); /* 0x2B0865F0: push ebp */ 12829 ebp = esp; /* 0x2B0865F1: mov ebp, esp */ 12830 ecx = MEM32(ebp + 0x8); /* 0x2B0865F3: mov ecx, dword ptr [ebp + 8] */ 12831 /* test ecx, ecx */ /* 0x2B0865F6: test ecx, ecx */ 12832 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12833 _cf = 0; 12834 _flag_k = FK_TEST; 12835 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0865FF; /* 0x2B0865F8: je 0x2b0865ff */ 12836 L_2B0865FA: 12837 RECOMP_ICALL(0x2B086610u); /* 0x2B0865FA: call 0x2b086610 */ /* not lifted */ 12838 RECOMP_FLAGS_IN(); 12839 L_2B0865FF: 12840 ebp = POP32_VAL(esp); /* 0x2B0865FF: pop ebp */ 12841 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086600: ret */ 12842 RECOMP_REGS_OUT(); 12843 } 12844 12845 void sub_2B086610(void) { 12846 int _fpu_cmp = 0; 12847 uint32_t _cf = 0; 12848 int _df = 1; 12849 uint32_t _flag_k = FK_NONE; 12850 uint32_t _flag_a = 0, _flag_b = 0; 12851 uint32_t _itail_tgt = 0; 12852 RECOMP_REGS_LOCALS 12853 RECOMP_ENTER(0x2B086610u); 12854 12855 L_2B086610: 12856 PUSH32(esp, ebx); /* 0x2B086610: push ebx */ 12857 PUSH32(esp, esi); /* 0x2B086611: push esi */ 12858 esi = ecx; /* 0x2B086612: mov esi, ecx */ 12859 eax = MEM32(esi + 0xA4); /* 0x2B086614: mov eax, dword ptr [esi + 0xa4] */ 12860 eax = MEM32(eax + 0x54); /* 0x2B08661A: mov eax, dword ptr [eax + 0x54] */ 12861 /* cmp eax, 1 */ /* 0x2B08661D: cmp eax, 1 */ 12862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12864 _flag_k = FK_CMP; 12865 PUSH32(esp, edi); /* 0x2B086620: push edi */ 12866 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B086669; /* 0x2B086621: je 0x2b086669 */ 12867 L_2B086623: 12868 /* cmp eax, 3 */ /* 0x2B086623: cmp eax, 3 */ 12869 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 12870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12871 _flag_k = FK_CMP; 12872 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B086669; /* 0x2B086626: je 0x2b086669 */ 12873 L_2B086628: 12874 /* cmp eax, 2 */ /* 0x2B086628: cmp eax, 2 */ 12875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 12876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12877 _flag_k = FK_CMP; 12878 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B086632; /* 0x2B08662B: je 0x2b086632 */ 12879 L_2B08662D: 12880 /* cmp eax, 4 */ /* 0x2B08662D: cmp eax, 4 */ 12881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 12882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12883 _flag_k = FK_CMP; 12884 if (CMP_NE(_flag_a, _flag_b)) goto L_2B086669; /* 0x2B086630: jne 0x2b086669 */ 12885 L_2B086632: 12886 ecx = MEM32(esi + 0xC4); /* 0x2B086632: mov ecx, dword ptr [esi + 0xc4] */ 12887 RECOMP_ICALL(MEM32(0x2B0B5BAC)); /* 0x2B086638: call dword ptr [0x2b0b5bac] */ 12888 RECOMP_FLAGS_IN(); 12889 eax = MEM32(esi + 0xCC); /* 0x2B08663E: mov eax, dword ptr [esi + 0xcc] */ 12890 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2B086644: mov byte ptr [eax + 8], 0 */ 12891 edi = esi + 0xD0; /* 0x2B086648: lea edi, [esi + 0xd0] */ 12892 ebx = 6; /* 0x2B08664E: mov ebx, 6 */ 12893 L_2B086653: 12894 ecx = MEM32(edi); /* 0x2B086653: mov ecx, dword ptr [edi] */ 12895 RECOMP_ICALL(MEM32(0x2B0B5870)); /* 0x2B086655: call dword ptr [0x2b0b5870] */ 12896 RECOMP_FLAGS_IN(); 12897 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 12898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12899 edi = edi + 4; /* 0x2B08665B: add edi, 4 */ 12900 _flag_k = FK_ADD; 12901 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 12902 ebx = ebx - 1; /* 0x2B08665E: dec ebx */ 12903 _flag_k = FK_DEC; 12904 RECOMP_BACKEDGE(); 12905 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B086653; /* 0x2B08665F: jne 0x2b086653 */ 12906 L_2B086661: 12907 ecx = MEM32(esi + 0xB8); /* 0x2B086661: mov ecx, dword ptr [esi + 0xb8] */ 12908 goto L_2B0866A4; /* 0x2B086667: jmp 0x2b0866a4 */ 12909 L_2B086669: 12910 ecx = MEM32(esi + 0xC4); /* 0x2B086669: mov ecx, dword ptr [esi + 0xc4] */ 12911 RECOMP_ICALL(MEM32(0x2B0B5BB4)); /* 0x2B08666F: call dword ptr [0x2b0b5bb4] */ 12912 RECOMP_FLAGS_IN(); 12913 eax = MEM32(esi + 0xCC); /* 0x2B086675: mov eax, dword ptr [esi + 0xcc] */ 12914 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2B08667B: mov byte ptr [eax + 8], 1 */ 12915 edi = esi + 0xD0; /* 0x2B08667F: lea edi, [esi + 0xd0] */ 12916 ebx = 6; /* 0x2B086685: mov ebx, 6 */ 12917 L_2B08668A: 12918 ecx = MEM32(edi); /* 0x2B08668A: mov ecx, dword ptr [edi] */ 12919 RECOMP_ICALL(MEM32(0x2B0B5864)); /* 0x2B08668C: call dword ptr [0x2b0b5864] */ 12920 RECOMP_FLAGS_IN(); 12921 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 12922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12923 edi = edi + 4; /* 0x2B086692: add edi, 4 */ 12924 _flag_k = FK_ADD; 12925 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 12926 ebx = ebx - 1; /* 0x2B086695: dec ebx */ 12927 _flag_k = FK_DEC; 12928 RECOMP_BACKEDGE(); 12929 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B08668A; /* 0x2B086696: jne 0x2b08668a */ 12930 L_2B086698: 12931 ecx = MEM32(esi + 0xC0); /* 0x2B086698: mov ecx, dword ptr [esi + 0xc0] */ 12932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xB8)); 12933 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12934 ecx = ecx + MEM32(esi + 0xB8); /* 0x2B08669E: add ecx, dword ptr [esi + 0xb8] */ 12935 _flag_k = FK_ADD; 12936 L_2B0866A4: 12937 edx = esi + 0x118; /* 0x2B0866A4: lea edx, [esi + 0x118] */ 12938 MEM32(esi + 0x11C) = ecx; /* 0x2B0866AA: mov dword ptr [esi + 0x11c], ecx */ 12939 ecx = MEM32(esi + 0x128); /* 0x2B0866B0: mov ecx, dword ptr [esi + 0x128] */ 12940 PUSH32(esp, edx); /* 0x2B0866B6: push edx */ 12941 RECOMP_ICALL(MEM32(0x2B0B5BB8)); /* 0x2B0866B7: call dword ptr [0x2b0b5bb8] */ 12942 RECOMP_FLAGS_IN(); 12943 edi = POP32_VAL(esp); /* 0x2B0866BD: pop edi */ 12944 esi = POP32_VAL(esp); /* 0x2B0866BE: pop esi */ 12945 ebx = POP32_VAL(esp); /* 0x2B0866BF: pop ebx */ 12946 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0866C0: ret */ 12947 RECOMP_REGS_OUT(); 12948 } 12949 12950 void sub_2B0866D0(void) { 12951 int _fpu_cmp = 0; 12952 uint32_t _cf = 0; 12953 int _df = 1; 12954 uint32_t _flag_k = FK_NONE; 12955 uint32_t _flag_a = 0, _flag_b = 0; 12956 uint32_t _itail_tgt = 0; 12957 RECOMP_REGS_LOCALS 12958 RECOMP_ENTER(0x2B0866D0u); 12959 12960 L_2B0866D0: 12961 PUSH32(esp, ebp); /* 0x2B0866D0: push ebp */ 12962 ebp = esp; /* 0x2B0866D1: mov ebp, esp */ 12963 eax = MEM32(ebp + 0x10); /* 0x2B0866D3: mov eax, dword ptr [ebp + 0x10] */ 12964 ecx = MEM32(ebp + 0x8); /* 0x2B0866D6: mov ecx, dword ptr [ebp + 8] */ 12965 fp_push(*(double*)ADDR(ecx)); /* 0x2B0866D9: fld qword ptr [ecx] */ 12966 PUSH32(esp, eax); /* 0x2B0866DB: push eax */ 12967 eax = MEM32(ebp + 0xC); /* 0x2B0866DC: mov eax, dword ptr [ebp + 0xc] */ 12968 edx = MEM32(eax); /* 0x2B0866DF: mov edx, dword ptr [eax] */ 12969 PUSH32(esp, ecx); /* 0x2B0866E1: push ecx */ 12970 ecx = MEM32(eax + 0x4); /* 0x2B0866E2: mov ecx, dword ptr [eax + 4] */ 12971 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x2B0866E5: fstp dword ptr [esp] */ 12972 PUSH32(esp, edx); /* 0x2B0866E8: push edx */ 12973 RECOMP_ICALL(0x2B0866F0u); /* 0x2B0866E9: call 0x2b0866f0 */ /* not lifted */ 12974 RECOMP_FLAGS_IN(); 12975 ebp = POP32_VAL(esp); /* 0x2B0866EE: pop ebp */ 12976 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0866EF: ret */ 12977 RECOMP_REGS_OUT(); 12978 } 12979 12980 void sub_2B0866F0(void) { 12981 int _fpu_cmp = 0; 12982 uint32_t _cf = 0; 12983 int _df = 1; 12984 uint32_t _flag_k = FK_NONE; 12985 uint32_t _flag_a = 0, _flag_b = 0; 12986 uint32_t _itail_tgt = 0; 12987 RECOMP_REGS_LOCALS 12988 RECOMP_ENTER(0x2B0866F0u); 12989 12990 L_2B0866F0: 12991 PUSH32(esp, ebp); /* 0x2B0866F0: push ebp */ 12992 L_2B0866F1: 12993 ebp = esp; /* 0x2B0866F1: mov ebp, esp */ 12994 L_2B0866F3: 12995 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x2B0866F3: fld dword ptr [ebp + 0xc] */ 12996 L_2B0866F6: 12997 PUSH32(esp, esi); /* 0x2B0866F6: push esi */ 12998 L_2B0866F7: 12999 _st[0] *= (double)*(float*)ADDR(0x2B0B71A0); /* 0x2B0866F7: fmul dword ptr [0x2b0b71a0] */ 13000 L_2B0866FD: 13001 esi = ecx; /* 0x2B0866FD: mov esi, ecx */ 13002 L_2B0866FF: 13003 _st[0] += (double)*(float*)ADDR(0x2B0B6548); /* 0x2B0866FF: fadd dword ptr [0x2b0b6548] */ 13004 L_2B086705: 13005 RECOMP_ICALL(0x2B0AB220u); /* 0x2B086705: call 0x2b0ab220 */ /* not lifted */ 13006 RECOMP_FLAGS_IN(); 13007 L_2B08670A: 13008 ecx = MEM32(ebp + 0x8); /* 0x2B08670A: mov ecx, dword ptr [ebp + 8] */ 13009 L_2B08670D: 13010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x64u); 13011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13012 eax = eax - 0x64u; /* 0x2B08670D: sub eax, 0x64 */ 13013 _flag_k = FK_CMP; 13014 L_2B086710: 13015 /* cmp ecx, 6 */ /* 0x2B086710: cmp ecx, 6 */ 13016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(6); 13017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13018 _flag_k = FK_CMP; 13019 L_2B086713: 13020 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_2B08678F; /* 0x2B086713: ja 0x2b08678f */ 13021 L_2B086715: 13022 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x2B086794)); goto _ljump; } 13023 L_2B08671C: 13024 fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x2B08671C: fld dword ptr [ebp + 0xc] */ 13025 L_2B08671F: 13026 _st[0] *= (double)*(float*)ADDR(0x2B0B63B8); /* 0x2B08671F: fmul dword ptr [0x2b0b63b8] */ 13027 L_2B086725: 13028 RECOMP_ICALL(0x2B0AB220u); /* 0x2B086725: call 0x2b0ab220 */ /* not lifted */ 13029 RECOMP_FLAGS_IN(); 13030 L_2B08672A: 13031 /* cmp eax, MEM32(esi) */ /* 0x2B08672A: cmp eax, dword ptr [esi] */ 13032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi)); 13033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13034 _flag_k = FK_CMP; 13035 L_2B08672C: 13036 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x2B08672C: setne cl */ 13037 L_2B08672F: 13038 MEM32(esi) = eax; /* 0x2B08672F: mov dword ptr [esi], eax */ 13039 L_2B086731: 13040 goto L_2B086773; /* 0x2B086731: jmp 0x2b086773 */ 13041 L_2B086733: 13042 /* cmp eax, MEM32(esi + 0x4) */ /* 0x2B086733: cmp eax, dword ptr [esi + 4] */ 13043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13045 _flag_k = FK_CMP; 13046 L_2B086736: 13047 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x2B086736: setne cl */ 13048 L_2B086739: 13049 MEM32(esi + 0x4) = eax; /* 0x2B086739: mov dword ptr [esi + 4], eax */ 13050 L_2B08673C: 13051 goto L_2B086773; /* 0x2B08673C: jmp 0x2b086773 */ 13052 L_2B08673E: 13053 /* cmp eax, MEM32(esi + 0x8) */ /* 0x2B08673E: cmp eax, dword ptr [esi + 8] */ 13054 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13056 _flag_k = FK_CMP; 13057 L_2B086741: 13058 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x2B086741: setne cl */ 13059 L_2B086744: 13060 MEM32(esi + 0x8) = eax; /* 0x2B086744: mov dword ptr [esi + 8], eax */ 13061 L_2B086747: 13062 goto L_2B086773; /* 0x2B086747: jmp 0x2b086773 */ 13063 L_2B086749: 13064 /* cmp eax, MEM32(esi + 0xC) */ /* 0x2B086749: cmp eax, dword ptr [esi + 0xc] */ 13065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 13066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13067 _flag_k = FK_CMP; 13068 L_2B08674C: 13069 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x2B08674C: setne cl */ 13070 L_2B08674F: 13071 MEM32(esi + 0xC) = eax; /* 0x2B08674F: mov dword ptr [esi + 0xc], eax */ 13072 L_2B086752: 13073 goto L_2B086773; /* 0x2B086752: jmp 0x2b086773 */ 13074 L_2B086754: 13075 /* cmp eax, MEM32(esi + 0x10) */ /* 0x2B086754: cmp eax, dword ptr [esi + 0x10] */ 13076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x10)); 13077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13078 _flag_k = FK_CMP; 13079 L_2B086757: 13080 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x2B086757: setne cl */ 13081 L_2B08675A: 13082 MEM32(esi + 0x10) = eax; /* 0x2B08675A: mov dword ptr [esi + 0x10], eax */ 13083 L_2B08675D: 13084 goto L_2B086773; /* 0x2B08675D: jmp 0x2b086773 */ 13085 L_2B08675F: 13086 /* cmp eax, MEM32(esi + 0x14) */ /* 0x2B08675F: cmp eax, dword ptr [esi + 0x14] */ 13087 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x14)); 13088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13089 _flag_k = FK_CMP; 13090 L_2B086762: 13091 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x2B086762: setne cl */ 13092 L_2B086765: 13093 MEM32(esi + 0x14) = eax; /* 0x2B086765: mov dword ptr [esi + 0x14], eax */ 13094 L_2B086768: 13095 goto L_2B086773; /* 0x2B086768: jmp 0x2b086773 */ 13096 L_2B08676A: 13097 /* cmp eax, MEM32(esi + 0x18) */ /* 0x2B08676A: cmp eax, dword ptr [esi + 0x18] */ 13098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x18)); 13099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13100 _flag_k = FK_CMP; 13101 L_2B08676D: 13102 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x2B08676D: setne cl */ 13103 L_2B086770: 13104 MEM32(esi + 0x18) = eax; /* 0x2B086770: mov dword ptr [esi + 0x18], eax */ 13105 L_2B086773: 13106 /* test LO8(ecx), LO8(ecx) */ /* 0x2B086773: test cl, cl */ 13107 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 13108 _cf = 0; 13109 _flag_k = FK_NARROW(FK_TEST, 24); 13110 L_2B086775: 13111 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2B08678F; /* 0x2B086775: je 0x2b08678f */ 13112 L_2B086777: 13113 SET_LO8(eax, MEM8(esi + 0x13D)); /* 0x2B086777: mov al, byte ptr [esi + 0x13d] */ 13114 L_2B08677D: 13115 /* test LO8(eax), LO8(eax) */ /* 0x2B08677D: test al, al */ 13116 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13117 _cf = 0; 13118 _flag_k = FK_NARROW(FK_TEST, 24); 13119 L_2B08677F: 13120 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2B08678F; /* 0x2B08677F: jne 0x2b08678f */ 13121 L_2B086781: 13122 ecx = MEM32(esi + 0xA0); /* 0x2B086781: mov ecx, dword ptr [esi + 0xa0] */ 13123 L_2B086787: 13124 PUSH32(esp, 1); /* 0x2B086787: push 1 */ 13125 L_2B086789: 13126 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B086789: call dword ptr [0x2b0b5ab4] */ 13127 RECOMP_FLAGS_IN(); 13128 L_2B08678F: 13129 esi = POP32_VAL(esp); /* 0x2B08678F: pop esi */ 13130 L_2B086790: 13131 ebp = POP32_VAL(esp); /* 0x2B086790: pop ebp */ 13132 L_2B086791: 13133 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B086791: ret 0xc */ 13134 _ljump: 13135 switch (_itail_tgt) { 13136 case 0x2B0866F0u: goto L_2B0866F0; 13137 case 0x2B0866F1u: goto L_2B0866F1; 13138 case 0x2B0866F3u: goto L_2B0866F3; 13139 case 0x2B0866F6u: goto L_2B0866F6; 13140 case 0x2B0866F7u: goto L_2B0866F7; 13141 case 0x2B0866FDu: goto L_2B0866FD; 13142 case 0x2B0866FFu: goto L_2B0866FF; 13143 case 0x2B086705u: goto L_2B086705; 13144 case 0x2B08670Au: goto L_2B08670A; 13145 case 0x2B08670Du: goto L_2B08670D; 13146 case 0x2B086710u: goto L_2B086710; 13147 case 0x2B086713u: goto L_2B086713; 13148 case 0x2B086715u: goto L_2B086715; 13149 case 0x2B08671Cu: goto L_2B08671C; 13150 case 0x2B08671Fu: goto L_2B08671F; 13151 case 0x2B086725u: goto L_2B086725; 13152 case 0x2B08672Au: goto L_2B08672A; 13153 case 0x2B08672Cu: goto L_2B08672C; 13154 case 0x2B08672Fu: goto L_2B08672F; 13155 case 0x2B086731u: goto L_2B086731; 13156 case 0x2B086733u: goto L_2B086733; 13157 case 0x2B086736u: goto L_2B086736; 13158 case 0x2B086739u: goto L_2B086739; 13159 case 0x2B08673Cu: goto L_2B08673C; 13160 case 0x2B08673Eu: goto L_2B08673E; 13161 case 0x2B086741u: goto L_2B086741; 13162 case 0x2B086744u: goto L_2B086744; 13163 case 0x2B086747u: goto L_2B086747; 13164 case 0x2B086749u: goto L_2B086749; 13165 case 0x2B08674Cu: goto L_2B08674C; 13166 case 0x2B08674Fu: goto L_2B08674F; 13167 case 0x2B086752u: goto L_2B086752; 13168 case 0x2B086754u: goto L_2B086754; 13169 case 0x2B086757u: goto L_2B086757; 13170 case 0x2B08675Au: goto L_2B08675A; 13171 case 0x2B08675Du: goto L_2B08675D; 13172 case 0x2B08675Fu: goto L_2B08675F; 13173 case 0x2B086762u: goto L_2B086762; 13174 case 0x2B086765u: goto L_2B086765; 13175 case 0x2B086768u: goto L_2B086768; 13176 case 0x2B08676Au: goto L_2B08676A; 13177 case 0x2B08676Du: goto L_2B08676D; 13178 case 0x2B086770u: goto L_2B086770; 13179 case 0x2B086773u: goto L_2B086773; 13180 case 0x2B086775u: goto L_2B086775; 13181 case 0x2B086777u: goto L_2B086777; 13182 case 0x2B08677Du: goto L_2B08677D; 13183 case 0x2B08677Fu: goto L_2B08677F; 13184 case 0x2B086781u: goto L_2B086781; 13185 case 0x2B086787u: goto L_2B086787; 13186 case 0x2B086789u: goto L_2B086789; 13187 case 0x2B08678Fu: goto L_2B08678F; 13188 case 0x2B086790u: goto L_2B086790; 13189 case 0x2B086791u: goto L_2B086791; 13190 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 13191 } 13192 RECOMP_REGS_OUT(); 13193 } 13194 13195 void sub_2B0867B0(void) { 13196 int _fpu_cmp = 0; 13197 uint32_t _cf = 0; 13198 int _df = 1; 13199 uint32_t _flag_k = FK_NONE; 13200 uint32_t _flag_a = 0, _flag_b = 0; 13201 uint32_t _itail_tgt = 0; 13202 RECOMP_REGS_LOCALS 13203 RECOMP_ENTER(0x2B0867B0u); 13204 13205 L_2B0867B0: 13206 PUSH32(esp, ebp); /* 0x2B0867B0: push ebp */ 13207 ebp = esp; /* 0x2B0867B1: mov ebp, esp */ 13208 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13210 esp = esp - 8; /* 0x2B0867B3: sub esp, 8 */ 13211 _flag_k = FK_CMP; 13212 PUSH32(esp, ebx); /* 0x2B0867B6: push ebx */ 13213 ebx = MEM32(ebp + 0x8); /* 0x2B0867B7: mov ebx, dword ptr [ebp + 8] */ 13214 PUSH32(esp, esi); /* 0x2B0867BA: push esi */ 13215 esi = ecx; /* 0x2B0867BB: mov esi, ecx */ 13216 ecx = MEM32(esi + 0x70); /* 0x2B0867BD: mov ecx, dword ptr [esi + 0x70] */ 13217 /* cmp ebx, ecx */ /* 0x2B0867C0: cmp ebx, ecx */ 13218 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 13219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13220 _flag_k = FK_CMP; 13221 PUSH32(esp, edi); /* 0x2B0867C2: push edi */ 13222 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B086868; /* 0x2B0867C3: je 0x2b086868 */ 13223 L_2B0867C9: 13224 /* test ecx, ecx */ /* 0x2B0867C9: test ecx, ecx */ 13225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13226 _cf = 0; 13227 _flag_k = FK_TEST; 13228 edi = MEM32(0x2B0B57CC); /* 0x2B0867CB: mov edi, dword ptr [0x2b0b57cc] */ 13229 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0867D7; /* 0x2B0867D1: je 0x2b0867d7 */ 13230 L_2B0867D3: 13231 PUSH32(esp, 0); /* 0x2B0867D3: push 0 */ 13232 RECOMP_ICALL(edi); /* 0x2B0867D5: call edi */ 13233 RECOMP_FLAGS_IN(); 13234 L_2B0867D7: 13235 /* test ebx, ebx */ /* 0x2B0867D7: test ebx, ebx */ 13236 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 13237 _cf = 0; 13238 _flag_k = FK_TEST; 13239 MEM32(esi + 0x70) = ebx; /* 0x2B0867D9: mov dword ptr [esi + 0x70], ebx */ 13240 if (TEST_Z(_flag_a, _flag_b)) goto L_2B086828; /* 0x2B0867DC: je 0x2b086828 */ 13241 L_2B0867DE: 13242 PUSH32(esp, 1); /* 0x2B0867DE: push 1 */ 13243 ecx = ebx; /* 0x2B0867E0: mov ecx, ebx */ 13244 RECOMP_ICALL(edi); /* 0x2B0867E2: call edi */ 13245 RECOMP_FLAGS_IN(); 13246 eax = ebx + 0x54; /* 0x2B0867E4: lea eax, [ebx + 0x54] */ 13247 ecx = ebp + (-0x8); /* 0x2B0867E7: lea ecx, [ebp - 8] */ 13248 /* cmp ecx, eax */ /* 0x2B0867EA: cmp ecx, eax */ 13249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13251 _flag_k = FK_CMP; 13252 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0867F5; /* 0x2B0867EC: je 0x2b0867f5 */ 13253 L_2B0867EE: 13254 edi = MEM32(eax); /* 0x2B0867EE: mov edi, dword ptr [eax] */ 13255 edx = MEM32(eax + 0x4); /* 0x2B0867F0: mov edx, dword ptr [eax + 4] */ 13256 goto L_2B0867FB; /* 0x2B0867F3: jmp 0x2b0867fb */ 13257 L_2B0867F5: 13258 edx = MEM32(ebp + (-0x4)); /* 0x2B0867F5: mov edx, dword ptr [ebp - 4] */ 13259 edi = MEM32(ebp + (-0x8)); /* 0x2B0867F8: mov edi, dword ptr [ebp - 8] */ 13260 L_2B0867FB: 13261 eax = MEM32(esi + 0x54); /* 0x2B0867FB: mov eax, dword ptr [esi + 0x54] */ 13262 ecx = MEM32(esi + 0x58); /* 0x2B0867FE: mov ecx, dword ptr [esi + 0x58] */ 13263 /* cmp eax, ecx */ /* 0x2B086801: cmp eax, ecx */ 13264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13266 _flag_k = FK_CMP; 13267 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08681A; /* 0x2B086803: je 0x2b08681a */ 13268 L_2B086805: 13269 /* cmp MEM32(eax + 0x4), edx */ /* 0x2B086805: cmp dword ptr [eax + 4], edx */ 13270 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx); 13271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13272 _flag_k = FK_CMP; 13273 if (CMP_NE(_flag_a, _flag_b)) goto L_2B08680E; /* 0x2B086808: jne 0x2b08680e */ 13274 L_2B08680A: 13275 /* cmp MEM32(eax), edi */ /* 0x2B08680A: cmp dword ptr [eax], edi */ 13276 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 13277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13278 _flag_k = FK_CMP; 13279 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B086817; /* 0x2B08680C: je 0x2b086817 */ 13280 L_2B08680E: 13281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 13282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13283 eax = eax + 0x10u; /* 0x2B08680E: add eax, 0x10 */ 13284 _flag_k = FK_ADD; 13285 /* cmp eax, ecx */ /* 0x2B086811: cmp eax, ecx */ 13286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13288 _flag_k = FK_CMP; 13289 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B08681A; /* 0x2B086813: je 0x2b08681a */ 13290 L_2B086815: 13291 RECOMP_BACKEDGE(); 13292 goto L_2B086805; /* 0x2B086815: jmp 0x2b086805 */ 13293 L_2B086817: 13294 MEM32(esi + 0x60) = eax; /* 0x2B086817: mov dword ptr [esi + 0x60], eax */ 13295 L_2B08681A: 13296 ecx = MEM32(esi + 0x134); /* 0x2B08681A: mov ecx, dword ptr [esi + 0x134] */ 13297 PUSH32(esp, 1); /* 0x2B086820: push 1 */ 13298 RECOMP_ICALL(MEM32(0x2B0B5AB4)); /* 0x2B086822: call dword ptr [0x2b0b5ab4] */ 13299 RECOMP_FLAGS_IN(); 13300 L_2B086828: 13301 ecx = esi; /* 0x2B086828: mov ecx, esi */ 13302 RECOMP_ICALL(0x2B086390u); /* 0x2B08682A: call 0x2b086390 */ /* not lifted */ 13303 RECOMP_FLAGS_IN(); 13304 PUSH32(esp, 0x1Au); /* 0x2B08682F: push 0x1a */ 13305 RECOMP_ICALL(MEM32(0x2B0B5AAC)); /* 0x2B086831: call dword ptr [0x2b0b5aac] */ 13306 RECOMP_FLAGS_IN(); 13307 ecx = eax; /* 0x2B086837: mov ecx, eax */ 13308 RECOMP_ICALL(MEM32(0x2B0B5AA8)); /* 0x2B086839: call dword ptr [0x2b0b5aa8] */ 13309 RECOMP_FLAGS_IN(); 13310 edx = ebp + (-0x8); /* 0x2B08683F: lea edx, [ebp - 8] */ 13311 PUSH32(esp, edx); /* 0x2B086842: push edx */ 13312 ecx = ebx; /* 0x2B086843: mov ecx, ebx */ 13313 esi = eax; /* 0x2B086845: mov esi, eax */ 13314 RECOMP_ICALL(MEM32(0x2B0B57D0)); /* 0x2B086847: call dword ptr [0x2b0b57d0] */ 13315 RECOMP_FLAGS_IN(); 13316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13318 esp = esp - 8; /* 0x2B08684D: sub esp, 8 */ 13319 _flag_k = FK_CMP; 13320 ecx = esp; /* 0x2B086850: mov ecx, esp */ 13321 /* cmp ecx, eax */ /* 0x2B086852: cmp ecx, eax */ 13322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13324 _flag_k = FK_CMP; 13325 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B086860; /* 0x2B086854: je 0x2b086860 */ 13326 L_2B086856: 13327 edx = MEM32(eax); /* 0x2B086856: mov edx, dword ptr [eax] */ 13328 MEM32(ecx) = edx; /* 0x2B086858: mov dword ptr [ecx], edx */ 13329 eax = MEM32(eax + 0x4); /* 0x2B08685A: mov eax, dword ptr [eax + 4] */ 13330 MEM32(ecx + 0x4) = eax; /* 0x2B08685D: mov dword ptr [ecx + 4], eax */ 13331 L_2B086860: 13332 ecx = esi; /* 0x2B086860: mov ecx, esi */ 13333 RECOMP_ICALL(MEM32(0x2B0B5824)); /* 0x2B086862: call dword ptr [0x2b0b5824] */ 13334 RECOMP_FLAGS_IN(); 13335 L_2B086868: 13336 edi = POP32_VAL(esp); /* 0x2B086868: pop edi */ 13337 esi = POP32_VAL(esp); /* 0x2B086869: pop esi */ 13338 ebx = POP32_VAL(esp); /* 0x2B08686A: pop ebx */ 13339 esp = ebp; /* 0x2B08686B: mov esp, ebp */ 13340 ebp = POP32_VAL(esp); /* 0x2B08686D: pop ebp */ 13341 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B08686E: ret 4 */ 13342 RECOMP_REGS_OUT(); 13343 } 13344 13345 void sub_2B086880(void) { 13346 int _fpu_cmp = 0; 13347 uint32_t _cf = 0; 13348 int _df = 1; 13349 uint32_t _flag_k = FK_NONE; 13350 uint32_t _flag_a = 0, _flag_b = 0; 13351 uint32_t _itail_tgt = 0; 13352 RECOMP_REGS_LOCALS 13353 RECOMP_ENTER(0x2B086880u); 13354 13355 L_2B086880: 13356 PUSH32(esp, ebp); /* 0x2B086880: push ebp */ 13357 ebp = esp; /* 0x2B086881: mov ebp, esp */ 13358 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u); 13359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13360 esp = esp - 0x58u; /* 0x2B086883: sub esp, 0x58 */ 13361 _flag_k = FK_CMP; 13362 PUSH32(esp, esi); /* 0x2B086886: push esi */ 13363 esi = MEM32(ebp + 0x8); /* 0x2B086887: mov esi, dword ptr [ebp + 8] */ 13364 eax = MEM32(esi + 0x60); /* 0x2B08688A: mov eax, dword ptr [esi + 0x60] */ 13365 /* test eax, eax */ /* 0x2B08688D: test eax, eax */ 13366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13367 _cf = 0; 13368 _flag_k = FK_TEST; 13369 PUSH32(esp, edi); /* 0x2B08688F: push edi */ 13370 if (TEST_Z(_flag_a, _flag_b)) goto L_2B0868F9; /* 0x2B086890: je 0x2b0868f9 */ 13371 L_2B086892: 13372 SET_LO8(eax, MEM8(esi + 0x13C)); /* 0x2B086892: mov al, byte ptr [esi + 0x13c] */ 13373 /* test LO8(eax), LO8(eax) */ /* 0x2B086898: test al, al */ 13374 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13375 _cf = 0; 13376 _flag_k = FK_NARROW(FK_TEST, 24); 13377 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B0868F9; /* 0x2B08689A: jne 0x2b0868f9 */ 13378 L_2B08689C: 13379 edi = MEM32(0x2B0B5D6C); /* 0x2B08689C: mov edi, dword ptr [0x2b0b5d6c] */ 13380 RECOMP_ICALL(edi); /* 0x2B0868A2: call edi */ 13381 RECOMP_FLAGS_IN(); 13382 ecx = eax; /* 0x2B0868A4: mov ecx, eax */ 13383 RECOMP_ICALL(MEM32(0x2B0B5C94)); /* 0x2B0868A6: call dword ptr [0x2b0b5c94] */ 13384 RECOMP_FLAGS_IN(); 13385 /* cmp eax, 2 */ /* 0x2B0868AC: cmp eax, 2 */ 13386 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 13387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13388 _flag_k = FK_CMP; 13389 if (CMP_GE(_flag_a, _flag_b)) goto L_2B0868E0; /* 0x2B0868AF: jge 0x2b0868e0 */ 13390 L_2B0868B1: 13391 PUSH32(esp, 0xCBu); /* 0x2B0868B1: push 0xcb */ 13392 PUSH32(esp, 0x24u); /* 0x2B0868B6: push 0x24 */ 13393 PUSH32(esp, 0); /* 0x2B0868B8: push 0 */ 13394 eax = ebp + (-0x58); /* 0x2B0868BA: lea eax, [ebp - 0x58] */ 13395 PUSH32(esp, eax); /* 0x2B0868BD: push eax */ 13396 ecx = 0x14u; /* 0x2B0868BE: mov ecx, 0x14 */ 13397 esi = 0x2B0ECC84u; /* 0x2B0868C3: mov esi, 0x2b0ecc84 */ 13398 edi = ebp + (-0x58); /* 0x2B0868C8: lea edi, [ebp - 0x58] */ 13399 PUSH32(esp, 0x2B0EE648u); /* 0x2B0868CB: push 0x2b0ee648 */ 13400 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0868D0: 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; } 13401 RECOMP_ICALL(0x2B089BF0u); /* 0x2B0868D2: call 0x2b089bf0 */ /* not lifted */ 13402 RECOMP_FLAGS_IN(); 13403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 13404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13405 esp = esp + 0x14u; /* 0x2B0868D7: add esp, 0x14 */ 13406 _flag_k = FK_ADD; 13407 edi = POP32_VAL(esp); /* 0x2B0868DA: pop edi */ 13408 esi = POP32_VAL(esp); /* 0x2B0868DB: pop esi */ 13409 esp = ebp; /* 0x2B0868DC: mov esp, ebp */ 13410 ebp = POP32_VAL(esp); /* 0x2B0868DE: pop ebp */ 13411 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B0868DF: ret */ 13412 L_2B0868E0: 13413 edx = MEM32(esi + 0x60); /* 0x2B0868E0: mov edx, dword ptr [esi + 0x60] */ 13414 ecx = esi + 0x28; /* 0x2B0868E3: lea ecx, [esi + 0x28] */ 13415 PUSH32(esp, ecx); /* 0x2B0868E6: push ecx */ 13416 PUSH32(esp, edx); /* 0x2B0868E7: push edx */ 13417 RECOMP_ICALL(edi); /* 0x2B0868E8: call edi */ 13418 RECOMP_FLAGS_IN(); 13419 ecx = eax; /* 0x2B0868EA: mov ecx, eax */ 13420 RECOMP_ICALL(MEM32(0x2B0B5C98)); /* 0x2B0868EC: call dword ptr [0x2b0b5c98] */ 13421 RECOMP_FLAGS_IN(); 13422 MEM8(esi + 0x13C) = (uint8_t)(1); /* 0x2B0868F2: mov byte ptr [esi + 0x13c], 1 */ 13423 L_2B0868F9: 13424 esi = MEM32(0x2B0B53CC); /* 0x2B0868F9: mov esi, dword ptr [0x2b0b53cc] */ 13425 eax = ebp + (-0x8); /* 0x2B0868FF: lea eax, [ebp - 8] */ 13426 PUSH32(esp, eax); /* 0x2B086902: push eax */ 13427 PUSH32(esp, 0xABu); /* 0x2B086903: push 0xab */ 13428 PUSH32(esp, 0x24u); /* 0x2B086908: push 0x24 */ 13429 MEM32(ebp + (-0x8)) = 0; /* 0x2B08690A: mov dword ptr [ebp - 8], 0 */ 13430 MEM32(ebp + (-0x4)) = 0; /* 0x2B086911: mov dword ptr [ebp - 4], 0 */ 13431 RECOMP_ICALL(esi); /* 0x2B086918: call esi */ 13432 RECOMP_FLAGS_IN(); 13433 ecx = eax; /* 0x2B08691A: mov ecx, eax */ 13434 RECOMP_ICALL(MEM32(0x2B0B5380)); /* 0x2B08691C: call dword ptr [0x2b0b5380] */ 13435 RECOMP_FLAGS_IN(); 13436 PUSH32(esp, 0); /* 0x2B086922: push 0 */ 13437 RECOMP_ICALL(esi); /* 0x2B086924: call esi */ 13438 RECOMP_FLAGS_IN(); 13439 ecx = eax; /* 0x2B086926: mov ecx, eax */ 13440 RECOMP_ICALL(MEM32(0x2B0B53B0)); /* 0x2B086928: call dword ptr [0x2b0b53b0] */ 13441 RECOMP_FLAGS_IN(); 13442 edi = POP32_VAL(esp); /* 0x2B08692E: pop edi */ 13443 esi = POP32_VAL(esp); /* 0x2B08692F: pop esi */ 13444 esp = ebp; /* 0x2B086930: mov esp, ebp */ 13445 ebp = POP32_VAL(esp); /* 0x2B086932: pop ebp */ 13446 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086933: ret */ 13447 RECOMP_REGS_OUT(); 13448 } 13449 13450 void sub_2B086940(void) { 13451 int _fpu_cmp = 0; 13452 uint32_t _cf = 0; 13453 int _df = 1; 13454 uint32_t _flag_k = FK_NONE; 13455 uint32_t _flag_a = 0, _flag_b = 0; 13456 uint32_t _itail_tgt = 0; 13457 RECOMP_REGS_LOCALS 13458 RECOMP_ENTER(0x2B086940u); 13459 13460 L_2B086940: 13461 PUSH32(esp, ebp); /* 0x2B086940: push ebp */ 13462 ebp = esp; /* 0x2B086941: mov ebp, esp */ 13463 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13465 esp = esp - 8; /* 0x2B086943: sub esp, 8 */ 13466 _flag_k = FK_CMP; 13467 PUSH32(esp, esi); /* 0x2B086946: push esi */ 13468 esi = MEM32(0x2B0B53CC); /* 0x2B086947: mov esi, dword ptr [0x2b0b53cc] */ 13469 eax = ebp + (-0x8); /* 0x2B08694D: lea eax, [ebp - 8] */ 13470 PUSH32(esp, eax); /* 0x2B086950: push eax */ 13471 PUSH32(esp, 0xABu); /* 0x2B086951: push 0xab */ 13472 PUSH32(esp, 0x24u); /* 0x2B086956: push 0x24 */ 13473 MEM32(ebp + (-0x8)) = 0; /* 0x2B086958: mov dword ptr [ebp - 8], 0 */ 13474 MEM32(ebp + (-0x4)) = 0; /* 0x2B08695F: mov dword ptr [ebp - 4], 0 */ 13475 RECOMP_ICALL(esi); /* 0x2B086966: call esi */ 13476 RECOMP_FLAGS_IN(); 13477 ecx = eax; /* 0x2B086968: mov ecx, eax */ 13478 RECOMP_ICALL(MEM32(0x2B0B5380)); /* 0x2B08696A: call dword ptr [0x2b0b5380] */ 13479 RECOMP_FLAGS_IN(); 13480 PUSH32(esp, 0); /* 0x2B086970: push 0 */ 13481 RECOMP_ICALL(esi); /* 0x2B086972: call esi */ 13482 RECOMP_FLAGS_IN(); 13483 ecx = eax; /* 0x2B086974: mov ecx, eax */ 13484 RECOMP_ICALL(MEM32(0x2B0B53B0)); /* 0x2B086976: call dword ptr [0x2b0b53b0] */ 13485 RECOMP_FLAGS_IN(); 13486 esi = POP32_VAL(esp); /* 0x2B08697C: pop esi */ 13487 esp = ebp; /* 0x2B08697D: mov esp, ebp */ 13488 ebp = POP32_VAL(esp); /* 0x2B08697F: pop ebp */ 13489 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086980: ret */ 13490 RECOMP_REGS_OUT(); 13491 } 13492 13493 void sub_2B086990(void) { 13494 int _fpu_cmp = 0; 13495 uint32_t _cf = 0; 13496 int _df = 1; 13497 uint32_t _flag_k = FK_NONE; 13498 uint32_t _flag_a = 0, _flag_b = 0; 13499 uint32_t _itail_tgt = 0; 13500 RECOMP_REGS_LOCALS 13501 RECOMP_ENTER(0x2B086990u); 13502 13503 L_2B086990: 13504 PUSH32(esp, ebp); /* 0x2B086990: push ebp */ 13505 ebp = esp; /* 0x2B086991: mov ebp, esp */ 13506 PUSH32(esp, esi); /* 0x2B086993: push esi */ 13507 esi = MEM32(ebp + 0x8); /* 0x2B086994: mov esi, dword ptr [ebp + 8] */ 13508 PUSH32(esp, edi); /* 0x2B086997: push edi */ 13509 edi = ecx + 0x28; /* 0x2B086998: lea edi, [ecx + 0x28] */ 13510 ecx = 0xAu; /* 0x2B08699B: mov ecx, 0xa */ 13511 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2B0869A0: 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; } 13512 edi = POP32_VAL(esp); /* 0x2B0869A2: pop edi */ 13513 esi = POP32_VAL(esp); /* 0x2B0869A3: pop esi */ 13514 ebp = POP32_VAL(esp); /* 0x2B0869A4: pop ebp */ 13515 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2B0869A5: ret 4 */ 13516 RECOMP_REGS_OUT(); 13517 } 13518 13519 void sub_2B0869B0(void) { 13520 int _fpu_cmp = 0; 13521 uint32_t _cf = 0; 13522 int _df = 1; 13523 uint32_t _flag_k = FK_NONE; 13524 uint32_t _flag_a = 0, _flag_b = 0; 13525 uint32_t _itail_tgt = 0; 13526 RECOMP_REGS_LOCALS 13527 RECOMP_ENTER(0x2B0869B0u); 13528 13529 L_2B0869B0: 13530 PUSH32(esp, ebp); /* 0x2B0869B0: push ebp */ 13531 ebp = esp; /* 0x2B0869B1: mov ebp, esp */ 13532 PUSH32(esp, ebx); /* 0x2B0869B3: push ebx */ 13533 ebx = MEM32(ebp + 0xC); /* 0x2B0869B4: mov ebx, dword ptr [ebp + 0xc] */ 13534 PUSH32(esp, esi); /* 0x2B0869B7: push esi */ 13535 esi = MEM32(ebp + 0x8); /* 0x2B0869B8: mov esi, dword ptr [ebp + 8] */ 13536 /* cmp esi, ebx */ /* 0x2B0869BB: cmp esi, ebx */ 13537 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 13538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13539 _flag_k = FK_CMP; 13540 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B0869E0; /* 0x2B0869BD: je 0x2b0869e0 */ 13541 L_2B0869BF: 13542 PUSH32(esp, edi); /* 0x2B0869BF: push edi */ 13543 edi = MEM32(ebp + 0x10); /* 0x2B0869C0: mov edi, dword ptr [ebp + 0x10] */ 13544 L_2B0869C3: 13545 PUSH32(esp, esi); /* 0x2B0869C3: push esi */ 13546 PUSH32(esp, edi); /* 0x2B0869C4: push edi */ 13547 RECOMP_ICALL(0x2B086A20u); /* 0x2B0869C5: call 0x2b086a20 */ /* not lifted */ 13548 RECOMP_FLAGS_IN(); 13549 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 13550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13551 esi = esi + 0x10u; /* 0x2B0869CA: add esi, 0x10 */ 13552 _flag_k = FK_ADD; 13553 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13555 esp = esp + 8; /* 0x2B0869CD: add esp, 8 */ 13556 _flag_k = FK_ADD; 13557 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 13558 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13559 edi = edi + 0x10u; /* 0x2B0869D0: add edi, 0x10 */ 13560 _flag_k = FK_ADD; 13561 /* cmp esi, ebx */ /* 0x2B0869D3: cmp esi, ebx */ 13562 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 13563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13564 _flag_k = FK_CMP; 13565 RECOMP_BACKEDGE(); 13566 if (CMP_NE(_flag_a, _flag_b)) goto L_2B0869C3; /* 0x2B0869D5: jne 0x2b0869c3 */ 13567 L_2B0869D7: 13568 eax = edi; /* 0x2B0869D7: mov eax, edi */ 13569 edi = POP32_VAL(esp); /* 0x2B0869D9: pop edi */ 13570 esi = POP32_VAL(esp); /* 0x2B0869DA: pop esi */ 13571 ebx = POP32_VAL(esp); /* 0x2B0869DB: pop ebx */ 13572 ebp = POP32_VAL(esp); /* 0x2B0869DC: pop ebp */ 13573 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B0869DD: ret 0xc */ 13574 L_2B0869E0: 13575 eax = MEM32(ebp + 0x10); /* 0x2B0869E0: mov eax, dword ptr [ebp + 0x10] */ 13576 esi = POP32_VAL(esp); /* 0x2B0869E3: pop esi */ 13577 ebx = POP32_VAL(esp); /* 0x2B0869E4: pop ebx */ 13578 ebp = POP32_VAL(esp); /* 0x2B0869E5: pop ebp */ 13579 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B0869E6: ret 0xc */ 13580 RECOMP_REGS_OUT(); 13581 } 13582 13583 void sub_2B0869F0(void) { 13584 int _fpu_cmp = 0; 13585 uint32_t _cf = 0; 13586 int _df = 1; 13587 uint32_t _flag_k = FK_NONE; 13588 uint32_t _flag_a = 0, _flag_b = 0; 13589 uint32_t _itail_tgt = 0; 13590 RECOMP_REGS_LOCALS 13591 RECOMP_ENTER(0x2B0869F0u); 13592 13593 L_2B0869F0: 13594 PUSH32(esp, ebp); /* 0x2B0869F0: push ebp */ 13595 ebp = esp; /* 0x2B0869F1: mov ebp, esp */ 13596 PUSH32(esp, edi); /* 0x2B0869F3: push edi */ 13597 edi = MEM32(ebp + 0xC); /* 0x2B0869F4: mov edi, dword ptr [ebp + 0xc] */ 13598 /* test edi, edi */ /* 0x2B0869F7: test edi, edi */ 13599 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13600 _cf = 0; 13601 _flag_k = FK_TEST; 13602 if (TEST_Z(_flag_a, _flag_b)) goto L_2B086A15; /* 0x2B0869F9: jbe 0x2b086a15 */ 13603 L_2B0869FB: 13604 PUSH32(esp, ebx); /* 0x2B0869FB: push ebx */ 13605 ebx = MEM32(ebp + 0x10); /* 0x2B0869FC: mov ebx, dword ptr [ebp + 0x10] */ 13606 PUSH32(esp, esi); /* 0x2B0869FF: push esi */ 13607 esi = MEM32(ebp + 0x8); /* 0x2B086A00: mov esi, dword ptr [ebp + 8] */ 13608 L_2B086A03: 13609 PUSH32(esp, ebx); /* 0x2B086A03: push ebx */ 13610 PUSH32(esp, esi); /* 0x2B086A04: push esi */ 13611 RECOMP_ICALL(0x2B086A20u); /* 0x2B086A05: call 0x2b086a20 */ /* not lifted */ 13612 RECOMP_FLAGS_IN(); 13613 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13615 esp = esp + 8; /* 0x2B086A0A: add esp, 8 */ 13616 _flag_k = FK_ADD; 13617 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 13618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13619 esi = esi + 0x10u; /* 0x2B086A0D: add esi, 0x10 */ 13620 _flag_k = FK_ADD; 13621 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 13622 edi = edi - 1; /* 0x2B086A10: dec edi */ 13623 _flag_k = FK_DEC; 13624 RECOMP_BACKEDGE(); 13625 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2B086A03; /* 0x2B086A11: jne 0x2b086a03 */ 13626 L_2B086A13: 13627 esi = POP32_VAL(esp); /* 0x2B086A13: pop esi */ 13628 ebx = POP32_VAL(esp); /* 0x2B086A14: pop ebx */ 13629 L_2B086A15: 13630 edi = POP32_VAL(esp); /* 0x2B086A15: pop edi */ 13631 ebp = POP32_VAL(esp); /* 0x2B086A16: pop ebp */ 13632 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2B086A17: ret 0xc */ 13633 RECOMP_REGS_OUT(); 13634 } 13635 13636 void sub_2B086A20(void) { 13637 int _fpu_cmp = 0; 13638 uint32_t _cf = 0; 13639 int _df = 1; 13640 uint32_t _flag_k = FK_NONE; 13641 uint32_t _flag_a = 0, _flag_b = 0; 13642 uint32_t _itail_tgt = 0; 13643 RECOMP_REGS_LOCALS 13644 RECOMP_ENTER(0x2B086A20u); 13645 13646 L_2B086A20: 13647 PUSH32(esp, ebp); /* 0x2B086A20: push ebp */ 13648 ebp = esp; /* 0x2B086A21: mov ebp, esp */ 13649 eax = MEM32(ebp + 0x8); /* 0x2B086A23: mov eax, dword ptr [ebp + 8] */ 13650 /* test eax, eax */ /* 0x2B086A26: test eax, eax */ 13651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13652 _cf = 0; 13653 _flag_k = FK_TEST; 13654 if (TEST_Z(_flag_a, _flag_b)) goto L_2B086A47; /* 0x2B086A28: je 0x2b086a47 */ 13655 L_2B086A2A: 13656 ecx = MEM32(ebp + 0xC); /* 0x2B086A2A: mov ecx, dword ptr [ebp + 0xc] */ 13657 /* cmp eax, ecx */ /* 0x2B086A2D: cmp eax, ecx */ 13658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13660 _flag_k = FK_CMP; 13661 if (CMP_EQ(_flag_a, _flag_b)) goto L_2B086A3B; /* 0x2B086A2F: je 0x2b086a3b */ 13662 L_2B086A31: 13663 edx = MEM32(ecx); /* 0x2B086A31: mov edx, dword ptr [ecx] */ 13664 MEM32(eax) = edx; /* 0x2B086A33: mov dword ptr [eax], edx */ 13665 edx = MEM32(ecx + 0x4); /* 0x2B086A35: mov edx, dword ptr [ecx + 4] */ 13666 MEM32(eax + 0x4) = edx; /* 0x2B086A38: mov dword ptr [eax + 4], edx */ 13667 L_2B086A3B: 13668 edx = MEM32(ecx + 0x8); /* 0x2B086A3B: mov edx, dword ptr [ecx + 8] */ 13669 MEM32(eax + 0x8) = edx; /* 0x2B086A3E: mov dword ptr [eax + 8], edx */ 13670 ecx = MEM32(ecx + 0xC); /* 0x2B086A41: mov ecx, dword ptr [ecx + 0xc] */ 13671 MEM32(eax + 0xC) = ecx; /* 0x2B086A44: mov dword ptr [eax + 0xc], ecx */ 13672 L_2B086A47: 13673 ebp = POP32_VAL(esp); /* 0x2B086A47: pop ebp */ 13674 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086A48: ret */ 13675 RECOMP_REGS_OUT(); 13676 } 13677 13678 void sub_2B086A50(void) { 13679 int _fpu_cmp = 0; 13680 uint32_t _cf = 0; 13681 int _df = 1; 13682 uint32_t _flag_k = FK_NONE; 13683 uint32_t _flag_a = 0, _flag_b = 0; 13684 uint32_t _itail_tgt = 0; 13685 RECOMP_REGS_LOCALS 13686 RECOMP_ENTER(0x2B086A50u); 13687 13688 L_2B086A50: 13689 MEM32(0x2B0EF0D8) = 0; /* 0x2B086A50: mov dword ptr [0x2b0ef0d8], 0 */ 13690 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086A5A: ret */ 13691 RECOMP_REGS_OUT(); 13692 } 13693 13694 void sub_2B086A60(void) { 13695 int _fpu_cmp = 0; 13696 uint32_t _cf = 0; 13697 int _df = 1; 13698 uint32_t _flag_k = FK_NONE; 13699 uint32_t _flag_a = 0, _flag_b = 0; 13700 uint32_t _itail_tgt = 0; 13701 RECOMP_REGS_LOCALS 13702 RECOMP_ENTER(0x2B086A60u); 13703 13704 L_2B086A60: 13705 PUSH32(esp, ebp); /* 0x2B086A60: push ebp */ 13706 ebp = esp; /* 0x2B086A61: mov ebp, esp */ 13707 PUSH32(esp, 0xFFFFFFFFu); /* 0x2B086A63: push -1 */ 13708 PUSH32(esp, 0x2B0B22ABu); /* 0x2B086A65: push 0x2b0b22ab */ 13709 eax = MEM32(FS_BASE + (0)); /* 0x2B086A6A: mov eax, dword ptr fs:[0] */ 13710 PUSH32(esp, eax); /* 0x2B086A70: push eax */ 13711 MEM32(FS_BASE + (0)) = esp; /* 0x2B086A71: mov dword ptr fs:[0], esp */ 13712 PUSH32(esp, ecx); /* 0x2B086A78: push ecx */ 13713 eax = MEM32(0x2B0EF0D8); /* 0x2B086A79: mov eax, dword ptr [0x2b0ef0d8] */ 13714 /* test eax, eax */ /* 0x2B086A7E: test eax, eax */ 13715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13716 _cf = 0; 13717 _flag_k = FK_TEST; 13718 if (TEST_NZ(_flag_a, _flag_b)) goto L_2B086ABB; /* 0x2B086A80: jne 0x2b086abb */ 13719 L_2B086A82: 13720 PUSH32(esp, 1); /* 0x2B086A82: push 1 */ 13721 RECOMP_ICALL(0x2B0AB212u); /* 0x2B086A84: call 0x2b0ab212 */ /* not lifted */ 13722 RECOMP_FLAGS_IN(); 13723 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13724 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13725 esp = esp + 4; /* 0x2B086A89: add esp, 4 */ 13726 _flag_k = FK_ADD; 13727 MEM32(ebp + (-0x10)) = eax; /* 0x2B086A8C: mov dword ptr [ebp - 0x10], eax */ 13728 /* test eax, eax */ /* 0x2B086A8F: test eax, eax */ 13729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13730 _cf = 0; 13731 _flag_k = FK_TEST; 13732 MEM32(ebp + (-0x4)) = 0; /* 0x2B086A91: mov dword ptr [ebp - 4], 0 */ 13733 if (TEST_Z(_flag_a, _flag_b)) goto L_2B086AB4; /* 0x2B086A98: je 0x2b086ab4 */ 13734 L_2B086A9A: 13735 ecx = eax; /* 0x2B086A9A: mov ecx, eax */ 13736 RECOMP_ICALL(0x2B086AE0u); /* 0x2B086A9C: call 0x2b086ae0 */ /* not lifted */ 13737 RECOMP_FLAGS_IN(); 13738 MEM32(0x2B0EF0D8) = eax; /* 0x2B086AA1: mov dword ptr [0x2b0ef0d8], eax */ 13739 ecx = MEM32(ebp + (-0xC)); /* 0x2B086AA6: mov ecx, dword ptr [ebp - 0xc] */ 13740 MEM32(FS_BASE + (0)) = ecx; /* 0x2B086AA9: mov dword ptr fs:[0], ecx */ 13741 esp = ebp; /* 0x2B086AB0: mov esp, ebp */ 13742 ebp = POP32_VAL(esp); /* 0x2B086AB2: pop ebp */ 13743 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086AB3: ret */ 13744 L_2B086AB4: 13745 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13746 eax = 0; /* 0x2B086AB4: xor eax, eax */ 13747 _cf = 0; 13748 _flag_k = FK_TEST; 13749 MEM32(0x2B0EF0D8) = eax; /* 0x2B086AB6: mov dword ptr [0x2b0ef0d8], eax */ 13750 L_2B086ABB: 13751 ecx = MEM32(ebp + (-0xC)); /* 0x2B086ABB: mov ecx, dword ptr [ebp - 0xc] */ 13752 MEM32(FS_BASE + (0)) = ecx; /* 0x2B086ABE: mov dword ptr fs:[0], ecx */ 13753 esp = ebp; /* 0x2B086AC5: mov esp, ebp */ 13754 ebp = POP32_VAL(esp); /* 0x2B086AC7: pop ebp */ 13755 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086AC8: ret */ 13756 RECOMP_REGS_OUT(); 13757 } 13758 13759 void sub_2B086AD0(void) { 13760 int _fpu_cmp = 0; 13761 uint32_t _cf = 0; 13762 int _df = 1; 13763 uint32_t _flag_k = FK_NONE; 13764 uint32_t _flag_a = 0, _flag_b = 0; 13765 uint32_t _itail_tgt = 0; 13766 RECOMP_REGS_LOCALS 13767 RECOMP_ENTER(0x2B086AD0u); 13768 13769 L_2B086AD0: 13770 eax = MEM32(0x2B0EF0D8); /* 0x2B086AD0: mov eax, dword ptr [0x2b0ef0d8] */ 13771 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086AD5: ret */ 13772 RECOMP_REGS_OUT(); 13773 } 13774 13775 void sub_2B086AE0(void) { 13776 int _fpu_cmp = 0; 13777 uint32_t _cf = 0; 13778 int _df = 1; 13779 uint32_t _flag_k = FK_NONE; 13780 uint32_t _flag_a = 0, _flag_b = 0; 13781 uint32_t _itail_tgt = 0; 13782 RECOMP_REGS_LOCALS 13783 RECOMP_ENTER(0x2B086AE0u); 13784 13785 L_2B086AE0: 13786 PUSH32(esp, ebx); /* 0x2B086AE0: push ebx */ 13787 PUSH32(esp, esi); /* 0x2B086AE1: push esi */ 13788 esi = MEM32(0x2B0B53CC); /* 0x2B086AE2: mov esi, dword ptr [0x2b0b53cc] */ 13789 PUSH32(esp, edi); /* 0x2B086AE8: push edi */ 13790 ebx = ecx; /* 0x2B086AE9: mov ebx, ecx */ 13791 RECOMP_ICALL(esi); /* 0x2B086AEB: call esi */ 13792 RECOMP_FLAGS_IN(); 13793 ecx = eax; /* 0x2B086AED: mov ecx, eax */ 13794 RECOMP_ICALL(MEM32(0x2B0B5374)); /* 0x2B086AEF: call dword ptr [0x2b0b5374] */ 13795 RECOMP_FLAGS_IN(); 13796 PUSH32(esp, 0); /* 0x2B086AF5: push 0 */ 13797 PUSH32(esp, 0x24u); /* 0x2B086AF7: push 0x24 */ 13798 PUSH32(esp, 1); /* 0x2B086AF9: push 1 */ 13799 RECOMP_ICALL(esi); /* 0x2B086AFB: call esi */ 13800 RECOMP_FLAGS_IN(); 13801 ecx = eax; /* 0x2B086AFD: mov ecx, eax */ 13802 RECOMP_ICALL(MEM32(0x2B0B5378)); /* 0x2B086AFF: call dword ptr [0x2b0b5378] */ 13803 RECOMP_FLAGS_IN(); 13804 PUSH32(esp, 0x2B001520u); /* 0x2B086B05: push 0x2b001520 */ 13805 PUSH32(esp, 5); /* 0x2B086B0A: push 5 */ 13806 RECOMP_ICALL(esi); /* 0x2B086B0C: call esi */ 13807 RECOMP_FLAGS_IN(); 13808 edi = MEM32(0x2B0B5324); /* 0x2B086B0E: mov edi, dword ptr [0x2b0b5324] */ 13809 ecx = eax; /* 0x2B086B14: mov ecx, eax */ 13810 RECOMP_ICALL(edi); /* 0x2B086B16: call edi */ 13811 RECOMP_FLAGS_IN(); 13812 PUSH32(esp, 0x2B086B90u); /* 0x2B086B18: push 0x2b086b90 */ 13813 PUSH32(esp, 6); /* 0x2B086B1D: push 6 */ 13814 RECOMP_ICALL(esi); /* 0x2B086B1F: call esi */ 13815 RECOMP_FLAGS_IN(); 13816 ecx = eax; /* 0x2B086B21: mov ecx, eax */ 13817 RECOMP_ICALL(edi); /* 0x2B086B23: call edi */ 13818 RECOMP_FLAGS_IN(); 13819 PUSH32(esp, 0x2B086BC0u); /* 0x2B086B25: push 0x2b086bc0 */ 13820 PUSH32(esp, 0xABu); /* 0x2B086B2A: push 0xab */ 13821 RECOMP_ICALL(esi); /* 0x2B086B2F: call esi */ 13822 RECOMP_FLAGS_IN(); 13823 ecx = eax; /* 0x2B086B31: mov ecx, eax */ 13824 RECOMP_ICALL(edi); /* 0x2B086B33: call edi */ 13825 RECOMP_FLAGS_IN(); 13826 PUSH32(esp, 0x2B086CA0u); /* 0x2B086B35: push 0x2b086ca0 */ 13827 PUSH32(esp, 0xCAu); /* 0x2B086B3A: push 0xca */ 13828 RECOMP_ICALL(esi); /* 0x2B086B3F: call esi */ 13829 RECOMP_FLAGS_IN(); 13830 ecx = eax; /* 0x2B086B41: mov ecx, eax */ 13831 RECOMP_ICALL(edi); /* 0x2B086B43: call edi */ 13832 RECOMP_FLAGS_IN(); 13833 PUSH32(esp, 0x2B086D10u); /* 0x2B086B45: push 0x2b086d10 */ 13834 PUSH32(esp, 0xCCu); /* 0x2B086B4A: push 0xcc */ 13835 RECOMP_ICALL(esi); /* 0x2B086B4F: call esi */ 13836 RECOMP_FLAGS_IN(); 13837 ecx = eax; /* 0x2B086B51: mov ecx, eax */ 13838 RECOMP_ICALL(edi); /* 0x2B086B53: call edi */ 13839 RECOMP_FLAGS_IN(); 13840 PUSH32(esp, 0x2B086CB0u); /* 0x2B086B55: push 0x2b086cb0 */ 13841 PUSH32(esp, 0xCDu); /* 0x2B086B5A: push 0xcd */ 13842 RECOMP_ICALL(esi); /* 0x2B086B5F: call esi */ 13843 RECOMP_FLAGS_IN(); 13844 ecx = eax; /* 0x2B086B61: mov ecx, eax */ 13845 RECOMP_ICALL(edi); /* 0x2B086B63: call edi */ 13846 RECOMP_FLAGS_IN(); 13847 PUSH32(esp, 0x2B086CE0u); /* 0x2B086B65: push 0x2b086ce0 */ 13848 PUSH32(esp, 0xCBu); /* 0x2B086B6A: push 0xcb */ 13849 RECOMP_ICALL(esi); /* 0x2B086B6F: call esi */ 13850 RECOMP_FLAGS_IN(); 13851 ecx = eax; /* 0x2B086B71: mov ecx, eax */ 13852 RECOMP_ICALL(edi); /* 0x2B086B73: call edi */ 13853 RECOMP_FLAGS_IN(); 13854 PUSH32(esp, 0x2B001520u); /* 0x2B086B75: push 0x2b001520 */ 13855 RECOMP_ICALL(esi); /* 0x2B086B7A: call esi */ 13856 RECOMP_FLAGS_IN(); 13857 ecx = eax; /* 0x2B086B7C: mov ecx, eax */ 13858 RECOMP_ICALL(MEM32(0x2B0B537C)); /* 0x2B086B7E: call dword ptr [0x2b0b537c] */ 13859 RECOMP_FLAGS_IN(); 13860 edi = POP32_VAL(esp); /* 0x2B086B84: pop edi */ 13861 esi = POP32_VAL(esp); /* 0x2B086B85: pop esi */ 13862 eax = ebx; /* 0x2B086B86: mov eax, ebx */ 13863 ebx = POP32_VAL(esp); /* 0x2B086B88: pop ebx */ 13864 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086B89: ret */ 13865 RECOMP_REGS_OUT(); 13866 } 13867 13868 void sub_2B086B90(void) { 13869 int _fpu_cmp = 0; 13870 uint32_t _cf = 0; 13871 int _df = 1; 13872 uint32_t _flag_k = FK_NONE; 13873 uint32_t _flag_a = 0, _flag_b = 0; 13874 uint32_t _itail_tgt = 0; 13875 RECOMP_REGS_LOCALS 13876 RECOMP_ENTER(0x2B086B90u); 13877 13878 L_2B086B90: 13879 PUSH32(esp, esi); /* 0x2B086B90: push esi */ 13880 esi = MEM32(0x2B0EF0DC); /* 0x2B086B91: mov esi, dword ptr [0x2b0ef0dc] */ 13881 /* test esi, esi */ /* 0x2B086B97: test esi, esi */ 13882 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 13883 _cf = 0; 13884 _flag_k = FK_TEST; 13885 if (TEST_Z(_flag_a, _flag_b)) goto L_2B086BAB; /* 0x2B086B99: je 0x2b086bab */ 13886 L_2B086B9B: 13887 ecx = esi; /* 0x2B086B9B: mov ecx, esi */ 13888 RECOMP_ICALL(0x2B085D70u); /* 0x2B086B9D: call 0x2b085d70 */ /* not lifted */ 13889 RECOMP_FLAGS_IN(); 13890 PUSH32(esp, esi); /* 0x2B086BA2: push esi */ 13891 RECOMP_ICALL(0x2B0AB1BAu); /* 0x2B086BA3: call 0x2b0ab1ba */ /* not lifted */ 13892 RECOMP_FLAGS_IN(); 13893 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13894 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13895 esp = esp + 4; /* 0x2B086BA8: add esp, 4 */ 13896 _flag_k = FK_ADD; 13897 L_2B086BAB: 13898 MEM32(0x2B0EF0DC) = 0; /* 0x2B086BAB: mov dword ptr [0x2b0ef0dc], 0 */ 13899 esi = POP32_VAL(esp); /* 0x2B086BB5: pop esi */ 13900 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2B086BB6: ret */ 13901 RECOMP_REGS_OUT(); 13902 }