client/vendor/ace/source/lifted-0025.c (212923B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_47033110(void) { 5 int _fpu_cmp = 0; 6 uint32_t _cf = 0; 7 int _df = 1; 8 uint32_t _flag_k = FK_NONE; 9 uint32_t _flag_a = 0, _flag_b = 0; 10 uint32_t _itail_tgt = 0; 11 RECOMP_REGS_LOCALS 12 RECOMP_ENTER(0x47033110u); 13 14 L_47033110: 15 eax = MEM32(esp + 0x10); /* 0x47033110: mov eax, dword ptr [esp + 0x10] */ 16 edx = MEM32(esp + 0xC); /* 0x47033114: mov edx, dword ptr [esp + 0xc] */ 17 ecx = MEM32(ecx); /* 0x47033118: mov ecx, dword ptr [ecx] */ 18 PUSH32(esp, eax); /* 0x4703311A: push eax */ 19 eax = MEM32(esp + 0xC); /* 0x4703311B: mov eax, dword ptr [esp + 0xc] */ 20 PUSH32(esp, edx); /* 0x4703311F: push edx */ 21 edx = MEM32(esp + 0xC); /* 0x47033120: mov edx, dword ptr [esp + 0xc] */ 22 PUSH32(esp, eax); /* 0x47033124: push eax */ 23 PUSH32(esp, edx); /* 0x47033125: push edx */ 24 PUSH32(esp, ecx); /* 0x47033126: push ecx */ 25 RECOMP_ICALL(0x4700C310u); /* 0x47033127: call 0x4700c310 */ /* not lifted */ 26 RECOMP_FLAGS_IN(); 27 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 28 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29 esp = esp + 0x14u; /* 0x4703312C: add esp, 0x14 */ 30 _flag_k = FK_ADD; 31 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703312F: ret 0x10 */ 32 RECOMP_REGS_OUT(); 33 } 34 35 void sub_47033140(void) { 36 int _fpu_cmp = 0; 37 uint32_t _cf = 0; 38 int _df = 1; 39 uint32_t _flag_k = FK_NONE; 40 uint32_t _flag_a = 0, _flag_b = 0; 41 uint32_t _itail_tgt = 0; 42 RECOMP_REGS_LOCALS 43 RECOMP_ENTER(0x47033140u); 44 45 L_47033140: 46 eax = MEM32(esp + 0xC); /* 0x47033140: mov eax, dword ptr [esp + 0xc] */ 47 edx = MEM32(esp + 0x8); /* 0x47033144: mov edx, dword ptr [esp + 8] */ 48 ecx = MEM32(ecx); /* 0x47033148: mov ecx, dword ptr [ecx] */ 49 PUSH32(esp, eax); /* 0x4703314A: push eax */ 50 eax = MEM32(esp + 0x8); /* 0x4703314B: mov eax, dword ptr [esp + 8] */ 51 PUSH32(esp, edx); /* 0x4703314F: push edx */ 52 PUSH32(esp, eax); /* 0x47033150: push eax */ 53 PUSH32(esp, ecx); /* 0x47033151: push ecx */ 54 RECOMP_ICALL(0x4700C570u); /* 0x47033152: call 0x4700c570 */ /* not lifted */ 55 RECOMP_FLAGS_IN(); 56 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 57 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 58 esp = esp + 0x10u; /* 0x47033157: add esp, 0x10 */ 59 _flag_k = FK_ADD; 60 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703315A: ret 0xc */ 61 RECOMP_REGS_OUT(); 62 } 63 64 void sub_47033160(void) { 65 int _fpu_cmp = 0; 66 uint32_t _cf = 0; 67 int _df = 1; 68 uint32_t _flag_k = FK_NONE; 69 uint32_t _flag_a = 0, _flag_b = 0; 70 uint32_t _itail_tgt = 0; 71 RECOMP_REGS_LOCALS 72 RECOMP_ENTER(0x47033160u); 73 74 L_47033160: 75 eax = MEM32(esp + 0xC); /* 0x47033160: mov eax, dword ptr [esp + 0xc] */ 76 edx = MEM32(esp + 0x8); /* 0x47033164: mov edx, dword ptr [esp + 8] */ 77 ecx = MEM32(ecx); /* 0x47033168: mov ecx, dword ptr [ecx] */ 78 PUSH32(esp, eax); /* 0x4703316A: push eax */ 79 eax = MEM32(esp + 0x8); /* 0x4703316B: mov eax, dword ptr [esp + 8] */ 80 PUSH32(esp, edx); /* 0x4703316F: push edx */ 81 PUSH32(esp, eax); /* 0x47033170: push eax */ 82 PUSH32(esp, ecx); /* 0x47033171: push ecx */ 83 RECOMP_ICALL(0x4700C9E0u); /* 0x47033172: call 0x4700c9e0 */ /* not lifted */ 84 RECOMP_FLAGS_IN(); 85 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 86 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 87 esp = esp + 0x10u; /* 0x47033177: add esp, 0x10 */ 88 _flag_k = FK_ADD; 89 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703317A: ret 0xc */ 90 RECOMP_REGS_OUT(); 91 } 92 93 void sub_47033180(void) { 94 int _fpu_cmp = 0; 95 uint32_t _cf = 0; 96 int _df = 1; 97 uint32_t _flag_k = FK_NONE; 98 uint32_t _flag_a = 0, _flag_b = 0; 99 uint32_t _itail_tgt = 0; 100 RECOMP_REGS_LOCALS 101 RECOMP_ENTER(0x47033180u); 102 103 L_47033180: 104 eax = MEM32(esp + 0x10); /* 0x47033180: mov eax, dword ptr [esp + 0x10] */ 105 edx = MEM32(esp + 0xC); /* 0x47033184: mov edx, dword ptr [esp + 0xc] */ 106 ecx = MEM32(ecx); /* 0x47033188: mov ecx, dword ptr [ecx] */ 107 PUSH32(esp, eax); /* 0x4703318A: push eax */ 108 eax = MEM32(esp + 0xC); /* 0x4703318B: mov eax, dword ptr [esp + 0xc] */ 109 PUSH32(esp, edx); /* 0x4703318F: push edx */ 110 edx = MEM32(esp + 0xC); /* 0x47033190: mov edx, dword ptr [esp + 0xc] */ 111 PUSH32(esp, eax); /* 0x47033194: push eax */ 112 PUSH32(esp, edx); /* 0x47033195: push edx */ 113 PUSH32(esp, ecx); /* 0x47033196: push ecx */ 114 RECOMP_ICALL(0x4700D300u); /* 0x47033197: call 0x4700d300 */ /* not lifted */ 115 RECOMP_FLAGS_IN(); 116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 118 esp = esp + 0x14u; /* 0x4703319C: add esp, 0x14 */ 119 _flag_k = FK_ADD; 120 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4703319F: ret 0x10 */ 121 RECOMP_REGS_OUT(); 122 } 123 124 void sub_470331B0(void) { 125 int _fpu_cmp = 0; 126 uint32_t _cf = 0; 127 int _df = 1; 128 uint32_t _flag_k = FK_NONE; 129 uint32_t _flag_a = 0, _flag_b = 0; 130 uint32_t _itail_tgt = 0; 131 RECOMP_REGS_LOCALS 132 RECOMP_ENTER(0x470331B0u); 133 134 L_470331B0: 135 eax = MEM32(esp + 0xC); /* 0x470331B0: mov eax, dword ptr [esp + 0xc] */ 136 edx = MEM32(esp + 0x8); /* 0x470331B4: mov edx, dword ptr [esp + 8] */ 137 ecx = MEM32(ecx); /* 0x470331B8: mov ecx, dword ptr [ecx] */ 138 PUSH32(esp, eax); /* 0x470331BA: push eax */ 139 eax = MEM32(esp + 0x8); /* 0x470331BB: mov eax, dword ptr [esp + 8] */ 140 PUSH32(esp, edx); /* 0x470331BF: push edx */ 141 PUSH32(esp, eax); /* 0x470331C0: push eax */ 142 PUSH32(esp, ecx); /* 0x470331C1: push ecx */ 143 RECOMP_ICALL(0x4700D560u); /* 0x470331C2: call 0x4700d560 */ /* not lifted */ 144 RECOMP_FLAGS_IN(); 145 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 146 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 147 esp = esp + 0x10u; /* 0x470331C7: add esp, 0x10 */ 148 _flag_k = FK_ADD; 149 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470331CA: ret 0xc */ 150 RECOMP_REGS_OUT(); 151 } 152 153 void sub_470331D0(void) { 154 int _fpu_cmp = 0; 155 uint32_t _cf = 0; 156 int _df = 1; 157 uint32_t _flag_k = FK_NONE; 158 uint32_t _flag_a = 0, _flag_b = 0; 159 uint32_t _itail_tgt = 0; 160 RECOMP_REGS_LOCALS 161 RECOMP_ENTER(0x470331D0u); 162 163 L_470331D0: 164 eax = MEM32(esp + 0xC); /* 0x470331D0: mov eax, dword ptr [esp + 0xc] */ 165 edx = MEM32(esp + 0x8); /* 0x470331D4: mov edx, dword ptr [esp + 8] */ 166 ecx = MEM32(ecx); /* 0x470331D8: mov ecx, dword ptr [ecx] */ 167 PUSH32(esp, eax); /* 0x470331DA: push eax */ 168 eax = MEM32(esp + 0x8); /* 0x470331DB: mov eax, dword ptr [esp + 8] */ 169 PUSH32(esp, edx); /* 0x470331DF: push edx */ 170 PUSH32(esp, eax); /* 0x470331E0: push eax */ 171 PUSH32(esp, ecx); /* 0x470331E1: push ecx */ 172 RECOMP_ICALL(0x4700D9C0u); /* 0x470331E2: call 0x4700d9c0 */ /* not lifted */ 173 RECOMP_FLAGS_IN(); 174 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 176 esp = esp + 0x10u; /* 0x470331E7: add esp, 0x10 */ 177 _flag_k = FK_ADD; 178 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470331EA: ret 0xc */ 179 RECOMP_REGS_OUT(); 180 } 181 182 void sub_470331F0(void) { 183 int _fpu_cmp = 0; 184 uint32_t _cf = 0; 185 int _df = 1; 186 uint32_t _flag_k = FK_NONE; 187 uint32_t _flag_a = 0, _flag_b = 0; 188 uint32_t _itail_tgt = 0; 189 RECOMP_REGS_LOCALS 190 RECOMP_ENTER(0x470331F0u); 191 192 L_470331F0: 193 eax = MEM32(esp + 0xC); /* 0x470331F0: mov eax, dword ptr [esp + 0xc] */ 194 edx = MEM32(esp + 0x8); /* 0x470331F4: mov edx, dword ptr [esp + 8] */ 195 ecx = MEM32(ecx); /* 0x470331F8: mov ecx, dword ptr [ecx] */ 196 PUSH32(esp, eax); /* 0x470331FA: push eax */ 197 eax = MEM32(esp + 0x8); /* 0x470331FB: mov eax, dword ptr [esp + 8] */ 198 PUSH32(esp, 1); /* 0x470331FF: push 1 */ 199 PUSH32(esp, edx); /* 0x47033201: push edx */ 200 PUSH32(esp, eax); /* 0x47033202: push eax */ 201 PUSH32(esp, ecx); /* 0x47033203: push ecx */ 202 RECOMP_ICALL(0x4700CDC0u); /* 0x47033204: call 0x4700cdc0 */ /* not lifted */ 203 RECOMP_FLAGS_IN(); 204 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 205 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 206 esp = esp + 0x14u; /* 0x47033209: add esp, 0x14 */ 207 _flag_k = FK_ADD; 208 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703320C: ret 0xc */ 209 RECOMP_REGS_OUT(); 210 } 211 212 void sub_47033210(void) { 213 int _fpu_cmp = 0; 214 uint32_t _cf = 0; 215 int _df = 1; 216 uint32_t _flag_k = FK_NONE; 217 uint32_t _flag_a = 0, _flag_b = 0; 218 uint32_t _itail_tgt = 0; 219 RECOMP_REGS_LOCALS 220 RECOMP_ENTER(0x47033210u); 221 222 L_47033210: 223 eax = MEM32(esp + 0xC); /* 0x47033210: mov eax, dword ptr [esp + 0xc] */ 224 edx = MEM32(esp + 0x8); /* 0x47033214: mov edx, dword ptr [esp + 8] */ 225 ecx = MEM32(ecx); /* 0x47033218: mov ecx, dword ptr [ecx] */ 226 PUSH32(esp, eax); /* 0x4703321A: push eax */ 227 eax = MEM32(esp + 0x8); /* 0x4703321B: mov eax, dword ptr [esp + 8] */ 228 PUSH32(esp, 1); /* 0x4703321F: push 1 */ 229 PUSH32(esp, edx); /* 0x47033221: push edx */ 230 PUSH32(esp, eax); /* 0x47033222: push eax */ 231 PUSH32(esp, ecx); /* 0x47033223: push ecx */ 232 RECOMP_ICALL(0x4700BD90u); /* 0x47033224: call 0x4700bd90 */ /* not lifted */ 233 RECOMP_FLAGS_IN(); 234 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 235 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 236 esp = esp + 0x14u; /* 0x47033229: add esp, 0x14 */ 237 _flag_k = FK_ADD; 238 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4703322C: ret 0xc */ 239 RECOMP_REGS_OUT(); 240 } 241 242 void sub_47033230(void) { 243 int _fpu_cmp = 0; 244 uint32_t _cf = 0; 245 int _df = 1; 246 uint32_t _flag_k = FK_NONE; 247 uint32_t _flag_a = 0, _flag_b = 0; 248 uint32_t _itail_tgt = 0; 249 RECOMP_REGS_LOCALS 250 RECOMP_ENTER(0x47033230u); 251 252 L_47033230: 253 eax = MEM32(esp + 0x4); /* 0x47033230: mov eax, dword ptr [esp + 4] */ 254 PUSH32(esp, 0); /* 0x47033234: push 0 */ 255 PUSH32(esp, 0); /* 0x47033236: push 0 */ 256 PUSH32(esp, eax); /* 0x47033238: push eax */ 257 RECOMP_ICALL(MEM32(0x470AC4C4)); /* 0x47033239: call dword ptr [0x470ac4c4] */ 258 RECOMP_FLAGS_IN(); 259 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703323F: ret 4 */ 260 RECOMP_REGS_OUT(); 261 } 262 263 void sub_47033250(void) { 264 int _fpu_cmp = 0; 265 uint32_t _cf = 0; 266 int _df = 1; 267 uint32_t _flag_k = FK_NONE; 268 uint32_t _flag_a = 0, _flag_b = 0; 269 uint32_t _itail_tgt = 0; 270 RECOMP_REGS_LOCALS 271 RECOMP_ENTER(0x47033250u); 272 273 L_47033250: 274 MEM32(0x4710E484) = 0x471050FCu; /* 0x47033250: mov dword ptr [0x4710e484], 0x471050fc */ 275 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703325A: ret */ 276 RECOMP_REGS_OUT(); 277 } 278 279 void sub_47033260(void) { 280 int _fpu_cmp = 0; 281 uint32_t _cf = 0; 282 int _df = 1; 283 uint32_t _flag_k = FK_NONE; 284 uint32_t _flag_a = 0, _flag_b = 0; 285 uint32_t _itail_tgt = 0; 286 RECOMP_REGS_LOCALS 287 RECOMP_ENTER(0x47033260u); 288 289 L_47033260: 290 PUSH32(esp, esi); /* 0x47033260: push esi */ 291 esi = MEM32(esp + 0x8); /* 0x47033261: mov esi, dword ptr [esp + 8] */ 292 PUSH32(esp, edi); /* 0x47033265: push edi */ 293 eax = ecx; /* 0x47033266: mov eax, ecx */ 294 ecx = 0x193u; /* 0x47033268: mov ecx, 0x193 */ 295 edi = eax; /* 0x4703326D: mov edi, eax */ 296 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703326F: 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; } 297 edi = POP32_VAL(esp); /* 0x47033271: pop edi */ 298 esi = POP32_VAL(esp); /* 0x47033272: pop esi */ 299 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033273: ret 4 */ 300 RECOMP_REGS_OUT(); 301 } 302 303 void sub_47033280(void) { 304 int _fpu_cmp = 0; 305 uint32_t _cf = 0; 306 int _df = 1; 307 uint32_t _flag_k = FK_NONE; 308 uint32_t _flag_a = 0, _flag_b = 0; 309 uint32_t _itail_tgt = 0; 310 RECOMP_REGS_LOCALS 311 RECOMP_ENTER(0x47033280u); 312 313 L_47033280: 314 PUSH32(esp, 0xFFFFFFFFu); /* 0x47033280: push -1 */ 315 PUSH32(esp, 0x470A581Bu); /* 0x47033282: push 0x470a581b */ 316 eax = MEM32(FS_BASE + (0)); /* 0x47033287: mov eax, dword ptr fs:[0] */ 317 PUSH32(esp, eax); /* 0x4703328D: push eax */ 318 MEM32(FS_BASE + (0)) = esp; /* 0x4703328E: mov dword ptr fs:[0], esp */ 319 PUSH32(esp, ecx); /* 0x47033295: push ecx */ 320 PUSH32(esp, ebx); /* 0x47033296: push ebx */ 321 ebx = MEM32(esp + 0x18); /* 0x47033297: mov ebx, dword ptr [esp + 0x18] */ 322 eax = MEM32(ebx + 0x4); /* 0x4703329B: mov eax, dword ptr [ebx + 4] */ 323 PUSH32(esp, ebp); /* 0x4703329E: push ebp */ 324 ebp = ecx; /* 0x4703329F: mov ebp, ecx */ 325 MEM32(ebp + 0x4) = eax; /* 0x470332A1: mov dword ptr [ebp + 4], eax */ 326 ecx = MEM32(ebx + 0x8); /* 0x470332A4: mov ecx, dword ptr [ebx + 8] */ 327 PUSH32(esp, esi); /* 0x470332A7: push esi */ 328 PUSH32(esp, edi); /* 0x470332A8: push edi */ 329 MEM32(esp + 0x10) = ebp; /* 0x470332A9: mov dword ptr [esp + 0x10], ebp */ 330 MEM32(ebp + 0x8) = ecx; /* 0x470332AD: mov dword ptr [ebp + 8], ecx */ 331 MEM32(ebp) = 0x470AC5C0u; /* 0x470332B0: mov dword ptr [ebp], 0x470ac5c0 */ 332 SET_LO8(edx, MEM8(ebx + 0xC)); /* 0x470332B7: mov dl, byte ptr [ebx + 0xc] */ 333 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 334 edi = 0; /* 0x470332BA: xor edi, edi */ 335 _cf = 0; 336 _flag_k = FK_TEST; 337 MEM32(esp + 0x1C) = edi; /* 0x470332BC: mov dword ptr [esp + 0x1c], edi */ 338 MEM8(ebp + 0xC) = (uint8_t)(LO8(edx)); /* 0x470332C0: mov byte ptr [ebp + 0xc], dl */ 339 eax = MEM32(ebx + 0x10); /* 0x470332C3: mov eax, dword ptr [ebx + 0x10] */ 340 esi = ebp + 0x10; /* 0x470332C6: lea esi, [ebp + 0x10] */ 341 MEM32(esp + 0x24) = esi; /* 0x470332C9: mov dword ptr [esp + 0x24], esi */ 342 MEM32(esi) = eax; /* 0x470332CD: mov dword ptr [esi], eax */ 343 MEM32(esi + 0x4) = edi; /* 0x470332CF: mov dword ptr [esi + 4], edi */ 344 MEM32(esi + 0x8) = edi; /* 0x470332D2: mov dword ptr [esi + 8], edi */ 345 eax = MEM32(ebx + 0x1C); /* 0x470332D5: mov eax, dword ptr [ebx + 0x1c] */ 346 /* cmp eax, edi */ /* 0x470332D8: cmp eax, edi */ 347 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 349 _flag_k = FK_CMP; 350 MEM8(esp + 0x1C) = (uint8_t)(2); /* 0x470332DA: mov byte ptr [esp + 0x1c], 2 */ 351 MEM32(esi + 0xC) = eax; /* 0x470332DF: mov dword ptr [esi + 0xc], eax */ 352 if (CMP_NE(_flag_a, _flag_b)) goto L_470332EC; /* 0x470332E2: jne 0x470332ec */ 353 L_470332E4: 354 RECOMP_ICALL(0x4703DAC0u); /* 0x470332E4: call 0x4703dac0 */ /* not lifted */ 355 RECOMP_FLAGS_IN(); 356 MEM32(esi + 0xC) = eax; /* 0x470332E9: mov dword ptr [esi + 0xc], eax */ 357 L_470332EC: 358 ecx = MEM32(esi + 0xC); /* 0x470332EC: mov ecx, dword ptr [esi + 0xc] */ 359 edx = MEM32(ecx); /* 0x470332EF: mov edx, dword ptr [ecx] */ 360 PUSH32(esp, 8); /* 0x470332F1: push 8 */ 361 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470332F3: call dword ptr [edx + 4] */ 362 RECOMP_FLAGS_IN(); 363 /* cmp eax, edi */ /* 0x470332F6: cmp eax, edi */ 364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 366 _flag_k = FK_CMP; 367 MEM32(esi + 0x4) = eax; /* 0x470332F8: mov dword ptr [esi + 4], eax */ 368 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703332D; /* 0x470332FB: je 0x4703332d */ 369 L_470332FD: 370 MEM32(eax) = edi; /* 0x470332FD: mov dword ptr [eax], edi */ 371 eax = MEM32(esi + 0x4); /* 0x470332FF: mov eax, dword ptr [esi + 4] */ 372 MEM32(eax) = eax; /* 0x47033302: mov dword ptr [eax], eax */ 373 eax = MEM32(ebx + 0x14); /* 0x47033304: mov eax, dword ptr [ebx + 0x14] */ 374 edi = MEM32(eax); /* 0x47033307: mov edi, dword ptr [eax] */ 375 /* cmp edi, eax */ /* 0x47033309: cmp edi, eax */ 376 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 378 _flag_k = FK_CMP; 379 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703335B; /* 0x4703330B: je 0x4703335b */ 380 L_4703330D: 381 ecx = MEM32(edi + 0x4); /* 0x4703330D: mov ecx, dword ptr [edi + 4] */ 382 eax = MEM32(esi + 0x4); /* 0x47033310: mov eax, dword ptr [esi + 4] */ 383 MEM32(eax + 0x4) = ecx; /* 0x47033313: mov dword ptr [eax + 4], ecx */ 384 ecx = MEM32(esi + 0xC); /* 0x47033316: mov ecx, dword ptr [esi + 0xc] */ 385 edx = MEM32(ecx); /* 0x47033319: mov edx, dword ptr [ecx] */ 386 PUSH32(esp, 8); /* 0x4703331B: push 8 */ 387 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4703331D: call dword ptr [edx + 4] */ 388 RECOMP_FLAGS_IN(); 389 /* test eax, eax */ /* 0x47033320: test eax, eax */ 390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 391 _cf = 0; 392 _flag_k = FK_TEST; 393 if (TEST_Z(_flag_a, _flag_b)) goto L_4703333B; /* 0x47033322: je 0x4703333b */ 394 L_47033324: 395 ecx = MEM32(esi + 0x4); /* 0x47033324: mov ecx, dword ptr [esi + 4] */ 396 edx = MEM32(ecx); /* 0x47033327: mov edx, dword ptr [ecx] */ 397 MEM32(eax) = edx; /* 0x47033329: mov dword ptr [eax], edx */ 398 goto L_47033349; /* 0x4703332B: jmp 0x47033349 */ 399 L_4703332D: 400 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703332D: call dword ptr [0x470ac3c8] */ 401 RECOMP_FLAGS_IN(); 402 MEM32(eax) = 0xCu; /* 0x47033333: mov dword ptr [eax], 0xc */ 403 goto L_4703335B; /* 0x47033339: jmp 0x4703335b */ 404 L_4703333B: 405 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4703333B: call dword ptr [0x470ac3c8] */ 406 RECOMP_FLAGS_IN(); 407 MEM32(eax) = 0xCu; /* 0x47033341: mov dword ptr [eax], 0xc */ 408 goto L_47033354; /* 0x47033347: jmp 0x47033354 */ 409 L_47033349: 410 ecx = MEM32(esi + 0x4); /* 0x47033349: mov ecx, dword ptr [esi + 4] */ 411 MEM32(ecx) = eax; /* 0x4703334C: mov dword ptr [ecx], eax */ 412 MEM32(esi + 0x4) = eax; /* 0x4703334E: mov dword ptr [esi + 4], eax */ 413 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 414 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 1; /* 0x47033351: inc dword ptr [esi + 8] */ 415 _flag_k = FK_INC; 416 L_47033354: 417 edi = MEM32(edi); /* 0x47033354: mov edi, dword ptr [edi] */ 418 /* cmp edi, MEM32(ebx + 0x14) */ /* 0x47033356: cmp edi, dword ptr [ebx + 0x14] */ 419 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x14)); 420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 421 _flag_k = FK_CMP; 422 RECOMP_BACKEDGE(); 423 if (CMP_NE(_flag_a, _flag_b)) goto L_4703330D; /* 0x47033359: jne 0x4703330d */ 424 L_4703335B: 425 edx = MEM32(ebx + 0x20); /* 0x4703335B: mov edx, dword ptr [ebx + 0x20] */ 426 ecx = MEM32(esp + 0x14); /* 0x4703335E: mov ecx, dword ptr [esp + 0x14] */ 427 edi = POP32_VAL(esp); /* 0x47033362: pop edi */ 428 esi = POP32_VAL(esp); /* 0x47033363: pop esi */ 429 MEM32(ebp + 0x20) = edx; /* 0x47033364: mov dword ptr [ebp + 0x20], edx */ 430 MEM32(ebp) = 0x470AD288u; /* 0x47033367: mov dword ptr [ebp], 0x470ad288 */ 431 eax = ebp; /* 0x4703336E: mov eax, ebp */ 432 ebp = POP32_VAL(esp); /* 0x47033370: pop ebp */ 433 ebx = POP32_VAL(esp); /* 0x47033371: pop ebx */ 434 MEM32(FS_BASE + (0)) = ecx; /* 0x47033372: mov dword ptr fs:[0], ecx */ 435 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 436 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 437 esp = esp + 0x10u; /* 0x47033379: add esp, 0x10 */ 438 _flag_k = FK_ADD; 439 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703337C: ret 4 */ 440 RECOMP_REGS_OUT(); 441 } 442 443 void sub_47033380(void) { 444 int _fpu_cmp = 0; 445 uint32_t _cf = 0; 446 int _df = 1; 447 uint32_t _flag_k = FK_NONE; 448 uint32_t _flag_a = 0, _flag_b = 0; 449 uint32_t _itail_tgt = 0; 450 RECOMP_REGS_LOCALS 451 RECOMP_ENTER(0x47033380u); 452 453 L_47033380: 454 PUSH32(esp, ebx); /* 0x47033380: push ebx */ 455 ebx = ecx; /* 0x47033381: mov ebx, ecx */ 456 ecx = MEM32(esp + 0x8); /* 0x47033383: mov ecx, dword ptr [esp + 8] */ 457 eax = MEM32(ecx + 0x4); /* 0x47033387: mov eax, dword ptr [ecx + 4] */ 458 MEM32(ebx + 0x4) = eax; /* 0x4703338A: mov dword ptr [ebx + 4], eax */ 459 edx = MEM32(ecx + 0x8); /* 0x4703338D: mov edx, dword ptr [ecx + 8] */ 460 PUSH32(esp, ebp); /* 0x47033390: push ebp */ 461 MEM32(ebx + 0x8) = edx; /* 0x47033391: mov dword ptr [ebx + 8], edx */ 462 SET_LO8(eax, MEM8(ecx + 0xC)); /* 0x47033394: mov al, byte ptr [ecx + 0xc] */ 463 PUSH32(esp, esi); /* 0x47033397: push esi */ 464 MEM8(ebx + 0xC) = (uint8_t)(LO8(eax)); /* 0x47033398: mov byte ptr [ebx + 0xc], al */ 465 edx = MEM32(ecx + 0x10); /* 0x4703339B: mov edx, dword ptr [ecx + 0x10] */ 466 ebp = ecx + 0x14; /* 0x4703339E: lea ebp, [ecx + 0x14] */ 467 esi = ebx + 0x14; /* 0x470333A1: lea esi, [ebx + 0x14] */ 468 /* cmp esi, ebp */ /* 0x470333A4: cmp esi, ebp */ 469 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 471 _flag_k = FK_CMP; 472 PUSH32(esp, edi); /* 0x470333A6: push edi */ 473 MEM32(ebx + 0x10) = edx; /* 0x470333A7: mov dword ptr [ebx + 0x10], edx */ 474 if (CMP_EQ(_flag_a, _flag_b)) goto L_470333F9; /* 0x470333AA: je 0x470333f9 */ 475 L_470333AC: 476 eax = MEM32(esi); /* 0x470333AC: mov eax, dword ptr [esi] */ 477 edi = MEM32(eax); /* 0x470333AE: mov edi, dword ptr [eax] */ 478 /* cmp edi, eax */ /* 0x470333B0: cmp edi, eax */ 479 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 481 _flag_k = FK_CMP; 482 if (CMP_EQ(_flag_a, _flag_b)) goto L_470333D6; /* 0x470333B2: je 0x470333d6 */ 483 L_470333B4: 484 eax = edi; /* 0x470333B4: mov eax, edi */ 485 /* test eax, eax */ /* 0x470333B6: test eax, eax */ 486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 487 _cf = 0; 488 _flag_k = FK_TEST; 489 edi = MEM32(edi); /* 0x470333B8: mov edi, dword ptr [edi] */ 490 if (TEST_Z(_flag_a, _flag_b)) goto L_470333C9; /* 0x470333BA: je 0x470333c9 */ 491 L_470333BC: 492 ecx = MEM32(esi + 0x8); /* 0x470333BC: mov ecx, dword ptr [esi + 8] */ 493 edx = MEM32(ecx); /* 0x470333BF: mov edx, dword ptr [ecx] */ 494 PUSH32(esp, eax); /* 0x470333C1: push eax */ 495 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470333C2: call dword ptr [edx + 0xc] */ 496 RECOMP_FLAGS_IN(); 497 ecx = MEM32(esp + 0x14); /* 0x470333C5: mov ecx, dword ptr [esp + 0x14] */ 498 L_470333C9: 499 edx = MEM32(esi + 0x4); /* 0x470333C9: mov edx, dword ptr [esi + 4] */ 500 eax = MEM32(esi); /* 0x470333CC: mov eax, dword ptr [esi] */ 501 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 502 edx = edx - 1; /* 0x470333CE: dec edx */ 503 _flag_k = FK_DEC; 504 /* cmp edi, eax */ /* 0x470333CF: cmp edi, eax */ 505 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 507 _flag_k = FK_CMP; 508 MEM32(esi + 0x4) = edx; /* 0x470333D1: mov dword ptr [esi + 4], edx */ 509 RECOMP_BACKEDGE(); 510 if (CMP_NE(_flag_a, _flag_b)) goto L_470333B4; /* 0x470333D4: jne 0x470333b4 */ 511 L_470333D6: 512 eax = MEM32(esi); /* 0x470333D6: mov eax, dword ptr [esi] */ 513 MEM32(eax) = eax; /* 0x470333D8: mov dword ptr [eax], eax */ 514 eax = MEM32(ebp); /* 0x470333DA: mov eax, dword ptr [ebp] */ 515 edi = MEM32(eax); /* 0x470333DD: mov edi, dword ptr [eax] */ 516 /* cmp edi, eax */ /* 0x470333DF: cmp edi, eax */ 517 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 519 _flag_k = FK_CMP; 520 if (CMP_EQ(_flag_a, _flag_b)) goto L_470333F9; /* 0x470333E1: je 0x470333f9 */ 521 L_470333E3: 522 eax = edi + 0x4; /* 0x470333E3: lea eax, [edi + 4] */ 523 PUSH32(esp, eax); /* 0x470333E6: push eax */ 524 ecx = esi; /* 0x470333E7: mov ecx, esi */ 525 RECOMP_ICALL(0x47067230u); /* 0x470333E9: call 0x47067230 */ /* not lifted */ 526 RECOMP_FLAGS_IN(); 527 edi = MEM32(edi); /* 0x470333EE: mov edi, dword ptr [edi] */ 528 /* cmp edi, MEM32(ebp) */ /* 0x470333F0: cmp edi, dword ptr [ebp] */ 529 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp)); 530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 531 _flag_k = FK_CMP; 532 RECOMP_BACKEDGE(); 533 if (CMP_NE(_flag_a, _flag_b)) goto L_470333E3; /* 0x470333F3: jne 0x470333e3 */ 534 L_470333F5: 535 ecx = MEM32(esp + 0x14); /* 0x470333F5: mov ecx, dword ptr [esp + 0x14] */ 536 L_470333F9: 537 ecx = MEM32(ecx + 0x20); /* 0x470333F9: mov ecx, dword ptr [ecx + 0x20] */ 538 edi = POP32_VAL(esp); /* 0x470333FC: pop edi */ 539 esi = POP32_VAL(esp); /* 0x470333FD: pop esi */ 540 ebp = POP32_VAL(esp); /* 0x470333FE: pop ebp */ 541 MEM32(ebx + 0x20) = ecx; /* 0x470333FF: mov dword ptr [ebx + 0x20], ecx */ 542 eax = ebx; /* 0x47033402: mov eax, ebx */ 543 ebx = POP32_VAL(esp); /* 0x47033404: pop ebx */ 544 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033405: ret 4 */ 545 RECOMP_REGS_OUT(); 546 } 547 548 void sub_47033410(void) { 549 int _fpu_cmp = 0; 550 uint32_t _cf = 0; 551 int _df = 1; 552 uint32_t _flag_k = FK_NONE; 553 uint32_t _flag_a = 0, _flag_b = 0; 554 uint32_t _itail_tgt = 0; 555 RECOMP_REGS_LOCALS 556 RECOMP_ENTER(0x47033410u); 557 558 L_47033410: 559 PUSH32(esp, ebx); /* 0x47033410: push ebx */ 560 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47033411: mov bl, byte ptr [esp + 8] */ 561 /* test LO8(ebx), 2 */ /* 0x47033415: test bl, 2 */ 562 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 563 _cf = 0; 564 _flag_k = FK_NARROW(FK_TEST, 24); 565 PUSH32(esp, esi); /* 0x47033418: push esi */ 566 esi = ecx; /* 0x47033419: mov esi, ecx */ 567 if (TEST_Z(_flag_a, _flag_b)) goto L_47033448; /* 0x4703341B: je 0x47033448 */ 568 L_4703341D: 569 eax = MEM32(esi + (-0x4)); /* 0x4703341D: mov eax, dword ptr [esi - 4] */ 570 PUSH32(esp, edi); /* 0x47033420: push edi */ 571 PUSH32(esp, 0x47046680u); /* 0x47033421: push 0x47046680 */ 572 edi = esi + (-0x4); /* 0x47033426: lea edi, [esi - 4] */ 573 PUSH32(esp, eax); /* 0x47033429: push eax */ 574 PUSH32(esp, 0x24u); /* 0x4703342A: push 0x24 */ 575 PUSH32(esp, esi); /* 0x4703342C: push esi */ 576 RECOMP_ICALL(0x470A32EBu); /* 0x4703342D: call 0x470a32eb */ /* not lifted */ 577 RECOMP_FLAGS_IN(); 578 /* test LO8(ebx), 1 */ /* 0x47033432: test bl, 1 */ 579 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 580 _cf = 0; 581 _flag_k = FK_NARROW(FK_TEST, 24); 582 if (TEST_Z(_flag_a, _flag_b)) goto L_47033440; /* 0x47033435: je 0x47033440 */ 583 L_47033437: 584 PUSH32(esp, edi); /* 0x47033437: push edi */ 585 RECOMP_ICALL(0x470A32A2u); /* 0x47033438: call 0x470a32a2 */ /* not lifted */ 586 RECOMP_FLAGS_IN(); 587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 589 esp = esp + 4; /* 0x4703343D: add esp, 4 */ 590 _flag_k = FK_ADD; 591 L_47033440: 592 eax = edi; /* 0x47033440: mov eax, edi */ 593 edi = POP32_VAL(esp); /* 0x47033442: pop edi */ 594 esi = POP32_VAL(esp); /* 0x47033443: pop esi */ 595 ebx = POP32_VAL(esp); /* 0x47033444: pop ebx */ 596 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033445: ret 4 */ 597 L_47033448: 598 ecx = esi; /* 0x47033448: mov ecx, esi */ 599 RECOMP_ICALL(0x47046680u); /* 0x4703344A: call 0x47046680 */ /* not lifted */ 600 RECOMP_FLAGS_IN(); 601 /* test LO8(ebx), 1 */ /* 0x4703344F: test bl, 1 */ 602 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 603 _cf = 0; 604 _flag_k = FK_NARROW(FK_TEST, 24); 605 if (TEST_Z(_flag_a, _flag_b)) goto L_4703345D; /* 0x47033452: je 0x4703345d */ 606 L_47033454: 607 PUSH32(esp, esi); /* 0x47033454: push esi */ 608 RECOMP_ICALL(0x470A32A2u); /* 0x47033455: call 0x470a32a2 */ /* not lifted */ 609 RECOMP_FLAGS_IN(); 610 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 611 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 612 esp = esp + 4; /* 0x4703345A: add esp, 4 */ 613 _flag_k = FK_ADD; 614 L_4703345D: 615 eax = esi; /* 0x4703345D: mov eax, esi */ 616 esi = POP32_VAL(esp); /* 0x4703345F: pop esi */ 617 ebx = POP32_VAL(esp); /* 0x47033460: pop ebx */ 618 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033461: ret 4 */ 619 RECOMP_REGS_OUT(); 620 } 621 622 void sub_47033470(void) { 623 int _fpu_cmp = 0; 624 uint32_t _cf = 0; 625 int _df = 1; 626 uint32_t _flag_k = FK_NONE; 627 uint32_t _flag_a = 0, _flag_b = 0; 628 uint32_t _itail_tgt = 0; 629 RECOMP_REGS_LOCALS 630 RECOMP_ENTER(0x47033470u); 631 632 L_47033470: 633 eax = ecx; /* 0x47033470: mov eax, ecx */ 634 MEM32(eax) = 0x470AD2C8u; /* 0x47033472: mov dword ptr [eax], 0x470ad2c8 */ 635 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033478: ret */ 636 RECOMP_REGS_OUT(); 637 } 638 639 void sub_47033480(void) { 640 int _fpu_cmp = 0; 641 uint32_t _cf = 0; 642 int _df = 1; 643 uint32_t _flag_k = FK_NONE; 644 uint32_t _flag_a = 0, _flag_b = 0; 645 uint32_t _itail_tgt = 0; 646 RECOMP_REGS_LOCALS 647 RECOMP_ENTER(0x47033480u); 648 649 L_47033480: 650 eax = ecx; /* 0x47033480: mov eax, ecx */ 651 MEM32(eax) = 0x470AD2C8u; /* 0x47033482: mov dword ptr [eax], 0x470ad2c8 */ 652 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033488: ret 4 */ 653 RECOMP_REGS_OUT(); 654 } 655 656 void sub_47033490(void) { 657 int _fpu_cmp = 0; 658 uint32_t _cf = 0; 659 int _df = 1; 660 uint32_t _flag_k = FK_NONE; 661 uint32_t _flag_a = 0, _flag_b = 0; 662 uint32_t _itail_tgt = 0; 663 RECOMP_REGS_LOCALS 664 RECOMP_ENTER(0x47033490u); 665 666 L_47033490: 667 PUSH32(esp, ebx); /* 0x47033490: push ebx */ 668 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47033491: mov bl, byte ptr [esp + 8] */ 669 /* test LO8(ebx), 2 */ /* 0x47033495: test bl, 2 */ 670 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 671 _cf = 0; 672 _flag_k = FK_NARROW(FK_TEST, 24); 673 PUSH32(esp, esi); /* 0x47033498: push esi */ 674 esi = ecx; /* 0x47033499: mov esi, ecx */ 675 if (TEST_Z(_flag_a, _flag_b)) goto L_470334C8; /* 0x4703349B: je 0x470334c8 */ 676 L_4703349D: 677 eax = MEM32(esi + (-0x4)); /* 0x4703349D: mov eax, dword ptr [esi - 4] */ 678 PUSH32(esp, edi); /* 0x470334A0: push edi */ 679 PUSH32(esp, 0x470477E0u); /* 0x470334A1: push 0x470477e0 */ 680 edi = esi + (-0x4); /* 0x470334A6: lea edi, [esi - 4] */ 681 PUSH32(esp, eax); /* 0x470334A9: push eax */ 682 PUSH32(esp, 4); /* 0x470334AA: push 4 */ 683 PUSH32(esp, esi); /* 0x470334AC: push esi */ 684 RECOMP_ICALL(0x470A32EBu); /* 0x470334AD: call 0x470a32eb */ /* not lifted */ 685 RECOMP_FLAGS_IN(); 686 /* test LO8(ebx), 1 */ /* 0x470334B2: test bl, 1 */ 687 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 688 _cf = 0; 689 _flag_k = FK_NARROW(FK_TEST, 24); 690 if (TEST_Z(_flag_a, _flag_b)) goto L_470334C0; /* 0x470334B5: je 0x470334c0 */ 691 L_470334B7: 692 PUSH32(esp, edi); /* 0x470334B7: push edi */ 693 RECOMP_ICALL(0x470A32A2u); /* 0x470334B8: call 0x470a32a2 */ /* not lifted */ 694 RECOMP_FLAGS_IN(); 695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 697 esp = esp + 4; /* 0x470334BD: add esp, 4 */ 698 _flag_k = FK_ADD; 699 L_470334C0: 700 eax = edi; /* 0x470334C0: mov eax, edi */ 701 edi = POP32_VAL(esp); /* 0x470334C2: pop edi */ 702 esi = POP32_VAL(esp); /* 0x470334C3: pop esi */ 703 ebx = POP32_VAL(esp); /* 0x470334C4: pop ebx */ 704 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470334C5: ret 4 */ 705 L_470334C8: 706 ecx = esi; /* 0x470334C8: mov ecx, esi */ 707 RECOMP_ICALL(0x470477E0u); /* 0x470334CA: call 0x470477e0 */ /* not lifted */ 708 RECOMP_FLAGS_IN(); 709 /* test LO8(ebx), 1 */ /* 0x470334CF: test bl, 1 */ 710 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 711 _cf = 0; 712 _flag_k = FK_NARROW(FK_TEST, 24); 713 if (TEST_Z(_flag_a, _flag_b)) goto L_470334DD; /* 0x470334D2: je 0x470334dd */ 714 L_470334D4: 715 PUSH32(esp, esi); /* 0x470334D4: push esi */ 716 RECOMP_ICALL(0x470A32A2u); /* 0x470334D5: call 0x470a32a2 */ /* not lifted */ 717 RECOMP_FLAGS_IN(); 718 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 720 esp = esp + 4; /* 0x470334DA: add esp, 4 */ 721 _flag_k = FK_ADD; 722 L_470334DD: 723 eax = esi; /* 0x470334DD: mov eax, esi */ 724 esi = POP32_VAL(esp); /* 0x470334DF: pop esi */ 725 ebx = POP32_VAL(esp); /* 0x470334E0: pop ebx */ 726 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470334E1: ret 4 */ 727 RECOMP_REGS_OUT(); 728 } 729 730 void sub_470334F0(void) { 731 int _fpu_cmp = 0; 732 uint32_t _cf = 0; 733 int _df = 1; 734 uint32_t _flag_k = FK_NONE; 735 uint32_t _flag_a = 0, _flag_b = 0; 736 uint32_t _itail_tgt = 0; 737 RECOMP_REGS_LOCALS 738 RECOMP_ENTER(0x470334F0u); 739 740 L_470334F0: 741 edx = MEM32(esp + 0x4); /* 0x470334F0: mov edx, dword ptr [esp + 4] */ 742 eax = ecx; /* 0x470334F4: mov eax, ecx */ 743 ecx = MEM32(edx + 0x4); /* 0x470334F6: mov ecx, dword ptr [edx + 4] */ 744 MEM32(eax + 0x4) = ecx; /* 0x470334F9: mov dword ptr [eax + 4], ecx */ 745 ecx = MEM32(edx + 0x8); /* 0x470334FC: mov ecx, dword ptr [edx + 8] */ 746 MEM32(eax) = 0x470AC5C0u; /* 0x470334FF: mov dword ptr [eax], 0x470ac5c0 */ 747 MEM32(eax + 0x8) = ecx; /* 0x47033505: mov dword ptr [eax + 8], ecx */ 748 MEM32(eax + 0xC) = 0x470AC800u; /* 0x47033508: mov dword ptr [eax + 0xc], 0x470ac800 */ 749 MEM32(eax) = 0x470AC820u; /* 0x4703350F: mov dword ptr [eax], 0x470ac820 */ 750 MEM32(eax + 0xC) = 0x470AC810u; /* 0x47033515: mov dword ptr [eax + 0xc], 0x470ac810 */ 751 ecx = MEM32(edx + 0x10); /* 0x4703351C: mov ecx, dword ptr [edx + 0x10] */ 752 MEM32(eax + 0x10) = ecx; /* 0x4703351F: mov dword ptr [eax + 0x10], ecx */ 753 ecx = MEM32(edx + 0x14); /* 0x47033522: mov ecx, dword ptr [edx + 0x14] */ 754 PUSH32(esp, esi); /* 0x47033525: push esi */ 755 PUSH32(esp, edi); /* 0x47033526: push edi */ 756 MEM32(eax + 0x14) = ecx; /* 0x47033527: mov dword ptr [eax + 0x14], ecx */ 757 esi = edx + 0x18; /* 0x4703352A: lea esi, [edx + 0x18] */ 758 edi = eax + 0x18; /* 0x4703352D: lea edi, [eax + 0x18] */ 759 ecx = 0x40u; /* 0x47033530: mov ecx, 0x40 */ 760 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47033535: 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; } 761 MEM8(edi) = MEM8(esi); esi += _df; edi += _df; /* 0x47033537: movsb byte ptr es:[edi], byte ptr [esi] */ 762 ecx = MEM32(edx + 0x11C); /* 0x47033538: mov ecx, dword ptr [edx + 0x11c] */ 763 MEM32(eax + 0x11C) = ecx; /* 0x4703353E: mov dword ptr [eax + 0x11c], ecx */ 764 edx = MEM32(edx + 0x120); /* 0x47033544: mov edx, dword ptr [edx + 0x120] */ 765 edi = POP32_VAL(esp); /* 0x4703354A: pop edi */ 766 MEM32(eax + 0x120) = edx; /* 0x4703354B: mov dword ptr [eax + 0x120], edx */ 767 MEM32(eax) = 0x470AD308u; /* 0x47033551: mov dword ptr [eax], 0x470ad308 */ 768 MEM32(eax + 0xC) = 0x470AD2F8u; /* 0x47033557: mov dword ptr [eax + 0xc], 0x470ad2f8 */ 769 esi = POP32_VAL(esp); /* 0x4703355E: pop esi */ 770 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703355F: ret 4 */ 771 RECOMP_REGS_OUT(); 772 } 773 774 void sub_47033570(void) { 775 int _fpu_cmp = 0; 776 uint32_t _cf = 0; 777 int _df = 1; 778 uint32_t _flag_k = FK_NONE; 779 uint32_t _flag_a = 0, _flag_b = 0; 780 uint32_t _itail_tgt = 0; 781 RECOMP_REGS_LOCALS 782 RECOMP_ENTER(0x47033570u); 783 784 L_47033570: 785 eax = ecx; /* 0x47033570: mov eax, ecx */ 786 PUSH32(esp, ebp); /* 0x47033572: push ebp */ 787 PUSH32(esp, esi); /* 0x47033573: push esi */ 788 esi = MEM32(esp + 0xC); /* 0x47033574: mov esi, dword ptr [esp + 0xc] */ 789 ecx = MEM32(esi + 0x4); /* 0x47033578: mov ecx, dword ptr [esi + 4] */ 790 MEM32(eax + 0x4) = ecx; /* 0x4703357B: mov dword ptr [eax + 4], ecx */ 791 edx = MEM32(esi + 0x8); /* 0x4703357E: mov edx, dword ptr [esi + 8] */ 792 MEM32(eax + 0x8) = edx; /* 0x47033581: mov dword ptr [eax + 8], edx */ 793 ecx = MEM32(esi + 0x10); /* 0x47033584: mov ecx, dword ptr [esi + 0x10] */ 794 PUSH32(esp, edi); /* 0x47033587: push edi */ 795 MEM32(eax + 0x10) = ecx; /* 0x47033588: mov dword ptr [eax + 0x10], ecx */ 796 edx = MEM32(esi + 0x14); /* 0x4703358B: mov edx, dword ptr [esi + 0x14] */ 797 edi = esi; /* 0x4703358E: mov edi, esi */ 798 ebp = 0xFFFFFFE8u; /* 0x47033590: mov ebp, 0xffffffe8 */ 799 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 800 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 801 edi = edi - eax; /* 0x47033595: sub edi, eax */ 802 _flag_k = FK_CMP; 803 MEM32(eax + 0x14) = edx; /* 0x47033597: mov dword ptr [eax + 0x14], edx */ 804 ecx = eax + 0x18; /* 0x4703359A: lea ecx, [eax + 0x18] */ 805 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(eax); 806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 807 ebp = ebp - eax; /* 0x4703359D: sub ebp, eax */ 808 _flag_k = FK_CMP; 809 L_4703359F: 810 SET_LO8(edx, MEM8(edi + ecx)); /* 0x4703359F: mov dl, byte ptr [edi + ecx] */ 811 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x470335A2: mov byte ptr [ecx], dl */ 812 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 813 ecx = ecx + 1; /* 0x470335A4: inc ecx */ 814 _flag_k = FK_INC; 815 edx = ecx + ebp; /* 0x470335A5: lea edx, [ecx + ebp] */ 816 /* cmp edx, 0x101u */ /* 0x470335A8: cmp edx, 0x101 */ 817 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x101u); 818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 819 _flag_k = FK_CMP; 820 RECOMP_BACKEDGE(); 821 if (CMP_B(_flag_a, _flag_b)) goto L_4703359F; /* 0x470335AE: jb 0x4703359f */ 822 L_470335B0: 823 ecx = MEM32(esi + 0x11C); /* 0x470335B0: mov ecx, dword ptr [esi + 0x11c] */ 824 edi = POP32_VAL(esp); /* 0x470335B6: pop edi */ 825 MEM32(eax + 0x11C) = ecx; /* 0x470335B7: mov dword ptr [eax + 0x11c], ecx */ 826 edx = MEM32(esi + 0x120); /* 0x470335BD: mov edx, dword ptr [esi + 0x120] */ 827 esi = POP32_VAL(esp); /* 0x470335C3: pop esi */ 828 MEM32(eax + 0x120) = edx; /* 0x470335C4: mov dword ptr [eax + 0x120], edx */ 829 ebp = POP32_VAL(esp); /* 0x470335CA: pop ebp */ 830 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470335CB: ret 4 */ 831 RECOMP_REGS_OUT(); 832 } 833 834 void sub_470335D0(void) { 835 int _fpu_cmp = 0; 836 uint32_t _cf = 0; 837 int _df = 1; 838 uint32_t _flag_k = FK_NONE; 839 uint32_t _flag_a = 0, _flag_b = 0; 840 uint32_t _itail_tgt = 0; 841 RECOMP_REGS_LOCALS 842 RECOMP_ENTER(0x470335D0u); 843 844 L_470335D0: 845 PUSH32(esp, ebx); /* 0x470335D0: push ebx */ 846 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470335D1: mov bl, byte ptr [esp + 8] */ 847 /* test LO8(ebx), 2 */ /* 0x470335D5: test bl, 2 */ 848 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 849 _cf = 0; 850 _flag_k = FK_NARROW(FK_TEST, 24); 851 PUSH32(esp, esi); /* 0x470335D8: push esi */ 852 esi = ecx; /* 0x470335D9: mov esi, ecx */ 853 if (TEST_Z(_flag_a, _flag_b)) goto L_4703360B; /* 0x470335DB: je 0x4703360b */ 854 L_470335DD: 855 eax = MEM32(esi + (-0x4)); /* 0x470335DD: mov eax, dword ptr [esi - 4] */ 856 PUSH32(esp, edi); /* 0x470335E0: push edi */ 857 PUSH32(esp, 0x470489A0u); /* 0x470335E1: push 0x470489a0 */ 858 edi = esi + (-0x4); /* 0x470335E6: lea edi, [esi - 4] */ 859 PUSH32(esp, eax); /* 0x470335E9: push eax */ 860 PUSH32(esp, 0x124u); /* 0x470335EA: push 0x124 */ 861 PUSH32(esp, esi); /* 0x470335EF: push esi */ 862 RECOMP_ICALL(0x470A32EBu); /* 0x470335F0: call 0x470a32eb */ /* not lifted */ 863 RECOMP_FLAGS_IN(); 864 /* test LO8(ebx), 1 */ /* 0x470335F5: test bl, 1 */ 865 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 866 _cf = 0; 867 _flag_k = FK_NARROW(FK_TEST, 24); 868 if (TEST_Z(_flag_a, _flag_b)) goto L_47033603; /* 0x470335F8: je 0x47033603 */ 869 L_470335FA: 870 PUSH32(esp, edi); /* 0x470335FA: push edi */ 871 RECOMP_ICALL(0x470A32A2u); /* 0x470335FB: call 0x470a32a2 */ /* not lifted */ 872 RECOMP_FLAGS_IN(); 873 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 874 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 875 esp = esp + 4; /* 0x47033600: add esp, 4 */ 876 _flag_k = FK_ADD; 877 L_47033603: 878 eax = edi; /* 0x47033603: mov eax, edi */ 879 edi = POP32_VAL(esp); /* 0x47033605: pop edi */ 880 esi = POP32_VAL(esp); /* 0x47033606: pop esi */ 881 ebx = POP32_VAL(esp); /* 0x47033607: pop ebx */ 882 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033608: ret 4 */ 883 L_4703360B: 884 ecx = esi; /* 0x4703360B: mov ecx, esi */ 885 RECOMP_ICALL(0x470489A0u); /* 0x4703360D: call 0x470489a0 */ /* not lifted */ 886 RECOMP_FLAGS_IN(); 887 /* test LO8(ebx), 1 */ /* 0x47033612: test bl, 1 */ 888 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 889 _cf = 0; 890 _flag_k = FK_NARROW(FK_TEST, 24); 891 if (TEST_Z(_flag_a, _flag_b)) goto L_47033620; /* 0x47033615: je 0x47033620 */ 892 L_47033617: 893 PUSH32(esp, esi); /* 0x47033617: push esi */ 894 RECOMP_ICALL(0x470A32A2u); /* 0x47033618: call 0x470a32a2 */ /* not lifted */ 895 RECOMP_FLAGS_IN(); 896 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 897 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 898 esp = esp + 4; /* 0x4703361D: add esp, 4 */ 899 _flag_k = FK_ADD; 900 L_47033620: 901 eax = esi; /* 0x47033620: mov eax, esi */ 902 esi = POP32_VAL(esp); /* 0x47033622: pop esi */ 903 ebx = POP32_VAL(esp); /* 0x47033623: pop ebx */ 904 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033624: ret 4 */ 905 RECOMP_REGS_OUT(); 906 } 907 908 void sub_47033630(void) { 909 int _fpu_cmp = 0; 910 uint32_t _cf = 0; 911 int _df = 1; 912 uint32_t _flag_k = FK_NONE; 913 uint32_t _flag_a = 0, _flag_b = 0; 914 uint32_t _itail_tgt = 0; 915 RECOMP_REGS_LOCALS 916 RECOMP_ENTER(0x47033630u); 917 918 L_47033630: 919 MEM32(0x4710E470) = 0x47105158u; /* 0x47033630: mov dword ptr [0x4710e470], 0x47105158 */ 920 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703363A: ret */ 921 RECOMP_REGS_OUT(); 922 } 923 924 void sub_47033640(void) { 925 int _fpu_cmp = 0; 926 uint32_t _cf = 0; 927 int _df = 1; 928 uint32_t _flag_k = FK_NONE; 929 uint32_t _flag_a = 0, _flag_b = 0; 930 uint32_t _itail_tgt = 0; 931 RECOMP_REGS_LOCALS 932 RECOMP_ENTER(0x47033640u); 933 934 L_47033640: 935 MEM32(0x4710E464) = 0x4710518Cu; /* 0x47033640: mov dword ptr [0x4710e464], 0x4710518c */ 936 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703364A: ret */ 937 RECOMP_REGS_OUT(); 938 } 939 940 void sub_47033650(void) { 941 int _fpu_cmp = 0; 942 uint32_t _cf = 0; 943 int _df = 1; 944 uint32_t _flag_k = FK_NONE; 945 uint32_t _flag_a = 0, _flag_b = 0; 946 uint32_t _itail_tgt = 0; 947 RECOMP_REGS_LOCALS 948 RECOMP_ENTER(0x47033650u); 949 950 L_47033650: 951 MEM32(0x4710E47C) = 0x47106CA0u; /* 0x47033650: mov dword ptr [0x4710e47c], 0x47106ca0 */ 952 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703365A: ret */ 953 RECOMP_REGS_OUT(); 954 } 955 956 void sub_47033660(void) { 957 int _fpu_cmp = 0; 958 uint32_t _cf = 0; 959 int _df = 1; 960 uint32_t _flag_k = FK_NONE; 961 uint32_t _flag_a = 0, _flag_b = 0; 962 uint32_t _itail_tgt = 0; 963 RECOMP_REGS_LOCALS 964 RECOMP_ENTER(0x47033660u); 965 966 L_47033660: 967 MEM32(0x4710E478) = 0x47106CE0u; /* 0x47033660: mov dword ptr [0x4710e478], 0x47106ce0 */ 968 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703366A: ret */ 969 RECOMP_REGS_OUT(); 970 } 971 972 void sub_47033670(void) { 973 int _fpu_cmp = 0; 974 uint32_t _cf = 0; 975 int _df = 1; 976 uint32_t _flag_k = FK_NONE; 977 uint32_t _flag_a = 0, _flag_b = 0; 978 uint32_t _itail_tgt = 0; 979 RECOMP_REGS_LOCALS 980 RECOMP_ENTER(0x47033670u); 981 982 L_47033670: 983 PUSH32(esp, ecx); /* 0x47033670: push ecx */ 984 eax = MEM32(ecx); /* 0x47033671: mov eax, dword ptr [ecx] */ 985 ecx = MEM32(ecx + 0x4); /* 0x47033673: mov ecx, dword ptr [ecx + 4] */ 986 PUSH32(esp, esi); /* 0x47033676: push esi */ 987 esi = MEM32(esp + 0xC); /* 0x47033677: mov esi, dword ptr [esp + 0xc] */ 988 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4703367B: shr eax, 1 */ 989 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 990 eax = eax >> 1u; /* 0x4703367B: shr eax, 1 */ 991 PUSH32(esp, 0); /* 0x4703367D: push 0 */ 992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 993 eax = eax - 1; /* 0x4703367F: dec eax */ 994 _flag_k = FK_DEC; 995 PUSH32(esp, eax); /* 0x47033680: push eax */ 996 PUSH32(esp, ecx); /* 0x47033681: push ecx */ 997 ecx = esi; /* 0x47033682: mov ecx, esi */ 998 MEM32(esp + 0x10) = 0; /* 0x47033684: mov dword ptr [esp + 0x10], 0 */ 999 RECOMP_ICALL(0x47080BF0u); /* 0x4703368C: call 0x47080bf0 */ /* not lifted */ 1000 RECOMP_FLAGS_IN(); 1001 eax = esi; /* 0x47033691: mov eax, esi */ 1002 esi = POP32_VAL(esp); /* 0x47033693: pop esi */ 1003 ecx = POP32_VAL(esp); /* 0x47033694: pop ecx */ 1004 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033695: ret 4 */ 1005 RECOMP_REGS_OUT(); 1006 } 1007 1008 void sub_470336A0(void) { 1009 int _fpu_cmp = 0; 1010 uint32_t _cf = 0; 1011 int _df = 1; 1012 uint32_t _flag_k = FK_NONE; 1013 uint32_t _flag_a = 0, _flag_b = 0; 1014 uint32_t _itail_tgt = 0; 1015 RECOMP_REGS_LOCALS 1016 RECOMP_ENTER(0x470336A0u); 1017 1018 L_470336A0: 1019 PUSH32(esp, 0xFFFFFFFFu); /* 0x470336A0: push -1 */ 1020 PUSH32(esp, 0x470A5838u); /* 0x470336A2: push 0x470a5838 */ 1021 eax = MEM32(FS_BASE + (0)); /* 0x470336A7: mov eax, dword ptr fs:[0] */ 1022 PUSH32(esp, eax); /* 0x470336AD: push eax */ 1023 MEM32(FS_BASE + (0)) = esp; /* 0x470336AE: mov dword ptr fs:[0], esp */ 1024 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1026 esp = esp - 0xCu; /* 0x470336B5: sub esp, 0xc */ 1027 _flag_k = FK_CMP; 1028 eax = MEM32(ecx); /* 0x470336B8: mov eax, dword ptr [ecx] */ 1029 ecx = MEM32(ecx + 0x4); /* 0x470336BA: mov ecx, dword ptr [ecx + 4] */ 1030 PUSH32(esp, esi); /* 0x470336BD: push esi */ 1031 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x470336BE: shr eax, 1 */ 1032 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1033 eax = eax >> 1u; /* 0x470336BE: shr eax, 1 */ 1034 PUSH32(esp, 0); /* 0x470336C0: push 0 */ 1035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1036 eax = eax - 1; /* 0x470336C2: dec eax */ 1037 _flag_k = FK_DEC; 1038 PUSH32(esp, eax); /* 0x470336C3: push eax */ 1039 PUSH32(esp, ecx); /* 0x470336C4: push ecx */ 1040 ecx = esp + 0x10; /* 0x470336C5: lea ecx, [esp + 0x10] */ 1041 RECOMP_ICALL(0x47080BF0u); /* 0x470336C9: call 0x47080bf0 */ /* not lifted */ 1042 RECOMP_FLAGS_IN(); 1043 ecx = esp + 0x4; /* 0x470336CE: lea ecx, [esp + 4] */ 1044 MEM32(esp + 0x18) = 0; /* 0x470336D2: mov dword ptr [esp + 0x18], 0 */ 1045 RECOMP_ICALL(0x47080A40u); /* 0x470336DA: call 0x47080a40 */ /* not lifted */ 1046 RECOMP_FLAGS_IN(); 1047 ecx = esp + 0x4; /* 0x470336DF: lea ecx, [esp + 4] */ 1048 esi = eax; /* 0x470336E3: mov esi, eax */ 1049 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x470336E5: mov dword ptr [esp + 0x18], 0xffffffff */ 1050 RECOMP_ICALL(0x470810C0u); /* 0x470336ED: call 0x470810c0 */ /* not lifted */ 1051 RECOMP_FLAGS_IN(); 1052 ecx = MEM32(esp + 0x10); /* 0x470336F2: mov ecx, dword ptr [esp + 0x10] */ 1053 eax = esi; /* 0x470336F6: mov eax, esi */ 1054 esi = POP32_VAL(esp); /* 0x470336F8: pop esi */ 1055 MEM32(FS_BASE + (0)) = ecx; /* 0x470336F9: mov dword ptr fs:[0], ecx */ 1056 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1057 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1058 esp = esp + 0x18u; /* 0x47033700: add esp, 0x18 */ 1059 _flag_k = FK_ADD; 1060 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033703: ret */ 1061 RECOMP_REGS_OUT(); 1062 } 1063 1064 void sub_47033710(void) { 1065 int _fpu_cmp = 0; 1066 uint32_t _cf = 0; 1067 int _df = 1; 1068 uint32_t _flag_k = FK_NONE; 1069 uint32_t _flag_a = 0, _flag_b = 0; 1070 uint32_t _itail_tgt = 0; 1071 RECOMP_REGS_LOCALS 1072 RECOMP_ENTER(0x47033710u); 1073 1074 L_47033710: 1075 eax = ecx; /* 0x47033710: mov eax, ecx */ 1076 ecx = MEM32(esp + 0x4); /* 0x47033712: mov ecx, dword ptr [esp + 4] */ 1077 edx = MEM32(ecx + 0x4); /* 0x47033716: mov edx, dword ptr [ecx + 4] */ 1078 edx = edx + edx + 0x2; /* 0x47033719: lea edx, [edx + edx + 2] */ 1079 MEM32(eax) = edx; /* 0x4703371D: mov dword ptr [eax], edx */ 1080 ecx = MEM32(ecx + 0x8); /* 0x4703371F: mov ecx, dword ptr [ecx + 8] */ 1081 MEM32(eax + 0x4) = ecx; /* 0x47033722: mov dword ptr [eax + 4], ecx */ 1082 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033725: ret 4 */ 1083 RECOMP_REGS_OUT(); 1084 } 1085 1086 void sub_47033730(void) { 1087 int _fpu_cmp = 0; 1088 uint32_t _cf = 0; 1089 int _df = 1; 1090 uint32_t _flag_k = FK_NONE; 1091 uint32_t _flag_a = 0, _flag_b = 0; 1092 uint32_t _itail_tgt = 0; 1093 RECOMP_REGS_LOCALS 1094 RECOMP_ENTER(0x47033730u); 1095 1096 L_47033730: 1097 PUSH32(esp, ecx); /* 0x47033730: push ecx */ 1098 edx = MEM32(esp + 0x8); /* 0x47033731: mov edx, dword ptr [esp + 8] */ 1099 eax = MEM32(edx); /* 0x47033735: mov eax, dword ptr [edx] */ 1100 PUSH32(esp, ebx); /* 0x47033737: push ebx */ 1101 PUSH32(esp, ebp); /* 0x47033738: push ebp */ 1102 ebx = ecx; /* 0x47033739: mov ebx, ecx */ 1103 ecx = MEM32(ebx); /* 0x4703373B: mov ecx, dword ptr [ebx] */ 1104 /* cmp ecx, eax */ /* 0x4703373D: cmp ecx, eax */ 1105 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1107 _flag_k = FK_CMP; 1108 PUSH32(esp, esi); /* 0x4703373F: push esi */ 1109 PUSH32(esp, edi); /* 0x47033740: push edi */ 1110 if (CMP_B(_flag_a, _flag_b)) goto L_470337A4; /* 0x47033741: jb 0x470337a4 */ 1111 L_47033743: 1112 if (CMP_NE(_flag_a, _flag_b)) goto L_47033764; /* 0x47033743: jne 0x47033764 */ 1113 L_47033745: 1114 esi = MEM32(ebx + 0x4); /* 0x47033745: mov esi, dword ptr [ebx + 4] */ 1115 edi = MEM32(edx + 0x4); /* 0x47033748: mov edi, dword ptr [edx + 4] */ 1116 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1117 eax = 0; /* 0x4703374B: xor eax, eax */ 1118 _cf = 0; 1119 _flag_k = FK_TEST; 1120 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4703374D: repe cmpsb byte ptr [esi], byte ptr es:[edi] */ 1121 SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) ? 1 : 0); /* 0x4703374F: sete al */ 1122 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1123 ecx = 0; /* 0x47033752: xor ecx, ecx */ 1124 _cf = 0; 1125 _flag_k = FK_TEST; 1126 edi = POP32_VAL(esp); /* 0x47033754: pop edi */ 1127 esi = POP32_VAL(esp); /* 0x47033755: pop esi */ 1128 ebp = POP32_VAL(esp); /* 0x47033756: pop ebp */ 1129 ebx = POP32_VAL(esp); /* 0x47033757: pop ebx */ 1130 /* test eax, eax */ /* 0x47033758: test eax, eax */ 1131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1132 _cf = 0; 1133 _flag_k = FK_TEST; 1134 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4703375A: setne cl */ 1135 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1136 ecx = ecx - 1; /* 0x4703375D: dec ecx */ 1137 _flag_k = FK_DEC; 1138 eax = ecx; /* 0x4703375E: mov eax, ecx */ 1139 ecx = POP32_VAL(esp); /* 0x47033760: pop ecx */ 1140 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033761: ret 4 */ 1141 L_47033764: 1142 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1144 ecx = ecx - eax; /* 0x47033764: sub ecx, eax */ 1145 _flag_k = FK_CMP; 1146 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x47033766: shr ecx, 1 */ 1147 if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1148 ecx = ecx >> 1u; /* 0x47033766: shr ecx, 1 */ 1149 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x47033768: shr eax, 1 */ 1150 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1151 eax = eax >> 1u; /* 0x47033768: shr eax, 1 */ 1152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1153 eax = eax - 1; /* 0x4703376A: dec eax */ 1154 _flag_k = FK_DEC; 1155 MEM32(esp + 0x10) = ecx; /* 0x4703376B: mov dword ptr [esp + 0x10], ecx */ 1156 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1157 edi = 0; /* 0x4703376F: xor edi, edi */ 1158 _cf = 0; 1159 _flag_k = FK_TEST; 1160 L_47033771: 1161 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1162 ecx = 0; /* 0x47033771: xor ecx, ecx */ 1163 _cf = 0; 1164 _flag_k = FK_TEST; 1165 /* test eax, eax */ /* 0x47033773: test eax, eax */ 1166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1167 _cf = 0; 1168 _flag_k = FK_TEST; 1169 if (TEST_Z(_flag_a, _flag_b)) goto L_47033797; /* 0x47033775: jbe 0x47033797 */ 1170 L_47033777: 1171 esi = MEM32(edx + 0x4); /* 0x47033777: mov esi, dword ptr [edx + 4] */ 1172 edx = MEM32(ebx + 0x4); /* 0x4703377A: mov edx, dword ptr [ebx + 4] */ 1173 edx = edx + edi * 2; /* 0x4703377D: lea edx, [edx + edi*2] */ 1174 L_47033780: 1175 SET_LO16(ebp, MEM16(edx)); /* 0x47033780: mov bp, word ptr [edx] */ 1176 /* cmp LO16(ebp), MEM16(esi) */ /* 0x47033783: cmp bp, word ptr [esi] */ 1177 _flag_a = (uint32_t)(LO16(ebp)) << 16; _flag_b = (uint32_t)(MEM16(esi)) << 16; 1178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1179 _flag_k = FK_NARROW(FK_CMP, 16); 1180 if (CMP_NE(_flag_a, _flag_b)) goto L_47033793; /* 0x47033786: jne 0x47033793 */ 1181 L_47033788: 1182 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1183 ecx = ecx + 1; /* 0x47033788: inc ecx */ 1184 _flag_k = FK_INC; 1185 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1187 edx = edx + 2; /* 0x47033789: add edx, 2 */ 1188 _flag_k = FK_ADD; 1189 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 1190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1191 esi = esi + 2; /* 0x4703378C: add esi, 2 */ 1192 _flag_k = FK_ADD; 1193 /* cmp ecx, eax */ /* 0x4703378F: cmp ecx, eax */ 1194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1196 _flag_k = FK_CMP; 1197 RECOMP_BACKEDGE(); 1198 if (CMP_B(_flag_a, _flag_b)) goto L_47033780; /* 0x47033791: jb 0x47033780 */ 1199 L_47033793: 1200 edx = MEM32(esp + 0x18); /* 0x47033793: mov edx, dword ptr [esp + 0x18] */ 1201 L_47033797: 1202 /* cmp ecx, eax */ /* 0x47033797: cmp ecx, eax */ 1203 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1205 _flag_k = FK_CMP; 1206 if (CMP_EQ(_flag_a, _flag_b)) goto L_470337AF; /* 0x47033799: je 0x470337af */ 1207 L_4703379B: 1208 ecx = MEM32(esp + 0x10); /* 0x4703379B: mov ecx, dword ptr [esp + 0x10] */ 1209 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1210 edi = edi + 1; /* 0x4703379F: inc edi */ 1211 _flag_k = FK_INC; 1212 /* cmp edi, ecx */ /* 0x470337A0: cmp edi, ecx */ 1213 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1215 _flag_k = FK_CMP; 1216 RECOMP_BACKEDGE(); 1217 if (CMP_BE(_flag_a, _flag_b)) goto L_47033771; /* 0x470337A2: jbe 0x47033771 */ 1218 L_470337A4: 1219 edi = POP32_VAL(esp); /* 0x470337A4: pop edi */ 1220 esi = POP32_VAL(esp); /* 0x470337A5: pop esi */ 1221 ebp = POP32_VAL(esp); /* 0x470337A6: pop ebp */ 1222 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1223 eax = eax | 0xFFFFFFFFu; /* 0x470337A7: or eax, 0xffffffff */ 1224 _cf = 0; 1225 _flag_k = FK_TEST; 1226 ebx = POP32_VAL(esp); /* 0x470337AA: pop ebx */ 1227 ecx = POP32_VAL(esp); /* 0x470337AB: pop ecx */ 1228 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470337AC: ret 4 */ 1229 L_470337AF: 1230 eax = edi; /* 0x470337AF: mov eax, edi */ 1231 edi = POP32_VAL(esp); /* 0x470337B1: pop edi */ 1232 esi = POP32_VAL(esp); /* 0x470337B2: pop esi */ 1233 ebp = POP32_VAL(esp); /* 0x470337B3: pop ebp */ 1234 ebx = POP32_VAL(esp); /* 0x470337B4: pop ebx */ 1235 ecx = POP32_VAL(esp); /* 0x470337B5: pop ecx */ 1236 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470337B6: ret 4 */ 1237 RECOMP_REGS_OUT(); 1238 } 1239 1240 void sub_470337C0(void) { 1241 int _fpu_cmp = 0; 1242 uint32_t _cf = 0; 1243 int _df = 1; 1244 uint32_t _flag_k = FK_NONE; 1245 uint32_t _flag_a = 0, _flag_b = 0; 1246 uint32_t _itail_tgt = 0; 1247 RECOMP_REGS_LOCALS 1248 RECOMP_ENTER(0x470337C0u); 1249 1250 L_470337C0: 1251 edx = MEM32(esp + 0x4); /* 0x470337C0: mov edx, dword ptr [esp + 4] */ 1252 eax = ecx; /* 0x470337C4: mov eax, ecx */ 1253 ecx = MEM32(eax); /* 0x470337C6: mov ecx, dword ptr [eax] */ 1254 PUSH32(esp, esi); /* 0x470337C8: push esi */ 1255 /* cmp ecx, MEM32(edx) */ /* 0x470337C9: cmp ecx, dword ptr [edx] */ 1256 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edx)); 1257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1258 _flag_k = FK_CMP; 1259 if (CMP_NE(_flag_a, _flag_b)) goto L_470337ED; /* 0x470337CB: jne 0x470337ed */ 1260 L_470337CD: 1261 esi = MEM32(eax + 0x4); /* 0x470337CD: mov esi, dword ptr [eax + 4] */ 1262 PUSH32(esp, edi); /* 0x470337D0: push edi */ 1263 edi = MEM32(edx + 0x4); /* 0x470337D1: mov edi, dword ptr [edx + 4] */ 1264 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1265 eax = 0; /* 0x470337D4: xor eax, eax */ 1266 _cf = 0; 1267 _flag_k = FK_TEST; 1268 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x470337D6: repe cmpsb byte ptr [esi], byte ptr es:[edi] */ 1269 edi = POP32_VAL(esp); /* 0x470337D8: pop edi */ 1270 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_470337ED; /* 0x470337D9: jne 0x470337ed */ 1271 L_470337DB: 1272 eax = 1; /* 0x470337DB: mov eax, 1 */ 1273 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1274 ecx = 0; /* 0x470337E0: xor ecx, ecx */ 1275 _cf = 0; 1276 _flag_k = FK_TEST; 1277 /* test eax, eax */ /* 0x470337E2: test eax, eax */ 1278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1279 _cf = 0; 1280 _flag_k = FK_TEST; 1281 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x470337E4: sete cl */ 1282 esi = POP32_VAL(esp); /* 0x470337E7: pop esi */ 1283 eax = ecx; /* 0x470337E8: mov eax, ecx */ 1284 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470337EA: ret 4 */ 1285 L_470337ED: 1286 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1287 eax = 0; /* 0x470337ED: xor eax, eax */ 1288 _cf = 0; 1289 _flag_k = FK_TEST; 1290 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1291 ecx = 0; /* 0x470337EF: xor ecx, ecx */ 1292 _cf = 0; 1293 _flag_k = FK_TEST; 1294 /* test eax, eax */ /* 0x470337F1: test eax, eax */ 1295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1296 _cf = 0; 1297 _flag_k = FK_TEST; 1298 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x470337F3: sete cl */ 1299 esi = POP32_VAL(esp); /* 0x470337F6: pop esi */ 1300 eax = ecx; /* 0x470337F7: mov eax, ecx */ 1301 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470337F9: ret 4 */ 1302 RECOMP_REGS_OUT(); 1303 } 1304 1305 void sub_47033800(void) { 1306 int _fpu_cmp = 0; 1307 uint32_t _cf = 0; 1308 int _df = 1; 1309 uint32_t _flag_k = FK_NONE; 1310 uint32_t _flag_a = 0, _flag_b = 0; 1311 uint32_t _itail_tgt = 0; 1312 RECOMP_REGS_LOCALS 1313 RECOMP_ENTER(0x47033800u); 1314 1315 L_47033800: 1316 eax = ecx; /* 0x47033800: mov eax, ecx */ 1317 ecx = MEM32(esp + 0xC); /* 0x47033802: mov ecx, dword ptr [esp + 0xc] */ 1318 PUSH32(esp, esi); /* 0x47033806: push esi */ 1319 esi = MEM32(esp + 0xC); /* 0x47033807: mov esi, dword ptr [esp + 0xc] */ 1320 MEM32(eax) = ecx; /* 0x4703380B: mov dword ptr [eax], ecx */ 1321 PUSH32(esp, edi); /* 0x4703380D: push edi */ 1322 edi = MEM32(esp + 0xC); /* 0x4703380E: mov edi, dword ptr [esp + 0xc] */ 1323 edx = ecx; /* 0x47033812: mov edx, ecx */ 1324 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47033814: shr ecx, 2 */ 1325 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1326 ecx = ecx >> 2u; /* 0x47033814: shr ecx, 2 */ 1327 MEM32(eax + 0x4) = edi; /* 0x47033817: mov dword ptr [eax + 4], edi */ 1328 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4703381A: 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; } 1329 ecx = edx; /* 0x4703381C: mov ecx, edx */ 1330 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1331 ecx = ecx & 3; /* 0x4703381E: and ecx, 3 */ 1332 _cf = 0; 1333 _flag_k = FK_TEST; 1334 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47033821: 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; } 1335 edi = POP32_VAL(esp); /* 0x47033823: pop edi */ 1336 esi = POP32_VAL(esp); /* 0x47033824: pop esi */ 1337 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47033825: ret 0xc */ 1338 RECOMP_REGS_OUT(); 1339 } 1340 1341 void sub_47033830(void) { 1342 int _fpu_cmp = 0; 1343 uint32_t _cf = 0; 1344 int _df = 1; 1345 uint32_t _flag_k = FK_NONE; 1346 uint32_t _flag_a = 0, _flag_b = 0; 1347 uint32_t _itail_tgt = 0; 1348 RECOMP_REGS_LOCALS 1349 RECOMP_ENTER(0x47033830u); 1350 1351 L_47033830: 1352 eax = MEM32(ecx + 0x4); /* 0x47033830: mov eax, dword ptr [ecx + 4] */ 1353 PUSH32(esp, eax); /* 0x47033833: push eax */ 1354 RECOMP_ICALL(0x4700B560u); /* 0x47033834: call 0x4700b560 */ /* not lifted */ 1355 RECOMP_FLAGS_IN(); 1356 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1358 esp = esp + 4; /* 0x47033839: add esp, 4 */ 1359 _flag_k = FK_ADD; 1360 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703383C: ret */ 1361 RECOMP_REGS_OUT(); 1362 } 1363 1364 void sub_47033840(void) { 1365 int _fpu_cmp = 0; 1366 uint32_t _cf = 0; 1367 int _df = 1; 1368 uint32_t _flag_k = FK_NONE; 1369 uint32_t _flag_a = 0, _flag_b = 0; 1370 uint32_t _itail_tgt = 0; 1371 RECOMP_REGS_LOCALS 1372 RECOMP_ENTER(0x47033840u); 1373 1374 L_47033840: 1375 eax = ecx; /* 0x47033840: mov eax, ecx */ 1376 ecx = MEM32(esp + 0x4); /* 0x47033842: mov ecx, dword ptr [esp + 4] */ 1377 edx = MEM32(ecx); /* 0x47033846: mov edx, dword ptr [ecx] */ 1378 MEM32(eax) = edx; /* 0x47033848: mov dword ptr [eax], edx */ 1379 ecx = MEM32(ecx + 0x4); /* 0x4703384A: mov ecx, dword ptr [ecx + 4] */ 1380 edx = MEM32(esp + 0x8); /* 0x4703384D: mov edx, dword ptr [esp + 8] */ 1381 MEM32(eax + 0x4) = ecx; /* 0x47033851: mov dword ptr [eax + 4], ecx */ 1382 MEM32(eax + 0x8) = edx; /* 0x47033854: mov dword ptr [eax + 8], edx */ 1383 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47033857: ret 8 */ 1384 RECOMP_REGS_OUT(); 1385 } 1386 1387 void sub_47033860(void) { 1388 int _fpu_cmp = 0; 1389 uint32_t _cf = 0; 1390 int _df = 1; 1391 uint32_t _flag_k = FK_NONE; 1392 uint32_t _flag_a = 0, _flag_b = 0; 1393 uint32_t _itail_tgt = 0; 1394 RECOMP_REGS_LOCALS 1395 RECOMP_ENTER(0x47033860u); 1396 1397 L_47033860: 1398 edx = MEM32(esp + 0x4); /* 0x47033860: mov edx, dword ptr [esp + 4] */ 1399 eax = ecx; /* 0x47033864: mov eax, ecx */ 1400 ecx = MEM32(eax); /* 0x47033866: mov ecx, dword ptr [eax] */ 1401 PUSH32(esp, esi); /* 0x47033868: push esi */ 1402 /* cmp ecx, MEM32(edx) */ /* 0x47033869: cmp ecx, dword ptr [edx] */ 1403 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edx)); 1404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1405 _flag_k = FK_CMP; 1406 if (CMP_NE(_flag_a, _flag_b)) goto L_47033884; /* 0x4703386B: jne 0x47033884 */ 1407 L_4703386D: 1408 esi = MEM32(eax + 0x4); /* 0x4703386D: mov esi, dword ptr [eax + 4] */ 1409 PUSH32(esp, edi); /* 0x47033870: push edi */ 1410 edi = MEM32(edx + 0x4); /* 0x47033871: mov edi, dword ptr [edx + 4] */ 1411 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1412 eax = 0; /* 0x47033874: xor eax, eax */ 1413 _cf = 0; 1414 _flag_k = FK_TEST; 1415 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47033876: repe cmpsb byte ptr [esi], byte ptr es:[edi] */ 1416 edi = POP32_VAL(esp); /* 0x47033878: pop edi */ 1417 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_47033884; /* 0x47033879: jne 0x47033884 */ 1418 L_4703387B: 1419 eax = 1; /* 0x4703387B: mov eax, 1 */ 1420 esi = POP32_VAL(esp); /* 0x47033880: pop esi */ 1421 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033881: ret 4 */ 1422 L_47033884: 1423 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1424 eax = 0; /* 0x47033884: xor eax, eax */ 1425 _cf = 0; 1426 _flag_k = FK_TEST; 1427 esi = POP32_VAL(esp); /* 0x47033886: pop esi */ 1428 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033887: ret 4 */ 1429 RECOMP_REGS_OUT(); 1430 } 1431 1432 void sub_47033890(void) { 1433 int _fpu_cmp = 0; 1434 uint32_t _cf = 0; 1435 int _df = 1; 1436 uint32_t _flag_k = FK_NONE; 1437 uint32_t _flag_a = 0, _flag_b = 0; 1438 uint32_t _itail_tgt = 0; 1439 RECOMP_REGS_LOCALS 1440 RECOMP_ENTER(0x47033890u); 1441 1442 L_47033890: 1443 edx = MEM32(ecx); /* 0x47033890: mov edx, dword ptr [ecx] */ 1444 eax = MEM32(esp + 0x4); /* 0x47033892: mov eax, dword ptr [esp + 4] */ 1445 MEM32(eax) = edx; /* 0x47033896: mov dword ptr [eax], edx */ 1446 ecx = MEM32(ecx + 0x4); /* 0x47033898: mov ecx, dword ptr [ecx + 4] */ 1447 MEM32(eax + 0x4) = ecx; /* 0x4703389B: mov dword ptr [eax + 4], ecx */ 1448 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703389E: ret 4 */ 1449 RECOMP_REGS_OUT(); 1450 } 1451 1452 void sub_470338B0(void) { 1453 int _fpu_cmp = 0; 1454 uint32_t _cf = 0; 1455 int _df = 1; 1456 uint32_t _flag_k = FK_NONE; 1457 uint32_t _flag_a = 0, _flag_b = 0; 1458 uint32_t _itail_tgt = 0; 1459 RECOMP_REGS_LOCALS 1460 RECOMP_ENTER(0x470338B0u); 1461 1462 goto L_470338B0; 1463 L_470335D0: 1464 PUSH32(esp, ebx); /* 0x470335D0: push ebx */ 1465 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470335D1: mov bl, byte ptr [esp + 8] */ 1466 /* test LO8(ebx), 2 */ /* 0x470335D5: test bl, 2 */ 1467 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1468 _cf = 0; 1469 _flag_k = FK_NARROW(FK_TEST, 24); 1470 PUSH32(esp, esi); /* 0x470335D8: push esi */ 1471 esi = ecx; /* 0x470335D9: mov esi, ecx */ 1472 if (TEST_Z(_flag_a, _flag_b)) goto L_4703360B; /* 0x470335DB: je 0x4703360b */ 1473 L_470335DD: 1474 eax = MEM32(esi + (-0x4)); /* 0x470335DD: mov eax, dword ptr [esi - 4] */ 1475 PUSH32(esp, edi); /* 0x470335E0: push edi */ 1476 PUSH32(esp, 0x470489A0u); /* 0x470335E1: push 0x470489a0 */ 1477 edi = esi + (-0x4); /* 0x470335E6: lea edi, [esi - 4] */ 1478 PUSH32(esp, eax); /* 0x470335E9: push eax */ 1479 PUSH32(esp, 0x124u); /* 0x470335EA: push 0x124 */ 1480 PUSH32(esp, esi); /* 0x470335EF: push esi */ 1481 RECOMP_ICALL(0x470A32EBu); /* 0x470335F0: call 0x470a32eb */ /* not lifted */ 1482 RECOMP_FLAGS_IN(); 1483 /* test LO8(ebx), 1 */ /* 0x470335F5: test bl, 1 */ 1484 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1485 _cf = 0; 1486 _flag_k = FK_NARROW(FK_TEST, 24); 1487 if (TEST_Z(_flag_a, _flag_b)) goto L_47033603; /* 0x470335F8: je 0x47033603 */ 1488 L_470335FA: 1489 PUSH32(esp, edi); /* 0x470335FA: push edi */ 1490 RECOMP_ICALL(0x470A32A2u); /* 0x470335FB: call 0x470a32a2 */ /* not lifted */ 1491 RECOMP_FLAGS_IN(); 1492 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1493 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1494 esp = esp + 4; /* 0x47033600: add esp, 4 */ 1495 _flag_k = FK_ADD; 1496 L_47033603: 1497 eax = edi; /* 0x47033603: mov eax, edi */ 1498 edi = POP32_VAL(esp); /* 0x47033605: pop edi */ 1499 esi = POP32_VAL(esp); /* 0x47033606: pop esi */ 1500 ebx = POP32_VAL(esp); /* 0x47033607: pop ebx */ 1501 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033608: ret 4 */ 1502 L_4703360B: 1503 ecx = esi; /* 0x4703360B: mov ecx, esi */ 1504 RECOMP_ICALL(0x470489A0u); /* 0x4703360D: call 0x470489a0 */ /* not lifted */ 1505 RECOMP_FLAGS_IN(); 1506 /* test LO8(ebx), 1 */ /* 0x47033612: test bl, 1 */ 1507 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1508 _cf = 0; 1509 _flag_k = FK_NARROW(FK_TEST, 24); 1510 if (TEST_Z(_flag_a, _flag_b)) goto L_47033620; /* 0x47033615: je 0x47033620 */ 1511 L_47033617: 1512 PUSH32(esp, esi); /* 0x47033617: push esi */ 1513 RECOMP_ICALL(0x470A32A2u); /* 0x47033618: call 0x470a32a2 */ /* not lifted */ 1514 RECOMP_FLAGS_IN(); 1515 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1516 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1517 esp = esp + 4; /* 0x4703361D: add esp, 4 */ 1518 _flag_k = FK_ADD; 1519 L_47033620: 1520 eax = esi; /* 0x47033620: mov eax, esi */ 1521 esi = POP32_VAL(esp); /* 0x47033622: pop esi */ 1522 ebx = POP32_VAL(esp); /* 0x47033623: pop ebx */ 1523 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033624: ret 4 */ 1524 L_470338B0: 1525 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 1526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1527 ecx = ecx - 0xCu; /* 0x470338B0: sub ecx, 0xc */ 1528 _flag_k = FK_CMP; 1529 RECOMP_BACKEDGE(); 1530 goto L_470335D0; /* 0x470338B3: jmp 0x470335d0 */ 1531 { RECOMP_REGS_OUT(); return; } /* end of function */ 1532 RECOMP_REGS_OUT(); 1533 } 1534 1535 void sub_470338C0(void) { 1536 int _fpu_cmp = 0; 1537 uint32_t _cf = 0; 1538 int _df = 1; 1539 uint32_t _flag_k = FK_NONE; 1540 uint32_t _flag_a = 0, _flag_b = 0; 1541 uint32_t _itail_tgt = 0; 1542 RECOMP_REGS_LOCALS 1543 RECOMP_ENTER(0x470338C0u); 1544 1545 L_470338C0: 1546 ecx = 0x4710E49Du; /* 0x470338C0: mov ecx, 0x4710e49d */ 1547 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470338C5: call dword ptr [0x470ac1c8] */ 1548 RECOMP_FLAGS_IN(); 1549 PUSH32(esp, 0x470338E0u); /* 0x470338CB: push 0x470338e0 */ 1550 RECOMP_ICALL(0x470A32D9u); /* 0x470338D0: call 0x470a32d9 */ /* not lifted */ 1551 RECOMP_FLAGS_IN(); 1552 ecx = POP32_VAL(esp); /* 0x470338D5: pop ecx */ 1553 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470338D6: ret */ 1554 RECOMP_REGS_OUT(); 1555 } 1556 1557 void sub_470338E0(void) { 1558 int _fpu_cmp = 0; 1559 uint32_t _cf = 0; 1560 int _df = 1; 1561 uint32_t _flag_k = FK_NONE; 1562 uint32_t _flag_a = 0, _flag_b = 0; 1563 uint32_t _itail_tgt = 0; 1564 RECOMP_REGS_LOCALS 1565 RECOMP_ENTER(0x470338E0u); 1566 1567 L_470338E0: 1568 ecx = 0x4710E49Du; /* 0x470338E0: mov ecx, 0x4710e49d */ 1569 L_470338E5: 1570 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 1571 { RECOMP_REGS_OUT(); return; } /* end of function */ 1572 _ljump: 1573 switch (_itail_tgt) { 1574 case 0x470338E0u: goto L_470338E0; 1575 case 0x470338E5u: goto L_470338E5; 1576 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1577 } 1578 RECOMP_REGS_OUT(); 1579 } 1580 1581 void sub_470338F0(void) { 1582 int _fpu_cmp = 0; 1583 uint32_t _cf = 0; 1584 int _df = 1; 1585 uint32_t _flag_k = FK_NONE; 1586 uint32_t _flag_a = 0, _flag_b = 0; 1587 uint32_t _itail_tgt = 0; 1588 RECOMP_REGS_LOCALS 1589 RECOMP_ENTER(0x470338F0u); 1590 1591 L_470338F0: 1592 ecx = 0x4710E49Cu; /* 0x470338F0: mov ecx, 0x4710e49c */ 1593 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470338F5: call dword ptr [0x470ac1c4] */ 1594 RECOMP_FLAGS_IN(); 1595 PUSH32(esp, 0x47033910u); /* 0x470338FB: push 0x47033910 */ 1596 RECOMP_ICALL(0x470A32D9u); /* 0x47033900: call 0x470a32d9 */ /* not lifted */ 1597 RECOMP_FLAGS_IN(); 1598 ecx = POP32_VAL(esp); /* 0x47033905: pop ecx */ 1599 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033906: ret */ 1600 RECOMP_REGS_OUT(); 1601 } 1602 1603 void sub_47033910(void) { 1604 int _fpu_cmp = 0; 1605 uint32_t _cf = 0; 1606 int _df = 1; 1607 uint32_t _flag_k = FK_NONE; 1608 uint32_t _flag_a = 0, _flag_b = 0; 1609 uint32_t _itail_tgt = 0; 1610 RECOMP_REGS_LOCALS 1611 RECOMP_ENTER(0x47033910u); 1612 1613 L_47033910: 1614 ecx = 0x4710E49Cu; /* 0x47033910: mov ecx, 0x4710e49c */ 1615 L_47033915: 1616 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 1617 { RECOMP_REGS_OUT(); return; } /* end of function */ 1618 _ljump: 1619 switch (_itail_tgt) { 1620 case 0x47033910u: goto L_47033910; 1621 case 0x47033915u: goto L_47033915; 1622 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1623 } 1624 RECOMP_REGS_OUT(); 1625 } 1626 1627 void sub_47033920(void) { 1628 int _fpu_cmp = 0; 1629 uint32_t _cf = 0; 1630 int _df = 1; 1631 uint32_t _flag_k = FK_NONE; 1632 uint32_t _flag_a = 0, _flag_b = 0; 1633 uint32_t _itail_tgt = 0; 1634 RECOMP_REGS_LOCALS 1635 RECOMP_ENTER(0x47033920u); 1636 1637 L_47033920: 1638 MEM32(0x4710E490) = 0x47104A3Cu; /* 0x47033920: mov dword ptr [0x4710e490], 0x47104a3c */ 1639 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703392A: ret */ 1640 RECOMP_REGS_OUT(); 1641 } 1642 1643 void sub_47033930(void) { 1644 int _fpu_cmp = 0; 1645 uint32_t _cf = 0; 1646 int _df = 1; 1647 uint32_t _flag_k = FK_NONE; 1648 uint32_t _flag_a = 0, _flag_b = 0; 1649 uint32_t _itail_tgt = 0; 1650 RECOMP_REGS_LOCALS 1651 RECOMP_ENTER(0x47033930u); 1652 1653 L_47033930: 1654 MEM32(0x4710E4A4) = 0x47104A00u; /* 0x47033930: mov dword ptr [0x4710e4a4], 0x47104a00 */ 1655 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703393A: ret */ 1656 RECOMP_REGS_OUT(); 1657 } 1658 1659 void sub_47033940(void) { 1660 int _fpu_cmp = 0; 1661 uint32_t _cf = 0; 1662 int _df = 1; 1663 uint32_t _flag_k = FK_NONE; 1664 uint32_t _flag_a = 0, _flag_b = 0; 1665 uint32_t _itail_tgt = 0; 1666 RECOMP_REGS_LOCALS 1667 RECOMP_ENTER(0x47033940u); 1668 1669 L_47033940: 1670 MEM32(0x4710E4A0) = 0x47104A70u; /* 0x47033940: mov dword ptr [0x4710e4a0], 0x47104a70 */ 1671 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703394A: ret */ 1672 RECOMP_REGS_OUT(); 1673 } 1674 1675 void sub_47033950(void) { 1676 int _fpu_cmp = 0; 1677 uint32_t _cf = 0; 1678 int _df = 1; 1679 uint32_t _flag_k = FK_NONE; 1680 uint32_t _flag_a = 0, _flag_b = 0; 1681 uint32_t _itail_tgt = 0; 1682 RECOMP_REGS_LOCALS 1683 RECOMP_ENTER(0x47033950u); 1684 1685 L_47033950: 1686 MEM32(0x4710E4B4) = 0x47104B6Cu; /* 0x47033950: mov dword ptr [0x4710e4b4], 0x47104b6c */ 1687 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703395A: ret */ 1688 RECOMP_REGS_OUT(); 1689 } 1690 1691 void sub_47033960(void) { 1692 int _fpu_cmp = 0; 1693 uint32_t _cf = 0; 1694 int _df = 1; 1695 uint32_t _flag_k = FK_NONE; 1696 uint32_t _flag_a = 0, _flag_b = 0; 1697 uint32_t _itail_tgt = 0; 1698 RECOMP_REGS_LOCALS 1699 RECOMP_ENTER(0x47033960u); 1700 1701 L_47033960: 1702 MEM32(0x4710E494) = 0x47104BA0u; /* 0x47033960: mov dword ptr [0x4710e494], 0x47104ba0 */ 1703 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703396A: ret */ 1704 RECOMP_REGS_OUT(); 1705 } 1706 1707 void sub_47033970(void) { 1708 int _fpu_cmp = 0; 1709 uint32_t _cf = 0; 1710 int _df = 1; 1711 uint32_t _flag_k = FK_NONE; 1712 uint32_t _flag_a = 0, _flag_b = 0; 1713 uint32_t _itail_tgt = 0; 1714 RECOMP_REGS_LOCALS 1715 RECOMP_ENTER(0x47033970u); 1716 1717 L_47033970: 1718 MEM32(0x4710E4B0) = 0x47104BD4u; /* 0x47033970: mov dword ptr [0x4710e4b0], 0x47104bd4 */ 1719 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703397A: ret */ 1720 RECOMP_REGS_OUT(); 1721 } 1722 1723 void sub_47033980(void) { 1724 int _fpu_cmp = 0; 1725 uint32_t _cf = 0; 1726 int _df = 1; 1727 uint32_t _flag_k = FK_NONE; 1728 uint32_t _flag_a = 0, _flag_b = 0; 1729 uint32_t _itail_tgt = 0; 1730 RECOMP_REGS_LOCALS 1731 RECOMP_ENTER(0x47033980u); 1732 1733 L_47033980: 1734 MEM32(0x4710E4A8) = 0x471050FCu; /* 0x47033980: mov dword ptr [0x4710e4a8], 0x471050fc */ 1735 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703398A: ret */ 1736 RECOMP_REGS_OUT(); 1737 } 1738 1739 void sub_47033990(void) { 1740 int _fpu_cmp = 0; 1741 uint32_t _cf = 0; 1742 int _df = 1; 1743 uint32_t _flag_k = FK_NONE; 1744 uint32_t _flag_a = 0, _flag_b = 0; 1745 uint32_t _itail_tgt = 0; 1746 RECOMP_REGS_LOCALS 1747 RECOMP_ENTER(0x47033990u); 1748 1749 L_47033990: 1750 MEM32(0x4710E4AC) = 0x471053F0u; /* 0x47033990: mov dword ptr [0x4710e4ac], 0x471053f0 */ 1751 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703399A: ret */ 1752 RECOMP_REGS_OUT(); 1753 } 1754 1755 void sub_470339A0(void) { 1756 int _fpu_cmp = 0; 1757 uint32_t _cf = 0; 1758 int _df = 1; 1759 uint32_t _flag_k = FK_NONE; 1760 uint32_t _flag_a = 0, _flag_b = 0; 1761 uint32_t _itail_tgt = 0; 1762 RECOMP_REGS_LOCALS 1763 RECOMP_ENTER(0x470339A0u); 1764 1765 L_470339A0: 1766 eax = ecx; /* 0x470339A0: mov eax, ecx */ 1767 ecx = MEM32(esp + 0x4); /* 0x470339A2: mov ecx, dword ptr [esp + 4] */ 1768 edx = MEM32(ecx + 0x4); /* 0x470339A6: mov edx, dword ptr [ecx + 4] */ 1769 MEM32(eax + 0x4) = edx; /* 0x470339A9: mov dword ptr [eax + 4], edx */ 1770 edx = MEM32(ecx + 0x8); /* 0x470339AC: mov edx, dword ptr [ecx + 8] */ 1771 PUSH32(esp, esi); /* 0x470339AF: push esi */ 1772 MEM32(eax + 0x8) = edx; /* 0x470339B0: mov dword ptr [eax + 8], edx */ 1773 PUSH32(esp, edi); /* 0x470339B3: push edi */ 1774 edx = ecx + 0xC; /* 0x470339B4: lea edx, [ecx + 0xc] */ 1775 edi = MEM32(edx); /* 0x470339B7: mov edi, dword ptr [edx] */ 1776 esi = eax + 0xC; /* 0x470339B9: lea esi, [eax + 0xc] */ 1777 MEM32(esi) = edi; /* 0x470339BC: mov dword ptr [esi], edi */ 1778 edi = MEM32(edx + 0x4); /* 0x470339BE: mov edi, dword ptr [edx + 4] */ 1779 MEM32(esi + 0x4) = edi; /* 0x470339C1: mov dword ptr [esi + 4], edi */ 1780 edx = MEM32(edx + 0x8); /* 0x470339C4: mov edx, dword ptr [edx + 8] */ 1781 MEM32(esi + 0x8) = edx; /* 0x470339C7: mov dword ptr [esi + 8], edx */ 1782 esi = ecx + 0x18; /* 0x470339CA: lea esi, [ecx + 0x18] */ 1783 edi = eax + 0x18; /* 0x470339CD: lea edi, [eax + 0x18] */ 1784 ecx = 0xAu; /* 0x470339D0: mov ecx, 0xa */ 1785 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470339D5: 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; } 1786 edi = POP32_VAL(esp); /* 0x470339D7: pop edi */ 1787 MEM32(eax) = 0x470AD368u; /* 0x470339D8: mov dword ptr [eax], 0x470ad368 */ 1788 esi = POP32_VAL(esp); /* 0x470339DE: pop esi */ 1789 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470339DF: ret 4 */ 1790 RECOMP_REGS_OUT(); 1791 } 1792 1793 void sub_470339F0(void) { 1794 int _fpu_cmp = 0; 1795 uint32_t _cf = 0; 1796 int _df = 1; 1797 uint32_t _flag_k = FK_NONE; 1798 uint32_t _flag_a = 0, _flag_b = 0; 1799 uint32_t _itail_tgt = 0; 1800 RECOMP_REGS_LOCALS 1801 RECOMP_ENTER(0x470339F0u); 1802 1803 L_470339F0: 1804 eax = ecx; /* 0x470339F0: mov eax, ecx */ 1805 ecx = MEM32(esp + 0x4); /* 0x470339F2: mov ecx, dword ptr [esp + 4] */ 1806 edx = MEM32(ecx + 0x4); /* 0x470339F6: mov edx, dword ptr [ecx + 4] */ 1807 MEM32(eax + 0x4) = edx; /* 0x470339F9: mov dword ptr [eax + 4], edx */ 1808 edx = MEM32(ecx + 0x8); /* 0x470339FC: mov edx, dword ptr [ecx + 8] */ 1809 PUSH32(esp, esi); /* 0x470339FF: push esi */ 1810 MEM32(eax + 0x8) = edx; /* 0x47033A00: mov dword ptr [eax + 8], edx */ 1811 PUSH32(esp, edi); /* 0x47033A03: push edi */ 1812 edx = ecx + 0xC; /* 0x47033A04: lea edx, [ecx + 0xc] */ 1813 edi = MEM32(edx); /* 0x47033A07: mov edi, dword ptr [edx] */ 1814 esi = eax + 0xC; /* 0x47033A09: lea esi, [eax + 0xc] */ 1815 MEM32(esi) = edi; /* 0x47033A0C: mov dword ptr [esi], edi */ 1816 edi = MEM32(edx + 0x4); /* 0x47033A0E: mov edi, dword ptr [edx + 4] */ 1817 MEM32(esi + 0x4) = edi; /* 0x47033A11: mov dword ptr [esi + 4], edi */ 1818 edx = MEM32(edx + 0x8); /* 0x47033A14: mov edx, dword ptr [edx + 8] */ 1819 MEM32(esi + 0x8) = edx; /* 0x47033A17: mov dword ptr [esi + 8], edx */ 1820 esi = ecx; /* 0x47033A1A: mov esi, ecx */ 1821 edi = 0xFFFFFFE8u; /* 0x47033A1C: mov edi, 0xffffffe8 */ 1822 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1824 esi = esi - eax; /* 0x47033A21: sub esi, eax */ 1825 _flag_k = FK_CMP; 1826 edx = eax + 0x18; /* 0x47033A23: lea edx, [eax + 0x18] */ 1827 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1829 edi = edi - eax; /* 0x47033A26: sub edi, eax */ 1830 _flag_k = FK_CMP; 1831 L_47033A28: 1832 SET_LO8(ecx, MEM8(esi + edx)); /* 0x47033A28: mov cl, byte ptr [esi + edx] */ 1833 MEM8(edx) = (uint8_t)(LO8(ecx)); /* 0x47033A2B: mov byte ptr [edx], cl */ 1834 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1835 edx = edx + 1; /* 0x47033A2D: inc edx */ 1836 _flag_k = FK_INC; 1837 ecx = edi + edx; /* 0x47033A2E: lea ecx, [edi + edx] */ 1838 /* cmp ecx, 0x28u */ /* 0x47033A31: cmp ecx, 0x28 */ 1839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 1840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1841 _flag_k = FK_CMP; 1842 RECOMP_BACKEDGE(); 1843 if (CMP_B(_flag_a, _flag_b)) goto L_47033A28; /* 0x47033A34: jb 0x47033a28 */ 1844 L_47033A36: 1845 edi = POP32_VAL(esp); /* 0x47033A36: pop edi */ 1846 esi = POP32_VAL(esp); /* 0x47033A37: pop esi */ 1847 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033A38: ret 4 */ 1848 RECOMP_REGS_OUT(); 1849 } 1850 1851 void sub_47033A40(void) { 1852 int _fpu_cmp = 0; 1853 uint32_t _cf = 0; 1854 int _df = 1; 1855 uint32_t _flag_k = FK_NONE; 1856 uint32_t _flag_a = 0, _flag_b = 0; 1857 uint32_t _itail_tgt = 0; 1858 RECOMP_REGS_LOCALS 1859 RECOMP_ENTER(0x47033A40u); 1860 1861 L_47033A40: 1862 PUSH32(esp, ebx); /* 0x47033A40: push ebx */ 1863 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47033A41: mov bl, byte ptr [esp + 8] */ 1864 /* test LO8(ebx), 2 */ /* 0x47033A45: test bl, 2 */ 1865 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1866 _cf = 0; 1867 _flag_k = FK_NARROW(FK_TEST, 24); 1868 PUSH32(esp, esi); /* 0x47033A48: push esi */ 1869 esi = ecx; /* 0x47033A49: mov esi, ecx */ 1870 if (TEST_Z(_flag_a, _flag_b)) goto L_47033A78; /* 0x47033A4B: je 0x47033a78 */ 1871 L_47033A4D: 1872 eax = MEM32(esi + (-0x4)); /* 0x47033A4D: mov eax, dword ptr [esi - 4] */ 1873 PUSH32(esp, edi); /* 0x47033A50: push edi */ 1874 PUSH32(esp, 0x470340E0u); /* 0x47033A51: push 0x470340e0 */ 1875 edi = esi + (-0x4); /* 0x47033A56: lea edi, [esi - 4] */ 1876 PUSH32(esp, eax); /* 0x47033A59: push eax */ 1877 PUSH32(esp, 0x40u); /* 0x47033A5A: push 0x40 */ 1878 PUSH32(esp, esi); /* 0x47033A5C: push esi */ 1879 RECOMP_ICALL(0x470A32EBu); /* 0x47033A5D: call 0x470a32eb */ /* not lifted */ 1880 RECOMP_FLAGS_IN(); 1881 /* test LO8(ebx), 1 */ /* 0x47033A62: test bl, 1 */ 1882 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1883 _cf = 0; 1884 _flag_k = FK_NARROW(FK_TEST, 24); 1885 if (TEST_Z(_flag_a, _flag_b)) goto L_47033A70; /* 0x47033A65: je 0x47033a70 */ 1886 L_47033A67: 1887 PUSH32(esp, edi); /* 0x47033A67: push edi */ 1888 RECOMP_ICALL(0x470A32A2u); /* 0x47033A68: call 0x470a32a2 */ /* 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; /* 0x47033A6D: add esp, 4 */ 1893 _flag_k = FK_ADD; 1894 L_47033A70: 1895 eax = edi; /* 0x47033A70: mov eax, edi */ 1896 edi = POP32_VAL(esp); /* 0x47033A72: pop edi */ 1897 esi = POP32_VAL(esp); /* 0x47033A73: pop esi */ 1898 ebx = POP32_VAL(esp); /* 0x47033A74: pop ebx */ 1899 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033A75: ret 4 */ 1900 L_47033A78: 1901 ecx = esi; /* 0x47033A78: mov ecx, esi */ 1902 RECOMP_ICALL(0x470340E0u); /* 0x47033A7A: call 0x470340e0 */ /* not lifted */ 1903 RECOMP_FLAGS_IN(); 1904 /* test LO8(ebx), 1 */ /* 0x47033A7F: test bl, 1 */ 1905 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1906 _cf = 0; 1907 _flag_k = FK_NARROW(FK_TEST, 24); 1908 if (TEST_Z(_flag_a, _flag_b)) goto L_47033A8D; /* 0x47033A82: je 0x47033a8d */ 1909 L_47033A84: 1910 PUSH32(esp, esi); /* 0x47033A84: push esi */ 1911 RECOMP_ICALL(0x470A32A2u); /* 0x47033A85: call 0x470a32a2 */ /* not lifted */ 1912 RECOMP_FLAGS_IN(); 1913 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1915 esp = esp + 4; /* 0x47033A8A: add esp, 4 */ 1916 _flag_k = FK_ADD; 1917 L_47033A8D: 1918 eax = esi; /* 0x47033A8D: mov eax, esi */ 1919 esi = POP32_VAL(esp); /* 0x47033A8F: pop esi */ 1920 ebx = POP32_VAL(esp); /* 0x47033A90: pop ebx */ 1921 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033A91: ret 4 */ 1922 RECOMP_REGS_OUT(); 1923 } 1924 1925 void sub_47033AA0(void) { 1926 int _fpu_cmp = 0; 1927 uint32_t _cf = 0; 1928 int _df = 1; 1929 uint32_t _flag_k = FK_NONE; 1930 uint32_t _flag_a = 0, _flag_b = 0; 1931 uint32_t _itail_tgt = 0; 1932 RECOMP_REGS_LOCALS 1933 RECOMP_ENTER(0x47033AA0u); 1934 1935 L_47033AA0: 1936 edx = ecx; /* 0x47033AA0: mov edx, ecx */ 1937 PUSH32(esp, edi); /* 0x47033AA2: push edi */ 1938 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1939 ecx = ecx | 0xFFFFFFFFu; /* 0x47033AA3: or ecx, 0xffffffff */ 1940 _cf = 0; 1941 _flag_k = FK_TEST; 1942 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1943 eax = 0; /* 0x47033AA6: xor eax, eax */ 1944 _cf = 0; 1945 _flag_k = FK_TEST; 1946 edi = 0x47106D1Cu; /* 0x47033AA8: mov edi, 0x47106d1c */ 1947 MEM32(edx) = 0x470AD394u; /* 0x47033AAD: mov dword ptr [edx], 0x470ad394 */ 1948 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47033AB3: repne scasb al, byte ptr es:[edi] */ 1949 ecx = ~ecx; /* 0x47033AB5: not ecx */ 1950 /* cmp ecx, 0x28u */ /* 0x47033AB7: cmp ecx, 0x28 */ 1951 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 1952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1953 _flag_k = FK_CMP; 1954 edi = POP32_VAL(esp); /* 0x47033ABA: pop edi */ 1955 if (CMP_L(_flag_a, _flag_b)) goto L_47033AC2; /* 0x47033ABB: jl 0x47033ac2 */ 1956 L_47033ABD: 1957 ecx = 0x27u; /* 0x47033ABD: mov ecx, 0x27 */ 1958 L_47033AC2: 1959 PUSH32(esp, ecx); /* 0x47033AC2: push ecx */ 1960 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 1961 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1962 edx = edx + 4; /* 0x47033AC3: add edx, 4 */ 1963 _flag_k = FK_ADD; 1964 PUSH32(esp, 0x47106D1Cu); /* 0x47033AC6: push 0x47106d1c */ 1965 PUSH32(esp, edx); /* 0x47033ACB: push edx */ 1966 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47033ACC: call dword ptr [0x470ac22c] */ 1967 RECOMP_FLAGS_IN(); 1968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1970 esp = esp + 0xCu; /* 0x47033AD2: add esp, 0xc */ 1971 _flag_k = FK_ADD; 1972 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033AD5: ret */ 1973 RECOMP_REGS_OUT(); 1974 } 1975 1976 void sub_47033AE0(void) { 1977 int _fpu_cmp = 0; 1978 uint32_t _cf = 0; 1979 int _df = 1; 1980 uint32_t _flag_k = FK_NONE; 1981 uint32_t _flag_a = 0, _flag_b = 0; 1982 uint32_t _itail_tgt = 0; 1983 RECOMP_REGS_LOCALS 1984 RECOMP_ENTER(0x47033AE0u); 1985 1986 L_47033AE0: 1987 PUSH32(esp, 0xFFFFFFFFu); /* 0x47033AE0: push -1 */ 1988 PUSH32(esp, 0x470A5866u); /* 0x47033AE2: push 0x470a5866 */ 1989 eax = MEM32(FS_BASE + (0)); /* 0x47033AE7: mov eax, dword ptr fs:[0] */ 1990 PUSH32(esp, eax); /* 0x47033AED: push eax */ 1991 MEM32(FS_BASE + (0)) = esp; /* 0x47033AEE: mov dword ptr fs:[0], esp */ 1992 PUSH32(esp, ecx); /* 0x47033AF5: push ecx */ 1993 PUSH32(esp, esi); /* 0x47033AF6: push esi */ 1994 PUSH32(esp, edi); /* 0x47033AF7: push edi */ 1995 PUSH32(esp, 0x40u); /* 0x47033AF8: push 0x40 */ 1996 RECOMP_ICALL(0x470A33F2u); /* 0x47033AFA: call 0x470a33f2 */ /* not lifted */ 1997 RECOMP_FLAGS_IN(); 1998 esi = eax; /* 0x47033AFF: mov esi, eax */ 1999 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2000 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2001 esp = esp + 4; /* 0x47033B01: add esp, 4 */ 2002 _flag_k = FK_ADD; 2003 MEM32(esp + 0x8) = esi; /* 0x47033B04: mov dword ptr [esp + 8], esi */ 2004 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2005 edi = 0; /* 0x47033B08: xor edi, edi */ 2006 _cf = 0; 2007 _flag_k = FK_TEST; 2008 /* cmp esi, edi */ /* 0x47033B0A: cmp esi, edi */ 2009 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2011 _flag_k = FK_CMP; 2012 MEM32(esp + 0x14) = edi; /* 0x47033B0C: mov dword ptr [esp + 0x14], edi */ 2013 if (CMP_EQ(_flag_a, _flag_b)) goto L_47033B50; /* 0x47033B10: je 0x47033b50 */ 2014 L_47033B12: 2015 PUSH32(esp, edi); /* 0x47033B12: push edi */ 2016 PUSH32(esp, edi); /* 0x47033B13: push edi */ 2017 ecx = esi + 0x14; /* 0x47033B14: lea ecx, [esi + 0x14] */ 2018 MEM32(esi + 0xC) = edi; /* 0x47033B17: mov dword ptr [esi + 0xc], edi */ 2019 RECOMP_ICALL(0x47087E50u); /* 0x47033B1A: call 0x47087e50 */ /* not lifted */ 2020 RECOMP_FLAGS_IN(); 2021 MEM32(esi + 0x30) = edi; /* 0x47033B1F: mov dword ptr [esi + 0x30], edi */ 2022 eax = MEM32(0x4710E904); /* 0x47033B22: mov eax, dword ptr [0x4710e904] */ 2023 MEM32(esi + 0x3C) = edi; /* 0x47033B27: mov dword ptr [esi + 0x3c], edi */ 2024 MEM32(esi + 0x34) = eax; /* 0x47033B2A: mov dword ptr [esi + 0x34], eax */ 2025 MEM32(esi + 0x38) = esi; /* 0x47033B2D: mov dword ptr [esi + 0x38], esi */ 2026 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47033B30: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 2027 edi = POP32_VAL(esp); /* 0x47033B37: pop edi */ 2028 MEM32(esi) = 0x470AD398u; /* 0x47033B38: mov dword ptr [esi], 0x470ad398 */ 2029 eax = esi; /* 0x47033B3E: mov eax, esi */ 2030 esi = POP32_VAL(esp); /* 0x47033B40: pop esi */ 2031 ecx = MEM32(esp + 0x4); /* 0x47033B41: mov ecx, dword ptr [esp + 4] */ 2032 MEM32(FS_BASE + (0)) = ecx; /* 0x47033B45: mov dword ptr fs:[0], ecx */ 2033 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2034 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2035 esp = esp + 0x10u; /* 0x47033B4C: add esp, 0x10 */ 2036 _flag_k = FK_ADD; 2037 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033B4F: ret */ 2038 L_47033B50: 2039 ecx = MEM32(esp + 0xC); /* 0x47033B50: mov ecx, dword ptr [esp + 0xc] */ 2040 edi = POP32_VAL(esp); /* 0x47033B54: pop edi */ 2041 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2042 eax = 0; /* 0x47033B55: xor eax, eax */ 2043 _cf = 0; 2044 _flag_k = FK_TEST; 2045 esi = POP32_VAL(esp); /* 0x47033B57: pop esi */ 2046 MEM32(FS_BASE + (0)) = ecx; /* 0x47033B58: mov dword ptr fs:[0], ecx */ 2047 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2049 esp = esp + 0x10u; /* 0x47033B5F: add esp, 0x10 */ 2050 _flag_k = FK_ADD; 2051 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033B62: ret */ 2052 RECOMP_REGS_OUT(); 2053 } 2054 2055 void sub_47033B70(void) { 2056 int _fpu_cmp = 0; 2057 uint32_t _cf = 0; 2058 int _df = 1; 2059 uint32_t _flag_k = FK_NONE; 2060 uint32_t _flag_a = 0, _flag_b = 0; 2061 uint32_t _itail_tgt = 0; 2062 RECOMP_REGS_LOCALS 2063 RECOMP_ENTER(0x47033B70u); 2064 2065 L_47033B70: 2066 eax = MEM32(FS_BASE + (0)); /* 0x47033B70: mov eax, dword ptr fs:[0] */ 2067 PUSH32(esp, 0xFFFFFFFFu); /* 0x47033B76: push -1 */ 2068 PUSH32(esp, 0x470A587Bu); /* 0x47033B78: push 0x470a587b */ 2069 PUSH32(esp, eax); /* 0x47033B7D: push eax */ 2070 MEM32(FS_BASE + (0)) = esp; /* 0x47033B7E: mov dword ptr fs:[0], esp */ 2071 PUSH32(esp, esi); /* 0x47033B85: push esi */ 2072 esi = ecx; /* 0x47033B86: mov esi, ecx */ 2073 PUSH32(esp, 0); /* 0x47033B88: push 0 */ 2074 PUSH32(esp, 0); /* 0x47033B8A: push 0 */ 2075 ecx = esi + 0x14; /* 0x47033B8C: lea ecx, [esi + 0x14] */ 2076 MEM32(esi + 0xC) = 0; /* 0x47033B8F: mov dword ptr [esi + 0xc], 0 */ 2077 RECOMP_ICALL(0x47087E50u); /* 0x47033B96: call 0x47087e50 */ /* not lifted */ 2078 RECOMP_FLAGS_IN(); 2079 ecx = MEM32(esp + 0x4); /* 0x47033B9B: mov ecx, dword ptr [esp + 4] */ 2080 MEM32(esi + 0x30) = 0; /* 0x47033B9F: mov dword ptr [esi + 0x30], 0 */ 2081 eax = MEM32(0x4710E904); /* 0x47033BA6: mov eax, dword ptr [0x4710e904] */ 2082 MEM32(esi + 0x34) = eax; /* 0x47033BAB: mov dword ptr [esi + 0x34], eax */ 2083 MEM32(esi + 0x38) = esi; /* 0x47033BAE: mov dword ptr [esi + 0x38], esi */ 2084 MEM32(esi + 0x3C) = 0; /* 0x47033BB1: mov dword ptr [esi + 0x3c], 0 */ 2085 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47033BB8: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 2086 MEM32(esi) = 0x470AD398u; /* 0x47033BBF: mov dword ptr [esi], 0x470ad398 */ 2087 eax = esi; /* 0x47033BC5: mov eax, esi */ 2088 MEM32(FS_BASE + (0)) = ecx; /* 0x47033BC7: mov dword ptr fs:[0], ecx */ 2089 esi = POP32_VAL(esp); /* 0x47033BCE: pop esi */ 2090 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2091 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2092 esp = esp + 0xCu; /* 0x47033BCF: add esp, 0xc */ 2093 _flag_k = FK_ADD; 2094 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033BD2: ret */ 2095 RECOMP_REGS_OUT(); 2096 } 2097 2098 void sub_47033BE0(void) { 2099 int _fpu_cmp = 0; 2100 uint32_t _cf = 0; 2101 int _df = 1; 2102 uint32_t _flag_k = FK_NONE; 2103 uint32_t _flag_a = 0, _flag_b = 0; 2104 uint32_t _itail_tgt = 0; 2105 RECOMP_REGS_LOCALS 2106 RECOMP_ENTER(0x47033BE0u); 2107 2108 L_47033BE0: 2109 eax = MEM32(FS_BASE + (0)); /* 0x47033BE0: mov eax, dword ptr fs:[0] */ 2110 PUSH32(esp, 0xFFFFFFFFu); /* 0x47033BE6: push -1 */ 2111 PUSH32(esp, 0x470A589Bu); /* 0x47033BE8: push 0x470a589b */ 2112 PUSH32(esp, eax); /* 0x47033BED: push eax */ 2113 MEM32(FS_BASE + (0)) = esp; /* 0x47033BEE: mov dword ptr fs:[0], esp */ 2114 PUSH32(esp, esi); /* 0x47033BF5: push esi */ 2115 esi = ecx; /* 0x47033BF6: mov esi, ecx */ 2116 PUSH32(esp, 0); /* 0x47033BF8: push 0 */ 2117 PUSH32(esp, 0); /* 0x47033BFA: push 0 */ 2118 ecx = esi + 0x14; /* 0x47033BFC: lea ecx, [esi + 0x14] */ 2119 MEM32(esi + 0xC) = 0; /* 0x47033BFF: mov dword ptr [esi + 0xc], 0 */ 2120 RECOMP_ICALL(0x47087E50u); /* 0x47033C06: call 0x47087e50 */ /* not lifted */ 2121 RECOMP_FLAGS_IN(); 2122 ecx = MEM32(esp + 0x4); /* 0x47033C0B: mov ecx, dword ptr [esp + 4] */ 2123 MEM32(esi + 0x30) = 0; /* 0x47033C0F: mov dword ptr [esi + 0x30], 0 */ 2124 eax = MEM32(0x4710E904); /* 0x47033C16: mov eax, dword ptr [0x4710e904] */ 2125 MEM32(esi + 0x34) = eax; /* 0x47033C1B: mov dword ptr [esi + 0x34], eax */ 2126 MEM32(esi + 0x38) = esi; /* 0x47033C1E: mov dword ptr [esi + 0x38], esi */ 2127 MEM32(esi + 0x3C) = 0; /* 0x47033C21: mov dword ptr [esi + 0x3c], 0 */ 2128 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47033C28: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 2129 MEM32(esi) = 0x470AD398u; /* 0x47033C2F: mov dword ptr [esi], 0x470ad398 */ 2130 eax = esi; /* 0x47033C35: mov eax, esi */ 2131 MEM32(FS_BASE + (0)) = ecx; /* 0x47033C37: mov dword ptr fs:[0], ecx */ 2132 esi = POP32_VAL(esp); /* 0x47033C3E: pop esi */ 2133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2135 esp = esp + 0xCu; /* 0x47033C3F: add esp, 0xc */ 2136 _flag_k = FK_ADD; 2137 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033C42: ret 4 */ 2138 RECOMP_REGS_OUT(); 2139 } 2140 2141 void sub_47033C50(void) { 2142 int _fpu_cmp = 0; 2143 uint32_t _cf = 0; 2144 int _df = 1; 2145 uint32_t _flag_k = FK_NONE; 2146 uint32_t _flag_a = 0, _flag_b = 0; 2147 uint32_t _itail_tgt = 0; 2148 RECOMP_REGS_LOCALS 2149 RECOMP_ENTER(0x47033C50u); 2150 2151 L_47033C50: 2152 PUSH32(esp, 0xFFFFFFFFu); /* 0x47033C50: push -1 */ 2153 PUSH32(esp, 0x470A58C6u); /* 0x47033C52: push 0x470a58c6 */ 2154 eax = MEM32(FS_BASE + (0)); /* 0x47033C57: mov eax, dword ptr fs:[0] */ 2155 PUSH32(esp, eax); /* 0x47033C5D: push eax */ 2156 MEM32(FS_BASE + (0)) = esp; /* 0x47033C5E: mov dword ptr fs:[0], esp */ 2157 PUSH32(esp, ecx); /* 0x47033C65: push ecx */ 2158 PUSH32(esp, esi); /* 0x47033C66: push esi */ 2159 esi = ecx; /* 0x47033C67: mov esi, ecx */ 2160 MEM32(esp + 0x4) = esi; /* 0x47033C69: mov dword ptr [esp + 4], esi */ 2161 MEM32(esi) = 0x470AD3F8u; /* 0x47033C6D: mov dword ptr [esi], 0x470ad3f8 */ 2162 ecx = MEM32(esi + 0xC); /* 0x47033C73: mov ecx, dword ptr [esi + 0xc] */ 2163 /* test ecx, ecx */ /* 0x47033C76: test ecx, ecx */ 2164 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2165 _cf = 0; 2166 _flag_k = FK_TEST; 2167 eax = esi + 0xC; /* 0x47033C78: lea eax, [esi + 0xc] */ 2168 MEM32(esp + 0x10) = 0; /* 0x47033C7B: mov dword ptr [esp + 0x10], 0 */ 2169 if (TEST_Z(_flag_a, _flag_b)) goto L_47033C92; /* 0x47033C83: je 0x47033c92 */ 2170 L_47033C85: 2171 PUSH32(esp, eax); /* 0x47033C85: push eax */ 2172 RECOMP_ICALL(0x470942F0u); /* 0x47033C86: call 0x470942f0 */ /* not lifted */ 2173 RECOMP_FLAGS_IN(); 2174 ecx = eax; /* 0x47033C8B: mov ecx, eax */ 2175 RECOMP_ICALL(0x47094930u); /* 0x47033C8D: call 0x47094930 */ /* not lifted */ 2176 RECOMP_FLAGS_IN(); 2177 L_47033C92: 2178 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 2179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2180 esi = esi + 0x10u; /* 0x47033C92: add esi, 0x10 */ 2181 _flag_k = FK_ADD; 2182 MEM32(esp + 0x4) = esi; /* 0x47033C95: mov dword ptr [esp + 4], esi */ 2183 MEM32(esi) = 0x470AD3F0u; /* 0x47033C99: mov dword ptr [esi], 0x470ad3f0 */ 2184 PUSH32(esp, esi); /* 0x47033C9F: push esi */ 2185 MEM32(esp + 0x14) = 1; /* 0x47033CA0: mov dword ptr [esp + 0x14], 1 */ 2186 RECOMP_ICALL(0x470562A0u); /* 0x47033CA8: call 0x470562a0 */ /* not lifted */ 2187 RECOMP_FLAGS_IN(); 2188 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2190 esp = esp + 4; /* 0x47033CAD: add esp, 4 */ 2191 _flag_k = FK_ADD; 2192 ecx = esi + 0x4; /* 0x47033CB0: lea ecx, [esi + 4] */ 2193 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47033CB3: mov dword ptr [esp + 0x10], 0xffffffff */ 2194 RECOMP_ICALL(0x47087E30u); /* 0x47033CBB: call 0x47087e30 */ /* not lifted */ 2195 RECOMP_FLAGS_IN(); 2196 ecx = MEM32(esp + 0x8); /* 0x47033CC0: mov ecx, dword ptr [esp + 8] */ 2197 esi = POP32_VAL(esp); /* 0x47033CC4: pop esi */ 2198 MEM32(FS_BASE + (0)) = ecx; /* 0x47033CC5: mov dword ptr fs:[0], ecx */ 2199 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2200 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2201 esp = esp + 0x10u; /* 0x47033CCC: add esp, 0x10 */ 2202 _flag_k = FK_ADD; 2203 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033CCF: ret */ 2204 RECOMP_REGS_OUT(); 2205 } 2206 2207 void sub_47033CD0(void) { 2208 int _fpu_cmp = 0; 2209 uint32_t _cf = 0; 2210 int _df = 1; 2211 uint32_t _flag_k = FK_NONE; 2212 uint32_t _flag_a = 0, _flag_b = 0; 2213 uint32_t _itail_tgt = 0; 2214 RECOMP_REGS_LOCALS 2215 RECOMP_ENTER(0x47033CD0u); 2216 2217 L_47033CD0: 2218 PUSH32(esp, ebx); /* 0x47033CD0: push ebx */ 2219 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47033CD1: mov bl, byte ptr [esp + 8] */ 2220 /* test LO8(ebx), 2 */ /* 0x47033CD5: test bl, 2 */ 2221 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2222 _cf = 0; 2223 _flag_k = FK_NARROW(FK_TEST, 24); 2224 PUSH32(esp, esi); /* 0x47033CD8: push esi */ 2225 esi = ecx; /* 0x47033CD9: mov esi, ecx */ 2226 if (TEST_Z(_flag_a, _flag_b)) goto L_47033D08; /* 0x47033CDB: je 0x47033d08 */ 2227 L_47033CDD: 2228 eax = MEM32(esi + (-0x4)); /* 0x47033CDD: mov eax, dword ptr [esi - 4] */ 2229 PUSH32(esp, edi); /* 0x47033CE0: push edi */ 2230 PUSH32(esp, 0x47033C50u); /* 0x47033CE1: push 0x47033c50 */ 2231 edi = esi + (-0x4); /* 0x47033CE6: lea edi, [esi - 4] */ 2232 PUSH32(esp, eax); /* 0x47033CE9: push eax */ 2233 PUSH32(esp, 0x40u); /* 0x47033CEA: push 0x40 */ 2234 PUSH32(esp, esi); /* 0x47033CEC: push esi */ 2235 RECOMP_ICALL(0x470A32EBu); /* 0x47033CED: call 0x470a32eb */ /* not lifted */ 2236 RECOMP_FLAGS_IN(); 2237 /* test LO8(ebx), 1 */ /* 0x47033CF2: test bl, 1 */ 2238 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2239 _cf = 0; 2240 _flag_k = FK_NARROW(FK_TEST, 24); 2241 if (TEST_Z(_flag_a, _flag_b)) goto L_47033D00; /* 0x47033CF5: je 0x47033d00 */ 2242 L_47033CF7: 2243 PUSH32(esp, edi); /* 0x47033CF7: push edi */ 2244 RECOMP_ICALL(0x470A32A2u); /* 0x47033CF8: call 0x470a32a2 */ /* not lifted */ 2245 RECOMP_FLAGS_IN(); 2246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2248 esp = esp + 4; /* 0x47033CFD: add esp, 4 */ 2249 _flag_k = FK_ADD; 2250 L_47033D00: 2251 eax = edi; /* 0x47033D00: mov eax, edi */ 2252 edi = POP32_VAL(esp); /* 0x47033D02: pop edi */ 2253 esi = POP32_VAL(esp); /* 0x47033D03: pop esi */ 2254 ebx = POP32_VAL(esp); /* 0x47033D04: pop ebx */ 2255 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033D05: ret 4 */ 2256 L_47033D08: 2257 ecx = esi; /* 0x47033D08: mov ecx, esi */ 2258 RECOMP_ICALL(0x47033C50u); /* 0x47033D0A: call 0x47033c50 */ /* not lifted */ 2259 RECOMP_FLAGS_IN(); 2260 /* test LO8(ebx), 1 */ /* 0x47033D0F: test bl, 1 */ 2261 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2262 _cf = 0; 2263 _flag_k = FK_NARROW(FK_TEST, 24); 2264 if (TEST_Z(_flag_a, _flag_b)) goto L_47033D1D; /* 0x47033D12: je 0x47033d1d */ 2265 L_47033D14: 2266 PUSH32(esp, esi); /* 0x47033D14: push esi */ 2267 RECOMP_ICALL(0x470A32A2u); /* 0x47033D15: call 0x470a32a2 */ /* not lifted */ 2268 RECOMP_FLAGS_IN(); 2269 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2270 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2271 esp = esp + 4; /* 0x47033D1A: add esp, 4 */ 2272 _flag_k = FK_ADD; 2273 L_47033D1D: 2274 eax = esi; /* 0x47033D1D: mov eax, esi */ 2275 esi = POP32_VAL(esp); /* 0x47033D1F: pop esi */ 2276 ebx = POP32_VAL(esp); /* 0x47033D20: pop ebx */ 2277 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033D21: ret 4 */ 2278 RECOMP_REGS_OUT(); 2279 } 2280 2281 void sub_47033D30(void) { 2282 int _fpu_cmp = 0; 2283 uint32_t _cf = 0; 2284 int _df = 1; 2285 uint32_t _flag_k = FK_NONE; 2286 uint32_t _flag_a = 0, _flag_b = 0; 2287 uint32_t _itail_tgt = 0; 2288 RECOMP_REGS_LOCALS 2289 RECOMP_ENTER(0x47033D30u); 2290 2291 L_47033D30: 2292 eax = MEM32(FS_BASE + (0)); /* 0x47033D30: mov eax, dword ptr fs:[0] */ 2293 PUSH32(esp, 0xFFFFFFFFu); /* 0x47033D36: push -1 */ 2294 PUSH32(esp, 0x470A58DBu); /* 0x47033D38: push 0x470a58db */ 2295 PUSH32(esp, eax); /* 0x47033D3D: push eax */ 2296 MEM32(FS_BASE + (0)) = esp; /* 0x47033D3E: mov dword ptr fs:[0], esp */ 2297 PUSH32(esp, esi); /* 0x47033D45: push esi */ 2298 esi = ecx; /* 0x47033D46: mov esi, ecx */ 2299 PUSH32(esp, 0); /* 0x47033D48: push 0 */ 2300 PUSH32(esp, 0); /* 0x47033D4A: push 0 */ 2301 ecx = esi + 0x14; /* 0x47033D4C: lea ecx, [esi + 0x14] */ 2302 MEM32(esi + 0xC) = 0; /* 0x47033D4F: mov dword ptr [esi + 0xc], 0 */ 2303 RECOMP_ICALL(0x47087E50u); /* 0x47033D56: call 0x47087e50 */ /* not lifted */ 2304 RECOMP_FLAGS_IN(); 2305 ecx = MEM32(esp + 0x4); /* 0x47033D5B: mov ecx, dword ptr [esp + 4] */ 2306 MEM32(esi + 0x30) = 0; /* 0x47033D5F: mov dword ptr [esi + 0x30], 0 */ 2307 eax = MEM32(0x4710E904); /* 0x47033D66: mov eax, dword ptr [0x4710e904] */ 2308 MEM32(esi + 0x34) = eax; /* 0x47033D6B: mov dword ptr [esi + 0x34], eax */ 2309 MEM32(esi + 0x38) = esi; /* 0x47033D6E: mov dword ptr [esi + 0x38], esi */ 2310 MEM32(esi + 0x3C) = 0; /* 0x47033D71: mov dword ptr [esi + 0x3c], 0 */ 2311 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47033D78: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 2312 MEM32(esi) = 0x470AD448u; /* 0x47033D7F: mov dword ptr [esi], 0x470ad448 */ 2313 eax = esi; /* 0x47033D85: mov eax, esi */ 2314 MEM32(FS_BASE + (0)) = ecx; /* 0x47033D87: mov dword ptr fs:[0], ecx */ 2315 esi = POP32_VAL(esp); /* 0x47033D8E: pop esi */ 2316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2318 esp = esp + 0xCu; /* 0x47033D8F: add esp, 0xc */ 2319 _flag_k = FK_ADD; 2320 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033D92: ret 4 */ 2321 RECOMP_REGS_OUT(); 2322 } 2323 2324 void sub_47033DA0(void) { 2325 int _fpu_cmp = 0; 2326 uint32_t _cf = 0; 2327 int _df = 1; 2328 uint32_t _flag_k = FK_NONE; 2329 uint32_t _flag_a = 0, _flag_b = 0; 2330 uint32_t _itail_tgt = 0; 2331 RECOMP_REGS_LOCALS 2332 RECOMP_ENTER(0x47033DA0u); 2333 2334 L_47033DA0: 2335 PUSH32(esp, 0); /* 0x47033DA0: push 0 */ 2336 PUSH32(esp, 0); /* 0x47033DA2: push 0 */ 2337 PUSH32(esp, 0); /* 0x47033DA4: push 0 */ 2338 RECOMP_ICALL(0x47034240u); /* 0x47033DA6: call 0x47034240 */ /* not lifted */ 2339 RECOMP_FLAGS_IN(); 2340 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033DAB: ret */ 2341 RECOMP_REGS_OUT(); 2342 } 2343 2344 void sub_47033DB0(void) { 2345 int _fpu_cmp = 0; 2346 uint32_t _cf = 0; 2347 int _df = 1; 2348 uint32_t _flag_k = FK_NONE; 2349 uint32_t _flag_a = 0, _flag_b = 0; 2350 uint32_t _itail_tgt = 0; 2351 RECOMP_REGS_LOCALS 2352 RECOMP_ENTER(0x47033DB0u); 2353 2354 L_47033DB0: 2355 PUSH32(esp, ebx); /* 0x47033DB0: push ebx */ 2356 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47033DB1: mov bl, byte ptr [esp + 8] */ 2357 /* test LO8(ebx), 2 */ /* 0x47033DB5: test bl, 2 */ 2358 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2359 _cf = 0; 2360 _flag_k = FK_NARROW(FK_TEST, 24); 2361 PUSH32(esp, esi); /* 0x47033DB8: push esi */ 2362 esi = ecx; /* 0x47033DB9: mov esi, ecx */ 2363 if (TEST_Z(_flag_a, _flag_b)) goto L_47033DE8; /* 0x47033DBB: je 0x47033de8 */ 2364 L_47033DBD: 2365 eax = MEM32(esi + (-0x4)); /* 0x47033DBD: mov eax, dword ptr [esi - 4] */ 2366 PUSH32(esp, edi); /* 0x47033DC0: push edi */ 2367 PUSH32(esp, 0x47034470u); /* 0x47033DC1: push 0x47034470 */ 2368 edi = esi + (-0x4); /* 0x47033DC6: lea edi, [esi - 4] */ 2369 PUSH32(esp, eax); /* 0x47033DC9: push eax */ 2370 PUSH32(esp, 0x40u); /* 0x47033DCA: push 0x40 */ 2371 PUSH32(esp, esi); /* 0x47033DCC: push esi */ 2372 RECOMP_ICALL(0x470A32EBu); /* 0x47033DCD: call 0x470a32eb */ /* not lifted */ 2373 RECOMP_FLAGS_IN(); 2374 /* test LO8(ebx), 1 */ /* 0x47033DD2: test bl, 1 */ 2375 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2376 _cf = 0; 2377 _flag_k = FK_NARROW(FK_TEST, 24); 2378 if (TEST_Z(_flag_a, _flag_b)) goto L_47033DE0; /* 0x47033DD5: je 0x47033de0 */ 2379 L_47033DD7: 2380 PUSH32(esp, edi); /* 0x47033DD7: push edi */ 2381 RECOMP_ICALL(0x470A32A2u); /* 0x47033DD8: call 0x470a32a2 */ /* not lifted */ 2382 RECOMP_FLAGS_IN(); 2383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2385 esp = esp + 4; /* 0x47033DDD: add esp, 4 */ 2386 _flag_k = FK_ADD; 2387 L_47033DE0: 2388 eax = edi; /* 0x47033DE0: mov eax, edi */ 2389 edi = POP32_VAL(esp); /* 0x47033DE2: pop edi */ 2390 esi = POP32_VAL(esp); /* 0x47033DE3: pop esi */ 2391 ebx = POP32_VAL(esp); /* 0x47033DE4: pop ebx */ 2392 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033DE5: ret 4 */ 2393 L_47033DE8: 2394 ecx = esi; /* 0x47033DE8: mov ecx, esi */ 2395 RECOMP_ICALL(0x47034470u); /* 0x47033DEA: call 0x47034470 */ /* not lifted */ 2396 RECOMP_FLAGS_IN(); 2397 /* test LO8(ebx), 1 */ /* 0x47033DEF: test bl, 1 */ 2398 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2399 _cf = 0; 2400 _flag_k = FK_NARROW(FK_TEST, 24); 2401 if (TEST_Z(_flag_a, _flag_b)) goto L_47033DFD; /* 0x47033DF2: je 0x47033dfd */ 2402 L_47033DF4: 2403 PUSH32(esp, esi); /* 0x47033DF4: push esi */ 2404 RECOMP_ICALL(0x470A32A2u); /* 0x47033DF5: call 0x470a32a2 */ /* not lifted */ 2405 RECOMP_FLAGS_IN(); 2406 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2408 esp = esp + 4; /* 0x47033DFA: add esp, 4 */ 2409 _flag_k = FK_ADD; 2410 L_47033DFD: 2411 eax = esi; /* 0x47033DFD: mov eax, esi */ 2412 esi = POP32_VAL(esp); /* 0x47033DFF: pop esi */ 2413 ebx = POP32_VAL(esp); /* 0x47033E00: pop ebx */ 2414 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033E01: ret 4 */ 2415 RECOMP_REGS_OUT(); 2416 } 2417 2418 void sub_47033E10(void) { 2419 int _fpu_cmp = 0; 2420 uint32_t _cf = 0; 2421 int _df = 1; 2422 uint32_t _flag_k = FK_NONE; 2423 uint32_t _flag_a = 0, _flag_b = 0; 2424 uint32_t _itail_tgt = 0; 2425 RECOMP_REGS_LOCALS 2426 RECOMP_ENTER(0x47033E10u); 2427 2428 L_47033E10: 2429 eax = MEM32(FS_BASE + (0)); /* 0x47033E10: mov eax, dword ptr fs:[0] */ 2430 PUSH32(esp, 0xFFFFFFFFu); /* 0x47033E16: push -1 */ 2431 PUSH32(esp, 0x470A58FBu); /* 0x47033E18: push 0x470a58fb */ 2432 PUSH32(esp, eax); /* 0x47033E1D: push eax */ 2433 MEM32(FS_BASE + (0)) = esp; /* 0x47033E1E: mov dword ptr fs:[0], esp */ 2434 PUSH32(esp, esi); /* 0x47033E25: push esi */ 2435 esi = ecx; /* 0x47033E26: mov esi, ecx */ 2436 PUSH32(esp, 0); /* 0x47033E28: push 0 */ 2437 PUSH32(esp, 0); /* 0x47033E2A: push 0 */ 2438 ecx = esi + 0x14; /* 0x47033E2C: lea ecx, [esi + 0x14] */ 2439 MEM32(esi + 0xC) = 0; /* 0x47033E2F: mov dword ptr [esi + 0xc], 0 */ 2440 RECOMP_ICALL(0x47087E50u); /* 0x47033E36: call 0x47087e50 */ /* not lifted */ 2441 RECOMP_FLAGS_IN(); 2442 ecx = MEM32(esp + 0x4); /* 0x47033E3B: mov ecx, dword ptr [esp + 4] */ 2443 MEM32(esi + 0x30) = 0; /* 0x47033E3F: mov dword ptr [esi + 0x30], 0 */ 2444 eax = MEM32(0x4710E904); /* 0x47033E46: mov eax, dword ptr [0x4710e904] */ 2445 MEM32(esi + 0x34) = eax; /* 0x47033E4B: mov dword ptr [esi + 0x34], eax */ 2446 MEM32(esi + 0x38) = esi; /* 0x47033E4E: mov dword ptr [esi + 0x38], esi */ 2447 MEM32(esi + 0x3C) = 0; /* 0x47033E51: mov dword ptr [esi + 0x3c], 0 */ 2448 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47033E58: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 2449 MEM32(esi) = 0x470AD498u; /* 0x47033E5F: mov dword ptr [esi], 0x470ad498 */ 2450 eax = esi; /* 0x47033E65: mov eax, esi */ 2451 MEM32(FS_BASE + (0)) = ecx; /* 0x47033E67: mov dword ptr fs:[0], ecx */ 2452 esi = POP32_VAL(esp); /* 0x47033E6E: pop esi */ 2453 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2454 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2455 esp = esp + 0xCu; /* 0x47033E6F: add esp, 0xc */ 2456 _flag_k = FK_ADD; 2457 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033E72: ret 4 */ 2458 RECOMP_REGS_OUT(); 2459 } 2460 2461 void sub_47033E80(void) { 2462 int _fpu_cmp = 0; 2463 uint32_t _cf = 0; 2464 int _df = 1; 2465 uint32_t _flag_k = FK_NONE; 2466 uint32_t _flag_a = 0, _flag_b = 0; 2467 uint32_t _itail_tgt = 0; 2468 RECOMP_REGS_LOCALS 2469 RECOMP_ENTER(0x47033E80u); 2470 2471 L_47033E80: 2472 PUSH32(esp, 0); /* 0x47033E80: push 0 */ 2473 PUSH32(esp, 0); /* 0x47033E82: push 0 */ 2474 PUSH32(esp, 0); /* 0x47033E84: push 0 */ 2475 RECOMP_ICALL(0x470344F0u); /* 0x47033E86: call 0x470344f0 */ /* not lifted */ 2476 RECOMP_FLAGS_IN(); 2477 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033E8B: ret */ 2478 RECOMP_REGS_OUT(); 2479 } 2480 2481 void sub_47033E90(void) { 2482 int _fpu_cmp = 0; 2483 uint32_t _cf = 0; 2484 int _df = 1; 2485 uint32_t _flag_k = FK_NONE; 2486 uint32_t _flag_a = 0, _flag_b = 0; 2487 uint32_t _itail_tgt = 0; 2488 RECOMP_REGS_LOCALS 2489 RECOMP_ENTER(0x47033E90u); 2490 2491 L_47033E90: 2492 PUSH32(esp, ebx); /* 0x47033E90: push ebx */ 2493 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47033E91: mov bl, byte ptr [esp + 8] */ 2494 /* test LO8(ebx), 2 */ /* 0x47033E95: test bl, 2 */ 2495 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2496 _cf = 0; 2497 _flag_k = FK_NARROW(FK_TEST, 24); 2498 PUSH32(esp, esi); /* 0x47033E98: push esi */ 2499 esi = ecx; /* 0x47033E99: mov esi, ecx */ 2500 if (TEST_Z(_flag_a, _flag_b)) goto L_47033EC8; /* 0x47033E9B: je 0x47033ec8 */ 2501 L_47033E9D: 2502 eax = MEM32(esi + (-0x4)); /* 0x47033E9D: mov eax, dword ptr [esi - 4] */ 2503 PUSH32(esp, edi); /* 0x47033EA0: push edi */ 2504 PUSH32(esp, 0x47034580u); /* 0x47033EA1: push 0x47034580 */ 2505 edi = esi + (-0x4); /* 0x47033EA6: lea edi, [esi - 4] */ 2506 PUSH32(esp, eax); /* 0x47033EA9: push eax */ 2507 PUSH32(esp, 0x40u); /* 0x47033EAA: push 0x40 */ 2508 PUSH32(esp, esi); /* 0x47033EAC: push esi */ 2509 RECOMP_ICALL(0x470A32EBu); /* 0x47033EAD: call 0x470a32eb */ /* not lifted */ 2510 RECOMP_FLAGS_IN(); 2511 /* test LO8(ebx), 1 */ /* 0x47033EB2: test bl, 1 */ 2512 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2513 _cf = 0; 2514 _flag_k = FK_NARROW(FK_TEST, 24); 2515 if (TEST_Z(_flag_a, _flag_b)) goto L_47033EC0; /* 0x47033EB5: je 0x47033ec0 */ 2516 L_47033EB7: 2517 PUSH32(esp, edi); /* 0x47033EB7: push edi */ 2518 RECOMP_ICALL(0x470A32A2u); /* 0x47033EB8: call 0x470a32a2 */ /* not lifted */ 2519 RECOMP_FLAGS_IN(); 2520 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2522 esp = esp + 4; /* 0x47033EBD: add esp, 4 */ 2523 _flag_k = FK_ADD; 2524 L_47033EC0: 2525 eax = edi; /* 0x47033EC0: mov eax, edi */ 2526 edi = POP32_VAL(esp); /* 0x47033EC2: pop edi */ 2527 esi = POP32_VAL(esp); /* 0x47033EC3: pop esi */ 2528 ebx = POP32_VAL(esp); /* 0x47033EC4: pop ebx */ 2529 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033EC5: ret 4 */ 2530 L_47033EC8: 2531 ecx = esi; /* 0x47033EC8: mov ecx, esi */ 2532 RECOMP_ICALL(0x47034580u); /* 0x47033ECA: call 0x47034580 */ /* not lifted */ 2533 RECOMP_FLAGS_IN(); 2534 /* test LO8(ebx), 1 */ /* 0x47033ECF: test bl, 1 */ 2535 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2536 _cf = 0; 2537 _flag_k = FK_NARROW(FK_TEST, 24); 2538 if (TEST_Z(_flag_a, _flag_b)) goto L_47033EDD; /* 0x47033ED2: je 0x47033edd */ 2539 L_47033ED4: 2540 PUSH32(esp, esi); /* 0x47033ED4: push esi */ 2541 RECOMP_ICALL(0x470A32A2u); /* 0x47033ED5: call 0x470a32a2 */ /* not lifted */ 2542 RECOMP_FLAGS_IN(); 2543 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2544 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2545 esp = esp + 4; /* 0x47033EDA: add esp, 4 */ 2546 _flag_k = FK_ADD; 2547 L_47033EDD: 2548 eax = esi; /* 0x47033EDD: mov eax, esi */ 2549 esi = POP32_VAL(esp); /* 0x47033EDF: pop esi */ 2550 ebx = POP32_VAL(esp); /* 0x47033EE0: pop ebx */ 2551 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033EE1: ret 4 */ 2552 RECOMP_REGS_OUT(); 2553 } 2554 2555 void sub_47033EF0(void) { 2556 int _fpu_cmp = 0; 2557 uint32_t _cf = 0; 2558 int _df = 1; 2559 uint32_t _flag_k = FK_NONE; 2560 uint32_t _flag_a = 0, _flag_b = 0; 2561 uint32_t _itail_tgt = 0; 2562 RECOMP_REGS_LOCALS 2563 RECOMP_ENTER(0x47033EF0u); 2564 2565 L_47033EF0: 2566 eax = MEM32(FS_BASE + (0)); /* 0x47033EF0: mov eax, dword ptr fs:[0] */ 2567 PUSH32(esp, 0xFFFFFFFFu); /* 0x47033EF6: push -1 */ 2568 PUSH32(esp, 0x470A591Bu); /* 0x47033EF8: push 0x470a591b */ 2569 PUSH32(esp, eax); /* 0x47033EFD: push eax */ 2570 MEM32(FS_BASE + (0)) = esp; /* 0x47033EFE: mov dword ptr fs:[0], esp */ 2571 PUSH32(esp, esi); /* 0x47033F05: push esi */ 2572 esi = ecx; /* 0x47033F06: mov esi, ecx */ 2573 PUSH32(esp, 0); /* 0x47033F08: push 0 */ 2574 PUSH32(esp, 0); /* 0x47033F0A: push 0 */ 2575 ecx = esi + 0x14; /* 0x47033F0C: lea ecx, [esi + 0x14] */ 2576 MEM32(esi + 0xC) = 0; /* 0x47033F0F: mov dword ptr [esi + 0xc], 0 */ 2577 RECOMP_ICALL(0x47087E50u); /* 0x47033F16: call 0x47087e50 */ /* not lifted */ 2578 RECOMP_FLAGS_IN(); 2579 ecx = MEM32(esp + 0x4); /* 0x47033F1B: mov ecx, dword ptr [esp + 4] */ 2580 MEM32(esi + 0x30) = 0; /* 0x47033F1F: mov dword ptr [esi + 0x30], 0 */ 2581 eax = MEM32(0x4710E904); /* 0x47033F26: mov eax, dword ptr [0x4710e904] */ 2582 MEM32(esi + 0x34) = eax; /* 0x47033F2B: mov dword ptr [esi + 0x34], eax */ 2583 MEM32(esi + 0x38) = esi; /* 0x47033F2E: mov dword ptr [esi + 0x38], esi */ 2584 MEM32(esi + 0x3C) = 0; /* 0x47033F31: mov dword ptr [esi + 0x3c], 0 */ 2585 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47033F38: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 2586 MEM32(esi) = 0x470AD4E8u; /* 0x47033F3F: mov dword ptr [esi], 0x470ad4e8 */ 2587 eax = esi; /* 0x47033F45: mov eax, esi */ 2588 MEM32(FS_BASE + (0)) = ecx; /* 0x47033F47: mov dword ptr fs:[0], ecx */ 2589 esi = POP32_VAL(esp); /* 0x47033F4E: pop esi */ 2590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2592 esp = esp + 0xCu; /* 0x47033F4F: add esp, 0xc */ 2593 _flag_k = FK_ADD; 2594 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033F52: ret 4 */ 2595 RECOMP_REGS_OUT(); 2596 } 2597 2598 void sub_47033F60(void) { 2599 int _fpu_cmp = 0; 2600 uint32_t _cf = 0; 2601 int _df = 1; 2602 uint32_t _flag_k = FK_NONE; 2603 uint32_t _flag_a = 0, _flag_b = 0; 2604 uint32_t _itail_tgt = 0; 2605 RECOMP_REGS_LOCALS 2606 RECOMP_ENTER(0x47033F60u); 2607 2608 L_47033F60: 2609 PUSH32(esp, 0); /* 0x47033F60: push 0 */ 2610 PUSH32(esp, 0); /* 0x47033F62: push 0 */ 2611 PUSH32(esp, 0); /* 0x47033F64: push 0 */ 2612 RECOMP_ICALL(0x47034760u); /* 0x47033F66: call 0x47034760 */ /* not lifted */ 2613 RECOMP_FLAGS_IN(); 2614 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47033F6B: ret */ 2615 RECOMP_REGS_OUT(); 2616 } 2617 2618 void sub_47033F70(void) { 2619 int _fpu_cmp = 0; 2620 uint32_t _cf = 0; 2621 int _df = 1; 2622 uint32_t _flag_k = FK_NONE; 2623 uint32_t _flag_a = 0, _flag_b = 0; 2624 uint32_t _itail_tgt = 0; 2625 RECOMP_REGS_LOCALS 2626 RECOMP_ENTER(0x47033F70u); 2627 2628 L_47033F70: 2629 PUSH32(esp, ebx); /* 0x47033F70: push ebx */ 2630 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47033F71: mov bl, byte ptr [esp + 8] */ 2631 /* test LO8(ebx), 2 */ /* 0x47033F75: test bl, 2 */ 2632 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2633 _cf = 0; 2634 _flag_k = FK_NARROW(FK_TEST, 24); 2635 PUSH32(esp, esi); /* 0x47033F78: push esi */ 2636 esi = ecx; /* 0x47033F79: mov esi, ecx */ 2637 if (TEST_Z(_flag_a, _flag_b)) goto L_47033FA8; /* 0x47033F7B: je 0x47033fa8 */ 2638 L_47033F7D: 2639 eax = MEM32(esi + (-0x4)); /* 0x47033F7D: mov eax, dword ptr [esi - 4] */ 2640 PUSH32(esp, edi); /* 0x47033F80: push edi */ 2641 PUSH32(esp, 0x470347F0u); /* 0x47033F81: push 0x470347f0 */ 2642 edi = esi + (-0x4); /* 0x47033F86: lea edi, [esi - 4] */ 2643 PUSH32(esp, eax); /* 0x47033F89: push eax */ 2644 PUSH32(esp, 0x40u); /* 0x47033F8A: push 0x40 */ 2645 PUSH32(esp, esi); /* 0x47033F8C: push esi */ 2646 RECOMP_ICALL(0x470A32EBu); /* 0x47033F8D: call 0x470a32eb */ /* not lifted */ 2647 RECOMP_FLAGS_IN(); 2648 /* test LO8(ebx), 1 */ /* 0x47033F92: test bl, 1 */ 2649 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2650 _cf = 0; 2651 _flag_k = FK_NARROW(FK_TEST, 24); 2652 if (TEST_Z(_flag_a, _flag_b)) goto L_47033FA0; /* 0x47033F95: je 0x47033fa0 */ 2653 L_47033F97: 2654 PUSH32(esp, edi); /* 0x47033F97: push edi */ 2655 RECOMP_ICALL(0x470A32A2u); /* 0x47033F98: call 0x470a32a2 */ /* not lifted */ 2656 RECOMP_FLAGS_IN(); 2657 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2658 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2659 esp = esp + 4; /* 0x47033F9D: add esp, 4 */ 2660 _flag_k = FK_ADD; 2661 L_47033FA0: 2662 eax = edi; /* 0x47033FA0: mov eax, edi */ 2663 edi = POP32_VAL(esp); /* 0x47033FA2: pop edi */ 2664 esi = POP32_VAL(esp); /* 0x47033FA3: pop esi */ 2665 ebx = POP32_VAL(esp); /* 0x47033FA4: pop ebx */ 2666 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033FA5: ret 4 */ 2667 L_47033FA8: 2668 ecx = esi; /* 0x47033FA8: mov ecx, esi */ 2669 RECOMP_ICALL(0x470347F0u); /* 0x47033FAA: call 0x470347f0 */ /* not lifted */ 2670 RECOMP_FLAGS_IN(); 2671 /* test LO8(ebx), 1 */ /* 0x47033FAF: test bl, 1 */ 2672 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2673 _cf = 0; 2674 _flag_k = FK_NARROW(FK_TEST, 24); 2675 if (TEST_Z(_flag_a, _flag_b)) goto L_47033FBD; /* 0x47033FB2: je 0x47033fbd */ 2676 L_47033FB4: 2677 PUSH32(esp, esi); /* 0x47033FB4: push esi */ 2678 RECOMP_ICALL(0x470A32A2u); /* 0x47033FB5: call 0x470a32a2 */ /* not lifted */ 2679 RECOMP_FLAGS_IN(); 2680 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2681 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2682 esp = esp + 4; /* 0x47033FBA: add esp, 4 */ 2683 _flag_k = FK_ADD; 2684 L_47033FBD: 2685 eax = esi; /* 0x47033FBD: mov eax, esi */ 2686 esi = POP32_VAL(esp); /* 0x47033FBF: pop esi */ 2687 ebx = POP32_VAL(esp); /* 0x47033FC0: pop ebx */ 2688 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033FC1: ret 4 */ 2689 RECOMP_REGS_OUT(); 2690 } 2691 2692 void sub_47033FD0(void) { 2693 int _fpu_cmp = 0; 2694 uint32_t _cf = 0; 2695 int _df = 1; 2696 uint32_t _flag_k = FK_NONE; 2697 uint32_t _flag_a = 0, _flag_b = 0; 2698 uint32_t _itail_tgt = 0; 2699 RECOMP_REGS_LOCALS 2700 RECOMP_ENTER(0x47033FD0u); 2701 2702 L_47033FD0: 2703 edx = MEM32(esp + 0xC); /* 0x47033FD0: mov edx, dword ptr [esp + 0xc] */ 2704 eax = MEM32(ecx); /* 0x47033FD4: mov eax, dword ptr [ecx] */ 2705 PUSH32(esp, edx); /* 0x47033FD6: push edx */ 2706 edx = MEM32(esp + 0xC); /* 0x47033FD7: mov edx, dword ptr [esp + 0xc] */ 2707 PUSH32(esp, edx); /* 0x47033FDB: push edx */ 2708 edx = MEM32(esp + 0xC); /* 0x47033FDC: mov edx, dword ptr [esp + 0xc] */ 2709 PUSH32(esp, edx); /* 0x47033FE0: push edx */ 2710 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47033FE1: call dword ptr [eax + 8] */ 2711 RECOMP_FLAGS_IN(); 2712 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47033FE4: ret 0xc */ 2713 RECOMP_REGS_OUT(); 2714 } 2715 2716 void sub_47033FF0(void) { 2717 int _fpu_cmp = 0; 2718 uint32_t _cf = 0; 2719 int _df = 1; 2720 uint32_t _flag_k = FK_NONE; 2721 uint32_t _flag_a = 0, _flag_b = 0; 2722 uint32_t _itail_tgt = 0; 2723 RECOMP_REGS_LOCALS 2724 RECOMP_ENTER(0x47033FF0u); 2725 2726 L_47033FF0: 2727 edx = MEM32(esp + 0x4); /* 0x47033FF0: mov edx, dword ptr [esp + 4] */ 2728 eax = MEM32(ecx); /* 0x47033FF4: mov eax, dword ptr [ecx] */ 2729 PUSH32(esp, edx); /* 0x47033FF6: push edx */ 2730 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x47033FF7: call dword ptr [eax + 0x10] */ 2731 RECOMP_FLAGS_IN(); 2732 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47033FFA: ret 4 */ 2733 RECOMP_REGS_OUT(); 2734 } 2735 2736 void sub_47034000(void) { 2737 int _fpu_cmp = 0; 2738 uint32_t _cf = 0; 2739 int _df = 1; 2740 uint32_t _flag_k = FK_NONE; 2741 uint32_t _flag_a = 0, _flag_b = 0; 2742 uint32_t _itail_tgt = 0; 2743 RECOMP_REGS_LOCALS 2744 RECOMP_ENTER(0x47034000u); 2745 2746 L_47034000: 2747 eax = ecx + 0x60; /* 0x47034000: lea eax, [ecx + 0x60] */ 2748 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034003: ret */ 2749 RECOMP_REGS_OUT(); 2750 } 2751 2752 void sub_47034010(void) { 2753 int _fpu_cmp = 0; 2754 uint32_t _cf = 0; 2755 int _df = 1; 2756 uint32_t _flag_k = FK_NONE; 2757 uint32_t _flag_a = 0, _flag_b = 0; 2758 uint32_t _itail_tgt = 0; 2759 RECOMP_REGS_LOCALS 2760 RECOMP_ENTER(0x47034010u); 2761 2762 L_47034010: 2763 eax = MEM32(esp + 0x4); /* 0x47034010: mov eax, dword ptr [esp + 4] */ 2764 MEM32(ecx + 0x54) = eax; /* 0x47034014: mov dword ptr [ecx + 0x54], eax */ 2765 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47034017: ret 4 */ 2766 RECOMP_REGS_OUT(); 2767 } 2768 2769 void sub_47034020(void) { 2770 int _fpu_cmp = 0; 2771 uint32_t _cf = 0; 2772 int _df = 1; 2773 uint32_t _flag_k = FK_NONE; 2774 uint32_t _flag_a = 0, _flag_b = 0; 2775 uint32_t _itail_tgt = 0; 2776 RECOMP_REGS_LOCALS 2777 RECOMP_ENTER(0x47034020u); 2778 2779 L_47034020: 2780 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034020: push -1 */ 2781 PUSH32(esp, 0x470A593Bu); /* 0x47034022: push 0x470a593b */ 2782 eax = MEM32(FS_BASE + (0)); /* 0x47034027: mov eax, dword ptr fs:[0] */ 2783 PUSH32(esp, eax); /* 0x4703402D: push eax */ 2784 MEM32(FS_BASE + (0)) = esp; /* 0x4703402E: mov dword ptr fs:[0], esp */ 2785 PUSH32(esp, ecx); /* 0x47034035: push ecx */ 2786 PUSH32(esp, esi); /* 0x47034036: push esi */ 2787 esi = ecx; /* 0x47034037: mov esi, ecx */ 2788 MEM32(esp + 0x4) = esi; /* 0x47034039: mov dword ptr [esp + 4], esi */ 2789 MEM32(esi) = 0x470AD3F0u; /* 0x4703403D: mov dword ptr [esi], 0x470ad3f0 */ 2790 PUSH32(esp, esi); /* 0x47034043: push esi */ 2791 MEM32(esp + 0x14) = 0; /* 0x47034044: mov dword ptr [esp + 0x14], 0 */ 2792 RECOMP_ICALL(0x470562A0u); /* 0x4703404C: call 0x470562a0 */ /* not lifted */ 2793 RECOMP_FLAGS_IN(); 2794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2795 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2796 esp = esp + 4; /* 0x47034051: add esp, 4 */ 2797 _flag_k = FK_ADD; 2798 ecx = esi + 0x4; /* 0x47034054: lea ecx, [esi + 4] */ 2799 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47034057: mov dword ptr [esp + 0x10], 0xffffffff */ 2800 RECOMP_ICALL(0x47087E30u); /* 0x4703405F: call 0x47087e30 */ /* not lifted */ 2801 RECOMP_FLAGS_IN(); 2802 ecx = MEM32(esp + 0x8); /* 0x47034064: mov ecx, dword ptr [esp + 8] */ 2803 esi = POP32_VAL(esp); /* 0x47034068: pop esi */ 2804 MEM32(FS_BASE + (0)) = ecx; /* 0x47034069: mov dword ptr fs:[0], ecx */ 2805 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2806 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2807 esp = esp + 0x10u; /* 0x47034070: add esp, 0x10 */ 2808 _flag_k = FK_ADD; 2809 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034073: ret */ 2810 RECOMP_REGS_OUT(); 2811 } 2812 2813 void sub_47034080(void) { 2814 int _fpu_cmp = 0; 2815 uint32_t _cf = 0; 2816 int _df = 1; 2817 uint32_t _flag_k = FK_NONE; 2818 uint32_t _flag_a = 0, _flag_b = 0; 2819 uint32_t _itail_tgt = 0; 2820 RECOMP_REGS_LOCALS 2821 RECOMP_ENTER(0x47034080u); 2822 2823 L_47034080: 2824 PUSH32(esp, ebx); /* 0x47034080: push ebx */ 2825 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47034081: mov bl, byte ptr [esp + 8] */ 2826 /* test LO8(ebx), 2 */ /* 0x47034085: test bl, 2 */ 2827 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2828 _cf = 0; 2829 _flag_k = FK_NARROW(FK_TEST, 24); 2830 PUSH32(esp, esi); /* 0x47034088: push esi */ 2831 esi = ecx; /* 0x47034089: mov esi, ecx */ 2832 if (TEST_Z(_flag_a, _flag_b)) goto L_470340B8; /* 0x4703408B: je 0x470340b8 */ 2833 L_4703408D: 2834 eax = MEM32(esi + (-0x4)); /* 0x4703408D: mov eax, dword ptr [esi - 4] */ 2835 PUSH32(esp, edi); /* 0x47034090: push edi */ 2836 PUSH32(esp, 0x47034020u); /* 0x47034091: push 0x47034020 */ 2837 edi = esi + (-0x4); /* 0x47034096: lea edi, [esi - 4] */ 2838 PUSH32(esp, eax); /* 0x47034099: push eax */ 2839 PUSH32(esp, 0x30u); /* 0x4703409A: push 0x30 */ 2840 PUSH32(esp, esi); /* 0x4703409C: push esi */ 2841 RECOMP_ICALL(0x470A32EBu); /* 0x4703409D: call 0x470a32eb */ /* not lifted */ 2842 RECOMP_FLAGS_IN(); 2843 /* test LO8(ebx), 1 */ /* 0x470340A2: test bl, 1 */ 2844 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2845 _cf = 0; 2846 _flag_k = FK_NARROW(FK_TEST, 24); 2847 if (TEST_Z(_flag_a, _flag_b)) goto L_470340B0; /* 0x470340A5: je 0x470340b0 */ 2848 L_470340A7: 2849 PUSH32(esp, edi); /* 0x470340A7: push edi */ 2850 RECOMP_ICALL(0x470A32A2u); /* 0x470340A8: call 0x470a32a2 */ /* not lifted */ 2851 RECOMP_FLAGS_IN(); 2852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2854 esp = esp + 4; /* 0x470340AD: add esp, 4 */ 2855 _flag_k = FK_ADD; 2856 L_470340B0: 2857 eax = edi; /* 0x470340B0: mov eax, edi */ 2858 edi = POP32_VAL(esp); /* 0x470340B2: pop edi */ 2859 esi = POP32_VAL(esp); /* 0x470340B3: pop esi */ 2860 ebx = POP32_VAL(esp); /* 0x470340B4: pop ebx */ 2861 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470340B5: ret 4 */ 2862 L_470340B8: 2863 ecx = esi; /* 0x470340B8: mov ecx, esi */ 2864 RECOMP_ICALL(0x47034020u); /* 0x470340BA: call 0x47034020 */ /* not lifted */ 2865 RECOMP_FLAGS_IN(); 2866 /* test LO8(ebx), 1 */ /* 0x470340BF: test bl, 1 */ 2867 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2868 _cf = 0; 2869 _flag_k = FK_NARROW(FK_TEST, 24); 2870 if (TEST_Z(_flag_a, _flag_b)) goto L_470340CD; /* 0x470340C2: je 0x470340cd */ 2871 L_470340C4: 2872 PUSH32(esp, esi); /* 0x470340C4: push esi */ 2873 RECOMP_ICALL(0x470A32A2u); /* 0x470340C5: call 0x470a32a2 */ /* not lifted */ 2874 RECOMP_FLAGS_IN(); 2875 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2877 esp = esp + 4; /* 0x470340CA: add esp, 4 */ 2878 _flag_k = FK_ADD; 2879 L_470340CD: 2880 eax = esi; /* 0x470340CD: mov eax, esi */ 2881 esi = POP32_VAL(esp); /* 0x470340CF: pop esi */ 2882 ebx = POP32_VAL(esp); /* 0x470340D0: pop ebx */ 2883 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470340D1: ret 4 */ 2884 RECOMP_REGS_OUT(); 2885 } 2886 2887 void sub_470340E0(void) { 2888 int _fpu_cmp = 0; 2889 uint32_t _cf = 0; 2890 int _df = 1; 2891 uint32_t _flag_k = FK_NONE; 2892 uint32_t _flag_a = 0, _flag_b = 0; 2893 uint32_t _itail_tgt = 0; 2894 RECOMP_REGS_LOCALS 2895 RECOMP_ENTER(0x470340E0u); 2896 2897 L_470340E0: 2898 MEM32(ecx) = 0x470AD368u; /* 0x470340E0: mov dword ptr [ecx], 0x470ad368 */ 2899 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470340E6: ret */ 2900 RECOMP_REGS_OUT(); 2901 } 2902 2903 void sub_470340F0(void) { 2904 int _fpu_cmp = 0; 2905 uint32_t _cf = 0; 2906 int _df = 1; 2907 uint32_t _flag_k = FK_NONE; 2908 uint32_t _flag_a = 0, _flag_b = 0; 2909 uint32_t _itail_tgt = 0; 2910 RECOMP_REGS_LOCALS 2911 RECOMP_ENTER(0x470340F0u); 2912 2913 L_470340F0: 2914 eax = MEM32(esp + 0x4); /* 0x470340F0: mov eax, dword ptr [esp + 4] */ 2915 PUSH32(esp, eax); /* 0x470340F4: push eax */ 2916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 2917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2918 ecx = ecx + 0xCu; /* 0x470340F5: add ecx, 0xc */ 2919 _flag_k = FK_ADD; 2920 RECOMP_ICALL(0x47035B00u); /* 0x470340F8: call 0x47035b00 */ /* not lifted */ 2921 RECOMP_FLAGS_IN(); 2922 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470340FD: ret 4 */ 2923 RECOMP_REGS_OUT(); 2924 } 2925 2926 void sub_47034100(void) { 2927 int _fpu_cmp = 0; 2928 uint32_t _cf = 0; 2929 int _df = 1; 2930 uint32_t _flag_k = FK_NONE; 2931 uint32_t _flag_a = 0, _flag_b = 0; 2932 uint32_t _itail_tgt = 0; 2933 RECOMP_REGS_LOCALS 2934 RECOMP_ENTER(0x47034100u); 2935 2936 L_47034100: 2937 eax = MEM32(ecx + 0x8); /* 0x47034100: mov eax, dword ptr [ecx + 8] */ 2938 /* test eax, eax */ /* 0x47034103: test eax, eax */ 2939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2940 _cf = 0; 2941 _flag_k = FK_TEST; 2942 if (TEST_NZ(_flag_a, _flag_b)) goto L_47034164; /* 0x47034105: jne 0x47034164 */ 2943 L_47034107: 2944 PUSH32(esp, esi); /* 0x47034107: push esi */ 2945 PUSH32(esp, edi); /* 0x47034108: push edi */ 2946 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47034109: call dword ptr [0x470ac150] */ 2947 RECOMP_FLAGS_IN(); 2948 edi = eax; /* 0x4703410F: mov edi, eax */ 2949 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47034111: call dword ptr [0x470ac3c8] */ 2950 RECOMP_FLAGS_IN(); 2951 eax = MEM32(eax); /* 0x47034117: mov eax, dword ptr [eax] */ 2952 /* test eax, eax */ /* 0x47034119: test eax, eax */ 2953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2954 _cf = 0; 2955 _flag_k = FK_TEST; 2956 if (TEST_Z(_flag_a, _flag_b)) goto L_4703411F; /* 0x4703411B: je 0x4703411f */ 2957 L_4703411D: 2958 edi = eax; /* 0x4703411D: mov edi, eax */ 2959 L_4703411F: 2960 RECOMP_ICALL(0x47039020u); /* 0x4703411F: call 0x47039020 */ /* not lifted */ 2961 RECOMP_FLAGS_IN(); 2962 esi = eax; /* 0x47034124: mov esi, eax */ 2963 ecx = esi; /* 0x47034126: mov ecx, esi */ 2964 RECOMP_ICALL(0x4703B210u); /* 0x47034128: call 0x4703b210 */ /* not lifted */ 2965 RECOMP_FLAGS_IN(); 2966 PUSH32(esp, eax); /* 0x4703412D: push eax */ 2967 ecx = esi; /* 0x4703412E: mov ecx, esi */ 2968 RECOMP_ICALL(0x4703B240u); /* 0x47034130: call 0x4703b240 */ /* not lifted */ 2969 RECOMP_FLAGS_IN(); 2970 PUSH32(esp, eax); /* 0x47034135: push eax */ 2971 ecx = esi; /* 0x47034136: mov ecx, esi */ 2972 RECOMP_ICALL(0x4703B080u); /* 0x47034138: call 0x4703b080 */ /* not lifted */ 2973 RECOMP_FLAGS_IN(); 2974 PUSH32(esp, eax); /* 0x4703413D: push eax */ 2975 PUSH32(esp, edi); /* 0x4703413E: push edi */ 2976 PUSH32(esp, 0); /* 0x4703413F: push 0 */ 2977 PUSH32(esp, 0x7Cu); /* 0x47034141: push 0x7c */ 2978 PUSH32(esp, 0x47106D40u); /* 0x47034143: push 0x47106d40 */ 2979 ecx = esi; /* 0x47034148: mov ecx, esi */ 2980 RECOMP_ICALL(0x4703A340u); /* 0x4703414A: call 0x4703a340 */ /* not lifted */ 2981 RECOMP_FLAGS_IN(); 2982 PUSH32(esp, 0x47106D24u); /* 0x4703414F: push 0x47106d24 */ 2983 PUSH32(esp, 4); /* 0x47034154: push 4 */ 2984 PUSH32(esp, esi); /* 0x47034156: push esi */ 2985 RECOMP_ICALL(0x47039830u); /* 0x47034157: call 0x47039830 */ /* not lifted */ 2986 RECOMP_FLAGS_IN(); 2987 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2988 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2989 esp = esp + 0xCu; /* 0x4703415C: add esp, 0xc */ 2990 _flag_k = FK_ADD; 2991 edi = POP32_VAL(esp); /* 0x4703415F: pop edi */ 2992 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2993 eax = 0; /* 0x47034160: xor eax, eax */ 2994 _cf = 0; 2995 _flag_k = FK_TEST; 2996 esi = POP32_VAL(esp); /* 0x47034162: pop esi */ 2997 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034163: ret */ 2998 L_47034164: 2999 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3000 eax = eax - 1; /* 0x47034164: dec eax */ 3001 _flag_k = FK_DEC; 3002 MEM32(ecx + 0x8) = eax; /* 0x47034165: mov dword ptr [ecx + 8], eax */ 3003 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034168: ret */ 3004 RECOMP_REGS_OUT(); 3005 } 3006 3007 void sub_47034170(void) { 3008 int _fpu_cmp = 0; 3009 uint32_t _cf = 0; 3010 int _df = 1; 3011 uint32_t _flag_k = FK_NONE; 3012 uint32_t _flag_a = 0, _flag_b = 0; 3013 uint32_t _itail_tgt = 0; 3014 RECOMP_REGS_LOCALS 3015 RECOMP_ENTER(0x47034170u); 3016 3017 L_47034170: 3018 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(1); 3019 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + 1; /* 0x47034170: inc dword ptr [ecx + 8] */ 3020 _flag_k = FK_INC; 3021 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034173: ret */ 3022 RECOMP_REGS_OUT(); 3023 } 3024 3025 void sub_47034180(void) { 3026 int _fpu_cmp = 0; 3027 uint32_t _cf = 0; 3028 int _df = 1; 3029 uint32_t _flag_k = FK_NONE; 3030 uint32_t _flag_a = 0, _flag_b = 0; 3031 uint32_t _itail_tgt = 0; 3032 RECOMP_REGS_LOCALS 3033 RECOMP_ENTER(0x47034180u); 3034 3035 L_47034180: 3036 eax = MEM32(ecx + 0xC); /* 0x47034180: mov eax, dword ptr [ecx + 0xc] */ 3037 /* test eax, eax */ /* 0x47034183: test eax, eax */ 3038 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3039 _cf = 0; 3040 _flag_k = FK_TEST; 3041 if (TEST_Z(_flag_a, _flag_b)) goto L_47034189; /* 0x47034185: je 0x47034189 */ 3042 L_47034187: 3043 if (TEST_NZ(_flag_a, _flag_b)) goto L_4703418F; /* 0x47034187: jne 0x4703418f */ 3044 L_47034189: 3045 eax = 0x47106D58u; /* 0x47034189: mov eax, 0x47106d58 */ 3046 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703418E: ret */ 3047 L_4703418F: 3048 ecx = MEM32(ecx + 0xC); /* 0x4703418F: mov ecx, dword ptr [ecx + 0xc] */ 3049 eax = ecx + 0x60; /* 0x47034192: lea eax, [ecx + 0x60] */ 3050 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034195: ret */ 3051 RECOMP_REGS_OUT(); 3052 } 3053 3054 void sub_470341A0(void) { 3055 int _fpu_cmp = 0; 3056 uint32_t _cf = 0; 3057 int _df = 1; 3058 uint32_t _flag_k = FK_NONE; 3059 uint32_t _flag_a = 0, _flag_b = 0; 3060 uint32_t _itail_tgt = 0; 3061 RECOMP_REGS_LOCALS 3062 RECOMP_ENTER(0x470341A0u); 3063 3064 L_470341A0: 3065 edx = MEM32(ecx + 0x58); /* 0x470341A0: mov edx, dword ptr [ecx + 0x58] */ 3066 eax = MEM32(esp + 0x4); /* 0x470341A3: mov eax, dword ptr [esp + 4] */ 3067 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3068 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3069 edx = edx + eax; /* 0x470341A7: add edx, eax */ 3070 _flag_k = FK_ADD; 3071 MEM32(ecx + 0x58) = edx; /* 0x470341A9: mov dword ptr [ecx + 0x58], edx */ 3072 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470341AC: ret 4 */ 3073 RECOMP_REGS_OUT(); 3074 } 3075 3076 void sub_470341B0(void) { 3077 int _fpu_cmp = 0; 3078 uint32_t _cf = 0; 3079 int _df = 1; 3080 uint32_t _flag_k = FK_NONE; 3081 uint32_t _flag_a = 0, _flag_b = 0; 3082 uint32_t _itail_tgt = 0; 3083 RECOMP_REGS_LOCALS 3084 RECOMP_ENTER(0x470341B0u); 3085 3086 L_470341B0: 3087 eax = MEM32(ecx + 0x174); /* 0x470341B0: mov eax, dword ptr [ecx + 0x174] */ 3088 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470341B6: ret */ 3089 RECOMP_REGS_OUT(); 3090 } 3091 3092 void sub_470341C0(void) { 3093 int _fpu_cmp = 0; 3094 uint32_t _cf = 0; 3095 int _df = 1; 3096 uint32_t _flag_k = FK_NONE; 3097 uint32_t _flag_a = 0, _flag_b = 0; 3098 uint32_t _itail_tgt = 0; 3099 RECOMP_REGS_LOCALS 3100 RECOMP_ENTER(0x470341C0u); 3101 3102 L_470341C0: 3103 eax = MEM32(esp + 0x4); /* 0x470341C0: mov eax, dword ptr [esp + 4] */ 3104 MEM32(ecx + 0x174) = eax; /* 0x470341C4: mov dword ptr [ecx + 0x174], eax */ 3105 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470341CA: ret 4 */ 3106 RECOMP_REGS_OUT(); 3107 } 3108 3109 void sub_470341D0(void) { 3110 int _fpu_cmp = 0; 3111 uint32_t _cf = 0; 3112 int _df = 1; 3113 uint32_t _flag_k = FK_NONE; 3114 uint32_t _flag_a = 0, _flag_b = 0; 3115 uint32_t _itail_tgt = 0; 3116 RECOMP_REGS_LOCALS 3117 RECOMP_ENTER(0x470341D0u); 3118 3119 L_470341D0: 3120 eax = MEM32(ecx + 0x174); /* 0x470341D0: mov eax, dword ptr [ecx + 0x174] */ 3121 L_470341D6: 3122 /* test eax, eax */ /* 0x470341D6: test eax, eax */ 3123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3124 _cf = 0; 3125 _flag_k = FK_TEST; 3126 L_470341D8: 3127 ecx = MEM32(ecx + 0x54); /* 0x470341D8: mov ecx, dword ptr [ecx + 0x54] */ 3128 L_470341DB: 3129 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_470341E4; /* 0x470341DB: je 0x470341e4 */ 3130 L_470341DD: 3131 PUSH32(esp, ecx); /* 0x470341DD: push ecx */ 3132 L_470341DE: 3133 RECOMP_ICALL(eax); /* 0x470341DE: call eax */ 3134 RECOMP_FLAGS_IN(); 3135 L_470341E0: 3136 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3138 esp = esp + 4; /* 0x470341E0: add esp, 4 */ 3139 _flag_k = FK_ADD; 3140 L_470341E3: 3141 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470341E3: ret */ 3142 L_470341E4: 3143 edx = MEM32(ecx); /* 0x470341E4: mov edx, dword ptr [ecx] */ 3144 L_470341E6: 3145 { _itail_tgt = (uint32_t)(MEM32(edx + 0x38)); goto _ljump; } 3146 { RECOMP_REGS_OUT(); return; } /* end of function */ 3147 _ljump: 3148 switch (_itail_tgt) { 3149 case 0x470341D0u: goto L_470341D0; 3150 case 0x470341D6u: goto L_470341D6; 3151 case 0x470341D8u: goto L_470341D8; 3152 case 0x470341DBu: goto L_470341DB; 3153 case 0x470341DDu: goto L_470341DD; 3154 case 0x470341DEu: goto L_470341DE; 3155 case 0x470341E0u: goto L_470341E0; 3156 case 0x470341E3u: goto L_470341E3; 3157 case 0x470341E4u: goto L_470341E4; 3158 case 0x470341E6u: goto L_470341E6; 3159 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3160 } 3161 RECOMP_REGS_OUT(); 3162 } 3163 3164 void sub_470341F0(void) { 3165 int _fpu_cmp = 0; 3166 uint32_t _cf = 0; 3167 int _df = 1; 3168 uint32_t _flag_k = FK_NONE; 3169 uint32_t _flag_a = 0, _flag_b = 0; 3170 uint32_t _itail_tgt = 0; 3171 RECOMP_REGS_LOCALS 3172 RECOMP_ENTER(0x470341F0u); 3173 3174 L_470341F0: 3175 PUSH32(esp, ebx); /* 0x470341F0: push ebx */ 3176 PUSH32(esp, esi); /* 0x470341F1: push esi */ 3177 esi = MEM32(esp + 0xC); /* 0x470341F2: mov esi, dword ptr [esp + 0xc] */ 3178 eax = ecx + 0x60; /* 0x470341F6: lea eax, [ecx + 0x60] */ 3179 L_470341F9: 3180 SET_LO8(edx, MEM8(eax)); /* 0x470341F9: mov dl, byte ptr [eax] */ 3181 SET_LO8(ebx, MEM8(esi)); /* 0x470341FB: mov bl, byte ptr [esi] */ 3182 SET_LO8(ecx, LO8(edx)); /* 0x470341FD: mov cl, dl */ 3183 /* cmp LO8(edx), LO8(ebx) */ /* 0x470341FF: cmp dl, bl */ 3184 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3186 _flag_k = FK_NARROW(FK_CMP, 24); 3187 if (CMP_NE(_flag_a, _flag_b)) goto L_4703422D; /* 0x47034201: jne 0x4703422d */ 3188 L_47034203: 3189 /* test LO8(ecx), LO8(ecx) */ /* 0x47034203: test cl, cl */ 3190 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3191 _cf = 0; 3192 _flag_k = FK_NARROW(FK_TEST, 24); 3193 if (TEST_Z(_flag_a, _flag_b)) goto L_4703421D; /* 0x47034205: je 0x4703421d */ 3194 L_47034207: 3195 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47034207: mov dl, byte ptr [eax + 1] */ 3196 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x4703420A: mov bl, byte ptr [esi + 1] */ 3197 SET_LO8(ecx, LO8(edx)); /* 0x4703420D: mov cl, dl */ 3198 /* cmp LO8(edx), LO8(ebx) */ /* 0x4703420F: cmp dl, bl */ 3199 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3201 _flag_k = FK_NARROW(FK_CMP, 24); 3202 if (CMP_NE(_flag_a, _flag_b)) goto L_4703422D; /* 0x47034211: jne 0x4703422d */ 3203 L_47034213: 3204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3205 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3206 eax = eax + 2; /* 0x47034213: add eax, 2 */ 3207 _flag_k = FK_ADD; 3208 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 3209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3210 esi = esi + 2; /* 0x47034216: add esi, 2 */ 3211 _flag_k = FK_ADD; 3212 /* test LO8(ecx), LO8(ecx) */ /* 0x47034219: test cl, cl */ 3213 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3214 _cf = 0; 3215 _flag_k = FK_NARROW(FK_TEST, 24); 3216 RECOMP_BACKEDGE(); 3217 if (TEST_NZ(_flag_a, _flag_b)) goto L_470341F9; /* 0x4703421B: jne 0x470341f9 */ 3218 L_4703421D: 3219 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3220 eax = 0; /* 0x4703421D: xor eax, eax */ 3221 _cf = 0; 3222 _flag_k = FK_TEST; 3223 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3224 ecx = 0; /* 0x4703421F: xor ecx, ecx */ 3225 _cf = 0; 3226 _flag_k = FK_TEST; 3227 /* test eax, eax */ /* 0x47034221: test eax, eax */ 3228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3229 _cf = 0; 3230 _flag_k = FK_TEST; 3231 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47034223: sete cl */ 3232 esi = POP32_VAL(esp); /* 0x47034226: pop esi */ 3233 ebx = POP32_VAL(esp); /* 0x47034227: pop ebx */ 3234 eax = ecx; /* 0x47034228: mov eax, ecx */ 3235 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703422A: ret 4 */ 3236 L_4703422D: 3237 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4703422D: sbb eax, eax */ 3238 eax = _sc ? 0xFFFFFFFFu : 0; 3239 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3240 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3241 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x4703422F: sbb eax, -1 */ 3242 eax = _sa - _sb - _sc; 3243 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3244 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3245 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3246 ecx = 0; /* 0x47034232: xor ecx, ecx */ 3247 _cf = 0; 3248 _flag_k = FK_TEST; 3249 /* test eax, eax */ /* 0x47034234: test eax, eax */ 3250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3251 _cf = 0; 3252 _flag_k = FK_TEST; 3253 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47034236: sete cl */ 3254 esi = POP32_VAL(esp); /* 0x47034239: pop esi */ 3255 ebx = POP32_VAL(esp); /* 0x4703423A: pop ebx */ 3256 eax = ecx; /* 0x4703423B: mov eax, ecx */ 3257 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703423D: ret 4 */ 3258 RECOMP_REGS_OUT(); 3259 } 3260 3261 void sub_47034240(void) { 3262 int _fpu_cmp = 0; 3263 uint32_t _cf = 0; 3264 int _df = 1; 3265 uint32_t _flag_k = FK_NONE; 3266 uint32_t _flag_a = 0, _flag_b = 0; 3267 uint32_t _itail_tgt = 0; 3268 RECOMP_REGS_LOCALS 3269 RECOMP_ENTER(0x47034240u); 3270 3271 L_47034240: 3272 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034240: push -1 */ 3273 PUSH32(esp, 0x470A5963u); /* 0x47034242: push 0x470a5963 */ 3274 eax = MEM32(FS_BASE + (0)); /* 0x47034247: mov eax, dword ptr fs:[0] */ 3275 PUSH32(esp, eax); /* 0x4703424D: push eax */ 3276 MEM32(FS_BASE + (0)) = esp; /* 0x4703424E: mov dword ptr fs:[0], esp */ 3277 PUSH32(esp, ecx); /* 0x47034255: push ecx */ 3278 PUSH32(esp, esi); /* 0x47034256: push esi */ 3279 esi = ecx; /* 0x47034257: mov esi, ecx */ 3280 PUSH32(esp, 0); /* 0x47034259: push 0 */ 3281 PUSH32(esp, 0); /* 0x4703425B: push 0 */ 3282 ecx = esi + 0x14; /* 0x4703425D: lea ecx, [esi + 0x14] */ 3283 MEM32(esp + 0xC) = esi; /* 0x47034260: mov dword ptr [esp + 0xc], esi */ 3284 MEM32(esi + 0xC) = 0; /* 0x47034264: mov dword ptr [esi + 0xc], 0 */ 3285 RECOMP_ICALL(0x47087E50u); /* 0x4703426B: call 0x47087e50 */ /* not lifted */ 3286 RECOMP_FLAGS_IN(); 3287 MEM32(esi + 0x30) = 0; /* 0x47034270: mov dword ptr [esi + 0x30], 0 */ 3288 eax = MEM32(0x4710E904); /* 0x47034277: mov eax, dword ptr [0x4710e904] */ 3289 MEM32(esi + 0x34) = eax; /* 0x4703427C: mov dword ptr [esi + 0x34], eax */ 3290 MEM32(esi + 0x38) = esi; /* 0x4703427F: mov dword ptr [esi + 0x38], esi */ 3291 MEM32(esi + 0x3C) = 0; /* 0x47034282: mov dword ptr [esi + 0x3c], 0 */ 3292 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47034289: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 3293 ecx = MEM32(esp + 0x20); /* 0x47034290: mov ecx, dword ptr [esp + 0x20] */ 3294 edx = MEM32(esp + 0x1C); /* 0x47034294: mov edx, dword ptr [esp + 0x1c] */ 3295 eax = MEM32(esp + 0x18); /* 0x47034298: mov eax, dword ptr [esp + 0x18] */ 3296 PUSH32(esp, ecx); /* 0x4703429C: push ecx */ 3297 PUSH32(esp, edx); /* 0x4703429D: push edx */ 3298 PUSH32(esp, eax); /* 0x4703429E: push eax */ 3299 ecx = esi; /* 0x4703429F: mov ecx, esi */ 3300 MEM32(esp + 0x1C) = 3; /* 0x470342A1: mov dword ptr [esp + 0x1c], 3 */ 3301 MEM32(esi) = 0x470AD448u; /* 0x470342A9: mov dword ptr [esi], 0x470ad448 */ 3302 RECOMP_ICALL(0x470379E0u); /* 0x470342AF: call 0x470379e0 */ /* not lifted */ 3303 RECOMP_FLAGS_IN(); 3304 ecx = MEM32(esp + 0x8); /* 0x470342B4: mov ecx, dword ptr [esp + 8] */ 3305 eax = esi; /* 0x470342B8: mov eax, esi */ 3306 esi = POP32_VAL(esp); /* 0x470342BA: pop esi */ 3307 MEM32(FS_BASE + (0)) = ecx; /* 0x470342BB: mov dword ptr fs:[0], ecx */ 3308 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3309 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3310 esp = esp + 0x10u; /* 0x470342C2: add esp, 0x10 */ 3311 _flag_k = FK_ADD; 3312 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470342C5: ret 0xc */ 3313 RECOMP_REGS_OUT(); 3314 } 3315 3316 void sub_470342D0(void) { 3317 int _fpu_cmp = 0; 3318 uint32_t _cf = 0; 3319 int _df = 1; 3320 uint32_t _flag_k = FK_NONE; 3321 uint32_t _flag_a = 0, _flag_b = 0; 3322 uint32_t _itail_tgt = 0; 3323 RECOMP_REGS_LOCALS 3324 RECOMP_ENTER(0x470342D0u); 3325 3326 L_470342D0: 3327 edx = MEM32(esp + 0x4); /* 0x470342D0: mov edx, dword ptr [esp + 4] */ 3328 /* test edx, edx */ /* 0x470342D4: test edx, edx */ 3329 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3330 _cf = 0; 3331 _flag_k = FK_TEST; 3332 PUSH32(esp, esi); /* 0x470342D6: push esi */ 3333 esi = ecx; /* 0x470342D7: mov esi, ecx */ 3334 if (TEST_NZ(_flag_a, _flag_b)) goto L_470342E0; /* 0x470342D9: jne 0x470342e0 */ 3335 L_470342DB: 3336 edx = 0x47106D1Cu; /* 0x470342DB: mov edx, 0x47106d1c */ 3337 L_470342E0: 3338 PUSH32(esp, edi); /* 0x470342E0: push edi */ 3339 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3340 ecx = ecx | 0xFFFFFFFFu; /* 0x470342E1: or ecx, 0xffffffff */ 3341 _cf = 0; 3342 _flag_k = FK_TEST; 3343 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3344 eax = 0; /* 0x470342E4: xor eax, eax */ 3345 _cf = 0; 3346 _flag_k = FK_TEST; 3347 edi = edx; /* 0x470342E6: mov edi, edx */ 3348 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; } /* 0x470342E8: repne scasb al, byte ptr es:[edi] */ 3349 ecx = ~ecx; /* 0x470342EA: not ecx */ 3350 /* cmp ecx, 0x28u */ /* 0x470342EC: cmp ecx, 0x28 */ 3351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 3352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3353 _flag_k = FK_CMP; 3354 edi = POP32_VAL(esp); /* 0x470342EF: pop edi */ 3355 if (CMP_L(_flag_a, _flag_b)) goto L_470342F7; /* 0x470342F0: jl 0x470342f7 */ 3356 L_470342F2: 3357 ecx = 0x27u; /* 0x470342F2: mov ecx, 0x27 */ 3358 L_470342F7: 3359 PUSH32(esp, ecx); /* 0x470342F7: push ecx */ 3360 PUSH32(esp, edx); /* 0x470342F8: push edx */ 3361 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 3362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3363 esi = esi + 4; /* 0x470342F9: add esi, 4 */ 3364 _flag_k = FK_ADD; 3365 PUSH32(esp, esi); /* 0x470342FC: push esi */ 3366 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470342FD: call dword ptr [0x470ac22c] */ 3367 RECOMP_FLAGS_IN(); 3368 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3370 esp = esp + 0xCu; /* 0x47034303: add esp, 0xc */ 3371 _flag_k = FK_ADD; 3372 esi = POP32_VAL(esp); /* 0x47034306: pop esi */ 3373 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47034307: ret 4 */ 3374 RECOMP_REGS_OUT(); 3375 } 3376 3377 void sub_47034310(void) { 3378 int _fpu_cmp = 0; 3379 uint32_t _cf = 0; 3380 int _df = 1; 3381 uint32_t _flag_k = FK_NONE; 3382 uint32_t _flag_a = 0, _flag_b = 0; 3383 uint32_t _itail_tgt = 0; 3384 RECOMP_REGS_LOCALS 3385 RECOMP_ENTER(0x47034310u); 3386 3387 L_47034310: 3388 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034310: push -1 */ 3389 PUSH32(esp, 0x470A598Eu); /* 0x47034312: push 0x470a598e */ 3390 eax = MEM32(FS_BASE + (0)); /* 0x47034317: mov eax, dword ptr fs:[0] */ 3391 PUSH32(esp, eax); /* 0x4703431D: push eax */ 3392 MEM32(FS_BASE + (0)) = esp; /* 0x4703431E: mov dword ptr fs:[0], esp */ 3393 PUSH32(esp, ecx); /* 0x47034325: push ecx */ 3394 PUSH32(esp, esi); /* 0x47034326: push esi */ 3395 PUSH32(esp, edi); /* 0x47034327: push edi */ 3396 PUSH32(esp, 0x40u); /* 0x47034328: push 0x40 */ 3397 edi = ecx; /* 0x4703432A: mov edi, ecx */ 3398 RECOMP_ICALL(0x470A33F2u); /* 0x4703432C: call 0x470a33f2 */ /* not lifted */ 3399 RECOMP_FLAGS_IN(); 3400 esi = eax; /* 0x47034331: mov esi, eax */ 3401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3403 esp = esp + 4; /* 0x47034333: add esp, 4 */ 3404 _flag_k = FK_ADD; 3405 MEM32(esp + 0x8) = esi; /* 0x47034336: mov dword ptr [esp + 8], esi */ 3406 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3407 eax = 0; /* 0x4703433A: xor eax, eax */ 3408 _cf = 0; 3409 _flag_k = FK_TEST; 3410 /* cmp esi, eax */ /* 0x4703433C: cmp esi, eax */ 3411 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3413 _flag_k = FK_CMP; 3414 MEM32(esp + 0x14) = eax; /* 0x4703433E: mov dword ptr [esp + 0x14], eax */ 3415 if (CMP_EQ(_flag_a, _flag_b)) goto L_47034393; /* 0x47034342: je 0x47034393 */ 3416 L_47034344: 3417 PUSH32(esp, ebx); /* 0x47034344: push ebx */ 3418 ebx = MEM32(edi + 0x8); /* 0x47034345: mov ebx, dword ptr [edi + 8] */ 3419 PUSH32(esp, ebp); /* 0x47034348: push ebp */ 3420 ebp = MEM32(edi + 0x4); /* 0x47034349: mov ebp, dword ptr [edi + 4] */ 3421 edi = MEM32(edi + 0xC); /* 0x4703434C: mov edi, dword ptr [edi + 0xc] */ 3422 PUSH32(esp, eax); /* 0x4703434F: push eax */ 3423 PUSH32(esp, eax); /* 0x47034350: push eax */ 3424 ecx = esi + 0x14; /* 0x47034351: lea ecx, [esi + 0x14] */ 3425 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u); 3426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3427 edi = edi + 0x18u; /* 0x47034354: add edi, 0x18 */ 3428 _flag_k = FK_ADD; 3429 MEM32(esi + 0xC) = eax; /* 0x47034357: mov dword ptr [esi + 0xc], eax */ 3430 RECOMP_ICALL(0x47087E50u); /* 0x4703435A: call 0x47087e50 */ /* not lifted */ 3431 RECOMP_FLAGS_IN(); 3432 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3433 eax = 0; /* 0x4703435F: xor eax, eax */ 3434 _cf = 0; 3435 _flag_k = FK_TEST; 3436 MEM32(esi + 0x30) = eax; /* 0x47034361: mov dword ptr [esi + 0x30], eax */ 3437 ecx = MEM32(0x4710E904); /* 0x47034364: mov ecx, dword ptr [0x4710e904] */ 3438 MEM32(esi + 0x34) = ecx; /* 0x4703436A: mov dword ptr [esi + 0x34], ecx */ 3439 MEM32(esi + 0x38) = esi; /* 0x4703436D: mov dword ptr [esi + 0x38], esi */ 3440 MEM32(esi + 0x3C) = eax; /* 0x47034370: mov dword ptr [esi + 0x3c], eax */ 3441 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47034373: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 3442 PUSH32(esp, ebx); /* 0x4703437A: push ebx */ 3443 PUSH32(esp, ebp); /* 0x4703437B: push ebp */ 3444 PUSH32(esp, edi); /* 0x4703437C: push edi */ 3445 ecx = esi; /* 0x4703437D: mov ecx, esi */ 3446 MEM8(esp + 0x28) = (uint8_t)(4); /* 0x4703437F: mov byte ptr [esp + 0x28], 4 */ 3447 MEM32(esi) = 0x470AD448u; /* 0x47034384: mov dword ptr [esi], 0x470ad448 */ 3448 RECOMP_ICALL(0x470379E0u); /* 0x4703438A: call 0x470379e0 */ /* not lifted */ 3449 RECOMP_FLAGS_IN(); 3450 ebp = POP32_VAL(esp); /* 0x4703438F: pop ebp */ 3451 eax = esi; /* 0x47034390: mov eax, esi */ 3452 ebx = POP32_VAL(esp); /* 0x47034392: pop ebx */ 3453 L_47034393: 3454 ecx = MEM32(esp + 0xC); /* 0x47034393: mov ecx, dword ptr [esp + 0xc] */ 3455 edi = POP32_VAL(esp); /* 0x47034397: pop edi */ 3456 esi = POP32_VAL(esp); /* 0x47034398: pop esi */ 3457 MEM32(FS_BASE + (0)) = ecx; /* 0x47034399: mov dword ptr fs:[0], ecx */ 3458 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3460 esp = esp + 0x10u; /* 0x470343A0: add esp, 0x10 */ 3461 _flag_k = FK_ADD; 3462 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470343A3: ret */ 3463 RECOMP_REGS_OUT(); 3464 } 3465 3466 void sub_470343B0(void) { 3467 int _fpu_cmp = 0; 3468 uint32_t _cf = 0; 3469 int _df = 1; 3470 uint32_t _flag_k = FK_NONE; 3471 uint32_t _flag_a = 0, _flag_b = 0; 3472 uint32_t _itail_tgt = 0; 3473 RECOMP_REGS_LOCALS 3474 RECOMP_ENTER(0x470343B0u); 3475 3476 L_470343B0: 3477 PUSH32(esp, 0xFFFFFFFFu); /* 0x470343B0: push -1 */ 3478 PUSH32(esp, 0x470A59B3u); /* 0x470343B2: push 0x470a59b3 */ 3479 eax = MEM32(FS_BASE + (0)); /* 0x470343B7: mov eax, dword ptr fs:[0] */ 3480 PUSH32(esp, eax); /* 0x470343BD: push eax */ 3481 MEM32(FS_BASE + (0)) = esp; /* 0x470343BE: mov dword ptr fs:[0], esp */ 3482 PUSH32(esp, ecx); /* 0x470343C5: push ecx */ 3483 PUSH32(esp, ebx); /* 0x470343C6: push ebx */ 3484 PUSH32(esp, esi); /* 0x470343C7: push esi */ 3485 PUSH32(esp, 0x5Cu); /* 0x470343C8: push 0x5c */ 3486 RECOMP_ICALL(0x470A33F2u); /* 0x470343CA: call 0x470a33f2 */ /* not lifted */ 3487 RECOMP_FLAGS_IN(); 3488 esi = eax; /* 0x470343CF: mov esi, eax */ 3489 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3490 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3491 esp = esp + 4; /* 0x470343D1: add esp, 4 */ 3492 _flag_k = FK_ADD; 3493 MEM32(esp + 0x8) = esi; /* 0x470343D4: mov dword ptr [esp + 8], esi */ 3494 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3495 ebx = 0; /* 0x470343D8: xor ebx, ebx */ 3496 _cf = 0; 3497 _flag_k = FK_TEST; 3498 /* cmp esi, ebx */ /* 0x470343DA: cmp esi, ebx */ 3499 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3501 _flag_k = FK_CMP; 3502 MEM32(esp + 0x14) = ebx; /* 0x470343DC: mov dword ptr [esp + 0x14], ebx */ 3503 if (CMP_EQ(_flag_a, _flag_b)) goto L_4703444E; /* 0x470343E0: je 0x4703444e */ 3504 L_470343E2: 3505 MEM32(esi + 0x4) = ebx; /* 0x470343E2: mov dword ptr [esi + 4], ebx */ 3506 MEM32(esi + 0x8) = ebx; /* 0x470343E5: mov dword ptr [esi + 8], ebx */ 3507 MEM32(esi + 0xC) = ebx; /* 0x470343E8: mov dword ptr [esi + 0xc], ebx */ 3508 MEM32(esi + 0x10) = ebx; /* 0x470343EB: mov dword ptr [esi + 0x10], ebx */ 3509 MEM32(esi + 0x14) = ebx; /* 0x470343EE: mov dword ptr [esi + 0x14], ebx */ 3510 PUSH32(esp, edi); /* 0x470343F1: push edi */ 3511 MEM32(esi) = 0x470AD368u; /* 0x470343F2: mov dword ptr [esi], 0x470ad368 */ 3512 PUSH32(esp, ebx); /* 0x470343F8: push ebx */ 3513 PUSH32(esp, ebx); /* 0x470343F9: push ebx */ 3514 ecx = esi + 0x40; /* 0x470343FA: lea ecx, [esi + 0x40] */ 3515 MEM8(esp + 0x20) = (uint8_t)(1); /* 0x470343FD: mov byte ptr [esp + 0x20], 1 */ 3516 RECOMP_ICALL(0x47087E50u); /* 0x47034402: call 0x47087e50 */ /* not lifted */ 3517 RECOMP_FLAGS_IN(); 3518 edx = MEM32(esp + 0x20); /* 0x47034407: mov edx, dword ptr [esp + 0x20] */ 3519 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3520 ecx = ecx | 0xFFFFFFFFu; /* 0x4703440B: or ecx, 0xffffffff */ 3521 _cf = 0; 3522 _flag_k = FK_TEST; 3523 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3524 eax = 0; /* 0x4703440E: xor eax, eax */ 3525 _cf = 0; 3526 _flag_k = FK_TEST; 3527 edi = edx; /* 0x47034410: mov edi, edx */ 3528 MEM32(esi) = 0x470AD538u; /* 0x47034412: mov dword ptr [esi], 0x470ad538 */ 3529 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; } /* 0x47034418: repne scasb al, byte ptr es:[edi] */ 3530 ecx = ~ecx; /* 0x4703441A: not ecx */ 3531 /* cmp ecx, 0x28u */ /* 0x4703441C: cmp ecx, 0x28 */ 3532 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 3533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3534 _flag_k = FK_CMP; 3535 edi = POP32_VAL(esp); /* 0x4703441F: pop edi */ 3536 if (CMP_LE(_flag_a, _flag_b)) goto L_47034427; /* 0x47034420: jle 0x47034427 */ 3537 L_47034422: 3538 ecx = 0x27u; /* 0x47034422: mov ecx, 0x27 */ 3539 L_47034427: 3540 PUSH32(esp, ecx); /* 0x47034427: push ecx */ 3541 PUSH32(esp, edx); /* 0x47034428: push edx */ 3542 eax = esi + 0x18; /* 0x47034429: lea eax, [esi + 0x18] */ 3543 PUSH32(esp, eax); /* 0x4703442C: push eax */ 3544 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x4703442D: call dword ptr [0x470ac22c] */ 3545 RECOMP_FLAGS_IN(); 3546 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3547 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3548 esp = esp + 0xCu; /* 0x47034433: add esp, 0xc */ 3549 _flag_k = FK_ADD; 3550 MEM8(esi + 0x3F) = (uint8_t)(LO8(ebx)); /* 0x47034436: mov byte ptr [esi + 0x3f], bl */ 3551 eax = esi; /* 0x47034439: mov eax, esi */ 3552 esi = POP32_VAL(esp); /* 0x4703443B: pop esi */ 3553 ebx = POP32_VAL(esp); /* 0x4703443C: pop ebx */ 3554 ecx = MEM32(esp + 0x4); /* 0x4703443D: mov ecx, dword ptr [esp + 4] */ 3555 MEM32(FS_BASE + (0)) = ecx; /* 0x47034441: mov dword ptr fs:[0], ecx */ 3556 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3557 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3558 esp = esp + 0x10u; /* 0x47034448: add esp, 0x10 */ 3559 _flag_k = FK_ADD; 3560 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703444B: ret 4 */ 3561 L_4703444E: 3562 ecx = MEM32(esp + 0xC); /* 0x4703444E: mov ecx, dword ptr [esp + 0xc] */ 3563 esi = POP32_VAL(esp); /* 0x47034452: pop esi */ 3564 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3565 eax = 0; /* 0x47034453: xor eax, eax */ 3566 _cf = 0; 3567 _flag_k = FK_TEST; 3568 ebx = POP32_VAL(esp); /* 0x47034455: pop ebx */ 3569 MEM32(FS_BASE + (0)) = ecx; /* 0x47034456: mov dword ptr fs:[0], ecx */ 3570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3572 esp = esp + 0x10u; /* 0x4703445D: add esp, 0x10 */ 3573 _flag_k = FK_ADD; 3574 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47034460: ret 4 */ 3575 RECOMP_REGS_OUT(); 3576 } 3577 3578 void sub_47034470(void) { 3579 int _fpu_cmp = 0; 3580 uint32_t _cf = 0; 3581 int _df = 1; 3582 uint32_t _flag_k = FK_NONE; 3583 uint32_t _flag_a = 0, _flag_b = 0; 3584 uint32_t _itail_tgt = 0; 3585 RECOMP_REGS_LOCALS 3586 RECOMP_ENTER(0x47034470u); 3587 3588 L_47034470: 3589 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034470: push -1 */ 3590 PUSH32(esp, 0x470A59D6u); /* 0x47034472: push 0x470a59d6 */ 3591 eax = MEM32(FS_BASE + (0)); /* 0x47034477: mov eax, dword ptr fs:[0] */ 3592 PUSH32(esp, eax); /* 0x4703447D: push eax */ 3593 MEM32(FS_BASE + (0)) = esp; /* 0x4703447E: mov dword ptr fs:[0], esp */ 3594 PUSH32(esp, ecx); /* 0x47034485: push ecx */ 3595 PUSH32(esp, esi); /* 0x47034486: push esi */ 3596 esi = ecx; /* 0x47034487: mov esi, ecx */ 3597 MEM32(esp + 0x4) = esi; /* 0x47034489: mov dword ptr [esp + 4], esi */ 3598 MEM32(esi) = 0x470AD3F8u; /* 0x4703448D: mov dword ptr [esi], 0x470ad3f8 */ 3599 ecx = MEM32(esi + 0xC); /* 0x47034493: mov ecx, dword ptr [esi + 0xc] */ 3600 /* test ecx, ecx */ /* 0x47034496: test ecx, ecx */ 3601 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3602 _cf = 0; 3603 _flag_k = FK_TEST; 3604 eax = esi + 0xC; /* 0x47034498: lea eax, [esi + 0xc] */ 3605 MEM32(esp + 0x10) = 0; /* 0x4703449B: mov dword ptr [esp + 0x10], 0 */ 3606 if (TEST_Z(_flag_a, _flag_b)) goto L_470344B2; /* 0x470344A3: je 0x470344b2 */ 3607 L_470344A5: 3608 PUSH32(esp, eax); /* 0x470344A5: push eax */ 3609 RECOMP_ICALL(0x470942F0u); /* 0x470344A6: call 0x470942f0 */ /* not lifted */ 3610 RECOMP_FLAGS_IN(); 3611 ecx = eax; /* 0x470344AB: mov ecx, eax */ 3612 RECOMP_ICALL(0x47094930u); /* 0x470344AD: call 0x47094930 */ /* not lifted */ 3613 RECOMP_FLAGS_IN(); 3614 L_470344B2: 3615 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3616 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3617 esi = esi + 0x10u; /* 0x470344B2: add esi, 0x10 */ 3618 _flag_k = FK_ADD; 3619 MEM32(esp + 0x4) = esi; /* 0x470344B5: mov dword ptr [esp + 4], esi */ 3620 MEM32(esi) = 0x470AD3F0u; /* 0x470344B9: mov dword ptr [esi], 0x470ad3f0 */ 3621 PUSH32(esp, esi); /* 0x470344BF: push esi */ 3622 MEM32(esp + 0x14) = 1; /* 0x470344C0: mov dword ptr [esp + 0x14], 1 */ 3623 RECOMP_ICALL(0x470562A0u); /* 0x470344C8: call 0x470562a0 */ /* not lifted */ 3624 RECOMP_FLAGS_IN(); 3625 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3626 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3627 esp = esp + 4; /* 0x470344CD: add esp, 4 */ 3628 _flag_k = FK_ADD; 3629 ecx = esi + 0x4; /* 0x470344D0: lea ecx, [esi + 4] */ 3630 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470344D3: mov dword ptr [esp + 0x10], 0xffffffff */ 3631 RECOMP_ICALL(0x47087E30u); /* 0x470344DB: call 0x47087e30 */ /* not lifted */ 3632 RECOMP_FLAGS_IN(); 3633 ecx = MEM32(esp + 0x8); /* 0x470344E0: mov ecx, dword ptr [esp + 8] */ 3634 esi = POP32_VAL(esp); /* 0x470344E4: pop esi */ 3635 MEM32(FS_BASE + (0)) = ecx; /* 0x470344E5: mov dword ptr fs:[0], ecx */ 3636 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3638 esp = esp + 0x10u; /* 0x470344EC: add esp, 0x10 */ 3639 _flag_k = FK_ADD; 3640 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470344EF: ret */ 3641 RECOMP_REGS_OUT(); 3642 } 3643 3644 void sub_470344F0(void) { 3645 int _fpu_cmp = 0; 3646 uint32_t _cf = 0; 3647 int _df = 1; 3648 uint32_t _flag_k = FK_NONE; 3649 uint32_t _flag_a = 0, _flag_b = 0; 3650 uint32_t _itail_tgt = 0; 3651 RECOMP_REGS_LOCALS 3652 RECOMP_ENTER(0x470344F0u); 3653 3654 L_470344F0: 3655 PUSH32(esp, 0xFFFFFFFFu); /* 0x470344F0: push -1 */ 3656 PUSH32(esp, 0x470A59F3u); /* 0x470344F2: push 0x470a59f3 */ 3657 eax = MEM32(FS_BASE + (0)); /* 0x470344F7: mov eax, dword ptr fs:[0] */ 3658 PUSH32(esp, eax); /* 0x470344FD: push eax */ 3659 MEM32(FS_BASE + (0)) = esp; /* 0x470344FE: mov dword ptr fs:[0], esp */ 3660 PUSH32(esp, ecx); /* 0x47034505: push ecx */ 3661 PUSH32(esp, esi); /* 0x47034506: push esi */ 3662 esi = ecx; /* 0x47034507: mov esi, ecx */ 3663 PUSH32(esp, 0); /* 0x47034509: push 0 */ 3664 PUSH32(esp, 0); /* 0x4703450B: push 0 */ 3665 ecx = esi + 0x14; /* 0x4703450D: lea ecx, [esi + 0x14] */ 3666 MEM32(esp + 0xC) = esi; /* 0x47034510: mov dword ptr [esp + 0xc], esi */ 3667 MEM32(esi + 0xC) = 0; /* 0x47034514: mov dword ptr [esi + 0xc], 0 */ 3668 RECOMP_ICALL(0x47087E50u); /* 0x4703451B: call 0x47087e50 */ /* not lifted */ 3669 RECOMP_FLAGS_IN(); 3670 MEM32(esi + 0x30) = 0; /* 0x47034520: mov dword ptr [esi + 0x30], 0 */ 3671 eax = MEM32(0x4710E904); /* 0x47034527: mov eax, dword ptr [0x4710e904] */ 3672 MEM32(esi + 0x34) = eax; /* 0x4703452C: mov dword ptr [esi + 0x34], eax */ 3673 MEM32(esi + 0x38) = esi; /* 0x4703452F: mov dword ptr [esi + 0x38], esi */ 3674 MEM32(esi + 0x3C) = 0; /* 0x47034532: mov dword ptr [esi + 0x3c], 0 */ 3675 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47034539: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 3676 ecx = MEM32(esp + 0x20); /* 0x47034540: mov ecx, dword ptr [esp + 0x20] */ 3677 edx = MEM32(esp + 0x1C); /* 0x47034544: mov edx, dword ptr [esp + 0x1c] */ 3678 eax = MEM32(esp + 0x18); /* 0x47034548: mov eax, dword ptr [esp + 0x18] */ 3679 PUSH32(esp, ecx); /* 0x4703454C: push ecx */ 3680 PUSH32(esp, edx); /* 0x4703454D: push edx */ 3681 PUSH32(esp, eax); /* 0x4703454E: push eax */ 3682 ecx = esi; /* 0x4703454F: mov ecx, esi */ 3683 MEM32(esp + 0x1C) = 3; /* 0x47034551: mov dword ptr [esp + 0x1c], 3 */ 3684 MEM32(esi) = 0x470AD498u; /* 0x47034559: mov dword ptr [esi], 0x470ad498 */ 3685 RECOMP_ICALL(0x470379E0u); /* 0x4703455F: call 0x470379e0 */ /* not lifted */ 3686 RECOMP_FLAGS_IN(); 3687 ecx = MEM32(esp + 0x8); /* 0x47034564: mov ecx, dword ptr [esp + 8] */ 3688 eax = esi; /* 0x47034568: mov eax, esi */ 3689 esi = POP32_VAL(esp); /* 0x4703456A: pop esi */ 3690 MEM32(FS_BASE + (0)) = ecx; /* 0x4703456B: mov dword ptr fs:[0], ecx */ 3691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3693 esp = esp + 0x10u; /* 0x47034572: add esp, 0x10 */ 3694 _flag_k = FK_ADD; 3695 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47034575: ret 0xc */ 3696 RECOMP_REGS_OUT(); 3697 } 3698 3699 void sub_47034580(void) { 3700 int _fpu_cmp = 0; 3701 uint32_t _cf = 0; 3702 int _df = 1; 3703 uint32_t _flag_k = FK_NONE; 3704 uint32_t _flag_a = 0, _flag_b = 0; 3705 uint32_t _itail_tgt = 0; 3706 RECOMP_REGS_LOCALS 3707 RECOMP_ENTER(0x47034580u); 3708 3709 L_47034580: 3710 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034580: push -1 */ 3711 PUSH32(esp, 0x470A5A16u); /* 0x47034582: push 0x470a5a16 */ 3712 eax = MEM32(FS_BASE + (0)); /* 0x47034587: mov eax, dword ptr fs:[0] */ 3713 PUSH32(esp, eax); /* 0x4703458D: push eax */ 3714 MEM32(FS_BASE + (0)) = esp; /* 0x4703458E: mov dword ptr fs:[0], esp */ 3715 PUSH32(esp, ecx); /* 0x47034595: push ecx */ 3716 PUSH32(esp, esi); /* 0x47034596: push esi */ 3717 esi = ecx; /* 0x47034597: mov esi, ecx */ 3718 MEM32(esp + 0x4) = esi; /* 0x47034599: mov dword ptr [esp + 4], esi */ 3719 MEM32(esi) = 0x470AD3F8u; /* 0x4703459D: mov dword ptr [esi], 0x470ad3f8 */ 3720 ecx = MEM32(esi + 0xC); /* 0x470345A3: mov ecx, dword ptr [esi + 0xc] */ 3721 /* test ecx, ecx */ /* 0x470345A6: test ecx, ecx */ 3722 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3723 _cf = 0; 3724 _flag_k = FK_TEST; 3725 eax = esi + 0xC; /* 0x470345A8: lea eax, [esi + 0xc] */ 3726 MEM32(esp + 0x10) = 0; /* 0x470345AB: mov dword ptr [esp + 0x10], 0 */ 3727 if (TEST_Z(_flag_a, _flag_b)) goto L_470345C2; /* 0x470345B3: je 0x470345c2 */ 3728 L_470345B5: 3729 PUSH32(esp, eax); /* 0x470345B5: push eax */ 3730 RECOMP_ICALL(0x470942F0u); /* 0x470345B6: call 0x470942f0 */ /* not lifted */ 3731 RECOMP_FLAGS_IN(); 3732 ecx = eax; /* 0x470345BB: mov ecx, eax */ 3733 RECOMP_ICALL(0x47094930u); /* 0x470345BD: call 0x47094930 */ /* not lifted */ 3734 RECOMP_FLAGS_IN(); 3735 L_470345C2: 3736 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3738 esi = esi + 0x10u; /* 0x470345C2: add esi, 0x10 */ 3739 _flag_k = FK_ADD; 3740 MEM32(esp + 0x4) = esi; /* 0x470345C5: mov dword ptr [esp + 4], esi */ 3741 MEM32(esi) = 0x470AD3F0u; /* 0x470345C9: mov dword ptr [esi], 0x470ad3f0 */ 3742 PUSH32(esp, esi); /* 0x470345CF: push esi */ 3743 MEM32(esp + 0x14) = 1; /* 0x470345D0: mov dword ptr [esp + 0x14], 1 */ 3744 RECOMP_ICALL(0x470562A0u); /* 0x470345D8: call 0x470562a0 */ /* not lifted */ 3745 RECOMP_FLAGS_IN(); 3746 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3747 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3748 esp = esp + 4; /* 0x470345DD: add esp, 4 */ 3749 _flag_k = FK_ADD; 3750 ecx = esi + 0x4; /* 0x470345E0: lea ecx, [esi + 4] */ 3751 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470345E3: mov dword ptr [esp + 0x10], 0xffffffff */ 3752 RECOMP_ICALL(0x47087E30u); /* 0x470345EB: call 0x47087e30 */ /* not lifted */ 3753 RECOMP_FLAGS_IN(); 3754 ecx = MEM32(esp + 0x8); /* 0x470345F0: mov ecx, dword ptr [esp + 8] */ 3755 esi = POP32_VAL(esp); /* 0x470345F4: pop esi */ 3756 MEM32(FS_BASE + (0)) = ecx; /* 0x470345F5: mov dword ptr fs:[0], ecx */ 3757 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3759 esp = esp + 0x10u; /* 0x470345FC: add esp, 0x10 */ 3760 _flag_k = FK_ADD; 3761 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470345FF: ret */ 3762 RECOMP_REGS_OUT(); 3763 } 3764 3765 void sub_47034600(void) { 3766 int _fpu_cmp = 0; 3767 uint32_t _cf = 0; 3768 int _df = 1; 3769 uint32_t _flag_k = FK_NONE; 3770 uint32_t _flag_a = 0, _flag_b = 0; 3771 uint32_t _itail_tgt = 0; 3772 RECOMP_REGS_LOCALS 3773 RECOMP_ENTER(0x47034600u); 3774 3775 L_47034600: 3776 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034600: push -1 */ 3777 PUSH32(esp, 0x470A5A33u); /* 0x47034602: push 0x470a5a33 */ 3778 eax = MEM32(FS_BASE + (0)); /* 0x47034607: mov eax, dword ptr fs:[0] */ 3779 PUSH32(esp, eax); /* 0x4703460D: push eax */ 3780 MEM32(FS_BASE + (0)) = esp; /* 0x4703460E: mov dword ptr fs:[0], esp */ 3781 PUSH32(esp, ecx); /* 0x47034615: push ecx */ 3782 PUSH32(esp, ebx); /* 0x47034616: push ebx */ 3783 PUSH32(esp, esi); /* 0x47034617: push esi */ 3784 PUSH32(esp, 0x60u); /* 0x47034618: push 0x60 */ 3785 RECOMP_ICALL(0x470A33F2u); /* 0x4703461A: call 0x470a33f2 */ /* not lifted */ 3786 RECOMP_FLAGS_IN(); 3787 esi = eax; /* 0x4703461F: mov esi, eax */ 3788 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3790 esp = esp + 4; /* 0x47034621: add esp, 4 */ 3791 _flag_k = FK_ADD; 3792 MEM32(esp + 0x8) = esi; /* 0x47034624: mov dword ptr [esp + 8], esi */ 3793 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3794 ebx = 0; /* 0x47034628: xor ebx, ebx */ 3795 _cf = 0; 3796 _flag_k = FK_TEST; 3797 /* cmp esi, ebx */ /* 0x4703462A: cmp esi, ebx */ 3798 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3800 _flag_k = FK_CMP; 3801 MEM32(esp + 0x14) = ebx; /* 0x4703462C: mov dword ptr [esp + 0x14], ebx */ 3802 if (CMP_EQ(_flag_a, _flag_b)) goto L_470346A1; /* 0x47034630: je 0x470346a1 */ 3803 L_47034632: 3804 MEM32(esi + 0x4) = ebx; /* 0x47034632: mov dword ptr [esi + 4], ebx */ 3805 MEM32(esi + 0x8) = ebx; /* 0x47034635: mov dword ptr [esi + 8], ebx */ 3806 MEM32(esi + 0xC) = ebx; /* 0x47034638: mov dword ptr [esi + 0xc], ebx */ 3807 MEM32(esi + 0x10) = ebx; /* 0x4703463B: mov dword ptr [esi + 0x10], ebx */ 3808 MEM32(esi + 0x14) = ebx; /* 0x4703463E: mov dword ptr [esi + 0x14], ebx */ 3809 PUSH32(esp, edi); /* 0x47034641: push edi */ 3810 MEM32(esi) = 0x470AD368u; /* 0x47034642: mov dword ptr [esi], 0x470ad368 */ 3811 PUSH32(esp, ebx); /* 0x47034648: push ebx */ 3812 PUSH32(esp, ebx); /* 0x47034649: push ebx */ 3813 ecx = esi + 0x44; /* 0x4703464A: lea ecx, [esi + 0x44] */ 3814 MEM8(esp + 0x20) = (uint8_t)(1); /* 0x4703464D: mov byte ptr [esp + 0x20], 1 */ 3815 MEM32(esi + 0x40) = ebx; /* 0x47034652: mov dword ptr [esi + 0x40], ebx */ 3816 RECOMP_ICALL(0x47087E50u); /* 0x47034655: call 0x47087e50 */ /* not lifted */ 3817 RECOMP_FLAGS_IN(); 3818 edx = MEM32(esp + 0x20); /* 0x4703465A: mov edx, dword ptr [esp + 0x20] */ 3819 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3820 ecx = ecx | 0xFFFFFFFFu; /* 0x4703465E: or ecx, 0xffffffff */ 3821 _cf = 0; 3822 _flag_k = FK_TEST; 3823 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3824 eax = 0; /* 0x47034661: xor eax, eax */ 3825 _cf = 0; 3826 _flag_k = FK_TEST; 3827 edi = edx; /* 0x47034663: mov edi, edx */ 3828 MEM32(esi) = 0x470AD564u; /* 0x47034665: mov dword ptr [esi], 0x470ad564 */ 3829 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; } /* 0x4703466B: repne scasb al, byte ptr es:[edi] */ 3830 ecx = ~ecx; /* 0x4703466D: not ecx */ 3831 /* cmp ecx, 0x28u */ /* 0x4703466F: cmp ecx, 0x28 */ 3832 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 3833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3834 _flag_k = FK_CMP; 3835 edi = POP32_VAL(esp); /* 0x47034672: pop edi */ 3836 if (CMP_LE(_flag_a, _flag_b)) goto L_4703467A; /* 0x47034673: jle 0x4703467a */ 3837 L_47034675: 3838 ecx = 0x28u; /* 0x47034675: mov ecx, 0x28 */ 3839 L_4703467A: 3840 PUSH32(esp, ecx); /* 0x4703467A: push ecx */ 3841 PUSH32(esp, edx); /* 0x4703467B: push edx */ 3842 eax = esi + 0x18; /* 0x4703467C: lea eax, [esi + 0x18] */ 3843 PUSH32(esp, eax); /* 0x4703467F: push eax */ 3844 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47034680: call dword ptr [0x470ac22c] */ 3845 RECOMP_FLAGS_IN(); 3846 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3848 esp = esp + 0xCu; /* 0x47034686: add esp, 0xc */ 3849 _flag_k = FK_ADD; 3850 MEM8(esi + 0x3F) = (uint8_t)(LO8(ebx)); /* 0x47034689: mov byte ptr [esi + 0x3f], bl */ 3851 eax = esi; /* 0x4703468C: mov eax, esi */ 3852 esi = POP32_VAL(esp); /* 0x4703468E: pop esi */ 3853 ebx = POP32_VAL(esp); /* 0x4703468F: pop ebx */ 3854 ecx = MEM32(esp + 0x4); /* 0x47034690: mov ecx, dword ptr [esp + 4] */ 3855 MEM32(FS_BASE + (0)) = ecx; /* 0x47034694: mov dword ptr fs:[0], ecx */ 3856 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3858 esp = esp + 0x10u; /* 0x4703469B: add esp, 0x10 */ 3859 _flag_k = FK_ADD; 3860 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703469E: ret 4 */ 3861 L_470346A1: 3862 ecx = MEM32(esp + 0xC); /* 0x470346A1: mov ecx, dword ptr [esp + 0xc] */ 3863 esi = POP32_VAL(esp); /* 0x470346A5: pop esi */ 3864 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3865 eax = 0; /* 0x470346A6: xor eax, eax */ 3866 _cf = 0; 3867 _flag_k = FK_TEST; 3868 ebx = POP32_VAL(esp); /* 0x470346A8: pop ebx */ 3869 MEM32(FS_BASE + (0)) = ecx; /* 0x470346A9: mov dword ptr fs:[0], ecx */ 3870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3872 esp = esp + 0x10u; /* 0x470346B0: add esp, 0x10 */ 3873 _flag_k = FK_ADD; 3874 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470346B3: ret 4 */ 3875 RECOMP_REGS_OUT(); 3876 } 3877 3878 void sub_470346C0(void) { 3879 int _fpu_cmp = 0; 3880 uint32_t _cf = 0; 3881 int _df = 1; 3882 uint32_t _flag_k = FK_NONE; 3883 uint32_t _flag_a = 0, _flag_b = 0; 3884 uint32_t _itail_tgt = 0; 3885 RECOMP_REGS_LOCALS 3886 RECOMP_ENTER(0x470346C0u); 3887 3888 L_470346C0: 3889 PUSH32(esp, 0xFFFFFFFFu); /* 0x470346C0: push -1 */ 3890 PUSH32(esp, 0x470A5A5Eu); /* 0x470346C2: push 0x470a5a5e */ 3891 eax = MEM32(FS_BASE + (0)); /* 0x470346C7: mov eax, dword ptr fs:[0] */ 3892 PUSH32(esp, eax); /* 0x470346CD: push eax */ 3893 MEM32(FS_BASE + (0)) = esp; /* 0x470346CE: mov dword ptr fs:[0], esp */ 3894 PUSH32(esp, ecx); /* 0x470346D5: push ecx */ 3895 PUSH32(esp, esi); /* 0x470346D6: push esi */ 3896 PUSH32(esp, edi); /* 0x470346D7: push edi */ 3897 PUSH32(esp, 0x40u); /* 0x470346D8: push 0x40 */ 3898 edi = ecx; /* 0x470346DA: mov edi, ecx */ 3899 RECOMP_ICALL(0x470A33F2u); /* 0x470346DC: call 0x470a33f2 */ /* not lifted */ 3900 RECOMP_FLAGS_IN(); 3901 esi = eax; /* 0x470346E1: mov esi, eax */ 3902 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3904 esp = esp + 4; /* 0x470346E3: add esp, 4 */ 3905 _flag_k = FK_ADD; 3906 MEM32(esp + 0x8) = esi; /* 0x470346E6: mov dword ptr [esp + 8], esi */ 3907 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3908 eax = 0; /* 0x470346EA: xor eax, eax */ 3909 _cf = 0; 3910 _flag_k = FK_TEST; 3911 /* cmp esi, eax */ /* 0x470346EC: cmp esi, eax */ 3912 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3914 _flag_k = FK_CMP; 3915 MEM32(esp + 0x14) = eax; /* 0x470346EE: mov dword ptr [esp + 0x14], eax */ 3916 if (CMP_EQ(_flag_a, _flag_b)) goto L_47034743; /* 0x470346F2: je 0x47034743 */ 3917 L_470346F4: 3918 PUSH32(esp, ebx); /* 0x470346F4: push ebx */ 3919 ebx = MEM32(edi + 0x8); /* 0x470346F5: mov ebx, dword ptr [edi + 8] */ 3920 PUSH32(esp, ebp); /* 0x470346F8: push ebp */ 3921 ebp = MEM32(edi + 0x4); /* 0x470346F9: mov ebp, dword ptr [edi + 4] */ 3922 edi = MEM32(edi + 0xC); /* 0x470346FC: mov edi, dword ptr [edi + 0xc] */ 3923 PUSH32(esp, eax); /* 0x470346FF: push eax */ 3924 PUSH32(esp, eax); /* 0x47034700: push eax */ 3925 ecx = esi + 0x14; /* 0x47034701: lea ecx, [esi + 0x14] */ 3926 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u); 3927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3928 edi = edi + 0x18u; /* 0x47034704: add edi, 0x18 */ 3929 _flag_k = FK_ADD; 3930 MEM32(esi + 0xC) = eax; /* 0x47034707: mov dword ptr [esi + 0xc], eax */ 3931 RECOMP_ICALL(0x47087E50u); /* 0x4703470A: call 0x47087e50 */ /* not lifted */ 3932 RECOMP_FLAGS_IN(); 3933 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3934 eax = 0; /* 0x4703470F: xor eax, eax */ 3935 _cf = 0; 3936 _flag_k = FK_TEST; 3937 MEM32(esi + 0x30) = eax; /* 0x47034711: mov dword ptr [esi + 0x30], eax */ 3938 ecx = MEM32(0x4710E904); /* 0x47034714: mov ecx, dword ptr [0x4710e904] */ 3939 MEM32(esi + 0x34) = ecx; /* 0x4703471A: mov dword ptr [esi + 0x34], ecx */ 3940 MEM32(esi + 0x38) = esi; /* 0x4703471D: mov dword ptr [esi + 0x38], esi */ 3941 MEM32(esi + 0x3C) = eax; /* 0x47034720: mov dword ptr [esi + 0x3c], eax */ 3942 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47034723: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 3943 PUSH32(esp, ebx); /* 0x4703472A: push ebx */ 3944 PUSH32(esp, ebp); /* 0x4703472B: push ebp */ 3945 PUSH32(esp, edi); /* 0x4703472C: push edi */ 3946 ecx = esi; /* 0x4703472D: mov ecx, esi */ 3947 MEM8(esp + 0x28) = (uint8_t)(4); /* 0x4703472F: mov byte ptr [esp + 0x28], 4 */ 3948 MEM32(esi) = 0x470AD498u; /* 0x47034734: mov dword ptr [esi], 0x470ad498 */ 3949 RECOMP_ICALL(0x470379E0u); /* 0x4703473A: call 0x470379e0 */ /* not lifted */ 3950 RECOMP_FLAGS_IN(); 3951 ebp = POP32_VAL(esp); /* 0x4703473F: pop ebp */ 3952 eax = esi; /* 0x47034740: mov eax, esi */ 3953 ebx = POP32_VAL(esp); /* 0x47034742: pop ebx */ 3954 L_47034743: 3955 ecx = MEM32(esp + 0xC); /* 0x47034743: mov ecx, dword ptr [esp + 0xc] */ 3956 edi = POP32_VAL(esp); /* 0x47034747: pop edi */ 3957 esi = POP32_VAL(esp); /* 0x47034748: pop esi */ 3958 MEM32(FS_BASE + (0)) = ecx; /* 0x47034749: mov dword ptr fs:[0], ecx */ 3959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3961 esp = esp + 0x10u; /* 0x47034750: add esp, 0x10 */ 3962 _flag_k = FK_ADD; 3963 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034753: ret */ 3964 RECOMP_REGS_OUT(); 3965 } 3966 3967 void sub_47034760(void) { 3968 int _fpu_cmp = 0; 3969 uint32_t _cf = 0; 3970 int _df = 1; 3971 uint32_t _flag_k = FK_NONE; 3972 uint32_t _flag_a = 0, _flag_b = 0; 3973 uint32_t _itail_tgt = 0; 3974 RECOMP_REGS_LOCALS 3975 RECOMP_ENTER(0x47034760u); 3976 3977 L_47034760: 3978 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034760: push -1 */ 3979 PUSH32(esp, 0x470A5A83u); /* 0x47034762: push 0x470a5a83 */ 3980 eax = MEM32(FS_BASE + (0)); /* 0x47034767: mov eax, dword ptr fs:[0] */ 3981 PUSH32(esp, eax); /* 0x4703476D: push eax */ 3982 MEM32(FS_BASE + (0)) = esp; /* 0x4703476E: mov dword ptr fs:[0], esp */ 3983 PUSH32(esp, ecx); /* 0x47034775: push ecx */ 3984 PUSH32(esp, esi); /* 0x47034776: push esi */ 3985 esi = ecx; /* 0x47034777: mov esi, ecx */ 3986 PUSH32(esp, 0); /* 0x47034779: push 0 */ 3987 PUSH32(esp, 0); /* 0x4703477B: push 0 */ 3988 ecx = esi + 0x14; /* 0x4703477D: lea ecx, [esi + 0x14] */ 3989 MEM32(esp + 0xC) = esi; /* 0x47034780: mov dword ptr [esp + 0xc], esi */ 3990 MEM32(esi + 0xC) = 0; /* 0x47034784: mov dword ptr [esi + 0xc], 0 */ 3991 RECOMP_ICALL(0x47087E50u); /* 0x4703478B: call 0x47087e50 */ /* not lifted */ 3992 RECOMP_FLAGS_IN(); 3993 MEM32(esi + 0x30) = 0; /* 0x47034790: mov dword ptr [esi + 0x30], 0 */ 3994 eax = MEM32(0x4710E904); /* 0x47034797: mov eax, dword ptr [0x4710e904] */ 3995 MEM32(esi + 0x34) = eax; /* 0x4703479C: mov dword ptr [esi + 0x34], eax */ 3996 MEM32(esi + 0x38) = esi; /* 0x4703479F: mov dword ptr [esi + 0x38], esi */ 3997 MEM32(esi + 0x3C) = 0; /* 0x470347A2: mov dword ptr [esi + 0x3c], 0 */ 3998 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x470347A9: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 3999 ecx = MEM32(esp + 0x20); /* 0x470347B0: mov ecx, dword ptr [esp + 0x20] */ 4000 edx = MEM32(esp + 0x1C); /* 0x470347B4: mov edx, dword ptr [esp + 0x1c] */ 4001 eax = MEM32(esp + 0x18); /* 0x470347B8: mov eax, dword ptr [esp + 0x18] */ 4002 PUSH32(esp, ecx); /* 0x470347BC: push ecx */ 4003 PUSH32(esp, edx); /* 0x470347BD: push edx */ 4004 PUSH32(esp, eax); /* 0x470347BE: push eax */ 4005 ecx = esi; /* 0x470347BF: mov ecx, esi */ 4006 MEM32(esp + 0x1C) = 3; /* 0x470347C1: mov dword ptr [esp + 0x1c], 3 */ 4007 MEM32(esi) = 0x470AD4E8u; /* 0x470347C9: mov dword ptr [esi], 0x470ad4e8 */ 4008 RECOMP_ICALL(0x470379E0u); /* 0x470347CF: call 0x470379e0 */ /* not lifted */ 4009 RECOMP_FLAGS_IN(); 4010 ecx = MEM32(esp + 0x8); /* 0x470347D4: mov ecx, dword ptr [esp + 8] */ 4011 eax = esi; /* 0x470347D8: mov eax, esi */ 4012 esi = POP32_VAL(esp); /* 0x470347DA: pop esi */ 4013 MEM32(FS_BASE + (0)) = ecx; /* 0x470347DB: mov dword ptr fs:[0], ecx */ 4014 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4016 esp = esp + 0x10u; /* 0x470347E2: add esp, 0x10 */ 4017 _flag_k = FK_ADD; 4018 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470347E5: ret 0xc */ 4019 RECOMP_REGS_OUT(); 4020 } 4021 4022 void sub_470347F0(void) { 4023 int _fpu_cmp = 0; 4024 uint32_t _cf = 0; 4025 int _df = 1; 4026 uint32_t _flag_k = FK_NONE; 4027 uint32_t _flag_a = 0, _flag_b = 0; 4028 uint32_t _itail_tgt = 0; 4029 RECOMP_REGS_LOCALS 4030 RECOMP_ENTER(0x470347F0u); 4031 4032 L_470347F0: 4033 PUSH32(esp, 0xFFFFFFFFu); /* 0x470347F0: push -1 */ 4034 PUSH32(esp, 0x470A5AA6u); /* 0x470347F2: push 0x470a5aa6 */ 4035 eax = MEM32(FS_BASE + (0)); /* 0x470347F7: mov eax, dword ptr fs:[0] */ 4036 PUSH32(esp, eax); /* 0x470347FD: push eax */ 4037 MEM32(FS_BASE + (0)) = esp; /* 0x470347FE: mov dword ptr fs:[0], esp */ 4038 PUSH32(esp, ecx); /* 0x47034805: push ecx */ 4039 PUSH32(esp, esi); /* 0x47034806: push esi */ 4040 esi = ecx; /* 0x47034807: mov esi, ecx */ 4041 MEM32(esp + 0x4) = esi; /* 0x47034809: mov dword ptr [esp + 4], esi */ 4042 MEM32(esi) = 0x470AD3F8u; /* 0x4703480D: mov dword ptr [esi], 0x470ad3f8 */ 4043 ecx = MEM32(esi + 0xC); /* 0x47034813: mov ecx, dword ptr [esi + 0xc] */ 4044 /* test ecx, ecx */ /* 0x47034816: test ecx, ecx */ 4045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4046 _cf = 0; 4047 _flag_k = FK_TEST; 4048 eax = esi + 0xC; /* 0x47034818: lea eax, [esi + 0xc] */ 4049 MEM32(esp + 0x10) = 0; /* 0x4703481B: mov dword ptr [esp + 0x10], 0 */ 4050 if (TEST_Z(_flag_a, _flag_b)) goto L_47034832; /* 0x47034823: je 0x47034832 */ 4051 L_47034825: 4052 PUSH32(esp, eax); /* 0x47034825: push eax */ 4053 RECOMP_ICALL(0x470942F0u); /* 0x47034826: call 0x470942f0 */ /* not lifted */ 4054 RECOMP_FLAGS_IN(); 4055 ecx = eax; /* 0x4703482B: mov ecx, eax */ 4056 RECOMP_ICALL(0x47094930u); /* 0x4703482D: call 0x47094930 */ /* not lifted */ 4057 RECOMP_FLAGS_IN(); 4058 L_47034832: 4059 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 4060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4061 esi = esi + 0x10u; /* 0x47034832: add esi, 0x10 */ 4062 _flag_k = FK_ADD; 4063 MEM32(esp + 0x4) = esi; /* 0x47034835: mov dword ptr [esp + 4], esi */ 4064 MEM32(esi) = 0x470AD3F0u; /* 0x47034839: mov dword ptr [esi], 0x470ad3f0 */ 4065 PUSH32(esp, esi); /* 0x4703483F: push esi */ 4066 MEM32(esp + 0x14) = 1; /* 0x47034840: mov dword ptr [esp + 0x14], 1 */ 4067 RECOMP_ICALL(0x470562A0u); /* 0x47034848: call 0x470562a0 */ /* not lifted */ 4068 RECOMP_FLAGS_IN(); 4069 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4070 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4071 esp = esp + 4; /* 0x4703484D: add esp, 4 */ 4072 _flag_k = FK_ADD; 4073 ecx = esi + 0x4; /* 0x47034850: lea ecx, [esi + 4] */ 4074 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47034853: mov dword ptr [esp + 0x10], 0xffffffff */ 4075 RECOMP_ICALL(0x47087E30u); /* 0x4703485B: call 0x47087e30 */ /* not lifted */ 4076 RECOMP_FLAGS_IN(); 4077 ecx = MEM32(esp + 0x8); /* 0x47034860: mov ecx, dword ptr [esp + 8] */ 4078 esi = POP32_VAL(esp); /* 0x47034864: pop esi */ 4079 MEM32(FS_BASE + (0)) = ecx; /* 0x47034865: mov dword ptr fs:[0], ecx */ 4080 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4081 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4082 esp = esp + 0x10u; /* 0x4703486C: add esp, 0x10 */ 4083 _flag_k = FK_ADD; 4084 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4703486F: ret */ 4085 RECOMP_REGS_OUT(); 4086 } 4087 4088 void sub_47034870(void) { 4089 int _fpu_cmp = 0; 4090 uint32_t _cf = 0; 4091 int _df = 1; 4092 uint32_t _flag_k = FK_NONE; 4093 uint32_t _flag_a = 0, _flag_b = 0; 4094 uint32_t _itail_tgt = 0; 4095 RECOMP_REGS_LOCALS 4096 RECOMP_ENTER(0x47034870u); 4097 4098 L_47034870: 4099 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034870: push -1 */ 4100 PUSH32(esp, 0x470A5AC3u); /* 0x47034872: push 0x470a5ac3 */ 4101 eax = MEM32(FS_BASE + (0)); /* 0x47034877: mov eax, dword ptr fs:[0] */ 4102 PUSH32(esp, eax); /* 0x4703487D: push eax */ 4103 MEM32(FS_BASE + (0)) = esp; /* 0x4703487E: mov dword ptr fs:[0], esp */ 4104 PUSH32(esp, ecx); /* 0x47034885: push ecx */ 4105 PUSH32(esp, ebx); /* 0x47034886: push ebx */ 4106 PUSH32(esp, esi); /* 0x47034887: push esi */ 4107 PUSH32(esp, 0x60u); /* 0x47034888: push 0x60 */ 4108 RECOMP_ICALL(0x470A33F2u); /* 0x4703488A: call 0x470a33f2 */ /* not lifted */ 4109 RECOMP_FLAGS_IN(); 4110 esi = eax; /* 0x4703488F: mov esi, eax */ 4111 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4113 esp = esp + 4; /* 0x47034891: add esp, 4 */ 4114 _flag_k = FK_ADD; 4115 MEM32(esp + 0x8) = esi; /* 0x47034894: mov dword ptr [esp + 8], esi */ 4116 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4117 ebx = 0; /* 0x47034898: xor ebx, ebx */ 4118 _cf = 0; 4119 _flag_k = FK_TEST; 4120 /* cmp esi, ebx */ /* 0x4703489A: cmp esi, ebx */ 4121 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4123 _flag_k = FK_CMP; 4124 MEM32(esp + 0x14) = ebx; /* 0x4703489C: mov dword ptr [esp + 0x14], ebx */ 4125 if (CMP_EQ(_flag_a, _flag_b)) goto L_47034911; /* 0x470348A0: je 0x47034911 */ 4126 L_470348A2: 4127 MEM32(esi + 0x4) = ebx; /* 0x470348A2: mov dword ptr [esi + 4], ebx */ 4128 MEM32(esi + 0x8) = ebx; /* 0x470348A5: mov dword ptr [esi + 8], ebx */ 4129 MEM32(esi + 0xC) = ebx; /* 0x470348A8: mov dword ptr [esi + 0xc], ebx */ 4130 MEM32(esi + 0x10) = ebx; /* 0x470348AB: mov dword ptr [esi + 0x10], ebx */ 4131 MEM32(esi + 0x14) = ebx; /* 0x470348AE: mov dword ptr [esi + 0x14], ebx */ 4132 PUSH32(esp, edi); /* 0x470348B1: push edi */ 4133 MEM32(esi) = 0x470AD368u; /* 0x470348B2: mov dword ptr [esi], 0x470ad368 */ 4134 PUSH32(esp, ebx); /* 0x470348B8: push ebx */ 4135 PUSH32(esp, ebx); /* 0x470348B9: push ebx */ 4136 ecx = esi + 0x44; /* 0x470348BA: lea ecx, [esi + 0x44] */ 4137 MEM8(esp + 0x20) = (uint8_t)(1); /* 0x470348BD: mov byte ptr [esp + 0x20], 1 */ 4138 MEM32(esi + 0x40) = ebx; /* 0x470348C2: mov dword ptr [esi + 0x40], ebx */ 4139 RECOMP_ICALL(0x47087E50u); /* 0x470348C5: call 0x47087e50 */ /* not lifted */ 4140 RECOMP_FLAGS_IN(); 4141 edx = MEM32(esp + 0x20); /* 0x470348CA: mov edx, dword ptr [esp + 0x20] */ 4142 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4143 ecx = ecx | 0xFFFFFFFFu; /* 0x470348CE: or ecx, 0xffffffff */ 4144 _cf = 0; 4145 _flag_k = FK_TEST; 4146 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4147 eax = 0; /* 0x470348D1: xor eax, eax */ 4148 _cf = 0; 4149 _flag_k = FK_TEST; 4150 edi = edx; /* 0x470348D3: mov edi, edx */ 4151 MEM32(esi) = 0x470AD564u; /* 0x470348D5: mov dword ptr [esi], 0x470ad564 */ 4152 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; } /* 0x470348DB: repne scasb al, byte ptr es:[edi] */ 4153 ecx = ~ecx; /* 0x470348DD: not ecx */ 4154 /* cmp ecx, 0x28u */ /* 0x470348DF: cmp ecx, 0x28 */ 4155 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 4156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4157 _flag_k = FK_CMP; 4158 edi = POP32_VAL(esp); /* 0x470348E2: pop edi */ 4159 if (CMP_LE(_flag_a, _flag_b)) goto L_470348EA; /* 0x470348E3: jle 0x470348ea */ 4160 L_470348E5: 4161 ecx = 0x28u; /* 0x470348E5: mov ecx, 0x28 */ 4162 L_470348EA: 4163 PUSH32(esp, ecx); /* 0x470348EA: push ecx */ 4164 PUSH32(esp, edx); /* 0x470348EB: push edx */ 4165 eax = esi + 0x18; /* 0x470348EC: lea eax, [esi + 0x18] */ 4166 PUSH32(esp, eax); /* 0x470348EF: push eax */ 4167 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470348F0: call dword ptr [0x470ac22c] */ 4168 RECOMP_FLAGS_IN(); 4169 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4170 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4171 esp = esp + 0xCu; /* 0x470348F6: add esp, 0xc */ 4172 _flag_k = FK_ADD; 4173 MEM8(esi + 0x3F) = (uint8_t)(LO8(ebx)); /* 0x470348F9: mov byte ptr [esi + 0x3f], bl */ 4174 eax = esi; /* 0x470348FC: mov eax, esi */ 4175 esi = POP32_VAL(esp); /* 0x470348FE: pop esi */ 4176 ebx = POP32_VAL(esp); /* 0x470348FF: pop ebx */ 4177 ecx = MEM32(esp + 0x4); /* 0x47034900: mov ecx, dword ptr [esp + 4] */ 4178 MEM32(FS_BASE + (0)) = ecx; /* 0x47034904: mov dword ptr fs:[0], ecx */ 4179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4181 esp = esp + 0x10u; /* 0x4703490B: add esp, 0x10 */ 4182 _flag_k = FK_ADD; 4183 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4703490E: ret 4 */ 4184 L_47034911: 4185 ecx = MEM32(esp + 0xC); /* 0x47034911: mov ecx, dword ptr [esp + 0xc] */ 4186 esi = POP32_VAL(esp); /* 0x47034915: pop esi */ 4187 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4188 eax = 0; /* 0x47034916: xor eax, eax */ 4189 _cf = 0; 4190 _flag_k = FK_TEST; 4191 ebx = POP32_VAL(esp); /* 0x47034918: pop ebx */ 4192 MEM32(FS_BASE + (0)) = ecx; /* 0x47034919: mov dword ptr fs:[0], ecx */ 4193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4195 esp = esp + 0x10u; /* 0x47034920: add esp, 0x10 */ 4196 _flag_k = FK_ADD; 4197 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47034923: ret 4 */ 4198 RECOMP_REGS_OUT(); 4199 } 4200 4201 void sub_47034930(void) { 4202 int _fpu_cmp = 0; 4203 uint32_t _cf = 0; 4204 int _df = 1; 4205 uint32_t _flag_k = FK_NONE; 4206 uint32_t _flag_a = 0, _flag_b = 0; 4207 uint32_t _itail_tgt = 0; 4208 RECOMP_REGS_LOCALS 4209 RECOMP_ENTER(0x47034930u); 4210 4211 L_47034930: 4212 PUSH32(esp, 0xFFFFFFFFu); /* 0x47034930: push -1 */ 4213 PUSH32(esp, 0x470A5AEEu); /* 0x47034932: push 0x470a5aee */ 4214 eax = MEM32(FS_BASE + (0)); /* 0x47034937: mov eax, dword ptr fs:[0] */ 4215 PUSH32(esp, eax); /* 0x4703493D: push eax */ 4216 MEM32(FS_BASE + (0)) = esp; /* 0x4703493E: mov dword ptr fs:[0], esp */ 4217 PUSH32(esp, ecx); /* 0x47034945: push ecx */ 4218 PUSH32(esp, esi); /* 0x47034946: push esi */ 4219 PUSH32(esp, edi); /* 0x47034947: push edi */ 4220 PUSH32(esp, 0x40u); /* 0x47034948: push 0x40 */ 4221 edi = ecx; /* 0x4703494A: mov edi, ecx */ 4222 RECOMP_ICALL(0x470A33F2u); /* 0x4703494C: call 0x470a33f2 */ /* not lifted */ 4223 RECOMP_FLAGS_IN(); 4224 esi = eax; /* 0x47034951: mov esi, eax */ 4225 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4227 esp = esp + 4; /* 0x47034953: add esp, 4 */ 4228 _flag_k = FK_ADD; 4229 MEM32(esp + 0x8) = esi; /* 0x47034956: mov dword ptr [esp + 8], esi */ 4230 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4231 eax = 0; /* 0x4703495A: xor eax, eax */ 4232 _cf = 0; 4233 _flag_k = FK_TEST; 4234 /* cmp esi, eax */ /* 0x4703495C: cmp esi, eax */ 4235 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4237 _flag_k = FK_CMP; 4238 MEM32(esp + 0x14) = eax; /* 0x4703495E: mov dword ptr [esp + 0x14], eax */ 4239 if (CMP_EQ(_flag_a, _flag_b)) goto L_470349B3; /* 0x47034962: je 0x470349b3 */ 4240 L_47034964: 4241 PUSH32(esp, ebx); /* 0x47034964: push ebx */ 4242 ebx = MEM32(edi + 0x8); /* 0x47034965: mov ebx, dword ptr [edi + 8] */ 4243 PUSH32(esp, ebp); /* 0x47034968: push ebp */ 4244 ebp = MEM32(edi + 0x4); /* 0x47034969: mov ebp, dword ptr [edi + 4] */ 4245 edi = MEM32(edi + 0xC); /* 0x4703496C: mov edi, dword ptr [edi + 0xc] */ 4246 PUSH32(esp, eax); /* 0x4703496F: push eax */ 4247 PUSH32(esp, eax); /* 0x47034970: push eax */ 4248 ecx = esi + 0x14; /* 0x47034971: lea ecx, [esi + 0x14] */ 4249 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18u); 4250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4251 edi = edi + 0x18u; /* 0x47034974: add edi, 0x18 */ 4252 _flag_k = FK_ADD; 4253 MEM32(esi + 0xC) = eax; /* 0x47034977: mov dword ptr [esi + 0xc], eax */ 4254 RECOMP_ICALL(0x47087E50u); /* 0x4703497A: call 0x47087e50 */ /* not lifted */ 4255 RECOMP_FLAGS_IN(); 4256 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4257 eax = 0; /* 0x4703497F: xor eax, eax */ 4258 _cf = 0; 4259 _flag_k = FK_TEST; 4260 MEM32(esi + 0x30) = eax; /* 0x47034981: mov dword ptr [esi + 0x30], eax */ 4261 ecx = MEM32(0x4710E904); /* 0x47034984: mov ecx, dword ptr [0x4710e904] */ 4262 MEM32(esi + 0x34) = ecx; /* 0x4703498A: mov dword ptr [esi + 0x34], ecx */ 4263 MEM32(esi + 0x38) = esi; /* 0x4703498D: mov dword ptr [esi + 0x38], esi */ 4264 MEM32(esi + 0x3C) = eax; /* 0x47034990: mov dword ptr [esi + 0x3c], eax */ 4265 MEM32(esi + 0x10) = 0x470AD3E8u; /* 0x47034993: mov dword ptr [esi + 0x10], 0x470ad3e8 */ 4266 PUSH32(esp, ebx); /* 0x4703499A: push ebx */ 4267 PUSH32(esp, ebp); /* 0x4703499B: push ebp */ 4268 PUSH32(esp, edi); /* 0x4703499C: push edi */ 4269 ecx = esi; /* 0x4703499D: mov ecx, esi */ 4270 MEM8(esp + 0x28) = (uint8_t)(4); /* 0x4703499F: mov byte ptr [esp + 0x28], 4 */ 4271 MEM32(esi) = 0x470AD4E8u; /* 0x470349A4: mov dword ptr [esi], 0x470ad4e8 */ 4272 RECOMP_ICALL(0x470379E0u); /* 0x470349AA: call 0x470379e0 */ /* not lifted */ 4273 RECOMP_FLAGS_IN(); 4274 ebp = POP32_VAL(esp); /* 0x470349AF: pop ebp */ 4275 eax = esi; /* 0x470349B0: mov eax, esi */ 4276 ebx = POP32_VAL(esp); /* 0x470349B2: pop ebx */ 4277 L_470349B3: 4278 ecx = MEM32(esp + 0xC); /* 0x470349B3: mov ecx, dword ptr [esp + 0xc] */ 4279 edi = POP32_VAL(esp); /* 0x470349B7: pop edi */ 4280 esi = POP32_VAL(esp); /* 0x470349B8: pop esi */ 4281 MEM32(FS_BASE + (0)) = ecx; /* 0x470349B9: mov dword ptr fs:[0], ecx */ 4282 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4284 esp = esp + 0x10u; /* 0x470349C0: add esp, 0x10 */ 4285 _flag_k = FK_ADD; 4286 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470349C3: ret */ 4287 RECOMP_REGS_OUT(); 4288 } 4289 4290 void sub_470349D0(void) { 4291 int _fpu_cmp = 0; 4292 uint32_t _cf = 0; 4293 int _df = 1; 4294 uint32_t _flag_k = FK_NONE; 4295 uint32_t _flag_a = 0, _flag_b = 0; 4296 uint32_t _itail_tgt = 0; 4297 RECOMP_REGS_LOCALS 4298 RECOMP_ENTER(0x470349D0u); 4299 4300 L_470349D0: 4301 eax = MEM32(esp + 0x4); /* 0x470349D0: mov eax, dword ptr [esp + 4] */ 4302 PUSH32(esp, esi); /* 0x470349D4: push esi */ 4303 esi = ecx; /* 0x470349D5: mov esi, ecx */ 4304 /* cmp eax, esi */ /* 0x470349D7: cmp eax, esi */ 4305 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4307 _flag_k = FK_CMP; 4308 if (CMP_EQ(_flag_a, _flag_b)) goto L_47034A0D; /* 0x470349D9: je 0x47034a0d */ 4309 L_470349DB: 4310 edx = eax + 0x4; /* 0x470349DB: lea edx, [eax + 4] */ 4311 /* test edx, edx */ /* 0x470349DE: test edx, edx */ 4312 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4313 _cf = 0; 4314 _flag_k = FK_TEST; 4315 if (TEST_NZ(_flag_a, _flag_b)) goto L_470349E7; /* 0x470349E0: jne 0x470349e7 */ 4316 L_470349E2: 4317 edx = 0x47106D1Cu; /* 0x470349E2: mov edx, 0x47106d1c */ 4318 L_470349E7: 4319 PUSH32(esp, edi); /* 0x470349E7: push edi */ 4320 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4321 ecx = ecx | 0xFFFFFFFFu; /* 0x470349E8: or ecx, 0xffffffff */ 4322 _cf = 0; 4323 _flag_k = FK_TEST; 4324 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4325 eax = 0; /* 0x470349EB: xor eax, eax */ 4326 _cf = 0; 4327 _flag_k = FK_TEST; 4328 edi = edx; /* 0x470349ED: mov edi, edx */ 4329 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; } /* 0x470349EF: repne scasb al, byte ptr es:[edi] */ 4330 ecx = ~ecx; /* 0x470349F1: not ecx */ 4331 /* cmp ecx, 0x28u */ /* 0x470349F3: cmp ecx, 0x28 */ 4332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 4333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4334 _flag_k = FK_CMP; 4335 edi = POP32_VAL(esp); /* 0x470349F6: pop edi */ 4336 if (CMP_L(_flag_a, _flag_b)) goto L_470349FE; /* 0x470349F7: jl 0x470349fe */ 4337 L_470349F9: 4338 ecx = 0x27u; /* 0x470349F9: mov ecx, 0x27 */ 4339 L_470349FE: 4340 PUSH32(esp, ecx); /* 0x470349FE: push ecx */ 4341 PUSH32(esp, edx); /* 0x470349FF: push edx */ 4342 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4344 esi = esi + 4; /* 0x47034A00: add esi, 4 */ 4345 _flag_k = FK_ADD; 4346 PUSH32(esp, esi); /* 0x47034A03: push esi */ 4347 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47034A04: call dword ptr [0x470ac22c] */ 4348 RECOMP_FLAGS_IN(); 4349 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4351 esp = esp + 0xCu; /* 0x47034A0A: add esp, 0xc */ 4352 _flag_k = FK_ADD; 4353 L_47034A0D: 4354 esi = POP32_VAL(esp); /* 0x47034A0D: pop esi */ 4355 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47034A0E: ret 4 */ 4356 RECOMP_REGS_OUT(); 4357 } 4358 4359 void sub_47034A20(void) { 4360 int _fpu_cmp = 0; 4361 uint32_t _cf = 0; 4362 int _df = 1; 4363 uint32_t _flag_k = FK_NONE; 4364 uint32_t _flag_a = 0, _flag_b = 0; 4365 uint32_t _itail_tgt = 0; 4366 RECOMP_REGS_LOCALS 4367 RECOMP_ENTER(0x47034A20u); 4368 4369 L_47034A20: 4370 eax = MEM32(esp + 0x4); /* 0x47034A20: mov eax, dword ptr [esp + 4] */ 4371 PUSH32(esp, ebx); /* 0x47034A24: push ebx */ 4372 PUSH32(esp, esi); /* 0x47034A25: push esi */ 4373 esi = eax + 0x4; /* 0x47034A26: lea esi, [eax + 4] */ 4374 eax = ecx + 0x4; /* 0x47034A29: lea eax, [ecx + 4] */ 4375 L_47034A2C: 4376 SET_LO8(edx, MEM8(eax)); /* 0x47034A2C: mov dl, byte ptr [eax] */ 4377 SET_LO8(ebx, MEM8(esi)); /* 0x47034A2E: mov bl, byte ptr [esi] */ 4378 SET_LO8(ecx, LO8(edx)); /* 0x47034A30: mov cl, dl */ 4379 /* cmp LO8(edx), LO8(ebx) */ /* 0x47034A32: cmp dl, bl */ 4380 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4382 _flag_k = FK_NARROW(FK_CMP, 24); 4383 if (CMP_NE(_flag_a, _flag_b)) goto L_47034A60; /* 0x47034A34: jne 0x47034a60 */ 4384 L_47034A36: 4385 /* test LO8(ecx), LO8(ecx) */ /* 0x47034A36: test cl, cl */ 4386 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4387 _cf = 0; 4388 _flag_k = FK_NARROW(FK_TEST, 24); 4389 if (TEST_Z(_flag_a, _flag_b)) goto L_47034A50; /* 0x47034A38: je 0x47034a50 */ 4390 L_47034A3A: 4391 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47034A3A: mov dl, byte ptr [eax + 1] */ 4392 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x47034A3D: mov bl, byte ptr [esi + 1] */ 4393 SET_LO8(ecx, LO8(edx)); /* 0x47034A40: mov cl, dl */ 4394 /* cmp LO8(edx), LO8(ebx) */ /* 0x47034A42: cmp dl, bl */ 4395 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4397 _flag_k = FK_NARROW(FK_CMP, 24); 4398 if (CMP_NE(_flag_a, _flag_b)) goto L_47034A60; /* 0x47034A44: jne 0x47034a60 */ 4399 L_47034A46: 4400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4402 eax = eax + 2; /* 0x47034A46: add eax, 2 */ 4403 _flag_k = FK_ADD; 4404 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 4405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4406 esi = esi + 2; /* 0x47034A49: add esi, 2 */ 4407 _flag_k = FK_ADD; 4408 /* test LO8(ecx), LO8(ecx) */ /* 0x47034A4C: test cl, cl */ 4409 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4410 _cf = 0; 4411 _flag_k = FK_NARROW(FK_TEST, 24); 4412 RECOMP_BACKEDGE(); 4413 if (TEST_NZ(_flag_a, _flag_b)) goto L_47034A2C; /* 0x47034A4E: jne 0x47034a2c */ 4414 L_47034A50: 4415 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4416 eax = 0; /* 0x47034A50: xor eax, eax */ 4417 _cf = 0; 4418 _flag_k = FK_TEST; 4419 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4420 ecx = 0; /* 0x47034A52: xor ecx, ecx */ 4421 _cf = 0; 4422 _flag_k = FK_TEST; 4423 /* test eax, eax */ /* 0x47034A54: test eax, eax */ 4424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4425 _cf = 0; 4426 _flag_k = FK_TEST; 4427 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47034A56: sete cl */ 4428 esi = POP32_VAL(esp); /* 0x47034A59: pop esi */ 4429 ebx = POP32_VAL(esp); /* 0x47034A5A: pop ebx */ 4430 eax = ecx; /* 0x47034A5B: mov eax, ecx */ 4431 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47034A5D: ret 4 */ 4432 L_47034A60: 4433 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47034A60: sbb eax, eax */ 4434 eax = _sc ? 0xFFFFFFFFu : 0; 4435 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4436 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4437 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47034A62: sbb eax, -1 */ 4438 eax = _sa - _sb - _sc; 4439 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4440 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4441 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4442 ecx = 0; /* 0x47034A65: xor ecx, ecx */ 4443 _cf = 0; 4444 _flag_k = FK_TEST; 4445 /* test eax, eax */ /* 0x47034A67: test eax, eax */ 4446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4447 _cf = 0; 4448 _flag_k = FK_TEST; 4449 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47034A69: sete cl */ 4450 esi = POP32_VAL(esp); /* 0x47034A6C: pop esi */ 4451 ebx = POP32_VAL(esp); /* 0x47034A6D: pop ebx */ 4452 eax = ecx; /* 0x47034A6E: mov eax, ecx */ 4453 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47034A70: ret 4 */ 4454 RECOMP_REGS_OUT(); 4455 } 4456 4457 void sub_47034A80(void) { 4458 int _fpu_cmp = 0; 4459 uint32_t _cf = 0; 4460 int _df = 1; 4461 uint32_t _flag_k = FK_NONE; 4462 uint32_t _flag_a = 0, _flag_b = 0; 4463 uint32_t _itail_tgt = 0; 4464 RECOMP_REGS_LOCALS 4465 RECOMP_ENTER(0x47034A80u); 4466 4467 L_47034A80: 4468 MEM32(0x4710E498) = 0x47106D64u; /* 0x47034A80: mov dword ptr [0x4710e498], 0x47106d64 */ 4469 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034A8A: ret */ 4470 RECOMP_REGS_OUT(); 4471 } 4472 4473 void sub_47034A90(void) { 4474 int _fpu_cmp = 0; 4475 uint32_t _cf = 0; 4476 int _df = 1; 4477 uint32_t _flag_k = FK_NONE; 4478 uint32_t _flag_a = 0, _flag_b = 0; 4479 uint32_t _itail_tgt = 0; 4480 RECOMP_REGS_LOCALS 4481 RECOMP_ENTER(0x47034A90u); 4482 4483 L_47034A90: 4484 PUSH32(esp, ecx); /* 0x47034A90: push ecx */ 4485 PUSH32(esp, ebx); /* 0x47034A91: push ebx */ 4486 ebx = MEM32(0x470AC150); /* 0x47034A92: mov ebx, dword ptr [0x470ac150] */ 4487 PUSH32(esp, ebp); /* 0x47034A98: push ebp */ 4488 PUSH32(esp, esi); /* 0x47034A99: push esi */ 4489 PUSH32(esp, edi); /* 0x47034A9A: push edi */ 4490 edi = ecx; /* 0x47034A9B: mov edi, ecx */ 4491 RECOMP_ICALL(ebx); /* 0x47034A9D: call ebx */ 4492 RECOMP_FLAGS_IN(); 4493 ebp = MEM32(0x470AC3C8); /* 0x47034A9F: mov ebp, dword ptr [0x470ac3c8] */ 4494 esi = eax; /* 0x47034AA5: mov esi, eax */ 4495 RECOMP_ICALL(ebp); /* 0x47034AA7: call ebp */ 4496 RECOMP_FLAGS_IN(); 4497 eax = MEM32(eax); /* 0x47034AA9: mov eax, dword ptr [eax] */ 4498 /* test eax, eax */ /* 0x47034AAB: test eax, eax */ 4499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4500 _cf = 0; 4501 _flag_k = FK_TEST; 4502 MEM32(esp + 0x10) = esi; /* 0x47034AAD: mov dword ptr [esp + 0x10], esi */ 4503 if (TEST_Z(_flag_a, _flag_b)) goto L_47034AB7; /* 0x47034AB1: je 0x47034ab7 */ 4504 L_47034AB3: 4505 MEM32(esp + 0x10) = eax; /* 0x47034AB3: mov dword ptr [esp + 0x10], eax */ 4506 L_47034AB7: 4507 RECOMP_ICALL(0x47039020u); /* 0x47034AB7: call 0x47039020 */ /* not lifted */ 4508 RECOMP_FLAGS_IN(); 4509 esi = eax; /* 0x47034ABC: mov esi, eax */ 4510 ecx = esi; /* 0x47034ABE: mov ecx, esi */ 4511 RECOMP_ICALL(0x4703B210u); /* 0x47034AC0: call 0x4703b210 */ /* not lifted */ 4512 RECOMP_FLAGS_IN(); 4513 PUSH32(esp, eax); /* 0x47034AC5: push eax */ 4514 ecx = esi; /* 0x47034AC6: mov ecx, esi */ 4515 RECOMP_ICALL(0x4703B240u); /* 0x47034AC8: call 0x4703b240 */ /* not lifted */ 4516 RECOMP_FLAGS_IN(); 4517 PUSH32(esp, eax); /* 0x47034ACD: push eax */ 4518 ecx = esi; /* 0x47034ACE: mov ecx, esi */ 4519 RECOMP_ICALL(0x4703B080u); /* 0x47034AD0: call 0x4703b080 */ /* not lifted */ 4520 RECOMP_FLAGS_IN(); 4521 PUSH32(esp, eax); /* 0x47034AD5: push eax */ 4522 eax = MEM32(esp + 0x1C); /* 0x47034AD6: mov eax, dword ptr [esp + 0x1c] */ 4523 PUSH32(esp, eax); /* 0x47034ADA: push eax */ 4524 PUSH32(esp, 0); /* 0x47034ADB: push 0 */ 4525 PUSH32(esp, 0x13u); /* 0x47034ADD: push 0x13 */ 4526 PUSH32(esp, 0x47106DE4u); /* 0x47034ADF: push 0x47106de4 */ 4527 ecx = esi; /* 0x47034AE4: mov ecx, esi */ 4528 RECOMP_ICALL(0x4703A340u); /* 0x47034AE6: call 0x4703a340 */ /* not lifted */ 4529 RECOMP_FLAGS_IN(); 4530 PUSH32(esp, edi); /* 0x47034AEB: push edi */ 4531 PUSH32(esp, 0x471052CCu); /* 0x47034AEC: push 0x471052cc */ 4532 PUSH32(esp, 4); /* 0x47034AF1: push 4 */ 4533 PUSH32(esp, esi); /* 0x47034AF3: push esi */ 4534 RECOMP_ICALL(0x47039830u); /* 0x47034AF4: call 0x47039830 */ /* not lifted */ 4535 RECOMP_FLAGS_IN(); 4536 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4538 esp = esp + 0x10u; /* 0x47034AF9: add esp, 0x10 */ 4539 _flag_k = FK_ADD; 4540 RECOMP_ICALL(ebx); /* 0x47034AFC: call ebx */ 4541 RECOMP_FLAGS_IN(); 4542 esi = eax; /* 0x47034AFE: mov esi, eax */ 4543 RECOMP_ICALL(ebp); /* 0x47034B00: call ebp */ 4544 RECOMP_FLAGS_IN(); 4545 eax = MEM32(eax); /* 0x47034B02: mov eax, dword ptr [eax] */ 4546 /* test eax, eax */ /* 0x47034B04: test eax, eax */ 4547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4548 _cf = 0; 4549 _flag_k = FK_TEST; 4550 MEM32(esp + 0x10) = esi; /* 0x47034B06: mov dword ptr [esp + 0x10], esi */ 4551 if (TEST_Z(_flag_a, _flag_b)) goto L_47034B10; /* 0x47034B0A: je 0x47034b10 */ 4552 L_47034B0C: 4553 MEM32(esp + 0x10) = eax; /* 0x47034B0C: mov dword ptr [esp + 0x10], eax */ 4554 L_47034B10: 4555 RECOMP_ICALL(0x47039020u); /* 0x47034B10: call 0x47039020 */ /* not lifted */ 4556 RECOMP_FLAGS_IN(); 4557 esi = eax; /* 0x47034B15: mov esi, eax */ 4558 ecx = esi; /* 0x47034B17: mov ecx, esi */ 4559 RECOMP_ICALL(0x4703B210u); /* 0x47034B19: call 0x4703b210 */ /* not lifted */ 4560 RECOMP_FLAGS_IN(); 4561 PUSH32(esp, eax); /* 0x47034B1E: push eax */ 4562 ecx = esi; /* 0x47034B1F: mov ecx, esi */ 4563 RECOMP_ICALL(0x4703B240u); /* 0x47034B21: call 0x4703b240 */ /* not lifted */ 4564 RECOMP_FLAGS_IN(); 4565 PUSH32(esp, eax); /* 0x47034B26: push eax */ 4566 ecx = esi; /* 0x47034B27: mov ecx, esi */ 4567 RECOMP_ICALL(0x4703B080u); /* 0x47034B29: call 0x4703b080 */ /* not lifted */ 4568 RECOMP_FLAGS_IN(); 4569 ecx = MEM32(esp + 0x18); /* 0x47034B2E: mov ecx, dword ptr [esp + 0x18] */ 4570 PUSH32(esp, eax); /* 0x47034B32: push eax */ 4571 PUSH32(esp, ecx); /* 0x47034B33: push ecx */ 4572 PUSH32(esp, 0); /* 0x47034B34: push 0 */ 4573 PUSH32(esp, 0x17u); /* 0x47034B36: push 0x17 */ 4574 PUSH32(esp, 0x47106DE4u); /* 0x47034B38: push 0x47106de4 */ 4575 ecx = esi; /* 0x47034B3D: mov ecx, esi */ 4576 RECOMP_ICALL(0x4703A340u); /* 0x47034B3F: call 0x4703a340 */ /* not lifted */ 4577 RECOMP_FLAGS_IN(); 4578 eax = MEM32(edi + 0x8); /* 0x47034B44: mov eax, dword ptr [edi + 8] */ 4579 edx = edi + 0x18; /* 0x47034B47: lea edx, [edi + 0x18] */ 4580 PUSH32(esp, edx); /* 0x47034B4A: push edx */ 4581 PUSH32(esp, eax); /* 0x47034B4B: push eax */ 4582 PUSH32(esp, 0x47106DA8u); /* 0x47034B4C: push 0x47106da8 */ 4583 PUSH32(esp, 4); /* 0x47034B51: push 4 */ 4584 PUSH32(esp, esi); /* 0x47034B53: push esi */ 4585 RECOMP_ICALL(0x47039830u); /* 0x47034B54: call 0x47039830 */ /* not lifted */ 4586 RECOMP_FLAGS_IN(); 4587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4589 esp = esp + 0x14u; /* 0x47034B59: add esp, 0x14 */ 4590 _flag_k = FK_ADD; 4591 RECOMP_ICALL(ebx); /* 0x47034B5C: call ebx */ 4592 RECOMP_FLAGS_IN(); 4593 esi = eax; /* 0x47034B5E: mov esi, eax */ 4594 RECOMP_ICALL(ebp); /* 0x47034B60: call ebp */ 4595 RECOMP_FLAGS_IN(); 4596 eax = MEM32(eax); /* 0x47034B62: mov eax, dword ptr [eax] */ 4597 /* test eax, eax */ /* 0x47034B64: test eax, eax */ 4598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4599 _cf = 0; 4600 _flag_k = FK_TEST; 4601 MEM32(esp + 0x10) = esi; /* 0x47034B66: mov dword ptr [esp + 0x10], esi */ 4602 if (TEST_Z(_flag_a, _flag_b)) goto L_47034B70; /* 0x47034B6A: je 0x47034b70 */ 4603 L_47034B6C: 4604 MEM32(esp + 0x10) = eax; /* 0x47034B6C: mov dword ptr [esp + 0x10], eax */ 4605 L_47034B70: 4606 RECOMP_ICALL(0x47039020u); /* 0x47034B70: call 0x47039020 */ /* not lifted */ 4607 RECOMP_FLAGS_IN(); 4608 esi = eax; /* 0x47034B75: mov esi, eax */ 4609 ecx = esi; /* 0x47034B77: mov ecx, esi */ 4610 RECOMP_ICALL(0x4703B210u); /* 0x47034B79: call 0x4703b210 */ /* not lifted */ 4611 RECOMP_FLAGS_IN(); 4612 PUSH32(esp, eax); /* 0x47034B7E: push eax */ 4613 ecx = esi; /* 0x47034B7F: mov ecx, esi */ 4614 RECOMP_ICALL(0x4703B240u); /* 0x47034B81: call 0x4703b240 */ /* not lifted */ 4615 RECOMP_FLAGS_IN(); 4616 PUSH32(esp, eax); /* 0x47034B86: push eax */ 4617 ecx = esi; /* 0x47034B87: mov ecx, esi */ 4618 RECOMP_ICALL(0x4703B080u); /* 0x47034B89: call 0x4703b080 */ /* not lifted */ 4619 RECOMP_FLAGS_IN(); 4620 ecx = MEM32(esp + 0x18); /* 0x47034B8E: mov ecx, dword ptr [esp + 0x18] */ 4621 PUSH32(esp, eax); /* 0x47034B92: push eax */ 4622 PUSH32(esp, ecx); /* 0x47034B93: push ecx */ 4623 PUSH32(esp, 0); /* 0x47034B94: push 0 */ 4624 PUSH32(esp, 0x18u); /* 0x47034B96: push 0x18 */ 4625 PUSH32(esp, 0x47106DE4u); /* 0x47034B98: push 0x47106de4 */ 4626 ecx = esi; /* 0x47034B9D: mov ecx, esi */ 4627 RECOMP_ICALL(0x4703A340u); /* 0x47034B9F: call 0x4703a340 */ /* not lifted */ 4628 RECOMP_FLAGS_IN(); 4629 PUSH32(esp, 0x47106D9Cu); /* 0x47034BA4: push 0x47106d9c */ 4630 PUSH32(esp, 4); /* 0x47034BA9: push 4 */ 4631 PUSH32(esp, esi); /* 0x47034BAB: push esi */ 4632 RECOMP_ICALL(0x47039830u); /* 0x47034BAC: call 0x47039830 */ /* not lifted */ 4633 RECOMP_FLAGS_IN(); 4634 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4636 esp = esp + 0xCu; /* 0x47034BB1: add esp, 0xc */ 4637 _flag_k = FK_ADD; 4638 ecx = edi + 0xC; /* 0x47034BB4: lea ecx, [edi + 0xc] */ 4639 RECOMP_ICALL(0x47035800u); /* 0x47034BB7: call 0x47035800 */ /* not lifted */ 4640 RECOMP_FLAGS_IN(); 4641 RECOMP_ICALL(ebx); /* 0x47034BBC: call ebx */ 4642 RECOMP_FLAGS_IN(); 4643 esi = eax; /* 0x47034BBE: mov esi, eax */ 4644 RECOMP_ICALL(ebp); /* 0x47034BC0: call ebp */ 4645 RECOMP_FLAGS_IN(); 4646 eax = MEM32(eax); /* 0x47034BC2: mov eax, dword ptr [eax] */ 4647 /* test eax, eax */ /* 0x47034BC4: test eax, eax */ 4648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4649 _cf = 0; 4650 _flag_k = FK_TEST; 4651 edi = esi; /* 0x47034BC6: mov edi, esi */ 4652 if (TEST_Z(_flag_a, _flag_b)) goto L_47034BCC; /* 0x47034BC8: je 0x47034bcc */ 4653 L_47034BCA: 4654 edi = eax; /* 0x47034BCA: mov edi, eax */ 4655 L_47034BCC: 4656 RECOMP_ICALL(0x47039020u); /* 0x47034BCC: call 0x47039020 */ /* not lifted */ 4657 RECOMP_FLAGS_IN(); 4658 esi = eax; /* 0x47034BD1: mov esi, eax */ 4659 ecx = esi; /* 0x47034BD3: mov ecx, esi */ 4660 RECOMP_ICALL(0x4703B210u); /* 0x47034BD5: call 0x4703b210 */ /* not lifted */ 4661 RECOMP_FLAGS_IN(); 4662 PUSH32(esp, eax); /* 0x47034BDA: push eax */ 4663 ecx = esi; /* 0x47034BDB: mov ecx, esi */ 4664 RECOMP_ICALL(0x4703B240u); /* 0x47034BDD: call 0x4703b240 */ /* not lifted */ 4665 RECOMP_FLAGS_IN(); 4666 PUSH32(esp, eax); /* 0x47034BE2: push eax */ 4667 ecx = esi; /* 0x47034BE3: mov ecx, esi */ 4668 RECOMP_ICALL(0x4703B080u); /* 0x47034BE5: call 0x4703b080 */ /* not lifted */ 4669 RECOMP_FLAGS_IN(); 4670 PUSH32(esp, eax); /* 0x47034BEA: push eax */ 4671 PUSH32(esp, edi); /* 0x47034BEB: push edi */ 4672 PUSH32(esp, 0); /* 0x47034BEC: push 0 */ 4673 PUSH32(esp, 0x1Au); /* 0x47034BEE: push 0x1a */ 4674 PUSH32(esp, 0x47106DE4u); /* 0x47034BF0: push 0x47106de4 */ 4675 ecx = esi; /* 0x47034BF5: mov ecx, esi */ 4676 RECOMP_ICALL(0x4703A340u); /* 0x47034BF7: call 0x4703a340 */ /* not lifted */ 4677 RECOMP_FLAGS_IN(); 4678 PUSH32(esp, 0x4710529Cu); /* 0x47034BFC: push 0x4710529c */ 4679 PUSH32(esp, 4); /* 0x47034C01: push 4 */ 4680 PUSH32(esp, esi); /* 0x47034C03: push esi */ 4681 RECOMP_ICALL(0x47039830u); /* 0x47034C04: call 0x47039830 */ /* not lifted */ 4682 RECOMP_FLAGS_IN(); 4683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4685 esp = esp + 0xCu; /* 0x47034C09: add esp, 0xc */ 4686 _flag_k = FK_ADD; 4687 edi = POP32_VAL(esp); /* 0x47034C0C: pop edi */ 4688 esi = POP32_VAL(esp); /* 0x47034C0D: pop esi */ 4689 ebp = POP32_VAL(esp); /* 0x47034C0E: pop ebp */ 4690 ebx = POP32_VAL(esp); /* 0x47034C0F: pop ebx */ 4691 ecx = POP32_VAL(esp); /* 0x47034C10: pop ecx */ 4692 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034C11: ret */ 4693 RECOMP_REGS_OUT(); 4694 } 4695 4696 void sub_47034C20(void) { 4697 int _fpu_cmp = 0; 4698 uint32_t _cf = 0; 4699 int _df = 1; 4700 uint32_t _flag_k = FK_NONE; 4701 uint32_t _flag_a = 0, _flag_b = 0; 4702 uint32_t _itail_tgt = 0; 4703 RECOMP_REGS_LOCALS 4704 RECOMP_ENTER(0x47034C20u); 4705 4706 L_47034C20: 4707 eax = ecx; /* 0x47034C20: mov eax, ecx */ 4708 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4709 ecx = 0; /* 0x47034C22: xor ecx, ecx */ 4710 _cf = 0; 4711 _flag_k = FK_TEST; 4712 MEM32(eax + 0x4) = ecx; /* 0x47034C24: mov dword ptr [eax + 4], ecx */ 4713 MEM32(eax + 0x8) = ecx; /* 0x47034C27: mov dword ptr [eax + 8], ecx */ 4714 MEM32(eax + 0xC) = ecx; /* 0x47034C2A: mov dword ptr [eax + 0xc], ecx */ 4715 MEM32(eax + 0x10) = ecx; /* 0x47034C2D: mov dword ptr [eax + 0x10], ecx */ 4716 MEM32(eax + 0x14) = ecx; /* 0x47034C30: mov dword ptr [eax + 0x14], ecx */ 4717 MEM32(eax) = 0x470AD368u; /* 0x47034C33: mov dword ptr [eax], 0x470ad368 */ 4718 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47034C39: ret */ 4719 RECOMP_REGS_OUT(); 4720 } 4721 4722 void sub_47034C40(void) { 4723 int _fpu_cmp = 0; 4724 uint32_t _cf = 0; 4725 int _df = 1; 4726 uint32_t _flag_k = FK_NONE; 4727 uint32_t _flag_a = 0, _flag_b = 0; 4728 uint32_t _itail_tgt = 0; 4729 RECOMP_REGS_LOCALS 4730 RECOMP_ENTER(0x47034C40u); 4731 4732 L_47034C40: 4733 PUSH32(esp, esi); /* 0x47034C40: push esi */ 4734 PUSH32(esp, edi); /* 0x47034C41: push edi */ 4735 edi = MEM32(esp + 0xC); /* 0x47034C42: mov edi, dword ptr [esp + 0xc] */ 4736 esi = ecx + 0xC; /* 0x47034C46: lea esi, [ecx + 0xc] */ 4737 PUSH32(esp, edi); /* 0x47034C49: push edi */ 4738 ecx = esi; /* 0x47034C4A: mov ecx, esi */ 4739 RECOMP_ICALL(0x47035B00u); /* 0x47034C4C: call 0x47035b00 */ /* not lifted */ 4740 RECOMP_FLAGS_IN(); 4741 PUSH32(esp, 0); /* 0x47034C51: push 0 */ 4742 PUSH32(esp, edi); /* 0x47034C53: push edi */ 4743 ecx = esi; /* 0x47034C54: mov ecx, esi */ 4744 RECOMP_ICALL(0x470359F0u); /* 0x47034C56: call 0x470359f0 */ /* not lifted */ 4745 RECOMP_FLAGS_IN(); 4746 edi = POP32_VAL(esp); /* 0x47034C5B: pop edi */ 4747 esi = POP32_VAL(esp); /* 0x47034C5C: pop esi */ 4748 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47034C5D: ret 4 */ 4749 RECOMP_REGS_OUT(); 4750 }